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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Nt9,tyx,HN4,Agl,ZNy,Vyy,tg,UzQ,dzg,Ag,Vv,gxN,ygS,hg,Mz,Btz,cgO,$zx,bQ,uOx,SSO,Yx,bNy,apQ,e9N,X44,qSS,fpg,WGg,lpx,QlS,Exg,Ny,Vr,Up,vxQ,KR,FB,JgS,df,b_,slx,Nfg,XB,xX,ORy,Dyg,UyM,nR,FZp,dyz,rf,gXy,yug,Bfx,IQ,C_p,l_,$yG,uBg,p0M,di,LZM,zag,Ff,haS,Cn,MES,bRS,xyl,qpl,fYO,i1,ruz,WZ9,IYg,lYO,QQg,EXO,GSS,JuQ,oXO,tJG,Hnt,Znz,K5y,dqN,F5g,Pm,grl,inS,Xf,uf9,h5v,L5G,bnx,z5x,pmO,fn,my9,nn,Wm,I1,Yxt,l1,wmt,azl,Tix,Jm,e5l,P1Q,xqg,qxO,k54,fzl,nrl,W5p,G5,IzM,Q1S,Erg,R5v,Zu,JmQ,NDG,Du,H8t,Vsl,s1t,Dml,C9Q,KAz,$mp,
gwy,i8y,S19,hrx,b8M,plz,auy,TDp,P9y,xmx,fux,WAM,rRg,lup,EwM,sdg,ad,tV9,HUg,AYQ,xw,qm,n8,Rd,JR,od,doM,V0,yYp,$oN,iUN,u1t,SGp,gG,hUz,B6,c6,$C,jV,bUy,p69,Lnz,zUO,YGx,TGO,w6N,eUy,Pkl,xoG,hY,SV,kyy,qGy,fxO,WnS,nCS,rYt,Ixx,lxv,eV,P6,X1,xC,qo,mol,fU,GyN,sxt,Ix,Nc9,tup,Omx,Q0,HmG,ADl,ZmO,mn,UwM,Rx,Fq9,dwN,v6,yDN,gmx,Bcp,cDS,$wv,jNv,sG,imt,uay,Nw,SWO,hoM,tD,OW,HW,AD,Mul,pW9,bmO,ZC,zoy,YWl,aCv,DC,Cm,Km,Fa,dc,ys,Tcg,wWv,PwQ,XWv,kiS,qWy,fCS,nmO,WqQ,rD4,$m,ICO,lCy,mwt,EmQ,Gi9,RoG,vmg,JDy,om9,uw,sN4,Mw,bw,NbM,
H1l,AI9,Z1v,Dn9,UnO,CuS,g1p,yIt,BbO,cIv,$nM,jPl,i1g,MRN,zi,b1M,pAN,L7g,zzg,Y$l,alQ,wAz,llt,QPG,mnO,RzS,v1G,km,JIM,Npv,Hty,AJg,Zt4,VGO,DYt,UYO,C$S,KPS,dY9,gMQ,tGN,yJG,BpN,cJ4,$Yv,jap,itQ,uSN,SHz,h3v,LP4,btG,ay4,z3N,YHz,e3t,P$l,XoM,TpM,kgM,wot,fyy,O$,nMS,HA,V5,WPl,IyS,lyx,EM9,HLS,R3M,Gg9,JJp,sag,vMG,Cfp,VTl,KDp,FDM,dCl,glO,yO4,cOS,Buv,$Cg,jog,iLQ,uNM,hgG,bLG,pZS,LD4,Y2G,zgx,WDl,K1,rOO,ltM,Qo9,mCz,Elg,Gmv,vlt,JOS,olS,jR,iu,soM,ZFN,hI,Mn,CPS,FYl,Syt,Y1,bFv,pY4,a9t,zeQ,Yyz,PA,TEx,wY4,PPp,XYO,xH9,kpz,qyv,
f9g,nvx,reG,I9x,QDG,l9z,GpM,lu,E$,vvg,Jep,ovN,sDg,NrO,tgO,Hzg,Zzz,ArM,Zy,Dy,BrO,FS,Sv4,hAz,dp,bzN,Mg9,P0N,XaG,xVg,qvl,rr4,lov,QkM,mVG,E2y,RAG,JrS,o2v,co,NaM,u$,Obp,HbG,A_t,VOt,tO4,skS,ZbO,jG,Ugx,dgS,KvQ,Baz,c_4,j0Q,iby,uWt,S7v,zg,hSp,bb4,MOz,pXt,zSx,Tg,TaQ,Po,xM,XS,XXO,a4v,n3x,mgO,RSl,GWM,o3M,nt,N9l,H9l,Shy,l$,M4G,mP,EH,LKy,a3S,wdp,ecv,PUg,Gg,Xdx,vo,x1y,qhG,f3S,n6O,WKS,I3t,NC,l3x,QbS,O2,Zt,GCx,Rcg,v6G,sbt,Nex,O0g,H0g,KFt,FFz,DTx,gIx,yvG,BeG,cZ,jT,uf,i0M,ud4,bf,S8z,hKt,Mml,b0Q,LFz,zKM,Y8x,a0S,pvz,
TeM,Yl,eK9,q8l,ao,kZv,f09,wvO,nIy,wu,rvO,I0y,l0O,QnO,EIS,mTl,GZQ,Jv4,RKS,snl,ZvO,D0t,COv,d0M,F24,K2y,gL4,yHt,cHv,jrx,$0M,uUz,ru,hny,MBS,bvv,pCM,YlS,TNl,aAS,wCg,eng,PON,XCG,k8z,fAN,rHg,lAN,IAO,gE,QrO,qlO,oLl,N0G,tb4,OJx,iP,HJ4,ZJz,Up4,FIp,KIp,B0v,cb4,$pQ,jXl,uuM,pct,SKl,Mby,bJv,LIl,z7y,aaQ,YKv,wcl,T0y,eo,e7M,Xc9,xpS,nYl,WY,rE,WI9,rbz,ID,QXG,Gp,RD,Je,R7y,oD,oY9,tr,sXS,N84,tD9,OMv,Ar,HMN,ABM,ZMv,DEQ,C5t,dEx,yBv,yS,B8z,cBz,$EN,jJ4,iMQ,uo4,S_4,hkx,$2,p5S,LdQ,zky,Y_t,anz,T8O,w5G,ekN,P5Q,X5O,xES,kv9,q_x,
pz,vjS,JBN,Lz,zB,Y2,ojS,sJO,NYx,tcg,OTM,HT4,AGO,C8M,K1y,F1S,dLg,gHN,eg,Xc,x2,k2,nz,Wa,rr,BYz,l0,$Ll,QS,jIv,iTQ,m8,uiv,S3p,hVl,wix,P8S,fmQ,Imz,rGx,eVy,lmy,EHO,DfG,sI9,dfx,tnt,KNN,gq4,ok,Bzg,Ng,$fg,jHg,ubg,S6y,hhM,bOl,HX,LNl,zhg,Y6x,arQ,Tzt,w2x,ehz,p2v,xfG,kr4,q6Q,Z4,lrx,QHO,IrM,EqO,Grp,vqN,JnG,Rh9,Ady,VFG,U2z,KwS,cX,$2g,BFN,cdQ,hEG,bCz,pV9,Lw4,zEM,Y4l,a5t,Lb,f5Q,Wwp,kbN,x2S,nJg,wV4,I5x,Nql,m2z,EJ9,Gbg,KB9,deQ,Cjx,jMO,Uev,TFt,$ey,Q_p,s_x,FBy,rdt,Pby,eEz,XVp,q4t,DeM,QN,ewN,XHS,xet,kIN,qiQ,EVM,oVx,sMx,
Oh,tpM,A5Q,UUM,DUg,KbS,FbM,gSS,BZO,y5N,c54,$U9,j8x,ixt,SMG,uFx,Bd,zPy,LbS,pzO,wzt,YMQ,ePz,TZv,PFO,XzO,fEG,kEg,qM9,Wb9,lEM,Q8Q,GEx,RPg,vSN,J5M,s8t,tqN,S4,HiS,Vq9,Aqp,DuO,Fhz,duQ,BvN,$uO,L9,zC,S9M,hIQ,Y6,ab,Mq9,TC,w9,biy,e4,pyN,Pd,LhN,zIz,x6,Y9G,a_v,TvQ,wyO,eIN,Xyy,Pe9,knt,ngO,f_Q,Wh4,rq4,xuz,I_S,mul,QES,q9p,EgM,GnS,Wd,RI9,Jq4,vgS,ogx,sE4,tSx,NPx,OSS,Ib,Al4,ZSM,HSl,D4g,U4Q,Clp,gf4,clv,SI4,p7x,lU,YIp,aZQ,QM,TPy,Rb,vd,khG,Eh,sh,qIS,fZM,WpQ,rlx,lZg,m44,EfS,Ghz,RNM,ofG,Hll,t0G,Jll,Awy,Zlg,Z0,Ol9,V0y,U8,
DdG,Udl,CC9,Kel,ywG,FeQ,gDQ,jG4,ilg,bl4,M0p,zG4,PCx,XUG,klM,f7Q,nDv,rwl,I7x,l7t,mdS,EDv,GlN,Jwz,tWS,OAv,oDM,ACy,VWQ,ZAO,HAN,DOz,Ctv,KsM,FsO,dOv,gGt,uq,Sm,bq,L0,cCG,$O4,iAS,h4v,YI,an,MWS,TZ,LsO,z4S,Ywz,em,PtG,qwN,nGG,WsG,rCG,lbG,Q5t,mON,R4z,Xd,vGy,s5y,xI,N3l,A$z,kI,Dsv,qT,Wv,re,UsG,K0t,CMQ,dsv,gFp,y$v,B3Q,F09,umN,SP9,Mrz,pGp,aPg,YP9,T3O,eDM,PMv,XGy,xsO,kkS,qPz,fP9,r$Q,nFG,E8,lPl,GZ,Q7x,vv,Jv,ms4,EFM,Gkz,RDv,vF9,on,J$y,oF4,s7t,N5l,OfN,HfQ,A8y,ZfS,VzG,UKQ,DKv,s8,KgQ,dKM,gES,y8S,B5G,jjQ,uxl,HC,hfl,bfQ,
pLv,LgS,zfg,YN4,aj9,T5v,wLy,ifl,SNQ,efg,Pv9,qN4,fjO,nES,Wgx,Ogx,Zg9,V8G,DBz,ALl,gk9,cLz,yLp,$Bg,upx,h2G,bgz,Ytt,z29,e2Q,gN,Pnp,XSO,ym,xBO,BC,k4x,qtM,fXx,Wj4,nkt,rLS,IXp,lXt,QBt,okx,NHl,Opz,te4,R2S,EkN,AAG,VeS,FCz,d_9,BHO,STt,Mey,iO,bp9,LCS,zpg,agx,Prg,kcO,nbQ,WCp,rAM,Igp,Gcl,lgM,obQ,s3N,NAx,O7p,M0,H7v,Z7y,V6t,Djx,UjS,CDt,KTz,FTN,gcN,yVN,YL,BAy,cVt,jv9,T8,$j4,uny,b7z,PC,pb9,LTM,z8x,TAp,wbG,Ybx,PDz,qbl,fiQ,ncv,nv,WTO,Qvg,mjN,lO,R8l,Ec9,GGQ,ocy,svx,N6S,Axy,DSz,Vfg,ZeS,USO,KVv,FVy,cx9,dSN,$Sl,iez,j$Q,
p8S,YkG,T6p,e$Q,rxx,pJ,lct,GLN,vsv,Mp,xY,OYv,V7G,ZYl,Ucg,CAM,FXx,KX4,dcN,g9g,kY,nHQ,HYQ,Dcp,Ac4,Pc,cc4,$cQ,jyM,GT,hRv,RX,M7N,bYt,pst,LXt,zRx,Jb,Yn9,ahx,T_l,wsg,eR4,tB,PA9,kag,fh4,n9S,E9M,RRt,v9x,JcM,syt,Nyp,KM,OZv,HZO,A7Q,ZZt,ViM,Dat,CI4,F3M,g8y,y7g,u9y,juG,SrG,bZS,pTO,jD,L3Q,zJM,Yrt,wTQ,PIl,eJO,xag,qrS,hB,n8x,W34,fIN,r7O,IIM,Quv,E8M,may,GP9,lIM,RJl,v84,J7z,o8Q,sul,NdG,ttS,ODQ,HDO,Vtz,ZD9,DFQ,CLz,UFO,ME,KJQ,gOl,$Fx,FJS,u5N,SoG,htg,Mtp,LJ9,PLt,Xuv,k6S,qox,qE,rPO,mFt,RtO,fM,swz,vOx,JP9,oOQ,NOx,ZXO,
IJ,VN4,D3p,CWg,KSp,FSx,d3v,yiN,BOt,bXN,usG,hHG,LSp,pRN,zHg,Yay,TOS,eHO,XRG,kzg,qay,nnp,vn9,sgS,tLQ,OcM,HcN,Ak9,Zct,XFN,xRG,fUM,ntx,WO9,rkv,IUS,lUt,Q2g,mRt,RMM,s2S,tG,O3,Hi,NMy,t_O,VE,HoG,d7Q,jfS,c64,XDz,x7N,kUg,ZoO,F$Q,U7G,fFz,npx,W$v,r6S,y64,IFS,Qfp,Ep9,vpv,J6t,ci,V3v,UGl,Kuv,Fu9,yX9,cXl,BVy,i_M,Ss4,Ys9,Lup,M3Q,zWp,b_l,av4,PRM,wY,ec,IvO,neG,QR9,mG4,GHN,RWt,Xi,vez,sRy,Nng,tQg,OqQ,KRl,CXO,II,c3O,GV,jOg,iqN,u3Q,SXS,hL4,MQS,bqy,pfl,LRx,zL4,YX9,vi,aHy,Tnz,wfx,eLO,PXS,XfG,xPx,kOz,oI,qXG,fHM,nTS,WRQ,r34,
IHg,lHO,QOQ,mPx,ETv,GOM,RLN,vT4,Nf,oTv,NXO,O6Q,Z6v,Ull,Csl,KQx,dl4,yfN,BXN,cfl,KO,SuQ,i6O,hON,Mdv,b64,zOS,YuO,aQG,wIp,hn,Ps9,uc,xl9,k9g,Mf,quv,fQO,nup,WQp,pO,Qq9,EuN,oux,JfM,NJg,tAl,P2,Osg,HsO,Zst,DNp,UNO,K_x,F_y,VAG,dNO,$Nv,SJ4,hdp,Xb,MA9,bsN,a1y,pkO,zdy,YJM,xNN,wkN,kAt,f1G,W_l,rNQ,I1g,l1x,QSQ,mNt,GAG,RdM,vAv,JNQ,oAN,N7G,Ojg,ZjO,Cmz,dX9,y9N,$Xp,rz,jF9,ijl,uv9,SRN,hqO,bjt,phN,Liy,zqS,YRS,akt,T7M,why,eqp,Pmy,XhG,kX4,xXl,n4N,r9G,QQ,Ikx,mXM,QFS,Rqx,v4Q,J9M,NxQ,HuM,Out,sF9,Vw9,ZuN,FHS,DAp,v2,CYg,j6Q,
y1O,Bxy,c1l,$AN,iuM,SDG,uTg,Jn,oH,YD4,MwO,zsp,LHt,buv,pj4,wj9,PYy,xAg,XjQ,kJz,WHG,nPy,IVS,mAG,GJz,Q6G,RsQ,J14,vPv,s6x,O5N,HV,H5Q,A0v,Dr4,dr9,j9l,Z5,ukO,hmG,Lyg,pwl,M5z,b5N,KC,T14,zmt,YZp,wwG,PVS,emG,ksz,qZN,nNx,Wyv,r0x,IOS,lO9,mrv,ENQ,bb,Rmv,vNN,NBO,th9,a_,O$z,AKt,gWN,Xr,UQz,dQ4,CBG,KL4,$QQ,cK9,Sm9,jtz,hQQ,Mhl,kJ,pPv,LLx,zQG,b$l,nC,Yml,q2,eQv,nWx,WLt,rKt,IGS,lGS,QtM,mQG,vWp,Go9,RQy,EW4,oWx,OPx,HPM,VUG,DZl,C6y,dZp,Koy,FoQ,gdN,BsN,ct4,$Z9,jZv,iPG,uXM,h1Q,bPG,ptx,YVG,z1N,TsN,a2x,wtM,e1l,Xty,xZv,QZO,
I24,GYp,R14,tXy,OaN,HaQ,AUx,Zat,VXx,C79,KUl,FUv,gz9,yUM,BUt,cUM,$Wp,jeQ,uGM,SUl,hXS,CE,LUt,pNN,baG,MXG,YUv,wNx,a8x,P7S,XNg,kKQ,qUQ,f8l,nzM,WU4,mWv,rUQ,I8v,l8N,Ezg,GKN,RXt,Qez,gq,oz9,NKQ,sep,BH,tK9,H3l,AoN,Z3g,O39,VKt,Dvg,Uvx,CTS,KcO,dvz,giN,yoN,BKl,jcg,$vp,MKv,co4,$V,b39,i34,h6Q,LcN,z6S,YYt,awG,TKS,e6z,PTQ,XOM,k7t,qYG,niN,rot,Ei4,QcM,mvv,lw4,IwQ,G7y,zI,R6Q,YV,vit,Jop,e9,O4l,Ahv,Z4Q,VxM,D$t,U$y,CZO,XM,xV,yhg,Fxp,Kxy,d$G,pEl,MxG,gBt,hZt,wE9,eZN,PZO,XEM,x$4,fqS,WxO,Iqv,QY9,m$G,EBl,Jht,vBx,oBt,NWO,Hz,
HdQ,ASQ,Zdt,V1y,Dk4,Ukt,CgN,ZE,Ve,dkN,gZt,BWv,jKp,bdv,a6S,Yj4,TWx,eyv,PgQ,Xqx,xkN,kRG,qjO,gZ,f6O,mkO,EZv,I64,rSO,QKQ,l6l,oZO,sKg,NCN,tjy,O2N,H2t,VjN,Z2S,Aax,BCp,goO,caN,$hO,j44,S5x,hTG,i2O,ug9,TCt,eTO,XQQ,kty,fL9,WM4,Q4t,mhS,Eoz,vov,RTO,Gtz,Jag,ooQ,s4N,NRp,t$M,OKN,HKg,AWO,ZK4,V$v,Uxv,Cz4,Kzl,Fzt,dxz,g0O,BRz,cWv,$xO,jpg,iKy,uES,bK4,pBQ,zFg,aeO,YAp,TRN,px,wBQ,eFy,PzG,XBS,feM,qAN,n0Q,WzM,rWG,IeS,mxv,E0O,Gwy,RF9,v0p,JWz,o0g,spy,NLN,tIN,Owt,AZ4,HwM,ZwM,VIv,DD4,UDx,Cog,KEO,FE4,dDM,XF,yZO,BL4,cZG,$Dp,js4,
uw9,SOx,hBG,MIQ,bwl,p_t,zBN,YOQ,TLS,fx,PoO,fSp,kFS,xD4,X_G,qOz,rZO,ISx,lSg,QsG,E$9,GFl,RBM,JZt,v$O,o$y,ssl,NgS,Hkl,AEz,ZkM,VHQ,D8x,U84,Fr9,d8g,GE,$8Q,jLv,uPt,MH4,hxS,bkg,pJM,R8,J5,zxG,YCS,Nu,tq,exQ,aDy,Tgg,x8v,kDz,qCt,fDS,IDO,QLg,m8N,E7l,GDM,Rxv,JEM,o7O,sLM,Nhp,tPy,Oy4,Hyy,Aq,Apv,ZyG,Vx,VPy,D9S,U9G,CGM,K6O,F6O,Ci,Ki,d9N,gax,F_,ypM,BhO,cpN,$9v,iyz,u24,hCQ,zCS,L69,pry,YQv,aRG,keQ,eCy,PGQ,Xrl,wrG,x9v,qQv,fRx,W6N,IRp,gv,m9Q,EaN,Gex,RCy,vax,oaN,Nwv,HQS,DiQ,ZQN,yx,AMQ,diy,yMG,By,Bwl,cMp,$iQ,jAG,iQx,Sz9,
hjN,bQz,ppG,zjp,Yzz,ejS,wpp,XpO,xi9,kQS,qzO,n5v,WaS,rMp,Ist,lsN,QAy,mip,E5y,GQM,v5z,JMx,OIv,HIG,A2t,ZI4,UI4,Mu,FW4,dIQ,gQS,y2M,BSp,c2y,jiy,iIN,uZM,S0S,MCM,bIy,pgl,Li,LWx,zil,TSS,wg9,zn,Yg,XgO,eiN,xI4,fKz,kxO,nQS,r2Q,eq,IKx,lKt,Qix,GxN,vQl,Py,oQx,sit,Nol,tal,OrQ,Hrv,Aj9,ZrG,CJg,d6t,Klg,FlQ,gRM,$6O,yjv,cjQ,jmO,iry,uKg,MaS,br9,pey,z0z,YBz,Xev,PJ9,WlN,lMy,IE,Qm9,Itz,le,m6S,ERG,R0z,oRN,smQ,VYQ,DMt,UMS,C4S,K9t,F9y,gh4,yF4,cF4,jh9,BTN,$MM,uYQ,iGv,hY4,p$y,MY9,L9Q,zYg,YLv,aJS,TTt,w$M,P49,eYz,qLS,W94,fJy,rFN,
IJy,lJx,s9,QhS,mMg,Al,G3l,Eh9,RYS,JF4,vhM,tlp,Oht,Asy,ZhN,DJS,UJz,C3t,Kf9,gUt,Blp,jz4,$Jg,ihl,u0N,ScN,bhp,XMg,Ycp,k_g,qcy,nUS,WfG,Qzp,mJM,EUG,G_t,RuN,vUp,szG,NmN,t2O,OHS,ZHM,Dtl,Ut9,V2Q,KtQ,Cx9,Bmv,czQ,$t9,jVp,iHg,uhO,SES,M2G,LtS,zlt,YEv,afN,Tmt,w3z,X3G,PxG,qEQ,nyS,Wtt,rzS,Ify,lfx,mtQ,QVO,G0v,sV4,HBS,OB9,AQg,ZBv,VMQ,U54,pS,K4g,aC,d5S,yQp,Bjy,uCG,h_Q,L44,Yqv,aBG,w9v,e_S,Pip,x5t,qq4,fBy,W4y,lBt,IBz,rQy,XQ,m5v,QTO,E_y,Gq9,R_9,v_p,JQp,o_O,sTM,tkp,OWN,HWN,AT4,ZWG,VkS,Dbv,UbG,CSv,FmG,dbG,gKN,SFp,hbv,Mk9,
pxz,Lm9,zbt,T$M,rP,k1g,qFz,nKz,WmG,rTv,I$S,l$y,ll,oKz,Vo,QD,EI,sUG,Nta,HN0,ZNE,AgQ,RC,VyE,DzY,Uz_,CQQ;Nt9=function(){var N,t;return typeof CSS!=="undefined"&&((t=(N=CSS).supports)==null?void 0:t.call(N,"selector(:has(*))"))};
tyx=function(N){return N.visibility!=="hidden"&&N.display!=="none"};
HN4=function(N){if(Nt9()||N.tagName!=="DETAILS"?!N.matches(ONy):N.querySelector("summary")!==null)return-1;N=N.getAttribute("tabindex")||"0";return Number(N)};
Agl=function(N){return N.some(function(t){return HN4(t)>0})};
ZNy=function(N){if(N.textContent||N.ariaLabel)return!0;if(N instanceof HTMLInputElement){if(!N.labels)return!1;N=_.D(N.labels);for(var t=N.next();!t.done;t=N.next())if(t.value.textContent)return!0}return!1};
Vyy=function(N){return N.sort(function(t,O){return HN4(O)-HN4(t)})};
_.Dzp=function(N){N=Array.from(N.querySelectorAll(ONy)).filter(function(t){return(tyx(t.style)?tyx(window.getComputedStyle(t)):!1)&&ZNy(t)});
return Agl(N)?Vyy(N):N};
_.Nz=function(N,t){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Nz);else{var O=Error().stack;O&&(this.stack=O)}N&&(this.message=String(N));t!==void 0&&(this.cause=t)};
tg=function(){throw Error("E");};
UzQ=function(N,t){t=String.fromCharCode.apply(null,t);return N==null?t:N+t};
dzg=function(N){var t=!1;t=t===void 0?!1:t;if(CQl){if(t&&(KGN?!N.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(N)))throw Error("F");N=(FGQ||(FGQ=new TextEncoder)).encode(N)}else{for(var O=0,H=new Uint8Array(3*N.length),A=0;A<N.length;A++){var Z=N.charCodeAt(A);if(Z<128)H[O++]=Z;else{if(Z<2048)H[O++]=Z>>6|192;else{if(Z>=55296&&Z<=57343){if(Z<=56319&&A<N.length){var U=N.charCodeAt(++A);if(U>=56320&&U<=57343){Z=(Z-55296)*1024+U-56320+65536;H[O++]=Z>>18|
240;H[O++]=Z>>12&63|128;H[O++]=Z>>6&63|128;H[O++]=Z&63|128;continue}else A--}if(t)throw Error("F");Z=65533}H[O++]=Z>>12|224;H[O++]=Z>>6&63|128}H[O++]=Z&63|128}}N=O===H.length?H:H.subarray(0,O)}return N};
Ag=function(N){_.H4.setTimeout(function(){throw N;},0)};
_.Zp=function(N,t){return N.lastIndexOf(t,0)==0};
Vv=function(N,t){var O=N.length-t.length;return O>=0&&N.indexOf(t,O)==O};
_.Dp=function(N){return/^[\s\xa0]*$/.test(N)};
_.KN=function(N,t){return N.indexOf(t)!=-1};
_.dt=function(N,t){return _.KN(N.toLowerCase(),t.toLowerCase())};
_.yv=function(N,t){var O=0;N=gt(String(N)).split(".");t=gt(String(t)).split(".");for(var H=Math.max(N.length,t.length),A=0;O==0&&A<H;A++){var Z=N[A]||"",U=t[A]||"";do{Z=/(\d*)(\D*)(.*)/.exec(Z)||["","","",""];U=/(\d*)(\D*)(.*)/.exec(U)||["","","",""];if(Z[0].length==0&&U[0].length==0)break;O=gxN(Z[1].length==0?0:parseInt(Z[1],10),U[1].length==0?0:parseInt(U[1],10))||gxN(Z[2].length==0,U[2].length==0)||gxN(Z[2],U[2]);Z=Z[3];U=U[3]}while(O==0)}return O};
gxN=function(N,t){return N<t?-1:N>t?1:0};
_.$x=function(){var N=_.H4.navigator;return N&&(N=N.userAgent)?N:""};
ygS=function(N){if(!uQ||!Sy)return!1;for(var t=0;t<Sy.brands.length;t++){var O=Sy.brands[t].brand;if(O&&_.KN(O,N))return!0}return!1};
hg=function(N){return _.KN(_.$x(),N)};
Mz=function(){return uQ?!!Sy&&Sy.brands.length>0:!1};
Btz=function(){return Mz()?!1:hg("Opera")};
cgO=function(){return Mz()?!1:hg("Trident")||hg("MSIE")};
$zx=function(){return Mz()?ygS("Microsoft Edge"):hg("Edg/")};
bQ=function(){return hg("Firefox")||hg("FxiOS")};
_.jlN=function(){return hg("Safari")&&!(_.LN()||(Mz()?0:hg("Coast"))||Btz()||(Mz()?0:hg("Edge"))||$zx()||(Mz()?ygS("Opera"):hg("OPR"))||bQ()||hg("Silk")||hg("Android"))};
_.LN=function(){return Mz()?ygS("Chromium"):(hg("Chrome")||hg("CriOS"))&&!(Mz()?0:hg("Edge"))||hg("Silk")};
_.iNQ=function(){return hg("Android")&&!(_.LN()||bQ()||Btz()||hg("Silk"))};
uOx=function(N){var t={};N.forEach(function(O){t[O[0]]=O[1]});
return function(O){return t[O.find(function(H){return H in t})]||""}};
SSO=function(N){var t=_.$x();if(N==="Internet Explorer"){if(cgO())if((N=/rv: *([\d\.]*)/.exec(t))&&N[1])t=N[1];else{N="";var O=/MSIE +([\d\.]+)/.exec(t);if(O&&O[1])if(t=/Trident\/(\d.\d)/.exec(t),O[1]=="7.0")if(t&&t[1])switch(t[1]){case "4.0":N="8.0";break;case "5.0":N="9.0";break;case "6.0":N="10.0";break;case "7.0":N="11.0"}else N="7.0";else N=O[1];t=N}else t="";return t}var H=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");O=[];for(var A;A=H.exec(t);)O.push([A[1],A[2],A[3]||void 0]);
t=uOx(O);switch(N){case "Opera":if(Btz())return t(["Version","Opera"]);if(Mz()?ygS("Opera"):hg("OPR"))return t(["OPR"]);break;case "Microsoft Edge":if(Mz()?0:hg("Edge"))return t(["Edge"]);if($zx())return t(["Edg"]);break;case "Chromium":if(_.LN())return t(["Chrome","CriOS","HeadlessChrome"])}return N==="Firefox"&&bQ()||N==="Safari"&&_.jlN()||N==="Android Browser"&&_.iNQ()||N==="Silk"&&hg("Silk")?(t=O[2])&&t[1]||"":""};
_.h9x=function(N){if(Mz()&&N!=="Silk"){var t=Sy.brands.find(function(O){return O.brand===N});
if(!t||!t.version)return NaN;t=t.version.split(".")}else{t=SSO(N);if(t==="")return NaN;t=t.split(".")}return t.length===0?NaN:Number(t[0])};
Yx=function(){return uQ?!!Sy&&!!Sy.platform:!1};
_.MyQ=function(){return Yx()?Sy.platform==="Android":hg("Android")};
bNy=function(){return hg("iPhone")&&!hg("iPod")&&!hg("iPad")};
_.TM=function(){return bNy()||hg("iPad")||hg("iPod")};
_.p4g=function(){return Yx()?Sy.platform==="macOS":hg("Macintosh")};
_.LGp=function(){return Yx()?Sy.platform==="Windows":hg("Windows")};
_.z9O=function(){return Yx()?Sy.platform==="Chrome OS":hg("CrOS")};
_.wt=function(N){return N[N.length-1]};
_.ey=function(N,t,O){t=_.YSM(N,t,O);return t<0?null:typeof N==="string"?N.charAt(t):N[t]};
_.YSM=function(N,t,O){for(var H=N.length,A=typeof N==="string"?N.split(""):N,Z=0;Z<H;Z++)if(Z in A&&t.call(O,A[Z],Z,N))return Z;return-1};
apQ=function(N){for(var t=_.xx,O=typeof N==="string"?N.split(""):N,H=N.length-1;H>=0;H--)if(H in O&&t.call(void 0,O[H],H,N))return H;return-1};
_.W4=function(N,t){return _.qz(N,t)>=0};
_.Ttg=function(N,t){_.W4(N,t)||N.push(t)};
_.rt=function(N,t){t=_.qz(N,t);var O;(O=t>=0)&&_.w4t(N,t);return O};
_.w4t=function(N,t){Array.prototype.splice.call(N,t,1)};
_.Il=function(N){var t=N.length;if(t>0){for(var O=Array(t),H=0;H<t;H++)O[H]=N[H];return O}return[]};
_.Qv=function(N,t){for(var O=1;O<arguments.length;O++){var H=arguments[O];if(_.lQ(H)){var A=N.length||0,Z=H.length||0;N.length=A+Z;for(var U=0;U<Z;U++)N[A+U]=H[U]}else N.push(H)}};
_.PQt=function(N,t,O,H){Array.prototype.splice.apply(N,e9N(arguments,1))};
e9N=function(N,t,O){return arguments.length<=2?Array.prototype.slice.call(N,t):Array.prototype.slice.call(N,t,O)};
X44=function(N,t){t=t||N;for(var O=0,H=0,A={};H<N.length;){var Z=N[H++],U=_.mG(Z)?"o"+_.GM(Z):(typeof Z).charAt(0)+Z;Object.prototype.hasOwnProperty.call(A,U)||(A[U]=!0,t[O++]=Z)}t.length=O};
_.kM9=function(N,t,O){O=O||_.xzt;for(var H=0,A=N.length,Z;H<A;){var U=H+(A-H>>>1);var C=O(t,N[U]);C>0?H=U+1:(A=U,Z=!C)}return Z?H:-H-1};
_.v4=function(N,t,O){if(!_.lQ(N)||!_.lQ(t)||N.length!=t.length)return!1;var H=N.length;O=O||qSS;for(var A=0;A<H;A++)if(!O(N[A],t[A]))return!1;return!0};
_.xzt=function(N,t){return N>t?1:N<t?-1:0};
qSS=function(N,t){return N===t};
fpg=function(N,t,O){t=Array.prototype.splice.call(N,t,1);Array.prototype.splice.call(N,O,0,t[0])};
WGg=function(N){return nxz[N]||""};
lpx=function(N){if(!rgy)return _.Jg(N);N=Ipl.test(N)?N.replace(Ipl,WGg):N;N=atob(N);for(var t=new Uint8Array(N.length),O=0;O<N.length;O++)t[O]=N.charCodeAt(O);return t};
QlS=function(N,t){N.__closure__error__context__984382||(N.__closure__error__context__984382={});N.__closure__error__context__984382.severity=t};
_.ol=function(N){N=Error(N);QlS(N,"warning");return N};
Exg=function(N,t){if(N!=null){var O;var H=(O=mzM)!=null?O:mzM={};O=H[N]||0;O>=t||(H[N]=O+1,N=Error(),QlS(N,"incident"),Ag(N))}};
Ny=function(N,t,O){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(O===void 0?0:O)&&Symbol.for&&N?Symbol.for(N):N!=null?Symbol(N):Symbol():t};
Vr=function(N,t){Op||_.ZY in N||GMN(N,R9N);N[_.ZY]|=t};
Up=function(N,t){Op||_.ZY in N||GMN(N,R9N);N[_.ZY]=t};
vxQ=function(N){if(4&N)return 512&N?512:1024&N?1024:0};
KR=function(N){Vr(N,34);return N};
FB=function(N){Vr(N,8192);return N};
JgS=function(N){Vr(N,32);return N};
df=function(){return typeof BigInt==="function"};
b_=function(N,t){return t===void 0?N.copyOnWrite!==i_&&!!(2&(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.ZY]|0)):!!(2&t)&&N.copyOnWrite!==i_};
_.eE=function(N,t){if(N!=null)if(typeof N==="string")N=N?new zS(N,YX):_.TS();else if(N.constructor!==zS)if(oxO&&N!=null&&N instanceof Uint8Array)N=N.length?new zS(new Uint8Array(N),YX):_.TS();else{if(!t)throw Error();N=void 0}return N};
slx=function(N,t){if(typeof t!=="number"||t<0||t>=N.length)throw Error();};
Nfg=function(N,t,O){var H=t&128?0:-1,A=N.length,Z;if(Z=!!A)Z=N[A-1],Z=Z!=null&&typeof Z==="object"&&Z.constructor===Object;var U=A+(Z?-1:0);for(t=t&128?1:0;t<U;t++)O(t-H,N[t]);if(Z){N=N[A-1];for(var C in N)!isNaN(C)&&O(+C,N[C])}};
XB=function(N){return N&128?P0:void 0};
xX=function(N){N.isGuard_doNotManuallySetPrettyPlease=!0;return N};
ORy=function(){var N=tEQ;return xX(function(t){for(var O in N)if(t===N[O]&&!/^[0-9]+$/.test(O))return!0;return!1})};
_.kX=function(N){var t=N;if(HRt(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t));}else if(AuG(t)&&!Number.isSafeInteger(t))throw Error(String(t));return ZRQ?BigInt(N):N=VEx(N)?N?"1":"0":HRt(N)?N.trim()||"0":String(N)};
Dyg=function(N,t){if(N.length>t.length)return!1;if(N.length<t.length||N===t)return!0;for(var O=0;O<N.length;O++){var H=N[O],A=t[O];if(H>A)return!1;if(H<A)return!0}};
UyM=function(N){var t=N>>>0;qy=t;fR=(N-t)/4294967296>>>0};
nR=function(N){if(N<0){UyM(-N);var t=_.D(C_p(qy,fR));N=t.next().value;t=t.next().value;qy=N>>>0;fR=t>>>0}else UyM(N)};
FZp=function(N){var t=KZS||(KZS=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+N,!0);fR=0;qy=t.getUint32(0,!0)};
dyz=function(N,t){var O=t*4294967296+(N>>>0);return Number.isSafeInteger(O)?O:_.W0(N,t)};
rf=function(N,t){var O=t&2147483648;O&&(N=~N+1>>>0,t=~t>>>0,N==0&&(t=t+1>>>0));N=dyz(N,t);return typeof N==="number"?O?-N:N:O?"-"+N:N};
gXy=function(N){var t=qy,O=fR,H=O>>31;O=(O<<1|t>>>31)^H;N(t<<1^H,O)};
yug=function(N,t){var O=-(N&1);N=(N>>>1|t<<31)^O;return rf(N,t>>>1^O)};
_.W0=function(N,t){t>>>=0;N>>>=0;if(t<=2097151)var O=""+(4294967296*t+N);else df()?O=""+(BigInt(t)<<BigInt(32)|BigInt(N)):(O=(N>>>24|t<<8)&16777215,t=t>>16&65535,N=(N&16777215)+O*6777216+t*6710656,O+=t*8147497,t*=2,N>=1E7&&(O+=N/1E7>>>0,N%=1E7),O>=1E7&&(t+=O/1E7>>>0,O%=1E7),O=t+Bfx(O)+Bfx(N));return O};
Bfx=function(N){N=String(N);return"0000000".slice(N.length)+N};
_.cuQ=function(N,t){t&2147483648?df()?N=""+(BigInt(t|0)<<BigInt(32)|BigInt(N>>>0)):(t=_.D(C_p(N,t)),N=t.next().value,t=t.next().value,N="-"+_.W0(N,t)):N=_.W0(N,t);return N};
IQ=function(N){if(N.length<16)nR(Number(N));else if(df())N=BigInt(N),qy=Number(N&BigInt(4294967295))>>>0,fR=Number(N>>BigInt(32)&BigInt(4294967295));else{var t=+(N[0]==="-");fR=qy=0;for(var O=N.length,H=t,A=(O-t)%6+t;A<=O;H=A,A+=6)H=Number(N.slice(H,A)),fR*=1E6,qy=qy*1E6+H,qy>=4294967296&&(fR+=Math.trunc(qy/4294967296),fR>>>=0,qy>>>=0);t&&(t=_.D(C_p(qy,fR)),N=t.next().value,t=t.next().value,qy=N,fR=t)}};
C_p=function(N,t){t=~t;N?N=~N+1:t+=1;return[N,t]};
l_=function(N){return Array.prototype.slice.call(N)};
_.Ep=function(N,t){throw Error(t===void 0?"unexpected value "+N+"!":t);};
_.GS=function(N){if(N!=null&&typeof N!=="number")throw Error("L`"+typeof N+"`"+N);return N};
_.Ju=function(N){if(N==null||typeof N==="number")return N;if(N==="NaN"||N==="Infinity"||N==="-Infinity")return Number(N)};
$yG=function(N){if(N!=null&&typeof N!=="boolean")throw Error("M`"+_.oQ(N)+"`"+N);return N};
_.jQM=function(N){if(N==null||typeof N==="boolean")return N;if(typeof N==="number")return!!N};
_.tm=function(N){switch(typeof N){case "bigint":return!0;case "number":return Nq(N);case "string":return iR4.test(N);default:return!1}};
_.Hm=function(N){if(!Nq(N))throw _.ol("enum");return N|0};
_.Zz=function(N){return N==null?N:Nq(N)?N|0:void 0};
uBg=function(N){if(typeof N!=="number")throw _.ol("int32");if(!Nq(N))throw _.ol("int32");return N|0};
_.Dz=function(N){return N==null?N:uBg(N)};
_.Ux=function(N){if(N==null)return N;if(typeof N==="string"&&N)N=+N;else if(typeof N!=="number")return;return Nq(N)?N|0:void 0};
_.Spv=function(N){if(N==null)return N;if(typeof N==="string"&&N)N=+N;else if(typeof N!=="number")return;return Nq(N)?N>>>0:void 0};
p0M=function(N){var t=0;t=t===void 0?0:t;if(!_.tm(N))throw _.ol("int64");var O=typeof N;switch(t){case 512:switch(O){case "string":return Cn(N);case "bigint":return String(Kn(64,N));default:return haS(N)}case 1024:switch(O){case "string":return MES(N);case "bigint":return _.kX(Kn(64,N));default:return bRS(N)}case 0:switch(O){case "string":return Cn(N);case "bigint":return _.kX(Kn(64,N));default:return Ff(N)}default:return _.Ep(t,"Unknown format requested type for int64")}};
di=function(N){return N==null?N:p0M(N)};
LZM=function(N){var t=N.length;if(N[0]==="-"?t<20||t===20&&N<="-9223372036854775808":t<19||t===19&&N<="9223372036854775807")return N;IQ(N);return _.cuQ(qy,fR)};
zag=function(N){if(N[0]==="-")var t=!1;else t=N.length,t=t<20?!0:t===20&&N<="18446744073709551615";if(t)return N;IQ(N);return _.W0(qy,fR)};
Ff=function(N){N=gi(N);yO(N)||(nR(N),N=rf(qy,fR));return N};
_.YpS=function(N){N=gi(N);N>=0&&yO(N)||(nR(N),N=dyz(qy,fR));return N};
haS=function(N){N=gi(N);yO(N)?N=String(N):(nR(N),N=_.cuQ(qy,fR));return N};
_.aYQ=function(N){N=gi(N);N>=0&&yO(N)?N=String(N):(nR(N),N=_.W0(qy,fR));return N};
Cn=function(N){var t=gi(Number(N));if(yO(t))return String(t);t=N.indexOf(".");t!==-1&&(N=N.substring(0,t));return LZM(N)};
MES=function(N){var t=gi(Number(N));if(yO(t))return _.kX(t);t=N.indexOf(".");t!==-1&&(N=N.substring(0,t));return df()?_.kX(Kn(64,BigInt(N))):_.kX(LZM(N))};
bRS=function(N){return yO(N)?_.kX(Ff(N)):_.kX(haS(N))};
_.Tfl=function(N){return yO(N)?_.kX(_.YpS(N)):_.kX(_.aYQ(N))};
_.w0M=function(N){var t=gi(Number(N));if(yO(t)&&t>=0)return String(t);t=N.indexOf(".");t!==-1&&(N=N.substring(0,t));return zag(N)};
_.eay=function(N){var t=gi(Number(N));if(yO(t)&&t>=0)return _.kX(t);t=N.indexOf(".");t!==-1&&(N=N.substring(0,t));return df()?_.kX((0,_.Bm)(64,BigInt(N))):_.kX(zag(N))};
_.X0N=function(N){if(N==null)return N;if(typeof N==="bigint")return P_g(N)?N=Number(N):(N=Kn(64,N),N=P_g(N)?Number(N):String(N)),N;if(_.tm(N))return typeof N==="number"?Ff(N):Cn(N)};
xyl=function(N,t){t=t===void 0?!1:t;var O=typeof N;if(N==null)return N;if(O==="bigint")return String(Kn(64,N));if(_.tm(N))return O==="string"?Cn(N):t?haS(N):Ff(N)};
_.kSv=function(N){var t=typeof N;if(N==null)return N;if(t==="bigint")return _.kX(Kn(64,N));if(_.tm(N))return t==="string"?MES(N):bRS(N)};
qpl=function(N){if(N==null)return N;var t=typeof N;if(t==="bigint")return String(Kn(64,N));if(_.tm(N)){if(t==="string")return Cn(N);if(t==="number")return Ff(N)}};
fYO=function(N){if(N==null)return N;var t=typeof N;if(t==="bigint")return String((0,_.Bm)(64,N));if(_.tm(N)){if(t==="string")return _.w0M(N);if(t==="number")return _.YpS(N)}};
_.cm=function(N){if(typeof N!=="string")throw Error();return N};
i1=function(N){if(N!=null&&typeof N!=="string")throw Error();return N};
_.SJ=function(N){return N==null||typeof N==="string"?N:void 0};
ruz=function(N,t,O,H){if(N!=null&&N[hm]===pn)return N;if(!Array.isArray(N))return O?H&2?t[nXl]||(t[nXl]=WZ9(t)):new t:void 0;O=N[_.ZY]|0;H=O|H&32|H&2;H!==O&&Up(N,H);return new t(N)};
WZ9=function(N){N=new N;KR(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return N};
IYg=function(N,t,O){N=t?uBg(N):_.Ux(N);return N==null?O?0:void 0:N|0};
lYO=function(N){return N};
QQg=function(N){return N};
EXO=function(N,t,O,H,A,Z){N=ruz(N,H,O,Z);A&&(N=my9(N));return N};
GSS=function(N){return[N,this.get(N)]};
JuQ=function(){return RaG||(RaG=new z5(KR([]),void 0,void 0,void 0,vXv))};
oXO=function(N){var t=Yr(a1);return t?N[t]:void 0};
tJG=function(N,t){var O=O===void 0?!1:O;if(Yr(sQ9)&&Yr(a1)&&void 0===sQ9){var H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=H[a1];if(!A)return;if(A=A.reviveUnknownFields)try{A(H,t,NiG);return}catch(Z){Ag(Z)}}O&&(N=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(O=Yr(a1))&&O in N&&(N=N[O])&&delete N[t])};
Hnt=function(N,t){var O=Yr(a1),H;Op&&O&&((H=N[O])==null?void 0:H[t])!=null&&Exg(OnN,3)};
Znz=function(N,t){t<100||Exg(AmN,1)};
K5y=function(N,t,O,H){var A=H!==void 0;H=!!H;var Z=Yr(a1),U;!A&&Op&&Z&&(U=N[Z])&&VJz(U,Znz);Z=[];var C=N.length;U=4294967295;var F=!1,g=!!(t&64),B=g?t&128?0:-1:void 0;if(!(t&1)){var c=C&&N[C-1];c!=null&&typeof c==="object"&&c.constructor===Object?(C--,U=C):c=void 0;if(g&&!(t&128)&&!A){F=!0;var u;U=((u=Dql)!=null?u:lYO)(U-B,B,N,c,void 0)+B}}t=void 0;for(u=0;u<C;u++){var S=N[u];if(S!=null&&(S=O(S,H))!=null)if(g&&u>=U){var b=u-B,z=void 0;((z=t)!=null?z:t={})[b]=S}else Z[u]=S}if(c)for(var w in c)C=c[w],
C!=null&&(C=O(C,H))!=null&&(u=+w,S=void 0,g&&!Number.isNaN(u)&&(S=u+B)<U?Z[S]=C:(u=void 0,((u=t)!=null?u:t={})[w]=C));t&&(F?Z.push(t):Z[U]=t);A&&Yr(a1)&&(N=oXO(N))&&N instanceof Uqg&&(Z[a1]=C14(N));return Z};
dqN=function(N){N[0]=F5g(N[0]);N[1]=F5g(N[1]);return N};
F5g=function(N){switch(typeof N){case "number":return Number.isFinite(N)?N:""+N;case "bigint":return P_g(N)?Number(N):""+N;case "boolean":return N?1:0;case "object":if(Array.isArray(N)){var t=N[_.ZY]|0;return N.length===0&&t&1?void 0:K5y(N,t,F5g)}if(N!=null&&N[hm]===pn)return grl(N);if(N instanceof zS){t=N.JSC$8975_value_;if(t==null)N="";else if(typeof t==="string")N=t;else{if(rgy){for(var O="",H=0,A=t.length-10240;H<A;)O+=String.fromCharCode.apply(null,t.subarray(H,H+=10240));O+=String.fromCharCode.apply(null,
H?t.subarray(H):t);t=btoa(O)}else t=_.wi(t);N=N.JSC$8975_value_=t}return N}if(N instanceof z5)return N=N.size!==0?ymz(N,dqN):void 0,N;return}return N};
Pm=function(N,t){if(t){Dql=t==null||t===lYO||t[Bit]!==cmM?lYO:t;try{return grl(N)}finally{Dql=void 0}}return grl(N)};
grl=function(N){N=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return K5y(N,N[_.ZY]|0,F5g)};
inS=function(N){switch(typeof N){case "boolean":return $qy||($qy=[0,void 0,!0]);case "number":return N>0?void 0:N===0?j1g||(j1g=[0,void 0]):[-N,void 0];case "string":return[0,N];case "object":return N}};
Xf=function(N,t){return uf9(N,t[0],t[1])};
_.kr=function(N,t,O){return uf9(N,t,O,2048)};
uf9=function(N,t,O,H){H=H===void 0?0:H;if(N==null){var A=32;O?(N=[O],A|=128):N=[];t&&(A=A&-16760833|(t&1023)<<14)}else{if(!Array.isArray(N))throw Error("O");A=N[_.ZY]|0;if(Sxz&&1&A)throw Error("P");2048&A&&!(2&A)&&h5v();if(A&256)throw Error("Q");if(A&64)return(A|H)!==A&&Up(N,A|H),N;if(O&&(A|=128,O!==N[0]))throw Error("R");a:{O=N;A|=64;var Z=O.length;if(Z){var U=Z-1,C=O[U];if(C!=null&&typeof C==="object"&&C.constructor===Object){t=A&128?0:-1;U-=t;if(U>=1024)throw Error("T");for(var F in C)Z=+F,Z<U&&
(O[Z+t]=C[F],delete C[F]);A=A&-16760833|(U&1023)<<14;break a}}if(t){F=Math.max(t,Z-(A&128?0:-1));if(F>1024)throw Error("U");A=A&-16760833|(F&1023)<<14}}}Up(N,A|64|H);return N};
h5v=function(){if(Sxz)throw Error("S");Exg(MJz,5)};
L5G=function(N,t){if(typeof N!=="object")return N;if(Array.isArray(N)){var O=N[_.ZY]|0;return N.length===0&&O&1?void 0:bnx(N,O,t)}if(N!=null&&N[hm]===pn)return pmO(N);if(N instanceof z5){t=N.arrayState;if(t&2)return N;if(!N.size)return;O=KR(ymz(N));if(N.valueCtor)for(N=0;N<O.length;N++){var H=O[N],A=H[1];A==null||typeof A!=="object"?A=void 0:A!=null&&A[hm]===pn?A=pmO(A):Array.isArray(A)?A=bnx(A,A[_.ZY]|0,!!(t&32)):A=void 0;H[1]=A}return O}if(N instanceof zS)return N};
bnx=function(N,t,O){if(t&2)return N;!O||4096&t||16&t?N=fn(N,t,!1,O&&!(t&16)):(Vr(N,34),t&4&&Object.freeze(N));return N};
z5x=function(N,t,O){N=new N.constructor(t);O&&(N.copyOnWrite=i_);N.noLegacyNull=i_;return N};
pmO=function(N){var t=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=t[_.ZY]|0;return b_(N,O)?N:Yxt(N,t,O)?z5x(N,t):fn(t,O)};
fn=function(N,t,O,H){H!=null||(H=!!(34&t));N=K5y(N,t,L5G,H);H=32;O&&(H|=2);t=t&16769217|H;Up(N,t);return N};
my9=function(N){var t=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=t[_.ZY]|0;return b_(N,O)?Yxt(N,t,O)?z5x(N,t,!0):new N.constructor(fn(t,O,!1)):N};
nn=function(N){if(N.copyOnWrite!==i_)return!1;var t=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=fn(t,t[_.ZY]|0);Vr(t,2048);N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=t;N.copyOnWrite=void 0;N.noLegacyNull=void 0;return!0};
Wm=function(N){if(!nn(N)&&b_(N,N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.ZY]|0))throw Error();};
I1=function(N,t){t===void 0&&(t=N[_.ZY]|0);t&32&&!(t&4096)&&Up(N,t|4096)};
Yxt=function(N,t,O){return O&2?!0:O&32&&!(O&4096)?(Up(t,O|2),N.copyOnWrite=i_,!0):!1};
l1=function(N,t,O,H,A){var Z=O+(A?0:-1),U=N.length-1;if(U>=1+(A?0:-1)&&Z>=U){var C=N[U];if(C!=null&&typeof C==="object"&&C.constructor===Object)return C[O]=H,t}if(Z<=U)return N[Z]=H,t;if(H!==void 0){var F;U=((F=t)!=null?F:t=N[_.ZY]|0)>>14&1023||536870912;O>=U?H!=null&&(Z={},N[U+(A?0:-1)]=(Z[O]=H,Z)):N[Z]=H}return t};
_.R1=function(N,t,O,H,A){var Z=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=Z[_.ZY]|0;H=b_(N,U)?1:H;A=!!A||H===3;H===2&&nn(N)&&(Z=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=Z[_.ZY]|0);N=azl(Z,t);var C=N===m5?7:N[_.ZY]|0,F=Tix(C,U);var g=4&F?!1:!0;if(g){4&F&&(N=l_(N),C=0,F=G5(F,U),U=l1(Z,U,t,N));for(var B=0,c=0;B<N.length;B++){var u=O(N[B]);u!=null&&(N[c++]=u)}c<B&&(N.length=c);O=(F|4)&-513;F=O&=-1025;F&=-4097}F!==C&&(Up(N,F),2&F&&Object.freeze(N));return N=wmt(N,F,Z,
U,t,H,g,A)};
wmt=function(N,t,O,H,A,Z,U,C){var F=t;Z===1||(Z!==4?0:2&t||!(16&t)&&32&H)?Jm(t)||(t|=!N.length||U&&!(4096&t)||32&H&&!(4096&t||16&t)?2:256,t!==F&&Up(N,t),Object.freeze(N)):(Z===2&&Jm(t)&&(N=l_(N),F=0,t=G5(t,H),H=l1(O,H,A,N)),Jm(t)||(C||(t|=16),t!==F&&Up(N,t)));2&t||!(4096&t||16&t)||I1(O,H);return N};
azl=function(N,t,O){N=o1(N,t,O);return Array.isArray(N)?N:m5};
Tix=function(N,t){2&t&&(N|=2);return N|1};
Jm=function(N){return!!(2&N)&&!!(4&N)||!!(256&N)};
e5l=function(N){return _.eE(N,!0)};
P1Q=function(N){N=l_(N);for(var t=0;t<N.length;t++){var O=N[t]=l_(N[t]);Array.isArray(O[1])&&(O[1]=KR(O[1]))}return FB(N)};
_.XmN=function(N,t,O,H,A){var Z=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=Z[_.ZY]|0;var C=b_(N,U);a:{!C&&nn(N)&&(Z=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=Z[_.ZY]|0);var F=o1(Z,t);N=!1;if(F==null){if(C){t=JuQ();break a}F=[]}else if(F.constructor===z5)if(F.arrayState&2&&!C)F=ymz(F);else{t=F;break a}else Array.isArray(F)?N=!!((F[_.ZY]|0)&2):F=[];if(C){if(!F.length){t=JuQ();break a}N||(N=!0,KR(F))}else N&&(N=!1,FB(F),F=P1Q(F));!N&&U&32&&JgS(F);H=new z5(F,O,H,A);U=
l1(Z,U,t,H);N||I1(Z,U);t=H}!C&&O&&(t.callToMutableOnAccess=!0);return t};
_.sx=function(N,t,O,H){Wm(N);var A=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=A[_.ZY]|0;if(O==null)return l1(A,Z,t),N;var U=O===m5?7:O[_.ZY]|0,C=U,F=Jm(U),g=F||Object.isFrozen(O);F||(U=0);g||(O=l_(O),C=0,U=G5(U,Z),g=!1);U|=5;var B;F=(B=vxQ(U))!=null?B:0;for(B=0;B<O.length;B++){var c=O[B],u=H(c,F);Object.is(c,u)||(g&&(O=l_(O),C=0,U=G5(U,Z),g=!1),O[B]=u)}U!==C&&(g&&(O=l_(O),U=G5(U,Z)),Up(O,U));l1(A,Z,t,O);return N};
_.Nm=function(N,t,O,H,A){Wm(N);var Z=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l1(Z,Z[_.ZY]|0,t,(H==="0"?Number(O)===0:O===H)?void 0:O,A);return N};
_.tR=function(N,t,O){if(t&2)throw Error();var H=XB(t),A=azl(N,O,H),Z=A===m5?7:A[_.ZY]|0,U=Tix(Z,t);if(2&U||Jm(U)||16&U)U===Z||Jm(U)||Up(A,U),A=l_(A),Z=0,U=G5(U,t),l1(N,t,O,A,H);U&=-13;U!==Z&&Up(A,U);return A};
xqg=function(N){if(Op){var t;return(t=N[O1])!=null?t:N[O1]=new Map}if(O1 in N)return N[O1];t=new Map;Object.defineProperty(N,O1,{value:t});return t};
qxO=function(N,t,O,H,A){var Z=xqg(N),U=k54(Z,N,t,O,A);U!==H&&(U&&(t=l1(N,t,U,void 0,A)),Z.set(O,H));return t};
k54=function(N,t,O,H,A){var Z=N.get(H);if(Z!=null)return Z;for(var U=Z=0;U<H.length;U++){var C=H[U];o1(t,C,A)!=null&&(Z!==0&&(O=l1(t,O,Z,void 0,A)),Z=C)}N.set(H,Z);return Z};
fzl=function(N,t,O,H,A){var Z=!1;H=o1(N,H,A,function(U){var C=ruz(U,O,!1,t);Z=C!==U&&C!=null;return C});
if(H!=null)return Z&&!b_(H)&&I1(N,t),H};
nrl=function(N,t,O,H,A,Z,U,C){var F=b_(N,O);Z=F?1:Z;U=!!U||Z===3;F=C&&!F;(Z===2||F)&&nn(N)&&(t=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=t[_.ZY]|0);N=azl(t,A);var g=N===m5?7:N[_.ZY]|0,B=Tix(g,O);if(C=!(4&B)){var c=N,u=O,S=!!(2&B);S&&(u|=2);for(var b=!S,z=!0,w=0,P=0;w<c.length;w++){var x=ruz(c[w],H,!1,u);if(x instanceof H){if(!S){var l=b_(x);b&&(b=!l);z&&(z=l)}c[P++]=x}}P<w&&(c.length=P);B|=4;B=z?B&-4097:B|4096;B=b?B|8:B&-9}B!==g&&(Up(N,B),2&B&&Object.freeze(N));if(F&&!(8&B||!N.length&&
(Z===1||(Z!==4?0:2&B||!(16&B)&&32&O)))){Jm(B)&&(N=l_(N),B=G5(B,O),O=l1(t,O,A,N));H=N;F=B;for(g=0;g<H.length;g++)c=H[g],B=my9(c),c!==B&&(H[g]=B);F|=8;B=F=H.length?F|4096:F&-4097;Up(N,B)}return N=wmt(N,B,t,O,A,Z,C,U)};
W5p=function(N){N==null&&(N=void 0);return N};
G5=function(N,t){return N=(2&t?N|2:N&-3)&-273};
_.rm9=function(N,t,O,H,A){Wm(N);t=_.R1(N,t,A,2,!0);var Z;A=(Z=vxQ(t===m5?7:t[_.ZY]|0))!=null?Z:0;t.push(O(H,A));return N};
IzM=function(N,t,O,H,A,Z,U){Wm(N);var C=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;N=nrl(N,C,C[_.ZY]|0,O,t,2,!0);if(Z&&U)A!=null||(A=N.length-1),slx(N,A),N.splice(A,Z),N.length||(N[_.ZY]&=-4097);else{if(Z){if(typeof A!=="number"||A<0||A>N.length)throw Error();}else H=H!=null?H:new O;A!=void 0?N.splice(A,Z,H):N.push(H);A=O=N===m5?7:N[_.ZY]|0;(H=b_(H))?(O&=-9,N.length===1&&(O&=-4097)):O|=4096;O!==A&&Up(N,O);H||I1(C)}};
Q1S=function(N,t){if(typeof N==="string")return new AR(lpx(N),t);if(Array.isArray(N))return new AR(new Uint8Array(N),t);if(N.constructor===Uint8Array)return new AR(N,!1);if(N.constructor===ArrayBuffer)return N=new Uint8Array(N),new AR(N,!1);if(N.constructor===zS)return t=lzM(N)||new Uint8Array(0),new AR(t,!0,N);if(N instanceof Uint8Array)return N=N.constructor===Uint8Array?N:new Uint8Array(N.buffer,N.byteOffset,N.byteLength),new AR(N,!1);throw Error();};
Erg=function(N){switch(typeof N){case "string":mqx(N)}};
R5v=function(N){switch(typeof N){case "string":G5O(N)}};
Zu=function(){var N=function(){throw Error();};
Object.setPrototypeOf(N,N.prototype);return N};
JmQ=function(N,t){var O=O===void 0?vrG:O;return new V$(N,t,O)};
NDG=function(N,t,O,H,A){ort(N,O,s1t(t,H),A)};
Du=function(N,t,O,H){var A=H[N];if(A)return A;A={};A.binaryFields=H;A.messageMetadata=inS(H[0]);var Z=H[1],U=1;Z&&Z.constructor===Object&&(A.extensions=Z,Z=H[++U],typeof Z==="function"&&(A.isMessageSet=!0,ts9!=null||(ts9=Z),O89!=null||(O89=H[U+1]),Z=H[U+=2]));for(var C={};Z&&H8t(Z);){for(var F=0;F<Z.length;F++)C[Z[F]]=Z;Z=H[++U]}for(F=1;Z!==void 0;){typeof Z==="number"&&(F+=Z,Z=H[++U]);var g=void 0;if(Z instanceof V$)var B=Z;else B=AR9,U--;Z=void 0;if((Z=B)==null?0:Z.$$isMsg){Z=H[++U];g=H;var c=U;
typeof Z==="function"&&(Z=Z(),g[c]=Z);g=Z}Z=H[++U];c=F+1;typeof Z==="number"&&Z<0&&(c-=Z,Z=H[++U]);for(;F<c;F++){var u=C[F];g?O(A,F,B,g,u):t(A,F,B,u)}}return H[N]=A};
H8t=function(N){return Array.isArray(N)&&!!N.length&&typeof N[0]==="number"&&N[0]>0};
Vsl=function(N){return Array.isArray(N)?N[0]instanceof V$?N:[Z8p,N]:[N,void 0]};
s1t=function(N,t){if(N instanceof _.C8)return N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(N))return Xf(N,t)};
Dml=function(N,t,O,H){var A=O.$$binaryReaderFn;N[t]=H?function(Z,U,C){return A(Z,U,C,H)}:A};
C9Q=function(N,t,O,H,A){var Z=O.$$binaryReaderFn,U,C;N[t]=function(F,g,B){return Z(F,g,B,C||(C=Du(UmQ,Dml,C9Q,H).messageMetadata),U||(U=KAz(H)),A)}};
KAz=function(N){var t=N[FAS];if(t!=null)return t;var O=Du(UmQ,Dml,C9Q,N);t=O.isMessageSet?function(H,A){return ts9(H,A,O)}:function(H,A){for(;dmO(A)&&A.nextWireType_!=4;){var Z=A.nextField_,U=O[Z];
if(U==null){var C=O.extensions;C&&(C=C[Z])&&(C=gwy(C),C!=null&&(U=O[Z]=C))}if(U==null||!U(A,H,Z)){C=A;U=C.fieldCursor_;yRp(C);if(C.discardUnknownFields)var F=void 0;else{var g=C.decoder_.cursor_-U;C.decoder_.cursor_=U;F=BDv(C.decoder_,g)}g=C=U=void 0;var B=H;F&&((U=(C=(g=B[a1])!=null?g:B[a1]=new Uqg)[Z])!=null?U:C[Z]=[]).push(F)}}if(H=oXO(H))H.reviveUnknownFields=O.binaryFields[cRM];return!0};
N[FAS]=t;N[cRM]=$mp.bind(N);return t};
$mp=function(N,t,O,H){var A=this[UmQ],Z=this[FAS],U=Xf(void 0,A.messageMetadata),C=oXO(N);if(C){var F=!1,g=A.extensions;if(g){A=function(b,z,w){if(w.length!==0)if(g[z])for(b=_.D(w),z=b.next();!z.done;z=b.next()){z=jdQ(z.value);try{F=!0,Z(U,z)}finally{z.free()}}else H==null||H(N,z,w)};
if(t==null)VJz(C,A);else if(C!=null){var B=C[t];B&&A(C,t,B)}if(F){var c=N[_.ZY]|0;if(c&2&&c&2048&&(O==null||!O.reviveIntoImmutable))throw Error();var u=XB(c),S=function(b,z){if(o1(N,b,u)!=null)switch(O==null?void 0:O.resolutionBehavior){case 1:return;default:throw Error();}z!=null&&(c=l1(N,c,b,z,u));delete C[b]};
t==null?Nfg(U,U[_.ZY]|0,function(b,z){S(b,z)}):S(t,o1(U,t,u))}}}};
gwy=function(N){N=Vsl(N);var t=N[0].$$binaryReaderFn;if(N=N[1]){var O=KAz(N),H=Du(UmQ,Dml,C9Q,N).messageMetadata;return function(A,Z,U){return t(A,Z,U,H,O)}}return t};
i8y=function(N,t,O){N[t]=O.$$binaryWriterFn};
S19=function(N,t,O,H){var A,Z,U=O.$$binaryWriterFn;N[t]=function(C,F,g){return U(C,F,g,Z||(Z=Du(uVt,i8y,S19,H).messageMetadata),A||(A=hrx(H)))}};
hrx=function(N){var t=N[Msl];if(!t){var O=Du(uVt,i8y,S19,N);t=function(H,A){return b8M(H,A,O)};
N[Msl]=t}return t};
b8M=function(N,t,O){Nfg(N,N[_.ZY]|0,function(H,A){if(A!=null){var Z=plz(O,H);Z?Z(t,A,H):H<500||Exg(LA4,3)}});
(N=oXO(N))&&VJz(N,function(H,A,Z){K8(t,t.encoder_.end());for(H=0;H<Z.length;H++)K8(t,lzM(Z[H])||new Uint8Array(0))})};
plz=function(N,t){var O=N[t];if(O)return O;if(O=N.extensions)if(O=O[t]){O=Vsl(O);var H=O[0].$$binaryWriterFn;if(O=O[1]){var A=hrx(O),Z=Du(uVt,i8y,S19,O).messageMetadata;O=N.isMessageSet?O89(Z,A):function(U,C,F){return H(U,C,F,Z,A)}}else O=H;
return N[t]=O}};
_.zrO=function(N,t,O){if(Array.isArray(t)){var H=t[_.ZY]|0;if(H&4)return t;for(var A=0,Z=0;A<t.length;A++){var U=N(t[A]);U!=null&&(t[Z++]=U)}Z<A&&(t.length=Z);N=H|1;O&&(N=(N|4)&-1537);N!==H&&Up(t,N);O&&N&2&&Object.freeze(t);return t}};
_.FV=function(N,t,O){return new V$(N,t,O)};
_.Y1y=function(N,t,O){return new V$(N,t,O)};
_.gD=function(N,t,O){l1(N,N[_.ZY]|0,t,O,XB(N[_.ZY]|0))};
auy=function(N,t,O){t=_.Ju(t);t!=null&&(_.y$(N,O,1),N=N.encoder_,O=KZS||(KZS=new DataView(new ArrayBuffer(8))),O.setFloat64(0,+t,!0),qy=O.getUint32(0,!0),fR=O.getUint32(4,!0),_.Bl(N,qy),_.Bl(N,fR))};
TDp=function(N,t,O){t=_.Ju(t);t!=null&&(_.y$(N,O,5),N=N.encoder_,FZp(t),_.Bl(N,qy))};
_.js=function(N,t,O){t=qpl(t);if(t!=null&&(Erg(t),t!=null))switch(_.y$(N,O,0),typeof t){case "number":N=N.encoder_;nR(t);$w(N,qy,fR);break;case "bigint":O=BigInt.asUintN(64,t);O=new wl9(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)));$w(N.encoder_,O.JSC$9018_lo,O.JSC$9018_hi);break;default:O=mqx(t),$w(N.encoder_,O.JSC$9018_lo,O.JSC$9018_hi)}};
P9y=function(N,t,O){t=fYO(t);if(t!=null&&(R5v(t),t!=null))switch(_.y$(N,O,0),typeof t){case "number":N=N.encoder_;nR(t);$w(N,qy,fR);break;case "bigint":O=erp(t);$w(N.encoder_,O.JSC$9016_lo,O.JSC$9016_hi);break;default:O=G5O(t),$w(N.encoder_,O.JSC$9016_lo,O.JSC$9016_hi)}};
xmx=function(N,t,O){t=_.Ux(t);t!=null&&t!=null&&(_.y$(N,O,0),_.XlS(N.encoder_,t))};
_.q1y=function(N,t,O){kNv(N,O,fYO(t))};
fux=function(N,t,O){t=_.jQM(t);t!=null&&(_.y$(N,O,0),N.encoder_.JSC$9020_buffer_.push(t?1:0))};
WAM=function(N,t,O){t=_.SJ(t);t!=null&&nwt(N,O,dzg(t))};
rRg=function(N,t,O,H,A){ort(N,O,s1t(t,H),A)};
_.Iul=function(N,t,O){t=t==null||typeof t=="string"||t instanceof zS?t:void 0;t!=null&&nwt(N,O,Q1S(t,!0).buffer)};
lup=function(N,t,O){t=_.Spv(t);t!=null&&t!=null&&(_.y$(N,O,0),i9(N.encoder_,t))};
_.QdG=function(N,t,O){t=_.Ux(t);t!=null&&(t=parseInt(t,10),_.y$(N,O,0),_.XlS(N.encoder_,t))};
_.u9=function(N,t){return function(O,H){var A={treatNewDataAsImmutable:!0};H&&Object.assign(A,H);O=jdQ(O,void 0,void 0,A);try{var Z=new N,U=Z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;KAz(t)(U,O);var C=Z}finally{O.free()}return C}};
_.Ss=function(N){return function(t){return mmy(t,N)}};
EwM=function(N){return function(){return mmy(this,N)}};
_.GNO=function(N){return xX(function(t){return t instanceof N&&!b_(t)})};
_.hR=function(N){return function(t){return Rrg(N,t)}};
sdg=function(N,t){return vw9({child:N,origin:t||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:JRp,getPayloadCase:function(O){return O.getPayloadCase()},
createInitMessage:function(O){var H=new b9,A=new owv;O=_.L8(A,1,O);return _.zN(H,5,Yw,O)}})};
ad=function(N){return{valueOf:N}.valueOf()};
tV9=function(){var N=null;if(!NGS)return N;try{var t=function(O){return O};
N=NGS.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(O){}return N};
HUg=function(){OUO===void 0&&(OUO=tV9());return OUO};
_.wD=function(N){var t=HUg();N=t?t.createScriptURL(N):N;return new TN(N)};
_.es=function(N){if(N instanceof TN)return N.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Pl=function(N){return Object.isFrozen(N)&&Object.isFrozen(N.raw)};
AYQ=function(N){return N.toString().indexOf("`")===-1};
xw=function(N){return new _.XV(ZUt,N)};
qm=function(N){return N instanceof _.XV};
_.f8=function(N){if(qm(N))return N.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
n8=function(N){return new VVO(function(t){return t.substr(0,N.length+1).toLowerCase()===N+":"})};
_.Wl=function(N,t){t=t===void 0?Dox:t;if(qm(N))return N;for(var O=0;O<t.length;++O){var H=t[O];if(H instanceof VVO&&H.isValid(N))return xw(N)}};
_.Id=function(N,t){t=t===void 0?Dox:t;return _.Wl(N,t)||rD};
_.l9=function(N){var t=window;if(typeof MediaSource!=="undefined"&&N instanceof MediaSource||typeof t.ManagedMediaSource!=="undefined"&&N instanceof t.ManagedMediaSource)return xw(URL.createObjectURL(N));t=N.type;t.toLowerCase()==="application/octet-stream"?t=!0:(t=t.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),t=(t==null?void 0:t.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(t[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(t[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(t[1])||/^font\/[\w-]+$/i.test(t[1])));if(!t)throw Error("Z");return xw(URL.createObjectURL(N))};
_.Uoz=function(N){for(var t=_.E1.apply(1,arguments),O=[N[0]],H=0;H<t.length;H++)O.push(String(t[H])),O.push(N[H+1]);return xw(O.join(""))};
_.KnN=function(N){if(!CkQ){a:{var t=document.createElement("a");try{t.href=N}catch(O){N=void 0;break a}N=t.protocol;N=N===":"||N===""?"https:":N}return N}try{t=new URL(N)}catch(O){return"https:"}return t.protocol};
_.GN=function(N){N instanceof _.XV?N=_.f8(N):N=Fn4.test(N)?N:void 0;return N};
Rd=function(N,t){t=_.GN(t);t!==void 0&&(N.href=t)};
JR=function(N){var t=HUg();N=t?t.createHTML(N):N;return new vl(N)};
od=function(N){if(N instanceof vl)return N.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.No=function(N,t){N.src=_.es(t).toString()};
doM=function(N,t){N.setAttribute("sandbox","");for(var O=0;O<t.length;O++)N.sandbox.supports&&!N.sandbox.supports(t[O])||N.sandbox.add(t[O])};
_.tY=function(N,t,O){N.removeAttribute("srcdoc");switch(t){case 0:if(O instanceof TN)throw new gCg("TrustedResourceUrl",0);doM(N,[]);t=_.GN(O);t!==void 0&&(N.src=t);break;case 1:if(!(O instanceof TN))throw new gCg(typeof O,1);doM(N,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.No(N,O);break;case 2:if(O instanceof TN)throw new gCg("TrustedResourceUrl",2);doM(N,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
t=_.GN(O);t!==void 0&&(N.src=t);break;default:_.Ep(t)}};
_.OG=function(N,t,O,H){t=_.GN(t);return t!==void 0?N.open(t,O,H):null};
_.H6=function(N){N=N===void 0?document:N;var t,O;N=(O=(t=N).querySelector)==null?void 0:O.call(t,"script[nonce]");return N==null?"":N.nonce||N.getAttribute("nonce")||""};
_.Zx=function(N){var t=HUg();N=t?t.createScript(N):N;return new _.AY(N)};
V0=function(N){if(N instanceof _.AY)return N.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
yYp=function(N){var t=_.H6(N.ownerDocument);t&&N.setAttribute("nonce",t)};
_.Dx=function(N,t){N.textContent=V0(t);yYp(N)};
_.UG=function(N,t){N.src=_.es(t);yYp(N)};
_.CU=function(N,t){if(N.nodeType===1&&/^(script|style)$/i.test(N.tagName))throw Error("Z");N.innerHTML=od(t)};
_.KU=function(N,t,O,H){if(N.length===0)throw Error("Z");N=N.map(function(Z){if(Z instanceof BG9)Z=Z.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return Z});
var A=O.toLowerCase();if(N.every(function(Z){return A.indexOf(Z)!==0}))throw Error("aa`"+O);
t.setAttribute(O,H)};
_.F1=function(N,t,O){if(t instanceof TN)N.href=_.es(t).toString(),N.rel=O;else{if(cYz.indexOf(O)===-1)throw Error("ba`"+O);t=_.GN(t);t!==void 0&&(N.href=t,N.rel=O)}};
$oN=function(N){if(N instanceof dG)return N.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.jxG=function(N,t){t=_.GN(t);t!==void 0&&(N.href=t)};
iUN=function(N){return new Worker(_.es(N),void 0)};
u1t=function(N){return _.wD(N)};
SGp=function(N,t){N&&(t=N.indexOf(t),0<=t&&N.splice(t,1))};
gG=function(N){return typeof N==="function"};
hUz=function(N){return N instanceof y0||N&&"closed"in N&&gG(N.remove)&&gG(N.add)&&gG(N.unsubscribe)};
B6=function(){};
c6=function(N){MVO(function(){throw N;})};
$C=function(N){return N};
jV=function(){return bUy(_.E1.apply(0,arguments))};
bUy=function(N){return N.length===0?$C:N.length===1?N[0]:function(t){return N.reduce(function(O,H){return H(O)},t)}};
p69=function(N){var t;return(t=N!=null?N:void 0)!=null?t:Promise};
Lnz=function(N,t){return new ik(function(O){var H=0;return t.schedule(function(){H===N.length?O.complete():(O.next(N[H++]),O.closed||this.schedule())})})};
zUO=function(N,t){if(!N)throw Error("ca");return new ik(function(O){var H=new y0;H.add(t.schedule(function(){var A=N[Symbol.asyncIterator]();H.add(t.schedule(function(){var Z=this;A.next().then(function(U){U.done?O.complete():(O.next(U.value),Z.schedule())})}))}));
return H})};
YGx=function(N,t,O){t=t.schedule(function(){try{O.call(this)}catch(H){N.error(H)}},0);
N.add(t)};
TGO=function(N,t){return new ik(function(O){var H;O.add(t.schedule(function(){H=N[axv]();YGx(O,t,function(){var A=H.next(),Z=A.value;A.done?O.complete():(O.next(Z),this.schedule())})}));
return function(){var A;return gG((A=H)==null?void 0:A.return)&&H.return()}})};
w6N=function(N,t){return new ik(function(O){var H=new y0;H.add(t.schedule(function(){var A=N[uk]();H.add(A.subscribe({next:function(Z){H.add(t.schedule(function(){return O.next(Z)}))},
error:function(Z){H.add(t.schedule(function(){return O.error(Z)}))},
complete:function(){H.add(t.schedule(function(){return O.complete()}))}}))}));
return H})};
eUy=function(N,t){return new ik(function(O){return t.schedule(function(){return N.then(function(H){O.add(t.schedule(function(){O.next(H);O.add(t.schedule(function(){return O.complete()}))}))},function(H){O.add(t.schedule(function(){return O.error(H)}))})})})};
Pkl=function(N){return new TypeError("da`"+(N!==null&&typeof N==="object"?"an invalid object":"'"+N+"'"))};
xoG=function(N,t){if(N!=null){if(gG(N[uk]))return w6N(N,t);if(X69(N))return Lnz(N,t);if(gG(N==null?void 0:N.then))return eUy(N,t);if(Symbol.asyncIterator&&gG(N==null?void 0:N[Symbol.asyncIterator]))return zUO(N,t);if(gG(N==null?void 0:N[axv]))return TGO(N,t)}throw Pkl(N);};
hY=function(N,t){return t?xoG(N,t):SV(N)};
SV=function(N){if(N instanceof ik)return N;if(N!=null){if(gG(N[uk]))return kyy(N);if(X69(N))return qGy(N);if(gG(N==null?void 0:N.then))return fxO(N);if(Symbol.asyncIterator&&gG(N==null?void 0:N[Symbol.asyncIterator]))return nCS(N);if(gG(N==null?void 0:N[axv]))return WnS(N)}throw Pkl(N);};
kyy=function(N){return new ik(function(t){var O=N[uk]();if(gG(O.subscribe))return O.subscribe(t);throw new TypeError("ea");})};
qGy=function(N){return new ik(function(t){for(var O=0;O<N.length&&!t.closed;O++)t.next(N[O]);t.complete()})};
fxO=function(N){return new ik(function(t){N.then(function(O){t.closed||(t.next(O),t.complete())},function(O){return t.error(O)}).then(null,c6)})};
WnS=function(N){return new ik(function(t){for(var O=N[axv]();!t.closed;){var H=O.next(),A=H.value;H.done?t.complete():t.next(A)}return function(){return gG(O==null?void 0:O.return)&&O.return()}})};
nCS=function(N){return new ik(function(t){rYt(N,t).catch(function(O){return t.error(O)})})};
rYt=function(N,t){var O,H,A,Z,U,C;return _.K(function(F){switch(F.nextAddress){case 1:_.Mo(F,2,3),Z=_.bk(N);case 5:return F.yield(Z.next(),8);case 8:H=F.yieldResult;if(H.done){F.jumpTo(3);break}U=H.value;t.next(U);F.jumpTo(5);break;case 3:_.pU(F);_.zy(F,9);if(!H||H.done||!(A=Z.return)){F.jumpTo(9);break}return F.yield(A.call(Z),9);case 9:_.pU(F,0,0,1);if(O)throw O.error;_.YC(F,10,1);break;case 10:_.YC(F,4);break;case 2:C=_.ax(F);O={error:C};F.jumpTo(3);break;case 4:t.complete(),_.Ty(F)}})};
Ixx=function(N,t){return t?Lnz(N,t):qGy(N)};
lxv=function(N){return gG(N[N.length-1])?N.pop():void 0};
eV=function(N){var t=N[N.length-1];return t&&gG(t.schedule)?N.pop():void 0};
P6=function(){var N=_.E1.apply(0,arguments),t=eV(N);return t?Lnz(N,t):Ixx(N)};
X1=function(N){var t=gG(N)?N:function(){return N};
return new ik(function(O){return O.error(t())})};
xC=function(N){return function(t){if(gG(t==null?void 0:t.lift))return t.lift(function(O){try{return N(O,this)}catch(H){this.error(H)}});
throw new TypeError("fa");}};
qo=function(){return xC(function(N,t){var O=null;N._refCount++;var H=new kC(t,void 0,void 0,void 0,function(){if(!N||N._refCount<=0||0<--N._refCount)O=null;else{var A=N._connection,Z=O;O=null;!A||Z&&A!==Z||A.unsubscribe();t.unsubscribe()}});
N.subscribe(H);H.closed||(O=N.connect())})};
mol=function(){var N=Qx9;var t=t===void 0?0:t;return xC(function(O,H){H.add(N.schedule(function(){return O.subscribe(H)},t))})};
fU=function(N){return xC(function(t,O){var H=0;t.subscribe(new kC(O,function(A){O.next(N.call(void 0,A,H++))}))})};
GyN=function(N){return fU(function(t){return ECQ(t)?N.apply(null,_.W6(t)):N(t)})};
sxt=function(N){if(N.length===1){var t=N[0];if(RUg(t))return{args:t,keys:null};if(t&&typeof t==="object"&&vCG(t)===JYM)return N=oCx(t),{args:N.map(function(O){return t[O]}),
keys:N}}return{args:N,keys:null}};
Ix=function(){var N=_.E1.apply(0,arguments),t=eV(N),O=lxv(N);N=sxt(N);var H=N.args,A=N.keys;if(H.length===0)return hY([],t);t=new ik(Nc9(H,t,A?function(Z){for(var U={},C=0;C<Z.length;C++)U[A[C]]=Z[C];return U}:$C));
return O?t.pipe(GyN(O)):t};
Nc9=function(N,t,O){O=O===void 0?$C:O;return function(H){tup(t,function(){for(var A=N.length,Z=Array(A),U=A,C=N.map(function(){return!1}),F=!0,g={i$jscomp$217:0};g.i$jscomp$217<A;g={i$jscomp$217:g.i$jscomp$217},g.i$jscomp$217++)tup(t,function(B){return function(){hY(N[B.i$jscomp$217],t).subscribe(new lk(H,function(c){Z[B.i$jscomp$217]=c;
F&&(C[B.i$jscomp$217]=!0,F=!C.every($C));F||H.next(O(Z.slice()))},function(){return--U===0}))}}(g),H)},H)}};
tup=function(N,t,O){N?O.add(N.schedule(t)):t()};
Omx=function(N,t,O,H){var A=[],Z=0,U=0,C=!1,F=function(g){Z++;SV(O(g,U++)).subscribe(new kC(t,function(B){t.next(B)},void 0,function(){Z--;
for(var B={};A.length&&Z<H;B={bufferedValue:void 0})B.bufferedValue=A.shift(),F(B.bufferedValue);!C||A.length||Z||t.complete()}))};
N.subscribe(new kC(t,function(g){return Z<H?F(g):A.push(g)},void 0,function(){C=!0;
!C||A.length||Z||t.complete()}));
return function(){A=null}};
Q0=function(N,t){var O=O===void 0?Infinity:O;if(gG(t))return Q0(function(H,A){return fU(function(Z,U){return t(H,Z,A,U)})(SV(N(H,A)))},O);
typeof t==="number"&&(O=t);return xC(function(H,A){return Omx(H,A,N,O)})};
HmG=function(N){N=N===void 0?Infinity:N;return Q0($C,N)};
ADl=function(){var N=_.E1.apply(0,arguments);return HmG(1)(Ixx(N,eV(N)))};
ZmO=function(N){return new ik(function(t){SV(N()).subscribe(t)})};
mn=function(N,t,O){if(gG(O)){var H=O;O=void 0}if(H)return mn(N,t,O).pipe(GyN(H));H=_.D(gG(N.addEventListener)&&gG(N.removeEventListener)?VuM.map(function(U){return function(C){return N[U](t,C,O)}}):gG(N.addListener)&&gG(N.removeListener)?Dwy.map(UwM(N,t)):gG(N.on)&&gG(N.off)?Cwy.map(UwM(N,t)):[]);
var A=H.next().value,Z=H.next().value;return!A&&X69(N)?Q0(function(U){return mn(U,t,O)})(Ixx(N)):new ik(function(U){if(!A)throw new TypeError("ga");
var C=function(){var F=_.E1.apply(0,arguments);return U.next(1<F.length?F:F[0])};
A(C);return function(){return Z(C)}})};
UwM=function(N,t){return function(O){return function(H){return N[O](t,H)}}};
Rx=function(){var N=_.E1.apply(0,arguments),t=eV(N);var O=typeof N[N.length-1]==="number"?N.pop():Infinity;return N.length?N.length===1?SV(N[0]):HmG(O)(Ixx(N,t)):EG};
Fq9=function(N){return N.length===1&&Kqt(N[0])?N[0]:N};
dwN=function(){var N=Fq9(_.E1.apply(0,arguments));return xC(function(t,O){var H=[t].concat(_.W6(N)),A=function(){if(!O.closed)if(H.length>0){try{var Z=SV(H.shift())}catch(C){A();return}var U=new kC(O,void 0,B6,B6);O.add(Z.subscribe(U));U.add(A)}else O.complete()};
A()})};
v6=function(N){return xC(function(t,O){var H=0;t.subscribe(new kC(O,function(A){return N.call(void 0,A,H++)&&O.next(A)}))})};
yDN=function(){var N=_.E1.apply(0,arguments);N=Fq9(N);return N.length===1?SV(N[0]):new ik(gmx(N))};
gmx=function(N){return function(t){for(var O=[],H={i$jscomp$220:0};O&&!t.closed&&H.i$jscomp$220<N.length;H={i$jscomp$220:H.i$jscomp$220},H.i$jscomp$220++)O.push(SV(N[H.i$jscomp$220]).subscribe(new kC(t,function(A){return function(Z){if(O){for(var U=0;U<O.length;U++)U!==A.i$jscomp$220&&O[U].unsubscribe();O=null}t.next(Z)}}(H))))}};
Bcp=function(){var N=_.E1.apply(0,arguments),t=lxv(N),O=Fq9(N);return O.length?new ik(function(H){var A=O.map(function(){return[]}),Z=O.map(function(){return!1});
H.add(function(){A=Z=null});
for(var U={sourceIndex$jscomp$1:0};!H.closed&&U.sourceIndex$jscomp$1<O.length;U={sourceIndex$jscomp$1:U.sourceIndex$jscomp$1},U.sourceIndex$jscomp$1++)SV(O[U.sourceIndex$jscomp$1]).subscribe(new kC(H,function(C){return function(F){A[C.sourceIndex$jscomp$1].push(F);A.every(function(g){return g.length})&&(F=A.map(function(g){return g.shift()}),H.next(t?t.apply(null,_.W6(F)):F),A.some(function(g,B){return!g.length&&Z[B]})&&H.complete())}}(U),void 0,function(C){return function(){Z[C.sourceIndex$jscomp$1]=
!0;
!A[C.sourceIndex$jscomp$1].length&&H.complete()}}(U)));
return function(){A=Z=null}}):EG};
cDS=function(N){var t,O,H;return!!N&&typeof N.active==="boolean"&&typeof((t=N.clock)==null?void 0:t.now)==="function"&&((O=N.clock)==null?void 0:O.timeline)!==void 0&&!((H=N.lastMeasurement)==null||!H.timestamp)&&typeof N.equivalentTo==="function"&&typeof N.extrapolateToNow==="function"&&typeof N.extrapolateToTime==="function"&&typeof N.map==="function"&&typeof N.joinWith==="function"};
$wv=function(N){function t(O){return typeof O==="boolean"||typeof O==="string"||typeof O==="number"||O===void 0||O===null}
return t(N)?!0:Array.isArray(N)?N.every(t):typeof N==="object"?Object.keys(N).every(function(O){return typeof O==="string"})&&Object.values(N).every(function(O){return Array.isArray(O)?O.every(t):t(O)}):!1};
jNv=function(N){if($wv(N))return N;if(cDS(N))return{lastMeasurement:{value:jNv(N.lastMeasurement.value),timestamp:JY(N.lastMeasurement.timestamp,new ox(0,N.lastMeasurement.timestamp.timeline))},active:N.active};try{return JSON.parse(JSON.stringify(N))}catch(t){}return String(N)};
sG=function(N,t){return function(O){return new ik(function(H){return O.subscribe(function(A){N.timeExecution(t,function(){H.next(A)})()},function(A){N.timeExecution(t,function(){H.error(A)})()},function(){N.timeExecution(t,function(){H.complete()})()})})}};
imt=function(N,t){var O=!1;return new ik(function(H){var A=N.setTimeout(function(){O=!0;H.next(!0);H.complete()},t);
return function(){O||N.clearTimeout(A)}})};
uay=function(N){N=N.global;if(N.fetchLater)return N.fetchLater.bind(N)};
Nw=function(N){return xC(function(t,O){var H=null,A=!1,Z;H=t.subscribe(new kC(O,void 0,function(U){Z=SV(N(U,Nw(N)(t)));H?(H.unsubscribe(),H=null,Z.subscribe(O)):A=!0}));
A&&(H.unsubscribe(),H=null,Z.subscribe(O))})};
SWO=function(N,t,O){return function(H,A){var Z=O,U=t,C=0;H.subscribe(new kC(A,function(F){var g=C++;U=Z?N(U,F,g):(Z=!0,F);A.next(U)},void 0,void 0))}};
hoM=function(N){N=N===void 0?null:N;return xC(function(t,O){var H=!1;t.subscribe(new kC(O,function(A){H=!0;O.next(A)},void 0,function(){H||O.next(N);
O.complete()}))})};
tD=function(){return xC(function(N,t){N.subscribe(new kC(t,B6))})};
OW=function(N){return xC(function(t,O){t.subscribe(new kC(O,function(){return O.next(N)}))})};
HW=function(N){return N<=0?function(){return EG}:xC(function(t,O){var H=0;
t.subscribe(new kC(O,function(A){++H<=N&&(O.next(A),N<=H&&O.complete())}))})};
AD=function(N){var t=t===void 0?$C:t;var O;N=(O=N)!=null?O:Mul;return xC(function(H,A){var Z,U=!0;H.subscribe(new kC(A,function(C){var F=t(C);if(U||!N(Z,F))U=!1,Z=F,A.next(C)}))})};
Mul=function(N,t){return N===t};
pW9=function(N){N=N===void 0?bmO:N;return xC(function(t,O){var H=!1;t.subscribe(new kC(O,function(A){H=!0;O.next(A)},void 0,function(){return H?O.complete():O.error(N())}))})};
bmO=function(){return new Lql};
ZC=function(){var N=_.E1.apply(0,arguments);return function(t){return ADl(t,P6.apply(null,_.W6(N)))}};
zoy=function(N){return xC(function(t,O){var H=0;t.subscribe(new kC(O,function(A){N.call(void 0,A,H++,t)||(O.next(!1),O.complete())},void 0,function(){O.next(!0);
O.complete()}))})};
YWl=function(){return xC(function(N,t){var O=[];N.subscribe(new kC(t,function(H){O.push(H);1<O.length&&O.shift()},void 0,function(){for(var H=_.D(O),A=H.next();!A.done;A=H.next())t.next(A.value);
t.complete()},function(){O=null}))})};
aCv=function(N,t){var O=arguments.length>=2;return function(H){return H.pipe(N?v6(function(A,Z){return N(A,Z,H)}):$C,YWl(),O?hoM(t):pW9(function(){return new Lql}))}};
DC=function(N){var t=gG(N)?N:function(){return N};
return gG()?xC(function(O,H){var A=t();(void 0)(A).subscribe(H).add(O.subscribe(A))}):function(O){var H=new Vs(O,t);
gG(O==null?void 0:O.lift)&&(H.lift=O.lift);H.source=O;H.subjectFactory=t;return H}};
Cm=function(N){var t=new UW(N,void 0,void 0);return function(O){return DC(function(){return t})(O)}};
Km=function(N,t){return xC(SWO(N,t,arguments.length>=2))};
Fa=function(){var N=_.E1.apply(0,arguments),t=eV(N);return xC(function(O,H){(t?ADl(N,O,t):ADl(N,O)).subscribe(H)})};
dc=function(N){return xC(function(t,O){var H=null,A=0,Z=!1;t.subscribe(new kC(O,function(U){var C;(C=H)==null||C.unsubscribe();C=A++;SV(N(U,C)).subscribe(H=new kC(O,function(F){return O.next(F)},void 0,function(){H=null;
Z&&!H&&O.complete()}))},void 0,function(){(Z=!0,!H)&&O.complete()}))})};
ys=function(N,t){t=t===void 0?!1:t;return xC(function(O,H){var A=0;O.subscribe(new kC(H,function(Z){var U=N(Z,A++);(U||t)&&H.next(Z);!U&&H.complete()}))})};
Tcg=function(N,t,O){var H=gG(N)||t||O?{next:N,error:t,complete:O}:N;return H?xC(function(A,Z){A.subscribe(new kC(Z,function(U){var C;(C=H.next)==null||C.call(H,U);Z.next(U)},function(U){var C;
(C=H.error)==null||C.call(H,U);Z.error(U)},function(){var U;
(U=H.complete)==null||U.call(H);Z.complete()}))}):$C};
wWv=function(){var N=_.E1.apply(0,arguments),t=lxv(N);return xC(function(O,H){for(var A=N.length,Z=Array(A),U=N.map(function(){return!1}),C=!1,F={i$jscomp$230:0};F.i$jscomp$230<A;F={i$jscomp$230:F.i$jscomp$230},F.i$jscomp$230++)SV(N[F.i$jscomp$230]).subscribe(new kC(H,function(g){return function(B){Z[g.i$jscomp$230]=B;
C||U[g.i$jscomp$230]||(U[g.i$jscomp$230]=!0,(C=U.every($C))&&(U=null))}}(F),void 0,B6));
O.subscribe(new kC(H,function(g){C&&(g=[g].concat(_.W6(Z)),H.next(t?t.apply(null,_.W6(g)):g))}))})};
PwQ=function(N){var t=eop;if(t)for(var O in t)Object.prototype.hasOwnProperty.call(t,O)&&N(t[O],O,t)};
XWv=function(){var N=[];PwQ(function(t){N.push(t)});
return N};
kiS=function(N){try{return!!N&&N.location.href!=null&&xwx(N,"foo")}catch(t){return!1}};
_.BW=function(N){return new BG9(N[0].toLowerCase())};
qWy=function(N){for(var t=_.E1.apply(1,arguments),O=N[0],H=0;H<N.length-1;H++)O+=String(t[H]),O+=N[H+1];t=document.implementation.createHTMLDocument("");H=t.createElement("style");t.head.appendChild(H);t=H.sheet;t.insertRule(O,0);if(t.cssRules.length===1&&(O=t.cssRules[0],O instanceof CSSStyleRule))return new dG(O.cssText.replace(/</g,"\\3C "))};
fCS=function(N){try{return new URL(N,window.document.baseURI)}catch(t){return new URL("about:invalid")}};
nmO=function(N,t){var O=t.createRange();O.selectNode(t.body);N=JR(N);return O.createContextualFragment(od(N))};
WqQ=function(N){N=N.nodeName;return typeof N==="string"?N:"FORM"};
rD4=function(N){N=N.nodeType;return N===1||typeof N!=="number"};
$m=function(N,t,O){N.setAttribute(t,O)};
ICO=function(N){return N.parts.map(function(t){var O=t.descriptor;return""+t.url+(O?" "+O:"")}).join(" , ")};
_.ju=function(N){var t=_.E1.apply(1,arguments);if(t.length===0)return _.wD(N[0]);for(var O=N[0],H=0;H<t.length;H++)O+=encodeURIComponent(t[H])+N[H+1];return _.wD(O)};
_.iw=function(N,t){N=_.es(N).toString();var O=N.split(/[?#]/),H=/[?]/.test(N)?"?"+O[1]:"";return lCy(O[0],H,/[#]/.test(N)?"#"+(H?O[2]:O[1]):"",t)};
lCy=function(N,t,O,H){function A(U,C){U!=null&&(Array.isArray(U)?U.forEach(function(F){return A(F,C)}):(t+=Z+encodeURIComponent(C)+"="+encodeURIComponent(U),Z="&"))}
var Z=t.length?"&":"?";H.constructor===Object&&(H=Object.entries(H));Array.isArray(H)?H.forEach(function(U){return A(U[1],U[0])}):H.forEach(A);
return _.wD(N+t+O)};
mwt=function(){var N=V0(QNl).toString();return _.wD(URL.createObjectURL(new Blob([N],{type:"text/javascript"})))};
EmQ=function(N){var t=[],O=0,H;for(H in N)t[O++]=H;return t};
Gi9=function(N,t){for(var O in N)if(N[O]==t)return!0;return!1};
RoG=function(N,t,O){for(var H in N)if(t.call(O,N[H],H,N))return H};
vmg=function(N){if(!N||typeof N!=="object")return N;if(typeof N.clone==="function")return N.clone();if(typeof Map!=="undefined"&&N instanceof Map)return new Map(N);if(typeof Set!=="undefined"&&N instanceof Set)return new Set(N);if(N instanceof Date)return new Date(N.getTime());var t=Array.isArray(N)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(N)||N instanceof DataView?{}:new N.constructor(N.length),O;for(O in N)t[O]=vmg(N[O]);return t};
JDy=function(N){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return JDy.apply(null,arguments[0]);if(t%2)throw Error("ma");for(var O={},H=0;H<t;H+=2)O[arguments[H]]=arguments[H+1];return O};
om9=function(N){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return om9.apply(null,arguments[0]);for(var O={},H=0;H<t;H++)O[arguments[H]]=!0;return O};
uw=function(N,t,O,H){this.top=N;this.right=t;this.bottom=O;this.left=H};
sN4=function(N){N=N.global;if(N.PendingGetBeacon)return N.PendingGetBeacon};
Mw=function(N){return function(t){return t.pipe(NbM(N,DC(new hD)))}};
bw=function(N){return function(t){return t.pipe(NbM(N,Cm(1)))}};
NbM=function(N,t){function O(H){return new ik(function(A){return H.subscribe(function(Z){pm(N,function(){return void A.next(Z)},3)},function(Z){pm(N,function(){return void A.error(Z)},3)},function(){pm(N,function(){return void A.complete()},3)})})}
return jV(O,mol(),t,qo(),O)};
H1l=function(N){var t=tRM(N);return t===null?new Lm(null):t.pipe(fU(function(O){O=O.serialize();if(O1g)O=_.H4.btoa(O);else{for(var H=[],A=0,Z=0;Z<O.length;Z++){var U=O.charCodeAt(Z);U>255&&(H[A++]=U&255,U>>=8);H[A++]=U}O=_.wi(H)}return O}),HW(1),bw(N.queue))};
AI9=function(N){var t=t===void 0?{}:t;if(typeof Event==="function")return new Event(N,t);if(typeof document!=="undefined"){var O=document.createEvent("CustomEvent");O.initCustomEvent(N,t.bubbles||!1,t.cancelable||!1,t.detail);return O}throw Error();};
Z1v=function(N){return typeof N==="string"?document.getElementById(N):N};
Dn9=function(N){var t=!1;t=t===void 0?!1:t;if(N.tagName==="IMG"){if(N.complete&&(!N.naturalWidth||!N.naturalHeight))return!0;var O;if(t&&((O=N.style)==null?void 0:O.display)==="none")return!0}var H,A;return VRv.test((H=N.getAttribute("width"))!=null?H:"")&&VRv.test((A=N.getAttribute("height"))!=null?A:"")};
UnO=function(N,t){if(N.tagName==="IMG")return N.naturalWidth&&N.naturalHeight?!0:!1;try{if(N.readyState)var O=N.readyState;else{var H,A;O=(H=N.contentWindow)==null?void 0:(A=H.document)==null?void 0:A.readyState}return O==="complete"}catch(Z){return t===void 0?!1:t}};
CuS=function(N){N||(N=function(t,O,H){t.addEventListener(O,H)});
return N};
g1p=function(N,t){var O=K7z();O=O===void 0?new F7z:O;if(N=Z1v(N)){var H=CuS(H);for(var A=!1,Z=function(w){A||(A=!0,t(w))},U,C=2,F=0;F<dnG.length;++F)if(dnG[F]===N.tagName){C=3;
U=[N];break}U||(U=N.querySelectorAll(dnG.join(",")));var g=0,B=0,c=!0,u=N=!1;F={};for(var S=0;S<U.length;F={isImg:void 0},S++){var b=U[S];if(!Dn9(b))if(F.isImg=b.tagName==="IMG",UnO(b,O.crossDomainLoadedDefault))N=!0,F.isImg&&(c=!0);else{g++;var z=function(w){return function(P){g--;!g&&c&&Z(C);w.isImg&&(P=P&&P.type==="error",B--,P||(c=!0),!B&&u&&c&&Z(C))}}(F);
H(b,"load",z);F.isImg&&(B++,H(b,"error",z))}}B===0&&(c=!0);U=null;U=_.H4.document.readyState==="complete";if(g===0&&!N&&U)C=5;else if(g||!N){H(_.H4,"load",function(){!O.pendingImagesBlockLoad||!B&&c?Z(4):u=!0});
return}Z(C)}};
yIt=function(N,t,O){if(N)for(var H=0;N!=null&&H<500&&!O(N);++H)N=t(N)};
BbO=function(N,t){yIt(N,function(O){try{return O===O.parent?null:O.parent}catch(H){}return null},t)};
cIv=function(N,t){if(N.tagName=="IFRAME")t(N);else{N=N.querySelectorAll("IFRAME");for(var O=0;O<N.length&&!t(N[O]);++O);}};
$nM=function(N){return(N=N.ownerDocument)&&(N.parentWindow||N.defaultView)||null};
jPl=function(N,t,O){try{var H=JSON.parse(O.data)}catch(U){}if(typeof H==="object"&&H&&H.type==="creativeLoad"){var A=$nM(N);if(O.source&&A){var Z;BbO(O.source,function(U){try{if(U.parent===A)return Z=U,!0}catch(C){}});
Z&&cIv(N,function(U){if(U.contentWindow===Z)return t(H),!0})}}};
i1g=function(N){return typeof N==="string"?document.getElementById(N):N};
MRN=function(){var N={};return N[0]=_.ju(u$t,"current"),N[1]=_.ju(S$O),N[2]=_.ju(hzv),N};
zi=function(N,t){return N.left===t.left&&N.top===t.top&&N.width===t.width&&N.height===t.height};
b1M=function(N,t){return{left:Math.max(N.left,t.left),top:Math.max(N.top,t.top),width:Math.max(0,Math.min(N.left+N.width,t.left+t.width)-Math.max(N.left,t.left)),height:Math.max(0,Math.min(N.top+N.height,t.top+t.height)-Math.max(N.top,t.top))}};
pAN=function(N,t){return{left:Math.round(N.left+t.x),top:Math.round(N.top+t.y),width:N.width,height:N.height}};
L7g=function(N,t,O){if(N&&t!==null&&t!=t.top){if(!t.top)return new _.aN(-12245933,-12245933);t=t.top}try{return(O===void 0?0:O)?(new _.aN(t.innerWidth,t.innerHeight)).round():_.Ti(t).round()}catch(H){return new _.aN(-12245933,-12245933)}};
zzg=function(N,t,O){try{if(N){if(!t.top)return new uw(-12245933,-12245933,-12245933,-12245933);t=t.top}var H=L7g(N,t,O),A=H.height,Z=H.width;if(Z===-12245933)return new uw(Z,Z,Z,Z);var U=wc(eu(t.document)),C=U.x,F=U.y;return new uw(F,C+Z,F+A,C)}catch(g){return new uw(-12245933,-12245933,-12245933,-12245933)}};
Y$l=function(N){var t;return(t=N.google_tag_data)!=null?t:N.google_tag_data={}};
alQ=function(N){var t,O;return typeof((t=N.navigator)==null?void 0:(O=t.userAgentData)==null?void 0:O.getHighEntropyValues)==="function"};
wAz=function(N){if(!alQ(N))return null;var t=Y$l(N);if(t.uach_promise)return t.uach_promise;N=N.navigator.userAgentData.getHighEntropyValues(Tbz).then(function(O){t.uach!=null||(t.uach=O);return O});
return t.uach_promise=N};
llt=function(N){var t;return ezS(Pul(XA9(xnv(kuQ(q$x(flv(n14(W7y(new rIp,N.architecture||""),N.bitness||""),N.mobile||!1),N.model||""),N.platform||""),N.platformVersion||""),N.uaFullVersion||""),((t=N.fullVersionList)==null?void 0:t.map(function(O){var H=new Ilv;H=_.Xa(H,1,O.brand);return _.Xa(H,2,O.version)}))||[]),N.wow64||!1)};
QPG=function(N){var t,O;return(O=(t=wAz(N))==null?void 0:t.then(function(H){return llt(H)}))!=null?O:null};
mnO=function(N,t){return new ik(function(O){var H=!1,A=Array(t.length);A.fill(void 0);var Z=new Set,U=new Set,C=function(c,u){N.running?(A[u]=c,Z.add(u),H||(H=!0,pm(N,function(){H=!1;O.next(_.Il(A))},1))):O.error(new xm(u))},F=function(c,u){U.add(u);
Z.add(u);pm(N,function(){O.error(c)},1)},g=function(c){U.add(c);
pm(N,function(){U.size===t.length&&O.complete()},1)},B=t.map(function(c,u){return c.subscribe(function(S){return void C(S,u)},function(S){return void F(S,u)},function(){return void g(u)})});
return function(){B.forEach(function(c){return void c.unsubscribe()})}})};
RzS=function(N,t,O){function H(){if(t.debugChannel){var w=t.debugChannel,P=w.next;var x={creativeId:t.debugNames.getName(O),requiredSignals:A,signals:Object.assign({},Z),hasPrematurelyCompleted:U,errorMessage:C,erroredSignalKey:F};x={specMajor:2,specMinor:0,specPatch:0,timestamp:JY(t.timeProvider.now(),new ox(0,t.timeProvider.timeline)),instanceId:t.debugNames.getName(t.symbol),creativeState:x};P.call(w,x)}}
for(var A=Object.keys(N),Z={},U=!1,C=null,F=null,g={},B=new Set,c=[],u=[],S=_.D(A),b=S.next(),z={};!b.done;z={key$jscomp$394:void 0},b=S.next())z.key$jscomp$394=b.value,b=N[z.key$jscomp$394],b instanceof Lm?(g[z.key$jscomp$394]=b.value,B.add(z.key$jscomp$394),t.debugChannel&&(Z[String(z.key$jscomp$394)]=jNv(b.value))):(b=b.pipe(AD(function(w,P){return cDS(w)||cDS(P)?!1:w===P}),fU(function(w){return function(P){t.debugChannel&&(Z[String(w.key$jscomp$394)]=jNv(P),H());
var x={};return x[w.key$jscomp$394]=P,x}}(z)),Nw(function(w){return function(P){if(P instanceof xm)throw new E1v(String(w.key$jscomp$394));
throw P;}}(z)),Tcg(function(w){return function(){B.add(w.key$jscomp$394)}}(z),function(w){return function(P){F=String(w.key$jscomp$394);
C=String(P);H()}}(z),function(w){return function(){B.has(w.key$jscomp$394)||(U=!0,H())}}(z))),u.push(z.key$jscomp$394),c.push(b));
(N=Object.keys(Z).length>0)&&H();S=mnO(t.queue,c).pipe(Nw(function(w){if(w instanceof xm)throw new Gu4(String(u[w.inputObservableIndex]));throw w;}),fU(function(w){return Object.freeze(Object.assign.apply(Object,[{},
g].concat(_.W6(w))))}));
return(c=c.length>0)&&N?Rx(P6(Object.freeze(g)),S):c?S:P6(Object.freeze(g))};
v1G=function(N,t,O,H,A){return N.performanceMonitor.timeExecution.bind(N.performanceMonitor)(733,function(){var Z={};try{return t.pipe(Nw(function(U){H(Object.assign({},Z,{error:U}));return EG}),Q0(function(U){try{var C=O(N,U)}catch(g){return H(Object.assign({},Z,{error:g instanceof Error?g:String(g)})),EG}var F={};
return RzS(C,N,U.symbol).pipe(Tcg(function(g){F=g}),Cm(1),qo()).pipe(A,Nw(function(g){H(Object.assign({},F,{error:g}));
return EG}),ZC(void 0),fU(function(){return!0}))})).pipe(Km(function(U){return U+1},0),Nw(function(U){H(Object.assign({},Z,{error:U}));
return EG}))}catch(U){return H(Object.assign({},Z,{error:U})),EG}})()};
km=function(N){var t=new Map;if(typeof N!=="object"||N===null)return t;Object.values(N).forEach(function(O){O&&typeof O.extrapolateToNow==="function"&&(t.has(O.clock.timeline)||t.set(O.clock.timeline,O.clock.now()))});
return t};
JIM=function(N,t){return typeof N==="string"?encodeURIComponent(N):typeof N==="number"?String(N):Array.isArray(N)?N.map(function(O){return JIM(O,t)}).join(","):N instanceof ox?N.toString():N&&typeof N.extrapolateToNow==="function"?JIM(N.extrapolateUsingTimestampMap(t).value,t):N===!0?"1":N===!1?"0":N===void 0||N===null?null:N instanceof o1v?sPx(N):[N.top,
N.left,N.top+N.height,N.left+N.width].join()};
Npv=function(N,t){N=Object.entries(N).map(function(O){var H=_.D(O);O=H.next().value;H=H.next().value;H=JIM(H,t);return H===null?"":O+"="+H}).filter(function(O){return O!==""});
return N.length?N.join("&"):""};
Hty=function(N,t){var O=tGN,H=Otz;t=t===void 0?.01:t;return function(A){t>0&&Math.random()<=t&&(N.global.HTMLFencedFrameElement&&N.global.fence&&typeof N.global.fence.reportEvent==="function"&&N.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),A=Object.assign({},A,{errorMessage:A.error instanceof Error&&A.error.message?A.error.message:String(A.error),errorStack:A.error instanceof Error&&A.error.stack?String(A.error.stack):null,errorName:A.error instanceof
Error&&A.error.name?String(A.error.name):null,errorContext:String(N.performanceMonitor.timedFunctionContext),errorEscapedQueryId:A.escapedQueryId}),O(Object.assign({},A,{payloadMapper:function(){return function(Z){try{return H(Object.assign({},Z))}catch(U){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),km(A)).forEach(function(Z){N.beaconFactory.makeBeacon(Z).sendNow()}))}};
AJg=function(){var N=_.E1.apply(0,arguments);return function(t){var O=t.pipe(Cm(1),qo());t=N.map(function(H){return O.pipe(H,ZC(!0))});
return Ix(t).pipe(HW(1),tD())}};
Zt4=function(){var N=_.E1.apply(0,arguments);return function(t){var O=t.pipe(Cm(1),qo());t=N.map(function(H){return O.pipe(H,ZC(!0))});
return Rx.apply(null,_.W6(t)).pipe(HW(1),tD())}};
VGO=function(N,t){return function(O){var H=O.pipe(Cm(1),qo());O=H.pipe(N,ZC(!0));H=H.pipe(jV(t,Cm(),qo()),ZC(!0));O=Ix([O,H]);return yDN(O,H).pipe(HW(1),tD())}};
DYt=function(N,t,O){O(!0)};
UYO=function(N,t){return jV(dc(function(O){var H=N(O),A=t(O),Z={};return H&&A&&Z?new ik(function(U){A(H,Z,function(C){U.next(Object.assign({},O,{canEmit:C}));U.complete()});
return function(){}}):qw}),v6(function(O){return O.canEmit}))};
C$S=function(N){var t={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(O){return O.pipe(dc(function(H){return new ik(function(A){function Z(){C.disconnect();F.unsubscribe()}
var U=N.MutationObserver;if(U&&H.ref!==void 0){var C=new U(function(g){A.next(g)});
C.observe(H.ref,t);var F=H.JSC$9515_released.subscribe(Z);return Z}})}))}};
KPS=function(N){if(N.measurementDeferralState===3)return null;if(N.timeOnScreenReason!==void 0){var t=N.creativeFound===!1?"n":null;if(t!==null)return t}return N.geometricMeasurementErrors instanceof fm?"msf":N.contextValidationErrors instanceof nm?"c":N.contextVisibilityKnown===!1?"pv":N.geometricMeasurementErrors||N.contextValidationErrors?"x":null};
dY9=function(N,t){return N.replace(FP4,function(O,H){try{var A=_.WW.get(t,H);if(A==null||A.toString()==null)return O;A=A.toString();if(A==""||!_.Dp(A==null?"":String(A)))return encodeURIComponent(A).replace(/%2C/g,",")}catch(Z){}return O})};
gMQ=function(N,t){var O=Object.assign({},N),H=N.userAgentClientHints;O=(delete O.userAgentClientHints,O);O=N.payloadMapper(O);var A=Npv(O,t);return _.rc(N.urlPrefixes,function(Z){var U="";typeof H==="string"&&(U="&"+Npv({uach:H},t));var C={};return dY9(Z,(C.VIEWABILITY=A,C))+U})};
tGN=function(N,t){var O=N.payloadMapper(N),H=Npv(O,t);return H?_.rc(N.urlPrefixes,function(A){A=A.indexOf("?")>=0?A:A+"?";A="?&".indexOf(A.slice(-1))>=0?A:A+"&";return A+H}):N.urlPrefixes};
yJG=function(){return jV(v6(function(N){return N!==void 0}),fU(function(N){return N}))};
BpN=function(N){return jV(fU(function(){return!0}),Fa(!1),bw(N))};
cJ4=function(N){return N.length<=0?EG:Ix(N.map(function(t){var O=0;return t.pipe(fU(function(H){return{index:O++,value:H}}))})).pipe(v6(function(t){return t.every(function(O){return O.index===t[0].index})}),fU(function(t){return t.map(function(O){return O.value})}))};
$Yv=function(N,t){N.currentState&&(N.previousState=N.currentState);N.currentState=t;N.previousState&&N.previousState.value?(t=Math.max(0,JY(t.timestamp,N.previousState.timestamp)),N.totalTime+=t,N.consecutiveTime+=t):N.consecutiveTime=0;return N};
jap=function(){return jV(Km($Yv,{totalTime:0,consecutiveTime:0}),fU(function(N){return N.totalTime}))};
itQ=function(){return jV(Km($Yv,{totalTime:0,consecutiveTime:0}),fU(function(N){return N.consecutiveTime}))};
uSN=function(N,t){return function(O){return cJ4(t.map(function(H){return O.pipe(N(H))}))}};
SHz=function(){var N;return jV(Tcg(function(t){return void(N=t.timestamp)}),itQ(),fU(function(t){return{timestamp:N,
value:Math.round(t)}}))};
h3v=function(N,t){return zi(N.topWindowViewportExternalGeometry,t.topWindowViewportExternalGeometry)&&zi(N.elementGeometry,t.elementGeometry)&&zi(N.exposedViewportLocalGeometry,t.exposedViewportLocalGeometry)&&zi(N.intersectionGeometry,t.intersectionGeometry)&&N.elementGeometrySourceName===t.elementGeometrySourceName&&N.measurementRequests===t.measurementRequests&&N.viewportGeometrySourceName===t.viewportGeometrySourceName&&N.viewportLocalAppOffset.x===t.viewportLocalAppOffset.x&&N.viewportLocalAppOffset.y===
t.viewportLocalAppOffset.y};
LP4=function(N,t){return function(O){return function(H){var A=H.pipe(DC(new hD),qo());H=O.element.pipe(AD());A=A.pipe(fU(function(Z){return Z.value}));
return Ix([H,A,t]).pipe(fU(function(Z){var U=_.D(Z);Z=U.next().value;var C=U.next().value;U=U.next().value;if(Z.ref===void 0)var F={top:0,left:0,width:0,height:0};else{F=Z.ref.getBoundingClientRect();var g=Z.ref,B=N.global,c=new _.IN(0,0),u=lw(_.Qs(g));if(xwx(u,"parent")){do{if(u==B)var S=_.mq(g);else S=MGG(g),S=new _.IN(S.left,S.top);c.x+=S.x;c.y+=S.y}while(u&&u!=B&&u!=u.parent&&(g=u.frameElement)&&(u=u.parent))}F={top:c.y,left:c.x,width:F.width,height:F.height}}F=pAN(F,C.viewportLocalAppOffset);
B=b1M(F,C.exposedViewportLocalGeometry);c=N.timeProvider.now();u=Object;g=u.assign;if(U!==2||N.inCrossDomainIframe||B.width<=0||B.height<=0)var b=!1;else try{var z=N.document.elementFromPoint(B.left+B.width/2,B.top+B.height/2);b=z?!btG(z,Z):!1}catch(w){b=!1}return{timestamp:c,value:g.call(u,{},C,{elementGeometrySourceName:"geo",intersectionGeometry:b?poz.intersectionGeometry:B,elementGeometry:F})}}),Mw(N.queue))}}};
btG=function(N,t,O){O=O===void 0?0:O;return N.ref===void 0||t.ref===void 0?!1:N.ref===t.ref||_.EW(t.ref,function(H){return H===N.ref})?!0:t.ref.ownerDocument&&t.ref.ownerDocument.defaultView&&t.ref.ownerDocument.defaultView===t.ref.ownerDocument.defaultView.top?!1:O<10&&t.ref.ownerDocument&&t.ref.ownerDocument.defaultView&&t.ref.ownerDocument.defaultView.frameElement?btG(N,new Gi(t.ref.ownerDocument.defaultView.frameElement),O+1):!0};
ay4=function(N){return function(t){return t.pipe(N.ResizeObserver?z3N(N):YHz(N),Cm(1),qo())}};
z3N=function(N){return function(t){return t.pipe(dc(function(O){var H=N.ResizeObserver;if(!H||O.ref===void 0)return P6(poz.elementGeometry);var A=(new ik(function(Z){function U(){O.ref!==void 0&&C.unobserve(O.ref);C.disconnect();F.unsubscribe()}
if(O.ref===void 0)return Z.complete(),function(){};
var C=new H(function(g){g.forEach(function(B){Z.next(B)})});
C.observe(O.ref);var F=O.JSC$9515_released.subscribe(U);return U})).pipe(sG(N.performanceMonitor,736),fU(function(Z){return Z.contentRect}));
return Rx(P6(O.ref.getBoundingClientRect()),A)}),AD(zi))}};
YHz=function(N){return function(t){var O=t.pipe(C$S(N)),H=N.onResize;O=Rx(t.pipe(fU(function(){return AI9("resize")})),O,H);
return Ix(t,O).pipe(sG(N.performanceMonitor,737),fU(function(A){A=_.D(A).next().value;return A.ref===void 0?void 0:A.ref.getBoundingClientRect()}),yJG(),AD(zi))}};
e3t=function(N,t){var O=TpM(N,t).pipe(Cm(1),qo());return function(H){return function(A){A=A.pipe(dc(function(Z){return Z.element}),AD());
return Ix([O,A]).pipe(dc(function(Z){var U=_.D(Z);Z=U.next().value;U=U.next().value;return wot(N,Z.intersectionObserver,ay4(N),Z.observations,H,Z.flushRecords,U)}),Mw(N.queue))}}};
P$l=function(N){return fU(function(t){return t.value.viewportGeometrySourceName!=="nio"?t:Object.assign({},t,{value:Object.assign({},t.value,{exposedViewportLocalGeometry:RN(N,!0),topWindowViewportExternalGeometry:RN(N,!0)})})})};
XoM=function(N,t){return P6(t).pipe(N,fU(function(){return t}))};
TpM=function(N,t){return N.timeProvider.timeline!==xYM?X1(new fm(2)):N.MutationObserver?typeof IntersectionObserver==="undefined"?X1(new fm(0)):(new ik(function(O){var H=new hD,A=new sW(H.next.bind(H),{threshold:[].concat(_.W6(t))});O.next({observations:H.pipe(sG(N.performanceMonitor,735)),intersectionObserver:A,flushRecords:function(Z){Z=A.takeRecords(Z);Z.length>0&&H.next(Z)}})})).pipe(HW(1),Cm(1),qo()):X1(new fm(1))};
kgM=function(N){return xoG(N.sort(function(t,O){return t.time-O.time}),Qx9)};
wot=function(N,t,O,H,A,Z,U){return new ik(function(C){function F(){b||(b=!0,U.ref!==void 0&&t.unobserve(A,U.ref),B.unsubscribe(),S.unsubscribe(),u.unsubscribe(),z.unsubscribe())}
if(U.ref!==void 0){qHp(t,A);t.observe(A,U.ref);var g=new Nn({timestamp:N.timeProvider.now(),value:Object.assign({},poz,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),B=H.pipe(Q0(function(w){return kgM(w)}),v6(function(w){return w.target===U.ref}),fU(function(w){return{timestamp:new ox(w.time,xYM),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:w.rootBounds||tI,topWindowViewportExternalGeometry:w.rootBounds||RN(N,!0),measurementRequests:c,elementGeometrySourceName:"nio",intersectionGeometry:w.intersectionRect,elementGeometry:w.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:w.isIntersecting,isV2Visible:w.isVisible}}}),DC(g),qo()).subscribe(C),c=new hD,u=c.subscribe(function(){Z(A);
C.next({timestamp:N.timeProvider.now(),value:g.value.value});U.ref!==void 0&&(t.unobserve(A,U.ref),t.observe(A,U.ref))}),S=XoM(O,U).subscribe(function(){c.next()}),b=!1,z=U.JSC$9515_released.subscribe(function(){return F()});
return F}})};
fyy=function(N,t){var O=N.getOnBackgrounded().pipe(fU(function(){return"b"}));
return yDN(t,O).pipe(HW(1),bw(N.queue))};
O$=function(N){return function(t){var O;return t.pipe(Tcg(function(H){return void(O=H.timestamp)}),fU(function(H){return H.value}),N,fU(function(H){return{timestamp:O,
value:H}}))}};
nMS=function(N){return N.intersectionGeometry.width*N.intersectionGeometry.height/(N.elementGeometry.width*N.elementGeometry.height)};
HA=function(N,t,O){O=O===void 0?function(H,A){return H===A}:O;
return N.timestamp.equals(t.timestamp)&&O(N.value,t.value)};
V5=function(N,t){return t.pipe(fU(function(O){return new AI(N.timeProvider,{timestamp:N.timeProvider.now(),value:O})}))};
WPl=function(N){return function(t){return t.pipe(wWv(N),fU(function(O){var H=_.D(O);O=H.next().value;H=H.next().value;var A=O.value;return{timestamp:O.timestamp,value:A>=1?!0:A<=0?!1:A>=H}}))}};
IyS=function(){return jV(v6(function(N,t){return t>0}),rJM,Fa(-1),AD())};
lyx=function(N,t,O){return N?Ix([t,O]).pipe(v6(function(H){var A=_.D(H);H=A.next().value;A=A.next().value;return H.timestamp.equals(A.timestamp)}),fU(function(H){var A=_.D(H);
H=A.next().value;A=A.next().value;return H.value>A.value?H:A})):t};
EM9=function(N){return function(t){var O=t.pipe(QaQ),H=t.pipe(mYS);return N instanceof ik?N.pipe(dc(function(A){return lyx(A,O,H)})):lyx(N.value,O,H)}};
HLS=function(N,t,O,H){var A=H.geometryIsOccluded,Z=H.exposureThreshold,U=H.wasLargeAdAtRender,C=H.allowLargeAdThreshold,F=H.largeAdExposureThreshold,g=H.mayUseViewportShareExposure,B=H.hasMeasurementStarted;H=H.useIntersectionObserverV2;t=Gg9(N,O,t);O=R3M(N,O);H=vMG(t,H);var c=JJp(N,A,g,t),u=c.pipe(fU(function(r){return r.value}),AD(),bw(N),Km(function(r,E){return Math.max(r,E)},0)),S=c.pipe(fU(function(r){return r.value}),IyS(),bw(N)),b=t.pipe(oMO,fU(function(r){return r.value}),HW(2),AD(),bw(N));
U=sag(N,t,U,C);var z=U.pipe(Fa(!1),AD(),fU(function(r){return r?F:Z}));
C=c.pipe(WPl(z),AD(),bw(N));var w=Ix([C,t]).pipe(v6(function(r){var E=_.D(r);r=E.next().value;E=E.next().value;return r.timestamp.equals(E.timestamp)}),fU(function(r){var E=_.D(r);
r=E.next().value;E=E.next().value;return{visible:r.value,geometry:E.value.elementGeometry}}),Km(function(r,E){return!E.visible&&r.visible?r:E},{visible:!1,
geometry:tI}),fU(function(r){return r.geometry}),Fa(tI),bw(N),AD(zi));
g=g instanceof ik?g.pipe(AD(),OW()):qw;z=Ix([g,z]).pipe(OW());var P=t.pipe(v6(function(r){return r.value.viewportGeometrySourceName!=="ns"&&r.value.elementGeometrySourceName!=="ns"}),Km(function(r){return r+1},0),Fa(0),bw(N)),x=O.pipe(OW(!0),Fa(!1),bw(N));
x=Ix([B,x]).pipe(fU(function(r){var E=_.D(r);r=E.next().value;E=E.next().value;return r&&!E}),bw(N));
var l=t.pipe(Nul,AD()),I=l.pipe(fU(function(r){return r.value}),Km(function(r,E){return Math.max(r,E)},0),AD(),bw(N));
N=l.pipe(fU(function(r){return r.value}),IyS(),bw(N));
return{shouldResetExposureSignals:g,shouldResetViewabilitySignals:z,geometrySignals:{readyGeometryWithDefault:t,measurementStrategy:t.pipe(tTS),creativePosition:w.pipe(AD(zi)),visible:C.pipe(AD(HA)),timestampedExposure:c.pipe(AD(HA)),maximumExposure:u,minimumExposure:S,browserSize:t.pipe(OLN,AD(_.v4)),timestampedScreenShare:l,maxScreenShare:I,minScreenShare:N,geometricMeasurementErrors:O,measurementRequests:t.pipe(fU(function(r){return r.value.measurementRequests})),
isLargeAd:U,geometryIsOccluded:A,hasMeasurementStarted:B,geometryMeasurable:x,validMeasurementCount:P,loadTimeExposure:b,v2VisibilityBitVector:H}}};
R3M=function(N,t){return t.pipe(v6(function(){return!1}),fU(function(O){return O}),Nw(function(O){return Dl(new Lm(O),N)}))};
Gg9=function(N,t,O){return t.pipe(dwN(qw),bw(N)).pipe(AD(function(H,A){return HA(H,A,h3v)}),Fa({timestamp:O.now(),
value:poz}),bw(N))};
JJp=function(N,t,O,H){O=H.pipe(EM9(O),O$(fU(function(A){return Math.round(A*100)/100})),bw(N));
return t instanceof Lm?O:Ix([O,t]).pipe(fU(function(A){var Z=_.D(A);A=Z.next().value;Z=Z.next().value;return{timestamp:Z.timestamp.maximum(A.timestamp),value:Z.value?0:A.value}}),AD(HA),bw(N))};
sag=function(N,t,O,H){t=[t.pipe(fU(function(A){return A.value.elementGeometry.width*A.value.elementGeometry.height>=242500}))];
O instanceof ik&&t.push(O.pipe(fU(function(A){return!!A})));
O=Ix(t);return H?O.pipe(fU(function(A){return A.some(function(Z){return Z})}),Fa(!1),AD(),bw(N)):Dl(new Lm(!1),N)};
vMG=function(N,t){N=Ix([N,t]).pipe(fU(function(A){var Z=_.D(A);A=Z.next().value;if(Z.next().value&&A.value.isIntersecting)return A.value.isV2Visible}),AD());
var O=N.pipe(fU(function(A){return A===void 0?!0:A}),Km(function(A,Z){return A||!Z},!1)),H=N.pipe(Km(function(A,Z){return Z===void 0?A:Z?!1:A!=null?A:!0},void 0),fU(function(A){return!!A}));
return Ix([t,Bcp(N,O,H)]).pipe(fU(function(A){var Z=_.D(A);A=Z.next().value;var U=_.D(Z.next().value);Z=U.next().value;var C=U.next().value;U=U.next().value;var F=0;if(!A)return 0;if(Z===void 0)return 16;Z&&(F|=1);Z||(F|=2);C&&(F|=4);U&&(F|=8);return F}))};
Cfp=function(N,t,O,H,A){var Z=AO9.timeThresholdMs;var U=U===void 0?new ZLt(t,H):U;return(new ik(function(C){var F=O.pipe(Fa(void 0),dc(function(){return VTl(A)})).pipe(fU(function(g){var B=g.value;
g=g.timestamp;var c=B.visible;B=B.consecutiveViewTime;var u=B>=Z;u||!c?DCO(U):(g=Math.max(0,JY(t.now(),g)),UCN(U,Math.max(0,Z-B-g)));return u}),Km(function(g,B){return B||g},!1),AD()).subscribe(C);
return function(){U.dispose();F.unsubscribe()}})).pipe(ys(function(C){return!C},!0),bw(N))};
VTl=function(N){return cJ4([N,N.pipe(SHz())]).pipe(fU(function(t){var O=_.D(t);t=O.next().value;O=O.next().value;return{timestamp:t.timestamp,value:{visible:t.value,consecutiveViewTime:O.value}}}),AD(function(t,O){return HA(t,O,function(H,A){return H.consecutiveViewTime===A.consecutiveViewTime&&H.visible===A.visible})}))};
KDp=function(){return jV(itQ(),Km(function(N,t){return Math.max(N,t)},0),fU(function(N){return Math.round(N)}))};
FDM=function(N){return jV(WPl(P6(N)),KDp())};
dCl=function(N,t){return t instanceof ik?t.pipe(dc(function(O){return(O=O?15:null)?X1(new fm(O)):N})):(t=t.value?15:null)?X1(new fm(t)):N};
glO=function(N){var t=new fm(13);if(N.length<1)return{chain:EG,capturedErrors:EG};var O=new hD,H=N[0];return{chain:N.slice(1).reduce(function(A,Z){return A.pipe(Nw(function(U){O.next(U);return Z}))},H).pipe(Nw(function(A){O.next(A);
return X1(t)}),DC(new hD),qo()),
capturedErrors:O}};
yO4=function(N,t){var O=N.pipe(DC(new hD),qo());return dc(function(H){return O.pipe(t(H))})};
cOS=function(N,t){if(N.inCrossDomainIframe)return X1(new fm(6));var O=new hD;return Rx(P6({}),t,O).pipe(fU(function(){return{timestamp:N.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Buv(N),topWindowViewportExternalGeometry:RN(N,!0),measurementRequests:O,viewportLocalAppOffset:{x:0,y:0}}}}),Mw(N.queue))};
Buv=function(N){var t=RN(N,!1);if(!N.inIframe||!kiS(N.global.parent)||N.global.parent===N.global)return t;var O=new U$(N.global.parent,N.debugChannel);O.beaconFactory=N.beaconFactory;O=Buv(O);N=N.global.frameElement.getBoundingClientRect();return b1M(pAN(b1M(O,N),{x:t.left-N.left,y:t.top-N.top}),t)};
$Cg=function(N){if(N.prerendering)return 3;var t;return(t={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[N.visibilityState||N.webkitVisibilityState||N.mozVisibilityState||""])!=null?t:0};
jog=function(N){return N.document.JSC$9526_onVisibilityChange.pipe(fU(function(t){return t==="visible"}),AD(),bw(N.queue))};
iLQ=function(N,t,O){var H;return t.pipe(AD(),dc(function(A){return O.pipe(fU(function(){if(!H){H=!0;try{A.next()}finally{H=!1}}return!0}))}),Fa(!1),bw(N.queue))};
uNM=function(N){return jV(O$(fU(function(t){return t>=1?!0:t<=0?!1:t>=N})),jap(),fU(function(t){return Math.round(t)}))};
hgG=function(N,t,O,H,A){var Z=S2M;if(Z.length>1)for(var U=0;U<Z.length-1;U++)if(Z[U]<Z[U+1])throw Error();U=A.pipe(Fa(void 0),dc(function(){return O.pipe(SHz())}),AD(),bw(N));
A=A.pipe(Fa(void 0),dc(function(){return O.pipe(KDp())}),AD(),bw(N));
return{totalMeasurementTime:H.pipe(Fa(void 0),dc(function(){return t.pipe(fU(function(C){return{timestamp:C.timestamp,value:!0}}),jap())}),AD(),bw(N)),
totalUnviewedTime:H.pipe(Fa(void 0),dc(function(){return t.pipe(fU(function(C){return{timestamp:C.timestamp,value:C.value===0}}),jap())}),AD(),bw(N)),
maxTimeOnScreen:H.pipe(Fa(void 0),dc(function(){return t.pipe(uSN(FDM,Z))}),AD(_.v4),bw(N)),
timeOnScreen:H.pipe(Fa(void 0),dc(function(){return t.pipe(uSN(uNM,Z),fU(function(C){return C.map(function(F,g){return g>0?F-C[g-1]:F})}))}),AD(_.v4),bw(N)),
maxConsecutiveViewTime:A,consecutiveViewTime:U.pipe(AD(HA),bw(N))}};
bLG=function(N){var t=!0;t=t===void 0?!1:t;return jV(dc(function(O){return MTQ(N.document,O,t)}),bw(N.queue))};
pZS=function(N,t,O){var H=O.pipe(fU(function(A){return{value:A,timestamp:N.timeProvider.now()}}),AD(HA));
return t instanceof ik?t.pipe(AD(),dc(function(A){return A?Dl(new Lm({value:!1,timestamp:N.timeProvider.now()}),N.queue):H})):t.value===!1?H:new Lm(!1)};
LD4=function(N,t,O,H,A,Z,U){var C=AO9;t=t instanceof ik?t.pipe(Fa(!1),AD()):t;var F=!N.isMobile();O=pZS(N,O,H);N=U.measurableCreative.pipe(BpN(N.queue));return Object.assign({},C,{geometryIsOccluded:O,wasLargeAdAtRender:A,allowLargeAdThreshold:F,mayUseViewportShareExposure:t,hasMeasurementStarted:N,useIntersectionObserverV2:Z})};
Y2G=function(N,t,O,H,A,Z){var U=1;Z=Z===void 0?!0:Z;U=U===void 0?.01:U;var C=C===void 0?N.timeProvider.intervalObservable(100).pipe(bw(N.queue)):C;return N.performanceMonitor.timeExecution(916,function(){return zgx(N,t.pipe(Mw(N.queue)),O.pipe(Mw(N.queue)),H,A,Z,U,C)})()};
zgx=function(N,t,O,H,A,Z,U,C){var F=jog(N).pipe(fU(function(B){return!B})),g=new atN(N,[new Tup(N,S2M),
new wZl(N,C)]);C=AJg(egp,Pfx);return v1G(N,t,function(B,c){var u=Dl(new Lm(c.element),B.queue).pipe(bLG(B),bw(B.queue)),S={loadedElement:u,shouldMeasure:u.pipe(OW(!0)),measurableCreative:u.pipe(fU(function(r){var E=E===void 0?Symbol():E;return Object.freeze({symbol:E,element:Dl(new Lm(r),B.queue)})})),
creativeSearchResult:Dl(new Lm("mue"),B.queue)},b=new Lm(!1),z=new Lm(!1),w=new Lm(17),P=new Lm(!1),x=new Lm(!1),l=Dl(C1,B.queue);b=g.buildGeometrySource(S,{inApp:b,useV2:!1,requestSource:Dl(w,B.queue)}).geometrySource;S=LD4(B,P,z,F,x,l,S);z=HLS(B.queue,B.timeProvider,b,S);S=z.geometrySignals;P=z.shouldResetViewabilitySignals;z=hgG(B.queue,S.timestampedExposure,S.visible,z.shouldResetExposureSignals,P);P=Cfp(B.queue,B.timeProvider,P,S.measurementRequests,S.visible);x=O.pipe(v6(function(r){return r===
c.element.ref}),fU(function(){return"ur"}));
l=imt(B.timeProvider,A).pipe(OW("t"));x=fyy(B,Rx(x,l));l=iLQ(B,S.measurementRequests,x.pipe(v6(function(r){return r!==null})));
b=x.pipe(v6(function(r){return r!==null}),fU(function(){return $Cg(B.global.document)===1}));
var I=XZQ(B.document);return Object.assign({},{beaconFactory:new Lm(B.beaconFactory),context:new Lm(B),inferredPingId:new Lm("lidar2"),timeOnScreenPingId:new Lm("lidartos"),binaryContext:new Lm(17),binaryVersion:new Lm(H),requestSource:w,contextValidationErrors:new Lm(B.validate()?null:new nm),contextVisibilityKnown:new Lm(I),payloadMapper:new Lm(Otz),endOfSessionReason:x,timeOnScreenReason:x,requestMeasurementOnEndOfSession:l,hasImpressionFired:xCQ,crossDomainIframeState:new Lm(B.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:C1,inFetchLaterBeaconExperiment:C1,isTurtlex:C1,turtlexReportEventData:new Lm(""),reportFencedFrameEvent:qw,isViewableAttributionEnabled:C1,inViewableAttributionExperiment:new Lm(0),fetchBeaconFactory:qw,supportsPendingBeacon:C1,supportsFetchLater:C1,emit:new Lm(DYt),beginToRenderEvent:new Lm(Symbol()),activeViewUnmeasurableEvent:new Lm(Symbol()),activeViewViewableEvent:new Lm(Symbol()),creativeFound:xCQ,immediateUrlPrefixes:new Lm(c.immediateUrls),timeOnScreenUrlPrefixes:new Lm(c.timeOnScreenUrls),
cpmavUrls:qw,viewableRelayUrls:qw,measurementDeferralState:new Lm(2),urlSerializer:new Lm(gMQ),viewUrlSerializer:new Lm(kmv),isCreativeLoaded:u.pipe(BpN(B.queue)),pageVisible:F.pipe(fU(function(r){return!r})),
eosPageVisible:b,timestampedExposureHistory:S.timestampedExposure.pipe(Km(function(r,E){r.push(E);return r},[]))},S,{viewable:V5(B,P),
maxTimeOnScreen:V5(B,z.maxTimeOnScreen),timeOnScreen:V5(B,z.timeOnScreen),maxConsecutiveViewTime:V5(B,z.maxConsecutiveViewTime),consecutiveViewTime:z.consecutiveViewTime.pipe(fU(function(r){return new AI(B.timeProvider,r)})),
totalMeasurementTime:V5(B,z.totalMeasurementTime),totalUnviewedTime:V5(B,z.totalUnviewedTime),userAgentClientHints:H1l(B),clientOrderPingCounter:new Lm(new o1v)})},Hty(N,U),Zt4(Z?VGO(C,q2l):VGO(C,ft4),nlp))};
WDl=function(N){var t=_.E1.apply(1,arguments).filter(Boolean).join("&");if(!t)return N;var O=N.match(/[?&]adurl=/);return O?N.slice(0,O.index+1)+t+"&"+N.slice(O.index+1):N+(N.indexOf("?")<0?"?":"&")+t};
K1=function(N,t){return t?"&"+N+"="+encodeURIComponent(t):""};
rOO=function(){try{var N,t;return!!((N=window)==null?0:(t=N.top)==null?0:t.location.href)&&!1}catch(O){return!0}};
_.F$=function(N){N&&typeof N.dispose=="function"&&N.dispose()};
_.db=function(N){for(var t=0,O=arguments.length;t<O;++t){var H=arguments[t];_.lQ(H)?_.db.apply(null,H):_.F$(H)}};
ltM=function(){var N=Itz();N=N===void 0?"bevasrsg":N;return new Promise(function(t){var O=window===window.top?window:rOO()?window:window.top,H=O[N],A;((A=H)==null?0:A.bevasrs)?t(new gb(H.bevasrs)):(H||(H={},H=(H.nqfbel=[],H),O[N]=H),H.nqfbel.push(function(Z){t(new gb(Z))}))})};
Qo9=function(N){var t={c:N.iF,e:N.n2E,mc:N.uZs,me:N.aTR};N.u3&&(t.co={c:N.u3.m8I,a:N.u3.bUG,s:N.u3.lrl});return t};
mCz=function(N){var t,O,H={iF:N.c,n2E:N.e,uZs:(t=N.mc)!=null?t:!1,aTR:(O=N.me)!=null?O:!1};N.co&&(H.u3={m8I:N.co.c,bUG:N.co.a,lrl:N.co.s});return H};
Elg=function(N){return function(){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(N(),2);t=O.yieldResult;return O.return({f:function(){return t.kQT()},
c:function(H){return t.wcx(H)},
m:function(H){return t.jW(mCz(H))},
mws:function(H){return t.wWC(mCz(H))}})})}};
Gmv=function(N,t){var O=Itz();O=O===void 0?"bevasrsg":O;t={s:function(Z){var U;return N.snapshot(Object.assign({},Z.c&&{iF:Z.c},Z.s&&{x3N:Z.s},{lDz:(U=Z.p)!=null?U:!0}))},
e:function(Z){var U;return void((U=N.l7u)==null?void 0:U.call(N,Z))},
c:function(Z,U){return N.zeH(Z,U)},
p:N.rCc,l:function(){return N.pUC()},
wpc:t?Elg(t):void 0};var H=window===window.top?window:rOO()?window:window.top,A=H[O];if(A){A.bevasrs=t;if(A.nqfbel!==void 0)for(O=_.D(A.nqfbel),H=O.next();!H.done;H=O.next())H=H.value,H(t);A.nqfbel=void 0}else A={},A=(A.bevasrs=t,A.nqfbel=void 0,A),H[O]=A};
vlt=function(N){var t=t===void 0?51:t;var O=[];_.y5(N,Rgy,6,_.cA()).forEach(function(H){_.$1(H,2)<=t&&O.push(_.$1(H,1))});
return O};
JOS=function(N){var t=t===void 0?51:t;var O=[];_.y5(N,Rgy,6,_.cA()).forEach(function(H){_.$1(H,2)>t&&O.push(_.$1(H,1))});
return O};
olS=function(N){N.then(function(){},function(){})};
jR=function(N){return{fieldType:1,fieldName:N}};
iu=function(N){return{fieldType:2,fieldName:N}};
_.uu=function(N){return{fieldType:3,fieldName:N}};
soM=function(){function N(){A[0]=1732584193;A[1]=4023233417;A[2]=2562383102;A[3]=271733878;A[4]=3285377520;B=g=0}
function t(c){for(var u=U,S=0;S<64;S+=4)u[S/4]=c[S]<<24|c[S+1]<<16|c[S+2]<<8|c[S+3];for(S=16;S<80;S++)c=u[S-3]^u[S-8]^u[S-14]^u[S-16],u[S]=(c<<1|c>>>31)&4294967295;c=A[0];var b=A[1],z=A[2],w=A[3],P=A[4];for(S=0;S<80;S++){if(S<40)if(S<20){var x=w^b&(z^w);var l=1518500249}else x=b^z^w,l=1859775393;else S<60?(x=b&z|w&(b|z),l=2400959708):(x=b^z^w,l=3395469782);x=((c<<5|c>>>27)&4294967295)+x+P+l+u[S]&4294967295;P=w;w=z;z=(b<<30|b>>>2)&4294967295;b=c;c=x}A[0]=A[0]+c&4294967295;A[1]=A[1]+b&4294967295;A[2]=
A[2]+z&4294967295;A[3]=A[3]+w&4294967295;A[4]=A[4]+P&4294967295}
function O(c,u){if(typeof c==="string"){c=unescape(encodeURIComponent(c));for(var S=[],b=0,z=c.length;b<z;++b)S.push(c.charCodeAt(b));c=S}u||(u=c.length);S=0;if(g==0)for(;S+64<u;)t(c.slice(S,S+64)),S+=64,B+=64;for(;S<u;)if(Z[g++]=c[S++],B++,g==64)for(g=0,t(Z);S+64<u;)t(c.slice(S,S+64)),S+=64,B+=64}
function H(){var c=[],u=B*8;g<56?O(C,56-g):O(C,64-(g-56));for(var S=63;S>=56;S--)Z[S]=u&255,u>>>=8;t(Z);for(S=u=0;S<5;S++)for(var b=24;b>=0;b-=8)c[u++]=A[S]>>b&255;return c}
for(var A=[],Z=[],U=[],C=[128],F=1;F<64;++F)C[F]=0;var g,B;N();return{reset:N,update:O,digest:H,digestString:function(){for(var c=H(),u="",S=0;S<c.length;S++)u+="0123456789ABCDEF".charAt(Math.floor(c[S]/16))+"0123456789ABCDEF".charAt(c[S]%16);return u}}};
ZFN=function(N,t){t=t===void 0?NEt:t;if(!to4){var O;N=(O=N.navigator)==null?void 0:O.userAgentData;if(!N||typeof N.getHighEntropyValues!=="function"||N.brands&&typeof N.brands.map!=="function")return Promise.reject(Error("ua"));OFl((N.brands||[]).map(function(A){var Z=new HF4;Z=_.Xa(Z,1,A.brand);return _.Xa(Z,2,A.version)}));
typeof N.mobile==="boolean"&&_.SR(AeN,2,N.mobile);to4=N.getHighEntropyValues(t)}var H=new Set(t);return to4.then(function(A){var Z=AeN.clone();H.has("platform")&&_.Xa(Z,3,A.platform);H.has("platformVersion")&&_.Xa(Z,4,A.platformVersion);H.has("architecture")&&_.Xa(Z,5,A.architecture);H.has("model")&&_.Xa(Z,6,A.model);H.has("uaFullVersion")&&_.Xa(Z,7,A.uaFullVersion);return Z.serialize()}).catch(function(){return AeN.serialize()})};
hI=function(N,t,O,H){this.initialValue_=N;this.maxValue_=t;this.currBaseValue_=this.currValue_=N;this.randomFactor_=O||0;this.backoffFactor_=H||2};
Mn=function(N){this.src=N;this.listeners={};this.typeCount_=0};
CPS=function(){for(var N;N=VoG.remove();){try{N.fn.call(N.scope)}catch(t){Ag(t)}DHN.put(N)}UH9=!1};
_.KYQ=function(N){switch(N){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
FYl=function(N){switch(N){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.dHv=function(){};
Syt=function(N,t,O,H){N=gvS(yeg(BEM(new _.bu(1828,"0"),N),new ceM)).disableWithCredentials();t.length&&$HN(N,jDx(new iFy,t));H!==void 0&&(N.destinationUrl=H);var A=new uel(1828,"","",!1,"",N.build());_.L1(A,N);var Z=new zu({flush:function(U){try{A.flush(U)}catch(C){O(C)}}});
Z.addOnDisposeCallback(function(){setTimeout(function(){try{Z.snapshotAndFlush()}finally{A.dispose()}})});
Z.invocationLimit=1E5;Z.flushInterval=3E4;Z.JSC$9942_flushTimer.setInterval(3E4);return Z};
Y1=function(){var N,t,O;return(O=(N=globalThis.performance)==null?void 0:(t=N.now)==null?void 0:t.call(N))!=null?O:Date.now()};
bFv=function(N,t){if(N.disable)return new hel;t=t?vlt(t):[];N={so:N.so,yVI:N.kKY,lNc:N.wWf,destinationUrl:N.destinationUrl,uGN:N.uGN,mYE:N.mYE};t=t===void 0?[]:t;return new Mo9(N,t)};
pY4=function(N){if(!N)return null;N=_.aP(N,2);return N===null||N===void 0?null:JR(N)};
_.LYx=function(N){if(!N)return null;N=_.aP(N,4);return N===null||N===void 0?null:_.wD(N)};
a9t=function(N,t){return t?zeQ(t):N?Yyz(N):Promise.resolve()};
zeQ=function(N){return new Promise(function(t,O){var H=_.Tu("SCRIPT"),A=_.LYx(N);_.UG(H,A);H.onload=function(){_.wb(H);t()};
H.onerror=function(){_.wb(H);O(Error("Fa"))};
(eR("HEAD")[0]||document.documentElement).appendChild(H)})};
Yyz=function(N){return new Promise(function(t){var O=_.Tu("SCRIPT");if(N){var H=_.aP(N,6);H=H===null||H===void 0?null:_.Zx(H)}else H=null;_.Dx(O,H);(eR("HEAD")[0]||document.documentElement).appendChild(O);_.wb(O);t()})};
PA=function(N,t,O){var H,A=new Promise(function(Z){H=setTimeout(Z,t)});
return Promise.race([N.finally(function(){return void clearTimeout(H)}),
A.then(O)])};
TEx=function(N,t){try{return globalThis.sessionStorage.setItem(N,t),!0}catch(O){return!1}};
wY4=function(N,t,O,H){t=t===void 0?0:t;O=O===void 0?N.length:O;var A=0;for(H&&(A=wY4(H));t<O;t++)H=typeof N==="string"?N.charCodeAt(t):N[t],A=eel(31,A)+H|0;return A};
PPp=function(N,t){return[wY4(N,0,N.length>>1,t),wY4(N,N.length>>1)]};
XYO=function(N){var t=_.D(PPp(N,X$));N=t.next().value;t=t.next().value;return N.toString(16)+t.toString(16)};
xH9=function(N,t){var O=PPp(t);N=new Uint32Array(N.buffer);t=N[0];var H=_.D(O);O=H.next().value;H=H.next().value;for(var A=1;A<N.length;A+=2){for(var Z=t,U=A,C=O,F=H,g=0;g<22;g++)U=U>>>8|U<<24,U+=Z|0,U^=C+38293,Z=Z<<3|Z>>>29,Z^=U,F=F>>>8|F<<24,F+=C|0,F^=g+38293,C=C<<3|C>>>29,C^=F;Z=[Z,U];N[A]^=Z[0];A+1<N.length&&(N[A+1]^=Z[1])}};
kpz=function(N,t,O,H,A){var Z=(4-(X$.length+O.length)%4)%4,U=new Uint8Array(4+Z+X$.length+4+O.length),C=new DataView(U.buffer),F=0;C.setUint32(F,Math.random()*4294967295);F=F+4+Z;U.set(X$,F);F+=X$.length;C.setUint32(F,A);U.set(O,F+4);xH9(U,H);return N.insert(t,function(g){return void globalThis.sessionStorage.removeItem(g)})?TEx(t,_.wi(U))?"s":"t":"i"};
qyv=function(N,t){var O=globalThis.sessionStorage.getItem(N);if(!O)return["m"];try{var H=_.Jg(O);xH9(H,t)}catch(A){return globalThis.sessionStorage.removeItem(N),["c"]}for(t=4;t<7&&H[t]===0;)t++;for(O=0;O<X$.length;O++)if(H[t++]!==X$[O])return globalThis.sessionStorage.removeItem(N),["d"];O=(new DataView(H.buffer)).getUint32(t);return Math.floor(Date.now()/1E3)>=O?(globalThis.sessionStorage.removeItem(N),["e"]):["a",new Uint8Array(H.buffer,t+4)]};
f9g=function(N){return globalThis.TextEncoder?(new TextEncoder).encode(N):_.x1(N)};
nvx=function(N){var t=N,O;return function(){if(t){var H=t;t=void 0;O=H.apply(this,arguments)}return O}};
reG=function(N){return xX(function(t){if(t instanceof N)return!0;var O,H,A=t==null?void 0:(O=t.ownerDocument)==null?void 0:(H=O.defaultView)==null?void 0:H[N.name];return WYO(A)&&t instanceof A})};
_.f1=function(N,t,O){_.k1.call(this);this.JSC$10156_listener_=N;this.JSC$10156_interval_=t||0;this.handler_=O;this.callback_=(0,_.qn)(this.JSC$10158_doAction_,this)};
_.n1=function(N){N=I9x(N);return _.wD(N)};
I9x=function(N){return N===null?"null":N===void 0?"undefined":N};
QDG=function(N){if(N&&N.focus)if(N!==document.activeElement)N.focus();else return l9z(function(){return _.K(function(t){document.activeElement&&document.activeElement.blur();return t.return(l9z(function(){N.focus()}))})})};
_.mHp=function(N){var t=t===void 0?5:t;setTimeout(function(){var O;return _.K(function(H){H.nextAddress==1&&(O=document.activeElement);if(H.nextAddress!=5)return(document.activeElement===O||document.activeElement===document.body)&&t>=0&&N?H.yield(QDG(N),5):H.jumpTo(0);if(document.activeElement===N)return H.return();N=N.parentElement;--t;return H.jumpTo(2)})},15)};
l9z=function(N){return new Promise(function(t){requestAnimationFrame(function(){t(N())})})};
GpM=function(N){if(_.rb)N(_.rb);else{var t;((t=Evl)!=null?t:Evl=[]).push(N)}};
lu=function(){!_.rb&&_.IP&&_.ReO(_.IP());return _.rb};
_.ReO=function(N){_.rb=N;var t;(t=Evl)==null||t.forEach(GpM);Evl=void 0};
_.Q5=function(N){_.rb&&_.rb.beforeLoadModuleCode(N)};
_.m7=function(){_.rb&&_.rb.JSC$11209_setLoaded()};
E$=function(N){return P_g(N)?Number(N):String(N)};
vvg=function(N){this.action=N;this.wfv=!1};
Jep=function(N,t){vvg.call(this,"set-drive-options");this.appId=N;this.appOrigin=t};
ovN=function(N){vvg.call(this,"visibility");this.visible=N};
sDg=function(N,t,O){Gu.call(this,N,t,O)};
NrO=function(N){RP.call(this,N)};
tgO=function(N){N=N&&N.getWindow()||window;return N.gadgets&&N.gadgets.rpc};
Hzg=function(N,t){var O=t&&t.getWindow()||window;if(tgO(t))N();else if(Ozg)Ozg.push(N);else var H=Ozg=[N],A=O.setInterval(function(){if(tgO(t)){O.clearInterval(A);for(var Z=0;Z<H.length;Z++)H[Z]();Ozg=null}},100)};
Zzz=function(N,t){var O=new vA(N);_.L1(t,O);var H={passive:!1};t.listen(O,"mousewheel",function(A){return void ArM(N,A)},H).listen(N,"scroll",function(A){return void ArM(N,A)},H)};
ArM=function(N,t){var O;a:{for(O=t.target;O;){if(O.nodeType==1){var H=_.JI(O,"overflowY");if(H=="auto"||H=="scroll")break a}O=O.parentNode}O=null}if(!O||!_.oP(N,O)||O.scrollHeight==O.clientHeight||t.deltaY>0&&Math.abs(O.scrollTop-(O.scrollHeight-O.clientHeight))<=1||t.deltaY<0&&O.scrollTop==0)t.preventDefault(),t.stopPropagation()};
Zy=function(N,t,O,H,A,Z,U,C,F){C=C===void 0?!1:C;F=F===void 0?!1:F;Gu.call(this,void 0,void 0,void 0);Gu.call(this,Z?Z+" picker modal-dialog":"picker modal-dialog",!0,O);_.s$(N,"protocol");this.iframeManager_=new Vgz;this.targetId_=NY();this.rpcToken_=NY();N=_.tJ(N);_.OH(N,"hostId");this.useGapi_=!F;C&&_.Ho(N,"fv2","true");this.setUrl(N.toString());this.preferredDialogWidth_=H;this.preferredDialogHeight_=A;H!==void 0||A!==void 0?H=!0:(H=_.OH(_.tJ(N.toString()),"hostId"),DVz||(DVz=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
H=!DVz.has(H));this.autoSizeDialog_=H;this.JSC$10346_gadgetsDomHelper_=U||this.JSC$10297_dom_;t&&(U=this.JSC$10346_gadgetsDomHelper_,t=_.OH(_.tJ(this.JSC$10348_url_),"grugl")=="true"?UVl:C0Q,tgO(U)||(U=U||eu(document),H=U.createElement("SCRIPT"),_.UG(H,t),H.type="text/javascript",U.JSC$9481_document_.body.appendChild(H)));N=N.toString();t=null;U=N.indexOf("/picker?");U>-1?t=N.substring(0,U+8-1):Vv(N,"/picker")&&(t=N);t&&this.setRelayUrl(t+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(N=this.buttons_,N.JSC$10331_element_=this.buttonEl_,N.render()):_.CU(this.buttonEl_,K8S),_.AJ(this.buttonEl_,!!this.buttons_))};
_.yrO=function(N){var t=t===void 0?F8y:t;var O=_.GM(N),H=function(Z){Z=_.D(Z);Z.next();Z=Vo(Z);return t(O,Z)},A=function(Z){var U=_.D(Z);
Z=U.next().value;U=Vo(U);return N.apply(Z,U)};
return function(){var Z=_.E1.apply(0,arguments),U=this||_.H4,C=dVG.get(U);C||(C={},dVG.set(U,C));return g2v(C,[this].concat(_.W6(Z)),A,H)}};
Dy=function(N){var t={};N=N.replace(/\r/g,"").split("\n");for(var O=0;O<N.length;O++){var H=N[O],A=H.indexOf(":");A<0||(t[H.substring(0,A)]=H.substring(A+2,H.length))}return t};
BrO=function(N,t,O){O=O===void 0?function(){}:O;
return N?t():O()};
_.$V9=function(N){var t;return((t=crO.documentOverride)!=null?t:N).__wizdispatcher};
_.Ct=function(N){var t=UH;UH=N;return t};
_.izG=function(N){return N===jkO||(N==null?void 0:N.name)==="\u0275NotFound"};
_.Kt=function(N,t){var O;if((O=N)==null?0:O.isDisposed)throw Error("jb`"+String(N.debugName));for(;N!==void 0;){O=N;if(O.retrieve)return O.retrieve(t,{optional:!0});N=N.parent}return jkO};
FS=function(N){return{"\u0275prov":{providedIn:"root",token:Symbol(N),factory:void 0,value:void 0}}};
_.ucl=function(N){var t=UH;if(!t){switch(N===void 0?3:N){case 0:N=Error("ib");break;case 1:N=Error("kb");break;case 2:N=Error("lb");break;default:N=Error("mb")}throw N;}return t};
Sv4=function(N){var t=_.Ct(N);N={};return N[Symbol.dispose]=function(){_.Ct(t)},N};
hAz=function(N,t){N.disposables||(N.disposables=[]);N.disposables.push(t)};
dp=function(N){var t=UH;t&&!t.isDisposed&&(hAz(t,N),N.parent=t)};
bzN=function(N){if(N.disposables){for(var t=_.D(N.disposables),O=t.next();!O.done;O=t.next())O=O.value,typeof O==="function"?O():Mg9(O);N.disposables.length=0}};
Mg9=function(N){if(!N.isDisposed){N.isDisposed=!0;var t;(t=N[Symbol.dispose])==null||t.call(N);delete N.parent;bzN(N)}};
P0N=function(N){var t={retrieve:function(O){switch(O.\u0275prov.token){case pa9.\u0275prov.token:var H=N.asyncDeps;break;case _.L8x.\u0275prov.token:H=N.rootElement;break;case zAx.\u0275prov.token:H=N.modelRootElement;break;case YvN.\u0275prov.token:H=N.appContext;break;case aoy.\u0275prov.token:H=N.rendererData;break;case TrS.\u0275prov.token:H=N.injectingConstructor;break;case waG.\u0275prov.token:H=N.dispatcher}if(H)O=H;else a:{for(H=t.parent;H;){var A=H;if(A.retrieve){O=A.retrieve(O);break a}H=
H.parent}H=O.\u0275prov.token;A=eA4[H];A!==void 0?O=A:(A=O.\u0275prov.providedIn,O.\u0275prov.factory?(O=O.\u0275prov.factory(),H&&A==="root"&&(eA4[H]=O)):O=jkO)}return O}};
dp(t);return t};
XaG=function(){var N=_.ucl(1),t=_.Kt(N,YvN);if(!_.izG(t))return t;N=_.Kt(N,waG);if(!_.izG(N))return N.getOptionalAppContext()};
xVg=function(N){if(typeof document!=="undefined"&&document&&document.getElementById&&(N=document.getElementById(N))){var t=N.tagName.toUpperCase();if(t=="SCRIPT"||t=="LINK")return N}return null};
qvl=function(N,t){if((N=N===void 0?"":N)&&t)throw Error("sb");var O="";var H=_.H4._F_jsUrl;(N=t||xVg(N))&&(O=N.src?N.src:N.getAttribute("href"));if(H&&O){if(H!=O)throw Error("tb`"+H+"`"+O);O=H}else O=H||O;if(!kBO(O))throw Error("ub");return O};
rr4=function(){if(!fog){fog=!0;try{var N=qvl(_.H4._F_jsUrl?"":"base-js")}catch(H){return}var t=n2S(W8t(N)),O=Object.keys(t);O.length!==0&&GpM(function(H){for(var A=_.D(O),Z=A.next();!Z.done;Z=A.next()){Z=Z.value;for(var U=_.D(Object.keys(t[Z])),C=U.next();!C.done;C=U.next())H.addExtraEdge(Z,C.value)}})}};
lov=function(){var N=Object.assign({},IoM);Object.getOwnPropertyNames(IoM).forEach(function(t){gp[t]!==void 0&&(N[t]=gp[t])});
return N};
QkM=function(N,t){if(gp.enablePerformanceTiming){var O,H;(H=(O=performance).mark)==null||H.call(O,N+"Start__"+t)}};
mVG=function(N,t){if(gp.enablePerformanceTiming){var O,H;(H=(O=performance).measure)==null||H.call(O,N+"__"+t,N+"Start__"+t)}};
E2y=function(N,t,O){var H;return N&&t?N+"__"+t:(H=N!=null?N:t)!=null?H:O};
RAG=function(N,t){var O=Object.create(GBM);O.debugName=t;!UH||dp(O);t=_.Ct(O);try{N(O)}finally{_.Ct(t)}return function(){return void Mg9(O)}};
JrS=function(N){return yo(N)&&v2l in N};
o2v=function(N,t){return Object.is(N,t)};
co=function(N){var t=Bo;Bo=N;return t};
NaM=function(N){if($M)throw Error("Z");if(Bo!==null){var t=Bo.producersTail;if(t===void 0||t.producer!==N){var O=void 0,H=Bo.recomputing;if(H&&(O=t!==void 0?t.nextProducer:Bo.producers,O!==void 0&&O.producer===N)){Bo.producersTail=O;O.lastReadVersion=N.version;return}var A=N.consumersTail,Z;if(!(Z=A===void 0||A.consumer!==Bo)){if(H){a:{Z=Bo;H=Z.producersTail;if(H!==void 0){Z=Z.producers;do{if(Z===A){H=!0;break a}if(Z===H)break;Z=Z.nextProducer}while(Z!==void 0)}H=!1}H=!H}Z=H}Z&&(H=jG(Bo),O={producer:N,
consumer:Bo,nextProducer:O,prevConsumer:A,lastReadVersion:N.version,nextConsumer:void 0},Bo.producersTail=O,t!==void 0?t.nextProducer=O:Bo.producers=O,H&&skS(N,O))}}};
u$=function(N){if(!jG(N)||N.dirty)if(N.dirty||N.lastCleanEpoch!==i$)(N.producerMustRecompute(N)||tO4(N))&&N.producerRecomputeValue(N),N.dirty=!1,N.lastCleanEpoch=i$};
Obp=function(N){if(N.consumers!==void 0){var t=$M;$M=!0;try{for(var O=N.consumers;O!==void 0;O=O.nextConsumer){var H=O.consumer;H.dirty||(N=void 0,H.dirty=!0,Obp(H),(N=H.consumerMarkedDirty)==null||N.call(H,H))}}finally{$M=t}}};
HbG=function(){var N;return((N=Bo)==null?void 0:N.consumerAllowSignalWrites)!==!1};
A_t=function(N){N&&(N.producersTail=void 0,N.recomputing=!0);return co(N)};
VOt=function(N){N.recomputing=!1;var t=N.producersTail,O=t!==void 0?t.nextProducer:N.producers;if(O!==void 0){if(jG(N)){do O=ZbO(O);while(O!==void 0)}t!==void 0?t.nextProducer=void 0:N.producers=void 0}};
tO4=function(N){for(N=N.producers;N!==void 0;N=N.nextProducer){var t=N.producer,O=N.lastReadVersion;if(O!==t.version)return!0;u$(t);if(O!==t.version)return!0}return!1};
skS=function(N,t){var O=N.consumersTail,H=jG(N);O!==void 0?(t.nextConsumer=O.nextConsumer,O.nextConsumer=t):(t.nextConsumer=void 0,N.consumers=t);t.prevConsumer=O;N.consumersTail=t;if(!H)for(N=N.producers;N!==void 0;N=N.nextProducer)skS(N.producer,N)};
ZbO=function(N){var t=N.producer,O=N.nextProducer,H=N.nextConsumer,A=N.prevConsumer;N.nextConsumer=void 0;N.prevConsumer=void 0;H!==void 0?H.prevConsumer=A:t.consumersTail=A;if(A!==void 0)A.nextConsumer=H;else if(t.consumers=H,!jG(t))for(N=t.producers;N!==void 0;)N=ZbO(N);return O};
jG=function(N){return N.consumerIsAlwaysLive||N.consumers!==void 0};
Ugx=function(N){var t=Object.create(Dgl);t.computation=N;N=function(){u$(t);NaM(t);if(t.value===SG)throw t.error;return t.value};
N[hJ]=t;return N};
dgS=function(N,t){var O=Object.create(Cdv);O.value=N;t!==void 0&&(O.equal=t);N=function(){NaM(O);return O.value};
N[hJ]=O;return[N,function(H){return KvQ(O,H)},
function(H){HbG()||FvQ(O);KvQ(O,H(O.value))}]};
KvQ=function(N,t){HbG()||FvQ(N);if(!N.equal(N.value,t)){N.value=t;N.version++;i$++;Obp(N);var O;(O=g3y)==null||O(N)}};
Baz=function(N,t,O){var H=Object.create(y_t);H.source=N;H.computation=t;O!=void 0&&(H.equal=O);N=function(){u$(H);NaM(H);if(H.value===SG)throw H.error;return H.value};
N[hJ]=H;return N};
_.MY=function(N){var t=co(null);try{return N()}finally{co(t)}};
_.b$=function(N,t,O){O=O===void 0?"":O;N=dgS(N,t==null?void 0:t.equals);var H=N[0],A=H[hJ];A.debugName=E2y(t==null?void 0:t.debugName,O,"[signal]");if(!gp.enablePerformanceTiming)return N;var Z=N[1],U=N[2];return[H,function(C){c_4(function(){return void Z(C)},A)},
function(C){c_4(function(){return void U(C)},A)}]};
c_4=function(N,t){QkM("signalSet",t.debugName);try{N()}finally{mVG("signalSet",t.debugName)}};
j0Q=function(N,t){var O=_.D(_.b$(N,void 0,"cPpJzc"));N=O.next().value;O=O.next().value;N[$gl]=O;N[pt]=t;return N};
iby=function(N){return!!N&&typeof N==="object"&&Object.getPrototypeOf(N)===Object.prototype};
uWt=function(N){return typeof N==="function"&&$gl in N&&typeof N[$gl]==="function"};
S7v=function(N,t){Object.defineProperty(N,pt,{get:function(){return t}})};
zg=function(N,t){if(Lt(N)){var O=N.map(function(Z){return zg(Z,t)});
S7v(O,t);return O}if(iby(N)){O={};N=_.D(Object.entries(N));for(var H=N.next();!H.done;H=N.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;O[H]=zg(A,t)}S7v(O,t);return O}return j0Q(N,t)};
hSp=function(N){if(Lt(N))return N.map(function(A){return hSp(A)});
if(iby(N)){var t={};N=_.D(Object.entries(N));for(var O=N.next();!O.done;O=N.next()){var H=_.D(O.value);O=H.next().value;H=H.next().value;t[O]=hSp(H)}return t}return uWt(N)?N():N};
bb4=function(){var N={height:0,width:0};if(!iby(N))throw Error("Jb");var t=Symbol("Kb");return[zg(N,t),function(O,H){if(O[pt]===t)if(typeof H==="function"){var A=[].concat(_.W6(hSp(O)));H=H(A)||A;MOz(O,[].concat(_.W6(H)))}else MOz(O,H);else throw Error("Lb");}]};
MOz=function(N,t){if(uWt(N))N[$gl](t);else if(Lt(N)&&Lt(t))t=zg(t,N[pt]),N.length=0,N.push.apply(N,_.W6(t));else if((iby(N)||Lt(N))&&(Lt(t)||typeof t==="object"&&t!==null)){t=_.D(Object.entries(t));for(var O=t.next();!O.done;O=t.next()){var H=_.D(O.value);O=H.next().value;H=H.next().value;var A=N,Z=A[O];Object.hasOwn(N,O)?MOz(Z,H):A[O]=zg(H,N[pt])}}else throw Error("Mb");};
pXt=function(N){return Object.create(Object.assign({},YM,N))};
zSx=function(){var N;return(N=Lv9)!=null?N:Lv9=pXt({consumerAllowSignalWrites:!0})};
_.aa=function(N,t,O){O=O===void 0?"":O;N=Ugx(N);var H=N[hJ];H.debugName=E2y(t==null?void 0:t.debugName,O,"[computed]");(t==null?void 0:t.equals)!=null&&(H.equal=t.equals);return N};
Tg=function(N){var t=co(Y7z);try{N()}finally{co(t)}};
TaQ=function(N,t,O){var H=a4v(N);wp={name:O?H+" ("+O+")":H,isReactive:N.componentType!==eG,parent:wp};N=t();wp=wp.parent;return N};
Po=function(){var N=wp;return N?N.isReactive:!1};
xM=function(N,t,O){var H=wp;t&&(wp=t);try{return O==null?N():N.call(O)}catch(Z){N=Z;XS(N,wp);if(N!==wX9){eSv=wp;t=[];for(O=UH;O;){var A=void 0;t.push((A=O.debugName)!=null?A:"[context]");A=void 0;O=(A=O.parent)!=null?A:null}Pd4=t.reverse()}wX9=N;throw N;}finally{wp=H}};
XS=function(N,t){try{var O=XXO(t);if(O&&!N.componentStack&&(N.componentStack=O,gp.enableComponentStacksInErrorMessages)){var H=N.message+"\n\nComponent stack: "+O;N.stack&&(N.stack=N.stack.replace(N.message,H));N.message=H}}catch(A){}};
XXO=function(N){if(yo(N)&&N.name!==void 0&&N.isReactive!==void 0&&N.parent!==void 0||N===null){for(var t=0,O="";t<20&&N;)O+=N.name+" > ",N=N.parent,t++;N=O.slice(0,-3)}else if(gp.enableContextBasedComponentStacks){a:{for(N=N===void 0?UH:N;N;){if(JrS(N))break a;t=void 0;N=(t=N.parent)!=null?t:null}N=null}N=N.getComponentStack().slice(0,20).join(" > ")}else N="";return N};
a4v=function(N){return N.debugName||N.name||"[component]"};
n3x=function(N){switch(N.onInitType){case xg4:kWp.schedule(N);break;case q7M:gp.enableQueueEffectAndOnInitInitialRuns?f4x.enqueue(N):f4x.schedule(N);break;default:_.Ep(N.onInitType)}};
mgO=function(N){if(!N.isDisposed)switch(N.effectType){case kM:Wvt.schedule(N);break;case r_v:I4G.schedule(N);break;case l4v:gp.enableQueueEffectAndOnInitInitialRuns||N.hasRun?Q0G.enqueue(N):Q0G.schedule(N);break;default:_.Ep(N.effectType)}};
RSl=function(){if(qY>0)gp.flushRenderEffectsDuringRender&&Wvt.flush();else{for(var N=_.D(E3N),t=N.next();!t.done;t=N.next())t.value.flush();GWM()}};
GWM=function(){_.K(function(N){if(N.nextAddress==1)return N.yield(Promise.resolve(),2);for(var t=_.D(v3g),O=t.next();!O.done;O=t.next())O.value.flush();_.Ty(N)})};
o3M=function(N){ft=!0;try{for(var t=_.D(N),O=t.next();!O.done;O=t.next()){for(var H=O.value,A=[H],Z=H;Z.parent!==void 0;)Z=Z.parent,J_x(Z)&&N.has(Z)&&A.push(Z);for(;A.length>0;){var U=A.pop();N.delete(U);U.run()}}}finally{ft=!1}};
nt=function(N){qY--;if(N){N=_.D(s0t);for(var t=N.next();!t.done;t=N.next())t.value.clear()}else qY>0||ft&&!gp.flushRenderEffectsDuringRender||RSl()};
N9l=function(N,t,O){t=Object.create(t);N&&(t.effectFn=N);O&&(t.debugName=O);dp(t);t.componentStack=wp;return t};
_.Wo=function(N,t){N=N9l(N,t49,t);mgO(N)};
_.rp=function(N,t){N=N9l(N,O9v,t);mgO(N)};
H9l=function(N){return N};
Shy=function(N,t){function O(){return A()}
var H=H===void 0?"":H;var A=typeof N==="function"?Baz(N,H9l,t==null?void 0:t.equals):Baz(N.source,N.computation,t==null?void 0:t.equals);var Z=A[hJ];Z.debugName=E2y(t==null?void 0:t.debugName,H,"[linkedSignal]");O[hJ]=Z;return[O,function(U){c_4(function(){u$(Z);KvQ(Z,U);Z.dirty=!1;Z.lastCleanEpoch=i$},Z)},
function(U){c_4(function(){u$(Z);HbG()||FvQ(Z);KvQ(Z,U(Z.value));Z.dirty=!1;Z.lastCleanEpoch=i$},Z)}]};
_.Ia=function(N){var t=UH;if(t){var O=wp;hAz(t,function(){var H=co(zSx());try{xM(function(){return void N()},O)}catch(A){throw gp.enableContextBasedComponentStacks&&XS(A),A;
}finally{co(H)}})}};
l$=function(N,t){var O={};(t===void 0||t)&&dp(O);t=_.Ct(O);try{N(O)}finally{_.Ct(t)}return function(){return void Mg9(O)}};
_.Qo=function(N){return typeof N==="function"?N():(N==null?0:N[hcM])?N.get():N};
M4G=function(N){if(UH)throw Error("nb");l$(N,!1)};
mP=function(N,t){N=_.Ct(N);try{return _.MY(t)}finally{_.Ct(N)}};
EH=function(N,t){var O=XXO(eSv),H,A;var Z=(A=(H=Pd4)==null?void 0:H.slice())!=null?A:[];t={componentStack:O,contextTrace:Z,errorSeverity:3,featureFlags:lov(),tagName:t};return[N,t]};
LKy=function(N,t,O){if(Object.hasOwnProperty.call(b9x,N)&&(N=b9x[N],Object.hasOwnProperty.call(N,t)&&(N=N[t],N instanceof Array))){for(var H=null,A=!1,Z=0,U=N.length;Z<U;++Z){var C=N[Z],F=C.contingentAttribute;if(!F)return C.contract;H===null&&(H={});F=Object.hasOwnProperty.call(H,F)?H[F]:H[F]=O(F);if(F===C.requiredValue)return C.contract;F==null&&(A=!0)}if(A)return null}t=pdS[t];return typeof t==="number"?t:null};
a3S=function(N,t,O){var H=null;(N=zc9[N])&&(H=N[t]);return typeof H!=="number"&&((N=zc9["*"])&&(H=N[t]),typeof H!=="number")?!1:!0===Yhz[H][String(O).toLowerCase()]};
wdp=function(N,t){t=LKy(N.toLowerCase(),t,function(){var H;(H=gp.handleError)==null||H.call.apply(H,[gp].concat(_.W6(EH(Error("Tb"),N.toLowerCase()))))});
if(t===null)return null;var O;return(O=T9S[t])!=null?O:null};
ecv=function(N,t,O){if(O===null||O===void 0)return O;t=t.toLowerCase();N=wdp(N,t);return N===null?O:N(t,O)};
PUg=function(){};
Gg=function(N,t){for(;N.length>t;)N.pop()};
Xdx=function(N){N=Array(N);Gg(N,0);return N};
vo=function(N,t,O){if(O==null)N.removeAttribute(t);else{var H;(H=t.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":t.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?N.setAttributeNS(H,t,O):N.setAttribute(t,O)}};
x1y=function(N,t,O){N[t]=O};
qhG=function(N,t,O){N=N.style;if(typeof O==="string")N.cssText=O;else{N.cssText="";for(var H in O)if(kCQ.call(O,H)){t=N;var A=H,Z=O[H];A.indexOf("-")>=0?t.setProperty(A,Z):t[A]=Z}}};
f3S=function(N,t,O){var H=typeof O;H==="object"||H==="function"?N[t]=O:vo(N,t,O)};
n6O=function(){var N=new PUg;N[JJ.default]=f3S;N.style=qhG;return N};
WKS=function(N,t,O,H){(H[t]||H[JJ.default])(N,t,O)};
I3t=function(N,t,O){t=new ryl(t,O);return N.__incrementalDOMData=t};
NC=function(N,t){if(N.__incrementalDOMData)return N.__incrementalDOMData;var O=N.nodeType===1?N.localName:N.nodeName,H=N.nodeType===1?N.getAttribute("key"):null;t=I3t(N,O,N.nodeType===1?H||t:null);if(N.nodeType===1&&(N=N.attributes,O=N.length)){H=t._attrsArr||(t._attrsArr=Xdx(O*2));for(var A=0,Z=0;A<O;A+=1,Z+=2){var U=N[A],C=U.value;H[Z]=U.name;H[Z+1]=C}}return t};
l3x=function(N,t,O,H,A){return t==O&&H==A};
QbS=function(N){for(var t=tO,O=O2();O!==N;){var H=O.nextSibling;t.removeChild(O);HZ.deleted.push(O);O=H}};
O2=function(){return AO?AO.nextSibling:tO.firstChild};
Zt=function(){AO=O2()};
GCx=function(N,t,O){Zt();var H;a:{if(H=AO){do{var A=H,Z=N,U=t,C=NC(A,U);if(m1y(A,Z,C.nameOrCtor,U,C.key))break a}while(t&&(H=H.nextSibling))}H=null}H||(N==="#text"?(O=V8.createTextNode(""),I3t(O,"#text",null),N=O):(H=V8,A=tO,typeof N==="function"?H=new N:H=(A=N==="svg"?"http://www.w3.org/2000/svg":N==="math"?"http://www.w3.org/1998/Math/MathML":A==null||NC(A).nameOrCtor==="foreignObject"?null:A.namespaceURI)?H.createElementNS(A,N):H.createElement(N),I3t(H,N,t),N=H,O&&N.setAttribute("nonce",O)),HZ.created.push(N),
H=N);O=H;if(O!==AO){if(E6g.indexOf(O)>=0)for(N=tO,t=O.nextSibling,H=AO;H!==null&&H!==O;)A=H.nextSibling,N.insertBefore(H,t),H=A;else tO.insertBefore(O,AO);AO=O}};
Rcg=function(N,t,O){GCx(N,t,O);tO=AO;AO=null;return tO};
v6G=function(){QbS(null);AO=tO;tO=tO.parentNode};
sbt=function(N,t){t=t===void 0?{}:t;var O=t.matches===void 0?l3x:t.matches;return function(H,A,Z){var U=HZ,C=V8,F=E6g,g=Dt,B=U2,c=AO,u=tO,S=m1y;V8=H.ownerDocument;HZ=new Jyz(H);m1y=O;Dt=[];U2=[];AO=null;var b=tO=H.parentNode,z,w=o6S.call(H);if((z=w.nodeType===11||w.nodeType===9?w.activeElement:null)&&H.contains(z)){for(w=[];z!==b;)w.push(z),z=z.parentNode||(b?z.host:null);b=w}else b=[];E6g=b;try{return N(H,A,Z)}finally{H=HZ,CL&&H.deleted.length>0&&CL(H.deleted),V8=C,HZ=U,m1y=S,Dt=g,U2=B,AO=c,tO=u,
E6g=F}}};
Nex=function(N,t,O,H){KL.push(WKS);KL.push(N);KL.push(t);KL.push(O);KL.push(H)};
O0g=function(N,t,O){var H=U2;t=t._attrsArr||(t._attrsArr=Xdx(H.length));for(var A=!t.length||!1,Z=0;Z<H.length;Z+=2){var U=H[Z];if(A)t[Z]=U;else if(t[Z]!==U)break;var C=H[Z+1];if(A||t[Z+1]!==C)t[Z+1]=C,Nex(N,U,C,O)}if(Z<H.length||Z<t.length){for(Z=A=Z;Z<t.length;Z+=2)FN[t[Z]]=t[Z+1];for(Z=A;Z<H.length;Z+=2)A=H[Z],U=H[Z+1],FN[A]!==U&&Nex(N,A,U,O),t[Z]=A,t[Z+1]=U,delete FN[A];Gg(t,H.length);for(var F in FN)Nex(N,F,void 0,O),delete FN[F]}N=tm9;tm9=O=KL.length;for(F=N;F<O;F+=5)(0,KL[F])(KL[F+1],KL[F+
2],KL[F+3],KL[F+4]);tm9=N;Gg(KL,N);Gg(H,0)};
H0g=function(N){GCx("#text",null);var t=AO;var O=NC(t);if(O.text!==N){O=O.text=N;for(var H=1;H<arguments.length;H+=1)O=(0,arguments[H])(O);t.data!==O&&(t.data=O)}};
KFt=function(N,t,O){if(O===!1&&Avv.has(t))vo(N,t,null);else if(t!=="idomKey"&&t!=="skip"&&t!=="skipchildren"&&t!=="children"&&t!=="el")if(t.startsWith("on")){if(t[2]!==":")throw Error("Sb`"+t);if(O===void 0||O===null){var H;(H=gp.handleError)==null||H.call.apply(H,[gp].concat(_.W6(EH(Error("Xb`"+t),N.tagName))));N[t]=void 0}else{var A=t.slice(3);H=Po();if(A==="jsaction"){O=Array.isArray(O)?O:[O];O=_.D(O);for(var Z=O.next();!Z.done;Z=O.next()){Z=Z.value;if(typeof Z!=="object"||Z===null||typeof Z.selfReg!==
"function")throw Error("$b`"+t);Z.selfReg(0,N,H?_.Ia:function(){})}}else{if(typeof O!=="object"||O===null)throw Error("Yb`"+t+"`"+typeof O);
if(typeof O.getFn!=="function")throw Error("Zb`"+t+"`"+Object.keys(O));if(O.selfReg)O.selfReg(0,N,A,H?_.Ia:function(){});
else if(H&&N["on"+A]===void 0){var U=O.getFn(0);N.addEventListener(A,U);_.Ia(function(){return void N.removeEventListener(A,U)})}else if(H||!Z0S.includes(A))N["on"+A]=O.getFn(0)}}}else{if(t.startsWith("data-")&&typeof O==="string")try{O=VmN(O)}catch(C){O="zSoyz"}typeof O!=="function"||N._disposeEffects!=null?((H=t.startsWith("prop:"))&&(t=t.slice(5)),gp.enableAttributeSanitization&&(H&&DTx(N.tagName)||(O=ecv(N.tagName,t,O))),t==="style"?("function"==typeof _.du&&O instanceof _.du&&(O=O.toString()),
UTS(N,t,O)):H?N[t]=O:CqO(N,t,O)):(N._signalProps||(N._signalProps=[]),N._signalValues||(N._signalValues=[]),N._signalProps.push(t))}};
FFz=function(N,t,O){O=(O===void 0?{}:O).isReactive;if(t==null?0:t.el){var H=t.el,A;(A=H.onRender)==null||A.call(H,N);N._disposeRef||(N._disposeRef=function(){var Z;(Z=H.onUnmount)==null||Z.call(H);delete N._disposeRef},O&&_.Ia(function(){var Z;
(Z=N._disposeRef)==null||Z.call(N)}))}};
DTx=function(N){return N.length>0&&N.includes("-")&&!dTQ.includes(N.toLowerCase())};
gIx=function(N){return yo(N)&&gu in N};
yvG=function(N){return gIx(N)?N[gu].flattened:N};
BeG=function(N,t){var O=_.E1.apply(2,arguments),H;t=(H=t)!=null?H:{};H={};return H.type=N,H.props=t,H.children=O,H[y8]=!0,H};
_.BZ=function(N){return N.children};
cZ=function(N){var t=cvO!==BeG;cvO=N?$TM:BeG;return t};
_.$l=function(N){return _.mG(N)?"nodeType"in N:!1};
jT=function(){return document.createTextNode("")};
uf=function(N){N=document.createTextNode(String(N));N._isSignalTextNode=!0;return N};
i0M=function(N){return N!=null&&N.contentKind===MC||N instanceof vl||jnt(N)};
ud4=function(N){var t=document.createElement("div");if(jnt(N)&&pY4(N))_.CU(t,pY4(N));else if(N instanceof vl)_.CU(t,N);else if(N!=null&&N.contentKind===MC){if(N.contentKind!==MC)throw Error("Wb");N=JR(N.toString());_.CU(t,N)}N=_.D(t.childNodes);for(var O=N.next();!O.done;O=N.next())O.value._isSafeOrSanitizedHtmlNode=!0;return t};
bf=function(N){N=typeof N;return N==="string"||N==="number"||N==="boolean"};
S8z=function(N){return N instanceof TN||qm(N)||N instanceof dG||"function"==typeof _.du&&N instanceof _.du};
hKt=function(N,t){var O=N.parentElement;if(!O)return t;O.replaceChild(t,N);return t};
Mml=function(N,t){var O=N[0].parentElement;if(O)if(N[0].previousSibling||N[N.length-1].nextSibling){O.insertBefore(t,N[0]);for(var H=N.length-1;H>=0;H--)O.removeChild(N[H])}else O.textContent="",O.appendChild(t);return t};
b0Q=function(N,t){if(N[0].parentElement)for(var O=N[0].parentElement,H=t.length,A=N.length,Z=H,U=0,C=0,F=N[A-1].nextSibling,g=null;U<A||C<Z;)if(N[U]===t[C])U++,C++;else{for(;N[A-1]===t[Z-1];)A--,Z--;if(A===U)for(var B=Z<H?C?t[C-1].nextSibling:t[Z-C]:F;C<Z;){var c=t[C++];O.insertBefore(c,B)}else if(Z===C)for(;U<A;)B=N[U],g&&g.has(B)||O.removeChild(B),U++;else if(N[U]===t[Z-1]&&t[C]===N[A-1])B=N[--A].nextSibling,O.insertBefore(t[C++],N[U++].nextSibling),O.insertBefore(t[--Z],B),N[A]=t[Z];else{if(!g)for(g=
new Map,B=C;B<Z;)g.set(t[B],B++);B=g.get(N[U]);if(B==null)O.removeChild(N[U]),U++;else if(C<B&&B<Z){c=U;for(var u=1,S=void 0;++c<A&&c<Z&&(S=g.get(N[c]))!=null&&S===B+u;)u++;if(u>B-C)for(c=N[U];C<B;)O.insertBefore(t[C++],c);else O.replaceChild(t[C++],N[U++])}else U++}}return t};
LFz=function(N){if(Array.isArray(N)){if(N.length>1)throw Error("jc`"+N.length+"`"+N.map(pvz).join(", "));N=N[0]}if(N==null)return null;if(!(N instanceof _.AY)){var t,O;if((t=window)==null?0:(O=t.trustedTypes)==null?0:O.isScript(N))throw Error("ic");if(String(N).trim().length===0)return null;throw Error("kc`"+pvz(N));}return N};
zKM=function(N,t){t=LFz(t);t!==null&&_.Dx(N,t)};
Y8x=function(N){if(Array.isArray(N)){if(N.length>1)throw Error("lc`"+N.length+"`"+N.map(pvz).join(", "));N=N[0]}if(N==null)return null;if(!(N instanceof dG)){if(String(N).trim().length===0)return null;throw Error("mc`"+pvz(N));}return N};
a0S=function(N,t){t=Y8x(t);t!==null&&(N.textContent=$oN(t))};
pvz=function(N){return"("+typeof N+") "+(N!=null&&typeof N==="object"?N.constructor.name:typeof N)+" "+N};
TeM=function(){};
Yl=function(N,t){t=t===void 0?{}:t;var O=wvO(),H=!0,A,Z=!!gp.legacyTriggerSoyRendererEvents;Z&&(A=XaG());_.Wo(function(){var U=!H&&t.isControlFlowComponent&&Z,C=U?O[gu].flattened[0].parentElement:void 0;H=!1;_.pL.setUp();t.isControlFlowComponent&&qY++;var F=O[0],g=O[gu].flattened,B=cZ(!0);try{var c=N(),u=eK9(F,c,O);Array.isArray(u)||(O[gu].flattened=[u]);var S=O[gu].flattened;if(g&&(!Array.isArray(g)||g.length!==0)){var b=Array.isArray(g)?g[0]:g,z=b[LL],w=b._disposeEffects;b._disposeEffects=void 0;
b=Array.isArray(S)?S[0]:S;b[LL]=z;b[LL]&&(b[LL].numNodes=b===S?1:S.length);b._disposeEffects=w}O[0]=u;t.isControlFlowComponent&&nt(!1)}catch(P){throw t.isControlFlowComponent&&nt(!0),P;}finally{cZ(B),_.pL.tearDown()}U&&(U=A,U!=null||(U=_.$V9(document).getAppContext()),U.get(PqO).JSC$29743_getEventTarget().dispatchEvent(new Xv9(xTt,C,MC)))},t.debugName);
return O};
eK9=function(N,t,O){for(;typeof t==="function";)t=t();if(t!=null&&t[y8]){var H,A,Z;(Z=gp.handleError)==null||Z.call.apply(Z,[gp].concat(_.W6(EH(Error("nc`"+((H=t.type)==null?void 0:H.TAG_NAME)),(A=t.type)==null?void 0:A.TAG_NAME))))}if(N==null)return t==null?jT():bf(t)?uf(t):S8z(t)?uf(t.toString()):_.$l(t)?t:t.length===0?jT():kZv(t,O);if(_.$l(N)){if(t==null)return hKt(N,jT());if(bf(t))return q8l(N,t);if(S8z(t))return q8l(N,t.toString());if(_.$l(t))return hKt(N,t);if(t.length===0)return hKt(N,jT());
t=kZv(t,O);b0Q([N],O[gu].flattened);return t}N=ao(N);if(t==null)return Mml(N,jT());if(bf(t))return Mml(N,uf(t));if(S8z(t))return Mml(N,uf(t.toString()));if(_.$l(t))return b0Q(N,[t])[0];if(t.length===0)return Mml(N,jT());t=kZv(t,O);b0Q(N,O[gu].flattened);return t};
q8l=function(N,t){N.nodeType===Node.TEXT_NODE?N.textContent!==String(t)&&(N.textContent=String(t)):N=hKt(N,uf(t));return N};
ao=function(N,t,O){return f09(N,t!=null?t:[],O===void 0?!1:O)};
kZv=function(N,t){var O=ao(N,void 0,!0);if(O.length===0)return jT();t[gu].flattened=O;return N};
f09=function(N,t,O,H,A){t=t===void 0?[]:t;O=O===void 0?!1:O;A=A===void 0?-1:A;if(N==null)return t;if(N instanceof Tm){var Z=N.render();return f09(Z,t,O,H,A)}if(_.$l(t)&&t.nodeType===Node.ELEMENT_NODE)switch(t.tagName){case "SCRIPT":zKM(t,N);return;case "STYLE":a0S(t,N);return}bf(N)&&(N=uf(N),H&&O&&(H[A]=N));if(i0M(N)){O=ud4(N);O=Array.from(O.childNodes);O=_.D(O);for(Z=O.next();!Z.done;Z=O.next())nIy(t,Z.value);return t}S8z(N)&&(N=uf(N.toString()),H&&O&&(H[A]=N));if(_.$l(N))return nIy(t,N);if(Array.isArray(N)){for(Z=
0;Z<N.length;Z++)f09(N[Z],t,O,N,Z);return t}if(typeof N==="function"){Z=Yl(function(){var C=N();return C!=null&&!bf(C)&&i0M(C)?(C=ud4(C),Array.from(C.childNodes)):C},{debugName:"qmF2ne",
debugFn:N})[0];if(Array.isArray(Z)){O=_.D(Z);for(Z=O.next();!Z.done;Z=O.next())nIy(t,Z.value);return t}H&&O&&(H[A]=Z);return nIy(t,Z)}if(N!=null&&N[y8]){H=N;A=cZ(!0);var U=cvO;try{Z=U.apply(null,[H.type,H.props].concat(_.W6(H.children)))}finally{cZ(A)}return f09(Z,t,O)}(U=gp.handleError)==null||U.call.apply(U,[gp].concat(_.W6(EH(Error("oc")))));return t};
wvO=function(N){var t={};t=Object.assign([],(t[gu]={flattened:[]},t));if(!N)return t;t[0]=kZv(N,t);return t};
nIy=function(N,t){Array.isArray(N)?N.push(t):N.appendChild(t);return N};
wu=function(N){if(!gp.enableLazyTsx)return N;if(Array.isArray(N)){for(var t=0;t<N.length;t++)N[t]=wu(N[t]);return N}return N instanceof Tm?(N=N.render(),wu(N)):N};
rvO=function(N,t){var O,H,A=a4v(N),Z=function(S){H=S;S=cZ(!0);var b=co(eT);QkM("render",A);try{O=wu(N(t))}finally{mVG("render",A),co(b),cZ(S)}};
Z=gp.enableContextPerComponent?RAG(Z,A):l$(Z,gp.alwaysTrackContexts||!!UH);JrS(H);if(!t.renderedFromIdom){var U=_.Ct(H);try{return WFG(N,t,O),O}finally{_.Ct(U)}}!gIx(O)&&Array.isArray(O)&&(O=wvO(O));var C=yvG(O);U=Array.isArray(C)?C[0]:C;var F=!1;if(U){var g,B=(g=t==null?void 0:t.idomKey)!=null?g:N;g=C!==U;U._disposeEffects=Z;var c=U[LL]||{},u=gIx(O)?O:c.sourceDynamicRange;Object.assign(c,{key:B,numNodes:g?C.length:1,context:H,higherOrder:!!U[LL],sourceDynamicRange:u});U[LL]=c}else F=!0;(function(){var S=
_.Ct(H);try{WFG(N,t,C)}finally{_.Ct(S)}})();
F&&Z();return O};
I0y=function(N){var t={},O;for(O in N)t={prev$jscomp$24:void 0,next$jscomp$33:void 0},t.prev$jscomp$24=PZ[O],t.next$jscomp$33=N[O],PZ[O]=function(H){return function(){var A=_.E1.apply(0,arguments);H.prev$jscomp$24.apply(null,_.W6(A));H.next$jscomp$33.apply(null,_.W6(A))}}(t)};
l0O=function(){if(Po())throw Error("pc");return XN};
QnO=function(N,t){if(!N.__unmounted&&t){N.__unmounted=!0;try{N.didUnmount()}catch(A){var O,H;(H=gp.handleError)==null||H.call.apply(H,[gp].concat(_.W6(EH(A,(O=N.__type)==null?void 0:O.TAG_NAME))))}PZ.didUnmount(N);N.el=null;t.__instance&&delete t.__instance}};
EIS=function(N,t,O){N._signalProps!=null&&N._disposeEffects==null&&((O===void 0?0:O)?N._disposeEffects=l$(function(){return void mTl(N,t)},gp.alwaysTrackContexts||!!UH):mTl(N,t))};
mTl=function(N,t){_.Wo(function(){for(var O=N._signalProps,H=N._signalValues,A=0;A<O.length;A++){var Z=O[A],U=t[Z]();H[A]!==U&&(H[A]=U,KFt(N,Z,U))}},"e3YVbb")};
GZQ=function(N,t,O){var H,A=[];N._disposeEffects=l$(function(){_.Wo(function(){var Z=O();if(Z===null||Z===void 0)Z="";if(bf(Z)||Z===null)H!=null||(H=document.createTextNode("")),H.parentNode!==N&&(H._isSignalTextNode=!0,N.insertBefore(H,t)),H.textContent=String(Z);else if(i0M(Z)){for(var U=A.length>0?A[A.length-1].nextSibling:t,C=_.D(A),F=C.next();!F.done;F=C.next())N.removeChild(F.value);Z=ud4(Z);A=Array.from(Z.childNodes);Z=_.D(A);for(C=Z.next();!C.done;C=Z.next())N.insertBefore(C.value,U)}else throw F=
(C=(U=wp)==null?void 0:U.name)!=null?C:"unknown",Error("ec`"+F+"`"+typeof Z);},"VvDgC")},gp.alwaysTrackContexts||!!UH)};
Jv4=function(N,t){var O=_.E1.apply(2,arguments);t!=null||(t={});return!gp.enableLazyTsx||wp!=null&&!Po()?RKS(N,t,O):new vIM(N,t,O)};
RKS=function(N,t,O){if(N===_.BZ)return O;if(typeof N==="function")return wp&&!Po()&&(t.renderedFromIdom=!0),TaQ(N,function(){var Z=oIQ(N,t,O);if(Z)return Z;O.length>0&&(t.children=O.length===1?O[0]:O);if(N.componentType===eG){var U;RAG(function(){var C=t;if(N.componentType!==eG)U=!1;else{C||(C={});var F=new xl(C,N),g=co(eT);try{var B=F.render(C)}finally{co(g)}B instanceof HTMLElement?(B.__instance=F,F.el=B,F.__type=N,N.TAG_NAME=B.tagName.toLowerCase(),PZ.didPatch(F),U=B):U=B}},N.name);
if(U)return U}return rvO(N,t)},t.debugInstance);
var H=snl(N,t),A;for(A in t)KFt(H,A,t[A]);EIS(H,t);ao(O,H);FFz(H,t,{isReactive:!0});NNS(H,t);return H};
snl=function(N,t){N=(tBt.has(N.toLowerCase())?0:Ovv.has(N.startsWith("svg:")?N.replace("svg:",""):N))?document.createElementNS("http://www.w3.org/2000/svg",N.startsWith("svg:")?N.replace("svg:",""):N):Hvp(N,t)||document.createElement(N);N[AHG]=!0;return N};
ZvO=function(N){if(N){var t;(t=N._disposeRef)==null||t.call(N);var O;(O=N._disposeEffects)==null||O.call(N);N.__instance&&N.__instance instanceof kl&&(t=N.__instance,QnO(t,N),t instanceof xl&&t.disposeEffects());for(t=0;t<N.childNodes.length;t++)ZvO(N.childNodes[t])}};
D0t=function(N){VBv.push(N)===1&&requestAnimationFrame(function(){setTimeout(function(){var t=[].concat(_.W6(VBv));VBv=[];t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;try{for(var H=0;H<O.length;H++)ZvO(O[H])}catch(A){H=O=void 0,(H=(O=gp).handleError)==null||H.call.apply(H,[O].concat(_.W6(EH(A))))}}})})};
_.d=function(N,t){return cvO.apply(null,[N,t].concat(_.W6(_.E1.apply(2,arguments))))};
_.qC=function(N){return N};
_.fL=function(N){return{isDefault:!0,children:N.children}};
_.y=function(N){var t=N.cond;if(t===void 0)return N.else&&N.else();var O=_.aa(function(){return!!t()},void 0,"JHVi8"),H=function(){var A=t();
if(!A){var Z;(Z=gp.handleError)==null||Z.call.apply(Z,[gp].concat(_.W6(EH(U04.nonNullableCondIsNull()))))}return A};
return Yl(function(){var A=O(),Z;l$(function(){var U=co(eT);try{Z=wu(A?N.then(H):N.else&&N.else())}finally{co(U)}},!0);
return Z},{debugName:N.debugInstance,
debugFn:N.then,isControlFlowComponent:!0})};
COv=function(N){return _.y(N)};
_.nL=function(N){return N.keyBy==="INDEX"?K2y(N):F24(N)};
d0M=function(N){N=_.D(N);for(var t=N.next();!t.done;t=N.next()){var O=void 0;(O=t.value)==null||O()}};
F24=function(N){var t=N.keyBy===void 0||N.keyBy==="REFERENCE",O=t?function(B){return B}:N.keyBy,H=[],A=[],Z=[],U=[],C=[],F=[],g=!0;
_.Ia(function(){d0M(U)});
return Yl(function(){var B=gL4(N),c=B.length;if(c===0){if(H.length===0&&!g)return Z;d0M(U);H=B;A=[];for(B=0;B<H.length;B++)A.push(O(H[B]));Z=[];U=[];C=[];F=[];N.fallback&&(U[0]=yHt(function(){Z[0]=wu(N.fallback())}));
g=!1;return Z}for(var u=new BNM,S=H.length-1;S>=0;S--)u.push(A[S],S);S=Array(c);for(var b=Array(c),z=Array(c),w=Array(c),P=Array(t?0:c),x={i$jscomp$450:0};x.i$jscomp$450<c;x={i$jscomp$450:x.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},x.i$jscomp$450++){x.item$jscomp$104=B[x.i$jscomp$450];x.key$jscomp$563=O(x.item$jscomp$104);var l=u.pop(x.key$jscomp$563);l!=null?(z[x.i$jscomp$450]=Z[l],b[x.i$jscomp$450]=A[l],S[x.i$jscomp$450]=U[l],w[x.i$jscomp$450]=C[l],t||(P[x.i$jscomp$450]=F[l]),Tg(function(I){return function(){w[I.i$jscomp$450](I.i$jscomp$450);
if(!t)P[I.i$jscomp$450](I.item$jscomp$104)}}(x)),delete U[l]):S[x.i$jscomp$450]=yHt(function(I){return function(){var r=_.D(_.b$(I.i$jscomp$450,void 0,"Fqk1zd")),E=r.next().value;
r=r.next().value;w[I.i$jscomp$450]=r;b[I.i$jscomp$450]=I.key$jscomp$563;if(t)z[I.i$jscomp$450]=wu(N.children(I.item$jscomp$104,E));else{var J=_.D(_.b$(I.item$jscomp$104,void 0,"GBj5de"));r=J.next().value;J=J.next().value;P[I.i$jscomp$450]=J;z[I.i$jscomp$450]=wu(N.children(r,E))}}}(x))}d0M(U);
H=B;A=b;Z=z;U=S;C=w;F=P;g=!1;return z},{debugName:N.debugInstance,
debugFn:N.each,isControlFlowComponent:!0})};
K2y=function(N){var t=[],O=[],H=[],A=[],Z=!1;_.Ia(function(){for(var U=_.D(A),C=U.next();!C.done;C=U.next())C=C.value,C()});
return Yl(function(){var U=gL4(N);Z&&U.length>0&&(A.pop()(),t.pop(),Z=!1);for(var C=Array(U.length),F={i$jscomp$451:0};F.i$jscomp$451<U.length;F={i$jscomp$451:F.i$jscomp$451},F.i$jscomp$451++)if(F.i$jscomp$451<t.length)t[F.i$jscomp$451]!==U[F.i$jscomp$451]&&(Tg(function(B){return function(){return void O[B.i$jscomp$451](U[B.i$jscomp$451])}}(F)),t[F.i$jscomp$451]=U[F.i$jscomp$451]),C[F.i$jscomp$451]=H[F.i$jscomp$451];
else{var g=yHt(function(B){return function(){t[B.i$jscomp$451]=U[B.i$jscomp$451];var c=_.D(_.b$(U[B.i$jscomp$451],void 0,"JMMLmd")),u=c.next().value;c=c.next().value;O[B.i$jscomp$451]=c;C[B.i$jscomp$451]=wu(N.children(u,B.i$jscomp$451))}}(F));
A[F.i$jscomp$451]=g}for(;t.length>U.length;)t.pop(),A.pop()(),O.pop();U.length===0&&!Z&&N.fallback&&(F=yHt(function(){C[0]=wu(N.fallback())}),A[0]=F,Z=!0);
return H=C},{debugName:N.debugInstance,
isControlFlowComponent:!0})};
gL4=function(N){N=N.each();return Array.isArray(N)?N:Array.from(N)};
yHt=function(N){var t=UH;return l$(function(O){var H=co(eT);try{O.parent=t,N(O)}finally{co(H)}},!1)};
_.WZ=function(N){var t=cHv(N),O=_.aa(function(){return $0M(t)},void 0,"F1PF4");
return Yl(function(){var H=O(),A;l$(function(){var Z=co(eT);try{A=wu(H())}finally{co(Z)}});
return A},{debugName:N.debugInstance,
isControlFlowComponent:!0})};
cHv=function(N){N=N.children;return Array.isArray(N)?N:[N]};
jrx=function(N){var t=N.props;N=N.getChildren()[0];return t.when?{when:t.when,children:N}:{isDefault:!0,children:N}};
$0M=function(N){var t=function(){return null};
N=_.D(N);for(var O=N.next();!O.done;O=N.next())if(O=O.value,O!=null&&O[y8]&&(O=O.type===_.fL?{isDefault:!0,children:O.children[0]}:{when:O.props.when,children:O.children[0]}),O instanceof Tm&&(O=jrx(O)),O.isDefault)t=O.children;else if(O.when())return O.children;return t};
uUz=function(N){var t=null,O,H={get value(){var Z,U;(U=(Z=A).validateGetValue)==null||U.call(Z);return A.__value},set value(Z){var U,C;(C=(U=A).validateSetValue)==null||C.call(U,Z);A.__value=Z;A.__hasBeenSet=!0}},A=(H.__value=null,H.__hasBeenSet=!1,H.__hasErrored=!1,H.onRender=function(Z){if(O&&Z!==O){O._disposeRef=void 0;var U;(U=t)==null||U()}O=Z;t=N(Z)||null},H.onUnmount=function(){var Z;
(Z=t)==null||Z();t=A.value=null},H[_.ivp]=!0,H);
return A};
ru=function(N){return typeof N==="symbol"};
hny=function(N){var t=l0O();if(t==null)throw _.Sl9.PRIMITIVE_INVALID_HOOK_CALL();var O=t.hookCounter++;t.hooks||(t.hooks=[]);var H=t.hooks;H[O]||(H[O]={key:N,host:t});if(N!==H[O].key){if(t.__type){var A;N=(A=t.__type)==null?void 0:A.name}else N=t instanceof xl?a4v(t.functionComponent):"<"+t.el.tagName.toLowerCase()+">";throw _.Sl9.OUT_OF_ORDER_HOOK_CALL(N);}return H[O]};
MBS=function(N,t){return!N||N.length!==(t==null?void 0:t.length)||N.some(function(O,H){return O!==t[H]})};
bvv=function(N,t){var O=hny("onChange"),H=l0O();MBS(O.deps,t)&&(O.deps=t,O.pendingEffect=N,H.__syncEffects||(H.__syncEffects=[]),H.__syncEffects.push(O))};
_.Io=function(N,t,O){O!=null||(O={});O=O.appContext;var H=!!gp.legacyTriggerSoyRendererEvents;_.pL.setUp();try{var A=pCM(N,t,O);H&&(t=O,t!=null||(t=_.$V9(document).getAppContext()),t.get(PqO).JSC$29743_getEventTarget().dispatchEvent(new Xv9(L29,N,MC)));_.pL.log(N);return A}finally{_.pL.tearDown()}};
pCM=function(N,t,O){var H=xM(function(){var A=co(eT);try{return l$(function(){var Z=_.$V9(_.Qs(N)),U;var C=P0N({rootElement:{value:N},appContext:O||(Z==null?void 0:(U=Z.getOptionalAppContext)==null?void 0:U.call(Z)),dispatcher:Z});Z=_.Ct(C);C=cZ(!0);qY++;try{ao(t(),N),nt(!1)}catch(F){throw nt(!0),F;}finally{cZ(C),_.Ct(Z)}},!1)}catch(Z){throw gp.enableContextBasedComponentStacks&&XS(Z),Z;
}finally{co(A)}});
N[znN]=!0;return function(){N.textContent="";H();N[znN]=!1}};
_.lf=function(N){if(J_x(Bo)){var t;(t=gp.handleError)==null||t.call.apply(t,[gp].concat(_.W6(EH(Error("dc")))))}var O=UH,H=wp;n3x({onInitType:q7M,run:function(){if(O&&!O.isDisposed){var A=_.Ct(O);try{xM(function(){return void N()},H)}catch(Z){throw gp.enableContextBasedComponentStacks&&XS(Z),Z;
}finally{_.Ct(A)}}}})};
YlS=function(N,t){bvv(function(){return _.MY(N)},t)};
_.Q8=function(N){Po()?_.lf(function(){_.MY(N)}):bvv(function(){return _.MY(N)},[])};
TNl=function(N){var t=[].concat(_.W6(N));N.length=0;N=_.D(t);for(t=N.next();!t.done;t=N.next()){t=t.value;aAS(t);var O=t.pendingEffect;t.pendingEffect=null;if(O=O==null?void 0:O())t.pendingCleanup=O}};
aAS=function(N){var t=N.pendingCleanup;N.pendingCleanup=null;t==null||t()};
wCg=function(N,t){if(Po())return N();var O=hny("useMemoInternal");MBS(O.deps,t)&&(O.deps=t,O.value=N());return O.value};
eng=function(N,t){return wCg(N,t)};
PON=function(N){return wCg(function(){return{value:N}},[])};
_.mD=function(N,t){if(!N)return null;N=Object.keys(N);N=_.D(N);for(var O=N.next();!O.done;O=N.next()){O=O.value;var H=O.toLowerCase();if(H.indexOf(t,H.length-t.length)>-1)return O}return null};
_.Gm=function(){var N=arguments,t=_.E2;N.length>1?t[N[0]]=N[1]:N.length===1&&Object.assign(t,N[0])};
_.Ro=function(N,t){return N in _.E2?_.E2[N]:t};
_.vZ=function(N,t){return!!_.Ro(N,t)};
XCG=function(N){var t=_.E2.EXPERIMENT_FLAGS;return t?t[N]:void 0};
k8z=function(N){x0l.forEach(function(t){return t(N)})};
_.oo=function(N){return N&&window.yterr?function(){try{return N.apply(this,arguments)}catch(t){_.JO(t)}}:N};
_.JO=function(N){var t=_.s2("yt.logging.errors.log");t?t(N,"ERROR",void 0,void 0,void 0,void 0,void 0):(t=_.Ro("ERRORS",[]),t.push([N,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Gm("ERRORS",t));k8z(N)};
_.HY=function(N,t,O,H,A){var Z=_.s2("yt.logging.errors.log");Z?Z(N,"WARNING",t,O,H,void 0,A):(Z=_.Ro("ERRORS",[]),Z.push([N,"WARNING",t,O,H,void 0,A]),_.Gm("ERRORS",Z))};
fAN=function(N,t){t=N.split(t);for(var O={},H=0,A=t.length;H<A;H++){var Z=t[H].split("=");if(Z.length===1&&Z[0]||Z.length===2)try{var U=qlO(Z[0]||""),C=qlO(Z[1]||"");if(U in O){var F=O[U];Array.isArray(F)?_.Qv(F,C):O[U]=[F,C]}else O[U]=C}catch(u){var g=u,B=Z[0],c=String(fAN);g.args=[{key:B,value:Z[1],query:N,method:nLg===c?"unchanged":c}];W2S.hasOwnProperty(B)||_.HY(g)}}return O};
rHg=function(N){var t=[];_.WW.forEach(N,function(O,H){var A=_.Ae(H);O=Array.isArray(O)?O:[O];_.Z9(O,function(Z){Z==""?t.push(A):t.push(A+"="+_.Ae(Z))})});
return t.join("&")};
_.Vl=function(N){N.charAt(0)==="?"&&(N=N.substring(1));return fAN(N,"&")};
_.D9=function(N){return N.indexOf("?")!==-1?(N=(N||"").split("#")[0],N=N.split("?",2),_.Vl(N.length>1?N[1]:N[0])):{}};
_.Uy=function(N,t){return IAO(N,t||{},!0)};
lAN=function(N,t){return IAO(N,t||{},!1)};
IAO=function(N,t,O){var H=N.split("#",2);N=H[0];H=H.length>1?"#"+H[1]:"";var A=N.split("?",2);N=A[0];A=_.Vl(A[1]||"");for(var Z in t)if(O||!_.WW.containsKey(A,Z))A[Z]=t[Z];return _.CF(N,A)+H};
gE=function(N){if(!t)var t=window.location.href;var O=_.KF(N)[1]||null,H=_.Fe(N);return O&&H?dE(N,t):H?_.Fe(t)===H&&(Number(_.KF(t)[4]||null)||null)===(Number(_.KF(N)[4]||null)||null):!0};
_.m09=function(N){N=QrO(N);return N===null?!1:N[0]==="com"&&N[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
QrO=function(N){N=_.Fe(N);return N!==null?N.split(".").reverse():null};
qlO=function(N){return N&&N.match(ELO)?N:yl(N)};
_.BY=function(N){return new G8O(N)};
_.cY=function(){Rng||(Rng=new vLG);return Rng};
oLl=function(){var N=JHt;return function(){var t=_.cY();if(!t.resolve(_.BY(N))){var O={};t.addProvider((O.provide=N,O.useClass=N,O[$v]=void 0,O))}return t.resolve(N)}};
N0G=function(N){var t=_.jo,O,H;_.K(function(A){O=_.cY();return(H=O.resolve(_.BY(t)))?(N(H),A.return(Promise.resolve(H))):A.return(O.resolve(new srx(t)).then(function(Z){N(Z);return Z}))})};
_.h=function(N){N=iP(N);return typeof N==="string"&&N==="false"?!1:!!N};
_.uP=function(N,t){N=iP(N);return N===void 0&&t!==void 0?t:Number(N||0)};
tb4=function(N){N=iP(N);return Array.isArray(N)?_.rc(N,function(t){return Number(t||0)}):[Number(N||0)]};
_.So=function(N){N=iP(N);return N!==void 0?String(N):""};
_.MH=function(N){N=iP(N);return Array.isArray(N)?_.rc(N,function(t){return String(t||"")}):[String(N||"")]};
OJx=function(){return _.Ro("EXPERIMENTS_TOKEN","")};
iP=function(N){return _.Ro("EXPERIMENT_FLAGS",{})[N]};
HJ4=function(){for(var N=[],t=_.Ro("EXPERIMENTS_FORCED_FLAGS",{}),O=_.D(Object.keys(t)),H=O.next();!H.done;H=O.next())H=H.value,N.push({key:H,value:String(t[H])});O=_.Ro("EXPERIMENT_FLAGS",{});H=_.D(Object.keys(O));for(var A=H.next();!A.done;A=H.next())A=A.value,A.startsWith("force_")&&t[A]===void 0&&N.push({key:A,value:String(O[A])});return N};
ZJz=function(){if(!AbG)return null;var N=AbG();return"open"in N?N:null};
_.VbO=function(N){switch(_.bP(N)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.bP=function(N){return N&&"status"in N?N.status:-1};
_.pF=function(N,t){typeof N==="function"&&(N=_.oo(N));return window.setTimeout(N,t)};
_.LF=function(N,t){typeof N==="function"&&(N=_.oo(N));return window.setInterval(N,t)};
_.zp=function(N){window.clearTimeout(N)};
Up4=function(N){N=_.D9(N);for(var t=_.D(DpM),O=t.next();!O.done;O=t.next())if(N[O.value]!==void 0)return!0;return!1};
FIp=function(N,t,O,H,A,Z,U,C,F){O=O===void 0?"GET":O;H=H===void 0?"":H;C=C===void 0?!1:C;var g=ZJz();if(!g)return null;var B=function(){(g&&"readyState"in g?g.readyState:0)===4&&t&&_.oo(t)(g)};
"onloadend"in g?g.addEventListener("loadend",B,!1):g.onreadystatechange=B;_.h("debug_forward_web_query_parameters")&&(N=Cp9(N,window.location.search));g.open(O,N,!0);Z&&(g.responseType=Z);U&&(g.withCredentials=!0);O=O==="POST"&&(window.FormData===void 0||!(H instanceof FormData));if(A=KIp(N,A))for(var c in A)g.setRequestHeader(c,A[c]),"content-type"===c.toLowerCase()&&(O=!1);O&&g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");F&&"onprogress"in g&&(g.onprogress=function(){F(g.responseText)});
if(C&&"setAttributionReporting"in XMLHttpRequest.prototype){N={eventSourceEligible:!0,triggerEligible:!1};try{g.setAttributionReporting(N)}catch(u){_.HY(u)}}g.send(H);return g};
KIp=function(N,t){t=t===void 0?{}:t;var O=gE(N),H=_.Ro("INNERTUBE_CLIENT_NAME"),A=_.h("web_ajax_ignore_global_headers_if_set"),Z;for(Z in dpv){var U=_.Ro(dpv[Z]),C=Z==="X-Goog-AuthUser"||Z==="X-Goog-PageId";Z!=="X-Goog-Visitor-Id"||U||(U=_.Ro("VISITOR_DATA"));var F;if(!(F=!U)){if(!(F=O||(_.Fe(N)?!1:!0))){F=N;var g;if(g=_.h("add_auth_headers_to_remarketing_google_dot_com_ping")&&Z==="Authorization"&&(H==="TVHTML5"||H==="TVHTML5_UNPLUGGED"||H==="TVHTML5_SIMPLY"))g=QrO(F),g=g===null?!1:g[1]==="google"?
!0:g[2]==="google"?g[0]==="au"&&g[1]==="com"?!0:g[0]==="uk"&&g[1]==="co"?!0:!1:!1;g&&(F=_.Yv(F)||"",F=F.split("/"),F="/"+(F.length>1?F[1]:""),g=F==="/pagead");F=g?!0:!1}F=!F}F||A&&t[Z]!==void 0||H==="TVHTML5_UNPLUGGED"&&C||(t[Z]=U)}"X-Goog-EOM-Visitor-Id"in t&&"X-Goog-Visitor-Id"in t&&delete t["X-Goog-Visitor-Id"];if(O||!_.Fe(N))t["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(O||!_.Fe(N)){try{var B=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(c){}B&&(t["X-YouTube-Time-Zone"]=
B)}document.location.hostname.endsWith("youtubeeducation.com")||!O&&_.Fe(N)||(t["X-YouTube-Ad-Signals"]=rHg(gY4()));return t};
_.ybS=function(N,t){var O=_.Fe(N);_.h("debug_handle_relative_url_for_query_forward_killswitch")||!O&&gE(N)&&(O=document.location.hostname);var H=_.Yv(N);H=(O=O&&(O.endsWith("youtube.com")||O.endsWith("youtube-nocookie.com")))&&H&&H.startsWith("/api/");if(!O||H)return N;var A=_.Vl(t),Z={};_.Z9(DpM,function(U){A[U]&&(Z[U]=A[U])});
return lAN(N,Z)};
B0v=function(N,t){t.method="POST";t.postParams||(t.postParams={});return _.aD(N,t)};
cb4=function(N,t){var O=_.Ro("XSRF_FIELD_NAME"),H;t.headers&&(H=t.headers["Content-Type"]);return!t.excludeXsrf&&(!_.Fe(N)||t.withCredentials||_.Fe(N)===document.location.hostname)&&t.method==="POST"&&(!H||H==="application/x-www-form-urlencoded")&&!(t.postParams&&t.postParams[O])};
_.aD=function(N,t){var O=t.format||"JSON";N=$pQ(N,t);var H=jXl(N,t),A=!1,Z=iJl(N,function(F){if(!A){A=!0;C&&_.zp(C);var g=_.VbO(F),B=null,c=400<=F.status&&F.status<500,u=500<=F.status&&F.status<600;if(g||c||u)B=uuM(N,O,F,t.convertToSafeHtml);g&&(g=SKl(O,F,B));B=B||{};c=t.context||_.H4;g?t.onSuccess&&t.onSuccess.call(c,F,B):t.onError&&t.onError.call(c,F,B);t.onFinish&&t.onFinish.call(c,F,B)}},t.method,H,t.headers,t.responseType,t.withCredentials,!1,t.onProgress);
H=t.timeout||0;if(t.onTimeout&&H>0){var U=t.onTimeout;var C=_.pF(function(){A||(A=!0,Z.abort(),_.zp(C),U.call(t.context||_.H4,Z))},H)}return Z};
$pQ=function(N,t){t.includeDomain&&(N=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+N);var O=_.Ro("XSRF_FIELD_NAME");if(t=t.urlParams)t[O]&&delete t[O],N=_.Uy(N,t);return N};
jXl=function(N,t){var O=_.Ro("XSRF_FIELD_NAME"),H=_.Ro("XSRF_TOKEN"),A=t.postBody||"",Z=t.postParams;cb4(N,t)&&(Z||(Z={}),Z[O]=H);(_.h("ajax_parse_query_data_only_when_filled")&&Z&&Object.keys(Z).length>0||Z)&&typeof A==="string"&&(A=_.Vl(A),_.WW.extend(A,Z),A=t.postBodyFormat&&t.postBodyFormat==="JSON"?JSON.stringify(A):_.Tp(A));Z=A||Z&&!_.WW.isEmpty(Z);!h7x&&Z&&t.method!=="POST"&&(h7x=!0,_.JO(Error("Jc")));return A};
uuM=function(N,t,O,H){var A=null;switch(t){case "JSON":try{var Z=O.responseText}catch(U){throw H=Error("Kc"),H.params=N,_.HY(H),U;}N=O.getResponseHeader("Content-Type")||"";Z&&N.indexOf("json")>=0&&(Z.substring(0,5)===")]}'\n"&&(Z=Z.substring(5)),A=JSON.parse(Z));break;case "XML":if(N=(N=O.responseXML)?Mby(N):null)A={},_.Z9(N.getElementsByTagName("*"),function(U){A[U.tagName]=bJv(U)})}H&&pct(A);
return A};
pct=function(N){if(_.mG(N))for(var t in N)t==="html_content"||Vv(t,"_html")?N[t]=JR(N[t]):pct(N[t])};
SKl=function(N,t,O){if(t&&t.status===204)return!0;switch(N){case "JSON":return!!O;case "XML":return Number(O&&O.return_code)===0;case "RAW":return!0;default:return!!O}};
Mby=function(N){return N?(N=("responseXML"in N?N.responseXML:N).getElementsByTagName("root"))&&N.length>0?N[0]:null:null};
bJv=function(N){var t="";_.Z9(N.childNodes,function(O){t+=O.nodeValue});
return t};
LIl=function(N){if(N.name==="JavaException")return!0;N=N.stack;return N.includes("chrome://")||N.includes("-extension://")||N.includes("webkit-masked-url://")};
z7y=function(N){if(!N.stack)return!0;var t=!N.stack.includes("\n");return t&&N.stack.includes("ErrorType: ")||t&&N.stack.includes("Anonymous function (Unknown script")||N.stack.toLowerCase()==="not available"||N.fileName==="user-script"||N.fileName.startsWith("user-script:")?!0:!1};
_.wE=function(N){_.k1.call(this);this.JSC$10673_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!N};
aaQ=function(N,t){var O=N.length,H=0,A=function(){return N.charCodeAt(H++)};
do{var Z=YKv(A);if(Z===Infinity)break;var U=Z>>3;switch(Z&7){case 0:Z=YKv(A);if(U===t)return Z;break;case 1:if(U===t)return;H+=8;break;case 2:Z=YKv(A);if(U===t)return N.substr(H,Z);H+=Z;break;case 5:if(U===t)return;H+=4;break;default:return}}while(H<O)};
YKv=function(N){var t=N(),O=t&127;if(t<128)return O;t=N();O|=(t&127)<<7;if(t<128)return O;t=N();O|=(t&127)<<14;if(t<128)return O;t=N();return t<128?O|(t&127)<<21:Infinity};
wcl=function(N,t,O,H){if(N)if(Array.isArray(N)){var A=H;for(H=0;H<N.length&&!(N[H]&&(A+=T0y(H,N[H],t,O),A>500));H++);H=A}else if(typeof N==="object")for(A in N){if(N[A]){var Z=A;var U=N[A],C=t,F=O;Z=typeof U!=="string"||Z!=="clickTrackingParams"&&Z!=="trackingParams"?0:(U=aaQ(atob(U.replace(/-/g,"+").replace(/_/g,"/")),2))?T0y(Z+".ve",U,C,F):0;H+=Z;H+=T0y(A,N[A],t,O);if(H>500)break}}else O[t]=eo(N),H+=O[t].length;else O[t]=eo(N),H+=O[t].length;return H};
T0y=function(N,t,O,H){O+="."+N;N=eo(t);H[O]=N;return O.length+N.length};
eo=function(N){try{return(typeof N==="string"?N:String(JSON.stringify(N))).substr(0,500)}catch(t){return"unable to serialize "+typeof N+" ("+t.message+")"}};
e7M=function(N){switch(N){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.Xe=function(N,t,O,H,A){_.PY.set(N,t,{maxAge:O,path:"/",domain:H===void 0?"youtube.com":H,secure:A===void 0?!1:A})};
_.Ppp=function(N,t,O){_.PY.remove(N,t===void 0?"/":t,O===void 0?"youtube.com":O)};
_.xv=function(){if(_.h("embeds_web_enable_cookie_detection_fix")){if(!_.H4.navigator.cookieEnabled)return!1}else if(!_.PY.isEnabled())return!1;if(!_.PY.isEmpty())return!0;_.h("embeds_web_enable_cookie_detection_fix")?_.PY.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.PY.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.PY.get("TESTCOOKIESENABLED")!=="1")return!1;_.PY.remove("TESTCOOKIESENABLED");return!0};
Xc9=function(){var N=_.H4.navigator;return N?N.connection:void 0};
xpS=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}};
_.qKS=function(){var N=Xc9();if(N){var t=kTM[N.type||"unknown"]||"CONN_UNKNOWN";N=kTM[N.effectiveType||"unknown"]||"CONN_UNKNOWN";t==="CONN_CELLULAR_UNKNOWN"&&N!=="CONN_UNKNOWN"&&(t=N);if(t!=="CONN_UNKNOWN")return t;if(N!=="CONN_UNKNOWN")return N}};
nYl=function(){var N=Xc9();if(N!=null&&N.effectiveType)return fag.hasOwnProperty(N.effectiveType)?fag[N.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.qH=function(){try{return _.kv(),!0}catch(N){return!1}};
_.kv=function(N){if(_.Ro("DATASYNC_ID")!==void 0)return _.Ro("DATASYNC_ID");throw new _.fF("Datasync ID not set",N===void 0?"unknown":N);};
_.nF=function(N){this.mechanism=N};
WY=function(N){this.mechanism=N};
rE=function(N){this.storage_=N;this.cachedIsStorageAvailable_=null};
WI9=function(){var N=null;try{N=_.H4.localStorage||null}catch(t){}rE.call(this,N)};
rbz=function(){var N=null;try{N=_.H4.sessionStorage||null}catch(t){}rE.call(this,N)};
ID=function(N,t){this.mechanism_=N;this.JSC$10776_prefix_=t+"::"};
_.lP=function(N){var t=new WI9;return t.isAvailable()?N?new ID(t,N):t:null};
_.Iax=function(N){var t=new rbz;return t.isAvailable()?N?new ID(t,N):t:null};
QXG=function(){var N;return(N=laG())==null?void 0:N.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Ey=function(N){mpv||(_.Ql?_.Ql.logError(N):(_.mY.push({type:"ERROR",payload:N}),_.mY.length>10&&_.mY.shift()))};
Gp=function(N,t){mpv||(_.Ql?_.Ql.logEvent(N,t):(_.mY.push({type:"EVENT",eventType:N,payload:t}),_.mY.length>10&&_.mY.shift()))};
RD=function(N){if(N.indexOf(":")>=0)throw Error("Rc");};
Je=function(N){return N.substr(0,N.indexOf(":"))||N};
R7y=function(){return(EYp||GTG)&&oD("applewebkit")&&!oD("version")&&(!oD("safari")||oD("gsa/"))};
oD=function(N){var t=_.$x();return t?t.toLowerCase().indexOf(N)>=0:!1};
oY9=function(N,t,O,H){t=Je(t);var A=N instanceof Error?N:Error("Sc`"+N);if(A instanceof sy)return A;N={objectStoreNames:O,dbName:t,dbVersion:H};if(A.name==="QuotaExceededError")return new sy("QUOTA_EXCEEDED",N);if(_.NV&&A.name==="UnknownError")return new sy("QUOTA_MAYBE_EXCEEDED",N);if(A instanceof vYv)return new sy("MISSING_INDEX",Object.assign({},N,{objectStore:A.objectStore,index:A.index}));if(A.name==="InvalidStateError"&&JbQ.some(function(Z){return A.message.includes(Z)}))return new sy("EXECUTE_TRANSACTION_ON_CLOSED_DB",
N);
if(A.name==="AbortError")return new sy("UNKNOWN_ABORT",N,A.message);A.args=[Object.assign({},N,{name:"IdbError",originalName:A.name})];A.level="WARNING";return A};
tr=function(N,t,O){var H=QXG();return new sy("IDB_NOT_SUPPORTED",{context:{caller:N,publicName:t,version:O,hasSucceededOnce:H==null?void 0:H.hasSucceededOnce}})};
sXS=function(N){if(!N)throw Error();throw N;};
N84=function(N){return N};
tD9=function(N,t,O){var H=function(){try{N.removeEventListener("success",A),N.removeEventListener("error",Z)}catch(U){}},A=function(){t(N.result);
H()},Z=function(){O(N.error);
H()};
N.addEventListener("success",A);N.addEventListener("error",Z)};
OMv=function(N){return new Promise(function(t,O){tD9(N,t,O)})};
Ar=function(N){return new Ov(new Ha(function(t,O){tD9(N,t,O)}))};
HMN=function(N,t){return new Ov(new Ha(function(O,H){var A=function(){var Z=N?t(N):null;Z?Z.then(function(U){N=U;A()},H):O()};
A()}))};
ABM=function(N,t,O){return new Promise(function(H,A){var Z=t!==void 0?self.indexedDB.open(N,t):self.indexedDB.open(N);var U=O.blocked,C=O.blocking,F=O.terminated,g=O.upgrade,B=O.closed,c,u=function(){c||(c=new Zo(Z.result,{closed:B}));return c};
Z.addEventListener("upgradeneeded",function(S){try{if(S.newVersion===null)throw Error("Xc");if(Z.transaction===null)throw Error("Yc");S.dataLoss&&S.dataLoss!=="none"&&Gp("IDB_DATA_CORRUPTED",{reason:S.dataLossMessage||"unknown reason",dbName:Je(N)});var b=u(),z=new VS(Z.transaction);g&&g(b,function(w){return S.oldVersion<w&&S.newVersion>=w},z);
z.done.catch(function(w){A(w)})}catch(w){A(w)}});
Z.addEventListener("success",function(){var S=Z.result;C&&S.addEventListener("versionchange",function(){C(u())});
S.addEventListener("close",function(){Gp("IDB_UNEXPECTEDLY_CLOSED",{dbName:Je(N),dbVersion:S.version});F&&F()});
H(u())});
Z.addEventListener("error",function(){A(Z.error)});
U&&Z.addEventListener("blocked",function(){U()})})};
ZMv=function(N,t,O){O=O===void 0?{}:O;return ABM(N,t,O)};
_.Uv=function(N,t){t=t===void 0?{}:t;var O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return _.Mo(U,2),O=self.indexedDB.deleteDatabase(N),H=t,(A=H.blocked)&&O.addEventListener("blocked",function(){A()}),U.yield(OMv(O),4);
if(U.nextAddress!=2)return _.Do(U,0);Z=_.ax(U);throw oY9(Z,N,"",-1);})};
DEQ=function(N,t){var O;return _.K(function(H){if(H.nextAddress==1)return H.yield(_.Cz(VD9,t),2);O=H.yieldResult;return H.return(_.Kz(O,["databases"],{enableRetries:!0,mode:"readwrite"},function(A){var Z=A.objectStore("databases");return Z.get(N.actualName).then(function(U){if(U?N.actualName!==U.actualName||N.publicName!==U.publicName||N.userIdentifier!==U.userIdentifier:1)return Z.put(N).then(function(){})})}))})};
_.Fc=function(N,t){var O;return _.K(function(H){if(H.nextAddress==1)return N?H.yield(_.Cz(VD9,t),2):H.return();O=H.yieldResult;return H.return(O.delete("databases",N))})};
_.UES=function(N,t){var O,H;return _.K(function(A){return A.nextAddress==1?(O=[],A.yield(_.Cz(VD9,t),2)):A.nextAddress!=3?(H=A.yieldResult,A.yield(_.Kz(H,["databases"],{enableRetries:!0,mode:"readonly"},function(Z){O.length=0;return dr(Z.objectStore("databases"),{},function(U){N(U.getValue())&&O.push(U.getValue());return U.continue()})}),3)):A.return(O)})};
C5t=function(N,t){return _.UES(function(O){return O.publicName===N&&O.userIdentifier!==void 0},t)};
dEx=function(){var N,t,O,H;return _.K(function(A){switch(A.nextAddress){case 1:N=QXG();if((t=N)==null?0:t.hasSucceededOnce)return A.return(!0);var Z;if(Z=Kdx)Z=/WebKit\/([0-9]+)/.exec(_.$x()),Z=!!(Z&&parseInt(Z[1],10)>=600);Z&&(Z=/WebKit\/([0-9]+)/.exec(_.$x()),Z=!(Z&&parseInt(Z[1],10)>=602));if(Z||gr)return A.return(!1);try{if(O=self,!(O.indexedDB&&O.IDBIndex&&O.IDBKeyRange&&O.IDBObjectStore))return A.return(!1)}catch(U){return A.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return A.return(!1);
_.Mo(A,2);H={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return A.yield(DEQ(H,Fd4),4);case 4:return A.yield(_.Fc("yt-idb-test-do-not-use",Fd4),5);case 5:return A.return(!0);case 2:return _.ax(A),A.return(!1)}})};
yBv=function(){if(gjp!==void 0)return gjp;mpv=!0;return gjp=dEx().then(function(N){mpv=!1;var t;if((t=laG())!=null&&t.hasLocalStorage()){var O;t={hasSucceededOnce:((O=QXG())==null?void 0:O.hasSucceededOnce)||N};var H;(H=laG())==null||H.set("LAST_RESULT_ENTRY_KEY",t,2592E3,!0)}return N})};
yS=function(){return _.s2("ytglobal.idbToken_")||void 0};
_.ca=function(){var N=yS();return N?Promise.resolve(N):yBv().then(function(t){(t=t?Fd4:void 0)&&_.Ba("ytglobal.idbToken_",t);return t})};
B8z=function(N){if(!_.qH())throw N=new sy("AUTH_INVALID",{dbName:N}),_.Ey(N),N;var t=_.kv();return{actualName:N+":"+t,publicName:N,userIdentifier:t}};
cBz=function(N,t,O,H){var A,Z,U,C,F,g;return _.K(function(B){switch(B.nextAddress){case 1:return Z=(A=Error().stack)!=null?A:"",B.yield(_.ca(),2);case 2:U=B.yieldResult;if(!U)throw C=tr("openDbImpl",N,t),_.h("ytidb_async_stack_killswitch")||(C.stack=C.stack+"\n"+Z.substring(Z.indexOf("\n")+1)),_.Ey(C),C;RD(N);F=O?{actualName:N,publicName:N,userIdentifier:void 0}:B8z(N);_.Mo(B,3);return B.yield(DEQ(F,U),5);case 5:return B.yield(ZMv(F.actualName,t,H),6);case 6:return B.return(B.yieldResult);case 3:return g=
_.ax(B),_.Mo(B,7),B.yield(_.Fc(F.actualName,U),9);case 9:_.Do(B,8);break;case 7:_.ax(B);case 8:throw g;}})};
$EN=function(N,t,O){O=O===void 0?{}:O;return cBz(N,t,!1,O)};
jJ4=function(N,t,O){O=O===void 0?{}:O;return cBz(N,t,!0,O)};
iMQ=function(N,t){t=t===void 0?{}:t;var O,H;return _.K(function(A){if(A.nextAddress==1)return A.yield(_.ca(),2);if(A.nextAddress!=3){O=A.yieldResult;if(!O)return A.return();RD(N);H=B8z(N);return A.yield(_.Uv(H.actualName,t),3)}return A.yield(_.Fc(H.actualName,O),0)})};
uo4=function(N,t,O){N=N.map(function(H){return _.K(function(A){return A.nextAddress==1?A.yield(_.Uv(H.actualName,t),2):A.yield(_.Fc(H.actualName,O),0)})});
return Promise.all(N).then(function(){})};
S_4=function(N){var t=t===void 0?{}:t;var O,H;return _.K(function(A){if(A.nextAddress==1)return A.yield(_.ca(),2);if(A.nextAddress!=3){O=A.yieldResult;if(!O)return A.return();RD(N);return A.yield(C5t(N,O),3)}H=A.yieldResult;return A.yield(uo4(H,t,O),0)})};
hkx=function(N,t){t=t===void 0?{}:t;var O;return _.K(function(H){if(H.nextAddress==1)return H.yield(_.ca(),2);if(H.nextAddress!=3){O=H.yieldResult;if(!O)return H.return();RD(N);return H.yield(_.Uv(N,t),3)}return H.yield(_.Fc(N,O),0)})};
$2=function(N,t){return MDv(N,t)};
p5S=function(N){return _.Cz(bMt(),N)};
LdQ=function(N,t,O,H){var A,Z,U;return _.K(function(C){switch(C.nextAddress){case 1:return A={config:N,hashData:t,timestamp:H!==void 0?H:(0,_.jg)()},C.yield(p5S(O),2);case 2:return Z=C.yieldResult,C.yield(Z.clear("hotConfigStore"),3);case 3:return C.yield(Z.put("hotConfigStore",A),4);case 4:return U=C.yieldResult,C.return(U)}})};
zky=function(N,t,O,H,A){var Z,U,C;return _.K(function(F){switch(F.nextAddress){case 1:return Z={config:N,hashData:t,configData:O,timestamp:A!==void 0?A:(0,_.jg)()},F.yield(p5S(H),2);case 2:return U=F.yieldResult,F.yield(U.clear("coldConfigStore"),3);case 3:return F.yield(U.put("coldConfigStore",Z),4);case 4:return C=F.yieldResult,F.return(C)}})};
Y_t=function(N){var t,O;return _.K(function(H){return H.nextAddress==1?H.yield(p5S(N),2):H.nextAddress!=3?(t=H.yieldResult,O=void 0,H.yield(_.Kz(t,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(A){return _.i0(A.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(Z){O=Z.getValue()})}),3)):H.return(O)})};
anz=function(N){var t,O;return _.K(function(H){return H.nextAddress==1?H.yield(p5S(N),2):H.nextAddress!=3?(t=H.yieldResult,O=void 0,H.yield(_.Kz(t,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(A){return _.i0(A.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(Z){O=Z.getValue()})}),3)):H.return(O)})};
T8O=function(){return _.K(function(N){return N.yield(S_4("ytGcfConfig"),0)})};
w5G=function(){return"INNERTUBE_API_KEY"in _.E2&&"INNERTUBE_API_VERSION"in _.E2};
_.u0=function(){return{innertubeApiKey:_.Ro("INNERTUBE_API_KEY"),innertubeApiVersion:_.Ro("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Ro("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Ro("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Ro("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Ro("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Ro("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.vZ("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.vZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Ro("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.fnv=function(N){var t={client:{hl:N.innertubeContextHostLanguage,gl:N.innertubeContextGeoLocation,clientName:N.innertubeContextClientName,clientVersion:N.innertubeContextClientVersion,configInfo:N.innertubeContextClientConfigInfo}};navigator.userAgent&&(t.client.userAgent=String(navigator.userAgent));var O=_.H4.devicePixelRatio;O&&O!=1&&(t.client.screenDensityFloat=String(O));O=OJx();O!==""&&(t.client.experimentsToken=O);O=HJ4();O.length>0&&(t.request={internalExperimentFlags:O});ekN(N,void 0,t);
P5Q(void 0,t);X5O(void 0,t);xES(N,void 0,t);kv9(void 0,t);_.h("start_client_gcf")&&q_x(void 0,t);_.Ro("DELEGATED_SESSION_ID")&&!_.h("pageid_as_header_web")&&(t.user={onBehalfOfUser:_.Ro("DELEGATED_SESSION_ID")});!_.h("fill_delegate_context_in_gel_killswitch")&&(N=_.Ro("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t.user=Object.assign({},t.user,{serializedDelegationContext:N}));N=_.Ro("INNERTUBE_CONTEXT");var H;if(_.h("enable_persistent_device_token")&&(N==null?0:(H=N.client)==null?0:H.rolloutToken)){var A;
t.client.rolloutToken=N==null?void 0:(A=N.client)==null?void 0:A.rolloutToken}H=Object;A=H.assign;N=t.client;O={};for(var Z=_.D(Object.entries(_.Vl(_.Ro("DEVICE","")))),U=Z.next();!U.done;U=Z.next()){var C=_.D(U.value);U=C.next().value;C=C.next().value;U==="cbrand"?O.deviceMake=C:U==="cmodel"?O.deviceModel=C:U==="cbr"?O.browserName=C:U==="cbrver"?O.browserVersion=C:U==="cos"?O.osName=C:U==="cosver"?O.osVersion=C:U==="cplatform"&&(O.platform=C)}t.client=A.call(H,N,O);return t};
ekN=function(N,t,O){N=N.innertubeContextClientName;if(N==="WEB"||N==="MWEB"||N===1||N===2)if(t){O=_.Sg(t,njp,96)||new njp;var H=Wdg();H=Object.keys(rBt).indexOf(H);H=H===-1?null:H;H!==null&&_.hr(O,3,H);_.L8(t,96,O)}else O&&(O.client.mainAppWebInfo=(H=O.client.mainAppWebInfo)!=null?H:{},O.client.mainAppWebInfo.webDisplayMode=Wdg())};
P5Q=function(N,t){var O=_.s2("yt.embedded_player.embed_url");O&&(N?(t=_.Sg(N,Inl,7)||new Inl,_.Xa(t,4,O),_.L8(N,7,t)):t&&(t.thirdParty={embedUrl:O}))};
X5O=function(N,t){var O;if(_.h("web_log_memory_total_kbytes")&&((O=_.H4.navigator)==null?0:O.deviceMemory)){var H;O=(H=_.H4.navigator)==null?void 0:H.deviceMemory;N?_.MV(N,95,di(O*1E6)):t&&(t.client.memoryTotalKbytes=""+O*1E6)}};
xES=function(N,t,O){if(N.appInstallData)if(t){var H;O=(H=_.Sg(t,b0,62))!=null?H:new b0;_.Xa(O,6,N.appInstallData);_.L8(t,62,O)}else O&&(O.client.configInfo=O.client.configInfo||{},O.client.configInfo.appInstallData=N.appInstallData)};
kv9=function(N,t){var O=_.qKS();O&&(N?_.hr(N,61,lnN[O]):t&&(t.client.connectionType=O));_.h("web_log_effective_connection_type")&&(O=nYl())&&(N?_.hr(N,94,QJS[O]):t&&(t.client.effectiveConnectionType=O))};
_.Gvy=function(N,t,O){O=O===void 0?{}:O;var H={};_.Ro("EOM_VISITOR_DATA")?H={"X-Goog-EOM-Visitor-Id":_.Ro("EOM_VISITOR_DATA")}:H={"X-Goog-Visitor-Id":O.visitorData||_.Ro("VISITOR_DATA","")};if(t&&t.includes("www.youtube-nocookie.com"))return H;t=O.authorization||_.Ro("AUTHORIZATION");t||(N?t="Bearer "+_.s2("gapi.auth.getToken")().access_token:(mES.instance||(mES.instance=new mES),N=Ej4(),_.h("pageid_as_header_web")||delete N["X-Goog-PageId"],H=Object.assign({},H,N)));t&&(H.Authorization=t);return H};
q_x=function(N,t){var O=Rk4();if(O){var H=O.coldConfigData,A=O.coldHashData;O=O.hotHashData;if(N){var Z;t=(Z=_.Sg(N,b0,62))!=null?Z:new b0;H=_.Xa(t,1,H);_.Xa(H,3,A).setHotHashData(O);_.L8(N,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},H&&(t.client.configInfo.coldConfigData=H),A&&(t.client.configInfo.coldHashData=A),O&&(t.client.configInfo.hotHashData=O))}};
pz=function(N){for(var t=N.length;--t>=0;)N[t]=0};
vjS=function(N,t,O,H,A){this.static_tree=N;this.extra_bits=t;this.extra_base=O;this.elems=H;this.max_length=A;this.has_stree=N&&N.length};
JBN=function(N,t){this.dyn_tree=N;this.max_code=0;this.stat_desc=t};
Lz=function(N,t){N.pending_buf[N.pending++]=t&255;N.pending_buf[N.pending++]=t>>>8&255};
zB=function(N,t,O){N.bi_valid>16-O?(N.bi_buf|=t<<N.bi_valid&65535,Lz(N,N.bi_buf),N.bi_buf=t>>16-N.bi_valid,N.bi_valid+=O-16):(N.bi_buf|=t<<N.bi_valid&65535,N.bi_valid+=O)};
Y2=function(N,t,O){zB(N,O[t*2],O[t*2+1])};
ojS=function(N,t){var O=0;do O|=N&1,N>>>=1,O<<=1;while(--t>0);return O>>>1};
sJO=function(N,t,O){var H=Array(16),A=0,Z;for(Z=1;Z<=15;Z++)H[Z]=A=A+O[Z-1]<<1;for(O=0;O<=t;O++)A=N[O*2+1],A!==0&&(N[O*2]=ojS(H[A]++,A))};
NYx=function(N){var t;for(t=0;t<286;t++)N.dyn_ltree[t*2]=0;for(t=0;t<30;t++)N.dyn_dtree[t*2]=0;for(t=0;t<19;t++)N.bl_tree[t*2]=0;N.dyn_ltree[512]=1;N.opt_len=N.static_len=0;N.last_lit=N.matches=0};
tcg=function(N){N.bi_valid>8?Lz(N,N.bi_buf):N.bi_valid>0&&(N.pending_buf[N.pending++]=N.bi_buf);N.bi_buf=0;N.bi_valid=0};
OTM=function(N,t,O){tcg(N);Lz(N,O);Lz(N,~O);ak.arraySet(N.pending_buf,N.window,t,O,N.pending);N.pending+=O};
HT4=function(N,t,O,H){var A=t*2,Z=O*2;return N[A]<N[Z]||N[A]===N[Z]&&H[t]<=H[O]};
AGO=function(N,t,O){for(var H=N.heap[O],A=O<<1;A<=N.heap_len;){A<N.heap_len&&HT4(t,N.heap[A+1],N.heap[A],N.depth)&&A++;if(HT4(t,H,N.heap[A],N.depth))break;N.heap[O]=N.heap[A];O=A;A<<=1}N.heap[O]=H};
C8M=function(N,t,O){var H=0;if(N.last_lit!==0){do{var A=N.pending_buf[N.d_buf+H*2]<<8|N.pending_buf[N.d_buf+H*2+1];var Z=N.pending_buf[N.l_buf+H];H++;if(A===0)Y2(N,Z,t);else{var U=TB[Z];Y2(N,U+256+1,t);var C=ZTy[U];C!==0&&(Z-=Vcp[U],zB(N,Z,C));A--;U=A<256?wr[A]:wr[256+(A>>>7)];Y2(N,U,O);C=DLM[U];C!==0&&(A-=ULx[U],zB(N,A,C))}}while(H<N.last_lit)}Y2(N,256,t)};
K1y=function(N,t){var O=t.dyn_tree,H=t.stat_desc.static_tree,A=t.stat_desc.has_stree,Z=t.stat_desc.elems,U,C=-1;N.heap_len=0;N.heap_max=573;for(U=0;U<Z;U++)O[U*2]!==0?(N.heap[++N.heap_len]=C=U,N.depth[U]=0):O[U*2+1]=0;for(;N.heap_len<2;){var F=N.heap[++N.heap_len]=C<2?++C:0;O[F*2]=1;N.depth[F]=0;N.opt_len--;A&&(N.static_len-=H[F*2+1])}t.max_code=C;for(U=N.heap_len>>1;U>=1;U--)AGO(N,O,U);F=Z;do U=N.heap[1],N.heap[1]=N.heap[N.heap_len--],AGO(N,O,1),H=N.heap[1],N.heap[--N.heap_max]=U,N.heap[--N.heap_max]=
H,O[F*2]=O[U*2]+O[H*2],N.depth[F]=(N.depth[U]>=N.depth[H]?N.depth[U]:N.depth[H])+1,O[U*2+1]=O[H*2+1]=F,N.heap[1]=F++,AGO(N,O,1);while(N.heap_len>=2);N.heap[--N.heap_max]=N.heap[1];U=t.dyn_tree;F=t.max_code;H=t.stat_desc.static_tree;A=t.stat_desc.has_stree;Z=t.stat_desc.extra_bits;var g=t.stat_desc.extra_base,B=t.stat_desc.max_length,c,u=0;for(c=0;c<=15;c++)N.bl_count[c]=0;U[N.heap[N.heap_max]*2+1]=0;for(t=N.heap_max+1;t<573;t++){var S=N.heap[t];c=U[U[S*2+1]*2+1]+1;c>B&&(c=B,u++);U[S*2+1]=c;if(!(S>
F)){N.bl_count[c]++;var b=0;S>=g&&(b=Z[S-g]);var z=U[S*2];N.opt_len+=z*(c+b);A&&(N.static_len+=z*(H[S*2+1]+b))}}if(u!==0){do{for(c=B-1;N.bl_count[c]===0;)c--;N.bl_count[c]--;N.bl_count[c+1]+=2;N.bl_count[B]--;u-=2}while(u>0);for(c=B;c!==0;c--)for(S=N.bl_count[c];S!==0;)H=N.heap[--t],H>F||(U[H*2+1]!==c&&(N.opt_len+=(c-U[H*2+1])*U[H*2],U[H*2+1]=c),S--)}sJO(O,C,N.bl_count)};
F1S=function(N,t,O){var H,A=-1,Z=t[1],U=0,C=7,F=4;Z===0&&(C=138,F=3);t[(O+1)*2+1]=65535;for(H=0;H<=O;H++){var g=Z;Z=t[(H+1)*2+1];++U<C&&g===Z||(U<F?N.bl_tree[g*2]+=U:g!==0?(g!==A&&N.bl_tree[g*2]++,N.bl_tree[32]++):U<=10?N.bl_tree[34]++:N.bl_tree[36]++,U=0,A=g,Z===0?(C=138,F=3):g===Z?(C=6,F=3):(C=7,F=4))}};
dLg=function(N,t,O){var H,A=-1,Z=t[1],U=0,C=7,F=4;Z===0&&(C=138,F=3);for(H=0;H<=O;H++){var g=Z;Z=t[(H+1)*2+1];if(!(++U<C&&g===Z)){if(U<F){do Y2(N,g,N.bl_tree);while(--U!==0)}else g!==0?(g!==A&&(Y2(N,g,N.bl_tree),U--),Y2(N,16,N.bl_tree),zB(N,U-3,2)):U<=10?(Y2(N,17,N.bl_tree),zB(N,U-3,3)):(Y2(N,18,N.bl_tree),zB(N,U-11,7));U=0;A=g;Z===0?(C=138,F=3):g===Z?(C=6,F=3):(C=7,F=4)}}};
gHN=function(N){var t=4093624447,O;for(O=0;O<=31;O++,t>>>=1)if(t&1&&N.dyn_ltree[O*2]!==0)return 0;if(N.dyn_ltree[18]!==0||N.dyn_ltree[20]!==0||N.dyn_ltree[26]!==0)return 1;for(O=32;O<256;O++)if(N.dyn_ltree[O*2]!==0)return 1;return 0};
eg=function(N,t,O){N.pending_buf[N.d_buf+N.last_lit*2]=t>>>8&255;N.pending_buf[N.d_buf+N.last_lit*2+1]=t&255;N.pending_buf[N.l_buf+N.last_lit]=O&255;N.last_lit++;t===0?N.dyn_ltree[O*2]++:(N.matches++,t--,N.dyn_ltree[(TB[O]+256+1)*2]++,N.dyn_dtree[(t<256?wr[t]:wr[256+(t>>>7)])*2]++);return N.last_lit===N.lit_bufsize-1};
Xc=function(N,t){N.msg=Pa[t];return t};
x2=function(N){for(var t=N.length;--t>=0;)N[t]=0};
k2=function(N){var t=N.state,O=t.pending;O>N.avail_out&&(O=N.avail_out);O!==0&&(ak.arraySet(N.output,t.pending_buf,t.pending_out,O,N.next_out),N.next_out+=O,t.pending_out+=O,N.total_out+=O,N.avail_out-=O,t.pending-=O,t.pending===0&&(t.pending_out=0))};
nz=function(N,t){var O=N.block_start>=0?N.block_start:-1,H=N.strstart-N.block_start,A=0;if(N.level>0){N.strm.data_type===2&&(N.strm.data_type=gHN(N));K1y(N,N.l_desc);K1y(N,N.d_desc);F1S(N,N.dyn_ltree,N.l_desc.max_code);F1S(N,N.dyn_dtree,N.d_desc.max_code);K1y(N,N.bl_desc);for(A=18;A>=3&&N.bl_tree[yGl[A]*2+1]===0;A--);N.opt_len+=3*(A+1)+5+5+4;var Z=N.opt_len+3+7>>>3;var U=N.static_len+3+7>>>3;U<=Z&&(Z=U)}else Z=U=H+5;if(H+4<=Z&&O!==-1)zB(N,t?1:0,3),OTM(N,O,H);else if(N.strategy===4||U===Z)zB(N,2+(t?
1:0),3),C8M(N,qV,fz);else{zB(N,4+(t?1:0),3);O=N.l_desc.max_code+1;H=N.d_desc.max_code+1;A+=1;zB(N,O-257,5);zB(N,H-1,5);zB(N,A-4,4);for(Z=0;Z<A;Z++)zB(N,N.bl_tree[yGl[Z]*2+1],3);dLg(N,N.dyn_ltree,O-1);dLg(N,N.dyn_dtree,H-1);C8M(N,N.dyn_ltree,N.dyn_dtree)}NYx(N);t&&tcg(N);N.block_start=N.strstart;k2(N.strm)};
Wa=function(N,t){N.pending_buf[N.pending++]=t};
rr=function(N,t){N.pending_buf[N.pending++]=t>>>8&255;N.pending_buf[N.pending++]=t&255};
BYz=function(N,t){var O=N.max_chain_length,H=N.strstart,A=N.prev_length,Z=N.nice_match,U=N.strstart>N.w_size-262?N.strstart-(N.w_size-262):0,C=N.window,F=N.w_mask,g=N.prev,B=N.strstart+258,c=C[H+A-1],u=C[H+A];N.prev_length>=N.good_match&&(O>>=2);Z>N.lookahead&&(Z=N.lookahead);do{var S=t;if(C[S+A]===u&&C[S+A-1]===c&&C[S]===C[H]&&C[++S]===C[H+1]){H+=2;for(S++;C[++H]===C[++S]&&C[++H]===C[++S]&&C[++H]===C[++S]&&C[++H]===C[++S]&&C[++H]===C[++S]&&C[++H]===C[++S]&&C[++H]===C[++S]&&C[++H]===C[++S]&&H<B;);
S=258-(B-H);H=B-258;if(S>A){N.match_start=t;A=S;if(S>=Z)break;c=C[H+A-1];u=C[H+A]}}}while((t=g[t&F])>U&&--O!==0);return A<=N.lookahead?A:N.lookahead};
l0=function(N){var t=N.w_size,O;do{var H=N.window_size-N.lookahead-N.strstart;if(N.strstart>=t+(t-262)){ak.arraySet(N.window,N.window,t,t,0);N.match_start-=t;N.strstart-=t;N.block_start-=t;var A=O=N.hash_size;do{var Z=N.head[--A];N.head[A]=Z>=t?Z-t:0}while(--O);A=O=t;do Z=N.prev[--A],N.prev[A]=Z>=t?Z-t:0;while(--O);H+=t}if(N.strm.avail_in===0)break;A=N.strm;O=N.window;Z=N.strstart+N.lookahead;var U=A.avail_in;U>H&&(U=H);U===0?O=0:(A.avail_in-=U,ak.arraySet(O,A.input,A.next_in,U,Z),A.state.wrap===
1?A.adler=cG9(A.adler,O,U,Z):A.state.wrap===2&&(A.adler=Ik(A.adler,O,U,Z)),A.next_in+=U,A.total_in+=U,O=U);N.lookahead+=O;if(N.lookahead+N.insert>=3)for(H=N.strstart-N.insert,N.ins_h=N.window[H],N.ins_h=(N.ins_h<<N.hash_shift^N.window[H+1])&N.hash_mask;N.insert&&!(N.ins_h=(N.ins_h<<N.hash_shift^N.window[H+3-1])&N.hash_mask,N.prev[H&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=H,H++,N.insert--,N.lookahead+N.insert<3););}while(N.lookahead<262&&N.strm.avail_in!==0)};
$Ll=function(N,t){for(var O;;){if(N.lookahead<262){l0(N);if(N.lookahead<262&&t===0)return 1;if(N.lookahead===0)break}O=0;N.lookahead>=3&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+3-1])&N.hash_mask,O=N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart);O!==0&&N.strstart-O<=N.w_size-262&&(N.match_length=BYz(N,O));if(N.match_length>=3)if(O=eg(N,N.strstart-N.match_start,N.match_length-3),N.lookahead-=N.match_length,N.match_length<=N.max_lazy_match&&N.lookahead>=3){N.match_length--;
do N.strstart++,N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+3-1])&N.hash_mask,N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart;while(--N.match_length!==0);N.strstart++}else N.strstart+=N.match_length,N.match_length=0,N.ins_h=N.window[N.strstart],N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+1])&N.hash_mask;else O=eg(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++;if(O&&(nz(N,!1),N.strm.avail_out===0))return 1}N.insert=N.strstart<2?N.strstart:2;return t===4?(nz(N,
!0),N.strm.avail_out===0?3:4):N.last_lit&&(nz(N,!1),N.strm.avail_out===0)?1:2};
QS=function(N,t){for(var O,H;;){if(N.lookahead<262){l0(N);if(N.lookahead<262&&t===0)return 1;if(N.lookahead===0)break}O=0;N.lookahead>=3&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+3-1])&N.hash_mask,O=N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart);N.prev_length=N.match_length;N.prev_match=N.match_start;N.match_length=2;O!==0&&N.prev_length<N.max_lazy_match&&N.strstart-O<=N.w_size-262&&(N.match_length=BYz(N,O),N.match_length<=5&&(N.strategy===1||N.match_length===3&&
N.strstart-N.match_start>4096)&&(N.match_length=2));if(N.prev_length>=3&&N.match_length<=N.prev_length){H=N.strstart+N.lookahead-3;O=eg(N,N.strstart-1-N.prev_match,N.prev_length-3);N.lookahead-=N.prev_length-1;N.prev_length-=2;do++N.strstart<=H&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+3-1])&N.hash_mask,N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart);while(--N.prev_length!==0);N.match_available=0;N.match_length=2;N.strstart++;if(O&&(nz(N,!1),N.strm.avail_out===0))return 1}else if(N.match_available){if((O=
eg(N,0,N.window[N.strstart-1]))&&nz(N,!1),N.strstart++,N.lookahead--,N.strm.avail_out===0)return 1}else N.match_available=1,N.strstart++,N.lookahead--}N.match_available&&(eg(N,0,N.window[N.strstart-1]),N.match_available=0);N.insert=N.strstart<2?N.strstart:2;return t===4?(nz(N,!0),N.strm.avail_out===0?3:4):N.last_lit&&(nz(N,!1),N.strm.avail_out===0)?1:2};
jIv=function(N,t){for(var O,H,A,Z=N.window;;){if(N.lookahead<=258){l0(N);if(N.lookahead<=258&&t===0)return 1;if(N.lookahead===0)break}N.match_length=0;if(N.lookahead>=3&&N.strstart>0&&(H=N.strstart-1,O=Z[H],O===Z[++H]&&O===Z[++H]&&O===Z[++H])){for(A=N.strstart+258;O===Z[++H]&&O===Z[++H]&&O===Z[++H]&&O===Z[++H]&&O===Z[++H]&&O===Z[++H]&&O===Z[++H]&&O===Z[++H]&&H<A;);N.match_length=258-(A-H);N.match_length>N.lookahead&&(N.match_length=N.lookahead)}N.match_length>=3?(O=eg(N,1,N.match_length-3),N.lookahead-=
N.match_length,N.strstart+=N.match_length,N.match_length=0):(O=eg(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++);if(O&&(nz(N,!1),N.strm.avail_out===0))return 1}N.insert=0;return t===4?(nz(N,!0),N.strm.avail_out===0?3:4):N.last_lit&&(nz(N,!1),N.strm.avail_out===0)?1:2};
iTQ=function(N,t){for(var O;;){if(N.lookahead===0&&(l0(N),N.lookahead===0)){if(t===0)return 1;break}N.match_length=0;O=eg(N,0,N.window[N.strstart]);N.lookahead--;N.strstart++;if(O&&(nz(N,!1),N.strm.avail_out===0))return 1}N.insert=0;return t===4?(nz(N,!0),N.strm.avail_out===0?3:4):N.last_lit&&(nz(N,!1),N.strm.avail_out===0)?1:2};
m8=function(N,t,O,H,A){this.good_length=N;this.max_lazy=t;this.nice_length=O;this.max_chain=H;this.func=A};
uiv=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 ak.Buf16(1146);this.dyn_dtree=new ak.Buf16(122);this.bl_tree=new ak.Buf16(78);x2(this.dyn_ltree);x2(this.dyn_dtree);x2(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new ak.Buf16(16);this.heap=new ak.Buf16(573);x2(this.heap);this.heap_max=this.heap_len=0;this.depth=new ak.Buf16(573);x2(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};
S3p=function(N,t){if(!N||!N.state||t>5||t<0)return N?Xc(N,-2):-2;var O=N.state;if(!N.output||!N.input&&N.avail_in!==0||O.status===666&&t!==4)return Xc(N,N.avail_out===0?-5:-2);O.strm=N;var H=O.last_flush;O.last_flush=t;if(O.status===42)if(O.wrap===2)N.adler=0,Wa(O,31),Wa(O,139),Wa(O,8),O.gzhead?(Wa(O,(O.gzhead.text?1:0)+(O.gzhead.hcrc?2:0)+(O.gzhead.extra?4:0)+(O.gzhead.name?8:0)+(O.gzhead.comment?16:0)),Wa(O,O.gzhead.time&255),Wa(O,O.gzhead.time>>8&255),Wa(O,O.gzhead.time>>16&255),Wa(O,O.gzhead.time>>
24&255),Wa(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),Wa(O,O.gzhead.os&255),O.gzhead.extra&&O.gzhead.extra.length&&(Wa(O,O.gzhead.extra.length&255),Wa(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(N.adler=Ik(N.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(Wa(O,0),Wa(O,0),Wa(O,0),Wa(O,0),Wa(O,0),Wa(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),Wa(O,3),O.status=113);else{var A=8+(O.w_bits-8<<4)<<8;A|=(O.strategy>=2||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6;O.strstart!==0&&(A|=
32);O.status=113;rr(O,A+(31-A%31));O.strstart!==0&&(rr(O,N.adler>>>16),rr(O,N.adler&65535));N.adler=1}if(O.status===69)if(O.gzhead.extra){for(A=O.pending;O.gzindex<(O.gzhead.extra.length&65535)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>A&&(N.adler=Ik(N.adler,O.pending_buf,O.pending-A,A)),k2(N),A=O.pending,O.pending!==O.pending_buf_size));)Wa(O,O.gzhead.extra[O.gzindex]&255),O.gzindex++;O.gzhead.hcrc&&O.pending>A&&(N.adler=Ik(N.adler,O.pending_buf,O.pending-A,A));O.gzindex===O.gzhead.extra.length&&
(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){A=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>A&&(N.adler=Ik(N.adler,O.pending_buf,O.pending-A,A)),k2(N),A=O.pending,O.pending===O.pending_buf_size)){var Z=1;break}Z=O.gzindex<O.gzhead.name.length?O.gzhead.name.charCodeAt(O.gzindex++)&255:0;Wa(O,Z)}while(Z!==0);O.gzhead.hcrc&&O.pending>A&&(N.adler=Ik(N.adler,O.pending_buf,O.pending-A,A));Z===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===
91)if(O.gzhead.comment){A=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>A&&(N.adler=Ik(N.adler,O.pending_buf,O.pending-A,A)),k2(N),A=O.pending,O.pending===O.pending_buf_size)){Z=1;break}Z=O.gzindex<O.gzhead.comment.length?O.gzhead.comment.charCodeAt(O.gzindex++)&255:0;Wa(O,Z)}while(Z!==0);O.gzhead.hcrc&&O.pending>A&&(N.adler=Ik(N.adler,O.pending_buf,O.pending-A,A));Z===0&&(O.status=103)}else O.status=103;O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&k2(N),
O.pending+2<=O.pending_buf_size&&(Wa(O,N.adler&255),Wa(O,N.adler>>8&255),N.adler=0,O.status=113)):O.status=113);if(O.pending!==0){if(k2(N),N.avail_out===0)return O.last_flush=-1,0}else if(N.avail_in===0&&(t<<1)-(t>4?9:0)<=(H<<1)-(H>4?9:0)&&t!==4)return Xc(N,-5);if(O.status===666&&N.avail_in!==0)return Xc(N,-5);if(N.avail_in!==0||O.lookahead!==0||t!==0&&O.status!==666){H=O.strategy===2?iTQ(O,t):O.strategy===3?jIv(O,t):Ev[O.level].func(O,t);if(H===3||H===4)O.status=666;if(H===1||H===3)return N.avail_out===
0&&(O.last_flush=-1),0;if(H===2&&(t===1?(zB(O,2,3),Y2(O,256,qV),O.bi_valid===16?(Lz(O,O.bi_buf),O.bi_buf=0,O.bi_valid=0):O.bi_valid>=8&&(O.pending_buf[O.pending++]=O.bi_buf&255,O.bi_buf>>=8,O.bi_valid-=8)):t!==5&&(zB(O,0,3),OTM(O,0,0),t===3&&(x2(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),k2(N),N.avail_out===0))return O.last_flush=-1,0}if(t!==4)return 0;if(O.wrap<=0)return 1;O.wrap===2?(Wa(O,N.adler&255),Wa(O,N.adler>>8&255),Wa(O,N.adler>>16&255),Wa(O,N.adler>>24&255),Wa(O,
N.total_in&255),Wa(O,N.total_in>>8&255),Wa(O,N.total_in>>16&255),Wa(O,N.total_in>>24&255)):(rr(O,N.adler>>>16),rr(O,N.adler&65535));k2(N);O.wrap>0&&(O.wrap=-O.wrap);return O.pending!==0?0:1};
hVl=function(N){if(!(this instanceof hVl))return new hVl(N);N=this.options=ak.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},N||{});N.raw&&N.windowBits>0?N.windowBits=-N.windowBits:N.gzip&&N.windowBits>0&&N.windowBits<16&&(N.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Mcl;this.strm.avail_out=0;var t=this.strm;var O=N.level,H=N.method,A=N.windowBits,Z=N.memLevel,U=N.strategy;if(t){var C=1;O===-1&&(O=6);A<0?(C=0,A=-A):A>15&&
(C=2,A-=16);if(Z<1||Z>9||H!==8||A<8||A>15||O<0||O>9||U<0||U>4)t=Xc(t,-2);else{A===8&&(A=9);var F=new uiv;t.state=F;F.strm=t;F.wrap=C;F.gzhead=null;F.w_bits=A;F.w_size=1<<F.w_bits;F.w_mask=F.w_size-1;F.hash_bits=Z+7;F.hash_size=1<<F.hash_bits;F.hash_mask=F.hash_size-1;F.hash_shift=~~((F.hash_bits+3-1)/3);F.window=new ak.Buf8(F.w_size*2);F.head=new ak.Buf16(F.hash_size);F.prev=new ak.Buf16(F.w_size);F.lit_bufsize=1<<Z+6;F.pending_buf_size=F.lit_bufsize*4;F.pending_buf=new ak.Buf8(F.pending_buf_size);
F.d_buf=F.lit_bufsize;F.l_buf=3*F.lit_bufsize;F.level=O;F.strategy=U;F.method=H;if(t&&t.state){t.total_in=t.total_out=0;t.data_type=2;O=t.state;O.pending=0;O.pending_out=0;O.wrap<0&&(O.wrap=-O.wrap);O.status=O.wrap?42:113;t.adler=O.wrap===2?0:1;O.last_flush=0;if(!bTS){H=Array(16);for(Z=U=0;Z<28;Z++)for(Vcp[Z]=U,A=0;A<1<<ZTy[Z];A++)TB[U++]=Z;TB[U-1]=Z;for(Z=U=0;Z<16;Z++)for(ULx[Z]=U,A=0;A<1<<DLM[Z];A++)wr[U++]=Z;for(U>>=7;Z<30;Z++)for(ULx[Z]=U<<7,A=0;A<1<<DLM[Z]-7;A++)wr[256+U++]=Z;for(A=0;A<=15;A++)H[A]=
0;for(A=0;A<=143;)qV[A*2+1]=8,A++,H[8]++;for(;A<=255;)qV[A*2+1]=9,A++,H[9]++;for(;A<=279;)qV[A*2+1]=7,A++,H[7]++;for(;A<=287;)qV[A*2+1]=8,A++,H[8]++;sJO(qV,287,H);for(A=0;A<30;A++)fz[A*2+1]=5,fz[A*2]=ojS(A,5);pi4=new vjS(qV,ZTy,257,286,15);L1M=new vjS(fz,DLM,0,30,15);zVz=new vjS([],Y3l,0,19,7);bTS=!0}O.l_desc=new JBN(O.dyn_ltree,pi4);O.d_desc=new JBN(O.dyn_dtree,L1M);O.bl_desc=new JBN(O.bl_tree,zVz);O.bi_buf=0;O.bi_valid=0;NYx(O);O=0}else O=Xc(t,-2);O===0&&(t=t.state,t.window_size=2*t.w_size,x2(t.head),
t.max_lazy_match=Ev[t.level].max_lazy,t.good_match=Ev[t.level].good_length,t.nice_match=Ev[t.level].nice_length,t.max_chain_length=Ev[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0);t=O}}else t=-2;if(t!==0)throw Error(Pa[t]);N.header&&(t=this.strm)&&t.state&&t.state.wrap===2&&(t.state.gzhead=N.header);if(N.dictionary){var g;typeof N.dictionary==="string"?g=amt(N.dictionary):TYg.call(N.dictionary)==="[object ArrayBuffer]"?
g=new Uint8Array(N.dictionary):g=N.dictionary;N=this.strm;Z=g;U=Z.length;if(N&&N.state)if(g=N.state,t=g.wrap,t===2||t===1&&g.status!==42||g.lookahead)t=-2;else{t===1&&(N.adler=cG9(N.adler,Z,U,0));g.wrap=0;U>=g.w_size&&(t===0&&(x2(g.head),g.strstart=0,g.block_start=0,g.insert=0),O=new ak.Buf8(g.w_size),ak.arraySet(O,Z,U-g.w_size,g.w_size,0),Z=O,U=g.w_size);O=N.avail_in;H=N.next_in;A=N.input;N.avail_in=U;N.next_in=0;N.input=Z;for(l0(g);g.lookahead>=3;){Z=g.strstart;U=g.lookahead-2;do g.ins_h=(g.ins_h<<
g.hash_shift^g.window[Z+3-1])&g.hash_mask,g.prev[Z&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=Z,Z++;while(--U);g.strstart=Z;g.lookahead=2;l0(g)}g.strstart+=g.lookahead;g.block_start=g.strstart;g.insert=g.lookahead;g.lookahead=0;g.match_length=g.prev_length=2;g.match_available=0;N.next_in=H;N.input=A;N.avail_in=O;g.wrap=t;t=0}else t=-2;if(t!==0)throw Error(Pa[t]);this._dict_set=!0}};
wix=function(N,t){t=t||{};t.gzip=!0;t=new hVl(t);t.push(N,!0);if(t.err)throw t.msg||Pa[t.err];return t.result};
P8S=function(N,t){var O=eVy();O&&O.publish.call(O,N.toString(),N,t)};
fmQ=function(N,t,O){var H=eVy();if(!H)return 0;var A=H.subscribe(N.toString(),function(Z,U){var C=_.s2("ytPubsub2Pubsub2SkipSubKey");C&&C==A||(C=function(){if(Xig[A])try{if(U&&N instanceof xLN&&N!=Z)try{var F=N.dataClass,g=U;if(!g.args||!g.version)throw Error("$c");try{if(!F.version_){var B=new F;F.version_=B.version}var c=F.version_}catch(u){}if(!c||g.version!=c)throw Error("ad");try{U=Reflect.construct(F,_.Il(g.args))}catch(u){throw u.message="yt.pubsub2.Data.deserialize(): "+u.message,u;}}catch(u){throw u.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+N.toString()+": "+u.message,u;}t.call(O||window,U)}catch(u){_.JO(u)}},kVO[N.toString()]?_.s2("yt.scheduler.instance")?_.GB.addLowPriorityJob(C):_.pF(C,0):C())});
Xig[A]=!0;q34[N.toString()]||(q34[N.toString()]=[]);q34[N.toString()].push(A);return A};
Imz=function(){var N=nHQ,t=fmQ(W1g,function(O){N.apply(void 0,arguments);rGx(t)});
return t};
rGx=function(N){var t=eVy();t&&(typeof N==="number"&&(N=[N]),_.Z9(N,function(O){t.unsubscribeByKey(O);delete Xig[O]}))};
eVy=function(){return _.s2("ytPubsub2Pubsub2Instance")};
lmy=function(N,t,O){O=O===void 0?{sampleRate:.1}:O;Math.random()<Math.min(.02,O.sampleRate/100)&&P8S("meta_logging_csi_event",{timerName:N,timelineData:t})};
_.QIG=function(N){return N?(N=N.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Zx(N):null:null};
_.Rk=function(N){return N?(N=N.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.wD(N):null:null};
EHO=function(){mLx||(mLx=_.Rk(_.Ro("WORKER_SERIALIZATION_URL")));return mLx||void 0};
_.RVG=function(){var N=EHO();GVz||N===void 0||(GVz=iUN(N));return GVz};
_.vHM=function(){return typeof Worker==="function"&&EHO()?!0:!1};
_.Nzt=function(){if(_.vHM()&&!JGQ){var N=function(O){O=O.data;if(O.op==="gzippedGelBatch"){var H=oH4.get(O.key);H&&(sI9(O.gzippedBatch,H.latencyPayload,H.url,H.options,H.sendFn),oH4.delete(O.key))}},t=_.RVG();
t&&(t.addEventListener("message",N),t.onerror=function(){oH4.clear()},JGQ=!0)}};
DfG=function(N,t,O,H,A){A=A===void 0?!1:A;var Z={startTime:(0,_.jg)(),ticks:{},infos:{}};if(va)try{var U=tnt(t);if(U!=null&&(U>OON||U<HOt))H(N,O);else{if(_.h("gzip_gel_with_worker")&&(_.h("initial_gzip_use_main_thread")&&!Anv||!_.h("initial_gzip_use_main_thread"))){JGQ||_.Nzt();var C=_.RVG();if(C&&!A){oH4.set(ZOp,{latencyPayload:Z,url:N,options:O,sendFn:H});C.postMessage({op:"gelBatchToGzip",serializedBatch:t,key:ZOp});ZOp++;return}}var F=wix(Vnz(t));sI9(F,Z,N,O,H)}}catch(g){_.HY(g),H(N,O)}else H(N,
O)};
sI9=function(N,t,O,H,A){Anv=!1;var Z=(0,_.jg)();t.ticks.gelc=Z;Jr++;_.h("disable_compression_due_to_performance_degredation")&&Z-t.startTime>=Uf4&&(CcO++,va=!1);KNN(t);H.headers||(H.headers={});H.headers["Content-Encoding"]="gzip";H.postBody=N;H.postParams=void 0;A(O,H)};
dfx=function(N){var t=t===void 0?!1:t;var O=O===void 0?!1:O;var H=(0,_.jg)(),A={startTime:H,ticks:{},infos:{}},Z=t?_.s2("yt.logging.gzipForFetch",!1):!0;if(va&&Z){if(!N.body)return N;try{var U=O?N.body:typeof N.body==="string"?N.body:JSON.stringify(N.body);Z=U;if(!O&&typeof U==="string"){var C=tnt(U);if(C!=null&&(C>OON||C<HOt))return N;O=t?{level:1}:void 0;Z=wix(Vnz(U),O);var F=(0,_.jg)();A.ticks.gelc=F;if(t){Jr++;if((_.h("disable_compression_due_to_performance_degredation")||_.h("disable_compression_due_to_performance_degradation_lr"))&&
F-H>=Uf4)if(CcO++,_.h("abandon_compression_after_N_slow_zips_lr")){t=CcO/Jr;var g=FNQ/_.uP("compression_disable_point");Jr>0&&Jr%_.uP("compression_disable_point")===0&&t>=g&&(va=!1)}else va=!1;KNN(A)}}N.headers=Object.assign({},{"Content-Encoding":"gzip"},N.headers||{});N.body=Z;return N}catch(B){return _.HY(B),N}}else return N};
tnt=function(N){try{return(new Blob(N.split(""))).size}catch(t){return _.HY(t),null}};
KNN=function(N){_.h("gel_compression_csi_killswitch")||!_.h("log_gel_compression_latency")&&!_.h("log_gel_compression_latency_lr")||lmy("gel_compression",N,{sampleRate:.1})};
gq4=function(){this.blockSize=-1};
ok=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var N=1;N<this.blockSize;++N)this.pad_[N]=0;this.total_=this.inbuf_=0;this.reset()};
Bzg=function(N){N=Object.assign({},N);delete N.Authorization;var t=_.ynt();if(t){var O=new ok;O.update(_.Ro("INNERTUBE_API_KEY"));O.update(t);N.hash=_.wi(O.digest(),3)}return N};
Ng=function(){cnx||(cnx=new _.sv("yt.innertube"));return cnx};
$fg=function(N,t,O,H){if(H)return null;H=Ng().get("nextId",!0)||1;var A=Ng().get("requests",!0)||{};A[H]={method:N,request:t,authState:Bzg(O),requestTime:Math.round((0,_.jg)())};Ng().set("nextId",H+1,86400,!0);Ng().set("requests",A,86400,!0);return H};
jHg=function(N){var t=Ng().get("requests",!0)||{};delete t[N];Ng().set("requests",t,86400,!0)};
ubg=function(N){var t=Ng().get("requests",!0);if(t){for(var O in t){var H=t[O];if(!(Math.round((0,_.jg)())-H.requestTime<6E4)){var A=H.authState,Z=Bzg(_.Gvy(!1));_.WW.equals(A,Z)&&(A=H.request,"requestTimeMs"in A&&(A.requestTimeMs=Math.round((0,_.jg)())),iOp(N,H.method,A,{}));delete t[O]}}Ng().set("requests",t,86400,!0)}};
S6y=function(N){var t;return(N=N==null?void 0:(t=N.error)==null?void 0:t.code)&&N>=400&&N<=599?!1:!0};
hhM=function(N){var t;N=N==null?void 0:(t=N.error)==null?void 0:t.code;return!(N!==400&&N!==415)};
bOl=function(){if(MnO)return MnO();var N={};MnO=$2("LogsDatabaseV2",{objectStores:(N.LogsRequestsStore={addedAtVersion:2},N),shared:!1,upgrade:function(t,O,H){O(2)&&t_(t,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});O(3);O(5)&&(H=H.objectStore("LogsRequestsStore"),H.JSC$10835_wrapped.indexNames.contains("newRequest")&&H.JSC$10835_wrapped.deleteIndex("newRequest"),O7(H,"newRequestV2",["status","interface","timestamp"]));O(7)&&t.JSC$10820_wrapped.objectStoreNames.contains("sapisid")&&t.JSC$10820_wrapped.deleteObjectStore("sapisid");
O(9)&&t.JSC$10820_wrapped.objectStoreNames.contains("SWHealthLog")&&t.JSC$10820_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return MnO()};
HX=function(N){return _.Cz(bOl(),N)};
LNl=function(N,t){var O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return O={startTime:(0,_.jg)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},U.yield(HX(t),2);if(U.nextAddress!=3)return H=U.yieldResult,A=Object.assign({},N,{options:JSON.parse(JSON.stringify(N.options)),interface:_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),U.yield(H.put("LogsRequestsStore",A),3);Z=U.yieldResult;O.ticks.tc=(0,_.jg)();p2v(O);return U.return(Z)})};
zhg=function(N,t){var O,H,A,Z,U,C,F,g,B;return _.K(function(c){if(c.nextAddress==1)return O={startTime:(0,_.jg)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},c.yield(HX(t),2);if(c.nextAddress!=3)return H=c.yieldResult,A=_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME",0),Z=[N,A,0],U=[N,A,(0,_.jg)()],C=IDBKeyRange.bound(Z,U),F="prev",_.h("use_fifo_for_networkless")&&(F="next"),g=void 0,B=N==="NEW"?"readwrite":"readonly",_.h("use_readonly_for_get_most_recent_by_status_killswitch")&&(B="readwrite"),
c.yield(_.Kz(H,["LogsRequestsStore"],{mode:B,enableRetries:!0},function(u){return _.i0(u.objectStore("LogsRequestsStore").index("newRequestV2"),{query:C,direction:F},function(S){S.getValue()&&(g=S.getValue(),N==="NEW"&&(g.status="QUEUED",S.update(g)))})}),3);
O.ticks.tc=(0,_.jg)();p2v(O);return c.return(g)})};
Y6x=function(N,t){var O;return _.K(function(H){if(H.nextAddress==1)return H.yield(HX(t),2);O=H.yieldResult;return H.return(_.Kz(O,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(A){var Z=A.objectStore("LogsRequestsStore");return Z.get(N).then(function(U){if(U)return U.status="QUEUED",Z.put(U).then(function(){return U})})}))})};
arQ=function(N,t,O,H){O=O===void 0?!0:O;var A;return _.K(function(Z){if(Z.nextAddress==1)return Z.yield(HX(t),2);A=Z.yieldResult;return Z.return(_.Kz(A,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(U){var C=U.objectStore("LogsRequestsStore");return C.get(N).then(function(F){return F?(F.status="NEW",O&&(F.sendCount+=1),H!==void 0&&(F.options.compress=H),C.put(F).then(function(){return F})):Ov.resolve(void 0)})}))})};
Tzt=function(N,t){var O;return _.K(function(H){if(H.nextAddress==1)return H.yield(HX(t),2);O=H.yieldResult;return H.return(O.delete("LogsRequestsStore",N))})};
w2x=function(N){var t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(HX(N),2);t=H.yieldResult;O=(0,_.jg)()-2592E6;return H.yield(_.Kz(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(A){return dr(A.objectStore("LogsRequestsStore"),{},function(Z){if(Z.getValue().timestamp<=O)return Z.delete().then(function(){return Z.continue()})})}),0)})};
ehz=function(){_.K(function(N){return N.yield(S_4("LogsDatabaseV2"),0)})};
p2v=function(N){_.h("nwl_csi_killswitch")||lmy("networkless_performance",N,{sampleRate:1})};
_.X2t=function(N){return _.Cz(Pct(),N)};
xfG=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(_.X2t(N),2);t=H.yieldResult;O=(0,_.jg)()-2592E6;return H.yield(_.Kz(t,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(A){return dr(A.objectStore("SWHealthLog"),{},function(Z){if(Z.getValue().timestamp<=O)return Z.delete().then(function(){return Z.continue()})})}),0)})};
kr4=function(N){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(_.X2t(N),2);t=O.yieldResult;return O.yield(t.clear("SWHealthLog"),0)})};
_.A_=function(N,t,O,H,A,Z,U){A=A===void 0?"":A;Z=Z===void 0?!1:Z;U=U===void 0?!1:U;if(N)if(O&&!oD("cobalt"))_.HY(new _.fF("Legacy referrer-scrubbed ping detected")),N&&q6Q(N,void 0,{scrubReferrer:!0});else if(A)FIp(N,t,"POST",A,H);else if(_.Ro("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||H||U)FIp(N,t,"GET","",H,void 0,Z,U);else{b:{try{c:{var C=new frl({url:N});if(C.urlParamValues_.dsh==="1")var F=null;else{var g=C.urlParamValues_.ae;if(g==="1"){var B=C.urlParamValues_.adurl;if(B)try{F={version:3,directUrl:decodeURIComponent(B),
asyncUrl:WDl(C.JSC$9631_url_,"act=1","ri=1",nq9(C))};break c}catch(b){}}F=g==="2"?{version:4,directUrl:WDl(C.JSC$9631_url_,"dct=1","suid="+C.suid_,"ri=1"),asyncUrl:WDl(C.JSC$9631_url_,"act=1","ri=1","suid="+C.suid_)}:null}}if(F){var c=_.Yv(N);var u=!(!c||!c.endsWith("/aclk")||_.s$(N,"ri")!=="1");break b}}catch(b){}u=!1}if(u){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(N,"")){var S=!0;break b}}catch(b){}S=!1}S?(t&&t(),O=!0):O=!1}else O=!1;O||q6Q(N,t)}};
q6Q=function(N,t,O){O=O===void 0?{}:O;var H=new Image,A=""+WNy++;rnS[A]=H;H.onload=H.onerror=function(){t&&rnS[A]&&t();delete rnS[A]};
O.scrubReferrer&&(H.referrerPolicy="no-referrer");H.src=N};
Z4=function(N,t){IrM(N,t==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
lrx=function(N){var t;return((t=document.featurePolicy)==null?0:t.allowedFeatures().includes("attribution-reporting"))?N+"&nis=6":N+"&nis=5"};
QHO=function(N){if(!N)return!1;try{var t;if(((t=_.Vl(N))==null?void 0:t.asm)==="4")return!0}catch(O){_.JO(O)}return!1};
IrM=function(N,t){t?(N=lrx(N),_.A_(N,void 0,void 0,void 0,"",!0,!0)):_.A_(N)};
EqO=function(){mfG||(mfG=new _.sv("yt.offline"));return mfG};
Grp=function(N){if(_.h("offline_error_handling")){var t=EqO().get("errors",!0)||{};t[N.message]={name:N.name,stack:N.stack};N.level&&(t[N.message].level=N.level);EqO().set("errors",t,2592E3,!0)}};
vqN=function(N,t,O,H){H=H===void 0?!1:H;t=_.h("web_fp_via_jspb")?Object.assign({},t):t;_.h("use_cfr_monitor")&&Rh9(N,t);if(_.h("use_request_time_ms_header"))t.headers&&gE(N)&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.jg)())));else{var A;if((A=t.postParams)==null?0:A.requestTimeMs)t.postParams.requestTimeMs=Math.round((0,_.jg)())}O&&Object.keys(t).length===0?_.A_(N):t.compress?t.postBody?(typeof t.postBody!=="string"&&(t.postBody=JSON.stringify(t.postBody)),DfG(N,t.postBody,
t,_.aD,H)):DfG(N,JSON.stringify(t.postParams),t,B0v,H):_.aD(N,t)};
JnG=function(N,t){_.h("use_event_time_ms_header")&&gE(N)&&(t.headers||(t.headers={}),t.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.jg)())));return t};
_.sHO=function(){oqp||(oqp=new _.VN({logOfflineErrors:!0,enablePolling:!0}));return oqp};
Rh9=function(N,t){var O=t.onError?t.onError:function(){};
t.onError=function(A,Z){D4().requestComplete(N,!1);O(A,Z)};
var H=t.onSuccess?t.onSuccess:function(){};
t.onSuccess=function(A,Z){D4().requestComplete(N,!0);H(A,Z)}};
_.NFy=function(){return _.Fe(document.location.toString())!=="www.youtube-nocookie.com"};
_.HCx=function(){return _.s2("ytNetworklessLoggingInitializationOptions")?_.tFQ.isNwlInitialized:_.OC9};
Ady=function(N,t){if(_.h("polymer_on_demand_shady_dom")){var O;var H=(O=N.__shady_native_firstElementChild)!=null?O:N.firstElementChild}else H=N.firstElementChild;for(;H;){if(N=t(H)?H:Ady(H,t))return N;H=H.nextElementSibling}return null};
VFG=function(){var N=document;if("visibilityState"in N)return N.visibilityState;var t=ZCS+"VisibilityState";if(t in N)return N[t]};
_.D24=function(N,t){var O;U7(N,function(H){O=t[H];return!!O});
return O};
_.Kb=function(N){var t=U2z(N);t?t.focus(void 0):_.Cb(N)};
U2z=function(N){return(N=Ady(N,function(t){return _.FW(t)?CbN(t)&&!!t.offsetParent:!1}))?N:null};
_.Cb=function(N,t){N.hasAttribute("tabindex")||N.setAttribute("tabindex","-1");N.focus(t)};
KwS=function(N,t,O,H){H=H===void 0?{}:H;N.addEventListener&&(t!="mouseenter"||"onmouseenter"in document?t!="mouseleave"||"onmouseenter"in document?t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"):t="mouseout":t="mouseover");return _.WW.findKey(da,function(A){var Z=typeof A[4]==="boolean"&&A[4]==!!H,U=_.mG(A[4])&&_.mG(H)&&_.WW.equals(A[4],H);return!!A.length&&A[0]==N&&A[1]==t&&A[2]==O&&(Z||U)})};
_.BX=function(N,t,O,H){H=H===void 0?{}:H;if(!N||!N.addEventListener&&!N.attachEvent)return"";var A=KwS(N,t,O,H);if(A)return A;A=++Fwy.count+"";var Z=!(t!="mouseenter"&&t!="mouseleave"||!N.addEventListener||"onmouseenter"in document);var U=Z?function(C){C=new yN(C);if(!_.EW(C.relatedTarget,function(F){return F==N},!0))return C.currentTarget=N,C.type=t,O.call(N,C)}:function(C){C=new yN(C);
C.currentTarget=N;return O.call(N,C)};
U=_.oo(U);N.addEventListener?(t=="mouseenter"&&Z?t="mouseover":t=="mouseleave"&&Z?t="mouseout":t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"),d2O()||typeof H==="boolean"?N.addEventListener(t,U,H):N.addEventListener(t,U,!!H.capture)):N.attachEvent("on"+t,U);da[A]=[N,t,O,U,H];return A};
_.ydM=function(N,t,O){var H=H===void 0?{}:H;var A=_.BX(N,t,function(){_.gJp(A);O.apply(N,arguments)},H)};
_.gJp=function(N){N&&(typeof N=="string"&&(N=[N]),_.Z9(N,function(t){if(t in da){var O=da[t],H=O[0],A=O[1],Z=O[3];O=O[4];H.removeEventListener?d2O()||typeof O==="boolean"?H.removeEventListener(A,Z,O):H.removeEventListener(A,Z,!!O.capture):H.detachEvent&&H.detachEvent("on"+A,Z);delete da[t]}}))};
cX=function(N){this.callback_=N;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(N=0;N<4;N++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.BX(window,"mousemove",(0,_.qn)(this.onMouseMove_,this));this.timerId_=_.LF((0,_.qn)(this.checkPosition_,this),25)};
$2g=function(){var N={};var t=N.preferMobileEvents===void 0?!1:N.preferMobileEvents;N=N.enableScrollEventListener===void 0?!0:N.enableScrollEventListener;if(_.s2("_lact",window)==null){var O=parseInt(_.Ro("LACT"),10);O=isFinite(O)?Date.now()-Math.max(O,0):-1;_.Ba("_lact",O,window);_.Ba("_fact",O,window);O==-1&&_.$3();BFN(window,t,N);new cX(function(){cdQ("mouse",100)})}};
BFN=function(N,t,O){t=t===void 0?!1:t;O=O===void 0?!0:O;_.BX(N.document,"keydown",_.$3);_.BX(N.document,"keyup",_.$3);_.BX(N.document,"mousedown",_.$3);_.BX(N.document,"mouseup",_.$3);t?_.BX(N,"touchmove",function(){cdQ("touchmove",200)},{passive:!0}):(_.BX(N,"resize",function(){cdQ("resize",200)}),O&&_.BX(N,"scroll",function(){cdQ("scroll",200)}));
_.BX(N.document,"touchstart",_.$3,{passive:!0});_.BX(N.document,"touchend",_.$3,{passive:!0})};
cdQ=function(N,t){j_y[N]||(j_y[N]=!0,_.GB.addLowPriorityJob(function(){_.$3();j_y[N]=!1},t))};
_.$3=function(){_.s2("_lact",window)==null&&$2g();var N=Date.now();_.Ba("_lact",N,window);_.s2("_fact",window)==-1&&_.Ba("_fact",N,window);(N=_.s2("ytglobal.ytUtilActivityCallback_"))&&N()};
_.jO=function(){var N=_.s2("_lact",window);return N==null?-1:Math.max(Date.now()-N,0)};
_.Mg=function(N,t,O){var H=_.id();if(H&&t){var A=H.subscribe(N,function(){var Z=arguments,U=function(){SO[A]&&t.apply&&typeof t.apply=="function"&&t.apply(O||window,Z)};
try{_.iCt[N]?U():_.pF(U,0)}catch(C){_.JO(C)}},O);
SO[A]=!0;h_[N]||(h_[N]=[]);h_[N].push(A);return A}return 0};
_.urv=function(N){var t=_.id();t&&(typeof N==="number"?N=[N]:typeof N==="string"&&(N=[parseInt(N,10)]),_.Z9(N,function(O){t.unsubscribeByKey(O);delete SO[O]}))};
_.S4l=function(N,t){var O=_.id();O&&O.publish.apply(O,arguments)};
_.MFQ=function(N){var t=_.id();if(t)if(t.clear(N),N)hEG(N);else for(var O in h_)hEG(O)};
_.id=function(){return _.H4.ytPubsubPubsubInstance};
hEG=function(N){h_[N]&&(N=h_[N],_.Z9(N,function(t){SO[t]&&delete SO[t]}),N.length=0)};
bCz=function(){var N,t;return"h5vcc"in bd&&((N=bd.h5vcc.traceEvent)==null?0:N.traceBegin)&&((t=bd.h5vcc.traceEvent)==null?0:t.traceEnd)?1:"performance"in bd&&bd.performance.mark&&bd.performance.measure?2:0};
pV9=function(N){var t=bCz();switch(t){case 1:bd.h5vcc.traceEvent.traceBegin("YTLR",N);break;case 2:bd.performance.mark(N+"-start");break;case 0:break;default:_.Ep(t,"unknown trace type")}};
Lw4=function(N){var t=bCz();switch(t){case 1:bd.h5vcc.traceEvent.traceEnd("YTLR",N);break;case 2:t=N+"-start";var O=N+"-end";bd.performance.mark(O);bd.performance.measure(N,t,O);break;case 0:break;default:_.Ep(t,"unknown trace type")}};
zEM=function(N){var t,O;(O=(t=window).onerror)==null||O.call(t,N.message,"",0,0,N)};
Y4l=function(N){if(_.h("web_lifecycle_error_handling_killswitch"))return N();try{return N()}catch(t){zEM(t)}};
a5t=function(N){return[N.auth===void 0?"undefined":N.auth,N.isJspb===void 0?"undefined":N.isJspb,N.cttAuthInfo===void 0?"undefined":N.cttAuthInfo,N.tier===void 0?"undefined":N.tier].join("/")};
_.M=function(N,t){if(N)return N[t.name]};
Lb=function(){var N=_.s2("yt.logging.ims");N||(N=new pb,_.Ba("yt.logging.ims",N));return N};
f5Q=function(N,t){if(N.endpoint==="log_event"){TFt(N);var O=wV4(N),H=eEz(N.payload)||"",A=Pby(H),Z=200;if(A){if(A.enabled===!1&&!_.h("web_payload_policy_disabled_killswitch"))return;Z=XVp(A.tier);if(Z===400){x2S(N,t);return}}Y3[O]=!0;O={cttAuthInfo:O,isJspb:!1,tier:Z};Lb().storePayload(O,N.payload);kbN(t,!1,O,q4t(H))}};
Wwp=function(N,t,O){if(t.endpoint==="log_event"){TFt(void 0,t);var H=wV4(t,!0),A=Pby(N),Z=200;if(A){if(A.enabled===!1&&!_.h("web_payload_policy_disabled_killswitch"))return;Z=XVp(A.tier);if(Z===400){nJg(N,t,O);return}}Y3[H]=!0;H={cttAuthInfo:H,isJspb:!0,tier:Z};Lb().storePayload(H,Pm(t.payload));kbN(O,!0,H,q4t(N))}};
kbN=function(N,t,O,H){t=t===void 0?!1:t;H=H===void 0?!1:H;N&&(a0=new N);N=_.uP("tvhtml5_logging_max_batch_ads_fork")||_.uP("tvhtml5_logging_max_batch")||_.uP("web_logging_max_batch")||100;var A=(0,_.jg)(),Z=rdt(t,O.tier),U=Z.lastDebounceQueueFromLogTimeMs;H&&(Z.useVideoStatsEndPoint=!0);H=0;O&&(H=Lb().getSequenceCount(O));var C=function(){I5x({writeThenSend:!0},t,O.tier)};
H>=1E3?C():H>=N?l5y||(l5y=Q_p(function(){C();l5y=void 0},0)):A-U>=10&&(m2z(t,O.tier),Z.lastDebounceQueueFromLogTimeMs=A)};
x2S=function(N,t){if(N.endpoint==="log_event"){_.h("more_accurate_gel_parser")&&Lb().storePayload({isJspb:!1},N.payload);TFt(N);var O=wV4(N),H=new Map;H.set(O,[N.payload]);var A=eEz(N.payload)||"";t&&(a0=new t);return new _.TW(function(Z,U){a0&&a0.isReady()?EJ9(H,a0,Z,U,{bypassNetworkless:!0},!0,q4t(A)):Z()})}};
nJg=function(N,t,O){if(t.endpoint==="log_event"){TFt(void 0,t);var H=wV4(t,!0),A=new Map;A.set(H,[Pm(t.payload)]);O&&(a0=new O);return new _.TW(function(Z){a0&&a0.isReady()?Gbg(A,a0,Z,{bypassNetworkless:!0},!0,q4t(N)):Z()})}};
wV4=function(N,t){var O="";if(N.dangerousLogToVisitorSession)O="visitorOnlyApprovedKey";else if(N.cttAuthInfo){if(t===void 0?0:t){t=N.cttAuthInfo.token;O=N.cttAuthInfo;var H=new REg;O.videoId?H.setVideoId(O.videoId):O.playlistId&&wa(H,2,vJl,i1(O.playlistId));JdM[t]=H}else t=N.cttAuthInfo,O={},t.videoId?O.videoId=t.videoId:t.playlistId&&(O.playlistId=t.playlistId),oJy[N.cttAuthInfo.token]=O;O=N.cttAuthInfo.token}return O};
I5x=function(N,t,O){N=N===void 0?{}:N;t=t===void 0?!1:t;new _.TW(function(H,A){var Z=rdt(t,O),U=Z.useVideoStatsEndPoint;Z.useVideoStatsEndPoint=!1;s_x(Z.queueTimer);s_x(Z.queueMaxTimer);Z.queueMaxTimer=0;a0&&a0.isReady()?O===void 0&&_.h("enable_web_tiered_gel")?Nql(H,A,N,t,300,U):Nql(H,A,N,t,O,U):(m2z(t,O),H())})};
Nql=function(N,t,O,H,A,Z){var U=a0;O=O===void 0?{}:O;H=H===void 0?!1:H;A=A===void 0?200:A;Z=Z===void 0?!1:Z;var C=new Map,F=new Map,g={isJspb:H,cttAuthInfo:void 0,tier:A},B={isJspb:H,cttAuthInfo:void 0};if(H){t=_.D(Object.keys(Y3));for(A=t.next();!A.done;A=t.next())A=A.value,F=_.h("enable_web_tiered_gel")?Lb().smartExtractMatchingEntries({keys:[g,B],sizeLimit:1E3}):Lb().extractMatchingEntries({isJspb:!0,cttAuthInfo:A}),F.length>0&&C.set(A,F),(_.h("web_fp_via_jspb_and_json")&&O.writeThenSend||!_.h("web_fp_via_jspb_and_json"))&&
delete Y3[A];Gbg(C,U,N,O,!1,Z)}else{C=_.D(Object.keys(Y3));for(g=C.next();!g.done;g=C.next())g=g.value,B=_.h("enable_web_tiered_gel")?Lb().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:g,tier:A},{isJspb:!1,cttAuthInfo:g}],sizeLimit:1E3}):Lb().extractMatchingEntries({isJspb:!1,cttAuthInfo:g}),B.length>0&&F.set(g,B),(_.h("web_fp_via_jspb_and_json")&&O.writeThenSend||!_.h("web_fp_via_jspb_and_json"))&&delete Y3[g];EJ9(F,U,N,t,O,!1,Z)}};
m2z=function(N,t){N=N===void 0?!1:N;t=t===void 0?200:t;var O=function(){I5x({writeThenSend:!0},N,t)},H=rdt(N,t),A=H===t9O||H===OEt?5E3:HEv;
_.h("web_gel_timeout_cap")&&!H.queueMaxTimer&&(A=Q_p(function(){O()},A),H.queueMaxTimer=A);
s_x(H.queueTimer);A=_.Ro("LOGGING_BATCH_TIMEOUT",_.uP("web_gel_debounce_ms",1E4));_.h("shorten_initial_gel_batch_timeout")&&A4Q&&(A=ZEp);A=Q_p(function(){_.uP("gel_min_batch_size")>0?Lb().getSequenceCount({cttAuthInfo:void 0,isJspb:N,tier:t})>=V9g&&O():O()},A);
H.queueTimer=A};
EJ9=function(N,t,O,H,A,Z,U){A=A===void 0?{}:A;var C=Math.round((0,_.jg)()),F=N.size,g=DeM(U);N=_.D(N);var B=N.next();for(U={};!B.done;U={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},B=N.next()){var c=_.D(B.value);B=c.next().value;c=c.next().value;U.batchRequest=_.WW.unsafeClone({context:_.fnv(t.config_||_.u0())});if(!_.lQ(c)&&!_.h("throw_err_when_logevent_malformed_killswitch")){H();break}U.batchRequest.events=c;
(c=oJy[B])&&Uev(U.batchRequest,B,c);delete oJy[B];U.dangerousLogToVisitorSession=B==="visitorOnlyApprovedKey";Cjx(U.batchRequest,C,U.dangerousLogToVisitorSession);KB9(A);U.onSuccess$jscomp$3=function(u){_.h("start_client_gcf")&&_.GB.addLowPriorityJob(function(){return _.K(function(S){return S.yield(FBy(u),0)})});
F--;F||O()};
U.networkFailures=0;U.onError$jscomp$5=function(u){return function(){u.networkFailures++;if(A.bypassNetworkless&&u.networkFailures===1)try{iOp(t,g,u.batchRequest,deQ({writeThenSend:!0},u.dangerousLogToVisitorSession,u.onSuccess$jscomp$3,u.onError$jscomp$5,Z)),A4Q=!1}catch(S){_.JO(S),H()}F--;F||O()}}(U);
try{iOp(t,g,U.batchRequest,deQ(A,U.dangerousLogToVisitorSession,U.onSuccess$jscomp$3,U.onError$jscomp$5,Z)),A4Q=!1}catch(u){_.JO(u),H()}}};
Gbg=function(N,t,O,H,A,Z){H=H===void 0?{}:H;var U=Math.round((0,_.jg)()),C={value:N.size},F=new Map([].concat(_.W6(N)));F=_.D(F);for(var g=F.next();!g.done;g=F.next()){var B=_.D(g.value).next().value,c=N.get(B);g=new gVO;var u=t.config_||_.u0(),S=new eO,b=new y4x;_.Xa(b,1,u.innertubeContextHostLanguage);_.Xa(b,2,u.innertubeContextGeoLocation);_.hr(b,16,u.innertubeContextClientNameFieldNumber);_.Xa(b,17,u.innertubeContextClientVersion);if(u.innertubeContextClientConfigInfo){var z=u.innertubeContextClientConfigInfo,
w=new b0;z.coldConfigData&&_.Xa(w,1,z.coldConfigData);z.appInstallData&&_.Xa(w,6,z.appInstallData);z.coldHashData&&_.Xa(w,3,z.coldHashData);z.hotHashData&&w.setHotHashData(z.hotHashData);_.L8(b,62,w)}(z=_.H4.devicePixelRatio)&&z!=1&&_.MV(b,65,_.GS(z));z=OJx();z!==""&&_.Xa(b,54,z);z=HJ4();if(z.length>0){w=new Bqt;for(var P=0;P<z.length;P++){var x=new PX;x.setKey(z[P].key);wa(x,2,c4y,i1(z[P].value));XW(w,15,PX,x)}_.L8(S,5,w)}ekN(u,b);P5Q(S);X5O(b);xES(u,b);kv9(b);_.h("start_client_gcf")&&q_x(b);_.Ro("DELEGATED_SESSION_ID")&&
!_.h("pageid_as_header_web")&&(u=new x3,_.Xa(u,3,_.Ro("DELEGATED_SESSION_ID")));!_.h("fill_delegate_context_in_gel_killswitch")&&(z=_.Ro("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(w=_.Sg(S,x3,3)||new x3,u=S,z=_.Xa(w,18,z),_.L8(u,3,z));u=b;z=_.D(Object.entries(_.Vl(_.Ro("DEVICE",""))));for(w=z.next();!w.done;w=z.next())P=_.D(w.value),w=P.next().value,P=P.next().value,w==="cbrand"?_.Xa(u,12,P):w==="cmodel"?_.Xa(u,13,P):w==="cbr"?_.Xa(u,87,P):w==="cbrver"?_.Xa(u,88,P):w==="cos"?_.Xa(u,18,
P):w==="cosver"?_.Xa(u,19,P):w==="cplatform"&&_.hr(u,42,e7M(P));S.setClient(b);_.L8(g,1,S);if(b=JdM[B])a:{if(_.aP(b,k3(b,vJl,1)))S=1;else if(b.getPlaylistId())S=2;else break a;_.L8(g,4,b);b=g.getContext()||new eO;u=_.Sg(b,x3,3)||new x3;z=new qg;z.setToken(B);_.hr(z,1,S);XW(u,12,qg,z);_.L8(b,3,u)}delete JdM[B];B=B==="visitorOnlyApprovedKey";$ey()||_.fb(g,2,U);!B&&(S=_.Ro("EVENT_ID"))&&(b=jMO(),u=new iEl,_.Xa(u,1,S),_.fb(u,2,b),_.L8(g,5,u));KB9(H);if(_.h("jspb_serialize_with_worker")&&(S=_.RVG())&&
H.writeThenSend){_.uM4.set(SiO,{client:t,resolve:O,networklessOptions:H,isIsolated:A,useVSSEndpoint:Z,dangerousLogToVisitorSession:B,requestsOutstanding:C});S.postMessage({op:"gelBatchToSerialize",batchRequest:Pm(g),clientEvents:c,key:SiO});SiO++;break}if(c){S=[];for(b=0;b<c.length;b++)try{S.push(new nb(c[b]))}catch(l){_.JO(new _.fF("Transport failed to deserialize "+String(c[b])))}c=S}else c=[];c=_.D(c);for(S=c.next();!S.done;S=c.next())XW(g,3,nb,S.value);c={startTime:(0,_.jg)(),ticks:{},infos:{}};
g=g.serialize();c.ticks.geljspc=(0,_.jg)();_.h("log_jspb_serialize_latency")&&lmy("gel_jspb_serialize",c,{sampleRate:.1});_.hwS(g,t,O,H,A,Z,B,C)}};
_.hwS=function(N,t,O,H,A,Z,U,C){H=H===void 0?{}:H;C=C===void 0?{value:0}:C;Z=DeM(Z);H=deQ(H,U,function(F){_.h("start_client_gcf")&&_.GB.addLowPriorityJob(function(){return _.K(function(g){return g.yield(FBy(F),0)})});
C.value--;C.value||O()},function(){C.value--;
C.value||O()},A);
H.headers["Content-Type"]="application/json+protobuf";H.postBodyFormat="JSPB";H.postBody=N;iOp(t,Z,"",H);A4Q=!1};
KB9=function(N){_.h("always_send_and_write")&&(N.writeThenSend=!1)};
deQ=function(N,t,O,H,A){N={retry:!0,onSuccess:O,onError:H,networklessOptions:N,dangerousLogToVisitorSession:t,bypassMonitoring:!!A,headers:{},postBodyFormat:"",postBody:"",compress:_.h("compress_gel")||_.h("compress_gel_lr")};$ey()&&(N.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.jg)())));return N};
Cjx=function(N,t,O){$ey()||(N.requestTimeMs=String(t));_.h("unsplit_gel_payloads_in_logs")&&(N.unsplitGelPayloadsInLogs=!0);!O&&(t=_.Ro("EVENT_ID"))&&(O=jMO(),N.serializedClientEventId={serializedEventId:t,clientCounter:String(O)})};
jMO=function(){var N=_.Ro("BATCH_CLIENT_COUNTER")||0;N||(N=Math.floor(Math.random()*65535/2));N++;N>65535&&(N=1);_.Gm("BATCH_CLIENT_COUNTER",N);return N};
Uev=function(N,t,O){if(O.videoId)var H="VIDEO";else if(O.playlistId)H="PLAYLIST";else return;N.credentialTransferTokenTargetId=O;N.context=N.context||{};N.context.user=N.context.user||{};N.context.user.credentialTransferTokens=[{token:t,scope:H}]};
TFt=function(N,t){var O=_.So("il_payload_scraping")==="enable_il_payload_scraping";if(!_.s2("yt.logging.transport.enableScrapingForTest"))if(O)M9M=[],_.Ba("yt.logging.transport.enableScrapingForTest",!0),_.Ba("yt.logging.transport.scrapedPayloadsForTesting",M9M),_.Ba("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Ba("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Ba("yt.logging.transport.scrapeClientEvent",!0);else return;O=_.s2("yt.logging.transport.scrapedPayloadsForTesting");var H=_.s2("yt.logging.transport.payloadToScrape");t&&(t=_.s2("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(t.payload)())&&O.push(t);t=_.s2("yt.logging.transport.scrapeClientEvent");if(H&&H.length>=1)for(var A=0;A<H.length;A++)if(N&&N.payload[H[A]])if(t)O.push(N.payload);else{var Z=void 0;O.push(((Z=N)==null?void 0:Z.payload)[H[A]])}_.Ba("yt.logging.transport.scrapedPayloadsForTesting",
O)};
$ey=function(){return _.h("use_request_time_ms_header")||_.h("lr_use_request_time_ms_header")};
Q_p=function(N,t){return _.h("transport_use_scheduler")===!1?_.pF(N,t):_.h("logging_avoid_blocking_during_navigation")||_.h("lr_logging_avoid_blocking_during_navigation")?_.WX(_.GB,function(){if(_.bEp().currentState==="none")N();else{var O={};_.bEp().install((O.none={callback:N},O))}},t):_.WX(_.GB,N,t)};
s_x=function(N){_.h("transport_use_scheduler")?_.GB.cancelJob(N):_.zp(N)};
FBy=function(N){var t,O,H,A,Z,U,C,F,g,B;return _.K(function(c){return c.nextAddress==1?(H=(t=N)==null?void 0:(O=t.responseContext)==null?void 0:O.globalConfigGroup,A=_.M(H,pHt),U=(Z=H)==null?void 0:Z.hotHashData,C=_.M(H,LBy),g=(F=H)==null?void 0:F.coldHashData,(B=_.cY().resolve(_.BY(ra)))?U?A?c.yield(zw9(B,U,A),2):c.yield(zw9(B,U),2):c.jumpTo(2):c.return()):g?C?c.yield(Yiv(B,g,C),0):c.yield(Yiv(B,g),0):c.jumpTo(0)})};
rdt=function(N,t){t=t===void 0?200:t;return N?t===300?t9O:aN4:t===300?OEt:Tq4};
Pby=function(N){if(_.h("enable_web_tiered_gel")){N=wHl[N||""];var t,O,H,A=_.cY().resolve(_.BY(ra))==null?void 0:(t=I0())==null?void 0:(O=t.loggingHotConfig)==null?void 0:(H=O.eventLoggingConfig)==null?void 0:H.payloadPolicies;if(A)for(t=0;t<A.length;t++)if(A[t].payloadNumber===N)return A[t]}};
eEz=function(N){N=Object.keys(N);N=_.D(N);for(var t=N.next();!t.done;t=N.next())if(t=t.value,wHl[t])return t};
XVp=function(N){switch(N){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
q4t=function(N){return N==="gelDebuggingEvent"};
DeM=function(N){return(N===void 0?0:N)&&_.h("vss_through_gel_video_stats")?"video_stats":"log_event"};
QN=function(N,t,O,H){H=H===void 0?{}:H;var A={},Z=Math.round(H.timestamp||(0,_.jg)());A.eventTimeMs=Z<Number.MAX_SAFE_INTEGER?Z:0;A[N]=t;N=_.jO();A.context={lastActivityMs:String(H.timestamp||!isFinite(N)?-1:N)};H.sequenceGroup&&!_.h("web_gel_sequence_info_killswitch")&&(N=A.context,t=H.sequenceGroup,t={index:ewN(t),groupKey:t},N.sequence=t,H.endOfSequence&&delete ld[H.sequenceGroup]);_.h("web_tag_automated_log_events")&&(A.context.automatedLogEventSource=H.automatedLogEventSource);(H.sendIsolatedPayload?
x2S:f5Q)({endpoint:"log_event",payload:A,cttAuthInfo:H.cttAuthInfo,dangerousLogToVisitorSession:H.dangerousLogToVisitorSession},O)};
ewN=function(N){ld[N]=N in ld?ld[N]+1:0;return ld[N]};
_.E7=function(N,t,O){O=O===void 0?{}:O;var H=mv;_.vZ("ytLoggingEventsDefaultDisabled",!1)&&mv===mv&&(H=null);QN(N,t,H,O)};
_.GW=function(){if(_.h("web_fp_via_jspb")){var N=!0;N=N===void 0?!1:N;var t=Pjy;Pjy=[];if(t){t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=O.value,N?QN(O.payloadName,O.payload,mv,O.options):_.E7(O.payloadName,O.payload,O.options)}I5x(void 0,!0);if(!_.h("web_fp_via_jspb_and_json"))return}I5x(void 0,!1)};
XHS=function(N,t){var O;if((O=t)==null?0:O.componentStack)return t;if(N=N.componentStack)t||(t={}),t.componentStack=N;return t};
xet=function(){_.Z9(_.Ro("ERRORS")||[],function(N){_.R0.apply(null,N)});
_.Gm("ERRORS",[])};
_.vX=function(N){_.R0(N)};
_.J_=function(N){_.R0(N,"WARNING")};
kIN=function(N){N instanceof Error?_.R0(N):(N=_.mG(N)?JSON.stringify(N):String(N),N=new _.fF(N),N.name="RejectedPromiseError",_.J_(N))};
qiQ=function(N,t,O,H,A,Z){t=t===void 0?"Unknown file":t;O=O===void 0?0:O;var U=!1,C=XCG("log_window_onerror_fraction");if(C&&Math.random()<C)U=!0;else{C=document.getElementsByTagName("script");for(var F=0,g=C.length;F<g;F++)if(C[F].src.indexOf("/debug-")>0){U=!0;break}}U&&(U=!1,A?U=!0:(typeof N==="string"?C=N:ErrorEvent&&N instanceof ErrorEvent?(U=!0,C=N.message,t=N.filename,O=N.lineno,H=N.colno):(C="Unknown error",t="Unknown file",O=0),A=new _.fF(C),A.name="UnhandledWindowError",A.message=C,A.fileName=
t,A.lineNumber=O,isNaN(H)?delete A.columnNumber:A.columnNumber=H),_.h("wiz_enable_component_stack_propagation_killswitch")||(Z=XHS(A,Z)),Z&&_.o0(A,Z),U?_.R0(A):_.J_(A))};
_.R0=function(N,t,O,H,A,Z,U,C){Z=Z===void 0?{}:Z;Z.name=O||_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME",1);Z.version=H||_.Ro("INNERTUBE_CONTEXT_CLIENT_VERSION");O=Z;t=t===void 0?"ERROR":t;U=U===void 0?!1:U;t=t===void 0?"ERROR":t;U=U===void 0?!1:U;if(N&&(N.hasOwnProperty("level")&&N.level&&(t=N.level),_.h("console_log_js_exceptions")&&(H=[],H.push("Name: "+N.name),H.push("Message: "+N.message),N.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(N.params)),N.hasOwnProperty("args")&&H.push("Error args: "+
JSON.stringify(N.args)),H.push("File name: "+N.fileName),H.push("Stacktrace: "+N.stack),H=H.join("\n"),window.console.log(H,N)),!(fNx>=5))){H=[];A=_.D(nVt);for(Z=A.next();!Z.done;Z=A.next()){Z=Z.value;try{Z()&&H.push(Z())}catch(w){}}H=[].concat(_.W6(WBv),_.W6(H));var F=r4x(N);A=F.message||"Unknown Error";Z=F.name||"UnknownError";var g=F.stack||N.stacktrace||"Not available";if(g.startsWith(Z+": "+A)){var B=g.split("\n");B.shift();g=B.join("\n")}B=F.lineNumber||"Not available";F=F.fileName||"Not available";
var c=0;if(N.hasOwnProperty("args")&&N.args&&N.args.length)for(var u=0;u<N.args.length&&!(c=wcl(N.args[u],"params."+u,O,c),c>=500);u++);else if(N.hasOwnProperty("params")&&N.params){var S=N.params;if(typeof N.params==="object")for(u in S){if(S[u]){var b="params."+u,z=eo(S[u]);O[b]=z;c+=b.length+z.length;if(c>500)break}}else O.params=eo(S)}if(H.length)for(u=0;u<H.length&&!(c=wcl(H[u],"params.context."+u,O,c),c>=500);u++);navigator.vendor&&!O.hasOwnProperty("vendor")&&(O["device.vendor"]=navigator.vendor);
u={message:A,name:Z,lineNumber:B,fileName:F,stack:g,params:O,sampleWeight:1};O=Number(N.columnNumber);isNaN(O)||(u.lineNumber=u.lineNumber+":"+O);if(N.level==="IGNORED")N=0;else a:{N=ING();O=_.D(N.messageWeights);for(H=O.next();!H.done;H=O.next())if(H=H.value,u.message&&u.message.match(H.messageRegExp)){N=H.weight;break a}N=_.D(N.callbackWeights);for(O=N.next();!O.done;O=N.next())if(O=O.value,O.callback(u)){N=O.weight;break a}N=1}u.sampleWeight=N;N=_.D(lNQ);for(O=N.next();!O.done;O=N.next())if(O=
O.value,O.patternsForType[u.name])for(A=_.D(O.patternsForType[u.name]),H=A.next();!H.done;H=A.next())if(Z=H.value,H=u.message.match(Z.regexp)){u.params["params.error.original"]=H[0];A=Z.groups;Z={};for(B=0;B<A.length;B++)Z[A[B]]=H[B+1],u.params["params.error."+A[B]]=H[B+1];u.message=O.messageFn(Z);break}u.params||(u.params={});N=ING();u.params["params.errorServiceSignature"]="msg="+N.messageWeights.length+"&cb="+N.callbackWeights.length;u.params["params.serviceWorker"]="false";_.H4.document&&_.H4.document.querySelectorAll&&
(u.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new s7(QMy,"sample")).constructor!==s7&&(u.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(u);if(u.sampleWeight!==0&&!mey.has(u.message)){if(U&&_.h("web_enable_error_204"))EVM(t===void 0?"ERROR":t,u);else{t=t===void 0?"ERROR":t;t==="ERROR"?(N1.publish("handleError",u),_.h("record_app_crashed_web")&&GIl===0&&u.sampleWeight===1&&(GIl++,U={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.h("report_client_error_with_app_crash_ks")||(U.systemHealth={crashData:{clientError:{logMessage:{message:u.message}}}}),_.E7("appCrashed",U)),Rwz++):t==="WARNING"&&N1.publish("handleWarning",u);if(_.h("kevlar_gel_error_routing")){U=t;C=C===void 0?{}:C;b:{N=_.D(vVx);for(O=N.next();!O.done;O=N.next())if(oD(O.value.toLowerCase())){N=!0;break b}N=!1}if(N)C=void 0;else{O={stackTrace:u.stack};u.fileName&&(O.filename=u.fileName);N=u.lineNumber&&u.lineNumber.split?u.lineNumber.split(":"):[];N.length!==
0&&(N.length!==1||isNaN(Number(N[0]))?N.length!==2||isNaN(Number(N[0]))||isNaN(Number(N[1]))||(O.lineNumber=Number(N[0]),O.columnNumber=Number(N[1])):O.lineNumber=Number(N[0]));N={level:"ERROR_LEVEL_UNKNOWN",message:u.message,errorClassName:u.name,sampleWeight:u.sampleWeight};U==="ERROR"?N.level="ERROR_LEVEL_ERROR":U==="WARNING"&&(N.level="ERROR_LEVEL_WARNNING");O={isObfuscated:!0,browserStackInfo:O};C.pageUrl=window.location.href;C.kvPairs=[];_.Ro("FEXP_EXPERIMENTS")&&(C.experimentIds=_.Ro("FEXP_EXPERIMENTS"));
H=_.Ro("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!XCG("web_disable_gel_stp_ecatcher_killswitch")&&H)for(A=_.D(Object.keys(H)),Z=A.next();!Z.done;Z=A.next())Z=Z.value,C.kvPairs.push({key:Z,value:String(H[Z])});if(H=u.params)for(A=_.D(Object.keys(H)),Z=A.next();!Z.done;Z=A.next())Z=Z.value,C.kvPairs.push({key:"client."+Z,value:String(H[Z])});H=_.Ro("SERVER_NAME");A=_.Ro("SERVER_VERSION");H&&A&&(C.kvPairs.push({key:"server.name",value:H}),C.kvPairs.push({key:"server.version",value:A}));C={errorMetadata:C,
stackTrace:O,logMessage:N}}C&&(_.E7("clientError",C),(U==="ERROR"||_.h("errors_flush_gel_always_killswitch"))&&_.GW())}_.h("suppress_error_204_logging")||EVM(t,u)}try{mey.add(u.message)}catch(w){}fNx++}}};
EVM=function(N,t){var O=t.params||{};N={urlParams:{a:"logerror",t:"jserror",type:t.name,msg:t.message.substr(0,250),line:t.lineNumber,level:N,"client.name":O.name},postParams:{url:_.Ro("PAGE_NAME",window.location.href),file:t.fileName},method:"POST"};O.version&&(N["client.version"]=O.version);if(N.postParams){t.stack&&(N.postParams.stack=t.stack);t=_.D(Object.keys(O));for(var H=t.next();!H.done;H=t.next())H=H.value,N.postParams["client."+H]=O[H];if(O=_.Ro("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(t=
_.D(Object.keys(O)),H=t.next();!H.done;H=t.next())H=H.value,N.postParams[H]=O[H];(O=_.Ro("LAVA_VERSION"))&&(N.postParams["lava.version"]=O);O=_.Ro("SERVER_NAME");t=_.Ro("SERVER_VERSION");O&&t&&(N.postParams["server.name"]=O,N.postParams["server.version"]=t)}_.aD(_.Ro("ECATCHER_REPORT_HOST","")+"/error_204",N)};
_.J4t=function(N,t){t=t===void 0?"ERROR":t;var O=O===void 0?{}:O;var H=_.s2("ytbin.polymer.shared.lib.tampering.info");H&&(H=H())&&(O["params.tamperingInfo"]=H.sort().join(","));_.R0(N,t,void 0,void 0,!0,O)};
_.o0=function(N){var t=_.E1.apply(1,arguments);N.args||(N.args=[]);Array.isArray(N.args)&&N.args.push.apply(N.args,_.W6(t))};
oVx=function(N){N.level="IGNORED"};
sMx=function(N,t){WBv.push(N);t();WBv.pop()};
Oh=function(N,t){for(var O in t)t.hasOwnProperty(O)&&(N=_.ty(N,O,t[O]));return N};
_.NZg=function(N,t,O){O=O===void 0?!1:O;if(!N)return null;if(N.adInfoDialogEndpoint||N.backstageImageUploadEndpoint||N.confirmDialogEndpoint||N.clientActionEndpoint||N.createBackstagePostDialogEndpoint||N.createCommentReplyDialogEndpoint||N.flowEndpoint||N.guideBuilderEndpoint||N.liveChatDialogEndpoint||N.modalEndpoint||N.openPopupAction||N.shareEndpoint||N.shareEntityEndpoint||N.showLiveChatItemEndpoint||N.subscriptionManagerEndpoint||N.unlimitedCreateFamilyEndpoint||N.unlimitedFamilyFlowEndpoint||
N.updateCommentDialogEndpoint||N.updateCommentReplyDialogEndpoint||N.userFeedbackEndpoint||N.videoEditorEndpoint||N.ypcCancelSurveyEndpoint)return t=_.uP("polymer_report_client_url_requested_rate"),!O&&Math.random()<t&&_.J_(new _.fF("urlForEndpoint used on client endpoint",N)),null;var H=_.uP("polymer_report_missing_web_navigation_endpoint_rate");if(N.liveChatEndpoint||N.liveChatReplayEndpoint)H=0;if(!N.commandMetadata&&!N.clickTrackingParams&&Math.random()<H){var A={},Z;for(Z in N)A[Z]="1";_.J_(new _.fF("Missing navigation data",
A))}A="";if(N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.url)A=N.commandMetadata.webCommandMetadata.url;else if(N.searchEndpoint)Math.random()<H&&_.J_(new _.fF("Should not manually handle search",N)),A="/results?search_query="+encodeURIComponent(N.searchEndpoint.query).replace(/%20/g,"+"),N.searchEndpoint.params&&(A+="&sp="+N.searchEndpoint.params);else if(N.watchEndpoint)Math.random()<H&&_.J_(new _.fF("Should not manually handle watch",N)),A="/watch?v="+
N.watchEndpoint.videoId,N.watchEndpoint.playlistId&&(A+="&list="+N.watchEndpoint.playlistId),N.watchEndpoint.index&&(A+="&index="+N.watchEndpoint.index),N.watchEndpoint.startTimeSeconds&&(A+="&t="+N.watchEndpoint.startTimeSeconds);else if(N.browseEndpoint)H=N.browseEndpoint.browseId,(Z=N.browseEndpoint.canonicalBaseUrl)?A=Z:H&&(A=H.substr(0,2),A=A==="FE"?H==="FEwhat_to_watch"?"/":H==="FEmy_videos"?"/my_videos":"/feed/"+H.substr(2):A==="VL"?"/playlist?list="+H.substr(2):"/channel/"+H),A&&N.browseEndpoint.query&&
(A=Oh(A+"/search",{query:N.browseEndpoint.query})),A&&N.browseEndpoint.params&&(A=Oh(A,{params:N.browseEndpoint.params}));else{if(N.urlEndpoint)return N.urlEndpoint.url;N.signInEndpoint?(A="https://accounts.google.com/ServiceLogin",H={},_.WW.extend(H,t||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),t=H):N.uploadEndpoint?A="//www.youtube.com/upload":N.liveChatEndpoint?(A=N.liveChatEndpoint,H=_.WW.clone(A),_.mG(A.continuation)&&(Z=Object.keys(A.continuation)[0],
H.continuation=A.continuation[Z].continuation),A=Oh("/youtubei/v1/live_chat/get_live_chat",H)):N.liveChatReplayEndpoint?(A=_.WW.clone(N.liveChatReplayEndpoint),A.currentPlayerState&&(_.WW.extend(A,A.currentPlayerState),delete A.currentPlayerState),A=Oh("/youtubei/v1/live_chat/get_live_chat_replay",A)):N.liveChatItemContextMenuEndpoint?A=Oh("/youtubei/v1/live_chat/get_item_context_menu",N.liveChatItemContextMenuEndpoint):N.liveChatPurchaseMessageEndpoint?A=Oh("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
N.liveChatPurchaseMessageEndpoint):N.openSuperStickerBuyFlowCommand?A=Oh("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",N.openSuperStickerBuyFlowCommand):N.videoEditEndpoint?A=Oh("/edit",{video_id:N.videoEditEndpoint.videoId}):N.liveDashboardEndpoint?A=N.liveDashboardEndpoint.videoId?Oh("/live_dashboard",{v:N.liveDashboardEndpoint.videoId}):"/live_dashboard":N.signalNavigationEndpoint&&N.signalNavigationEndpoint.signal&&N.signalNavigationEndpoint.signal==="WEBCAM"?A="/webcam":N.getPdgBuyFlowCommand&&
(A=Oh(N.getPdgBuyFlowCommand.buyflowApiPath,{params:N.getPdgBuyFlowCommand.params}))}return A||O?Oh(A,t||{}):(_.J_(new _.fF("Error: Can't construct url for endpoint","keys:"+Object.keys(N).sort().join(","),N)),null)};
tpM=function(N){if(N){if(N.browseEndpoint)return!!N.browseEndpoint.nofollow;if(N.watchEndpoint)return!!N.watchEndpoint.nofollow;if(N.urlEndpoint)return!!N.urlEndpoint.nofollow}return!1};
_.Hxt=function(N,t){var O=t+N,H=OxM.get(O);if(H)return H;N=t+"-"+N.replace(/([A-Z])/g,"-$1").toLowerCase();OxM.set(O,N);return N};
A5Q=function(N){var t=_.mD(N,"action")||_.mD(N,"command")||_.mD(N,"endpoint");if(!t)return null;t=_.Hxt(t,"yt");_.M(N,_.Hd)&&(t+="-"+_.M(N,_.Hd).signal.toLowerCase().replace(/_/g,"-"));return t};
UUM=function(N){try{var t=Object.keys(N)}catch(A){return[]}for(var O=0;O<t.length;O++){var H=t[O];if(Zxv.test(H)||Vpl.test(H))return DUg(N[H])}return[]};
DUg=function(N){return N.command?[N.command]:N.onExecutionAction?[N.onExecutionAction]:N.onResponseReceivedCommand?[N.onResponseReceivedCommand]:N.updateFlowCommand?[N.updateFlowCommand]:N.clientActions?N.clientActions:N.action?[N.action]:N.actions||N.commands||N.onResponseReceivedActions||N.onResponseReceivedCommands||N.onResponseReceivedEndpoints||[]};
KbS=function(N,t){t=t===void 0?!1:t;var O=_.cY().resolve(_.BY(Ay));O||(O=new CF4,_.cY().addProvider({provide:Ay,useValue:O}));return O&&N&&!_.WW.isEmpty(N)?O.getUrl(N,t):""};
FbM=function(N,t,O){O=O===void 0?"":O;if(t){N.data=t;var H=KbS(t);H?(Rd(N,H),tpM(t)||!gE(H)?N.rel="nofollow":N.removeAttribute("rel"),_.M(t,_.Z3)&&_.M(t,_.Z3).target==="TARGET_NEW_WINDOW"?N.target="_blank":O?N.target=O:N.removeAttribute("target")):(N.removeAttribute("href"),N.removeAttribute("rel"),N.removeAttribute("target"))}};
_.K9=function(N,t){var O=UH;if(Po())dUt(N,function(){var Z=_.E1.apply(0,arguments);mP(O,function(){t.apply(null,_.W6(Z))})});
else{var H=_.VM.getInstance(),A=PON(t);bvv(function(){A.value=t});
_.Q8(function(){var Z={},U=_.Uh(H,(Z[N]=function(){var C=_.E1.apply(0,arguments);mP(O,function(){A.value.apply(A,_.W6(C))})},Z));
return function(){var C={};_.C9(H,(C[N]="",C),U)}})}};
_.Fy=function(N,t){return gSS(N,!1,t)};
_.yM=function(N,t){return gSS(N,!0,t)};
gSS=function(N,t,O){return Po()?y5N(N,t,O):BZO(N,t,O)};
BZO=function(N,t,O){return wCg(function(){return y5N(N,t,O)},[])};
y5N=function(N,t,O){var H=uUz(function(A){H.value=A;var Z=function(){var U=co(null);try{return O==null?void 0:O(A)}finally{co(U)}}();
return function(){Z==null||Z()}});
H.__expectedTagName=N;H.__optional=t;H.isIdom=!Po();return H};
c54=function(N){var t=UH,O=wp;return{getFn:function(){return function(H){if(!t.isDisposed){var A=function(){return N(H)};
xM(function(){return _.MY(A)},O)!==!0&&H.stopPropagation()}}}}};
$U9=function(N){if(typeof N.children==="function")return N.children(),null;N=_.D(N.children);for(var t=N.next();!t.done;t=N.next())t=t.value,t();return null};
j8x=function(N){var t;return((t=N.prototype)==null?void 0:t.render)===void 0};
ixt=function(N){var t=Array.isArray(N.items)?N.items:Array.from(N.items);N=N.children;return(Array.isArray(t)?t:Array.from(t)).map(N)};
SMG=function(N,t,O){O=O===void 0?!1:O;xM(function(){return uFx(N,t,O)})};
uFx=function(N,t,O){var H=null;qY++;O=(O===void 0?0:O)?hPv:Mpl;try{H=O(N,function(){Bd(t)}),nt(!1)}catch(A){throw nt(!0),A;
}return H===null?N:H};
Bd=function(N){if(N!==void 0&&N!==null)if(N instanceof Tm)for(var t=tO;O2()!=null&&AHG in O2()&&t.contains(O2());)Zt();else if(Array.isArray(N))for(t=_.D(N),N=t.next();!N.done;N=t.next())Bd(N.value);else if(N instanceof TN||N instanceof dG||"function"==typeof _.du&&N instanceof _.du)H0g(N.toString());else if(_.$l(N)){if(O2()!==N){var O,H;t=(H=(O=wp)==null?void 0:O.name)!=null?H:"unknown";throw Error("hc`"+N.tagName+"`"+t);}Zt()}else if(N!=null&&N.contentKind===MC||N instanceof vl||jnt(N))for(t=ud4(N),
t=Array.from(t.childNodes),t=_.D(t),N=t.next();!N.done;N=t.next())tO.appendChild(N.value),Zt();else if(qm(N)&&(N=N.toString()),O=typeof N,O==="boolean"||O==="number"||O==="string")H0g(N);else if(typeof N==="function"){t=tO;var A=O2();A&&(A._isSignalTextNode||A._isSafeOrSanitizedHtmlNode)||GZQ(t,A,N);Zt()}else if(N.type===ixt)Bd(N.type(Object.assign({},N.props,{children:N.children[0]})));else{if(typeof N.type==="string"){a:{N.__open||Rcg(N.type,N.props.idomKey);A=tO;for(t in N.props)if(N.props[t]!==
bxG){var Z=N.props[t];O=U2;O.push(t);O.push(Z)}t=gp.attributes;t=t===void 0?cd:t;Z=tO;O=NC(Z);O0g(Z,O,t);EIS(A,N.props,!0);if((N.props.skip||N.props.skipchildren)&&tO.hasChildNodes())AO=tO.lastChild;else{if(N.type==="style"&&Y8x(N.children)===null){AO=tO.lastChild;t=void 0;break a}Bd(N.children)}v6G();N.__open&&(N.__open=!1);FFz(A,N.props);t=A}return t}if(N.type===_.BZ)Bd(N.children);else if(!pzO(N)){t=N;try{LbS(t)}catch(U){N=U,(Z=gp.handleError)==null||Z.call.apply(Z,[gp].concat(_.W6(EH(N,(A=t.type)==
null?void 0:A.TAG_NAME))))}t.__open&&(v6G(),t.__open=!1)}}};
zPy=function(N,t){var O;j8x(N)?O=new xl(t,N):O=new N(t);O.__type=N;O.__updateContext={nextState:O.state,isForced:!1};return O};
LbS=function(N){var t=N.type,O=t.TAG_NAME;if(t===$U9)N.props.children=N.children,t(N.props);else{N.children.length>0&&(N.props.children=N.children);var H;(H=N.props).idomKey||(H.idomKey=t);if(O){var A=Rcg(O,N.props.idomKey);N.__open=!0;var Z=A.__instance}Z||(Z=zPy(t,N.props),Z.props=null,A&&(A.__instance=Z,Z.el=A));var U;O=((U=Z.__updateContext)!=null?U:{nextState:Z.state,isForced:!1}).nextState;Z.__updateContext=void 0;t.getDerivedStateFromProps&&(O=t.getDerivedStateFromProps(N.props,O));Z.props=
N.props;Z.state=O;U=function(){var C=Z;PZ.beforeRender(C);var F=C.render(C.props);F?(C.props.idomKey&&(F.props.idomKey=C.props.idomKey),C=F):C=void 0;if(F=C)if(F.__open=N.__open,C=Bd(F),N.__open=F.__open,!t.TAG_NAME)if(C)t.TAG_NAME=C.tagName.toLowerCase(),C.__instance=Z,Z.el=C;else{var g;if((g=Z.hooks)==null?0:g.length){var B;(B=gp.handleError)==null||B.call.apply(B,[gp].concat(_.W6(EH(Error("od")))))}}Z.didPatch();PZ.didPatch(Z)};
(O=Z.functionComponent)?TaQ(O,U,Z.props.debugInstance):U()}};
pzO=function(N){var t=N.type;if(!j8x(t)||t===$U9||t.componentType===eG)return!1;N.props.children=N.children.length>1?N.children:N.children[0];var O,H=(O=N.props.idomKey)!=null?O:N.type,A;if(O2()&&((A=O2()[LL])==null?void 0:A.key)===H){var Z=O2(),U=Z[LL];if(!U)throw Error("gc`"+Z.tagName);var C;(C=U.updateSignalsFromIdomProps)==null||C.call(U,N.props);YMQ(U);return!0}if(aES.has(t.name))throw C=t.name,t=(U=(Z=wp)==null?void 0:Z.name)!=null?U:"unknown",Error("fc`"+C+"`"+t);oIQ(N.type,N.props,N.children);
N.props.renderedFromIdom=!0;(C=TaQ(N.type,function(){return rvO(N.type,N.props)},N.props.debugInstance))&&TZv(C);
return!0};
wzt=function(N){for(var t=0;t<ao(N).length;t++)Zt()};
YMQ=function(N){var t=ePz();if(t)wzt(t);else for(var O=0;O<N.numNodes;O++)(t=ePz())?wzt(t):Zt()};
ePz=function(){var N;return(N=O2()[LL])==null?void 0:N.sourceDynamicRange};
TZv=function(N){N=yvG(N);N=Array.isArray(N)?N:[N];N=_.D(N);for(var t=N.next();!t.done;t=N.next())tO.insertBefore(t.value,O2()),Zt()};
PFO=function(){var N=l0O(),t=wCg(function(){return{value:0}},[]);
return[t.value,function(O){if(XN!==null){var H;(H=gp.handleError)==null||H.call.apply(H,[gp].concat(_.W6(EH(Error("pd")))))}t.value=typeof O==="function"?O(t.value):O;N.__updateContext={nextState:N.state,isForced:!0};O=_.Ct(N.effectContext);H=cZ(!1);try{if(N.el){var A,Z={},U=(Z.props=N.props,Z.type=N.__type,Z.children=(A=N.props.children)!=null?A:[],Z[y8]=!0,Z);try{SMG(N.el,U,!0)}catch(g){var C,F;(F=gp.handleError)==null||F.call.apply(F,[gp].concat(_.W6(EH(g,(C=N.__type)==null?void 0:C.TAG_NAME))))}}}finally{cZ(H),
_.Ct(O)}}]};
_.$6=function(N,t){var O=UH,H=function(A){mP(O,function(){t(A)})};
window.addEventListener(N,H,void 0);_.Ia(function(){window.removeEventListener(N,H,void 0)})};
_.iU=function(N){var t=UH;return function(O){var H,A=(H=N.observer)!=null?H:_.cY().resolve(j4);H=XzO(O);var Z=[];N.showOption&&Z.push(A.observe(O,function(){mP(t,function(){N.visibilityCallback(!0,O)})},N.showOption));
N.hideOption&&Z.push(A.observe(O,function(){mP(t,function(){N.visibilityCallback(!1,O)})},N.hideOption));
N.prescanOption&&N.prescanCallback&&Z.push(A.observe(O,function(){mP(t,function(){N.prescanCallback()})},N.prescanOption));
var U;H.visibilityMonitorKeys=((U=H.visibilityMonitorKeys)!=null?U:[]).concat(Z)}};
XzO=function(N){var t;return(t=N.polymerController)!=null?t:N};
fEG=function(N,t){var O=xUv;return _.d(_.BZ,null,BrO(gp.enableLazyTsx,function(){return _.d(kEg,{id:O,value:N,children:t})},function(){var H=qM9(O,N);
dp(H);H=_.Ct(H);try{return t()}finally{_.Ct(H)}}))};
kEg=function(N){var t=N.children;N=qM9(N.id,N.value);dp(N);N=_.Ct(N);try{return _.d(_.BZ,null,wu(t()))}finally{_.Ct(N)}};
qM9=function(N,t){return Object.assign(Object.create(nSt),{id:N,contextValue:t})};
Wb9=function(N){var t,O=UH;_.Wo(function(){var H=_.Ct(O),A=cZ(!t);try{if(t)SMG(t,N.children(),!0);else if(t=wu(N.children()),!(t instanceof Element))throw Error("qd");}finally{cZ(A),_.Ct(H)}},"g");
return t};
_.r5Q=function(N,t){var O;t=l$(function(){var H=cZ(!0);qY++;try{O=ao(N()),nt(!1)}catch(A){throw nt(!0),A;}finally{cZ(H)}},t===void 0?!1:t);
return[O,t]};
lEM=function(N){var t=new IE9;t.abort(N);return t.signal};
Q8Q=function(){if(this.aborted){var N;throw(N=this.reason)!=null?N:new DOMException("signal is aborted without reason","AbortError");}};
GEx=function(N){var t=new IE9;N=_.D(N);for(var O=N.next();!O.done;O=N.next())if(O=O.value,O.aborted){t.abort(O.reason);break}else mUS.set(t.signal,t),ESv.add(O,t.signal);return t.signal};
RPg=function(){for(var N=_.D(ESv.get(this)),t=N.next();!t.done;t=N.next())mUS.get(t.value).abort(this.reason)};
vSN=function(N){var t=new IE9;setTimeout(function(){t.abort(new DOMException("signal timed out","TimeoutError"))},N);
return t.signal};
J5M=function(){var N,t;return{promise:new Promise(function(O,H){N=O;t=H}),
resolve:N,reject:t}};
s8t=function(N){var t=J5M(),O=t.promise;oSO.set(N,{promise:O,resolve:t.resolve,reject:t.reject});uU||(uU=[],queueMicrotask(function(){var H=[].concat(_.W6(uU));uU=null;var A=lu().loadMultiple(H);H=_.D(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,A[Z].then(oSO.get(Z).resolve,oSO.get(Z).reject)}));
uU.push(N);return O};
tqN=function(N){N=N.buf.charCodeAt(N.pos++);return Nvp[N]};
S4=function(N){var t=0,O=0;do{var H=tqN(N);t|=(H&31)<<O;O+=5}while(H&32);return t<0?t+4294967296:t};
HiS=function(N,t,O,H){var A=!0;A=A===void 0?!1:A;t=t===void 0?!1:t;H=H===void 0?{}:H;var Z=H.cssRowKey||"",U=H.combinedSignature||"";!Z&&window&&window._F_cssRowKey&&(Z=window._F_cssRowKey,!U&&window._F_combinedSignature&&(U=window._F_combinedSignature));if(Z&&typeof window._F_installCss!=="function")throw Error("Ad");var C=H.loaderClass||_.hy;N=xVg(N===void 0?"base-js":N);t=new C(u1t(qvl("",N)),Z,U,A,t);A=H.useCors||N&&N.hasAttribute("crossorigin");N=H.corsMode||N&&N.getAttribute("crossorigin");
A&&(t.useCors_=A);N&&(t.corsMode_=N);H.urlMaxLength&&(t.urlMaxLength=H.urlMaxLength);O&&(t.insertPos=O);H.fetchPriority&&(t.fetchPriority=H.fetchPriority);var F=lu();F.JSC$10209_loader_=t;F.setBatchModeEnabled(!0);_.OiQ=H.batchingStrategy==="BATCH"?s8t:function(g){return Promise.resolve(F.load(g))}};
Vq9=function(N,t,O){Aqp(N,t);N[t][ZiQ].unshift(O)};
Aqp=function(N,t){if(!N[t]||!N[t][ZiQ]){var O=N[t],H=O?[O]:[];N[t]=function(){for(var A=_.D(H),Z=A.next();!Z.done;Z=A.next())Z.value.apply(this,arguments)};
N[t][ZiQ]=H}};
DuO=function(N){if(!N)return[];var t=[];N=_.D(N);for(var O=N.next();!O.done;O=N.next())O=O.value,Array.isArray(O)?t.push.apply(t,_.W6(DuO(O))):t.push(O);return t};
_.bU=function(N,t){if(N&&UuO.test(N)||N==="//")return N;if(Cey===void 0){Cey=!1;try{var O=new URL("b","http://a");O.pathname="c%20d";Cey=O.href==="http://a/c%20d"}catch(H){}}t||(t=document.baseURI||window.location.href);if(Cey)try{return(new URL(N,t)).href}catch(H){return N}M1||(M1=document.implementation.createHTMLDocument("temp"),M1.base=M1.createElement("base"),M1.head.appendChild(M1.base),M1.anchor=M1.createElement("a"),M1.body.appendChild(M1.anchor));M1.base.href=t;M1.anchor.href=N;return M1.anchor.href||
N};
Fhz=function(N,t){return N.replace(Khx,function(O,H,A,Z){return H+"'"+_.bU(A.replace(/["']/g,""),t)+"'"+Z})};
duQ=function(N){return N.substring(0,N.lastIndexOf("/")+1)};
BvN=function(){ggp=!1;for(var N=p9.length,t=0;t<N;t++){var O=p9[t];if(O)try{O()}catch(H){setTimeout(function(){throw H;})}}p9.splice(0,N);
yqp+=N};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(N){console.log("["+N.is+"]: registered")};
$uO=function(N){cqQ.push(N)};
L9=function(N){return jEN[N]||(jEN[N]=N.indexOf("-")<0?N:N.replace(iiQ,function(t){return t[1].toUpperCase()}))};
zC=function(N){return jEN[N]||(jEN[N]=N.replace(u_N,"-$1").toLowerCase())};
S9M=function(N,t){var O=t.parentInfo&&S9M(N,t.parentInfo);if(O)for(N=O.firstChild,O=0;N;N=N.nextSibling){if(t.parentIndex===O++)return N}else return N};
hIQ=function(N,t){N=N._methodHost||N;return function(O){if(N[t])N[t](O,O.detail);else console.warn("listener method `"+t+"` not defined")}};
Y6=function(N){return N.indexOf(".")>=0};
ab=function(N){var t=N.indexOf(".");return t===-1?N:N.slice(0,t)};
Mq9=function(N,t){return N.indexOf(t+".")===0};
TC=function(N,t){return t.indexOf(N+".")===0};
w9=function(N,t,O){return t+O.slice(N.length)};
biy=function(N,t){return N===t||Mq9(N,t)||TC(N,t)};
e4=function(N){if(Array.isArray(N)){for(var t=[],O=0;O<N.length;O++)for(var H=N[O].toString().split("."),A=0;A<H.length;A++)t.push(H[A]);return t.join(".")}return N};
pyN=function(N){return Array.isArray(N)?e4(N).split("."):N.toString().split(".")};
Pd=function(N,t,O){t=pyN(t);for(var H=0;H<t.length;H++){if(!N)return;N=N[t[H]]}O&&(O.path=t.join("."));return N};
LhN=function(N,t,O){var H=pyN(t),A=H[H.length-1];if(H.length>1){for(t=0;t<H.length-1;t++)if(N=N[H[t]],!N)return;N[A]=O}else N[t]=O;return H.join(".")};
zIz=function(N,t,O){var H=N[t];if(!H)H=N[t]={};else if(!N.hasOwnProperty(t)&&(H=N[t]=Object.create(N[t]),O))for(var A in H)for(N=H[A],t=H[A]=Array(N.length),O=0;O<N.length;O++)t[O]=N[O];return H};
x6=function(N,t,O,H,A,Z){if(t){var U=!1,C=Xy++,F;for(F in O){var g=A?ab(F):F;if(g=t[g])for(var B=0,c=g.length,u=void 0;B<c&&(u=g[B]);B++)u.info&&u.info.lastRun===C||A&&!Y9G(F,u.trigger)||(u.info&&(u.info.lastRun=C),u.fn(N,F,O,H,u.info,A,Z),U=!0)}return U}return!1};
Y9G=function(N,t){if(t){var O=t.name;return O==N||!(!t.structured||!Mq9(O,N))||!(!t.wildcard||!TC(O,N))}return!0};
a_v=function(N,t,O,H,A){t=typeof A.method==="string"?N[A.method]:A.method;O=A.property;t?t.call(N,N.__data[O],H[O]):A.dynamicFn||console.warn("observer method `"+A.method+"` not defined")};
TvQ=function(N,t,O,H){O={value:O,queueProperty:!0};H&&(O.path=H);(0,_.k6)(N).dispatchEvent(new CustomEvent(t,{detail:O}))};
wyO=function(N,t,O,H,A,Z){Z=(H=(Z?ab(t):t)!=t?t:null)?Pd(N,H):N.__data[t];H&&Z===void 0&&(Z=O[t]);TvQ(N,A.eventName,Z,H)};
eIN=function(N,t,O,H,A){O=N.__data[t];q1&&(O=q1(O,A.attrName,"attribute",N));N._propertyToAttribute(t,A.attrName,O)};
Xyy=function(N){var t=N.constructor.__orderedComputedDeps;if(!t){t=new Map;for(var O=N.__computeEffects,H=Pe9(N),A=H.counts,Z=H.ready,U=H.total;H=Z.shift();)t.set(H,t.size),(H=O[H])&&H.forEach(function(C){C=C.info.methodInfo;--U;--A[C]===0&&Z.push(C)});
U!==0&&console.warn("Computed graph for "+N.localName+" incomplete; circular?");N.constructor.__orderedComputedDeps=t}return t};
Pe9=function(N){var t=N.__computeInfo,O={};N=N.__computeEffects;var H=[],A=0,Z;for(Z in t){var U=t[Z];A+=O[Z]=U.args.filter(function(F){return!F.literal}).length+(U.dynamicFn?1:0)}for(var C in N)t[C]||H.push(C);
return{counts:O,ready:H,total:A}};
knt=function(N,t,O,H,A){t=xuz(N,t,O,H,A);if(t===f9)return!1;A=A.methodInfo;if(N.__dataHasAccessor&&N.__dataHasAccessor[A])return N._setPendingProperty(A,t,!0);N[A]=t;return!1};
ngO=function(N,t,O,H,A,Z,U){O.bindings=O.bindings||[];H={kind:H,target:A,parts:Z,literal:U,isCompound:Z.length!==1};O.bindings.push(H);H.target&&H.kind!="attribute"&&H.kind!="text"&&!H.isCompound&&H.parts[0].mode==="{"&&(O=H.parts[0],Z=O.negate,H.listenerEvent=O.event||zC(A)+"-changed",H.listenerNegate=Z);A=t.nodeInfoList.length;for(O=0;O<H.parts.length;O++){var C=H.parts[O];C.compoundIndex=O;Z=N;U=t;var F=H,g=C,B=A;if(!g.literal)if(F.kind==="attribute"&&F.target[0]==="-")console.warn("Cannot set attribute "+
F.target+' because "-" is not a valid attribute starting character');else for(C=g.dependencies,F={index:B,binding:F,part:g,evaluator:Z},g=0;g<C.length;g++)B=C[g],typeof B=="string"&&(B=q9p(B),B.wildcard=!0),Z._addTemplatePropertyEffect(U,B.rootProperty,{fn:f_Q,info:F,trigger:B})}};
f_Q=function(N,t,O,H,A,Z,U){U=U[A.index];var C=A.binding,F=A.part;Z&&F.source&&t.length>F.source.length&&C.kind=="property"&&!C.isCompound&&U.__isPropertyEffectsClient&&U.__dataHasAccessor&&U.__dataHasAccessor[C.target]?(O=O[t],t=w9(F.source,C.target,t),U._setPendingPropertyOrPath(t,O,!1,!0)&&N._enqueueClient(U)):(t=A.evaluator._evaluateBinding(N,F,t,O,H,Z),t!==f9&&(C.isCompound&&(O=U.__dataCompoundStorage[C.target],O[F.compoundIndex]=t,t=O.join("")),C.kind==="attribute"||C.target!=="textContent"&&
(C.target!=="value"||U.localName!=="input"&&U.localName!=="textarea")||(t=t==void 0?"":t),F=t,q1&&(F=q1(F,C.target,C.kind,U)),C.kind=="attribute"?N._valueToNodeAttribute(U,F,C.target):(C=C.target,U.__isPropertyEffectsClient&&U.__dataHasAccessor&&U.__dataHasAccessor[C]?U.__readOnly&&U.__readOnly[C]||U._setPendingProperty(C,F)&&N._enqueueClient(U):N._setUnmanagedPropertyToNode(U,C,F))))};
Wh4=function(N,t,O){if(O.listenerEvent){var H=O.parts[0];N.addEventListener(O.listenerEvent,function(A){var Z=O.target,U=H.source,C=H.negate,F=A.detail,g=F&&F.path;g?(U=w9(Z,U,g),A=F&&F.value):A=A.currentTarget[Z];t.__readOnly&&t.__readOnly[U]||!t._setPendingPropertyOrPath(U,C?!A:A,!0,!!g)||F&&F.queueProperty||t._invalidateProperties()})}};
rq4=function(N,t,O,H,A,Z){Z=t.static||Z&&(typeof Z!=="object"||Z[t.methodName]);A={methodName:t.methodName,args:t.args,methodInfo:A,dynamicFn:Z};for(var U=0,C=void 0;U<t.args.length&&(C=t.args[U]);U++)C.literal||N._addPropertyEffect(C.rootProperty,O,{fn:H,info:A,trigger:C});Z&&N._addPropertyEffect(t.methodName,O,{fn:H,info:A});return A};
xuz=function(N,t,O,H,A){H=N._methodHost||N;var Z=H[A.methodName];if(Z)return N=N._marshalArgs(A.args,t,O),N===f9?f9:Z.apply(H,N);A.dynamicFn||console.warn("method `"+A.methodName+"` not defined")};
I_S=function(N){for(var t="",O=0;O<N.length;O++)t+=N[O].literal||"";return t};
mul=function(N){if(N=N.match(/([^\s]+?)\(([\s\S]*)\)/)){var t={methodName:N[1],static:!0,args:l_4};return N[2].trim()?QES(N[2].replace(/\\,/g,"&comma;").split(","),t):t}return null};
QES=function(N,t){t.args=N.map(function(O){O=q9p(O);O.literal||(t.static=!1);return O},this);
return t};
q9p=function(N){N=N.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var t={name:N,value:"",literal:!1},O=N[0];O==="-"&&(O=N[1]);O>="0"&&O<="9"&&(O="#");switch(O){case "'":case '"':t.value=N.slice(1,-1);t.literal=!0;break;case "#":t.value=Number(N),t.literal=!0}t.literal||(t.rootProperty=ab(N),t.structured=Y6(N),t.structured&&(t.wildcard=N.slice(-2)==".*",t.wildcard&&(t.name=N.slice(0,-2))));return t};
EgM=function(N,t,O){N=Pd(N,O);N===void 0&&(N=t[O]);return N};
GnS=function(N,t,O,H){H={indexSplices:H};n9&&!N._overrideLegacyUndefined&&(t.splices=H);N.notifyPath(O+".splices",H);N.notifyPath(O+".length",t.length);n9&&!N._overrideLegacyUndefined&&(H.indexSplices=[])};
Wd=function(N,t,O,H,A,Z){GnS(N,t,O,[{index:H,addedCount:A,removed:Z,object:t,type:"splice"}])};
RI9=function(N){N=Fhz((N.body?N.body:N).textContent,N.baseURI);var t=document.createElement("style");t.textContent=N;return t};
Jq4=function(N){N=N.trim().split(/\s+/);for(var t=[],O=0;O<N.length;O++)t.push.apply(t,_.W6(vgS(N[O])));return t};
vgS=function(N){var t=r9.import(N);if(!t)return console.warn("Could not find style data in module named",N),[];if(t._styles===void 0){N=[];N.push.apply(N,_.W6(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t)));var O=t.querySelector("template");O&&N.push.apply(N,_.W6(ogx(O,t.assetpath)));t._styles=N}return t._styles};
ogx=function(N,t){if(!N._styles){for(var O=[],H=N.content.querySelectorAll("style"),A=0;A<H.length;A++){var Z=H[A],U=Z.getAttribute("include");U&&O.push.apply(O,_.W6(Jq4(U).filter(function(C,F,g){return g.indexOf(C)===F})));
t&&(Z.textContent=Fhz(Z.textContent,t));O.push(Z)}N._styles=O}return N._styles};
sE4=function(N){return(N=r9.import(N))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(N):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(N){var t=[];N=N.querySelectorAll("link[rel=import][type~=css]");for(var O=0;O<N.length;O++){var H=N[O];if(H.import){var A=H.import;if((H=H.hasAttribute("shady-unscoped"))&&!A._unscopedStyle){var Z=RI9(A);Z.setAttribute("shady-unscoped","");A._unscopedStyle=Z}else A._style||(A._style=RI9(A));t.push(H?A._unscopedStyle:A._style)}}return t};
tSx=function(N){N=N.trim().split(/\s+/);for(var t="",O=0;O<N.length;O++)t+=NPx(N[O]);return t};
NPx=function(N){var t=r9.import(N);if(t&&t._cssText===void 0){var O=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t),H=t.querySelector("template");H&&(O+=OSS(H,t.assetpath));t._cssText=O||null}t||console.warn("Could not find style data in module named",N);return t&&t._cssText||""};
OSS=function(N,t){var O="";N=ogx(N,t);for(t=0;t<N.length;t++){var H=N[t];H.parentNode&&H.parentNode.removeChild(H);O+=H.textContent}return O};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(N){var t="";N=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(N);for(var O=0;O<N.length;O++)t+=N[O].textContent;return t};
Ib=function(N,t){return{index:N,removed:[],addedCount:t}};
Al4=function(N,t,O,H){var A=0,Z=0,U=0,C=0,F=Math.min(t-A,H-Z);if(A==0&&Z==0)a:{for(U=0;U<F;U++)if(N[U]!==O[U])break a;U=F}if(t==N.length&&H==O.length){C=N.length;for(var g=O.length,B=0;B<F-U&&HSl(N[--C],O[--g]);)B++;C=B}A+=U;Z+=U;t-=C;H-=C;if(t-A==0&&H-Z==0)return[];if(A==t){for(t=Ib(A,0);Z<H;)t.removed.push(O[Z++]);return[t]}if(Z==H)return[Ib(A,t-A)];F=A;U=Z;H=H-U+1;C=t-F+1;t=Array(H);for(g=0;g<H;g++)t[g]=Array(C),t[g][0]=g;for(g=0;g<C;g++)t[0][g]=g;for(g=1;g<H;g++)for(B=1;B<C;B++)if(N[F+B-1]===
O[U+g-1])t[g][B]=t[g-1][B-1];else{var c=t[g-1][B]+1,u=t[g][B-1]+1;t[g][B]=c<u?c:u}F=t.length-1;U=t[0].length-1;H=t[F][U];for(N=[];F>0||U>0;)F==0?(N.push(2),U--):U==0?(N.push(3),F--):(C=t[F-1][U-1],g=t[F-1][U],B=t[F][U-1],c=g<B?g<C?g:C:B<C?B:C,c==C?(C==H?N.push(0):(N.push(1),H=C),F--,U--):c==g?(N.push(3),F--,H=g):(N.push(2),U--,H=B));N.reverse();t=void 0;F=[];for(U=0;U<N.length;U++)switch(N[U]){case 0:t&&(F.push(t),t=void 0);A++;Z++;break;case 1:t||(t=Ib(A,0));t.addedCount++;A++;t.removed.push(O[Z]);
Z++;break;case 2:t||(t=Ib(A,0));t.addedCount++;A++;break;case 3:t||(t=Ib(A,0)),t.removed.push(O[Z]),Z++}t&&F.push(t);return F};
ZSM=function(N,t){return Al4(N,N.length,t,t.length)};
HSl=function(N,t){return N===t};
D4g=function(N){if(N instanceof VSO)return N.value;throw Error("Id`"+N);};
U4Q=function(N,t){for(var O in t)O===null?N.style.removeProperty(O):N.style.setProperty(O,t[O])};
Clp=function(N,t){return(N=window.getComputedStyle(N).getPropertyValue(t))?N.trim():""};
gf4=function(N){requestAnimationFrame(function(){Kpg?Kpg(N):(FpO||(FpO=new Promise(function(t){d4O=t}),document.readyState==="complete"?d4O():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&d4O()})),FpO.then(function(){N&&N()}))})};
clv=function(N){ylg=N&&N.shimcssproperties?!1:BPG||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
SI4=function(N){if(!($4z.indexOf(N)>-1)&&N!=="touchend"&&jCO&&iSg&&uQO)return{passive:!0}};
p7x=function(N){for(var t=hNN?["click"]:$4z,O=0,H;O<t.length;O++)H=t[O],N?(MS9.length=0,document.addEventListener(H,bSG,!0)):document.removeEventListener(H,bSG,!0)};
lU=function(N){var t=N.type;return $4z.indexOf(t)>-1?t==="mousemove"?(t=N.buttons===void 0?1:N.buttons,N instanceof window.MouseEvent&&!Lpv&&(t=zNM[N.which]||0),!!(t&1)):(N.button===void 0?0:N.button)===0:!1};
YIp=function(N){if(N.type==="click"){if(N.detail===0)return!0;var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;t=t.getBoundingClientRect();var O=N.pageX;N=N.pageY;return!(O>=t.left&&O<=t.right&&N>=t.top&&N<=t.bottom)}return!1};
aZQ=function(N,t,O){N.movefn=t;N.upfn=O;document.addEventListener("mousemove",t);document.addEventListener("mouseup",O)};
QM=function(N){document.removeEventListener("mousemove",N.movefn);document.removeEventListener("mouseup",N.upfn);N.movefn=null;N.upfn=null};
TPy=function(N,t){for(var O=document.elementFromPoint(N,t),H=O;H&&H.shadowRoot&&!window.ShadyDOM;){var A=H;H=H.shadowRoot.elementFromPoint(N,t);if(A===H)break;H&&(O=H)}return O};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N){var t=w7t(N);return t.length>0?t[0]:N.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N){var t=N.type,O=N.currentTarget.__polymerGestures;if(O&&(O=O[t])){if(!N.__polymerGesturesHandled&&(N.__polymerGesturesHandled={},t.slice(0,5)==="touch")){var H=N.changedTouches[0];t==="touchstart"&&N.touches.length===1&&(eNN=H.identifier);if(eNN!==H.identifier)return;jCO||(t==="touchstart"||t==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N)}H=
N.__polymerGesturesHandled;if(!H.skip){for(var A=0,Z;A<mK.length;A++)Z=mK[A],O[Z.name]&&!H[Z.name]&&Z.flow&&Z.flow.start.indexOf(N.type)>-1&&Z.reset&&Z.reset();for(A=0;A<mK.length;A++)Z=mK[A],O[Z.name]&&!H[Z.name]&&(H[Z.name]=!0,Z[t](N))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N){var t=N.changedTouches[0],O=N.type;if(O==="touchstart")PlM=t.clientX,X7G=t.clientY,x4v=!1;else if(O==="touchmove"&&!x4v){x4v=!0;O="auto";for(var H=w7t(N),A=0,Z;A<H.length;A++)if(Z=H[A],Z.__polymerGesturesTouchAction){O=Z.__polymerGesturesTouchAction;break}H=!1;A=Math.abs(PlM-t.clientX);t=Math.abs(X7G-t.clientY);N.cancelable&&(O==="none"?H=!0:O==="pan-x"?H=t>A:O==="pan-y"&&(H=A>t));H?N.preventDefault():
Eh("track")}};
Rb=function(N,t,O){return GC[t]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N,t,O),!0):!1};
vd=function(N,t,O){return GC[t]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N,t,O),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N,t,O){var H=GC[t],A=H.deps,Z=H.name,U=N.__polymerGestures;U||(N.__polymerGestures=U={});for(var C=0,F,g;C<A.length;C++)F=A[C],hNN&&$4z.indexOf(F)>-1&&F!=="click"||((g=U[F])||(U[F]=g={_count:0}),g._count===0&&N.addEventListener(F,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,SI4(F)),g[Z]=(g[Z]||0)+1,g._count=(g._count||0)+1);N.addEventListener(t,O);H.touchAction&&_.Jy(N,H.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N,t,O){var H=GC[t],A=H.deps;H=H.name;var Z=N.__polymerGestures;if(Z)for(var U=0,C,F;U<A.length;U++)C=A[U],(F=Z[C])&&F[H]&&(F[H]=(F[H]||1)-1,F._count=(F._count||1)-1,F._count===0&&N.removeEventListener(C,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,SI4(C)));N.removeEventListener(t,O)};
khG=function(N){mK.push(N);for(var t=0;t<N.emits.length;t++)GC[N.emits[t]]=N};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N){for(var t=0,O;t<mK.length;t++){O=mK[t];for(var H=0,A;H<O.emits.length;H++)if(A=O.emits[H],A===N)return O}return null};
_.Jy=function(N,t){jCO&&N instanceof HTMLElement&&ob.run(function(){N.style.touchAction=t});
N.__polymerGesturesTouchAction=t};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(N,t,O){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=O;(0,_.k6)(N).dispatchEvent(t);t.defaultPrevented&&(N=O.preventer||O.sourceEvent)&&N.preventDefault&&N.preventDefault()};
Eh=function(N){N=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N);N.info&&(N.info.prevent=!0)};
sh=function(N,t,O,H){t&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,N,{x:O.clientX,y:O.clientY,sourceEvent:O,preventer:H,prevent:function(A){return Eh(A)}})};
qIS=function(N,t,O){if(N.prevent)return!1;if(N.started)return!0;O=Math.abs(N.y-O);return Math.abs(N.x-t)>=5||O>=5};
fZM=function(N,t,O){if(t){var H=N.moves[N.moves.length-2],A=N.moves[N.moves.length-1],Z=A.x-N.x,U=A.y-N.y,C=0;if(H){var F=A.x-H.x;C=A.y-H.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,"track",{state:N.state,x:O.clientX,y:O.clientY,dx:Z,dy:U,ddx:F,ddy:C,sourceEvent:O,hover:function(){return TPy(O.clientX,O.clientY)}})}};
WpQ=function(N,t,O){var H=Math.abs(t.clientX-N.x),A=Math.abs(t.clientY-N.y),Z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O||t);!Z||nfQ[Z.localName]&&Z.hasAttribute("disabled")||!(isNaN(H)||isNaN(A)||H<=25&&A<=25||YIp(t))||N.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Z,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:O})};
rlx=function(N,t,O,H,A){var Z;A&&(Z=typeof O==="object"&&O!==null)&&(H=N.__dataTemp[t]);H=H!==O&&(H===H||O===O);Z&&H&&(N.__dataTemp[t]=O);return H};
lZg=function(){if(NT&&!tv){if(!IZM){IZM=!0;var N=document.createElement("style");N.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(N)}return!0}return!1};
m44=function(){return QCz};
EfS=function(N,t){QCz=N;Object.setPrototypeOf(N,t.prototype);new t;QCz=null};
Ghz=function(N,t){for(var O=0;O<t.length;O++){var H=t[O];if(!!N!=!!H.__hideTemplateChildren__)if(H.nodeType===Node.TEXT_NODE)N?(H.__polymerTextContent__=H.textContent,H.textContent=""):H.textContent=H.__polymerTextContent__;else if(H.localName==="slot")if(N)H.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.k6)((0,_.k6)(H).parentNode).replaceChild(H.__polymerReplaced__,H);else{var A=H.__polymerReplaced__;A&&(0,_.k6)((0,_.k6)(A).parentNode).replaceChild(H,A)}else H.style&&(N?(H.__polymerDisplay__=
H.style.display,H.style.display="none"):H.style.display=H.__polymerDisplay__);H.__hideTemplateChildren__=N;H._showHideChildren&&H._showHideChildren(N)}};
RNM=function(N){return(N=N.__dataHost)&&N._methodHost||N};
ofG=function(N,t,O){var H=O.mutableData?vfN:O8;Z0.mixin&&(H=Z0.mixin(H));var A=function(){return H.apply(this,arguments)||this};
_.p(A,H);A.prototype.__templatizeOptions=O;A.prototype._bindTemplate(N);Jll(A,N,t,O);return A};
Hll=function(N,t,O,H){var A=O.forwardHostProp;if(A&&t.hasHostProps){var Z=N.localName=="template",U=t.templatizeTemplateClass;if(!U){if(Z){var C=O.mutableData?sCO:NQg;U=function(){return C.apply(this,arguments)||this};
_.p(U,C);U=t.templatizeTemplateClass=U}else{var F=N.constructor;U=function(){return F.apply(this,arguments)||this};
_.p(U,F);U=t.templatizeTemplateClass=U}var g=t.hostProps,B;for(B in g)U.prototype._addPropertyEffect("_host_"+B,U.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:t0G(A)}),U.prototype._createNotifyingProperty("_host_"+B);VB&&H&&Ol9(t,O,H)}N.__dataProto&&Object.assign(N.__data,N.__dataProto);if(Z)EfS(N,U),N.__dataTemp={},N.__dataPending=null,N.__dataOld=null,N._enableProperties();else{Object.setPrototypeOf(N,U.prototype);t=t.hostProps;for(var c in t)c="_host_"+c,c in N&&(t=N[c],delete N[c],N.__data[c]=
t)}}};
t0G=function(N){return function(t,O,H){N.call(t.__templatizeOwner,O.substring(6),H[O])}};
Jll=function(N,t,O,H){var A=O.hostProps||{},Z;for(Z in H.instanceProps){delete A[Z];var U=H.notifyInstanceProp;U&&N.prototype._addPropertyEffect(Z,N.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Awy(U)})}if(H.forwardHostProp&&t.__dataHost)for(var C in A)O.hasHostProps||(O.hasHostProps=!0),N.prototype._addPropertyEffect(C,N.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Zlg()})};
Awy=function(N){return function(t,O,H){N.call(t.__templatizeOwner,t,O,H[O])}};
Zlg=function(){return function(N,t,O){N.__dataHost._setPendingPropertyOrPath("_host_"+t,O[t],!0,!0)}};
Z0=function(N,t,O){if(D0&&!RNM(N))throw Error("Od");O=O||{};if(N.__templatizeOwner)throw Error("Pd");N.__templatizeOwner=t;var H=(t?t.constructor:O8)._parseTemplate(N),A=H.templatizeInstanceClass;A||(A=ofG(N,H,O),H.templatizeInstanceClass=A);var Z=RNM(N);Hll(N,H,O,Z);O=function(){return A.apply(this,arguments)||this};
_.p(O,A);O.prototype._methodHost=Z;O.prototype.__dataHost=N;O.prototype.__templatizeOwner=t;O.prototype.__hostProps=H.hostProps;return O};
Ol9=function(N,t,O){O=O.constructor._properties;N=N.propertyEffects;t=t.instanceProps;for(var H in N)if(!(O[H]||t&&t[H]))for(var A=N[H],Z=0;Z<A.length;Z++){var U=A[Z].info.part;if(!U.signature||!U.signature.static){console.warn("Property '"+H+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
V0y=function(N,t){for(var O;t;)if(O=t.__dataHost?t:t.__templatizeInstance)if(O.__dataHost!=N)t=O.__dataHost;else return O;else t=(0,_.k6)(t).parentNode;return null};
U8=function(N){return N.localName==="slot"};
DdG=function(){for(var N=C0.prototype,t="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),O={},H=0;H<t.length;O={method$jscomp$33:void 0},H++)O.method$jscomp$33=t[H],N[O.method$jscomp$33]=function(A){return function(){return this.node[A.method$jscomp$33].apply(this.node,arguments)}}(O)};
Udl=function(N,t){for(var O={},H=0;H<t.length;O={name$jscomp$448:void 0},H++)O.name$jscomp$448=t[H],Object.defineProperty(N,O.name$jscomp$448,{get:function(A){return function(){return this.node[A.name$jscomp$448]}}(O),
configurable:!0})};
CC9=function(){for(var N=C0.prototype,t=["textContent","innerHTML","className"],O={},H=0;H<t.length;O={name$jscomp$449:void 0},H++)O.name$jscomp$449=t[H],Object.defineProperty(N,O.name$jscomp$449,{get:function(A){return function(){return this.node[A.name$jscomp$449]}}(O),
set:function(A){return function(Z){this.node[A.name$jscomp$449]=Z}}(O),
configurable:!0})};
Kel=function(){K0=document.documentElement.getAttribute("dir");K0=document.documentElement.getAttribute("dir");for(var N=0;N<Fd.length;N++){var t=Fd[N];t.__autoDirOptOut||t.setAttribute("dir",K0)}};
ywG=function(){de=!0;requestAnimationFrame(function(){de=!1;FeQ(ddG);setTimeout(function(){for(var N=0,t=ge.length;N<t;N++)gDQ(ge.shift())})})};
FeQ=function(N){for(;N.length;)gDQ(N.shift())};
gDQ=function(N){var t=N[0],O=N[1];N=N[2];try{O.apply(t,N)}catch(H){setTimeout(function(){throw H;})}};
_.BQS=function(N,t,O){de||ywG();ddG.push([N,t,O])};
_.yB=function(N,t,O){de||ywG();ge.push([N,t,O])};
jG4=function(N,t){t=t===void 0?!1:t;if(!cw4||!$dx||!cw4.handlesDynamicScoping)return null;var O=$dx.ScopingShim;if(!O)return null;var H=O.scopeForNode(N),A=(0,_.k6)(N).getRootNode(),Z=function(U){if((0,_.k6)(U).getRootNode()===A){var C=Array.from(cw4.nativeMethods.querySelectorAll.call(U,"*"));C.push(U);for(U=0;U<C.length;U++){var F=C[U];if((0,_.k6)(F).getRootNode()===A){var g=O.currentScopeForNode(F);g!==H&&(g!==""&&O.unscopeNode(F,g),O.scopeNode(F,H))}}}};
Z(N);return t?(t=new MutationObserver(function(U){for(var C=0;C<U.length;C++)for(var F=U[C],g=0;g<F.addedNodes.length;g++){var B=F.addedNodes[g];B.nodeType===Node.ELEMENT_NODE&&Z(B)}}),t.observe(N,{childList:!0,
subtree:!0}),t):null};
ilg=function(){document.body.removeAttribute("unresolved")};
bl4=function(N){var t=N=N.replace(uAN,"").replace(Sdt,""),O=new hGS;O.start=0;O.end=t.length;for(var H=O,A=0,Z=t.length;A<Z;A++)if(t[A]==="{"){H.rules||(H.rules=[]);var U=H,C=U.rules[U.rules.length-1]||null;H=new hGS;H.start=A+1;H.parent=U;H.previous=C;U.rules.push(H)}else t[A]==="}"&&(H.end=A+1,H=H.parent||O);return M0p(O,N)};
M0p=function(N,t){var O=t.substring(N.start,N.end-1);N.parsedCssText=N.cssText=O.trim();N.parent&&(O=t.substring(N.previous?N.previous.end:N.parent.start,N.start-1),O=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(O),O=O.replace(pUv," "),O=O.substring(O.lastIndexOf(";")+1),O=N.parsedSelector=N.selector=O.trim(),N.atRule=O.indexOf("@")===0,N.atRule?O.indexOf("@media")===0?N.type=4:O.match(Ley)&&(N.type=7,N.keyframesName=N.selector.split(pUv).pop()):O.indexOf("--")===
0?N.type=1E3:N.type=1);if(O=N.rules)for(var H=0,A=O.length,Z=void 0;H<A&&(Z=O[H]);H++)M0p(Z,t);return N};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(N){return N.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var t=arguments[1],O=6-t.length;O--;)t="0"+t;return"\\"+t})};
zG4=function(N,t,O){O=O===void 0?"":O;var H="";if(N.cssText||N.rules){var A=N.rules;if(A&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(A))for(var Z=0,U=A.length,C=void 0;Z<U&&(C=A[Z]);Z++)H=zG4(C,t,H);else t?t=N.cssText:(t=N.cssText,t=t.replace(YdS,"").replace(a7N,""),t=t.replace(TQ9,"").replace(wU9,"")),(H=t.trim())&&(H="  "+H+"\n")}H&&(N.selector&&(O+=N.selector+" {\n"),O+=H,N.selector&&(O+="}\n\n"));return O};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(N){N=N[0];return!!N&&!!N.selector&&N.selector.indexOf("--")===0};
PCx=function(N){if(N=eGQ[N])N._applyShimCurrentVersion=N._applyShimCurrentVersion||0,N._applyShimValidatingVersion=N._applyShimValidatingVersion||0,N._applyShimNextVersion=(N._applyShimNextVersion||0)+1};
XUG=function(N){return N._applyShimCurrentVersion===N._applyShimNextVersion};
klM=function(N){N._applyShimValidatingVersion=N._applyShimNextVersion;N._validating||(N._validating=!0,xdO.then(function(){N._applyShimCurrentVersion=N._applyShimNextVersion;N._validating=!1}))};
f7Q=function(N){if(!N)return"";typeof N==="string"&&(N=bl4(N));return zG4(N,qdl)};
nDv=function(N){!N.__cssRules&&N.textContent&&(N.__cssRules=bl4(N.textContent));return N.__cssRules||null};
rwl=function(N,t,O,H){if(N){var A=!1,Z=N.type;if(H&&Z===4){var U=N.selector.match(Wep);U&&(window.matchMedia(U[1]).matches||(A=!0))}Z===1?t(N):O&&Z===7?O(N):Z===1E3&&(A=!0);if((N=N.rules)&&!A)for(A=0,Z=N.length,U=void 0;A<Z&&(U=N[A]);A++)rwl(U,t,O,H)}};
I7x=function(N,t){var O=N.indexOf("var(");if(O===-1)return t(N,"","","");a:{var H=0;var A=O+3;for(var Z=N.length;A<Z;A++)if(N[A]==="(")H++;else if(N[A]===")"&&--H===0)break a;A=-1}H=N.substring(O+4,A);O=N.substring(0,O);N=I7x(N.substring(A+1),t);Z=H.indexOf(",");if(Z===-1)return t(O,H.trim(),"",N);A=H.substring(0,Z).trim();H=H.substring(Z+1).trim();return t(O,A,H,N)};
l7t=function(N){if(Bv!==void 0)return Bv;if(N.__cssBuild===void 0){var t=N.getAttribute("css-build");if(t)N.__cssBuild=t;else{a:{t=N.localName==="template"?N.content.firstChild:N.firstChild;if(t instanceof Comment&&(t=t.textContent.trim().split(":"),t[0]==="css-build")){t=t[1];break a}t=""}if(t!==""){var O=N.localName==="template"?N.content.firstChild:N.firstChild;O.parentNode.removeChild(O)}N.__cssBuild=t}}return N.__cssBuild||""};
mdS=function(N,t,O,H){for(var A=t._noAccessors,Z=Object.getOwnPropertyNames(t),U=0;U<Z.length;U++){var C=Z[U];if(!(C in H))if(A)N[C]=t[C];else{var F=Object.getOwnPropertyDescriptor(t,C);F&&(F.configurable=!0,Object.defineProperty(N,C,F))}}for(var g in QG4)t[g]&&(O[g]=O[g]||[],O[g].push(t[g]))};
EDv=function(N,t,O){t=t||[];for(var H=N.length-1;H>=0;H--){var A=N[H];A?Array.isArray(A)?EDv(A,t):t.indexOf(A)<0&&(!O||O.indexOf(A)<0)&&t.unshift(A):console.warn("behavior is null, check for missing or 404 import")}return t};
GlN=function(N,t){for(var O in t){var H=N[O],A=t[O];N[O]=!("value"in A)&&H&&"value"in H?Object.assign({value:H.value},A):A}};
Jwz=function(N,t,O){var H={},A=function(){return t.apply(this,arguments)||this};
_.p(A,t);A._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(U)for(var F=0,g;F<U.length;F++)g=U[F],g.properties&&this.createProperties(g.properties),g.observers&&this.createObservers(g.observers,g.properties);N.properties&&this.createProperties(N.properties);N.observers&&this.createObservers(N.observers,N.properties);this._prepareTemplate()}else t._finalizeClass.call(this)};
A.prototype.created=function(){t.prototype.created.call(this);var F=H.created;if(F)for(var g=0;g<F.length;g++)F[g].call(this)};
A.prototype._registered=function(){var F=A.prototype;if(!F.hasOwnProperty("__hasRegisterFinished")){F.__hasRegisterFinished=!0;t.prototype._registered.call(this);NT&&C(F);F=Object.getPrototypeOf(this);var g=H.beforeRegister;if(g)for(var B=0;B<g.length;B++)g[B].call(F);if(g=H.registered)for(B=0;B<g.length;B++)g[B].call(F)}};
A.prototype._applyListeners=function(){t.prototype._applyListeners.call(this);var F=H.listeners;if(F)for(var g=0;g<F.length;g++){var B=F[g];if(B)for(var c in B)this._addMethodEventListenerToNode(this,c,B[c])}};
A.prototype._ensureAttributes=function(){var F=H.hostAttributes;if(F)for(var g=F.length-1;g>=0;g--){var B=F[g],c;for(c in B)this._ensureAttribute(c,B[c])}t.prototype._ensureAttributes.call(this)};
A.prototype.ready=function(){t.prototype.ready.call(this);var F=H.ready;if(F)for(var g=0;g<F.length;g++)F[g].call(this)};
A.prototype.attached=function(){t.prototype.attached.call(this);var F=H.attached;if(F)for(var g=0;g<F.length;g++)F[g].call(this)};
A.prototype.detached=function(){t.prototype.detached.call(this);var F=H.detached;if(F)for(var g=0;g<F.length;g++)F[g].call(this)};
A.prototype.attributeChanged=function(F,g,B){t.prototype.attributeChanged.call(this);var c=H.attributeChanged;if(c)for(var u=0;u<c.length;u++)c[u].call(this,F,g,B)};
_.cv.Object.defineProperties(A,{properties:{configurable:!0,enumerable:!0,get:function(){var F={};if(U)for(var g=0;g<U.length;g++)GlN(F,U[g].properties);GlN(F,N.properties);return F}},
observers:{configurable:!0,enumerable:!0,get:function(){var F=[];if(U)for(var g=0,B;g<U.length;g++)B=U[g],B.observers&&(F=F.concat(B.observers));N.observers&&(F=F.concat(N.observers));return F}}});
if(O){Array.isArray(O)||(O=[O]);var Z=t.prototype.behaviors;var U=EDv(O,null,Z);A.prototype.behaviors=Z?Z.concat(O):U}var C=function(F){if(U)for(var g=U,B=0;B<g.length;B++)mdS(F,g[B],H,RGy);mdS(F,N,H,vDp)};
NT||C(A.prototype);A.generatedFrom=N;return A};
tWS=function(N){var t=typeof N!=="string"?N:{is:N,notifyObserversOnUndefined:!0};t.fastInit===void 0&&(t.fastInit=!0);return function(O){if(!t.disableInheritanceCheck&&Object.getPrototypeOf(O.prototype).constructor!==_.$I)throw Error("Td");var H=O.prototype;H.is=t.is;Vq9(H,"created",function(){this.hostElement=this;this.polymerController=this});
oDM(H,O,t.fastInit);t.notifyObserversOnUndefined&&(H._overrideLegacyUndefined=!0);if(sGg)for(var A=_.D(Object.getOwnPropertyNames(H)),Z=A.next();!Z.done;Z=A.next()){Z=Z.value;var U=Object.getOwnPropertyDescriptor(H,Z);U.enumerable===!1&&(U.enumerable=!0,Object.defineProperty(H,Z,U))}if("template"in O)var C=function(){return O.template};
else t.template!==void 0&&(C=t.template);if(C!==void 0){var F;Object.defineProperty(H,"_template",{get:function(){F===void 0&&(F=C());return F},
set:function(g){F=g},
configurable:!0,enumerable:!0})}Polymer(H);O[NIv]=H}};
OAv=function(N){N=N===void 0?{}:N;N.fastInit===void 0&&(N.fastInit=!0);return function(t){if(!N.disableInheritanceCheck&&Object.getPrototypeOf(t.prototype).constructor!==jm)throw Error("Ud");oDM(t.prototype,t,N.fastInit)}};
oDM=function(N,t,O){O=O===void 0?!1:O;HAN(t);O?Vq9(N,"created",function(){this.disableEnforceFastDefaultValuesCheck||ACy(t,this)}):Vq9(N,"ready",function(){for(var H={},A=_.D(DuO(this.behaviors)),Z=A.next();!Z.done;Z=A.next())Z=Z.value,Z.properties&&Object.assign(H,ZAO(this,Z.properties));
Object.assign(H,ZAO(this,this.properties));ACy(t,this);A=_.D(Object.keys(H));for(Z=A.next();!Z.done;Z=A.next())Z=Z.value,this[Z]=H[Z]})};
ACy=function(N,t){if(sGg){N=new N;for(var O=_.D(Object.getOwnPropertyNames(N)),H=O.next();!H.done;H=O.next())H=H.value,t[H]=N[H];for(O=t;O&&O!==Object.prototype;O=Object.getPrototypeOf(O)){H=_.D(Object.getOwnPropertyNames(O));for(var A=H.next();!A.done;A=H.next())A=A.value,N.hasOwnProperty(A)||Object.defineProperty(N,A,VWQ(t,A))}}else N.apply(t)};
VWQ=function(N,t){return{get:function(){var O=N[t];return O instanceof Function?O.bind(N):O},
set:function(O){N[t]=O}}};
ZAO=function(N,t){if(!t)return{};for(var O={},H=_.D(Object.keys(t)),A=H.next();!A.done;A=H.next())if(A=A.value,!t[A].readOnly){var Z=N[A];Z!==void 0&&(O[A]=Z)}return O};
HAN=function(N){var t=new N;N=N.prototype.properties||{};for(var O=_.D(Object.keys(N)),H=O.next();!H.done;H=O.next())if(H=H.value,t.hasOwnProperty(H)){var A=N[H];typeof A==="function"&&(N[H]=A={type:A});t[H]!=null&&A.type===Object&&(A.type=DOz(t[H].constructor))}};
DOz=function(N){for(var t=_.D(UOg),O=t.next();!O.done;O=t.next())if(O=O.value,N===O)return O;return Object};
Ctv=function(N){return function(t,O){t.behaviors=t.behaviors||[];t.behaviors.push(N||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",t,O).prototype:void 0));Object.defineProperty(t,O,{get:function(){return this},
enumerable:!0,configurable:!0})}};
KsM=function(N){N=N===void 0?{}:N;return function(t,O){t.properties=t.properties||{};N.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?N.type=DOz(Reflect.getMetadata("design:type",t,O)):N.type=String);var H=N,A=t.properties[O];t.properties[O]=A?Object.assign({},A,H):H}};
FsO=function(N){return function(t,O){t.listeners=t.listeners||{};t.listeners[N]=O}};
dOv=function(){var N=_.E1.apply(0,arguments);if(N.length===0)throw Error("Vd");return function(t,O){t.observers=t.observers||[];t.observers.push(O+"("+N.join(",")+")")}};
gGt=function(){var N=_.E1.apply(0,arguments);return function(t,O,H){var A=Object.getOwnPropertyDescriptor(t,O).get,Z="__compute__"+O;Object.defineProperty(t,Z,{value:A,enumerable:!0});t.properties=t.properties||{};A=t.properties[O];A||(A={},t.properties[O]=A);A.computed=Z+"("+N.join(",")+")";H.get=void 0}};
_.iq=function(N,t,O){_.k1.call(this);this.JSC$11465_id_=null;this.usingListeners_=!1;this.JSC$11465_listener_=N;this.handler_=O;this.JSC$11465_win_=t||window;this.callback_=(0,_.qn)(this.JSC$11467_doAction_,this)};
uq=function(N){this.range_=N};
Sm=function(N){this.range_=N};
bq=function(N,t,O){_.k1.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=N;this.scrollTimer_=new _.hv(50);this.JSC$11544_eventHandler_=new _.MT(this);this.scrollDelta_=new _.IN;this.containerIsActuallyContent_=N.tagName==="BODY"||N.tagName==="HTML";this.containerBounds_=yCO(N);this.containerIsActuallyContent_&&(N=_.Ti(),this.containerBounds_.height=N.height,this.containerBounds_.width=N.width);this.margin_=t||0;if(t){if(t=this.containerBounds_.clone(),N=this.margin_){var H=
Math.min(N,t.height*.25);t.top+=H;t.height-=2*H;N=Math.min(N,t.width*.25);t.left+=N;t.width-=2*N}}else t=this.containerBounds_;this.scrollBounds_=t;O||this.JSC$11544_eventHandler_.listen(_.Qs(this.containerNode_),"mousemove",this.JSC$11546_onMouseMove);this.JSC$11544_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11546_onTick_)};
_.p0=function(N){this.mechanism=N};
L0=function(N,t){this.JSC$11642_key_=N;this.JSC$11642_value_=t};
cCG=function(N){if(N>=55296&&N<=57343||N>1114111)return"\ufffd";N in BIv&&(N=BIv[N]);var t="";N>65535&&(N-=65536,t+=String.fromCharCode(N>>>10&1023|55296),N=56320|N&1023);return t+=String.fromCharCode(N)};
$O4=function(N,t){return N<t?1:-1};
iAS=function(){return function(N){return N.charAt(1)==="#"?N.charAt(2)==="X"||N.charAt(2)==="x"?cCG(parseInt(N.substr(3),16)):cCG(parseInt(N.substr(2),10)):j5z[N.slice(1,-1)]}};
h4v=function(N){return N.slice(1,N.length-1).trim().replace(uJt,function(t){return SwO[t]||" "})};
YI=function(N){return N===32||N===9};
an=function(N,t){return t<N.length?N.charCodeAt(t):-1};
MWS=function(N){for(;N;){if(N._lastLineBlank)return!0;var t=N.type;if(t==="list"||t==="item")N=N._lastChild;else break}return!1};
TZ=function(N){if(bAl.test(N)){var t=1,O=0,H=0;for(N[O]=="|"&&O++;O<N.length;){switch(N[O]){case "|":H=1;break;case " ":break;case "\t":break;default:H&&(H=0,t++)}O++}return p1z.test(N)?-t:t}return 0};
LsO=function(N){return N=="table"||N=="row"||N=="cell"};
z4S=function(){return new we("document",[[1,1],[0,0]])};
Ywz=function(){};
em=function(){var N={safe:!1};N=N||{};N.softbreak=N.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=N};
PtG=function(N,t){var O="";if(N)if(N=N.toLowerCase(),N===" "||abG.test(N))O="space";else if(TIO.test(N))O="esc";else if(N.length==1){if(!t||w1G.test(N))O=N}else O=e4S.test(N)?N.replace("arrow",""):N=="multiply"?"*":N;return O};
qwN=function(N,t){var O=N.hasModifiers;if(t.key)O=PtG(t.key,O);else if(t.detail&&t.detail.key)O=PtG(t.detail.key,O);else{O=t.keyIdentifier;var H="";O&&(O in X1z?H=X1z[O]:xOg.test(O)?(O=parseInt(O.replace("U+","0x"),16),H=String.fromCharCode(O).toLowerCase()):H=O.toLowerCase());(O=H)||(O=t.keyCode,H="",Number(O)&&(O>=65&&O<=90?H=String.fromCharCode(32+O):O>=112&&O<=123?H="f"+(O-112+1):O>=48&&O<=57?H=String(O-48):O>=96&&O<=105?H=String(O-96):H=kj9[O]),O=H);O=O||""}return O===N.key&&(!N.hasModifiers||
!!t.shiftKey===!!N.shiftKey&&!!t.ctrlKey===!!N.ctrlKey&&!!t.altKey===!!N.altKey&&!!t.metaKey===!!N.metaKey)};
nGG=function(N){return N.length===1?{combo:N,key:N,event:"keydown"}:N.split("+").reduce(function(t,O){var H=O.split(":");O=H[0];H=H[1];O in fbS?(t[fbS[O]]=!0,t.hasModifiers=!0):(t.key=O,t.event=H||"keydown");return t},{combo:N.split(":").shift()})};
WsG=function(N){return N.trim().split(" ").map(function(t){return nGG(t)})};
rCG=function(N,t){if(N&&N.fn){var O=N.fn;N.fn=function(){try{O.apply(this,arguments)}catch(H){if(H instanceof Pv)console.warn("Argument '"+H.arg+"'"+(t?" for method '"+t+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw H;}}}return N};
lbG=function(){var N=[],t;var O=O||_.IbN.length;for(t=0;t<8;t++)N[t]=_.IbN[0|Math.random()*O];return N.join("")};
Q5t=function(){var N=_.E1.apply(0,arguments);return N.length===0?function(t){return t}:N.length===1?N[0]:N.reduce(function(t,O){return function(){return t(O.apply(null,_.W6(_.E1.apply(0,arguments))))}})};
mON=function(){var N=_.E1.apply(0,arguments);return function(t){return function(O,H){O=t(O,H);var A=function(){throw Error("Fe");},Z={getState:O.getState,
dispatch:function(U){return A.apply(null,[U].concat(_.W6(_.E1.apply(1,arguments))))}};
H=N.map(function(U){return U(Z)});
A=Q5t.apply(null,_.W6(H))(O.dispatch);return Object.assign({},O,{dispatch:A})}}};
R4z=function(N){Object.keys(N).forEach(function(t){var O=N[t];if(typeof O(void 0,{type:EGl})==="undefined")throw Error("Ge`"+t);if(typeof O(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Gjp()})==="undefined")throw Error("He`"+t+"`"+EGl);})};
Xd=function(N){for(var t=Object.keys(N),O={},H=0;H<t.length;H++){var A=t[H];typeof N[A]==="function"&&(O[A]=N[A])}var Z=Object.keys(O);try{R4z(O)}catch(C){var U=C}return function(C,F){C=C===void 0?{}:C;if(U)throw U;for(var g=!1,B={},c=0;c<Z.length;c++){var u=Z[c],S=C[u],b=(0,O[u])(S,F);if(typeof b==="undefined")throw C=F&&F.type,Error("Ie`"+(C?'"'+String(C)+'"':"(unknown type)")+"`"+u);B[u]=b;g=g||b!==S}return(g=g||Z.length!==Object.keys(C).length)?B:C}};
vGy=function(N,t,O){function H(){if(B)throw Error("Je");return C}
function A(S){if(typeof S!=="function")throw Error("Ke`"+typeof S);if(B)throw Error("Le");var b=!0;g===F&&(g=F.slice());g.push(S);return function(){if(b){if(B)throw Error("Me");b=!1;g===F&&(g=F.slice());var z=g.indexOf(S);g.splice(z,1);F=null}}}
function Z(S){if(typeof S!=="object"||S===null)var b=!1;else{for(b=S;Object.getPrototypeOf(b)!==null;)b=Object.getPrototypeOf(b);b=Object.getPrototypeOf(S)===b}if(!b)throw Error("Ne`"+typeof S);if(typeof S.type==="undefined")throw Error("Oe");if(B)throw Error("Pe");try{B=!0,C=U(C,S)}finally{B=!1}b=F=g;for(var z=0;z<b.length;z++)(0,b[z])();return S}
if(typeof t==="function"&&typeof O==="function"||typeof O==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof t==="function"&&typeof O==="undefined"&&(O=t,t=void 0);if(typeof O!=="undefined"){if(typeof O!=="function")throw Error("Re`"+typeof O);return O(vGy)(N,t)}if(typeof N!=="function")throw Error("Se`"+typeof N);var U=N,C=t,F=[],g=F,B=!1;Z({type:EGl});var c={},u=(c.dispatch=Z,c.subscribe=A,c.getState=H,c.replaceReducer=function(S){if(typeof S!=="function")throw Error("Te`"+
typeof S);U=S;Z({type:JCO});return u},c[oGS]=function(){var S={};
return S.subscribe=function(b){function z(){b.next&&b.next(H())}
if(typeof b!=="object"||b===null)throw new TypeError("Ue`"+typeof b);z();return{unsubscribe:A(z)}},S[oGS]=function(){return this},S},c);
return u};
s5y=function(N){function t(){A&&(A=!1,N());Z&&H()}
function O(){requestAnimationFrame(t)}
function H(){var C=Date.now();if(A){if(C-U<2)return;Z=!0}else A=!0,Z=!1,setTimeout(O,20);U=C}
var A=!1,Z=!1,U=0;return H};
xI=function(N){return typeof N==="number"?N:parseFloat(N)||0};
N3l=function(N){return _.E1.apply(1,arguments).reduce(function(t,O){return t+xI(N["border-"+O+"-width"])},0)};
A$z=function(N){if(trl[N])return trl[N];var t=globalThis[N],O=t.prototype,H=N in OVQ?OVQ[N]:void 0;H=!(!H||!H.every(function(F){var g,B;return!!((g=Object.getOwnPropertyDescriptor(O,F))==null?0:(B=g.get)==null?0:B.toString().includes("[native code]"))}));
var A=N in HVQ?HVQ[N]:void 0;A=!(!A||!A.every(function(F){var g;return typeof O[F]==="function"&&((g=O[F])==null?void 0:g.toString().includes("[native code]"))}));
if(H&&A&&!globalThis.Zone)return trl[N]=t.prototype;try{var Z=document.createElement("iframe");document.body.appendChild(Z);var U=Z.contentWindow;if(!U)return t.prototype;var C=U[N].prototype;document.body.removeChild(Z);return C?trl[N]=C:O}catch(F){return O}};
kI=function(N,t,O){var H=N+"."+String(O);if(ZVg[H])return ZVg[H].call(t);N=A$z(N);var A;N=(A=Object.getOwnPropertyDescriptor(N,O))==null?void 0:A.get;if(!N)return t[O];ZVg[H]=N;return N.call(t)};
Dsv=function(N,t){var O="Node."+String(t);if(VrG[O])return VrG[O].bind(N);var H=A$z("Node")[t];if(typeof H!=="function")return N[t];VrG[O]=H;return H.bind(N)};
qT=function(N,t,O){try{if(!(t in N))return function(){};
var H=N[t],A=O(H);typeof A==="function"&&(A.prototype=A.prototype||{},Object.defineProperties(A,{__rrweb_original__:{enumerable:!1,value:H}}));N[t]=A;return function(){N[t]=H}}catch(Z){return function(){}}};
Wv=function(N){var t=N&&"host"in N&&"mode"in N&&f0(N)||null;return!!(t&&"shadowRoot"in t&&n0(t)===N)};
re=function(N){return Object.prototype.toString.call(N)==="[object ShadowRoot]"};
UsG=function(N){N.includes(" background-clip: text;")&&!N.includes(" -webkit-background-clip: text;")&&(N=N.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return N};
K0t=function(N){try{var t=N.rules||N.cssRules;if(!t)return null;var O=N.href;!O&&N.ownerNode&&(O=N.ownerNode.baseURI);var H=Array.from(t,function(A){return CMQ(A,O)}).join("");
return UsG(H)}catch(A){return null}};
CMQ=function(N,t){if("styleSheet"in N){try{var O;if(!(O=K0t(N.styleSheet))){var H=N.cssText;if(H.split('"').length<3)O=H;else{var A=["@import","url("+JSON.stringify(N.href)+")"];N.layerName===""?A.push("layer"):N.layerName&&A.push("layer("+N.layerName+")");N.supportsText&&A.push("supports("+N.supportsText+")");N.media.length&&A.push(N.media.mediaText);O=A.join(" ")+";"}}var Z=O}catch(U){Z=N.cssText}return N.styleSheet.href?F09(Z,N.styleSheet.href):Z}Z=N.cssText;"selectorText"in N&&N.selectorText.includes(":")&&
(Z=Z.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return t?F09(Z,t):Z};
dsv=function(N){var t=N.element;var O=N.maskInputOptions;var H=N.tagName;var A=N.type;var Z=N.value;N=N.maskInputFn;Z=Z||"";A=A&&A.toLowerCase();if(O[H.toLowerCase()]||A&&O[A])Z=N?N(Z,t):"*".repeat(Z.length);return Z};
gFp=function(N){var t=N.getContext("2d");if(!t)return!0;for(var O=0;O<N.width;O+=50)for(var H=0;H<N.height;H+=50){var A=t.getImageData;if((new Uint32Array(("__rrweb_original__"in A?A.__rrweb_original__:A).call(t,O,H,Math.min(50,N.width-O),Math.min(50,N.height-H)).data.buffer)).some(function(Z){return Z!==0}))return!1}return!0};
y$v=function(N){var t=N.type;return N.hasAttribute("data-rr-is-password")?"password":t?t.toLowerCase():null};
B3Q=function(N){try{var t=new URL(N,window.location.href)}catch(A){return null}var O,H;return(H=(O=t.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:O[1])!=null?H:null};
F09=function(N,t){return(N||"").replace(c$N,function(O,H,A,Z,U,C){A=A||U||C;H=H||Z||"";if(!A)return O;if($sl.test(A)||j7v.test(A)||iVx.test(A))return"url("+H+A+H+")";if(A[0]==="/")return O=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],O=O.split("?")[0],"url("+H+(O+A)+H+")";O=t.split("/");Z=A.split("/");O.pop();Z=_.D(Z);for(A=Z.next();!A.done;A=Z.next())A=A.value,A!=="."&&(A===".."?O.pop():O.push(A));return"url("+H+O.join("/")+H+")"})};
umN=function(N,t){return(t=t===void 0?!1:t)?N.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):N.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
SP9=function(N,t){var O=O===void 0?!1:O;t=Array.from(t.childNodes);var H=[],A=0;if(t.length>1&&N&&typeof N==="string")for(var Z=umN(N,O),U=Z.length/N.length,C=1;C<t.length;C++)if(t[C].textContent&&typeof t[C].textContent==="string"){for(var F=umN(t[C].textContent,O),g=3;g<F.length&&(F[g].match(/[a-zA-Z0-9]/)||F.indexOf(F.substring(0,g),1)!==-1);g++);for(;g<F.length;g++){var B=F.substring(0,g),c=Z.split(B),u=-1;if(c.length===2)u=c[0].length;else if(c.length>2&&c[0]===""&&t[C-1].textContent!=="")u=
Z.indexOf(B,1);else if(c.length===1){B=B.substring(0,B.length-1);c=Z.split(B);if(c.length<=1)return H.push(N),H;g=101}else g===F.length-1&&(u=Z.indexOf(B));if(c.length>=2&&g>100){var S=t[C-1].textContent;S&&typeof S==="string"&&(u=Z.indexOf(B,umN(S).length));u===-1&&(u=c[0].length)}if(u!==-1){for(F=Math.floor(u/U);F>0&&F<N.length;){A+=1;if(A>50*t.length)return H.push(N),H;g=umN(N.substring(0,F),O);if(g.length===u){H.push(N.substring(0,F));N=N.substring(F);Z=Z.substring(u);break}else F=g.length<u?
F+Math.max(1,Math.floor((u-g.length)/U)):F-Math.max(1,Math.floor((g.length-u)*U))}break}}}H.push(N);return H};
Mrz=function(){return hDp++};
pGp=function(N){if(N instanceof HTMLFormElement)return"form";N=N.tagName.toLowerCase();return bVz.test(N)?"div":N};
aPg=function(N,t){function O(g){return(g=g.exec(t.substring(H)))?(g=g[0],H+=g.length,g):""}
if(t.trim()==="")return t;for(var H=0,A=[];;){O(L0g);if(H>=t.length)break;var Z=O(zD4);if(Z.slice(-1)===",")Z=YP9(N,Z.substring(0,Z.length-1)),A.push(Z);else{var U="";Z=YP9(N,Z);for(var C=!1;;){var F=t.charAt(H);if(F===""){A.push((Z+U).trim());break}else if(C)F===")"&&(C=!1);else if(F===","){H+=1;A.push((Z+U).trim());break}else F==="("&&(C=!0);U+=F;H+=1}}}return A.join(", ")};
YP9=function(N,t){return t&&t.trim()!==""?T3O(N,t):t};
T3O=function(N,t){var O=wGp.get(N);O||(O=N.createElement("a"),wGp.set(N,O));if(!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;Rd(O,t);return O.href};
eDM=function(N,t,O,H){return H?O==="src"||O==="href"&&(t!=="use"||H[0]!=="#")||O==="xlink:href"&&H[0]!=="#"||O==="background"&&(t==="table"||t==="td"||t==="th")?YP9(N,H):O==="srcset"?aPg(N,H):O==="style"?F09(H,T3O(N)):t==="object"&&O==="data"?YP9(N,H):H:H};
PMv=function(N,t){return(N==="video"||N==="audio")&&t==="autoplay"};
XGy=function(N,t,O){try{if(typeof t==="string"){if(N.classList.contains(t))return!0}else for(var H=N.classList.length;H--;)if(t.test(N.classList[H]))return!0;if(O)return N.matches(O)}catch(A){}return!1};
xsO=function(N,t,O){if(!N)return!1;if(N.nodeType!==N.ELEMENT_NODE)return O?xsO(In(N),t,O):!1;for(var H=N.classList.length;H--;)if(t.test(N.classList[H]))return!0;return O?xsO(In(N),t,O):!1};
kkS=function(N,t,O,H){if(N.nodeType===N.ELEMENT_NODE){if(!lq(N).length)return!1}else{if(QB(N)===null)return!1;N=QB(N)}try{if(typeof t==="string")if(H){if(N.closest("."+t))return!0}else{if(N.classList.contains(t))return!0}else if(xsO(N,t,H))return!0;if(O)if(H){if(N.closest(O))return!0}else if(N.matches(O))return!0}catch(A){}return!1};
qPz=function(N,t,O){var H=N.contentWindow;if(H){var A=!1;try{var Z=H.document.readyState}catch(C){return}if(Z!=="complete"){var U=setTimeout(function(){A||(t(),A=!0)},O);
N.addEventListener("load",function(){clearTimeout(U);A=!0;t()})}else H.location.href==="about:blank"&&N.src!=="about:blank"&&N.src!==""||setTimeout(t,0),N.addEventListener("load",t)}};
fP9=function(N,t,O){var H=!1;try{var A=N.sheet}catch(U){return}if(!A){var Z=setTimeout(function(){H||(t(),H=!0)},O);
N.addEventListener("load",function(){clearTimeout(Z);H=!0;t()})}};
r$Q=function(N,t){var O=t.doc,H=t.blockClass,A=t.blockSelector,Z=t.needsMask,U=t.inlineStylesheet,C=t.maskInputOptions===void 0?{}:t.maskInputOptions,F=t.maskTextFn,g=t.maskInputFn,B=t.dataURLOptions===void 0?{}:t.dataURLOptions,c=t.inlineImages,u=t.recordCanvas,S=t.keepIframeSrcFn,b=t.newlyAddedElement===void 0?!1:t.newlyAddedElement,z=t.cssCaptured===void 0?!1:t.cssCaptured;t=t.mirror;t.nodeMetaMap.has(O)?(t=t.getId(O),t=t===1?void 0:t):t=void 0;switch(N.nodeType){case N.DOCUMENT_NODE:return N.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:N.compatMode}:{type:0,childNodes:[]};case N.DOCUMENT_TYPE_NODE:return{type:1,name:N.name,publicId:N.publicId,systemId:N.systemId,rootId:t};case N.ELEMENT_NODE:return nFG(N,{doc:O,blockClass:H,blockSelector:A,inlineStylesheet:U,maskInputOptions:C,maskInputFn:g,dataURLOptions:B,inlineImages:c,recordCanvas:u,keepIframeSrcFn:S,newlyAddedElement:b,rootId:t});case N.TEXT_NODE:return U=(H=In(N))&&H.tagName,H="",A=U==="STYLE"?!0:void 0,(U=U==="SCRIPT"?!0:void 0)?
H="SCRIPT_PLACEHOLDER":z||(H=W0p(N),A&&H&&(H=F09(H,T3O(O)))),!A&&!U&&H&&Z&&(H=F?F(H,QB(N)):H.replace(/[\S]/g,"*")),{type:3,textContent:H||"",rootId:t};case N.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:t};case N.COMMENT_NODE:return{type:5,textContent:W0p(N)||"",rootId:t};default:return!1}};
nFG=function(N,t){var O=t.doc,H=t.inlineStylesheet,A=t.maskInputOptions===void 0?{}:t.maskInputOptions,Z=t.maskInputFn,U=t.dataURLOptions===void 0?{}:t.dataURLOptions,C=t.inlineImages,F=t.recordCanvas,g=t.keepIframeSrcFn,B=t.newlyAddedElement===void 0?!1:t.newlyAddedElement,c=t.rootId;t=XGy(N,t.blockClass,t.blockSelector);for(var u=pGp(N),S={},b=N.attributes.length,z=0;z<b;z++){var w=N.attributes[z];PMv(u,w.name)||(S[w.name]=eDM(O,u,w.name.toLowerCase(),w.value))}u==="link"&&H&&(H=Array.from(O.styleSheets).find(function(r){return r.href===
N.href}),b=null,H&&(b=K0t(H)),b&&(delete S.rel,delete S.href,S._cssText=b));
u==="style"&&N.sheet&&(H=K0t(N.sheet))&&(N.childNodes.length>1&&(H=SP9(H,N).join("/* rr_split */")),S._cssText=H);if(u==="input"||u==="textarea"||u==="select")H=N.value,b=N.checked,S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&H?S.value=dsv({element:N,type:y$v(N),tagName:u,value:H,maskInputOptions:A,maskInputFn:Z}):b&&(S.checked=b);u==="option"&&(N.selected&&!A.select?S.selected=!0:delete S.selected);u==="dialog"&&N.open&&(S.rr_open_mode=N.matches("dialog:modal")?"modal":
"non-modal");u==="canvas"&&F&&(N.__context==="2d"?gFp(N)||(S.rr_dataURL=N.toDataURL(U.type,U.quality)):"__context"in N||(A=N.toDataURL(U.type,U.quality),Z=O.createElement("canvas"),Z.width=N.width,Z.height=N.height,Z=Z.toDataURL(U.type,U.quality),A!==Z&&(S.rr_dataURL=A)));if(u==="img"&&C){mF||(mF=O.createElement("canvas"),IPx=mF.getContext("2d"));var P=N.currentSrc||N.getAttribute("src")||"<unknown-src>",x=N.crossOrigin,l=function(){N.removeEventListener("load",l);try{mF.width=N.naturalWidth,mF.height=
N.naturalHeight,IPx.drawImage(N,0,0),S.rr_dataURL=mF.toDataURL(U.type,U.quality)}catch(r){if(N.crossOrigin!=="anonymous"){N.crossOrigin="anonymous";N.complete&&N.naturalWidth!==0?l():N.addEventListener("load",l);return}console.warn("Cannot inline img src="+P+"! Error: "+r)}N.crossOrigin==="anonymous"&&(x?S.crossOrigin=x:N.removeAttribute("crossorigin"))};
N.complete&&N.naturalWidth!==0?l():N.addEventListener("load",l)}if(u==="audio"||u==="video")O=S,O.rr_mediaState=N.paused?"paused":"played",O.rr_mediaCurrentTime=N.currentTime,O.rr_mediaPlaybackRate=N.playbackRate,O.rr_mediaMuted=N.muted,O.rr_mediaLoop=N.loop,O.rr_mediaVolume=N.volume;B||(N.scrollLeft&&(S.rr_scrollLeft=N.scrollLeft),N.scrollTop&&(S.rr_scrollTop=N.scrollTop));t&&(B=N.getBoundingClientRect(),S={class:S.class,rr_width:B.width+"px",rr_height:B.height+"px"});u!=="iframe"||g(S.src)||(N.contentDocument||
(S.rr_src=S.src),delete S.src);var I;try{customElements.get(u)&&(I=!0)}catch(r){}return{type:2,tagName:u,attributes:S,childNodes:[],isSVG:!(N.tagName!=="svg"&&!N.ownerSVGElement)||void 0,needBlock:t,rootId:c,isCustom:I}};
E8=function(N){return N===void 0||N===null?"":N.toLowerCase()};
lPl=function(N,t){return t.comment&&N.type===5||N.type===2&&(t.script&&(N.tagName==="script"||N.tagName==="link"&&(N.attributes.rel==="preload"&&N.attributes.as==="script"||N.attributes.rel==="modulepreload")||N.tagName==="link"&&N.attributes.rel==="prefetch"&&typeof N.attributes.href==="string"&&B3Q(N.attributes.href)==="js")||t.headFavicon&&(N.tagName==="link"&&N.attributes.rel==="shortcut icon"||N.tagName==="meta"&&(E8(N.attributes.name).match(/^msapplication-tile(image|color)$/)||E8(N.attributes.name)===
"application-name"||E8(N.attributes.rel)==="icon"||E8(N.attributes.rel)==="apple-touch-icon"||E8(N.attributes.rel)==="shortcut icon"))||N.tagName==="meta"&&(t.headMetaDescKeywords&&E8(N.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(E8(N.attributes.property).match(/^(og|twitter|fb):/)||E8(N.attributes.name).match(/^(og|twitter):/)||E8(N.attributes.name)==="pinterest")||t.headMetaRobots&&(E8(N.attributes.name)==="robots"||E8(N.attributes.name)==="googlebot"||E8(N.attributes.name)===
"bingbot")||t.headMetaHttpEquiv&&N.attributes["http-equiv"]!==void 0||t.headMetaAuthorship&&(E8(N.attributes.name)==="author"||E8(N.attributes.name)==="generator"||E8(N.attributes.name)==="framework"||E8(N.attributes.name)==="publisher"||E8(N.attributes.name)==="progid"||E8(N.attributes.property).match(/^article:/)||E8(N.attributes.property).match(/^product:/))||t.headMetaVerification&&(E8(N.attributes.name)==="google-site-verification"||E8(N.attributes.name)==="yandex-verification"||E8(N.attributes.name)===
"csrf-token"||E8(N.attributes.name)==="p:domain_verify"||E8(N.attributes.name)==="verify-v1"||E8(N.attributes.name)==="verification"||E8(N.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
GZ=function(N,t){var O=t.doc,H=t.mirror,A=t.blockClass,Z=t.blockSelector,U=t.maskTextClass,C=t.maskTextSelector,F=t.skipChild===void 0?!1:t.skipChild,g=t.inlineStylesheet===void 0?!0:t.inlineStylesheet,B=t.maskInputOptions===void 0?{}:t.maskInputOptions,c=t.maskTextFn,u=t.maskInputFn,S=t.slimDOMOptions,b=t.dataURLOptions===void 0?{}:t.dataURLOptions,z=t.inlineImages===void 0?!1:t.inlineImages,w=t.recordCanvas===void 0?!1:t.recordCanvas,P=t.onSerialize,x=t.onIframeLoad,l=t.iframeLoadTimeout===void 0?
5E3:t.iframeLoadTimeout,I=t.onStylesheetLoad,r=t.stylesheetLoadTimeout===void 0?5E3:t.stylesheetLoadTimeout,E=t.keepIframeSrcFn===void 0?function(){return!1}:t.keepIframeSrcFn,J=t.newlyAddedElement===void 0?!1:t.newlyAddedElement,CN=t.cssCaptured===void 0?!1:t.cssCaptured,B4=t.needsMask,zM=t.preserveWhiteSpace===void 0?!0:t.preserveWhiteSpace;
B4||(B4=kkS(N,U,C,B4===void 0));var jy=r$Q(N,{doc:O,mirror:H,blockClass:A,blockSelector:Z,needsMask:B4,inlineStylesheet:g,maskInputOptions:B,maskTextFn:c,maskInputFn:u,dataURLOptions:b,inlineImages:z,recordCanvas:w,keepIframeSrcFn:E,newlyAddedElement:J,cssCaptured:CN});if(!jy)return console.warn(N,"not serialized"),null;J=H.nodeMetaMap.has(N)?H.getId(N):lPl(jy,S)||!zM&&jy.type===3&&!jy.textContent.replace(/^\s+|\s+$/gm,"").length?-2:hDp++;t=Object.assign(jy,{id:J});H.add(N,t);if(J===-2)return null;
P&&P(N);J=!F;t.type===2&&(J=J&&!t.needBlock,delete t.needBlock,(CN=n0(N))&&re(CN)&&(t.isShadowHost=!0));if((t.type===0||t.type===2)&&J){S.headWhitespace&&t.type===2&&t.tagName==="head"&&(zM=!1);F={doc:O,mirror:H,blockClass:A,blockSelector:Z,needsMask:B4,maskTextClass:U,maskTextSelector:C,skipChild:F,inlineStylesheet:g,maskInputOptions:B,maskTextFn:c,maskInputFn:u,slimDOMOptions:S,dataURLOptions:b,inlineImages:z,recordCanvas:w,preserveWhiteSpace:zM,onSerialize:P,onIframeLoad:x,iframeLoadTimeout:l,
onStylesheetLoad:I,stylesheetLoadTimeout:r,keepIframeSrcFn:E,cssCaptured:!1};if(t.type!==2||t.tagName!=="textarea"||t.attributes.value===void 0)for(t.type===2&&t.attributes._cssText!==void 0&&typeof t.attributes._cssText==="string"&&(F.cssCaptured=!0),J=_.D(Array.from(lq(N))),CN=J.next();!CN.done;CN=J.next())(CN=GZ(CN.value,F))&&t.childNodes.push(CN);J=null;if(N.nodeType===N.ELEMENT_NODE&&(J=n0(N))){CN=_.D(Array.from(lq(J)));for(var c4=CN.next();!c4.done;c4=CN.next())if(c4=GZ(c4.value,F))re(J)&&(c4.isShadow=
!0),t.childNodes.push(c4)}}(F=In(N))&&Wv(F)&&re(F)&&(t.isShadow=!0);t.type===2&&t.tagName==="iframe"&&qPz(N,function(){var XO=N.contentDocument;XO&&x&&(XO=GZ(XO,{doc:XO,mirror:H,blockClass:A,blockSelector:Z,needsMask:B4,maskTextClass:U,maskTextSelector:C,skipChild:!1,inlineStylesheet:g,maskInputOptions:B,maskTextFn:c,maskInputFn:u,slimDOMOptions:S,dataURLOptions:b,inlineImages:z,recordCanvas:w,preserveWhiteSpace:zM,onSerialize:P,onIframeLoad:x,iframeLoadTimeout:l,onStylesheetLoad:I,stylesheetLoadTimeout:r,
keepIframeSrcFn:E}))&&x(N,XO)},l);
t.type===2&&t.tagName==="link"&&typeof t.attributes.rel==="string"&&(t.attributes.rel==="stylesheet"||t.attributes.rel==="preload"&&typeof t.attributes.href==="string"&&B3Q(t.attributes.href)==="css")&&fP9(N,function(){if(I){var XO=GZ(N,{doc:O,mirror:H,blockClass:A,blockSelector:Z,needsMask:B4,maskTextClass:U,maskTextSelector:C,skipChild:!1,inlineStylesheet:g,maskInputOptions:B,maskTextFn:c,maskInputFn:u,slimDOMOptions:S,dataURLOptions:b,inlineImages:z,recordCanvas:w,preserveWhiteSpace:zM,onSerialize:P,
onIframeLoad:x,iframeLoadTimeout:l,onStylesheetLoad:I,stylesheetLoadTimeout:r,keepIframeSrcFn:E});XO&&I(N,XO)}},r);
return t};
Q7x=function(N){var t=document;N=N||{};var O=N.maskAllInputs===void 0?!1:N.maskAllInputs,H=N.slimDOM===void 0?!1:N.slimDOM;return GZ(t,{doc:t,mirror:N.mirror===void 0?new Rn:N.mirror,blockClass:N.blockClass===void 0?"rr-block":N.blockClass,blockSelector:N.blockSelector===void 0?null:N.blockSelector,maskTextClass:N.maskTextClass===void 0?"rr-mask":N.maskTextClass,maskTextSelector:N.maskTextSelector===void 0?null:N.maskTextSelector,skipChild:!1,inlineStylesheet:N.inlineStylesheet===void 0?!0:N.inlineStylesheet,
maskInputOptions:O===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:O===!1?{password:!0}:O,maskTextFn:N.maskTextFn,maskInputFn:N.maskInputFn,slimDOMOptions:H===!0||H==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:H==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:H===!1?{}:H,dataURLOptions:N.dataURLOptions,
inlineImages:N.inlineImages===void 0?!1:N.inlineImages,recordCanvas:N.recordCanvas===void 0?!1:N.recordCanvas,preserveWhiteSpace:N.preserveWhiteSpace,onSerialize:N.onSerialize,onIframeLoad:N.onIframeLoad,iframeLoadTimeout:N.iframeLoadTimeout,onStylesheetLoad:N.onStylesheetLoad,stylesheetLoadTimeout:N.stylesheetLoadTimeout,keepIframeSrcFn:N.keepIframeSrcFn===void 0?function(){return!1}:N.keepIframeSrcFn,
newlyAddedElement:!1})};
vv=function(N,t,O){O=O===void 0?document:O;var H={capture:!0,passive:!0};O.addEventListener(N,t,H);return function(){return O.removeEventListener(N,t,H)}};
Jv=function(N,t,O){O=O===void 0?{}:O;var H=null,A=0;return function(){var Z=_.E1.apply(0,arguments),U=Date.now();A||O.leading!==!1||(A=U);var C=t-(U-A),F=this;C<=0||C>t?(H&&(clearTimeout(H),H=null),A=U,N.apply(F,Z)):H||O.trailing===!1||(H=setTimeout(function(){A=O.leading===!1?0:Date.now();H=null;N.apply(F,Z)},C))}};
ms4=function(N,t,O,H,A){A=A===void 0?window:A;var Z=A.Object.getOwnPropertyDescriptor(N,t);A.Object.defineProperty(N,t,H?O:{set:function(U){var C=this;setTimeout(function(){O.set.call(C,U)},0);
Z&&Z.set&&Z.set.call(this,U)}});
return function(){return ms4(N,t,Z||{},!0)}};
EFM=function(N){var t=N.document,O,H,A,Z;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:N.pageXOffset!==void 0?N.pageXOffset:t.documentElement.scrollLeft||(t==null?void 0:t.body)&&((O=QB(t.body))==null?void 0:O.scrollLeft)||(t==null?void 0:(H=t.body)==null?void 0:H.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:N.pageYOffset!==void 0?N.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||(t==null?void 0:t.body)&&((A=QB(t.body))==null?void 0:A.scrollTop)||(t==
null?void 0:(Z=t.body)==null?void 0:Z.scrollTop)||0}};
Gkz=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
RDv=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
vF9=function(N){return N?N.nodeType===N.ELEMENT_NODE?N:QB(N):null};
on=function(N,t,O,H){if(!N)return!1;N=vF9(N);if(!N)return!1;try{if(typeof t==="string"){if(N.classList.contains(t)||H&&N.closest("."+t)!==null)return!0}else if(xsO(N,t,H))return!0}catch(A){}return O&&(N.matches(O)||H&&N.closest(O)!==null)?!0:!1};
J$y=function(N,t,O){return N.tagName==="TITLE"&&O.headTitleMutations?!0:t.getId(N)===-2};
oF4=function(N,t){if(Wv(N))return!1;var O=t.getId(N);return t.has(O)?(O=In(N))&&O.nodeType===N.DOCUMENT_NODE?!1:O?oF4(O,t):!0:!0};
s7t=function(){var N=N===void 0?window:N;"NodeList"in N&&!N.NodeList.prototype.forEach&&(N.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in N&&!N.DOMTokenList.prototype.forEach&&(N.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
N5l=function(N,t){return!(N.nodeName!=="LINK"||N.nodeType!==N.ELEMENT_NODE||!N.getAttribute||N.getAttribute("rel")!=="stylesheet"||!t.nodeMetaMap.get(N))};
OfN=function(N){var t=null,O;"getRootNode"in N&&((O=tzN(N))==null?void 0:O.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&f0(tzN(N))&&(t=f0(tzN(N)));return t};
HfQ=function(N){var t=N.ownerDocument;if(t){if(!(t=Dsv(t,"contains")(N)))if(t=N.ownerDocument){for(var O;O=OfN(N);)N=O;t=Dsv(t,"contains")(N)}else t=!1}else t=!1;return t};
A8y=function(N,t){N.delete(t);lq(t).forEach(function(O){return A8y(N,O)})};
ZfS=function(N,t){for(var O=[N];O.length;)N=O.pop(),t.has(N)||(t.add(N),lq(N).forEach(function(H){return O.push(H)}))};
VzG=function(N,t){N.size===0?N=!1:N=(t=In(t))?N.has(t):!1;return N};
UKQ=function(N,t){return N.size===0?!1:DKv(N,t)};
DKv=function(N,t){return(t=In(t))?N.has(t)?!0:DKv(N,t):!1};
s8=function(N){try{if("composedPath"in N){var t=N.composedPath();if(t.length)return t[0]}else if("path"in N&&N.path.length)return N.path[0]}catch(O){}return N&&N.target};
KgQ=function(N,t){var O=new CvQ;N0.push(O);O.init(N);N=new (A$z("MutationObserver").constructor)(tH(O.processMutations.bind(O)));N.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return N};
dKM=function(N){var t=N.mousemoveCb;var O=N.sampling;var H=N.doc;var A=N.mirror;if(O.mousemove===!1)return function(){};
var Z=[],U,C=Jv(tH(function(g){var B=Date.now()-U;t(Z.map(function(c){c.timeOffset-=B;return c}),g);
Z=[];U=null}),typeof O.mousemoveCallback==="number"?O.mousemoveCallback:500);
N=tH(Jv(tH(function(g){var B=s8(g),c=g.changedTouches?g.changedTouches[0]:g,u=c.clientX;c=c.clientY;U||(U=FgM());Z.push({x:u,y:c,id:A.getId(B),timeOffset:FgM()-U});C(typeof DragEvent!=="undefined"&&g instanceof DragEvent?12:g instanceof MouseEvent?1:6)}),typeof O.mousemove==="number"?O.mousemove:50,{trailing:!1}));
var F=[vv("mousemove",N,H),vv("touchmove",N,H),vv("drag",N,H)];return tH(function(){F.forEach(function(g){return g()})})};
gES=function(N){var t=N.mouseInteractionCb;var O=N.doc;var H=N.mirror;var A=N.blockClass;var Z=N.blockSelector;N=N.sampling;if(N.mouseInteraction===!1)return function(){};
var U=N.mouseInteraction===!0||N.mouseInteraction===void 0?{}:N.mouseInteraction,C=[],F=null,g=function(B){return function(c){var u=s8(c);if(!on(u,A,Z,!0)){var S=null,b=B;if("pointerType"in c){switch(c.pointerType){case "mouse":S=0;break;case "touch":S=2;break;case "pen":S=1}S===2&&(Ol[B]===1?b="TouchStart":Ol[B]===0&&(b="TouchEnd"))}else c.changedTouches&&(S=2);if(S!==null){if(F=S,b.startsWith("Touch")&&S===2||b.startsWith("Mouse")&&S===0)S=null}else Ol[B]===2&&(S=F,F=null);if(c=c.changedTouches?
c.changedTouches[0]:c)u=H.getId(u),tH(t)(Object.assign({},{type:Ol[b],id:u,x:c.clientX,y:c.clientY},S!==null&&{pointerType:S}))}}};
Object.keys(Ol).filter(function(B){return Number.isNaN(Number(B))&&!B.endsWith("_Departed")&&U[B]!==!1}).forEach(function(B){var c=B.toLowerCase(),u=g(B);
if(window.PointerEvent)switch(Ol[B]){case 1:case 0:c=c.replace("mouse","pointer");break;case 7:case 9:return}C.push(vv(c,u,O))});
return tH(function(){C.forEach(function(B){return B()})})};
y8S=function(N){var t=N.scrollCb;var O=N.doc;var H=N.mirror;var A=N.blockClass;var Z=N.blockSelector;return vv("scroll",tH(Jv(tH(function(U){var C=s8(U);C&&!on(C,A,Z,!0)&&(U=H.getId(C),C===O&&O.defaultView?(C=EFM(O.defaultView),t({id:U,x:C.left,y:C.top})):t({id:U,x:C.scrollLeft,y:C.scrollTop}))}),N.sampling.scroll||100)),O)};
B5G=function(N,t){var O=N.viewportResizeCb;var H=-1,A=-1;return vv("resize",tH(Jv(tH(function(){var Z=Gkz(),U=RDv();if(H!==Z||A!==U)O({width:Number(U),height:Number(Z)}),H=Z,A=U}),200)),t.win)};
jjQ=function(N){function t(w){var P=s8(w),x=w.isTrusted,l=P&&P.tagName;P&&l==="OPTION"&&(P=QB(P));if(!(!P||!l||c8G.indexOf(l)<0||on(P,U,C,!0)||P.classList.contains(F)||g&&P.matches(g))){var I=P.value,r=!1;w=y$v(P)||"";if(w==="radio"||w==="checkbox")r=P.checked;else if(B[l.toLowerCase()]||B[w])I=dsv({element:P,maskInputOptions:B,tagName:l,type:w,value:I,maskInputFn:c});O(P,S?{text:I,isChecked:r,userTriggered:x}:{text:I,isChecked:r});x=P.name;w==="radio"&&x&&r&&A.querySelectorAll('input[type="radio"][name="'+
x+'"]').forEach(function(E){if(E!==P){var J=E.value;O(E,S?{text:J,isChecked:!r,userTriggered:!1}:{text:J,isChecked:!r})}})}}
function O(w,P){var x=$Kx.get(w);x&&x.text===P.text&&x.isChecked===P.isChecked||($Kx.set(w,P),w=Z.getId(w),tH(H)(Object.assign({},P,{id:w})))}
var H=N.inputCb;var A=N.doc;var Z=N.mirror;var U=N.blockClass;var C=N.blockSelector;var F=N.ignoreClass;var g=N.ignoreSelector;var B=N.maskInputOptions;var c=N.maskInputFn;var u=N.sampling;var S=N.userTriggeredOnInput;var b=(u.input==="last"?["change"]:["input","change"]).map(function(w){return vv(w,tH(t),A)}),z=A.defaultView;
if(!z)return function(){b.forEach(function(w){return w()})};
N=z.Object.getOwnPropertyDescriptor(z.HTMLInputElement.prototype,"value");u=[[z.HTMLInputElement.prototype,"value"],[z.HTMLInputElement.prototype,"checked"],[z.HTMLSelectElement.prototype,"value"],[z.HTMLTextAreaElement.prototype,"value"],[z.HTMLSelectElement.prototype,"selectedIndex"],[z.HTMLOptionElement.prototype,"selected"]];N&&N.set&&b.push.apply(b,_.W6(u.map(function(w){return ms4(w[0],w[1],{set:function(){tH(t)({target:this,isTrusted:!1})}},!1,z)})));
return tH(function(){b.forEach(function(w){return w()})})};
uxl=function(N){var t=[],O,H,A,Z;ifl("CSSGroupingRule")&&((O=N.parentRule)==null?void 0:(H=O.constructor)==null?void 0:H.name)==="CSSGroupingRule"||ifl("CSSMediaRule")&&N.parentRule instanceof CSSMediaRule||ifl("CSSSupportsRule")&&N.parentRule instanceof CSSSupportsRule||ifl("CSSConditionRule")&&((A=N.parentRule)==null?void 0:(Z=A.constructor)==null?void 0:Z.name)==="CSSConditionRule"?(N=Array.from(N.parentRule.cssRules).indexOf(N),t.unshift(N)):N.parentStyleSheet&&(N=Array.from(N.parentStyleSheet.cssRules).indexOf(N),
t.unshift(N));return t};
HC=function(N,t,O){var H,A;if(!N)return{};N.ownerNode?H=t.getId(N.ownerNode):A=O.getId(N);return{styleId:A,id:H}};
hfl=function(N,t){var O=N.styleSheetRuleCb;var H=N.mirror;var A=N.stylesheetManager;var Z=t.win;if(!Z.CSSStyleSheet||!Z.CSSStyleSheet.prototype)return function(){};
var U=Z.CSSStyleSheet.prototype.insertRule;Z.CSSStyleSheet.prototype.insertRule=new AH(U,{apply:tH(function(u,S,b){var z=_.D(b),w=z.next().value;z=z.next().value;var P=HC(S,H,A.styleMirror),x=P.id;P=P.styleId;(x&&x!==-1||P&&P!==-1)&&O({id:x,styleId:P,adds:[{rule:w,index:z}]});return u.apply(S,b)})});
Z.CSSStyleSheet.prototype.addRule=function(u,S,b){b=b===void 0?this.cssRules.length:b;return Z.CSSStyleSheet.prototype.insertRule.apply(this,[u+" { "+S+" }",b])};
var C=Z.CSSStyleSheet.prototype.deleteRule;Z.CSSStyleSheet.prototype.deleteRule=new AH(C,{apply:tH(function(u,S,b){var z=_.D(b).next().value,w=HC(S,H,A.styleMirror),P=w.id;w=w.styleId;(P&&P!==-1||w&&w!==-1)&&O({id:P,styleId:w,removes:[{index:z}]});return u.apply(S,b)})});
Z.CSSStyleSheet.prototype.removeRule=function(u){return Z.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};
if(Z.CSSStyleSheet.prototype.replace){var F=Z.CSSStyleSheet.prototype.replace;Z.CSSStyleSheet.prototype.replace=new AH(F,{apply:tH(function(u,S,b){var z=_.D(b).next().value,w=HC(S,H,A.styleMirror),P=w.id;w=w.styleId;(P&&P!==-1||w&&w!==-1)&&O({id:P,styleId:w,replace:z});return u.apply(S,b)})})}if(Z.CSSStyleSheet.prototype.replaceSync){var g=Z.CSSStyleSheet.prototype.replaceSync;
Z.CSSStyleSheet.prototype.replaceSync=new AH(g,{apply:tH(function(u,S,b){var z=_.D(b).next().value,w=HC(S,H,A.styleMirror),P=w.id;w=w.styleId;(P&&P!==-1||w&&w!==-1)&&O({id:P,styleId:w,replaceSync:z});return u.apply(S,b)})})}var B={};
SNQ("CSSGroupingRule")?B.CSSGroupingRule=Z.CSSGroupingRule:(SNQ("CSSMediaRule")&&(B.CSSMediaRule=Z.CSSMediaRule),SNQ("CSSConditionRule")&&(B.CSSConditionRule=Z.CSSConditionRule),SNQ("CSSSupportsRule")&&(B.CSSSupportsRule=Z.CSSSupportsRule));var c={};Object.entries(B).forEach(function(u){var S=_.D(u);u=S.next().value;S=S.next().value;c[u]={insertRule:S.prototype.insertRule,deleteRule:S.prototype.deleteRule};S.prototype.insertRule=new AH(c[u].insertRule,{apply:tH(function(b,z,w){var P=_.D(w),x=P.next().value;
P=P.next().value;var l=HC(z.parentStyleSheet,H,A.styleMirror),I=l.id;l=l.styleId;(I&&I!==-1||l&&l!==-1)&&O({id:I,styleId:l,adds:[{rule:x,index:[].concat(_.W6(uxl(z)),[P||0])}]});return b.apply(z,w)})});
S.prototype.deleteRule=new AH(c[u].deleteRule,{apply:tH(function(b,z,w){var P=_.D(w).next().value,x=HC(z.parentStyleSheet,H,A.styleMirror),l=x.id;x=x.styleId;(l&&l!==-1||x&&x!==-1)&&O({id:l,styleId:x,removes:[{index:[].concat(_.W6(uxl(z)),[P])}]});return b.apply(z,w)})})});
return tH(function(){Z.CSSStyleSheet.prototype.insertRule=U;Z.CSSStyleSheet.prototype.deleteRule=C;F&&(Z.CSSStyleSheet.prototype.replace=F);g&&(Z.CSSStyleSheet.prototype.replaceSync=g);Object.entries(B).forEach(function(u){var S=_.D(u);u=S.next().value;S=S.next().value;S.prototype.insertRule=c[u].insertRule;S.prototype.deleteRule=c[u].deleteRule})})};
bfQ=function(N,t){var O=N.mirror;var H=N.stylesheetManager;var A=null;A=t.nodeName==="#document"?O.getId(t):O.getId(f0(t));var Z,U,C;N=t.nodeName==="#document"?(Z=t.defaultView)==null?void 0:Z.Document:(U=t.ownerDocument)==null?void 0:(C=U.defaultView)==null?void 0:C.ShadowRoot;var F=(N==null?0:N.prototype)?Object.getOwnPropertyDescriptor(N==null?void 0:N.prototype,"adoptedStyleSheets"):void 0;if(A===null||A===-1||!N||!F)return function(){};
Object.defineProperty(t,"adoptedStyleSheets",{configurable:F.configurable,enumerable:F.enumerable,get:function(){var g;return(g=F.get)==null?void 0:g.call(this)},
set:function(g){var B,c=(B=F.set)==null?void 0:B.call(this,g);if(A!==null&&A!==-1)try{Mzg(H,g,A)}catch(u){}return c}});
return tH(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:F.configurable,enumerable:F.enumerable,get:F.get,set:F.set})})};
pLv=function(N,t){var O=N.styleDeclarationCb;var H=N.mirror;var A=N.ignoreCSSAttributes;var Z=N.stylesheetManager;var U=t.win;var C=U.CSSStyleDeclaration.prototype.setProperty;U.CSSStyleDeclaration.prototype.setProperty=new AH(C,{apply:tH(function(g,B,c){var u=_.D(c),S=u.next().value,b=u.next().value;u=u.next().value;if(A.has(S))return C.apply(B,[S,b,u]);var z,w=HC((z=B.parentRule)==null?void 0:z.parentStyleSheet,H,Z.styleMirror);z=w.id;w=w.styleId;(z&&z!==-1||w&&w!==-1)&&O({id:z,styleId:w,set:{property:S,
value:b,priority:u},index:uxl(B.parentRule)});return g.apply(B,c)})});
var F=U.CSSStyleDeclaration.prototype.removeProperty;U.CSSStyleDeclaration.prototype.removeProperty=new AH(F,{apply:tH(function(g,B,c){var u=_.D(c).next().value;if(A.has(u))return F.apply(B,[u]);var S,b=HC((S=B.parentRule)==null?void 0:S.parentStyleSheet,H,Z.styleMirror);S=b.id;b=b.styleId;(S&&S!==-1||b&&b!==-1)&&O({id:S,styleId:b,remove:{property:u},index:uxl(B.parentRule)});return g.apply(B,c)})});
return tH(function(){U.CSSStyleDeclaration.prototype.setProperty=C;U.CSSStyleDeclaration.prototype.removeProperty=F})};
LgS=function(N){var t=N.mediaInteractionCb;var O=N.blockClass;var H=N.blockSelector;var A=N.mirror;var Z=N.sampling;N=N.doc;var U=tH(function(F){return Jv(tH(function(g){if((g=s8(g))&&!on(g,O,H,!0)){var B=g.currentTime,c=g.volume,u=g.muted,S=g.playbackRate,b=g.loop;t({type:F,id:A.getId(g),currentTime:B,volume:c,muted:u,playbackRate:S,loop:b})}}),Z.media||500)}),C=[vv("play",U(0),N),
vv("pause",U(1),N),vv("seeked",U(2),N),vv("volumechange",U(3),N),vv("ratechange",U(4),N)];return tH(function(){C.forEach(function(F){return F()})})};
zfg=function(N){var t=N.fontCb;N=N.doc;var O=N.defaultView;if(!O)return function(){};
var H=[],A=new WeakMap,Z=O.FontFace;O.FontFace=function(U,C,F){var g=new Z(U,C,F);A.set(g,{family:U,buffer:typeof C!=="string",descriptors:F,fontSource:typeof C==="string"?C:JSON.stringify(Array.from(new Uint8Array(C)))});return g};
N=qT(N.fonts,"add",function(U){return function(C){setTimeout(tH(function(){var F=A.get(C);F&&(t(F),A.delete(C))}),0);
return U.apply(this,[C])}});
H.push(function(){O.FontFace=Z});
H.push(N);return tH(function(){H.forEach(function(U){return U()})})};
YN4=function(N){var t=N.doc,O=N.mirror,H=N.blockClass,A=N.blockSelector,Z=N.selectionCb,U=!0;N=tH(function(){var C=t.getSelection();if(C&&!(U&&(C==null?0:C.isCollapsed))){U=C.isCollapsed||!1;for(var F=[],g=C.rangeCount||0,B=0;B<g;B++){var c=C.getRangeAt(B),u=c.startContainer,S=c.startOffset,b=c.endContainer;c=c.endOffset;on(u,H,A,!0)||on(b,H,A,!0)||F.push({start:O.getId(u),startOffset:S,end:O.getId(b),endOffset:c})}Z({ranges:F})}});
N();return vv("selectionchange",N)};
aj9=function(N){var t=N.doc;var O=N.customElementCb;return(N=t.defaultView)&&N.customElements?qT(N.customElements,"define",function(H){return function(A,Z,U){try{O({define:{name:A}})}catch(C){console.warn("Custom element callback failed for "+A)}return H.apply(this,[A,Z,U])}}):function(){}};
T5v=function(N,t){var O=N.mutationCb,H=N.mousemoveCb,A=N.mouseInteractionCb,Z=N.scrollCb,U=N.viewportResizeCb,C=N.inputCb,F=N.mediaInteractionCb,g=N.styleSheetRuleCb,B=N.styleDeclarationCb,c=N.canvasMutationCb,u=N.fontCb,S=N.selectionCb,b=N.customElementCb;N.mutationCb=function(){var z=_.E1.apply(0,arguments);t.mutation&&t.mutation.apply(t,_.W6(z));O.apply(null,_.W6(z))};
N.mousemoveCb=function(){var z=_.E1.apply(0,arguments);t.mousemove&&t.mousemove.apply(t,_.W6(z));H.apply(null,_.W6(z))};
N.mouseInteractionCb=function(){var z=_.E1.apply(0,arguments);t.mouseInteraction&&t.mouseInteraction.apply(t,_.W6(z));A.apply(null,_.W6(z))};
N.scrollCb=function(){var z=_.E1.apply(0,arguments);t.scroll&&t.scroll.apply(t,_.W6(z));Z.apply(null,_.W6(z))};
N.viewportResizeCb=function(){var z=_.E1.apply(0,arguments);t.viewportResize&&t.viewportResize.apply(t,_.W6(z));U.apply(null,_.W6(z))};
N.inputCb=function(){var z=_.E1.apply(0,arguments);t.input&&t.input.apply(t,_.W6(z));C.apply(null,_.W6(z))};
N.mediaInteractionCb=function(){var z=_.E1.apply(0,arguments);t.mediaInteaction&&t.mediaInteaction.apply(t,_.W6(z));F.apply(null,_.W6(z))};
N.styleSheetRuleCb=function(){var z=_.E1.apply(0,arguments);t.styleSheetRule&&t.styleSheetRule.apply(t,_.W6(z));g.apply(null,_.W6(z))};
N.styleDeclarationCb=function(){var z=_.E1.apply(0,arguments);t.styleDeclaration&&t.styleDeclaration.apply(t,_.W6(z));B.apply(null,_.W6(z))};
N.canvasMutationCb=function(){var z=_.E1.apply(0,arguments);t.canvasMutation&&t.canvasMutation.apply(t,_.W6(z));c.apply(null,_.W6(z))};
N.fontCb=function(){var z=_.E1.apply(0,arguments);t.font&&t.font.apply(t,_.W6(z));u.apply(null,_.W6(z))};
N.selectionCb=function(){var z=_.E1.apply(0,arguments);t.selection&&t.selection.apply(t,_.W6(z));S.apply(null,_.W6(z))};
N.customElementCb=function(){var z=_.E1.apply(0,arguments);t.customElement&&t.customElement.apply(t,_.W6(z));b.apply(null,_.W6(z))}};
wLy=function(N,t){t=t===void 0?{}:t;var O=N.doc.defaultView;if(!O)return function(){};
T5v(N,t);var H;N.recordDOM&&(H=KgQ(N,N.doc));var A=dKM(N),Z=gES(N),U=y8S(N),C=B5G(N,{win:O}),F=jjQ(N),g=LgS(N),B=function(){},c=function(){},u=function(){},S=function(){};
N.recordDOM&&(B=hfl(N,{win:O}),c=bfQ(N,N.doc),u=pLv(N,{win:O}),N.collectFonts&&(S=zfg(N)));var b=YN4(N),z=aj9(N),w=[];N=_.D(N.plugins);for(t=N.next();!t.done;t=N.next())t=t.value,w.push(t.observer(t.callback,O,t.options));return tH(function(){N0.forEach(function(x){return x.reset()});
var P;(P=H)==null||P.disconnect();A();Z();U();C();F();g();B();c();u();S();b();z();w.forEach(function(x){return x()})})};
ifl=function(N){return typeof window[N]!=="undefined"};
SNQ=function(N){return!!(typeof window[N]!=="undefined"&&window[N].prototype&&"insertRule"in window[N].prototype&&"deleteRule"in window[N].prototype)};
efg=function(N){N=new Uint8Array(N);for(var t="",O=0;O<N.byteLength;O++)t+=String.fromCharCode(N[O]);return btoa(t)};
Pv9=function(N,t,O){if(N instanceof Array)return N.map(function(A){return Pv9(A,t,O)});
if(N!==null){if(N instanceof Float32Array||N instanceof Float64Array||N instanceof Int32Array||N instanceof Uint32Array||N instanceof Uint8Array||N instanceof Uint16Array||N instanceof Int16Array||N instanceof Int8Array||N instanceof Uint8ClampedArray)return{rr_type:N.constructor.name,args:[Object.values(N)]};if(N instanceof ArrayBuffer){var H=N.constructor.name;N=efg(N);return{rr_type:H,base64:N}}if(N instanceof DataView)return{rr_type:N.constructor.name,args:[Pv9(N.buffer,t,O),N.byteOffset,N.byteLength]};
if(N instanceof HTMLImageElement)return{rr_type:N.constructor.name,src:N.src};if(N instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:N.toDataURL()};if(N instanceof ImageData)return{rr_type:N.constructor.name,args:[Pv9(N.data,t,O),N.width,N.height]};if(XLG(N,t)||typeof N==="object")return H=N.constructor.name,N=xKp(N,t,O),{rr_type:H,index:N}}return N};
qN4=function(N,t,O,H){for(var A=[],Z=_.D(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype)),U=Z.next(),C={};!U.done;C={prop$jscomp$58:void 0},U=Z.next()){C.prop$jscomp$58=U.value;try{if(typeof t.CanvasRenderingContext2D.prototype[C.prop$jscomp$58]==="function"){var F=qT(t.CanvasRenderingContext2D.prototype,C.prop$jscomp$58,function(g){return function(B){return function(){var c=_.E1.apply(0,arguments),u=this;on(this.canvas,O,H,!0)||setTimeout(function(){var S=k2S(c,t,u);N(u.canvas,{type:ZA["2D"],
property:g.prop$jscomp$58,args:S})},0);
return B.apply(this,c)}}}(C));
A.push(F)}}catch(g){U=ms4(t.CanvasRenderingContext2D.prototype,C.prop$jscomp$58,{set:function(B){return function(c){N(this.canvas,{type:ZA["2D"],property:B.prop$jscomp$58,args:[c],setter:!0})}}(C)}),A.push(U)}}return function(){A.forEach(function(g){return g()})}};
fjO=function(N,t,O,H){var A=[];try{var Z=qT(N.HTMLCanvasElement.prototype,"getContext",function(U){return function(C){var F=_.E1.apply(1,arguments);if(!on(this,t,O,!0)){var g=C==="experimental-webgl"?"webgl":C;"__context"in this||(this.__context=g);H&&["webgl","webgl2"].includes(g)&&(F[0]&&typeof F[0]==="object"?(g=F[0],g.preserveDrawingBuffer||(g.preserveDrawingBuffer=!0)):F.splice(0,1,{preserveDrawingBuffer:!0}))}return U.apply(this,[C].concat(_.W6(F)))}});
A.push(Z)}catch(U){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){A.forEach(function(U){return U()})}};
nES=function(N,t,O,H,A,Z){for(var U=[],C=_.D(Object.getOwnPropertyNames(N)),F=C.next(),g={};!F.done;g={prop$jscomp$59:void 0},F=C.next())if(g.prop$jscomp$59=F.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(g.prop$jscomp$59))try{if(typeof N[g.prop$jscomp$59]==="function"){var B=qT(N,g.prop$jscomp$59,function(c){return function(u){return function(){var S=_.E1.apply(0,arguments),b=u.apply(this,S);xKp(b,Z,this);"tagName"in this.canvas&&!on(this.canvas,H,A,!0)&&(S=
k2S(S,Z,this),O(this.canvas,{type:t,property:c.prop$jscomp$59,args:S}));return b}}}(g));
U.push(B)}}catch(c){F=ms4(N,g.prop$jscomp$59,{set:function(u){return function(S){O(this.canvas,{type:t,property:u.prop$jscomp$59,args:[S],setter:!0})}}(g)}),U.push(F)}return U};
Wgx=function(N,t,O,H){var A=[];A.push.apply(A,_.W6(nES(t.WebGLRenderingContext.prototype,1,N,O,H,t)));typeof t.WebGL2RenderingContext!=="undefined"&&A.push.apply(A,_.W6(nES(t.WebGL2RenderingContext.prototype,2,N,O,H,t)));return function(){A.forEach(function(Z){return Z()})}};
Ogx=function(N){var t=N=N===void 0?{}:N,O=t.emit,H=t.checkoutEveryNms,A=t.checkoutEveryNth,Z=t.blockClass===void 0?"rr-block":t.blockClass,U=t.blockSelector===void 0?null:t.blockSelector,C=t.ignoreClass===void 0?"rr-ignore":t.ignoreClass,F=t.ignoreSelector===void 0?null:t.ignoreSelector,g=t.maskTextClass===void 0?"rr-mask":t.maskTextClass,B=t.maskTextSelector===void 0?null:t.maskTextSelector,c=t.inlineStylesheet===void 0?!0:t.inlineStylesheet,u=t.maskAllInputs,S=t.maskInputOptions,b=t.slimDOMOptions,
z=t.maskInputFn,w=t.maskTextFn,P=t.hooks,x=t.packFn,l=t.sampling===void 0?{}:t.sampling,I=t.dataURLOptions===void 0?{}:t.dataURLOptions,r=t.mousemoveWait,E=t.recordDOM===void 0?!0:t.recordDOM,J=t.recordCanvas===void 0?!1:t.recordCanvas,CN=t.recordCrossOriginIframes===void 0?!1:t.recordCrossOriginIframes,B4=t.recordAfter===void 0?N.recordAfter==="DOMContentLoaded"?N.recordAfter:"load":t.recordAfter,zM=t.userTriggeredOnInput===void 0?!1:t.userTriggeredOnInput,jy=t.collectFonts===void 0?!1:t.collectFonts,
c4=t.inlineImages===void 0?!1:t.inlineImages,XO=t.plugins,kx=t.keepIframeSrcFn===void 0?function(){return!1}:t.keepIframeSrcFn,fN=t.ignoreCSSAttributes===void 0?new Set([]):t.ignoreCSSAttributes;
Vm=t.errorHandler;var gf=CN?window.parent===window:!0,yr=!1;if(!gf)try{window.parent.document&&(yr=!1)}catch(c0){yr=!0}if(gf&&!O)throw Error("$e");if(!gf&&!yr)return function(){};
r!==void 0&&l.mousemove===void 0&&(l.mousemove=r);DA.reset();var sS=u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:S!==void 0?S:{password:!0},$X=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all",headTitleMutations:b==="all"}:
b?b:{};s7t();var pR,wf=0,b1=function(c0){for(var Am=_.D(XO||[]),Rl=Am.next();!Rl.done;Rl=Am.next())Rl=Rl.value,Rl.eventProcessor&&(c0=Rl.eventProcessor(c0));x&&!yr&&(c0=x(c0));return c0};
Ul=function(c0,Am){c0.timestamp=FgM();var Rl;((Rl=N0[0])==null?0:Rl.isFrozen())&&c0.type!==2&&(c0.type!==3||c0.data.source!==0)&&N0.forEach(function(Ox){return Ox.unfreeze()});
gf?O==null||O(b1(c0),Am):yr&&(Am={type:"rrweb",event:b1(c0),origin:window.location.origin,isCheckout:Am},window.parent.postMessage(Am,"*"));c0.type===2?(pR=c0,wf=0):c0.type!==3||c0.data.source===0&&c0.data.isAttachIframe||(wf++,c0=H&&c0.timestamp-pR.timestamp>H,(A&&wf>=A||c0)&&r8N(!0))};
var $r=function(c0){Ul({type:3,data:Object.assign({},{source:0},c0)})},US=function(c0){return Ul({type:3,
data:Object.assign({},{source:3},c0)})},H0=function(c0){return Ul({type:3,
data:Object.assign({},{source:9},c0)})},SE=new Ijg({mutationCb:$r,
adoptedStyleSheetCb:function(c0){return Ul({type:3,data:Object.assign({},{source:15},c0)})}}),v0=new ljO({mirror:DA,
mutationCb:$r,stylesheetManager:SE,recordCrossOriginIframes:CN,wrappedEmit:Ul});N=_.D(XO||[]);for(t=N.next();!t.done;t=N.next())t=t.value,t.getMirror&&t.getMirror({nodeMirror:DA,crossOriginIframeMirror:v0.crossOriginIframeMirror,crossOriginIframeStyleMirror:v0.crossOriginIframeStyleMirror});var hu=new Qj4;mK9=new EE4({recordCanvas:J,mutationCb:H0,win:window,blockClass:Z,blockSelector:U,mirror:DA,sampling:l.canvas,dataURLOptions:I});var sp=new G2p({mutationCb:$r,scrollCb:US,bypassOptions:{blockClass:Z,
blockSelector:U,maskTextClass:g,maskTextSelector:B,inlineStylesheet:c,maskInputOptions:sS,dataURLOptions:I,maskTextFn:w,maskInputFn:z,recordCanvas:J,inlineImages:c4,sampling:l,slimDOMOptions:$X,iframeManager:v0,stylesheetManager:SE,canvasManager:mK9,keepIframeSrcFn:kx,processedNodeManager:hu},mirror:DA});r8N=function(c0){c0=c0===void 0?!1:c0;if(E){Ul({type:4,data:{href:window.location.href,width:RDv(),height:Gkz()}},c0);SE.reset();sp.init();N0.forEach(function(Rl){return Rl.lock()});
var Am=Q7x({mirror:DA,blockClass:Z,blockSelector:U,maskTextClass:g,maskTextSelector:B,inlineStylesheet:c,maskAllInputs:sS,maskTextFn:w,maskInputFn:z,slimDOM:$X,dataURLOptions:I,recordCanvas:J,inlineImages:c4,onSerialize:function(Rl){Rl.nodeName==="IFRAME"&&DA.nodeMetaMap.get(Rl)&&Rfl(v0,Rl);N5l(Rl,DA)&&vEO(SE,Rl);Rl&&n0(Rl)&&J8v(sp,n0(Rl),document)},
onIframeLoad:function(Rl,Ox){oEg(v0,Rl,Ox);Rl.contentWindow&&Rl.contentDocument&&sjG(sp,Rl.contentWindow.Element,Rl.contentDocument)},
onStylesheetLoad:function(Rl,Ox){NkG(SE,Rl,Ox)},
keepIframeSrcFn:kx});Am?(Ul({type:2,data:{node:Am,initialOffset:EFM(window)}},c0),N0.forEach(function(Rl){return Rl.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Mzg(SE,document.adoptedStyleSheets,DA.getId(document))):console.warn("Failed to snapshot the document")}};
try{var LU=[],Qr=function(c0){var Am;return tH(wLy)({mutationCb:$r,mousemoveCb:function(Rl,Ox){return Ul({type:3,data:{source:Ox,positions:Rl}})},
mouseInteractionCb:function(Rl){return Ul({type:3,data:Object.assign({},{source:2},Rl)})},
scrollCb:US,viewportResizeCb:function(Rl){return Ul({type:3,data:Object.assign({},{source:4},Rl)})},
inputCb:function(Rl){return Ul({type:3,data:Object.assign({},{source:5},Rl)})},
mediaInteractionCb:function(Rl){return Ul({type:3,data:Object.assign({},{source:7},Rl)})},
styleSheetRuleCb:function(Rl){return Ul({type:3,data:Object.assign({},{source:8},Rl)})},
styleDeclarationCb:function(Rl){return Ul({type:3,data:Object.assign({},{source:13},Rl)})},
canvasMutationCb:H0,fontCb:function(Rl){return Ul({type:3,data:Object.assign({},{source:10},Rl)})},
selectionCb:function(Rl){Ul({type:3,data:Object.assign({},{source:14},Rl)})},
customElementCb:function(Rl){Ul({type:3,data:Object.assign({},{source:16},Rl)})},
blockClass:Z,ignoreClass:C,ignoreSelector:F,maskTextClass:g,maskTextSelector:B,maskInputOptions:sS,inlineStylesheet:c,sampling:l,recordDOM:E,recordCanvas:J,inlineImages:c4,userTriggeredOnInput:zM,collectFonts:jy,doc:c0,maskInputFn:z,maskTextFn:w,keepIframeSrcFn:kx,blockSelector:U,slimDOMOptions:$X,dataURLOptions:I,mirror:DA,iframeManager:v0,stylesheetManager:SE,shadowDomManager:sp,processedNodeManager:hu,canvasManager:mK9,ignoreCSSAttributes:fN,plugins:(XO==null?void 0:(Am=XO.filter(function(Rl){return Rl.observer}))==
null?void 0:Am.map(function(Rl){return{observer:Rl.observer,
options:Rl.options,callback:function(Ox){return Ul({type:6,data:{plugin:Rl.name,payload:Ox}})}}}))||[]},P)};
t8O(v0,function(c0){try{LU.push(Qr(c0.contentDocument))}catch(Am){console.warn(Am)}});
var B0=function(){r8N();LU.push(Qr(document))};
document.readyState==="interactive"||document.readyState==="complete"?B0():(LU.push(vv("DOMContentLoaded",function(){Ul({type:0,data:{}});B4==="DOMContentLoaded"&&B0()})),LU.push(vv("load",function(){Ul({type:1,
data:{}});B4==="load"&&B0()},window)));
return function(){LU.forEach(function(c0){try{c0()}catch(Am){String(Am).toLowerCase().includes("cross-origin")||console.warn(Am)}});
hu.destroy();Vm=void 0}}catch(c0){console.warn(c0)}};
_.L=function(N,t){t=od(JR(t));N.innerHTML=t};
Zg9=function(N){var t=Hg4;t||(t=ALl(),t=Hg4=_.WW.transpose(t));t=t[N];return typeof t==="string"?t:_.Cv(N)};
V8G=function(N){N=String(N).toLowerCase();var t=ALl()[N];return typeof t==="string"?t:_.Kv(N)};
DBz=function(N){N=N.toLowerCase();N=ALl()[N];return typeof N==="string"?N:null};
ALl=function(){if(!UBM){for(var N=Object.assign({},Cnz),t=_.D(Kjz),O=t.next();!O.done;O=t.next())O=O.value,N[O.toLowerCase()]=O;UBM=N}return UBM};
gk9=function(N,t){var O=window.customElements;return O&&O.get(N)||Fjv[N]===!0?2:t.name==="HTMLUnknownElement"?1:t.name==="HTMLElement"&&dBO.test(N)?3:0};
cLz=function(N,t){switch(t){case "innerHTML":return yLp(N)===1?2:null;case "textContent":return N=yLp(N),N===1||N===6?1:null;default:var O,H;return(H=(O=BkS[N.localName])==null?void 0:O[t])!=null?H:null}};
yLp=function(N){var t=N.localName,O=gk9(t,N.constructor);switch(O){case 0:case 1:return $Bg(t,N);case 3:case 2:return 1;default:_.Ep(O,"got an unknown element classification")}};
$Bg=function(N,t){var O=Object.hasOwnProperty.call(jBg,N)?jBg[N]:null;return O!==null?O:Object.hasOwnProperty.call(igN,N)&&t instanceof SVGElement?igN[N]:null};
upx=function(N,t){return t};
h2G=function(N){return(N=N.split(St9,2))?{url:N[0],metadata:N[1]}:null};
bgz=function(N){var t=String(N.url).replace(M8S,encodeURIComponent);if(N=N.metadata){M8S.lastIndex=0;if(M8S.test(N))return null;t+=" "+N}return t};
Ytt=function(N){function t(g){var B=g.localName;if(!g.getAttribute("is")&&gk9(B,g.constructor)===2){var c;return(c=F)!=null?c:F=document.createElement("polyresinuncustomized")}(g=C[B])||(g=C[B]=document.createElement(B));return g}
var O=N.reportHandler||void 0,H=N.safeTypesBridge||pSG,A=/^$/;if(N=N.allowedIdentifierPrefixes){N=_.D(N);for(var Z=N.next();!Z.done;Z=N.next())A=new RegExp(A.source+"|^"+_.Ljy(Z.value))}O&&O(!1,"initResin",null);var U=z29(A,H,O),C={},F=null;return function(g,B,c){var u=g.nodeType;if(u!==Node.ELEMENT_NODE){if(u===Node.TEXT_NODE){B=g.parentElement;c=!B;if(B&&B.nodeType===Node.ELEMENT_NODE){u=B.localName;var S=gk9(u,B.constructor);switch(S){case 0:case 1:B=$Bg(u,B);c=B===1||B===6;break;case 3:case 2:c=
!0;break;default:_.Ep(S,"got an unknown element classification")}}if(c)return function(P){return""+H(P,"STRING",P)}}return function(P){if(!P&&P!==document.all)return P;
O&&O(!0,"Failed to sanitize "+(g.parentElement&&g.parentElement.nodeName)+" #text node to value "+P,g.parentElement);return FU}}var b=g.localName;
u=t(g);var z=null;switch(c){case "attribute":if(V8G(B)in u)break;return function(P){return P};
case "property":if(B in u){z=cLz(u,B);break}if((S=DBz(B))&&S in u)break;return function(P){return P};
default:_.Ep(c,"got an unknown resin type, expected either 'property' or 'attribute'")}var w=c==="attribute"?B.toLowerCase():Zg9(B);z||(z=LKy(b,w,function(P){var x=g.getAttribute(P);return!x||/[\[\{]/.test(P)?null:x}));
return function(P){var x=dN,l=null;if(!P&&P!==document.all)return P;if(z!=null){var I=U[z],r=I.safeType;l=I.safeReplacement;r&&(x=H(P,r,dN));x===dN&&(I.filterString?(x=String(H(P,"STRING",P)),x=I.filterString(b,w,x)):I.filterRaw&&(x=I.filterRaw(b,w,P,g)),x===l&&(x=dN))}x===dN&&(x=l||FU,O&&O(!0,"Failed to sanitize attribute of <"+b+">: <"+b+" "+w+'="'+P+'">',g));return x}}};
z29=function(N,t,O){return[,{filterRaw:function(H,A,Z){return Z},
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:aXl,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:aXl,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:FU,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:TkS,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(H,A,Z){Z=
String(Z).toLowerCase();return a3S(H,A,Z)?Z:FU},
safeReplacement:FU,safeType:void 0},,{filterRaw:void 0,filterString:function(H,A,Z){return N.test(Z)?Z:FU},
safeReplacement:FU,safeType:"CONSTANT"},{filterRaw:function(H,A,Z,U){if(typeof Z==="string")var C=(C=Z.match(wSy))?C.map(h2G).filter(Boolean):[];else if(Array.isArray(Z))C=Z;else return aXl;var F=C;C=[];var g=[],B={};if(Array.isArray(F))for(var c=0,u=F.length;c<u;++c){var S=F[c],b=S&&S.url;if(b){var z=t(b,"URL",B);if(z){var w=z!==B;(w?C:g).push({url:w?z:b,metadata:S.metadata})}}}else g.push(F);F=g.length?JSON.stringify(g):null;g=dN;if(C.length){if(!Array.isArray(C))throw Error();g=C.map(bgz).filter(Boolean).join(" , ")||
dN}F&&O&&O(!0,"Failed to sanitize attribute value of <"+H+">: <"+H+" "+A+'="'+Z+'">: '+F,U);return g===dN?aXl:g},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
e2Q=function(N){var t=Ytt(N);return function(O,H,A,Z){return Z||Z===document.all?t(O,H,A)(Z):Z}};
gN=function(N,t){function O(){function A(C,F,g){for(F=Reflect.getMetadata("parameters",C)||[];F.length<=g;)F.push(null);F[g]=F[g]||[];F[g].push(U);Reflect.defineMetadata(F,C);return C}
var Z=_.E1.apply(0,arguments);if(this instanceof O)return H.apply(this,Z),this;var U=new (Function.prototype.bind.apply(O,[null].concat(_.W6(Z))));A.annotation=U;return A}
var H=Pnp(t);O.prototype.toString=function(){return"@"+N};
return O.annotationCls=O};
Pnp=function(N){return function(){var t=_.E1.apply(0,arguments),O=this;N.forEach(function(H,A){A=t[A];if(Array.isArray(H))O[H[0]]=A&&A!==void 0?A:H[1];else for(var Z in H)O[Z]=A&&A[Z]!==void 0?A[Z]:H[Z]})}};
XSO=function(N){return N!==void 0&&N!==null};
ym=function(N){if(typeof N==="string")return N;if(N===void 0||N===null)return""+N;if(N.overriddenName)return N.overriddenName;if(N.name)return N.name;N=N.toString();var t=N.indexOf("\n");return t===-1?N:N.substring(0,t)};
xBO=function(N){N.__forward_ref__=xBO;N.toString=function(){return ym(this())};
return N};
BC=function(N){return typeof N==="function"&&N.hasOwnProperty("__forward_ref__")&&N.__forward_ref__===xBO?N():N};
k4x=function(N){return N?N.map(function(t){return new (Function.prototype.bind.apply(t.type.annotationCls,[null].concat(_.W6(t.args?t.args:[]))))}):[]};
qtM=function(N){for(var t=[],O=0;O<N.length;++O){if(t.indexOf(N[O])>-1){t.push(N[O]);break}t.push(N[O])}return t};
fXx=function(N){return N.length>1?" ("+qtM(N.slice().reverse()).map(function(t){return ym(t.token)}).join(" -> ")+")":""};
Wj4=function(N,t,O,H){if(H){var A=Error("cf``"+(H instanceof Error?H.message:H));A.ngOriginalError=H}else A=Error();A.addKey=nkt;A.keys=[t];A.injectors=[N];A.constructResolvingMessage=O;A.message=A.constructResolvingMessage();A.ngOriginalError=H;return A};
nkt=function(N,t){this.injectors.push(N);this.keys.push(t);this.message=this.constructResolvingMessage()};
rLS=function(N,t){return Wj4(N,t,function(){return"No provider for "+ym(this.keys[0].token)+"!"+fXx(this.keys)})};
IXp=function(N,t){return Wj4(N,t,function(){return"Cannot instantiate cyclic dependency!"+fXx(this.keys)})};
lXt=function(N,t,O){return Wj4(N,O,function(){var H=ym(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+H+"!"+fXx(this.keys)+"."},t)};
QBt=function(N,t){for(var O=[],H=0,A=t.length;H<A;H++){var Z=t[H];Z&&Z.length!=0?O.push(Z.map(ym).join(" ")):O.push("?")}return Error("gf`"+ym(N)+"`"+O.join(", ")+"`"+ym(N))};
okx=function(N){var t=void 0,O=void 0;if(N&&N.useClass!==void 0){t=N.useClass;var H=BC(N.useClass);var A=mBM.factory(H);H=EkN(H)}else N&&N.useExisting!==void 0?(A=function(Z){return Z},H=[G4G(cC.get(BC(N.useExisting)))]):N&&N.useFactory!==void 0?(A=N.useFactory,H=R2S(N.useFactory,N.deps)):(O=N.useValue,A=function(){return N.useValue},H=vkS);
return new JLS(A,H,t,O)};
NHl=function(N){return new sBQ(cC.get(BC(N.provide)),[okx(N)],N.multi)};
Opz=function(N){N=te4(N,[]).map(NHl);for(var t=new Map,O=0;O<N.length;O++){var H=N[O],A=t.get(H.key.id);if(A){if(H.multiProvider!==A.multiProvider)throw Error("jf`"+A+"`"+H);if(H.multiProvider)for(var Z=0;Z<H.resolvedFactories.length;Z++)A.resolvedFactories.push(H.resolvedFactories[Z]);else t.set(H.key.id,H)}else A=void 0,H.multiProvider?A=new sBQ(H.key,H.resolvedFactories.slice(),H.multiProvider):A=H,t.set(H.key.id,A)}return Array.from(t.values())};
te4=function(N,t){N.forEach(function(O){if(O instanceof Hpg)t.push({provide:O,useClass:O});else if(O&&typeof O=="object"&&O.provide!==void 0)t.push(O);else if(O instanceof Array)te4(O,t);else throw Error("ff`"+O);});
return t};
R2S=function(N,t){if(t){var O=t.map(function(H){return[H]});
return t.map(function(H){return AAG(N,H,O)})}return EkN(N)};
EkN=function(N){var t=mBM.parameters(N);if(!t)return[];if(t.some(function(O){return O==null}))throw QBt(N,t);
return t.map(function(O){return AAG(N,O,t)})};
AAG=function(N,t,O){var H=null,A=!1;if(!Array.isArray(t))return t instanceof ZpN?VeS(t.token,A,null):VeS(t,A,null);for(var Z=null,U=0;U<t.length;++U){var C=t[U];if(C instanceof Hpg)H=C;else if(C instanceof ZpN)H=C.token;else if(C instanceof D_S)A=!0;else if(C instanceof U_Q||C instanceof CrM)Z=C}H=BC(H);if(H!=null)return VeS(H,A,Z);throw QBt(N,O);};
VeS=function(N,t,O){return new KCp(cC.get(BC(N)),t,O)};
FCz=function(N,t){for(var O=Array(N.providers.length),H=0;H<N.providers.length;++H){var A=H;if(H<0||H>=N.providers.length)throw Error("hf`"+H);O[A]=t(N.providers[H])}return O};
d_9=function(N){return typeof N==="function"&&mBM.parameters(N).every(function(t){return!!t})};
BHO=function(N){var t=gby;yAp.get(N)||yAp.set(N,new t);return yAp.get(N)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(N)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(N)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N,t){var O,H;if(N.contains(t))return!0;N=_.$L(N).querySelectorAll("content,slot");for(O=0;O<N.length;++O){var A=_.$L(N[O]).getDistributedNodes();for(H=0;H<A.length;++H)if(A[H].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A[H],t))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){N.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(N)&&N.preventDefault();N.targetTouches&&(N=N.targetTouches[0],cAy=N.pageX,$_9=N.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var N=0,t=jB.length;N<t;N++)document.addEventListener(jB[N],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var N=0,t=jB.length;N<t;N++)document.removeEventListener(jB[N],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){var t=_.$L(N).rootTarget;N.type!=="touchmove"&&j3t!==t&&(j3t=t,ipt=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.$L(N).path));if(!ipt.length)return!0;if(N.type==="touchstart")return!1;N=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(N);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(ipt,N.deltaX,N.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){for(var t=[],O=N.indexOf(uIO),H=0;H<=O;H++)if(N[H].nodeType===Node.ELEMENT_NODE){var A=N[H],Z=A.style;Z.overflow!=="scroll"&&Z.overflow!=="auto"&&(Z=window.getComputedStyle(A));Z.overflow!=="scroll"&&Z.overflow!=="auto"||t.push(A)}return t};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N,t,O){if(t||O)for(var H=Math.abs(O)>=Math.abs(t),A=0;A<N.length;A++){var Z=N[A];if(H?O<0?Z.scrollTop>0:Z.scrollTop<Z.scrollHeight-Z.clientHeight:t<0?Z.scrollLeft>0:Z.scrollLeft<Z.scrollWidth-Z.clientWidth)return Z}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(N){var t={deltaX:N.deltaX,deltaY:N.deltaY};"deltaX"in N||("wheelDeltaX"in N&&"wheelDeltaY"in N?(t.deltaX=-N.wheelDeltaX,t.deltaY=-N.wheelDeltaY):"wheelDelta"in N?(t.deltaX=0,t.deltaY=-N.wheelDelta):"axis"in N?(t.deltaX=N.axis===1?N.detail:0,t.deltaY=N.axis===2?N.detail:0):N.targetTouches&&(N=N.targetTouches[0],t.deltaX=cAy-N.pageX,t.deltaY=$_9-N.pageY));return t};
STt=function(N){this.element=N;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Mey=function(N){this.element=N;this.color=window.getComputedStyle(N).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.$L(this.waveContainer).appendChild(this.wave);hpG(this)};
iO=function(N,t){for(var O in N)if(O.toLowerCase()===t.toLowerCase())return N[O]};
bp9=function(N,t){for(var O in N)if(O.toLowerCase()===t.toLowerCase()){delete N[O];break}};
LCS=function(N){N=_.WW.clone(N);for(var t=0;t<pnQ.length;++t){var O=pnQ[t],H=iO(N,O);H&&(N["X-Goog-Upload-Header-"+O]=H,bp9(N,O))}return N};
zpg=function(N){N=_.WW.clone(N);bp9(N,"X-Goog-Upload-Status")};
agx=function(N){return YTy.some(function(t){return t.test(N)})};
Prg=function(N,t){var O;var H=(O=N.formContent)==null?void 0:O.locale;O=H==null?void 0:H.split("-")[0];H=H&&THp.includes(H)?H:O&&THp.includes(O)?O:void 0;H=(H!=null?H:"en").replaceAll("-","_").toLowerCase();var A;N=((A=N.initializationData)==null?0:A.useNightlyRelease)?"nightly":"live";var Z;return(t==null?0:(Z=t.getEnableAlohaBinarySplit)==null?0:Z.call(t))?_.ju(wnx,N):_.ju(ep4,N,H)};
kcO=function(N,t,O,H){if(Xnl&&x_l===t)return Xnl;x_l=t;var A=Prg(N,H);return Xnl=t.feedbackV2GlobalObject?Promise.resolve(t.feedbackV2GlobalObject):new Promise(function(Z,U){var C=_.Tu("SCRIPT");_.UG(C,A);C.onload=function(){t.feedbackV2GlobalObject?Z(t.feedbackV2GlobalObject):U(Error("mf"))};
C.onerror=function(){U(Error("nf`"+A.toString()))};
O.body.appendChild(C)})};
nbQ=function(N,t,O,H){if(qTG&&fg4===t)return qTG;fg4=t;var A=Prg(N,H);return qTG=t.feedbackV2GlobalObject?Promise.resolve(t.feedbackV2GlobalObject):new Promise(function(Z,U){var C=_.Tu("SCRIPT");_.UG(C,A);C.onload=function(){t.feedbackV2GlobalObject?Z(t.feedbackV2GlobalObject):U(Error("mf"))};
C.onerror=function(){U(Error("nf`"+A.toString()))};
O.body.appendChild(C)})};
WCp=function(N,t,O,H,A){A=A===void 0?!0:A;var Z,U,C,F,g;return _.K(function(B){switch(B.nextAddress){case 1:return Z=Date.now(),B.yield(kcO(N,O,H,t),2);case 2:U=B.yieldResult;if(!(A||((F=N.initializationData)==null?0:F.useNightlyRelease)||((g=N.initializationData)==null?0:g.isLocalServer))){C=U.initializeFeedbackClient(N,Z,t);B.jumpTo(3);break}return B.yield(U.initializeFeedbackClientAsync(N,Z,t),4);case 4:C=B.yieldResult;case 3:return C.initiateAloha(),B.return(C)}})};
rAM=function(N,t,O,H){var A,Z,U;return _.K(function(C){if(C.nextAddress==1)return A=Date.now(),C.yield(nbQ(N,O,H.document,t),2);if(C.nextAddress!=3)return Z=C.yieldResult,C.yield(Z.initializeFeedbackClientAsync(N,A,t,H),3);U=C.yieldResult;U.initiateAloha();return C.return(U)})};
Igp=function(N,t,O){var H=!0;H=H===void 0?!0:H;var A,Z,U,C,F,g,B,c;return _.K(function(u){A=O||_.H4;if((Z=t)==null?0:(C=(U=Z).getEnableAlohaBinarySplit)==null?0:C.call(U)){F=A;if(F.isFormOpened)throw new uO;F.isFormOpened=!0;N.callbacks=N.callbacks||{};g=N.callbacks.onClose||function(){};
N.callbacks.onClose=function(S){F.isFormOpened=!1;g(S)};
try{return u.return(rAM(N,t,F,A))}catch(S){throw F.isFormOpened=!1,S;}}else{B=A;if(B.isFormOpened)throw new uO;B.isFormOpened=!0;N.callbacks=N.callbacks||{};c=N.callbacks.onClose||function(){};
N.callbacks.onClose=function(S){B.isFormOpened=!1;c(S)};
try{return u.return(WCp(N,t,B,A.document,H))}catch(S){throw B.isFormOpened=!1,S;}}_.Ty(u)})};
Gcl=function(N,t){return _.K(function(O){return O.return(new Promise(function(H,A){Number.isInteger(Number(N))&&Number(N)>0?(A=lgM(t!=null?t:"")+"/aloha_form_properties?productId="+N,Q3p(A,function(Z){Z=Z.target;var U=null;try{var C=JSON,F=C.stringify;if(Z.JSC$9951_xhr_){var g=Z.JSC$9951_xhr_.responseText;g.indexOf(")]}'\n")==0&&(g=g.substring(5));var B=(0,_.SB)(g)}else B=void 0;U=Rrg(m_g,F.call(C,B))}catch(c){F=new m_g,B=Ebx(),B=_.hH(B,13,!1),B=_.hH(B,14,!0),B=_.hH(B,15,!0),B=_.hH(B,20,!1),U=_.L8(F,
1,B)}H(U)},"GET","",{},2E3,!0)):A(Error("of`"+N))}))})};
lgM=function(N){return agx(N)?N:"https://www.google.com/tools/feedback"};
obQ=function(N){N=N.match(new RegExp(Rpy,"gi"))||[];N=_.D(N);for(var t=N.next();!t.done;t=N.next()){t=t.value;a:{var O=_.D(vbg);for(var H=O.next();!H.done;H=O.next())if(H.value.test(t)){O=!1;break a}O=!0}if(!O)a:{O=_.D(JAS);for(H=O.next();!H.done;H=O.next())if(H.value.test(t)){O=!0;break a}O=!1}if(O)return!0}return!1};
s3N=function(N,t){var O={},H=Object.keys(N);H=_.D(H);for(var A=H.next();!A.done;A=H.next())A=A.value,O[A]=t(A,N[A]);return O};
NAx=function(N){switch(N){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
O7p=function(N){if(window.crypto&&window.crypto.getRandomValues)try{var t=Array(N),O=new Uint8Array(N);window.crypto.getRandomValues(O);for(var H=0;H<t.length;H++)t[H]=O[H];return t}catch(Z){}t=Array(N);for(O=0;O<N;O++){H=Date.now();for(var A=0;A<H%23;A++)t[O]=Math.random();t[O]=Math.floor(Math.random()*256)}if(t6l)for(O=1,H=0;H<t6l.length;H++)t[O%N]^=t[(O-1)%N]/4^t6l.charCodeAt(H),O++;return t};
M0=function(N){N=O7p(N);for(var t=[],O=0;O<N.length;O++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(N[O]&63));return t.join("")};
H7v=function(){var N=_.H4.ytLoggingDocDocumentNonce_;N||(N=M0(16),_.Ba("ytLoggingDocDocumentNonce_",N));return N};
Z7y=function(N){N&&_.E7("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:AVM,clientScreenNonce:N})};
V6t=function(N){return _.Ro("client-screen-nonce-store",{})[N===void 0?0:N]};
Djx=function(N,t){t=t===void 0?0:t;var O=_.Ro("client-screen-nonce-store");O||(O={},_.Gm("client-screen-nonce-store",O));O[t]=N};
UjS=function(N){N=N===void 0?0:N;return N===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+N};
CDt=function(N){return _.Ro(UjS(N===void 0?0:N))};
_.pv=function(N){return(N=CDt(N===void 0?0:N))?new bO({veType:N,youtubeData:void 0,jspbYoutubeData:void 0}):null};
KTz=function(){var N=_.Ro("csn-to-ctt-auth-info");N||(N={},_.Gm("csn-to-ctt-auth-info",N));return N};
FTN=function(){return Object.values(_.Ro("client-screen-nonce-store",{})).filter(function(N){return N!==void 0})};
_.z8=function(N){N=V6t(N===void 0?0:N);if(!N&&!_.vZ("USE_CSN_FALLBACK",!0))return null;N||(N="UNDEFINED_CSN");return N?N:null};
gcN=function(N){for(var t=_.D(Object.values(djt)),O=t.next();!O.done;O=t.next())if(_.z8(O.value)===N)return!0;return!1};
yVN=function(N,t,O){var H=KTz();(O=_.z8(O))&&delete H[O];t&&(H[N]=t)};
YL=function(N){return KTz()[N]};
_.ar=function(N,t,O,H){O=O===void 0?0:O;if(N!==V6t(O)||t!==_.Ro(UjS(O)))if(yVN(N,H,O),Djx(N,O),_.Gm(UjS(O),t),t=function(){setTimeout(function(){Z7y(N)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(t)}catch(A){t()}else t()};
BAy=function(N,t){t=t===void 0?"":t;var O=[],H;for(H in N)if(N.hasOwnProperty(H)){var A=t!==""?t+"."+H:H;typeof N[H]==="object"?O.push.apply(O,_.W6(BAy(N[H],A))):O.push([A,N[H]])}O.sort();return O};
_.wN=function(N){var t=_.E1.apply(1,arguments);if(!T8(N)||t.some(function(H){return!T8(H)}))throw Error("pf");
t=_.D(t);for(var O=t.next();!O.done;O=t.next())cVt(N,O.value)};
cVt=function(N,t){for(var O in t)if(T8(t[O])){if(O in N&&!T8(N[O]))throw Error("qf");O in N||(N[O]={});cVt(N[O],t[O])}else if($j4(t[O])){if(O in N&&!$j4(N[O]))throw Error("rf");O in N||(N[O]=[]);jv9(N[O],t[O])}else N[O]=t[O];return N};
jv9=function(N,t){t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=O.value,T8(O)?N.push(cVt({},O)):$j4(O)?N.push(jv9([],O)):N.push(O);return N};
T8=function(N){return typeof N==="object"&&!Array.isArray(N)};
$j4=function(N){return typeof N==="object"&&Array.isArray(N)};
uny=function(N){for(var t=_.D(Object.entries(i7l)),O=t.next();!O.done;O=t.next())if(O=_.D(O.value),O.next(),O=O.next().value,O==="SLI_STATUS_"+N)return O;return"SLI_STATUS_UNKNOWN"};
_.eB=function(N,t,O,H){return Sbp(N,t,function(){return new _.h89(N,t,O,H)})};
_.M6y=function(){return _.eB("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
b7z=function(){return _.eB("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
PC=function(){return _.eB("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
pb9=function(){return _.eB("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
LTM=function(){return _.eB("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
z8x=function(){return _.eB("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
TAp=function(N){N&&(N.dataset?N.dataset[Ybx()]="true":_.KU([_.BW(ai9)],N,"data-loaded","true".toString()))};
wbG=function(N){return N?N.dataset?N.dataset[Ybx()]:N.getAttribute("data-loaded"):null};
Ybx=function(){return e8S.loaded||(e8S.loaded="loaded".replace(/\-([a-z])/g,function(N,t){return t.toUpperCase()}))};
_.XU=function(N,t,O){PDz(N,t,O===void 0?null:O)};
_.xjv=function(N,t){N&&t&&(N=""+_.GM(t),(N=XbO[N])&&_.urv(N))};
PDz=function(N,t,O){O=O===void 0?null:O;var H=_.kGO(typeof N==="string"?N:N.toString()),A=document.getElementById(H),Z=A&&wbG(A),U=A&&!Z;Z?t&&t():(t&&(Z=_.Mg(H,t),t=""+_.GM(t),XbO[t]=Z),U||(A=qbl(N,H,function(){wbG(A)||(TAp(A),_.S4l(H),_.pF(function(){_.MFQ(H)},0))},O)))};
qbl=function(N,t,O,H){H=H===void 0?null:H;var A=_.Tu("SCRIPT");A.id=t;A.onload=function(){O&&setTimeout(O,0)};
A.onreadystatechange=function(){switch(A.readyState){case "loaded":case "complete":A.onload()}};
H&&A.setAttribute("nonce",H);_.UG(A,typeof N==="string"?_.n1(N):N);N=document.getElementsByTagName("head")[0]||document.body;N.insertBefore(A,N.firstChild);return A};
_.kGO=function(N){var t=document.createElement("a");Rd(t,N);return"js-"+xL(t.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
fiQ=function(N){var t=_.Ro("INNERTUBE_HOST_OVERRIDE");t&&(N=String(t)+String(_.kL(N)));return N};
ncv=function(N){var t={};_.h("json_condensed_response")&&(t.prettyPrint="false");return N=lAN(N,t)};
_.q0=function(N){return gE(N)?"same-origin":"include"};
_.fv=function(N){return gE(N)?"same-origin":"cors"};
nv=function(N,t,O){O=O===void 0?{}:O;N={method:t===void 0?"POST":t,mode:_.fv(N),credentials:_.q0(N)};t={};for(var H=_.D(Object.keys(O)),A=H.next();!A.done;A=H.next())A=A.value,O[A]&&(t[A]=O[A]);Object.keys(t).length>0&&(N.headers=t);return N};
_.WC=function(N,t){t=t===void 0?{}:t;return"service:"+N+"/"+Object.keys(t).sort().map(function(O){return O+":"+t[O]}).join("/")};
WTO=function(N){var t,O,H,A;N=(t=_.M(N,_.rN))==null?void 0:(O=t.watchEndpointSupportedOnesieConfig)==null?void 0:(H=O.html5PlaybackOnesieConfig)==null?void 0:(A=H.commonConfig)==null?void 0:A.url;if(!N)return[];t=new _.Ir(N);return t.JSC$10187_domain_?["https://"+t.JSC$10187_domain_+"/generate_204"]:[]};
_.li4=function(){return rVS()||R7y()||IiM&&oD("version/")?!0:_.Ro("EOM_VISITOR_DATA")?!1:!0};
Qvg=function(N){var t=N.docid||N.video_id||N.videoId||N.id;if(t)return t;t=N.raw_player_response;t||(N=N.player_response)&&(t=JSON.parse(N));return t&&t.videoDetails&&t.videoDetails.videoId||null};
mjN=function(N){return N.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
lO=function(N){return!isNaN(Number(N))&&!_.Dp(N)};
_.m2=function(N,t,O,H){H=H===void 0?!0:H;var A=_.Ro("VALID_SESSION_TEMPDATA_DOMAINS",[]),Z=_.Fe(window.location.href);Z&&A.push(Z);Z=_.Fe(N);if(_.W4(A,Z)||!Z&&_.Zp(N,"/"))if(A=document.createElement("a"),Rd(A,N),N=A.href)if(N=_.kL(N),N=_.Qm(N))H&&!t.csn&&(t.itct||t.ved)&&(t=Object.assign({csn:_.z8()},t)),O?(O=parseInt(O,10),isFinite(O)&&O>0&&Ec9(N,t,O)):Ec9(N,t)};
R8l=function(N){var t=_.Ro("VALID_SESSION_TEMPDATA_DOMAINS",[]),O=_.Fe(window.location.href);O&&t.push(O);O=_.Fe(N);if(!(_.W4(t,O)||!O&&_.Zp(N,"/")))return null;N=_.kL(N);(N=_.Qm(N))?(N=GGQ(N),N=(N=_.PY.get(N,void 0)||null)?_.Vl(N):{}):N=null;return N};
Ec9=function(N,t,O){N=GGQ(N);t=t?_.Tp(t):"";O=O||5;_.li4()&&_.Xe(N,t,O)};
GGQ=function(N){for(var t=_.D(vcG),O=t.next();!O.done;O=t.next())N=_.El(N,O.value);return"ST-"+xL(N).toString(36)};
_.JVS=function(N){if(N.requestFullscreen)N=N.requestFullscreen(void 0);else if(N.webkitRequestFullscreen)N=N.webkitRequestFullscreen();else if(N.mozRequestFullScreen)N=N.mozRequestFullScreen();else if(N.msRequestFullscreen)N=N.msRequestFullscreen();else if(N.webkitEnterFullscreen)N=N.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return N instanceof Promise?N:Promise.resolve()};
_.Rr=function(N){var t;_.D24(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.G8()==N&&(t=document):t=N;if(t&&(N=_.D24(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],t))){N.call(t)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.G8=function(){var N=N===void 0?!1:N;var t=_.D24(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(N)for(;t&&t.shadowRoot;)t=t.shadowRoot.fullscreenElement;return t?t:null};
_.vC=function(N,t){t=t===void 0?!0:t;N.addEventListener("wheel",ocy);N.overscrollConfig={cooldown:t}};
_.JH=function(N){N.overscrollConfig=void 0;N.removeEventListener("wheel",ocy)};
ocy=function(N){var t=N.deltaY,O=N.target,H=null;if(window.Polymer&&window.Polymer.Element){if(O=N.path||N.composedPath&&N.composedPath()){O=_.D(O);for(var A=O.next();!A.done&&(A=A.value,!svx(A,t));A=O.next())if(A.overscrollConfig){H=A;break}}}else for(;O&&!svx(O,t);){if(O.overscrollConfig){H=O;break}O=O.parentElement}H&&(t=H.overscrollConfig,t.cooldown?(H=N.deltaY,O=t.lastDeltaY||0,t.lastDeltaY=H,A=t.lastStopped||0,O&&A&&O>0==H>0?Math.abs(O)>=Math.abs(H)?(H=A+1200,O=!1):(H=A+600,O=!0):(H=Date.now()+
600,O=!0),H>Date.now()&&(N.preventDefault(),O&&(t.lastStopped=Date.now()))):N.preventDefault())};
svx=function(N,t){return t<0&&N.scrollTop>0||t>0&&N.scrollTop<N.scrollHeight-N.clientHeight-1?(N=getComputedStyle(N).overflowY,N=="auto"||N=="scroll"):!1};
_.or=function(N,t,O,H){H||(H={bubbles:!0,cancelable:!1,composed:!0});O!==null&&O!==void 0&&(H.detail=O);var A=new CustomEvent(t,H);_.h("untrack_fire_custom_event_killswitch")?N.dispatchEvent(A):_.MY(function(){return void N.dispatchEvent(A)});
return A};
N6S=function(N){var t=window,O=function(H){t.removeEventListener("yt-navigate-start",O);return N.call(t,H)};
t.addEventListener("yt-navigate-start",O,void 0)};
_.sl=function(N,t,O,H){t=new tfz(t,!(H===void 0||!H),O);_.or(N,"yt-action",t);return t.returnValue};
_.Np=function(N,t,O){return _.sl(N,t,O,!0)};
_.OK=function(N,t,O,H){t&&t.length&&t.forEach(function(A){var Z=A5Q(A);Z&&(_.h("handle_service_request_actions")&&A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.sendPost?_.tb(O?O:N,[A]):_.Np(N,Z,[A,O,H]))})};
_.tb=function(N,t){var O=[N];t&&O.push.apply(O,t);t=_.sl(N,"yt-service-request",O);return t.length>0&&(t=t[0],_.or(N,"yt-service-request-sent",t),t&&t.ajaxPromise)?(t.ajaxPromise.then(function(H){_.or(N,"yt-service-request-completed",H)},function(H){_.or(N,"yt-service-request-error",{error:H,
params:O})},N),t.ajaxPromise):_.Hc()};
_.Za=function(N,t){if(_.h("handle_service_request_actions"))_.OK(t,N,t);else{N=_.D(N);for(var O=N.next();!O.done;O=N.next()){O=O.value;var H=void 0;((H=_.M(O,_.Ab))==null?0:H.commands)?_.Za(_.M(O,_.Ab).commands,t):(H=void 0,((H=_.M(O,_.VZ))==null?0:H.actions)?_.Za(_.M(O,_.VZ).actions,t):(H=void 0,((H=_.M(O.commandMetadata,_.Da))==null?0:H.sendPost)?_.tb(t,[O]):_.OK(t,[O],t)))}}};
_.Hey=function(N,t,O){t=t===void 0?{}:t;typeof t==="function"&&(t={callback:t});O||t._c&&t._c.jsl&&t._c.jsl.h||_.WW.extend(t,{_c:{jsl:{h:_.Ro("GAPI_HINT_PARAMS")}}});(t.gapiHintOverride||_.Ro("GAPI_HINT_OVERRIDE"))&&(O=_.D9(document.location.href).gapi_jsh)&&_.WW.extend(t,{_c:{jsl:{h:O}}});Oez(N,t)};
_.CJ=function(N,t,O){t=t===void 0?{}:t;N=(N=N in UK?UK[N]:O)||"";O={};for(var H in t){O={key$jscomp$844:O.key$jscomp$844};O.key$jscomp$844=H;var A=function(Z){return function(){return String(t[Z.key$jscomp$844])}}(O);
N=N.replace(new RegExp("\\$\\{"+O.key$jscomp$844+"\\}","gi"),A);N=N.replace(new RegExp("\\$"+O.key$jscomp$844,"gi"),A)}return N};
_.KJ=function(N,t){return Axy(N in UK?UK[N]:{},t)};
Axy=function(N,t){var O=_.Ro("I18N_PLURAL_RULES");O||(O=function(H){return H==1?"one":"other"});
return(N=N["case"+t]||N[O(t)])?N.replace("#",t.toString()):t+""};
DSz=function(N){var t=ZeS(N),O=document.getElementById(t),H=O&&wbG(O);H||O&&!H||(O=Vfg(N,t,function(){if(!wbG(O)){TAp(O);_.S4l(t);var A=_.Fu(_.MFQ,t);_.pF(A,0)}}))};
Vfg=function(N,t,O){var H=document.createElement("link");H.id=t;H.onload=function(){O&&setTimeout(O,0)};
N=_.n1(N);_.F1(H,N,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(H);return H};
ZeS=function(N){var t=_.Tu("A");Rd(t,xw(N));return"css-"+xL(t.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.CKy=function(N){var t=USO();N!==t&&(t=_.d0(),!_.h("web_autonav_allow_off_by_default")&&N||_.g0(0,141,!0),_.g0(0,140,!N),t.save())};
USO=function(){var N=_.d0();return _.h("web_autonav_allow_off_by_default")&&!N.getFlag(141)&&_.Ro("AUTONAV_OFF_BY_DEFAULT")?!1:!N.getFlag(140)};
KVv=function(N,t){var O,H;N=((O=N.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(H=O.videoAuthorizationToken)==null?void 0:H.credentialTransferTokens)||[];for(O=0;O<N.length;++O)if(N[O].scope===t)return N[O].token||void 0};
FVy=function(N){for(var t=0,O=0;O<N.length;O++)t=t*31+N.charCodeAt(O),O<N.length-1&&(t%=0x800000000000);return t%1E5};
_.yZ=function(N){return _.s2("ytcsi."+(N||"")+"data_")||dSN(N)};
_.gsG=function(N){N=_.yZ(N);N.metadata||(N.metadata={});return N.metadata};
_.yxO=function(N){N=_.yZ(N);N.tick||(N.tick={});return N.tick};
_.Bc=function(N){N=_.yZ(N);if(N.gel){var t=N.gel;t.gelInfos||(t.gelInfos={});t.gelTicks||(t.gelTicks={})}else N.gel={gelTicks:{},gelInfos:{}};return N.gel};
_.B6O=function(N){N=_.Bc(N);N.gelInfos||(N.gelInfos={});return N.gelInfos};
cx9=function(N){var t=_.yZ(N).nonce;t||(t=M0(16),_.yZ(N).nonce=t);return t};
dSN=function(N){var t={tick:{},info:{}};_.Ba("ytcsi."+(N||"")+"data_",t);return t};
$Sl=function(){var N=_.s2("ytcsi.debug");N||(N=[],_.Ba("ytcsi.debug",N),_.Ba("ytcsi.reference",{}));return N};
_.cc=function(N){N=N||"";var t=j$Q();if(t[N])return t[N];var O=$Sl(),H={timerName:N,info:{},tick:{},span:{},jspbInfo:[]};O.push(H);return t[N]=H};
iez=function(N){N=N||"";var t=j$Q();t[N]&&delete t[N];var O=$Sl(),H={timerName:N,info:{},tick:{},span:{},jspbInfo:[]};O.push(H);t[N]=H};
j$Q=function(){var N=_.s2("ytcsi.reference");if(N)return N;$Sl();return _.s2("ytcsi.reference")};
_.SkN=function(N){return u6G[N]||"LATENCY_ACTION_UNKNOWN"};
p8S=function(N,t,O){O=O===void 0?{}:O;var H=!1;_.vZ("ytLoggingEventsDefaultDisabled",!1)&&(H=!0);H=H?null:mv;O=O===void 0?{}:O;var A=Math.round(O.timestamp||(0,_.jg)());_.fb(t,1,A<Number.MAX_SAFE_INTEGER?A:0);A=new h$G;if(O.lact)_.fb(A,1,isFinite(O.lact)?O.lact:-1);else if(O.timestamp)_.fb(A,1,-1);else{var Z=_.jO();_.fb(A,1,isFinite(Z)?Z:-1)}if(O.sequenceGroup&&!_.h("web_gel_sequence_info_killswitch")){Z=O.sequenceGroup;var U=ewN(Z),C=new Mfz;_.fb(C,2,U);_.Xa(C,1,Z);_.L8(A,3,C);O.endOfSequence&&delete bet[O.sequenceGroup]}_.L8(t,
33,A);(O.sendIsolatedPayload?nJg:Wwp)(N,{endpoint:"log_event",payload:t,cttAuthInfo:O.cttAuthInfo,dangerousLogToVisitorSession:O.dangerousLogToVisitorSession},H)};
_.jb=function(){return(_.h("csi_use_time_origin")||_.h("csi_use_time_origin_tvhtml5"))&&_.$Y.timeOrigin?Math.floor(_.$Y.timeOrigin):_.$Y.timing.navigationStart};
_.LVO=function(N,t){_.ip("_start",N,t)};
_.up=function(N,t){if(!_.h("web_csi_action_sampling_enabled")||!_.yZ(t).actionDisabled){var O=_.cc(t||"");_.wN(O.info,N);N.loadType&&(O=N.loadType,_.gsG(t).loadType=O);_.wN(_.B6O(t),N);O=cx9(t);t=_.yZ(t).cttAuthInfo;z$G().info(N,O,t)}};
YkG=function(){var N,t,O,H;return((H=_.cY().resolve(_.BY(ra))==null?void 0:(N=I0())==null?void 0:(t=N.loggingHotConfig)==null?void 0:(O=t.csiConfig)==null?void 0:O.debugTicks)!=null?H:[]).map(function(A){return Object.values(A)[0]})};
_.ip=function(N,t,O){if(!_.h("web_csi_action_sampling_enabled")||!_.yZ(O).actionDisabled){var H=cx9(O),A;if(A=_.h("web_csi_debug_sample_enabled")&&H){(_.cY().resolve(_.BY(ra))==null?0:I0())&&!acl&&(acl=!0,_.ip("gcfl",(0,_.jg)(),O));var Z,U,C;A=(_.cY().resolve(_.BY(ra))==null?void 0:(Z=I0())==null?void 0:(U=Z.loggingHotConfig)==null?void 0:(C=U.csiConfig)==null?void 0:C.debugSampleWeight)||0;if(Z=A!==0)b:{Z=YkG();if(Z.length>0)for(U=0;U<Z.length;U++)if(N===Z[U]){Z=!0;break b}Z=!1}Z?(A=FVy(H)%A!==0,
_.yZ(O).debugTicksExcludedLogged||(Z={},Z.debugTicksExcluded=A,_.up(Z,O)),_.yZ(O).debugTicksExcludedLogged=!0):A=!1}if(!A){N[0]!=="_"&&T6p(N,O,t);A=_.cc(O||"");A.tick[N]=t||(0,_.jg)();if(A.callback&&A.callback[N])for(A=_.D(A.callback[N]),Z=A.next();!Z.done;Z=A.next())Z=Z.value,Z();A=_.Bc(O);A.gelTicks&&(A.gelTicks[N]=!0);Z=_.yxO(O);A=t||(0,_.jg)();_.h("log_repeated_ytcsi_ticks")?N in Z||(Z[N]=A):Z[N]=A;Z=_.yZ(O).cttAuthInfo;N==="_start"?z$G().baseline(H,t,Z):z$G().tick(N,H,t,Z);_.w8l(O);return A}}};
T6p=function(N,t,O){if(_.$Y.mark)if(N.startsWith("mark_")||(N="mark_"+N),t&&(N+=" ("+t+")"),O===void 0||_.h("web_csi_disable_alt_time_performance_mark"))_.$Y.mark(N);else{O=_.h("csi_use_performance_navigation_timing")?O-_.$Y.timeOrigin:O-(_.$Y.timeOrigin||_.$Y.timing.navigationStart);try{_.$Y.mark(N,{startTime:O})}catch(H){}}};
e$Q=function(){var N,t=(N=_.$Y.getEntriesByType)==null?void 0:N.call(_.$Y,"mark");t&&t.forEach(function(O){if(O.name.startsWith("mark_")){var H;(H=_.$Y.clearMarks)==null||H.call(_.$Y,O.name)}})};
_.PKx=function(){switch(VFG()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.X8x=function(N){var t={},O=function(Z,U,C){U=U.match("_rid")?U.split("_rid")[0]:U;typeof C==="number"&&(C=JSON.stringify(C));Z.requestIds?Z.requestIds.push({endpoint:U,id:C}):Z.requestIds=[{endpoint:U,id:C}]};
N=_.D(Object.entries(N));for(var H=N.next();!H.done;H=N.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;switch(H){case "GetBrowse_rid":O(t,H,A);break;case "GetGuide_rid":O(t,H,A);break;case "GetHome_rid":O(t,H,A);break;case "GetPlayer_rid":O(t,H,A);break;case "GetSearch_rid":O(t,H,A);break;case "GetSettings_rid":O(t,H,A);break;case "GetTrending_rid":O(t,H,A);break;case "GetWatchNext_rid":O(t,H,A);break;case "yt_red":t.isRedSubscriber=!!A;break;case "yt_ad":t.isMonetized=!!A}}return t};
_.xSy=function(N){var t=_.hb("aft",N);if(t)return t;t=_.Ro((N||"")+"TIMING_AFT_KEYS",["ol"]);for(var O=t.length,H=0;H<O;H++){var A=_.hb(t[H],N);if(A)return A}return NaN};
_.kLl=function(N,t){_.Ba("ytglobal.timing"+(t||"")+"ready_",N)};
_.hb=function(N,t){if(N=_.yxO(t)[N])return typeof N==="number"?N:N[N.length-1]};
_.w8l=function(N){var t=_.hb("_start",N),O=_.xSy(N),H=!qkt;t&&O&&H&&(P8S(fcN,new nsM(Math.round(O-t),N)),qkt=!0)};
rxx=function(N){dSN(N);WVt();e$Q();N||(_.Ro("TIMING_ACTION")&&_.Gm("PREVIOUS_ACTION",_.Ro("TIMING_ACTION")),_.Gm("TIMING_ACTION",""))};
_.Icg=function(N){N=N===void 0?{}:N;_.oo(function(){Mp();iez();rxx();_.kLl(!1);N.cttAuthInfo&&(_.yZ().cttAuthInfo=N.cttAuthInfo);_.Gm("TIMING_AFT_KEYS",[]);N.isHot?_.bp({loadType:"hot"}):_.bp({loadType:"warm"});_.Gm("TIMING_ACTION","");delete _.Ro("TIMING_INFO",{}).yt_lt;_.oo(_.LVO)(N.startTime,void 0)})()};
_.LJ=function(N,t,O,H){t=t===void 0?{}:t;_.oo(function(){var A=O?O:N;pJ(A);var Z=t.sampleRate;if(!_.h("web_csi_action_sampling_enabled")||Z===void 0||Z<=1)Z=!1;else{var U=cx9(A);Z=FVy(U)%Z!==0}Z&&(_.yZ(A).actionDisabled=!0);_.cc(A||"").info.actionType=N;t.cttAuthInfo&&(_.yZ(A).cttAuthInfo=t.cttAuthInfo);_.Gm(A+"TIMING_ACTION",N);_.oo(_.LVO)(t.startTime,A);Z={actionType:H||_.SkN(N)};t.logPreviousAction&&(Z.previousAction=_.SkN(_.Ro("TIMING_ACTION")));(U=_.z8())&&U!=="UNDEFINED_CSN"&&(Z.clientScreenNonce=
U);_.bp(Z,A);_.kLl(!0,A)})()};
pJ=function(N){_.oo(function(){Mp(N);iez(N);rxx(N)})()};
lct=function(){_.oo(function(){var N=[],t;for(t in _.s2("ytcsi.".slice(0,-1)))t.endsWith("data_")&&N.push(t.slice(0,-5));N=_.D(N);for(t=N.next();!t.done;t=N.next())pJ(t.value);Mp()})()};
_.mSz=function(N){return _.oo(function(){return _.Q$x("_start",N)})()};
_.bp=function(N,t,O){_.oo(_.up)(N,t,O===void 0?!1:O)};
_.zT=function(N,t,O){return _.oo(_.ip)(N,t,O)};
_.Q$x=function(N,t){return _.oo(function(){var O=_.yxO(t);return N in O})()};
GLN=function(N){if(!_.h("universal_csi_network_ticks"))return"";N=_.Yv(N)||"";for(var t=Object.keys(Es4),O=0;O<t.length;O++){var H=t[O];if(N.includes(H))return H}return""};
vsv=function(N){if(!_.h("universal_csi_network_ticks"))return function(){};
var t=Es4[N];return t?(_.YY(t),function(){var O=_.h("universal_csi_network_ticks")?(O=R$l[N])?_.YY(O):!1:!1;return O}):function(){}};
_.YY=function(N,t,O){return _.oo(function(){if(_.Q$x(N,O))return!1;_.zT(N,t,O);return!0})()};
_.aX=function(N,t,O){_.oo(function(){if(!_.mSz(O)||_.Q$x(N,O))return!1;_.zT(N,t,O);return!0})()};
_.TT=function(N){return _.oo(_.hb)(N,void 0)};
Mp=function(N){_.mSz(N)&&_.zT("aa",void 0,N)};
_.t7G=function(N,t,O,H,A,Z,U,C,F,g){var B=JxM();Z=new bO({veType:t,youtubeData:Z,jspbYoutubeData:C});g=Pc({automatedLogEventSource:g},B);A&&(g.cttAuthInfo=A);A={csn:B,pageVe:Z.getAsJson()};_.h("expectation_logging")&&F&&F.screenCreatedLoggingExpectations&&(A.screenCreatedLoggingExpectations=F.screenCreatedLoggingExpectations);O&&O.visualElement?(A.implicitGesture={parentCsn:O.clientScreenNonce,gesturedVe:O.visualElement.getAsJson()},U&&(A.implicitGesture.gestureType=U)):O&&_.J_(new _.fF("newScreen() parent element does not have a VE - rootVe",
t));H&&(A.cloneCsn=H);N?QN("screenCreated",A,N,g):_.E7("screenCreated",A,g);P8S(W1g,new osg(B));Xu.clear();s$x.clear();N_O.clear();return B};
xY=function(N,t,O,H,A,Z){Z=Z===void 0?{}:Z;OYv(N,t,O,[H],A===void 0?!1:A,Z)};
OYv=function(N,t,O,H,A,Z){A=A===void 0?!1:A;Z=Z===void 0?{}:Z;Object.assign(Z,Pc({cttAuthInfo:YL(t)||void 0},t));for(var U=_.D(H),C=U.next();!C.done;C=U.next()){C=C.value;var F=C.getAsJson();(_.WW.isEmpty(F)||!F.trackingParams&&!F.veType)&&_.J_(Error("Bf"));if(_.h("no_client_ve_attach_unless_shown")){var g=HYQ(C,t);if(F.veType&&!s$x.has(g)&&!N_O.has(g)&&!A){if(!_.h("il_attach_cache_limit")||Xu.size<1E3){Xu.set(g,[N,t,O,C]);return}_.h("il_attach_cache_limit")&&Xu.size>1E3&&_.J_(new _.fF("IL Attach cache exceeded limit"))}C=
HYQ(O,t);Xu.has(C)?Ac4(O,t):N_O.set(C,!0)}}H=H.filter(function(B){B.csn!==t?(B.csn=t,B=!0):B=!1;return B});
O={csn:t,parentVe:O.getAsJson(),childVes:_.rc(H,function(B){return B.getAsJson()})};
t==="UNDEFINED_CSN"?kY("visualElementAttached",Z,O):N?QN("visualElementAttached",O,N,Z):_.E7("visualElementAttached",O,Z)};
V7G=function(N,t,O,H,A,Z,U){ZYl(N,t,O,A,U)};
ZYl=function(N,t,O,H,A){Dcp(O,t);A=Pc({cttAuthInfo:YL(t)||void 0,automatedLogEventSource:A},t);O={csn:t,ve:O.getAsJson(),eventType:1};H&&(O.clientData=H);t==="UNDEFINED_CSN"?kY("visualElementShown",A,O):N?QN("visualElementShown",O,N,A):_.E7("visualElementShown",O,A)};
Ucg=function(N,t,O,H){Dcp(O,t);var A=Pc({cttAuthInfo:YL(t)||void 0,automatedLogEventSource:void 0},t);O={csn:t,ve:O.getAsJson(),eventType:4};H&&(O.clientData=H);t==="UNDEFINED_CSN"?kY("visualElementShown",A,O):N?QN("visualElementShown",O,N,A):_.E7("visualElementShown",O,A)};
CAM=function(N,t,O,H,A,Z){var U=(H=H===void 0?!1:H)?16:8;H=Pc({cttAuthInfo:YL(t)||void 0,endOfSequence:H,automatedLogEventSource:Z},t);O={csn:t,ve:O.getAsJson(),eventType:U};A&&(O.clientData=A);t==="UNDEFINED_CSN"?kY("visualElementHidden",H,O):N?QN("visualElementHidden",O,N,H):_.E7("visualElementHidden",O,H)};
FXx=function(N,t,O,H,A,Z){KX4(N,t,O,void 0,H,A,Z)};
KX4=function(N,t,O,H,A,Z,U){Dcp(O,t);H=H||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";Z=Pc({cttAuthInfo:YL(t)||void 0,automatedLogEventSource:U},t);O={csn:t,ve:O.getAsJson(),gestureType:H};A&&(O.clientData=A);t==="UNDEFINED_CSN"?kY("visualElementGestured",Z,O):N?QN("visualElementGestured",O,N,Z):_.E7("visualElementGestured",O,Z)};
dcN=function(N,t,O,H){var A=Pc({cttAuthInfo:YL(t)||void 0},t);O={csn:t,ve:O.getAsJson(),clientData:H};t==="UNDEFINED_CSN"?kY("visualElementStateChanged",A,O):N?QN("visualElementStateChanged",O,N,A):_.E7("visualElementStateChanged",O,A)};
g9g=function(){var N=O7p(16);for(var t=[],O=0;O<N.length;O++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(N[O]&63));return t.join("")};
kY=function(N,t,O){ycx.push({payloadName:N,payload:O,jspbPayload:void 0,options:t});B_l||(B_l=Imz())};
nHQ=function(N){if(ycx){for(var t=_.D(ycx),O=t.next();!O.done;O=t.next())O=O.value,O.payload&&(O.payload.csn=N.csn,_.E7(O.payloadName,O.payload,O.options));ycx.length=0}B_l=0};
HYQ=function(N,t){return""+N.getAsJson().veType+N.getAsJson().veCounter+t};
Dcp=function(N,t){if(_.h("no_client_ve_attach_unless_shown")){var O=HYQ(N,t);s$x.set(O,!0);Ac4(N,t)}};
Ac4=function(N,t){N=HYQ(N,t);Xu.has(N)&&(t=Xu.get(N)||[],xY(t[0],t[1],t[2],t[3],!0),Xu.delete(N))};
Pc=function(N,t){_.h("log_sequence_info_on_gel_web")&&(N.sequenceGroup=t);return N};
_.qp=function(N,t,O){_.oo(xY)(void 0,N,t,O)};
_.fJ=function(N,t,O){_.oo(OYv)(void 0,N,t,O)};
_.nJ=function(N,t){_.oo(V7G)(void 0,N,t,void 0,void 0,void 0)};
_.Wc=function(N,t,O){_.oo(function(){_.Z9(t,function(H){Ucg(void 0,N,H,O)})})()};
_.r0=function(N,t,O,H){_.oo(function(){_.Z9(t,function(A){CAM(void 0,N,A,O,H)})})()};
_.IX=function(N,t,O){_.oo(FXx)(void 0,N,t,O,void 0)};
_.lp=function(N,t,O,H){_.oo(KX4)(void 0,N,t,O,H,void 0)};
_.QZ=function(N,t,O){_.oo(dcN)(void 0,N,t,O,void 0)};
cc4=function(N,t){mI.set(N,t)};
$cQ=function(N){EK.initialized=!0;EK.sessionId=N.sessionId||"";EK.enabledSpans=N.enabledSpans;N.shouldSampleFn!=null&&(EK.shouldSampleFn=N.shouldSampleFn)};
jyM=function(N){EK.processors.push(N)};
GT=function(N){return EK.initialized?EK.enabledSpans?EK.enabledSpans[N]:!0:!1};
hRv=function(N,t,O){return GT(N)&&EK.shouldSampleFn(N,t,iY4)?new uLx(N,t,O):Snv};
RX=function(N,t,O){if(typeof O==="function"){var H=O;O=void 0}var A=hRv(N,t,O),Z;if(((Z=O)==null?void 0:Z.endTime)!=null)return H&&_.J_(Error("Ff")),A;var U;A!==Snv&&((U=O)==null?void 0:U.active)!==!1&&EK.stack.push(A);if(!H)return A;if(A===Snv)return H(A);try{var C=H(A);if(C instanceof Promise)return C.then(function(F){A.end();return F},function(F){A.end("SPAN_STATUS_ERROR");
throw F;});
A.end();return C}catch(F){throw A.end("SPAN_STATUS_ERROR"),F;}};
M7N=function(){N1.subscribe("handleError",function(N){try{for(var t in _.vc)try{var O=_.vc[t];typeof _.vc[t]==="function"&&(O=O());N.params[t]=typeof _.vc[t]==="object"?JSON.stringify(O):String(O)}catch(H){_.J_(H)}}catch(H){_.J_(H)}})};
bYt=function(){};
pst=function(N,t){var O=Object.keys(N);N=new _.fF("[Command Handler] "+t,{filteredCommandNames:O,originalCommand:N});_.R0(N)};
LXt=function(N,t){pst(N,t+" was called but not set")};
zRx=function(N){return function(){return new N}};
Jb=function(N){return function(){return _.cY().resolve(N)}};
Yn9=function(N,t){var O=_.M(N,_.Hd);if(O&&(O=t[O.signal]))return O();N=_.D(Object.keys(N));for(O=N.next();!O.done;O=N.next())if(O=O.value,t[O]&&(O=t[O]))return O()};
_.oX=function(N,t,O,H){return{browseEndpoint:{browseId:N},commandMetadata:{webCommandMetadata:{url:t,rootVe:O,webPageType:H===void 0?"WEB_PAGE_TYPE_BROWSE":H}}}};
ahx=function(N,t,O){var H=t=t===void 0?0:t;O=O===void 0?0:O;var A=O-H;return _.sK(N,"PPSV",void 0,void 0,(A>600?0:A<60||O<=0||H/O>.9)?0:t)};
_.sK=function(N,t,O,H,A){var Z="/watch?v="+N;N={videoId:N};t&&(N.playlistId=t,Z+="&list="+t);H&&(Z+="&pp="+H);A&&(N.startTimeSeconds=A,Z+="&t="+A+"s");t={watchEndpoint:N,commandMetadata:{webCommandMetadata:{url:Z,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};O&&(t.clickTrackingParams=O);H&&(_.M(t,_.rN).playerParams=H);return t};
T_l=function(N){return{browseEndpoint:{browseId:"VL"+N},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+N,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
wsg=function(N){if(N){var t;if(N){var O=(t=_.M(N.commandMetadata,_.Da))==null?void 0:t.url;t=!(!O||O==="/service_ajax")}else t=!1;if(t)return N;var H;if(N=(H=_.M(N,_.Ab))==null?void 0:H.commands)for(H=_.D(N),N=H.next();!N.done;N=H.next())if(N=wsg(N.value))return N}};
_.NE=function(N){return{runs:[{text:N}]}};
eR4=function(N,t){return N&&t?{runs:[{text:N,navigationEndpoint:t}]}:void 0};
tB=function(N){return N?_.NE(N):void 0};
_.O_=function(N){return N?{simpleText:N}:void 0};
_.H5=function(N){var t=N.type;N=N.payload;t={type:t};N!==void 0&&(t.payload=N);return t};
PA9=function(N,t,O){for(var H=Object.assign({},N),A=_.D(Object.keys(t)),Z=A.next();!Z.done;Z=A.next()){Z=Z.value;var U=N[Z],C=t[Z];if(C===void 0)delete H[Z];else if(U===void 0)H[Z]=C;else if(Array.isArray(C)&&Array.isArray(U))H[Z]=O?[].concat(_.W6(U),_.W6(C)):C;else if(!Array.isArray(C)&&_.mG(C)&&!Array.isArray(U)&&_.mG(U))H[Z]=PA9(U,C,O);else if(typeof C===typeof U)H[Z]=C;else return t=new _.fF("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:Z,originalValue:U,updateValue:C}),
_.R0(t),N}return H};
kag=function(N){if(!N.length)return"";try{if(Xsz)return Xsz.decode(N);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(N)}catch(U){}for(var t=0,O=[],H=N.length;t<H;){for(var A=0;A<1024&&t<H;){var Z=N[t++];if(Z<128)xcM[A++]=Z;else{if(Z<224)Z=(Z&31)<<6|N[t++]&63;else if(Z<240)Z=(Z&15)<<12|(N[t++]&63)<<6|N[t++]&63;else{if(A+1===1024){--t;break}Z=(Z&7)<<18|(N[t++]&63)<<12|(N[t++]&63)<<6|N[t++]&63;Z-=65536;xcM[A++]=55296|Z>>10;Z=56320|Z&1023}xcM[A++]=Z}}Z=String.fromCharCode.apply(String,
xcM);A<1024&&(Z=Z.substring(0,A));O.push(Z)}return O.join("")};
fh4=function(N,t){var O;if((O=qng)==null?0:O.encodeInto)return t=qng.encodeInto(N,t),t.read<N.length?N.length*4:t.written;for(var H=O=0;H<N.length;H++){var A=N.charCodeAt(H);A<128?t[O++]=A:(A<2048?t[O++]=A>>6|192:((A&64512)===55296&&H+1<N.length&&(N.charCodeAt(H+1)&64512)===56320?(A=65536+((A&1023)<<10)+(N.charCodeAt(++H)&1023),t[O++]=A>>18|240,t[O++]=A>>12&63|128):t[O++]=A>>12|224,t[O++]=A>>6&63|128),t[O++]=A&63|128)}return O};
n9S=function(N,t,O){if(t&&O&&O.buffer===t.exports.memory.buffer){var H=t.realloc(O.byteOffset,N);if(H)return new Uint8Array(t.exports.memory.buffer,H,N)}N=t?new Uint8Array(t.exports.memory.buffer,t.malloc(N),N):new Uint8Array(N);O&&N.set(O);return N};
_.Zn=function(N){N=new WXO(new rcx([_.Jg(decodeURIComponent(N))]));if(IhG(N,2)){var t=AB(N);var O=N.pos;var H=N.arrayView;O=O===void 0?0:O;var A=t===void 0?-1:t;O=O===void 0?0:O;A=A===void 0?-1:A;if(H.totalLength&&A){A<0&&(A=H.totalLength-O);H.focus(O);if(!(O-H.arrayPos+A<=H.arrays[H.arrayIdx].length)){var Z=H.arrayIdx,U=H.arrayPos;H.focus(O+A-1);U=new Uint8Array(H.arrayPos+H.arrays[H.arrayIdx].length-U);for(var C=0,F=Z;F<=H.arrayIdx;F++)U.set(H.arrays[F],C),C+=H.arrays[F].length;H.arrays.splice(Z,
H.arrayIdx-Z+1,U);H.arrayIdx=0;H.arrayPos=0;H.focus(O)}Z=H.arrays[H.arrayIdx];H=new DataView(Z.buffer,Z.byteOffset+O-H.arrayPos,A)}else H=new DataView(new ArrayBuffer(0));H=new Uint8Array(H.buffer,H.byteOffset,H.byteLength);N.pos+=t;t=H}else t=void 0;t=t?kag(t):void 0;N=IhG(N,4)?AB(N):void 0;H=lht[N];if(typeof H==="undefined")throw N=new _.fF("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:N}),_.R0(N),N;return{entityTypeFieldNumber:N,entityType:H,entityId:t}};
_.U_=function(N,t,O){O=O===void 0?0:O;var H=new Qyy;if(qng)N=qng.encode(N);else{var A=new Uint8Array(Math.ceil(N.length*1.2)),Z=fh4(N,A);A.length<Z&&(A=new Uint8Array(Z),Z=fh4(N,A));A.length>Z&&(A=A.subarray(0,Z));N=A}N!==void 0&&(VP(H,18),A=N.length,VP(H,A),Dn(H,A),H.buf.set(N,H.pos),H.pos+=A);N=mct[t];if(typeof N==="undefined")throw O=new _.fF("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:t}),_.R0(O),O;N!==void 0&&(VP(H,32),VP(H,N));VP(H,40);VP(H,1);t=new Uint8Array(H.buf.buffer,
H.buf.byteOffset,H.pos);return encodeURIComponent(_.wi(t,O))};
E9M=function(N){N=N.key||N.id;if(!N)throw Error("Hf");return N};
RRt=function(N,t){N=N===void 0?{}:N;return Gay(N,t)};
v9x=function(N,t,O,H){if(H===void 0)return H=Object.assign({},N[t]||{}),O=(delete H[O],H),H={},Object.assign({},N,(H[t]=O,H));var A={},Z={};return Object.assign({},N,(Z[t]=Object.assign({},N[t],(A[O]=H,A)),Z))};
JcM=function(N,t,O,H,A){var Z=N[t];if(Z==null||!Z[O])return N;H=PA9(Z[O],H,A==="REPEATED_FIELDS_MERGE_OPTION_APPEND");A={};Z={};return Object.assign({},N,(Z[t]=Object.assign({},N[t],(A[O]=H,A)),Z))};
_.CM=function(N,t,O){return N[t]?N[t][O]||null:null};
syt=function(){if(o9v)return o9v();var N={};o9v=$2("PersistentEntityStoreDb",{objectStores:(N.EntityStore={addedAtVersion:1},N.EntityAssociationStore={addedAtVersion:2},N),shared:!1,upgrade:function(t,O){O(1)&&O7(t_(t,"EntityStore",{keyPath:"key"}),"entityType","entityType");O(2)&&(t=t_(t,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),O7(t,"byParentEntityKey","parentEntityKey"),O7(t,"byChildEntityKey","childEntityKey"))},
version:3});return o9v()};
Nyp=function(N){return _.Cz(syt(),N)};
KM=function(N){return window.Int32Array?new Int32Array(N):Array(N)};
OZv=function(N){return _.Cz(tiG(),N)};
HZO=function(N){return new Fo("WRONG_DATA_TYPE",{encoderVersion:N})};
A7Q=function(N){return N instanceof Error?new Fo("UNKNOWN_ENCODE_ERROR",{originalMessage:N.message}):new Fo("UNKNOWN_ENCODE_ERROR")};
ZZt=function(N){return N instanceof Error?new Fo("UNKNOWN_DECODE_ERROR",{originalMessage:N.message}):new Fo("UNKNOWN_DECODE_ERROR")};
ViM=function(N,t){N=N instanceof Fo?N:t(N);_.R0(N);throw N;};
Dat=function(N){N=(new TextEncoder).encode(N).subarray(0,16);var t=new Uint8Array(16);t.set(N);return t};
CI4=function(N){var t=UaO[N];if(t)return t;_.J_(new _.fF("Entity model not found.",{entityType:N}))};
_.d8=function(){K3y||(K3y=F3M());return K3y};
F3M=function(){var N,t,O;return _.K(function(H){if(H.nextAddress==1)return _.Mo(H,2),H.yield(_.ca(),4);if(H.nextAddress!=2){N=H.yieldResult;if(!N||!_.qH()||typeof _.H4.BroadcastChannel==="undefined")return H.return();t=new daN;return H.return(new g8(N,t))}O=_.ax(H);O instanceof Error&&_.R0(O);return H.return()})};
_.yP=function(N,t){var O;return _.K(function(H){if(H.nextAddress==1){O=N.mutations;if(!O||O.length<=0)return H.return();t&&t.dispatch(_.H5({type:"ENTITY_LOADED",payload:O}));return H.yield(g8y(O),2)}O.length=0;_.Ty(H)})};
g8y=function(N){var t;return _.K(function(O){return O.nextAddress==1?O.yield(_.d8(),2):(t=O.yieldResult)?O.yield(_.B5(t,"readwrite",function(H){for(var A={},Z=_.D(N),U=Z.next(),C={};!U.done;C={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},U=Z.next())C.mutation$jscomp$8=U.value,C.mutation$jscomp$8.entityKey&&y7g(C.mutation$jscomp$8)&&(C.mutationEntityType$jscomp$3=(0,_.WW.getAnyKey)(C.mutation$jscomp$8.payload),U=void 0,C.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(U=function(F){return function(){return _.Byg(H,
F.mutation$jscomp$8.payload[F.mutationEntityType$jscomp$3],F.mutationEntityType$jscomp$3)}}(C)),C.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(U=function(F){return function(){return c7t(H,F.mutation$jscomp$8.entityKey)}}(C)),C.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(U=function(F){return function(){return $at(H,F.mutation$jscomp$8.entityKey,F.mutation$jscomp$8.payload[F.mutationEntityType$jscomp$3],F.mutationEntityType$jscomp$3)}}(C)),U&&(A[C.mutation$jscomp$8.entityKey]=
A[C.mutation$jscomp$8.entityKey]?A[C.mutation$jscomp$8.entityKey].then(U):U()));
return Ov.all(Object.values(A))}),0):O.return()})};
y7g=function(N){var t;N=(t=N.options)==null?void 0:t.persistenceOption;return N==="ENTITY_PERSISTENCE_OPTION_PERSIST"||N==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
u9y=function(N,t){var O,H;_.K(function(A){if(A.nextAddress==1)return A.yield(_.d8(),2);if(A.nextAddress!=3)return(O=A.yieldResult)?A.yield(_.B5(O,"readonly",function(Z){var U={},C=Object.keys(t).map(function(F){var g=t[F]?[].concat(_.W6(t[F])):[];return juG(Z,F,g,U)});
return Ov.all(C).then(function(){return U})}),3):A.return();
H=A.yieldResult;Object.keys(H).length>0&&N.dispatch(iZQ(H));_.Ty(A)})};
juG=function(N,t,O,H){return c5(N,t,O).then(function(A){H[t]=SrG(O,A)})};
SrG=function(N,t){if(t.length!==N.length)throw Error("Kf");return t.reduce(function(O,H,A){O[N[A]]=H;return O},{})};
bZS=function(N){var t=N.filter(function(A){var Z;return(A==null?void 0:(Z=A.transferEntity)==null?void 0:Z.transferState)==="TRANSFER_STATE_COMPLETE"}).length,O=N.filter(function(A){var Z;
return(A==null?void 0:(Z=A.transferEntity)==null?void 0:Z.transferState)==="TRANSFER_STATE_FAILED"}).length,H=N.filter(function(A){var Z;
return(A==null?void 0:(Z=A.transferEntity)==null?void 0:Z.transferState)&&hJN.includes(A.transferEntity.transferState)});
if(!(t||H!=null&&H.length))return 0;t=_.Miz(H)+t;N=N.length-O;return N===0?0:Math.round(t*100/N)/100};
_.Miz=function(N){var t=[];t=t.concat.apply(t,_.W6(N.filter(function(Z){return Z.streamEntity}).map(function(Z){var U=Object.assign({},Z.streamEntity),C,F=(C=Z.transferEntity)==null?void 0:C.transferState;
U.streamsProgress=U.streamsProgress||[];U.streamsProgress=U.streamsProgress.map(function(g){var B=Object.assign({},g);B.numBytesDownloaded=F==="TRANSFER_STATE_COMPLETE"?g.numTotalBytes:g.numBytesDownloaded;return B});
return U}).map(function(Z){return Z.streamsProgress})));
var O=N=0;t=_.D(t);for(var H=t.next();!H.done;H=t.next()){var A=H.value;H=Number(A.numBytesDownloaded);A=Number(A.numTotalBytes);O+=isNaN(H)?0:H;N+=isNaN(A)?0:A}return N===0?0:Math.round(O*100/N)/100};
pTO=function(N){if(!N||!N.expirationTimestamp||!N.action)return!1;var t=(0,_.jg)()/1E3;return Number(N.expirationTimestamp)>=t};
jD=function(N){return N&&N.expirationTimestamp&&N.action?pTO(N)&&N.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.i5=function(N){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(N||"TRANSFER_STATE_UNKNOWN")};
L3Q=function(N){var t=new Qyy;if(N!==void 0){var O=Math.ceil(Math.log2(N.length*4+2)/7);O=O===void 0?2:O;VP(t,10);t.submessagePosStack.push(t.pos);t.submessagePosStack.push(O);t.pos+=O;Dn(t,N.length*1.2);O=fh4(N,t.buf.subarray(t.pos));t.pos+O>t.buf.length&&(Dn(t,O),O=fh4(N,t.buf.subarray(t.pos)));t.pos+=O;N=t.submessagePosStack.pop();O=t.submessagePosStack.pop();for(var H=t.pos-O-N;N--;){var A=N?128:0;t.view.setUint8(O++,H&127|A);H>>=7}}t=new Uint8Array(t.buf.buffer,t.buf.byteOffset,t.pos);return(new TextDecoder("utf-8")).decode(t)};
_.u5=function(N){var t=0;N=_.D(N);for(var O=N.next(),H={};!O.done;H={transferState$jscomp$3:void 0},O=N.next()){var A=O.value,Z=void 0;O=(Z=A.streamEntity)!=null?Z:{};Z=void 0;H.transferState$jscomp$3=(Z=A.transferEntity)==null?void 0:Z.transferState;Z=A=void 0;((A=O)==null?0:(Z=A.streamsProgress)==null?0:Z.length)&&O.streamsProgress.forEach(function(U){return function(C){C=Number(U.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?C.numTotalBytes:C.numBytesDownloaded);isFinite(C)&&(t+=C)}}(H))}return t};
zJM=function(N){return N.some(function(t){var O;if(!(t==null?0:(O=t.transferEntity)==null?0:O.transferState)){var H;return!(t==null?0:(H=t.policyEntity)==null?0:H.action)||t.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return hJN.includes(t.transferEntity.transferState)})};
Yrt=function(N,t){if(!t)return!1;if(_.h("of_pb_en_po_ks"))return!0;var O;N=(O=_.CM(N,"offlineVideoPolicy",_.U_(t,"offlineVideoPolicy")))!=null?O:void 0;return!!N&&jD(N)};
_.TyS=function(N){var t=["TRANSFER_STATE_COMPLETE"];t=t===void 0?aI4:t;return N.filter(function(O){var H,A;return t.includes((A=(H=O.transferEntity)==null?void 0:H.transferState)!=null?A:"TRANSFER_STATE_UNKNOWN")})};
wTQ=function(N,t){if(t){var O,H=(O=_.CM(N,"playbackData",_.U_(t,"playbackData")))!=null?O:null,A;O=(A=_.CM(N,"transfer",_.U_(t,"transfer")))!=null?A:null;var Z;A=(Z=_.CM(N,"offlineVideoStreams",_.U_(t,"offlineVideoStreams")))!=null?Z:null;var U;N=(U=_.CM(N,"offlineVideoPolicy",_.U_(t,"offlineVideoPolicy")))!=null?U:null;if(H||O||A||N)return{playbackDataEntity:H,transferEntity:O,streamEntity:A,policyEntity:N}}};
_.SD=function(N){var t=N.playbackData;if(!t)return[];var O=[];t=_.D(Object.keys(t));for(var H=t.next();!H.done;H=t.next()){var A=H.value;if(!eJO(N,_.Zn(A).entityId)&&(H=wTQ(N,_.Zn(A).entityId))){var Z=void 0,U=void 0;A=(U=Number((Z=_.CM(N,"playbackData",A))==null?void 0:Z.streamDownloadTimestampSeconds))!=null?U:(0,_.jg)();O.push({entity:H,streamDownloadTimestamp:A})}}return O.sort(function(C,F){var g=C.streamDownloadTimestamp,B=F.streamDownloadTimestamp;return B===g?C.entity.streamEntity&&!F.entity.streamEntity?
1:-1:B-g}).map(function(C){return C.entity})};
PIl=function(N){return _.TyS(_.SD(N))};
_.XTx=function(N){return _.SD(N).filter(function(t){var O;if(((O=t.policyEntity)==null?0:O.action)&&t.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var H;if((H=t.transferEntity)==null?0:H.transferState){var A;return hJN.includes((A=t.transferEntity)==null?void 0:A.transferState)}return!0})};
eJO=function(N,t){var O;return((O=_.CM(N,"downloadStatusEntity",_.U_(t,"downloadStatusEntity")))==null?void 0:O.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
xag=function(N){var t;if(N==null?0:(t=N.playbackDataEntity)==null?0:t.key)return _.Zn(N.playbackDataEntity.key).entityId;var O;if(N==null?0:(O=N.transferEntity)==null?0:O.key)return _.Zn(N.transferEntity.key).entityId;var H;if(N==null?0:(H=N.streamEntity)==null?0:H.key)return _.Zn(N.streamEntity.key).entityId;var A;if(N==null?0:(A=N.policyEntity)==null?0:A.key)return _.Zn(N.policyEntity.key).entityId};
qrS=function(N){var t=new Set,O;N=(O=N.mainDownloadsListEntity)==null?void 0:O[kPt];var H;if(!(N==null?0:(H=N.downloads)==null?0:H.length))return t;var A;N==null||(A=N.downloads)==null||A.forEach(function(Z){(Z==null?0:Z.videoItem)&&t.add(Z.videoItem)});
return t};
hB=function(N,t){if(t){var O=_.CM(N,"mainVideoEntity",_.U_(t,"mainVideoEntity")),H=_.CM(N,"downloadStatusEntity",_.U_(t,"downloadStatusEntity")),A=_.CM(N,"ytMainChannelEntity",_.U_(t,"ytMainChannelEntity")),Z={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};N=wTQ(N,t);H=(H==null?void 0:H.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.h("woffle_render_failed_download_state_ks")&&(H==null?void 0:H.downloadState)==="DOWNLOAD_STATE_FAILED";!N&&H&&(N=Z);if(N&&O&&
A)return Object.assign({},{videoEntity:O,channelEntity:A},N)}};
n8x=function(N,t){return fIN(N,t)==="TRANSFER_STATE_COMPLETE"&&Yrt(N,t)};
W34=function(N,t){if(!t)return!1;var O;N=(O=_.CM(N,"playbackData",_.U_(t,"playbackData")))!=null?O:void 0;return!!N&&!!N.playerResponseJson};
fIN=function(N,t){if(!t)return"TRANSFER_STATE_UNKNOWN";var O=_.CM(N,"transfer",_.U_(t,"transfer"));if(O){var H;return(H=O.transferState)!=null?H:"TRANSFER_STATE_UNKNOWN"}O=_.CM(N,"offlineOrchestrationActionWrapperEntity",_.U_(t,"offlineOrchestrationActionWrapperEntity"));N=_.CM(N,"mainVideoEntity",_.U_(t,"mainVideoEntity"));return O||N?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
r7O=function(N,t){if(!t)return"TRANSFER_STATE_UNKNOWN";if(N=_.CM(N,"transfer",_.U_(t,"transfer"))){var O;return(O=N.transferState)!=null?O:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
IIM=function(N,t){return t&&(N=_.CM(N,"videoPlaybackPositionEntity",_.U_(t,"videoPlaybackPositionEntity")),N==null?0:N.lastPlaybackPositionSeconds)?Number(N.lastPlaybackPositionSeconds):0};
Quv=function(N,t){return lIM(N).some(function(O){var H;return(O==null?void 0:(H=O.mainPlaylistEntity)==null?void 0:H.playlistId)===t})};
E8M=function(N,t,O){var H=may(N,t);if(!H.length)return[];t=[];H=_.D(H);for(var A=H.next();!A.done;A=H.next()){A=A.value;var Z=hB(N,A);O&&fIN(N,A)!=="TRANSFER_STATE_COMPLETE"||Z&&t.push(Z)}return t};
may=function(N,t){if(!t)return[];var O=_.U_(t,"mainPlaylistEntity"),H;t=(H=N.mainPlaylistEntity)==null?void 0:H[O];H=[];if(t==null||!t.videos)return H;t=_.D(t.videos);for(O=t.next();!O.done;O=t.next()){O=O.value;var A=void 0,Z=void 0,U=void 0,C=(A=N)==null?void 0:(Z=A.mainPlaylistVideoEntity)==null?void 0:(U=Z[O])==null?void 0:U.video;C&&(O=_.Zn(C).entityId)&&H.push(O)}return H};
GP9=function(N,t){if(t){var O=_.CM(N,"mainPlaylistEntity",_.U_(t,"mainPlaylistEntity")),H=_.CM(N,"mainPlaylistDownloadStateEntity",_.U_(t,"mainPlaylistDownloadStateEntity"));N=_.CM(N,"ytMainChannelEntity",_.U_(t,"ytMainChannelEntity"));if(H&&O)return Object.assign({},{mainPlaylistEntity:O,mainPlaylistDownloadStateEntity:H},!!N&&{channelEntity:N})}};
lIM=function(N){return RJl(N).sort(function(t,O){return O.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return t.downloadedPlaylistEntities})};
RJl=function(N){var t=N.mainPlaylistDownloadStateEntity,O=[];if(!t)return O;for(var H=_.D(Object.keys(t)),A=H.next();!A.done;A=H.next()){var Z=A.value;A=GP9(N,_.Zn(Z).entityId);var U=void 0;Z=Number((U=t[Z])==null?void 0:U.addedTimestampMillis);U=isNaN(Z)?(0,_.jg)():Z;A!==void 0&&O.push({downloadedPlaylistEntities:A,addedTimestampMillis:U})}return O};
v84=function(N){var t,O=(t=N.mainPlaylistVideoEntity)!=null?t:{};return new Set(lIM(N).reduce(function(H,A){H=H===void 0?[]:H;var Z,U;A==null||(Z=A.mainPlaylistEntity)==null||(U=Z.videos)==null||U.forEach(function(C){var F;(C=(F=O[C])==null?void 0:F.video)&&H.push(C)});
return H},[]))};
J7z=function(N){return"downloadedMusicPlaylistEntities"in N};
o8Q=function(N){return"mainPlaylistEntity"in N&&"mainPlaylistDownloadStateEntity"in N};
sul=function(N){return"videoEntity"in N&&"channelEntity"in N};
NdG=function(N){var t=N.musicPlaylistDownloadMetadataEntity,O=[];if(!t)return O;for(var H=_.D(Object.keys(t)),A=H.next();!A.done;A=H.next()){A=A.value;a:{var Z=N,U=_.Zn(A).entityId;if(U){var C=_.CM(Z,"musicPlaylist",_.U_(U,"musicPlaylist"));Z=_.CM(Z,"musicPlaylistDownloadMetadataEntity",_.U_(U,"musicPlaylistDownloadMetadataEntity"));if(C&&Z){C={musicPlaylistEntity:C,musicPlaylistDownloadStateEntity:Z};break a}}C=void 0}Z=void 0;A=Number((Z=t[A])==null?void 0:Z.addedTimestampMillis);A=isNaN(A)?(0,_.jg)():
A;C!==void 0&&O.push({downloadedMusicPlaylistEntities:C,addedTimestampMillis:A})}return O};
ttS=function(N){var t=new Set;N=_.D(N);for(var O=N.next();!O.done;O=N.next())if(O=O.value,"musicPlaylistEntity"in O&&"musicPlaylistDownloadStateEntity"in O){O=_.D(O.musicPlaylistEntity.tracks);for(var H=O.next();!H.done;H=O.next())t.add(H.value)}return t};
ODQ=function(N,t){if(t){var O=_.CM(N,"musicTrack",_.U_(t,"musicTrack")),H=_.CM(N,"musicArtist",_.U_(t,"musicArtist"))||{};if((N=wTQ(N,t))&&O&&H)return Object.assign({},{musicTrackEntity:O,musicArtistEntity:H},N)}};
HDO=function(N){var t=N.musicTrackDownloadMetadataEntity,O=[];if(!t)return[];t=_.D(Object.keys(t));for(var H=t.next();!H.done;H=t.next()){var A=H.value;H=ODQ(N,_.Zn(A).entityId);var Z=void 0;A=Number((Z=_.CM(N,"musicTrackDownloadMetadataEntity",A))==null?void 0:Z.addedTimestampMillis);Z=isNaN(A)?(0,_.jg)():A;H!==void 0&&O.push({downloadedMusicEntities:H,addedTimestampMillis:Z})}return O};
Vtz=function(N,t){if(!t)return[];if(Object.values(APx).includes(t))return ZD9(N,t);t=_.U_(t,"musicPlaylist");var O;N=(O=N.musicPlaylist)==null?void 0:O[t];O=[];if(N==null||!N.tracks)return O;N=_.D(N.tracks);for(t=N.next();!t.done;t=N.next())(t=_.Zn(t.value).entityId)&&O.push(t);return O};
ZD9=function(N,t){var O=new Set,H=NdG(N).map(function(Z){return Z.downloadedMusicPlaylistEntities});
H=ttS(H);H=_.D(H);for(var A=H.next();!A.done;A=H.next())(A=_.Zn(A.value).entityId)&&O.add(A);return DFQ(N).downloadedMusicEntities.filter(function(Z){var U;if((U=Z.musicTrackEntity)!=null&&U.videoId){Z=Z.musicTrackEntity;if(U=t==="PPOM"?!0:!O.has(Z.videoId))b:switch(Z=Z.musicVideoType,t){case "PPSE":U=Z==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:U=Z!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}Z=U}else Z=!1;return Z}).map(function(Z){var U;
return(U=Z.musicTrackEntity)==null?void 0:U.videoId})};
DFQ=function(N){var t=HDO(N).sort(function(O,H){return H.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return"downloadedMusicEntities"in O?O.downloadedMusicEntities:J7z(O)?O.downloadedMusicPlaylistEntities:{}});
N=NdG(N).sort(function(O,H){return H.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return"downloadedMusicEntities"in O?O.downloadedMusicEntities:J7z(O)?O.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:t,downloadedMusicPlaylistEntities:N}};
CLz=function(N,t){t=_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Vtz(N,t):may(N,t);if(!t.length)return"TRANSFER_STATE_UNKNOWN";t=t.map(function(O){return r7O(N,O)});
return UFO(t)};
UFO=function(N){var t=new Set(N);if(t.has("TRANSFER_STATE_FAILED")&&t.size===1)return"TRANSFER_STATE_FAILED";t.delete("TRANSFER_STATE_FAILED");if(t.has("TRANSFER_STATE_UNKNOWN")&&t.size===1)return"TRANSFER_STATE_PRE_TRANSFER";t.delete("TRANSFER_STATE_UNKNOWN");if(t.has("TRANSFER_STATE_PRE_TRANSFER")&&t.size===1||t.size===0)return"TRANSFER_STATE_PRE_TRANSFER";N=t.has("TRANSFER_STATE_TRANSFERRING");t=t.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return N||t?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
ME=function(N){var t=N.mainVideoDownloadStateEntity,O=[];if(!t)return[];t=_.D(Object.keys(t));for(var H=t.next();!H.done;H=t.next()){var A=H.value;if(!eJO(N,_.Zn(A).entityId)){H=hB(N,_.Zn(A).entityId);var Z=void 0,U=void 0;A=(U=Number((Z=_.CM(N,"mainVideoDownloadStateEntity",A))==null?void 0:Z.addedTimestampMillis))!=null?U:(0,_.jg)();H!==void 0&&O.push({downloadedVideoEntities:H,addedTimestampMillis:A})}}return O};
KJQ=function(N){return ME(N).sort(function(t,O){return O.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return t.downloadedVideoEntities})};
_.dFv=function(N){var t=v84(N),O=_.b5(N),H=qrS(N),A=ME(N).filter(function(U){var C,F;if((U==null?void 0:(C=U.downloadedVideoEntities)==null?void 0:(F=C.transferEntity)==null?void 0:F.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var g,B;U=U==null?void 0:(g=U.downloadedVideoEntities)==null?void 0:(B=g.videoEntity)==null?void 0:B.key;return _.h("kevlar_use_library_entity")?U&&(H.has(U)||O[U]):U&&!t.has(U)}),Z=RJl(N).filter(function(U){return CLz(N,U.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.W6(A),_.W6(Z)).sort(function(U,C){return C.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return FJS(U)})};
gOl=function(N,t){if(t&&Yrt(N,t)){var O,H,A=(H=(O=_.CM(N,"playbackData",_.U_(t,"playbackData")))!=null?O:void 0)==null?void 0:H.playerResponseJson;if(A){try{var Z=JSON.parse(A);var U=_.CM(N,"transfer",_.U_(t,"transfer")),C=IIM(N,t);C&&(Z=Object.assign({},Z,{playerConfig:Object.assign({},Z.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+C*1E3}}})}));Z.cotn=U==null?void 0:U.cotn}catch(F){}return Z}}};
_.BdN=function(N){var t,O,H;N=(H=(O=((t=N.downloadsPageViewConfigurationEntity)!=null?t:{})[_.pM])==null?void 0:O.smartDownloadsOptInBannerVisibility)!=null?H:{};var A;return(A=_.M(N,yPv))!=null?A:{}};
_.b5=function(N){var t,O,H;N=(H=(O=((t=N.mainDownloadsListEntity)!=null?t:{})[_.cPM])==null?void 0:O.downloads)!=null?H:[];t={};O=_.D(N);for(H=O.next();!H.done;H=O.next())N=void 0,t[(N=H.value.videoItem)!=null?N:""]=!0;return t};
$Fx=function(N){var t=_.b5(N);if(Object.keys(t).length===0)return!1;var O=N.mainVideoEntity;if(!O)return!0;O=_.D(Object.keys(O));for(var H=O.next();!H.done;H=O.next()){H=H.value;var A=_.Zn(H).entityId;if(t[H]&&!eJO(N,A))return!1}return!0};
_.LM=function(N){var t=_.b5(N);return ME(N).sort(function(O,H){return O.addedTimestampMillis-H.addedTimestampMillis}).map(function(O){return O.downloadedVideoEntities}).filter(function(O){var H;
return(O=O==null?void 0:(H=O.videoEntity)==null?void 0:H.key)&&!!t[O]})};
_.iDG=function(N){var t,O,H;N=(H=(O=((t=N.downloadsPageViewConfigurationEntity)!=null?t:{})[_.pM])==null?void 0:O.downloadsUpsellBannerVisibility)!=null?H:{};var A;return(A=_.M(N,jwv))!=null?A:{}};
FJS=function(N){return"downloadedVideoEntities"in N?N.downloadedVideoEntities:"downloadedPlaylistEntities"in N?N.downloadedPlaylistEntities:{}};
u5N=function(N){var t=_.b5(N),O=v84(N),H=ME(N).filter(function(A){var Z,U;return(A=A==null?void 0:(Z=A.downloadedVideoEntities)==null?void 0:(U=Z.videoEntity)==null?void 0:U.key)&&!t[A]&&!O.has(A)});
N=RJl(N);return[].concat(_.W6(H),_.W6(N)).sort(function(A,Z){return Z.addedTimestampMillis-A.addedTimestampMillis}).map(function(A){return FJS(A)})};
_.zv=function(N){if(!_.h("kevlar_use_library_entity"))return u5N(N);var t=ME(N).filter(function(H){var A,Z;if(A=H=H==null?void 0:(A=H.downloadedVideoEntities)==null?void 0:(Z=A.videoEntity)==null?void 0:Z.key){var U,C,F;A=((C=(U=N.mainDownloadsListEntity)==null?void 0:U[kPt])==null?0:(F=C.downloads)==null?0:F.length)?qrS(N).has(H):!1}return A}),O=RJl(N);
return[].concat(_.W6(t),_.W6(O)).sort(function(H,A){return A.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return FJS(H)})};
SoG=function(N){var t=_.b5(N),O=v84(N);return KJQ(N).filter(function(H){var A;return(H=H==null?void 0:(A=H.videoEntity)==null?void 0:A.key)&&!t[H]&&!O.has(H)})};
htg=function(N){if(!_.h("kevlar_use_library_entity"))return SoG(N);var t=_.b5(N),O=qrS(N);return KJQ(N).filter(function(H){var A;return(H=H==null?void 0:(A=H.videoEntity)==null?void 0:A.key)&&!t[H]&&O.has(H)})};
Mtp=function(N,t){t=_.U_(t,"settingEntity");var O,H,A;return!!((A=(H=((O=N.settingEntity)!=null?O:{})[t])==null?void 0:H.settingOptionValue)!=null?A:{}).boolValue};
_.Yj=function(N){var t=_.LM(N);if(zJM(t))return 0;var O=[];t=_.D(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var A=void 0,Z=void 0;if((A=H)==null?0:(Z=A.videoEntity)==null?0:Z.key)A=_.Zn(H.videoEntity.key).entityId,H=N,A=_.U_(A,"mainVideoDownloadStateEntity"),H=_.CM(H,"mainVideoDownloadStateEntity",A),(H=Number(H==null?void 0:H.addedTimestampMillis))&&O.push(H)}return Math.max.apply(Math,_.W6(O))};
_.aJ=function(N){return N.ui.richGridMiniMode};
_.Tv=function(N){return N.ui.richGridItemsPerRow};
_.bDl=function(N){return N.ui.richGridSlimItemsPerRow};
_.puv=function(N){return N.ui.guideIsExpanded};
_.w8=function(N){return N.ui.miniplayerIsActive};
LJ9=function(N){return N.ui.singleOptionSurveyIsActive};
_.eD=function(N){var t;return((t=N.ui)==null?void 0:t.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.ztQ=function(N){return _.eD(N)==="WEB_PAGE_TYPE_WATCH"};
_.Yol=function(N){return _.eD(N)==="WEB_PAGE_TYPE_SHORTS"};
_.aTx=function(N){return N.ui.inlinePreviewIsActive};
_.Tdv=function(N){return N.ui.inlinePreviewIsEnabled};
_.wuQ=function(N){return N.ui.miniplayerPlaybackState};
_.P5=function(N){return N.ui.isOnline};
_.etx=function(N){return N.ui.frostedGlassMode};
_.Xo=function(N,t){return fIN(N.entities,t)};
_.xj=function(N,t){return CLz(N.entities,t)};
PLt=function(N,t){var O;if(t){var H;N=(H=_.CM(N.entities,"offlineVideoPolicy",_.U_(t,"offlineVideoPolicy")))==null?void 0:H.action}else N=void 0;return(O=N)!=null?O:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Xuv=function(N,t){var O;t?(N=_.CM(N.entities,"offlineVideoPolicy",_.U_(t,"offlineVideoPolicy")),N=Number(N==null?void 0:N.expirationTimestamp)):N=void 0;return(O=N)!=null?O:0};
_.xFQ=function(N){return _.SD(N.entities).length};
k6S=function(N,t){return hB(N.entities,t)};
qox=function(N,t){return GP9(N.entities,t)};
qE=function(N,t){return(N=hB(N.entities,t))?_.Miz([N]):0};
_.fTN=function(N,t){var O=_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(O){var H=N.entities;var A=Vtz(H,t);if(A.length){var Z=[];A=_.D(A);for(var U=A.next();!U.done;U=A.next())(U=ODQ(H,U.value))&&Z.push(U);H=Z}else H=[]}else H=E8M(N.entities,t);var C;if(O){var F=N.entities;t?(t=_.U_(t,"musicPlaylist"),F=(C=F.musicPlaylist)==null?void 0:C[t],C=F!=null&&F.tracks?F.tracks.length:0):C=0}else C=N.entities,t?(t=_.U_(t,"mainPlaylistEntity"),C=(F=C.mainPlaylistEntity)==null?void 0:F[t],C=C!=null&&C.videos?
C.videos.length:0):C=0;return H.length!==C?0:H?bZS(H):0};
_.nO9=function(N){return N.download.isLeaderTab};
_.WJG=function(N,t,O){if(!t&&O){var H=N.entities;if(O){var A=L3Q(O),Z,U;t=(U=(Z=_.CM(H,"offlineabilityEntity",_.U_(A,"offlineabilityEntity")))==null?void 0:Z.addToOfflineButtonState)!=null?U:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else t="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else Z=N.entities,t?(U=L3Q(t),t=(A=(H=_.CM(Z,"offlineabilityEntity",_.U_(U,"offlineabilityEntity")))==null?void 0:H.addToOfflineButtonState)!=null?A:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):t="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return t};
rPO=function(N,t){N=N.entities;if(t){t=L3Q(t);var O,H;t=(H=(O=_.CM(N,"offlineabilityEntity",_.U_(t,"offlineabilityEntity")))==null?void 0:O.addToOfflineButtonState)!=null?H:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else t="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return t};
_.ITN=function(N){var t=N.entities;N=_.P5(N);var O=Mtp(t,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.h("kevlar_modern_downloads_page")&&O)var H=!1;else{var A,Z;t=(Z=(A=((H=t.downloadsPageViewConfigurationEntity)!=null?H:{})[_.pM])==null?void 0:A.smartDownloadsOptInBannerVisibility)!=null?Z:{};H=N?!!t.visibleWithConnection:!!t.visibleWithoutConnection}return H};
_.lTv=function(N){return Mtp(N.entities,"SMART_DOWNLOADS_ENABLED")};
_.Qwz=function(N){return $Fx(N.entities)};
mFt=function(N){return _.LM(N.entities).every(function(t){var O;return(t==null?void 0:(O=t.transferEntity)==null?void 0:O.transferState)&&!hJN.includes(t.transferEntity.transferState)})};
_.EOO=function(N){var t,O,H,A=(H=(O=((t=N.entities.downloadsPageViewConfigurationEntity)!=null?t:{})[_.pM])==null?void 0:O.downloadsUpsellBannerVisibility)!=null?H:{};return _.P5(N)?!!A.visibleWithConnection:!!A.visibleWithoutConnection};
_.G6x=function(N,t){return eJO(N.entities,t)};
RtO=function(N,t){if(t){var O,H;N=(H=(O=_.CM(N.entities,"downloadStatusEntity",_.U_(t,"downloadStatusEntity")))==null?void 0:O.downloadState)!=null?H:"DOWNLOAD_STATE_UNKNOWN"}else N="DOWNLOAD_STATE_UNKNOWN";return N};
fM=function(N,t){return IIM(N.entities,t)};
swz=function(N){N=vOx(N);var t=N.hours===void 0?0:N.hours,O=N.minutes===void 0?0:N.minutes,H=N.seconds===void 0?0:N.seconds,A=t>0;N=[];A&&(t=JP9(t),N.push(t));t=A;t=t===void 0?!1:t;O=(["af","be","lt"].includes(nM)||t)&&O<10?oOQ().format(O):(new Intl.NumberFormat("en-u-nu-latn")).format(O);N.push(O);O=oOQ().format(H);N.push(O);O=":";"da fi id si sr sr-Latn".split(" ").includes(nM)&&(O=".");return N.join(O)};
_.tNv=function(N){N=vOx(N);var t=N.hours===void 0?0:N.hours,O=N.minutes===void 0?0:N.minutes,H=N.seconds===void 0?0:N.seconds;N=[];if(t>0){var A=NOx().format({hours:t});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(nM)||t>9999)A=A.replace(t.toString(),JP9(t)),nM==="km"&&(A=A.replace(".",","));N.push(A)}O>0&&N.push(NOx().format({minutes:O}));H>0&&N.push(NOx().format({seconds:H}));t="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");O=nM=="am"?"{0}\u1363 ":nM=="fa"?"{0}\u060c\u200f ":
nM=="my"?"{0} - ":nM=="ne"?"{0},":nM=="th"?"{0} ":nM=="ur"?"{0}\u060c ":nM=="ar"||nM=="ar-XB"?"{0} \u0648":nM=="ja"||nM=="zh-CN"||nM=="zh-HK"||nM=="zh-TW"?"{0}\u3001":"{0}, ";H=nM=="am"?"\u1363 ":nM=="fa"?"\u060c\u200f ":nM=="my"?" - ":nM=="th"?" ":nM=="ur"?"\u060c ":nM=="ar"||nM=="ar-XB"?" \u0648":nM=="ja"||nM=="zh-CN"||nM=="zh-HK"||nM=="zh-TW"?"\u3001":", ";A=nM=="am"?" \u12a5\u1293 {0}":nM=="as"?" \u0986\u09f0\u09c1 {0}":nM=="az"?" v\u0259 {0}":nM=="bn"?" \u098f\u09ac\u0982 {0}":nM=="cs"?" a\u00a0{0}":
nM=="de"?" und {0}":nM=="el"?" \u03ba\u03b1\u03b9 {0}":nM=="eu"?" eta {0}":nM=="fa"?"\u060c \u0648 {0}":nM=="fil"?", at {0}":nM=="gu"?" \u0a85\u0aa8\u0ac7 {0}":nM=="hi"?", \u0914\u0930 {0}":nM=="hu"?" \u00e9s {0}":nM=="hy"?" \u0587 {0}":nM=="id"?", dan {0}":nM=="iw"?" \u05d5-{0}":nM=="ja"?"\u3001{0}":nM=="ka"?" \u10d3\u10d0 {0}":nM=="km"?" \u1793\u17b7\u1784 {0}":nM=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":nM=="ko"?" \ubc0f {0}":nM=="ky"?" \u0436\u0430\u043d\u0430 {0}":nM=="lt"?" ir {0}":nM==
"lv"?" un {0}":nM=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":nM=="mr"?" \u0906\u0923\u093f {0}":nM=="ms"?" dan {0}":nM=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":nM=="ne"?" \u0930 {0}":nM=="or"?", \u0b13 {0}":nM=="pa"?" \u0a05\u0a24\u0a47 {0}":nM=="ro"?" \u0219i {0}":nM=="si"?", \u0dc3\u0dc4 {0}":nM=="sk"?" a {0}":nM=="sl"?" in {0}":nM=="sq"?" dhe {0}":nM=="sv"?" och {0}":nM=="sw"?" na {0}":nM=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":nM=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
nM=="th"?" \u0e41\u0e25\u0e30{0}":nM=="tr"?" ve {0}":nM=="ur"?"\u060c \u0627\u0648\u0631 {0}":nM=="uz"?" va {0}":nM=="vi"?" v\u00e0 {0}":nM=="zh-HK"?"\u53ca{0}":nM=="zu"?", ne-{0}":nM=="af"||nM=="nl"?" en {0}":nM=="ar"||nM=="ar-XB"?" \u0648{0}":nM=="be"||nM=="uk"?" \u0456 {0}":nM=="en-GB"||nM=="en-IN"?" and {0}":nM=="en"||nM=="en-XA"?", and {0}":nM=="et"||nM=="fi"?" ja {0}":nM=="fr"||nM=="fr-CA"?" et {0}":nM=="zh-CN"||nM=="zh-TW"?"\u548c{0}":nM=="da"||nM=="is"||nM=="no"?" og {0}":nM=="es"||nM=="es-419"||
nM=="es-US"?" y {0}":nM=="kk"||nM=="lo"||nM=="mn"?", {0}":nM=="bg"||nM=="mk"||nM=="ru"||nM=="sr"?" \u0438 {0}":nM=="gl"||nM=="it"||nM=="pt-BR"||nM=="pt-PT"?" e {0}":" i {0}";var Z=nM=="am"?"{0} \u12a5\u1293 {1}":nM=="as"?"{0} \u0986\u09f0\u09c1 {1}":nM=="az"?"{0} v\u0259 {1}":nM=="bn"?"{0} \u098f\u09ac\u0982 {1}":nM=="de"?"{0} und {1}":nM=="el"?"{0} \u03ba\u03b1\u03b9 {1}":nM=="eu"?"{0} eta {1}":nM=="fa"?"{0} \u0648 {1}":nM=="fil"?"{0} at {1}":nM=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":nM=="hi"?"{0} \u0914\u0930 {1}":
nM=="hu"?"{0} \u00e9s {1}":nM=="hy"?"{0} \u0587 {1}":nM=="iw"?"{0} \u05d5-{1}":nM=="ja"?"{0}\u3001{1}":nM=="ka"?"{0} \u10d3\u10d0 {1}":nM=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":nM=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":nM=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":nM=="ko"?"{0} \ubc0f {1}":nM=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":nM=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":nM=="lt"?"{0} ir {1}":nM=="lv"?"{0} un {1}":nM=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":nM=="mn"?"{0}, {1}":nM==
"mr"?"{0} \u0906\u0923\u093f {1}":nM=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":nM=="ne"?"{0} \u0930 {1}":nM=="or"?"{0} \u0b13 {1}":nM=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":nM=="ro"?"{0} \u0219i {1}":nM=="si"?"{0} \u0dc3\u0dc4 {1}":nM=="sl"?"{0} in {1}":nM=="sq"?"{0} dhe {1}":nM=="sv"?"{0} och {1}":nM=="sw"?"{0} na {1}":nM=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":nM=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":nM=="th"?"{0}\u0e41\u0e25\u0e30{1}":nM=="tr"?"{0} ve {1}":nM=="ur"?
"{0} \u0627\u0648\u0631 {1}":nM=="uz"?"{0} va {1}":nM=="vi"?"{0} v\u00e0 {1}":nM=="zh-HK"?"{0}\u53ca{1}":nM=="zu"?"{0} ne-{1}":nM=="af"||nM=="nl"?"{0} en {1}":nM=="ar"||nM=="ar-XB"?"{0} \u0648{1}":nM=="be"||nM=="uk"?"{0} \u0456 {1}":nM=="cs"||nM=="sk"?"{0} a\u00a0{1}":nM=="et"||nM=="fi"?"{0} ja {1}":nM=="fr"||nM=="fr-CA"?"{0} et {1}":nM=="id"||nM=="ms"?"{0} dan {1}":nM=="zh-CN"||nM=="zh-TW"?"{0}\u548c{1}":nM=="da"||nM=="is"||nM=="no"?"{0} og {1}":nM=="es"||nM=="es-419"||nM=="es-US"?"{0} y {1}":nM==
"bg"||nM=="mk"||nM=="ru"||nM=="sr"?"{0} \u0438 {1}":nM=="en"||nM=="en-GB"||nM=="en-IN"||nM=="en-XA"?"{0} and {1}":nM=="gl"||nM=="it"||nM=="pt-BR"||nM=="pt-PT"?"{0} e {1}":"{0} i {1}";nM==="sq"?(A=A.replace("dhe","e"),Z=Z.replace("dhe","e")):nM==="th"?(H=H.replace("{0}"," {0}"),Z=Z.replace("{0}","{0} "),Z=Z.replace("{1}"," {1}")):nM==="ne"?H=",":nM==="zh-CN"?H="":t.includes(nM)&&(H=" ");return N.length<2?N.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(nM)?
N.length===2?Z.replace("{0}",N[0]).replace("{1}",N[1]):O.replace("{0}",N[0])+N.slice(1,-1).join(H)+A.replace("{0}",N[N.length-1]):N.join(H)};
vOx=function(N){var t=N.hours||0,O=N.minutes||0,H=N.seconds||0;t=H+O*60+t*3600+(N.days||0)*86400+(N.weeks||0)*604800+(N.months||0)*2629800+(N.years||0)*31557600;if(t<=0)return{hours:0,minutes:0,seconds:0};N=t;t=Math.floor(N/3600);N%=3600;O=Math.floor(N/60);H=Math.floor(N%60);return{hours:t,minutes:O,seconds:H}};
JP9=function(N){N=(new Intl.NumberFormat("en-u-nu-latn")).format(N);var t=["fr"],O="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(nM)?N.replace(",","\u00a0"):t.includes(nM)?N.replace(",","\u202f"):O.includes(nM)?N.replace(",","."):N};
oOQ=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
NOx=function(){OXx||(W5=HXx,OXx=new Ait);return OXx};
ZXO=function(N){try{return(new _.r8(5)).format(N)}catch(t){}};
IJ=function(N){return{thumbnailOverlayDownloadingRenderer:{state:N}}};
VN4=function(){var N=_.CJ("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.NE(N),icon:{iconType:"PLAY_ALL"}}}};
D3p=function(N){N=_.l5(N,2);return nM!=="ru"&&nM!=="es_419"&&nM!=="es-419"&&nM!=="es"&&nM!=="es_US"&&nM!=="es-US"&&nM!=="fr"&&nM!=="pl"&&nM!=="it"&&nM!=="nl"&&nM!=="uk"&&nM!=="fr_CA"&&nM!=="fr-CA"||N===""?N:N[0].toLocaleUpperCase()+N.substring(1)};
CWg=function(N){return function(t){var O=N(),H=_.l5(t,O.dateFormat);t=_.l5(t,O.timeFormat);var A=U3N.DATETIMEFORMATS[O.joinerStyle];A=A.replace(/'(?!')/g,"");A=A.replace("{0}",t);A=A.replace("{1}",H);return O.capitalize(A)}};
KSp=function(N){return N?typeof N.seconds==="string"&&(N.nanos===void 0||typeof N.nanos==="number"):!1};
FSx=function(N){return new Date(Number(N.seconds)*1E3+(N.nanos||0)*1E-6)};
_.l5=function(N,t){if(typeof N.getTime==="function")N={date:N};else if(KSp(N))N={date:FSx(N)};else if(typeof KSp(N.timestamp)&&typeof N.i18nInternalSecondsEastOfUtc==="number")N={date:FSx(N.timestamp),timeZone:QP(-N.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(N));var O=N;N=O.date;O=O.timeZone;t=d3v(t).format(N,O);nM==="zh-TW"&&(N=O?Number(d3v("H").format(N,O)):N.getHours(),t=N<5?t.replace("\u4e0a\u5348","\u51cc\u6668"):N<8?t.replace("\u4e0a\u5348","\u65e9\u4e0a"):N<12?
t.replace("\u4e0a\u5348","\u4e0a\u5348"):N<13?t.replace("\u4e0b\u5348","\u4e2d\u5348"):N<19?t.replace("\u4e0b\u5348","\u4e0b\u5348"):t.replace("\u4e0b\u5348","\u665a\u4e0a"));return t};
d3v=function(N){if(gn4.has(N))return gn4.get(N);var t=yiN(N);t=BOt(t);ciy!==!0&&(ciy=!0);$3Q=!0;$3Q=!1;t=new md(t,U3N);gn4.set(N,t);return t};
yiN=function(N){return(new md(N,U3N)).patternParts_.map(function(t){return t.type===0?"'"+t.text+"'":t.text}).join("")};
BOt=function(N){return nM==="en"||nM==="es_US"||nM==="es-US"?N:N.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(t,O,H){return"H".repeat(O.length)+H})};
bXN=function(N,t){jgO||(W5=HXx,jgO=new iXG);var O=jgO;a:if(N=usG(N),t=usG(t||new Date),N>t)O=N.getTime()-t.getTime()>6048E5?_.l5(N,1):Sa9(N);else{for(var H=0;hHG(N,12*(H+1))<t;)++H;if(H>0)O=O.format(-H,0);else{for(H=0;hHG(N,H+1)<t;)++H;if(H>0)O=O.format(-H,2);else{N=t.getTime()-N.getTime();t=_.D(MNz);for(H=t.next();!H.done;H=t.next()){H=H.value;var A=H.unit,Z=Math.floor(N/H.unitDuration);if(Z>=(H.threshold===void 0?1:H.threshold)){O=O.format(-Z,A);break a}}O=O.format(-0,7)}}}return O};
usG=function(N){if(typeof N.getTime==="function")return N;if(KSp(N))return FSx(N);throw Error("Mf`"+JSON.stringify(N));};
hHG=function(N,t){for(var O=0,H;;++O)if(H=new Date(N.getFullYear(),N.getMonth()+t,N.getDate()-O,N.getHours(),N.getMinutes(),N.getSeconds()),H.getMonth()===(N.getMonth()+t)%12)return H};
_.E_=function(N){return{runs:[{text:N}]}};
_.Gv=function(N){if(N&&N.simpleText)return N.simpleText;var t="";if(N&&N.runs)for(var O=0;O<N.runs.length;O++)N.runs[O].text&&(t+=N.runs[O].text);return t};
LSp=function(N,t,O,H){return N.videoEntity&&!N.policyEntity&&O!=="DOWNLOAD_STATE_FAILED"?[IJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:jD(N.policyEntity)&&t!=="TRANSFER_STATE_FAILED"&&t!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?t==="TRANSFER_STATE_PAUSED_BY_USER"?[IJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.i5(t)?[IJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:N.videoEntity.lengthSeconds?pRN(N.videoEntity.lengthSeconds,H):[]:
[IJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
pRN=function(N,t){var O=[{thumbnailOverlayTimeStatusRenderer:{text:_.NE(swz({seconds:N})),style:"DEFAULT"}}];t&&(N=t<=0||N<=0?0:t>=N?100:Math.ceil(t*100/N),N>0&&O.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:N}}));return O};
zHg=function(N,t,O,H,A){if(t==="TRANSFER_STATE_UNKNOWN"||!N)return{};if(_.i5(t)||t==="TRANSFER_STATE_PRE_TRANSFER")var Z=[IJ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var U,C;if(t==="TRANSFER_STATE_COMPLETE"&&((U=N.mainPlaylistEntity)==null?0:(C=U.videos)==null?0:C.length)){var F;N=(Z=N.mainPlaylistEntity)==null?void 0:(F=Z.videos)==null?void 0:F.length;Z=(Z=ZXO(N))?{thumbnailOverlayBottomPanelRenderer:{text:_.NE(Z),icon:{iconType:"PLAYLISTS"}}}:void 0;Z=[VN4(),Object.assign({},
Z!=null?Z:{})]}else Z=[]}a:if(t==="TRANSFER_STATE_PRE_TRANSFER")O=tB(_.CJ("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(t==="TRANSFER_STATE_TRANSFER_IN_QUEUE")O=tB(_.CJ("WAITING_TO_DOWNLOAD"));else if(_.i5(t))O=Math.floor(O*100).toString(),O=tB(_.CJ("DOWNLOADING_PERCENT",{percent:O},"Downloading... "+O+"%"));else{if(H&&(_.h("playlist_is_offline_selector_killswitch")&&(A=_.cY().resolve(_.VN).isNetworkAvailable()),A)){O=eR4(_.CJ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
T_l(H));break a}O=void 0}t=t==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.CJ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},Z.length?{thumbnailOverlays:Z}:{},O?{viewPlaylistText:O}:{viewPlaylistText:_.E_("")},t.length?{badges:t}:{})};
Yay=function(N,t,O,H,A,Z){if(t==="TRANSFER_STATE_UNKNOWN"||!N)return{};if(H==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var U=LSp(N,t,H);if(N.videoEntity&&!N.policyEntity&&H!=="DOWNLOAD_STATE_FAILED"){var C=_.CJ("WAITING_TO_DOWNLOAD");if(C)return{shortViewCountText:_.E_(C),publishedTimeText:void 0,thumbnailOverlays:U}}if(!jD(N.policyEntity)){Z=N.policyEntity&&!pTO(N.policyEntity)?_.CJ("DOWNLOAD_EXPIRED",{},"Download expired"):
_.CJ("TRANSFER_FAILED",{},"Download failed");var F;if((F=N.policyEntity)==null?0:F.shortMessageForDisabledAction)Z=N.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:tB(Z),publishedTimeText:void 0,thumbnailOverlays:U}}if(t==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.E_(_.CJ("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:U};if(t==="TRANSFER_STATE_FAILED"||t==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.E_(_.CJ("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:U};if(t==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(F=_.CJ("WAITING_TO_DOWNLOAD"),H==="DOWNLOAD_STATE_PAUSED"&&(F=_.CJ("DOWNLOAD_PAUSED",{},"Download paused")),F))return{shortViewCountText:_.E_(F),publishedTimeText:void 0,thumbnailOverlays:U};if(_.i5(t))return N=Math.floor(O*100).toString(),{shortViewCountText:_.E_(_.CJ("DOWNLOADING_PERCENT",{percent:N},"Downloading... "+N+"%")),publishedTimeText:void 0,thumbnailOverlays:U};t=void 0;N.videoEntity.publishedTimestampMillis&&
(t=new Date,A&&(t=new Date(A)),t=tB(bXN(new Date(Number(N.videoEntity.publishedTimestampMillis)),t)));A=[];_.h("kevlar_woffle_badge_killswitch")||(A=[{metadataBadgeRenderer:{label:_.CJ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var g;N=tB((g=N.videoEntity.localizedStrings)==null?void 0:g.viewCount);return Object.assign({},Z?{shortViewCountText:void 0}:{shortViewCountText:N},Z?{}:{publishedTimeText:t},{badges:A,thumbnailOverlays:U})};
TOS=function(N,t){N=N===void 0?adp:N;switch(t.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:t.payload.playlistId,inviteLinkURL:t.payload.inviteLinkUrl};default:return N}};
eHO=function(N,t){N=N===void 0?wR9:N;switch(t.type){case "SET_CURRENT_FORM_ID":return t=t.payload.formId,N.currentFormId===t?N:{currentFormId:t,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var O=t.payload;t=O.groupId;O=O.command;if(N.currentFormId){var H=Object.assign({},N.commandsMap);H[t]=O;N=Object.assign({},N,{commandsMap:H})}return N;case "RESET_COMMAND_MAP":return Object.assign({},N,{commandsMap:{}});default:return N}};
XRG=function(N,t){N=N===void 0?PWp:N;switch(t.type){case "UPDATE_CANVAS_MODE":return Object.assign({},N,{currentMode:t.payload.currentMode});default:return N}};
kzg=function(N,t){N=N===void 0?x3M:N;switch(t.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},N,{guideIsExpanded:t.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},N,{scrollAtTop:t.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},N,{guideIsVisibleButNotPersistent:t.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},N,{miniplayerIsActive:t.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},N,{singleOptionSurveyIsActive:t.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},N,{slimlineSurveyRatingSelectedIndex:t.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},N,{richGridMiniMode:t.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},N,{richGridItemsPerRow:t.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},N,{richGridSlimItemsPerRow:t.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},N,{richGridContainerWidth:t.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},N,{richGridStyle:t.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},N,{currentPageType:t.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},N,{inlinePreviewIsActive:t.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},N,{inlinePreviewIsEnabled:t.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},N,{darkModeIsEnabled:t.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
N,{miniplayerPlaybackState:t.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},N,{tabGesturesIsActive:t.payload});case "SET_ONLINE_STATUS":return Object.assign({},N,{isOnline:t.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},N,{chipBarIsSticky:t.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},N,{frostedGlassMode:t.payload});default:return N}};
qay=function(){return _.h("kevlar_disable_theater_mode_persistence")?!1:_.vZ("START_IN_THEATER_MODE")};
nnp=function(N,t){N=N===void 0?fdM:N;switch(t.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},N,{transcription:t.payload});case "SET_OVERLAY_STATE":return Object.assign({},N,{overlay:t.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return N}};
vn9=function(){return Xd(Object.assign({},{continuation:WSl,download:riM,canvas:XRG,reportChannelAbuse:Idx,share:ldM,talkToRecs:Qgz,ui:kzg,voiceSearch:nnp,watch:m3S,ypc:Enx,shorts:GzO,radioButtonGroup:eHO,collabInviteLink:TOS},RHg))};
sgS=function(){return _.h("web_player_entities_middleware")?new RJ(vn9(),[Ji4,ont]):new RJ(vn9(),[Ji4])};
_.v5=function(){N4O||(N4O=sgS());return N4O};
tLQ=function(N,t,O){if(N.length)return{titleText:_.NE(t!=null?t:_.CJ("DOWNLOADS",void 0,"Downloads")),contents:N.map(function(H){var A=H.videoEntity;H={videoId:A.videoId,title:tB(A.title),shortBylineText:tB(H.channelEntity.title),thumbnail:A.thumbnail};var Z=A.videoId?fM(_.v5().getState(),A.videoId):0;A.videoId&&O?H.navigationEndpoint=_.sK(A.videoId,O,void 0,void 0,Z):A.videoId&&(H.navigationEndpoint=ahx(A.videoId,Z,A.lengthSeconds));A.lengthSeconds&&(H.thumbnailOverlays=pRN(A.lengthSeconds,Z));return{playlistPanelVideoRenderer:H}}),
totalVideos:N.length}};
OcM=function(N){return(N=(0,_.WW.getValueByKeys)(N,"playlistId"))?{playlistId:N}:null};
HcN=function(){return{}};
Ak9=function(N,t){return new _.TW(function(O,H){N.then(function(A){if(A){if(A=t(A))return O(A);H()}},H)})};
Zct=function(N){var t,O,H,A=(t=N.contents)==null?void 0:(O=t.twoColumnWatchNextResults)==null?void 0:(H=O.autoplay)==null?void 0:H.autoplay,Z,U,C;t=(Z=N.contents)==null?void 0:(U=Z.twoColumnWatchNextResults)==null?void 0:(C=U.playlist)==null?void 0:C.playlist;return A&&t&&t.playlistId?{rawResponse:N,autoplayRenderer:A,playlistPanelRenderer:t,playlistId:t.playlistId}:null};
XFN=function(N){var t=t===void 0?"UNKNOWN_INTERFACE":t;if(N.length===1)return N[0];var O=VL9[t];if(O){O=new RegExp(O);for(var H=_.D(N),A=H.next();!A.done;A=H.next())if(A=A.value,O.exec(A))return A}var Z=[];Object.entries(VL9).forEach(function(U){var C=_.D(U);U=C.next().value;C=C.next().value;t!==U&&Z.push(C)});
O=new RegExp(Z.join("|"));N.sort(function(U,C){return U.length-C.length});
H=_.D(N);for(A=H.next();!A.done;A=H.next())if(A=A.value,!O.exec(A))return A;return N[0]};
_.JB=function(N){return"/youtubei/v1/"+XFN(N)};
_.oJ=function(N,t){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:N}}},t!==void 0?{durationHintMs:t}:{})}};
_.s_=function(N,t){return _.oJ(_.E_(N),t)};
xRG=function(N,t){var O={mode:"NORMAL"};N&&(O.autoplayVideo=N.navigationEndpoint,O.nextButtonVideo=N.navigationEndpoint);t&&(O.previousButtonVideo=t.navigationEndpoint);return O};
fUM=function(N,t,O){if(!O||!O.sets)return{sets:[xRG(N,t)]};var H=O.sets.find(function(U){return U.mode==="NORMAL"}),A=(0,_.WW.unsafeClone)(O);
if(!H)return A.sets.push(xRG(N,t)),A;if(!N)return O;H=_.WW.getValueByKeys.apply(null,[H].concat(_.W6(kdy)));var Z=_.WW.getValueByKeys.apply(null,[N].concat(_.W6(qez)));if(H===Z)return O;A.sets=A.sets.filter(function(U){return U.mode!=="NORMAL"});
A.sets.push(xRG(N,t));return A};
ntx=function(N){return!!N.playlistPanelVideoRenderer&&!N.playlistPanelVideoRenderer.unplayableText};
WO9=function(N){return!!N.playlistPanelVideoRenderer&&!!N.playlistPanelVideoRenderer.title};
rkv=function(N,t){if(t.contents&&!(N>=t.contents.length)&&(N=t.contents.slice(N).find(ntx)))return N.playlistPanelVideoRenderer};
IUS=function(N,t){if(t.contents)return(t=t.contents.find(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId===N}))?t.playlistPanelVideoRenderer:void 0};
lUt=function(N,t){return t.contents?t.contents.findIndex(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId===N}):-1};
Q2g=function(N,t){return t.contents?t.contents.findIndex(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.playlistSetVideoId===N}):-1};
mRt=function(N,t){N.contents&&t!==-1&&N.contents.splice(t,1).length===1&&N.totalVideos!==void 0&&(--N.totalVideos,delete N.videoCountText)};
_.Etv=function(N){var t=[];if(!N||!N.contents)return t;N=_.D(N.contents);for(var O=N.next();!O.done;O=N.next())O=O.value,O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId&&t.push(O.playlistPanelVideoRenderer.videoId);return t};
_.Gd4=function(N){if(N&&N.contents)return(N=N.contents.find(function(t){return!!t.playlistPanelVideoRenderer&&!!t.playlistPanelVideoRenderer.selected})||N.contents[N.currentIndex])?N.playlistPanelVideoRenderer:void 0};
RMM=function(N,t,O,H,A,Z,U){A=A===void 0?!1:A;Z=Z===void 0?!1:Z;U=U===void 0?!1:U;if(N.contents&&N.contents.length!==0){H&&(N.contents=N.contents.filter(H));H=N.contents.length;for(var C=0;C<H;C++){var F=N.contents[C].playlistPanelVideoRenderer;F&&(C===t?(Z&&delete F.menu,F.indexText=_.E_("\u25b6")):A||N.isInfinite||F.indexText===void 0?delete F.indexText:F.indexText=_.E_((C+1+O).toString()))}N.currentIndex=t+O;U&&(delete N.videoCountText,N.totalVideos=H)}};
_.NL=function(N){N=vtl(N);if(N){var t=N.length;var O=-38%t;O<0&&(O=t+O);N=N.slice(t-O)+N.slice(0,t-O)}else N="";O="";for(t=0;t<N.length&&N[t]!==Jkl;t++)O+=N[t];return O};
_.otN=function(N,t){var O=document.body;t=t===void 0?function(C){return C}:t;
var H,A=null;N=_.D(N);for(H=N.next();!H.done;H=N.next()){var Z=H.value;H="div";Z[2]&&(H=t(Z[2]));H=document.createElement(H);A||(A=H);var U=Z[0];Z=Z[1];U&&(H.id=t(U));if(Z)for(Z=_.D(Z),U=Z.next();!U.done;U=Z.next())H.classList.add(t(U.value));O.appendChild(H);O=H}return[A,O]};
s2S=function(N,t){for(var O="",H=0;H<t;H++)O+=N.charAt(Math.floor(Math.random()*N.length));return O};
tG=function(N){return s2S("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",N)};
O3=function(N){return s2S("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",N)};
Hi=function(N){return s2S("0123456789",N)};
NMy=function(){var N=performance.now(),t=new Date;var O="2."+t.getFullYear()+String(t.getMonth()+1).padStart(2,"0")+String(t.getDate()).padStart(2,"0");for(var H,A=Math.floor(Math.random()*11)+15,Z=[],U=0;U<A;U++)Z.push(Math.floor(Math.random()*26476865)+24547720);H=Z.join(",");var C=tG(10),F=tG(100),g=tG(102),B=tG(106),c=tG(108),u=tG(11),S=tG(1140),b=tG(123),z=tG(14),w=tG(16),P=tG(1900),x=tG(23),l=tG(26),I=tG(34),r=tG(397),E=tG(44),J=tG(5),CN=tG(72),B4=tG(74),zM=tG(75),jy=tG(88),c4=tG(91),XO="rr4---sn-q4flrnek rr4---sn-hgn7rn7y rr5---sn-aigl6nzl rr2---sn-4g5e6nsk rr5---sn-q4fl6nsl rr4---sn-4g5lznes rr1---sn-5hne6n6e rr2---sn-4g5lznez rr4---sn-5hne6nsd rr1---sn-5hnekn7l rr3---sn-q4flrn7r rr2---sn-q4fl6nde rr2---sn-5hnekn7z rr2---sn-ntq7yner rr5---sn-ntq7yney rr3---sn-q4flrnsl rr3---sn-q4fzenee rr5---sn-aigl6nsd rr5---sn-q4fzen7s rr1---sn-q4fl6nsk".split(" ");
var kx=XO[Math.floor(Math.random()*XO.length)];var fN=(new Date("2010-01-01")).getTime();var gf=(new Date(fN+Math.random()*((new Date).getTime()-fN))).toISOString().split("T")[0];for(var yr,sS=[],$X=0;$X<4;$X++)sS.push(Math.floor(Math.random()*100));yr=sS.join(".");var pR=Number(Hi(5)),wf=Number(Hi(6)),b1=Number(Hi(7)),$r=Number(Hi(9)),US=Hi(1),H0=Hi(10),SE=Hi(16),v0=Hi(19),hu=Hi(2),sp=Hi(20),LU=Hi(21),Qr=Hi(3),B0=Hi(4),c0=Hi(5),Am=Hi(6),Rl=Hi(7),Ox=Hi(8),cl=Hi(9);var Hl=s2S("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var jJ=[O3(5),O3(5),O3(5)].join("%2C"),QO=[Hi(3),Hi(5),Hi(5)].join("%2C"),BA=O3(0),Su=O3(1),mZ=O3(10),Ln=O3(108),VO=O3(11),vW=O3(12),PW=O3(13),Zl=O3(14),JD=O3(15),nU=O3(16),Sb=O3(17),al=O3(18),nN=O3(19),ES=O3(2),My=O3(20),Mq=O3(22),kw=O3(23),T5=O3(24),aQ=O3(266),LR=O3(3),ri=O3(30),Q$=O3(34),u_=O3(35),oN=O3(36),ST=O3(4),mA=O3(40),Ra=O3(43),D3=O3(47),bM=O3(5),hO=O3(6),IM=O3(7),FR=O3(75),ud=O3(8),wy=O3(80),vY=O3(9),Ym="https://www."+O3(12)+".com",pV={},bR={},q_={},bB={},fp={},p_={},zZ={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:H}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:O},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+O3(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:O},{key:"client.name",value:"WEB"},{key:"client.fexp",value:H}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:LU+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+O3(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:mA,ypcGetOfflineUpsellEndpoint:{params:wy}},trackingParams:u_+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&cnr="+hu+"&ratebypass=yes&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&c=WEB&txp="+Rl+"&n="+w+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:wf,width:640,height:360,lastModified:SE,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Rl,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+QO+"&mn="+
jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&cnr="+hu+"&ratebypass=yes&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&c=WEB&txp="+Rl+"&n="+w+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Ln+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:wf,width:1280,
height:720,lastModified:SE,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Rl,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+QO+"&mn="+jJ+"&ms="+
jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+cl+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:b1,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:cl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:b1,approxDurationMs:Rl},{itag:248,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+QO+"&mn="+jJ+"&ms="+jJ+"&mv="+
Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fwebm&ns="+T5+"&gir="+LR+"&clen="+cl+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:b1,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:cl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:b1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:399,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+cl+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:b1,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:cl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:b1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:136,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+cl+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:b1,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:cl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:wf,approxDurationMs:Rl},{itag:247,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+QO+"&mn="+
jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fwebm&ns="+T5+"&gir="+LR+"&clen="+cl+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:b1,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:cl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:wf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:398,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+cl+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:b1,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:cl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:wf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:135,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:wf,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:wf,approxDurationMs:Rl},{itag:244,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+QO+"&mn="+
jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fwebm&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Ln+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:wf,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:wf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:397,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:wf,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:wf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:134,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:wf,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:wf,highReplication:!0,approxDurationMs:Rl},{itag:243,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fwebm&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:wf,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:wf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:396,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:wf,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:wf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:133,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:wf,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:wf,approxDurationMs:Rl},{itag:242,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+QO+"&mn="+
jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fwebm&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:wf,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:wf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:395,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:wf,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:wf,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:160,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:wf,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:pR,approxDurationMs:Rl},{itag:278,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+QO+"&mn="+
jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fwebm&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+c+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/webm; codecs="vp9"',bitrate:wf,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:pR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:394,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&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="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=video%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:pR,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:pR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Rl},{itag:140,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=audio%2Fmp4&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:wf,
initRange:{start:"0",end:"631"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:wf,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Rl,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+
hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=audio%2Fwebm&ns="+T5+"&gir="+LR+"&clen="+Rl+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'audio/webm; codecs="opus"',bitrate:pR,initRange:{start:"0",end:"265"},indexRange:{start:Qr,
end:B0},lastModified:SE,contentLength:Rl,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:pR,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Rl,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=audio%2Fwebm&ns="+
T5+"&gir="+LR+"&clen="+Rl+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'audio/webm; codecs="opus"',bitrate:pR,initRange:{start:"0",end:"265"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Rl,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:pR,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Rl,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+kx+".googlevideo.com/videoplayback?expire="+H0+"&ei="+x+"&ip="+yr+"&id=o-AF"+Ra+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+QO+"&mn="+jJ+"&ms="+jJ+"&mv="+Su+"&mvi="+US+"&pl="+hu+"&initcwndbps="+Rl+"&siu="+US+"&spc="+E+"&vprv="+US+"&svpuc="+US+"&mime=audio%2Fwebm&ns="+T5+"&gir="+LR+"&clen="+Ox+"&dur="+Ox+"&lmt="+SE+"&mt="+H0+"&fvip=3&keepalive="+LR+"&c=WEB&txp="+
Rl+"&n="+nU+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+c,mimeType:'audio/webm; codecs="opus"',bitrate:wf,initRange:{start:"0",end:"265"},indexRange:{start:Qr,end:B0},lastModified:SE,contentLength:Ox,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:wf,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Rl,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="+cl+"&docid="+u+"&ei="+x+"&feature="+C+"&fexp="+BA+"&ns="+ES+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Su+"&el="+mZ+"&len="+B0+"&of="+Mq+
"&uga="+hu+"&vm="+aQ},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+cl+"&docid="+u+"&ei="+x+"&feature="+C+"&fexp="+BA+"&ns="+ES+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Su+"&el="+mZ+"&len="+B0+"&of="+Mq+"&uga="+hu+"&vm="+aQ},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+cl+"&docid="+u+"&ei="+x+"&feature="+C+"&fexp="+BA+"&ns="+ES+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Su+"&el="+mZ+"&len="+B0+"&of="+Mq+"&uga="+hu+"&vm="+aQ},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+x+"&m="+jy+"&oid="+Mq+"&plid="+w+"&pltype="+IM+"&ptchn="+Mq+"&ptk="+z+"&video_id="+u},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+cl+"&docid="+u+"&ei="+x+"&event="+Zl+"&feature="+C+"&fexp="+BA+"&ns="+ES+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Su},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
nU+"&ver=2&cmt=1."+Qr+"&fmt="+Qr+"&fs=0&rt="+c0+"&euri&lact="+Qr+"&cl="+cl+"&mos="+US+"&volume=100&cbrand="+bM+"&cbr="+hO+"&cbrver="+yr+"&c=WEB&cver="+O+"&cplayer=UNIPLAYER&cos="+vY+"&cosver="+Rl+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+hu+"&len="+Ox+"&fexp="+jJ+"&feature=g-high-rec&afmt="+Qr+"&muted=0&conn=1&docid="+u+"&ei="+x+"&plid="+w+"&vm="+O3(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
u+"&caps="+LR+"&opi="+cl+"&xoaf="+US+"&hl="+ES+"&ip="+yr+"&ipbits="+US+"&expire="+H0+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+yr+"&key="+LR+"&lang="+J,name:{simpleText:vY},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+u+"&caps="+LR+"&opi="+cl+"&xoaf="+US+"&hl="+ES+"&ip="+yr+"&ipbits="+US+"&expire="+H0+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+yr+"&key="+LR+"&kind="+LR+"&lang="+ES,name:{simpleText:ST},
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:VO,title:JD,lengthSeconds:"1155",keywords:[vY,vY,JD,nN],channelId:T5,isOwnerViewing:!1,shortDescription:JD,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+u+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+Q$,width:168,height:94},{url:"https://i.ytimg.com/vi/"+u+"/hqdefault.jpg?sqp=-oaymwE"+oN+
"G&rs="+Q$,width:196,height:110},{url:"https://i.ytimg.com/vi/"+u+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+I,width:246,height:138},{url:"https://i.ytimg.com/vi/"+u+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+I,width:336,height:188},{url:"https://i.ytimg.com/vi/"+u+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Rl,author:PW,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Rl,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Mq+"/featured_channel.jpg?v="+ud,width:40,height:40}]},trackingParams:u_+"=",navigationEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"/channel/"+T5,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:T5}},channelName:PW,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:PW}]},subscribed:!1,enabled:!0,type:"FREE",channelId:T5,showPreferences:!1,subscribedButtonText:{runs:[{text:vW}]},unsubscribedButtonText:{runs:[{text:IM}]},
trackingParams:u_+"=",unsubscribeButtonText:{runs:[{text:hO}]},serviceEndpoints:[{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[T5],params:ud}},{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:mA,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:u_+"=",dialogMessages:[{runs:[{text:PW},
{text:ST},{text:vY}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Zl}]},serviceEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[T5],params:ud}},accessibility:{label:Sb},trackingParams:u_+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:al}]},accessibility:{label:nU},
trackingParams:u_+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:PW}},unsubscribeAccessibility:{accessibilityData:{label:VO}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Ox},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[T5],
params:ud}},unsubscribeCommand:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[T5],params:ud}},addToWatchLaterCommand:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:VO,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:VO}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+u+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+oN+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+u+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+VO,width:1280,
height:720},title:{simpleText:VO},description:{simpleText:bM},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+JD,externalChannelId:T5,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:Rl,category:"Travel & Events",publishDate:gf,ownerChannelName:PW,uploadDate:gf}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:JD},trackingParams:u_+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:mA,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:u_+"="}}],headerText:{simpleText:hO},icon:{infoCardIconRenderer:{trackingParams:u_+"="}},closeButton:{infoCardIconRenderer:{trackingParams:u_+"="}},trackingParams:u_+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:u_+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+VO+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Hl,interpreterSafeUrl:(pV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+ri+".js",pV),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:hO},{text:Zl,bold:!0}]},endpoint:{clickTrackingParams:mA,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:u_+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:VO}]},actionButton:{buttonRenderer:{text:{runs:[{text:ST}]},navigationEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+u,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
u,target:"TARGET_NEW_WINDOW"}},trackingParams:u_+"="}},trackingParams:u_+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+CN+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+CN+"=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:Rl,endMs:Rl,title:{accessibility:{accessibilityData:{label:bM}},simpleText:al},metadata:{simpleText:IM},callToAction:{simpleText:vY},dismiss:{simpleText:nN},endpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"/channel/"+T5,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:T5}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:IM}]},subscribed:!1,enabled:!0,type:"FREE",channelId:T5,showPreferences:!1,
subscribedButtonText:{runs:[{text:vW}]},unsubscribedButtonText:{runs:[{text:IM}]},trackingParams:u_+"=",unsubscribeButtonText:{runs:[{text:Zl}]},serviceEndpoints:[{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[T5],params:ud}},{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:mA,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:u_+
"=",dialogMessages:[{runs:[{text:vY},{text:mZ},{text:bM}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:JD}]},serviceEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[T5],params:ud}},accessibility:{label:vW},trackingParams:u_+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Zl}]},
accessibility:{label:vW},trackingParams:u_+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:JD}},unsubscribeAccessibility:{accessibilityData:{label:vW}}}},trackingParams:u_+"=",isSubscribe:!0,id:sp}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+u+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+I,width:168,height:94},{url:"https://i.ytimg.com/vi/"+u+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+Q$,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+u+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+I,width:246,height:138},{url:"https://i.ytimg.com/vi/"+u+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+I,width:336,height:188},{url:"https://i.ytimg.com/vi/"+u+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Rl,endMs:Rl,title:{accessibility:{accessibilityData:{label:JD}},simpleText:vY},metadata:{simpleText:JD},endpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
VO,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:VO,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+kx+".googlevideo.com/videoplayback?source=youtube&oeis="+US+"&c=WEB&oad="+B0+"&ovd="+B0+"&oaad="+c0+"&oavd="+c0+"&ocs="+Qr+"&oewis="+US+"&oputc="+US+"&ofpcc="+US+"&siu="+US+"&msp="+US+"&odepv="+US+
"&id=o-AF"+Ra+"&ip="+yr+"&initcwndbps="+Rl+"&mt="+H0+"&oweuc="+BA}}}}},trackingParams:u_+"=",id:sp,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:ST}},simpleText:nU},style:"DEFAULT"}}]}}],startMs:Rl,trackingParams:u_+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:US,offsetEndMilliseconds:c0},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+cl+";dc_trk_cid="+cl+";dc_dbm_token="+c+";ord="+H0+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";dc_rui="+US+";dc_exteid="+sp+";dc_av="+Qr+";dc_sk="+US+";dc_ctype="+hu+";dc_ref=http://www.youtube.com/video/"+VO+";dc_pubid="+US+";dc_btype=23?gclid="+c4+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+US+"&ns="+US+"&event="+US+"&device="+US+"&content_v="+u+"&el="+mZ+"&ei="+x+"&devicever="+O+"&bti="+Rl+"&format="+Am+"&break_type="+US+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+US+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+yr+"&slot_pos="+US+"&slot_len="+US+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+QO+"&ad_len="+c0+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
VO+"&aqi="+x+"&ad_rmp="+US+"&sli="+US}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+
";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Am+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Rl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&ctype="+Qr+"&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"+
S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_engaged_view&ctype="+Qr+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Am+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
cl+";dc_trk_cid="+cl+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";ord="+cl+";dc_rui="+US+";dc_exteid="+v0+";dc_av="+US+";dc_sk="+US+";dc_ctype="+hu+";dc_pubid="+US+";dc_btype=3?gclid="+c4+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+"&sig="+kw+"&ad_cpn=[AD_CPN]&id="+hO+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hO+"&dc_pubid="+US+"&dc_exteid="+sp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+"&sig="+kw+"&ad_cpn=[AD_CPN]&id="+hO+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+US},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hO+"&avm="+US+"&dc_pubid="+US+"&dc_exteid="+
sp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
g+"&sig="+kw+"&ad_cpn=[AD_CPN]&id="+hO+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+US},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hO+"&dc_pubid="+US+"&dc_exteid="+sp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Am+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Am+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:mA,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+
Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+u+"/mqdefault.jpg",width:320,height:180}]},trackingParams:u_+"="},trackingParams:u_+
"=",templatedCountdown:{templatedAdText:{text:ud,isTemplated:!0,trackingParams:u_+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:nN,isTemplated:!1,trackingParams:u_+"="},trackingParams:u_+"="}},trackingParams:u_+"=",skipOffsetMilliseconds:5E3}},trackingParams:u_+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:IM},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:u_+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:My,isTemplated:!1,trackingParams:u_+"="},trackingParams:u_+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:nN,isTemplated:!0,trackingParams:u_+"="}},trackingParams:u_+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:mA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(bR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+ES+"&origin=www.youtube.com&ata_theme="+ST,bR),trackingParams:u_+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:u_+"="}},hoverText:{runs:[{text:ST}]},trackingParams:u_+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+D3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:u_+"="},headline:{text:Zl,isTemplated:!1,trackingParams:u_+"="},description:{text:IM,
trackingParams:u_+"="},actionButton:{buttonRenderer:{text:{simpleText:nU},navigationEndpoint:{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+cl+";dc_trk_cid="+cl+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";ord="+cl+";dc_rui="+US+";dc_exteid="+sp+";dc_av="+US+";dc_sk="+US+";dc_ctype="+hu+";dc_pubid="+US+";dc_btype=3?gclid="+c4+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:u_+"="}},startMs:US,trackingParams:u_+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nU},elementId:VO}},elementId:PW,trackingParams:u_+"=",legacyInfoCardVastExtension:VO,sodarExtensionData:{siub:ud,bgub:Sb,scs:nU,bgp:JD},externalVideoId:VO,adLayoutLoggingData:{serializedAdServingDataEntry:ud},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+D3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:u_+"="},
headline:{text:ST,isTemplated:!1,trackingParams:u_+"="},description:{text:Zl,isTemplated:!1,trackingParams:u_+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ST},navigationEndpoint:{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+cl+";dc_trk_cid="+cl+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";ord="+cl+";dc_rui="+US+";dc_exteid="+
sp+";dc_av="+US+";dc_sk="+US+";dc_ctype="+hu+";dc_pubid="+US+";dc_btype=3?gclid="+c4+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+
US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:u_+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:u_+"="}},navigationEndpoint:{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+cl+";dc_trk_cid="+
cl+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";ord="+cl+";dc_rui="+US+";dc_exteid="+sp+";dc_av="+US+";dc_sk="+US+";dc_ctype="+hu+";dc_pubid="+US+";dc_btype=3?gclid="+c4+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+
b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:u_+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:u_+"="},abandonCommands:{commands:[{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+
US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:mA,commandExecutorCommand:{commands:[{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:vW,isTemplated:!1,trackingParams:u_+
"="},trackingParams:u_+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ud},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Rl+";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="+cl+";dc_trk_cid="+cl+";ord="+H0+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";dc_rui="+US+";dc_exteid="+sp+";dc_av="+Qr+";dc_sk="+US+";dc_ctype="+hu+";dc_ref=http://www.youtube.com/video/"+VO+";dc_pubid="+US+";dc_btype=23?gclid="+c4+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+US+"&ns="+US+"&event="+US+"&device="+US+"&content_v="+u+"&el="+mZ+"&ei="+x+"&devicever="+O+"&bti="+Rl+"&format="+Am+"&break_type="+US+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+US+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+yr+"&slot_pos="+US+"&slot_len="+US+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
QO+"&ad_len="+c0+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+VO+"&aqi="+x+"&ad_rmp="+US+"&sli="+US}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Am+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+
l+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Rl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&ctype="+Qr+"&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"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_engaged_view&ctype="+Qr+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Am+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+"&sig="+kw+"&ad_cpn=[AD_CPN]&id="+
hO+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hO+"&dc_pubid="+US+"&dc_exteid="+sp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+
"&sig="+kw+"&ad_cpn=[AD_CPN]&id="+hO+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+US},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hO+"&avm="+US+"&dc_pubid="+US+"&dc_exteid="+sp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+g+"&sig="+kw+"&ad_cpn=[AD_CPN]&id="+hO+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+US},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+hO+"&dc_pubid="+US+"&dc_exteid="+sp+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Am+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+Am+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+
Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+u+"/mqdefault.jpg",width:320,height:180}]},trackingParams:u_+"="},trackingParams:u_+"=",templatedCountdown:{templatedAdText:{text:JD,isTemplated:!0,trackingParams:u_+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:vW,isTemplated:!1,trackingParams:u_+"="},trackingParams:u_+"="}},
trackingParams:u_+"=",skipOffsetMilliseconds:5E3}},trackingParams:u_+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:IM},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:u_+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:PW,isTemplated:!1,trackingParams:u_+"="},trackingParams:u_+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ud,
isTemplated:!0,trackingParams:u_+"="}},trackingParams:u_+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:mA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(q_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+ES+"&origin=www.youtube.com&ata_theme="+ST,q_),trackingParams:u_+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:u_+"="}},hoverText:{runs:[{text:mZ}]},trackingParams:u_+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:u_+"="},headline:{text:PW,isTemplated:!1,trackingParams:u_+"="},description:{text:nN,trackingParams:u_+"="},actionButton:{buttonRenderer:{text:{simpleText:My},navigationEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:u_+"="}},startMs:US,trackingParams:u_+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:My},elementId:ud}},elementId:nN,trackingParams:u_+"=",legacyInfoCardVastExtension:ud,sodarExtensionData:{siub:vY,bgub:vW,scs:PW,bgp:My},externalVideoId:VO,adLayoutLoggingData:{serializedAdServingDataEntry:hO},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:u_+"="},headline:{text:mZ,
isTemplated:!1,trackingParams:u_+"="},description:{text:nU,isTemplated:!1,trackingParams:u_+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ud},navigationEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:u_+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:u_+"="}},navigationEndpoint:{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+
US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:u_+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:u_+"="},abandonCommands:{commands:[{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+hu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:mA,commandExecutorCommand:{commands:[{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:vY,isTemplated:!1,trackingParams:u_+"="},trackingParams:u_+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ud},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+US+";dc_exteid="+sp+";met="+US+";ecn"+US+"="+US+";etm1="+US+";eid1="+
Rl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:IM}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:c0,offsetEndMilliseconds:Am},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+hu+"&token=ALHj"+r+"&index="+US+"&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="+O+"&m_pos_ms="+c0}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ud}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Am,offsetEndMilliseconds:Am},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+Qr+"&token=ALHj"+r+"&index="+US+"&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="+
O+"&m_pos_ms="+Am}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Zl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Am,offsetEndMilliseconds:Am},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+Qr+"&token=ALHj"+r+"&index="+US+"&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="+
O+"&m_pos_ms="+Am}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Am,offsetEndMilliseconds:Am},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+Qr+"&token=ALHj"+r+"&index="+US+"&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="+
O+"&m_pos_ms="+Am}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Am,offsetEndMilliseconds:hu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+Qr+"&token=ALHj"+r+"&index="+US+"&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="+
O+"&m_pos_ms="+Am}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ud}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:hu,offsetEndMilliseconds:hu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+x+"&m_pos="+hu+"&token=ALHj"+r+"&index="+US+"&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="+
O+"&m_pos_ms="+hu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Sb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:al,isTemplated:!1,trackingParams:u_+"="},description:{text:nN,isTemplated:!1,trackingParams:u_+"="},actionButton:{buttonRenderer:{text:{simpleText:VO},navigationEndpoint:{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
cl+";dc_trk_cid="+cl+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";ord="+cl+";dc_rui="+US+";dc_exteid="+sp+";dc_av="+US+";dc_sk="+US+";dc_ctype="+hu+";dc_pubid="+US+";dc_btype=3?gclid="+c4+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:u_+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+D3+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:u_+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+zM+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:u_+"="},navigationEndpoint:{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+cl+";dc_trk_cid="+cl+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";ord="+cl+
";dc_rui="+US+";dc_exteid="+sp+";dc_av="+US+";dc_sk="+US+";dc_ctype="+hu+";dc_pubid="+US+";dc_btype=3?gclid="+c4+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:u_+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(bB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+ES+"&origin=www.youtube.com&ata_theme="+ST,bB),trackingParams:u_+"="}},popupType:"DIALOG"}},trackingParams:u_+"="}},hoverText:{runs:[{text:My}]},trackingParams:u_+"="}},adVideoId:VO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:bM},associatedCompositePlayerBytesLayoutId:nU}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:JD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:JD,isTemplated:!1,trackingParams:u_+"="},description:{text:PW,isTemplated:!1,trackingParams:u_+"="},actionButton:{buttonRenderer:{text:{simpleText:vY},navigationEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+
b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:u_+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B4+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:u_+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+FR+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:u_+"="},navigationEndpoint:{clickTrackingParams:mA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+
US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:u_+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(fp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+ES+"&origin=www.youtube.com&ata_theme="+ST,fp),trackingParams:u_+"="}},popupType:"DIALOG"}},trackingParams:u_+"="}},
hoverText:{runs:[{text:mZ}]},trackingParams:u_+"="}},adVideoId:VO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+VO+"&cid="+l+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:nN},associatedCompositePlayerBytesLayoutId:nU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Zl,
isTemplated:!1,trackingParams:u_+"="},description:{text:My,isTemplated:!1,trackingParams:u_+"="},actionButton:{buttonRenderer:{text:{simpleText:nN},navigationEndpoint:{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+cl+";dc_trk_cid="+cl+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";ord="+cl+";dc_rui="+US+";dc_exteid="+sp+";dc_av="+US+";dc_sk="+US+";dc_ctype="+
hu+";dc_pubid="+US+";dc_btype=3?gclid="+c4+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+
I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:u_+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+D3+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:u_+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+zM+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:u_+
"="},navigationEndpoint:{clickTrackingParams:mA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+cl+";dc_trk_cid="+cl+";dc_dbm_token="+c+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+US+";ord="+cl+";dc_rui="+US+";dc_exteid="+sp+";dc_av="+US+";dc_sk="+US+";dc_ctype="+hu+";dc_pubid="+US+";dc_btype=3?gclid="+c4+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+b+"AxAA&ase=2&num="+US+"&cid="+l+"&ad_cpn=%5BAD_CPN%5D&sig="+I+"&adurl="+Ym+"&label=video_click_to_advertiser_site&ctype="+Qr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:u_+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(p_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+P+"&hl="+ES+"&origin=www.youtube.com&ata_theme="+ST,p_),trackingParams:u_+"="}},popupType:"DIALOG"}},trackingParams:u_+
"="}},hoverText:{runs:[{text:mZ}]},trackingParams:u_+"="}},adVideoId:VO,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+b+"AxAA&sigh="+u+"&cid="+l+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Sb},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:nU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nN}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:ri,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:ri,command:{innertubeCommand:{clickTrackingParams:mA,ypcGetOfflineUpsellEndpoint:{params:wy}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:u_+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:H0,nanos:$r}}}},p$=JSON.stringify(zZ),ei=performance.now()-N;return{objectRepresentation:zZ,jsonRepresentation:p$,generationTime:ei}};
t_O=function(N,t){if(N===t)return!0;if(!N||!t||typeof N!==typeof t)return!1;if(N instanceof Array&&t instanceof Array){if(N.length!==t.length)return!1;for(var O=0;O<N.length;O++)if(!t_O(N[O],t[O]))return!1;return!0}if(typeof N==="object"&&typeof t==="object"&&N&&t){for(O in N)if(!(O in t&&t_O(N[O],t[O])))return!1;for(var H in t)if(!(H in N))return!1;return!0}return!1};
_.Zm=function(){if(!AG){AG=new zu(new Ool);var N=_.uP("client_streamz_web_flush_count",-1);N!==-1&&(AG.invocationLimit=N)}return AG};
VE=function(N,t,O,H){if(N===t)return!0;if(Array.isArray(N)&&Array.isArray(t)){if(N.length!==t.length)return!1;for(var A=0;A<N.length;A++)if(!VE(N[A],t[A],O,H))return!1;return!0}if(N instanceof Set||t instanceof Set){if(N instanceof Set&&t instanceof Set){if(N.size!==t.size)return!1;H=_.D(N.values());for(A=H.next();!A.done;A=H.next())if(!t.has(A.value))return!1;return!0}return!1}if(N instanceof Function){if(H)return!0;N.name===""&&_.R0(Error("Qf"),"ERROR");return!1}if(N instanceof Date&&t instanceof
Date)return N.getTime()===t.getTime();if(N instanceof Object&&t instanceof Object){if(HoG(N)&&HoG(t))try{return N.equals(t)}catch(U){_.R0(Error("Rf`"+U),"ERROR")}A=Object.getOwnPropertyNames(N).filter(function(U){return O?N[U]!==void 0:!0});
var Z=Object.getOwnPropertyNames(t).filter(function(U){return O?t[U]!==void 0:!0});
if(A.length!==Z.length)return!1;A=_.D(A);for(Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,!VE(N[Z],t[Z],O,H))return!1;return!0}return!1};
HoG=function(N){N=Object.getPrototypeOf(N).equals;return N instanceof Function&&N.length===1};
_.V_x=function(){return _.K(function(N){if(N.nextAddress==1)return A6v!==2?N.jumpTo(2):N.yield(ZoO(),3);N.nextAddress!=2&&(A6v=N.yieldResult);return N.return(A6v)})};
_.C2p=function(){return _.K(function(N){if(N.nextAddress==1)return _.h("ab_pl_man")?D7z!==2?N.jumpTo(2):N.yield(U7G(),3):N.return(1);N.nextAddress!=2&&(D7z=N.yieldResult);return N.return(D7z)})};
d7Q=function(){return _.K(function(N){if(N.nextAddress==1)return _.h("ab_fk_sk_cl")?K$v!==2?N.jumpTo(2):N.yield(F$Q(),3):N.return(1);N.nextAddress!=2&&(K$v=N.yieldResult);return N.return(K$v)})};
_.BM4=function(){return _.K(function(N){if(N.nextAddress==1)return _.h("ab_det_apb_b")?gpS!==2?N.jumpTo(2):N.yield(y64(),3):N.return(1);N.nextAddress!=2&&(gpS=N.yieldResult);return N.return(gpS)})};
jfS=function(){var N;return _.K(function(t){if(t.nextAddress==1)return t.yield(Promise.all([_.V_x(),_.BM4(),_.C2p(),d7Q()]),2);if(t.nextAddress!=3)return c64()?t.return(!0):t.yield(_.$7z(),3);N=t.yieldResult;return t.return(N===0)})};
c64=function(){var N=!1,t=function(O,H){io9.increment(H,O);O===0&&(N=!0)};
t(_.ull(),"j.s_");t(A6v,"f.i_");t(gpS,"a.b_");t(D7z,"p.m_");t(K$v,"i.f_");Sfv===2&&(Sfv=_.hvt(M_S));t(Sfv,"e.h_");_.h("ks_det_gpbl")||t(_.boO(),"p.i_");_.h("ks_get_o_pp")||t(_.pDv(),"g.o_");_.h("ab_deg_unex_thr")||t(_.L$x(),"a.o_");t(zvx,"s.t_");_.h("ab_det_sc_inj_enf")&&t(_.Yfg(),"s.i_");t(aFM,"d.p_");t(_.TMl(_.Dm),"o.p_");t(_.wDz()===0?0:_.evN(),"o.a_");return _.h("debug_sk_em_precheck")?!0:N};
XDz=function(){var N=[].concat(_.W6(P2N));try{var t=NMy();N.push({jsonRepresentation:t.jsonRepresentation,objectRepresentation:t.objectRepresentation})}catch(O){N=[].concat(_.W6(P2N))}return N};
x7N=function(){var N=["adPlacements","adSlots"];try{return N.filter(function(){return!0}).length!==N.length?0:1}catch(t){return 0}};
_.pDv=function(){if(x7N()===0)return 0;var N=NMy(),t=N.objectRepresentation,O=(0,_.WW.unsafeClone)(t),H=[];if(t&&typeof t==="object")for(var A in t)H.push(A);else return 4;N=N.objectRepresentation.adPlacements;if(!(N&&N.length>0))return 4;try{if(!t_O(H,Object.getOwnPropertyNames(t)))return 0}catch(Z){return 0}return t_O(O,t)?1:0};
_.TMl=function(N){if(!N||!N.length||typeof N==="string")return 0;for(var t=Object.getOwnPropertyNames(Object.prototype),O=0;O<N.length;O++)for(var H=_.NL(N[O]),A=_.D(t),Z=A.next();!Z.done;Z=A.next())if(H===Z.value)return 0;return 1};
kUg=function(N){var t=_.NL(N[1]);if(N[0]===null)return t;N=N[0];for(var O={},H=0;H<N.length;H++){var A=_.NL(N[H]);if(H===0)O[A]=t;else{var Z={};Z[A]=O;O=Z}}return O};
_.wDz=function(){for(var N=_.U3,t=0;t<N.length;t++){var O=kUg(N[t]),H=[];H.push(O);if(H.length===0)return 0}return 1};
_.evN=function(){for(var N=_.U3,t={},O=0;O<N.length;t={vT7:void 0},O++){var H=[kUg(N[O])];t.vT7=[];H.forEach(function(A){return function(Z){A.vT7[A.vT7.length]=Z}}(t));
if(t.vT7.length===0)return 0}return 1};
_.ull=function(){for(var N=_.D(XDz()),t=N.next();!t.done;t=N.next()){var O=t.value;t=O.jsonRepresentation;O=O.objectRepresentation;try{var H=JSON.parse(t);if(!VE(H,O,!1,!1))return 0}catch(A){return 0}}return 1};
_.Yfg=function(){try{var N=_.MH("ab_det_sc_inj_val");N.length===1&&N[0]===""&&(N=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var t=document.querySelectorAll("script"),O=_.D(t),H=O.next();!H.done;H=O.next())for(var A=H.value,Z=_.D(N),U=Z.next();!U.done;U=Z.next()){var C=U.value;t=void 0;if((t=A.textContent)==null?0:t.includes(C))return 0}}catch(F){return 4}return 1};
_.$7z=function(){var N,t,O,H,A,Z,U;return _.K(function(C){switch(C.nextAddress){case 1:_.Mo(C,2),N=_.D(P2N),t=N.next();case 4:if(t.done)return C.return(1);H=O=t.value;A=H.jsonRepresentation;Z=H.objectRepresentation;return C.yield((new Response(A,{status:200})).json(),7);case 7:U=C.yieldResult;if(!VE(U,Z,!1,!1))return C.return(0);t=N.next();C.jumpTo(4);break;case 2:return _.ax(C),C.return(4)}})};
_.L$x=function(){try{btoa("abc")}catch(N){return 0}return 1};
ZoO=function(){var N,t,O,H,A,Z,U,C,F,g,B;return _.K(function(c){switch(c.nextAddress){case 1:_.Mo(c,2),N=_.D(XDz()),t=N.next();case 4:if(t.done)return c.return(1);H=O=t.value;A=H.jsonRepresentation;Z=H.objectRepresentation;U=btoa(A);C="data:application/json;base64,"+U;F=new Request(C);Object.defineProperty(F,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(F,"method",{get:function(){return"POST"}});
Object.defineProperty(F,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(F,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(F,"body",{get:function(){return new ReadableStream}});
return c.yield(fetch(F),7);case 7:return g=c.yieldResult,c.yield(g.json(),8);case 8:B=c.yieldResult;if(!VE(B,Z,!1,!1))return c.return(0);t=N.next();c.jumpTo(4);break;case 2:return _.ax(c),c.return(4)}})};
_.hvt=function(N){if(!N||!N.length||typeof N==="string")return 0;for(var t=function(A){return _.NL(A)},O=2,H=0;H<N.length&&(O=_.qfG(_.otN(N[H],t)),O!==0);H++);
return O};
_.qfG=function(N){var t=_.D(N);N=t.next().value;t=t.next().value;try{var O=document.createElement("div");document.body.appendChild(O);var H=getComputedStyle(O).display;document.body.removeChild(O);if(H==="none")return 4;var A=getComputedStyle(t).display==="none"?0:1;document.body.removeChild(N);return A}catch(Z){return 4}};
F$Q=function(){var N,t,O;return _.K(function(H){N=new _.CT;t=document.createElement("button");t.classList.add("ytp-ad-skip-button");t.style.opacity="0";t.style.height="0px";t.style.width="0px";t.style.padding="0px";t.style.border="none";O=function(){t.parentElement&&t.parentElement.removeChild(t)};
t.onclick=function(){N.resolve(0);O()};
document.body.appendChild(t);setTimeout(function(){O();N.resolve(1)},50);
return H.return(N.promise)})};
U7G=function(){var N,t,O,H,A,Z,U;return _.K(function(C){N=new _.CT;t=document.createElement("ytd-player");try{document.body.prepend(t)}catch(F){return C.return(4)}O=function(){t.parentElement&&t.parentElement.removeChild(t)};
t.getElementsByTagName("div").length>0?H=t.getElementsByTagName("div")[0]:(H=document.createElement("div"),t.appendChild(H));A=document.createElement("div");H.appendChild(A);Z=document.createElement("video");U=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"});Z.src=_.f8(_.l9(U));Z.ontimeupdate=function(){O();N.resolve(0)};
A.appendChild(Z);Z.classList.add("html5-main-video");setTimeout(function(){A.classList.add("ad-interrupting")},200);
setTimeout(function(){O();N.resolve(1)},5E3);
return C.return(N.promise)})};
fFz=function(N){var t=NMy().objectRepresentation.playbackTracking;if(t){var O=[],H;O.push(t==null?void 0:(H=t.videostatsPlaybackUrl)==null?void 0:H.baseUrl);var A;O.push(t==null?void 0:(A=t.videostatsDelayplayUrl)==null?void 0:A.baseUrl);var Z;O.push(t==null?void 0:(Z=t.videostatsWatchtimeUrl)==null?void 0:Z.baseUrl);var U;O.push(t==null?void 0:(U=t.ptrackingUrl)==null?void 0:U.baseUrl);var C;O.push(t==null?void 0:(C=t.qoeUrl)==null?void 0:C.baseUrl);var F;O.push(t==null?void 0:(F=t.atrUrl)==null?
void 0:F.baseUrl);t=_.D(O);for(O=t.next();!O.done;O=t.next())if((O=O.value)&&N.test(O))return O.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
npx=function(N,t){var O,H;return _.K(function(A){switch(A.nextAddress){case 1:O=[],H=0;case 2:if(!(H<3)){A.jumpTo(4);break}return A.yield(fetch(N,{cache:"no-store",method:t}).then(function(Z){O.push(Z.status)}).catch(function(){O.push(-1)}),3);
case 3:H++;A.jumpTo(2);break;case 4:return A.return(O)}})};
W$v=function(N){return N.domainLookupStart===0&&N.domainLookupEnd===0&&N.connectStart===0&&N.connectEnd===0||N.duration===0};
r6S=function(N,t,O){O=O===void 0?"GET":O;var H,A,Z,U,C,F,g,B,c,u;return _.K(function(S){if(S.nextAddress==1)return S.yield(Promise.all([npx(N,O),npx(t,O)]),2);H=S.yieldResult;A=_.D(H);Z=A.next().value;U=A.next().value;C=Z;F=U;if(Math.min.apply(Math,_.W6(F))!==Math.max.apply(Math,_.W6(F))||Math.min.apply(Math,_.W6(C))!==Math.max.apply(Math,_.W6(C)))return S.return(2);if(Math.min.apply(Math,_.W6(F))===Math.min.apply(Math,_.W6(C)))return S.return(1);B=(g=performance.getEntriesByName(N))==null?void 0:
g[0];u=(c=performance.getEntriesByName(t))==null?void 0:c[0];return B&&u?W$v(u)?S.return(1):W$v(B)?S.return(0):S.return(1):S.return(2)})};
y64=function(){var N;return _.K(function(t){var O=[];var H;var A,Z,U;(A=H=(A=NMy().objectRepresentation.streamingData)==null?void 0:(Z=A.formats)==null?void 0:(U=Z[0])==null?void 0:U.url)&&A&&!H.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(A=A.replace("initcwndbps","ctier=L&initcwndbps"),A=A.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),H={testUrl:A,baseUrl:H,method:"GET"}):H=void 0;H&&O.push(H);_.h("ab_net_tp_e")&&O.push({testUrl:_.H4.location.origin+"/ad_companion",baseUrl:_.H4.location.origin+
"/generate_204",method:"OPTIONS"});_.h("ab_fix_creator_view_cnt")&&(O.length=0,(H=fFz(/api\/stats\/atr/))&&O.push({testUrl:_.H4.location.origin+H,baseUrl:_.H4.location.origin+"/generate_204",method:"POST"}));_.h("ad_net_pb_pbp")&&(H=fFz(/api\/stats\/qoe/))&&O.push({testUrl:_.H4.location.origin+H,baseUrl:_.H4.location.origin+"/feed/download",method:"GET"});O=O.length!==0?O[Math.floor(Math.random()*O.length)]:void 0;return(N=O)?t.return(r6S(N.testUrl,N.baseUrl,N.method)):t.return(4)})};
_.boO=function(){if(_.H4.wqc===void 0||_.H4.wqc===null||typeof _.H4.wqc!=="function")return 2;try{return _.H4.wqc()===!0?0:1}catch(N){return 0}};
IFS=function(N){switch(N){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Ep(N,"unknown result type")}};
_.lFv=function(N,t){var O=Number(_.Ro("CATSTAT",0));if(t.dJi===void 0)return O;t=t.dJi;N=IFS(N);return O&~(3<<t)|N<<t};
Qfp=function(N){var t,O;if((N=(t=N.auxiliaryUi)==null?void 0:(O=t.messageRenderers)==null?void 0:O.bkaEnforcementMessageViewModel)&&N.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return N};
Ep9=function(){for(var N=_.D(Object.values(_.m7l)),t=N.next();!t.done;t=N.next())t=t.value,t.fAL&&t.dJi&&_.Gm("CATSTAT",_.lFv(2,t))};
_.dY=function(N,t){N=_.KT("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",N);(t===void 0?0:t)?_.GUp(N,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Fi().logFlowEvent(N,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
vpv=function(){if(!Rv4){if(Polymer.Base){var N=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{N.apply(this,arguments)}catch(c){_.JO(c)}};
var t=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{t.apply(this,arguments)}catch(c){_.JO(c)}};
var O=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{O.apply(this,arguments)}catch(c){_.JO(c)}};
var H=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{H.apply(this,arguments)}catch(c){_.JO(c)}};
var A=Polymer.Base._listen,Z=new WeakMap;Polymer.Base._listen=function(c,u,S){var b=function(){try{S.apply(this,arguments)}catch(z){_.JO(z)}};
Z.set(S,b);A.call(this,c,u,b)};
var U=Polymer.Base._unlisten;Polymer.Base._unlisten=function(c,u,S){U.call(this,c,u,Z.get(S))}}if(Polymer.Async){var C=Polymer.Async,F=C._atEndOfMicrotask;
C._atEndOfMicrotask=function(){try{F.apply(C,arguments)}catch(c){_.JO(c)}}}if(Polymer.RenderStatus){var g=Polymer.RenderStatus,B=g.afterNextRender;
g.afterNextRender=function(c,u,S){B.call(g,c,function(){try{u.apply(this,arguments)}catch(b){_.JO(b)}},S)}}Rv4=!0}};
_.opy=function(N){var t=N?_.Yv(N):"";if(t){if(t.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(t.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(t.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(t.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(t.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.h("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(t.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";t=t.toLowerCase();if(t==="/")return"home";if(t==="/channel_memberships")return"channel-memberships-shopfront";if(t.indexOf("/feed/trending")===0)return"trending";if(t.indexOf("/feed/explore")===0)return"explore";if(t.indexOf("/live")===0)return"live";if(t.indexOf("/results")===0)return"search";if(t.indexOf("/sports")===0)return"sports";if(t.indexOf("/fashion")===0||t.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(t))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(t))return _.h("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(t.indexOf("/channel/")===0||t.indexOf("/user/")===0||t.indexOf("/gaming")===0||t.indexOf("/post/")===0)return"channel";if(J6t(N))return"show";if(t==="/playlist"||t.indexOf("/playlist/")===0||t==="/view_play_list"||t.indexOf("/view_play_list/")===0||t.indexOf("/show/")===0)return"playlist";if(t==="/companion_canvas")return"companion-canvas";if(t==="/feed/history"||
t.indexOf("/feed/history/")===0)return"history";if(t==="/new")return"labs";if(t==="/feed/subscriptions")return"subscriptions";if(t.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(t==="/history_controls")return"standalone";if(t.indexOf("/account")===0||t==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(t.indexOf("/paid_memberships")===0||t.indexOf("/refund")===0||t.indexOf("/purchases")===0||t.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(t.indexOf("/product")===
0)return"yts-products";if(t.indexOf("/premium")===0||t.indexOf("/musicpremium")===0)return t.indexOf("/premium/offers")===0||t.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(t==="/cart/checkout"||t==="/cart")return"ypc-checkout";if(t.indexOf("/reporthistory")===0)return _.h("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(t.indexOf("/feed/downloads")===0||t.indexOf("/redeem")===0)return"browse";if(t.indexOf("/hashtag")===0)return"hashtag-landing-page";if(t.indexOf("/handle")===
0)return"handle";if(t.indexOf("/source")===0)return"audio-pivot";if(t.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(t.indexOf("/playables")===0)return"playables";if(t.indexOf("/create/live/join")===0)return"open-in-app";if(t.indexOf("/shorts")===0)return"shorts";if(t.indexOf("/feed/channels")===0)return"subscriptions-channels";var O=N?_.Yv(N):"";O&&O.indexOf("/watch")===0&&_.h("web_watch_enable_learning_journey")?(N=_.D9(N),N=!!N.list&&N.list.indexOf("LJPP")===0):N=!1;if(N)return"learning_journey_watch";
if(_.h("enable_new_page_subtypes_for_ai_companion")&&t==="/feed/courses")return"your-courses"}};
_.gY=function(N){var t,O;(N=(O=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?void 0:O.url)&&(t=_.opy(N));return t};
J6t=function(N){var t=N?_.Yv(N):"";if(!t)return!1;t=t.toLowerCase();return t.indexOf("/show/")===0||t.indexOf("/playlist")===0&&(N=_.D9(N),N.list&&N.list.indexOf("EL")===0)?!0:!1};
ci=function(N){var t="unknown",O;var H=((O=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?void 0:O.webPageType)||"";H?(O=H.toLowerCase(),O.startsWith("web_page_type_")&&(O=O.slice(14))):O=H;O&&sfx[O.toUpperCase()]?t=sfx[O.toUpperCase()]:_.M(N,_.yE)||_.M(N,NVp)?t="browse":_.M(N,_.Bi)?t="search":_.M(N,_.rN)&&(t="watch");t==="watch"&&_.gY(N||null)==="learning_journey_watch"&&(t="learning_journey_watch");t==="unknown"&&_.J_(Error("Tf`"+JSON.stringify({clickTrackingParams:N==null?void 0:N.clickTrackingParams,
commandMetadata:N==null?void 0:N.commandMetadata,allEndpointKeys:Object.keys(N||[])})));return t};
_.$H=function(N){if(!_.t3l||N)_.t3l=_.Ti();return _.t3l};
_.O_t=function(N){return!!_.M(N,_.rN)||!!_.M(N,_.jc)&&_.h("kevlar_enable_shorts_prefetch")};
_.H_y=function(N,t){N=_.M(N,_.rN)||_.M(N,_.jc);return"v"+N.videoId+(N.playlistId?"-pl"+N.playlistId:"")+(t?"-an1":"")+(N.params?"-pr"+N.params:"")};
_.AXQ=function(N){var t=new i8(_.Ro("ONE_PICK_URL",""));t.urlParamMap_.set("hostId",N);(N=_.Ro("GAPI_LOCALE"))&&t.urlParamMap_.set("hl",N);(N=_.Ro("SESSION_INDEX"))&&t.urlParamMap_.set("authuser",N);(N=_.Ro("DELEGATED_SESSION_ID"))&&t.urlParamMap_.set("groupId",N);return t};
V3v=function(){var N=_.cY(),t=N.resolve(_.u8);N=N.resolve(_.Sc);return new Z_l(t,N)};
UGl=function(N){if(window.IntersectionObserver)return new DGG(N,400);throw new TypeError("Vf");};
Kuv=function(){var N=Hammer.TouchAction,t=N.prototype.preventDefaults;N.prototype.preventDefaults=function(O){var H=this.actions.indexOf("pan-down")>-1;if(!H)return t.call(this,O);if(!CRg){var A=O.srcEvent;O=O.direction;var Z;if((Z=this.manager)==null?0:Z.session.prevented)A.preventDefault();else if(H&&O&Hammer.DIRECTION_DOWN)return this.preventSrc(A)}}};
Fu9=function(N){if(!N||N.size===0)return Hammer.DIRECTION_ALL;if(N.size===2){if(N.has("up")&&N.has("down"))return Hammer.DIRECTION_VERTICAL;if(N.has("right")&&N.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(N.size===1){if(N.has("up"))return Hammer.DIRECTION_UP;if(N.has("down"))return Hammer.DIRECTION_DOWN;if(N.has("right"))return Hammer.DIRECTION_RIGHT;if(N.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.geO=function(){return dGN?Promise.resolve(dGN):new Promise(function(N,t){var O=self.indexedDB.open("swpushnotificationsdb");O.onerror=t;O.onsuccess=function(){var H=O.result;if(H.objectStoreNames.contains("swpushnotificationsstore"))dGN=H,N(dGN);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.geO()};
O.onupgradeneeded=yX9})};
yX9=function(N){N=N.target.result;N.objectStoreNames.contains("swpushnotificationsstore")&&N.deleteObjectStore("swpushnotificationsstore");N.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.ML=function(N,t,O){var H=O&&O>0?O:0;O=H?Date.now()+H*1E3:0;if((H=H?_.hG.getLocalStorage():_.hG.getSessionStorage())&&window.JSON){typeof t!=="string"&&(t=JSON.stringify(t,void 0));try{H.set(N,t,O)}catch(A){H.remove(N)}}};
_.b8=function(N){var t=_.hG.getSessionStorage(),O=_.hG.getLocalStorage();if(!t&&!O||!window.JSON)return null;try{var H=t.get(N)}catch(A){}if(typeof H!=="string")try{H=O.get(N)}catch(A){}if(typeof H!=="string")return null;try{H=JSON.parse(H,void 0)}catch(A){}return H};
_.pT=function(N){try{var t=_.hG.getSessionStorage(),O=_.hG.getLocalStorage();t&&t.remove(N);O&&O.remove(N)}catch(H){}};
cXl=function(N){var t=BVy(),O;return _.K(function(H){switch(H.nextAddress){case 1:return _.Mo(H,2),H.yield(N.match(t,{cacheName:"yt-appshell-assets"}),4);case 4:O=H.yieldResult;_.Do(H,3);break;case 2:_.ax(H);case 3:return H.return(O)}})};
BVy=function(){var N=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?$Gp.registration.scope:jR4;N.endsWith("/")&&(N=N.slice(0,-1));return N+"/app_shell_home"};
i_M=function(N){N.map(function(t){return t.source}).join("|")};
_.uqN=function(N){return _.K(function(t){return t.return(cXl(N))})};
Ss4=function(){var N=window.caches,t;return _.K(function(O){if(O.nextAddress==1)return O.yield(_.uqN(N),2);t=O.yieldResult;return O.return(!!t)})};
Ys9=function(){_.K(function(N){if(N.nextAddress==1){if(hWM)return N.jumpTo(0);hWM=!0;if(_.h("enable_system_health_primes_monitoring"))return _.LF(M3Q,3E4),b_l(),N.return();if(!(Math.random()<_.uP("web_system_health_fraction")))return N.jumpTo(0);pKt={heightPixels:screen.height,widthPixels:screen.width};LT&&!isNaN(LT.jsHeapSizeLimit)&&(pKt.memoryTotalKbytes=String(Math.round(LT.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(pKt.devicePixelRatio=window.devicePixelRatio);return N.yield(Lup(),4)}_.LF(M3Q,
3E4);return N.yield(zWp(),0)})};
Lup=function(){return _.K(function(N){if(N.nextAddress==1)return zV.intersectionObserverPresent="IntersectionObserver"in window,zV.serviceWorkerPresent="serviceWorker"in navigator,zV.webSharePresent="share"in navigator,zV.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,zV.cacheStoragePresent="caches"in window,zV.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,zV.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
zV.webkitTemporaryStoragePresent="webkitTemporaryStorage"in YH&&YH.webkitTemporaryStorage&&"queryUsageAndQuota"in YH.webkitTemporaryStorage,zV.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",N.yield(yBv(),2);zV.indexedDbPresent=N.yieldResult;zV.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;zV.broadcastChannelPresent="BroadcastChannel"in window;zV.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(zV.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,zV.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Ty(N)})};
M3Q=function(){var N=9E4+Math.random()*2E3;_.jO()>N||(_.h("enable_system_health_primes_monitoring")?b_l():zWp())};
zWp=function(){var N;return _.K(function(t){if(t.nextAddress==1)return t.yield(av4(),2);N=t.yieldResult;_.E7("systemHealthCaptured",N);_.Ty(t)})};
b_l=function(){var N={metric:{}},t=TVO();t.networkEvents.length&&(N.metric.networkEvents=wKv(t));_.E7("systemHealthCaptured",N)};
av4=function(){var N,t,O,H,A,Z,U,C,F,g;return _.K(function(B){switch(B.nextAddress){case 1:N={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};t=window.screen;_.h("enable_is_extended_monitoring")&&t&&"isExtended"in t&&(N.isExtended=!!t.isExtended);O={metric:{staticContext:pKt,dynamicContext:N,webMetric:eWS,webApiSupport:zV}};
if(H=_.z8())O.csn=H;LT&&(O.metric.webMetric.currentHeapKbytes=Math.round(LT.usedJSHeapSize/1E3));window.matchMedia&&(O.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,O.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,O.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in YH&&typeof YH.getBattery==="function")){B.jumpTo(2);break}return B.yield(YH.getBattery(),3);case 3:if(A=
B.yieldResult)O.metric.dynamicContext.chargingStatus=A.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(O.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(zV.storageEstimatePresent)return B.yield(navigator.storage.estimate(),8);if(!zV.webkitTemporaryStoragePresent){B.jumpTo(5);break}return B.yield(PRM(),7);case 7:Z=B.yieldResult;B.jumpTo(5);break;case 8:Z=B.yieldResult;case 5:return O.metric.dynamicContext.deviceStorageQuotaMbytes=((U=Z)==null?0:U.quota)?String(Math.round(Z.quota/
1048576/10)*10):"-1",O.metric.dynamicContext.deviceStorageUsageMbytes=((C=Z)==null?0:C.usage)?String(Math.round(Z.usage/1048576/10)*10):"-1",F=O.metric.dynamicContext,B.yield(Ss4(),9);case 9:return F.hasAppShell=B.yieldResult,g=TVO(),g.networkEvents.length&&(O.metric.networkEvents=wKv(g)),B.return(O)}})};
PRM=function(){return new Promise(function(N){var t;zV.webkitTemporaryStoragePresent&&(t=YH.webkitTemporaryStorage)!=null&&t.queryUsageAndQuota?YH.webkitTemporaryStorage.queryUsageAndQuota(function(O,H){N({usage:O,quota:H})}):N(void 0)})};
_.aI=function(N){N&=16777215;N=[(N&16711680)>>16,(N&65280)>>8,N&255];return XKx(N[0],N[1],N[2])};
_.TV=function(N){N=[(N&16711680)>>>16,(N&65280)>>>8,N&255,(N&4278190080)>>>24];if(!_.xGv(N,function(t){return t===(t&255)}))throw Error("Wf`"+N.join(","));
return"rgba("+N[0]+","+N[1]+","+N[2]+","+(N[3]/255).toFixed(3)+")"};
_.kHt=function(N){return[(N&16711680)>>>16,(N&65280)>>>8,N&255]};
_.qsy=function(N){N=N.map(function(t){t/=255;return t<=.03928?t/12.92:Math.pow((t+.05)/1.05,2.4)});
return N[0]*.2126+N[1]*.7152+N[2]*.0722};
wY=function(N,t){N=_.kHt(N);return"rgba("+N[0]+", "+N[1]+", "+N[2]+", "+t+")"};
ec=function(N){return(N&4278190080)>>>24===0?wY(N,"1"):_.TV(N)};
_.fvg=function(){try{return!!self.localStorage}catch(N){return!1}};
IvO=function(){if(neG())_.J_(Error("Xf"));else{var N=document.createElement("iframe");N.style.display="none";var t=t===void 0?window.location.href:t;var O=_.Rk(_.Ro("PERSIST_IDENTITY_IFRAME_URL"));t=O?O:(new URL(t)).host.indexOf("studio")===0?_.ju(Wu4,"persist_identity"):_.ju(rXl,"persist_identity");_.tY(N,1,t);N.id="persist_identity";var H;(H=document.body)==null||H.appendChild(N)}};
neG=function(){var N=lvS;N||(N=document.querySelector("#persist_identity"));return N};
QR9=function(){var N=!1;try{N=!!window.sessionStorage.getItem("session_logininfo")}catch(t){N=!0}return(_.Ro("INNERTUBE_CLIENT_NAME")==="WEB"||_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&N};
mG4=function(N,t){if(!QR9())return!1;t||(t=_.Ro("LOGIN_INFO"));return t?(N.session_logininfo=t,!0):!1};
GHN=function(N,t){N=N===void 0?!1:N;if((t===void 0||!t)&&Eeg!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.vZ("LOG_STICKINESS",!1)){t=_.z8();var O=_.pv(),H={identityStickinessData:{initialState:Eeg}};t&&O&&_.QZ(t,O,H)}if(t=neG())if(O=t.src?(new URL(t.src)).origin:"*",N){var A;(A=t.contentWindow)==null||A.postMessage({action:"clear"},O)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(N=window.sessionStorage.getItem("session_logininfo"))){var Z;(Z=t.contentWindow)==null||Z.postMessage({loginInfo:N},O)}};
_.Pi=function(N){N=N===void 0?!0:N;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Gm("LOGIN_INFO",""),N&&window.sessionStorage.setItem("from_switch_account","1"),GHN(!0,N)}catch(t){}};
RWt=function(N){N&&(N.startsWith("https://accounts.google.com/AddSession")?_.Pi():N.startsWith("https://accounts.google.com/ServiceLogin")?_.Pi():N.startsWith("https://myaccount.google.com")&&_.tJ(N).getPath().endsWith("/youtubeoptions")&&_.Pi())};
Xi=function(N,t){RWt(N);if(_.vZ("LOGGED_IN",!0)&&QR9()){var O=R8l(N);O==null&&(O={});mG4(O,t)&&_.m2(N,O)}};
vez=function(){function N(t){for(t=t.target;t&&t.nodeName!=="A";)if(t=t.parentNode,!(t&&t instanceof HTMLElement))return;if(t&&!t.hasAttribute("download")&&t.getAttribute("rel")!=="external"&&t.href)return t.href}
document.addEventListener("mousedown",function(t){t.button!==0&&(t=N(t))&&Xi(t)});
document.addEventListener("click",function(t){(t=N(t))&&Xi(t)})};
sRy=function(){var N=new JXG;try{if(_.vZ("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(C){N.increment(5,!1);return}if(_.Ro("LOGIN_INFO")){var t=oeN?oeN:window.location;_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&IvO();var O=R8l(t.href);O==null&&(O={});var H=O.session_logininfo,A=Number(window.sessionStorage.getItem("stickiness_reload")),Z=H===_.Ro("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
A>=2||Z)A>=2?N.increment(2,Z):Z?N.increment(7,Z):window.sessionStorage.getItem("session_logininfo")||(N.increment(3,Z),Eeg="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Ro("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Ro("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))N.increment(4,Z),window.sessionStorage.removeItem("stickiness_reload");
else if(A<2){window.sessionStorage.setItem("stickiness_reload",String(A+1));var U=t.href;U=_.El(U,"sttick");Xi(U,window.sessionStorage.getItem("session_logininfo"));U=_.Uy(U,{sttick:A});N.increment(A,Z);_.jxG(t,U)}}else N.increment(6,!1)}else _.Pi(!1)}catch(C){}};
_.xH=function(N,t,O,H,A){t=t===void 0?{}:t;O=O===void 0?"":O;H=H===void 0?window:H;N=_.CF(N,t);Xi(N);O=_.Id(N+O,A);_.jxG(H.location,O)};
Nng=function(N){if(N.urlEndpoint){if(N=_.D9(N.urlEndpoint.url),N.adurl)return yl(N.adurl)}else if(N.watchEndpoint)return"//www.youtube.com/watch?v="+N.watchEndpoint.videoId;return null};
tQg=function(N){if(!N||!N.reportingPings)return null;var t={};N.reportingPings.forEach(function(O){O.pingType in t?t[O.pingType].push(O.url):t[O.pingType]=[O.url]});
return{adpings:rHg(t)}};
_.qL=function(N){N=N===void 0?!1:N;var t=_.d0(),O="USER_INTERFACE_THEME_LIGHT";t.getFlag(165)?O="USER_INTERFACE_THEME_DARK":t.getFlag(174)?O="USER_INTERFACE_THEME_LIGHT":_.kH()&&(O="USER_INTERFACE_THEME_DARK");return N?O:OqQ()||O};
_.HqO=function(){return!_.h("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.kH=function(){return _.HqO()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.fT=function(){var N=_.d0();return _.HqO()&&!N.getFlag(165)&&!N.getFlag(174)};
OqQ=function(){var N=N===void 0?window.location.href:N;if(_.h("kevlar_disable_theme_param"))return null;var t=_.Yv(N);if(_.A3v(t))return"USER_INTERFACE_THEME_DARK";try{var O=_.D9(N).theme;return ZqG.get(O)||null}catch(H){}return null};
_.A3v=function(N){return _.h("enable_dark_theme_only_on_shorts")?!(N==null||!N.startsWith("/shorts/")):!1};
_.UP4=function(N,t,O,H,A){t=t===void 0?!1:t;O=O===void 0?!1:O;var Z=_.Ro("INNERTUBE_CONTEXT");if(!Z)return _.R0(Error("ag")),{};Z=(0,_.WW.unsafeClone)(Z);_.h("web_no_tracking_params_in_shell_killswitch")||delete Z.clickTracking;Z.client||(Z.client={});var U=Z.client;U.clientName==="MWEB"&&U.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(U.clientFormFactor=_.Ro("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");U.screenWidthPoints=window.innerWidth;U.screenHeightPoints=window.innerHeight;U.screenPixelDensity=
Math.round(window.devicePixelRatio||1);U.screenDensityFloat=window.devicePixelRatio||1;U.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());U.userInterfaceTheme=_.qL();if(!t){var C=_.qKS();C&&(U.connectionType=C);_.h("web_log_effective_connection_type")&&(C=nYl())&&(Z.client.effectiveConnectionType=C)}var F;if(_.h("web_log_memory_total_kbytes")&&((F=_.H4.navigator)==null?0:F.deviceMemory)){var g;F=(g=_.H4.navigator)==null?void 0:g.deviceMemory;Z.client.memoryTotalKbytes=""+F*1E6}t&&H&&!_.h("web_it_context_set_original_url_ks")&&
(U.originalUrl=VQ4(_.H4.location.href,H).toString());_.h("web_gcf_hashes_innertube")&&(C=Rk4())&&(g=C.coldConfigData,F=C.coldHashData,C=C.hotHashData,Z.client.configInfo=Z.client.configInfo||{},g&&(Z.client.configInfo.coldConfigData=g),F&&(Z.client.configInfo.coldHashData=F),C&&(Z.client.configInfo.hotHashData=C));g=_.D9(_.H4.location.href);!_.h("web_populate_internal_geo_killswitch")&&g.internalcountrycode&&(U.internalGeo=g.internalcountrycode);!_.h("web_populate_client_screen_killswitch")&&A&&(U.clientScreen=
A);U.clientName==="MWEB"||U.clientName==="WEB"?(U.mainAppWebInfo||(U.mainAppWebInfo={}),U.mainAppWebInfo.graftUrl=H||_.H4.location.href,_.h("kevlar_woffle")&&_.nT.instance&&(H=_.nT.instance,U.mainAppWebInfo.pwaInstallabilityStatus=!H.appInstalledEventFired&&H.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),U.mainAppWebInfo.webDisplayMode=Wdg(),U.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):U.clientName==="TVHTML5"&&
(!_.h("web_lr_app_quality_killswitch")&&(H=_.Ro("LIVING_ROOM_APP_QUALITY"))&&(U.tvAppInfo=Object.assign(U.tvAppInfo||{},{appQuality:H})),H=_.Ro("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(U.tvAppInfo=Object.assign(U.tvAppInfo||{},{certificationScope:H}));!_.h("web_populate_time_zone_itc_killswitch")&&(H=xpS())&&(U.timeZone=H);(H=OJx())?U.experimentsToken=H:delete U.experimentsToken;U=HJ4();H=_.DPp();H=(0,_.WW.getValues)(H.tokenJars);Z.request=Object.assign({},Z.request,{internalExperimentFlags:U,consistencyTokenJars:H});
!_.h("web_prequest_context_killswitch")&&(U=_.Ro("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Z.request.externalPrequestContext=U);H=_.d0();U=H.getFlag(58);H=H.get("gsml","");Z.user=Object.assign({},Z.user);U&&(Z.user.enableSafetyMode=U);H&&(Z.user.lockedSafetyMode=!0);_.h("warm_op_csn_cleanup")?O&&(t=_.z8())&&(Z.clientScreenNonce=t):!t&&(t=_.z8())&&(Z.clientScreenNonce=t);N&&(Z.clickTracking={clickTrackingParams:N});if(N=_.s2("yt.mdx.remote.remoteClient_"))Z.remoteClient=N;_.Wi.getInstance().setLocationOnInnerTubeContext(Z);
try{var B=gY4(),c=B.bid;delete B.bid;Z.adSignalsInfo={params:[],bid:c};for(var u=_.D(Object.entries(B)),S=u.next();!S.done;S=u.next()){var b=_.D(S.value),z=b.next().value,w=b.next().value;B=z;c=w;N=void 0;(N=Z.adSignalsInfo.params)==null||N.push({key:B,value:""+c})}var P,x;if(((P=Z.client)==null?void 0:P.clientName)==="TVHTML5"||((x=Z.client)==null?void 0:x.clientName)==="TVHTML5_UNPLUGGED"){var l=_.Ro("INNERTUBE_CONTEXT");l.adSignalsInfo&&(Z.adSignalsInfo.advertisingId=l.adSignalsInfo.advertisingId,
Z.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Z.adSignalsInfo.limitAdTracking=l.adSignalsInfo.limitAdTracking)}}catch(I){_.R0(I)}return Z};
_.rY=function(){return{isShellLoad:_.vZ("IS_SHELL_LOAD",!1)}};
KRl=function(){navigator.serviceWorker.getRegistrations().then(function(N){N.forEach(CXO)})};
CXO=function(N){N&&_.FRz(dPQ,N.scope)};
_.FRz=function(N,t){t={scope:t||_.So("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.es(N),t)};
II=function(N,t,O,H){if(t&&t.serializedYpcCujLoggingParams){if(O){var A={};A.transactionErrorType=O;H&&(A.errorMessage=H);t.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:A}}}O={};O.ypcCujContext=t;N=_.KT("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",N,O);_.Fi().logFlowEvent(N,"FLOW_TYPE_YPC_ACQUISITION")}};
_.gTl=function(N,t,O,H){var A={};A.serializedTransactionFlowLoggingParams=t;O&&(A.errorType=O);H&&(A.errorMessage=H);_.E7(N,A);_.GW()};
_.y3t=function(N){N&&_.gTl("transactionFlowStarted",N)};
_.Bnx=function(N){N&&_.gTl("transactionFlowCancelled",N)};
_.l8=function(N,t,O){t&&_.gTl("transactionFlowFailed",t,N,O)};
c3O=function(N){var t=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");t&&(t.inert=N)};
_.QE=function(){this.megabloxUrl_=null};
_.m1=function(N){try{var t=$Pt==null?void 0:$Pt.composedPath(N)}catch(O){t=N.composedPath?N.composedPath():[]}return t&&t.length>0?t:N.composedPath?N.composedPath():[]};
_.E3=function(N){return _.m1(N)[0]};
GV=function(N){return N instanceof ShadowRoot?ShadowRoot:N instanceof DocumentFragment?DocumentFragment:N instanceof Document?Document:HTMLElement};
jOg=function(N){if(N instanceof Element)return Element.prototype;if(N instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+N);};
iqN=function(N,t){return _.h("sunnydom_native_scoped_query_selectors")?jOg(N).querySelector.call(N,t):GV(N).prototype.querySelector.call(N,t)};
u3Q=function(N,t){return _.h("sunnydom_native_scoped_query_selectors")?jOg(N).querySelectorAll.call(N,t):GV(N).prototype.querySelectorAll.call(N,t)};
SXS=function(N){var t,O,H;return(H=(O=(t=N.parentElement)!=null?t:N.__shady_native_parentElement)!=null?O:N.__shady_parentElement)!=null?H:null};
hL4=function(N){var t,O,H;return(H=(O=(t=N.parentNode)!=null?t:N.__shady_native_parentNode)!=null?O:N.__shady_parentNode)!=null?H:null};
MQS=function(N){var t,O,H;return(H=(O=(t=N.nextSibling)!=null?t:N.__shady_native_nextSibling)!=null?O:N.__shady_nextSibling)!=null?H:null};
bqy=function(N){var t,O,H;return(H=(O=(t=N.previousSibling)!=null?t:N.__shady_native_previousSibling)!=null?O:N.__shady_previousSibling)!=null?H:null};
pfl=function(N){var t,O,H;return(H=(O=(t=N.nextElementSibling)!=null?t:N.__shady_native_nextElementSibling)!=null?O:N.__shady_nextElementSibling)!=null?H:null};
LRx=function(N){var t,O,H;return(H=(O=(t=N.previousElementSibling)!=null?t:N.__shady_native_previousElementSibling)!=null?O:N.__shady_previousElementSibling)!=null?H:null};
zL4=function(N){var t,O,H;return new Set([].concat(_.W6((t=N.children)!=null?t:[]),_.W6((O=N.__shady_native_children)!=null?O:[]),_.W6((H=N.__shady_children)!=null?H:[])))};
YX9=function(N){var t,O,H;return new Set([].concat(_.W6((t=N.childNodes)!=null?t:[]),_.W6((O=N.__shady_native_childNodes)!=null?O:[]),_.W6((H=N.__shady_childNodes)!=null?H:[])))};
_.RI=function(N){if(!(N instanceof Element))return null;N=N.classList?Array.from(N.classList):void 0;if(!N)return null;var t=N.indexOf("style-scope");return t>-1&&t+1<N.length?N[t+1]:null};
vi=function(N){if(!(N instanceof HTMLElement))return null;var t=N&&(N.$$||N.polymerController)?N.tagName.toLowerCase():null;return t?t:_.RI(N)};
aHy=function(N,t){return _.h("sunnydom_native_scoped_query_selectors")?N+".style-scope."+t:N.replace(/[^a-z]*[^\s]+/g,function(O){return O+".style-scope."+t})};
Tnz=function(N,t){return t?N.split(",").map(function(O){return aHy(O.trim(),t)}).join(", "):N};
_.JG=function(N){var t,O,H,A;return(A=(H=(O=(t=N.root)!=null?t:N.shadowRoot)!=null?O:N.__shady_native_shadowRoot)!=null?H:N.__shady_shadowRoot)!=null?A:N};
wfx=function(N){var t,O,H;return(H=(O=(t=N.__shady_parentNode)!=null?t:N.__shady_native_parentNode)!=null?O:N.parentNode)!=null?H:null};
eLO=function(N){var t,O;return(O=(t=hL4(N))!=null?t:N.host)!=null?O:null};
PXS=function(N){for(;N&&!(N instanceof HTMLElement);)N=eLO(N);return N};
XfG=function(N){var t=PXS(N);return N===t?_.RI(N):t?vi(t):null};
xPx=function(N){return(N=PXS(N))?vi(N):null};
kOz=function(N){if(N instanceof Comment)return!1;if(N instanceof Text){var t,O;if(((O=(t=N.textContent)==null?void 0:t.trim())!=null?O:"")==="")return!1}return!0};
oI=function(N,t,O){var H=t(N);for(O=O===void 0?xPx(N):O;H&&(XfG(H)!==O||!kOz(H));)N=H,H=t(N);return H};
qXG=function(N,t,O){if(!t)return null;N=xPx(N);return XfG(t)===N&&kOz(t)?t:oI(t,O,N)};
fHM=function(N){return oI(N,wfx,_.RI(N))};
nTS=function(N){return oI(N,pfl)};
WRQ=function(N){return oI(N,MQS)};
r34=function(N){return oI(N,LRx)};
IHg=function(N){return oI(N,bqy)};
lHO=function(N){return qXG(N,N.firstChild||null,MQS)};
QOQ=function(N){var t,O,H;var A=(H=(O=(t=N.firstElementChild)!=null?t:N.__shady_native_firstElementChild)!=null?O:N.__shady_firstElementChild)!=null?H:null;return qXG(N,A,pfl)};
mPx=function(N){var t,O,H;var A=(H=(O=(t=N.lastChild)!=null?t:N.__shady_native_lastChild)!=null?O:N.__shady_lastChild)!=null?H:null;return qXG(N,A,bqy)};
ETv=function(N){var t,O,H;var A=(H=(O=(t=N.lastElementChild)!=null?t:N.__shady_native_lastElementChild)!=null?O:N.__shady_lastElementChild)!=null?H:null;return qXG(N,A,LRx)};
GOM=function(N){var t=xPx(N);return Array.from(YX9(N)).filter(function(O){return XfG(O)===t})};
RLN=function(N){var t=vi(N);return Array.from(zL4(N)).filter(function(O){return _.RI(O)===t})};
vT4=function(N){if(!N)return null;var t=_.RI(N);if(!t){var O;return(O=Node.prototype.getRootNode)==null?void 0:O.call(N)}t=t.toUpperCase();for(N=SXS(N);N&&N.tagName!==t;)N=SXS(N);return N?_.JG(N):null};
_.s3=function(N,t,O){if(N instanceof HTMLElement&&_.RI(N)===O){var H=Array.from(N.classList).indexOf("style-scope");if(H===-1)N.classList.add("style-scope"),N.classList.add(t);else if(!(H+1>=N.classList.length)){H=N.classList[H+1];var A,Z;N==null||(A=N.classList)==null||(Z=A.replace)==null||Z.call(A,H,t)}}if(N instanceof HTMLElement||N instanceof DocumentFragment)for(A=_.D(zL4(N)),Z=A.next();!Z.done;Z=A.next())_.s3(Z.value,t,O);return N};
Nf=function(N,t){if(N instanceof HTMLElement&&_.RI(N)===t){var O=Array.from(N.classList).indexOf("style-scope");O===-1||O+1>=N.classList.length||N.classList.remove("style-scope",N.classList[O+1])}if(N instanceof HTMLElement||N instanceof DocumentFragment){O=_.D(N.children);for(var H=O.next();!H.done;H=O.next())Nf(H.value,t)}return N};
_.J3g=function(N,t){return GV(N).prototype.appendChild.call(N,t)};
oTv=function(N,t){if(N===t)return!0;N=YX9(N);return Array.from(N).some(function(O){return oTv(O,t)})};
_.O6=function(N,t){if(N instanceof tn)return N;(t==null?0:t.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(N,"ownerDocument")&&Object.defineProperty(N,"ownerDocument",{get:function(){return window.document}});
return new tn(N)};
NXO=function(){var N=tn.prototype,t=[].concat(_.W6(sO9?[]:["getRootNode"]),["setAttribute","removeAttribute"]);t=_.D(t);for(var O=t.next(),H={};!O.done;H={method$jscomp$53:void 0},O=t.next())H.method$jscomp$53=O.value,N[H.method$jscomp$53]=function(A){return function(){return this.host[A.method$jscomp$53].apply(this.host,arguments)}}(H)};
O6Q=function(){var N=tn.prototype,t=[].concat(_.W6(sO9?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.W6(tdv?[]:["querySelector","querySelectorAll"]));t=_.D(t);for(var O=t.next(),H={};!O.done;H={method$jscomp$54:void 0},O=t.next())H.method$jscomp$54=O.value,N[H.method$jscomp$54]=function(A){return function(){return this.root[A.method$jscomp$54].apply(this.root,arguments)}}(H)};
Z6v=function(){var N=tn.prototype,t=[].concat(_.W6(H6N?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.W6(AfG?[]:["parentNode"]));t=_.D(t);for(var O=t.next(),H={};!O.done;H={prop$jscomp$67:void 0},O=t.next())H.prop$jscomp$67=O.value,Object.defineProperty(N,H.prop$jscomp$67,{get:function(A){return function(){return this.host[A.prop$jscomp$67]}}(H),
configurable:!0})};
Ull=function(){var N=tn.prototype,t=["activeElement"].concat(_.W6(H6N?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.W6(VdN?[]:["children"]),_.W6(Dly?[]:["lastChild"]));t=_.D(t);for(var O=t.next(),H={};!O.done;H={prop$jscomp$68:void 0},O=t.next())H.prop$jscomp$68=O.value,Object.defineProperty(N,H.prop$jscomp$68,{get:function(A){return function(){return this.root[A.prop$jscomp$68]}}(H),
configurable:!0})};
Csl=function(){for(var N=tn.prototype,t=_.D(["innerHTML","textContent"]),O=t.next(),H={};!O.done;H={prop$jscomp$69:void 0},O=t.next())H.prop$jscomp$69=O.value,Object.defineProperty(N,H.prop$jscomp$69,{get:function(A){return function(){return this.root[A.prop$jscomp$69]}}(H),
set:function(A){return function(Z){this.root[A.prop$jscomp$69]=Z}}(H),
configurable:!0})};
KQx=function(N){var t=tn.prototype;N=_.D(Object.entries(N));for(var O=N.next(),H={};!O.done;H={fn$jscomp$403:void 0},O=N.next()){var A=_.D(O.value);O=A.next().value;A=A.next().value;H.fn$jscomp$403=A;t[O]=function(Z){return function(){return Z.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.W6(arguments)))}}(H)}};
dl4=function(){for(var N=tn.prototype,t=_.D(Object.entries(FQM)),O=t.next(),H={};!O.done;H={fn$jscomp$404:void 0},O=t.next()){var A=_.D(O.value);O=A.next().value;A=A.next().value;H.fn$jscomp$404=A;Object.defineProperty(N,O,{get:function(Z){return function(){return Z.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.W6(arguments)))}}(H),
configurable:!0})}};
_.Zr=function(N){return N instanceof gul||N instanceof Document?N:new gul(N)};
yfN=function(){for(var N=gul.prototype,t=_.D("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),O=t.next(),H={};!O.done;H={method$jscomp$55:void 0},O=t.next())H.method$jscomp$55=O.value,N[H.method$jscomp$55]=function(A){return function(){return HTMLElement.prototype[A.method$jscomp$55].call.apply(HTMLElement.prototype[A.method$jscomp$55],[this.node].concat(_.W6(arguments)))}}(H)};
BXN=function(){for(var N=gul.prototype,t=_.D("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),O=t.next(),H={};!O.done;H={prop$jscomp$70:void 0},O=t.next())H.prop$jscomp$70=O.value,Object.defineProperty(N,H.prop$jscomp$70,{get:function(A){return function(){var Z;return(Z=this.node["__shady_native_"+A.prop$jscomp$70])!=null?Z:this.node[A.prop$jscomp$70]}}(H),
configurable:!0})};
_.VQ=function(N,t,O){O===void 0&&(O=!N.classList.contains(t));O?N.classList.add(t):N.classList.remove(t)};
_.Dr=function(N,t,O){O===void 0&&(O=!N.hasAttribute(t));if(t==="class")throw Error("fg");O?_.Zr(N).setAttribute(t,""):_.Zr(N).removeAttribute(t)};
cfl=function(N){return(N.localName!=="slot"?[]:(0,_.U6)(N).assignedNodes({flatten:!0})).filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
_.$lv=function(N){return(N=_.O6(N).querySelector("slot"))&&N.localName==="slot"?cfl(N):[]};
_.CO=function(N,t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(N,t)};
KO=function(N,t){var O=t.bind(N);return function(H){O(H,H.detail)}};
_.Fb=function(N,t){var O=jq4.get(N);O||(O=new WeakMap,jq4.set(N,O));if(O.has(t))return O.get(t);if(_.h("web_fi_listen_disable_bound_fn_helper")){var H=t.bind(N);N=function(A){H(A,A==null?void 0:A.detail)}}else N=KO(N,t);
O.set(t,N);return N};
SuQ=function(N,t){i6O(N);N.created[u4M].push(t)};
i6O=function(N){if(!N.created||!N.created[u4M]){var t=N.created,O=t?[t]:[];N.created=function(){for(var H=_.D(O),A=H.next();!A.done;A=H.next())A.value.apply(this)};
N.created[u4M]=O}};
hON=function(N){return function(){var t=_.E1.apply(0,arguments);return function(O,H,A){N.apply(null,_.W6(t))(O,H,A)}}};
Mdv=function(){return function(){var N=_.E1.apply(0,arguments);return function(t,O,H){Ctv.apply(null,_.W6(N))(t,O,H)}}};
_.Y=function(N){return Mdv()(N)};
_.a=function(){return hON(gGt).apply(null,_.W6(_.E1.apply(0,arguments)))};
_.dz=function(N){return _.h("pbcm_fi_listen_decorators")?b64(N):hON(FsO)(N)};
b64=function(N){return function(t,O){SuQ(t,function(){var H=this[O],A=_.h("web_fi_listen_disable_bound_fn_helper")?function(Z){H(Z,Z.detail)}.bind(this):KO(this,H);
pIx.has(N)?Rb(this.hostElement,N,A):this.hostElement.addEventListener(N,A)})}};
_.gz=function(){return hON(dOv).apply(null,_.W6(_.E1.apply(0,arguments)))};
_.X=function(N){N=N===void 0?{}:N;return hON(KsM)(N)};
_.yQ=function(N){if(N.hostElement&&N!==N.hostElement){var t=_.$L(N.hostElement);t=N.renderIdom?t:t.shadowRoot}t||(N=N.root,t=N instanceof Node?_.$L(N):null);return t};
_.B2=function(N){return LQx?zOS(N):function(t,O){Object.defineProperty(t,O,{get:function(){var H;return(H=_.yQ(this))==null?void 0:H.querySelector(N)},
enumerable:!0,configurable:!0})}};
zOS=function(N){return function(t,O){Object.defineProperty(t,O,{get:function(){var H,A=(H=_.O6(this.hostElement))==null?void 0:H.querySelector(N);if(A)return A;var Z;return(Z=_.yQ(this))==null?void 0:Z.querySelector(N)},
enumerable:!0,configurable:!0})}};
_.c2=function(N){return LQx?YuO(N):function(t,O){Object.defineProperty(t,O,{get:function(){var H;return(H=_.yQ(this))==null?void 0:H.querySelectorAll(N)},
enumerable:!0,configurable:!0})}};
YuO=function(N){return function(t,O){Object.defineProperty(t,O,{get:function(){var H,A=(H=_.O6(this.hostElement))==null?void 0:H.querySelectorAll(N);if(A==null?0:A.length)return A;var Z;return(Z=_.yQ(this))==null?void 0:Z.querySelectorAll(N)},
enumerable:!0,configurable:!0})}};
aQG=function(N){return function(t){if(![_.$I,_.k].includes(Object.getPrototypeOf(t.prototype).constructor))throw Error("gg");tWS(Object.assign({},typeof N!=="string"?N:{is:N,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(t)}};
_.jn=function(){var N=N===void 0?{}:N;return function(t){if(![jm,_.$q].includes(Object.getPrototypeOf(t.prototype).constructor))throw Error("hg");OAv(Object.assign({},N,{disableInheritanceCheck:!0}))(t)}};
wIp=function(N,t){TX9[N]!=null||(TX9[N]=new Set);TX9[N].add(t)};
_.ic=function(){var N=_.gz.apply(null,_.W6(_.E1.apply(0,arguments)));return function(t,O){wIp(t.is,O);N(t,O)}};
hn=function(N,t,O){if(uc(N)&&!eOt.has(t)){t=t.replace(/^JSC\$[\d]+_/,"");t=t.replace(/\.\d+(\.|$)/g,function(Z,U){return".#"+U});
Sn[N]!=null||(Sn[N]={});var H,A;(H=Sn[N])[A=t]!=null||(H[A]=new Set);Sn[N][t].has(O)||(Sn[N][t].add(O),_.E7("polymerPropertyAccessEvent",{componentName:N,propertyName:t,accessType:O}))}};
Ps9=function(){return _.h("polymer_property_access_logging_debug")||_.h("polymer_enable_property_access_logging")};
uc=function(N){if(_.h("polymer_property_access_logging_debug"))return!0;if(!_.h("polymer_enable_property_access_logging"))return!1;XI4||(XI4=Date.now());return(xL(N)+XI4)%100<_.uP("polymer_property_access_logging_percent")};
xl9=function(N,t){return uc(t)&&N.hostElement.loggingStatus?new Proxy(N,{get:function(O,H,A){if(O.hostElement.loggingStatus.bypassProxyController)return O[H];O.hostElement.loggingStatus.isExternalGet=!0;var Z=O[H];O.hostElement.loggingStatus.isExternalGet=!1;if(Z instanceof Function)return function(){var U=_.E1.apply(0,arguments);try{return O.hostElement.loggingStatus.currentExternalCall=H,hn(t,H,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),Z.apply(this===A?O:this,U)}finally{O.hostElement.loggingStatus.currentExternalCall=
void 0}};
hn(t,H,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return Z},
set:function(O,H,A){if(O.hostElement.loggingStatus.bypassProxyController)return O[H]=A,!0;O.hostElement.loggingStatus.isRendererStamper?hn(t,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):O.hostElement.loggingStatus.isDeclarativeExternal||hn(t,H,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{O.hostElement.loggingStatus.currentExternalSet=H,O[H]=A}finally{O.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):N};
k9g=function(N,t){N&&N.loggingStatus&&!N.loggingStatus.isDeclarativeExternal&&!N.loggingStatus.isExternalGet&&N.loggingStatus.currentExternalSet!==t&&hn(N.tagName.toLowerCase(),t,"PROPERTY_ACCESS_GET_INTERNAL")};
Mf=function(N,t,O){N&&(O||N.loggingStatus&&!N.loggingStatus.isInitializing&&!N.loggingStatus.isDefiningPropertyAccessor&&N.loggingStatus.currentExternalSet!==t)&&hn(N.tagName.toLowerCase(),t,"PROPERTY_ACCESS_SET_INTERNAL")};
quv=function(){return{_definePropertyAccessor:function(N,t){var O=this,H=O.hostElement.loggingStatus;H&&(H.isDefiningPropertyAccessor=!0);var A=O[N];A!==void 0&&(O.__data?O._setPendingProperty(N,A):(O.__dataProto!=null||(O.__dataProto={}),O.__dataProto[N]=A));H&&(H.isDefiningPropertyAccessor=!1);Object.defineProperty(this,N,{get:function(){k9g(O.hostElement,N);return this.__data[N]},
set:function(Z){t||this._setPendingProperty(N,Z,!0)&&this._invalidateProperties()}})},
created:function(){var N=this._setPendingProperty.bind(this);this._setPendingProperty=function(t,O,H){Mf(this.hostElement,t);return N.apply(this,[t,O,H])}}}};
fQO=function(N){Ps9()&&_.Y(bc.prototype)(N.prototype,"__templateBindingLoggingBehavior")};
nup=function(N,t){if(t.resolvedFactories.length!==N.resolvedFactories.length)return!0;t=_.D(t.resolvedFactories.entries());for(var O=t.next();!O.done;O=t.next()){var H=_.D(O.value);O=H.next().value;H=H.next().value;if(H.providerClass){if(H.providerClass!==N.resolvedFactories[O].providerClass)return!0}else if(H.providerValue){if(H.providerValue!==N.resolvedFactories[O].providerValue)return!0}else if(H.factory!==N.resolvedFactories[O].factory)return!0}return!1};
WQp=function(N,t){N=_.D(N);for(var O=N.next();!O.done;O=N.next())if(O=O.value,O.constructor===Array)WQp(O,t);else{var H=t;H.has(O)||(O.inject&&H.add(O),O.behaviors&&WQp(O.behaviors,H))}};
pO=function(N,t){var O=N[t];N[t]=function(){var H=_.E1.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(O)return O.apply(this,H)}};
Qq9=function(){_.LO.Class=function(O,H){O=rfQ(O,H);pO(O.prototype,"created");return O};
pO(zr.prototype,"_initializeProperties");pO(_.Yq.prototype,"_initializeProperties");if(IQp)pO(lQO,"created");else{var N=function(){pO(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))N();else{var t=customElements.define;customElements.define=function(O,H,A){t.call(customElements,O,H,A);O==="tp-yt-iron-list"&&(N(),customElements.define=t)}}}};
EuN=function(N,t){N.prototype.behaviors=N.prototype.behaviors||[];N.prototype.behaviors.unshift(mlz.InjectBehavior);N.prototype.provide=t};
_.wz=function(N){return function(t){if(!N.disableElementRegistration){N.noInjection||EuN(t,N.providers);var O=t.prototype;O.__templateHelpers||Ctv(aH.prototype)(O,"__templateHelpers");O=N.is;G9S||(G9S=Date.now());(xL(O)+G9S)%100<_.uP("polymer_log_prop_change_observer_percent")&&Ctv(Tr.prototype)(t.prototype,"__propertyObserverObserver");t.prototype.behaviors=t.prototype.behaviors||[];t.prototype.behaviors.unshift(_.ROp.YtHostElementBehavior);fQO(t);aQG({is:N.is,notifyObserversOnUndefined:N.notifyObserversOnUndefined!==
!1,fastInit:N.fastInit,template:N.template,disableEnforceFastDefaultValuesCheck:!0})(t)}}};
_.en=function(N){return _.wz({is:N.is,template:N.template,disableElementRegistration:N.disableElementRegistration,cssBuildOptOut:N.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
oux=function(N,t){if(vu9){N=new N;for(var O=_.D(Object.getOwnPropertyNames(N)),H=O.next();!H.done;H=O.next())H=H.value,t[H]=N[H];for(O=t;O&&O!==Object.prototype;O=Object.getPrototypeOf(O)){H=_.D(Object.getOwnPropertyNames(O));for(var A=H.next();!A.done;A=H.next())A=A.value,N.hasOwnProperty(A)||Object.defineProperty(N,A,JfM(t,A))}}else N.apply(t)};
JfM=function(N,t){return{get:function(){var O=N[t];return O instanceof Function?O.bind(N):O},
set:function(O){N[t]=O}}};
NJg=function(N,t){for(var O=N._noAccessors,H=_.D(Object.getOwnPropertyNames(N)),A=H.next();!A.done;A=H.next())if(A=A.value,!sqy.has(A))if(O)t[A]=N[A];else{var Z=Object.getOwnPropertyDescriptor(N,A);Z&&(Z.configurable=!0,Object.defineProperty(t,A,Z))}};
tAl=function(N,t,O){return function(H){if(O){var A=O();H.model=A}if(N[t])N[t](H,H.detail)}};
P2=function(N){var t=[];if(typeof N==="string")N.length>0&&t.push.apply(t,_.W6(N.split(".")));else{N=_.D(N);for(var O=N.next();!O.done;O=N.next())O=O.value,typeof O==="string"?t.push.apply(t,_.W6(O.split("."))):t.push(O)}return t};
Osg=function(N,t){if(t[t.length-1]!=="*"&&t[t.length-1]!=="splices"){for(var O=0;O<t.length;O++){if(!N)return;N=N[t[O]]}return N}};
HsO=function(N,t){if(N.length>t.length)return!1;for(var O=0;O<N.length;O++)if(N[O]!==t[O])return!1;return!0};
Zst=function(N,t,O){if(t.type==="compute"){var H=t.getter.bind(O);var A=t.args}else H=function(){return O[t.method.methodName].apply(O,_.W6(_.E1.apply(0,arguments)))},A=t.method.args;
ANl(N,t.propertyKey,H,A,t.value)};
DNp=function(N,t){if(t.readOnly){var O=Object.getOwnPropertyDescriptor(N.model,t.propertyKey);Object.defineProperty(N.model,t.propertyKey,{get:O.get,set:function(){}});
N.model[VAG(t.propertyKey)]=O.set}};
UNO=function(N,t,O){if(O){var H=t.propertyKey,A=t.selector;t=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.W6(t.selectorArgs.map(function(Z){return{type:"path",path:Z}})));
ANl(N,H,function(Z){var U=_.E1.apply(1,arguments);return A.apply(null,[O.getState()].concat(_.W6(U)))},t)}};
K_x=function(N,t,O){var H=_.Cv(t.propertyKey)+"-changed";Cy4(N,function(A){var Z={value:A.value,queueProperty:!0};A.path.split(".").length>1&&(Z.path=A.path);O.dispatchEvent(new CustomEvent(H,{detail:Z}))},[{type:"wildcard",
path:t.propertyKey}])};
F_y=function(N,t,O){Cy4(N,function(){O[t.method.methodName].apply(O,_.W6(_.E1.apply(0,arguments)))},t.method.args)};
VAG=function(N){return"_set"+(N.charAt(0).toUpperCase()+N.slice(1))};
dNO=function(){var N,t=l$(function(O){N=O},!1);
return[N,t]};
$Nv=function(N){N=N.trim().replace(gAz,",").replace(yNy,"$1");var t=N[0];t==="-"&&(t=N[1]);if(t>="0"&&t<="9")return{type:"literal",value:Number(N)};if(t==="'"||t==='"')return{type:"literal",value:N.slice(1,-1)};if(t=N.match(BJN)){t=t[1];var O=cNM[t];if(O)return{type:O,path:N.slice(0,-(t.length+1))}}return{type:"path",path:N}};
SJ4=function(N){var t=N.match(jS4);if(t)return N={methodName:t[1],args:is4},t[2].trim()&&(t=t[2].replace(uH9,"&comma;").split(","),N.args=t.map($Nv)),N};
hdp=function(N,t,O,H){H=H===void 0?!1:H;t=_.Cv(t);var A=q1;A&&(O=A(O,t,"attribute",N));Xb(N,O,t,H)};
Xb=function(N,t,O,H){t=MA9(t,H===void 0?!1:H);t===void 0?N.removeAttribute(O):N.setAttribute(O,t)};
MA9=function(N,t){switch(typeof N){case "object":case "function":if(N instanceof Date)return N.toString();if(N){if((t===void 0?0:t)&&!_.h("polymer_reflect_objects_as_boolean_killswitch"))return N?"":void 0;t=window.trustedTypes?window.trustedTypes.isHTML(N)||window.trustedTypes.isScript(N)||window.trustedTypes.isScriptURL(N):void 0;if(t)return N;try{return JSON.stringify(N)}catch(O){_.J_(Error("Dg`"+N))}}break;case "boolean":return N?"":void 0;default:return N!==null&&N!==void 0?N.toString():void 0}};
bsN=function(N){if(N===void 0)throw Error("Eg");return N};
a1y=function(N,t,O,H){var A=pkO(H);if(A.length){H=O;var Z="property";L_z.test(O)?Z="attribute":O[O.length-1]==="$"&&(O=O.slice(0,-1),Z="attribute");var U=zdy(A);U&&Z==="attribute"&&(O==="class"&&N.hasAttribute("class")&&(U+=" "+N.getAttribute(O)),Xb(N,U,O));Z==="attribute"&&H==="disable-upgrade$"&&N.setAttribute("disable-upgrade","");N.localName==="input"&&H==="value"&&N.setAttribute("value","");N.removeAttribute(H);Z==="property"&&(O=_.Kv(O));t=bsN(t);YJM(t,Z,O,A);return!0}return O.slice(0,3)===
"on-"?(N.removeAttribute(O),(Z=t).events!=null||(Z.events=[]),t.events.push({name:O.slice(3),value:H}),!0):O==="id"?(t.id=H,!0):!1};
pkO=function(N){for(var t=[],O=0,H;(H=TJM.exec(N))!==null;){H.index>O&&t.push({type:"literal",value:N.slice(O,H.index)});var A=H[1][0];O=!!H[2];H=H[3].trim();if(A==="{")throw Error("Fg");(A=SJ4(H))?t.push({type:"method",negate:O,signature:A}):t.push({type:"path",negate:O,path:H});O=TJM.lastIndex}O&&O<N.length&&(N=N.substring(O))&&t.push({type:"literal",value:N});return t};
zdy=function(N){for(var t="",O=0;O<N.length;O++){var H=N[O];H.type==="literal"&&(t+=H.value)}return t};
YJM=function(N,t,O,H){N.bindings!=null||(N.bindings=[]);N.bindings.push({kind:t,target:O,parts:H})};
xNN=function(N,t,O){var H=!1;if(N.localName==="template"){H=O;var A=t.stripWhitespace;A=wkN(N,A===void 0?!1:A);var Z=N.content.ownerDocument.createDocumentFragment();A.content=Z;Z.appendChild(N.content);H&&(H.templateInfo=A);H=!0}else N.localName==="slot"&&(t.hasInsertionPoint=!0);if(N.firstChild&&(A=O,N.localName!=="script"&&N.localName!=="style")){Z=0;for(var U=N.firstChild;U;){var C=U;if(C.localName==="template"){var F=C.getAttribute("is");if((U=F==="dom-if")||F==="dom-repeat"){C.removeAttribute("is");
F=C.ownerDocument.createElement("ps-"+F);C.parentNode.replaceChild(F,C);F.appendChild(C);var g=Array.from(C.attributes);g=_.D(g);for(var B=g.next();!B.done;B=g.next())B=B.value,U?edG.has(B.name)&&Xb(F,B.value,B.name):Pyl.has(B.name)?Xb(F,B.value,B.name):XkM.has(B.name),C.removeAttribute(B.name);U=F}else U=C}if(U.nodeType===Node.TEXT_NODE){C=void 0;F=N;for(g=U;((C=g.nextSibling)==null?void 0:C.nodeType)===Node.TEXT_NODE;)B=void 0,(B=g).textContent!=null||(B.textContent=""),g.nextSibling.textContent&&
(g.textContent+=g.nextSibling.textContent),F.removeChild(g.nextSibling);if(t.stripWhitespace&&U.textContent&&!U.textContent.trim()){N.removeChild(U);U=U.nextSibling;continue}}xNN(U,t,{parentIndex:Z,parentInfo:A});U.parentNode&&Z++;U=U.nextSibling}}var c;if((c=N.hasAttributes)==null?0:c.call(N)){c=O=bsN(O);A=!1;Z=Array.from(N.attributes);Z=_.D(Z);for(C=Z.next();!C.done;C=Z.next())C=C.value,A=a1y(N,c,C.name,C.value)||A;H=A||H}N.nodeType===Node.TEXT_NODE&&(c=pkO(N.textContent),c.length&&(N.textContent=
zdy(c)||" ",O=bsN(O),YJM(O,"text","textContent",c),H=!0));O&&H&&(O.infoIndex=t.nodeInfoList.push(O)-1)};
wkN=function(N,t){t={nodeInfoList:[],stripWhitespace:(t===void 0?!1:t)||N.hasAttribute("strip-whitespace")};xNN(N.content,t);return t};
kAt=function(N){Object.assign(N,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
f1G=function(N,t,O){t.signalCache!=null||(t.signalCache={});var H=t.signalCache[O];if(!H){var A=O.split(".");H=!qJx(N,A[0]);if(A.length>1&&H){var Z=N.getPathMutationSignal(A);H=function(){var U=mP(N.owner,function(){return N.getWithPath([A[0]])}),C,F=(C=Z())==null?void 0:C.value;
return{rootWasDefined:U!==void 0,value:F}}}else H=function(){var U=N.getWithPath(A);
return{rootWasDefined:U!==void 0,value:U}};
t.signalCache[O]=H}return H()};
W_l=function(N,t,O,H,A){t=t.parts.map(function(U,C){if(U.type==="literal"){O.partWasDefined!=null||(O.partWasDefined=[]);var F;(F=O.partWasDefined)[C]||(F[C]=U.value!==void 0);return U.value}var g;if(U.type==="method"){var B,c=(B=(g=O.partWasDefined)==null?void 0:g[C])!=null?B:!1;c||(c=U.signature.args.every(function(b){return b.type==="literal"}));
var u=!1,S=!0;g=U.signature.args.map(function(b){if(b.type==="literal")return b.value;if(b.type!=="path")throw Error("Gg`"+b.type);var z=f1G(N,O,b.path);b=z.value;z=z.rootWasDefined;u||(u=z);S&&(S=z);return b});
c||(c=A===1?S:u);O.partWasDefined!=null||(O.partWasDefined={});O.partWasDefined[C]=c;if(!c)return;g=(C=f1G(N,O,U.signature.methodName).value)&&typeof C==="function"?C.apply(H,g):void 0}else B=f1G(N,O,U.path),g=B.value,O.partWasDefined!=null||(O.partWasDefined={}),(c=O.partWasDefined)[C]||(c[C]=g!==void 0||B.rootWasDefined);U.negate&&(g=!g);return g});
if(t.length===1){var Z;return((Z=O.partWasDefined)==null?0:Z[0])?t[0]:nAQ}return t.join("")};
rNQ=function(N){return typeof N==="object"&&!!N&&"notifyPath"in N&&"canNotifyPath"in N};
I1g=function(N){return typeof N==="object"&&!!N&&"notifyPath"in N};
l1x=function(N){return"polymerController"in N};
QSQ=function(N,t){t=""+P2(t)[0];if(rNQ(N))return N.canNotifyPath(t);if(l1x(N)&&rNQ(N.polymerController))return N.polymerController.canNotifyPath(t);if(I1g(N)){var O;return!((O=N.properties)==null||!O[t])}if(l1x(N)&&I1g(N.polymerController)){var H;return!((H=N.polymerController.properties)==null||!H[t])}return!1};
mNt=function(N,t,O){rNQ(N)||I1g(N)?N.notifyPath(t,O):l1x(N)&&(rNQ(N.polymerController)||I1g(N.polymerController))&&N.polymerController.notifyPath(t,O)};
GAG=function(N,t,O){if(O!==nAQ){N.kind==="attribute"||N.target!=="textContent"&&(N.target!=="value"||t.localName!=="input"&&t.localName!=="textarea")||(O=O===void 0?"":O);var H,A=(H=EAl.Polymer)==null?void 0:H.sanitizeDOMValue;A&&(O=A(O,N.target,N.kind,t));if(N.kind==="attribute"){N=N.target;if(N==="class"||N==="name"||N==="slot")t=(0,_.U6)(t);Xb(t,O,N)}else if(N=N.target,O!==t[N]||typeof O==="object")t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!0,hn(t.localName,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
t[N]=O,t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!1)}};
RdM=function(N,t,O,H){var A=t.parts[0];if(t.parts.length!==1||A.type!=="path"||!QSQ(O,t.target))return!1;var Z=_.D(A.path.split(".")),U=Z.next().value,C=Vo(Z);if(qJx(N,U))return!1;H.signalCache!=null||(H.signalCache={});Z=H.signalCache[A.path];var F;Z=(F=Z)==null?void 0:F().value;if((Z==null?void 0:Z.path)!==void 0){H=P2(Z.path);var g=P2(A.path);H=[t.target].concat(_.W6(H.slice(g.length-1)));mNt(O,H,A.negate?!Z.value:Z.value);return!0}var B=xq(N,U);var c=B.getChangeRecordSignal(C),u=!1;Z=function(){if(!u){var b=
mP(N.owner,function(){return B.getWithPath([])});
u||(u=b!==void 0)}return{value:c(),rootWasDefined:u}};
H.signalCache[A.path]=Z;H.partWasDefined!=null||(H.partWasDefined={});Z=Z();(g=H.partWasDefined)[0]||(g[0]=Z.rootWasDefined);var S=mP(N.owner,function(){return B.getWithPath(C)});
H.partWasDefined[0]&&mP(N.owner,function(){return void GAG(t,O,A.negate?!S:S)});
return!0};
vAv=function(N,t,O,H,A,Z){if(!RdM(N,t,O,H)){var U=W_l(N,t,H,A,Z);mP(N.owner,function(){return void GAG(t,O,U)})}};
JNQ=function(N,t,O,H,A,Z){O=_.D(O);for(var U=O.next(),C={};!U.done;C={infoIndex:void 0},U=O.next()){U=U.value;var F=U.bindings;C.infoIndex=U.infoIndex;U=U.parentInfo;if(F){F=_.D(F);for(var g=F.next(),B={};!g.done;B={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},g=F.next()){B.b$jscomp$257=g.value;if(C.infoIndex===void 0)throw Error("Hg");B.bindingCtx$jscomp$4={};N.effect(function(c,u){return function(){A&&!A()||vAv(N,c.b$jscomp$257,t[u.infoIndex],c.bindingCtx$jscomp$4,H,Z)}}(B,C))}}U&&JNQ(N,t,[U],
H,A,Z)}};
oAN=function(N,t){N=(t.parentInfo?oAN(N,t.parentInfo):N).firstChild;for(var O=0;N;N=N.nextSibling)if(t.parentIndex===O++)return N;throw Error("Ig");};
N7G=function(N,t,O,H){N=document.importNode(N.content,!0);N.__noInsertionPoint=!(H==null?0:H.hasInsertionPoint);for(var A=Array(t.length),Z={},U=0;U<t.length;U++){var C=t[U],F=oAN(N,C);A[U]=F;C.id&&(Z[C.id]=F);if(C.templateInfo){var g=F.parentElement;g&&(g.templateInfo=C.templateInfo,g.parentSignalProxy=O,g.eventListenerHost=H.eventListenerHost,g.stampingEnabled=H.enabledSignal)}g=void 0;if((g=C.events)==null?0:g.length)for(g=0;g<C.events.length;g++){var B=C.events[g];sSS(H.eventListenerHost,F,B.name,
B.value,H.getModel)}}JNQ(O,A,t,H.thisCtx,H.enabledSignal,H.methodInvocationRequirement);return{root:N,nodes:A,nodesById:Z}};
Ojg=function(N,t){N=N();var O;(O=tZ9.ShadyCSS)==null||O.prepareTemplate(N,t);t=wkN(N);return{template:N,nodeInfoList:t.nodeInfoList,hasInsertionPoint:t.hasInsertionPoint}};
ZjO=function(){Hjg=!1;for(var N=kq.length,t=0;t<N;t++){var O=kq[t];if(O)try{O()}catch(H){Promise.resolve().then(function(){throw H;})}}kq.splice(0,N);
A9G+=N};
Cmz=function(N){Hjg||(Hjg=!0,VZg.textContent=(DXx++).toString());kq.push(N);return UX4++};
_.nO=function(N,t,O){qf++;N=t?new Kiv(qf,N,t,O):new Fiv(qf,N);fO.set(qf,N);return qf};
dX9=function(N){(N=fO.get(N))&&N.cancel()};
y9N=function(N,t){N=g4v.get(N);return N?(t=N.get(t))?t:null:null};
_.W2=function(N,t,O,H){var A=y9N(N,t);if(!A){A=new B7M;var Z=g4v.get(N);Z||(Z=new Map,g4v.set(N,Z));Z.set(t,A)}N=O.bind(N);A.run(N,H,void 0)};
_.c99=function(N,t){var O;(O=y9N(N,t))==null||O.cancel()};
$Xp=function(N){var t;(t=y9N(N,"doRender"))==null||t.flush()};
rz=function(N){var t;return(t=N.hostElement)!=null?t:N};
jF9=function(N){var t=N.indexOf(".");return t===-1?N:N.slice(0,t)};
ijl=function(N,t,O,H,A,Z){Z=(A=(H=Z?jF9(t):t)?t:null)?N.get(A):N.__data[t];A&&Z===void 0&&(Z=O[t]);_.or(N.hostElement,mjN(H)+"-changed",{value:Z,queueProperty:!0,path:A!=null?A:void 0},{bubbles:!1,composed:!1})};
uv9=function(N,t){N.__isReflecting=!0;hdp(N.hostElement,t,N.__data[t]);N.__isReflecting=!1};
SRN=function(N){if(N._onIronRequestResizeNotifications){var t=N._onIronRequestResizeNotifications.bind(N);N._onIronRequestResizeNotifications=function(O){_.E3(O)!==N.hostElement&&t(O)}}N._ariaActiveAttributeChanged&&(N._ariaActiveAttributeChanged=N._ariaActiveAttributeChanged.bind(N.hostElement));
N._activeChanged&&(N._activeChanged=function(O){N.toggles?Xb(N.hostElement,O?"true":"false",N.ariaActiveAttribute):N.hostElement.removeAttribute(N.ariaActiveAttribute);N._changedButtonState()});
N._asyncClick&&(N._asyncClick=function(){_.nO(function(){N.hostElement.click()},1)});
!N.keyEventTarget||N.keyEventTarget instanceof EventTarget||(N.keyEventTarget=rz(N.keyEventTarget));N._disabledChanged&&(N._disabledChanged=N._disabledChanged.bind(N.hostElement));N._observeItems&&(N._observeItems=function(O){var H=rz(O);return _.$L(H).observeNodes(function(A){N._updateItems();N._updateSelected();_.or(H,"iron-items-changed",A,{bubbles:!1,cancelable:!1})})});
N._updateItems&&N._updateItems===_.IH._updateItems&&(N._updateItems=function(){var O=_.$L(N.hostElement).queryDistributedElements(N.selectable||"*");O=Array.prototype.filter.call(O,N._bindFilterItem);N._setItems(O)});
N._computeKeyboardClass&&(N._computeKeyboardClass=function(O){_.VQ(N.hostElement,"keyboard-focus",O)});
N.ensureRipple&&(N.ensureRipple=function(O){if(N.hasRipple&&!N.hasRipple()){if(!N._createRipple)return;N._ripple=N._createRipple();N._ripple.noink=N.noink;var H=N._rippleContainer||N.hostElement;H&&_.O6(H).appendChild(N._ripple)}var A;if(O&&((A=N._ripple)==null?0:A.uiDownAction)){H=_.O6(N._rippleContainer||N.hostElement);var Z;A=(Z=O.composedPath())==null?void 0:Z[0];H.contains(A)&&N._ripple.uiDownAction(O)}});
N._updateMultiselectable&&(N._updateMultiselectable=function(O){O?N.hostElement.setAttribute("aria-multiselectable","true"):N.hostElement.removeAttribute("aria-multiselectable")})};
hqO=function(N,t,O){O=_.D(O);for(var H=O.next();!H.done;H=O.next())oux(H.value.constructor,N);oux(t.constructor,N)};
bjt=function(N,t){N=_.D(N);for(var O=N.next();!O.done;O=N.next())if(O=O.value,O.type==="signal"){var H=O.propertyKey;if(t.hasOwnProperty(H)&&t[H]!=null&&O.attributeType===Object){a:{H=t[H].constructor;for(var A=_.D(MZp),Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,H===Z){H=Z;break a}H=Object}O.attributeType=H}}};
phN=function(){};
Liy=function(N){var t;return(t=N.hostElement)!=null?t:N};
zqS=function(){throw Error("Mg");};
YRS=function(N,t){N.constructor.prototype.useSignals=!0;var O=new N.constructor;hqO(O,N,t.behaviors);bjt(t.reactiveSchemas,O);O={};for(var H=_.D(t.reactiveSchemas),A=H.next();!A.done;A=H.next())A=A.value,A.type==="signal"&&(O[A.propertyKey]=A.attributeType);var Z={copyPropertiesToProto:zqS,didRegister:!1,typesForSignals:O},U=["disable-upgrade"].concat(_.W6(t.observedAttributes)),C=function(F){lc.call(this,N,t,Z,F)};
_.p(C,lc);_.cv.Object.defineProperties(C,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return U}}});
Z.copyPropertiesToProto=function(){for(var F=0;F<t.behaviors.length;F++)NJg(t.behaviors[F],C.prototype);NJg(N,C.prototype)};
t.legacyOptimizations||Z.copyPropertiesToProto();C.prototype.is=N.is;return C};
akt=function(N,t){if(Object.getPrototypeOf(t.prototype).constructor!==_.k)throw Error("Ng");t.prototype.is=N.is;return YRS(t.prototype,N)};
T7M=function(N){return N.type==="compute"||N.type==="computeWithMethod"};
why=function(N){for(var t=N.reactiveSchemas.filter(T7M),O=new Map,H=new Map,A=new Map,Z=_.D(t),U=Z.next();!U.done;U=Z.next())U=U.value,O.set(U.propertyKey,U),H.set(U.propertyKey,[]),A.set(U.propertyKey,0);Z=0;t=_.D(t);for(U=t.next();!U.done;U=t.next()){U=U.value;for(var C=_.D(U.type==="computeWithMethod"?U.method.args:U.args),F=C.next();!F.done;F=C.next())F=F.value,F.type!=="literal"&&(F=F.path.split(".")[0],H.has(F)&&(H.get(F).push(U.propertyKey),A.set(U.propertyKey,A.get(U.propertyKey)+1),Z++))}U=
[].concat(_.W6(H.keys())).filter(function(g){return A.get(g)===0});
for(t=[];U.length;)for(C=U.shift(),t.push(O.get(C)),C=_.D(H.get(C)),F=C.next();!F.done;F=C.next())F=F.value,A.set(F,A.get(F)-1),Z--,A.get(F)===0&&U.push(F);O=N.reactiveSchemas.filter(function(g){return!T7M(g)});
N.reactiveSchemas=[].concat(_.W6(O),_.W6(t))};
eqp=function(N,t){if(t.properties)for(var O=_.D(Object.entries(t.properties)),H=O.next();!H.done;H=O.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;N.properties[H]=typeof A==="function"?{type:A}:A}t.observers&&N.observers.push.apply(N.observers,_.W6(t.observers));t.disabledPolySiReactions&&N.disabledPolySiReactions.push.apply(N.disabledPolySiReactions,_.W6(t.disabledPolySiReactions))};
Pmy=function(N,t){for(var O=t.length-1;O>=0;O--){var H=t[O];Array.isArray(H)?Pmy(N,H):N.indexOf(H)<0&&N.unshift(H)}};
XhG=function(N,t){N.reactiveSchemas=N.reactiveSchemas.filter(function(O){return O.type==="observe"&&t.includes(O.method.methodName)||T7M(O)&&t.includes(O.propertyKey)?!1:!0})};
kX4=function(N,t){var O=t.prototype,H,A,Z={is:N.is,reactiveSchemas:[],observedAttributes:[],behaviors:[mlz.InjectBehavior,aH.prototype],disableElementRegistration:N.disableElementRegistration,provide:(H=N.providers)!=null?H:[],reactivityMode:N.reactivityMode,signalProperties:(A=O.signalProperties)!=null?A:[]};"template"in t?Z.templateGetter=function(){return t.template}:N.getTemplate&&(Z.templateGetter=N.getTemplate);
O.behaviors&&Pmy(Z.behaviors,O.behaviors);xXl(Z,t);return Z};
xXl=function(N,t){for(var O=t.prototype,H={properties:{},observers:[],disabledPolySiReactions:[]},A=_.D(N.behaviors),Z=A.next();!Z.done;Z=A.next())eqp(H,Z.value);eqp(H,O);if(N.signalProperties)for(O=_.D(N.signalProperties),A=O.next();!A.done;A=O.next())delete H.properties[A.value];O=_.D(Object.entries(H.properties));for(A=O.next();!A.done;A=O.next()){Z=_.D(A.value);A=Z.next().value;Z=Z.next().value;var U=void 0;if((U=N.signalProperties)==null||!U.includes(A)){U=void 0;var C=N,F=Z.type;if(!F)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{F=Reflect.getMetadata("design:type",t,A);for(var g=_.D(qRt),B=g.next();!B.done;B=g.next())if(B=B.value,F===B){F=B;break a}F=Object}else F=String;Z.computed||Z.selector||(C.reactiveSchemas.push({type:"signal",propertyKey:A,value:Z.value,attributeType:F,readOnly:Z.readOnly}),C.observedAttributes.push(_.Cv(A)));Z.reflectToAttribute&&C.reactiveSchemas.push({type:"reflect",propertyKey:A});if(Z.computed){F=SJ4(Z.computed);if(!F)throw Error("Og");C.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:A,method:F,value:Z.value})}Z.observer&&C.reactiveSchemas.push({type:"observe",method:{methodName:Z.observer,args:[{type:"path",path:A}]}});Z.notify&&C.reactiveSchemas.push({type:"notify",propertyKey:A});Z.selector&&C.reactiveSchemas.push({type:"redux",propertyKey:A,selector:Z.selector,selectorArgs:(U=Z.selectorArgs)!=null?U:[]})}}fkS&&why(N);t=_.D(H.observers);for(A=t.next();!A.done;A=t.next())O=N,A=A.value,(Z=SJ4(A))?O.reactiveSchemas.push({type:"observe",method:Z}):console.log('Warning: unable to parse observe declaration: "'+
A+'"');XhG(N,H.disabledPolySiReactions)};
n4N=function(N,t){for(var O=0;O<t.length;O++){var H=t[O],A=void 0;(A=H).showHideApi!=null||(A.showHideApi={});A=void 0;!!N!==!((A=H.showHideApi)==null||!A.hideTemplateChildren)&&(H.nodeType===Node.TEXT_NODE?N?(H.showHideApi.polymerTextContent=H.textContent,H.textContent=""):(A=void 0,H.textContent=(A=H.showHideApi.polymerTextContent)!=null?A:null):H instanceof Element&&H.localName==="slot"?N?(H.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.U6)((0,_.U6)(H).parentNode).replaceChild(H.showHideApi.polymerReplaced,
H)):(A=H.showHideApi.polymerReplaced)&&(0,_.U6)((0,_.U6)(A).parentNode).replaceChild(H,A):H instanceof HTMLElement&&H.style&&(N?(H.showHideApi.polymerDisplay=H.style.display,H.style.display="none"):H.style.display=H.showHideApi.polymerDisplay));H.showHideApi.hideTemplateChildren=N;H.showHideChildren&&H.showHideChildren(N)}};
r9G=function(){if(!Wi4){var N=document.createElement("style");N.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(N);Wi4=!0}};
QQ=function(){return _.h("disable_hidden_dom_if_using_stamper")};
Ikx=function(N,t){var O=_.mN().getState();return t?N.apply(null,[O].concat(_.W6(t))):N(O)};
mXM=function(){if(lkx)return lkx;var N=_.D(_.b$(0,void 0,"MB1Hb")),t=N.next().value;N.next();var O=N.next().value;_.mN().subscribe(function(){QFS(O)});
return lkx=t};
QFS=function(N){E4M||(E4M=!0,Promise.resolve().then(function(){N(function(t){return t+1});
E4M=!1}))};
_.mN=function(){return GXy.getAppStore()};
Rqx=function(N,t){return GXy.getSelectFn()(N,t)};
_.E6=function(N){GXy.getDispatchFn()(N)};
v4Q=function(N,t){var O={},H;for(H in N)O[H]=t(N[H],H);return O};
_.Gr=function(N,t){return function(){var O;return(O=_.Qo(N))!=null?O:t}};
_.RH=function(N,t){var O=Object.assign({},N),H;for(H in t)t.hasOwnProperty(H)&&(O[H]=_.Gr(N[H],t[H]));return O};
J9M=function(N,t,O){N instanceof Element&&(O.debugName||(O.debugName="<"+N.tagName.toLowerCase()+(N.tagName.includes("-")?">":"."+N.className+">")),_.h("ytwiz_enable_debug_component_props")&&(N.debugProps||(N.debugProps=v4Q(t,function(H){return function(){return H()}}))))};
_.q=function(N,t){var O=function(H){return RX("ytComponent",{},function(A){var Z=o4G={};var U;if(((U=O)==null?0:U.idomCompat)&&H.renderedFromIdom){var C;U=typeof O.idomCompat==="object"?(C=O)==null?void 0:C.idomCompat.callbacks:{};U=_.D(sF9(H,U));C=U.next().value;U.next();U=U.next().value;var F=NxQ(N,C);Z.privateValue=F;o4G=void 0;J9M(F,C,O);A.addAttributes({debugName:O.debugName});A=yvG(F);A=Array.isArray(A)?A[0]:A;A[LL]||(A[LL]={});A[LL].updateSignalsFromIdomProps=U;tw9(C,F);return F}U=v4Q(H,Out);
C=NxQ(N,U);Z.privateValue=C;o4G=void 0;J9M(C,U,O);A.addAttributes({debugName:O.debugName});tw9(U,C);return C})};
O.debugName=t===void 0?"":t;return O};
NxQ=function(N,t){N=N(t);return wu(N)};
HuM=function(N,t){N[t]||(N=new _.fF("IDOM interop setter undefined. Key:",t),_.R0(N))};
Out=function(N,t){return t==="children"||t==="ref"||typeof N==="function"||N===void 0?N:function(){return _.Qo(N)}};
sF9=function(N,t){var O={},H={},A={},Z={},U;for(U in N){Z={key$jscomp$952:Z.key$jscomp$952};Z.key$jscomp$952=U;var C=N[Z.key$jscomp$952];if(Z.key$jscomp$952==="children"||Z.key$jscomp$952==="ref")O[Z.key$jscomp$952]=C;else if(typeof C==="function")Z.key$jscomp$952 in t||C.length>0?(A[Z.key$jscomp$952]=C,O[Z.key$jscomp$952]=function(g){return function(){return A[g.key$jscomp$952].apply(A,_.W6(_.E1.apply(0,arguments)))}}(Z)):O[Z.key$jscomp$952]=C;
else if(!(N[Z.key$jscomp$952]===void 0&&Z.key$jscomp$952 in t)){var F=_.D(_.b$(N[Z.key$jscomp$952],{debugName:Z.key$jscomp$952+":cwis"},"Xpwvze"));C=F.next().value;F=F.next().value;O[Z.key$jscomp$952]=C;H[Z.key$jscomp$952]=F}}return[O,H,function(g){var B={},c;for(c in g)B={key$jscomp$951:B.key$jscomp$951,val$jscomp$122:void 0},B.key$jscomp$951=c,B.val$jscomp$122=g[B.key$jscomp$951],B.key$jscomp$951!=="children"&&B.key$jscomp$951!=="ref"&&(typeof B.val$jscomp$122==="function"?B.key$jscomp$951 in t?
A[B.key$jscomp$951]=B.val$jscomp$122:B.val$jscomp$122.length>0&&(A[B.key$jscomp$951]=B.val$jscomp$122,_.J_(new _.fF("Callback detected that was not set in the idomCompat callbacks map. Key:",B.key$jscomp$951))):B.key$jscomp$951 in t&&B.val$jscomp$122===void 0||(HuM(H,B.key$jscomp$951),Tg(function(u){return function(){H[u.key$jscomp$951](u.val$jscomp$122)}}(B))))}]};
Vw9=function(N,t,O){var H=Jwz(N.prototype,A1p,N.prototype.behaviors);H.prototype.is=t;H.prototype.localName=t;O&&ZuN(H,O);return function(A){A&&(H.prototype.hostElement=A);var Z=new H;Z.root=Z;Z.hostElement=A;return Z}};
ZuN=function(N,t){var O;Object.defineProperty(N.prototype,"_template",{get:function(){O===void 0&&(O=t());return O},
set:function(H){O=H},
configurable:!0,enumerable:!0})};
FHS=function(N,t,O,H){function A(){if(!S){for(var b=new Set,z=_.D(B),w=z.next();!w.done;w=z.next()){w=w.value;for(var P=_.D(Object.getOwnPropertyNames(w)),x=P.next();!x.done;x=P.next()){x=x.value;var l=void 0,I=(l=Object.getOwnPropertyDescriptor(w,x))==null?void 0:l.value;I&&I instanceof Function&&!v2(x)&&(!C[x]||_.h("polymer_forward_method_killswitch"))&&b.add(x)}}z=_.D(Object.entries(Object.getOwnPropertyDescriptors(N.prototype)));for(w=z.next();!w.done;w=z.next())P=_.D(w.value),w=P.next().value,
P=P.next().value,P.value instanceof Function&&!v2(w)&&b.add(w);S=b}return S}
DAp(N,t,H==null?void 0:H.providers);oDM(N.prototype,N,!0);var Z=Vw9(N,t,O),U,C=(U=N.prototype.properties)!=null?U:{},F,g,B=(g=(F=N.prototype.behaviors)==null?void 0:F.flat(Infinity))!=null?g:[];O=_.D(B);for(U=O.next();!U.done;U=O.next())C=Object.assign({},U.value.properties,C);var c=[].concat(_.W6(UAO),_.W6(Object.keys(C).map(function(b){return _.Cv(b)}))),u=!1,S;
return{ctor:function(b,z){var w=Z(b),P,x;b=[].concat(_.W6((P=H==null?void 0:H.allowedProps)!=null?P:[]),_.W6((x=H==null?void 0:H.allowedPropsFromBehaviors)!=null?x:[]));w.allowedProps=b.length>0?b:void 0;P={};x=_.D(c);for(b=x.next();!b.done;b=x.next())b=b.value,P[b]=_.Kv(b);w.__dataAttributes=P;var l=w.ready.bind(w);w.ready=function(){z.beforeReady();l();if(uc(t)&&!u){var I=w.__templateInfo;if(I==null?0:I.hostProps){I=_.D(Object.keys(I.hostProps));for(var r=I.next();!r.done;r=I.next())hn(t,r.value,
"PROPERTY_ACCESS_GET_INTERNAL")}u=!0}};
w._overrideLegacyUndefined=!0;return w},
props:C,observedAttributes:c,getInitialMethods:A,getPropsToForwardBeforeRegister:function(){for(var b=[],z=new Set,w=_.D(Object.keys(C)),P=w.next();!P.done;P=w.next())P=P.value,b.push([P,C[P].readOnly]),z.add(P);w=A();P=_.D(Object.keys(Object.getOwnPropertyDescriptors(N.prototype)));for(var x=P.next();!x.done;x=P.next())x=x.value,!CYg(x)||w.has(x)||z.has(x)||(b.push([x,!1]),z.add(x));z=_.D(KHG);for(w=z.next();!w.done;w=z.next())b.push([w.value,!0]);return b},
getPropsToForwardBeforeReady:function(b){for(var z=[],w=_.D(Object.entries(b)),P=w.next();!P.done;P=w.next()){var x=_.D(P.value);P=x.next().value;x=x.next().value;if(CYg(P)&&!(x instanceof Function)&&(z.push([P,!1]),uc(t))){var l=x=void 0;(l=(x=b)._createPropertyAccessor)==null||l.call(x,P)}}return z},
shouldForwardProp:CYg,shouldLog:uc}};
DAp=function(N,t,O){EuN(N,O);N.prototype.behaviors.unshift(dAO);if(Ps9()){if(uc(t)){var H;(H=N.prototype).behaviors!=null||(H.behaviors=[]);N.prototype.behaviors.unshift(quv())}fQO(N)}_.Y(aH.prototype)(N.prototype,"__templateHelpers")};
v2=function(N){return gPQ.has(N)||N.startsWith("__compute__")};
CYg=function(N){return!v2(N)&&!N.startsWith("_")&&!N.endsWith("_")};
j6Q=function(N,t){function O(){var u=F();u=_.D(u);for(var S=u.next();!S.done;S=u.next()){var b=_.D(S.value);S=b.next().value;b=b.next().value;y1O(c.prototype,S,b)}H=!0}
var H=!1,A=N.ctor,Z=N.getInitialMethods,U=N.observedAttributes,C=N.getPropsToForwardBeforeReady,F=N.getPropsToForwardBeforeRegister,g=N.shouldForwardProp,B=N.shouldLog,c=function(){var u=HTMLElement.call(this)||this;u.didForwardDynamicProps=!1;u.loggingStatus={};H||O();u.inst=A(u,{beforeReady:function(){u.didForwardDynamicProps||(u.forwardDynamicProps(),u.didForwardDynamicProps=!0)}});
u.controllerProxy=xl9(u.inst,t);u.forwardMethods();return u};
_.p(c,HTMLElement);c.prototype.forwardMethods=function(){for(var u=this,S=_.D(this.inst.getExtraMethodsToForward()),b=S.next(),z={};!b.done;z={method$jscomp$65:void 0},b=S.next()){var w=_.D(b.value);b=w.next().value;w=w.next().value;z.method$jscomp$65=w;this[b]=function(P){return function(){return P.method$jscomp$65.call.apply(P.method$jscomp$65,[u.inst].concat(_.W6(_.E1.apply(0,arguments))))}}(z)}S=_.D(Z());
for(z=S.next();!z.done;z=S.next())z=z.value,g(z)&&Bxy(this,z),B(t)&&!v2(z)&&c1l(this.inst,z)};
c.prototype.forwardDynamicProps=function(){var u=C(this.inst);u=_.D(u);for(var S=u.next();!S.done;S=u.next()){var b=_.D(S.value);S=b.next().value;b=b.next().value;y1O(this,S,b);B(t)&&!v2(S)&&$AN(this.inst,S)}};
c.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
c.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
c.prototype.attributeChangedCallback=function(u,S,b){this.inst.attributeChangedCallbackWrapper(u,S,b)};
_.cv.Object.defineProperties(c.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return t}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.cv.Object.defineProperties(c,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return U}}});
customElements.define(t,c)};
y1O=function(N,t,O){N.hasOwnProperty(t)||Object.defineProperty(N,t,{get:function(){var H,A=((H=N.is)!=null?H:N.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||hn(A,t,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,H=this.polymerController[t],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,H},
set:function(H){if(!O){var A,Z=((A=N.is)!=null?A:N.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||hn(Z,t,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=t,this.loggingStatus.bypassProxyController=!0,this.polymerController[t]!==H&&(A={},this.polymerController.setProperties((A[t]=H,A)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Bxy=function(N,t,O){var H=N.polymerController;N[t]=function(){var A=_.E1.apply(0,arguments);N.loggingStatus.currentExternalCall=t;N.loggingStatus.bypassProxyController=!0;var Z,U=((Z=N.is)!=null?Z:N.tagName).toLowerCase();hn(U,t,"PROPERTY_ACCESS_CALL_EXTERNAL");var C;Z=(C=O!=null?O:H[t])==null?void 0:C.call.apply(C,[H].concat(_.W6(A)));N.loggingStatus.currentExternalCall=void 0;N.loggingStatus.bypassProxyController=!1;return Z}};
c1l=function(N,t){var O=N.hostElement,H=N[t];N[t]=function(){var A=_.E1.apply(0,arguments);if(O.loggingStatus.currentExternalCall!==t){var Z,U=((Z=O.is)!=null?Z:O.tagName).toLowerCase();hn(U,t,"PROPERTY_ACCESS_CALL_INTERNAL")}return H==null?void 0:H.apply(N,A)}};
$AN=function(N,t){var O=Object.getOwnPropertyDescriptor(N,t);O&&!O.get&&Object.defineProperty(N,t,{get:function(){k9g(N.hostElement,t);return O.value},
set:function(H){Mf(N.hostElement,t);O.value=H}})};
iuM=function(N){return _.h("poly_si_dom_repeat_detached_fix_killswitch")||N.tagName!=="PS-DOM-REPEAT"?N.tagName==="DOM-REPEAT":!0};
SDG=function(N,t){var O=uTg(N);N instanceof Element&&O.unshift(N);N=_.D(O.filter(iuM));for(var H=N.next();!H.done;H=N.next()){var A=void 0;H=_.D((A=H.value.__instances)!=null?A:[]);for(A=H.next();!A.done;A=H.next())if(A=A.value,A.root){A=Array.from(A.root.children);A=_.D(A);for(var Z=A.next();!Z.done;Z=A.next())O.push.apply(O,_.W6(SDG(Z.value,t)))}}return O.filter(function(U){return U.usePatchedLifecycles&&U.lifecycleIsConnected===t})};
uTg=function(N){var t=null;N instanceof Element?t=Element.prototype.querySelectorAll:N instanceof DocumentFragment&&(t=DocumentFragment.prototype.querySelectorAll);return t?Array.from(t.call(N,"*")):[]};
Jn=function(N){_.MY(function(){for(var t=_.D(SDG(N,!1)),O=t.next();!O.done;O=t.next()){O=O.value;O.lifecycleIsConnected=!0;try{var H=void 0,A=void 0,Z=void 0,U=void 0;(H=(U=O.polymerController)!=null?U:O)==null||(Z=(A=H).connectedCallback)==null||Z.call(A)}catch(C){_.R0(C)}}})};
oH=function(N){_.MY(function(){for(var t=_.D(SDG(N,!0)),O=t.next();!O.done;O=t.next()){O=O.value;O.lifecycleIsConnected=!1;try{var H=void 0,A=void 0,Z=void 0,U=void 0;(H=(U=O.polymerController)!=null?U:O)==null||(Z=(A=H).disconnectedCallback)==null||Z.call(A)}catch(C){_.R0(C)}}})};
YD4=function(){if(!hsS){hsS=!0;var N=[Node];s6&&N.push(s6.Wrapper);var t=Node.prototype.insertBefore,O=Node.prototype.removeChild;N=_.D(N);for(var H=N.next(),A={};!H.done;A={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},H=N.next())H=H.value,A.nativeInsertBefore=H.prototype.insertBefore,H.prototype.insertBefore=function(U){return function(C,F){if(C instanceof DocumentFragment){var g=Array.from(C.children);C=U.nativeInsertBefore.call(this,C,F);
if(this.isConnected&&U.nativeInsertBefore===t)for(F=_.D(g),g=F.next();!g.done;g=F.next())Jn(g.value);return C}g=C instanceof Element&&C.isConnected;F=U.nativeInsertBefore.call(this,C,F);g&&oH(C);this.isConnected&&Jn(C);return F}}(A),A.nativeAppendChild=H.prototype.appendChild,H.prototype.appendChild=function(U){return function(C){if(C instanceof DocumentFragment){var F=Array.from(C.children);
C=U.nativeAppendChild.call(this,C);if(this.isConnected){F=_.D(F);for(var g=F.next();!g.done;g=F.next())Jn(g.value)}return C}F=C instanceof Element&&C.isConnected;g=U.nativeAppendChild.call(this,C);F&&oH(C);this.isConnected&&Jn(C);return g}}(A),A.nativeRemoveChild=H.prototype.removeChild,H.prototype.removeChild=function(U){return function(C){var F=C instanceof Element&&C.isConnected,g=U.nativeRemoveChild.call(this,C);
F&&O===U.nativeRemoveChild&&oH(C);return g}}(A),A.nativeReplaceChild=H.prototype.replaceChild,H.prototype.replaceChild=function(U){return function(C,F){if(C instanceof DocumentFragment){var g=Array.from(C.children);
C=U.nativeReplaceChild.call(this,C,F);if(this.isConnected)for(oH(F),F=_.D(g),g=F.next();!g.done;g=F.next())Jn(g.value);return C}g=C instanceof Element&&C.isConnected;var B=this.isConnected,c=U.nativeReplaceChild.call(this,C,F);B&&oH(F);g&&oH(C);B&&Jn(C);return c}}(A);
N=[Element];s6&&N.push(s6.Wrapper);N=_.D(N);H=N.next();for(A={};!H.done;A={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},H=N.next())H=H.value,H.prototype.before=MwO(H.prototype.before),H.prototype.after=MwO(H.prototype.after),A.nativeReplaceWith=H.prototype.replaceWith,H.prototype.replaceWith=function(U){return function(){var C=_.E1.apply(0,arguments),F=_.D(buv(C)),g=F.next().value,
B=F.next().value;F=this.isConnected;U.nativeReplaceWith.apply(this,C);C=_.D(B);for(B=C.next();!B.done;B=C.next())oH(B.value);if(F)for(oH(this),g=_.D(g),F=g.next();!F.done;F=g.next())F=F.value,F instanceof Element&&Jn(F)}}(A),A.nativeRemove=H.prototype.remove,H.prototype.remove=function(U){return function(){var C=this.isConnected;
U.nativeRemove.call(this);C&&oH(this)}}(A),A.nativeInsertAdjacentElement=H.prototype.insertAdjacentElement,H.prototype.insertAdjacentElement=function(U){return function(C,F){var g=F.isConnected;
C=U.nativeInsertAdjacentElement.call(this,C,F);g&&oH(F);C.isConnected&&Jn(C);return C}}(A),A.nativeSetAttribute=H.prototype.setAttribute,H.prototype.setAttribute=function(U){return function(C,F){var g=pj4(this);
if(!g.usePatchedLifecycles)return U.nativeSetAttribute.call(this,C,F);var B=this.getAttribute(C);U.nativeSetAttribute.call(this,C,F);F=this.getAttribute(C);LHt(g,C,B,F)}}(A),A.nativeRemoveAttribute=H.prototype.removeAttribute,H.prototype.removeAttribute=function(U){return function(C){var F=pj4(this);
if(!F.usePatchedLifecycles)return U.nativeRemoveAttribute.call(this,C);var g=this.getAttribute(C);U.nativeRemoveAttribute.call(this,C);g!==null&&LHt(F,C,g,null)}}(A),A.nativeToggleAttribute=H.prototype.toggleAttribute,H.prototype.toggleAttribute=function(U){return function(C,F){var g=pj4(this);
if(!this.usePatchedLifecycles)return U.nativeToggleAttribute.call(this,C,F);var B=this.getAttribute(C),c=B!==null;F=U.nativeToggleAttribute.call(this,C,F);F!==c&&LHt(g,C,B,F?"":null);return F}}(A);
N=[Document,DocumentFragment,Element,ShadowRoot];s6&&N.push(s6.Wrapper);N=_.D(N);for(A=N.next();!A.done;A=N.next())A=A.value,A.prototype.prepend=MwO(A.prototype.prepend),A.prototype.append=MwO(A.prototype.append);(s6==null?void 0:s6.noPatch)===!0&&zsp();document.readyState==="complete"?Jn(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Jn(document.body)});
var Z=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");Z&&Z.get&&Z.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:Z.enumerable,configurable:!0,get:Z.get,set:function(U){U||oH(this);Z.set.call(this,U);return U}})}};
MwO=function(N){return function(){var t=_.E1.apply(0,arguments),O=_.D(buv(t)),H=O.next().value;O=O.next().value;N.apply(this,t);t=_.D(O);for(O=t.next();!O.done;O=t.next())oH(O.value);if(this.isConnected)for(H=_.D(H),t=H.next();!t.done;t=H.next())t=t.value,t instanceof Element&&Jn(t)}};
zsp=function(){for(var N=_.D(aV9),t=N.next();!t.done;t=N.next()){t=t.value.prototype;for(var O=_.D(TxN),H=O.next();!H.done;H=O.next()){H=H.value;var A=Object.getOwnPropertyDescriptor(t,H);A&&Object.defineProperty(t,"__shady_native_"+H,A)}}};
LHt=function(N,t,O,H){var A,Z;if((A=N.polymerController)==null?0:(Z=A.observedAttributes)==null?0:Z.includes(t))if(N=N.polymerController,N.attributeChangedCallbackWrapper)N.attributeChangedCallbackWrapper.call(N,t,O,H);else{var U;(U=N.attributeChangedCallback)==null||U.call(N,t,O,H)}};
buv=function(N){var t=[],O=[];N=_.D(N);for(var H=N.next();!H.done;H=N.next())H=H.value,H instanceof Element&&H.isConnected&&O.push(H),H instanceof DocumentFragment?t.push.apply(t,_.W6(Array.from(H.children))):t.push(H);return[t,O]};
pj4=function(N){return!(N instanceof Element)&&N.node instanceof Element?N.node:N};
wj9=function(N,t){var O=t?["children"].concat(_.W6(t)):["children"];t=[];O=_.D(O);for(var H=O.next();!H.done;H=O.next()){var A=H.value;if(N.hasOwnProperty(A)){H=N[A];H=typeof H==="function"?H():H;H=Array.isArray(H)?H:[H];H=wu(H).flat();if(A!=="children"){A=mjN(A);for(var Z=_.D(H),U=Z.next();!U.done;U=Z.next())U=U.value,U instanceof Element&&U.setAttribute("slot",A)}t.push(H)}}t.length===0?N=[]:(N=wu(_.d("div",null,t)),N=Array.from(N.childNodes));return N};
PYy=function(N,t,O){var H={};_.Wo(function(){var A={},Z;for(Z in t)if(t.hasOwnProperty(Z)){var U=void 0,C=void 0;if(!(((U=O.slotProps)==null?0:U.includes(Z))||Z==="children"||((C=O.callbackProps)==null?0:C.includes(Z))||Z==="ref")&&(U=_.Qo(t[Z]),H[Z]!==U)){H[Z]=U;C=void 0;var F=(C=N.hostElement)!=null?C:N;!O.skipHostForwardedProps&&esv.has(Z)&&(F[Z]=U);A[Z]=U}}Tg(function(){if(N.setProperties)N.setProperties(A);else for(var g=_.D(Object.entries(A)),B=g.next();!B.done;B=g.next()){var c=_.D(B.value);
B=c.next().value;c=c.next().value;N[B]=c}})},"j")};
xAg=function(N,t,O,H){var A=wj9(O,H.slotProps),Z=(0,_.U6)(N);A=_.D(A);for(var U=A.next();!U.done;U=A.next())Z.appendChild(U.value);PYy(t,O,H);H=_.D(H.callbackProps||[]);A=H.next();for(Z={};!A.done;Z={kebabEventName:void 0,eventListener:void 0},A=H.next())U=A=A.value,String(A).substring(0,2)==="on"&&O[U]?(Z.kebabEventName=mjN(String(A).substring(2)),Z.eventListener=O[U],N.addEventListener(Z.kebabEventName,Z.eventListener),_.Ia(function(B){return function(){N.removeEventListener(B.kebabEventName,B.eventListener)}}(Z))):
t[U]=O[U];
if(O.ref){O=_.D(XjQ(O.ref));var C=O.next().value,F=O.next().value,g=t.attached.bind(t);t.attached=function(){C(N);g()};
_.Ia(function(){F()})}};
XjQ=function(N){if(typeof N==="function"){var t;return[function(O){t=N(O)},
function(){var O;(O=t)==null||O()}]}if(!N.onRender||!N.onUnmount)throw Error("Sg");
return[N.onRender,N.onUnmount]};
kJz=function(N,t){t=t===void 0?{}:t;var O=function(H){var A=document.createElement(N),Z;var U=(Z=A.polymerController)!=null?Z:A;xAg(A,U,H,t);return A};
O.debugName=N+" (CoW wrapped)";return O};
WHG=function(N,t,O,H,A){H=H===void 0?{}:H;var Z=qDG,U=!1;Z?(U=!0,qDG=void 0):(fV9=t,Z=document.createElement(t),fV9=void 0);var C=Z;C.usePatchedLifecycles=!0;C.lifecycleIsConnected=!1;Z.loggingStatus={};var F=nPy(N,t,Z,H,A);_.Ia(function(){C.lifecycleIsConnected&&(C.lifecycleIsConnected=!1,F.disconnectedCallback())});
U||(Z.__noInsertionPoint=!0,xAg(Z,F,O,H));return Z};
nPy=function(N,t,O,H,A){A=A===void 0?FHS:A;r1t[t]!=null||(r1t[t]=A(N,t,H==null?void 0:H.getTemplate,H));var Z=r1t[t],U=Z.ctor;A=Z.getInitialMethods;var C=Z.getPropsToForwardBeforeReady;N=Z.getPropsToForwardBeforeRegister;H=Z.shouldForwardProp;var F=Z.observedAttributes,g=Z.shouldLog,B=U(O,{beforeReady:function(){var c=B;c._takeAttributes?c._takeAttributes():c.setPropertiesFromInitialAttributeValues&&c.setPropertiesFromInitialAttributeValues();c=_.D(C(O.polymerController));for(var u=c.next();!u.done;u=
c.next()){var S=_.D(u.value);u=S.next().value;S=S.next().value;y1O(O,u,S);g(t)&&!v2(u)&&$AN(O.polymerController,u)}O.polymerController=xl9(B,t)}});
O.polymerController=B;O.polymerController.observedAttributes=F;Z=_.D(B.getExtraMethodsToForward());for(U=Z.next();!U.done;U=Z.next())F=_.D(U.value),U=F.next().value,F=F.next().value,Bxy(O,U,F);A=_.D(A());for(Z=A.next();!Z.done;Z=A.next())Z=Z.value,H(Z)&&Bxy(O,Z),g(t)&&!v2(Z)&&c1l(B,Z);N=_.D(N());for(H=N.next();!H.done;H=N.next())A=_.D(H.value),H=A.next().value,A=A.next().value,y1O(O,H,A);return B};
IVS=function(N){var t=N2;N2=N;return t};
mAG=function(N){if(lVS.has(N)&&N2&&Q6G(N2)===N){var t;(t=N2)._numRenders!=null||(t._numRenders=0);N2._numRenders++;if(N2._numRenders>1)throw Error("Tg");return N2}};
GJz=function(N){var t=Q6G(N);N2!==N&&t.includes("-")&&EPl.set(N,!0)};
Q6G=function(N){var t;return(t=N==null?void 0:N.tagName.toLowerCase())!=null?t:""};
RsQ=function(N,t){if(N.componentType===eG)throw Error("Ug");lVS.add(t);var O=function(){var H=HTMLElement.call(this)||this;H.is=t;if(fV9===t)return H.isInert=!0,H;H.createElement();return H};
_.p(O,HTMLElement);O.prototype.createElement=function(){if(!this.isInert){qDG=this;var H=_.D(_.r5Q(function(){return _.d(N,null)})).next().value;
qDG=void 0;kAt(this);return H}};
customElements.define(t,O)};
J14=function(N,t,O,H,A){N.prototype.is=t;(H==null?0:H.useSink)?vPv(N,t,O,H,A):(O=FHS(N,t,O,H),j6Q(O,t));return N};
vPv=function(N,t,O,H,A){YD4();var Z=_.q(function(U){return WHG(N,t,U,Object.assign({},H,{getTemplate:O}),A)},"k");
Z.debugName=t+" (CoW wrapped)";RsQ(Z,t);return Z};
s6x=function(N){return!oPv.has(N)};
O5N=function(N,t,O,H){function A(){if(!c){for(var u=new Set(N1M),S=_.D(Z.behaviors),b=S.next();!b.done;b=S.next()){b=b.value;for(var z=_.D(Object.getOwnPropertyNames(b)),w=z.next();!w.done;w=z.next()){w=w.value;var P=void 0,x=(P=Object.getOwnPropertyDescriptor(b,w))==null?void 0:P.value;x&&x instanceof Function&&(!g[w]||_.h("polymer_forward_method_killswitch"))&&u.add(w)}}S=_.D(Object.entries(Object.getOwnPropertyDescriptors(N.prototype)));for(b=S.next();!b.done;b=S.next())z=_.D(b.value),b=z.next().value,
z=z.next().value,z.value instanceof Function&&u.add(b);c=u}return c}
var Z=kX4({is:t,disableElementRegistration:!1,getTemplate:O,providers:H==null?void 0:H.providers,reactivityMode:H==null?void 0:H.reactivityMode},N);if((H==null?0:H.allowedProps)||(H==null?0:H.allowedPropsFromBehaviors)){var U,C;Z.allowedProps=[].concat(_.W6((U=H.allowedProps)!=null?U:[]),_.W6((C=H.allowedPropsFromBehaviors)!=null?C:[]))}var F=akt(Z,N);t=F.observedAttributes;var g={};O=_.D(Z.reactiveSchemas);for(H=O.next();!H.done;H=O.next())if(H=H.value,H.type==="signal")g[H.propertyKey]={readOnly:H.readOnly},
H.readOnly&&(g[VAG(H.propertyKey)]={readOnly:!0});else if(H.type==="compute"||H.type==="computeWithMethod"||H.type==="redux")g[H.propertyKey]={readOnly:!0};var B=Z.reactiveSchemas.length,c;return{ctor:function(u,S){u=new F(u);u.beforeReady=S.beforeReady;return u},
props:g,observedAttributes:t,getInitialMethods:A,getPropsToForwardBeforeRegister:function(){for(var u=[],S=new Set,b=_.D(t5z),z=b.next();!z.done;z=b.next())z=z.value,u.push([z,z!=="observers"&&z!=="properties"]),S.add(z);b=_.D(Object.keys(g));for(z=b.next();!z.done;z=b.next())z=z.value,u.push([z,g[z].readOnly]),S.add(z);b=A();z=_.D(Object.keys(Object.getOwnPropertyDescriptors(N.prototype)));for(var w=z.next();!w.done;w=z.next())w=w.value,!s6x(w)||b.has(w)||S.has(w)||(u.push([w,!1]),S.add(w));u.push(["allowedProps",
!0]);return u},
getPropsToForwardBeforeReady:function(u){var S=[];u=_.D(Object.keys(u));for(var b=u.next();!b.done;b=u.next()){b=b.value;var z=A();s6x(b)&&!z.has(b)&&S.push([b,!1])}u=_.D(Z.reactiveSchemas.slice(B));for(b=u.next();!b.done;b=u.next())b=b.value,b.type!=="compute"&&b.type!=="computeWithMethod"&&b.type!=="redux"&&b.type!=="signal"||S.push([b.propertyKey,b.type==="signal"?b.readOnly:!0]);return S},
shouldForwardProp:s6x,shouldLog:uc}};
_.n=function(N,t,O,H){var A,Z,U=(Z=(A=H)==null?void 0:A.mode)!=null?Z:0;H!=null||(H={});var C;(C=H).reactivityMode!=null||(C.reactivityMode=0);U===1&&_.MH("creator_poly_si_disable_list").includes(t)&&(U=2);return U===1?J14(N,t,O,Object.assign({},H,{useSink:!0}),O5N):J14(N,t,O,Object.assign({},H,{useSink:U===2}))};
_.td=function(){return function(N,t,O,H){var A,Z,U=(Z=(A=H)==null?void 0:A.mode)!=null?Z:2;H!=null||(H={});var C;(C=H).reactivityMode!=null||(C.reactivityMode=0);if(U===0)throw Error("Vg`"+U);return vPv(N,t,O,H,U===1?O5N:void 0)}};
_.O4=function(N){return _.h("creator_poly_si_killswitch")?!1:_.h("force_all_poly_si_batches")&&(N==="poly_si_all_on_test_check"||N==="creator_poly_si_batch_050"?0:N)||document.documentElement.hasAttribute("use-signals")?!0:!N||_.h(N+"_holdback_enabled")&&_.h("kevlar_polysi_holdback")?!1:_.h(N)};
HV=function(N){return N?N.icon?N.icon.iconType.toLowerCase():N.customThumbnail?"member":"":""};
H5Q=function(N){if(!N)return"";N=_.D(N);for(var t=N.next();!t.done;t=N.next())if((t=t.value)&&t.liveChatAuthorBadgeRenderer&&(t=HV(t.liveChatAuthorBadgeRenderer))&&t!=="verified")return t;return""};
A0v=function(N,t){if(!N)return null;var O;return((O=N.find(function(H){return H&&H.liveChatAuthorBadgeRenderer?HV(H.liveChatAuthorBadgeRenderer)===t:!1}))==null?void 0:O.liveChatAuthorBadgeRenderer)||null};
_.Kyt=function(N){var t=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;N=Z5l(N);t=Z5l(t);var O=V5O(N.hex);t=V5O(t.hex);var H=t[0]/255;var A=t[1]/255,Z=t[2]/255,U=Math.max(H,A,Z),C=Math.min(H,A,Z),F=0,g=0,B=.5*(U+C);U!=C&&(U==H?F=60*(A-Z)/(U-C):U==A?F=60*(Z-H)/(U-C)+120:U==Z&&(F=60*(H-A)/(U-C)+240),g=0<B&&B<=.5?(U-C)/(2*B):(U-C)/(2-2*B));H=[Math.round(F+360)%360,g,B];O=Dr4(O,t);for(N=UrS(N.hex);O<4.5;){N=H[2]>=.5?N.darker((4.5-O)/2):N.brighter((4.5-O)/2);O=N.toString();
A=CV4(O);if(!A.length)throw Error("Xd`"+O);O=A;O=Dr4(O,t)}return N.hex()};
Dr4=function(N,t){N=_.qsy(N);t=_.qsy(t);return(Math.max(N,t)+.05)/(Math.min(N,t)+.05)};
_.Ad=function(N){return"#"+("000000"+(N&16777215).toString(16)).slice(-6)};
_.FyO=function(N){for(var t=0,O=0;O<N.length;O++)t=N.charCodeAt(O)+((t<<5)-t);N="#";for(O=0;O<3;O++)N+=("00"+(t>>O*8&255).toString(16)).slice(-2);return N};
dr9=function(N){N=(N||"").split(":");N.length===1&&N.unshift("yt-icons");N[1]=N[1].toLowerCase();return N};
j9l=function(N,t){var O=(t=t===void 0?!1:t)?gNt:y0O,H=t?B1x:c0M;N.getIconNames().forEach(function(A){A=t?A:A.substring(A.indexOf(":")+1);N.name==="yt-icons"?$r9.add(A):A.includes("-filled")?O.add(A):H.add(A)})};
Z5=function(N,t,O,H){O=O===void 0?!1:O;H=H===void 0?!1:H;var A,Z,U;return _.K(function(C){if(C.nextAddress==1)return C.yield(i5O,2);if(H)return C.return($r9.has(N));A=O?gNt:y0O;Z=O?B1x:c0M;return t?(U=N.includes("-filled")?N:N.concat("-filled"),C.return(A.has(U))):C.return(Z.has(N))})};
_.Vt=function(N){if(ukO(N))return N.toString();var t=SZS.get(N);if(t)return t;t=N.toLowerCase();var O="yt-icons",H=t.replace(/_/g,"-");switch(N){case "MY_CHANNEL":t="account_circle";break;case "ADD_TO_LIBRARY":t="add";break;case "ALERT_WARN_RED":t="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":t="person_music";break;case "BLOCK_USER":t="block";break;case "CAPTIONS":t="closed_caption";break;case "CLOSED_CAPTION":O="av";t="closed-caption";break;case "COLLECTION":O="maps";t="layers";break;case "CONTACT":O=
"icons";t="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":O="yt-studio-system-icons";t=H.split("creator-studio-")[1];break;case "DISMISSAL":t="close";break;case "DO_NOT_DISTURB":t="block";break;case "DOGFOOD":O="icons";t="pets";break;case "DRAFT":t="paper_corner_folded";
break;case "EMPTY_LIKE":t="like_outline";break;case "EXIT_APP":t="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":t=H;break;case "GAMES":O="ytg";t="my-games";break;case "GO_TO_PAGE":t="arrow-forward";break;case "GROUP":O="social";break;case "HIDE":t="not_interested";break;case "INPUT_COMPONENT":O="icons";t="settings-input-component";break;case "KIDS_BLOCK":t="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":O="ytg";t="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":O=
"ytg";t="membership-post-purchase";break;case "MULTIVIEW":t="screen_multi_view";break;case "MY_LOCATION":O="maps";t=H;break;case "NOTIFICATIONS_INBOX":t="NOTIFICATIONS";break;case "NEXT":t="chevron_right";break;case "OFFLINE":t="power-settings-new";break;case "PAUSE":O="miniplayer";break;case "PAYMENT":O="icons";break;case "PHONE_DOWNLOAD":t="phone_download";break;case "PREMIUM_STANDALONE":O="yt-logos";t="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":O="yt-logos";t="premium_standalone_cairo";
break;case "QUESTION_ANSWER":t="question_answer";break;case "REDEEM":O="icons";t="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":t="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":t="library_add";break;case "SCHOOL":O="yt-sys-icons";t="creator_academy";break;case "SETTINGS_LIGHT":t="settings_applications";break;case "SETTINGS_MATERIAL":t="settings";break;case "SEARCH_HISTORY":t="watch_history";break;case "SHOPPING_BAG":t="bag";break;case "SOCIAL":case "PEOPLE":O=
"yt-icons";t="people";break;case "STAFF_PICK":O="ytg";t="spotlight";break;case "START_DVR":t="add";break;case "STOP_DVR":O="av";t="stop";break;case "TAB_LIKED":t="like";break;case "TAB_INBOX":t="mail";break;case "TERMS_OF_SERVICE":O="icons";t="description";break;case "TRENDING":t="fire";break;case "UNBLOCK_USER":t="remove";break;case "UNPLUGGED_DARK_THEME":O="image";t="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":t="live";break;case "UNPLUGGED_SPORTS":O="ytu";t="visibility-off";break;
case "VIDEOS":O="av";t="play-circle-filled";break;case "YOUTUBE":O="yt-logos";t="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":O="yt-logos-ext";t="yt-logo-red-updated";break;case "YOUTUBE_LOGO":O="yt-logos-ext";t="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":O="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":O="shorts";t=H;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":O="yt-sys-icons";t="youtube_improve_tv";break;case "OUTLINE_BAG":O=
"yt-sys-icons";t="bag";break;case "QUEUE_PLAY_LAST":O="yt-sys-icons";t="list_queue_last";break;case "SLASH_CIRCLE_LEFT":t="slash_circle_left";break;case "SPEED_1_POINT_2X":t="1_point_2x";break;case "SPEED_1_POINT_5X":t="1_point_5x";break;case "SPEED_1_POINT_8X":t="1_point_8x";break;case "SPEED_POINT_2X":t="point_2x";break;case "SPEED_POINT_5X":t="point_5x";break;case "SPEED_POINT_8X":t="point_8x";break;case "SPEED_1X":t="1x";break;case "SPEED_2X":t="2x";break;case "TAB_BOOKMARK":t="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":O="yt-sys-icons";t="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":O="yt-sys-icons";t="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":O="yt-sys-icons",t="tic_tac_toe"}t=O+":"+t;SZS.set(N,t);return t};
ukO=function(N){var t;_.h("kevlar_use_wil_icons")?t=!!_.cY().resolve(_.D5).resolveIcon({iconName:N.toString()}):t=!1;return t};
_.CC=function(N,t,O,H){O=O===void 0?{}:O;H=H===void 0?!1:H;O===null&&(O={});var A=_.MH("kevlar_command_handler_command_banlist");A=_.D(A);for(var Z=A.next();!Z.done;Z=A.next())if(Z=N?N.hasOwnProperty(Z.value):void 0,Z)return!1;A=_.M(N.commandMetadata,_.Da);return H&&A!=null&&A.url?!1:!t.disableCommandHandlerOverride&&_.U4.instance?(H=_.U4.instance,O.form||(O.form={element:t}),O.form.element||(O.form.element=t),!O.clickedVisualElement&&t.visualElement&&(O.clickedVisualElement=t.visualElement),H.resolveCommand(N,
O),!0):!1};
hmG=function(N,t){N=KC(N);for(var O=_.D(N.visibilityMonitorKeys||[]),H=O.next();!H.done;H=O.next())t.unobserveByKey(H.value);N.visibilityMonitorKeys=void 0};
Lyg=function(N,t){if(_.z8()){if(_.h("kevlar_vimio_use_shared_monitor"))M5z(N,t.data);else if(!M5z(N,t.data))return;var O=t.data,H=b5N(O);if(_.h("enable_client_ve_spec_logging"))hmG(N,t.observer);else{var A=KC(N);A.trackedParams&&A.trackedParams!==H&&hmG(N,t.observer)}A=KC(N);!O||A.data&&A.data===O||(A.data=O);pwl(N,t);A.trackedParams=H}};
pwl=function(N,t){var O=t.observer;if(!O&&_.h("web_skip_missing_vimio_observer")){var H,A;_.J_(new _.fF("VisibilityObserver is not defined.",N.tagName,N.trackedParams,(H=t.data)==null?void 0:H.trackingParams,(A=t.data)==null?void 0:A.loggingDirectives))}else{var Z=t.layer,U=t.visibilityCallback||function(){},C=t.prescanCallback,F=KC(N);
H=[];t.showOption&&H.push(O.observe(N,function(){t.skipLogging&&t.skipLogging()||_.Fr().reportShown(F,void 0,Z,7);U(!0)},t.showOption));
t.hideOption&&H.push(O.observe(N,function(){_.Fr().reportHidden(F,void 0,Z,7);U(!1)},t.hideOption));
t.prescanOption&&C&&H.push(O.observe(N,function(){C()},t.prescanOption));
F.visibilityMonitorKeys=H}};
M5z=function(N,t){N=KC(N);if(N.visualElement&&!t)return!0;if(!t)return!1;var O=!1;if(_.h("enable_client_ve_spec_logging")){var H,A;O=!!((H=t.loggingDirectives)==null?0:(A=H.clientVeSpec)==null?0:A.uiType)}H=b5N(t);if(!H&&!O)return!1;_.h("mweb_component_visibility_logging")&&(N.veContainer||(N.veContainer={}),N.veContainer.trackingParams=H);if(N.trackedParams&&N.trackedParams===H)return!1;var Z;if(_.h("enable_client_ve_spec_logging")&&((Z=N.visualElement)==null?0:Z.isClientVe())){var U;Z=(U=N.visualElement)==
null?void 0:U.getAsJspb();var C,F,g,B;if(_.$1(Z,2)===((C=t.loggingDirectives)==null?void 0:(F=C.clientVeSpec)==null?void 0:F.uiType)&&_.$1(Z,3,-1)===((g=t.loggingDirectives)==null?void 0:(B=g.clientVeSpec)==null?void 0:B.elementIndex))return!1}if(_.h("enable_client_ve_spec_logging")){var c,u;!N.visualElement&&((c=t.loggingDirectives)==null?0:(u=c.clientVeSpec)==null?0:u.uiType)&&(C=t.loggingDirectives.clientVeSpec,t=C.uiType,U=C.elementIndex,C=C.clientYoutubeData,N.visualElement=_.dF(_.gF(),{veType:t,
elementIndex:U,clientYouTubeData:C}))}return!0};
b5N=function(N){if(N==null?0:N.rendererContext){var t=_.M(N.rendererContext,_.BV);if(t==null?0:t.loggingDirectives)return t.loggingDirectives.trackingParams}return(N==null?0:N.loggingDirectives)?N.loggingDirectives.trackingParams:N==null?void 0:N.trackingParams};
KC=function(N){var t;return(t=N.polymerController)!=null?t:N};
T14=function(N){_.Fr();if(_.oo(cV().JSC$12879_elementShouldLogGesture).bind(cV())(N,4)){zmt(N);var t=YZp(N);aOp.set(N,t)}};
zmt=function(N){aOp.has(N)&&(aOp.get(N).cancel("untrack hover element"),aOp.delete(N))};
YZp=function(N){var t,O=[],H=!1,A=new _.TW(function(Z,U){$J(N,"mouseenter",_.oo(function(){var C,F,g;return _.K(function(B){if(B.nextAddress==1)return t=(0,_.jg)(),C=wwG(N),O.push(C),F=emG(N,function(){H=!0;U(Error("Wg"))}),B.yield(C,2);
if(B.nextAddress!=3)return F&&jF(F),g=PVS(N),O.push(g),B.yield(g,3);Z();_.Ty(B)})}))});
A.then(function(){var Z=(0,_.jg)()-t;Z=Math.round(Z);if(!(500>Z||6E5<=Z)){var U=N.getScreenLayer?N.getScreenLayer():void 0;U=_.z8(U)||"";var C=Xwy(_.Fr(),N);_.lp(U,N.visualElement?N.visualElement:_.ib(C),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:Z}})}T14(N)},function(){ub&&(ub(),ub=null);
H&&(zmt(N),T14(N))});
return A};
wwG=function(N){var t;return(new _.TW(function(O,H){ub=function(){H(Error("Xg"))};
t=_.GB.debounce(_.oo(function(){jF(A);O()}),1,100);
var A=_.SF(N,"mousemove",t)})).thenCatch(function(){var O=_.GB.cancelDebouncedJobMap.get(t);
O&&_.GB.cancelJob(O)})};
PVS=function(N){var t;return(new _.TW(function(O,H){ub=function(){H(Error("Yg"))};
t=$J(N,"mouseleave",_.oo(function(){O()}))})).thenCatch(function(){jF(t)})};
emG=function(N,t){return $J(N,"mouseleave",_.oo(t))};
ksz=function(N){xrN&&_.hd.cancel(xrN);xrN=_.hd.run(function(){_.or(N,"yt-visibility-refresh");xrN=0})};
qZN=function(N){N=Number(N);return"rgba("+[N>>16&255,N>>8&255,N&255,(N>>24&255)/255].join()+")"};
nNx=function(N){if(!N)return!1;if(_.M(N,_.fOx))return!0;var t;if(N=(t=_.M(N,_.Ab))==null?void 0:t.commands)for(t=_.D(N),N=t.next();!N.done;N=t.next())if(_.M(N.value,_.fOx))return!0;return!1};
Wyv=function(N){var t=!0;t=t===void 0?!0:t;if(!N.useSignals&&!N.experimentalPropertiesChanged||_.h("experimental_templating_behavior_nopatch_killswitch")){var O=N._propertiesChanged;N._propertiesChanged=function(H,A,Z){t?N.debounceRender():N.doRender();O&&O.call(N,H,A,Z)}}};
r0x=function(N,t){if(N.useSignals||N.experimentalPropertiesChanged)if(_.h("experimental_templating_behavior_nopatch_killswitch"))N.experimentalPropertiesChanged=function(){};
else return;var O=new Set,H=[N].concat(_.W6(N.behaviors));H=_.D(H);for(var A=H.next();!A.done;A=H.next()){A=A.value;for(var Z in A.properties)O.has(Z)||(N._addPropertyEffect(Z,"function",t),O.add(Z))}};
IOS=function(){var N=Polymer.Element,t=N._prepareTemplate;N._prepareTemplate=function(){t.call(this);var O=this.prototype;if(O.experimentalTemplatingInUse&&O.experimentalTemplatingInUse()&&O.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.R0(Error("Zg"));else{O=this.template.content.childNodes;for(var H=O.length-1;H>=0;H--){var A=O[H];A.nodeName!=="STYLE"&&A.nodeName!=="LINK"&&A.nodeName!=="SCRIPT"&&A.nodeName!=="#comment"&&A.remove()}}}};
lO9=function(N){var t=!0;t=t===void 0?!0:t;IOS();var O=N.ready;N.ready=function(){this._template=null;O.call(this)};
r0x(N,t?N.debounceRender:N.doRender)};
mrv=function(N,t,O){if(O===null||O===void 0)return O;var H=LKy(N.tagName.toLowerCase(),t,function(){throw Error("Tb");});
if(H===null)return O;H=Q9M[H];var A;if((A=H.isUnwrappable)==null?0:A.call(H,O)){if(H.unwrap)return H.unwrap(O);throw Error("bh");}return H.filterString?H.filterString(N.tagName,t,String(O)):O};
ENQ=function(N,t,O){var H=t[t.length-1]!=="$",A=mrv(N,t,O);if(H)if(typeof A==="function"&&t.startsWith("reactiveon")&&t===t.toLowerCase()){var Z=UH;x1y(N,t.slice(8),function(U){mP(Z,function(){A(U)})})}else N[t]=A;
else O=A==null?null:String(A),vo(N,t.slice(0,-1),O)};
bb=function(N){Gsy.length===0&&requestAnimationFrame(function(){setTimeout(function(){var t=Gsy.slice();Gsy.length=0;t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;try{O()}catch(H){_.M2(H)}}})});
Gsy.push(N)};
Rmv=function(N){if(N){var t=N.component;if(t){var O;t==null||(O=t.events)==null||O.publish("DISCONNECTED");var H;t==null||(H=t.onDisconnected)==null||H.call(t)}var A,Z;(A=N.__spec)==null||(Z=A.didUnmount)==null||Z.call(A);for(t=0;t<N.childNodes.length;t++)Rmv(N.childNodes[t])}};
vNN=function(N,t,O){var H=t&&t.key,A=Dt;A[0]=N;A[1]=H;A[2]=void 0;for(var Z in t)t.hasOwnProperty(Z)&&(N=t[Z],H=U2,H.push(Z),H.push(N));t=Dt;a:{if(Z=Dt[2])for(N=0;N<Z.length;N+=2)if(Z[N]==="nonce"){Z=Z[N+1];break a}Z=""}Z=Rcg(t[0],t[1],Z);N=NC(Z);H=t[2];if(!N.staticsApplied&&(N.staticsApplied=!0,H&&H.length))if((A=N._attrsArr)&&A.length){for(A=0;A<H.length;A+=2)pC[H[A]]=A+1;A=N._attrsArr||(N._attrsArr=Xdx(0));for(var U=0,C=0;C<A.length;C+=2){var F=A[C],g=A[C+1],B=pC[F];B?H[B]===g&&delete pC[F]:(A[U]=
F,A[U+1]=g,U+=2)}Gg(A,U);for(var c in pC)WKS(Z,c,H[pC[c]],cd),delete pC[c]}else for(c=0;c<H.length;c+=2)WKS(Z,H[c],H[c+1],cd);O0g(Z,N,cd);Gg(t,0);O&&O(tO);v6G()};
_.LC=function(N,t,O){O===void 0?delete N[t.name]:N[t.name]=O};
_.zb=function(N){var t={androidIncludeFontPadding:!1},O=0,H=[],A=[],Z=[];if(N.simpleText)return t.content=N.simpleText,t;if(N.runs===void 0)return t.content="",t;N=_.D(N.runs);for(var U=N.next();!U.done;U=N.next()){U=U.value;var C=U.text,F=void 0,g=(F=C)==null?void 0:F.length;if(C&&g){H.push(C);if(U.bold||U.italics||U.strikethrough||U.underline||U.textColor!=null&&U.textColor!==0||U.deemphasize){C=A;F=C.push;var B={startIndex:O,length:g};U.bold&&(B.weightLabel="FONT_WEIGHT_MEDIUM");U.italics&&(B.italic=
!0);U.strikethrough&&(B.strikethrough="LINE_STYLE_SINGLE");U.underline&&(B.underline="LINE_STYLE_SINGLE");U.textColor!=null&&U.textColor!==0?document.documentElement.hasAttribute("dark")?B.fontColor=U.darkModeTextColor||U.textColor:B.fontColor=U.textColor:U.deemphasize&&(document.documentElement.hasAttribute("dark")?B.fontColor=parseInt("ff"+J0l("#aaa").substring(1),16):B.fontColor=parseInt("ff"+J0l("#606060").substring(1),16));F.call(C,B)}U.navigationEndpoint&&(C=Z,F=C.push,B={startIndex:O,length:g,
onTap:{innertubeCommand:U.navigationEndpoint}},U.loggingDirectives&&_.LC(B,oNz,U.loggingDirectives),F.call(C,B));O+=g}}t.content=H.join("");t.styleRuns=A.length?A:void 0;t.commandRuns=Z.length?Z:void 0;return t};
NBO=function(N){if(N==null||!N.runs)return!0;N=_.D(N.runs);for(var t=N.next();!t.done;t=N.next())if(t=t.value,t.bracket||t.errorUnderline||t.deemphasize||_.M(t,YJ)||_.M(t,s9l))return!1;return!0};
th9=function(N,t){return function(O){var H=t.unit;if(H!==O)throw Error("eh`"+N+"`"+H+"`"+O);return t}};
a_=function(N){if(!((N==null?0:N.value)&&(N==null?0:N.unit)))return"";switch(N.unit){case "DIMENSION_UNIT_FRACTION":var t="%";break;default:t="px"}N=N.value;t==="%"&&(N*=100);return""+N+t};
O$z=function(N){try{return N()}catch(t){_.J_(t)}};
_.wF=function(N){var t=_.M(N,_.Tb);if(t)return t;if((t=_.M(N,H$O))&&t.commands)return AKt(t.commands);if((t=_.M(N,Z$g))&&t.commands)return AKt(t.commands);if((N=_.M(N,Vhy))&&N.identifier&&N.command&&(DQ9||(DQ9=[]),!DQ9.includes(N.identifier)))return DQ9.push(N.identifier),_.M(N.command,_.Tb)};
AKt=function(N){if(N.length!==0){var t=[];N=_.D(N);for(var O=N.next();!O.done;O=N.next())(O=_.wF(O.value))&&t.push(O);return{commandExecutorCommand:{commands:t}}}};
_.PV=function(N){var t=N.defaultTarget,O=N.elementConfig,H=N.elementsCommand,A=N.skipOnClick,Z=N.forceNewState,U=N.additionalCommandArgs,C=N.innertubeCommand||_.wF(H);if(C){N={};var F=UQz(C);H=F.navigatingCommand;F=F.href;H&&F?(N.href$=F,CBG(N,H,F,t),_.h("web_atagconfig_pointerdown")&&KL4(N,H),Z&&(N["force-new-state$"]=!0)):(N.role$="button",N.href$="javascript:void(0);");_.M(C,FLy)&&(N["aria-haspopup$"]=!0);A||(N.onclick=function(g){var B={};if(dQ4(g)){var c=(U==null?void 0:U.clickedVisualElement)||
(U==null?void 0:U.getClickedVisualElement)&&U.getClickedVisualElement();c&&(B={clickedVisualElement:c});B=Object.assign({},{form:{element:g.target,event:g,createScreenConfig:B}},U);g.preventDefault();_.eF(C,B)}});
return Object.assign({},O,N)}};
gWN=function(N){if(N.length){if(N.length===1)return N[0];var t={};_.LC(t,_.Ab,{commands:N});return t}};
Xr=function(N){return N&&N.href$!=="javascript:void(0);"};
UQz=function(N){var t,O=((t=_.M(N,_.Ab))==null?void 0:t.commands)||[N];N=_.D(O);for(t=N.next();!t.done;t=N.next()){t=t.value;var H=void 0,A=void 0;O=(A=_.M((H=t)==null?void 0:H.commandMetadata,_.Da))==null?void 0:A.url;_.h("web_remove_web_navigation_endpoint_data")||(H=void 0,O=O||((H=_.M(t,yKl))==null?void 0:H.url));if(O&&O!=="/service_ajax"){if(H=_.Wl(O,BBN))return N=_.f8(H),{navigatingCommand:t,href:N};_.J_(new _.fF("AttributedString URL could not be sanitized",O))}}return{}};
dQ4=function(N){return N.button!==void 0?N.button===0&&!(N.shiftKey||N.altKey||N.metaKey||N.ctrlKey):!(N.shiftKey||N.altKey||N.metaKey||N.ctrlKey)};
CBG=function(N,t,O,H){O=!gE(O);var A,Z,U;if((A=_.M(t,_.yE))!=null&&A.nofollow||(Z=_.M(t,_.rN))!=null&&Z.nofollow||(U=_.M(t,_.Z3))!=null&&U.nofollow||O)N.rel$="nofollow";var C;t=((C=_.M(t,_.Z3))==null?void 0:C.target)==="TARGET_NEW_WINDOW"?"_blank":H===void 0?"":H;N.target$=t};
KL4=function(N,t){t.clickTrackingParams&&(N.params={itct:t.clickTrackingParams});N.onpointerdown=function(O){cK9(O)};
N._data=t};
$QQ=function(N){(N.loggingUrls||[]).forEach(function(t){Z4(t.baseUrl,t.attributionSrcMode)})};
cK9=function(N){var t=N.currentTarget;N=O$z(function(){return t.href});
var O=t.params;N&&_.m2(N,O||{},8,!0)};
_.xJ=function(N,t){(N=_.wF(N))&&_.eF(N,t)};
_.eF=function(N,t){N0G(function(O){t?O.resolveCommand(N,t):O.resolveCommand(N)})};
Sm9=function(N,t){var O=["yt-core-attributed-string__link"];t!=null&&t.noLinkColor||((t==null?0:t.isOverlay)?O.push("yt-core-attributed-string__link--overlay-call-to-action-color"):O.push("yt-core-attributed-string__link--call-to-action-color"),(t==null?0:t.linkInheritColor)&&O.push("yt-core-attributed-string--link-inherit-color"));O={className:O.join(" "),tabindex$:"0"};var H=N.onTap||N.onLongPress;if(!H)return O;var A=jtz(N);A&&(O["aria-label$"]=A);t=_.PV({elementsCommand:H,elementConfig:O,skipOnClick:!(t==
null||!t.skipOnClick),forceNewState:!0});N.onLongPress&&(H=new i$G(function(){var Z=_.wF(N.onLongPress);Z&&_.cY().resolve(_.jo).resolveCommand(Z)}),t&&u8M(H,t));
return t||O};
jtz=function(N){var t,O;return(t=N.onTapOptions)==null?void 0:(O=t.accessibilityInfo)==null?void 0:O.accessibilityLabel};
hQQ=function(N){var t=N;N<=16777215&&(t+=parseInt("ff000000",16));return _.TV(t)};
Mhl=function(N){var t=N.isDarkTheme;var O=N.extension;N=N.runColor;var H=void 0;if(O=O==null?void 0:O.colorMap){t=t?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";O=_.D(O);for(var A=O.next();!A.done;A=O.next())if(A=A.value,t===A.key){H=A.value;break}}H==null&&N&&(H=N);if(H)return hQQ(H)};
kJ=function(N){var t=N.config;var O=N.image;var H=N.imageConfig;var A=N.imageWrapperConfig;var Z=N.run;var U=N.tag;var C=N.textLength;var F=N.startIndex===void 0?0:N.startIndex;N=N.length;F===void 0&&(F=0);Z={run:Z,startIndex:F,endIndex:N!==void 0?F+N:C,tag:U};O&&(Z.image=O);H&&(Z.imageConfig=H);A&&(Z.imageWrapperConfig=A);t&&(Z.config=t);return Z};
pPv=function(N,t){var O=[];O.push("yt-core-attributed-string");(t==null?0:t.className)&&O.push(t==null?void 0:t.className);(t==null?0:t.ellipsisTruncate)?O.push("yt-core-attributed-string--ellipsis-truncate"):(t==null?0:t.noWrap)?O.push("yt-core-attributed-string--white-space-no-wrap"):(t==null?0:t.noPreWrap)||O.push("yt-core-attributed-string--white-space-pre-wrap");(t==null?0:t.linkInheritColor)&&O.push("yt-core-attributed-string--link-inherit-color");N.alignment&&O.push(b$l(N.alignment));N.lineBreakMode&&
O.push("yt-core-attributed-string--word-wrapping");return O.join(" ")};
LLx=function(N,t){if(N.weight)return N.weight;switch(N.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return t?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
zQG=function(N){switch(N){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
b$l=function(N){switch(N){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
nC=function(N,t,O){var H=t;N.content&&O&&(O=N.content.indexOf("\n"),O!==-1&&(H=Math.min(t,O)));if(!N.content||N.content.length<=H)t=N;else if(N.attachmentRuns||N.commandRuns||N.decorationRuns||N.styleRuns||N.paragraphStyleRuns){t=q2(N.content,H);O=H;var A=N.attachmentRuns;if(A){var Z=[];A=_.D(A);for(var U=A.next();!U.done;U=A.next())U=Object.assign({},U.value),U.startIndex===void 0||U.startIndex>=O||(U.length||(U.length=0),U.length+U.startIndex>O&&(U.length=O-U.startIndex),Z.push(U));O=Z}else O=void 0;
Z=Yml(H,N.commandRuns);A=H;var C=N.decorationRuns;if(C){U=[];C=_.D(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;var g=_.M(F.textDecorator,fC);if(g&&g.startIndex!==void 0&&!(g.startIndex>=A)){F=Object.assign({},F,{textDecorator:{highlightTextDecorator:Object.assign({},g)}});g=_.M(F.textDecorator,fC);if(!g.length||g.length+g.startIndex>A)g.length=A-g.startIndex;U.push(F)}}A=U}else A=void 0;U=Yml(H,N.styleRuns);if(C=N.paragraphStyleRuns)for(N=[],C=_.D(C),F=C.next();!F.done;F=C.next()){var B=F.value;
F=Object.assign({},B);if(!(F.startIndex===void 0||F.startIndex>=H)){if(!F.length||F.length+F.startIndex>H)F.length=H-F.startIndex;g=[];var c=void 0,u=void 0;if((c=B)==null?0:(u=c.listGroup)==null?0:u.listItems)for(B=_.D(B.listGroup.listItems),c=B.next();!c.done;c=B.next())if(c=Object.assign({},c.value),!(c.startIndex===void 0||c.startIndex>=H)){if(!c.length||c.length+c.startIndex>H)c.length=H-c.startIndex;g.push(c)}g.length>0&&(F.listGroup||(F.listGroup={}),F.listGroup=Object.assign({},F.listGroup,
{listItems:g}));N.push(F)}}else N=void 0;t={content:t,attachmentRuns:O,commandRuns:Z,decorationRuns:A,styleRuns:U,paragraphStyleRuns:N}}else t=Object.assign({},N,{content:q2(N.content,H)});return t};
Yml=function(N,t){if(t){var O=[];t=_.D(t);for(var H=t.next();!H.done;H=t.next())if(H=Object.assign({},H.value),!(H.startIndex===void 0||H.startIndex>=N)){if(!H.length||H.length+H.startIndex>N)H.length=N-H.startIndex;O.push(H)}return O}};
q2=function(N,t){var O=t,H;if(H=O>0)H=N.charCodeAt(O-1),H=H>=55296&&H<=56319;H&&(O=N.charCodeAt(O),H=O>=56320&&O<=57343);H&&--t;return N.substring(0,t)};
eQv=function(N,t,O){O=O===void 0?aGp:O;if(N){var H=_.cY().resolve(j4);H||_.h("mweb_no_observer_killswitch")?Lyg(N,{data:t,observer:H,visibilityCallback:O,hideOption:TBQ,showOption:wPp,layer:N.layer}):_.J_(new _.fF("Warning: monitorVisibility called with null observer",N.tagName,t==null?void 0:t.loggingDirectives,t==null?void 0:t.trackingParams))}else _.J_(new _.fF("Warning: monitorVisibility called with null element",t==null?void 0:t.loggingDirectives,t==null?void 0:t.trackingParams,t==null?void 0:
t.rendererContext))};
nWx=function(N,t){var O=[],H=N.content.length,A,Z=(A=_.cY().resolve(_.BY(_.WV)))==null?void 0:A();if(N.paragraphStyleRuns){A=_.D(N.paragraphStyleRuns);for(var U=A.next();!U.done;U=A.next()){var C=O.push,F=C.apply;var g=void 0;U=U.value;if((g=U.listGroup)!=null&&g.listItems){g=[];b:switch(U.listGroup.listType){case "LIST_TYPE_BULLET":var B="ul";break b;default:B="span"}g.push(kJ({run:U,textLength:H,tag:B,config:{className:"yt-core-attributed-string__list-group"},startIndex:U.startIndex,length:U.length}));
B=_.D(U.listGroup.listItems);for(var c=B.next();!c.done;c=B.next()){c=c.value;b:switch(U.listGroup.listType){case "LIST_TYPE_BULLET":var u="li";break b;default:u="span"}g.push(kJ({run:U,textLength:H,tag:u,startIndex:c.startIndex,length:c.length}))}U=g}else U=[];F.call(C,O,_.W6(U))}}if(N.styleRuns&&(t==null||!t.noStyleRuns))for(A=_.D(N.styleRuns),C=A.next();!C.done;C=A.next()){U=C=C.value;g=Z;F=t;g=Mhl({extension:_.M(U.styleRunExtensions,PBG),isDarkTheme:g===void 0?!1:g,runColor:U.fontColor});c=U;
B=[];g&&B.push("yt-core-attributed-string--link-inherit-color");c.italic&&B.push("yt-core-attributed-string--italicized");c.underline&&c.strikethrough?B.push("yt-core-attributed-string--underline-strikethrough",zQG(c.underline)):c.underline?B.push("yt-core-attributed-string--underlined",zQG(c.underline)):c.strikethrough&&B.push("yt-core-attributed-string--strikethrough",zQG(c.strikethrough));if(c.baselineOffset){a:switch(c.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":c="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":c="yt-core-attributed-string--baseline-offset-superscript";break a;default:c="yt-core-attributed-string--baseline-offset-unknown"}B.push(c)}B=B.join(" ");c={};if(U.weight||U.weightLabel)c.fontWeight=LLx(U,F==null?void 0:F.isHeadline).toString();g&&(c.color=g);O.push(kJ({run:C,textLength:H,tag:"span",config:{className:B,style:c},startIndex:C.startIndex,length:C.length}))}if(N.decorationRuns)for(A=_.D(N.decorationRuns),C=A.next();!C.done;C=A.next())C=C.value,
F={},C.textDecorator&&(B=C.textDecorator,U=Z===void 0?!1:Z,c=[],g=_.M(B,fC),B=_.M(B,XPg),g?(B=c,c=B.concat,u=[],(U=Mhl({extension:_.M(g.highlightTextDecoratorExtensions,xQS),isDarkTheme:U,runColor:g.backgroundColor}))&&u.push("background-color: "+U+";"),g.backgroundCornerRadius!==void 0&&u.push("border-radius: "+g.backgroundCornerRadius+"px;"),g.leftPadding!==void 0&&u.push("padding-left: "+g.leftPadding+"px;"),g.rightPadding!==void 0&&u.push("padding-right: "+g.rightPadding+"px;"),g.topPadding!==
void 0&&u.push("padding-top: "+g.topPadding+"px;"),g.bottomPadding!==void 0&&u.push("padding-bottom: "+g.bottomPadding+"px;"),c=c.call(B,u)):B&&(g=c,c=g.concat,U=U?"#2ba640":"#107516",U=B.color?hQQ(B.color):U,U=["padding: 2px;","border-top: solid "+U+" 2px;","border-bottom: solid "+U+" 2px;","background: linear-gradient(135deg, "+U+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+U+" 3px, rgba(0, 0, 0, 0) 3px);"],c=c.call(g,U)),U=c.join(" "),F.style$=U,U=C.textDecorator,g=[],B=_.M(U,
XPg),_.M(U,fC)?g.push("yt-core-attributed-string--highlight-text-decorator"):B&&g.push("yt-core-attributed-string--bracket-text-decorator"),U=g.join(" "),F.className=U,F.dir="auto"),U=_.M(C.textDecorator,fC),g=_.M(C.textDecorator,XPg),B=_.M(C.textDecorator,fC),c=_.M(C.textDecorator,XPg),O.push(kJ({run:C,textLength:H,tag:"span",config:F,startIndex:(U==null?void 0:U.startIndex)||(g==null?void 0:g.startIndex)||0,length:(B==null?void 0:B.length)||(c==null?void 0:c.length)||0}));if(N.commandRuns&&(t==
null||!t.noEndpoints))for(Z=_.D(N.commandRuns),A=Z.next();!A.done;A=Z.next())A=A.value,C=Sm9(A,t),O.push(kJ({run:A,textLength:H,tag:"a",config:C,startIndex:A.startIndex,length:A.length}));if(N.attachmentRuns)for(N=_.D(N.attachmentRuns),Z=N.next();!Z.done;Z=N.next()){Z=Z.value;F=C=void 0;A={className:"yt-core-attributed-string--inline-block-mod"};if((F=Z.element)==null?0:F.properties){F=(C=Z.element)==null?void 0:C.properties;C=[];F=_.M(F,kot);if(F==null?0:F.margin)F=F.margin,F.left&&C.push("margin-left: "+
a_(F.left)+";"),F.right&&C.push("margin-right: "+a_(F.right)+";"),F.top&&C.push("margin-top: "+a_(F.top)+";"),F.bottom&&C.push("margin-bottom: "+a_(F.bottom)+";");C=C.length!==0?C.join(" "):void 0;A.style$=C}U=void 0;C={alt:"",preserveHeight:!0,preserveWidth:!0};F=["yt-core-attributed-string__image-element"];if(Z.alignment){a:switch(Z.alignment){case "ALIGNMENT_BASELINE":g="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":g="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:g="yt-core-attributed-string__image-element--image-alignment-bottom"}F.push(g)}if((U=Z.element)==null?0:U.properties)U=[],g=_.M(Z.element.properties,kot),(g==null?0:g.height)&&U.push("height: "+a_(g.height)+";"),(g==null?0:g.width)&&U.push("width: "+a_(g.width)+";"),U=U.length!==0?U.join(" "):void 0,C.style$=U,g=void 0,U=((g=_.M(Z.element.properties,qmv))==null?void 0:g.label)||"",C.alt=U;C.className=F.join(" ");F=void 0;B=g=void 0;U=((B=Z.element)==null?0:B.type)?(g=_.M(Z.element.type,
fGG))==null?void 0:g.image:void 0;O.push(kJ({run:Z,textLength:H,tag:"img",image:U,imageConfig:C,imageWrapperConfig:A,startIndex:Z.startIndex,length:(F=Z.length)!=null?F:0}))}if(t==null?0:t.headerRuns)for(t=_.D(t.headerRuns),N=t.next();!N.done;N=t.next())if(N=N.value,N.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(N.headerMapping)){a:{switch(N.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":Z=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":Z="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":Z="yt-core-attributed-string--heading-3";break a}Z=void 0}O.push(kJ({run:N,textLength:H,tag:"span",config:Z?{className:Z}:void 0,startIndex:N.startIndex,length:N.length}))}return O};
_.rF=function(N){return(N==null?void 0:N.content)!==void 0};
WLt=function(N){return _.rF(N)?N:_.zb(N)};
rKt=function(N){return N.image!==void 0&&N.imageConfig!==void 0};
IGS=function(N,t){return!!t||!(N.commandRuns&&N.commandRuns.length!==0||N.paragraphStyleRuns&&N.paragraphStyleRuns.length!==0)};
lGS=function(N,t){if(t==null?0:t.userInput)for(N=_.D(N),t=N.next();!t.done;t=N.next())if(t=t.value,t.tag!=="a"&&t.tag!=="li"){var O=void 0;(O=t).config||(O.config={});t.config.dir=t.tag==="ul"?_.cY().resolve(_.I_):"auto"}};
QtM=function(N){return function(t){var O=N.run;(O.onTap!==void 0||O.onLongPress!==void 0)&&_.M(O,oNz)&&eQv(t,{loggingDirectives:_.M(O,oNz)})}};
mQG=function(N){return function(t){for(var O in N)(cd[O]||cd[JJ["default"]])(t,O,N[O])}};
vWp=function(N,t){EW4(t);var O={data:null,start:0,end:N.length,parts:[]};t=_.D(t);for(var H=t.next();!H.done;H=t.next())H=H.value,Go9(O,H.startIndex,H.endIndex,H);RQy(N,O);return O};
Go9=function(N,t,O,H){for(var A=_.D(N.parts),Z=A.next();!Z.done;Z=A.next()){Z=Z.value;if(typeof Z==="string")throw Error("gh");if(Z.start<=t&&O<=Z.end){Go9(Z,t,O,H);return}}N.parts.push({data:H,parts:[],start:t,end:O})};
RQy=function(N,t){for(var O=t.parts.length;O>=0;O--){var H=t.parts[O],A=t.parts[O-1],Z=O===t.parts.length?t.end:H.start;A=O===0?t.start:A.end;Z!==A&&t.parts.splice(O,0,N.slice(A,Z));H&&RQy(N,H)}};
EW4=function(N){N.sort(function(t,O){if(t.startIndex<O.startIndex)return-1;if(O.startIndex<t.startIndex)return 1;t=t.endIndex-t.startIndex;O=O.endIndex-O.startIndex;return t>O?-1:O>t?1:0})};
_.JKv=function(N){var t=N.thumbnails;if(t){N={sources:[]};t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;var H={};H.url=O.url;H.width=O.width;H.height=O.height;N.sources.push(H)}return N}};
oWx=function(N,t,O,H){if(!t)return N.length>=1?N[N.length-1]:null;if(H)for(var A=_.D(N),Z=A.next();!Z.done;Z=A.next()){Z=Z.value;var U=void 0,C=(U=Z.url)==null?void 0:U.indexOf(H);if(C!==void 0&&C>=0)return Z}H=_.D(N);for(A=H.next();!A.done;A=H.next())if(A=A.value,A.width&&A.height&&(O&&A.width>=t||!O&&A.height>=t))return A;for(t=N.length-1;t>=0;t--)if(O&&N[t].width||!O&&N[t].height)return N[t];return N[0]};
_.stQ=function(N){var t;return(N=(t=N.sources)==null?void 0:t[0])?N.width/N.height:0};
_.NsM=function(N){if(N.sources){N=_.D(N.sources);for(var t=N.next();!t.done;t=N.next()){t=t.value;var O=void 0;if((O=t.clientResource)==null?0:O.imageName)return t}}};
OPx=function(N){var t={};N=_.M(N.processor,tUO);var O=(N=N==null?void 0:(O=N.imageTint)==null?void 0:O.color)?_.TV(N):void 0;O&&(t.color=O);return t};
HPM=function(N){var t;if((t=N.clientResource)!=null&&t.imageColor)return _.TV(N.clientResource.imageColor)};
_.ZPv=function(N,t,O,H,A,Z,U){if(!t||t.length===0||t[0].clientResource)return null;if(O&&t[0].url)return t[0].url;H===void 0&&(H=!0);if(H){var C;N=At9*(A||(N==null?void 0:(C=N.getBoundingClientRect())==null?void 0:C.width)||0)}else{var F;N=At9*(Z||(N==null?void 0:(F=N.getBoundingClientRect())==null?void 0:F.height)||0)}t=oWx(t,N,H,U);return(t==null?0:t.url)?t.url:(t==null?0:t.imageData)?t.imageData:null};
VUG=function(N,t,O){O=O?[O]:[];N.opacity&&O.push("opacity: "+N.opacity+";");t&&N.placeholderColor?(N=_.TV(N.placeholderColor),O.push("background-color: "+N+";")):O.push("background-color: transparent;");return O.join(" ")};
DZl=function(N,t,O,H,A){var Z=["ytCoreImageHost"];t&&Z.push(t);O||Z.push("ytCoreImageFillParentHeight");H||Z.push("ytCoreImageFillParentWidth");switch(N.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":Z.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":Z.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":Z.push("ytCoreImageContentModeCenter");break;default:Z.push("ytCoreImageContentModeScaleToFill")}N.flipForRtlLayout&&Z.push("ytCoreImageFlipRtl");
switch(A){case "TOP_START":var U;Z.push(((U=document.body)==null?void 0:U.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return Z.join(" ")};
C6y=function(N){var t;if(N==null?0:(t=N.clientResource)==null?0:t.imageName){var O;N=(O=N.clientResource)==null?void 0:O.imageName;a:{switch(N){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":O="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":O="yt-logos-ext:yt-logo-updated";break a}O=void 0}return O||UZl.get(N)||N}};
dZp=function(N){return _.h("mweb_wiz_skip_render")?Koy(N):FoQ(N)};
Koy=function(N){return function(t){var O=Rcg("wink-root");AO=tO.lastChild;v6G();SMG(O,_.d(N,t))}};
FoQ=function(N){var t=t===void 0?!1:t;return function(O){if(!t||!_.h("mweb_skip_keto_to_c3_if_no_data")||O.data!==void 0){var H=cZ(!1);try{var A=O.children;_.h("mweb_render_outside_patch_killswitch")||tO?A?Bd(_.d(N,O,A)):Bd(_.d(N,O)):_.J_(new _.fF("ketoToC3 called outside of a patch",{tagName:N.TAG_NAME}))}finally{cZ(H)}}}};
gdN=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
BsN=function(N,t){N.onViewportEntered=t;ytO.observe(N)};
ct4=function(){var N={rootMargin:"10%",threshold:.01};_.h("mweb_enable_set_io_root_to_null_safari")?N.root=null:_.h("mweb_enable_set_io_root_to_body_safari")&&(N.root=document.body);return new IntersectionObserver(function(t,O){t.filter(function(H){return H.intersectionRect.height>0}).forEach(function(H){H=H.target;
if(!_.h("mweb_enable_only_update_image_when_connected")||H.isConnected!==!1){var A;(A=H.onViewportEntered)==null||A.call(H);O.unobserve(H)}})},N)};
$Z9=function(N,t,O,H,A){function Z(){if(H){var C=H.loadedClass,F=H.notifyOnUnloaded;C&&_.lb(N,C);F&&N.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function U(){var C=O(t,N);C&&N.getAttribute("src")!==C&&(_.h("mweb_enable_only_update_image_when_connected")&&N.isConnected===!1||C===N.src||(N.src=C),Z())}
A=A===void 0?!0:A;N.removeAttribute("src");Z();t&&(A?BsN(N,U):U())};
jZv=function(N,t,O){if(!t)return!1;t=O(t,N);O=N.getAttribute("src");return t&&t===O&&N.complete};
iPG=function(N,t){for(var O in t)O==="className"?N.className=t[O]:(cd[O]||cd[JJ.default])(N,O,t[O])};
uXM=function(N,t,O,H){dZp(_.Qt)({contentMode:t.contentMode,loadedClass:t.loadedClass,isPreloaded:t.isPreloaded,notifyOnLoaded:t.notifyOnLoaded,notifyOnUnloaded:t.notifyOnUnloaded,preferredThumbnail:t.preferredThumbnail,preserveHeight:t.preserveHeight,preserveWidth:t.preserveWidth,objectPosition:t.objectPosition,targetWidth:t.targetWidth,targetHeight:t.targetHeight,shouldShowPlaceholder:t.shouldShowPlaceholder,useWidth:t.useWidth,isToggled:t.isToggled,alt:t.alt,className:t.className,onerror:t.onerror,
onload:t.onload,style$:t.style$,color:t.color,width:t.width,height:t.height,"aria-hidden$":t["aria-hidden$"],draggable:t.draggable,"data-disabled$":t["data-disabled$"],data:N,callback:O,renderLazy:H===void 0?!0:H,hideOn404:!1})};
h1Q=function(N,t,O){O=O===void 0?!1:O;var H=N.sources!==void 0?N:_.JKv(N);if(H){var A=t.onload;t.onload=function(g){var B=g.target;O&&B.naturalWidth===120||_.mw(B,"ytCoreImageLoaded");t.notifyOnLoaded&&B.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));A==null||A(g)};
t.targetWidth&&t.preserveWidth&&(t.width=t.targetWidth);t.targetHeight&&t.preserveHeight&&(t.height=t.targetHeight);var Z=_.NsM(H),U=Z&&C6y(Z),C=OPx(H);if(U)return(N=HPM(Z)||C.color)&&(t.color=N),{type:"icon",iconName:U,config:Object.assign({},t,t.alt?{}:{"aria-hidden$":"true"},{"aria-label$":t.alt,role:"img"})};if(N.sources===void 0){t.alt=N.accessibility&&N.accessibility.accessibilityData&&N.accessibility.accessibilityData.label||t.alt;t.style$=VUG(N,t.shouldShowPlaceholder,t.style$);var F;t.isPreloaded=
!((F=_.M(N,SVp))==null||!F.isPreloaded)}t.contentMode&&!H.contentMode&&(H.contentMode=t.contentMode);t.className=DZl(H,t.className,t.preserveHeight,t.preserveWidth,t.objectPosition);t.loadedClass="ytCoreImageLoaded";return{type:"image",image:H,config:t}}};
_.E4=function(){var N=_.E1.apply(0,arguments);return _.yM(MUz,function(t){var O=N.map(function(H){return H==null?void 0:H(t)});
return function(){return void O.forEach(function(H){return void(H==null?void 0:H())})}})};
_.Gb=function(N){if(N.length===0)return Shy(N,"p");var t=_.D(Shy({source:function(){return N()},
computation:function(A,Z){return(Z==null?0:Z.value)?N(Z.value):A}},"q")),O=t.next().value,H=t.next().value;
t=t.next().value;return[O,H,t]};
bPG=function(N,t){var O=t==null?void 0:t.initial;return _.aa(function(){_.Qo(!0);return O=N(O)},{equals:t==null?void 0:t.isEqual},"rSlKsc")};
ptx=function(N,t){if(N===t)return!0;if(N===void 0||t===void 0)return!1;var O,H,A,Z,U,C,F,g;return N.content===t.content&&((O=N.styleRuns)==null?void 0:O.length)===((H=t.styleRuns)==null?void 0:H.length)&&((A=N.commandRuns)==null?void 0:A.length)===((Z=t.commandRuns)==null?void 0:Z.length)&&((U=N.attachmentRuns)==null?void 0:U.length)===((C=t.attachmentRuns)==null?void 0:C.length)&&((F=N.decorationRuns)==null?void 0:F.length)===((g=t.decorationRuns)==null?void 0:g.length)};
YVG=function(N,t){if(N){var O=WLt(N);if(O!=null&&O.content)if(_.h("attr_string_reactive_c3"))t=t||{},t.contentAsserted=!0,dZp(LoG)({text:O,config:t});else{var H;N=IGS(O,(H=t)==null?void 0:H.ariaLabel);var A;H=N?(A=t)==null?void 0:A.ariaLabel:null;A=N?"text":null;var Z;vNN("span",{className:pPv(O,t),dir$:((Z=t)==null?0:Z.userInput)?"auto":void 0,"aria-label$":H,role$:A},function(){if(O.styleRuns||O.commandRuns||O.attachmentRuns||O.decorationRuns||O.paragraphStyleRuns){var U=nWx(O,t);lGS(U,t);U=vWp(O.content,
U);U=_.D(U.parts);for(var C=U.next();!C.done;C=U.next())z1N(C.value)}else H0g(O.content)})}}};
z1N=function(N){typeof N==="string"?H0g(N):rKt(N.data)?vNN("span",N.data.imageWrapperConfig,function(){uXM(N.data.image,N.data.imageConfig)}):vNN(N.data.tag,N.data.config,function(t){QtM(N.data)(t);
t=_.D(N.parts);for(var O=t.next();!O.done;O=t.next())z1N(O.value)})};
TsN=function(N){return N.parts.map(a2x)};
a2x=function(N){if(typeof N==="string")return N;N=rKt(N.data)?_.d("span",{el:_.E4(mQG(N.data.imageWrapperConfig))},_.d(_.Qt,Object.assign({},{data:N.data.image},N.data.imageConfig))):_.d(N.data.tag,{el:_.E4(QtM(N.data),mQG(N.data.config))},N.parts.map(a2x));return wu(N)};
wtM=function(N,t){return N===t?!0:N===void 0||t===void 0?!1:N.noStyleRuns===t.noStyleRuns&&N.noLinkColor===t.noLinkColor&&N.noEndpoints===t.noEndpoints&&N.headerRuns===t.headerRuns&&N.isOverlay===t.isOverlay&&N.linkInheritColor===t.linkInheritColor&&N.userInput===t.userInput&&N.isHeadline===t.isHeadline};
e1l=function(N){return function(){var t,O,H,A,Z,U,C,F,g,B,c,u,S,b;return{ariaLabel:(t=N.ariaLabel)==null?void 0:t.call(N),className:(O=N.className)==null?void 0:O.call(N),ellipsisTruncate:(H=N.ellipsisTruncate)==null?void 0:H.call(N),isOverlay:(A=N.isOverlay)==null?void 0:A.call(N),linkInheritColor:(Z=N.linkInheritColor)==null?void 0:Z.call(N),noEndpoints:(U=N.noEndpoints)==null?void 0:U.call(N),noStyleRuns:(C=N.noStyleRuns)==null?void 0:C.call(N),noLinkColor:(F=N.noLinkColor)==null?void 0:F.call(N),
noPreWrap:(g=N.noPreWrap)==null?void 0:g.call(N),noWrap:(B=N.noWrap)==null?void 0:B.call(N),skipOnClick:(c=N.skipOnClick)==null?void 0:c.call(N),userInput:(u=N.userInput)==null?void 0:u.call(N),headerRuns:(S=N.headerRuns)==null?void 0:S.call(N),isHeadline:(b=N.isHeadline)==null?void 0:b.call(N)}}};
Xty=function(N,t){N=new P6G(N,t);_.R0(N);throw N;};
xZv=function(N,t,O){var H=IVS(N);N._numRenders=0;try{var A=_.r5Q(function(){return _.d(t,Object.assign({},O))})}catch(U){var Z=function(C){C.args||(C.args=[]);
C.args.push("Error in web component wrapper");C.args.push(N.tagName.toLowerCase());return C};
_.vX(U instanceof Error?Z(U):new P6G("Wiz rendering error",N.tagName.toLowerCase()));throw U;}finally{IVS(H)}return A};
_.o_=function(N,t,O){function H(B){var c={};B=_.D(B);for(var u=B.next();!u.done;u=B.next()){u=u.value;var S=void 0,b=void 0,z=void 0,w=_.Kv((z=(b=(S=u).getAttribute)==null?void 0:b.call(S,"slot"))!=null?z:"children");if(S=c[w])S.push(u);else if(w in Z||w==="children")c[w]=[u]}B=_.D(Object.keys(c));w=B.next();for(u={};!w.done;u={content$jscomp$59:void 0},w=B.next())w=w.value,w!=="children"&&(u.content$jscomp$59=c[w],c[w]=function(P){return function(){return P.content$jscomp$59}}(u));
return c}
O=O===void 0?{}:O;var A,Z=(A=O.props)!=null?A:{};lVS.add(t);var U=kYv();A=function(){var B=U.apply(this,arguments)||this;B.rawProps={};B.queuingRender=!1;B.dispose=function(){};
B.isWebComponentWrapper=!0;B.isReparenting=!1;B.hasRendered=!1;return B};
_.p(A,U);A.prototype.render=function(){this.hasRendered=!0;for(var B=_.D([].concat(_.W6(this.attributes))),c=B.next();!c.done;c=B.next())c=c.value,c.name!=="slot"&&c.name!=="hidden"&&this.removeAttribute(c.name);B=Object.assign({},this.componentProps,this.slotProps);c=_.D(xZv(this,N,B));B=c.next().value;c=c.next().value;!(B[0]instanceof Element)||B.length>1?Xty("Wrapped Wiz components must return a single root element.",t):(B=B[0].tagName.toLowerCase(),B!==t&&Xty("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(B+" !== '"+t),t),this.dispose=c)};
A.prototype.setUpProps=function(){for(var B=this.rawProps,c=this.attributes,u=_.D(Object.keys(Z)),S=u.next();!S.done;S=u.next()){S=S.value;var b=void 0;((b=this)==null?0:b[S])&&this[S]!==qV4&&B[S]===void 0&&(B[S]=this[S],(b=Object.getOwnPropertyDescriptor(this.constructor.prototype,S))&&Object.defineProperty(this,S,b))}u=_.D(c);for(S=u.next();!S.done;S=u.next()){b=S.value;S=_.Kv(b.name);var z=S==="class"&&!c.getNamedItem("class-name");if(S in Z||z)b=b.value===""||b.value==="true"?!0:b.value==="false"?
!1:isNaN(Number(b.value))?b.value:Number(b.value),S!=="class"||B.className?B[S]=b:B.className=b}c={};for(var w in Z)Z[w]!==_.R_&&Z[w]!==f2v&&(B[w]instanceof Function&&Xty("Function props must be configured as STATIC, not SIGNAL.",t),S=_.D(_.b$(B[w],void 0,"thC4wf")),u=S.next().value,S=S.next().value,c[w]=S,B[w]=u);B=_.D([B,c]);this.componentProps=B.next().value;this.setters=B.next().value;this.slotProps=H(this.childNodes)};
A.prototype.connectedCallback=function(){EPl.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in Z&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
A.prototype.disconnectedCallback=function(){if(!EPl.has(this)){var B;a:{if(_.vV)for(B=this;B;){if(_.Jd.has(B)){B=!0;break a}B=B.parentElement}B=!1}if(B)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){B=_.D([].concat(_.W6(this.attributes)));for(var c=B.next();!c.done;c=B.next()){c=c.value;var u=void 0;c.name==="slot"||c.name==="hidden"&&((u=O.unsafeExternallySettableAttributes)==null?0:u.has("hidden"))||this.removeAttribute(c.name)}}this.innerText="";kAt(this)}}};
A.prototype._setPendingPropertyOrPath=function(){};
A.prototype.notifyPath=function(){};
_.cv.Object.defineProperties(A.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var C=_.D(Object.keys(Z)),F=C.next(),g={};!F.done;g={prop$jscomp$109:void 0},F=C.next())g.prop$jscomp$109=F.value,F=void 0,((F=O.legacyPolymer)==null?0:F.forwardHostProps)&&esv.has(g.prop$jscomp$109)||Object.defineProperty(A.prototype,g.prop$jscomp$109,{set:function(B){return function(c){var u=this;EPl.has(this)||(this.setters?Tg(function(){var S,b;return void((b=(S=u.setters)[B.prop$jscomp$109])==null?void 0:b.call(S,c))}):(this.rawProps[B.prop$jscomp$109]=c,this.queuingRender&&B.prop$jscomp$109===
"data"&&c!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(g),
get:nd9.has(g.prop$jscomp$109)?void 0:function(){return qV4}});
customElements.define(t,A)};
_.WoO=function(N,t){return(N=_.s4(N,t))?_.f8(_.Id(N)):null};
_.Ne=function(N){if(N=_.s4(N,Number.MAX_VALUE,void 0,"width"))return _.Id(N)};
_.s4=function(N,t,O,H){H=H===void 0?"width":H;if(!N||!N.length)return null;if(_.h("kevlar_tuner_should_always_use_device_pixel_ratio")){var A=window.devicePixelRatio;_.h("kevlar_tuner_should_clamp_device_pixel_ratio")?A=Math.min(A,_.uP("kevlar_tuner_clamp_device_pixel_ratio")):_.h("kevlar_tuner_should_use_thumbnail_factor")&&(A=_.uP("kevlar_tuner_thumbnail_factor"));rty=A}else rty||(rty=window.devicePixelRatio);A=rty;_.h("kevlar_tuner_should_always_use_device_pixel_ratio")?t*=A:A>1&&(t*=A);if(_.h("kevlar_tuner_min_thumbnail_quality"))return N[0].url||
null;A=N.length;if(_.h("kevlar_tuner_max_thumbnail_quality"))return N[A-1].url||null;if(O)for(var Z=0;Z<A;Z++)if(N[Z].url.indexOf(O)>=0)return N[Z].url||null;for(O=0;O<A;O++)if(N[O][H]>=t)return N[O].url||null;for(t=A-1;t>0;t--)if(N[t][H])return N[t].url||null;return N[0].url||null};
QZO=function(){t4.size?setTimeout(function(){Oi(I24)},0):l2v=0};
I24=function(){var N=(0,_.jg)(),t=null,O=!1;t4.forEach(function(A){A.loaded=!0;A.loadTime=N;A.pendingPaint=!1;var Z=mZM.get(A);Z&&Z.resolve(N);t=A;O||!A.ftlEligible&&A.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(O=!0)});
var H;((H=t)==null?0:H.markDirty)&&t.markDirty();t4.clear();l2v=0;O&&Edg(N)};
GYp=function(N){t4.add(N);N.pendingPaint=!0;l2v||(l2v=_.HH(_.GB,QZO))};
R14=function(N){N.loaded=!1;N.loadTime=Infinity;var t=mZM.get(N);t&&(t.reject(Error("mh")),mZM.delete(N));N.pendingPaint&&(t4.delete(N),N.pendingPaint=!1)};
_.vdM=function(N){var t=N.indexOf(":");return t===-1?{originalName:N}:{originalName:N.substring(0,t),datasyncId:N.substring(t+1)}};
_.od4=function(){return _.K(function(N){if(Jtv!==void 0)return N.return(Jtv);Jtv=new Promise(function(t){var O;return _.K(function(H){switch(H.nextAddress){case 1:return _.Mo(H,2),H.yield(_.A4.open("test-only"),4);case 4:return H.yield(_.A4.delete("test-only"),5);case 5:_.Do(H,3);break;case 2:if(O=_.ax(H),O instanceof Error&&O.name==="SecurityError")return t(!1),H.return();case 3:t("caches"in window),_.Ty(H)}})});
return N.return(Jtv)})};
tXy=function(){return _.K(function(N){if(N.nextAddress==1)return N.yield(_.od4(),2);if(!N.yieldResult)return N.return(void 0);sZQ||(sZQ=new NUy);return N.return(sZQ)})};
OaN=function(N){var t,O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:return Z.yield(tXy(),2);case 2:t=Z.yieldResult;if(!t)throw Error("oh");return Z.yield(t.open("yt-player-local-img"),3);case 3:return O=Z.yieldResult,Z.yield(O.match(N),4);case 4:H=Z.yieldResult;if(!H)throw Error("ph");return Z.yield(H.blob(),5);case 5:return A=Z.yieldResult,Z.return(A)}})};
HaQ=function(N,t){for(var O in N)if(N.hasOwnProperty(O)&&t[O])return O;return null};
AUx=function(N){return"stamp"+N.replace("-","_")+"_"};
Zat=function(N){var t=N.match(/\[\[([\w\.]+)\]\]/);if(t&&t.length>1)return t[1];_.R0(Error("rh`"+N));return null};
VXx=function(N){return N===void 0?_.vZ("REUSE_COMPONENTS",!1):N||!1};
C79=function(N,t,O){O&&(t.is?(DWM.has(t)&&(N=DWM.get(t),O=N.listener,delete t[N.property],O.type==="element"&&t.removeEventListener(O.eventName,O.handler),DWM.delete(t)),UWO(t)):t.__proto__==HTMLElement.prototype&&(t=new _.fF("Rendererstamper removed a non custom element","Stamper: "+N+" element: "+(t&&t.nodeName)),_.J_(t)))};
KUl=function(N,t,O,H){var A=t.node?t.node:t;_.O6(O).parentNode===A&&(t.removeChild(O),C79(N,O,H));if(N=ZN.get(O))ZN.delete(O),_.GB.cancelJob(N);O.hidden=!1};
FUv=function(N,t,O,H){if(t&&t.children&&(O=t.children[O]))if(_.vZ("DEFERRED_DETACH"))for(;O&&!ZN.has(O);){var A=N,Z=t,U=O,C=H;U.hidden=!0;A=_.WX(_.GB,KUl.bind(null,A,Z,U,C),0);ZN.set(U,A);O=O.nextElementSibling}else for(;(U=t.lastElementChild)&&(t.removeChild(U),C79(N,U,H),U!=O););};
_.V7=function(){for(var N=_.E1.apply(0,arguments),t=!0,O=_.D(N),H=O.next();!H.done;H=O.next())if(typeof H.value!=="string"){t=!1;break}return t?N.join(" ").trim()||void 0:function(){for(var A="",Z=_.D(N),U=Z.next();!U.done;U=Z.next())if(U=U.value,typeof U==="function"&&(U=U()),U)if(typeof U==="string")A+=" "+U;else for(var C in U)if(U.hasOwnProperty(C)){var F=U[C];typeof F==="function"&&(F=F());F&&(A+=" "+C)}A=A.trim()||void 0;return _.Qo(A)}};
_.dW9=function(N,t){return _.CM(N.entities,"markersEngagementPanelSyncEntity",t)};
_.DN=function(N,t){return _.CM(N.entities,"playerStateEntity",t)};
gz9=function(N,t){return _.CM(N.entities,"fantasyWinProbabilityEntity",t)};
yUM=function(N,t){return _.CM(N.entities,"fantasyTeamEntity",t)};
BUt=function(N,t){return _.CM(N.entities,"fantasyPlayerEntity",t)};
cUM=function(N,t){return _.CM(N.entities,"booleanEntity",t)};
$Wp=function(N,t){return _.CM(N.entities,"qrCodeEntity",t)};
jeQ=function(N){return _.CM(N.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
uGM=function(N){var t;return(t=iat[N])!=null?t:"EVENT_SPAN_TYPE_UNKNOWN"};
SUl=function(N){var t=N.nodeName;if(N.id)return t+="#"+N.id;if(N.classList)for(var O=_.D(N.classList),H=O.next();!H.done;H=O.next())t+="."+H.value;N.parentElement&&(t=SUl(N.parentElement)+" > "+t);return t};
hXS=function(N){return function(t){var O=uGM(t.type);return O==="EVENT_SPAN_TYPE_UNKNOWN"?N(t):RX("event",{type:O,nodepath:t.target instanceof Element?SUl(t.target):void 0},function(){return N(t)})}};
_.Ui=function(N){N&&GT("event")&&(N=hXS(N));return c54(function(t){var O,H=(O=N)==null?void 0:O(t);return typeof H==="boolean"?H:!0})};
CE=function(N){return function(){return N()?N():void 0}};
LUt=function(N){var t=_.Fy("animated-rolling-character"),O=PON(),H=lO(N.character)||lO(N.previousCharacter),A=_.D(PFO()),Z=A.next().value,U=A.next().value;_.Q8(function(){if(window.ResizeObserver&&_.h("web_fix_rolling_numbers_zoom_safari")){var C=new _.KE(function(){var g,B,c=Math.round(((B=(g=t.value.querySelector("div"))==null?void 0:g.getBoundingClientRect().height)!=null?B:0)*100)/100;c&&U(c)},500),F=new ResizeObserver(function(){C.fire()});
F.observe(t.value);return function(){F.disconnect();C.dispose()}}});
bvv(function(){var C=_.h("web_fix_rolling_numbers_zoom_safari")?Z:N.marginMultiplier;if(C){var F;(F=O.value)==null||F.cancel();H?(F=N.previousCharacter?Number(N.previousCharacter)+10:N.rollUp?0:30,N.shouldAnimate||(F-=MXG(N,F))):(F=N.rollUp?0:2,N.shouldAnimate||(F-=N.rollUp?-1:1));t.value.style.marginTop="-"+F*C+"px";N.shouldAnimate?O.value=baG(t.value,N,F,H,C):t.value.style.display=N.character?"":"none"}});
return _.d("animated-rolling-character",{el:t,class:"animatedRollingCharacterHost"},BrO(H,function(){for(var C=[],F=1;F<30;F++)C.push(_.d("div",null,F%10));return _.d(_.BZ,null,_.d("div",null,"\u00a0"),C,_.d("div",null,"\u00a0"))},function(){return pNN(N.character)}))};
pNN=function(N){return _.d(_.BZ,null,_.d("div",null,"\u00a0"),_.d(_.BZ,null,BrO(!N||_.Dp(N),function(){return _.d("div",null,"\u00a0")},function(){return _.d("div",null,N)})),_.d("div",null,"\u00a0"))};
baG=function(N,t,O,H,A){O=new Animation(new KeyframeEffect(N,[{transform:"translateY(0px)"},{transform:"translateY("+(H?MXG(t,O):t.rollUp?-1:1)*A+"px)"}],zXO),document.timeline);t.character?(N.style.display="",O.onfinish=null):O.onfinish=function(){N.style.display="none"};
O.play();return O};
MXG=function(N,t){var O=Number(N.character)+10;if(N.previousCharacter)if(N.character){var H=Number(N.character),A=Number(N.previousCharacter);N=N.rollUp?A<H?O:O+10:A<H?O-10:O}else N=N.rollUp?30:0;else N=N.character==="0"?O:N.rollUp?O-10:O+10;return t-N};
YUv=function(N){return function(t){var O={},H;for(H in t){var A=void 0,Z=void 0;((A=void 0)==null?0:(Z=A.callbacks)==null?0:Z[H])||(O[H]=t[H])}return _.d(Wb9,null,function(){for(var U in O)t[U]=_.Qo(O[U]);t.disableReactiveLogging=!0;return _.d(N,Object.assign({},t))})}};
wNx=function(N,t,O,H,A,Z,U){O=new Animation(new KeyframeEffect(N,[{transform:"translateY(0px)"},{transform:"translateY("+(Z?a8x(t,O,H,A):H?-1:1)*U+"px)"}],TUy),document.timeline);t?(N.style.display="",O.onfinish=null):O.onfinish=function(){N.style.display="none"};
O.play();return O};
a8x=function(N,t,O,H){var A=Number(N)+10;t?N?(N=Number(N),t=Number(t),O=O?t<N?A:A+10:t<N?A-10:A):O=O?30:0:O=N==="0"?A:O?A-10:A+10;return H-O};
P7S=function(N){var t=PON(),O=PON();YlS(function(){t.value=N.numberText;O.value=N.numberValue},[N.numberText]);
var H=N.fontSizeMultiplier?N.heightPx*N.fontSizeMultiplier:N.heightPx,A=eng(function(){if(N.numberText){var U=N.numberText;var C=N.forceRollUp||!O.value||!N.numberValue||O.value<N.numberValue;var F=!!N.shouldAnimate,g=t.value,B=[],c=0,u=0,S=(g?g.replace(/\D/g,"").length:0)-(U?U.replace(/\D/g,"").length:0);g=g?g.split(/(\d)/).filter(Boolean):[];for(U=U.split(/(\d)/).filter(Boolean);S<0;){var b=U[u];B.push({character:b,rollUp:C,marginMultiplier:H,shouldAnimate:F});u++;lO(b)&&S++}for(;c<S;)b=g[c],B.push({previousCharacter:b,
rollUp:C,marginMultiplier:H,shouldAnimate:F}),c++,lO(b)||S++;for(;u<U.length;)S=U[u],b=g[c],lO(S)===lO(b)?(u++,c++):lO(S)?(c++,S=void 0):lO(b)&&(u++,b=void 0),B.push({character:S,previousCharacter:b,rollUp:C,marginMultiplier:H,shouldAnimate:F});C=B}else C=[];return C},[N.numberText]),Z=N.numberText?["height: "+H+"px;",
"line-height: "+N.heightPx+"px;"].join(" "):"";return _.d("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:Z,dir:"ltr","aria-hidden":"true"},A.map(function(U){return _.d(eX4,Object.assign({},U))}))};
XNg=function(N){switch(N){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.xWz=function(N,t){if(!N&&!t)return"medium";N=Math.max(N||0,t||0);return N>=256?"large":N>=96?"medium":"small"};
kKQ=function(N){switch(N){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
qUQ=function(N){return new KeyframeEffect(N,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
f8l=function(N){return new KeyframeEffect(N,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.FM=function(N){return function(){var t="",O;for(O in N){for(var H=N[O];typeof H==="function";)H=H();H!==void 0&&H!==null&&(t+="; "+O+": "+H)}return t.length>0?_.Qo(t.slice(2)):_.Qo()}};
nzM=function(N){switch(N){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
WU4=function(N,t){if(t)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(N)switch(N){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
mWv=function(N,t,O,H,A,Z,U){var C=rUQ(N),F=C.disabled,g=C.iconPosition,B=C.style,c=C.focused,u=function(){return!!z()&&g()==="icon-only"},S=function(){return!!z()&&g()==="icon-only-40"},b=function(){return!!z()&&g()==="icon-with-label"},z=function(){return!!t||!(H==null||!H())};
return{type:function(){return B()==="call-to-action-inverse"?"text":B()==="overlay-dark"&&N().type!=="filled"&&N().type!=="tonal"?"tonal":N().type},
shouldFocus:function(){return(c()||(Z==null?void 0:Z()))&&!F()},
hasIconLeading:function(){return!!z()&&g()==="leading"},
hasIconTrailing:function(){return!!z()&&g()==="trailing"},
hasIconLeadingTrailing:function(){return!!z()&&!!(O||A!=null&&A())&&g()==="leading-trailing"},
hasIconOnly:u,hasIconOnly40:S,hasIconWithLabel:b,iconButton:function(){return u()||S()||b()},
visiblyDisabled:function(){return(F()?"disabled":N().state)==="disabled"||F()},
overrideSmallSizeIcon:function(){return!N().ignoreIconSizeOverride&&I8v(N(),z())},
iconToRender:t?t:function(){return _.d(_.dq,{icon:H,gradientColor:function(){var w;return(w=N().customColors)==null?void 0:w.iconGradientColor},
size:function(){return l8N(N(),!0,N().ignoreIconSizeOverride)},
active:function(){return N().toggled},
iconFilter:function(){return Qez(N())},
animateIcon:U})},
secondaryIconToRender:O?O:function(){return _.d(_.dq,{icon:A,size:function(){return l8N(N(),!0,N().ignoreIconSizeOverride)},
active:function(){return N().toggled},
iconFilter:function(){return Qez(N())}})}}};
rUQ=function(N){return{size:function(){return N().size},
style:function(){return N().style},
focused:function(){return N().focused},
disabled:function(){return N().disabled},
onTap:function(t){var O,H;return(H=(O=N()).onTap)==null?void 0:H.call(O,t)},
alignByText:function(){return N().alignByText},
aTagConfig:function(){return N().aTagConfig},
customColors:function(){return N().customColors},
segmentedPosition:function(){return N().segmentedPosition},
toggled:function(){return N().toggled},
toggleable:function(){return N().toggleable},
accessibilityLabel:function(){return N().accessibilityLabel},
onToggle:function(t){var O,H;return(H=(O=N()).onToggle)==null?void 0:H.call(O,t)},
iconPosition:function(){return N().iconPosition},
oneOffCustomTextWrap:function(){return N().oneOffCustomTextWrap},
disableTextEllipsis:function(){return N().disableTextEllipsis},
disableBackdropFilter:function(){return N().disableBackdropFilter},
tooltipText:function(){return N().tooltipText},
tooltipShape:function(){return N().tooltipShape},
ariaHidden:function(){return N().ariaHidden},
tabIndex:function(){return N().tabIndex},
buttonText:function(){return N().buttonText},
formattedButtonText:function(){return N().formattedButtonText},
animatedTextProps:function(){return N().animatedTextProps},
onClickRateLimitMs:function(){return N().onClickRateLimitMs}}};
I8v=function(N,t){t=(N.iconPosition==="icon-only"||N.iconPosition==="icon-only-40"||N.iconPosition==="icon-with-label")&&t;return!N.segmentedPosition&&t&&N.size==="S"};
l8N=function(N,t,O){switch(N.size){case "XS":return 16;case "S":return!O&&I8v(N,t)?24:16;default:return 24}};
Ezg=function(N){switch(N){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
GKN=function(N){switch(N){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
RXt=function(N){switch(N){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
Qez=function(N){if(N.style==="overlay-dark"&&N.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
gq=function(N){return N&&N.endsWith("px")?Number(N.slice(0,-2)):0};
oz9=function(N,t){var O=_.D(_.Gb(function(){var A,Z;return(Z=N())!=null?Z:t==null?void 0:(A=t())==null?void 0:A.text})),H=O.next().value;
return[function(A){var Z=_.aa(function(){var F;return Object.assign({},{location:"bottom",offset:16,delay:1},t==null?void 0:t(),{text:(F=H())!=null?F:""})},void 0,"IJU38d");
_.rp(function(){var F=Z();_.MY(function(){_.GB.addJob(function(){y7.notify(A,F)},4)})},"WlsgZc");
var U=function(){vzQ(A,Z())},C=function(){JU9()};
A.addEventListener("mouseenter",U);A.addEventListener("focus",U);A.addEventListener("mouseleave",C);A.addEventListener("blur",C);A.addEventListener("tap",C);_.Ia(function(){A.removeEventListener("mouseenter",U);A.removeEventListener("mouseleave",C);A.removeEventListener("focus",U);A.removeEventListener("blur",C);A.removeEventListener("tap",C);JU9()})},
O.next().value]};
NKQ=function(N,t){if(!UH){var O;M4G(function(){return O=fEG(N,t)});
return O}N.parent=sep();return fEG(N,t)};
sep=function(){var N=_.Kt(UH||void 0,xUv);return _.izG(N)?void 0:N};
BH=function(N,t){_.eF(N,Object.assign({},t,{forceClickLogging:!0}))};
tK9=function(N){switch(N){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
H3l=function(N,t){var O=_.wF(N==null?void 0:N.onTap),H={};O&&(H.getClickedVisualElement=function(){var A;return O39(N,O,t==null?void 0:(A=t.value)==null?void 0:A.visualElement)});
H=_.PV({elementsCommand:N.onTap,forceNewState:!0,additionalCommandArgs:H});return Xr(H)?H:void 0};
AoN=function(N,t,O,H){BH(N,Object.assign({},{form:{element:t,event:O}},H))};
Z3g=function(N,t,O,H,A){var Z=void 0;return function(U){var C=_.wF(O?N==null?void 0:N.onDisabledTap:N==null?void 0:N.onTap);if(C){var F;Z=(F=Z)!=null?F:t==null?void 0:t.value;if(C)if(_.h("web_button_vm_click_client_ve_killswitch"))AoN(C,Z,U);else{var g;F=O39(N,C,(g=Z)==null?void 0:g.visualElement);if(A){AoN(C,A,U,{clickedVisualElement:F,form:{element:A}});return}AoN(C,Z,U,{clickedVisualElement:F})}}H&&H(U)}};
O39=function(N,t,O){t=t==null?void 0:t.clickTrackingParams;var H,A;N=N==null?void 0:(H=N.loggingDirectives)==null?void 0:(A=H.clientVeSpec)==null?void 0:A.uiType;if(O&&N&&!t)return O};
VKt=function(N){switch(N){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
Dvg=function(N){switch(N){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
Uvx=function(N){switch(N){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
CTS=function(N){switch(N){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
_.cH=function(N){return _.aa(function(){mXM()();return Rqx(N)},{debugName:"d8B62c"},"DEXkhd")};
KcO=function(N,t){return _.CM(N.entities,"engagementToolbarStateEntityPayload",t)};
dvz=function(N){(N=_.ib(N))&&_.FcM(N)};
_.FcM=function(N){var t=_.z8();t&&_.nJ(t,N)};
giN=function(N,t,O){_.sl(N,"yt-open-popup-action",[t,O||N])};
yoN=function(N,t){var O=_.mD(N,"endpoint"),H=_.mD(N,"action");return(O=H?H:O)&&t&&(O=t.navigationEndpointPopupMap[O])&&(N=_.s2(O,N),(O=_.mD(N,"renderer"))&&t.supportedPopups.hasOwnProperty(O))?{openPopupAction:{popupType:t.popupTypeMap[O],popup:N}}:null};
BKl=function(N,t,O,H){if(H){var A;O=O==null?void 0:(A=O.data)==null?void 0:A.contents;(A=O instanceof Array&&O.length?O[0]:O)&&(O=_.mD(A,"renderer"))&&H.supportedPopups.hasOwnProperty(O)&&(t.stopPropagation(),giN(N,{openPopupAction:{popupType:H.popupTypeMap[O],popup:A}}))}};
jcg=function(N,t,O,H){H=H===void 0?!1:H;var A=co4(t);if(A){A.href&&Xi(A.href);var Z=t.button;Z=Z!==void 0?Z===0&&!$V(t):!$V(t);A.data&&Z&&$vp(N,A,t,O,H)}};
$vp=function(N,t,O,H,A){A=A===void 0?!1:A;var Z=_.uP("pbj_navigate_limit",-1)===0;i34(t);_.cY().resolve(_.BY(Ay));var U=t.data;if(Object.keys(U).length!==0)if(!_.h("unplugged_web_disable_actions_for_cec_endpoint")&&_.M(U,_.Ab))_.h("endpoint_behavior_command_executor_fix_killswitch")||(O.preventDefault(),O.stopPropagation()),_.OK(N,[U],N);else if(H=yoN(U,H))U.loggingUrls&&U.loggingUrls.forEach(function(F){F.baseUrl&&_.A_(F.baseUrl)}),O.preventDefault(),O.stopPropagation(),giN(N,H,t);
else{var C=ujQ(0,t.data,O);if(N=t.getForm)N=N(),C.tempData=C.tempData||{},C.tempData=Object.assign({},C.tempData,N);N=_.m1(O);if(H=N.find(function(F){return!!F.visualElement}))C.createScreenConfig=C.createScreenConfig||{},C.createScreenConfig.clickedVisualElement=H.visualElement;
if(!Z)if(O.preventDefault(),O.stopPropagation(),_.M(U,_.SYS)&&!A&&_.U4.instance)_.U4.instance.resolveCommand(U,C);else if(_.h("kevlar_command_handler_formatted_string")&&!A&&_.U4.instance&&h6Q(U))A=N.find(function(F){return!!F.is})||O.target,O={form:Object.assign({},C,{event:O,
element:A,originatingNode:t})},_.U4.instance.resolveCommand(U,O);else{U=_.m1(O);O=[];for(A=0;A<U.length;A++)(Z=U[A].is)&&O.push(Z);sMx({parents:O.join(","),text:t.innerText},function(){_.or(t,"yt-navigate",C)})}}};
MKv=function(N){if(N=co4(N))i34(N),RWt(N.href)};
co4=function(N){N=_.m1(N);for(var t,O=0;O<N.length;O++)if(t=N[O],t.tagName==="A"&&t.classList.contains("yt-simple-endpoint")){if(!t.data)break;return t}return null};
$V=function(N){return N.shiftKey||N.altKey||N.metaKey||N.ctrlKey};
b39=function(N,t){var O={itct:t.clickTrackingParams};_.h("kevlar_client_side_screens")&&(!_.M(t,_.jc)||_.h("kevlar_exclude_endpoint_killswitch"))&&(O.endpoint=JSON.stringify(t));_.h("enable_unknown_lact_fix_on_html5")&&_.cY().resolve(_.BY(_.j9))&&(O.lact=_.jO());mG4(O);_.m2(N,O)};
i34=function(N){N.href&&Object.keys(N.data).length!==0&&b39(N.href,N.data)};
h6Q=function(N){for(var t=_.D(pOz),O=t.next();!O.done;O=t.next())if(N[O.value])return!1;return!0};
LcN=function(){if(ij)return ij;if(window.lottie)return ij=Promise.resolve(window.lottie);var N=_.Rk(_.Ro("LOTTIE_URL"));return N?ij=new Promise(function(t,O){var H=document.createElement("script");H.addEventListener("load",function(){t(lottie)});
H.addEventListener("error",function(A){var Z="Lottie library failed to load.";A?A.message&&(Z+=" Original description: "+A.message,_.o0(A,Z)):A=Error(Z);_.J_(A);O(A)});
H.setAttribute("async","");_.UG(H,N);document.head.appendChild(H)}):Promise.reject(Error("sh"))};
z6S=function(){return ij?ij:LcN()};
YYt=function(N){if(N)switch(N){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.h("kevlar_use_wil_icons"))return N=(N=jeQ(_.v5().getState()))&&N.animationLightUrl&&N.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:N.animationLightUrl,pathDarkTheme:N.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,N?N:uj.get("LIKE");break;case "LIKE_DELHI_PLAYER":return uj.get("LIKE_DELHI_PLAYER")}};
awG=function(N){var t=YYt(N);if(t)return t;switch(N){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return uj.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return uj.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return uj.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return uj.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return uj.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return uj.get("NOTIFICATION_BELL")}};
TKS=function(N,t){if(!N.closest)return!1;t=!!YYt(t);return _.Ro("ID_TOKEN")&&t?!!N.closest("segmented-like-dislike-button-view-model")||!!N.closest("yt-player-quick-action-buttons"):!1};
e6z=function(N,t){if(!N||wO4)t=!1;else{var O;if(!(O=TKS(N,t)))if(N.closest)if(O=!_.Ro("ID_TOKEN"),N=N.closest("ytd-subscription-notification-toggle-button-renderer-next"),O||!N)O=!1;else{var H;O=((H=N.data)==null?void 0:H.targetId)==="notification-bell"&&t!=="EXPAND_MORE"}else O=!1;t=O}return t};
PTQ=function(N){var t,O;return _.K(function(H){switch(H.nextAddress){case 1:return _.Mo(H,2),H.yield(fetch(N),4);case 4:return t=H.yieldResult,H.yield(t.json(),5);case 5:return H.return(H.yieldResult);case 2:O=_.ax(H),_.J_(O),_.Ty(H)}})};
XOM=function(N,t){var O,H,A;return _.K(function(Z){if(Z.nextAddress==1)return(O=t?N.pathDarkTheme:N.path)?Z.yield(Promise.all([PTQ(O),LcN()]),2):Z.return();H=Z.yieldResult;A=H[0];S9.set(O,A);_.Ty(Z)})};
k7t=function(N,t,O,H){function A(U,C){if(t.value===C&&!t.cancelled){for(;N.firstChild;)N.removeChild(N.firstChild);N.classList.add("ytSpecIconShapeHost");U(N,H)}}
var Z=_.xvy(_.cY().resolve(_.D5),O);typeof Z==="function"?(t.value=null,A(Z,null)):(t.value=Z,Z.then(function(U){A(U,Z)}))};
qYG=function(N,t){var O=document.createElement("div"),H=_.Io(O,function(){return _.d(_.y,{cond:N,then:function(A){return _.d(_.h4,{data:A,options:t})}})},"ca");
return[O,H]};
_.Me=function(N,t){if(t){var O={};fwv.forEach(function(H){H=niN(t,H,"--yt-lightsource-");Object.assign(O,H)});
Wct.forEach(function(H){H=niN(t,H,"--yt-basic-");Object.assign(O,H)});
_.CO(N,O)}};
niN=function(N,t,O){var H={};H[O+_.Cv(t)]=N&&N[t]?_.TV(N[t]):"";return H};
_.pE=function(N,t,O){bj[N]||(bj[N]={});bj[N][t]=O};
_.LE=function(N){bj[N]||(bj[N]={});return bj[N]};
rot=function(N){if(!N)return{};var t=N.foregroundTitleColor,O=N.backgroundColor;N=N.borderColor;var H="text";N?H="outline":O&&(H="filled");return{type:H,customColors:{color:t?_.TV(t):void 0,backgroundColor:O?_.TV(O):void 0,borderColor:N?_.TV(N):void 0}}};
Ei4=function(N){var t=N.renderer;var O=N.element;var H=N.commandController;var A=N.onTapCallback;var Z=N.skipCommandHandling;var U=N.overrides;var C=N.forceIcon;var F=N.forceModernIconButton;var g=N.forceDisabled;var B=N.isSubscribe===void 0?!1:N.isSubscribe;var c=N.isPressed===void 0?!1:N.isPressed;var u=N.useButtonSize===void 0?!1:N.useButtonSize;N=IwQ(t);B&&(N.style="mono",N.type="filled");C=!t.icon||!C&&t.text?t.icon?t.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:F?"icon-only":"icon-only-40";C==="icon-only-40"&&(N.type="text");var S;F=Object;B=F.assign;u=lw4(t,u);c=!!t.isSelected||!_.h("web_propagate_is_pressed_killswitch")&&!!c;var b=t.isSelected!==void 0;g=g===void 0?t.isDisabled:g;var z=t.text?_.zb(t.text):void 0;var w,P,x,l=((w=t.accessibilityData)==null?void 0:(P=w.accessibilityData)==null?void 0:P.label)||((x=t.accessibility)==null?void 0:x.label);w=l?l:_.Gv(t.text);O=QcM(t,O,H,A,Z);H=mvv(t);H!=null&&H.length?(H=_.PV({innertubeCommand:gWN(H),
forceNewState:!0}),H=Xr(H)?H:void 0):H=void 0;return B.call(F,{},N,u,{iconPosition:C},U,{focused:!1,toggled:c,toggleable:b,disabled:g,formattedButtonText:z,accessibilityLabel:w,onTap:O,aTagConfig:H},rot((S=t.colorData)==null?void 0:S.basicColorPaletteData),{oneOffCustomTextWrap:t.oneOffCustomTextWrap})};
QcM=function(N,t,O,H,A){return function(Z){var U=mvv(N);H(U,Z);if(!A){U=_.D(U);for(var C=U.next();!C.done;C=U.next())BH(C.value,{form:{element:t,event:Z},commandController:O})}}};
mvv=function(N){var t=[];N.command&&t.push(N.command);N.serviceEndpoint&&t.push(N.serviceEndpoint);N.navigationEndpoint&&t.push(N.navigationEndpoint);return t};
lw4=function(N,t){if(t)switch(N.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(N.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
IwQ=function(N){switch(N.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
G7y=function(N,t){return typeof N!=="object"||N===null?!1:Object.keys(t).every(function(O){return O in N})};
zI=function(N){return Object.fromEntries(Object.keys(N).map(function(t){return[t,t]}))};
R6Q=function(N,t,O){return s3N(O,function(H,A){return function(Z){var U=_.E1.apply(1,arguments);return G7y(Z,N)?A.apply(null,[Z[t]].concat(_.W6(U))):A.apply(null,[Z].concat(_.W6(U)))}})};
YV=function(N){return function(t,O){return R6Q(N,t,O)}};
vit=function(N,t){var O;return(O=_.CM(N,"playlistLoopStateEntity",t))!=null?O:void 0};
Jop=function(N,t){var O;return(O=_.CM(N,"toggleMenuServiceItemEntity",t))!=null?O:void 0};
_.aM=function(N){return N!=null&&N.watch?N.watch.isTheaterMode:!1};
_.TI=function(N){return N!=null&&N.watch?N.watch.isWatchFullscreen:!1};
_.wq=function(N){if(_.oiQ(N))return!0;N=_.scv(N);return _.h("web_watch_enable_single_column_grid_view")?N:!1};
_.oiQ=function(N){return N!=null&&N.watch?N.watch.isSwatcherooActive:!1};
_.scv=function(N){return N.watch.isWatchNarrowWidth};
_.N2G=function(N){return _.aM(N)||_.TI(N)||_.scv(N)};
_.txv=function(N){return N.watch.openEngagementPanels};
e9=function(N,t){return _.CM(N.entities,"likeStatusEntity",t)};
O4l=function(N,t){return _.CM(N.entities,"likeCountEntity",t)};
_.H4N=function(N,t){return _.CM(N.entities,"stringEntity",t)};
Ahv=function(N,t){return _.CM(N.entities,"dataFreshnessEntity",t)};
Z4Q=function(N,t){if(!N)return!1;var O,H=(O=_.M(N,_.VZ))==null?void 0:O.signal;if(H&&t.signalEndpointMap)return!!t.signalEndpointMap[H];var A;if((O=(A=_.M(N,_.PH))==null?void 0:A.request)&&t.continuationEndpointMap)return!!t.continuationEndpointMap[O];for(var Z in N)if(t.commandEndpointMap[Z])return!0;return!1};
VxM=function(N,t){if(t.streamingEndpointMap)for(var O in N)if(t.streamingEndpointMap[O]&&(N=t.streamingEndpointMap[O]))return N()};
D$t=function(N,t){var O,H=(O=_.M(N,_.VZ))==null?void 0:O.signal;if(H&&t.signalEndpointMap&&(O=t.signalEndpointMap[H]))return O();var A;if((O=(A=_.M(N,_.PH))==null?void 0:A.request)&&t.continuationEndpointMap&&(A=t.continuationEndpointMap[O]))return A();for(var Z in N)if(t.commandEndpointMap[Z]&&(N=t.commandEndpointMap[Z]))return N()};
U$y=function(N){var t={"Content-Type":"application/json"};_.Ro("EOM_VISITOR_DATA")?t["X-Goog-EOM-Visitor-Id"]=_.Ro("EOM_VISITOR_DATA"):_.Ro("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=_.Ro("VISITOR_DATA"));t["X-Youtube-Bootstrap-Logged-In"]=_.Ro("LOGGED_IN",!1);_.Ro("DEBUG_SETTINGS_METADATA")&&(t["X-Debug-Settings-Metadata"]=_.Ro("DEBUG_SETTINGS_METADATA"));N!=="cors"&&((N=_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(t["X-Youtube-Client-Name"]=N),(N=_.Ro("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(t["X-Youtube-Client-Version"]=
N),(N=_.Ro("CHROME_CONNECTED_HEADER"))&&(t["X-Youtube-Chrome-Connected"]=N),(N=_.Ro("DOMAIN_ADMIN_STATE"))&&(t["X-Youtube-Domain-Admin-State"]=N));(N=_.Ro("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=N);return t};
CZO=function(N,t){t.watchNextResponse||t.reelItemWatchResponse?t.watchNextResponse?N.content=t.watchNextResponse:N.content=t.reelItemWatchResponse:t.playerResponse?N.player=t.playerResponse:t.reelWatchSequenceResponse&&(N.reelSequence=t.reelWatchSequenceResponse)};
XM=function(N){return function(){return new N}};
xV=function(N){var t=_.cY();return function(){return t.resolve(N)}};
_.kV=function(N){if(!N)return null;for(var t=[],O=0;O<N.textSegments.length;O++){var H=N.textSegments[O];H.text?t.push(H):H.emojiId&&t.push({emoji_id:H.emojiId})}return{text_segments:t}};
yhg=function(N,t,O,H,A,Z,U){Z=Z===void 0?[]:Z;var C=new _.qe;C.endpoint=O;if(!O)return _.vX(new _.fF("handle undefined endpoint",t.tagName)),C;var F=UUM(O);F.length&&(_.OK(N,F,t,H),C.actions=F);O.loggingUrls&&O.loggingUrls.forEach(function(B){B.baseUrl&&Z4(B.baseUrl,B.attributionSrcMode)});
F=!_.h("web_skip_impression_click_killswitch")&&H&&H.impression;if(O.clickTrackingParams&&!Kxy(O)&&!Fxp(t)&&!F&&(F=_.gF(),!_.fE(F,t))){var g=t.getScreenLayer&&t.getScreenLayer();g?F.clickCommand(O,null,g):F.clickCommand(O,null)}F=!1;for(g=0;g<Z.length;g++)if((0,Z[g])(t,O,H)){F=!0;break}!F&&d$G(O)&&(C.ajaxPromise=gBt(N,t,O,H,A,U));return C};
Fxp=function(N){var t;return(N=(t=N.data)==null?void 0:t.navigationEndpoint)&&!!N.clickTrackingParams};
Kxy=function(N){var t=_.M(N,_.VZ);if(t&&(t=t.signal)&&B2v.indexOf(t)>=0)return!0;for(var O in N)if(chg.indexOf(O)>=0)return!0;return!1};
d$G=function(N){var t;if(((t=_.M(N,_.VZ))==null?void 0:t.signal)==="CLIENT_SIGNAL")return!1;for(var O in N)if($$x.indexOf(O)>=0)return!1;N=Object.keys(N);return N.length===1&&N[0]==="loggingUrls"?!1:!0};
pEl=function(N,t,O,H,A,Z,U){var C=_.nE.instance;if(C&&_.WH(C,H))var F=_.rq(C,H,A).then(function(B){return(B==null?0:B.data)?B:{data:B}});
else F=N.requestDataForServiceEndpoint(H,A),_.M(H,jYp)||_.M(H,i4y)||_.M(H,_.uDQ)||_.M(H,Sgx)||_.J_(new _.fF("No RequestBuilder for endpoint",H));var g=_.lj();g.promise.thenCatch(function(){var B=_.mD(H,"action")||_.mD(H,"command")||_.mD(H,"endpoint");B&&(B=H[B],B.hasOwnProperty("onFailureAction")?_.OK(t,[B.onFailureAction],O):B.hasOwnProperty("onFailureCommand")&&_.OK(t,B.onFailureCommand,O));F.cancel("Resolver promise rejected")});
F.then(function(B){if(B){var c=B.error;if(c){if(Z&&Z.onServerError)Z.onServerError(H,B);g.reject(new _.fF("Response error",H,c))}else if(B=B.data)if(c=B.error){if(Z&&Z.onServerError)Z.onServerError(H,B);g.reject(new _.fF("Returned error",H,c))}else{hZt(t,O,B,H);MxG(B);if(c=DUg(B))for(var u=_.D(c),S=u.next();!S.done;S=u.next()){S=S.value;var b=_.cY().resolve(_.BY(b4N))||Q7;if(!_.nE.instance||!b.some(function(w){return!!_.M(H,w)})||_.h("kevlar_response_processor_allowlist_killswitch")){var z=b=void 0;
((z=_.M((b=S)==null?void 0:b.commandMetadata,_.Da))==null?0:z.sendPost)?_.tb(t,[S]):_.OK(t,[S],O)}}(u=_.M(B==null?void 0:B.frameworkUpdates,mB))&&U&&U(u);if(Z&&Z.onSuccess)Z.onSuccess(H,B);g.resolve(new _.Ei(B,c))}}else g.reject(new _.fF("Invalid service endpoint provided",H))},function(B){g.reject(B)});
return g.promise};
MxG=function(N){var t;(N=(t=_.M(N==null?void 0:N.onResponseReceivedCommand,_.Lxz))==null?void 0:t.continuationItems)&&(N==null?void 0:N.length)===1&&_.M(N[0],zZv)&&_.zT("so_r",void 0,"search_overview_answer")};
gBt=function(N,t,O,H,A,Z){var U;return(U=t.getNetworkManager&&t.getNetworkManager()?t.getNetworkManager():_.cY().resolve(_.BY(_.u8)))?pEl(U,N,t,O,H,A,Z):_.M2("No network manager.")};
hZt=function(N,t,O,H){if(O=O.trackingParams||O.loggingDirectives&&O.loggingDirectives.trackingParams){var A;(_.M(H,_.GI)||_.M(H,Ygv)||_.M(H,aqx))&&H.clickTrackingParams?A=_.ib(H.clickTrackingParams):_.h("web_graft_to_parent_command")&&H.clickTrackingParams&&(A=_.ib(H.clickTrackingParams));var Z;H=(Z=t.getScreenLayer)==null?void 0:Z.call(t);t=_.gF().graftServerVe(O,A,H);_.Np(N,"yt-store-grafted-ve-action",[t])}};
_.T2t=function(N){var t=new Image;return new _.TW(function(O,H){t.addEventListener("load",function(){O()});
t.addEventListener("error",function(){H()});
t.src=N})};
wE9=function(N){return!!N};
eZN=function(N){return!!N};
PZO=function(N,t,O){var H=N.rowIndex;H!==void 0&&_.Np(N.hostElement,"yt-section-reactive-dismissal",[H,t,O])};
_.RM=function(N,t,O){N=_.D(N);for(var H=N.next();!H.done;H=N.next()){H=H.value;if(H===t)break;for(var A=_.D(O),Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,H.tagName===Z||!_.h("web_event_button_role_check_killswitch")&&H.role==="button"&&Z==="BUTTON")return!0}return!1};
_.vH=function(N,t,O){N=_.D(N);for(var H=N.next();!H.done;H=N.next()){H=H.value;if(H===t)break;for(var A=_.D(O),Z=A.next();!Z.done;Z=A.next())if(H.id===Z.value)return!0}return!1};
_.si=function(){var N=_.cY().resolve(_.BY(_.J4));return N?(N=N.getCurrentPage())?_.oM(N):null:null};
_.NU=function(){var N=_.si();if(!N){var t=_.cY().resolve(_.BY(_.J4)),O=t?typeof t:"no page manager";t=t?t.getCurrentPage():null;O=new _.fF("Player is missing when requested.",O,t?t.tagName:"no page");_.R0(O)}return N};
_.oM=function(N){return N&&N.getPlayer?N.getPlayer():null};
XEM=function(N,t){N={args:{raw_player_response:N}};t&&(N.args=Object.assign({},N.args,t));return N};
x$4=function(N){if(N.args){if(N.args.raw_player_response)return N.args.raw_player_response;if(N.args.player_response)return JSON.parse(N.args.player_response)}};
_.k$M=function(N,t){var O={url:"/watch?v="+N.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};N.playlistId&&(O.url+="&list="+N.playlistId);N.playerParams&&(O.url+="&pp="+N.playerParams);N={watchEndpoint:N,commandMetadata:{webCommandMetadata:O}};t&&(N.clickTrackingParams=t);return N};
fqS=function(){return qgS||!!_.s2("yt.player.Application")};
WxO=function(){return nBl||!!document.querySelector("link#player-css")};
Iqv=function(){function N(){qgS=!0;rh9.resolve()}
var t,O;return _.K(function(H){rh9||(rh9=new _.CT,fqS()?N():(t=document.createElement("script"),t.addEventListener("load",N),O=_.n1(_.Ro("PLAYER_JS_URL")),_.UG(t,O),document.head.appendChild(t)));return H.return(rh9.promise)})};
QY9=function(){function N(){nBl=!0;lqN.resolve()}
if(!lqN)if(lqN=new _.CT,WxO())N();else{var t=document.createElement("link");t.id="player-css";t.addEventListener("load",N);var O=_.n1(_.Ro("PLAYER_CSS_URL"));_.F1(t,O,"stylesheet");document.head.appendChild(t)}return lqN.promise};
m$G=function(){return fqS()&&WxO()?Promise.resolve([]):Promise.all([Iqv(),QY9()])};
EBl=function(N,t,O){var H={args:{}};N&&(H.args.raw_player_response=N);t&&(H.args.raw_watch_next_response=t);O&&(H.args=Object.assign({},H.args,O));return H};
Jht=function(N,t,O){var H=!1;H=H===void 0?!0:H;N=typeof N==="string"?_.t5(document,N):N;var A=G$v+"_"+_.GM(N),Z=RZO[A];if(Z&&H)return vBx(t,O)?Z.api.loadVideoByPlayerVars(t.args||null):Z.loadNewVideoConfig(t),Z.api;Z=new OM(N,A,t,O,void 0);RZO[A]=Z;Z.addOnDisposeCallback(function(){delete RZO[Z.getId()]});
return Z.api};
vBx=function(N,t){return t&&t.serializedExperimentFlags?t.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):N&&N.args&&N.args.fflags?N.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
oBt=function(){var N=new _.CT;N.resolved=!1;var t=N.resolve;N.resolve=function(O){N.resolved=!0;t(O)};
return N};
NWO=function(N){var t={};sYy().install((t.document_disposed={callback:N},t))};
Hz=function(N,t){if(!N&&Math.random()<=_.uP("kevlar_unified_player_logging_threshold")){N=Error("uh`"+(t?t:"Unspecified error"));if(_.h("kevlar_unified_player_throw_errors"))throw N;_.J_(N)}};
_.t1y=function(){var N=_.s2("ytDebugData.callbacks");N||(N={},_.Ba("ytDebugData.callbacks",N));return N};
HdQ=function(N,t){var O=_.t1y();if(_.h("web_dd_iu")||Odp.includes(N))O[N]=t};
ASQ=function(){return _.K(function(N){return N.return({isLeader:_.nO9(_.v5().getState()),c:_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Ro("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Zdt=function(){var N;_.K(function(t){if(t.nextAddress==1)return HdQ("APP_STATE",ASQ),t.yield(_.cY().resolve(_.A5),2);N=t.yieldResult;HdQ("PI",function(){return _.K(function(O){return O.return(N.getVideoStats())})});
_.Ty(t)})};
V1y=function(N){return!!N&&N.length>0&&N[0].loggingUrls!=null&&N[0].loggingUrls.length>0};
Dk4=function(){var N=_.Ro("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(N==null?void 0:N.length)===2?N[1]:null};
Ukt=function(N){if(!N)return[];var t=[];N=_.D(N);for(var O=N.next();!O.done;O=N.next())if(O=O.value,O.loggingUrls){O=_.D(O.loggingUrls);for(var H=O.next();!H.done;H=O.next())H=H.value,H.baseUrl&&t.push(H.baseUrl)}return t};
CgN=function(N){var t=_.Qm(_.kL(_.H4.location.href));N=_.Qm(_.kL(N));return _.h("kevlar_clear_non_displayable_url_params")?t==ZE(N):ZE(t)==ZE(N)};
ZE=function(N){var t=_.Kkg(N);N=N.slice(0);var O=["frags"];_.h("kevlar_hide_pp_url_param")&&O.push("pp");_.h("kevlar_hide_time_continue_url_param")&&O.push("time_continue");O=_.D(O);for(var H=O.next();!H.done;H=O.next())H=H.value,N=_.El(_.Qm(N),H);return _.Qm(N)+(t?"#"+t:"")};
Ve=function(N,t){t=Number(t)*1E3;var O=Math.round((0,_.jg)()),H=O.toString();N={innertubeResponse:N,serverDateTimestampMs:H,lastModifiedTimestampMs:H,expireTimestampMs:(O+t).toString()};if(t=_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME"))N.clientName=t;return N};
dkN=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Fkv};
gZt=function(N){return!isNaN(N)&&N>0};
BWv=function(){_.h("web_adaptive_repeat_ase")&&ySO&&_.E7("applicationStarted",ySO)};
_.cSx=function(){var N=_.pv(),t=_.z8();t&&N&&_.r0(t,[N],!0)};
jKp=function(N){return N&&$kM.some(function(t){return N.includes(t)})};
bdv=function(N){var t=_.M(N,_.Z3);if(!t)return!1;var O=t.url,H=t.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!O)return _.R0(Error("zh")),!1;if(t.target==="TARGET_NEW_WINDOW"){t={};_.h("resolve_url_parent_tracking_params")&&(!_.Fe(O)||dE(window.location.href,O))&&(t={endpoint:N,itct:N.clickTrackingParams});mG4(t);N=null;try{if(H){a:{var A=O,Z=t;H=H===void 0?!1:H;Z&&_.m2(A,Z);var U=_.Id(A),C=_.f8(U);A!=C&&_.HY(Error("Yf`"+A));A=C;try{if(H){C=A;C=lrx(C);Xi(C);N=_.OG(window,C,"_blank",
"attributionsrc");break a}}catch(u){_.JO(u)}Xi(A);N=_.OG(window,U,"_blank")}idN(_.cY().resolve(utx),N,O);return!0}}catch(u){_.R0(u)}_.m2(O,t);t={target:"_blank",noopener:!1};U=window;C=qm(O)?O:_.Id(typeof O.href!="undefined"?O.href:String(O));H=self.crossOriginIsolated!==void 0;N="strict-origin-when-cross-origin";window.Request&&(N=(new Request("/")).referrerPolicy);A=t.noreferrer;if(H&&A&&N==="unsafe-url")throw Error("ve");N=A&&!H;A=t.target||O.target;Z=[];var F=[],g=!1;for(c in t){var B=t[c];switch(c){case "width":case "height":case "top":case "left":Z.push(c+
"="+B);break;case "target":break;case "noopener":case "noreferrer":B?F.push(c):(g=!0,F.push(c+"=false"));break;case "attributionsrc":Z.push(c+(B?"="+B:""));break;default:Z.push(c+"="+(B?1:0))}}var c=A!==void 0&&!["_blank","_self","_top","_parent",""].includes(A);c=bQ()&&c;Sjy&&H&&Z.length===0&&F.length>0&&!c&&!g?(F.length===2&&(F=["noreferrer"]),_.OG(U,C,A,F[0]),N=hyg()):(c=Z.join(","),_.TM()&&U.navigator&&U.navigator.standalone&&A&&A!="_self"?(c=_.Tu("A"),Rd(c,C),c.target=A,N&&(c.rel="noreferrer"),
((t=t.attributionsrc)||t==="")&&c.setAttribute("attributionsrc",t),t=document.createEvent("MouseEvent"),t.initMouseEvent("click",!0,!0,U,1),c.dispatchEvent(t),c=hyg()):N?(c=_.OG(U,"",A,c),U=_.f8(C),c&&(c.opener=null,U===""&&(U="javascript:''"),U='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+DE(U)+'">',U=JR(U),(t=c.document)&&t.write&&(t.write(od(U)),t.close()))):((c=_.OG(U,C,A,c))&&t.noopener&&(c.opener=null),c&&t.noreferrer&&(c.opener=null)),N=c);idN(_.cY().resolve(utx),
N,O);return!0}c=_.Yv(O);c=jKp(c)||O==="https://studio.youtube.com/";if(_.Fe(O)&&!dE(window.location.href,O)||c)Xi(O),Mp(),_.xH(O,void 0,void 0,window.top,M1M);else return _.J_(new _.fF("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",N)),!1;return!0};
_.zyp=function(N,t){t=t===void 0?0:t;if(!(_.M(N,pqN)||_.M(N,Lkl)||_.M(N,_.Z3)&&_.M(N,_.Z3).url))return!1;var O,H=(O=_.M(N,_.Z3))==null?void 0:O.url;O=H?{externalLinkData:{url:H}}:null;return _.gF().clickCommand(N,O,t)};
a6S=function(N,t,O,H,A){A=A===void 0?{}:A;return function(Z){var U,C;var F=((U=N.loggingDirectives)==null?0:(C=U.clientVeSpec)==null?0:C.uiType)?_.UM(N.loggingDirectives.clientVeSpec.uiType):void 0;A.clickedVisualElement||(A.clickedVisualElement=F);F=Yj4(N,t);O(F,Z);F=_.D(F);for(U=F.next();!U.done;U=F.next()){U=U.value;C=H;var g=Z,B=A;B.form?B.form.event=g:B.form={element:C,event:g};BH(U,B)}}};
Yj4=function(N,t){var O=[];t?(N.toggledCommand&&O.push(N.toggledCommand),N.toggledServiceEndpoint&&O.push(N.toggledServiceEndpoint)):(N.defaultCommand&&O.push(N.defaultCommand),N.defaultServiceEndpoint&&O.push(N.defaultServiceEndpoint),N.defaultNavigationEndpoint&&O.push(N.defaultNavigationEndpoint));return O};
TWx=function(N,t){var O=N.toggledStyle||N.style,H;switch((H=t?O:N.style)==null?void 0:H.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"}}};
_.Kx=function(){return _.K(function(N){return N.nextAddress==1?N.yield(_.cY().resolve(_.A5),2):N.return(_.cY().resolve(wqQ)())})};
_.FF=function(){return _.cY().resolve(wqQ)()};
_.dZ=function(){return{lottieEl:void 0}};
eyv=function(N,t){return N.startsWith(t.uniqueId)};
PgQ=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(_.Kx(),2);t=H.yieldResult;if((O=t)==null||!O.addEventListener)return gZ(),H.return();t.addEventListener("onCueRangeEnter",N);_.Ty(H)})};
Xqx=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(_.Kx(),2);t=H.yieldResult;if((O=t)==null||!O.removeEventListener)return gZ(),H.return();t.removeEventListener("onCueRangeEnter",N);_.Ty(H)})};
xkN=function(N){var t,O,H,A,Z;_.K(function(U){if(U.nextAddress==1)return U.yield(_.Kx(),2);t=U.yieldResult;if((O=t)==null||!O.addCueRange)return gZ(),U.return();H=_.D(N.timings);for(A=H.next();!A.done;A=H.next())Z=A.value,t.addCueRange(N.uniqueId+"-"+Z,Z/1E3,(Z+100)/1E3);_.Ty(U)})};
kRG=function(N){var t,O,H,A,Z;_.K(function(U){if(U.nextAddress==1)return U.yield(_.Kx(),2);t=U.yieldResult;if((O=t)==null||!O.removeCueRange)return gZ(),U.return();H=_.D(N.timings);for(A=H.next();!A.done;A=H.next())Z=A.value,t.removeCueRange(N.uniqueId+"-"+Z);_.Ty(U)})};
qjO=function(){var N,t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(_.Kx(),2);N=H.yieldResult;if((t=N)==null||!t.getPlayerState)return gZ(),H.return();O=N.getPlayerState();return H.return(O===2)})};
gZ=function(){_.J_(new _.fF("Smartimation player does not exist or is corrupted"))};
f6O=function(){try{var N;return(N=window.CSS)!=null&&N.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(t){return _.J_(new _.fF("Smartimation CSS.supports threw an error")),!1}};
mkO=function(N,t,O,H,A){var Z=N.playlistId?nZO:WkN;t=t();O=O();A=!!N.videoId&&A()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.i5(t))return rSO({data:N,actionType:Z,disabled:A},O);if(N.videoId&&H())return I64({data:N,actionType:Z,disabled:A});switch(t){case "TRANSFER_STATE_UNKNOWN":return I64({data:N,actionType:Z,disabled:A});case "TRANSFER_STATE_FAILED":return N.videoId?l6l({data:N,actionType:Z,disabled:A}):QKQ({data:N,actionType:Z,disabled:A});case "TRANSFER_STATE_COMPLETE":return QKQ({data:N,
actionType:Z,disabled:A});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return rSO({data:N,actionType:Z,disabled:A},O);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return N.videoId?l6l({data:N,actionType:Z,disabled:A}):I64({data:N,actionType:Z,disabled:A});default:return I64({data:N,actionType:Z,disabled:A})}};
EZv=function(N,t){var O=N.onTapCommand,H=_.wF(O);if(N.videoId&&_.M(H,_.ye))return _.M(H,_.ye).action=t,O;N.playlistId&&_.M(H,_.Bz)&&(_.M(H,_.Bz).action=t);return O};
I64=function(N){var t=N.data;var O=N.actionType;N=N.disabled;return{text:GRl,iconType:"OFFLINE_DOWNLOAD",onTap:EZv(t,O.ACTION_ADD),disabled:N}};
rSO=function(N,t){var O=N.data;var H=N.actionType;N=N.disabled;var A="OFFLINE_DOWNLOAD";t>=0&&t<=.1?A="OFFLINE_DOWNLOADING_ZERO":t>.1&&t<=.3?A="OFFLINE_DOWNLOADING_TWENTY":t>.3&&t<=.5?A="OFFLINE_DOWNLOADING_FORTY":t>.5&&t<=.7?A="OFFLINE_DOWNLOADING_SIXTY":t>.7&&t<1?A="OFFLINE_DOWNLOADING_EIGHTY":t===1&&(A="OFFLINE_PIN");return{text:Ryg,iconType:A,onTap:EZv(O,H.ACTION_REMOVE_WITH_PROMPT),disabled:N}};
QKQ=function(N){var t=N.data;var O=N.actionType;N=N.disabled;return{text:vZ9,iconType:"OFFLINE_PIN",onTap:EZv(t,O.ACTION_REMOVE_WITH_PROMPT),disabled:N}};
l6l=function(N){var t=N.data;var O=N.actionType;N=N.disabled;return{text:JSt,iconType:"OFFLINE_DOWNLOAD",onTap:EZv(t,O.ACTION_RETRY),disabled:N}};
_.cz=function(N,t){var O=mXM();return _.aa(function(){O();return Rqx(N,[_.Qo(t)||""])},{debugName:"LUZslf"},"Z105t")};
oZO=function(N){var t=_.cz(_.Xo,function(){return N().videoId}),O=_.cz(_.xj,function(){return N().playlistId});
return function(){return N().videoId?t:N().playlistId?O:_.D(_.b$("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
sKg=function(N){var t=_.cz(qE,function(){return N().videoId}),O=_.cz(_.fTN,function(){return N().playlistId});
return function(){return N().videoId?t:N().playlistId?O:_.D(_.b$(0,void 0,"K4tgOc")).next().value}};
NCN=function(N){var t=_.cz(_.G6x,function(){return N().videoId});
return function(){return N().videoId?t:_.D(_.b$(!1,void 0,"Oaxwcf")).next().value}};
tjy=function(N){var t=_.cz(rPO,function(){return N().videoId});
return function(){return N().videoId?t:_.D(_.b$("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
O2N=function(){return{}};
_.DhQ=function(N,t,O){return{submitForm:function(){var H,A,Z,U;return _.K(function(C){if(C.nextAddress==1){H=H2t(N());if(!H)return C.return();if(H.onSubmit)return Aax(t),H.onSubmit(),Aax(O),C.return();if(!H.submitConfig||!H.formData)return C.jumpTo(0);H.disableDuringSubmission&&Z2S(N(),!0);Aax(t);return C.yield(VjN(H.submitConfig,H.formData()),3)}A=C.yieldResult;Aax(O);if(((Z=A)==null?0:Z.submitResult)&&((U=H)==null?0:U.onSubmitResult))H.onSubmitResult(A.submitResult);H.disableDuringSubmission&&Z2S(N(),
!1);return C.return()})},
isValid:function(){var H=H2t(N());if(H){var A;return!((A=H.isValid)==null||!A.call(H))}return!0},
isSubmitting:function(){var H,A;return!!((H=H2t(N()))==null?0:(A=H.isSubmitting)==null?0:A.call(H))}}};
_.$S=function(){if(!Uhv){var N=_.D(_.b$(new Map,void 0,"Y1XnBc"));Uhv=N.next().value;Cay=N.next().value}return Uhv};
_.KMS=function(N){Cay(new Map(N))};
H2t=function(N){if(N)return _.$S()().get(N)};
VjN=function(N,t){var O;return _.K(function(H){return H.nextAddress==1?t?(O=_.cY().resolve(_.BY(FMS)))&&N.submitId?H.yield(O.submitForm(N.submitId,t,dh4,N.params,N.clickTrackingParams),2):H.return(Promise.reject(Error("Bh"))):H.return(Promise.reject(Error("Ah"))):H.return(H.yieldResult)})};
Z2S=function(N,t){if(N){var O=_.$S();O().set(N,Object.assign({},O().get(N),{isSubmitting:function(){return t}}));
_.KMS(O())}};
Aax=function(N){if(N){var t=_.cY().resolve(_.jo);t&&(N=_.wF(N()))&&t.resolveCommand(N)}};
BCp=function(N,t){t=t===void 0?{shouldPersist:!0}:t;return{useUpdatableData:function(O,H){var A=_.aa(function(){return N(O())},void 0,"Gmrblb"),Z=goO(O,A,H,t);
_.rp(function(){if(A()!=null){yav.set(A(),Z);var U=A();_.Ia(function(){yav.delete(U)})}},"j4hx9b");
return Z},
getData:function(O){var H;return(H=yav.get(N(O)))==null?void 0:H[0]()},
updateData:function(O,H){O=N(O);O=yav.get(O);if(!O)return!1;var A=_.D(O);O=A.next().value;A=A.next().value;H=H(O());A(H);return!0}}};
goO=function(N,t,O,H){H=H===void 0?{}:H;var A=_.D(_.Gb(function(){var C=N(),F=t();return caN(C,F,O,H)})),Z=A.next().value,U=A.next().value;
return[Z,function(C){U(C);var F=t();if(H.shouldPersist&&F!=null){var g,B=(g=O==null?void 0:O.map(function(c){return c()}))!=null?g:[];
_.jp.set(F,[C,B])}}]};
caN=function(N,t,O,H){H=H===void 0?{}:H;if(t==null||!H.shouldPersist)return N;H=_.jp.get(t);if(!H)return N;var A=_.D(H);H=A.next().value;var Z=A.next().value,U;A=(U=O==null?void 0:O.map(function(C){return C()}))!=null?U:[];
if((Z==null?0:Z.length)&&(O==null?0:O.length)&&A.some(function(C,F){return C!==Z[F]}))return _.jp.remove(t),N;
(O==null?0:O.length)&&_.jp.set(t,[H,A]);return H};
$hO=function(N){var t=_.D(_.b$(!0,void 0,"bKtO6d")),O=t.next().value;t.next();return function(){var H=wu(N.children());return _.d(_.y,{cond:O,then:function(){return H},
else:N.fallback})}()};
_.iF=function(N){var t=j44(N),O=t.data,H=t.mapping,A=t.wrapper;t=t.pendingFallback;var Z=function(){return i2O(_.Qo(O))},U=function(){var C=Z(),F=[];
C=_.D(C);for(var g=C.next();!g.done;g=C.next()){var B=void 0;g=g.value;var c=void 0;for(B in g)if(!(!g).hasOwnProperty(B)){c=B;break}(B=c)&&F.push(B)}return F};
return N.data?_.d($hO,{fallback:t},function(){return _.d(_.nL,{each:U},function(C,F){var g=A?function(c){return A(function(){return H[C](c,F)},B,F)}:function(c){return H[C](c,F)};
g.debugName||(g.debugName=String(C));if(!H[String(C)])return document.createComment("");g.componentType!==eG&&ug9(String(C));var B=S5x(Z,C,F);return _.d(g,{data:B})})}):_.d(_.BZ,null)};
j44=function(N){var t=N.targetId||hTG(N.children);if(!N.data||!t)return Object.assign({},N,{mapping:N.children});var O="stamper-"+Mj4++,H=function(){var C;return(C=typeof N.targetId==="function"?N.targetId(O):N.targetId)!=null?C:O};
t=_.D(b2g(function(){var C=i2O(N.data());C.targetId=H;return C})).next().value;
var A=Object.assign({},(_.cY().resolve(_.BY(pQv))||{}).replaceableMapping,N.children);if(N.replacementWrapper){var Z=A.notificationTextRenderer,U=A.notificationMultiActionRenderer;Z&&(A.notificationTextRenderer=function(C,F){return N.replacementWrapper(Z({data:C.data},F))});
U&&(A.notificationMultiActionRenderer=function(C,F){return N.replacementWrapper(U({data:C.data},F))})}return Object.assign({},N,{data:t,
mapping:A,wrapper:function(C,F,g){return NKQ({targetId:H,stamperIndex:g},N.wrapper?function(){return N.wrapper(C,F,g)}:C)}})};
S5x=function(N,t,O){var H;return _.aa(function(){var A=N()[O()];if(A)H=A[t];else return _.J_(new _.fF("Stamper failed to find "+String(t)+" at index "+O()+" of data array of length "+(N().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),H;return A[t]},void 0,"AtsHlc")};
hTG=function(N){N=_.D(Object.keys(N));for(var t=N.next();!t.done;t=N.next())if(t=t.value,LMS.includes(t)||zTv.includes(t)||Y54.includes(t))return!0;return!1};
i2O=function(N){return N?Array.isArray(N)&&N instanceof Array?N:[N]:[]};
ug9=function(N){if(_.h("web_enable_renderer_logger")){var t;(t=_.cY().resolve(_.BY(aLG)))!=null&&t.loggingEnabled&&!t.ids.has(N)&&t.ids.add(N)}};
TCt=function(){var N,t;return(t=(N=_.cY().resolve(_.BY(_.WV)))==null?void 0:N())!=null?t:!1};
eTO=function(N,t){N=N===void 0?wQt:N;switch(t.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},N,{isOpen:t.payload});default:return N}};
XQQ=function(N,t){N=N===void 0?PaQ:N;switch(t.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},N,{isAllowed:t.payload});default:return N}};
kty=function(N,t){N=N===void 0?xhM:N;switch(t.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},N,{errorMessage:t.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},N,{title:t.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},N,{privacy:t.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},N,{isDisabled:t.payload});default:return N}};
fL9=function(N,t){N=N===void 0?q5p:N;switch(t.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},N,{isOpen:t.payload});default:return N}};
WM4=function(N,t){N=N===void 0?not:N;switch(t.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},N,{isFullscreen:t.payload});case "SET_NAVIGATION_BUTTON":var O=t.payload.targetId,H=Object.assign({},N.navigationButtons);H[O]=t.payload.button;return Object.assign({},N,{navigationButtons:H});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},N,{topPanelId:t.payload});case "SET_SECONDARY_HEADER":return O=t.payload.panelId,H=Object.assign({},N.secondaryHeader),H[O]=t.payload.secondaryHeader,
Object.assign({},N,{secondaryHeader:H});default:return N}};
Q4t=function(){return Xd(Object.assign({},{voiceSearch:nnp,engagementPanel:WM4,bottomSheet:eTO,cinematicSetting:XQQ,shorts:GzO,drawerLayout:fL9,createPlaylist:kty,locationCollection:ray,reportChannel:ILz,reportForm:lLO},RHg))};
mhS=function(N,t){_.GB.addLowPriorityJob(function(){var O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:return _.Mo(Z,2),Z.yield(LcN(),4);case 4:return Z.yield(fetch(N),5);case 5:return O=Z.yieldResult,Z.yield(O.json(),6);case 6:H=Z.yieldResult;S9.set(N,H);requestAnimationFrame(function(){t(H)});
_.Do(Z,0);break;case 2:A=_.ax(Z),_.J_(A),_.Ty(Z)}})})};
Eoz=function(N){var t={animationConfig:{},listeners:{}},O=function(){N(!0)};
t.listeners.data_failed=O;t.listeners.error=O;t.listeners.data_ready=function(){N(!1)};
return t};
vov=function(N){var t=N.model;var O=N.subscribed;var H=N.isOverlay;var A=N.element;var Z=N.commandController;var U=N.notificationState;if(O){var C,F;var g=(t==null?void 0:(C=t.buttonStyle)==null?void 0:C.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:t==null?void 0:(F=t.unsubscribeButtonContent)==null?void 0:F.buttonText}else{var B;g=t==null?void 0:(B=t.subscribeButtonContent)==null?void 0:B.buttonText}a:{var c;switch(t==null?void 0:(c=t.buttonStyle)==
null?void 0:c.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":C="S";break a;default:C="M"}}a:if(H)H="overlay";else switch(t.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":H="overlay";break a;default:H="mono"}a:if(O)var u="tonal";else switch((u=t.buttonStyle)==null?void 0:u.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":u=
"tonal";break a;default:u="filled"}return{style:H,type:u,state:t.disableSubscribeButton?"disabled":"active",size:C,focused:N.focused,toggled:O,accessibilityLabel:Gtz(t,O,U),buttonText:g,iconPosition:t.disableNotificationBell?"none":"leading-trailing",onTap:RTO(t,O,A,Z),disableTextEllipsis:!!N.disableTextEllipsis}};
RTO=function(N,t,O,H){return function(A){if(t){var Z;var U=N.disableNotificationBell?_.wF(N==null?void 0:(Z=N.unsubscribeButtonContent)==null?void 0:Z.onTapCommand):_.wF(N==null?void 0:N.onShowSubscriptionOptions)}else{var C;U=_.wF(N==null?void 0:(C=N.subscribeButtonContent)==null?void 0:C.onTapCommand)}U&&BH(U,{form:{element:O==null?void 0:O.value},commandController:H});A.stopPropagation()}};
Gtz=function(N,t,O){if(t){if(N==null?0:N.disableNotificationBell){var H;return N==null?void 0:(H=N.unsubscribeButtonContent)==null?void 0:H.accessibilityText}switch(O){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var A;return N==null?void 0:(A=N.bellAccessibilityData)==null?void 0:A.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var Z;return N==null?void 0:(Z=N.bellAccessibilityData)==null?void 0:Z.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var U;return N==null?void 0:(U=
N.bellAccessibilityData)==null?void 0:U.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var C;return N==null?void 0:(C=N.bellAccessibilityData)==null?void 0:C.disabledLabel;default:var F;return N==null?void 0:(F=N.unsubscribeButtonContent)==null?void 0:F.accessibilityText}}else{var g;return N==null?void 0:(g=N.subscribeButtonContent)==null?void 0:g.accessibilityText}};
Jag=function(N,t){return _.CM(N.entities,"subscriptionStateEntity",t)};
ooQ=function(N,t){return _.CM(N.entities,"subscriptionNotificationStateEntity",t)};
s4N=function(N,t){return _.CM(N.entities,"upcomingEventReminderStateEntity",t)};
NRp=function(N,t){return _.CM(N.entities,"commentEntityPayload",t)};
t$M=function(N,t){return _.CM(N.entities,"engagementToolbarSurfaceEntityPayload",t)};
OKN=function(N,t){return _.CM(N.entities,"triStateButtonStateEntityPayload",t)};
HKg=function(N,t){return _.CM(N.entities,"commerceCartCheckoutButtonEntity",t)};
AWO=function(N,t){return _.CM(N.entities,"commandEntity",t)};
ZK4=function(N){if(N){switch(N){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":N="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":N="NOTIFICATIONS_OFF";break;default:N="NOTIFICATIONS_NONE"}return N}};
V$v=function(N,t,O){O.subscribed!==t&&((O=O.key)&&_.E6(_.uF("subscriptionStateEntity",O,{key:O,subscribed:t})),N.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:t})),t||_.sl(N,"yt-unsubscribe-action"))};
Uxv=function(N){N=_.M(_.wF(N),_.Sp);var t,O,H,A;return(A=_.M(N==null?void 0:(t=N.panelLoadingStrategy)==null?void 0:(O=t.inlineContent)==null?void 0:(H=O.sheetViewModel)==null?void 0:H.content,DxG))==null?void 0:A.listItems};
Cz4=function(N,t){if(N.onShowSubscriptionOptions&&t&&(N=Uxv(N.onShowSubscriptionOptions),N!=null&&N.length)){var O=ZK4(t);N.forEach(function(H){H=_.M(H,_.h5);var A,Z,U,C,F=H==null?void 0:(A=H.leadingImage)==null?void 0:(Z=A.sources)==null?void 0:(U=Z[0])==null?void 0:(C=U.clientResource)==null?void 0:C.imageName;H&&F&&(H.isSelected=F===O)})}};
Kzl=function(N,t,O,H){t&&O?N.style.width=O+"px":!t&&H&&(N.style.width=H+"px")};
Fzt=function(N,t,O){var H;(H=N.lottieEl)==null||H.goToAndPlay(0);var A;(A=t.lottieEl)==null||A.goToAndPlay(0);_.MU(_.GB,function(){var Z;(Z=O.lottieEl)==null||Z.goToAndPlay(0)},300)};
dxz=function(N){return!(N==null||!N.iconName||(N==null?0:N.title))};
g0O=function(N,t,O,H){O&&_.GB.cancelJob(O);O=_.GB.addLowPriorityJob(function(){H(void 0)},5E3);
H(O);t&&N!==(t.likeStatus==="LIKE")&&t.key&&_.E6(_.uF("likeStatusEntity",t.key,{key:t.key,likeStatus:N?"LIKE":"INDIFFERENT",hadUserInteraction:N}))};
_.yW9=function(N,t){return _.CM(N.entities,"accountLinkStatusEntity",t)};
BRz=function(N,t){return _.CM(N.entities,"hatsSurveyEntity",t)};
cWv=function(N,t){return _.CM(N.entities,"hatsSurveyStateEntity",t)};
$xO=function(N,t){return _.CM(N.entities,"quantityIncrementerEntity",t)};
jpg=function(N){switch(N){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
iKy=function(N){switch(N){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
uES=function(N){switch(N){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.hFv=function(N){var t=_.uP("web_generic_client_event_wait_period ",0);t||(t=3E5);var O=SAp.get(N);!_.h("enable_web_client_experiment_event_timeout_killswitch")&&O&&(0,_.jg)()-O<t||(SAp.set(N,(0,_.jg)()),_.E7("genericClientExperimentEvent",{eventType:N}))};
_.M$4=function(N,t){var O,H,A,Z;a:{var U=N.style;if(U===void 0)U=17;else switch(U){case "LIVE":U=18;break a;default:U=17}}return{type:U,text:t?swz({seconds:t}):_.Gv(N.text),accessibilityText:(O=N.text)==null?void 0:(H=O.accessibility)==null?void 0:(A=H.accessibilityData)==null?void 0:A.label,icon:(Z=N.icon)==null?void 0:Z.iconType}};
bK4=function(N){switch(N){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
pBQ=function(N){if(!N)return"";var t,O=(t=_.cY().resolve(_.BY(_.WV)))==null?void 0:t(),H;if(!O&&((H=N.vibrantColorPalette)==null?0:H.iconInactiveColor))return wY(N.vibrantColorPalette.iconInactiveColor,"1");var A;return O&&((A=N.darkColorPalette)==null?0:A.iconInactiveColor)?wY(N.darkColorPalette.iconInactiveColor,"1"):N.color?wY(N.color,"1"):N.sampledThumbnailColor?(N=N.sampledThumbnailColor,"rgba("+N.red+","+N.green+","+N.blue+");"):""};
_.bF=function(N,t){if(!N.includes("DATE_PLACEHOLDER"))return N;var O=new Date(0);O.setUTCSeconds(t);return N.replace("DATE_PLACEHOLDER",Lzz(O))};
zFg=function(N,t,O){return function(H){var A=N.command;A&&(BH(A,{form:{element:O}}),t([A],H))}};
aeO=function(N,t,O,H,A){return function(Z){var U=YAp(N,t);U&&BH(U,{form:{element:O},commandController:H});A&&Z.stopPropagation()}};
YAp=function(N,t){if(N.signInEndpoint&&!_.h("web_subscribe_sign_in_endpoint_killswitch"))return N.signInEndpoint;if(t){if(N.serviceEndpoints)return N.serviceEndpoints[1];if(N.onUnsubscribeEndpoints)return N.onUnsubscribeEndpoints[0]}else{if(N.serviceEndpoints)return N.serviceEndpoints[0];if(N.onSubscribeEndpoints)return N.onSubscribeEndpoints[0]}};
TRN=function(N,t){var O,H,A,Z;t=t&&((O=N.unsubscribeAccessibility)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label)||((A=N.subscribeAccessibility)==null?void 0:(Z=A.accessibilityData)==null?void 0:Z.label);return N.longSubscriberCountText?[t,_.Gv(N.longSubscriberCountText)].filter(function(U){return U}).join(" "):t};
px=function(N,t){return t||(N==null?0:N.isChannelDelegate)?"disabled":"active"};
wBQ=function(N,t){var O;switch((O=N.style)==null?void 0:O.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:px(N)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:px(N)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:px(N,!0)};case "OVERLAY":return t?{style:"overlay",type:"tonal",state:px(N)}:{style:"overlay",type:"filled",state:px(N)};default:return t?{style:"mono",type:"tonal",state:px(N)}:{style:"mono",type:"filled",state:px(N)}}};
_.Lx=function(){for(var N=[],t=_.D(_.E1.apply(0,arguments)),O=t.next();!O.done;O=t.next())if(O=O.value)if(typeof O==="string")N.push(O);else{O=_.D(Object.entries(O));for(var H=O.next();!H.done;H=O.next()){var A=_.D(H.value);H=A.next().value;(A=A.next().value)&&N.push(H)}}return N.join(" ")};
eFy=function(N){switch(N){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
PzG=function(N){switch(N){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
XBS=function(N,t){var O=N.map(function(H){return H.toString()});
return _.Ui(function(H){if(O.includes(H.key)){t&&H.preventDefault();var A;(A=H.currentTarget)==null||A.click()}})};
_.xxv=function(){return XBS(["Enter"])};
_.kwS=function(){return XBS(["Enter"," "],!0)};
_.zE=function(N){if(N.composedPath)return N.composedPath();if(!N.__composedPath){for(var t=[],O=N.target;O;)t.push(O),O=O.parentNode;t.push(window);N.__composedPath=t}return N.__composedPath};
_.YS=function(N,t,O){N=_.D(N);for(var H=N.next();!H.done;H=N.next()){H=H.value;if(H===t)break;for(var A=_.D(O),Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,H.tagName===Z||H.role==="button"&&Z==="BUTTON")return!0}return!1};
feM=function(N,t){var O,H=(O=t.observer)!=null?O:_.cY().resolve(j4);if(N){O=qAN(N);var A=[];t.showOption&&A.push(H.observe(N,function(){t.visibilityCallback(!0,N)},t.showOption));
t.hideOption&&A.push(H.observe(N,function(){t.visibilityCallback(!1,N)},t.hideOption));
t.prescanOption&&t.prescanCallback&&A.push(H.observe(N,function(){t.prescanCallback()},t.prescanOption));
var Z;O.visibilityMonitorKeys=((Z=O.visibilityMonitorKeys)!=null?Z:[]).concat(A)}};
qAN=function(N){var t;return(t=N.polymerController)!=null?t:N};
_.TE=function(N){return!!_.a8(N)};
_.wZ=function(N,t,O,H,A){return function(Z){var U=sep();_.rp(function(){if(Z){n0Q(Z,N(),A);var C=WzM(Z,N(),t,O,H,U);_.Ia(C)}},"lrewVd")}};
n0Q=function(N,t,O){var H=rWG(t),A=IeS(t);t=H&&leG;var Z=A&&Qpy;(H||A)&&feM(N,{visibilityCallback:function(U){var C=_.cY().resolve(_.jo);U&&H?C.resolveCommand(H,{form:{element:O?N:void 0},disableClickTracking:!0}):!U&&A&&C.resolveCommand(A,{form:{element:O?N:void 0},disableClickTracking:!0})},
showOption:t,hideOption:Z})};
WzM=function(N,t,O,H,A,Z){var U=new Map;if(t=_.a8(t)){var C;N=(H==null?void 0:(C=H.onTap)==null?void 0:C.value)||N;O=mxv(t,N,O==null?void 0:O.onTap,A,Z);N.addEventListener("click",O);U.set("click",O)}return function(){for(var F=_.D(U),g=F.next();!g.done;g=F.next()){var B=_.D(g.value);g=B.next().value;B=B.next().value;N.removeEventListener(g,B)}}};
_.a8=function(N){var t;return(N=(t=_.M(N,_.ep))==null?void 0:t.onTap)&&_.wF(N)};
rWG=function(N){var t;return(N=(t=_.M(N,_.ep))==null?void 0:t.onVisible)&&_.wF(N)};
IeS=function(N){var t;return(N=(t=_.M(N,_.ep))==null?void 0:t.onHidden)&&_.wF(N)};
mxv=function(N,t,O,H,A){var Z=function(C){_.cY().resolve(_.jo).resolveCommand(N,C)},U=function(C){H&&_.YS(_.zE(C),t,H)||Z(C.target?{form:{element:C.target,
sourceData:N,mutationContext:A}}:void 0)};
O&&(U=function(C){O(C,Z)});
return U};
E0O=function(N){switch(N){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
Gwy=function(N){var t=N.numAvatarsInCluster;switch(N.clusterSize){case "small":return t===2?22:18;case "40":return t===2?24:22;default:return t===2?24:20}};
RF9=function(N,t){return function(O){var H=Object.keys(t);_.rp(function(){if(N!=null&&N()){for(var A=_.D(H),Z=A.next();!Z.done;Z=A.next())Z=Z.value,O.addEventListener(Z,t[Z]);_.Ia(function(){for(var U=_.D(H),C=U.next();!C.done;C=U.next())C=C.value,O.removeEventListener(C,t[C])})}},"bXZGfe")}};
v0p=function(N){switch(Gwy(N)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
JWz=function(N){switch(N){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
o0g=function(N){switch(Gwy(N)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
spy=function(N){switch(N){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
NLN=function(N){switch(N){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
tIN=function(N){return N==="medium"||N==="48"||N==="large"||N==="extra-large"||N==="extra-extra-large"||N==="giant"};
Owt=function(N){return!!((N==null?0:N.includes(3))||(N==null?0:N.includes(5)))};
AZ4=function(N){var t=N.data;return{size:HwM(t.avatarImageSize),type:t.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:N.onTap,decorations:N.decorations||[],badgeText:N.badgeText,accessibilityText:N.accessibilityText,avatarButtonCustomClassName:N.avatarButtonCustomClassName,clusterLayoutConfig:N.clusterLayoutConfig}};
HwM=function(N){switch(N){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
ZwM=function(N){switch(N){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
VIv=function(N){switch(N){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
DD4=function(N){var t=N.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",O,H=N.avatars&&N.avatars.length>0?(O=_.M(N.avatars[0],_.Pz))==null?void 0:O.avatarImageSize:"AVATAR_SIZE_UNKNOWN";O=ZwM(H)||0;if(t){var A,Z=(A=N.avatarClusterSize)!=null?A:"AVATAR_SIZE_M";t=ZwM(Z);var U,C,F=Math.min((C=(U=N.avatars)==null?void 0:U.length)!=null?C:0,4),g;return{avatars:((g=N.avatars)==null?void 0:g.slice(0,4))||[],avatarSizeInPx:O,avatarStackStyle:{width:t+"px",height:t+"px",position:"relative"},avatarStyle:function(c){var u=
Gwy({clusterSize:HwM(Z),numAvatarsInCluster:F,avatarIndex:c});var S=ZwM(Z);F===3&&c===2?(S=(S-u)/2,S=(_.Ro("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*S):S=void 0;return{position:"absolute",top:F===2&&c===1||F===3&&c===2||F===4&&c>=2?"0":void 0,bottom:F===2&&c===0||F>2&&c<2?"0":void 0,left:F===2&&c===1||F>2&&(c===1||c===3)?"0":void 0,right:F<=3&&c===0||F===4&&(c===0||c===2)?"0":void 0,transform:S?"translateX("+S+"px)":void 0,width:u+"px",height:u+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(c){return{clusterSize:HwM(N.avatarClusterSize),numAvatarsInCluster:F,avatarIndex:c}},
avatarButtonCustomClassName:void 0}}var B;return{avatars:((B=N.avatars)==null?void 0:B.slice())||[],avatarSizeInPx:O,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:VIv(H),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
UDx=function(N,t,O){return function(){BH(N,{form:{element:t},commandController:O})}};
Cog=function(N){switch(N){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
KEO=function(N){switch(N){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
FE4=function(N){if("accessibilityText"in N)return N.accessibilityText||"";if("title"in N){var t,O,H;return((t=N.title)==null?void 0:(O=t.accessibility)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label)||""}if("accessibility"in N){var A,Z;return((A=N.accessibility)==null?void 0:(Z=A.accessibilityData)==null?void 0:Z.label)||""}return""};
dDM=function(N){return"inlinePlayerData"in N};
XF=function(N){return new g$G(N)};
yZO=function(N){switch(N){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
BL4=function(N){switch(N){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
cZG=function(N){switch(N){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
$Dp=function(N){return function(t){N&&(N.thumbnailElRef=t.thumbnailElRef,N.thumbnail=t.thumbnail,N.thumbnailOverlays=t.thumbnailOverlays,N.thumbnailSize=t.thumbnailSize)}};
js4=function(N){switch(N){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
uw9=function(N){var t=_.D(_.b$(!1,void 0,"E6wDDe")),O=t.next().value,H=t.next().value;_.Q8(function(){var A=N==null?void 0:N();if(A){var Z=_.cY().resolve(_.BY(iwG));if(Z){var U={triggeringElement:A,onDwellTriggeredFn:function(){H(!0)},
onDwellEndFn:function(){H(!1)}};
Z.registerElement(U);_.Ia(function(){_.xS(Z,U)})}}});
return O};
SOx=function(N,t,O){O?O(t):_.xJ(t,N.target?{form:{element:N.target}}:void 0)};
_.kS=function(N,t,O,H){return function(A){_.rp(function(){function Z(B){B=B.composedPath();B=_.D(B);for(var c=B.next();!c.done;c=B.next()){c=c.value;if(c===A)break;if(c.className.indexOf("HostIsClickableAdComponent")>=0||c.tagName==="A".toString()||c.tagName==="BUTTON".toString())return!0}return!1}
var U=new Map,C,F=(C=N())==null?void 0:C.onTap;if(F){C=function(B){Z(B)||SOx(B,F,t)};
var g=function(B){Z(B)||B.key!=="Enter"||SOx(B,F,t)};
(O==null?0:O())||_.h("enable_web_home_top_landscape_image_layout_level_click")?(A.addEventListener("tap",C),U.set("tap",C)):(A.addEventListener("click",C),U.set("click",C));if(H==null?0:H())A.addEventListener("keydown",g),U.set("keydown",g)}_.Ia(function(){for(var B=_.D(U),c=B.next();!c.done;c=B.next()){var u=_.D(c.value);c=u.next().value;u=u.next().value;A.removeEventListener(c,u)}})},"D7XqOc")}};
hBG=function(N,t){var O,H=(O=N.interaction)==null?void 0:O.onTap;if(N=_.PV({elementsCommand:H,forceNewState:!0,skipOnClick:!0}))return N.onclick=function(A){dQ4(A)&&(A.preventDefault(),H&&SOx(A,H,t))},Xr(N)?N:void 0};
MIQ=function(N){switch(N){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
bwl=function(N){switch(N){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
p_t=function(N){switch(N){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.LEt=function(N){return _.h("rich_grid_enable_dynamic_offset")&&N?Math.max((N-_.uP("rich_grid_dynamic_offset_anchor_width",1300))/100*_.uP("rich_grid_dynamic_offset_offset_per_100",10),_.uP("rich_grid_dynamic_offset_lower_bound",-60)):0};
zBN=function(N,t){switch(t){case 4:return 16;case 1:return N<528?16:N<1024?32:48;case 2:return(N>=528?16:8)/2;case 3:return(N<528?16:N<1024?32:48)+(N>=528?16:8)/2;default:return 0}};
YOQ=function(N){var t=N.originalContainerWidth;var O=N.sizing;var H=N.standardUnit;if(N.isCompactList&&t<528)return 1;switch(O){case "STANDARD":return H;case "COMPACT":return H+1;case "EXTRA_COMPACT":return _.h("web_responsive_extra_compact_2x")?H*2:_.h("web_responsive_current")?H===1?2:H%2===0?H/2*3:H+2:H<4?H*2:Math.ceil(H*3/2);case "MINI":return H>1?H*2:3;default:return H}};
TLS=function(N){var t=N.containerWidth;var O=N.peek;var H=N.gutter;var A=N.numItems;N=N.ignoreMaxWidthLimit;t=O?Math.max((t-O-H*A)/A,0):Math.max((t-H*(A-1))/A,0);return N?t:Math.min(t,aS9)};
_.qU=function(N){var t=N.containerWidth;var O=N.hasPeek;var H=N.sizing;var A=N.marginSettings;var Z=N.isCompactList;var U=N.enableFullBleedForSingleCol;var C=N.standardUnitMinWidth;H=H||"STANDARD";O=!!O;N=t>=528?16:8;var F=O?t>=528?48:24:0;A=zBN(t,A);var g=Math.max(t-A*2,0);C=_.h("kevlar_disable_min_width_override")?void 0:C;C=Math.min(Math.max(Math.floor((g-F+N)/((C!=null?C:w_9)+_.LEt(t)+N)),1),6);var B=(U=!!U&&C===1)||C===1&&H!=="STANDARD";O=O||B?g:Math.min(g,(aS9+N)*C-N);H=YOQ({originalContainerWidth:t,
sizing:H,standardUnit:C,isCompactList:Z});return{itemWidth:TLS({containerWidth:O,peek:F,gutter:N,numItems:H,ignoreMaxWidthLimit:B}),gutter:N,maxContainerWidth:O,numItems:H,margin:U?0:A,contentMargin:zBN(t,1),typographyBump:TLS({containerWidth:O,peek:F,gutter:N,numItems:C,ignoreMaxWidthLimit:B})>400&&!(Z&&t<528),standardUnit:C}};
fx=function(N){switch(N){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.eBN=function(N){if(N){var t;if((t=N.responsiveContainerConfiguration)==null?0:t.responsiveSize)return fx(N.responsiveContainerConfiguration.responsiveSize);if(N.layoutSizing)switch(N.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
PoO=function(N){if(N.fullbleed)return 1;switch(N.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
fSp=function(N,t,O,H,A,Z,U,C,F){a:if(N===4&&H==="LOCKUP_CONTENT_TYPE_SOURCE")var g=1;else switch(N){case 3:g=1;break a;default:g=0}var B=X_G(N,H);a:switch(N){case 4:Z=!!(Z&&Z<100);break a;default:Z=!1}a:switch(N){case 3:case 4:var c=H==="LOCKUP_CONTENT_TYPE_CHANNEL"||H==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:c=!1}return{metadataOnThumbnail:B,isOverlay:C||B,isCard:xD4(H,U),sizing:t!=null?t:"STANDARD",typographyBump:O!=null?O:!1,isTiny:Z,isCentered:c,isCollection:kFS(H),arrangement:g,addMarginForFullbleed:N===
1&&H!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:N===1&&H==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:qOz(H,A,F),disableRounding:N===5||xD4(H,U)||N===1&&H==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:kFS(H)?2:0,useLegacyTypography:!(F==null||!F.useLegacyTypography),useRichGridLegacyTypography:!(F==null||!F.useRichGridLegacyTypography)&&!_.h("web_enable_typography_bump"),compactMetadata:g===0&&H==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:F==null?void 0:F.onFocusEffect,titleMaxLines:H==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
kFS=function(N){switch(N){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
xD4=function(N,t){if(t&&N==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(N){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
X_G=function(N,t){if(t==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(N){case 5:return!0;case 4:return!1;default:return!1}};
qOz=function(N,t,O){if(t&&(O==null||!O.alwaysRespectPodcastShowAspectRatio||N!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(N){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
_.nx=function(N){if(N){var t;return((t=_.cY().resolve(_.BY(_.WV)))==null?0:t())?N.darkThemeImage:N.image}};
rZO=function(N,t,O,H,A,Z){if(A&&Z&&t==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:A,height:Z};if(!O)return{};A=O.size;O=O.allowFullWidth;if(t==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&O)return{fullWidth:!0};if(A===void 0)return{};switch(N){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:A,height:A};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:A,height:1/n$9*A};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:A*
WEz,height:A};default:return(H==null?0:H.height)&&(H==null?0:H.width)?H.width/H.height>1?{maxWidth:A*WEz}:{maxWidth:A}:{maxWidth:A}}};
ISx=function(N){var t;return N&&((t=_.nx(N.themedImage))!=null?t:N.image)};
lSg=function(N){var t;return N==null?void 0:(t=N.sources)==null?void 0:t[0]};
QsG=function(N){switch(N){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.mDO=function(N){if(N)return"content-id-"+N};
E$9=function(N){switch(N.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
GFl=function(N){var t=_.Wz.currentPageSubTypeSelector(_.mN().getState())||"";return N?N+t:""};
RBM=function(N){switch(N){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
JZt=function(N){var t=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],O=_.D(_.b$(void 0,void 0,"JrqNsb")),H=O.next().value,A=O.next().value,Z=_.D(_.b$(void 0,void 0,"rWytse"));O=Z.next().value;var U=Z.next().value;Z=_.D(_.b$(void 0,void 0,"DHRqxe"));var C=Z.next().value,F=Z.next().value;return{touchFeedbackEvents:{pointerUpEvent:H,pointerDownEvent:O,pointerLeaveEvent:C},touchFeedbackOnPointerUp:_.Ui(function(g){v$O(_.zE(g),t)||(A(g),U(void 0),F(void 0))}),
touchFeedbackOnPointerDown:_.Ui(function(g){N==null||N(g);v$O(_.zE(g),t)||(U(g),A(void 0),F(void 0))}),
touchFeedbackOnPointerLeave:_.Ui(function(g){v$O(_.zE(g),t)||(F(g),U(void 0),A(void 0))})}};
v$O=function(N,t){t=t===void 0?[]:t;t=[].concat(_.W6(t),["BUTTON".toString()]);N=_.D(N);for(var O=N.next();!O.done;O=N.next()){O=O.value;for(var H=_.D(t),A=H.next();!A.done;A=H.next())if(O.tagName===A.value)return!0}return!1};
o$y=function(N){switch(N){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
ssl=function(N){return N.scrollHeight-N.offsetHeight>1};
NgS=function(N,t){var O;return nC(N,((O=N.content)==null?void 0:O.length)||0,!t)};
Hkl=function(N,t,O,H,A,Z){if(!t||tHO){var U;return nC(N,((U=N.content)==null?void 0:U.length)||0,!0)}t=H.value;if(!O.value||!t||!N.content)return N;O=0;H=N.content.length;U=0;Oky||(Oky=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var C=Oky;for(A=A*Z*C;O<=H;)Z=Math.floor(O+(H-O)/2),C=nC(N,Z)||N,t.firstChild&&(t.firstChild.textContent=C.content),t.scrollHeight>A?H=Z-1:(U=Z,O=Z+1);return nC(N,U)};
AEz=function(N,t){var O,H;return(((O=N.content)==null?void 0:O.length)||0)>(((H=t.content)==null?void 0:H.length)||0)};
ZkM=function(N,t,O,H,A,Z){var U=_.Fy("truncated-text-content"),C=_.Fy("truncated-text-content"),F=_.Fy("button"),g=_.Fy("button"),B=_.Fy("button"),c=_.cY().resolve(_.I_),u=_.D(_.Gb(function(){return NgS(N(),A())})),S=u.next().value,b=u.next().value;
u=_.D(_.Gb(function(){return AEz(N(),S())}));
var z=u.next().value,w=u.next().value,P=null;_.rp(function(){function x(){if(U.value&&F.value&&B.value){var r=Z()?N():Hkl(N(),A(),U,C,t(),O());b(r);requestAnimationFrame(function(){if(U.value&&F.value&&B.value){var E=ssl(U.value)||AEz(N(),r);w(E);if(!H()){var J=ssl(U.value),CN=O(),B4=U.value,zM=F.value,jy=B.value,c4=c==="rtl";if(B4&&zM){var XO=zM.offsetLeft;c4&&(XO=B4.offsetWidth-zM.offsetWidth-zM.offsetLeft);if(E){E=zM.offsetWidth;zM=B4.offsetWidth;var kx=J?zM-E-70:XO-70;CN="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
CN+"rem,\n      #000 "+CN+"rem,\n      #000 100%), linear-gradient(\n      to "+((c4?"left":"right")+",\n      #000 0px,\n      #000 "+kx+"px,\n      transparent "+(J?zM-E:kx+70)+"px)");B4.style.setProperty("-webkit-mask-image",CN);B4.style.setProperty("mask-image",CN)}else B4.style.setProperty("-webkit-mask-image",""),B4.style.setProperty("mask-image","");J?c4?(jy.style.setProperty("left","0"),jy.style.setProperty("right","unset")):(jy.style.setProperty("left",""),jy.style.setProperty("right","0")):
c4?(jy.style.setProperty("left","unset"),jy.style.setProperty("right",XO+"px")):(jy.style.setProperty("left",XO+"px"),jy.style.setProperty("right","unset"))}}}})}}
var l,I;(l=P)==null||(I=l.stop)==null||I.call(l);l=new _.KE(x,17);x();P=l},"KjwIxd");
_.Q8(function(){b(NgS(N(),A()));w(AEz(N(),S()));var x=function(){Oky=void 0;var I,r;(I=P)==null||(r=I.fire)==null||r.call(I)};
if(window.ResizeObserver){var l=new ResizeObserver(x);l.observe(U.value);_.Ia(function(){var I,r;(I=P)==null||(r=I.stop)==null||r.call(I);l.disconnect()})}else window.addEventListener("resize",x),_.Ia(function(){var I,r;
(I=P)==null||(r=I.stop)==null||r.call(I);window.removeEventListener("resize",x)})});
return{isTruncated:z,displayText:S,contentRef:U,hiddenRef:C,placeholderTruncationTextRef:F,hiddenTruncationTextRef:g,truncationTextRef:B}};
VHQ=function(N){return{content:N!=null?N:""}};
D8x=function(N){return _.wF(N.onTap)||_.a8(N.rendererContext)};
U84=function(N){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:N.overflowMenuA11yLabel,onTap:function(t){t.preventDefault();t.stopPropagation();if(N.overflowMenuOnTap){var O=_.PV({elementsCommand:N.overflowMenuOnTap,forceNewState:!0});if(O==null?0:O.onclick)O.onclick(t)}}}};
_.rZ=function(N,t,O,H,A){H=H===void 0?{}:H;if(!A||Math.random()<5E-4){t=t||null;O=O||null;N=N instanceof Error?N:new _.fF(N);if(N.args)for(var Z=_.D(N.args),U=Z.next();!U.done;U=Z.next())U=U.value,U instanceof Object&&(H=Object.assign({},U,H));H.category="H5 Ads Control Flow";t&&(H.slot=t?"slot:  "+t.slotType:"");O&&(H.layout=O?"layout:  "+O.layoutType:"",H.layoutId=O.layoutId);A&&(H.known_error_aggressively_sampled=!0);N.args=[H];_.J_(N)}};
_.Chp=function(N,t){t=_.oJ(t);_.sl(N,"yt-open-popup-action",[t,N])};
_.I8=function(N,t){_.Chp(N,_.E_(t))};
Fr9=function(N){if(!N)return"";if(KrM[N])return KrM[N];lF||(lF=_.Tu("A"));lF.href!==N&&Rd(lF,N);var t=lF.pathname;KrM[N]=t.startsWith("/")?t:"/"+t;return KrM[N]};
d8g=function(){var N=Fr9(window.location.href);if(N==="/")return"home";if(N.startsWith("/results"))return"search";if(N.startsWith("/watch"))return"watch";if(N.startsWith("/shorts"))return"shorts";if(N.startsWith("/hashtag"))return"hashtag";if(N.startsWith("/create_channel"))return"create_channel";if(N.startsWith("/@")||N.startsWith("/user/")||N.startsWith("/channel/"))return"channel";if(N.startsWith("/experiments"))return"experiments";if(N.startsWith("/sponsor_channel"))return"sponsorship";if(N.startsWith("/select_site"))return"settings";
if(N.startsWith("/locate"))return"locate";if(N.startsWith("/redeem"))return"redeem";if(N.startsWith("/musicpremium")||N.startsWith("/premium")||N.startsWith("/red"))return"premium";if(N.startsWith("/paid_memberships"))return"paid_memberships";if(N.startsWith("/oops"))return"oops";if(N.startsWith("/clip"))return"clip";var t;return(Qe==null?void 0:(t=Qe.response)==null?void 0:t.page)==="404"?"404":N.startsWith("/feed/history")?"history":N.startsWith("/feed/library")?"library":N.startsWith("/feed/subscriptions")?
"subscriptions":N.startsWith("/feed/trending")?"trending":N.startsWith("/feed/news_destination")?"news":N.startsWith("/playlist")?"playlist":N.startsWith("/minor_moment")?"minor_moment":N.startsWith("/playable/")||N.match("^/playables/(?!saved).")?"mini_app":N.startsWith("/playables")?"playables":N.startsWith("/create/live/join")?"open_in_app":N.startsWith("/feed/explore")?"explore":"browse"};
_.EM=function(){var N=Qe==null?void 0:Qe.response,t=N==null?void 0:N.endpoint;if(!t)return(N==null?void 0:N.page)==="watch"?"watch":d8g();var O;N=(O=_.M(t==null?void 0:t.commandMetadata,_.Da))==null?void 0:O.webPageType;O=!1;if(N&&!g7Q.includes(N))switch(N){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var H;return((H=_.M(t==null?void 0:t.commandMetadata,_.Da))==null?0:H.url)&&Fr9(_.M(t.commandMetadata,_.Da).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var A;return(t=(A=_.M(t,_.yE))==null?void 0:A.browseId)?yEx[t]||"browse":"browse";default:O=!0}if(_.M(t,_.mb)||_.M(t,Bgt))return"sponsorship";A=Fr9(window.location.href);if(A.startsWith("/experiments"))return"experiments";if(A.startsWith("/create_channel"))return"create_channel";
if(_.M(t,_.Z3)&&A.startsWith("/shorts"))return"shorts";if(_.M(t,_.Z3)&&A.startsWith("/watch"))return"watch";O&&(t=new _.fF("Unsupported mWeb page type",{pathname:A,webPageType:N}),_.R0(t));return"browse"};
GE=function(N,t,O,H){return N&&t?N!==O||t!==H?(_.rZ(Error("Kh"),void 0,void 0,{"stored-slot":N,"stored-layout":t,"latest-slot":O,"latest-layout":H}),!1):!0:!1};
$8Q=function(N,t,O){return N({targetId:t},function(H){return O.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},H,{contents:[O.continuationItems?_.M(O.continuationItems[0],cEt):{}]}):O.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},H,{header:O.continuationItems?O.continuationItems[0]:void 0}):Object.assign({},H,{contents:O.continuationItems?O.continuationItems:[]})})};
jLv=function(N,t,O,H){if(t=t.trackingParams){var A,Z=(A=O.getScreenLayer)==null?void 0:A.call(O);O=_.z8(Z);A=_.pv(Z);if(O&&A){var U=_.ib(t);_.h("combine_ve_grafts")?N.graftServerVe(t,A,Z):_.qp(O,A,U);H==null||H(U)}}};
uPt=function(N){var t;return((t=ik4.get(N))==null?void 0:t.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
MH4=function(N,t){var O={type:t.slotType,controlFlowManagerLayer:SCy.get(t.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};t.slotEntryTrigger&&(O.entryTriggerType=t.slotEntryTrigger.triggerType);t.slotPhysicalPosition!==1&&(O.slotPhysicalPosition=t.slotPhysicalPosition);if(N){O.debugData={slotId:t.slotId};if(N=t.slotEntryTrigger)O.debugData.slotEntryTriggerData=hxS(N);N=t.slotFulfillmentTriggers;O.debugData.fulfillmentTriggerData=[];N=_.D(N);for(var H=N.next();!H.done;H=N.next())O.debugData.fulfillmentTriggerData.push(hxS(H.value));
t=t.slotExpirationTriggers;O.debugData.expirationTriggerData=[];t=_.D(t);for(N=t.next();!N.done;N=t.next())O.debugData.expirationTriggerData.push(hxS(N.value))}return O};
hxS=function(N,t){var O={type:N.triggerType};t!=null&&(O.category=t);N.triggeringSlotId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedSlotId=N.triggeringSlotId);N.triggeringLayoutId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedLayoutId=N.triggeringLayoutId);return O};
bkg=function(N,t,O,H){t={opportunityType:t};N&&(H||O)&&(H=_.rc(H||[],function(A){return MH4(N,A)}),t.debugData=Object.assign({},O&&O.length>0?{associatedSlotId:O}:{},H.length>0?{slots:H}:{}));
return t};
pJM=function(N){return R8(N.opportunityAdapterMap).concat(R8(N.triggerAdapterMap)).concat(R8(N.fulfillmentAdapterFactoryMap)).concat(R8(N.slotAdapterFactoryMap)).concat(R8(N.layoutRenderingAdapterFactoryMap))};
R8=function(N){var t=[];N=_.D(N.values());for(var O=N.next();!O.done;O=N.next())O=O.value,O.isAdsControlFlowEventListener&&t.push(O);return t};
J5=function(N){var t=N.slotId,O=N.slotType,H=N.slotPhysicalPosition;return t===void 0?new vz("Cannot construct a slot due to the missing id.",{adSlotMetadata:N}):O===void 0?new vz("Cannot construct a slot due to the missing type.",{adSlotMetadata:N}):H===void 0?new vz("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:N}):{slotId:t,slotType:O,slotPhysicalPosition:H,managerLayer:"external",adSlotLoggingData:N.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Lrp}};
zxG=function(N){var t=N.layoutId,O=N.layoutType;return t===void 0?new o8("Cannot construct a layout due to the missing id.",{adLayoutMetadata:N}):O===void 0?new o8("Cannot construct a layout due to the missing type.",{adLayoutMetadata:N}):{layoutId:t,layoutType:O,managerLayer:"external",adLayoutLoggingData:N.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Lrp,interactionLoggingAdsClientData:{}}};
YCS=function(N){if(N.querySelector("img")){var t=N.querySelector("img");t.addEventListener("error",function(){OaN(t.src).then(function(O){(O=_.l9(O).toString())?t.src=O:t.removeAttribute("src")}).catch(function(){t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Nu=function(N,t){if(t&&(aDy(t.viewableCommand)||aDy(t.endOfSessionCommand))){var O=Tgg(t==null?void 0:t.viewableCommand);t=Tgg(t==null?void 0:t.endOfSessionCommand);if(!sM){var H=_.uP("custom_active_view_tos_timeout_ms");sM=H>0&&H!==36E5?new wJQ(exQ(),H):new wJQ(exQ())}Phv(sM,N);XJg(sM,N,O,t)}};
tq=function(N){sM&&Phv(sM,N)};
exQ=function(){var N=_.Ro("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(N==null?void 0:N.length)===2?N[1]:null};
aDy=function(N){N=_.wF(N);return!(N==null||!N.loggingUrls)&&N.loggingUrls.length>0};
Tgg=function(N){if(!N)return[];var t=[],O,H;((H=(O=_.wF(N))==null?void 0:O.loggingUrls)!=null?H:[]).forEach(function(A){A.baseUrl&&t.push(A.baseUrl)});
return t};
x8v=function(N){if(_.h("stop_av_measurement_on_detach"))return function(){tq(N)}};
kDz=function(N){return function(){_.h("stop_av_measurement_on_detach")&&tq(N)}};
qCt=function(N){if(_.h("stop_av_measurement_on_detach"))return function(){tq(N)}};
fDS=function(N){return N.shorts.isDesktopSmallWidth};
_.n7G=function(N){return N.shorts.isShortsActive};
_.WrO=function(N){return N.shorts.isWatchWhileMode};
_.O9=function(N){return N.shorts.isFullscreen};
_.Hy=function(N){return N.shorts.isShortsPipActive};
IDO=function(N){var t,O;if(N=(t=_.M(N.reelsAdCardButtoned,rEG))==null?void 0:(O=t.animatedRenderingConfig)==null?void 0:O.easeOutSeconds)return N+"s"};
QLg=function(N,t,O){return _.K(function(H){return H.return(new Promise(function(A){var Z=new Image;Z.onload=function(){A(new lDQ(N,t,O,Z.naturalWidth,Z.naturalHeight))};
Z.src=O.toString()}))})};
m8N=function(N,t){return Math.round(N/1E-5)===Math.round(t/1E-5)};
E7l=function(N,t){return Math.round(N/1E-5)===Math.round(t/1E-5)};
GDM=function(N,t){return N.year===t.year&&N.month===t.month&&N.day===t.day};
Rxv=function(N,t){return N.year!==t.year?N.year<t.year:N.month!==t.month?N.month<t.month:N.day<t.day};
JEM=function(N){return N.day===v7y(N.year,N.month)?N.month===11?{year:N.year+1,month:0,day:1}:{year:N.year,month:N.month+1,day:1}:{year:N.year,month:N.month,day:N.day+1}};
o7O=function(){var N=new Date,t={year:N.getFullYear(),month:N.getMonth(),day:N.getDate()};return{start:t,end:{year:N.getFullYear()+2,month:N.getMonth(),day:N.getDate()},selectedDate:JEM(t)}};
sLM=function(N){return(new md(2)).format(new Date(N.year,N.month,N.day))};
Nhp=function(N){return{year:N.getFullYear(),month:N.getMonth(),day:N.getDate()}};
tPy=function(N,t){N=(N+(Number(t.utcOffsetSec)+(new Date(N*1E3)).getTimezoneOffset()*60))*1E3;t=Nhp(new Date(N));return{date:t,secondsSinceMidnight:Math.floor((N-(new Date(t.year,t.month,t.day)).getTime())/1E3)}};
Oy4=function(N,t){t=t.months.findIndex(function(O){return O.year===N.year&&O.month===N.month});
return t>=0?t:void 0};
Hyy=function(N){if(!N)return!1;try{if(N.host&&N.host.tagName==="YT-FORMATTED-STRING"&&N.host.id==="contenteditable-textarea"||N.nodeType===Node.ELEMENT_NODE&&N.tagName==="YTD-COMMENTBOX")return!0}catch(t){return!1}return Hyy(N.parentNode)};
Aq=function(N){return N?!(N.tagName!=="A"||!N.href||!N.classList.contains("yt-simple-endpoint")):!1};
Apv=function(N){return N?N.tagName==="IMG"&&N.classList.contains("emoji"):!1};
ZyG=function(N,t,O){if(!N)return null;var H=Aq(N);if(H&&O)return t=N.pathname.substring(N.pathname.indexOf("/channel/")+9),document.createTextNode("@"+t);if(H&&!O)return document.createTextNode("");if(Apv(N))return O=N.alt,N=N.dataset.emojiId,!N&&t&&(t=_.Z_(t,O))&&t.isCustomEmoji&&(N=t.emojiId),N?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+N+">"):document.createTextNode(O);H=N.cloneNode(!1);for(var A=0;A<N.childNodes.length;++A){var Z=ZyG(N.childNodes[A],t,O);Z&&H.appendChild(Z)}return H};
Vx=function(N){return N?Aq(N)?N:Vx(N.lastChild):null};
VPy=function(N){return N?Aq(N)?N:VPy(N.firstChild):null};
D9S=function(N){if(!N)return null;for(var t=N.previousSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.previousSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.previousSibling;else break;(t=Vx(t))?N=t:N=(N=N.parentNode)?Vx(N.previousElementSibling):null;return N};
U9G=function(N){if(!N)return null;for(var t=N.nextSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.nextSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.nextSibling;else break;return(t=VPy(t))?t:U9G(N.parentNode)};
CGM=function(N){var t=_.D_(),O=t.JSC$11498_getStartNode();if(!Hyy(O.parentNode))return null;t=t.JSC$11498_getStartOffset();if(O.nodeType===Node.TEXT_NODE){var H=_.EW(O,Aq);if(H){if(N&&t===0||!N&&t===O.length)return H}else{if(N&&t===O.length)return!O||O.nodeName==="BR"||O.nextElementSibling&&_.U9(O.nextElementSibling,"display")==="block"?null:VPy(O.nextElementSibling);if(!N&&t===0)return O?Vx(O.previousElementSibling):null}}if(O.nodeType===Node.ELEMENT_NODE)if(N){if(0<=t&&t<O.childNodes.length)return VPy(O.childNodes[t])}else if(0<
t&&t<=O.childNodes.length)return Vx(O.childNodes[t-1]);return null};
K6O=function(N,t,O){if(!N)return null;if(N.nodeType===Node.TEXT_NODE)if(O){var H=D9S(N);if(H&&!/^\s+\S/.test(N.wholeText.substr(0,t)))return H}else if((H=U9G(N))&&!/\S\s+/.test(N.wholeText.substr(t,N.wholeText.length)))return H;return N.nodeType===Node.ELEMENT_NODE?O?D9S(N.childNodes[t]):U9G(N.childNodes[t]):K6O(N.parentNode,t,O)};
F6O=function(N){if(N.hasChildNodes())switch(N.tagName){case "DIV":case "A":case "SPAN":var t="";for(N=N.firstChild;N;N=N.nextSibling)t+=F6O(N);return t;default:return""}else switch(N.nodeType){case 3:return N.textContent;default:return""}};
Ci=function(N,t){return N.year===t.year&&N.month===t.month&&N.day===t.day};
Ki=function(N,t){return N.year!==t.year?N.year<t.year:N.month!==t.month?N.month<t.month:N.day<t.day};
d9N=function(N){return{year:N.getFullYear(),month:N.getMonth(),day:N.getDate()}};
gax=function(N){var t=D3p;t=t===void 0?D3p:t;t(new Date(N.year,N.month,N.day))};
F_=function(N){return d9N(new Date(Number(N.seconds)*1E3))};
ypM=function(N){return N.year!==void 0&&N.month!==void 0&&N.day!==void 0};
BhO=function(N){return N.start!==void 0&&N.end!==void 0};
cpN=function(N){return BhO(N)?N.start:N};
$9v=function(N){return BhO(N)?N.end:void 0};
iyz=function(N,t){for(var O=[],H=new Date(N.start.year,N.start.month);H.getFullYear()<N.end.year||H.getFullYear()===N.end.year&&H.getMonth()<=N.end.month;){var A=O,Z=A.push,U=H.getFullYear(),C=H.getMonth(),F=N,g=t,B=void 0,c=[],u=Object.freeze({extraCssClass:"invisible"}),S=new Date(U,C),b=d9N(S);S=S.getDay();for(var z=d9N(new Date);b.month===C;){S!==jWG&&B||(B=Array.from({length:7}).fill(u),c.push(B));var w={date:{year:U,month:C,day:b.day},extraCssClass:"",debugClass:""};w.extraCssClass=g(w.date,
b,z,F).trim();B[(S-jWG+7)%7]=w;b=b.day===v7y(b.year,b.month)?b.month===11?{year:b.year+1,month:0,day:1}:{year:b.year,month:b.month+1,day:1}:{year:b.year,month:b.month,day:b.day+1};S=(S+1)%7}Z.call(A,{weeks:c,monthLabel:dv.SHORTMONTHS[C]+" "+U,year:U,month:C,monthLabelExtraCssClass:c[0][2]===u?"shift-down-label":""});H.setMonth(H.getMonth()+1)}return O};
u24=function(N,t){t=t.months.findIndex(function(O){return O.year===N.year&&O.month===N.month});
return t>=0?t:void 0};
hCQ=function(N,t){a:{var O=O===void 0?[2,3]:O;O=_.D(O);for(var H=O.next();!H.done;H=O.next()){var A=new Date;if((new SQ9(H.value)).parse(t,A,{validate:!0})){A.setHours(0,0,0,0);t=A;break a}}t=null}if(!t)return{isValid:!1,value:void 0};t=d9N(t);O=N.end;return Ki(t,N.start)||Ki(O,t)?{isValid:!1,value:void 0}:{isValid:!0,value:t}};
zCS=function(N){var t=MPS;t=t===void 0?by4:t;var O=N.columnsToShow||[],H=pry(N.columnDimensions,N.columnsToShow,N.leftFloatingColumns,t);return O.map(function(A,Z){var U=N.columns[A];if(U===void 0)throw Error("Qh");var C=H?H[Z]:"";var F=N.getCustomTooltip?N.getCustomTooltip(A,U.headerTooltipParagraphs):U.headerTooltipParagraphs;var g=L69(N,A);return{type:A,index:Z,style:C,classes:g,headerName:U.headerName||"",headerIcon:U.headerIcon,headerTooltipParagraphs:F||[],headerTooltipHelpContext:U.headerTooltipHelpContext,
sortOrders:U.sortOrders||[],selectionState:U.isSelectionCheckbox?N.selectionState:void 0}})};
L69=function(N,t){var O=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],H=N.columns[t];if(H===void 0)return"";var A=O.includes("DEFAULTS")&&H.cssClass?[H.cssClass]:[];if(O.includes("SORTING")){H.sortOrders&&H.sortOrders.length&&A.push("sortable");if(N.sorting&&N.sorting.columnType===t)a:switch(N.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var Z="column-sorted";break a;default:Z=""}else Z="";Z&&A.push(Z)}O.includes("FLOATING")&&(t=N.columnsToShow.indexOf(t),N.leftFloatingColumns&&t<N.leftFloatingColumns&&
A.push("floating-column"),N.leftFloatingColumns&&t===N.leftFloatingColumns-1&&A.push("last-floating-column"));O.includes("RIGHT_ALIGN")&&H.rightAlignHeader&&A.push("right-align");return A.filter(function(U){return U}).join(" ")};
pry=function(N,t,O,H){O=O===void 0?0:O;H=H===void 0?by4:H;if(N){var A=[],Z=0;YQv(N,t,H).forEach(function(U,C){var F="min-width:"+U.minWidth+"px;padding-left:"+U.paddingLeft+"px;padding-right:"+U.paddingRight+"px;flex:"+U.flexGrow+" 0 "+U.minWidth+"px;";U.maxWidth!==Infinity&&(F=[F,"max-width:"+U.maxWidth+"px;"].join(""));Z>0&&C<O&&(F=[F,"left:"+Z+"px;"].join(""));A.push(F);Z+=U.minWidth+U.paddingLeft+U.paddingRight});
return A}};
YQv=function(N,t,O){O=O===void 0?by4:O;return t.map(function(H,A){H=N&&N[H]||{};var Z=A===0?O.paddingLeftFirstColumn:O.padding;H.paddingLeft!==void 0&&(Z=H.paddingLeft);A=A===t.length-1?O.paddingRightLastColumn:O.padding;H.paddingRight!==void 0&&(A=H.paddingRight);return{paddingLeft:Z,paddingRight:A,minWidth:H.minWidth!==void 0?H.minWidth:O.minWidth,maxWidth:H.maxWidth!==void 0?H.maxWidth:O.maxWidth,flexGrow:H.flexGrow!==void 0?H.flexGrow:O.flexGrow}})};
aRG=function(N){var t=N.reduce(function(H,A){var Z=A.columnId,U={};A.headerText&&(U.headerName=_.Gv(A.headerText));A.rightAlignHeader&&(U.rightAlignHeader=A.rightAlignHeader);var C;if((C=A.headerIcon)==null?0:C.iconType)U.headerIcon=_.Vt(A.headerIcon.iconType);H[Z]=U;return H},{}),O=N.filter(function(H){return!H.hideColumn}).map(function(H){return H.columnId});
N=N.filter(function(H){return!!H.dimensions}).reduce(function(H,A){H[A.columnId]=A.dimensions;
return H},{});
return{columns:t,columnsToShow:O,columnDimensions:N}};
_.Thg=function(N){return N?N.simpleText?N.simpleText:N.runs?N.runs.map(function(t){return t.text}).join(""):"":""};
keQ=function(N){var t=N.data;var O=N.onTap;var H=N.isSelected;var A=N.onFocusIn;if(!t)return{};N=wrG(t);H===void 0&&(H=t==null?void 0:t.isSelected);var Z;return{text:eCy(t,N),startIcon:(Z=t.icon)==null?void 0:Z.iconType,state:H?0:2,type:0,style:PGQ(t),onTap:Xrl(t,O),accessibilityLabel:x9v(t,N),onFocusIn:function(){return A==null?void 0:A()}}};
eCy=function(N,t){if(!t)return N.text?_.Thg(N.text):void 0};
PGQ=function(N){var t;switch((t=N.style)==null?void 0:t.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
Xrl=function(N,t){return function(O){t==null||t(O,N)}};
wrG=function(N){N=N.style&&N.style.styleType;return!tHO&&N==="STYLE_EXPLORE_LAUNCHER_CHIP"};
x9v=function(N,t){if(t){var O,H,A;return(A=(O=N.accessibilityData)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label)!=null?A:eCy(N,!1)}};
qQv=function(){var N;return[function(t,O,H){return _.or(N,t,O,H)},
function(t){N=t}]};
fRx=function(N,t){return _.CM(N.entities,"chipEntity",t)};
W6N=function(N,t,O,H){return function(){var A=nav.has(N.displayType)&&N.selected,Z=A&&N.deselectCommand?N.deselectCommand:N.tapCommand;!Z||A&&H||_.xJ(Z,{form:{element:t==null?void 0:t.value}});O==null||O()}};
IRp=function(N,t){if(N=N.onUpdateText){var O;N=(O=_.M(N,rpN))==null?void 0:O.stepId}else N=void 0;O=N;t=t==null?void 0:t.stepStates;if(O&&t){var H,A;return(H=t[O])==null?void 0:(A=H.userQuery)==null?void 0:A.userQuery}};
gv=function(N){return{signalAction:{signal:N}}};
m9Q=function(){return _.Ro("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?lRl:_.QW9};
EaN=function(N,t){N=N===void 0?"SOFT_RELOAD_PAGE":N;t=t===void 0?49504:t;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.NE(_.CJ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:t}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:N}}]}}}};
Gex=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.NE(_.CJ("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:m9Q()}};
RCy=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.NE(_.CJ("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:m9Q()}};
vax=function(N,t){var O=_.NE(_.CJ("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),H=_.NE(_.CJ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),A={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.NE(_.CJ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};A.serviceEndpoint=N?N:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[gv("SOFT_RELOAD_PAGE")]}};return{title:O,bodyText:H,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:A},
style:{value:t!=null?t:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
oaN=function(N){N=N===void 0?{}:N;return{title:_.NE(N.localizedZeroStateTitleText===void 0?"":N.localizedZeroStateTitleText),bodyText:_.NE(N.localizedZeroStateMessage===void 0?"":N.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.NE(N.localizedZeroStateButtonText===void 0?"":N.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[Jpy]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Nwv=function(N){N=N===void 0?{}:N;return{title:_.NE(N.localizedOptInBannerTitleText===void 0?"":N.localizedOptInBannerTitleText),titleLength:19,subtitle:_.NE(N.localizedOptInMessage===void 0?"":N.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.NE(_.CJ("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:_.NE(_.CJ("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:[sWM]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
HQS=function(N,t){var O=t=t===void 0?{}:t;t=O.offlineTitleText===void 0?"":O.offlineTitleText;var H=O.offlineDescriptionText===void 0?"":O.offlineDescriptionText,A=O.formattedSupplementalText,Z=O.actionButtonText===void 0?"":O.actionButtonText,U=O.titleText===void 0?"":O.titleText;O=O.descriptionText===void 0?"":O.descriptionText;var C={title:Z,accessibilityText:Z,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};N||(U=t,O=H,C={title:Z,accessibilityText:Z,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.NE(U),titleLength:U.length,overrideTitleMaxFontSize:30,subtitle:_.NE(O),supplementalText:A,primaryButton:{buttonViewModel:C},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[tvg]},darkTileImage:{thumbnails:[OQl]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.VvN=function(N,t,O,H,A,Z,U,C,F,g,B){A=A===void 0?!1:A;Z=Z===void 0?!1:Z;U=U===void 0?0:U;C=C===void 0?-Infinity:C;F=F===void 0?!1:F;g=g===void 0?!1:g;B=B===void 0?!1:B;var c=[],u=_.NE(_.CJ("SMART_DOWNLOADS",void 0,"Smart downloads")),S=_.NE(AMQ(U,C,N.length));C=U=void 0;g?U={statementBannerRenderer:HQS(B,H)}:A?N.length>0?C=ZQN(N,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.h("kevlar_manual_downloads_above"),u,S):F?C={alertBannerViewModel:{heading:{content:O.localizedOptInBannerTitleText===
void 0?"":O.localizedOptInBannerTitleText},body:{content:O.localizedPromptMessage===void 0?"":O.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.CJ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.CJ("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:_.cPM}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:Z&&(C={backgroundPromoRenderer:{bodyText:_.NE(_.CJ("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"}}}):
Z&&(C={alertBannerViewModel:{heading:{content:O.localizedOptInBannerTitleText===void 0?"":O.localizedOptInBannerTitleText},body:{content:O.localizedOptInMessage===void 0?"":O.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.CJ("TURN_ON",void 0,"Turn on"),accessibilityText:_.CJ("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}}}}}});O=_.NE(_.CJ("YOUR_DOWNLOADS",void 0,"Your downloads"));H=void 0;t.length>0?(H=void 0,_.h("kevlar_display_downloads_numbers")&&(H=_.NE(_.KJ("VIDEO_COUNT",t.length))),H=ZQN(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,O,H)):A||N.length||
g||(H={backgroundPromoRenderer:{bodyText:_.NE(_.CJ("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}}}});U?c.push({richSectionRenderer:{content:U}}):C&&!_.h("kevlar_manual_downloads_above")&&c.push({richSectionRenderer:{content:C,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
H&&c.push({richSectionRenderer:{content:H,loggingDirectives:{clientVeSpec:{uiType:51721}}}});C&&_.h("kevlar_manual_downloads_above")&&c.push({richSectionRenderer:{content:C,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(t.length>0||A&&N.length>0&&!g)&&c.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.NE(_.CJ("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:c}};
_.UiS=function(N){return DiQ(N,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.CHO=function(N){return DiQ(N,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
DiQ=function(N,t){var O=[];N=ZQN(N,t,!0);O.push({richSectionRenderer:{content:N}});return{contents:O}};
ZQN=function(N,t,O,H,A){O=O===void 0?!1:O;var Z="RESPONSIVE_SIZE_STANDARD";_.h("kevlar_standard_rich_grid_on_offline_home")&&t==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?Z="RESPONSIVE_SIZE_STANDARD":_.h("kevlar_modern_downloads_compact")?Z="RESPONSIVE_SIZE_COMPACT":_.h("kevlar_modern_downloads_extra_compact")?Z="RESPONSIVE_SIZE_EXTRA_COMPACT":_.h("kevlar_modern_downloads_tiny")&&(Z="RESPONSIVE_SIZE_TINY");N={isExpanded:O,contents:yx(N),entitySelectorType:t,responsiveContainerConfiguration:{responsiveSize:Z}};
H&&(N.title=H);A&&(N.subtitle=A);O||(_.h("kevlar_smart_downloads_show_more_button")?(N.showMoreButton={buttonRenderer:{accessibility:{label:_.CJ("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.NE(_.CJ("SHOW_MORE",void 0,"Show more"))}},N.showLessButton={buttonRenderer:{accessibility:{label:_.CJ("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.NE(_.CJ("SHOW_LESS",void 0,"Show less"))}}):(N.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.CJ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},N.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.CJ("HORIZONTAL_LIST_NEXT_LABEL",
void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},N.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.CJ("VIEW_ALL",void 0,"View all"),accessibilityText:_.CJ("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:_.oX("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:N}};
yx=function(N){var t=[];N=_.D(N);for(var O=N.next();!O.done;O=N.next())if(O=O.value,sul(O)){var H=t,A=H.push;var Z=void 0;if(O==null?0:(Z=O.videoEntity)==null?0:Z.videoId){Z=fM(_.v5().getState(),O.videoEntity.videoId);var U=_.v5().getState();var C=_.U_(O.videoEntity.videoId,"mainVideoEntity");U=!!_.b5(U.entities)[C];U={videoId:O.videoEntity.videoId,title:tB(O.videoEntity.title),shortBylineText:tB(O.channelEntity.title),thumbnail:O.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:U&&_.h("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:ahx(O.videoEntity.videoId,Z,O.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.CJ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};O.videoEntity.lengthSeconds&&(U.thumbnailOverlays=pRN(O.videoEntity.lengthSeconds,Z));U.isWatched=Z>0;_.h("kevlar_modern_downloads_page")&&(U.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:O.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.CJ("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},U.badges=void 0);O=U}else O={};A.call(H,{richItemRenderer:{content:{videoRenderer:O},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(o8Q(O)){H=t;A=H.push;var F=C=Z=void 0,g=void 0,B=void 0,c=void 0,u=void 0,S=void 0,b=void 0,z=void 0,w=void 0,P=void 0;U=O.mainPlaylistEntity.playlistId;var x=O==null?void 0:(P=O.mainPlaylistEntity)==null?void 0:(w=P.thumbnailStyleData)==null?void 0:(z=w[0])==null?void 0:(b=z.value)==null?void 0:(S=b.collageThumbnail)==
null?void 0:S.coverThumbnail;if(U&&x){S=T_l(U);!_.h("enable_offline_playlist_page")&&(O==null?0:(u=O.mainPlaylistEntity)==null?0:u.videos)&&(u=O==null?void 0:(c=O.mainPlaylistEntity)==null?void 0:(B=c.videos)==null?void 0:B[0],B=_.Zn(u).entityId,B=JSON.parse(B).videoId,B!==void 0&&(S=fM(_.v5().getState(),B),S=_.sK(B,U,void 0,void 0,S)));B=[];if(O==null?0:(g=O.mainPlaylistEntity)==null?0:(F=g.videos)==null?0:F.length)F=VN4(),g=Object,B=g.assign,c=(c=ZXO(O==null?void 0:O.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.NE(c),icon:{iconType:"PLAYLISTS"}}}:void 0,B=[F,B.call(g,{},(C=c)!=null?C:{})];O={playlistId:U,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:x}},navigationEndpoint:S,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:B,title:tB(O.mainPlaylistEntity.title),shortBylineText:tB(O==null?void 0:(Z=O.channelEntity)==null?void 0:Z.title),badges:[{metadataBadgeRenderer:{label:_.CJ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.h("kevlar_modern_downloads_page")&&(O.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Kax,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:U,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.CJ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},O.badges=void 0)}else O=void 0;A.call(H,{richItemRenderer:{content:{playlistRenderer:O},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return t};
AMQ=function(N,t,O){N=N?Fa9(N):"";t!==void 0&&isFinite(t)?t===0?t=_.CJ("UPDATING",void 0,"Updating..."):(t=bXN(new Date(t),new Date),t=_.CJ("UPDATED_TIME",{relative_time:t},"Updated "+t)):t="";var H="";N&&t&&(H=" \u2022 ");if(O&&_.h("kevlar_display_downloads_numbers")){O=_.KJ("VIDEO_COUNT",O);if(N||t)H=" \u2022 ";return O+H+N+H+t}return N+H+t};
diy=function(N){return lIM(N.entities).length};
_.g5O=function(N,t,O){var H=fx(N.responsiveSize),A;N=!((A=N.responsiveMap)==null||!A.some(function(Z){return Z.containerSize==="CONTAINER_SIZE_NARROW"&&Z.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:O,containerWidth:t,sizing:H,enableFullBleedForSingleCol:!1,isCompactList:H==="COMPACT"&&N}};
yMG=function(N,t){return _.CM(N.entities,"votingEntity",t)};
By=function(N){if(N){var t;return((t=_.cY().resolve(_.BY(_.WV)))==null?0:t())?N.darkTheme:N.lightTheme}};
Bwl=function(N,t){if(N.simpleText)return Object.assign({},N,{simpleText:q2(N.simpleText,t)});if(!N.runs)return N;for(var O=Object.assign({},N,{runs:[]}),H=0,A=_.D(N.runs),Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,Z.text)if(H+Z.text.length<=t)O.runs.push(Z),H+=Z.text.length;else return O.runs.push(Object.assign({},Z,{text:q2(Z.text,t-H)})),O;return N};
cMp=function(N,t){return _.CM(N.entities,"chipBarStateEntity",t)};
$iQ=function(N){switch(N){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
jAG=function(N,t){return{triggeringElement:N,onDwellTriggeredFn:function(){var O={triggeringElement:N,loadVideoPreviewEventData:t},H=document.querySelector(".video-preview");H&&H.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:O}))},
onDwellEndFn:function(){var O=document.querySelector(".video-preview");O&&O.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
iQx=function(N,t){var O=_.cY().resolve(_.BY(iwG)),H=function(){var A=t();return O&&A?jAG(N.value,A):null};
_.rp(function(){var A=H();O&&A&&Promise.resolve().then(function(){O.registerElement(A)});
_.Ia(function(){O&&A&&Promise.resolve().then(function(){_.xS(O,A)})})},"csPUge")};
Sz9=function(N){var t=N.dataset.resizeObserverId;if(t)return t;t=""+uRt++;return N.dataset.resizeObserverId=t};
hjN=function(N){N=_.D(N);for(var t=N.next();!t.done;t=N.next()){t=t.value;var O=Sz9(t.target),H=Object.assign({},{target:t.target},cy.get(O));if(H!=null&&H.contentRect?H.contentRect.width!==t.contentRect.width||H.contentRect.height!==t.contentRect.height:1)for(cy.set(O,{borderBoxSize:t.borderBoxSize,contentBoxSize:t.contentBoxSize,contentRect:t.contentRect,devicePixelContentBoxSize:t.devicePixelContentBoxSize}),O=_.D($g.get(O)||[]),H=O.next();!H.done;H=O.next())H=H.value,H(t)}};
bQz=function(N,t){var O=Sz9(N);$g.has(O)||$g.set(O,new Set);$g.get(O).add(t);cy.has(O)&&t(Object.assign({},{target:N},cy.get(O)));jq||(jq=new MvG(hjN));t=jq;t.observe(N)};
ppG=function(N,t){var O=Sz9(N);$g.has(O)&&($g.get(O).delete(t),$g.get(O).size===0&&($g.delete(O),cy.delete(O),jq.unobserve(N),delete N.dataset.resizeObserverId));$g.size===0&&jq&&(jq.disconnect(),jq=void 0)};
zjp=function(N,t){var O=_.cY().resolve(j4);return LaQ.map(function(H){return O.observe(N,t,H)})};
Yzz=function(N){var t=_.cY().resolve(j4);N.forEach(function(O){t.unobserveByKey(O)})};
_.ie=function(N){var t=_.D(bb4()),O=t.next().value,H=t.next().value,A=Object.assign({},as4,N),Z=Twz(function(U){var C=U.contentRect.height;if((U=U.contentRect.width)||C||A.canHaveZeroSize)O.width()===U&&O.height()===C||H(O,{height:C,width:U})},A.throttleMs);
return[O,function(U){var C=[];A.useVisibilityObserver&&(C=zjp(U,function(F,g){requestAnimationFrame(function(){g==="visible"?bQz(U,Z):ppG(U,Z)})}));
C.length||bQz(U,Z);return function(){C.length&&(Yzz(C),C.length=0);ppG(U,Z)}}]};
ejS=function(N,t,O,H,A){N=t?N.switchOffCommand:N.switchOnCommand;if(H&&A)wpp(N,O,A);else{var Z,U;(Z=_.PV({elementsCommand:N}))==null||(U=Z.onclick)==null||U.call(Z,O)}};
wpp=function(N,t,O){N=_.PV({elementsCommand:N,additionalCommandArgs:{commandController:{onSuccess:function(){O(!1)},
onServerError:function(){O(!1)}}}});
if(N==null?0:N.onclick)N.onclick(t),O(!0)};
XpO=function(N){if(N)return _.M(N,PHv)};
xi9=function(N){if(N)switch(N){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
kQS=function(N,t){if(!((N==null?0:N.entitySelectorType)&&(N==null?0:N.entityKey)))return{};switch(N.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.h("enable_web_shorts_captions_language_command")){var O;var H=(O=_.FF())==null?void 0:O.getOption("captions","track");var A,Z=typeof(H==null?void 0:H.translationLanguage)==="object"&&((A=H.translationLanguage)==null?void 0:A.languageName)||(H==null?void 0:H.displayName)||"";H={data:Object.assign({},
!!Z&&{selectionText:{content:Z}},!!Z&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof H==="undefined"})}}else H={};return H;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.h("web_shorts_audio_track_picker")){var U;A=((U=_.FF())==null?void 0:U.getAudioTrack())||void 0;O=A==null?void 0:(Z=A.getLanguageInfo())==null?void 0:Z.getName();A={data:Object.assign({},{selectionText:{content:O}},O&&!(A==null?0:(H=A.getLanguageInfo())==
null?0:H.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else A={};return A;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return H=N!=null&&N.entityKey?(H=_.DN(t,N.entityKey))?{isHidden:(H==null?void 0:H.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},H;default:return{}}};
qzO=function(N,t){return function(O){var H=function(A){_.YS(_.zE(A),O,t)||N(A)};
O.addEventListener("click",H);return function(){O.removeEventListener("click",H)}}};
_.fsS=function(N){return function(){return _.M(N(),_.ue)}};
n5v=function(N){switch(N){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
WaS=function(N){return n5v(N==null?void 0:N.all)};
rMp=function(N){var t={};(N=N==null?void 0:N.padding)&&(t.padding=n5v(N.vertical)+"px "+n5v(N.horizontal)+"px");return t};
Ist=function(N){switch(N){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
lsN=function(N){switch(N){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
QAy=function(N){switch(N){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
mip=function(N,t){if(t)return{containerStyles:rMp(t),itemStyles:function(O,H){var A={flex:"1"},Z=t==null?void 0:t.flexDirection;b:switch(Z){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":O=!!O;break b;default:O=!!H}O||(O=_.Ro("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",Z==="FLEX_DIRECTION_ROW"||Z==="FLEX_DIRECTION_ROW_REVERSE"?(Z=WaS(t==null?void 0:t.gap)+"px",O?A["margin-left"]=Z:A["margin-right"]=Z):A["margin-bottom"]=WaS(t==null?void 0:t.gap)+"px",A.flex=
"1");return A},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(t==null?void 0:t.flexDirection)==="FLEX_DIRECTION_ROW"||(t==null?void 0:t.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
E5y=function(N){return N<528?"CONTAINER_SIZE_NARROW":N<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
GQM=function(N,t){N=_.D(N.responsiveMap||[]);for(var O=N.next();!O.done;O=N.next())if(O=O.value,O.containerSize===t)return O.containerType};
_.Rjy=function(N,t){if(t){var O=t.responsiveSize;N=E5y(N);var H=GQM(t,N);if(H&&O){a:{if(H==="CONTAINER_TYPE_VERTICAL_LIST")if(O==="RESPONSIVE_SIZE_STANDARD"){if(N!=="CONTAINER_SIZE_NARROW"){var A="50%";break a}}else{A=N==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}A=void 0}return{responsiveSize:O,containerSize:N,containerType:H,force16By9ThumbnailAspectRatio:!t.enableContentSpecificAspectRatio,contentPreviewWidth:A,fullbleed:(H==="CONTAINER_TYPE_VERTICAL_LIST"||H==="CONTAINER_TYPE_GRID")&&N===
"CONTAINER_SIZE_NARROW"&&!1}}}};
v5z=function(N,t){var O={};switch(t){case "CONTAINER_TYPE_VERTICAL_LIST":O["flex-direction"]="column";O.padding="0 "+N.margin+"px";break;case "CONTAINER_TYPE_GRID":O["flex-direction"]="row";O.flex="none";O["flex-wrap"]="wrap";O.width=N.maxContainerWidth?N.maxContainerWidth+N.gutter+"px":void 0;O.padding="0 "+(N.margin-N.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":O["flex-direction"]="row",O.flex="none",O["overflow-x"]="auto",O.width=N.maxContainerWidth?N.maxContainerWidth+"px":void 0,
O.padding="0 "+N.margin+"px"}return O};
JMx=function(N,t){if(t){var O=GQM(t,E5y(N));a:switch(O){case "CONTAINER_TYPE_GRID":var H=3;break a;default:H=1}H=_.g5O(t,N,H);var A=_.qU(H);return{containerLayoutConfig:_.Rjy(N,t),containerStyles:v5z(A,O),itemStyles:function(Z,U){Z={};switch(O){case "CONTAINER_TYPE_VERTICAL_LIST":U||(Z["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":Z.width=A.itemWidth+"px";Z["margin-right"]=A.gutter/2+"px";Z["margin-left"]=A.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":Z.width=A.itemWidth+
"px",Z.flex="none",U||(Z["margin-right"]=A.gutter+"px")}return Z}}}};
OIv=function(N,t,O){if(t)return[o5S];switch(N){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Sq];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return O?[Sq]:[sAp,Sq];case "TRANSFER_STATE_PAUSED_BY_USER":return[NS9,Sq];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[tCO,Sq];default:return[o5S]}};
HIG=function(N,t,O,H){return OIv(N,t,H).map(function(A){var Z=A.text,U=A.iconType,C=A.videoAction;A=A.playlistAction;Z=Z?{content:Z}:void 0;U=U&&{sources:[{clientResource:{imageName:U}}]};var F=(0,_.WW.unsafeClone)(O);if(F){var g=_.M(F,_.ye),B=_.M(F,_.Bz);g&&C?g.action=C:B&&A&&(B.action=A)}return{title:Z,leadingImage:U,rendererContext:F&&{commandContext:{onTap:{innertubeCommand:F}}}}})};
A2t=function(N){N=_.a8(N.rendererContext);var t;return(t=_.M(N,_.Bz))==null?void 0:t.playlistId};
ZI4=function(N){var t;return(t=N.listItems)==null?void 0:t.some(function(O){var H;return _.TE((H=_.M(O,_.h5))==null?void 0:H.rendererContext)})};
UI4=function(N){var t;return(t=N.listItems)==null?void 0:t.some(function(O){var H,A,Z=(A=(H=_.M(O,VCx))==null?void 0:H.defaultListItem)!=null?A:O;O=_.M(Z,_.h5);return!!_.M(O==null?void 0:O.leadingAccessory,DIp)})};
_.hq=function(N){var t=_.cY().resolve(_.BY(_.WV));return t!=null&&t()?N.darkThemeColorPalette:N.lightThemeColorPalette};
_.be=function(N){return{primaryTextColor:Mu(N,0),secondaryTextColor:Mu(N,1),optionColor:Mu(N,2),backgroundColor:Mu(N,3),videoBackgroundColor:Mu(N,4)}};
Mu=function(N,t){if(N){switch(t){case 0:N=N.primaryTitleColor;break;case 1:N=N.secondaryTitleColor;break;case 2:N=N.surgeColor;break;case 3:N=N.section2Color;break;case 4:N=N.section3Color;break;default:return}if(N)return _.aI(N)}};
FW4=function(N){var t=N.element;var O=N.veType;var H=N.storedVisualElement===void 0?null:N.storedVisualElement;var A=N.elementIndex===void 0?0:N.elementIndex;N=N.clientYouTubeData;var Z=_.z8();Z!==CNQ&&(KWy.clear(),CNQ=Z);if(t.visualElement&&KWy.has(t.visualElement))return null;if(H&&KWy.has(H))return t.visualElement=H,null;O=_.dF(_.gF(),{veType:O,elementIndex:A,clientYouTubeData:N});if(!O)return null;t.visualElement=O;KWy.add(O);return O};
_.pi=function(N,t,O,H){O=O===void 0?null:O;H=H===void 0?aGp:H;var A=A===void 0?null:A;bb(function(){if(t){O instanceof Function&&(O=O());var Z=FW4({element:t,veType:N,storedVisualElement:O,clientYouTubeData:void 0});Z&&(eQv(t,A),H(Z))}})};
dIQ=function(N){return N?_.TV(N):""};
gQS=function(N){return(N==null?void 0:N.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
y2M=function(N,t){return _.CM(N.entities,"videoOverviewAsyncDataEntity",t)};
BSp=function(N,t){var O;return"linear-gradient(to bottom, "+((O=t==null?void 0:t.map(function(H){var A=N?H.darkThemeColor:H.lightThemeColor;return A?_.TV(A)+" "+((H==null?void 0:H.startLocation)||0)*100+"%":"transparent"}))==null?void 0:O.join(", "))+")"};
c2y=function(N,t,O,H,A){if(!((H==null?0:H.height)&&(H==null?0:H.width)))return{size:0};var Z=H.width;H=H.height;if(A)return t==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&Z>H?{size:312/WEz}:t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(O!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||N!==1&&N!==2||t!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&t!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&t!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(t==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||H===Z)switch(N){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||H>Z)switch(N){case 1:case 3:return{size:240*n$9};default:return{size:360*n$9}}switch(N){case 1:case 2:return{size:1/WEz*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.$I9=function(N){if(!("matchMedia"in window))return _.HY(Error("Rh")),function(){return!1};
var t=window.matchMedia(N);N=_.D(_.b$(t.matches,void 0,"waIHpe"));var O=N.next().value,H=N.next().value,A=function(Z){H(Z.matches)};
t.addEventListener?(t.addEventListener("change",A),_.Ia(function(){t.removeEventListener("change",A)})):t.addListener&&(t.addListener(A),_.Ia(function(){t.removeListener(A)}));
return O};
jiy=function(N){return N==="IMAGE_BANNER_STYLE_INSET"||N==="IMAGE_BANNER_STYLE_UNKNOWN"};
iIN=function(){if(!("matchMedia"in window))return _.HY(Error("Rh")),function(){return 0};
var N=window.matchMedia("(max-width: 527.9px)"),t=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),O=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),H=window.matchMedia("(min-width: 1024px)"),A=_.D(_.b$(N.matches,void 0,"TmIKcb")),Z=A.next().value,U=A.next().value;A=_.D(_.b$(t.matches,void 0,"Z0fTKd"));var C=A.next().value,F=A.next().value;A=_.D(_.b$(O.matches,void 0,"w4xy7b"));var g=A.next().value,B=A.next().value;A=_.D(_.b$(H.matches,void 0,"DrbNC"));var c=A.next().value,
u=A.next().value,S=function(P){U(P.matches)},b=function(P){F(P.matches)},z=function(P){B(P.matches)},w=function(P){u(P.matches)};
_.Q8(function(){N.addEventListener?(N.addEventListener("change",S),t.addEventListener("change",b),O.addEventListener("change",z),H.addEventListener("change",w)):N.addListener&&(N.addListener(S),t.addListener(b),O.addListener(z),H.addListener(w));_.Ia(function(){N.removeEventListener?(N.removeEventListener("change",S),t.removeEventListener("change",b),O.removeEventListener("change",z),H.removeEventListener("change",w)):N.removeListener&&(N.removeListener(S),t.removeListener(b),O.removeListener(z),
H.removeListener(w))})});
return function(){return Z()?1:C()?2:g()?3:c()?4:0}};
uZM=function(N){var t=0;N=_.D([N.title,N.metadata,N.actions,N.description,N.attribution]);for(var O=N.next();!O.done;O=N.next())O.value&&t++;return t};
S0S=function(N){return N===1||N===2?1:0};
MCM=function(N){N=(new hit).parse(N);return(new em).render(N).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(t){var O=t.split(":").map(Number),H=0,A=0;if(O.length===3)O=_.D(O),H=O.next().value,A=O.next().value,O=O.next().value;else if(O.length===2)O=_.D(O),A=O.next().value,O=O.next().value;else if(O.length===1)O=_.D(O).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(H*3600+A*60+O)+'" role="button">'+t+"</span>"})};
bIy=function(N){N=_.D(N.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var t=N.next(),O={};!t.done;O={clickHandler$jscomp$5:void 0},t=N.next()){t=t.value;O.clickHandler$jscomp$5=function(A){A=Number(A.target.getAttribute("data-time"));if(isNaN(A))throw Error("Th");var Z;(Z=_.FF())==null||Z.seekTo(A,!0)};
var H=function(A){return function(Z){Z.key!=="Enter"&&Z.key!=="Space"||(0,A.clickHandler$jscomp$5)(Z)}}(O);
t.setAttribute("tabindex","0");t.removeEventListener("click",O.clickHandler$jscomp$5);t.removeEventListener("keydown",H);t.addEventListener("click",O.clickHandler$jscomp$5);t.addEventListener("keydown",H)}};
pgl=function(){return _.d("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.d(Li,{percentWidth:100}),_.d(Li,{animationDelay:200}),_.d(Li,{animationDelay:400}),_.d(Li,{animationDelay:600}),_.d(Li,{animationDelay:800,percentWidth:60}),_.d("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.d(Li,{percentWidth:100}),_.d(Li,{animationDelay:200}),_.d(Li,{animationDelay:400}),_.d(Li,{animationDelay:600,percentWidth:50}))};
Li=function(N){return _.d("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(N.percentWidth===void 0?100:N.percentWidth)+"%"},_.d("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(N.animationDelay===void 0?0:N.animationDelay)+"ms"}))};
LWx=function(){var N=_.D(_.b$(function(){return""},void 0,"dXJHWc")),t=N.next().value;
return[function(){return t()()},
N.next().value]};
zil=function(N,t){N=N?Fa9(N):"";t!==void 0&&isFinite(t)?t===0?t=_.CJ("UPDATING",void 0,"Updating..."):(t=bXN(new Date(t),new Date),t=_.CJ("UPDATED_TIME",{relative_time:t},"Updated "+t)):t="";var O="";N&&t&&(O=" \u2022 ");return _.NE(N+O+t)};
TSS=function(N,t,O,H,A,Z){t=t===void 0?0:t;var U=Y0y[t],C=U.title,F=U.iconType,g=U.topButtonRenderer,B=U.sectionClientVE;U=U.videoClientVE;var c;if(t!==1||N.length){O=[];N=_.D(N);for(H=N.next();!H.done;H=N.next()){var u=H.value;if(sul(u))O.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:u.videoEntity.videoId,title:tB(u.videoEntity.title),shortBylineText:tB(u.channelEntity.title),thumbnail:u.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:u.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.CJ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:U}}}}}});else if(o8Q(u)){H=O;var S=H.push;var b=void 0,z=void 0,w=void 0,P=void 0,x=void 0,l=void 0,I=void 0,r=void 0,E=u.mainPlaylistEntity.playlistId,J=u==null?void 0:(r=u.mainPlaylistEntity)==null?void 0:(I=r.thumbnailStyleData)==null?void 0:(l=I[0])==null?void 0:(x=l.value)==null?void 0:(P=x.collageThumbnail)==null?void 0:P.coverThumbnail;P=T_l(E);if(!_.h("enable_offline_playlist_page")&&
(u==null?0:(w=u.mainPlaylistEntity)==null?0:w.videos)){b:{w=u==null?void 0:(z=u.mainPlaylistEntity)==null?void 0:z.videos;z=_.v5().getState().entities;if(w!=null&&w.length&&z)for(w=_.D(w),x=w.next();!x.done;x=w.next())if(x=_.Zn(x.value).entityId,(x=JSON.parse(x).videoId)&&r7O(z,x)==="TRANSFER_STATE_COMPLETE"){z=x;break b}z=""}z!==void 0&&(P=fM(_.v5().getState(),z),P=_.sK(z,E,void 0,void 0,P))}z=eR4(_.CJ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),T_l(E));u=E&&J&&z?{playlistId:E,navigationEndpoint:P,
viewPlaylistText:z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:J}},title:tB(u.mainPlaylistEntity.title),shortBylineText:tB(u==null?void 0:(b=u.channelEntity)==null?void 0:b.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:aKy,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:E,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.CJ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:U}}}:
void 0;S.call(H,{gridPlaylistRenderer:u})}}U={gridRenderer:{items:O}};t===1&&(c=zil(A,Z))}else if(H){var CN=_.NE((S=O==null?void 0:O.localizedPromptMessage)!=null?S:"");U={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.NE(_.CJ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.cPM}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.NE(_.CJ("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};c=zil(A,Z)}else CN=_.NE(_.CJ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
U={};return{contents:[{shelfRenderer:{title:C,titleAnnotation:c,icon:{iconType:F},subtitle:CN,content:U,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:g}]}}}}],loggingDirectives:{clientVeSpec:{uiType:B}}}};
wg9=function(N,t,O,H,A,Z,U,C,F,g,B){O=O===void 0?{}:O;H=H===void 0?{}:H;A=A===void 0?!1:A;Z=Z===void 0?!1:Z;U=U===void 0?!1:U;C=C===void 0?!1:C;F=F===void 0?!1:F;g=g===void 0?0:g;B=B===void 0?-Infinity:B;if(!(t.length||N.length||A||C))return Z?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:oaN(O)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.NE(_.CJ("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 c=[];N.length&&c.push(TSS(N,0));C?c.push({contents:[{statementBannerRenderer:HQS(F,H)}]}):A?c.push(TSS(t,1,O,U,g,B)):Z&&c.push({contents:[{statementBannerRenderer:Nwv(O)}]});(A&&t.length||N.length)&&c.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.NE(_.CJ("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 c.map(function(u){return{itemSectionRenderer:u}})};
zn=function(N,t){if(typeof N!=="object")return null;N=_.D(Object.entries(N));for(var O=N.next();!O.done;O=N.next()){var H=_.D(O.value);O=H.next().value;H=H.next().value;if(O===t)return O;if(H=zn(H,t))return O+"."+H}return null};
Yg=function(N){var t=N.content;return(N=N.styleRuns)&&t?{runs:N.map(function(O){var H={text:t.slice(O.startIndex,O.startIndex+O.length)};O.fontColor&&(H.textColor=O.fontColor);return H})}:{simpleText:t}};
XgO=function(N,t,O,H){var A=eiN;H&&(N.quantity=H);if(!N.quantity||!N.maxQuantity)return{};H=N.minusButton;var Z=N.plusButton,U,C,F,g;return{value:N.quantity,maxValue:N.maxQuantity,onChangeCallback:function(B){A(N,B)},
minusLabel:(U=_.M(H,PNy))==null?void 0:U.label,minimumReachedLabel:(C=_.M(H,PNy))==null?void 0:C.limitReachedLabel,plusLabel:(F=_.M(Z,PNy))==null?void 0:F.label,maximumReachedLabel:(g=_.M(Z,PNy))==null?void 0:g.limitReachedLabel,disabled:t,onRemoveCommand:O}};
eiN=function(N,t){var O=N.quantityIncrementerEntityKey;if(O){var H={};H.quantity=t;_.E6(_.aE("quantityIncrementerEntity",O,H));N.onChangeCommand&&_.xJ(N.onChangeCommand)}};
xI4=function(N){if(N)return N===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(N).overflowY)?N:xI4(N.parentElement)};
fKz=function(N,t){(N=kxO(N))&&((_.h("enable_mini_app_command_handler_mweb_fix")?0:t)?q0M.push({command:N,sourceData:{},commandContext:void 0}):_.cY().resolve(_.jo).resolveCommand(N))};
kxO=function(N){return _.M(N,_.Tb)};
nQS=function(){var N=window.performance.timeOrigin+window.performance.now(),t=(new _.Tn).setSeconds(N/1E9);return _.Nm(t,2,_.Dz(N%1E9),0)};
r2Q=function(N,t){var O;N=(O=_.M(_.M(N,_.Tb),WWt))==null?void 0:O.methodName;var H,A;(O=window.youtubewebview||((H=window.webkit)==null?void 0:(A=H.messageHandlers)==null?void 0:A.youtubewebview))&&N&&(H=new wv,N=_.Xa(H,1,N),N=_.wi(N.JSC$12702_serializeBinary()),t=_.wi(t),O.postMessage(N+","+t))};
eq=function(N,t){var O=_.M(_.M(N,_.Tb),WWt);O&&(t&&(O.serializedAdditionalMetadata=_.wi(t)),fKz(N,!0))};
IKx=function(N,t,O){setTimeout(function(){_.No(N,t)},O)};
lKt=function(N){switch(N){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
Qix=function(){return!!_.Ro("ID_TOKEN")};
GxN=function(N){return N instanceof Error&&N.cause instanceof mIM&&N.cause.rpcErrorCode!==void 0?!EQ9.includes(N.cause.rpcErrorCode):!0};
vQl=function(){return _.CF(Riy,{authuser:""+(_.Ro("SESSION_INDEX")||0)})};
Py=function(N,t,O,H){O=O===void 0?"MINI_APP_SDK_API_UNSPECIFIED":O;H=H===void 0?"":H;var A=new _.fF;O={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:H,sdkApi:O};N instanceof Error&&(A.message=N.message,A.name=N.name,N.cause instanceof mIM&&N.cause.rpcErrorCode!==void 0&&(O.rpcErrorCode=N.cause.rpcErrorCode));var Z;(Z=t.onError)==null||Z.call(t,{loggingError:A,metadata:O})};
oQx=function(N,t,O,H){switch(N){case "MINI_APP_SOURCE_GAMESNACKS":return new X_(t,O,H);default:return new J2S(t,O,H)}};
sit=function(N){switch(N){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
Nol=function(N){switch(N){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
tal=function(N){switch(N){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
OrQ=function(){return Math.floor(Math.random()*4)+1};
Hrv=function(N,t,O,H){N=_.D(Object.entries(N));for(var A=N.next(),Z={};!A.done;Z={message$jscomp$995:void 0},A=N.next()){var U=_.D(A.value);A=U.next().value;U=U.next().value;Z.message$jscomp$995=U;t.push(setTimeout(function(C){return function(){H(!1);O(C.message$jscomp$995.text)}}(Z),Z.message$jscomp$995.delayMs));
Number(A)>0&&t.push(setTimeout(function(){H(!0)},Z.message$jscomp$995.delayMs-400))}};
Aj9=function(N,t){var O=O===void 0?aGp:O;_.h("mweb_fix_monitor_visibility_after_render")?N&&bb(function(){eQv(N,t,O)}):bb(function(){eQv(N,t,O)})};
ZrG=function(N,t){var O=document.createElement("ytd-engagement-panel-section-list-renderer");O.data=N;var H=t!=null?t:{};N=H.isPersistentPanel;t=H.hideDelayMs;H=H.overscrollContain;N=Object.assign({},N&&{isPersistentPanel:N},t&&{hideDelayMs:t},H&&{overscrollContain:H});Object.assign(O,N);return O};
CJg=function(N){VaQ||(VaQ=D6Q(new _.r8(1,void 0,void 0,U6l),0));var t=VaQ.format(Math.floor(N));t=nM==="be"||nM==="bg"||nM==="es"||nM==="et"||nM==="hu"||nM==="ka"||nM==="lv"||nM==="pl"||nM==="pt-PT"||nM==="sq"?t.replace(new RegExp("^(\\d)"+U6l.GROUP_SEP.replace(".","\\.")+"(\\d+("+U6l.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):t;return N>=1E3&&N<=9999&&t[1]==="."&&(nM==="sl"||nM==="it")?t.replace(".",""):t};
d6t=function(N,t,O,H){if(N)return H=H||N.likeStatus,t?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:H==="LIKE",isDisabled:!N.likesAllowed,defaultIcon:{iconType:O},defaultText:H==="LIKE"?N.likeCountWithUnlikeText:N.likeCountText,toggledText:H==="LIKE"?N.likeCountText:N.likeCountWithLikeText,defaultNavigationEndpoint:Klg(N,"LIKE"),defaultServiceEndpoint:FlQ(N,"LIKE"),toggledServiceEndpoint:FlQ(N,"INDIFFERENT"),defaultTooltip:_.Gv(N.likeCountTooltipText),toggledTooltip:_.Gv(N.likeCountTooltipText),
targetId:N.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:H==="DISLIKE",isDisabled:!N.likesAllowed,defaultIcon:{iconType:O},defaultText:H==="DISLIKE"?N.dislikeCountWithUndislikeText:N.dislikeCountText,toggledText:H==="DISLIKE"?N.dislikeCountText:N.dislikeCountWithDislikeText,defaultNavigationEndpoint:Klg(N,"DISLIKE"),defaultServiceEndpoint:FlQ(N,"DISLIKE"),toggledServiceEndpoint:FlQ(N,"INDIFFERENT"),defaultTooltip:_.Gv(N.dislikeCountTooltipText),
toggledTooltip:_.Gv(N.dislikeCountTooltipText)}};
Klg=function(N,t){if(t==="LIKE")return N.likeCommand;if(t==="DISLIKE")return N.dislikeNavigationEndpoint};
FlQ=function(N,t){var O;return(O=N.serviceEndpoints)==null?void 0:O.find(function(H){var A;return((A=_.M(H,_.xg))==null?void 0:A.status)===t})};
_.BoN=function(N,t,O){return window.spf&&!_.h("web_disable_spfjs_client")?gRM(N,t,O):yjv(N,t)};
gRM=function(N,t,O){var H=null,A=(new _.TW(function(Z,U){var C={};if(t){C.method=t.method;var F=t.postParams||{};cb4(N,t)&&(F[_.Ro("XSRF_FIELD_NAME")]=_.Ro("XSRF_TOKEN"));C.postData=_.Tp(F);t.type&&(C.type=t.type);F=t.headers}C.headers=KIp(N,F);_.h("debug_forward_web_query_parameters")&&(N=_.ybS(N,window.location.search));C.experimental_headers=C.headers;C.onError=function(g){g.err&&g.xhr&&(g.err.params={url:g.xhr.responseURL,response:g.xhr.responseText.substr(0,64)});U(g.err)};
C.onPartDone=function(g){O&&O.call(null,g.part)};
C.onDone=function(g){var B=cjQ(g.response,"xsrf_token");dE(window.location.href,N)&&B&&_.Gm("XSRF_TOKEN",B);if(B=cjQ(g.response,"service_worker_killswitch"))_.Gm("SERVICE_WORKER_KILLSWITCH",B),KRl();Z(g.response)};
H=spf.request(N,C)})).then($6O);
A.thenCatch(function(Z){var U=Z instanceof _.kg,C=Z&&Z.hasOwnProperty("params")&&Z.params.response?Z.params.response:"";Z instanceof Error&&(C?U?oVx(Z):C===')]}\'\n{"reload":"now"}'?oVx(Z):(jmO(Z,N,C),iry(Z,C)?_.J_(Z):_.R0(Z)):oVx(Z));H&&H.abort()});
return A};
$6O=function(N){if(N.type==="multipart"){var t=N.timing;N=N.parts.reduce(function(O,H){Object.assign(O,H);return O},{});
N.timing=N.timing||{};Object.assign(N.timing,t);N.type="reduced"}return N};
yjv=function(N,t){t=t===void 0?{}:t;var O=null,H=new _.TW(function(A,Z){t.onFinish=function(U){if(U.readyState===XMLHttpRequest.DONE)if(U.status===200){if(U.responseType!=="json"){var C=U.response;C.substring(0,5)===")]}'\n"&&(C=C.substring(5));try{var F=JSON.parse(C)}catch(g){F=g}}else F=U.response;F instanceof Error?Z(F):(C=cjQ(F,"xsrf_token"),dE(window.location.href,N)&&C&&_.Gm("XSRF_TOKEN",C),U=U.responseURL,window.performance&&window.performance.getEntriesByName?(C=window.performance.getEntriesByName(U).pop())?
U={responseStart:(0,_.jg)()-(C.responseEnd-C.responseStart)}:(Math.random()<.01&&(C=Error("ei"),C.params=U,_.J_(C)),U={responseStart:-1}):U={responseStart:0},F.timing=F.timing||{},Object.assign(F.timing,U),A(F))}else Z(Error("di`"+U.status))};
(O=_.aD(N,t))||Z(Error("di`"+O.status))});
H.thenCatch(function(A){A instanceof Error&&(jmO(A,N),iry(A)&&(A.level="WARNING"))});
_.h("cancel_pending_navs")&&H.thenCatch(function(){O.abort()});
return H};
cjQ=function(N,t){var O=N[t],H=N.parts;N.type==="multipart"&&H&&(O=(N=H.find(function(A){return t in A}))&&N[t]);
return O};
jmO=function(N,t,O){var H=N.message||"";t={original:H,url:t};if(O)if(H=H.match(/position:?\s*(\d+)/)){H=H&&Number(H[1])?Number(H[1]):0;var A=Math.max(H-25,0);t.position=H;t.response=O.substring(A,H+25)}else t.response=O.substring(0,50);_.o0(N,t);try{N.message="JSON parse error"}catch(Z){}};
iry=function(N,t){N=N.message||"";N=!!(N.indexOf("<")>=0||N.indexOf("end of ")>=0||N.indexOf("Unterminated string")>=0||N.indexOf("Unexpected EOF"));if(!N&&t)for(var O=t.length,H=!1,A=0;A<O;A++)if(H&&t[A]==="\\")A++;else if(t[A]==='"')H=!H;else if(t[A]==="<"&&!H){N=!0;break}return N};
uKg=function(){return document.documentElement.hasAttribute("dark")};
_.SBx=function(N,t){if(N!=="GFEEDBACK"&&N!=="GUIDED_HELP")_.JO(Error("fi`"+N));else{var O=_.cY().resolve(_.BY(_.J4));if(O&&(O=O.getCurrentPage())&&O.getServiceTrackingParams&&(O=O.getServiceTrackingParams()))for(var H=0,A;A=O[H++];)if(A.service===N){if(N=A.params)for(O=0;H=N[O++];)t[H.key]=H.value;break}}};
_.h04=function(N){var t=_.si();t&&(t=t.getPlayer())&&(t.pauseVideo(),N.playback_id=t.getVideoData().cpn,N.eid=t.getVideoData().eventId,Object.assign(N,t.getFeedbackProductData()))};
MaS=function(){var N={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Ro("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(N.enableAnonymousFeedback=!0);_.Ro("SESSION_INDEX")&&(N.authuser=String(_.Ro("SESSION_INDEX")));_.h("enable_pageid_for_feedback")&&_.Ro("DELEGATED_SESSION_ID")&&(N.pageId=String(_.Ro("DELEGATED_SESSION_ID")));return N};
_.qu=function(N){_.h("enable_ypc_spinners")&&_.sl(N,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},N])};
_.fi=function(N){_.h("enable_ypc_spinners")&&_.sl(N,"yt-close-popup-action",["yt-loading-renderer"])};
br9=function(N){return new Promise(function(t,O){_.eF({verifyCommand:{recaptchaToken:N.recaptchaResponse}},{commandController:{onSuccess:function(H,A){A||O("ChallengeService did not return a response.");var Z;t({challengeCompleted:(Z=A.verified)!=null?Z:!1})},
onServerError:function(H,A){O(A)}}})})};
pey=function(N,t,O,H){t({recaptchaResponse:H}).then(function(A){A.challengeCompleted?_.xv()?(O(3),_.cY().resolve(_.jo).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:N}})):O(2):O(4)},function(){O(4)})};
z0z=function(N,t,O){_.XU(_.ju(Llx,_.Ro("HL")),function(){var H;(H=window.grecaptcha)==null||H.ready(function(){var A=window.grecaptcha;A?(O(A.render(N,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:pey.bind(null,N,br9,t)})),t(1)):t(4)})})};
YBz=function(N,t){return function(){switch(t()){case 0:return N().captchaLoadingMessage;case 1:return N().challengeReason;case 3:return N().captchaSuccessfulMessage;case 2:return N().captchaCookieSetFailureMessage;case 4:return N().captchaFailedMessage;default:return N().challengeReason}}()};
_.ni=function(){if(!aMy){var N=document.querySelector("#player.skeleton");N&&(_.wb(N),aMy=!0)}};
_.wey=function(){return Tog=c64()};
Xev=function(){return _.K(function(N){return e0l!==void 0?N.return():N.yield(PJ9(),0)})};
PJ9=function(){return _.K(function(N){if(N.nextAddress==1)return N.yield(jfS(),2);Tog=N.yieldResult;e0l=_.GB.addLowPriorityJob(PJ9,5E3);_.Ty(N)})};
WlN=function(N){var t=t===void 0?x6S:t;var O,H,A=(O=N.responseContext)==null?void 0:(H=O.mainAppWebResponseContext)==null?void 0:H.trackingParam;if(!A){t.increment("MISSING");var Z,U,C,F,g,B;_.J_(new _.fF("282054944_a",{wMM:!!((Z=N.responseContext)==null?0:(U=Z.mainAppWebResponseContext)==null?0:U.loggedOut),xWw:((C=N.responseContext)==null?void 0:C.mainAppWebResponseContext)===void 0,h4f:N.responseContext===void 0,cp:(F=N.playabilityStatus)==null?void 0:F.contextParams,cKh:(((g=N.streamingData)==
null?void 0:g.formats)||[]).length>0,iRM:(((B=N.streamingData)==null?void 0:B.adaptiveFormats)||[]).length>0,os:!!N.offlineState,cotn:N.cotn}));return 2}O="";try{O=kfS(A)}catch(S){return t.increment("C_ERROR"),_.R0(S),2}try{var c=_.qBg(O);var u=fMp(c)}catch(S){return t.increment("P_ERROR"),_.R0(S),2}u=_.y5(u,nRN,1,_.cA());A=[];u=_.D(u);for(c=u.next();!c.done;c=u.next())H=c.value,c=H.getPath(),O=(0,_.WW.getValueByKeys)(N,c.split(".")),O=String(O===void 0||O===null?"":O),H=H.getValue()||"",Z=/[+\-\/_]/g,
O.replace(Z,"")!==H.replace(Z,"")&&(t.increment("MISMATCH"),_.h("ab_mis_log_err")&&(O=new _.fF("282054944_p",{hKG:c,g:String(O),e:String(H)}),_.R0(O)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(c)||(c.match(/enforcementMessageViewModel/i)?A.push(3):A.push(2)));if(A.length>0)return Math.max.apply(Math,_.W6(A));t.increment("SUCCESS");return 1};
lMy=function(N){var t=new Wy;if(N.interpreterJavascript){var O=_.QIG(N.interpreterJavascript);O=V0(O).toString();var H=new rjv;_.Xa(H,6,O);_.L8(t,1,H,P0)}else N.interpreterUrl&&(O=_.Rk(N.interpreterUrl),O=_.es(O).toString(),H=new _.IMx,_.Xa(H,4,O),_.L8(t,2,H,P0));N.interpreterHash&&_.rv(t,3,N.interpreterHash,P0);N.program&&_.rv(t,4,N.program,P0);N.globalName&&_.rv(t,5,N.globalName,P0);N.clientExperimentsStateBlob&&_.rv(t,7,N.clientExperimentsStateBlob,P0);return t};
IE=function(N){var t={};N=_.D(N.split("&"));for(var O=N.next();!O.done;O=N.next())O=O.value.split("="),O.length===2&&(t[O[0]]=O[1]);return t};
Qm9=function(N){return Number(N.t)||7200};
Itz=function(){if(_.h("bg_st_hr"))return"havuokmhhs-0";var N,t=((N=globalThis.performance)==null?void 0:N.timeOrigin)||0;return"havuokmhhs-"+Math.floor(t)};
le=function(N){window.bgens=N};
m6S=function(){return new Promise(function(N){var t=window;t.ntpevasrs!==void 0?N(new Qx(t.ntpevasrs)):(t.ntpqfbel===void 0&&(t.ntpqfbel=[]),t.ntpqfbel.push(function(O){N(new Qx(O))}))})};
ERG=function(N){if(_.h("attmusi")&&_.h("attmusi_ue")){N={s:N.fF2.bind(N),ir:N.idR.bind(N)};var t=window;t.attmp=N;if(t.attmq!==void 0)for(var O=_.D(t.attmq),H=O.next();!H.done;H=O.next())H=H.value,H(N);t.attmq=void 0}else t=N.fF2.bind(N),_.Ba("yt.aba.att",t),N=N.idR.bind(N),_.Ba("yt.aba.att2",N)};
R0z=function(N){switch(_.Yv(N.input)){case _.JB(Gfy):var t={};return t.encryptedVideoId=N.innerTubeRequest.externalVideoId,t}return{}};
oRN=function(N){switch(_.Yv(N.input)){case _.JB(Gfy):if(_.h("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.JB(vRS):if(_.h("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.JB(mh):if(_.h("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&N.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.JB(Jjx):var t,O;if(_.h("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((O=_.M((t=N.config)==null?void 0:t.command,_.GI))==null?0:O.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.NTN=function(N){var t;if(N.playlistVideoRenderer&&((t=N.playlistVideoRenderer)==null?0:t.engagementBar))return smQ(N.playlistVideoRenderer.engagementBar);if(_.M(N,E9)){var O;if(N=(O=_.M(N,E9))==null?void 0:O.engagementBar)return smQ(N)}return""};
smQ=function(N){if(!N)return"";N=_.M(N,_.tYg);if(N==null||!N.actions)return"";N=_.D(N.actions);for(N=N.next();!N.done;N=N.next()){N=_.M(N.value,_.OGQ);var t=void 0;if((t=N)==null||!t.itemId)break;return N.itemId}return""};
_.HGN=function(N){var t;if(N.playlistVideoRenderer&&((t=N.playlistVideoRenderer)==null?0:t.videoId))return N.playlistVideoRenderer.videoId;if(_.M(N,E9)){var O,H;if(N=(O=_.M(N,E9))==null?void 0:(H=O.playlistItemData)==null?void 0:H.videoId)return N}return""};
_.AF4=function(N){var t;if(N.playlistVideoRenderer&&((t=N.playlistVideoRenderer)==null?0:t.voteCount))return N.playlistVideoRenderer.voteCount;if(_.M(N,E9)){var O,H;if(N=(O=_.M(N,E9))==null?void 0:(H=O.playlistItemData)==null?void 0:H.voteCount)return N}return 0};
_.Gn=function(N,t){return _.CM(N.entities,"flowStateEntity",t)};
VYQ=function(N,t,O,H){var A=void 0;N=_.D(N[t.iconName]||[]);for(var Z=N.next();!Z.done;Z=N.next()){Z=Z.value;var U=t.iconSize;var C=t.iconStyle;U=!U||U===Z[2];var F=ZG4[Z[0]];H&&H!==Z[1]||!U||C&&C!==F?C=!1:A?(C=ZG4[Z[0]],C=!!t.iconStyle||C==="youtube_outline",U=A.version<=Z[1],C=(!!t.iconSize||Z[2]===24)&&C&&U):C=!0;C&&(A={name:t.iconName,style:ZG4[Z[0]],size:Z[2],version:Z[1],allowMirroring:!!Z[3],url:O(t.iconName,Z)})}return A};
DMt=function(N,t,O,H){return N+(""+ZG4[O[0]]+((H===void 0?0:H)?"_experimental":"")+"/"+t+"/v"+O[1]+"/")+(O[2]+"px.svg")};
UMS=function(N){return _.Ro("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.Ro("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":N};
C4S=function(N,t){return DMt("https://fonts.gstatic.com/s/i/",N,t)};
K9t=function(N,t){return DMt("https://fonts.gstatic.com/s/i/",N,t,!0)};
F9y=function(N,t){return DMt("https://www.gstatic.com/youtube/img/icons/web/",N,t)};
gh4=function(N){var t=N.enabled;var O=N.itemPlaybackModel;var H=N.thumbnailElRef;var A=N.containerElRef;var Z=N.options;var U;_.rp(function(){var C=A==null?void 0:A.value;var F,g=(F=H())==null?void 0:F.value;F=O();var B=Z();if(t&&F&&C&&g&&(B==null?0:B.thumbnail)){var c={data:F,hostElement:C},u,S,b=[].concat(_.W6((u=B.thumbnailOverlays)!=null?u:[]),_.W6((S=F.overlays)!=null?S:[]));S=F.itemPlaybackOptions;u=(S==null?void 0:S.enableRoundedPlayer)||B.enableRounding;S=S==null?void 0:S.disableTimeStatusOverlay;
var z,w;C={mediaRenderer:c,lockupElement:C,thumbnailElement:g,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.wF((z=F.inlinePlayerData)==null?void 0:z.onVisible),navigationEndpoint:_.wF((w=F.inlinePlayerData)==null?void 0:w.onSelect),thumbnail:B.thumbnail,thumbnailOverlays:b,accessibilityText:B.accessibilityText||""},thumbnailSize:B.thumbnailSize,enableRounding:u,mouseleaveCallback:B.mouseleaveCallback,hideTimeDisplay:S}}}else C=void 0;if(z=C){var P;(P=U)==null||RE(P);U=XF(z);var x,l;
((x=O())==null?0:(l=x.inlinePlayerData)==null?0:l.forceImpAutoplay)&&dMN(U)}},"BLiQOd");
_.Ia(function(){var C;(C=U)==null||RE(C)})};
yF4=function(N){N=atob(N);for(var t=[],O=0;O<N.length;O++)t.push(N.charCodeAt(O));return new Blob([new Uint8Array(t)],{type:"image/png"})};
cF4=function(N,t,O,H){H=H===void 0?"INSERTION_POSITION_UNSPECIFIED":H;return N({targetId:t},function(A){var Z,U=(Z=A.contents)!=null?Z:[];Z=O!=null?O:[];var C=BTN(U);switch(H){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},A,{contents:[].concat(_.W6(U.slice(0,C)),_.W6(Z),_.W6(U.slice(C+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},A,{contents:[].concat(_.W6(Z),_.W6(U))});case "INSERTION_POSITION_LAST":return Object.assign({},A,{contents:[].concat(_.W6(U),_.W6(Z))});
default:return A}})};
jh9=function(N,t,O,H,A){A=A===void 0?"RELATIVE_INSERTION_POSITION_AFTER":A;return N({targetId:t},function(Z){var U,C=(U=Z.contents)!=null?U:[];U=$MM(C,O);if(U<0)return Z;U=A==="RELATIVE_INSERTION_POSITION_BEFORE"?U:U+1;return Object.assign({},Z,{contents:[].concat(_.W6(C.slice(0,U)),_.W6(H),_.W6(C.slice(U)))})})};
BTN=function(N){var t=N.findIndex(function(O){return _.M(O,_.vy)});
return t>=0?t:N.length};
$MM=function(N,t){return N.findIndex(function(O){a:{O=_.D(Object.values(O));for(var H=O.next();!H.done;H=O.next())if((H=H.value)&&H.targetId){O=H.targetId;break a}O=""}return O===t})};
uYQ=function(N,t,O){return N({targetId:t},function(H){var A,Z=(A=H.contents)!=null?A:[];return Object.assign({},H,{contents:iGv(Z,O)})})};
iGv=function(N,t){return N.filter(function(O){var H=t.includes;a:{O=_.D(Object.values(O));for(var A=O.next();!A.done;A=O.next())if((A=A.value)&&A.targetId){O=A.targetId;break a}O=""}return!H.call(t,O||"")})};
_.SLv=function(N,t){return{engagementPanelSectionListRenderer:{panelIdentifier:N,identifier:t,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
hY4=function(N,t){N=N.getAvailableAudioTracks();if(N.length)return N==null?void 0:N.find(function(O){var H;return(O==null?void 0:(H=O.getLanguageInfo())==null?void 0:H.getId())===t})};
_.bGl=function(N){var t,O=(t=N.getOption("captions","tracklist",{includeAsr:!0}))!=null?t:[];return O=MY9(O,N)};
p$y=function(N){return N.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
MY9=function(N,t){t=p$y(t);if(t==null||!t.length)return N;var O=t.filter(function(U){return U});
t=N.filter(function(U){return U.languageCode.startsWith("en")});
O=_.D(O);for(var H=O.next();!H.done;H=O.next())if(H=H.value,t.length){var A=t[0],Z=Object.assign({},A);A.languageCode!==H.languageCode&&(Z.displayName=A.languageName+" >> "+H.languageName,Z.translationLanguage=H,N.push(Z))}return N};
L9Q=function(N,t,O){N=_.bGl(N);if(N.length)return O?N.find(function(H){if(typeof(H==null?void 0:H.translationLanguage)==="object"){var A;return((A=H.translationLanguage)==null?void 0:A.languageCode)===t}return!1}):N==null?void 0:N.find(function(H){return H.languageCode===t})};
zYg=function(N){return N.getOption("captions","tracklist",{includeAsr:!0})};
YLv=function(N){var t=N.getAvailableAudioTracks();if(t!=null&&t.length){var O=N.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.W6(t.map(function(H){return{listItemViewModel:{title:{content:H.getLanguageInfo().getName()},isSelected:H.getLanguageInfo().getId()===(O==null?void 0:O.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:H.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
aJS=function(N){return N.getOption("captions","tracklist",{includeAsr:!0})};
TTt=function(N){var t=aJS(N);if(t==null?0:t.length)return t;N.loadModule("captions");return aJS(N)};
w$M=function(N){var t=N.getOption("captions","track");if(t)return t;N.loadModule("captions");return N.getOption("captions","track")};
P49=function(N){var t=TTt(N);if(t!=null&&t.length){var O=w$M(N),H;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.CJ("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(O==null?0:O.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.W6(t.map(function(A){return{listItemViewModel:{title:{content:A.displayName},
isSelected:A.displayName===(O==null?void 0:O.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:A.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.CJ("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!O.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!O.translationLanguage&&{selectionText:{content:(O==null?void 0:(H=O.translationLanguage)==null?void 0:H.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[eYz(N)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
eYz=function(N){var t=p$y(N);if(t==null||!t.length)throw Error("Ei");var O=w$M(N);N=t.filter(function(H){return!H.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.W6(N.map(function(H){var A;return{listItemViewModel:{title:{content:H.languageName},isSelected:H.languageName===(O==null?void 0:(A=O.translationLanguage)==null?void 0:A.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:H.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
qLS=function(N){return new Promise(function(t,O){if(N===void 0)_.R0(Error("Ii"),"ERROR"),O(Error("Ii"));else{O=new _.X$x;var H=_.xMy();O=O.init();var A=_.k3t(_.Ro("YPC_MB_URL"),!0);Promise.all([O,A]).then(function(){var Z=_.Jq.payments.business.integration.ClientTokenFactory.createClientToken(N,H);t(Z)})}})};
W94=function(N,t,O,H,A,Z,U){var C=_.lj();O=O.replace(/-/g,"+").replace(/_/g,"/");var F=_.d0().get("hl"),g=_.oE(_.QE),B=t==null?void 0:t.element;B&&_.qu(B);fJy(t,!0);_.nhy(g,O,C.resolve,function(){B&&_.fi(B)},function(c){B&&_.fi(B);
C.reject(c)},F,H?function(c){H&&_.rq(N,H,{backend_analytics:c})}:void 0,C.resolve,A,Z,U);
return C.promise};
fJy=function(N,t){!(N=N==null?void 0:N.element)||N.tagName!=="YT-BUTTON-RENDERER"&&N.tagName!=="YTD-BUTTON-RENDERER"||(N.disabled=t)};
rFN=function(){var N=_.CJ("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.NE(N),actionButton:{buttonRenderer:RCy()}}},popupType:"TOAST"}};
IJy=function(){var N=_.CJ("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.NE(N),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
lJx=function(N){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:N}]}}};
s9=function(N,t,O,H){var A;return _.K(function(Z){if(Z.nextAddress==1)return _.Mo(Z,2),Z.yield(N,4);if(Z.nextAddress!=2)return(A=_.SD(t.getState().entities).length>0)?Z.return({title:_.NE(_.CJ("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.NE(_.CJ("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Gex()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
Z.return(vax(O,H));_.ax(Z);return Z.return(vax(O,H))})};
QhS=function(N,t){return t?t==="PPSV"||Quv(N,t):!1};
mMg=function(N){N.responseContext||(N.responseContext={});N.responseContext.maxAgeSeconds=0;return N};
Al=function(N){var t;return _.K(function(O){return O.nextAddress==1?O.yield(Eh9(N,"service:topbar:fallback"),2):(t=O.yieldResult)&&_.N4(t)?O.return(mMg(_.N4(t))):O.return()})};
G3l=function(N){var t;return _.K(function(O){return O.nextAddress==1?O.yield(Eh9(N,"service:downloads_settings:fallback"),2):(t=O.yieldResult)&&_.N4(t)?O.return(t):O.return()})};
Eh9=function(N,t){var O;return _.K(function(H){if(H.nextAddress==1)return N?H.yield(N.get(t),2):H.return();O=H.yieldResult;return!O||!_.N4(O)||!isNaN(Number(O.data.expireTimestampMs))&&O.isExpired()?H.return():H.return(O)})};
RYS=function(N){var t=_.cY().resolve(ZZ).getState().entities;return N.playlistId?QhS(t,N.playlistId):!1};
JF4=function(N){var t=_.uP("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;if(!_.M(N,_.jc))return t&&_.J_(Error("bj")),!1;var O;return _.h("shorts_controller_retrieve_seedless_sequence_v2")&&((O=_.M(N,_.jc))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:vhM(N)?!0:(t&&_.J_(Error("cj")),!1)};
vhM=function(N){var t=(_.M(N,_.rN)||_.M(N,_.jc)).videoId;if(!t||!ohM.test(t))return!1;var O;return(N=(O=_.M(N.commandMetadata,_.Da))==null?void 0:O.url)&&(N.includes(t)||N.startsWith("/clip"))?!0:!1};
_.NlO=function(){var N=_.d0();return N.getFlag(192)?N.getFlag(190):!(_.h("web_watch_cinematics_disabled_by_default")||_.h("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&sh4())};
_.VD=function(N,t,O){var H={};H.currentUrl=t;H.vis=N.vis!==void 0?N.vis:0;H.splay=!1;t=_.d0();H.autoCaptionsDefaultOn=t.getFlag(66);t.getFlag(141)?t.getFlag(140)?H.autonavState="STATE_OFF":H.autonavState="STATE_ON":H.autonavState="STATE_NONE";H.html5Preference="HTML5_PREF_WANTS";isNaN(_.Ro("STS"))||(H.signatureTimestamp=_.Ro("STS"));N.autonav&&(H.autoplay=!0,H.autonav=!0);N.mutedAutoplay&&(H.autoplay=!0,H.mutedAutoplay=!0);N.inlinePlayback&&(H.autoplay=!0,H.autonav=!1,H.isInlineUnmutedPlayback=!!N.inlineUnmuted);
H.referer=O;H.lactMilliseconds=N.lact!==void 0?N.lact.toString():"-1";_.h("enable_unknown_lact_fix_on_html5")&&H.lactMilliseconds==="-1"&&_.J_(new _.fF("Unknown LACT is set in playbackContext.",{"lact in tempData":N.lact||"undefined",autonav:N.autonav||"undefined"}));N={};t.getFlag(194)&&(N.hasShownAmbientMode=!0);t.getFlag(192)&&(N.hasToggledOffAmbientMode=!0);_.NlO()&&(N.watchAmbientModeEnabled=!0);H.watchAmbientModeContext=N;return H};
tlp=function(N){var t={},O=N.pbis||0;O&&(t.playbackBeginsInSeconds=O);N.prefetch_reason&&N.prefetch_reason==="hc_pbis"&&(t.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return t};
Oht=function(N,t){var O;if(t==null?0:(O=t.requestTemplate)==null?0:O.panelId)N.panelId=t.requestTemplate.panelId;var H;if(t==null?0:(H=t.requestTemplate)==null?0:H.params)N.params=t.requestTemplate.params};
Asy=function(){if(HhS)return HhS();var N=!_.h("idb_response_store_auth_killswitch"),t={};HhS=$2("yt-it-response-store",{objectStores:(t.ResponseStore={addedAtVersion:1},t),shared:!N,upgrade:function(O,H){H(1)&&(O=t_(O,"ResponseStore",{keyPath:["key","clientName"]}),O7(O,"byExpiration","expireTimestampMs"),O7(O,"byInterface","clientName"))},
version:1});return HhS()};
ZhN=function(N){return _.Cz(Asy(),N)};
DJS=function(N,t){var O;return _.K(function(H){return H.nextAddress==1?H.yield(_.ca(),2):(O=H.yieldResult)?H.return(new Vly(N,t,O)):H.return()})};
UJz=function(N){var t=Object.keys(N)[0];if(t)return N.screenExit&&(t=t+";"+N.screenExit.screen),t};
C3t=function(N){var t=new Map;N=_.D(N);for(var O=N.next();!O.done;O=N.next())O=O.value,O!=null&&(t.has(O.taskType)||t.set(O.taskType,[]),t.get(O.taskType).push(O));return t};
Kf9=function(N){N=[].concat(_.W6(N)).sort(function(O,H){return O-H});
var t=Math.floor(N.length/2);return N.length%2?N[t]:(N[t-1]+N[t])/2};
gUt=function(N,t){N=N===void 0?qiQ:N;t=t===void 0?{}:t;_.Ba("yt.logging.errors.log",_.R0);xet();Ffl(ING(),t);window.onerror=N;dJy=kIN;window.addEventListener("unhandledrejection",function(O){if(O.reason instanceof Error){var H=O.reason;_.o0(H,{source:"unhandledrejection"});H.name==="AbortError"&&(H.level="WARNING")}kIN(O.reason);O.preventDefault()})};
_.ysQ=function(N){var t,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E,J,CN,B4,zM,jy,c4,XO,kx,fN,gf,yr,sS,$X,pR,wf,b1,$r,US;return _.K(function(H0){if(H0.nextAddress==1)return H0.yield(_.B5(N,{mode:"readonly",enableRetries:!0},function(SE){return c5(SE,"playbackData").then(function(v0){var hu=v0.map(function(B0){return B0.transfer}).filter(function(B0){return!!B0}),sp=v0.map(function(B0){return B0.offlineVideoPolicy}).filter(function(B0){return!!B0}),LU=v0.filter(function(B0){return!!B0.key}).map(function(B0){return _.U_(_.Zn(B0.key).entityId,
"downloadStatusEntity")});
hu=c5(SE,"transfer",hu);sp=c5(SE,"offlineVideoPolicy",sp);LU=c5(SE,"downloadStatusEntity",LU);var Qr=hu.then(function(B0){B0=B0.reduce(function(c0,Am){(Am==null?0:Am.offlineVideoStreams)&&c0.push.apply(c0,_.W6(Am.offlineVideoStreams));return c0},[]).filter(function(c0){return!!c0});
return c5(SE,"offlineVideoStreams",B0)});
return Ov.all([hu,sp,Qr,LU]).then(function(B0){var c0=_.D(B0);B0=c0.next().value;var Am=c0.next().value;var Rl=c0.next().value;c0=c0.next().value;return[v0,B0,Am,Rl,c0]})})}),2);
if(H0.nextAddress!=3)return t=H0.yieldResult,H0.yield(_.B5(N,{mode:"readonly",enableRetries:!0},function(SE){return c5(SE,"mainDownloadsListEntity").then(function(v0){var hu,sp;return(sp=(hu=v0[0])==null?void 0:hu.downloads)!=null?sp:[]})}),3);
O=H0.yieldResult;H=_.D(t);A=H.next().value;Z=H.next().value;U=H.next().value;C=H.next().value;F=H.next().value;g=A;B=Z;c=U;u=C;S=F;b={};z={};w={};P={};x={};l=[];I=_.D(B);for(r=I.next();!r.done;r=I.next())(E=r.value)&&(b[E.key]=E);J=_.D(c);for(CN=J.next();!CN.done;CN=J.next())(B4=CN.value)&&(z[B4.key]=B4);zM=_.D(S);for(jy=zM.next();!jy.done;jy=zM.next())(c4=jy.value)&&(w[c4.key]=c4);XO=_.D(u);for(kx=XO.next();!kx.done;kx=XO.next())(fN=kx.value)&&(P[fN.key]=fN);gf=_.D(O);for(yr=gf.next();!yr.done;yr=
gf.next())sS=yr.value,$X=void 0,x[($X=sS.videoItem)!=null?$X:""]=!0,sS.videoItem&&(wf=pR=void 0,b1=(wf=(pR=_.Zn(sS.videoItem))==null?void 0:pR.entityId)!=null?wf:"",l.push({externalVideoId:b1}));$r=g.filter(function(SE){if(!SE||!SE.key||!SE.offlineVideoPolicy)return!1;SE=_.Zn(SE.key).entityId;SE=_.U_(SE,"downloadStatusEntity");var v0;return!(SE&&((v0=w[SE])==null?void 0:v0.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
US=$r.map(function(SE){var v0=b[SE.transfer],hu=[];if(v0==null?0:v0.offlineVideoStreams)for(var sp=_.D(v0.offlineVideoStreams),LU=sp.next();!LU.done;LU=sp.next())(LU=P[LU.value])&&hu.push(LU);sp=z[SE.offlineVideoPolicy];LU=x;var Qr=SE==null?void 0:SE.playerResponseTimestamp,B0=_.Zn(sp.key).entityId;SE=_.U_(B0,"mainVideoEntity");if(sp.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var c0="OFFLINE_VIDEO_STATE_DISABLED";sp.expirationTimestamp&&Number(sp.expirationTimestamp)<Date.now()/1E3&&(c0="OFFLINE_VIDEO_STATE_EXPIRED")}else if(sp.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")c0="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(v0==null?void 0:v0.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":c0="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":c0="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":c0="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":c0="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":c0="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":c0="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:c0="OFFLINE_VIDEO_STATE_UNKNOWN"}if(c0==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(v0==null?void 0:v0.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":c0="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":c0="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":c0=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}B0={id:B0,videoState:c0};if(v0==null?0:v0.cotn)B0.cotn=v0.cotn;if(v0==null?0:v0.maximumDownloadQuality)B0.selectedVideoQuality=v0==null?void 0:v0.maximumDownloadQuality;if(v0==null?0:v0.lastProgressTimeMs)B0.lastProgressTimeMs=v0.lastProgressTimeMs;Qr&&(B0.playerResponseSavedTimeMs=String(Number(Qr)*1E3));v0=String;Qr=0;hu=_.D(hu);for(c0=hu.next();!c0.done;c0=hu.next())if(c0=c0.value,c0.streamsProgress){c0=_.D(c0.streamsProgress);for(var Am=c0.next();!Am.done;Am=
c0.next()){var Rl=void 0;Qr+=Number((Rl=Am.value.numBytesDownloaded)!=null?Rl:0)}}B0.downloadedBytes=v0(Qr);B0.selectedOfflineMode=LU[SE]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";sp.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(B0.offlinePlaybackDisabledReason=sp.offlinePlaybackDisabledReason);return B0});
return H0.return({offlineVideos:US,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:l}}})})};
Blp=function(){var N;return _.K(function(t){return t.nextAddress==1?t.yield(_.d8(),2):(N=t.yieldResult)?t.return(_.ysQ(N)):t.return({state:"PES Unavailable"})})};
jz4=function(){var N,t,O,H;return _.K(function(A){if(A.nextAddress==1)return A.yield(_.d8(),2);if(A.nextAddress!=3)return(N=A.yieldResult)?A.yield(cst(N),3):A.return({state:"PES Unavailable"});t=A.yieldResult;O={};H=t.reduce(function(Z,U){Z[U.key]=U;return Z},O);
return A.return($Jg(H))})};
$Jg=function(N){for(var t={},O=[],H=_.D(Object.keys(N)),A=H.next();!A.done;A=H.next()){var Z=A.value;A=N[Z];var U=void 0;if(((U=A)==null?void 0:U.entityType)==="mainVideoEntity"){delete N[Z];var C=A.data;A={};if(C){var F=void 0;U=(F=C.videoId)!=null?F:"vid-"+Z;Z=N;A.video=C;delete A.video.formattedDescription;delete A.video.thumbnail;C.owner&&(F=Z[C.owner],F==null?0:F.data)&&(delete Z[F.key],A.video.owner=F.data,delete A.video.owner.avatar);if(C=C.downloadState)if(F=Z[C],F==null?0:F.data)if(delete Z[C],
C=F.data.playbackData)if(F=Z[C],F!=null&&F.data){delete Z[C];C=F.data;delete C.playerResponseJson;A.playbackData=C;if(C.transfer&&(F=Z[C.transfer],F==null?0:F.data)){delete Z[F.key];var g=F.data;A.transfer=g;F=[];g=_.D(g.offlineVideoStreams||[]);for(var B=g.next();!B.done;B=g.next())if(B=Z[B.value])delete Z[B.key],F.push(B.data);F&&(A.streams=F)}(C=C.offlineVideoPolicy)&&(C=Z[C])&&C.data&&(delete Z[C.key],A.offlineVideoPolicy=C.data)}t[U]=A}}else A&&A.entityType==="offlineOrchestrationActionWrapperEntity"&&
A.data&&(delete N[A.key],U=A.data,Z=void 0,O.push({id:U.rootActionId,type:((Z=U.actionProto)==null?void 0:Z.actionType)||"",entity:A}))}t.wrapperEntities=O;Object.keys(N).length>0&&(t.unknownKeys=N);return t};
ihl=function(){var N,t,O,H,A,Z,U,C,F;return _.K(function(g){if(g.nextAddress==1)return N=(new _.sv("")).hasLocalStorage(),H=!!((t=_.H4.crypto)==null?0:(O=t.subtle)==null?0:O.importKey),A=!!_.H4.BroadcastChannel,Z=!!_.H4.navigator.locks,g.yield(yBv(),2);U=g.yieldResult;C=N&&H&&A&&Z&&U;F={isSupported:C};if(C)return g.return(F);F.missingBrowserFeatures=[];U||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");N||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
H||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");A||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");Z||F.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return g.return(F)})};
u0N=function(N,t,O,H){var A=!1,Z={contentId:void 0,contentType:"video"};t=_.D(Object.entries(t));for(var U=t.next();!U.done;U=t.next()){var C=_.D(U.value);U=C.next().value;C=C.next().value;N.includes(U)&&!O.has(C)?(Z.contentId=C,O.add(C),A=!0):U==="contentType"?C==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(Z.contentType="playlist"):typeof C==="object"&&C!==null&&u0N(N,C,O,H)}A&&H.push(Z)};
ScN=function(){var N;return!((N=DZ?DZ:null)==null||!N.window)};
_.MlO=function(N){if(_.LN()&&_.h9x("Chromium")>=120){var t=_.huS().mediaSession;try{t.setActionHandler("enterpictureinpicture",function(){N()})}catch(O){}}};
bhp=function(N){for(var t=[],O=_.D(document.styleSheets),H=O.next(),A={};!H.done;A={node$jscomp$779:void 0},H=O.next())A.node$jscomp$779=H.value.ownerNode,A.node$jscomp$779&&(A.node$jscomp$779 instanceof HTMLStyleElement||A.node$jscomp$779 instanceof HTMLLinkElement)&&t.push(new Promise(function(Z){return function(U){var C=Z.node$jscomp$779.cloneNode(!0);C.onload=function(){U()};
C.onerror=function(){_.J_(Error("tj"));U()};
N.document.head.appendChild(C)}}(A)));
return Promise.all(t)};
XMg=function(N){var t=[_.BW(pMQ),_.BW(LfQ),_.BW(zuQ)];Ycp(window.document.documentElement,N.document.documentElement,[_.BW(aWt),_.BW(Tlg),_.BW(wMG),_.BW(eux),_.BW(P3p)]);Ycp(window.document.body,N.document.body,t)};
Ycp=function(N,t,O){N=_.D(N.attributes);for(var H=N.next();!H.done;H=N.next())if(H=H.value)try{_.KU(O,t,H.name,H.value)}catch(A){}};
k_g=function(N,t){N=new _.UI(N.document.documentElement);N.start(xJM,t);return N};
qcy=function(N){var t=N.document.documentElement;t.addEventListener("click",function(O){jcg(t,O)});
t.addEventListener("touchstart",function(O){MKv(O)});
t.addEventListener("mousedown",function(O){MKv(O)})};
nUS=function(N,t,O,H){H=H===void 0?!1:H;t=new fW9(t||N,O||N);return{x:N.x+((H===void 0?0:H)?t.lengthX*-1:t.lengthX)*.2,y:N.y+((H===void 0?0:H)?t.lengthY*-1:t.lengthY)*.2}};
WfG=function(N){if(!N)return!1;var t=N.status==="OK"||N.status==="LIVE_STREAM_OFFLINE",O,H,A,Z=(A=(O=N.errorScreen)==null?void 0:O.playerLegacyDesktopYpcTrailerRenderer)!=null?A:(H=N.errorScreen)==null?void 0:H.ypcTrailerRenderer;return!!t||!!Z};
_.rsS=function(N,t){if(!N)return!1;var O,H=(O=N.errorScreen)==null?void 0:O.playerLegacyDesktopYpcOfferRenderer,A;t=!!(t==null?0:(A=t.playerOverlayRenderer)==null?0:A.gatedActionsOverlayRenderer);return!!WfG(N)||!!H||!!t};
Qzp=function(N){return IWp(N,0,"gclid",N.search(lWN))>=0||IWp(N,0,"gad_source",N.search(lWN))>=0};
mJM=function(N){var t=[],O=0;return{clear:function(){O=t.length=0},
push:function(H){t[O]=H;O=(O+1)%N},
iterate:function(){return function A(){var Z,U,C,F;return _.CS(A,function(g){switch(g.nextAddress){case 1:_.zy(g,2),Z=t.length,U=0;case 4:if(!(U<Z)){g.jumpTo(2);break}C=O+U;F=_.KS;return g.yield(t[C%Z],7);case 7:F(g.yieldResult);U++;g.jumpTo(4);break;case 2:_.pU(g),_.YC(g,0)}})}()}}};
EUG=function(N){N.eventsToIgnore||(N.eventsToIgnore=[]);var t=N.eventsToIgnore.map(uGM),O=new Set(t),H=mJM(N.bufferSize);return{flush:function(){var A=Array.from(H.iterate());H.clear();A=A.map(function(Z){return{name:Z.name,timestamp:Z.startTime,attributes:Z.attributes}});
return JSON.stringify(A)},
onSpanStart:function(A){A.name==="event"&&O.has(A.attributes.type)||H.push(A)}}};
G_t=function(N){N=EUG(N);var t=N.flush;jyM({onSpanStart:N.onSpanStart});N1.subscribe("handleError",function(O){try{O.params.breadcrumbs=t()}catch(H){_.R0(H,"WARNING")}})};
RuN=function(){pJ("web_tracing_action");_.LJ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
vUp=function(){pJ("web_tracing_action");_.LJ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
szG=function(N,t,O){if(t===void 0){Jsv||(vUp(),setInterval(vUp,6E5),Jsv=!0);var H="web_tracing_action"}else H=t;var A,Z=((A=N.endTime)!=null?A:N.startTime)-N.startTime;A={};O=oUv(N.name,Z,N.startTime,{webTracing:(A[N.name]=N.attributes,A)},O,H,{spanStatus:N.status});if(N.children)for(N=_.D(N.children),H=N.next();!H.done;H=N.next())szG(H.value,t,O)};
NmN=function(N){var t=bYt.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(O){O.data&&typeof O.data==="object"&&(O=O.data,O.from==="extension"&&O.app==="yt.telemetry"&&(t("Received message from extension",O),N.onMessage(O)))});
return function(O,H){O={app:"yt.telemetry",from:"app",key:O,payload:H};t("Sending message to extension",O);window.postMessage(O,"*")}};
t2O=function(){var N=N===void 0?3E3:N;var t=NmN({onMessage:function(){}}),O=[];
return{onSpanEnd:function(H){H.parentId==null&&O.push(H)===1&&setTimeout(function(){var A=[].concat(_.W6(O));O.length=0;t("spansReported",{spans:A})},N)}}};
OHS=function(N){N=N===void 0?400:N;var t=[],O=[];return{start:function(){return Ogx({checkoutEveryNth:N,emit:function(H,A){A&&(t=O,O=[]);O.push(H)}})},
getRecording:function(){return[].concat(_.W6(t),_.W6(O))}}};
ZHM=function(){(new HHM({sessionReplayEvents:_.uP("web_tracing_session_replay",0)})).subscribe(function(N){if(N.sessionReplayEvents>0)try{var t=OHS(N.sessionReplayEvents);t.start();if(_.h("web_tracing_session_replay_demo")){var O=console.log;window.exportSessionReplay=function(){var H=JSON.stringify(t.getRecording(),null,2);H=AzG(new Blob([H],{type:"text/plain"}));var A=document.createElement("a");A.download="session_replay.json";A.dataset.downloadurl=["application/json",A.download,A.href].join(":");
A.style.display="none";A.href=H;A.click();URL.revokeObjectURL(H);O("View replay at go/yt-session-replay-viewer")}}}catch(H){_.J_(Error("vj"))}})};
Dtl=function(){var N=window.fetch;window.fetch=function(){var t=_.E1.apply(0,arguments),O=_.D(t),H=O.next().value;O=O.next().value;var A=RX("httpEvent",{method:(O===void 0?{}:O).method||"GET",path:V2Q(H),type:"fetch"},{active:!1});return N.apply(null,_.W6(t)).then(function(Z){A.addAttributes({statusCode:Z.status,statusText:Z.statusText});A.end();return Z}).catch(function(Z){A.end("SPAN_STATUS_ERROR");
throw Z;})}};
Ut9=function(){var N=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(O,H,A,Z,U){var C=this;A=A===void 0?!0:A;this._requestData={method:O,url:H.toString()};this.addEventListener("load",function(){var F=C._span;F==null||F.addAttributes({statusCode:C.status,responseContentLength:C.responseText.length});F==null||F.end()});
this.addEventListener("error",function(){var F=C._span;F==null||F.addAttributes({statusCode:C.status,statusText:C.statusText});F==null||F.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var F=C._span;F==null||F.addAttributes({statusCode:C.status,aborted:!0});F==null||F.end()});
N.apply(this,[O,H,A,Z,U])};
XMLHttpRequest.prototype.send=function(O){var H=this._requestData||{method:"N/A",url:"N/A"};this._span=RX("httpEvent",{method:H.method,path:V2Q(H.url),type:"xhr"},{active:!1});t.apply(this,[O])}};
V2Q=function(N){try{if(N instanceof URL)return N.pathname;N instanceof Request&&(N=N.url);return(new URL(N,"https://youtube.com")).pathname}catch(t){return"<unable to parse path>"}};
KtQ=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var N=window.performance.getEntriesByType("navigation");if(N.length>0){var t=N[0],O=window.performance.timeOrigin;RX("pageLoad",{navigationType:Cx9(t.type),unloadEventStart:Math.round(t.unloadEventStart),unloadEventEnd:Math.round(t.unloadEventEnd),domInteractive:Math.round(t.domInteractive),domContentLoadedEventStart:Math.round(t.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(t.domContentLoadedEventEnd),
domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:t.redirectCount},{active:!1,startTime:O+t.startTime,endTime:O+t.loadEventEnd})}}catch(H){}})};
Cx9=function(N){switch(N){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
Bmv=function(){for(var N=FtO.value,t={},O=_.D(N.enabledSpansArray),H=O.next();!H.done;H=O.next())t[H.value]=!0;$cQ({sessionId:H7v(),enabledSpans:t,shouldSampleFn:function(A,Z,U){if(dtp){var C;return A==="shortToShort"||(U==null?void 0:(C=U.rootSpan())==null?void 0:C.name)==="shortToShort"}return!0}});
M7N();GT("pageLoad")&&KtQ();GT("httpEvent")&&(Dtl(),Ut9());N.exportToCsi&&jyM(gyp);N.exportToDevTools&&jyM(t2O());N.maxBreadcrumbs>0&&G_t({eventsToIgnore:yzM,bufferSize:N.maxBreadcrumbs})};
czQ=function(N){return new Promise(function(t){window.setTimeout(t,N)})};
$t9=function(N){var t={bicf:function(Z){N.yzs=Z},
blc:function(){return N.getLatestChallengeResponse()},
bcr:function(Z){N.cLd.push(Z)}},O=window;
O.ntpevasrs=t;if(O.ntpqfbel!==void 0)for(var H=_.D(O.ntpqfbel),A=H.next();!A.done;A=H.next())A=A.value,A(t);O.ntpqfbel=void 0};
jVp=function(N){return _.K(function(t){if(t.nextAddress==1)return _.Mo(t,2),t.yield(N.kQT(),4);if(t.nextAddress!=2)return _.Do(t,0);_.ax(t);_.Ty(t)})};
iHg=function(N){var t,O;(t=N.ytcsi)==null||(O=t.tick)==null||O.call(t,"pot_ist")};
uhO=function(N){if(N instanceof Error){var t=_.s2("yt.logging.errors.log");t&&t(N,"WARNING")}};
SES=function(N){try{var t=JSON.parse(N);if(t.bgChallenge)return t}catch(O){}};
M2G=function(){var N=window,t={networkStatusManagerPromise:_.cY().resolve(new srx(_.VN)),initialChallengeSli:_.h("wpo_att_sli")?new _.h89("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};N=N===void 0?window:N;var O=N.ytAtR,H;t==null||(H=t.initialChallengeSli)==null||_.FQ(H);if(O){if(O=SES(O)){var A;t==null||(A=t.initialChallengeSli)==null||_.dP(A,"SUCCESS");hlg(O,t)}N.ytAtR=void 0}else N.ytAtRC=function(Z){if(Z=SES(Z)){var U;t==null||(U=t.initialChallengeSli)==null||
_.dP(U,"SUCCESS");hlg(Z,t);N.ytAtRC=void 0}}};
LtS=function(){if(bHg)return bHg;try{var N=_.Tu("IFRAME");_.No(N,_.ju(p39));N.sandbox.add("allow-same-origin");N.style.display="none";document.body.appendChild(N);return bHg=N}catch(t){N=new _.fF("Failed to create sandbox iframe"),_.R0(N)}};
zlt=function(N){var t,O;return(O=N==null?void 0:(t=N.contentWindow)==null?void 0:t.fetch)!=null?O:window.fetch};
YEv=function(N){var t,O;return(O=N==null?void 0:(t=N.contentWindow)==null?void 0:t.Request)!=null?O:window.Request};
afN=function(N){var t,O;return(O=N==null?void 0:(t=N.contentWindow)==null?void 0:t.TextDecoder)!=null?O:window.TextDecoder};
Tmt=function(){return function(N,t){_.Ro("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[N]=t}};
w3z=function(){return function(N,t){var O={};O[N]=t;N=_.oo(_.X8x)(O);Object.keys(N).length>0&&_.bp(N)}};
X3G=function(){if(VFG()==="hidden")var N="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else VFG()==="visible"&&(N="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",elv=null);N&&PxG(N)};
PxG=function(N){if(N==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||N==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(xt9===N)return;xt9=N}var t=9E4+Math.random()*2E3;if(N!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.jO()>t)&&VFG()==="visible"){t=-1;elv&&(t=Math.round((0,_.jg)()-elv));var O=String;var H=_.s2("_fact",window);H=H==null||H==-1?-1:Math.max(Date.now()-H,0);_.E7("foregroundHeartbeat",{firstActivityMs:O(H),clientDocumentNonce:AVM,index:String(k0v),lastEventDeltaMs:String(t),trigger:N});
_.Ba("_fact",-1,window);k0v++;elv=(0,_.jg)()}};
qEQ=function(N,t,O,H,A,Z){t=new Uint8Array(t);if(N.length===0)return t;var U=0;A=A!=null?A:N.length-1;for(var C=O;C<=A;C++){var F=N[C],g=C===O?H:0,B=void 0,c=C===A?(B=Z)!=null?B:F.length:F.length;F=F.subarray(g,c);t.set(F,U);U+=F.length}return t};
_.ffy=function(){try{return!!self.sessionStorage}catch(N){return!1}};
nyS=function(){var N=navigator;return new Promise(function(t,O){var H;(H=N.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?N.webkitTemporaryStorage.queryUsageAndQuota(function(A,Z){t({usage:A,quota:Z})},function(A){O(A)}):O(Error("Ej"))})};
Wtt=function(N,t){var O={errorSeverity:t.errorSeverity.toString(),wizFeatureFlags:Object.entries(t.featureFlags).join("\n")};XHS(t,O);t=t.errorSeverity;t===3?_.R0(N,"ERROR",void 0,void 0,void 0,O):t===2&&_.R0(N,"WARNING",void 0,void 0,void 0,O);_.h("cow_if_errors_in_popup")&&t===3&&N.message.indexOf("<If>")!==-1&&window.alert(N.message)};
rzS=function(N,t){var O=mI.get(N)||{layerNode:t};O.layerNode=t;cc4(N,O);N.getScreenLayer=function(){return gP(O.layerNode)}};
Ify=function(N){var t;N=N.parentNode;for(var O;N&&((t=mI.get(N))==null||!t.isRenderer)&&!((O=N.polymerController)!=null?O:N).isRenderer_;)N=N.parentNode||N.host;if(t=N)return mI.get(t)};
lfx=function(N){if(N){mI.delete(N);var t=_.cY().resolve(j4);hmG(N,t)}};
mtQ=function(N,t,O){if(O===void 0?0:O){if(O=N.getAttribute("client-ve-type"),t.data&&!t.disableReactiveLogging||O)_.Wo(function(){QVO(N,_.Qo(t.data))},"xg"),_.Ia(function(){return void lfx(N)})}else typeof t.data!=="function"&&QVO(N,t.data)};
QVO=function(N,t){Eyx++;G0v(N,t)&&_.GB.addJob(function(){_.yD(_.GB,function(){if(G0v(N,t)&&N.ownerDocument.documentElement===document.documentElement&&N){var O;if(N.getAttribute("layer")){var H=O=Number(N.getAttribute("layer")),A=mI.get(N);A?A.layerNode.layer=H:rzS(N,new Rlg(H));(H=Ify(N))&&(A=mI.get(N))!=null&&(A.layerNode.parent=H.layerNode)}else if(O=mI.get(N))O=gP(O.layerNode);else{O=gP;H=new Rlg;if(A=Ify(N))H.parent=A.layerNode;rzS(N,H);O=O(H)}O!=null||(O=0);H=N.getAttribute("client-ve-type");
A=Number(H);var Z=!1;H=!1;var U=mI.get(N),C;if((C=U)&&!(C=U[vy9]!==t)&&(C=A)){var F;C=((F=mI.get(N))==null?void 0:F.clientVeType)===void 0}C&&(U[vy9]=t,Z=H=U.isRenderer=!0);mI.has(N)&&(mI.get(N).clientVeType=A);N.visualElement&&(H=!0);if(_.h("wiz_next_ld_fix_client_ve_spec")){var g;F=((g=_.M(t==null?void 0:t.rendererContext,_.BV))==null?void 0:g.loggingDirectives)||(t==null?void 0:t.loggingDirectives)}else F=t==null?void 0:t.loggingDirectives;F&&F.clientVeSpec&&(g=Jzl(_.Fr(),N),g=_.oyO(_.gF(),F,g||
void 0,O))&&(N.visualElement=g);!N.visualElement&&A&&Z&&(N.veType=A,g=void 0,_.h("wiz_next_client_ve_parent_fix")&&(g=Jzl(_.Fr(),N)),g=_.dF(_.gF(),N,g,O),N.visualElement=g);H&&(g=_.cY().resolve(j4),Lyg(N,{data:t,observer:g,layer:O,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
G0v=function(N,t){return(t==null?0:t.trackingParams)||(t==null?0:t.loggingDirectives)||_.M(t==null?void 0:t.rendererContext,_.BV)||N.getAttribute("client-ve-type")?!0:!1};
sV4=function(N,t,O){N.componentType!==eG&&O instanceof HTMLElement&&t&&!_.h("cow_logging_in_component_wrapper")&&mtQ(O,t,!0)};
HBS=function(){if(!NjN){NjN=!0;var N=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.h("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:_.h("enable_wiz_context_per_component")||!1},{handleError:Wtt,enableComponentStacksInErrorMessages:!1});Object.assign(gp,N);oIQ=tMO;OB9();Hvp=mAG;NNS=GJz}};
OB9=function(){_.h("cow_logging_in_component_wrapper")?(tw9=function(N,t){t instanceof HTMLElement&&mtQ(t,N,!0)},WFG=function(){}):(tw9=function(){},WFG=sV4)};
AQg=function(N,t,O){t=t===void 0?{}:t;var H,A=(H=_.M(N.commandMetadata,_.Da))==null?void 0:H.url;H=t.form||{};!O||H.element||H.skipDefaultElement||(t.form=t.form||{},t.form.element=O);if(A&&A!=="/service_ajax")return{type:0,command:N,form:t.form};if(_.h("kevlar_service_command_check")){if(_.WH(_.cY().resolve(_.Sc),N))return Object.assign({},{type:1,command:N},t)}else{var Z;if((Z=_.M(N.commandMetadata,_.Da))==null?0:Z.apiUrl)return Object.assign({},{type:1,command:N},t)}return{type:2,command:N,form:t.form}};
ZBv=function(N){if(N.form){var t=N.form,O=Object.assign({},t);t=t.element;O=(delete O.element,O);if(t)return[_.tb(t,[N.command,O,N.commandController])]}return[]};
VMQ=function(N){if(N.form){var t=N.form,O=Object.assign({},t);t=t.element;O=(delete O.element,O);t&&_.OK(t,[N.command],t,O)}};
U54=function(N,t,O){var H=new D5y(N,t),A=new B7(N,t,O);N={"/youtubei/v1/browse":new c7(N,t,O),"/youtubei/v1/player":H,"/youtubei/v1/navigation/resolve_url":new $f,"/youtubei/v1/next":A,"/youtubei/v1/guide":new jS(O),"/youtubei/v1/search":new il(N,t,O),"/youtubei/v1/reel/reel_item_watch":new ul(N,t,O),"/youtubei/v1/get_watch":new SS(H,A)};N["/youtubei/v1/account/account_menu"]=new hl;N["/youtubei/v1/notification/get_notification_menu"]=new M4;return N};
pS=function(){var N=_.cY().resolve(_.bl);return Promise.resolve(CiM(N,_.H4.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
K4g=function(N){return N&&(N=_.LS(_.Kkg(N)))?(new URLSearchParams(N)).get("service"):null};
aC=function(N,t){_.HH(_.zh(),function(){_.zT("adl")});
_.cY().resolve(F4M)(t);N=N.root;N.loadData&&N.loadData(t);(t==null?0:t.response)?_.dP(pb9(),"SUCCESS"):_.J_(new _.fF("Lifecycle: No response in data",_.vZ("IS_SHELL_LOAD"),t?t.page:"NO_PAGE",t?t.endpoint:"NO_ENDPOINT"));N.polymerController.$["page-manager"].lazyPrepareCriticalPages((t==null?void 0:t.page)||"",t.endpoint);var O,H;((H=_.M(t==null?void 0:(O=t.endpoint)==null?void 0:O.commandMetadata,_.Da))==null?0:H.webPageType)&&_.v5().dispatch(_.Yf(_.M(t.endpoint.commandMetadata,_.Da).webPageType))};
d5S=function(){var N,t;return _.K(function(O){switch(O.nextAddress){case 1:N=window;if(!N.getDataPromise){O.jumpTo(2);break}_.Mo(O,3);return O.yield(N.getDataPromise(),5);case 5:return O.return(O.yieldResult);case 3:return _.ax(O),O.yield(pS(),6);case 6:return O.return(O.yieldResult);case 2:if(N.getInitialData)return t=N.getInitialData(),N.getInitialData=void 0,O.return(t);throw Error("Gj`"+_.H4.location.href);}})};
yQp=function(){_.Gm("CSI_SERVICE_NAME","youtube");_.bp({loadType:"cold"});_.h("kevlar_log_lcp")&&g_O(function(N){_.zT("lcp",N.value)})};
Bjy=function(){var N=_.s$(document.location.href,"enable");N&&N.indexOf("scraper")>-1&&_.Gm("ADD_SCRAPER_ATTRIBUTES",!0)};
uCG=function(N){var t=N.root;N=[cQO,$5t,_.Th];_.h("web_feedback_endpoint_autolog_allowlist_killswitch")&&N.push(_.wP,jTG);iBG(function(O,H){return AQg(O,H,t)},function(O){if(!O.command)return[];
var H;((H=O.form)==null?0:H.element)?O.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},O.form,{endpoint:O.command})})):t.handleNavigate(O);return[]},N);
_.cY().addProvider({provide:_.jo,useValue:_.U4.instance})};
h_Q=function(){var N={},t={},O;for(O in Sq9){var H=_.D(_.b$(Sq9[O],void 0,"IAtZ7"));N[O]=H.next().value;t[O]=H.next().value}return[N,function(A){for(var Z in A){var U=void 0;(U=t[Z])==null||U(A[Z])}}]};
_.p9Q=function(N,t){var O=!1;O=O===void 0?!1:O;var H=_.WW.getValueByKeys(N,"contents","twoColumnWatchNextResults","results","results","contents"),A=_.WW.getValueByKeys(N,"contents","twoColumnWatchNextResults","playlist","playlist")||null;O&&(A=null);var Z=O=null;if(A)O=_.WW.getValueByKeys(A,"titleText"),Z=_.WW.unsafeClone(_.WW.getValueByKeys(A,"longBylineText")),H="",Z&&(H=_.Gv(Z)),Z=_.E_(H);else if(H){H=_.D(H);for(var U=H.next();!U.done;U=H.next())U=U.value,U.videoPrimaryInfoRenderer&&(O=_.WW.getValueByKeys.apply(_.WW,
[U].concat(_.W6(MMt)))),U.videoSecondaryInfoRenderer&&(Z=_.WW.getValueByKeys.apply(_.WW,[U].concat(_.W6(bBQ))))}else _.HY(Error("Lj"));var C;N.currentVideoEndpoint?C=N.currentVideoEndpoint:_.HY(Error("Mj"));var F;t&&(F=_.WW.getValueByKeys(t,"playabilityStatus","miniplayer","miniplayerRenderer"));N={miniplayerTitle:O,miniplayerSubtitle:Z,watchEndpoint:C,playlistData:A};F&&(N.miniplayerRenderer=F);return N};
L44=function(N){if(N)return _.zb(N)};
_.z_N=function(){return{isFullscreen:function(){throw Error("Nj");},
toggleFullscreen:function(){throw Error("Oj");},
exitFullscreen:function(){throw Error("Pj");},
isAutonavEnabled:function(){throw Error("Qj");},
setAutonavEnabled:function(){throw Error("Rj");},
isAutoplaySetExplicitly:function(){throw Error("Sj");}}};
Yqv=function(N){return N.videoDuration?N.numTaps>1&&N.tapDirection!==0?_.eS(N.draggedTime/N.videoDuration,0,1):_.eS((N.playedTime||0)/N.videoDuration,0,1):0};
aBG=function(N){return N.videoDuration?N.isDragging||N.numTaps>1&&N.tapDirection!==0?_.eS(N.draggedTime/N.videoDuration,0,1):_.eS((N.playedTime||0)/N.videoDuration,0,1):0};
w9v=function(N){var t,O,H;return _.M(N==null?void 0:(t=N.markersMap)==null?void 0:(O=t.find(function(A){return A.key==="HEATSEEKER"}))==null?void 0:(H=O.value)==null?void 0:H.heatmap,Tjl)};
e_S=function(N){var t,O;return(O=(t=w9v(N))==null?void 0:t.heatMarkersDecorations)!=null?O:[]};
Pip=function(N){if(_.h("mweb_supported_chapters_killswitch"))return!0;var t;return!!(N==null?0:(t=N.markersMap)==null?0:t.find(function(O){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(O.key)}))};
_.X9y=function(N){var t=Object,O=t.assign,H;N={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(H=N==null?void 0:N.getPlayerState())!=null?H:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return O.call(t,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},N,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
x5t=function(N){return function(t){var O=N(),H,A=(H=O.playerApi)==null?void 0:H.getPlayerState();t&&t!==O.playerState&&(t===1||t===2)&&O.setState({playerState:A})}};
qq4=function(N){return function(t){var O=N(),H=O.playerApi;H&&(t==null?void 0:t.type)==="newdata"&&(kq9&&(clearTimeout(kq9),kq9=void 0),_.h("web_shorts_use_progress_state_for_gapless")?(t=H==null?void 0:H.getProgressState(t==null?void 0:t.playertype),t=t.seekableEnd-t.seekableStart):t=H==null?void 0:H.getDuration(t==null?void 0:t.playertype),O.setState({playedTime:0,videoDuration:t}))}};
fBy=function(N){return function(t){var O=N(),H=O.playerApi;if(H){var A=H.getPresentingPlayerType();_.h("web_shorts_use_progress_state_for_gapless")?(H=H.getProgressState(A),H=H.seekableEnd-H.seekableStart):H=H.getDuration(A);O.setState({playedTime:t,videoDuration:H})}}};
W4y=function(N){_.pi(112394,N,function(){return n_v},function(t){n_v=t})};
lBt=function(N,t){if(!N)return[];var O,H,A;N=((O=N.markersMap)==null?void 0:(H=O.find(function(Z){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(Z.key)}))==null?void 0:(A=H.value)==null?void 0:A.chapters)||[];
!rQy(N)||(t==null?0:t.ignoreStub)||(N=[IBz()].concat(_.W6(N)));return N};
IBz=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
rQy=function(N){if(N.length===0)return!1;var t;return((t=_.M(N[0],P7))==null?void 0:t.timeRangeStartMillis)!==0};
XQ=function(N){return N?N.timeRangeStartMillis||0:0};
m5v=function(N,t){if(N.isDragging&&t)return N=QTO(N,t),N===-1?IBz():lBt(t)[N]};
QTO=function(N,t){return N.isDragging&&t?lBt(t,{ignoreStub:!0}).findIndex(function(O,H,A){O=E_y(N);return Gq9(O,A,H).scrubberHovering}):-1};
E_y=function(N){return Object.assign({},N,{videoDuration:N.videoDuration*1E3,playedTime:N.playedTime*1E3,draggedTime:N.draggedTime*1E3})};
Gq9=function(N,t,O){var H=XQ(_.M(t[O],P7));t=XQ(_.M(t[O+1],P7))||N.videoDuration;O=N.isDragging;var A;if(A=N.isDragging)A=N.draggedTime,A=A!==null&&A>=H&&A<t;var Z=N.playedTime;return Z!==null&&Z>=H&&Z<t?{videoPosition:"active",isScrubbing:O,scrubberHovering:A}:N.playedTime<H?{videoPosition:"pending",isScrubbing:O,scrubberHovering:A}:{videoPosition:"seen",isScrubbing:O,scrubberHovering:A}};
R_9=function(N,t){return N.videoPosition==="seen"||(t===void 0?0:t)>0};
v_p=function(N,t,O){t=N/t.storyboardInterval;var H=lBt(O);if(!H.length)return-t*72;O=0;H=_.D(H);for(var A=H.next();!A.done;A=H.next())if(XQ(_.M(A.value,P7))/1E3<N)O++;else break;return-(t*72)-O*56};
JQp=function(N){return N?N.width/N.columns:0};
o_O=function(N){return N.isHovering?N.hoveredTime:N.draggedTime};
sTM=function(N,t){N=N.draggedTime*1E3;return N>=t.visibleTimeRangeStartMillis&&N<=t.visibleTimeRangeEndMillis};
_.N$S=function(N){if(N===void 0||Number.isNaN(N))return"--:--";var t=Math.abs(Math.floor(N)),O=Math.floor(t/86400),H=Math.floor(t%86400/3600),A=Math.floor(t%3600/60);t=Math.floor(t%60);var Z="";O>0&&(Z+=O+":",H<10&&(Z+="0"));if(O>0||H>0)Z+=H+":",A<10&&(Z+="0");Z+=A+":";t<10&&(Z+="0");Z+=t;return N>=0?Z:"-"+Z};
tkp=function(N,t){return function(){var O=o_O(N());var H=t();var A=N().playerApi;if(A&&A.getNumberOfStoryboardLevels()!==0){var Z=A.getStoryboardFrameIndex(O,1);Z!==-1?H=A.getStoryboardFrame(Z,1):(O=A.getStoryboardFrameIndex(O,0),A=A.getStoryboardFrame(O,0),H&&A&&(A.height*=3,A.width*=3),H=A)}else H=null;if(!H)return null;t()&&(H.width=90*H.columns,H.height=160*H.rows);return H}};
_.xf=function(N){if(!N||N.getVideoData)return N};
OWN=function(){var N;return{playerApi:(N=_.FF())!=null?N:void 0}};
HWN=function(N){var t;_.K(function(O){if(O.nextAddress==1)return O.yield(_.Kx(),2);if(t=O.yieldResult)t.unMute(!0),t.setVolume(N,!0);_.Ty(O)})};
AT4=function(N,t){N&&(N.value=""+t,N.style.setProperty("--gradient-percent",t+"%"))};
ZWG=function(N){var t;return(t=N==null?void 0:N.value)!=null?t:0};
VkS=function(){var N;_.K(function(t){if(t.nextAddress==1)return t.yield(_.Kx(),2);N=t.yieldResult;if(!N)return t.return();N.isMuted()?N.unMute(!0):N.mute(!0);_.Ty(t)})};
Dbv=function(N){var t=_.cY().resolve(_.kf).getPlayerElement();t&&N&&(N===1?t.pause():t.play())};
UbG=function(N){_.Np(N,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
CSv=function(N){_.Np(N,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
FmG=function(N){return _.Io(N.document.body,function(){return _.d(Kmp,null)},"kh")};
dbG=function(){var N;return(N=navigator.userActivation)==null?void 0:N.isActive};
gKN=function(){var N=window.performance.getEntriesByType("navigation");return N?N.map(function(t){return t.type}).includes("reload"):!1};
SFp=function(){q4(q4(q4(q4(q4(q4(q4(_.cY().resolve(_.fS),_.yTx),_.B$Q),_.cTx),_.$b4),_.jUy),_.iWG),_.uzQ)};
hbv=function(N,t){t=t===void 0?!1:t;var O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return t||!_.h("kevlar_shorts_seedless_retry_initial_load")||(O=window,H=!(!O.getDataPromise&&!O.getInitialData),H)?U.yield(d5S(),2):(setTimeout(hbv.bind(window,N,!0),1E3),U.return());if(U.nextAddress!=3)return A=U.yieldResult,U.yield(Mk9(A),3);Z=U.yieldResult;aC(N,Z);_.Ty(U)})};
Mk9=function(N){var t;if((t=N.response)==null||!t.replacementEndpoint)return _.Hc(N);t=_.cY().resolve(_.bl);N=N.response;_.M(N.replacementEndpoint,_.jc)&&N.sequenceContinuation&&(_.M(N.replacementEndpoint,_.jc).sequenceParams=N.sequenceContinuation);return nS(t,N.replacementEndpoint,{},_.H4.location.href,"shorts",function(){},function(){return!1})};
pxz=function(N){var t=_.cY().resolve(bW4);N.playerResponse&&t.handleResponse(N.playerResponse);N.response&&t.handleResponse(N.response)};
Lm9=function(N){var t=_.v5(),O,H=_.M((O=N.response)==null?void 0:O.frameworkUpdates,mB),A;O=_.M((A=N.playerResponse)==null?void 0:A.frameworkUpdates,mB);var Z;N=_.M((Z=N.reelWatchSequenceResponse)==null?void 0:Z.frameworkUpdates,mB);H&&_.yP(H,t);O&&_.yP(O,t);N&&_.yP(N,t)};
zbt=function(N){var t;_.h("enable_redirect_linking_for_desktop_web_client")&&((t=window.location.hash)==null?0:t.includes("redirect_state"))&&N.url&&(N.url=N.url.toString()+window.location.hash)};
T$M=function(N){var t=_.cY(),O=t.resolve(_.bl);t=t.resolve(_.YFy);N.endpoint&&(O=a$z(O,N.endpoint),O.content&&N.response&&_.W7(t,N.response,O.content),O.player&&N.playerResponse&&_.W7(t,N.playerResponse,O.player),O.reelSequence&&N.reelWatchSequenceResponse&&_.W7(t,N.reelWatchSequenceResponse,O.reelSequence))};
rP=function(N,t){pxz(t);Lm9(t);var O;(t==null?0:t.url)&&((O=window.location.hash)==null?0:O.includes("redirect_state"))&&(zbt(t),(O=K4g(t.url))&&_.sl(N.root,"yt-initialize-third-party",[O,t]));T$M(t);O=_.cY();var H=O.resolve(wx4);t.playerResponse&&O.resolve(ebt).handleResponse(t.playerResponse);if(t.playerResponse){O=void 0;if(_.h("ab_v_vid_sig")&&t.endpoint){var A,Z=(A=_.M(t.endpoint,_.rN))!=null?A:_.M(t.endpoint,_.jc);Z&&(O=Z.videoId)}PSx(H,t.playerResponse,O)}t.playerResponse&&Qfp(t.playerResponse)&&
_.h("web_enable_ab_rsp_cl")?Xev().then(function(){XxN(H,t.playerResponse);aC(N,t)}):aC(N,t)};
k1g=function(N){if(N=N.root.data){var t=_.cY().resolve(xbv);N.endpoint&&(N.response&&t.handleResponse(N.response,void 0,document.querySelector("ytd-app")),N.playerResponse&&t.handleResponse(N.playerResponse),N.reelWatchSequenceResponse&&t.handleResponse(N.reelWatchSequenceResponse))}};
qFz=function(N){var t,O,H,A,Z,U;return _.K(function(C){switch(C.nextAddress){case 1:t=window;if(!t.getDataPromise){C.jumpTo(2);break}_.Mo(C,3);return C.yield(t.getDataPromise(),5);case 5:O=C.yieldResult;rP(N,O);_.Do(C,4);break;case 3:return _.ax(C),C.yield(pS(),6);case 6:H=C.yieldResult,aC(N,H);case 4:return C.return();case 2:if(!_.h("sw_nav_preload_pbj")){C.jumpTo(7);break}t.fetchInitialData=function(){var F;return _.K(function(g){if(g.nextAddress==1)return g.yield(pS(),2);F=g.yieldResult;aC(N,F);
_.Ty(g)})};
if(t.getInitialData){t.loadInitialData=function(F){rP(N,F)};
A=t.getInitialData();t.getInitialData=void 0;rP(N,A);C.jumpTo(8);break}t.fetchInitialData=void 0;return C.yield(pS(),9);case 9:Z=C.yieldResult,aC(N,Z);case 8:return C.return();case 7:t.getInitialData?(U=t.getInitialData(),t.getInitialData=void 0,rP(N,U)):t.loadInitialData=function(F){rP(N,F)},_.Ty(C)}})};
nKz=function(){var N=new f$t;_.ReO(N);N.registerInitializationCallback(function(){HiS(void 0,void 0,void 0,_.h("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
N.registerCallback("error",function(t,O,H){_.JO(Error("Wj`"+O+"`"+H))})};
WmG=typeof Object.create=="function"?Object.create:function(N){var t=function(){};
t.prototype=N;return new t};
rTv=typeof Object.defineProperties=="function"?Object.defineProperty:function(N,t,O){if(N==Array.prototype||N==Object.prototype)return N;N[t]=O.value;return N};
I$S=function(N){N=["object"==typeof globalThis&&globalThis,N,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<N.length;++t){var O=N[t];if(O&&O.Math==Math)return O}throw Error("a");};
_.cv=I$S(this);l$y="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.cv.BigInt64Array&&(l$y.push("BigInt64"),l$y.push("BigUint64"));var mb9=function(N,t){if(t)for(var O=0;O<l$y.length;O++)QU4(l$y[O]+"Array.prototype."+N,t)},IC=function(N,t){t&&QU4(N,t)},QU4=function(N,t){var O=_.cv;
N=N.split(".");for(var H=0;H<N.length-1;H++){var A=N[H];if(!(A in O))return;O=O[A]}N=N[N.length-1];H=O[N];t=t(H);t!=H&&t!=null&&rTv(O,N,{configurable:!0,writable:!0,value:t})},EKl=function(){function N(){function O(){}
new O;Reflect.construct(O,[],function(){});
return new O instanceof O}
if(typeof Reflect!="undefined"&&Reflect.construct){if(N())return Reflect.construct;var t=Reflect.construct;return function(O,H,A){O=t(O,H);A&&Reflect.setPrototypeOf(O,A.prototype);return O}}return function(O,H,A){A===void 0&&(A=O);
A=WmG(A.prototype||Object.prototype);return Function.prototype.apply.call(O,A,H)||A}}(),G1G;
if(typeof Object.setPrototypeOf=="function")G1G=Object.setPrototypeOf;else{var RbQ;a:{var vKM={a:!0},JTQ={};try{JTQ.__proto__=vKM;RbQ=JTQ.a;break a}catch(N){}RbQ=!1}G1G=RbQ?function(N,t){N.__proto__=t;if(N.__proto__!==t)throw new TypeError("b`"+N);return N}:null}ll=G1G;
_.p=function(N,t){N.prototype=WmG(t.prototype);N.prototype.constructor=N;if(ll)ll(N,t);else for(var O in t)if(O!="prototype")if(Object.defineProperties){var H=Object.getOwnPropertyDescriptor(t,O);H&&Object.defineProperty(N,O,H)}else N[O]=t[O];N.superClass_=t.prototype};
oKz=function(N){var t=0;return function(){return t<N.length?{done:!1,value:N[t++]}:{done:!0}}};
_.D=function(N){var t=typeof Symbol!="undefined"&&Symbol.iterator&&N[Symbol.iterator];if(t)return t.call(N);if(typeof N.length=="number")return{next:oKz(N)};throw Error("c`"+String(N));};
Vo=function(N){for(var t,O=[];!(t=N.next()).done;)O.push(t.value);return O};
_.W6=function(N){return N instanceof Array?N:Vo(_.D(N))};
_.mp=function(N){return QD(N,N)};
QD=function(N,t){N.raw=t;Object.freeze&&(Object.freeze(N),Object.freeze(t));return N};
EI=function(N,t){return Object.prototype.hasOwnProperty.call(N,t)};
sUG=function(N){if(N==null)throw new TypeError("d");return Object(N)};
Nta=typeof Object.assign=="function"?Object.assign:function(N,t){N=sUG(N);for(var O=1;O<arguments.length;O++){var H=arguments[O];if(H)for(var A in H)EI(H,A)&&(N[A]=H[A])}return N};
IC("Object.assign",function(N){return N||Nta});
var Gh=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},tyX=function(N){if(N.isRunning_)throw new TypeError("f");
N.isRunning_=!0};
Gh.prototype.JSC$8871_next_=function(N){this.yieldResult=N};
var ONE=function(N,t){N.abruptCompletion_={exception:t,isException:!0};N.nextAddress=N.catchAddress_||N.finallyAddress_};
Gh.prototype.return=function(N){this.abruptCompletion_={return:N};this.nextAddress=this.finallyAddress_};
Gh.prototype.yield=function(N,t){this.nextAddress=t;return{value:N}};
Gh.prototype.jumpTo=function(N){this.nextAddress=N};
_.Ty=function(N){N.nextAddress=0};
_.Mo=function(N,t,O){N.catchAddress_=t;O!=void 0&&(N.finallyAddress_=O)};
_.zy=function(N,t){N.catchAddress_=0;N.finallyAddress_=t||0};
_.Do=function(N,t,O){N.nextAddress=t;N.catchAddress_=O||0};
_.ax=function(N,t){N.catchAddress_=t||0;t=N.abruptCompletion_.exception;N.abruptCompletion_=null;return t};
_.pU=function(N,t,O,H){H?N.finallyContexts_[H]=N.abruptCompletion_:N.finallyContexts_=[N.abruptCompletion_];N.catchAddress_=t||0;N.finallyAddress_=O||0};
_.YC=function(N,t,O){O=N.finallyContexts_.splice(O||0)[0];(O=N.abruptCompletion_=N.abruptCompletion_||O)?O.isException?N.nextAddress=N.catchAddress_||N.finallyAddress_:O.jumpTo!=void 0&&N.finallyAddress_<O.jumpTo?(N.nextAddress=O.jumpTo,N.abruptCompletion_=null):N.nextAddress=N.finallyAddress_:N.nextAddress=t};
HN0=function(N){this.JSC$8876_context_=new Gh;this.program_=N};
ZNE=function(N,t){tyX(N.JSC$8876_context_);var O=N.JSC$8876_context_.yieldAllIterator_;if(O)return AgQ(N,"return"in O?O["return"]:function(H){return{value:H,done:!0}},t,N.JSC$8876_context_.return);
N.JSC$8876_context_.return(t);return RC(N)};
AgQ=function(N,t,O,H){try{var A=t.call(N.JSC$8876_context_.yieldAllIterator_,O);if(!(A instanceof Object))throw new TypeError("e`"+A);if(!A.done)return N.JSC$8876_context_.isRunning_=!1,A;var Z=A.value}catch(U){return N.JSC$8876_context_.yieldAllIterator_=null,ONE(N.JSC$8876_context_,U),RC(N)}N.JSC$8876_context_.yieldAllIterator_=null;H.call(N.JSC$8876_context_,Z);return RC(N)};
RC=function(N){for(;N.JSC$8876_context_.nextAddress;)try{var t=N.program_(N.JSC$8876_context_);if(t)return N.JSC$8876_context_.isRunning_=!1,{value:t.value,done:!1}}catch(O){N.JSC$8876_context_.yieldResult=void 0,ONE(N.JSC$8876_context_,O)}N.JSC$8876_context_.isRunning_=!1;if(N.JSC$8876_context_.abruptCompletion_){t=N.JSC$8876_context_.abruptCompletion_;N.JSC$8876_context_.abruptCompletion_=null;if(t.isException)throw t.exception;return{value:t.return,done:!0}}return{value:void 0,done:!0}};
VyE=function(N){this.next=function(t){tyX(N.JSC$8876_context_);N.JSC$8876_context_.yieldAllIterator_?t=AgQ(N,N.JSC$8876_context_.yieldAllIterator_.next,t,N.JSC$8876_context_.JSC$8871_next_):(N.JSC$8876_context_.JSC$8871_next_(t),t=RC(N));return t};
this.throw=function(t){tyX(N.JSC$8876_context_);N.JSC$8876_context_.yieldAllIterator_?t=AgQ(N,N.JSC$8876_context_.yieldAllIterator_["throw"],t,N.JSC$8876_context_.JSC$8871_next_):(ONE(N.JSC$8876_context_,t),t=RC(N));return t};
this.return=function(t){return ZNE(N,t)};
this[Symbol.iterator]=function(){return this}};
_.CS=function(N,t){t=new VyE(new HN0(t));ll&&N.prototype&&ll(t,N.prototype);return t};
DzY=function(N){function t(H){return N.next(H)}
function O(H){return N.throw(H)}
return new Promise(function(H,A){function Z(U){U.done?H(U.value):Promise.resolve(U.value).then(t,O).then(Z,A)}
Z(N.next())})};
_.K=function(N){return DzY(new VyE(new HN0(N)))};
IC("Symbol",function(N){if(N)return N;var t=function(Z,U){this.$jscomp$symbol$id_=Z;rTv(this,"description",{configurable:!0,writable:!0,value:U})};
t.prototype.toString=function(){return this.$jscomp$symbol$id_};
var O="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",H=0,A=function(Z){if(this instanceof A)throw new TypeError("g");return new t(O+(Z||"")+"_"+H++,Z)};
return A});
IC("Symbol.iterator",function(N){if(N)return N;N=Symbol("h");rTv(Array.prototype,N,{configurable:!0,writable:!0,value:function(){return Uz_(oKz(this))}});
return N});
IC("Symbol.asyncIterator",function(N){return N?N:Symbol("i")});
Uz_=function(N){N={next:N};N[Symbol.iterator]=function(){return this};
return N};
_.bk=function(N){var t=N[Symbol.asyncIterator];return t!==void 0?t.call(N):new CQQ(_.D(N))};
CQQ=function(N){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return N};
this.next=function(t){return Promise.resolve(N.next(t))};
this["throw"]=function(t){return new Promise(function(O,H){var A=N["throw"];A!==void 0?O(A.call(N,t)):(O=N["return"],O!==void 0&&O.call(N),H(new TypeError("j")))})};
N["return"]!==void 0&&(this["return"]=function(t){return Promise.resolve(N["return"](t))})};
_.E1=function(){for(var N=Number(this),t=[],O=N;O<arguments.length;O++)t[O-N]=arguments[O];return t};
_.KS=function(N){return N};
IC("globalThis",function(N){return N||_.cv});
IC("Reflect",function(N){return N?N:{}});
IC("Reflect.construct",function(){return EKl});
IC("Reflect.setPrototypeOf",function(N){return N?N:ll?function(t,O){try{return ll(t,O),!0}catch(H){return!1}}:null});
IC("Promise",function(N){function t(){this.batch_=null}
function O(U){return U instanceof A?U:new A(function(C){C(U)})}
if(N&&(typeof _.cv.PromiseRejectionEvent!=="undefined"||!_.cv.Promise||_.cv.Promise.toString().indexOf("[native code]")===-1))return N;t.prototype.asyncExecute=function(U){if(this.batch_==null){this.batch_=[];var C=this;this.asyncExecuteFunction(function(){C.executeBatch_()})}this.batch_.push(U)};
var H=_.cv.setTimeout;t.prototype.asyncExecuteFunction=function(U){H(U,0)};
t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var U=this.batch_;this.batch_=[];for(var C=0;C<U.length;++C){var F=U[C];U[C]=null;try{F()}catch(g){this.asyncThrow_(g)}}}this.batch_=null};
t.prototype.asyncThrow_=function(U){this.asyncExecuteFunction(function(){throw U;})};
var A=function(U){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var C=this.createResolveAndReject_();try{U(C.resolve,C.reject)}catch(F){C.reject(F)}};
A.prototype.createResolveAndReject_=function(){function U(g){return function(B){F||(F=!0,g.call(C,B))}}
var C=this,F=!1;return{resolve:U(this.resolveTo_),reject:U(this.JSC$8908_reject_)}};
A.prototype.resolveTo_=function(U){if(U===this)this.JSC$8908_reject_(new TypeError("n"));else if(U instanceof A)this.settleSameAsPromise_(U);else{a:switch(typeof U){case "object":var C=U!=null;break a;case "function":C=!0;break a;default:C=!1}C?this.resolveToNonPromiseObj_(U):this.fulfill_(U)}};
A.prototype.resolveToNonPromiseObj_=function(U){var C=void 0;try{C=U.then}catch(F){this.JSC$8908_reject_(F);return}typeof C=="function"?this.settleSameAsThenable_(C,U):this.fulfill_(U)};
A.prototype.JSC$8908_reject_=function(U){this.settle_(2,U)};
A.prototype.fulfill_=function(U){this.settle_(1,U)};
A.prototype.settle_=function(U,C){if(this.state_!=0)throw Error("o`"+U+"`"+C+"`"+this.state_);this.state_=U;this.result_=C;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
A.prototype.scheduleUnhandledRejectionCheck_=function(){var U=this;H(function(){if(U.notifyUnhandledRejection_()){var C=_.cv.console;typeof C!=="undefined"&&C.error(U.result_)}},1)};
A.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var U=_.cv.CustomEvent,C=_.cv.Event,F=_.cv.dispatchEvent;if(typeof F==="undefined")return!0;typeof U==="function"?U=new U("unhandledrejection",{cancelable:!0}):typeof C==="function"?U=new C("unhandledrejection",{cancelable:!0}):(U=_.cv.document.createEvent("CustomEvent"),U.initCustomEvent("unhandledrejection",!1,!0,U));U.promise=this;U.reason=this.result_;return F(U)};
A.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var U=0;U<this.onSettledCallbacks_.length;++U)Z.asyncExecute(this.onSettledCallbacks_[U]);this.onSettledCallbacks_=null}};
var Z=new t;A.prototype.settleSameAsPromise_=function(U){var C=this.createResolveAndReject_();U.callWhenSettled_(C.resolve,C.reject)};
A.prototype.settleSameAsThenable_=function(U,C){var F=this.createResolveAndReject_();try{U.call(C,F.resolve,F.reject)}catch(g){F.reject(g)}};
A.prototype.then=function(U,C){function F(u,S){return typeof u=="function"?function(b){try{g(u(b))}catch(z){B(z)}}:S}
var g,B,c=new A(function(u,S){g=u;B=S});
this.callWhenSettled_(F(U,g),F(C,B));return c};
A.prototype.catch=function(U){return this.then(void 0,U)};
A.prototype.callWhenSettled_=function(U,C){function F(){switch(g.state_){case 1:U(g.result_);break;case 2:C(g.result_);break;default:throw Error("p`"+g.state_);}}
var g=this;this.onSettledCallbacks_==null?Z.asyncExecute(F):this.onSettledCallbacks_.push(F);this.isRejectionHandled_=!0};
A.resolve=O;A.reject=function(U){return new A(function(C,F){F(U)})};
A.race=function(U){return new A(function(C,F){for(var g=_.D(U),B=g.next();!B.done;B=g.next())O(B.value).callWhenSettled_(C,F)})};
A.all=function(U){var C=_.D(U),F=C.next();return F.done?O([]):new A(function(g,B){function c(b){return function(z){u[b]=z;S--;S==0&&g(u)}}
var u=[],S=0;do u.push(void 0),S++,O(F.value).callWhenSettled_(c(u.length-1),B),F=C.next();while(!F.done)})};
return A});
var v7=function(N,t,O){if(N==null)throw new TypeError("q`"+O);if(t instanceof RegExp)throw new TypeError("r`"+O);return N+""};
IC("String.prototype.startsWith",function(N){return N?N:function(t,O){var H=v7(this,t,"startsWith"),A=H.length,Z=t.length;O=Math.max(0,Math.min(O|0,H.length));for(var U=0;U<Z&&O<A;)if(H[O++]!=t[U++])return!1;return U>=Z}});
IC("Object.setPrototypeOf",function(N){return N||ll});
IC("Symbol.dispose",function(N){return N?N:Symbol("s")});
IC("SuppressedError",function(N){function t(O,H,A){if(!(this instanceof t))return new t(O,H,A);A=Error(A);"stack"in A&&(this.stack=A.stack);this.message=A.message;this.error=O;this.suppressed=H}
if(N)return N;_.p(t,Error);t.prototype.name="SuppressedError";return t});
IC("Array.from",function(N){return N?N:function(t,O,H){O=O!=null?O:function(C){return C};
var A=[],Z=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(typeof Z=="function"){t=Z.call(t);for(var U=0;!(Z=t.next()).done;)A.push(O.call(H,Z.value,U++))}else for(Z=t.length,U=0;U<Z;U++)A.push(O.call(H,t[U],U));return A}});
var KGR=function(N,t,O){N instanceof String&&(N=String(N));for(var H=N.length,A=0;A<H;A++){var Z=N[A];if(t.call(O,Z,A,N))return{i:A,v:Z}}return{i:-1,v:void 0}};
IC("Array.prototype.find",function(N){return N?N:function(t,O){return KGR(this,t,O).v}});
IC("WeakMap",function(N){function t(){}
function O(F){var g=typeof F;return g==="object"&&F!==null||g==="function"}
function H(F){if(!EI(F,Z)){var g=new t;rTv(F,Z,{value:g})}}
function A(F){var g=Object[F];g&&(Object[F]=function(B){if(B instanceof t)return B;Object.isExtensible(B)&&H(B);return g(B)})}
if(function(){if(!N||!Object.seal)return!1;try{var F=Object.seal({}),g=Object.seal({}),B=new N([[F,2],[g,3]]);if(B.get(F)!=2||B.get(g)!=3)return!1;B.delete(F);B.set(g,4);return!B.has(F)&&B.get(g)==4}catch(c){return!1}}())return N;
var Z="$jscomp_hidden_"+Math.random();A("freeze");A("preventExtensions");A("seal");var U=0,C=function(F){this.JSC$8916_id_=(U+=Math.random()+1).toString();if(F){F=_.D(F);for(var g;!(g=F.next()).done;)g=g.value,this.set(g[0],g[1])}};
C.prototype.set=function(F,g){if(!O(F))throw Error("t");H(F);if(!EI(F,Z))throw Error("u`"+F);F[Z][this.JSC$8916_id_]=g;return this};
C.prototype.get=function(F){return O(F)&&EI(F,Z)?F[Z][this.JSC$8916_id_]:void 0};
C.prototype.has=function(F){return O(F)&&EI(F,Z)&&EI(F[Z],this.JSC$8916_id_)};
C.prototype.delete=function(F){return O(F)&&EI(F,Z)&&EI(F[Z],this.JSC$8916_id_)?delete F[Z][this.JSC$8916_id_]:!1};
return C});
IC("Map",function(N){if(function(){if(!N||typeof N!="function"||!N.prototype.entries||typeof Object.seal!="function")return!1;try{var C=Object.seal({x:4}),F=new N(_.D([[C,"s"]]));if(F.get(C)!="s"||F.size!=1||F.get({x:4})||F.set({x:4},"t")!=F||F.size!=2)return!1;var g=F.entries(),B=g.next();if(B.done||B.value[0]!=C||B.value[1]!="s")return!1;B=g.next();return B.done||B.value[0].x!=4||B.value[1]!="t"||!g.next().done?!1:!0}catch(c){return!1}}())return N;
var t=new WeakMap,O=function(C){this[0]={};this[1]=Z();this.size=0;if(C){C=_.D(C);for(var F;!(F=C.next()).done;)F=F.value,this.set(F[0],F[1])}};
O.prototype.set=function(C,F){C=C===0?0:C;var g=H(this,C);g.list||(g.list=this[0][g.id]=[]);g.entry?g.entry.value=F:(g.entry={next:this[1],previous:this[1].previous,head:this[1],key:C,value:F},g.list.push(g.entry),this[1].previous.next=g.entry,this[1].previous=g.entry,this.size++);return this};
O.prototype.delete=function(C){C=H(this,C);return C.entry&&C.list?(C.list.splice(C.index,1),C.list.length||delete this[0][C.id],C.entry.previous.next=C.entry.next,C.entry.next.previous=C.entry.previous,C.entry.head=null,this.size--,!0):!1};
O.prototype.clear=function(){this[0]={};this[1]=this[1].previous=Z();this.size=0};
O.prototype.has=function(C){return!!H(this,C).entry};
O.prototype.get=function(C){return(C=H(this,C).entry)&&C.value};
O.prototype.entries=function(){return A(this,function(C){return[C.key,C.value]})};
O.prototype.keys=function(){return A(this,function(C){return C.key})};
O.prototype.values=function(){return A(this,function(C){return C.value})};
O.prototype.forEach=function(C,F){for(var g=this.entries(),B;!(B=g.next()).done;)B=B.value,C.call(F,B[1],B[0],this)};
O.prototype[Symbol.iterator]=O.prototype.entries;var H=function(C,F){var g=F&&typeof F;g=="object"||g=="function"?t.has(F)?g=t.get(F):(g=""+ ++U,t.set(F,g)):g="p_"+F;var B=C[0][g];if(B&&EI(C[0],g))for(C=0;C<B.length;C++){var c=B[C];if(F!==F&&c.key!==c.key||F===c.key)return{id:g,list:B,index:C,entry:c}}return{id:g,list:B,index:-1,entry:void 0}},A=function(C,F){var g=C[1];
return Uz_(function(){if(g){for(;g.head!=C[1];)g=g.previous;for(;g.next!=g.head;)return g=g.next,{done:!1,value:F(g)};g=null}return{done:!0,value:void 0}})},Z=function(){var C={};
return C.previous=C.next=C.head=C},U=0;
return O});
IC("Set",function(N){if(function(){if(!N||typeof N!="function"||!N.prototype.entries||typeof Object.seal!="function")return!1;try{var O=Object.seal({x:4}),H=new N(_.D([O]));if(!H.has(O)||H.size!=1||H.add(O)!=H||H.size!=1||H.add({x:4})!=H||H.size!=2)return!1;var A=H.entries(),Z=A.next();if(Z.done||Z.value[0]!=O||Z.value[1]!=O)return!1;Z=A.next();return Z.done||Z.value[0]==O||Z.value[0].x!=4||Z.value[1]!=Z.value[0]?!1:A.next().done}catch(U){return!1}}())return N;
var t=function(O){this.JSC$8930_map_=new Map;if(O){O=_.D(O);for(var H;!(H=O.next()).done;)this.add(H.value)}this.size=this.JSC$8930_map_.size};
t.prototype.add=function(O){O=O===0?0:O;this.JSC$8930_map_.set(O,O);this.size=this.JSC$8930_map_.size;return this};
t.prototype.delete=function(O){O=this.JSC$8930_map_.delete(O);this.size=this.JSC$8930_map_.size;return O};
t.prototype.clear=function(){this.JSC$8930_map_.clear();this.size=0};
t.prototype.has=function(O){return this.JSC$8930_map_.has(O)};
t.prototype.entries=function(){return this.JSC$8930_map_.entries()};
t.prototype.values=function(){return this.JSC$8930_map_.values()};
t.prototype.keys=t.prototype.values;t.prototype[Symbol.iterator]=t.prototype.values;t.prototype.forEach=function(O,H){var A=this;this.JSC$8930_map_.forEach(function(Z){return O.call(H,Z,Z,A)})};
return t});
IC("Math.log2",function(N){return N?N:function(t){return Math.log(t)/Math.LN2}});
IC("Object.values",function(N){return N?N:function(t){var O=[],H;for(H in t)EI(t,H)&&O.push(t[H]);return O}});
IC("Object.is",function(N){return N?N:function(t,O){return t===O?t!==0||1/t===1/O:t!==t&&O!==O}});
IC("Array.prototype.includes",function(N){return N?N:function(t,O){var H=this;H instanceof String&&(H=String(H));var A=H.length;O=O||0;for(O<0&&(O=Math.max(O+A,0));O<A;O++){var Z=H[O];if(Z===t||Object.is(Z,t))return!0}return!1}});
IC("String.prototype.includes",function(N){return N?N:function(t,O){return v7(this,t,"includes").indexOf(t,O||0)!==-1}});
IC("Object.entries",function(N){return N?N:function(t){var O=[],H;for(H in t)EI(t,H)&&O.push([H,t[H]]);return O}});
IC("Number.isFinite",function(N){return N?N:function(t){return typeof t!=="number"?!1:!isNaN(t)&&t!==Infinity&&t!==-Infinity}});
IC("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
IC("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
IC("Number.isInteger",function(N){return N?N:function(t){return Number.isFinite(t)?t===Math.floor(t):!1}});
IC("Number.isSafeInteger",function(N){return N?N:function(t){return Number.isInteger(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER}});
IC("String.prototype.endsWith",function(N){return N?N:function(t,O){var H=v7(this,t,"endsWith");O===void 0&&(O=H.length);O=Math.max(0,Math.min(O|0,H.length));for(var A=t.length;A>0&&O>0;)if(H[--O]!=t[--A])return!1;return A<=0}});
var FG_=function(N,t){N instanceof String&&(N+="");var O=0,H=!1,A={next:function(){if(!H&&O<N.length){var Z=O++;return{value:t(Z,N[Z]),done:!1}}H=!0;return{done:!0,value:void 0}}};
A[Symbol.iterator]=function(){return A};
return A};
IC("Array.prototype.entries",function(N){return N?N:function(){return FG_(this,function(t,O){return[t,O]})}});
IC("Math.trunc",function(N){return N?N:function(t){t=Number(t);if(isNaN(t)||t===Infinity||t===-Infinity||t===0)return t;var O=Math.floor(Math.abs(t));return t<0?-O:O}});
IC("Number.isNaN",function(N){return N?N:function(t){return typeof t==="number"&&isNaN(t)}});
IC("Array.prototype.keys",function(N){return N?N:function(){return FG_(this,function(t){return t})}});
IC("Array.prototype.values",function(N){return N?N:function(){return FG_(this,function(t,O){return O})}});
IC("Array.prototype.fill",function(N){return N?N:function(t,O,H){var A=this.length||0;O<0&&(O=Math.max(0,A+O));if(H==null||H>A)H=A;H=Number(H);H<0&&(H=Math.max(0,A+H));for(O=Number(O||0);O<H;O++)this[O]=t;return this}});
mb9("fill",function(N){return N?N:Array.prototype.fill});
IC("Object.fromEntries",function(N){return N?N:function(t){var O={};if(!(Symbol.iterator in t))throw new TypeError("v`"+t);t=t[Symbol.iterator].call(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;if(Object(H)!==H)throw new TypeError("w");O[H[0]]=H[1]}return O}});
IC("String.prototype.replaceAll",function(N){return N?N:function(t,O){if(t instanceof RegExp&&!t.global)throw new TypeError("x");return t instanceof RegExp?this.replace(t,O):this.replace(new RegExp(String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),O)}});
IC("Object.getOwnPropertySymbols",function(N){return N?N:function(){return[]}});
IC("String.prototype.repeat",function(N){return N?N:function(t){var O=v7(this,null,"repeat");if(t<0||t>1342177279)throw new RangeError("y");t|=0;for(var H="";t;)if(t&1&&(H+=O),t>>>=1)O+=O;return H}});
IC("Array.prototype.findIndex",function(N){return N?N:function(t,O){return KGR(this,t,O).i}});
IC("Array.prototype.flatMap",function(N){return N?N:function(t,O){var H=[];Array.prototype.forEach.call(this,function(A,Z){A=t.call(O,A,Z,this);Array.isArray(A)?H.push.apply(H,A):H.push(A)});
return H}});
IC("String.prototype.codePointAt",function(N){return N?N:function(t){var O=v7(this,null,"codePointAt"),H=O.length;t=Number(t)||0;if(t>=0&&t<H){t|=0;var A=O.charCodeAt(t);if(A<55296||A>56319||t+1===H)return A;t=O.charCodeAt(t+1);return t<56320||t>57343?A:(A-55296)*1024+t+9216}}});
IC("String.fromCodePoint",function(N){return N?N:function(t){for(var O="",H=0;H<arguments.length;H++){var A=Number(arguments[H]);if(A<0||A>1114111||A!==Math.floor(A))throw new RangeError("z`"+A);A<=65535?O+=String.fromCharCode(A):(A-=65536,O+=String.fromCharCode(A>>>10&1023|55296),O+=String.fromCharCode(A&1023|56320))}return O}});
IC("String.prototype.trimLeft",function(N){function t(){return this.replace(/^[\s\xa0]+/,"")}
return N||t});
IC("String.prototype.trimStart",function(N){return N||String.prototype.trimLeft});
IC("String.prototype.padStart",function(N){return N?N:function(t,O){var H=v7(this,null,"padStart");t-=H.length;O=O!==void 0?String(O):" ";return(t>0&&O?O.repeat(Math.ceil(t/O.length)).substring(0,t):"")+H}});
IC("Promise.prototype.finally",function(N){return N?N:function(t){return this.then(function(O){return Promise.resolve(t()).then(function(){return O})},function(O){return Promise.resolve(t()).then(function(){throw O;
})})}});
IC("Math.imul",function(N){return N?N:function(t,O){t=Number(t);O=Number(O);var H=t&65535,A=O&65535;return H*A+((t>>>16&65535)*A+H*(O>>>16&65535)<<16>>>0)|0}});
IC("Object.hasOwn",function(N){return N?N:function(t,O){return Object.prototype.hasOwnProperty.call(t,O)}});
IC("Math.sign",function(N){return N?N:function(t){t=Number(t);return t===0||isNaN(t)?t:t>0?1:-1}});
IC("Array.prototype.flat",function(N){return N?N:function(t){t=t===void 0?1:t;var O=[];Array.prototype.forEach.call(this,function(H){Array.isArray(H)&&t>0?(H=Array.prototype.flat.call(H,t-1),O.push.apply(O,H)):O.push(H)});
return O}});
IC("String.raw",function(N){return N?N:function(t,O){t=sUG(t);for(var H=t.raw,A=H.length,Z="",U=0;U<A;++U)Z+=H[U],U+1<A&&U+1<arguments.length&&(Z+=String(arguments[U+1]));return Z}});
IC("WeakSet",function(N){if(function(){if(!N||!Object.seal)return!1;try{var O=Object.seal({}),H=Object.seal({}),A=new N([O]);if(!A.has(O)||A.has(H))return!1;A.delete(O);A.add(H);return!A.has(O)&&A.has(H)}catch(Z){return!1}}())return N;
var t=function(O){this.JSC$8941_map_=new WeakMap;if(O){O=_.D(O);for(var H;!(H=O.next()).done;)this.add(H.value)}};
t.prototype.add=function(O){this.JSC$8941_map_.set(O,!0);return this};
t.prototype.has=function(O){return this.JSC$8941_map_.has(O)};
t.prototype.delete=function(O){return this.JSC$8941_map_.delete(O)};
return t});
IC("Reflect.ownKeys",function(N){return N?N:function(t){var O=[],H=Object.getOwnPropertyNames(t);t=Object.getOwnPropertySymbols(t);for(var A=0;A<H.length;A++)(H[A].substring(0,14)=="jscomp_symbol_"?t:O).push(H[A]);return O.concat(t)}});
IC("Object.getOwnPropertyDescriptors",function(N){return N?N:function(t){for(var O={},H=Reflect.ownKeys(t),A=0;A<H.length;A++)O[H[A]]=Object.getOwnPropertyDescriptor(t,H[A]);return O}});
IC("Promise.allSettled",function(N){function t(H){return{status:"fulfilled",value:H}}
function O(H){return{status:"rejected",reason:H}}
return N?N:function(H){var A=this;H=Array.from(H,function(Z){return A.resolve(Z).then(t,O)});
return A.all(H)}});
IC("Number.parseInt",function(N){return N||parseInt});
_._DumpException=window._DumpException||function(N){throw N;};
window._DumpException=_._DumpException;var dzu=window.ytcsi;dzu&&typeof dzu.tick==="function"&&dzu.tick("rses_dpj");var gxR,Jl,oC,sI,ygp,Bty,cgB,$zX,Yr,jlR;gxR=gxR||{};_.H4=this||self;_.Ba=function(N,t,O){N=N.split(".");O=O||_.H4;for(var H;N.length&&(H=N.shift());)N.length||t===void 0?O[H]&&O[H]!==Object.prototype[H]?O=O[H]:O=O[H]={}:O[H]=t};
Jl=function(N,t){var O=_.s2("WIZ_global_data.oxN3nb");N=O&&O[N];return N!=null?N:t};
oC=_.H4._F_toggles_default_kevlar_base||[];sI=function(){};
sI.get=function(){return null};
_.OiQ=null;_.s2=function(N,t){N=N.split(".");t=t||_.H4;for(var O=0;O<N.length;O++)if(t=t[N[O]],t==null)return null;return t};
_.Nd=function(N){N.instance_=void 0;N.getInstance=function(){return N.instance_?N.instance_:N.instance_=new N}};
_.oQ=function(N){var t=typeof N;return t!="object"?t:N?Array.isArray(N)?"array":t:"null"};
_.lQ=function(N){var t=_.oQ(N);return t=="array"||t=="object"&&typeof N.length=="number"};
_.mG=function(N){var t=typeof N;return t=="object"&&N!=null||t=="function"};
_.GM=function(N){return Object.prototype.hasOwnProperty.call(N,ygp)&&N[ygp]||(N[ygp]=++Bty)};
ygp="closure_uid_"+(Math.random()*1E9>>>0);Bty=0;cgB=function(N,t,O){return N.call.apply(N.bind,arguments)};
$zX=function(N,t,O){if(!N)throw Error();if(arguments.length>2){var H=Array.prototype.slice.call(arguments,2);return function(){var A=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(A,H);return N.apply(t,A)}}return function(){return N.apply(t,arguments)}};
_.qn=function(N,t,O){_.qn=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?cgB:$zX;return _.qn.apply(null,arguments)};
_.Fu=function(N,t){var O=Array.prototype.slice.call(arguments,1);return function(){var H=O.slice();H.push.apply(H,arguments);return N.apply(this,H)}};
_.tw=function(){return Date.now()};
Yr=function(N){return N};
_.Od=function(N,t){function O(){}
O.prototype=t.prototype;N.superClass_=t.prototype;N.prototype=new O;N.prototype.constructor=N;N.base=function(H,A,Z){for(var U=Array(arguments.length-2),C=2;C<arguments.length;C++)U[C-2]=arguments[C];return t.prototype[A].apply(H,U)}};
jlR=function(N){return N};var iN_,uOX;_.W=function(N,t,O,H){var A=arguments.length,Z=A<3?t:H===null?H=Object.getOwnPropertyDescriptor(t,O):H,U;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")Z=Reflect.decorate(N,t,O,H);else for(var C=N.length-1;C>=0;C--)if(U=N[C])Z=(A<3?U(Z):A>3?U(t,O,Z):U(t,O))||Z;A>3&&Z&&Object.defineProperty(t,O,Z)};
_.Q=function(N,t){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(N,t)};
iN_=function(N,t){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("A");if(O===void 0){if(!Symbol.dispose)throw new TypeError("C");var O=t[Symbol.dispose]}if(typeof O!=="function")throw new TypeError("D");N.stack.push({value:t,dispose:O,async:!1})}return t};
uOX=function(N){function t(Z){N.error=N.hasError?new SuppressedError(Z,N.error,"An error was suppressed during disposal."):Z;N.hasError=!0}
function O(){for(;H=N.stack.pop();)try{if(!H.async&&A===1)return A=0,N.stack.push(H),Promise.resolve().then(O);if(H.dispose){var Z=H.dispose.call(H.value);if(H.async)return A|=2,Promise.resolve(Z).then(O,function(U){t(U);return O()})}else A|=1}catch(U){t(U)}if(A===1)return N.hasError?Promise.reject(N.error):Promise.resolve();
if(N.hasError)throw N.error;}
var H,A=0;O()};var SSB="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(" ");Nt9()&&SSB.push("details:not(:has(summary))");var ONy=SSB.join(",");_.Od(_.Nz,Error);_.Nz.prototype.name="CustomError";var h9X;var My_=void 0,bNE,p4u=typeof TextDecoder!=="undefined",FGQ,KGN=typeof String.prototype.isWellFormed==="function",CQl=typeof TextEncoder!=="undefined";var LGY;_.x1=function(N){for(var t=[],O=0,H=0;H<N.length;H++){var A=N.charCodeAt(H);A<128?t[O++]=A:(A<2048?t[O++]=A>>6|192:((A&64512)==55296&&H+1<N.length&&(N.charCodeAt(H+1)&64512)==56320?(A=65536+((A&1023)<<10)+(N.charCodeAt(++H)&1023),t[O++]=A>>18|240,t[O++]=A>>12&63|128):t[O++]=A>>12|224,t[O++]=A>>6&63|128),t[O++]=A&63|128)}return t};
LGY=function(N){for(var t=[],O=0,H=0;O<N.length;){var A=N[O++];if(A<128)t[H++]=String.fromCharCode(A);else if(A>191&&A<224){var Z=N[O++];t[H++]=String.fromCharCode((A&31)<<6|Z&63)}else if(A>239&&A<365){Z=N[O++];var U=N[O++],C=N[O++];A=((A&7)<<18|(Z&63)<<12|(U&63)<<6|C&63)-65536;t[H++]=String.fromCharCode(55296+(A>>10));t[H++]=String.fromCharCode(56320+(A&1023))}else Z=N[O++],U=N[O++],t[H++]=String.fromCharCode((A&15)<<12|(Z&63)<<6|U&63)}return t.join("")};var gt=String.prototype.trim?function(N){return N.trim()}:function(N){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(N)[1]},z9B=/&/g,YSS=/</g,ap_=/>/g,Ttu=/"/g,w4f=/'/g,e9R=/\x00/g,PQf=/[\x00&<>"']/;var HU=!!(oC[0]>>15&1),X40=!!(oC[0]&1024),xzf=!!(oC[0]>>16&1),kMa=!!(oC[0]&8),qSp=!!(oC[0]&2),fpu=!!(oC[0]&4),nxy=!!(oC[0]&16),WGu=!!(oC[0]&128);var uQ=HU?xzf:Jl(610401301,!1),rgE=HU?kMa:Jl(772657768,!1),IpQ=HU?qSp:Jl(513659523,!1),lpX=HU?X40||!fpu:Jl(568333945,!0),Sjy=HU?nxy:Jl(1331761403,!1),Sxz=HU?X40||!WGu:Jl(748402147,!0);var Sy,Qlp=_.H4.navigator;Sy=Qlp?Qlp.userAgentData||null:null;var U7;_.qz=function(N,t){return Array.prototype.indexOf.call(N,t,void 0)};
_.Z9=function(N,t,O){Array.prototype.forEach.call(N,t,O)};
_.Aw=function(N,t,O){return Array.prototype.filter.call(N,t,O)};
_.rc=function(N,t,O){return Array.prototype.map.call(N,t,O)};
U7=function(N,t,O){return Array.prototype.some.call(N,t,O)};
_.xGv=function(N,t,O){return Array.prototype.every.call(N,t,O)};var Z7=function(N){Z7[" "](N);return N};
Z7[" "]=function(){};
var xwx=function(N,t){try{return Z7(N[t]),!0}catch(O){}return!1},g2v=function(N,t,O,H){H=H?H(t):t;
return Object.prototype.hasOwnProperty.call(N,H)?N[H]:N[H]=O(t)};var mzS,gr,Exu,GMR,vx_,Jgp,IiM,oxB,slX,Nfu,tHO,ORE,HRf,Dyu,UyS,C_Y;_.huS=function(){return _.H4.navigator||null};
mzS=Btz();_.V_=cgO();gr=hg("Edge");Exu=gr||_.V_;_.D7=hg("Gecko")&&!(_.dt(_.$x(),"WebKit")&&!hg("Edge"))&&!(hg("Trident")||hg("MSIE"))&&!hg("Edge");_.Ud=_.dt(_.$x(),"WebKit")&&!hg("Edge");GMR=_.Ud&&hg("Mobile");_.R9R=_.p4g();vx_=_.LGp();Jgp=(Yx()?Sy.platform==="Linux":hg("Linux"))||_.z9O();IiM=_.MyQ();oxB=bNy();slX=hg("iPad");Nfu=hg("iPod");_.tE_=_.TM();tHO=_.dt(_.$x(),"KaiOS");ORE=function(){var N=_.H4.document;return N?N.documentMode:void 0};
a:{var AuZ="",ZR_=function(){var N=_.$x();if(_.D7)return/rv:([^\);]+)(\)|;)/.exec(N);if(gr)return/Edge\/([\d\.]+)/.exec(N);if(_.V_)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(N);if(_.Ud)return/WebKit\/(\S+)/.exec(N);if(mzS)return/(?:Version)[ \/]?(\S+)/.exec(N)}();
ZR_&&(AuZ=ZR_?ZR_[1]:"");if(_.V_){var VEX=ORE();if(VEX!=null&&VEX>parseFloat(AuZ)){HRf=String(VEX);break a}}HRf=AuZ}Dyu=HRf;UyS={};_.Cl=function(N){return g2v(UyS,N,function(){return _.yv(Dyu,N)>=0})};
if(_.H4.document&&_.V_){var KZp=ORE();C_Y=KZp?KZp:parseInt(Dyu,10)||void 0}else C_Y=void 0;_.FZY=C_Y;var EYp,GTG,dyy;_.Kl=bQ();EYp=bNy()||hg("iPod");GTG=hg("iPad");dyy=_.iNQ();_.FA=_.LN();_.NV=_.jlN()&&!_.TM();var gXE,dQ,O1g,vtl,BfX,yuu;gXE={};dQ=null;O1g=_.D7||_.Ud||typeof _.H4.btoa=="function";_.wi=function(N,t){t===void 0&&(t=0);yuu();t=gXE[t];for(var O=Array(Math.floor(N.length/3)),H=t[64]||"",A=0,Z=0;A<N.length-2;A+=3){var U=N[A],C=N[A+1],F=N[A+2],g=t[U>>2];U=t[(U&3)<<4|C>>4];C=t[(C&15)<<2|F>>6];F=t[F&63];O[Z++]=g+U+C+F}g=0;F=H;switch(N.length-A){case 2:g=N[A+1],F=t[(g&15)<<2]||H;case 1:N=N[A],O[Z]=t[N>>2]+t[(N&3)<<4|g>>4]+F+H}return O.join("")};
vtl=function(N){var t="";BfX(N,function(O){t+=String.fromCharCode(O)});
return t};
_.qBg=function(N){var t=[];BfX(N,function(O){t.push(O)});
return t};
_.Jg=function(N){var t=N.length,O=t*3/4;O%3?O=Math.floor(O):_.KN("=.",N[t-1])&&(O=_.KN("=.",N[t-2])?O-2:O-1);var H=new Uint8Array(O),A=0;BfX(N,function(Z){H[A++]=Z});
return A!==O?H.subarray(0,A):H};
BfX=function(N,t){function O(F){for(;H<N.length;){var g=N.charAt(H++),B=dQ[g];if(B!=null)return B;if(!_.Dp(g))throw Error("H`"+g);}return F}
yuu();for(var H=0;;){var A=O(-1),Z=O(0),U=O(64),C=O(64);if(C===64&&A===-1)break;t(A<<2|Z>>4);U!=64&&(t(Z<<4&240|U>>2),C!=64&&t(U<<6&192|C))}};
yuu=function(){if(!dQ){dQ={};for(var N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],O=0;O<5;O++){var H=N.concat(t[O].split(""));gXE[O]=H;for(var A=0;A<H.length;A++){var Z=H[A];dQ[Z]===void 0&&(dQ[Z]=A)}}}};var oxO=typeof Uint8Array!=="undefined",rgy=!_.V_&&typeof btoa==="function",Ipl=/[-_.]/g,nxz={"-":"+",_:"/",".":"="},YX={};var zS,$yZ;zS=function(N,t){if(t!==YX)throw Error("J");this.JSC$8975_value_=N;if(N!=null&&N.length===0)throw Error("I");};
_.TS=function(){return cu_||(cu_=new zS(null,YX))};
$yZ=function(N){return new Uint8Array(lzM(N)||0)};
zS.prototype.isEmpty=function(){return this.JSC$8975_value_==null};
zS.prototype.sizeBytes=function(){var N=lzM(this);return N?N.length:0};
var lzM=function(N){if(YX!==YX)throw Error("J");var t=N.JSC$8975_value_;t==null||oxO&&t!=null&&t instanceof Uint8Array||(typeof t==="string"?t=lpx(t):(_.oQ(t),t=null));return t==null?t:N.JSC$8975_value_=t},cu_;var mzM=void 0;var Op=typeof Symbol==="function"&&typeof Symbol()==="symbol",jQS=Ny("jas",void 0,!0),nXl=Ny(void 0,"0di"),O1=Ny(void 0,"1oa"),a1=Ny(void 0,Symbol()),OnN=Ny(void 0,"0ub"),AmN=Ny(void 0,"0ubs"),LA4=Ny(void 0,"0ubsb"),MJz=Ny(void 0,"0actk"),hm=Ny("m_m","messagePrototypeMarker",!0),Bit=Ny(void 0,"vps"),sQ9=Ny();var R9N,GMN,m5,iR0;R9N={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};GMN=Object.defineProperties;_.ZY=Op?jQS:"internalArrayState";iR0=[];Up(iR0,7);m5=Object.freeze(iR0);var pn={},i_={},uBu=function(N,t,O){this.iterable=N;this.mapper=t;this.thisArg=O};
uBu.prototype.next=function(){var N=this.iterable.next();N.done||(N.value=this.mapper.call(this.thisArg,N.value));return N};
uBu.prototype[Symbol.iterator]=function(){return this};
var Spr=Object.freeze({}),P0={};_.hap=xX(function(N){return N!==null&&N!==void 0});var AuG=xX(function(N){return typeof N==="number"}),HRt=xX(function(N){return typeof N==="string"}),VEx=xX(function(N){return typeof N==="boolean"}),MEp=xX(function(N){return N!=null&&typeof N==="object"&&typeof N.then==="function"}),WYO=xX(function(N){return typeof N==="function"}),yo=xX(function(N){return!!N&&(typeof N==="object"||typeof N==="function")});var ZRQ=typeof _.H4.BigInt==="function"&&typeof _.H4.BigInt(0)==="bigint";var P_g=xX(function(N){return ZRQ?N>=bRp&&N<=p0S:N[0]==="-"?Dyg(N,LZS):Dyg(N,zau)}),LZS=Number.MIN_SAFE_INTEGER.toString(),bRp=ZRQ?BigInt(Number.MIN_SAFE_INTEGER):void 0,zau=Number.MAX_SAFE_INTEGER.toString(),p0S=ZRQ?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Ypp=typeof Uint8Array.prototype.slice==="function",qy=0,fR=0,KZS;var Kn,yO,Nq,gi,iR4;Kn=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Bm=typeof BigInt==="function"?BigInt.asUintN:void 0;yO=Number.isSafeInteger;Nq=Number.isFinite;gi=Math.trunc;iR4=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var cmM={};var vXv={},aY_=function(){try{var N=function(){return EKl(Map,[],this.constructor)};
_.p(N,Map);Z7(new N);return!1}catch(t){return!0}}(),gQ=function(){this.JSC$8994_map_=new Map};
_.V=gQ.prototype;_.V.get=function(N){return this.JSC$8994_map_.get(N)};
_.V.set=function(N,t){this.JSC$8994_map_.set(N,t);this.size=this.JSC$8994_map_.size;return this};
_.V.delete=function(N){N=this.JSC$8994_map_.delete(N);this.size=this.JSC$8994_map_.size;return N};
_.V.clear=function(){this.JSC$8994_map_.clear();this.size=this.JSC$8994_map_.size};
_.V.has=function(N){return this.JSC$8994_map_.has(N)};
_.V.entries=function(){return this.JSC$8994_map_.entries()};
_.V.keys=function(){return this.JSC$8994_map_.keys()};
_.V.values=function(){return this.JSC$8994_map_.values()};
_.V.forEach=function(N,t){return this.JSC$8994_map_.forEach(N,t)};
gQ.prototype[Symbol.iterator]=function(){return this.entries()};
var y_=function(){if(aY_)return Object.setPrototypeOf(gQ.prototype,Map.prototype),Object.defineProperties(gQ.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),gQ;var N=function(){return EKl(Map,[],this.constructor)};
_.p(N,Map);return N}(),z5=function(N,t,O,H){O=O===void 0?QQg:O;
H=H===void 0?QQg:H;var A=y_.call(this)||this;A.arrayState=N[_.ZY]|0;A.valueCtor=t;A.keyToApi=O;A.valueToApi=A.valueCtor?EXO:H;for(var Z=0;Z<N.length;Z++){var U=N[Z],C=O(U[0],!1,!0),F=U[1];t?F===void 0&&(F=null):F=H(U[1],!1,!0,void 0,void 0,A.arrayState);y_.prototype.set.call(A,C,F)}return A};
_.p(z5,y_);var TfQ=function(N){if(N.arrayState&2)throw Error("N");},ymz=function(N,t){return FB(Array.from(y_.prototype.entries.call(N),t))};
_.V=z5.prototype;_.V.clear=function(){TfQ(this);y_.prototype.clear.call(this)};
_.V.delete=function(N){TfQ(this);return y_.prototype.delete.call(this,this.keyToApi(N,!0,!1))};
_.V.entries=function(){if(this.valueCtor){var N=y_.prototype.keys.call(this);N=new uBu(N,GSS,this)}else N=y_.prototype.entries.call(this);return N};
_.V.values=function(){if(this.valueCtor){var N=y_.prototype.keys.call(this);N=new uBu(N,z5.prototype.get,this)}else N=y_.prototype.values.call(this);return N};
_.V.forEach=function(N,t){this.valueCtor?y_.prototype.forEach.call(this,function(O,H,A){N.call(t,A.get(H),H,A)}):y_.prototype.forEach.call(this,N,t)};
_.V.set=function(N,t){TfQ(this);N=this.keyToApi(N,!0,!1);return N==null?this:t==null?(y_.prototype.delete.call(this,N),this):y_.prototype.set.call(this,N,this.valueToApi(t,!0,!0,this.valueCtor,!1,this.arrayState))};
_.V.has=function(N){return y_.prototype.has.call(this,this.keyToApi(N,!1,!1))};
_.V.get=function(N){N=this.keyToApi(N,!1,!1);var t=y_.prototype.get.call(this,N);if(t!==void 0){var O=this.valueCtor;return O?(O=this.valueToApi(t,!1,!0,O,this.callToMutableOnAccess,this.arrayState),O!==t&&y_.prototype.set.call(this,N,O),O):t}};
z5.prototype[Symbol.iterator]=function(){return this.entries()};
z5.prototype.toJSON=void 0;var RaG;var Uqg=function(){},VJz=function(N,t){for(var O in N)!isNaN(O)&&t(N,+O,N[O])},C14=function(N){var t=new Uqg;
VJz(N,function(O,H,A){t[H]=l_(A)});
t.reviveUnknownFields=N.reviveUnknownFields;return t},NiG={reviveIntoImmutable:!0};var Dql;var $qy,j1g;var w0S,o1,wa,k3,eaE,hw,XW,P_u,X0R,Ll,xyQ,zl,Tl,wQ;w0S=_.kX(0);_.BU={};_.cU=function(N,t,O,H,A){t=o1(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t,O,A);if(t!==null||H&&N.noLegacyNull!==i_)return t};
o1=function(N,t,O,H){if(t===-1)return null;var A=t+(O?0:-1),Z=N.length-1;if(!(Z<1+(O?0:-1))){if(A>=Z){var U=N[Z];if(U!=null&&typeof U==="object"&&U.constructor===Object){O=U[t];var C=!0}else if(A===Z)O=U;else return}else O=N[A];if(H&&O!=null){H=H(O);if(H==null)return H;if(!Object.is(H,O))return C?U[t]=H:N[A]=H,H}return O}};
_.MV=function(N,t,O,H){Wm(N);var A=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l1(A,A[_.ZY]|0,t,O,H);return N};
_.$D=function(N,t,O){N=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return fzl(N,N[_.ZY]|0,t,O)!==void 0};
_.j0=function(N,t,O,H){var A=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return fzl(A,A[_.ZY]|0,t,k3(N,H,O))!==void 0};
_.cA=function(N){return N===Spr?2:4};
_.iC=function(N,t){N=_.cU(N,t,void 0,void 0,e5l);return N==null?_.TS():N};
wa=function(N,t,O,H){Wm(N);var A=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=A[_.ZY]|0;if(H==null){var U=xqg(A);if(k54(U,A,Z,O)===t)U.set(O,0);else return N}else Z=qxO(A,Z,O,t);l1(A,Z,t,H);return N};
_.uC=function(N,t,O,H){var A=N[_.ZY]|0,Z=XB(A);A=qxO(N,A,O,t,Z);l1(N,A,t,H,Z)};
k3=function(N,t,O){return _.S0(N,t)===O?O:-1};
_.S0=function(N,t){N=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return k54(xqg(N),N,void 0,t,void 0)};
eaE=function(N,t,O){var H=N[_.ZY]|0,A=XB(H),Z=o1(N,O,A);if(Z!=null&&Z[hm]===pn){if(!b_(Z))return nn(Z),Z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var U=Z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(Z)&&(U=Z);if(U){var C=U[_.ZY]|0;C&2&&(U=fn(U,C))}U=Xf(U,t);U!==Z&&l1(N,H,O,U,A);return U};
_.Sg=function(N,t,O,H){var A=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=A[_.ZY]|0;t=fzl(A,Z,t,O,H);if(t==null)return t;Z=A[_.ZY]|0;if(!b_(N,Z)){var U=my9(t);U!==t&&(nn(N)&&(A=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=A[_.ZY]|0),t=U,Z=l1(A,Z,O,t,H),I1(A,Z))}return t};
_.y5=function(N,t,O,H){var A=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return nrl(N,A,A[_.ZY]|0,t,O,H,!1,!0)};
_.L8=function(N,t,O,H){O=W5p(O);_.MV(N,t,O,H);O&&!b_(O)&&I1(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return N};
_.zN=function(N,t,O,H){H=W5p(H);wa(N,t,O,H);H&&!b_(H)&&I1(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return N};
hw=function(N,t,O){Wm(N);var H=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=H[_.ZY]|0;if(O==null)return l1(H,A,t),N;for(var Z=O===m5?7:O[_.ZY]|0,U=Z,C=Jm(Z),F=C||Object.isFrozen(O),g=!0,B=!0,c=0;c<O.length;c++){var u=O[c];C||(u=b_(u),g&&(g=!u),B&&(B=u))}C||(Z=g?13:5,Z=B?Z&-4097:Z|4096);F&&Z===U||(O=l_(O),U=0,Z=G5(Z,A));Z!==U&&Up(O,Z);A=l1(H,A,t,O);2&Z||!(4096&Z||16&Z)||I1(H,A);return N};
XW=function(N,t,O,H){IzM(N,t,O,H);return N};
P_u=function(N,t,O){IzM(N,t,Md,void 0,O,1,!0);return N};
_.bC=function(N,t,O){N=_.cU(N,t,void 0,O);t=typeof N;N=N==null?N:t==="bigint"?_.kX((0,_.Bm)(64,N)):_.tm(N)?t==="string"?_.eay(N):_.Tfl(N):void 0;return N};
_.pl=function(N,t){var O=O===void 0?!1:O;var H;return(H=_.jQM(_.cU(N,t)))!=null?H:O};
_.$1=function(N,t,O){O=O===void 0?0:O;var H;return(H=_.Ux(_.cU(N,t)))!=null?H:O};
X0R=function(N,t){var O=O===void 0?0:O;N=_.Spv(_.cU(N,t));return N!=null?N:O};
Ll=function(N,t,O){O=O===void 0?w0S:O;var H;return(H=_.kSv(_.cU(N,t)))!=null?H:O};
xyQ=function(N){var t=t===void 0?w0S:t;var O;return(O=_.bC(N,23))!=null?O:t};
zl=function(N,t){var O=O===void 0?0:O;var H;return(H=_.cU(N,t,void 0,void 0,_.Ju))!=null?H:O};
_.YD=function(N,t,O,H){O=O===void 0?"":O;var A;return(A=_.SJ(_.cU(N,t,H)))!=null?A:O};
_.aG=function(N,t){var O=O===void 0?0:O;var H;return(H=_.Zz(_.cU(N,t)))!=null?H:O};
Tl=function(N,t){var O=O===void 0?"0":O;N=xyl(_.cU(N,t),!0);return N!=null?N:O};
_.kSr=function(N,t,O){N=_.R1(N,t,_.SJ,3,!0);slx(N,O);return N[O]};
wQ=function(N,t,O){return _.YD(N,k3(N,O,t))};
_.e0=function(N,t,O,H){return _.Sg(N,t,k3(N,H,O),void 0)};
_.aP=function(N,t){return _.SJ(_.cU(N,t,void 0,_.BU))};
_.SR=function(N,t,O){return _.MV(N,t,$yG(O))};
_.hH=function(N,t,O){return _.Nm(N,t,$yG(O),!1)};
_.PU=function(N,t,O){return _.MV(N,t,_.Dz(O))};
_.fb=function(N,t,O){return _.MV(N,t,di(O))};
_.Xa=function(N,t,O){return _.MV(N,t,i1(O))};
_.rv=function(N,t,O,H){return _.Nm(N,t,i1(O),"",H)};
_.hr=function(N,t,O){return _.MV(N,t,O==null?O:_.Hm(O))};
_.XA=function(N,t,O){return _.Nm(N,t,O==null?O:_.Hm(O),0)};var AR=function(N,t,O){this.buffer=N;if(O&&!t)throw Error();this.JSC$9006_isImmutable=t};var qpQ=function(N,t,O,H){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9009_start_=0;this.init(N,t,O,H)},xD,nXQ,WZa,ruy,IYu,lYB,BDv,fYB;
_.V=qpQ.prototype;_.V.init=function(N,t,O,H){var A=H===void 0?{}:H;H=A.aliasBytesFields===void 0?!1:A.aliasBytesFields;A=A.treatNewDataAsImmutable===void 0?!1:A.treatNewDataAsImmutable;this.aliasBytesFields=H;this.treatNewDataAsImmutable=A;N&&(N=Q1S(N,this.treatNewDataAsImmutable),this.bytes_=N.buffer,this.bytesAreImmutable_=N.JSC$9006_isImmutable,this.JSC$9009_start_=t||0,this.end_=O!==void 0?this.JSC$9009_start_+O:this.bytes_.length,this.cursor_=this.JSC$9009_start_)};
_.V.free=function(){this.clear();fYB.length<100&&fYB.push(this)};
_.V.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9009_start_=0;this.aliasBytesFields=!1};
_.V.reset=function(){this.cursor_=this.JSC$9009_start_};
_.V.atEnd=function(){return this.cursor_==this.end_};
_.kD=function(N,t){var O=0,H=0,A=0,Z=N.bytes_,U=N.cursor_;do{var C=Z[U++];O|=(C&127)<<A;A+=7}while(A<32&&C&128);if(A>32)for(H|=(C&127)>>4,A=3;A<32&&C&128;A+=7)C=Z[U++],H|=(C&127)<<A;xD(N,U);if(!(C&128))return t(O>>>0,H>>>0);throw Error();};
xD=function(N,t){N.cursor_=t;if(t>N.end_)throw Error();};
_.qd=function(N){var t=N.bytes_,O=N.cursor_,H=t[O++],A=H&127;if(H&128&&(H=t[O++],A|=(H&127)<<7,H&128&&(H=t[O++],A|=(H&127)<<14,H&128&&(H=t[O++],A|=(H&127)<<21,H&128&&(H=t[O++],A|=H<<28,H&128&&t[O++]&128&&t[O++]&128&&t[O++]&128&&t[O++]&128&&t[O++]&128)))))throw Error();xD(N,O);return A};
_.fl=function(N){var t=N.bytes_,O=N.cursor_,H=t[O],A=t[O+1],Z=t[O+2];t=t[O+3];xD(N,N.cursor_+4);return(H<<0|A<<8|Z<<16|t<<24)>>>0};
nXQ=function(N){var t=_.fl(N);N=_.fl(N);return dyz(t,N)};
WZa=function(N){var t=_.fl(N);N=(t>>31)*2+1;var O=t>>>23&255;t&=8388607;return O==255?t?NaN:N*Infinity:O==0?N*1.401298464324817E-45*t:N*Math.pow(2,O-150)*(t+8388608)};
ruy=function(N){var t=_.fl(N),O=_.fl(N);N=(O>>31)*2+1;var H=O>>>20&2047;t=4294967296*(O&1048575)+t;return H==2047?t?NaN:N*Infinity:H==0?N*4.9E-324*t:N*Math.pow(2,H-1075)*(t+4503599627370496)};
IYu=function(N){for(var t=0,O=N.cursor_,H=O+10,A=N.bytes_;O<H;){var Z=A[O++];t|=Z;if((Z&128)===0)return xD(N,O),!!(t&127)}throw Error();};
lYB=function(N,t){if(t<0)throw Error();var O=N.cursor_;t=O+t;if(t>N.end_)throw Error();N.cursor_=t;return O};
BDv=function(N,t){if(t==0)return _.TS();var O=lYB(N,t);N.aliasBytesFields&&N.bytesAreImmutable_?O=N.bytes_.subarray(O,O+t):(N=N.bytes_,t=O+t,O=O===t?new Uint8Array(0):Ypp?N.slice(O,t):new Uint8Array(N.subarray(O,t)));return O.length==0?_.TS():new zS(O,YX)};
fYB=[];var mya=function(N,t,O,H){if(fYB.length){var A=fYB.pop();A.init(N,t,O,H);N=A}else N=new qpQ(N,t,O,H);this.decoder_=N;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;QQu(this,H)},QQu=function(N,t){t=t===void 0?{}:t;
N.discardUnknownFields=t.discardUnknownFields===void 0?!1:t.discardUnknownFields},jdQ=function(N,t,O,H){if(EXB.length){var A=EXB.pop();
QQu(A,H);A.decoder_.init(N,t,O,H);return A}return new mya(N,t,O,H)},dmO,yRp,nl,GSp,EXB;
mya.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;EXB.length<100&&EXB.push(this)};
mya.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
dmO=function(N){if(N.decoder_.atEnd())return!1;N.fieldCursor_=N.decoder_.cursor_;var t=_.qd(N.decoder_)>>>0,O=t>>>3;t&=7;if(!(t>=0&&t<=5))throw Error();if(O<1)throw Error();N.nextField_=O;N.nextWireType_=t;return!0};
yRp=function(N){switch(N.nextWireType_){case 0:N.nextWireType_!=0?yRp(N):IYu(N.decoder_);break;case 1:N=N.decoder_;xD(N,N.cursor_+8);break;case 2:if(N.nextWireType_!=2)yRp(N);else{var t=_.qd(N.decoder_)>>>0;N=N.decoder_;xD(N,N.cursor_+t)}break;case 5:N=N.decoder_;xD(N,N.cursor_+4);break;case 3:t=N.nextField_;do{if(!dmO(N))throw Error();if(N.nextWireType_==4){if(N.nextField_!=t)throw Error();break}yRp(N)}while(1);break;default:throw Error();}};
nl=function(N,t,O){var H=N.decoder_.end_,A=_.qd(N.decoder_)>>>0;A=N.decoder_.cursor_+A;var Z=A-H;Z<=0&&(N.decoder_.end_=A,O(t,N,void 0,void 0,void 0),Z=A-N.decoder_.cursor_);if(Z)throw Error();N.decoder_.cursor_=A;N.decoder_.end_=H;return t};
GSp=function(N){var t=_.qd(N.decoder_)>>>0;N=N.decoder_;var O=lYB(N,t);N=N.bytes_;if(p4u){var H=N,A;(A=bNE)||(A=bNE=new TextDecoder("utf-8",{fatal:!0}));t=O+t;H=O===0&&t===H.length?H:H.subarray(O,t);try{var Z=A.decode(H)}catch(g){if(My_===void 0){try{A.decode(new Uint8Array([128]))}catch(B){}try{A.decode(new Uint8Array([97])),My_=!0}catch(B){My_=!1}}!My_&&(bNE=void 0);throw g;}}else{Z=O;t=Z+t;O=[];for(var U=null,C,F;Z<t;)C=N[Z++],C<128?O.push(C):C<224?Z>=t?tg():(F=N[Z++],C<194||(F&192)!==128?(Z--,
tg()):O.push((C&31)<<6|F&63)):C<240?Z>=t-1?tg():(F=N[Z++],(F&192)!==128||C===224&&F<160||C===237&&F>=160||((A=N[Z++])&192)!==128?(Z--,tg()):O.push((C&15)<<12|(F&63)<<6|A&63)):C<=244?Z>=t-2?tg():(F=N[Z++],(F&192)!==128||(C<<28)+(F-144)>>30!==0||((A=N[Z++])&192)!==128||((H=N[Z++])&192)!==128?(Z--,tg()):(C=(C&7)<<18|(F&63)<<12|(A&63)<<6|H&63,C-=65536,O.push((C>>10&1023)+55296,(C&1023)+56320))):tg(),O.length>=8192&&(U=UzQ(U,O),O.length=0);Z=UzQ(U,O)}return Z};
_.RaZ=function(N){var t=_.qd(N.decoder_)>>>0;return BDv(N.decoder_,t)};
_.vXr=function(N,t,O){var H=_.qd(N.decoder_)>>>0;for(H=N.decoder_.cursor_+H;N.decoder_.cursor_<H;)O.push(t(N.decoder_))};
EXB=[];var Ju_=function(N,t){this.JSC$9016_lo=N>>>0;this.JSC$9016_hi=t>>>0},erp=function(N){N=BigInt.asUintN(64,N);
return new Ju_(Number(N&BigInt(4294967295)),Number(N>>BigInt(32)))},G5O=function(N){if(!N)return oXB||(oXB=new Ju_(0,0));
if(!/^\d+$/.test(N))return null;IQ(N);return new Ju_(qy,fR)},oXB,wl9=function(N,t){this.JSC$9018_lo=N>>>0;
this.JSC$9018_hi=t>>>0},mqx=function(N){if(!N)return sQa||(sQa=new wl9(0,0));
if(!/^-?\d+$/.test(N))return null;IQ(N);return new wl9(qy,fR)},sQa;var WU=function(){this.JSC$9020_buffer_=[]},$w,i9,NiZ;
WU.prototype.length=function(){return this.JSC$9020_buffer_.length};
WU.prototype.end=function(){var N=this.JSC$9020_buffer_;this.JSC$9020_buffer_=[];return N};
$w=function(N,t,O){for(;O>0||t>127;)N.JSC$9020_buffer_.push(t&127|128),t=(t>>>7|O<<25)>>>0,O>>>=7;N.JSC$9020_buffer_.push(t)};
i9=function(N,t){for(;t>127;)N.JSC$9020_buffer_.push(t&127|128),t>>>=7;N.JSC$9020_buffer_.push(t)};
_.XlS=function(N,t){if(t>=0)i9(N,t);else{for(var O=0;O<9;O++)N.JSC$9020_buffer_.push(t&127|128),t>>=7;N.JSC$9020_buffer_.push(1)}};
NiZ=function(N,t){IQ(t);gXy(function(O,H){$w(N,O>>>0,H>>>0)})};
WU.prototype.writeUint8=function(N){this.JSC$9020_buffer_.push(N>>>0&255)};
_.Bl=function(N,t){N.JSC$9020_buffer_.push(t>>>0&255);N.JSC$9020_buffer_.push(t>>>8&255);N.JSC$9020_buffer_.push(t>>>16&255);N.JSC$9020_buffer_.push(t>>>24&255)};
WU.prototype.writeInt8=function(N){this.JSC$9020_buffer_.push(N>>>0&255)};var tJZ,K8,kNv,nwt,ort;tJZ=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new WU};
K8=function(N,t){t.length!==0&&(N.blocks_.push(t),N.totalLength_+=t.length)};
_.OnR=function(N,t){_.y$(N,t,2);t=N.encoder_.end();K8(N,t);t.push(N.totalLength_);return t};
_.Hnf=function(N,t){var O=t.pop();for(O=N.totalLength_+N.encoder_.length()-O;O>127;)t.push(O&127|128),O>>>=7,N.totalLength_++;t.push(O);N.totalLength_++};
_.y$=function(N,t,O){i9(N.encoder_,t*8+O)};
kNv=function(N,t,O){if(O!=null)switch(R5v(O),_.y$(N,t,1),typeof O){case "number":N=N.encoder_;UyM(O);_.Bl(N,qy);_.Bl(N,fR);break;case "bigint":O=erp(O);N=N.encoder_;t=O.JSC$9016_hi;_.Bl(N,O.JSC$9016_lo);_.Bl(N,t);break;default:O=G5O(O),N=N.encoder_,t=O.JSC$9016_hi,_.Bl(N,O.JSC$9016_lo),_.Bl(N,t)}};
nwt=function(N,t,O){_.y$(N,t,2);i9(N.encoder_,O.length);K8(N,N.encoder_.end());K8(N,O)};
ort=function(N,t,O,H){O!=null&&(t=_.OnR(N,t),H(O,N),_.Hnf(N,t))};var vrG,AmR,Zny,VJy,DqQ,C10,K5E,dqR,grQ;vrG=Zu();AmR=Zu();Zny=Zu();VJy=Zu();DqQ=Zu();_.Uqu=Zu();_.rQ=Zu();C10=Zu();K5E=Zu();_.F5u=Zu();dqR=Zu();grQ=Zu();_.ymy=Zu();_.Bif=Zu();_.C8=function(N,t,O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N,t,O)};
_.C8.prototype.toJSON=function(){return Pm(this)};
_.C8.prototype.serialize=function(N){return JSON.stringify(Pm(this,N))};
var Rrg=function(N,t){if(t==null||t=="")return new N;t=JSON.parse(t);if(!Array.isArray(t))throw Error("V");return new N(JgS(t))};
_.C8.prototype.getExtension=function(N){Hnt(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N.fieldIndex);tJG(this,N.fieldIndex);return N.ctor?N.isRepeated?N.getExtensionFn(this,N.ctor,N.fieldIndex,_.cA(),N.JSC$9031_hasMessageId):N.getExtensionFn(this,N.ctor,N.fieldIndex,N.JSC$9031_hasMessageId):N.isRepeated?N.getExtensionFn(this,N.fieldIndex,_.cA(),N.JSC$9031_hasMessageId):N.getExtensionFn(this,N.fieldIndex,N.defaultValue,N.JSC$9031_hasMessageId)};
_.C8.prototype.clone=function(){var N=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=N[_.ZY]|0;return Yxt(this,N,t)?z5x(this,N,!0):new this.constructor(fn(N,t,!1))};
_.C8.prototype[hm]=pn;_.C8.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var V$=function(N,t,O){this.$$binaryReaderFn=N;this.$$binaryWriterFn=t;N=Yr(vrG);this.$$isMsg=!!N&&O===N||!1},AR9=JmQ(function(N,t,O,H,A){if(N.nextWireType_!==2)return!1;
nl(N,eaE(t,H,O),A);return!0},NDG),Z8p=JmQ(function(N,t,O,H,A){if(N.nextWireType_!==2)return!1;
nl(N,eaE(t,H,O),A);return!0},NDG),uVt=Symbol(),UmQ=Symbol(),FAS=Symbol(),Msl=Symbol(),cRM=Symbol(),ts9,O89;var mmy,cmS,IG,$qE,j1u,inp,ufa,Ed,h5r,MJy,bnX,pmB,L5Z,Yxf,azQ,TiX,wmf,e5Q,P1_;mmy=function(N,t){var O=new tJZ;b8M(N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O,Du(uVt,i8y,S19,t));K8(O,O.encoder_.end());N=new Uint8Array(O.totalLength_);t=O.blocks_;for(var H=t.length,A=0,Z=0;Z<H;Z++){var U=t[Z];N.set(U,A);A+=U.length}O.blocks_=[N];return N};
cmS=JmQ(function(N,t,O,H,A){if(N.nextWireType_!==2)return!1;N=nl(N,Xf([void 0,void 0],H),A);N=l_(N);H=t[_.ZY]|0;A=XB(H);if(H&2)throw Error();var Z=o1(t,O,A);if(Z instanceof z5)(Z.arrayState&2)!=0?(Z=ymz(Z),Z.push(N),l1(t,H,O,Z,A)):(t=Z,O=t.keyToApi(N[0],!1,!0),N=N[1],N=t.valueCtor?N===void 0?null:N:t.valueToApi(N,!1,!0,void 0,!1,t.arrayState),y_.prototype.set.call(t,O,N));else if(Array.isArray(Z)){var U=Z[_.ZY]|0;U&8192||Up(Z,U|=8192);U&2&&(Z=P1Q(Z),l1(t,H,O,Z,A));Z.push(N)}else l1(t,H,O,FB([N]),
A);return!0},function(N,t,O,H,A){if(t instanceof z5)t.forEach(function(C,F){ort(N,O,Xf([F,
C],H),A)});
else if(Array.isArray(t)){for(var Z=0;Z<t.length;Z++){var U=t[Z];Array.isArray(U)&&ort(N,O,Xf(U,H),A)}FB(t)}});
IG=_.FV(function(N,t,O){if(N.nextWireType_!==1)return!1;_.gD(t,O,ruy(N.decoder_));return!0},auy,grQ);
$qE=_.FV(function(N,t,O,H){if(N.nextWireType_!==1)return!1;_.uC(t,O,H,ruy(N.decoder_));return!0},auy,grQ);
j1u=_.FV(function(N,t,O){if(N.nextWireType_!==5)return!1;_.gD(t,O,WZa(N.decoder_));return!0},TDp,dqR);
inp=_.Y1y(function(N,t,O){if(N.nextWireType_!==5&&N.nextWireType_!==2)return!1;t=_.tR(t,t[_.ZY]|0,O);N.nextWireType_==2?_.vXr(N,WZa,t):t.push(WZa(N.decoder_));return!0},function(N,t,O){t=_.zrO(_.Ju,t,!0);
if(t!=null&&t.length)for(_.y$(N,O,2),i9(N.encoder_,t.length*4),O=0;O<t.length;O++){var H=N.encoder_;FZp(t[O]);_.Bl(H,qy)}},dqR);
ufa=_.FV(function(N,t,O,H){if(N.nextWireType_!==5)return!1;_.uC(t,O,H,WZa(N.decoder_));return!0},TDp,dqR);
_.Sxy=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,_.kD(N.decoder_,_.cuQ));return!0},_.js,_.rQ);
_.lC=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,_.kD(N.decoder_,rf));return!0},_.js,_.rQ);
Ed=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;N=_.kD(N.decoder_,rf);_.gD(t,O,N===0?void 0:N);return!0},_.js,_.rQ);
h5r=_.FV(function(N,t,O,H){if(N.nextWireType_!==0)return!1;_.uC(t,O,H,_.kD(N.decoder_,rf));return!0},_.js,_.rQ);
MJy=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,_.kD(N.decoder_,_.W0));return!0},P9y,C10);
_.Gl=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,_.kD(N.decoder_,dyz));return!0},P9y,C10);
_.RG=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,_.qd(N.decoder_));return!0},xmx,VJy);
bnX=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;N=_.qd(N.decoder_);_.gD(t,O,N===0?void 0:N);return!0},xmx,VJy);
pmB=_.FV(function(N,t,O,H){if(N.nextWireType_!==0)return!1;_.uC(t,O,H,_.qd(N.decoder_));return!0},xmx,VJy);
L5Z=_.FV(function(N,t,O){if(N.nextWireType_!==1)return!1;_.gD(t,O,nXQ(N.decoder_));return!0},_.q1y,_.F5u);
_.z5X=_.Y1y(function(N,t,O){if(N.nextWireType_!==1&&N.nextWireType_!==2)return!1;t=_.tR(t,t[_.ZY]|0,O);N.nextWireType_==2?_.vXr(N,nXQ,t):t.push(nXQ(N.decoder_));return!0},function(N,t,O){t=_.zrO(fYO,t,!1);
if(t!=null)for(var H=0;H<t.length;H++)kNv(N,O,t[H])},_.F5u);
_.vU=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,IYu(N.decoder_));return!0},fux,AmR);
_.Jw=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;N=IYu(N.decoder_);_.gD(t,O,N===!1?void 0:N);return!0},fux,AmR);
Yxf=_.FV(function(N,t,O,H){if(N.nextWireType_!==0)return!1;_.uC(t,O,H,IYu(N.decoder_));return!0},fux,AmR);
_.oG=_.FV(function(N,t,O){if(N.nextWireType_!==2)return!1;_.gD(t,O,GSp(N));return!0},WAM,Zny);
_.sd=_.FV(function(N,t,O){if(N.nextWireType_!==2)return!1;N=GSp(N);_.gD(t,O,N===""?void 0:N);return!0},WAM,Zny);
_.NO=_.FV(function(N,t,O,H){if(N.nextWireType_!==2)return!1;_.uC(t,O,H,GSp(N));return!0},WAM,Zny);
azQ=_.Y1y(function(N,t,O){if(N.nextWireType_!==2)return!1;N=GSp(N);_.tR(t,t[_.ZY]|0,O).push(N);return!0},function(N,t,O){t=_.zrO(_.SJ,t,!0);
if(t!=null)for(var H=0;H<t.length;H++){var A=N,Z=O,U=t[H];U!=null&&nwt(A,Z,dzg(U))}},Zny);
TiX=void 0;TiX=TiX===void 0?vrG:TiX;_.tC=new V$(function(N,t,O,H,A){if(N.nextWireType_!==2)return!1;H=Xf(void 0,H);_.tR(t,t[_.ZY]|0,O).push(H);nl(N,H,A);return!0},function(N,t,O,H,A){if(Array.isArray(t)){for(var Z=0;Z<t.length;Z++)rRg(N,t[Z],O,H,A);
N=t[_.ZY]|0;N&1||Up(t,N|1)}},TiX);
_.Ow=JmQ(function(N,t,O,H,A,Z){if(N.nextWireType_!==2)return!1;var U=t[_.ZY]|0;qxO(t,U,Z,O,XB(U));t=eaE(t,H,O);nl(N,t,A);return!0},rRg);
_.H1=_.FV(function(N,t,O){if(N.nextWireType_!==2)return!1;_.gD(t,O,_.RaZ(N));return!0},_.Iul,_.ymy);
wmf=_.FV(function(N,t,O,H){if(N.nextWireType_!==2)return!1;_.uC(t,O,H,_.RaZ(N));return!0},_.Iul,_.ymy);
_.AC=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,_.qd(N.decoder_)>>>0);return!0},lup,DqQ);
e5Q=_.FV(function(N,t,O,H){if(N.nextWireType_!==0)return!1;_.uC(t,O,H,_.qd(N.decoder_)>>>0);return!0},lup,DqQ);
_.Zb=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,_.qd(N.decoder_));return!0},_.QdG,_.Bif);
_.VA=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;N=_.qd(N.decoder_);_.gD(t,O,N===0?void 0:N);return!0},_.QdG,_.Bif);
P1_=_.FV(function(N,t,O){if(N.nextWireType_!==0)return!1;_.gD(t,O,_.kD(N.decoder_,yug));return!0},function(N,t,O){t=qpl(t);
if(t!=null&&(Erg(t),t!=null))switch(_.y$(N,O,0),typeof t){case "number":N=N.encoder_;O=t;t=O<0;O=Math.abs(O)*2;UyM(O);O=qy;var H=fR;t&&(O==0?H==0?H=O=4294967295:(H--,O=4294967295):O--);qy=O;fR=H;$w(N,qy,fR);break;case "bigint":N=N.encoder_;t=t<<BigInt(1)^t>>BigInt(63);qy=Number(BigInt.asUintN(32,t));fR=Number(BigInt.asUintN(32,t>>BigInt(32)));$w(N,qy,fR);break;default:NiZ(N.encoder_,t)}},K5E);var k50=function(){var N=XmR,t=xqu;this.fieldIndex=175237375;this.ctor=t;this.isRepeated=0;this.getExtensionFn=_.Sg;this.defaultValue=void 0;this.JSC$9031_hasMessageId=N.messageId!=null?P0:void 0};
k50.prototype.register=function(){Z7(this)};var qxB=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(qxB,_.C8);var fzQ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(fzQ,_.C8);var owv=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(owv,_.C8);var nrQ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(nrQ,_.C8);var W5Y=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(W5Y,_.C8);var rma=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(rma,_.C8);var IzS=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(IzS,_.C8);IzS.prototype.getData=function(){return _.iC(this,2)};var lzS=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(lzS,_.C8);var Q1p=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Q1p,_.C8);Q1p.prototype.getStyle=function(){return _.Sg(this,qxB,1)};var b9=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(b9,_.C8);b9.prototype.getPayloadCase=function(){return _.S0(this,Yw)};
b9.prototype.getStyle=function(){return _.e0(this,Q1p,6,Yw)};
var mqX=function(){var N=new b9,t=new W5Y;return _.zN(N,7,Yw,t)},Eru=function(){var N=new b9,t=new rma;
return _.zN(N,8,Yw,t)},Yw=[1,
2,3,4,5,6,7,8];var G5B=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(G5B,_.C8);var R5r=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(R5r,_.C8);var vrZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(vrZ,_.C8);var Jm_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Jm_,_.C8);var orf=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(orf,_.C8);var s1f=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(s1f,_.C8);var NDZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(NDZ,_.C8);var tsa=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(tsa,_.C8);tsa.prototype.getData=function(){return _.iC(this,2)};var O8a=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(O8a,_.C8);var JRp=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(JRp,_.C8);JRp.prototype.getPayloadCase=function(){return _.S0(this,Db)};
var Db=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Uw=function(N,t){N=Error.call(this,N);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.code=t===void 0?2:t};
_.p(Uw,Error);var H8f=Promise;var ARa=function(N){this.channelPromise=N};
ARa.prototype.send=function(N,t,O){this.channelPromise.then(function(H){H.send(N,t,O)})};var Z8Y=function(N,t){this.data=N;this.channel=t};
Z8Y.prototype.reply=function(N,t,O){this.channel.send(N,t,O)};var VsQ=function(N){this.JSC$9097_port_=N};
VsQ.prototype.send=function(N,t,O){O=O===void 0?[]:O;var H=new MessageChannel;DmQ(H.port1,t);this.JSC$9097_port_.postMessage(N,[H.port2].concat(O))};
var Um_=function(N,t){DmQ(N,t);return new VsQ(N)},DmQ=function(N,t){t&&(N.onmessage=function(O){t(new Z8Y(O.data,Um_(O.ports[0])))})};var C9_=function(N){this.verifier_=N};
C9_.prototype.verify=function(N){return this.verifier_(N)};
var KAy=function(N){var t=Object.create(null);(typeof N==="string"?[N]:N).forEach(function(O){if(O==="null")throw Error("X");t[O]=!0});
return function(O){return t[O]===!0}};_.FAp=function(){if(!_.H4.addEventListener||!Object.defineProperty)return!1;var N=!1,t=Object.defineProperty({},"passive",{get:function(){N=!0}});
try{var O=function(){};
_.H4.addEventListener("test",O,t);_.H4.removeEventListener("test",O,t)}catch(H){}return N}();var dmB;_.CA=function(N){var t=N.destination;var O=N.iframe;var H=N.origin;var A=N.channelName===void 0?"ZNWN1d":N.channelName;var Z=N.onMessage===void 0?void 0:N.onMessage;N=N.onEstablished===void 0?void 0:N.onEstablished;return dmB({destination:t,getSource:function(){return O.contentWindow},
originVerifier:H instanceof C9_?H:typeof H==="function"?new C9_(H):new C9_(KAy(H)),channelName:A,onMessage:Z,onEstablished:N})};
dmB=function(N){var t=N.destination;var O=N.getSource;var H=N.originVerifier;var A=N.token===void 0?void 0:N.token;var Z=N.channelName;var U=N.onMessage===void 0?void 0:N.onMessage;var C=N.onEstablished===void 0?void 0:N.onEstablished;return new ARa(new H8f(function(F,g){var B=function(c){c.source&&c.source===O()&&H.verify(c.origin)&&(c.data.n||c.data)===Z&&(t.removeEventListener("message",B,!1),A&&c.data.t!==A?g(Error("Y`"+Z+"`"+A+"`"+c.data.t)):(F(Um_(c.ports[0],U)),C&&C(c)))};
t.addEventListener("message",B,!1)}))};var gwE=function(N){try{N()}catch(t){Ag(t)}};var BDr=function(N){var t=this;var O=N.getMessageType;var H=N.onUnregisteredMessage===void 0?function(){}:N.onUnregisteredMessage;
var A=N.onBeforeRegisteredMessage===void 0?function(){}:N.onBeforeRegisteredMessage;
N=N.onAfterRegisteredMessage===void 0?function(){}:N.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=O;this.onUnregisteredMessage_=H;this.onBeforeRegisteredMessage_=A;this.onAfterRegisteredMessage_=N;this.onMessage=function(Z){return yRY(t,Z)}};
BDr.prototype.register=function(N,t){this.registry_.set(N,t);return this};
var yRY=function(N,t){var O=N.getMessageType_(t.data),H=N.registry_.get(O);H?(gwE(function(){return N.onBeforeRegisteredMessage_(t,O)}),gwE(function(){return H(t)}),gwE(function(){return N.onAfterRegisteredMessage_(t,O)})):gwE(function(){return N.onUnregisteredMessage_(t,O)})};var cRS=function(N){this.JSC$9114_channel_=N},jd_,i8E;
cRS.prototype.send=function(N,t,O){this.JSC$9114_channel_.send(Pm(N),t,O)};
_.$mY=function(N,t){return function(O){var H=new N(O.data);return t(new Z8Y(H,O.channel))}};
jd_=function(N){return function(t){return N(new Z8Y(t.data,new cRS(t.channel)))}};
i8E=function(N,t){return jd_(_.$mY(N,t))};var uVf=function(N,t,O,H){this.registry=N;this.delegate=t;this.receiveMessageConstructor=O;this.createInitMessage=H;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},vw9=function(N){var t=new BDr({getMessageType:N.getPayloadCase});
return new uVf(t,new cRS(_.CA({iframe:N.child,destination:window,origin:N.origin,channelName:N.channelName,onMessage:i8E(N.receiveMessageConstructor,t.onMessage)})),N.receiveMessageConstructor,N.createInitMessage)},S1a=function(N,t){N.createInitMessage=t};
uVf.prototype.send=function(N){if(!this.initialised)throw new Uw("Attempted to send a message before initialisation.");this.delegate.send(N)};
var hrX=function(N,t){return _.K(function(O){if(!N.initialised)throw new Uw("Attempted to send a message before initialisation.");return O.return(new Promise(function(H){N.delegate.send(t,i8E(N.receiveMessageConstructor,H))}))})};
uVf.prototype.init=function(){var N=this;return _.K(function(t){if(N.initialised)throw new Uw("Attempted to initialise twice. The SDK can only be initialised once.");if(N.createInitMessage!==void 0){var O=N.delegate,H=O.send,A=N.createInitMessage;var Z=new fzQ;var U=[].concat(_.W6(N.features));Z=_.sx(Z,1,U,_.Hm);H.call(O,A.call(N,Z))}N.initialised=!0;_.Ty(t)})};
var KA=function(N,t){if(N.initialised)throw new Uw('Attempted to set up API "'+t+'" after initialisation. All APIs must be set up before initialising the SDK.');N.features.add(t);return N.registry};
_.cv.Object.defineProperties(uVf.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var MsQ=function(N){this.channel=N;this.registered=!1};
MsQ.prototype.update=function(N){if(this.channel.isInitialised){if(!this.registered)throw new Uw("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var t=new b9;var O=new nrQ;O=_.SR(O,1,N);t=_.zN(t,2,Yw,O);this.channel.send(t)}else this.register();this.JSC$9128_audioEnabled=N};
MsQ.prototype.register=function(){KA(this.channel,1);this.registered=!0};
MsQ.prototype.isAudioEnabled=function(){return this.JSC$9128_audioEnabled};var b8S=function(N){this.channel=N};
_.V=b8S.prototype;_.V.onFirstFrameReady=function(N){KA(this.channel,2).register(11,function(t){t=_.e0(t.data,G5B,11,Db);if(!t)throw new Uw("Unexpectedly nonexistent GameFirstFrameReadyEvent");N(_.YD(t,1))})};
_.V.onReady=function(N){KA(this.channel,2).register(4,function(t){t=_.e0(t.data,vrZ,4,Db);if(!t)throw new Uw("Unexpectedly nonexistent GameReadyEvent");N(_.YD(t,1))})};
_.V.onLevelComplete=function(N){KA(this.channel,2).register(5,function(t){t=_.e0(t.data,Jm_,5,Db);if(!t)throw new Uw("Unexpectedly nonexistent LevelCompleteEvent");N(_.YD(t,1),_.$1(t,2))})};
_.V.onGameOver=function(N){KA(this.channel,2).register(6,function(t){t=_.e0(t.data,R5r,6,Db);if(!t)throw new Uw("Unexpectedly nonexistent GameOverEvent");N(_.YD(t,1))})};
_.V.pause=function(){var N=this;if(!this.channel.isInitialised)return KA(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Uw("Using unregistered Game Feature: pause.");var t=mqX();return new Promise(function(O){return _.K(function(H){if(H.nextAddress==1)return H.yield(hrX(N.channel,t),2);O();_.Ty(H)})})};
_.V.resume=function(){var N=this;if(!this.channel.isInitialised)return KA(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Uw("Using unregistered Game Feature: resume.");var t=Eru();return new Promise(function(O){return _.K(function(H){if(H.nextAddress==1)return H.yield(hrX(N.channel,t),2);O();_.Ty(H)})})};var ply=function(N){this.channel=N};
ply.prototype.onReady=function(N){KA(this.channel,5).register(8,function(t){if(!_.e0(t.data,orf,8,Db))throw new Uw("Unexpectedly nonexistent PageReadyEvent");N()})};var LA0=function(N){this.channel=N};
LA0.prototype.onChange=function(N){KA(this.channel,3).register(7,function(t){t=_.e0(t.data,s1f,7,Db);if(!t)throw new Uw("Unexpectedly nonexistent ScoreEvent");N(_.YD(t,1),_.$1(t,2))})};var zrB={load:function(){throw new Uw("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Uw("Storage used, but storage.onSave() listener not set!");}},Y1E=function(N){this.channel=N;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},auE=function(N){KA(N.channel,4).register(2,zrB.load).register(3,zrB.save);
N.initialSetupDone=!0};
Y1E.prototype.onLoad=function(N){this.initialSetupDone||auE(this);this.loadRegistered||(this.loadRegistered=!0,KA(this.channel,4).register(2,function(t){var O,H,A;return _.K(function(Z){if(Z.nextAddress==1){O=_.e0(t.data,NDZ,2,Db);if(!O)throw new Uw("Unexpectedly nonexistent StorageLoad");H=_.YD(O,1);return Z.yield(N(H),2)}A=Z.yieldResult;var U=t.reply,C=new b9;var F=new IzS;F=_.Xa(F,1,H);F=_.MV(F,2,_.eE(A,!1));C=_.zN(C,3,Yw,F);U.call(t,C);_.Ty(Z)})}))};
Y1E.prototype.onSave=function(N){this.initialSetupDone||auE(this);this.saveRegistered||(this.saveRegistered=!0,KA(this.channel,4).register(3,function(t){var O,H,A;return _.K(function(Z){if(Z.nextAddress==1){O=_.e0(t.data,tsa,3,Db);if(!O)throw new Uw("Unexpectedly nonexistent StorageSave");H=_.YD(O,1);A=$yZ(O.getData());return Z.yield(N(H,A),2)}var U=t.reply,C=new b9;var F=new lzS;F=_.Xa(F,1,H);C=_.zN(C,4,Yw,F);U.call(t,C);_.Ty(Z)})}))};var TDY=function(N){this.channel=N};
TDY.prototype.update=function(N){if(!this.channel.features.has(6))throw new Uw("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var t=new b9,O=new Q1p;N=_.L8(O,1,N);t=_.zN(t,6,Yw,N);this.channel.send(t)};
TDY.prototype.register=function(){KA(this.channel,6)};var wla=function(N){this.channel=N;this.userActivityLoggingIntervalMs=0};
wla.prototype.onUserActivity=function(N,t){this.userActivityLoggingIntervalMs=t;KA(this.channel,7).register(9,function(O){if(!_.e0(O.data,O8a,9,Db))throw new Uw("Unexpectedly nonexistent ClickEvent");N()})};var erY=function(N){var t=this;this.channel=N;this.init=this.channel.init.bind(this.channel);this.page=new ply(this.channel);this.game=new b8S(this.channel);this.audio=new MsQ(this.channel);this.score=new LA0(this.channel);this.storage=new Y1E(this.channel);this.style=new TDY(this.channel);this.userActivity=new wla(this.channel);S1a(this.channel,function(O){var H=new owv;O=_.L8(H,1,O);O=_.PU(O,3,t.userActivity.userActivityLoggingIntervalMs);H=t.audio.isAudioEnabled();H!==void 0&&_.SR(O,2,H);H=new b9;
return _.zN(H,5,Yw,O)})};var P9E=function(){this.timedFunctionContext=0};
P9E.prototype.timeExecution=function(N,t){var O=this;return function(){var H=_.E1.apply(0,arguments);O.timedFunctionContext=N;return t.apply(null,_.W6(H))}};var Xlp=function(){var N={};this.priorityTasks=(N[3]=[],N[2]=[],N[1]=[],N);this.isFlushing=!1},pm=function(N,t,O){var H=xmX(N,O);
N.priorityTasks[O].push(t);H&&N.priorityTasks[O].length===1&&N.flush()},xmX=function(N,t){return Object.keys(N.priorityTasks).map(function(O){return Number(O)}).filter(function(O){return!isNaN(O)&&O>t}).every(function(O){return N.priorityTasks[O].length===0})};
Xlp.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(N){return N.length>0});)kNr(this,3),kNr(this,2),kNr(this,1)}catch(N){throw Object.values(this.priorityTasks).forEach(function(t){return void t.splice(0,t.length)}),N;
}finally{this.isFlushing=!1}}};
var kNr=function(N,t){for(;xmX(N,t)&&N.priorityTasks[t].length>0;)N.priorityTasks[t][0](),N.priorityTasks[t].shift()};
_.cv.Object.defineProperties(Xlp.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(N){return N.length>0})}}});var ZUt={};var q1E=globalThis.trustedTypes,NGS=q1E,OUO;var TN=function(N){this.privateDoNotAccessOrElseWrappedResourceUrl=N};
TN.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var fuX,nwf,WAS,rRu,IuQ,luY,QdZ,mmE;fuX=_.mp([""]);nwf=QD(["\x00"],["\\0"]);WAS=QD(["\n"],["\\n"]);rRu=QD(["\x00"],["\\u0000"]);IuQ=_.mp([""]);luY=QD(["\x00"],["\\0"]);QdZ=QD(["\n"],["\\n"]);mmE=QD(["\x00"],["\\u0000"]);_.EwS=AYQ(function(N){return N(fuX)})||AYQ(function(N){return N(nwf)})||AYQ(function(N){return N(WAS)})||AYQ(function(N){return N(rRu)});
_.GNB=_.Pl(IuQ)&&_.Pl(luY)&&_.Pl(QdZ)&&_.Pl(mmE);var rD;_.XV=function(N,t){this.privateDoNotAccessOrElseWrappedUrl=t};
_.XV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Rru=xw("about:blank");rD=xw("about:invalid#zClosurez");var VVO=function(N){this.isValid=N},vwa=new VVO(function(N){return/^[^:]*([/?#]|$)/.test(N)}),JRY=n8("data"),owr=n8("http"),sdu=n8("https"),NGp=n8("ftp"),tVa=n8("mailto"),OUB=n8("intent"),HUu=n8("vnd.youtube"),Dox=[JRY,
owr,sdu,tVa,NGp,vwa],CkQ=ad(function(){return typeof URL==="function"}),AY_=["data:",
"http:","https:","mailto:","ftp:"],Fn4=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var vl=function(N){this.privateDoNotAccessOrElseWrappedHtml=N};
vl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var K8S=ad(function(){return new vl(q1E?q1E.emptyHTML:"")});var ZUf={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"},gCg=function(N,t){var O=Error.call(this,N+" cannot be used with intent "+ZUf[t]);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.type=N;this.intent=t;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.p(gCg,Error);_.AY=function(N){this.privateDoNotAccessOrElseWrappedScript=N};
_.AY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var BG9=function(N){this.privateDoNotAccessOrElseWrappedAttributePrefix=N};
BG9.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var cYz="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var dG=function(N){this.privateDoNotAccessOrElseWrappedStyleSheet=N};
dG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var r4x=function(N){var t=_.s2("window.location.href");N==null&&(N='Unknown Error of type "null/undefined"');if(typeof N==="string")return{message:N,name:"Unknown error",lineNumber:"Not available",fileName:t,stack:"Not available"};var O=!1;try{var H=N.lineNumber||N.line||"Not available"}catch(U){H="Not available",O=!0}try{var A=N.fileName||N.filename||N.sourceURL||_.H4.$googDebugFname||t}catch(U){A="Not available",O=!0}t=VVB(N);if(!(!O&&N.lineNumber&&N.fileName&&N.stack&&N.message&&N.name)){O=N.message;
if(O==null){if(N.constructor&&N.constructor instanceof Function){if(N.constructor.name)O=N.constructor.name;else if(O=N.constructor,FJ[O])O=FJ[O];else{O=String(O);if(!FJ[O]){var Z=/function\s+([^\(]+)/m.exec(O);FJ[O]=Z?Z[1]:"[Anonymous]"}O=FJ[O]}O='Unknown Error of type "'+O+'"'}else O="Unknown Error of unknown type";typeof N.toString==="function"&&Object.prototype.toString!==N.toString&&(O+=": "+N.toString())}return{message:O,name:N.name||"UnknownError",lineNumber:H,fileName:A,stack:t||"Not available"}}return{message:N.message,
name:N.name,lineNumber:N.lineNumber,fileName:N.fileName,stack:t}},VVB=function(N,t){t||(t={});
t[DoX(N)]=!0;var O=N.stack||"",H=N.cause;H&&!t[DoX(H)]&&(O+="\nCaused by: ",H.stack&&H.stack.indexOf(H.toString())==0||(O+=typeof H==="string"?H:H.message+"\n"),O+=VVB(H,t));N=N.errors;if(Array.isArray(N)){H=1;var A;for(A=0;A<N.length&&!(H>4);A++)t[DoX(N[A])]||(O+="\nInner error "+H++ +": ",N[A].stack&&N[A].stack.indexOf(N[A].toString())==0||(O+=typeof N[A]==="string"?N[A]:N[A].message+"\n"),O+=VVB(N[A],t));A<N.length&&(O+="\n... "+(N.length-A)+" more inner errors")}return O},DoX=function(N){var t=
"";
typeof N.toString==="function"&&(t=""+N);return t+N.stack},FJ={};var Uoy,yl,DE,KnR,Fn0,Ck_,NY,xL,gCu;Uoy=function(N,t){for(var O=N.split("%s"),H="",A=Array.prototype.slice.call(arguments,1);A.length&&O.length>1;)H+=O.shift()+A.shift();return H+O.join("%s")};
_.Ae=function(N){return encodeURIComponent(String(N))};
yl=function(N){return decodeURIComponent(N.replace(/\+/g," "))};
DE=function(N){PQf.test(N)&&(N.indexOf("&")!=-1&&(N=N.replace(z9B,"&amp;")),N.indexOf("<")!=-1&&(N=N.replace(YSS,"&lt;")),N.indexOf(">")!=-1&&(N=N.replace(ap_,"&gt;")),N.indexOf('"')!=-1&&(N=N.replace(Ttu,"&quot;")),N.indexOf("'")!=-1&&(N=N.replace(w4f,"&#39;")),N.indexOf("\x00")!=-1&&(N=N.replace(e9R,"&#0;")));return N};
KnR=function(N){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var O=_.H4.document.createElement("div");return N.replace(Ck_,function(H,A){var Z=t[H];if(Z)return Z;A.charAt(0)=="#"&&(A=Number("0"+A.slice(1)),isNaN(A)||(Z=String.fromCharCode(A)));Z||(_.CU(O,JR(H+" ")),Z=O.firstChild.nodeValue.slice(0,-1));return t[H]=Z})};
Fn0=function(N){return N.replace(/&([^;]+);/g,function(t,O){switch(O){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return O.charAt(0)!="#"||(O=Number("0"+O.slice(1)),isNaN(O))?t:String.fromCharCode(O)}})};
Ck_=/&([^;\s<&]+);?/g;_.Ljy=function(N){return String(N).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.doS=String.prototype.repeat?function(N,t){return N.repeat(t)}:function(N,t){return Array(t+1).join(N)};
_.dI=function(N,t){if(!Number.isFinite(N))return String(N);N=String(N);var O=N.indexOf(".");O===-1&&(O=N.length);var H=N[0]==="-"?"-":"";H&&(N=N.substring(1));return H+(0,_.doS)("0",Math.max(0,t-O))+N};
NY=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.tw()).toString(36)};
xL=function(N){for(var t=0,O=0;O<N.length;++O)t=31*t+N.charCodeAt(O)>>>0;return t};
_.Kv=function(N){return String(N).replace(/\-([a-z])/g,function(t,O){return O.toUpperCase()})};
_.Cv=function(N){return String(N).replace(/([A-Z])/g,"-$1").toLowerCase()};
gCu=function(N){return N.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(t,O,H){return O+H.toUpperCase()})};var yYY=function(){this.names=new Map};
yYY.prototype.getName=function(N){var t=this.names.get(N);if(t)return t;var O;t=(O=N.description)!=null?O:NY();this.names.set(N,t);return t};var BGa=function(N){var t=Error.call(this,N?N.length+" errors occurred during unsubscription:\n"+N.map(function(O,H){return H+1+") "+O.toString()}).join("\n  "):"");
this.message=t.message;"stack"in t&&(this.stack=t.stack);this.errors=N;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.p(BGa,Error);var y0=function(N){this.initialTeardown=N;this.closed=!1;this._teardowns=this._parentage=null};
_.V=y0.prototype;
_.V.unsubscribe=function(){if(!this.closed){this.closed=!0;var N=this._parentage;if(Array.isArray(N))for(var t=_.D(N),O=t.next();!O.done;O=t.next())O.value.remove(this);else N==null||N.remove(this);t=this.initialTeardown;if(gG(t))try{t()}catch(Z){var H=Z instanceof BGa?Z.errors:[Z]}var A=this._teardowns;if(A)for(this._teardowns=null,t=_.D(A),O=t.next();!O.done;O=t.next()){O=O.value;try{gG(O)?O():O.unsubscribe()}catch(Z){O=void 0,H=(O=H)!=null?O:[],Z instanceof BGa?H=[].concat(_.W6(H),_.W6(Z.errors)):
H.push(Z)}}if(H)throw new BGa(H);}};
_.V.add=function(N){if(N&&N!==this)if(this.closed)gG(N)?N():N.unsubscribe();else{if(N instanceof y0){if(N.closed||N._hasParent(this))return;N._addParent(this)}var t;(this._teardowns=(t=this._teardowns)!=null?t:[]).push(N)}};
_.V._hasParent=function(N){var t=this._parentage;return t===N||Array.isArray(t)&&t.includes(N)};
_.V._addParent=function(N){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(N),t):t?[t,N]:N};
_.V._removeParent=function(N){var t=this._parentage;t===N?this._parentage=null:Array.isArray(t)&&SGp(t,N)};
_.V.remove=function(N){var t=this._teardowns;t&&SGp(t,N);N instanceof y0&&N._removeParent(this)};
var cYy=new y0;cYy.closed=!0;y0.JSC$9224_EMPTY=cYy;var MVO=function(){setTimeout.apply(null,_.W6(_.E1.apply(0,arguments)))};var gI=function(N){y0.call(this);this.JSC$9229_isStopped=!1;this.destination=N instanceof gI?N:new yA(!N||gG(N)?{next:N!=null?N:void 0}:N);hUz(N)&&N.add(this)};
_.p(gI,y0);gI.JSC$9224_EMPTY=y0.JSC$9224_EMPTY;gI.create=function(N,t,O){return new B1(N,t,O)};
_.V=gI.prototype;_.V.next=function(N){this.JSC$9229_isStopped||this._next(N)};
_.V.error=function(N){this.JSC$9229_isStopped||(this.JSC$9229_isStopped=!0,this._error(N))};
_.V.complete=function(){this.JSC$9229_isStopped||(this.JSC$9229_isStopped=!0,this._complete())};
_.V.unsubscribe=function(){this.closed||(this.JSC$9229_isStopped=!0,y0.prototype.unsubscribe.call(this))};
_.V._next=function(N){this.destination.next(N)};
_.V._error=function(N){this.destination.error(N);this.unsubscribe()};
_.V._complete=function(){this.destination.complete();this.unsubscribe()};
var yA=function(N){this.partialObserver=N};
yA.prototype.next=function(N){var t=this.partialObserver;if(t.next)try{t.next(N)}catch(O){c6(O)}};
yA.prototype.error=function(N){var t=this.partialObserver;if(t.error)try{t.error(N)}catch(O){c6(O)}else c6(N)};
yA.prototype.complete=function(){var N=this.partialObserver;if(N.complete)try{N.complete()}catch(t){c6(t)}};
var B1=function(N,t,O){gI.call(this);var H;gG(N)||!N?H={next:N!=null?N:void 0,error:t!=null?t:void 0,complete:O!=null?O:void 0}:H=N;this.destination=new yA(H)};
_.p(B1,gI);B1.JSC$9224_EMPTY=gI.JSC$9224_EMPTY;B1.create=gI.create;var uk=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ik=function(N){N&&(this._subscribe=N)};
_.V=ik.prototype;_.V.lift=function(N){var t=new ik;t.source=this;t.operator=N;return t};
_.V.subscribe=function(N,t,O){N=N&&N instanceof gI||N&&gG(N.next)&&gG(N.error)&&gG(N.complete)&&hUz(N)?N:new B1(N,t,O);t=this.operator;O=this.source;N.add(t?t.call(N,O):O?this._subscribe(N):this._trySubscribe(N));return N};
_.V._trySubscribe=function(N){try{return this._subscribe(N)}catch(t){N.error(t)}};
_.V.forEach=function(N,t){var O=this;t=p69(t);return new t(function(H,A){var Z=O.subscribe(function(U){try{N(U)}catch(C){A(C),Z==null||Z.unsubscribe()}},A,H)})};
_.V._subscribe=function(N){var t;return(t=this.source)==null?void 0:t.subscribe(N)};
ik.prototype[uk]=function(){return this};
ik.prototype.pipe=function(){var N=_.E1.apply(0,arguments);return N.length?bUy(N)(this):this};
ik.create=function(N){return new ik(N)};var $oR=function(){var N=Error.call(this,"object unsubscribed");this.message=N.message;"stack"in N&&(this.stack=N.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.p($oR,Error);var hD=function(){this.observers=[];this.hasError=this.JSC$9245_isStopped=this.closed=!1;this.thrownError=null};
_.p(hD,ik);_.V=hD.prototype;_.V.lift=function(N){var t=new c1(this,this);t.operator=N;return t};
_.V._throwIfClosed=function(){if(this.closed)throw new $oR;};
_.V.next=function(N){this._throwIfClosed();if(!this.JSC$9245_isStopped){var t=this.observers.slice();t=_.D(t);for(var O=t.next();!O.done;O=t.next())O.value.next(N)}};
_.V.error=function(N){this._throwIfClosed();if(!this.JSC$9245_isStopped){this.hasError=this.JSC$9245_isStopped=!0;this.thrownError=N;for(var t=this.observers;t.length;)t.shift().error(N)}};
_.V.complete=function(){this._throwIfClosed();if(!this.JSC$9245_isStopped){this.JSC$9245_isStopped=!0;for(var N=this.observers;N.length;)N.shift().complete()}};
_.V.unsubscribe=function(){this.JSC$9245_isStopped=this.closed=!0;this.observers=null};
_.V._trySubscribe=function(N){this._throwIfClosed();return ik.prototype._trySubscribe.call(this,N)};
_.V._subscribe=function(N){this._throwIfClosed();this._checkFinalizedStatuses(N);return this._innerSubscribe(N)};
_.V._innerSubscribe=function(N){var t=this,O=this.JSC$9245_isStopped,H=this.observers;return this.hasError||O?y0.JSC$9224_EMPTY:(H.push(N),new y0(function(){return SGp(t.observers,N)}))};
_.V._checkFinalizedStatuses=function(N){var t=this.thrownError,O=this.JSC$9245_isStopped;this.hasError?N.error(t):O&&N.complete()};
hD.create=function(N,t){return new c1(N,t)};
var c1=function(N,t){hD.call(this);this.destination=N;this.source=t};
_.p(c1,hD);c1.create=hD.create;c1.prototype.next=function(N){var t,O;(t=this.destination)==null||(O=t.next)==null||O.call(t,N)};
c1.prototype.error=function(N){var t,O;(t=this.destination)==null||(O=t.error)==null||O.call(t,N)};
c1.prototype.complete=function(){var N,t;(N=this.destination)==null||(t=N.complete)==null||t.call(N)};
c1.prototype._subscribe=function(N){var t,O;return(O=(t=this.source)==null?void 0:t.subscribe(N))!=null?O:y0.JSC$9224_EMPTY};var Nn=function(N){hD.call(this);this._value=N};
_.p(Nn,hD);Nn.create=hD.create;Nn.prototype._subscribe=function(N){var t=hD.prototype._subscribe.call(this,N);!t.closed&&N.next(this._value);return t};
Nn.prototype.getValue=function(){var N=this.thrownError,t=this._value;if(this.hasError)throw N;this._throwIfClosed();return t};
Nn.prototype.next=function(N){hD.prototype.next.call(this,this._value=N)};
_.cv.Object.defineProperties(Nn.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var EG=new ik(function(N){return N.complete()});var axv=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var X69=function(N){return N&&typeof N.length==="number"&&typeof N!=="function"};var jxZ={now:function(){return(jxZ.delegate||Date).now()},
delegate:void 0};var UW=function(N,t,O){N=N===void 0?Infinity:N;t=t===void 0?Infinity:t;O=O===void 0?jxZ:O;hD.call(this);this.bufferSize=N;this.windowTime=t;this.timestampProvider=O;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=t===Infinity;this.bufferSize=Math.max(1,N);this.windowTime=Math.max(1,t)};
_.p(UW,hD);UW.create=hD.create;UW.prototype.next=function(N){var t=this.buffer,O=this.infiniteTimeWindow,H=this.timestampProvider,A=this.windowTime;this.JSC$9245_isStopped||(t.push(N),!O&&t.push(H.now()+A));iUR(this);hD.prototype.next.call(this,N)};
UW.prototype._subscribe=function(N){this._throwIfClosed();iUR(this);for(var t=this._innerSubscribe(N),O=this.infiniteTimeWindow,H=this.buffer.slice(),A=0;A<H.length&&!N.closed;A+=O?1:2)N.next(H[A]);this._checkFinalizedStatuses(N);return t};
var iUR=function(N){var t=N.bufferSize,O=N.timestampProvider,H=N.buffer;N=N.infiniteTimeWindow;var A=(N?1:2)*t;t<Infinity&&A<H.length&&H.splice(0,H.length-A);if(!N){t=O.now();O=0;for(N=1;N<H.length&&H[N]<=t;N+=2)O=N;O&&H.splice(0,O+1)}};var SGY=function(N,t){t=t===void 0?u1f:t;this.schedulerActionCtor=N;this.now=t};
SGY.prototype.schedule=function(N,t,O){t=t===void 0?0:t;return(new this.schedulerActionCtor(this,N)).schedule(O,t)};
var u1f=jxZ.now;var Lql=function(){var N=Error.call(this,"no elements in sequence");this.message=N.message;"stack"in N&&(this.stack=N.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.p(Lql,Error);var kC=function(N,t,O,H,A){gI.call(this,N);this.onUnsubscribe=A;t&&(this._next=function(Z){try{t(Z)}catch(U){this.destination.error(U)}});
O&&(this._error=function(Z){try{O(Z)}catch(U){this.destination.error(U)}this.unsubscribe()});
H&&(this._complete=function(){try{H()}catch(Z){this.destination.error(Z)}this.unsubscribe()})};
_.p(kC,gI);kC.JSC$9224_EMPTY=gI.JSC$9224_EMPTY;kC.create=gI.create;kC.prototype.unsubscribe=function(){var N;this.closed||(N=this.onUnsubscribe)!=null&&N.call(this);gI.prototype.unsubscribe.call(this)};var Vs=function(N,t){this.source=N;this.subjectFactory=t;this._subject=null;this._refCount=0;this._connection=null};
_.p(Vs,ik);Vs.create=ik.create;Vs.prototype._subscribe=function(N){return hUy(this).subscribe(N)};
var hUy=function(N){var t=N._subject;if(!t||t.JSC$9245_isStopped)N._subject=N.subjectFactory();return N._subject};
Vs.prototype._teardown=function(){this._refCount=0;var N=this._connection;this._subject=this._connection=null;N==null||N.unsubscribe()};
Vs.prototype.connect=function(){var N=this,t=this._connection;if(!t){t=this._connection=new y0;var O=hUy(this);t.add(this.source.subscribe(new kC(O,void 0,function(H){N._teardown();O.error(H)},function(){N._teardown();
O.complete()},function(){return N._teardown()})));
t.closed&&(this._connection=null,t=y0.JSC$9224_EMPTY)}return t};var ECQ=Array.isArray;var RUg=Array.isArray,MVB=Object,vCG=MVB.getPrototypeOf,JYM=MVB.prototype,oCx=MVB.keys;var lk=function(N,t,O){gI.call(this,N);this._next=t;this.shouldComplete=O};
_.p(lk,gI);lk.JSC$9224_EMPTY=gI.JSC$9224_EMPTY;lk.create=gI.create;lk.prototype._complete=function(){this.shouldComplete()?gI.prototype._complete.call(this):this.unsubscribe()};var Dwy=["addListener","removeListener"],VuM=["addEventListener","removeEventListener"],Cwy=["on","off"];var $G=function(){y0.call(this)};
_.p($G,y0);$G.JSC$9224_EMPTY=y0.JSC$9224_EMPTY;$G.prototype.schedule=function(){return this};var bUE=function(N,t){return setInterval.apply(null,[N,t].concat(_.W6(_.E1.apply(2,arguments))))};var jW=function(N,t){y0.call(this);this.scheduler=N;this.work=t;this.pending=!1};
_.p(jW,$G);jW.JSC$9224_EMPTY=$G.JSC$9224_EMPTY;jW.prototype.schedule=function(N,t){t=t===void 0?0:t;if(this.closed)return this;this.state=N;N=this.id;var O=this.scheduler;N!=null&&(this.id=p6a(this,N,t));this.pending=!0;this.delay=t;this.id=this.id||this.requestAsyncId(O,this.id,t);return this};
jW.prototype.requestAsyncId=function(N,t,O){O=O===void 0?0:O;return bUE(N.flush.bind(N,this),O)};
var p6a=function(N,t,O){O=O===void 0?0:O;if(O!=null&&N.delay===O&&N.pending===!1)return t;clearInterval(t)};
jW.prototype.execute=function(N,t){if(this.closed)return Error("ha");this.pending=!1;if(N=this._execute(N,t))return N;this.pending===!1&&this.id!=null&&(this.id=p6a(this,this.id,null))};
jW.prototype._execute=function(N){var t=!1;try{this.work(N)}catch(H){t=!0;var O=!!H&&H||Error(H)}if(t)return this.unsubscribe(),O};
jW.prototype.unsubscribe=function(){if(!this.closed){var N=this.id,t=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;SGp(t,this);N!=null&&(this.id=p6a(this,N,null));this.delay=null;$G.prototype.unsubscribe.call(this)}};var Lny=function(N,t){t=t===void 0?u1f:t;SGY.call(this,N,t);this.actions=[];this.active=!1;this.scheduled=void 0};
_.p(Lny,SGY);Lny.prototype.flush=function(N){var t=this.actions;if(this.active)t.push(N);else{var O;this.active=!0;do if(O=N.execute(N.state,N.delay))break;while(N=t.shift());this.active=!1;if(O){for(;N=t.shift();)N.unsubscribe();throw O;}}};var qw=new ik(B6);var Kqt=Array.isArray;var ut=function(N,t){jW.call(this,N,t);this.scheduler=N;this.work=t};
_.p(ut,jW);ut.JSC$9224_EMPTY=jW.JSC$9224_EMPTY;ut.prototype.schedule=function(N,t){t=t===void 0?0:t;if(t>0)return jW.prototype.schedule.call(this,N,t);this.delay=t;this.state=N;this.scheduler.flush(this);return this};
ut.prototype.execute=function(N,t){return t>0||this.closed?jW.prototype.execute.call(this,N,t):this._execute(N,t)};
ut.prototype.requestAsyncId=function(N,t,O){O=O===void 0?0:O;return O!=null&&O>0||O==null&&this.delay>0?jW.prototype.requestAsyncId.call(this,N,t,O):N.flush(this)};var zUB=function(){Lny.apply(this,arguments)};
_.p(zUB,Lny);var Qx9=new zUB(ut);var YGX=function(){this.performanceMonitor=new P9E;this.queue=new Xlp;this.internalSymbol=Symbol();this.debugNames=new yYY};
YGX.prototype.getOnBackgrounded=function(){return qw};
_.cv.Object.defineProperties(YGX.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var SW=function(N,t){t=Error.call(this,t?N+": "+t:String(N));this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=N;this.__proto__=SW.prototype;this.name=String(N)};
_.p(SW,Error);var fm=function(N){SW.call(this,1E3,'sfr:"'+N+'"');this.measurementStrategyFailureReason=N;this.__proto__=fm.prototype};
_.p(fm,SW);var nm=function(){SW.call(this,1003);this.__proto__=nm.prototype};
_.p(nm,SW);var hC=function(){SW.call(this,1009);this.__proto__=hC.prototype};
_.p(hC,SW);var axr=function(){SW.call(this,1011);this.__proto__=axr.prototype};
_.p(axr,SW);var TGB=function(){SW.call(this,1007);this.__proto__=nm.prototype};
_.p(TGB,SW);var xm=function(N){SW.call(this,1004,String(N));this.inputObservableIndex=N;this.__proto__=xm.prototype};
_.p(xm,SW);var E1v=function(N){SW.call(this,1010,N);this.__proto__=Gu4.prototype};
_.p(E1v,SW);var Gu4=function(N){SW.call(this,1005,N);this.__proto__=Gu4.prototype};
_.p(Gu4,SW);var w6R=function(N){var t=_.E1.apply(1,arguments),O=this;this.orderedFactories=[];this.orderedFactories.push(N);t.forEach(function(H){O.orderedFactories.push(H)})};
w6R.prototype.isSupported=function(N){return this.orderedFactories.some(function(t){return t.isSupported(N)})};
w6R.prototype.makeBeacon=function(N,t){for(var O=0;O<this.orderedFactories.length;O++)if(this.orderedFactories[O].isSupported(t))return this.orderedFactories[O].makeBeacon(N,t);throw new hC;};var xYM=Symbol("ia"),eUE=Symbol("ja"),ox=function(N,t){this.value=N;this.timeline=t},JY=function(N,t){if(t.timeline!==N.timeline)throw new TGB;
return N.value-t.value};
_.V=ox.prototype;_.V.equals=function(N){return JY(this,N)===0};
_.V.maximum=function(N){if(N.timeline!==this.timeline)throw new TGB;return this.value>=N.value?this:N};
_.V.round=function(){return new ox(Math.round(this.value),this.timeline)};
_.V.add=function(N){return new ox(this.value+N,this.timeline)};
_.V.toString=function(){return String(this.value)};var MO=function(N,t){this.context=N;this.JSC$9351_pinger=t};
MO.prototype.isSupported=function(N){return this.JSC$9351_pinger.isSupported(N)};
MO.prototype.makeBeacon=function(N,t){if(!this.isSupported(t))throw new hC;return new bt(this.context,this.JSC$9351_pinger,t!=null?t:void 0,N)};
var bt=function(N,t,O,H){var A=this;this.JSC$9357_pinger=t;this.properties=O;this.url=H;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var Z;this.method=(Z=O==null?void 0:O.beaconMethod)!=null?Z:"GET";this.backgroundedSubscription=N.getOnBackgrounded().subscribe(function(){A.sendNow()})};
bt.prototype.deactivate=function(){this.internalIsPending=!1};
bt.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9357_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var N,t;this.JSC$9357_pinger.pingWithHeadersAndBody((N=this.properties)!=null?N:{},this.customHeaders,(t=this.body)!=null?t:"",this.url)}else this.JSC$9357_pinger.ping(this.url);this.internalIsPending=!1}catch(O){}else this.internalIsPending=!1};
bt.prototype.setHeader=function(N,t){this.customHeaders.set(N,t)};
_.cv.Object.defineProperties(bt.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var X6a=function(){for(var N=_.D(_.E1.apply(0,arguments)),t=N.next();!t.done;t=N.next())if(t=t.value,t.available()){this.timeProvider=t;return}this.timeProvider=new PkQ};
_.V=X6a.prototype;_.V.available=function(){return this.timeProvider.available()};
_.V.now=function(){return this.timeProvider.now()};
_.V.setTimeout=function(N,t){return this.timeProvider.setTimeout(N,t)};
_.V.clearTimeout=function(N){this.timeProvider.clearTimeout(N)};
_.V.interval=function(N,t){var O=this.intervalObservable(N).subscribe(t);return function(){return void O.unsubscribe()}};
_.V.intervalObservable=function(N){return this.timeProvider.intervalObservable(N)};
_.cv.Object.defineProperties(X6a.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var PkQ=function(){this.timeline=Symbol()};
_.V=PkQ.prototype;_.V.available=function(){return!1};
_.V.now=function(){return new ox(0,this.timeline)};
_.V.setTimeout=function(){return 0};
_.V.clearTimeout=function(){};
_.V.interval=function(){return function(){}};
_.V.intervalObservable=function(){return qw};var pA=function(N,t){this.intrinsicFunctionNamespace=N;this.performanceMonitor=t};
_.V=pA.prototype;_.V.setTimeout=function(N,t){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,N),t)};
_.V.clearTimeout=function(N){this.intrinsicFunctionNamespace.clearTimeout(N)};
_.V.interval=function(N,t){var O=this.intervalObservable(N).subscribe(t);return function(){return void O.unsubscribe()}};
_.V.intervalObservable=function(N){var t=this;return new ik(function(O){var H=0,A=t.intrinsicFunctionNamespace.setInterval(function(){O.next(H++)},N);
return function(){t.intrinsicFunctionNamespace.clearInterval(A)}})};
_.V.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var xoZ=function(N,t){pA.call(this,N,t);this.timeline=eUE};
_.p(xoZ,pA);xoZ.prototype.now=function(){return new ox(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
xoZ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&pA.prototype.available.call(this)};var kyE=function(N,t){pA.call(this,N,t);this.timeline=xYM};
_.p(kyE,pA);kyE.prototype.now=function(){return new ox(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
kyE.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&pA.prototype.available.call(this)};var fxB=function(N){this.context=N;if(qGE===void 0)a:{var t,O,H=(t=N.global)==null?void 0:(O=t.document)==null?void 0:O.createElement("meta");if(H)try{H.httpEquiv="origin-trial";H.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";N.global.document.head.append(H);qGE=H;break a}catch(A){}qGE=void 0}},
qGE;
fxB.prototype.isSupported=function(N){return uay(this.context)!==void 0&&!(N==null||!N.endOfSession)&&!LA(this.context)&&!(N==null?0:N.attributionEnabled)&&!(N==null?0:N.customHeaders)&&!(N==null?0:N.customBody)};
fxB.prototype.makeBeacon=function(N,t){if(!this.isSupported(t))throw new hC;return new zj(this.context,N,t)};
var zj=function(N,t,O){this.context=N;this.properties=O;this.JSC$9384_urlWithoutToken=t;var H;this.beaconMethod=(H=O==null?void 0:O.beaconMethod)!=null?H:"GET";N=uay(this.context);if(N===void 0)throw Error();this.fetchLater=N;nCp(this,Wnp(this))},nCp=function(N,t){N.beaconResult&&N.beaconResult.activated||(N.beaconAbort=new AbortController,N.beaconResult=N.fetchLater(t,{method:N.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:N.beaconAbort.signal,activateAfter:96E4}))},Wnp=function(N){N=N.JSC$9384_urlWithoutToken;
return(N.slice(-1)[0]==="&"?N:N+"&")+"flapi=1"};
zj.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
zj.prototype.sendNow=function(){};
zj.prototype.setHeader=function(){};
_.cv.Object.defineProperties(zj.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9384_urlWithoutToken},
set:function(N){this.JSC$9384_urlWithoutToken=N;N=Wnp(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);nCp(this,N)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var rYf=function(N){this.context=N};
rYf.prototype.isSupported=function(){return!LA(this.context)&&!!this.context.global.fetch};
rYf.prototype.ping=function(){var N=this;return Rx.apply(null,_.W6(_.E1.apply(0,arguments).map(function(t){return hY(N.context.global.fetch(t,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(fU(function(O){return O.status===200}))}))).pipe(zoy(function(t){return t}),aCv())};
rYf.prototype.pingWithHeadersAndBody=function(N,t,O){for(var H=_.E1.apply(3,arguments),A=this,Z=new Headers,U=_.D(t.entries()),C=U.next();!C.done;C=U.next()){var F=_.D(C.value);C=F.next().value;F=F.next().value;Z.set(C,F)}var g,B=(g=N.keepAlive)!=null?g:!1;Rx.apply(null,_.W6(H.map(function(c){return hY(A.context.global.fetch(c,Object.assign({},{method:String(N.beaconMethod),cache:"no-cache"},B?{keepalive:!0}:{},{mode:"no-cors",headers:Z,body:O}))).pipe(fU(function(u){return u.status===200}))}))).pipe(zoy(function(c){return c}),
aCv())};var IxX,Twz,lxr;_.YG=function(){};
_.xx=function(N){return N};
IxX=function(N){var t=t||0;return function(){return N.apply(this,Array.prototype.slice.call(arguments,0,t))}};
_.a5=function(N){var t=!1,O;return function(){t||(O=N(),t=!0);return O}};
_.Tj=function(N,t){var O=0;return function(H){_.H4.clearTimeout(O);var A=arguments;O=_.H4.setTimeout(function(){N.apply(void 0,A)},t)}};
Twz=function(N,t){var O=0,H=!1,A=[],Z=function(){O=0;H&&(H=!1,U())},U=function(){O=_.H4.setTimeout(Z,t);
var C=A;A=[];N.apply(void 0,C)};
return function(C){A=arguments;O?H=!0:U()}};
lxr=function(N,t){var O=0,H=function(){O=0};
return function(A){O||(O=_.H4.setTimeout(H,t),N.apply(void 0,arguments))}};var moQ=function(){return uQ&&Sy?Sy.mobile:!Qxa()&&(hg("iPod")||hg("iPhone")||hg("Android")||hg("IEMobile"))},Qxa=function(){return uQ&&Sy?!Sy.mobile&&(hg("iPad")||hg("Android")||hg("Silk")):hg("iPad")||hg("Android")&&!hg("Mobile")||hg("Silk")};var wI=function(N,t,O,H,A){this.allowedElements=N;this.elementPolicies=t;this.allowedGlobalAttributes=O;this.globalAttributePolicies=H;this.globallyAllowedAttributePrefixes=A},EC_=function(N,t,O){O=N.elementPolicies.get(O);
return(O==null?0:O.has(t))?O.get(t):N.allowedGlobalAttributes.has(t)?{policyAction:1}:(O=N.globalAttributePolicies.get(t))?O:N.globallyAllowedAttributePrefixes&&[].concat(_.W6(N.globallyAllowedAttributePrefixes)).some(function(H){return t.indexOf(H)===0})?{policyAction:1}:{policyAction:0}};var GyR="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(" "),
RUu=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],vCZ="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(" "),
JYS=[["dir",{policyAction:3,conditions:ad(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ad(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ad(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ad(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],oCX=new wI(new Set(GyR),new Map(RUu),new Set(vCZ),new Map(JYS)),sxf=new wI(new Set(GyR.concat(["BUTTON",
"INPUT"])),new Map(RUu),new Set(ad(function(){return vCZ.concat(["class","id","name"])})),new Map(ad(function(){return JYS.concat([["style",
{policyAction:1}]])})));var Nca,tuY,HmZ;Nca=function(N,t,O,H,A){this.JSC$9441_sanitizerTable=N;this.styleElementSanitizer=t;this.styleAttributeSanitizer=O;this.JSC$9441_resourceUrlPolicy=H;this.JSC$9441_navigationUrlPolicy=A;this.changes=[]};
_.OmX=function(N,t){var O=document.implementation.createHTMLDocument("");N=tuY(N,t,O);O=O.body;O.appendChild(N);O=(new XMLSerializer).serializeToString(O);O=O.slice(O.indexOf(">")+1,O.lastIndexOf("</"));return JR(O)};
tuY=function(N,t,O){t=nmO(t,O);t=document.createTreeWalker(t,5,function(C){if(C.nodeType===3)C=1;else if(rD4(C))if(C=WqQ(C),C===null)C=2;else{var F=N.JSC$9441_sanitizerTable;C=C!=="FORM"&&(F.allowedElements.has(C)||F.elementPolicies.has(C))?1:2}else C=2;return C});
for(var H=t.nextNode(),A=O.createDocumentFragment(),Z=A;H!==null;){var U=void 0;if(H.nodeType===3)N.styleElementSanitizer&&Z.nodeName==="STYLE"?(H=N.styleElementSanitizer(H.data),U=N.createTextNode(H)):U=N.createTextNode(H.data);else if(rD4(H))U=HmZ(N,H,O);else throw Error("Z");Z.appendChild(U);if(H=t.firstChild())Z=U;else for(;!(H=t.nextSibling())&&(H=t.parentNode());)Z=Z.parentNode}return A};
Nca.prototype.createTextNode=function(N){return document.createTextNode(N)};
HmZ=function(N,t,O){var H,A=WqQ(t);O=O.createElement(A);t=t.attributes;for(var Z=_.D(t),U=Z.next();!U.done;U=Z.next()){var C=U.value;U=C.name;C=C.value;var F=EC_(N.JSC$9441_sanitizerTable,U,A);a:{if(H=F.conditions){H=_.D(H);for(var g=H.next();!g.done;g=H.next()){var B=_.D(g.value);g=B.next().value;B=B.next().value;var c=void 0;if((g=(c=t.getNamedItem(g))==null?void 0:c.value)&&!B.has(g)){H=!1;break a}}}H=!0}if(H)switch(F.policyAction){case 1:$m(O,U,C);break;case 2:throw Error();case 3:$m(O,U,C.toLowerCase());
break;case 4:N.styleAttributeSanitizer?(C=N.styleAttributeSanitizer(C),$m(O,U,C)):$m(O,U,C);break;case 5:N.JSC$9441_resourceUrlPolicy?(F={type:2,attributeName:U,elementName:A},C=fCS(C),(C=N.JSC$9441_resourceUrlPolicy(C,F))&&$m(O,U,C.toString())):$m(O,U,C);break;case 6:if(N.JSC$9441_resourceUrlPolicy){F={type:2,attributeName:U,elementName:A};H=[];C=_.D(C.split(","));for(g=C.next();!g.done;g=C.next())B=_.D(g.value.trim().split(/\s+/,2)),g=B.next().value,B=B.next().value,H.push({url:g,descriptor:B});
C={parts:[]};H=_.D(H);for(g=H.next();!g.done;g=H.next())g=g.value,B=fCS(g.url),(B=N.JSC$9441_resourceUrlPolicy(B,F))&&C.parts.push({url:B.toString(),descriptor:g.descriptor});$m(O,U,ICO(C))}else $m(O,U,C);break;case 7:F=C;if(N.JSC$9441_navigationUrlPolicy){F={type:2,attributeName:U,elementName:A};C=fCS(C);C=N.JSC$9441_navigationUrlPolicy(C,F);if(C===null)break;F=C.toString()}C=F;F=_.KnN(C);F=F!==void 0&&AY_.indexOf(F.toLowerCase())!==-1?C:"about:invalid#zClosurez";$m(O,U,F)}}return O};
_.ADQ=ad(function(){return new Nca(oCX)});
_.ZmB=ad(function(){return new Nca(sxf)});var VuS=function(){this.calledBuild=!1;this.JSC$9453_sanitizerTable=oCX},DwE=function(){VuS.apply(this,arguments)};
_.p(DwE,VuS);DwE.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new Nca(this.JSC$9453_sanitizerTable,void 0,void 0,this.JSC$9453_resourceUrlPolicy,this.JSC$9453_navigationUrlPolicy)};var UwS=/[^#]*/;var eop={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"},CwE=_.a5(function(){return XWv()}),
Fqa=function(){var N=Kqf("IFRAME"),t={};
_.Z9(CwE(),function(O){N.sandbox&&N.sandbox.supports&&N.sandbox.supports(O)&&(t[O]=!0)});
return t},Kqf=function(N,t){t=t===void 0?document:t;
return t.createElement(String(N).toLowerCase())};var eW;_.eS=function(N,t,O){return Math.min(Math.max(N,t),O)};
eW=function(N,t,O){return N+O*(t-N)};_.IN=function(N,t){this.x=N!==void 0?N:0;this.y=t!==void 0?t:0};
_.V=_.IN.prototype;_.V.clone=function(){return new _.IN(this.x,this.y)};
_.V.equals=function(N){return N instanceof _.IN&&(this==N?!0:this&&N?this.x==N.x&&this.y==N.y:!1)};
_.V.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.V.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.V.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.V.translate=function(N,t){N instanceof _.IN?(this.x+=N.x,this.y+=N.y):(this.x+=Number(N),typeof t==="number"&&(this.y+=t));return this};
_.V.scale=function(N,t){this.x*=N;this.y*=typeof t==="number"?t:N;return this};_.aN=function(N,t){this.width=N;this.height=t};
_.V=_.aN.prototype;_.V.clone=function(){return new _.aN(this.width,this.height)};
_.V.area=function(){return this.width*this.height};
_.V.aspectRatio=function(){return this.width/this.height};
_.V.isEmpty=function(){return!this.area()};
_.V.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.V.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.V.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.V.scale=function(N,t){this.width*=N;this.height*=typeof t==="number"?t:N;return this};var dwR;_.WW={};dwR="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.WW.add=function(N,t,O){if(N!==null&&t in N)throw Error("na`"+t);N[t]=O};
_.WW.clear=function(N){for(var t in N)delete N[t]};
_.WW.clone=function(N){var t={},O;for(O in N)t[O]=N[O];return t};
_.WW.contains=function(N,t){return Gi9(N,t)};
_.WW.containsKey=function(N,t){return N!==null&&t in N};
_.WW.containsValue=Gi9;_.WW.create=JDy;_.WW.createImmutableView=function(N){var t=N;Object.isFrozen&&!Object.isFrozen(N)&&(t=Object.create(N),Object.freeze(t));return t};
_.WW.createSet=om9;_.WW.equals=function(N,t){for(var O in N)if(!(O in t)||N[O]!==t[O])return!1;for(var H in t)if(!(H in N))return!1;return!0};
_.WW.every=function(N,t,O){for(var H in N)if(!t.call(O,N[H],H,N))return!1;return!0};
_.WW.extend=function(N,t){for(var O,H,A=1;A<arguments.length;A++){H=arguments[A];for(O in H)N[O]=H[O];for(var Z=0;Z<dwR.length;Z++)O=dwR[Z],Object.prototype.hasOwnProperty.call(H,O)&&(N[O]=H[O])}};
_.WW.filter=function(N,t,O){var H={},A;for(A in N)t.call(O,N[A],A,N)&&(H[A]=N[A]);return H};
_.WW.findKey=RoG;_.WW.findValue=function(N,t,O){return(t=RoG(N,t,O))&&N[t]};
_.WW.forEach=function(N,t,O){for(var H in N)t.call(O,N[H],H,N)};
_.WW.get=function(N,t,O){return N!==null&&t in N?N[t]:O};
_.WW.getAllPropertyNames=function(N,t,O){if(!N)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return EmQ(N);for(var H={};N&&(N!==Object.prototype||t)&&(N!==Function.prototype||O);){for(var A=Object.getOwnPropertyNames(N),Z=0;Z<A.length;Z++)H[A[Z]]=!0;N=Object.getPrototypeOf(N)}return EmQ(H)};
_.WW.getAnyKey=function(N){for(var t in N)return t};
_.WW.getAnyValue=function(N){for(var t in N)return N[t]};
_.WW.getCount=function(N){var t=0,O;for(O in N)t++;return t};
_.WW.getKeys=EmQ;_.WW.getSuperClass=function(N){return(N=Object.getPrototypeOf(N.prototype))&&N.constructor};
_.WW.getValueByKeys=function(N,t){var O=_.lQ(t),H=O?t:arguments;for(O=O?0:1;O<H.length;O++){if(N==null)return;N=N[H[O]]}return N};
_.WW.getValues=function(N){var t=[],O=0,H;for(H in N)t[O++]=N[H];return t};
_.WW.isEmpty=function(N){for(var t in N)return!1;return!0};
_.WW.isImmutableView=function(N){return!!Object.isFrozen&&Object.isFrozen(N)};
_.WW.map=function(N,t,O){var H={},A;for(A in N)H[A]=t.call(O,N[A],A,N);return H};
_.WW.remove=function(N,t){var O;(O=t in N)&&delete N[t];return O};
_.WW.set=function(N,t,O){N[t]=O};
_.WW.setIfUndefined=function(N,t,O){return t in N?N[t]:N[t]=O};
_.WW.setWithReturnValueIfNotSet=function(N,t,O){if(t in N)return N[t];O=O();return N[t]=O};
_.WW.some=function(N,t,O){for(var H in N)if(t.call(O,N[H],H,N))return!0;return!1};
_.WW.transpose=function(N){var t={},O;for(O in N)t[N[O]]=O;return t};
_.WW.unsafeClone=vmg;var s7=function(N,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=N===QMy&&t||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=gmX};
s7.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var yDR=function(N){return N instanceof s7&&N.constructor===s7&&N.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===gmX?N.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},gmX={},QMy={};
new s7(QMy,"");var eu,eR,XJ,BcY,jNr,$wr,lw,uaE,hoS,SWB,fA,MuQ,Tcu,aCr,YWQ,wWr,eoY,Pw_,XWr,CbN,xwX,qWE,fCp,kip,P1;eu=function(N){return N?new P1(_.Qs(N)):h9X||(h9X=new P1)};
_.t5=function(N,t){return typeof t==="string"?N.getElementById(t):t};
eR=function(N,t){return(t||document).getElementsByTagName(String(N))};
_.cDp=function(N){return BcY("yt-formatted-string","paper-input-input",N)};
XJ=function(N,t,O,H){N=H||N;return(t=t&&t!="*"?String(t).toUpperCase():"")||O?N.querySelectorAll(t+(O?"."+O:"")):N.getElementsByTagName("*")};
BcY=function(N,t,O){var H=document,A=N&&N!="*"?String(N).toUpperCase():"";return A||t?(O||H).querySelector(A+(t?"."+t:"")):XJ(H,N,t,O)[0]||null};
jNr=function(N,t){_.WW.forEach(t,function(O,H){H=="style"?N.style.cssText=O:H=="class"?N.className=O:H=="for"?N.htmlFor=O:$wr.hasOwnProperty(H)?N.setAttribute($wr[H],O):_.Zp(H,"aria-")||_.Zp(H,"data-")?N.setAttribute(H,O):N[H]=O})};
$wr={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"};_.Ti=function(N){N=(N||window).document;N=N.compatMode=="CSS1Compat"?N.documentElement:N.body;return new _.aN(N.clientWidth,N.clientHeight)};
_.imf=function(N){var t=_.xG(N);N=N.defaultView;return new _.IN((N==null?void 0:N.pageXOffset)||t.scrollLeft,(N==null?void 0:N.pageYOffset)||t.scrollTop)};
_.xG=function(N){return N.scrollingElement?N.scrollingElement:_.Ud||N.compatMode!="CSS1Compat"?N.body||N.documentElement:N.documentElement};
lw=function(N){return N?N.defaultView:window};
_.kG=function(N,t,O){return uaE(document,arguments)};
uaE=function(N,t){var O=t[1],H=SWB(N,String(t[0]));O&&(typeof O==="string"?H.className=O:Array.isArray(O)?H.className=O.join(" "):jNr(H,O));t.length>2&&hoS(N,H,t,2);return H};
hoS=function(N,t,O,H){function A(C){C&&t.appendChild(typeof C==="string"?N.createTextNode(C):C)}
for(;H<O.length;H++){var Z=O[H];if(!_.lQ(Z)||_.mG(Z)&&Z.nodeType>0)A(Z);else{a:{if(Z&&typeof Z.length=="number"){if(_.mG(Z)){var U=typeof Z.item=="function"||typeof Z.item=="string";break a}if(typeof Z==="function"){U=typeof Z.item=="function";break a}}U=!1}_.Z9(U?_.Il(Z):Z,A)}}};
_.Tu=function(N){return SWB(document,N)};
SWB=function(N,t){t=String(t);N.contentType==="application/xhtml+xml"&&(t=t.toLowerCase());return N.createElement(t)};
_.qO=function(){return document.createTextNode("\n")};
fA=function(N){if(N.nodeType!=1)return!1;switch(N.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
MuQ=function(N,t){hoS(_.Qs(N),N,arguments,1)};
_.nA=function(N){for(var t;t=N.firstChild;)N.removeChild(t)};
_.W1=function(N,t){t.parentNode&&t.parentNode.insertBefore(N,t)};
_.rI=function(N,t){t.parentNode&&t.parentNode.insertBefore(N,t.nextSibling)};
_.wb=function(N){return N&&N.parentNode?N.parentNode.removeChild(N):null};
_.bmB=function(N,t){var O=t.parentNode;O&&O.replaceChild(N,t)};
_.pWa=function(N){var t,O=N.parentNode;if(O&&O.nodeType!=11)if(N.removeNode)N.removeNode(!1);else{for(;t=N.firstChild;)O.insertBefore(t,N);_.wb(N)}};
_.I5=function(N){return N.children!=void 0?N.children:Array.prototype.filter.call(N.childNodes,function(t){return t.nodeType==1})};
_.zoE=function(N){return N.nextElementSibling!==void 0?N.nextElementSibling:_.LqQ(N.nextSibling,!0)};
_.LqQ=function(N,t){for(;N&&N.nodeType!=1;)N=t?N.nextSibling:N.previousSibling;return N};
_.FW=function(N){return _.mG(N)&&N.nodeType==1};
_.oP=function(N,t){if(!N||!t)return!1;if(N.contains&&t.nodeType==1)return N==t||N.contains(t);if(typeof N.compareDocumentPosition!="undefined")return N==t||!!(N.compareDocumentPosition(t)&16);for(;t&&N!=t;)t=t.parentNode;return t==N};
Tcu=function(N,t){if(N==t)return 0;if(N.compareDocumentPosition)return N.compareDocumentPosition(t)&2?1:-1;if("sourceIndex"in N||N.parentNode&&"sourceIndex"in N.parentNode){var O=N.nodeType==1,H=t.nodeType==1;if(O&&H)return N.sourceIndex-t.sourceIndex;var A=N.parentNode,Z=t.parentNode;return A==Z?YWQ(N,t):!O&&_.oP(A,t)?-1*aCr(N,t):!H&&_.oP(Z,N)?aCr(t,N):(O?N.sourceIndex:A.sourceIndex)-(H?t.sourceIndex:Z.sourceIndex)}H=_.Qs(N);O=H.createRange();O.selectNode(N);O.collapse(!0);N=H.createRange();N.selectNode(t);
N.collapse(!0);return O.compareBoundaryPoints(_.H4.Range.START_TO_END,N)};
aCr=function(N,t){var O=N.parentNode;if(O==t)return-1;for(;t.parentNode!=O;)t=t.parentNode;return YWQ(t,N)};
YWQ=function(N,t){for(;t=t.previousSibling;)if(t==N)return-1;return 1};
wWr=function(N){var t,O=arguments.length;if(!O)return null;if(O==1)return arguments[0];var H=[],A=Infinity;for(t=0;t<O;t++){for(var Z=[],U=arguments[t];U;)Z.unshift(U),U=U.parentNode;H.push(Z);A=Math.min(A,Z.length)}Z=null;for(t=0;t<A;t++){U=H[0][t];for(var C=1;C<O;C++)if(U!=H[C][t])return Z;Z=U}return Z};
_.Qs=function(N){return N.nodeType==9?N:N.ownerDocument||N.document};
eoY=function(N){return N.contentDocument||N.contentWindow.document};
_.lt=function(N,t){if("textContent"in N)N.textContent=t;else if(N.nodeType==3)N.data=String(t);else if(N.firstChild&&N.firstChild.nodeType==3){for(;N.lastChild!=N.firstChild;)N.removeChild(N.lastChild);N.firstChild.data=String(t)}else _.nA(N),N.appendChild(_.Qs(N).createTextNode(String(t)))};
Pw_={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};XWr={IMG:" ",BR:"\n"};CbN=function(N){var t;N.tagName=="A"&&N.hasAttribute("href")||N.tagName=="INPUT"||N.tagName=="TEXTAREA"||N.tagName=="SELECT"||N.tagName=="BUTTON"?t=!N.disabled&&(!N.hasAttribute("tabindex")||xwX(N)):t=N.hasAttribute("tabindex")&&xwX(N);return t};
xwX=function(N){N=N.tabIndex;return typeof N==="number"&&N>=0&&N<32768};
qWE=function(N){var t=[];kip(N,t,!0);N=t.join("");N=N.replace(/ \xAD /g," ").replace(/\xAD/g,"");N=N.replace(/\u200B/g,"");N=N.replace(/ +/g," ");N!=" "&&(N=N.replace(/^\s*/,""));return N};
fCp=function(N){var t=[];kip(N,t,!1);return t.join("")};
kip=function(N,t,O){if(!(N.nodeName in Pw_))if(N.nodeType==3)O?t.push(String(N.nodeValue).replace(/(\r\n|\r|\n)/g,"")):t.push(N.nodeValue);else if(N.nodeName in XWr)t.push(XWr[N.nodeName]);else for(N=N.firstChild;N;)kip(N,t,O),N=N.nextSibling};
_.nmB=function(N,t,O){if(!t&&!O)return null;var H=t?String(t).toUpperCase():null;return _.EW(N,function(A){return(!H||A.nodeName==H)&&(!O||typeof A.className==="string"&&_.W4(A.className.split(/\s+/),O))},!0)};
_.EW=function(N,t,O){N&&!O&&(N=N.parentNode);for(O=0;N;){if(t(N))return N;N=N.parentNode;O++}return null};
P1=function(N){this.JSC$9481_document_=N||_.H4.document||document};
_.V=P1.prototype;_.V.getElement=function(N){return _.t5(this.JSC$9481_document_,N)};
_.V.$=P1.prototype.getElement;_.V.getElementsByTagName=function(N,t){return(t||this.JSC$9481_document_).getElementsByTagName(String(N))};
_.V.getElementsByTagNameAndClass=function(N,t,O){return XJ(this.JSC$9481_document_,N,t,O)};
_.V.$$=P1.prototype.getElementsByTagNameAndClass;_.V.setProperties=jNr;_.V.JSC$9483_createDom=function(N,t,O){return uaE(this.JSC$9481_document_,arguments)};
_.V.createElement=function(N){return SWB(this.JSC$9481_document_,N)};
_.V.createTextNode=function(N){return this.JSC$9481_document_.createTextNode(String(N))};
_.V.getWindow=function(){return this.JSC$9481_document_.defaultView};
var wc=function(N){return _.imf(N.JSC$9481_document_)};
_.V=P1.prototype;_.V.appendChild=function(N,t){N.appendChild(t)};
_.V.append=MuQ;_.V.canHaveChildren=fA;_.V.removeNode=_.wb;_.V.getChildren=_.I5;_.V.contains=_.oP;_.V.isFocusable=CbN;_.V=uw.prototype;_.V.getWidth=function(){return this.right-this.left};
_.V.getHeight=function(){return this.bottom-this.top};
_.V.clone=function(){return new uw(this.top,this.right,this.bottom,this.left)};
_.V.contains=function(N){return this&&N?N instanceof uw?N.left>=this.left&&N.right<=this.right&&N.top>=this.top&&N.bottom<=this.bottom:N.x>=this.left&&N.x<=this.right&&N.y>=this.top&&N.y<=this.bottom:!1};
_.V.expand=function(N,t,O,H){_.mG(N)?(this.top-=N.top,this.right+=N.right,this.bottom+=N.bottom,this.left-=N.left):(this.top-=N,this.right+=Number(t),this.bottom+=Number(O),this.left-=Number(H));return this};
_.V.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.V.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.V.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.V.translate=function(N,t){N instanceof _.IN?(this.left+=N.x,this.right+=N.x,this.top+=N.y,this.bottom+=N.y):(this.left+=N,this.right+=N,typeof t==="number"&&(this.top+=t,this.bottom+=t));return this};
_.V.scale=function(N,t){t=typeof t==="number"?t:N;this.left*=N;this.right*=N;this.top*=t;this.bottom*=t;return this};var QA=function(N,t,O,H){this.left=N;this.top=t;this.width=O;this.height=H};
_.V=QA.prototype;_.V.clone=function(){return new QA(this.left,this.top,this.width,this.height)};
_.V.boundingRect=function(N){var t=Math.max(this.left+this.width,N.left+N.width),O=Math.max(this.top+this.height,N.top+N.height);this.left=Math.min(this.left,N.left);this.top=Math.min(this.top,N.top);this.width=t-this.left;this.height=O-this.top};
_.V.contains=function(N){return N instanceof _.IN?N.x>=this.left&&N.x<=this.left+this.width&&N.y>=this.top&&N.y<=this.top+this.height:this.left<=N.left&&this.left+this.width>=N.left+N.width&&this.top<=N.top&&this.top+this.height>=N.top+N.height};
_.V.distance=function(N){var t=N.x<this.left?this.left-N.x:Math.max(N.x-(this.left+this.width),0);N=N.y<this.top?this.top-N.y:Math.max(N.y-(this.top+this.height),0);return Math.sqrt(t*t+N*N)};
_.V.getSize=function(){return new _.aN(this.width,this.height)};
_.V.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.V.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.V.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.V.translate=function(N,t){N instanceof _.IN?(this.left+=N.x,this.top+=N.y):(this.left+=N,typeof t==="number"&&(this.top+=t));return this};
_.V.scale=function(N,t){t=typeof t==="number"?t:N;this.left*=N;this.width*=N;this.top*=t;this.height*=t;return this};var rD0,Gj,MGG,Ew,mwf,QNQ,Em_,yCO,Gia,vmu;_.ms=function(N,t,O){if(typeof t==="string")(t=_.Wq_(N,t))&&(N.style[t]=O);else for(var H in t){O=N;var A=t[H],Z=_.Wq_(O,H);Z&&(O.style[Z]=A)}};
rD0={};_.Wq_=function(N,t){var O=rD0[t];if(!O){var H=_.Kv(t);O=H;N.style[H]===void 0&&(H=(_.Ud?"Webkit":_.D7?"Moz":null)+gCu(H),N.style[H]!==void 0&&(O=H));rD0[t]=O}return O};
_.U9=function(N,t){var O=_.Qs(N);return O.defaultView&&O.defaultView.getComputedStyle&&(N=O.defaultView.getComputedStyle(N,null))?N[t]||N.getPropertyValue(t)||"":""};
_.JI=function(N,t){return _.U9(N,t)||(N.currentStyle?N.currentStyle[t]:null)||N.style&&N.style[t]};
_.ICB=function(N){return _.JI(N,"position")};
Gj=function(N,t,O){if(t instanceof _.IN){var H=t.x;t=t.y}else H=t,t=O;N.style.left=Ew(H,!1);N.style.top=Ew(t,!1)};
MGG=function(N){try{return N.getBoundingClientRect()}catch(t){return{left:0,top:0,right:0,bottom:0}}};
_.mq=function(N){var t=_.Qs(N),O=new _.IN(0,0);if(N==(t?_.Qs(t):document).documentElement)return O;N=MGG(N);t=wc(eu(t));O.x=N.left+t.x;O.y=N.top+t.y;return O};
_.lCE=function(N,t,O){if(t instanceof _.aN)O=t.height,t=t.width;else if(O==void 0)throw Error("oa");N.style.width=Ew(t,!0);N.style.height=Ew(O,!0)};
Ew=function(N,t){typeof N=="number"&&(N=(t?Math.round(N):N)+"px");return N};
mwf=function(N){return QNQ(N)};
QNQ=function(N){var t=Em_;if(_.JI(N,"display")!="none")return t(N);var O=N.style,H=O.display,A=O.visibility,Z=O.position;O.visibility="hidden";O.position="absolute";O.display="inline";N=t(N);O.display=H;O.position=Z;O.visibility=A;return N};
Em_=function(N){var t=N.offsetWidth,O=N.offsetHeight,H=_.Ud&&!t&&!O;return(t===void 0||H)&&N.getBoundingClientRect?(N=MGG(N),new _.aN(N.right-N.left,N.bottom-N.top)):new _.aN(t,O)};
yCO=function(N){var t=_.mq(N);N=QNQ(N);return new QA(t.x,t.y,N.width,N.height)};
Gia=function(N,t){N=N.style;"opacity"in N?N.opacity=t:"MozOpacity"in N?N.MozOpacity=t:"filter"in N&&(N.filter=t===""?"":"alpha(opacity="+Number(t)*100+")")};
_.AJ=function(N,t){N.style.display=t?"":"none"};
_.RoZ=function(N){return"rtl"==_.JI(N,"direction")};
vmu=function(N){var t=_.U9(N,"marginLeft"),O=_.U9(N,"marginRight"),H=_.U9(N,"marginTop");N=_.U9(N,"marginBottom");return new uw(parseFloat(H),parseFloat(O),parseFloat(N),parseFloat(t))};
_.JDE=function(N){var t=_.U9(N,"borderLeftWidth"),O=_.U9(N,"borderRightWidth"),H=_.U9(N,"borderTopWidth");N=_.U9(N,"borderBottomWidth");return new uw(parseFloat(H),parseFloat(O),parseFloat(N),parseFloat(t))};var R5=function(N){this.context=N};
R5.prototype.isSupported=function(N){return(N==null?0:N.attributionEnabled)||(N==null?void 0:N.beaconMethod)==="POST"||(N==null?0:N.customHeaders)||(N==null?0:N.customBody)||(N==null?0:N.keepAlive)?!1:!LA(this.context)};
R5.prototype.ping=function(){var N=this;return P6(_.E1.apply(0,arguments).map(function(t){try{var O=N.context.global,H=!1;H=H===void 0?!1:H;O.google_image_requests||(O.google_image_requests=[]);var A=Kqf("IMG",O.document);H&&(A.attributionSrc="");A.src=t;O.google_image_requests.push(A);return!0}catch(Z){return!1}}).every(function(t){return t}))};
R5.prototype.pingWithHeadersAndBody=function(N,t,O){this.ping.apply(this,_.W6(_.E1.apply(3,arguments)))};var oma=function(N){this.context=N};
oma.prototype.isSupported=function(N){return sN0&&!LA(this.context)&&sN4(this.context)!==void 0&&!(N==null?0:N.attributionEnabled)&&(N==null?void 0:N.beaconMethod)!=="POST"&&!(N==null?0:N.customHeaders)&&!(N==null?0:N.customBody)};
oma.prototype.makeBeacon=function(N,t){if(!this.isSupported(t))throw new hC;return new v1(this.context,N)};
var sN0=!1,v1=function(N,t){this.context=N;this.JSC$9502_urlWithoutToken=t;N=sN4(this.context);if(N===void 0)throw Error();this.wrappedBeacon=new N(NbS(this),{})},NbS=function(N){N=N.JSC$9502_urlWithoutToken;
return(N.slice(-1)[0]==="&"?N:N+"&")+"pbapi=1"};
v1.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
v1.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
v1.prototype.setHeader=function(){};
_.cv.Object.defineProperties(v1.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9502_urlWithoutToken},
set:function(N){this.JSC$9502_urlWithoutToken=N;this.wrappedBeacon.setURL(NbS(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(N){if(N!=="GET")throw new hC;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var tRS=function(N){this.context=N};
tRS.prototype.isSupported=function(N){if((N==null?0:N.attributionEnabled)||(N==null?void 0:N.beaconMethod)==="GET"||(N==null?0:N.customHeaders)||(N==null?0:N.customBody)||(N==null?0:N.keepAlive))return!1;var t;return!LA(this.context)&&((t=this.context.global.navigator)==null?void 0:t.sendBeacon)!==void 0};
tRS.prototype.ping=function(){var N=this;return P6(_.E1.apply(0,arguments).map(function(t){var O;return(O=N.context.global.navigator)==null?void 0:O.sendBeacon(t)}).every(function(t){return t}))};
tRS.prototype.pingWithHeadersAndBody=function(N,t,O){this.ping.apply(this,_.W6(_.E1.apply(3,arguments)))};var Lm=function(N){this.value=N},Dl=function(N,t){return P6(N.value).pipe(bw(t))},C1=new Lm(!1),xCQ=new Lm(!0);var Gi=function(N){this.value=N;this.releasedSubject=new hD};
Gi.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.cv.Object.defineProperties(Gi.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9515_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var dnG=["FRAME","IMG","IFRAME"],VRv=/^[01](px)?$/,F7z=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},K7z=function(){var N=new F7z;
N.crossDomainLoadedDefault=!0;N.pendingImagesBlockLoad=!0;return N};var O1u=function(N,t){var O=i1g(N);if(O)if(O.onCreativeLoad)O.onCreativeLoad(t);else{var H=t?[t]:[],A=function(Z){for(var U=0;U<H.length;++U)try{H[U](1,Z)}catch(C){}H={push:function(C){C(1,Z)}}};
O.onCreativeLoad=function(Z){H.push(Z)};
O.setAttribute("data-creative-load-listener","");O.addEventListener("creativeLoad",function(Z){A(Z.detail)});
_.H4.addEventListener("message",function(Z){jPl(O,A,Z)})}};var JC=function(N,t){var O=this;this.global=N;this.parentContext=t;this.JSC$9526_onVisibilityChange=this.document?Rx(P6(!0),mn(this.document,"visibilitychange")).pipe(sG(this.parentContext.performanceMonitor,748),fU(function(){return O.getVisibilityState()}),AD()):P6("visible");
this.document?mn(this.document,"DOMContentLoaded").pipe(sG(this.parentContext.performanceMonitor,739),HW(1)):P6(AI9("DOMContentLoaded"))},XZQ=function(N){return N.document!==null&&N.document.visibilityState!==void 0};
JC.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
JC.prototype.querySelector=function(N){return this.document?this.document.querySelector(N):null};
JC.prototype.querySelectorAll=function(N){return this.document?_.Il(this.document.querySelectorAll(N)):[]};
JC.prototype.elementFromPoint=function(N,t){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;N=this.document.elementFromPoint(N,t);return N===null?null:new Gi(N)};
var MTQ=function(N,t,O){O=O===void 0?!1:O;if(t.ref===void 0||!N.document)return P6(t).pipe(sG(N.parentContext.performanceMonitor,749));var H=new UW(1),A=function(){H.next(t)};
O||O1u(t.ref,A);g1p(t.ref,A);return H.pipe(sG(N.parentContext.performanceMonitor,749),HW(1))};
_.cv.Object.defineProperties(JC.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return xwx(this.global,"document")?this.global.document||null:null}}});var u$t=_.mp(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),S$O=_.mp(["./reach_worklet.js"]),hzv=_.mp(["./reach_worklet.js"]),H1Q=_.mp(["./reach_worklet.html"]),AIa=_.mp(["./reach_worklet.js"]),Z1r=_.mp(["./reach_worklet.js"]);_.ju(H1Q);_.ju(AIa);_.ju(Z1r);var tI={left:0,top:0,width:0,height:0};var VRr,Dna,UnB,Cup,dE,F7y,dnZ,g1Y,IWp,lWN,cIr,$nS;VRr=function(N,t,O,H,A,Z,U){var C="";N&&(C+=N+":");O&&(C+="//",t&&(C+=t+"@"),C+=O,H&&(C+=":"+H));A&&(C+=A);Z&&(C+="?"+Z);U&&(C+="#"+U);return C};
Dna=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.KF=function(N){return N.match(Dna)};
_.LS=function(N,t){return N?t?decodeURI(N):decodeURIComponent(N):N};
UnB=function(N){N=_.KF(N)[1]||null;!N&&_.H4.self&&_.H4.self.location&&(N=_.H4.self.location.protocol.slice(0,-1));return N?N.toLowerCase():""};
_.Fe=function(N){return _.LS(_.KF(N)[3]||null,!0)};
_.Yv=function(N){return _.LS(_.KF(N)[5]||null,!0)};
_.Kkg=function(N){var t=N.indexOf("#");return t<0?null:N.slice(t+1)};
Cup=function(N){N=_.KF(N);return VRr(N[1],N[2],N[3],N[4])};
_.K7y=function(N){N=_.KF(N);return VRr(N[1],null,N[3],N[4])};
_.kL=function(N){N=_.KF(N);return VRr(null,null,null,null,N[5],N[6],N[7])};
_.Qm=function(N){var t=N.indexOf("#");return t<0?N:N.slice(0,t)};
dE=function(N,t){N=_.KF(N);t=_.KF(t);return N[3]==t[3]&&N[1]==t[1]&&N[4]==t[4]};
F7y=function(N,t){if(N){N=N.split("&");for(var O=0;O<N.length;O++){var H=N[O].indexOf("="),A=null;if(H>=0){var Z=N[O].substring(0,H);A=N[O].substring(H+1)}else Z=N[O];t(Z,A?yl(A):"")}}};
dnZ=function(N){var t=N.indexOf("#");t<0&&(t=N.length);var O=N.indexOf("?");if(O<0||O>t){O=t;var H=""}else H=N.substring(O+1,t);return[N.slice(0,O),H,N.slice(t)]};
g1Y=function(N,t){return t?N?N+"&"+t:t:N};
_.yIf=function(N,t){if(!t)return N;N=dnZ(N);N[1]=g1Y(N[1],t);return N[0]+(N[1]?"?"+N[1]:"")+N[2]};
_.BbB=function(N,t,O){if(Array.isArray(t))for(var H=0;H<t.length;H++)_.BbB(N,String(t[H]),O);else t!=null&&O.push(N+(t===""?"":"="+_.Ae(t)))};
_.Tp=function(N){var t=[],O;for(O in N)_.BbB(O,N[O],t);return t.join("&")};
_.CF=function(N,t){t=_.Tp(t);return _.yIf(N,t)};
_.o5=function(N,t,O){O=O!=null?"="+_.Ae(O):"";return _.yIf(N,t+O)};
IWp=function(N,t,O,H){for(var A=O.length;(t=N.indexOf(O,t))>=0&&t<H;){var Z=N.charCodeAt(t-1);if(Z==38||Z==63)if(Z=N.charCodeAt(t+A),!Z||Z==61||Z==38||Z==35)return t;t+=A+1}return-1};
lWN=/#|$/;_.s$=function(N,t){var O=N.search(lWN),H=IWp(N,0,t,O);if(H<0)return null;var A=N.indexOf("&",H);if(A<0||A>O)A=O;H+=t.length+1;return yl(N.slice(H,A!==-1?A:0))};
cIr=/[?&]($|#)/;_.El=function(N,t){for(var O=N.search(lWN),H=0,A,Z=[];(A=IWp(N,H,t,O))>=0;)Z.push(N.substring(H,A)),H=Math.min(N.indexOf("&",A)+1||O,O);Z.push(N.slice(H));return Z.join("").replace(cIr,"$1")};
_.ty=function(N,t,O){return _.o5(_.El(N,t),t,O)};
$nS=function(N){var t=dnZ(window.location.href),O=t[1],H=[];O&&O.split("&").forEach(function(A){var Z=A.indexOf("=");Z=Z>=0?A.slice(0,Z):A;N.hasOwnProperty(Z)||H.push(A)});
t[1]=g1Y(H.join("&"),_.Tp(N));return t[0]+(t[1]?"?"+t[1]:"")+t[2]};var Ilv=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Ilv,_.C8);var rIp=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(rIp,_.C8);var xnv=function(N,t){return _.Xa(N,2,t)},W7y=function(N,t){return _.Xa(N,3,t)};
rIp.prototype.getModel=function(){return _.YD(this,4)};
var q$x=function(N,t){return _.Xa(N,4,t)},XA9=function(N,t){return _.Xa(N,5,t)},n14=function(N,t){return _.Xa(N,9,t)},Pul=function(N,t){return hw(N,10,t)},ezS=function(N,t){return _.SR(N,11,t)},kuQ=function(N,t){return _.Xa(N,1,t)},flv=function(N,t){return _.SR(N,7,t)};var Tbz="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var U$=function(N,t,O,H){N=N===void 0?window:N;t=t===void 0?null:t;O=O===void 0?new P9E:O;H=H===void 0?MRN():H;YGX.call(this);var A=this;this.global=N;this.debugChannel=t;this.performanceMonitor=O;this.onPageHide=ZmO(function(){return mn(A.global,"pagehide")}).pipe(sG(this.performanceMonitor,941));
this.onLoad=ZmO(function(){return mn(A.global,"load")}).pipe(sG(this.performanceMonitor,738),HW(1));
this.onResize=ZmO(function(){return mn(A.global,"resize")}).pipe(sG(this.performanceMonitor,741));
this.onMessage=ZmO(function(){return mn(A.global,"message")}).pipe(sG(this.performanceMonitor,740));
this.document=new JC(this.global,this);this.timeProvider=new X6a(new kyE(this.intrinsicFunctionNamespace,this.performanceMonitor),new xoZ(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new w6R(new fxB(this),new oma(this),new MO(this,new rYf(this)),new MO(this,new tRS(this)),new MO(this,new R5(this)))};
_.p(U$,YGX);U$.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(N){return N}};
var LA=function(N){var t=N.global;return!!N.global.HTMLFencedFrameElement&&!!t.fence&&typeof t.fence.reportEvent==="function"};
_.V=U$.prototype;_.V.reportFencedFrameEvent=function(N){LA(this)&&this.global.fence.reportEvent(N)};
_.V.getOnBackgrounded=function(){return this.onPageHide.pipe(sG(this.performanceMonitor,942),bw(this.queue),fU(function(){}))};
_.V.postMessage=function(N,t,O){O=O===void 0?[]:O;this.global.postMessage(N,t,O)};
_.V.getWidth=function(){return kiS(this.global)?this.global.width:0};
_.V.getHeight=function(){return kiS(this.global)?this.global.height:0};
_.V.isMobile=function(){return Qxa()||moQ()};
var RN=function(N,t){try{var O=zzg(t,N.global,N.isMobile());return{left:O.left,top:O.top,width:O.getWidth(),height:O.getHeight()}}catch(H){return tI}};
U$.prototype.validate=function(){var N=this.beaconFactory.isSupported()||LA(this);return this.global&&this.timeProvider.available()&&N};
var tRM=function(N){return(N=QPG(N.global))?hY(N):null};
_.cv.Object.defineProperties(U$.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(N){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(N){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!kiS(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}}});_.jPQ=!_.V_&&!_.jlN();var kmv=function(N){return N};var ft4=function(N){return N.pipe(v6(function(t){var O=t.endOfSessionReason;var H;return((H=t.viewable)==null?void 0:H.extrapolateToNow().value)||O!=void 0}),HW(1),tD())};var o1v=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},sPx=function(N){var t=N.sequenceNumber.toString(10).padStart(2,"0");
t=""+N.startTime+t;N.sequenceNumber<99&&N.sequenceNumber++;return t};var Pfx=jV(ys(function(N){return N.endOfSessionReason===void 0}),fU(function(N){return Object.assign({},N,{timestamps:km(N)})}),v6(function(N){var t=N.viewable;
N=N.timestamps;var O;return(O=t==null?void 0:t.extrapolateUsingTimestampMap(N).value)!=null?O:!1}),fU(function(N){var t=N.beaconFactory;
var O=N.timestampedExposureHistory;var H=N.timeOnScreen;var A=N.binaryContext;N=N.timestamps;if(t===void 0||O===void 0||H===void 0||A===void 0)return!1;if(H.extrapolateUsingTimestampMap(N).value.every(function(Z){return Z>=0}))return!0;
O=O.map(function(Z){return Z.timestamp+":"+Z.value}).join(",");
H=Npv({bin:A,tos:H},N);t.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+H+("&eh="+O)).sendNow();return!0}),ys(function(N){return!N}),tD());var Otz=function(N){return{id:N.pingId,mcvt:N.maxConsecutiveViewTime,p:N.creativePosition,asp:N.adSpeedPosition,tm:N.totalMeasurementTime,tu:N.totalUnviewedTime,mtos:N.maxTimeOnScreen,tos:N.timeOnScreen,v:N.binaryVersion,bin:N.binaryContext,avms:N.measurementStrategy,bs:N.browserSize,mc:N.maximumExposure,"if":N.crossDomainIframeState,vu:N.delayedImpressionJsState,app:N.inApp,mse:N.mraidError,mtop:N.mraidSituation,itpl:N.injectedTemplateId,adk:N.adKey,exk:N.awbidKey,rs:N.requestSource,la:N.isLargeAd,
cr:N.isContentRecommendationAd,uach:N.userAgentClientHints,vs:N.viewState,r:N.reasonCode,pay:N.hasCpmavUrl,co:N.clientPingOrderCounter,rst:N.adRenderStartTime,rpt:N.adRenderPeriodTime,isd:N.initialScrollDepth,lsd:N.loadedScrollDepth,context:N.errorContext,msg:N.errorMessage,stack:N.errorStack,name:N.errorName,ec:N.hasElementChanged,sfr:N.strategyFailureReasons,met:N.creativeSearchResult,wmsd:N.webMeasurementStartDiagnostic,pv:N.pageVisible,epv:N.eosPageVisible,pbe:N.inStatefulBeaconExperiment,fle:N.inFetchLaterBeaconExperiment,
vae:N.inViewableAttributionExperiment,spb:N.supportsPendingBeacon,sfl:N.supportsFetchLater,ffslot:N.isFencedFrameSlotTurtlex,reach:N.sharedStorageReachMode,io2:N.v2VisibilityBitVector,rxdbg:N.rxDebugger,omida:N.omidAppId,omidp:N.omidPartner,omidpv:N.omidPartnerVersion,omidor:N.omidOcclusionReasons,omidv:N.omidVersion,omids:N.omidSessionType,omidam:N.omidAccessMode,omidct:N.omidCreativeType,omidia:N.omidInApp,omiddc:N.omidDeviceCategory,omidlat:N.omidLastActivity,omiddit:N.omidDeviceIdleTime,qid:N.errorEscapedQueryId}};var q2l=function(N){var t=[];return N.pipe(fU(function(O){var H=O.beaconFactory,A=O.fetchBeaconFactory,Z=O.timeOnScreen,U=O.timeOnScreenUrlPrefixes,C=O.payloadMapper,F=O.timeOnScreenPingId,g=O.timeOnScreenReason,B=O.urlSerializer,c=O.viewable,u=O.hasImpressionFired,S=O.inStatefulBeaconExperiment,b=O.supportsPendingBeacon,z=O.supportsFetchLater,w=O.turtlexReportEventData;if(!O.geometryMeasurable||!u||O.maxTimeOnScreen===void 0||Z===void 0||U===void 0||C===void 0||F===void 0||B===void 0||H===void 0)return!1;
if(O.isTurtlex){if(g===void 0)return!1;U=O.reportFencedFrameEvent;if(!U)return!1;U({eventType:"active-view-time-on-screen",eventData:w!=null?w:"",destination:["buyer"]});return!0}if(!(S||z||g))return!1;w=km(O);var P;c=(P=c==null?void 0:c.extrapolateUsingTimestampMap(w).value)!=null?P:!1;P=B(Object.assign({},O,{pingId:F,viewState:c?4:3,reasonCode:g!=null?g:"u",payloadMapper:C,urlPrefixes:U}),w);if(S){for(;t.length>U.length;)O=void 0,(O=t.shift())==null||O.deactivate();P.forEach(function(l,I){I>=t.length?
t.push(H.makeBeacon(l)):t[I].url=l});
return b&&A&&g!==void 0?(P.forEach(function(l){A.makeBeacon(l).sendNow()}),!0):g!==void 0}if(b&&A&&g!==void 0)return P.forEach(function(l){A.makeBeacon(l).sendNow()}),!0;
if(z&&A){for(;t.length>U.length;)b=void 0,(b=t.shift())==null||b.deactivate();var x=B(Object.assign({},O,{pingId:F,viewState:c?4:3,reasonCode:g!=null?g:"u",payloadMapper:C,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),w)[0];P.forEach(function(l,I){I>=t.length?t.push(H.makeBeacon(x,{endOfSession:!0})):t[I].url=x});
return g!==void 0?(P.forEach(function(l){A.makeBeacon(l).sendNow()}),!0):g!==void 0}return g!==void 0?(P.forEach(function(l){H.makeBeacon(l).sendNow()}),!0):!1}),ys(function(O){return!O}),tD())};var nlp=jV(v6(function(N){return N.immediateUrlPrefixes!==void 0&&N.payloadMapper!==void 0&&N.urlSerializer!==void 0&&N.inferredPingId!==void 0&&N.beaconFactory!==void 0}),v6(function(N){return KPS(N)!==null}),UYO(function(N){return N.activeViewUnmeasurableEvent},function(N){return N.emit}),fU(function(N){if(N.isTurtlex){var t=N.reportFencedFrameEvent;
if(t){var O;t({eventType:"active-view-unmeasurable",eventData:(O=N.turtlexReportEventData)!=null?O:"",destination:["buyer"]})}}else{O=void 0;var H=KPS(N);if(H==="x"){var A,Z=(A=N.geometricMeasurementErrors)!=null?A:N.contextValidationErrors;Z&&(t=Z.stack,O=Z.message)}N.urlSerializer(Object.assign({},N,{urlPrefixes:N.immediateUrlPrefixes,payloadMapper:N.payloadMapper,pingId:N.inferredPingId,viewState:2,reasonCode:H,errorMessage:O,errorStack:t}),km(N)).forEach(function(U){N.beaconFactory.makeBeacon(U).sendNow()})}}),
HW(1),tD());var FP4=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var egp=jV(v6(function(N){return N.payloadMapper!==void 0&&N.immediateUrlPrefixes!==void 0&&N.urlSerializer!==void 0&&N.inferredPingId!==void 0&&N.beaconFactory!==void 0}),fU(function(N){return Object.assign({},N,{timestamps:km(N)})}),v6(function(N){var t=N.viewable;
var O=N.hasImpressionFired;N=N.timestamps;var H;return!!O&&((H=t==null?void 0:t.extrapolateUsingTimestampMap(N).value)!=null?H:!1)}),UYO(function(N){return N.activeViewViewableEvent},function(N){return N.emit}),fU(function(N){var t=N.beaconFactory,O=N.turtlexReportEventData;
if(N.isTurtlex){var H=N.reportFencedFrameEvent;if(!H)return!1;H({eventType:"active-view-viewable",eventData:O!=null?O:"",destination:["buyer"]});return!0}O=N.urlSerializer(Object.assign({},N,{urlPrefixes:N.immediateUrlPrefixes,payloadMapper:N.payloadMapper,pingId:N.inferredPingId,viewState:4,reasonCode:"v"}),N.timestamps);(H=N.cpmavUrls)&&H.length>0&&N.viewUrlSerializer&&N.viewUrlSerializer(H,N).forEach(function(A){t.makeBeacon(A).sendNow()});
(H=N.viewableRelayUrls)&&H.length>0&&N.viewUrlSerializer&&N.viewUrlSerializer(H,N).forEach(function(A){t.makeBeacon(A).sendNow()});
O.forEach(function(A){t.makeBeacon(A,{attributionEnabled:N.isViewableAttributionEnabled}).sendNow()});
return!0}),ys(function(N){return!N}),tD());var OLN=fU(function(N){return[N.value.topWindowViewportExternalGeometry.width,N.value.topWindowViewportExternalGeometry.height]});var sW=function(N,t){this.callback=N;this.options=t;this.intersectionObserverV2=this.intersectionObserverV1=null},qHp=function(N,t){t?N.intersectionObserverV2||(t=Object.assign({},N.options,{delay:100,
trackVisibility:!0}),N.intersectionObserverV2=new IntersectionObserver(N.callback,t)):N.intersectionObserverV1||(N.intersectionObserverV1=new IntersectionObserver(N.callback,N.options))},i1u=function(N,t){N=t?N.intersectionObserverV2:N.intersectionObserverV1;
if(!N)throw new axr;return N};
sW.prototype.observe=function(N,t){i1u(this,N).observe(t)};
sW.prototype.unobserve=function(N,t){i1u(this,N).unobserve(t)};
sW.prototype.disconnect=function(N){i1u(this,N).disconnect()};
sW.prototype.takeRecords=function(N){return i1u(this,N).takeRecords()};var poz={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:tI,topWindowViewportExternalGeometry:tI,measurementRequests:new hD,elementGeometrySourceName:"ns",elementGeometry:tI,intersectionGeometry:tI,viewportLocalAppOffset:{x:0,y:0}};var QaQ=O$(jV(fU(function(N){var t;return(t=N.exposureOverride)!=null?t:nMS(N)}),fU(function(N){return isFinite(N)?N:0}))),oMO=O$(jV(fU(function(N){var t;
return(t=N.exposureOverride)!=null?t:nMS(N)}),fU(function(N){return isFinite(N)?N:-1})));var sw=function(N,t){this.a=N;this.b=t;if(N.clock.timeline!==t.clock.timeline)throw Error();};
sw.prototype.equivalentTo=function(N){return N instanceof sw?this.a.equivalentTo(N.a)&&this.b.equivalentTo(N.b):!1};
sw.prototype.extrapolateToTime=function(N){var t=this.a.extrapolateToTime(N).value,O=this.b.extrapolateToTime(N).value;return{timestamp:N,value:[t,O]}};
_.cv.Object.defineProperties(sw.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var N=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),t=this.a.lastMeasurement.timestamp.equals(N)?this.a.lastMeasurement.value:this.a.extrapolateToTime(N).value,O=this.b.lastMeasurement.timestamp.equals(N)?this.b.lastMeasurement.value:this.b.extrapolateToTime(N).value;return{timestamp:N,value:[t,O]}}}});var Ns=function(N,t){this.input=N;this.mapFunction=t;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Ns.prototype.equivalentTo=function(N){return N instanceof Ns?this.input.equivalentTo(N.input)&&this.mapFunction===N.mapFunction:!1};
Ns.prototype.extrapolateToTime=function(N){N=this.input.extrapolateToTime(N);return{timestamp:N.timestamp,value:this.mapFunction(N.value)}};
_.cv.Object.defineProperties(Ns.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var t$=function(){};
t$.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
t$.prototype.extrapolateUsingTimestampMap=function(N){var t=this.clock.timeline,O,H=(O=N.get(t))!=null?O:this.clock.now();N.set(t,H);return this.extrapolateToTime(H)};
t$.prototype.map=function(N){return new u$f(this,N)};
t$.prototype.joinWith=function(N){return new S$B(this,N)};
var S$B=function(){sw.apply(this,arguments);this.map=t$.prototype.map;this.joinWith=t$.prototype.joinWith;this.extrapolateToNow=t$.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=t$.prototype.extrapolateUsingTimestampMap};
_.p(S$B,sw);var u$f=function(){Ns.apply(this,arguments);this.map=t$.prototype.map;this.joinWith=t$.prototype.joinWith;this.extrapolateToNow=t$.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=t$.prototype.extrapolateUsingTimestampMap};
_.p(u$f,Ns);var AI=function(N,t){this.lastMeasurement=t;this.extrapolateToNow=t$.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=t$.prototype.extrapolateUsingTimestampMap;this.map=t$.prototype.map;this.joinWith=t$.prototype.joinWith;this.clock=N};
AI.prototype.equivalentTo=function(N){return N.active};
AI.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.cv.Object.defineProperties(AI.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var tTS=fU(function(N){if(N.value.viewportGeometrySourceName==="omid"){if(N.value.elementGeometrySourceName==="nio")return"omio";if(N.value.elementGeometrySourceName==="geo")return"omgeo"}return N.value.elementGeometrySourceName==="geo"||N.value.elementGeometrySourceName==="nio"?N.value.viewportGeometrySourceName:N.value.elementGeometrySourceName});var rJM=jV(v6(function(N){return!isNaN(N)}),Km(function(N,t){return isNaN(N)?t:Math.min(N,t)},NaN),AD());var mYS=O$(jV(fU(function(N){return N.intersectionGeometry.width*N.intersectionGeometry.height/(N.exposedViewportLocalGeometry.width*N.exposedViewportLocalGeometry.height)}),fU(function(N){return isFinite(N)?Math.min(1,N):0})));var Nul=jV(O$(fU(function(N){N=N.exposureOverride?N.elementGeometry.width*N.elementGeometry.height*N.exposureOverride/(N.topWindowViewportExternalGeometry.width*N.topWindowViewportExternalGeometry.height):N.intersectionGeometry.width*N.intersectionGeometry.height/(N.topWindowViewportExternalGeometry.width*N.topWindowViewportExternalGeometry.height);return isFinite(N)?N:0})));var ZLt=function(N,t){var O=this;this.timeProvider=N;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=t.pipe(AD()).subscribe(function(H){DCO(O);O.measurementRequestObserver=H})},UCN=function(N,t){DCO(N);
N.lastMeasurementRequest=N.timeProvider.setTimeout(function(){var O;return void((O=N.measurementRequestObserver)==null?void 0:O.next())},t)},DCO=function(N){N.lastMeasurementRequest!==null&&N.timeProvider.clearTimeout(N.lastMeasurementRequest);
N.lastMeasurementRequest=null};
ZLt.prototype.dispose=function(){DCO(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var hzr=function(){};var atN=function(N,t){this.context=N;this.strategies=t};
_.p(atN,hzr);atN.prototype.buildGeometrySource=function(N,t){var O=this.strategies.map(function(Z){return Z.buildGeometrySource(N,t)}),H=glO(O.map(function(Z){return Z.geometrySource})),A=H.capturedErrors.pipe(MRR());
return{geometrySource:H.chain.pipe(bw(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:A,strategyErrors:H.capturedErrors}].concat(_.W6(O.map(function(Z){return Z.additionalOutputs}))))}};
var MRR=function(){return Km(function(N,t){t instanceof fm?N.push(t.measurementStrategyFailureReason):N.push(-1);return N},[])};var wZl=function(N,t){this.context=N;this.poller=t};
_.p(wZl,hzr);wZl.prototype.buildGeometrySource=function(N,t){var O=yO4(cOS(this.context,this.poller),LP4(this.context,t.requestSource));return{geometrySource:dCl(N.measurableCreative.pipe(O),t.inApp),additionalOutputs:{}}};var Tup=function(N,t,O){O=O===void 0?e3t(N,t):O;this.context=N;this.intersectionObserverStrategy=O};
_.p(Tup,hzr);Tup.prototype.buildGeometrySource=function(N,t){var O=this.intersectionObserverStrategy(t.useV2);return{geometrySource:dCl(N.measurableCreative.pipe(O,P$l(this.context)),t.inApp),additionalOutputs:{}}};var b1S=function(N,t,O){var H=H===void 0?Symbol():H;this.element=N;this.immediateUrls=t;this.timeOnScreenUrls=O;this.symbol=H};var AO9=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),S2M=Object.freeze([1,.75,AO9.exposureThreshold,AO9.largeAdExposureThreshold,0]);var wJQ=function(N,t){t=t===void 0?36E5:t;var O=O===void 0?!0:O;this.creatives=new hD;this.elementsToUnregister=new hD;this.elementMap=new Map;var H=new U$(window,null);H.beaconFactory=new MO(H,new R5(H));Y2G(H,this.creatives,this.elementsToUnregister,N,t,O).subscribe()},XJg=function(N,t,O,H){if(!N.elementMap.has(t)){var A=new Gi(t);
N.elementMap.set(t,A);N.creatives.next(new b1S(A,O,H))}},Phv=function(N,t){N.elementsToUnregister.next(t);
var O=N.elementMap.get(t);O!==void 0&&(O.release(),N.elementMap.delete(t))};var frl=function(N){var t=N.url;N=N.uaDataValues;this.JSC$9631_url_=t;this.uaDataValues_=N;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var O=/[?&]([^&=]+)=([^&]*)/g;N=O.exec(t);)this.urlParamValues_[N[1]]=N[2]},nq9=function(N){N=N.uaDataValues_;
if(!N)return"";var t=K1("uap",N.platform)+K1("uapv",N.platformVersion)+K1("uafv",N.uaFullVersion)+K1("uaa",N.architecture)+K1("uam",N.model)+K1("uab",N.bitness);N.fullVersionList&&(t+="&uafvl="+encodeURIComponent(N.fullVersionList.map(function(O){return encodeURIComponent(O.brand)+";"+encodeURIComponent(O.version)}).join("|")));
N.wow64!=null&&(t+="&uaw="+Number(N.wow64));return t.slice(1)};var pAR=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(pAR,_.C8);pAR.prototype.getId=function(){return _.YD(this,1)};var OP=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(OP,_.C8);OP.prototype.getSeconds=function(){return Ll(this,1)};
OP.prototype.setSeconds=function(N){return _.Nm(this,1,di(N),"0")};_.Tn=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(_.Tn,_.C8);_.Tn.prototype.getSeconds=function(){return Ll(this,1)};
_.Tn.prototype.setSeconds=function(N){return _.Nm(this,1,di(N),"0")};
_.L7u=function(N){var t=Number(Tl(N,1));N=_.$1(N,2);return new Date(t*1E3+N/1E6)};var HG=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(HG,_.C8);HG.prototype.getUrl=function(){return _.YD(this,1)};
HG.prototype.setUrl=function(N){return _.rv(this,1,N)};
HG.prototype.getHeight=function(){return _.$1(this,2)};
HG.prototype.getWidth=function(){return _.$1(this,3)};var A$=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(A$,_.C8);A$.prototype.getAspectRatio=function(){return zl(this,1)};
A$.prototype.getDuration=function(){return _.Sg(this,OP,2)};var zzu=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(zzu,_.C8);var Y$Q=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Y$Q,_.C8);var al_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(al_,_.C8);var Tby=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Tby,_.C8);var wAy=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(wAy,_.C8);var ezp=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ezp,_.C8);var PuQ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(PuQ,_.C8);var XAa=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(XAa,_.C8);var xnr=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(xnr,_.C8);var ZP=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ZP,_.C8);var Vh=[2,4,5,6,7];var ku_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ku_,_.C8);var Md=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Md,_.C8);_.V=Md.prototype;_.V.getId=function(){return _.Sg(this,pAR,1)};
_.V.getName=function(){return _.YD(this,2)};
_.V.setDescription=function(N){return _.rv(this,3,N)};
_.V.getUrl=function(){return _.YD(this,8)};
_.V.setUrl=function(N){return _.rv(this,8,N)};
var DP=function(N){return _.y5(N,HG,10,_.cA())};
Md.prototype.getOwner=function(N){return _.kSr(this,40,N)};
var UP=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(UP,_.C8);_.CV=[0,Ed,bnX];_.KV=[0,Ed,bnX];var q$X=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(q$X,_.C8);var Fm=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Fm,_.C8);Fm.prototype.getStatus=function(){return _.aG(this,1)};
Fm.prototype.removeItem=function(N){return P_u(this,2,N)};var flr=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(flr,_.C8);flr.prototype.getName=function(){return _.YD(this,8)};var d3=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(d3,_.C8);d3.prototype.getCommand=function(){return _.aG(this,1)};
d3.prototype.getSource=function(){return _.Sg(this,flr,2)};
d3.prototype.setVisible=function(N){return _.hH(this,5,N)};
d3.prototype.removeItem=function(N){return P_u(this,7,N)};var n10=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(n10,_.C8);n10.prototype.getCommand=function(){return _.aG(this,1)};
n10.prototype.removeItem=function(N){return P_u(this,4,N)};
var W7E=_.hR(n10);var g3=function(N,t,O){O=O===void 0?Error():O;var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=N;t+=":";O instanceof Error?(this.message=t+O.message,this.stack=O.stack||""):(this.message=t+String(O),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(g3,Error);_.k1=function(){this.JSC$9689_disposed_=this.JSC$9689_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.k1.prototype.JSC$9689_disposed_=!1;_.k1.prototype.isDisposed=function(){return this.JSC$9689_disposed_};
_.k1.prototype.dispose=function(){this.JSC$9689_disposed_||(this.JSC$9689_disposed_=!0,this.disposeInternal())};
_.k1.prototype[Symbol.dispose]=function(){this.dispose()};
_.L1=function(N,t){N.addOnDisposeCallback(_.Fu(_.F$,t))};
_.k1.prototype.addOnDisposeCallback=function(N,t){this.JSC$9689_disposed_?t!==void 0?N.call(t):N():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),t&&(N=N.bind(t)),this.onDisposeCallbacks_.push(N))};
_.k1.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var yh=function(N){_.k1.call(this);this.wpc=N};
_.p(yh,_.k1);yh.prototype.kQT=function(){return this.wpc.f()};
yh.prototype.wcx=function(N){return this.wpc.c(N)};
yh.prototype.jW=function(N){return this.wpc.m(Qo9(N))};
yh.prototype.wWC=function(N){return this.wpc.mws(Qo9(N))};
var gb=function(N){_.k1.call(this);var t=this;this.vm=N;this.hjL="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.c5W=void 0;this.rCc=this.vm.p;this.wVo=this.l7u.bind(this);this.addOnDisposeCallback(function(){return void rIY(t)})};
_.p(gb,_.k1);var Ilr=function(N){var t;return _.K(function(O){if(O.nextAddress==1){if(!N.vm.wpc)throw new g3(30,"NWA");return N.ysH?O.return(N.ysH):O.yield(N.vm.wpc(),2)}t=O.yieldResult;N.ysH=new yh(t);return O.return(N.ysH)})};
gb.prototype.snapshot=function(N){return this.vm.s(Object.assign({},N.iF&&{c:N.iF},N.x3N&&{s:N.x3N},N.xVK!==void 0&&{p:N.xVK}))};
gb.prototype.l7u=function(N){this.vm.e(N)};
gb.prototype.zeH=function(N,t){return this.vm.c(N,t,!1)};
var rIY=function(N){N.c5W!==void 0&&(N.hjL.forEach(function(t){var O;(O=N.c5W)==null||O.removeEventListener(t,N.wVo)}),N.c5W=void 0)};
gb.prototype.pUC=function(){return this.vm.l()};var BG=function(){_.k1.apply(this,arguments);this.lX9=1};
_.p(BG,_.k1);BG.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.lX9++;return this};
BG.prototype.dispose=function(){--this.lX9||_.k1.prototype.dispose.call(this)};var llf=function(N){this.zDo=N;N.addNewEventMetric("/client_streamz/bg/frs",_.uu("mk"))};
llf.prototype.record=function(N,t){this.zDo.record("/client_streamz/bg/frs",N,t)};
var QPZ=function(N){this.ip9=N;N.addNewEventMetric("/client_streamz/bg/wrl",_.uu("mn"),iu("ac"),iu("sc"),_.uu("rk"),_.uu("mk"))};
QPZ.prototype.record=function(N,t,O,H,A,Z){this.ip9.record("/client_streamz/bg/wrl",N,t,O,H,A,Z)};
var mnB=function(N){this.cSl=N;N.addNewCounter("/client_streamz/bg/ec",_.uu("en"),_.uu("mk"))};
mnB.prototype.increment=function(N,t){this.cSl.JSC$9942_incrementCounter("/client_streamz/bg/ec",N,t)};
var E1r=function(N){this.nCe=N;N.addNewEventMetric("/client_streamz/bg/el",_.uu("en"),_.uu("mk"))};
E1r.prototype.record=function(N,t,O){this.nCe.record("/client_streamz/bg/el",N,t,O)};
var Gu0=function(N){this.qPd=N;N.addNewCounter("/client_streamz/bg/cec",iu("ec"),_.uu("mk"))};
Gu0.prototype.increment=function(N,t){this.qPd.JSC$9942_incrementCounter("/client_streamz/bg/cec",N,t)};
var Rzp=function(N){this.k39=N;N.addNewCounter("/client_streamz/bg/po/csc",iu("cs"),_.uu("mk"))};
Rzp.prototype.increment=function(N,t){this.k39.JSC$9942_incrementCounter("/client_streamz/bg/po/csc",N,t)};
var v1Z=function(N){this.l0g=N;N.addNewCounter("/client_streamz/bg/po/ctav",_.uu("av"),_.uu("mk"))};
v1Z.prototype.increment=function(N,t){this.l0g.JSC$9942_incrementCounter("/client_streamz/bg/po/ctav",N,t)};
var JIS=function(N){this.sO9=N;N.addNewCounter("/client_streamz/bg/po/cwsc",_.uu("su"),_.uu("mk"))};
JIS.prototype.increment=function(N,t){this.sO9.JSC$9942_incrementCounter("/client_streamz/bg/po/cwsc",N,t)};var iFy=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(iFy,_.C8);var jDx=function(N,t){return _.sx(N,3,t,uBg)};var o1r=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(o1r,_.C8);var sPX=[1,2,3];var Npr=[0,sPX,_.NO,pmB,Yxf];var tGR=[0,_.tC,[0,IG,_.lC]];var Oty=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Oty,_.C8);var HtE=[1,2,3];var AJu=[0,HtE,h5r,$qE,_.Ow,tGR];var Zt0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Zt0,_.C8);var VGB=[0,_.tC,Npr,AJu];var DYf=[0,_.oG];var UYB=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(UYB,_.C8);var C$p=[0,_.oG,-1,_.vU];var KPp=[0,_.oG,-1,_.RG,_.vU];var FP0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(FP0,_.C8);var dYa=[1,2,3];var gM_=[0,dYa,_.Ow,C$p,_.Ow,KPp,_.Ow,DYf];var yJZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(yJZ,_.C8);yJZ.prototype.JSC$9762_serializeBinary=EwM([0,_.oG,gM_,azQ,_.tC,VGB,L5Z,_.z5X]);var BpR=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(BpR,_.C8);var jaY=function(N){var t=new yJZ;t=_.Xa(t,1,N.JSC$9878_metricName);var O=cJ0(N);t=_.sx(t,3,O,_.cm);O=[];for(var H=[],A=_.D(N.cellMap.keys()),Z=A.next();!Z.done;Z=A.next())H.push(Z.value.split(","));for(A=0;A<H.length;A++){Z=H[A];for(var U=N.cellType,C=N.getCells(Z)||[],F=[],g=0;g<C.length;g++){var B=C[g],c=B&&B.cellValue;B=new Oty;switch(U){case 3:c=Number(c);Number.isFinite(c)&&wa(B,1,HtE,di(c));break;case 2:wa(B,2,HtE,_.GS(Number(c)))}F.push(B)}U=F;for(C=0;C<U.length;C++){F=U[C];g=new Zt0;F=_.L8(g,
2,F);g=[];B=$Yr(N);for(c=0;c<B.length;c++){var u=B[c],S=Z[c],b=new o1r;switch(u){case 3:wa(b,1,sPX,i1(String(S)));break;case 2:u=Number(S);Number.isFinite(u)&&wa(b,2,sPX,_.Dz(u));break;case 1:wa(b,3,sPX,$yG(S==="true"))}g.push(b)}hw(F,1,g);O.push(F)}}hw(t,4,O);return t};var it_=function(N){if(!N)return"";if(/^about:(?:blank|srcdoc)$/.test(N))return window.origin||"";N.indexOf("blob:")===0&&(N=N.substring(5));N=N.split("#")[0].split("?")[0];N=N.toLowerCase();N.indexOf("//")==0&&(N=window.location.protocol+N);/^[\w\-]*:\/\//.test(N)||(N=window.location.href);var t=N.substring(N.indexOf("://")+3),O=t.indexOf("/");O!=-1&&(t=t.substring(0,O));O=N.substring(0,N.indexOf("://"));if(!O)throw Error("qa`"+N);if(O!=="http"&&O!=="https"&&O!=="chrome-extension"&&O!=="moz-extension"&&
O!=="file"&&O!=="android-app"&&O!=="chrome-search"&&O!=="chrome-untrusted"&&O!=="chrome"&&O!=="app"&&O!=="devtools")throw Error("ra`"+O);N="";var H=t.indexOf(":");if(H!=-1){var A=t.substring(H+1);t=t.substring(0,H);if(O==="http"&&A!=="80"||O==="https"&&A!=="443")N=":"+A}return O+"://"+t+N};var SHy=function(N,t,O){var H=String(_.H4.location.href);return H&&N&&t?[t,uSR(it_(H),N,O||null)].join(" "):null},uSR=function(N,t,O){var H=[],A=[];
if((Array.isArray(O)?2:1)==1)return A=[t,N],_.Z9(H,function(C){A.push(C)}),h3r(A.join(" "));
var Z=[],U=[];_.Z9(O,function(C){U.push(C.key);Z.push(C.value)});
O=Math.floor((new Date).getTime()/1E3);A=Z.length==0?[O,t,N]:[Z.join(":"),O,t,N];_.Z9(H,function(C){A.push(C)});
N=h3r(A.join(" "));N=[O,N];U.length==0||N.push(U.join(""));return N.join("_")},h3r=function(N){var t=soM();
t.update(N);return t.digestString().toLowerCase()};var cG=function(N){this.JSC$9773_document_=N||{cookie:""}},MGZ;
_.V=cG.prototype;_.V.isEnabled=function(){if(!_.H4.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.V.set=function(N,t,O){var H=!1;if(typeof O==="object"){var A=O.sameSite;H=O.secure||!1;var Z=O.domain||void 0;var U=O.path||void 0;var C=O.maxAge}if(/[;=\s]/.test(N))throw Error("sa`"+N);if(/[;\r\n]/.test(t))throw Error("ta`"+t);C===void 0&&(C=-1);O=Z?";domain="+Z:"";U=U?";path="+U:"";H=H?";secure":"";C=C<0?"":C==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+C*1E3)).toUTCString();this.JSC$9773_document_.cookie=N+"="+t+O+U+C+H+(A!=null?";samesite="+A:"")};
_.V.get=function(N,t){for(var O=N+"=",H=(this.JSC$9773_document_.cookie||"").split(";"),A=0,Z;A<H.length;A++){Z=gt(H[A]);if(Z.lastIndexOf(O,0)==0)return Z.slice(O.length);if(Z==N)return""}return t};
_.V.remove=function(N,t,O){var H=this.containsKey(N);this.set(N,"",{maxAge:0,path:t,domain:O});return H};
_.V.getKeys=function(){return MGZ(this).keys};
_.V.getValues=function(){return MGZ(this).values};
_.V.isEmpty=function(){return!this.JSC$9773_document_.cookie};
_.V.getCount=function(){return this.JSC$9773_document_.cookie?(this.JSC$9773_document_.cookie||"").split(";").length:0};
_.V.containsKey=function(N){return this.get(N)!==void 0};
_.V.containsValue=function(N){for(var t=MGZ(this).values,O=0;O<t.length;O++)if(t[O]==N)return!0;return!1};
_.V.clear=function(){for(var N=MGZ(this).keys,t=N.length-1;t>=0;t--)this.remove(N[t])};
MGZ=function(N){N=(N.JSC$9773_document_.cookie||"").split(";");for(var t=[],O=[],H,A,Z=0;Z<N.length;Z++)A=gt(N[Z]),H=A.indexOf("="),H==-1?(t.push(""),O.push(A)):(t.push(A.substring(0,H)),O.push(A.substring(H+1)));return{keys:t,values:O}};
_.PY=new cG(typeof document=="undefined"?null:document);var rVS,btZ;rVS=function(){var N=_.H4.__SAPISID||_.H4.__APISID||_.H4.__3PSAPISID||_.H4.__1PSAPISID||_.H4.__OVERRIDE_SID;if(N)return!0;typeof document!=="undefined"&&(N=new cG(document),N=N.get("SAPISID")||N.get("APISID")||N.get("__Secure-3PAPISID")||N.get("__Secure-1PAPISID"));return!!N};
btZ=function(N,t,O,H){(N=_.H4[N])||typeof document==="undefined"||(N=(new cG(document)).get(t));return N?SHy(N,O,H):null};
_.ynt=function(N){var t=it_(_.H4==null?void 0:_.H4.location.href),O=[];if(rVS()){t=t.indexOf("https:")==0||t.indexOf("chrome-extension:")==0||t.indexOf("chrome-untrusted://new-tab-page")==0||t.indexOf("moz-extension:")==0;var H=t?_.H4.__SAPISID:_.H4.__APISID;H||typeof document==="undefined"||(H=new cG(document),H=H.get(t?"SAPISID":"APISID")||H.get("__Secure-3PAPISID"));(H=H?SHy(H,t?"SAPISIDHASH":"APISIDHASH",N):null)&&O.push(H);t&&((t=btZ("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",N))&&O.push(t),
(N=btZ("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",N))&&O.push(N))}return O.length==0?null:O.join(" ")};var poy=function(){this.minSize=1024};
poy.prototype.compress=function(N){var t,O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:return t=new CompressionStream("gzip"),O=(new Response(t.readable)).arrayBuffer(),H=t.writable.getWriter(),Z.yield(H.write((new TextEncoder).encode(N)),2);case 2:return Z.yield(H.close(),3);case 3:return A=Uint8Array,Z.yield(O,4);case 4:return Z.return(new A(Z.yieldResult))}})};
poy.prototype.isSupported=function(N){return N<this.minSize?!1:typeof CompressionStream!=="undefined"};var LP0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(LP0,_.C8);var $F=function(N,t){this.intervalMs=N;this.callback=t;this.enabled=!1;this.nowFn=function(){return _.tw()};
this.lastTimeMs=this.nowFn()};
$F.prototype.setInterval=function(N){this.intervalMs=N;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
$F.prototype.start=function(){var N=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){N.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
$F.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
$F.prototype.tick=function(){var N=this;if(this.enabled){var t=Math.max(this.nowFn()-this.lastTimeMs,0);t<this.intervalMs*.8?this.timer=setTimeout(function(){N.tick()},this.intervalMs-t):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var z3R=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(z3R,_.C8);var YHy=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(YHy,_.C8);var ay0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ay0,_.C8);ay0.prototype.getTransmissionType=function(){return _.aG(this,1)};var HF4=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(HF4,_.C8);var jr=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(jr,_.C8);var OFl=function(N){hw(AeN,1,N)};
jr.prototype.getModel=function(){return _.YD(this,6)};
var TpS=_.hR(jr);var wof=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(wof,_.C8);var NEt=["platform","platformVersion","architecture","model","uaFullVersion"],AeN=new jr,to4=null;var iM=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(iM,_.C8);var e3f=function(N){return _.hr(N,1,1)};var P$Q=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N,4)};
_.p(P$Q,_.C8);_.uM=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N,36)};
_.p(_.uM,_.C8);_.uM.prototype.getExperimentIds=function(){return _.Sg(this,LP0,16)};var XoS=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N,19)};
_.p(XoS,_.C8);XoS.prototype.setLogSource=function(N){return _.hr(this,2,N)};
XoS.prototype.setScheduler=function(N){return _.hr(this,10,N)};var kgS=function(N,t){this.isServiceWorkerScope=t=t===void 0?!1:t;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new XoS;Number.isInteger(N)&&this.logRequest.setLogSource(N);t||(this.locale=document.documentElement.getAttribute("lang"));xYS(this,new iM)};
kgS.prototype.setLogSource=function(N){this.logRequest.setLogSource(N);return this};
var xYS=function(N,t){_.L8(N.logRequest,1,t);_.aG(t,1)||e3f(t);N.isServiceWorkerScope||(t=Sr(N),_.YD(t,5)||_.Xa(t,5,N.locale));N.uach&&(t=Sr(N),_.Sg(t,jr,9)||_.L8(t,9,N.uach))},qHY=function(N,t){N.transmissionType=t},fyE=function(N){var t=t===void 0?NEt:t;
var O=N.isServiceWorkerScope?void 0:lw();O?ZFN(O,t).then(function(H){N.uach=TpS(H!=null?H:"[]");H=Sr(N);_.L8(H,9,N.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Sr=function(N){var t=_.Sg(N.logRequest,iM,1);
t||(t=new iM,xYS(N,t));N=t;t=_.Sg(N,wof,11);t||(t=new wof,_.L8(N,11,t));return t};
kgS.prototype.build=function(N,t,O,H,A,Z){t=t===void 0?0:t;O=O===void 0?0:O;H=H===void 0?null:H;A=A===void 0?0:A;Z=Z===void 0?0:Z;if(!this.isServiceWorkerScope){var U=Sr(this);var C=new ay0;C=_.hr(C,1,this.transmissionType);C=_.SR(C,2,this.isFinal);O=_.PU(C,3,O>0?O:void 0);O=_.PU(O,4,A>0?A:void 0);O=_.PU(O,5,Z>0?Z:void 0);A=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Z=A[_.ZY]|0;O=b_(O,Z)?O:Yxt(O,A,Z)?z5x(O,A):new O.constructor(fn(A,Z,!0));_.L8(U,10,O)}U=this.logRequest.clone();O=Date.now().toString();
U=_.MV(U,4,di(O));N=N.slice();N=hw(U,3,N);H&&(U=new z3R,H=_.PU(U,13,H),U=new YHy,H=_.L8(U,2,H),U=new P$Q,H=_.L8(U,1,H),H=_.hr(H,2,9),_.L8(N,18,H));t&&_.fb(N,14,t);return N};hI.prototype.currBackoffCount_=0;hI.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
hI.prototype.getValue=function(){return this.currValue_};
var nMp=function(N){N.currBaseValue_=Math.min(N.maxValue_,N.currBaseValue_*N.backoffFactor_);N.currValue_=Math.min(N.maxValue_,N.currBaseValue_+(N.randomFactor_?Math.round(N.randomFactor_*(Math.random()-.5)*2*N.currBaseValue_):0));N.currBackoffCount_++};var XmR=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N,8)};
_.p(XmR,_.C8);var WPQ=_.hR(XmR);var xqu=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(xqu,_.C8);var h$;h$=new k50;var Ms=function(N){_.k1.call(this);var t=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9851_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$9851_sendBeaconApiEnabled=!1;this.logSource=N.logSource;this.getAuthHeaderValue=
N.getAuthHeaderValue||function(){};
this.logRequestBuilder=new kgS(N.logSource,N.isServiceWorkerScope);this.network=N.network||null;this.productID=N.productID||null;this.bufferSize=1E3;this.clearcutUrl=N.urlOverride||null;this.sessionIndex=N.sessionIndex||null;this.disableAutomaticFlush=N.disableAutomaticFlush||!1;this.withCredentials=!N.disableWithCredentials;this.isServiceWorkerScope=N.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!lw()&&!!lw().navigator&&lw().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(rJS())).searchParams&&!!(new URL(rJS())).searchParams.set;var O=e3f(new iM);xYS(this.logRequestBuilder,O);this.flushBackoff=new hI(1E4,3E5,.1);N=Iyp(this,N.backgroundJobDeferrer);this.JSC$9851_flushTimer=new $F(this.flushBackoff.getValue(),N);this.backupTimer=new $F(6E5,N);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){lyX(t);
var H;(H=t.metalogService)==null||H.flush()}}),document.addEventListener("pagehide",function(){lyX(t);
var H;(H=t.metalogService)==null||H.flush()}))};
_.p(Ms,_.k1);var Iyp=function(N,t){return N.isBrowserSupported?t?function(){t().then(function(){N.flush()})}:function(){N.flush()}:function(){}};
Ms.prototype.disposeInternal=function(){lyX(this);this.JSC$9851_flushTimer.stop();this.backupTimer.stop();_.k1.prototype.disposeInternal.call(this)};
var Qa_=function(N){N.clearcutUrl||(N.clearcutUrl=rJS());try{return(new URL(N.clearcutUrl)).toString()}catch(t){return(new URL(N.clearcutUrl,lw().location.origin)).toString()}};
Ms.prototype.dispatch=function(N){if(N instanceof _.uM)this.log(N);else try{var t=new _.uM,O=N.serialize();var H=_.Xa(t,8,O);this.log(H)}catch(A){LV(this,4,1)}};
var LV=function(N,t,O){N.metalogService&&N.metalogService.increment(t,O)};
Ms.prototype.log=function(N){LV(this,2,1);if(this.isBrowserSupported){N=N.clone();var t=this.sequencePosition++;N=_.fb(N,21,t);this.componentId&&_.Xa(N,26,this.componentId);t=N;if(xyl(_.cU(t,1))==null){var O=Date.now();O=Number.isFinite(O)?O.toString():"0";_.MV(t,1,di(O))}_.X0N(_.cU(t,15))!=null||_.fb(t,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(O=this.experimentIds.clone(),_.L8(t,16,O));LV(this,1,1);t=this.pendingEvents.length-this.bufferSize+1;t>0&&(this.pendingEvents.splice(0,t),
this.numLogsDroppedSinceLastFlush+=t,LV(this,3,t));this.pendingEvents.push(N);this.disableAutomaticFlush||this.JSC$9851_flushTimer.enabled||this.JSC$9851_flushTimer.start()}};
Ms.prototype.flush=function(N,t){var O=this;if(this.pendingEvents.length===0)N&&N();else if(this.JSC$9851_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,mYp(this);else{var H=Date.now();if(this.noFlushUntilMs>H&&this.startWaitingMs<H)t&&t("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?qHY(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var A=this.pendingEvents.length,
Z=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),U=this.getAuthHeaderValue();if(U&&this.lastFailedAuth===U)t&&t("stale-auth-token");else{this.pendingEvents=[];this.JSC$9851_flushTimer.enabled&&this.JSC$9851_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;H=Z.serialize();var C;this.JSC$9851_compressor&&this.JSC$9851_compressor.isSupported(H.length)&&
(C=this.JSC$9851_compressor.compress(H));var F=EMa(this,H,U),g=function(u){O.flushBackoff.reset();O.JSC$9851_flushTimer.setInterval(O.flushBackoff.getValue());if(u){var S=null;try{var b=JSON.stringify(JSON.parse(u.replace(")]}'\n","")));S=WPQ(b)}catch(z){}S&&(u=Number(Ll(S,1,_.kX("-1"))),u>0&&(O.startWaitingMs=Date.now(),O.noFlushUntilMs=O.startWaitingMs+u),Hnt(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h$.fieldIndex),tJG(S,h$.fieldIndex),S=h$.ctor?h$.getExtensionFn(S,h$.ctor,h$.fieldIndex,
h$.JSC$9031_hasMessageId):h$.getExtensionFn(S,h$.fieldIndex,null,h$.JSC$9031_hasMessageId),S=S===null?void 0:S)&&(S=_.$1(S,1,-1),S!==-1&&(O.flushBackoff=new hI(S<1?1:S,3E5,.1),O.JSC$9851_flushTimer.setInterval(O.flushBackoff.getValue())))}N&&N();O.numRetriesSinceLastSuccessfulFlush=0},B=function(u,S){var b=_.y5(Z,_.uM,3,_.cA());
var z=Number(Ll(Z,14));nMp(O.flushBackoff);O.JSC$9851_flushTimer.setInterval(O.flushBackoff.getValue());u===401&&U&&(O.lastFailedAuth=U);z&&(O.numLogsDroppedSinceLastFlush+=z);S===void 0&&(S=O.isRetryable(u));S&&(O.pendingEvents=b.concat(O.pendingEvents),O.disableAutomaticFlush||O.JSC$9851_flushTimer.enabled||O.JSC$9851_flushTimer.start());LV(O,7,1);t&&t("net-send-failed",u);++O.numRetriesSinceLastSuccessfulFlush},c=function(){O.network&&O.network.send(F,g,B)};
C?C.then(function(u){LV(O,5,A);F.requestHeaders["Content-Encoding"]="gzip";F.requestHeaders["Content-Type"]="application/binary";F.body=u;F.bodyType=2;c()},function(){LV(O,6,A);
c()}):c()}}}};
var EMa=function(N,t,O){O=O===void 0?null:O;var H=H===void 0?N.withCredentials:H;var A={},Z=new URL(Qa_(N));O&&(A.Authorization=O);N.sessionIndex&&(A["X-Goog-AuthUser"]=N.sessionIndex,Z.searchParams.set("authuser",N.sessionIndex));N.pageId&&(Object.defineProperty(A,"X-Goog-PageId",{value:N.pageId}),Z.searchParams.set("pageId",N.pageId));return{url:Z.toString(),body:t,bodyType:1,requestHeaders:A,requestType:"POST",withCredentials:H,timeoutMillis:N.timeoutMillis}},lyX=function(N){N.logRequestBuilder.isFinal=
!0;
N.flush();N.logRequestBuilder.isFinal=!1},mYp=function(N){Gga(N,function(t,O){t=new URL(t);
t.searchParams.set("format","json");var H=!1;try{H=lw().navigator.sendBeacon(t.toString(),O.serialize())}catch(A){}H||(N.isSendBeaconSupported=!1);return H})},Gga=function(N,t){if(N.pendingEvents.length!==0){var O=new URL(Qa_(N));
O.searchParams.delete("format");var H=N.getAuthHeaderValue();H&&O.searchParams.set("auth",H);O.searchParams.set("authuser",N.sessionIndex||"0");for(H=0;H<10&&N.pendingEvents.length;++H){var A=N.pendingEvents.slice(0,32),Z=N.logRequestBuilder.build(A,N.numLogsDroppedSinceLastFlush,N.numRetriesSinceLastSuccessfulFlush,N.productID,N.persistedLogRecoveredCount,N.persistedLogExpiredCount);if(!t(O.toString(),Z)){++N.numRetriesSinceLastSuccessfulFlush;break}N.numLogsDroppedSinceLastFlush=0;N.numRetriesSinceLastSuccessfulFlush=
0;N.persistedLogRecoveredCount=0;N.persistedLogExpiredCount=0;N.pendingEvents=N.pendingEvents.slice(A.length)}N.JSC$9851_flushTimer.enabled&&N.JSC$9851_flushTimer.stop()}};
Ms.prototype.isRetryable=function(N){return 500<=N&&N<600||N===401||N===0};
var rJS=function(){return"https://play.google.com/log?format=json&hasfast=true"};var R3S=function(){this.abortSupported=typeof AbortController!=="undefined"};
R3S.prototype.send=function(N,t,O){var H=this,A,Z,U,C,F,g,B,c,u,S;return _.K(function(b){switch(b.nextAddress){case 1:return Z=(A=H.abortSupported?new AbortController:void 0)?setTimeout(function(){A.abort()},N.timeoutMillis):void 0,_.Mo(b,2,3),U=Object.assign({},{method:N.requestType,
headers:Object.assign({},N.requestHeaders)},N.body&&{body:N.body},N.withCredentials&&{credentials:"include"},{signal:N.timeoutMillis&&A?A.signal:null}),b.yield(fetch(N.url,U),5);case 5:C=b.yieldResult;if(C.status!==200){(F=O)==null||F(C.status);b.jumpTo(3);break}if((g=t)==null){b.jumpTo(7);break}return b.yield(C.text(),8);case 8:g(b.yieldResult);case 7:case 3:_.pU(b);clearTimeout(Z);_.YC(b,0);break;case 2:B=_.ax(b);switch((c=B)==null?void 0:c.name){case "AbortError":(u=O)==null||u(408);break;default:(S=
O)==null||S(400)}b.jumpTo(3)}})};
R3S.prototype.getTransmissionType=function(){return 4};_.bu=function(N,t){t=t===void 0?"0":t;_.k1.call(this);this.logSource=N;this.sessionIndex=t;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9869_clearExperimentIds=this.productID=null;this.JSC$9869_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.p(_.bu,_.k1);var BEM=function(N,t){N.buildLabel=t;return N},yeg=function(N,t){N.network=t;
return N},$HN=function(N,t){N.JSC$9869_clearExperimentIds=t},gvS=function(N){N.JSC$9869_sendBeaconApiEnabled=!0;
return N};
_.bu.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.bu.prototype.build=function(){this.network||(this.network=new R3S);var N=new Ms({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.ynt,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.L1(this,N);if(this.buildLabel){var t=this.buildLabel,O=
Sr(N.logRequestBuilder);_.Xa(O,7,t)}N.JSC$9851_compressor=new poy;this.componentId&&(N.componentId=this.componentId);this.productID&&(N.productID=this.productID);this.pageId&&(N.pageId=this.pageId);this.JSC$9869_clearExperimentIds&&((O=this.JSC$9869_clearExperimentIds)?(N.experimentIds||(N.experimentIds=new LP0),t=N.experimentIds,O=O.serialize(),_.Xa(t,4,O)):N.experimentIds&&_.MV(N.experimentIds,4));this.JSC$9869_sendBeaconApiEnabled&&(N.JSC$9851_sendBeaconApiEnabled=N.isSendBeaconSupported);fyE(N.logRequestBuilder);
this.bufferSize&&(N.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(N);return N};var uel=function(N,t,O,H,A,Z,U){N=N===void 0?-1:N;t=t===void 0?"":t;O=O===void 0?"":O;H=H===void 0?!1:H;A=A===void 0?"":A;_.k1.call(this);this.logSource=N;this.componentId=t;Z?t=Z:(N=new _.bu(N,"0"),N.componentId=t,_.L1(this,N),O!==""&&(N.destinationUrl=O),H&&(N.serviceWorkerScopeEnabled=!0),A&&BEM(N,A),U&&yeg(N,U),t=N.build());this.JSC$9873_transport=t};
_.p(uel,_.k1);uel.prototype.flush=function(N){N=N||[];if(N.length){for(var t=new BpR,O=[],H=0;H<N.length;H++){var A=N[H],Z=jaY(A);O.push(Z);A.clear()}hw(t,1,O);this.JSC$9873_transport.dispatch(t);this.JSC$9873_transport.flush()}};var vMZ=function(N){this.cellValue=N};var zk=function(N,t,O){this.JSC$9878_metricName=N;this.cellType=t;this.fields=O||[];this.cellMap=new Map},$Yr=function(N){return N.fields.map(function(t){return t.fieldType})},cJ0=function(N){return N.fields.map(function(t){return t.fieldName})};
_.V=zk.prototype;_.V.addCell=function(N){var t=_.E1.apply(1,arguments),O=this.getCells(t);O?O.push(new vMZ(N)):this.JSC$9878_setCell(N,t)};
_.V.JSC$9878_setCell=function(N){var t=this.JSC$9878_getKey(_.E1.apply(1,arguments));this.cellMap.set(t,[new vMZ(N)])};
_.V.getCells=function(){var N=this.JSC$9878_getKey(_.E1.apply(0,arguments));return this.cellMap.has(N)?this.cellMap.get(N):void 0};
_.V.getCell=function(){var N=this.getCells(_.E1.apply(0,arguments));return N&&N.length?N[0]:void 0};
_.V.clear=function(){this.cellMap.clear()};
_.V.JSC$9878_getKey=function(){var N=_.E1.apply(0,arguments);return N?N.join(","):"key"};var JJY=function(N,t){zk.call(this,N,3,t)};
_.p(JJY,zk);JJY.prototype.JSC$9881_incrementCounterBy=function(N){var t=_.E1.apply(1,arguments),O=0,H=this.getCell(t);H&&(O=H.cellValue);this.JSC$9878_setCell(O+N,t)};var oMB=function(N,t){zk.call(this,N,2,t)};
_.p(oMB,zk);oMB.prototype.record=function(N){this.addCell(N,_.E1.apply(1,arguments))};_.YF=function(N){this.id=N};
_.YF.prototype.toString=function(){return this.id};_.a7=function(N,t){this.type=N instanceof _.YF?String(N):N;this.currentTarget=this.target=t;this.defaultPrevented=this.propagationStopped_=!1};
_.a7.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.a7.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Tk=function(N,t){_.a7.call(this,N?N.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;N&&this.init(N,t)};
_.Od(_.Tk,_.a7);
_.Tk.prototype.init=function(N,t){var O=this.type=N.type,H=N.changedTouches&&N.changedTouches.length?N.changedTouches[0]:null;this.target=N.target||N.srcElement;this.currentTarget=t;t=N.relatedTarget;t||(O=="mouseover"?t=N.fromElement:O=="mouseout"&&(t=N.toElement));this.relatedTarget=t;H?(this.clientX=H.clientX!==void 0?H.clientX:H.pageX,this.clientY=H.clientY!==void 0?H.clientY:H.pageY,this.screenX=H.screenX||0,this.screenY=H.screenY||0):(this.offsetX=_.Ud||N.offsetX!==void 0?N.offsetX:N.layerX,
this.offsetY=_.Ud||N.offsetY!==void 0?N.offsetY:N.layerY,this.clientX=N.clientX!==void 0?N.clientX:N.pageX,this.clientY=N.clientY!==void 0?N.clientY:N.pageY,this.screenX=N.screenX||0,this.screenY=N.screenY||0);this.button=N.button;this.keyCode=N.keyCode||0;this.key=N.key||"";this.charCode=N.charCode||(O=="keypress"?N.keyCode:0);this.ctrlKey=N.ctrlKey;this.altKey=N.altKey;this.shiftKey=N.shiftKey;this.metaKey=N.metaKey;this.pointerId=N.pointerId||0;this.pointerType=N.pointerType;this.state=N.state;
this.timeStamp=N.timeStamp;this.event_=N;N.defaultPrevented&&_.Tk.superClass_.preventDefault.call(this)};
_.Tk.prototype.isButton=function(N){return this.event_.button==N};
_.Tk.prototype.stopPropagation=function(){_.Tk.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Tk.prototype.preventDefault=function(){_.Tk.superClass_.preventDefault.call(this);var N=this.event_;N.preventDefault?N.preventDefault():N.returnValue=!1};var sau="closure_listenable_"+(Math.random()*1E6|0),w3=function(N){return!(!N||!N[sau])};var NuQ=0;var tTp=function(N,t,O,H,A){this.listener=N;this.proxy=null;this.src=t;this.type=O;this.capture=!!H;this.handler=A;this.key=++NuQ;this.removed=this.callOnce=!1},OLR=function(N){N.removed=!0;
N.listener=null;N.proxy=null;N.src=null;N.handler=null};Mn.prototype.add=function(N,t,O,H,A){var Z=N.toString();N=this.listeners[Z];N||(N=this.listeners[Z]=[],this.typeCount_++);var U=HLp(N,t,H,A);U>-1?(t=N[U],O||(t.callOnce=!1)):(t=new tTp(t,this.src,Z,!!H,A),t.callOnce=O,N.push(t));return t};
Mn.prototype.remove=function(N,t,O,H){N=N.toString();if(!(N in this.listeners))return!1;var A=this.listeners[N];t=HLp(A,t,O,H);return t>-1?(OLR(A[t]),_.w4t(A,t),A.length==0&&(delete this.listeners[N],this.typeCount_--),!0):!1};
var AOa=function(N,t){var O=t.type;if(!(O in N.listeners))return!1;var H=_.rt(N.listeners[O],t);H&&(OLR(t),N.listeners[O].length==0&&(delete N.listeners[O],N.typeCount_--));return H};
Mn.prototype.removeAll=function(N){N=N&&N.toString();var t=0,O;for(O in this.listeners)if(!N||O==N){for(var H=this.listeners[O],A=0;A<H.length;A++)++t,OLR(H[A]);delete this.listeners[O];this.typeCount_--}return t};
Mn.prototype.getListener=function(N,t,O,H){N=this.listeners[N.toString()];var A=-1;N&&(A=HLp(N,t,O,H));return A>-1?N[A]:null};
Mn.prototype.hasListener=function(N,t){var O=N!==void 0,H=O?N.toString():"",A=t!==void 0;return _.WW.some(this.listeners,function(Z){for(var U=0;U<Z.length;++U)if(!(O&&Z[U].type!=H||A&&Z[U].capture!=t))return!0;return!1})};
var HLp=function(N,t,O,H){for(var A=0;A<N.length;++A){var Z=N[A];if(!Z.removed&&Z.listener==t&&Z.capture==!!O&&Z.handler==H)return A}return-1};var ZLf,VTQ,DCB,CfY,KDY,$J,jF,glB,FDS,dCQ,er,yO0,UCR;ZLf="closure_lm_"+(Math.random()*1E6|0);VTQ={};DCB=0;_.SF=function(N,t,O,H,A){if(H&&H.once)return $J(N,t,O,H,A);if(Array.isArray(t)){for(var Z=0;Z<t.length;Z++)_.SF(N,t[Z],O,H,A);return null}O=UCR(O);return w3(N)?N.listen(t,O,_.mG(H)?!!H.capture:!!H,A):CfY(N,t,O,!1,H,A)};
CfY=function(N,t,O,H,A,Z){if(!t)throw Error("va");var U=_.mG(A)?!!A.capture:!!A,C=er(N);C||(N[ZLf]=C=new Mn(N));O=C.add(t,O,H,U,Z);if(O.proxy)return O;H=KDY();O.proxy=H;H.src=N;H.listener=O;if(N.addEventListener)_.FAp||(A=U),A===void 0&&(A=!1),N.addEventListener(t.toString(),H,A);else if(N.attachEvent)N.attachEvent(FDS(t.toString()),H);else if(N.addListener&&N.removeListener)N.addListener(H);else throw Error("wa");DCB++;return O};
KDY=function(){var N=dCQ,t=function(O){return N.call(t.src,t.listener,O)};
return t};
$J=function(N,t,O,H,A){if(Array.isArray(t)){for(var Z=0;Z<t.length;Z++)$J(N,t[Z],O,H,A);return null}O=UCR(O);return w3(N)?N.listenOnce(t,O,_.mG(H)?!!H.capture:!!H,A):CfY(N,t,O,!0,H,A)};
_.PG=function(N,t,O,H,A){if(Array.isArray(t))for(var Z=0;Z<t.length;Z++)_.PG(N,t[Z],O,H,A);else H=_.mG(H)?!!H.capture:!!H,O=UCR(O),w3(N)?N.unlisten(t,O,H,A):N&&(N=er(N))&&(t=N.getListener(t,O,H,A))&&jF(t)};
jF=function(N){if(typeof N==="number"||!N||N.removed)return!1;var t=N.src;if(w3(t))return AOa(t.eventTargetListeners_,N);var O=N.type,H=N.proxy;t.removeEventListener?t.removeEventListener(O,H,N.capture):t.detachEvent?t.detachEvent(FDS(O),H):t.addListener&&t.removeListener&&t.removeListener(H);DCB--;(O=er(t))?(AOa(O,N),O.typeCount_==0&&(O.src=null,t[ZLf]=null)):OLR(N);return!0};
glB=function(N,t,O,H,A){O=UCR(O);H=!!H;return w3(N)?N.getListener(t,O,H,A):N?(N=er(N))?N.getListener(t,O,H,A):null:null};
FDS=function(N){return N in VTQ?VTQ[N]:VTQ[N]="on"+N};
dCQ=function(N,t){if(N.removed)N=!0;else{t=new _.Tk(t,this);var O=N.listener,H=N.handler||N.src;N.callOnce&&jF(N);N=O.call(H,t)}return N};
er=function(N){N=N[ZLf];return N instanceof Mn?N:null};
yO0="__closure_events_fn_"+(Math.random()*1E9>>>0);UCR=function(N){if(typeof N==="function")return N;N[yO0]||(N[yO0]=function(t){return N.handleEvent(t)});
return N[yO0]};_.Xm=function(){_.k1.call(this);this.eventTargetListeners_=new Mn(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Od(_.Xm,_.k1);_.Xm.prototype[sau]=!0;_.V=_.Xm.prototype;_.V.setParentEventTarget=function(N){this.parentEventTarget_=N};
_.V.addEventListener=function(N,t,O,H){_.SF(this,N,t,O,H)};
_.V.removeEventListener=function(N,t,O,H){_.PG(this,N,t,O,H)};
_.V.dispatchEvent=function(N){var t,O=this.parentEventTarget_;if(O)for(t=[];O;O=O.parentEventTarget_)t.push(O);O=this.actualEventTarget_;var H=N.type||N;if(typeof N==="string")N=new _.a7(N,O);else if(N instanceof _.a7)N.target=N.target||O;else{var A=N;N=new _.a7(H,O);_.WW.extend(N,A)}A=!0;var Z;if(t)for(Z=t.length-1;!N.propagationStopped_&&Z>=0;Z--){var U=N.currentTarget=t[Z];A=Bur(U,H,!0,N)&&A}N.propagationStopped_||(U=N.currentTarget=O,A=Bur(U,H,!0,N)&&A,N.propagationStopped_||(A=Bur(U,H,!1,N)&&
A));if(t)for(Z=0;!N.propagationStopped_&&Z<t.length;Z++)U=N.currentTarget=t[Z],A=Bur(U,H,!1,N)&&A;return A};
_.V.disposeInternal=function(){_.Xm.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.V.listen=function(N,t,O,H){return this.eventTargetListeners_.add(String(N),t,!1,O,H)};
_.V.listenOnce=function(N,t,O,H){return this.eventTargetListeners_.add(String(N),t,!0,O,H)};
_.V.unlisten=function(N,t,O,H){return this.eventTargetListeners_.remove(String(N),t,O,H)};
_.V.removeAllListeners=function(N){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(N):0};
var Bur=function(N,t,O,H){t=N.eventTargetListeners_.listeners[String(t)];if(!t)return!0;t=t.concat();for(var A=!0,Z=0;Z<t.length;++Z){var U=t[Z];if(U&&!U.removed&&U.capture==O){var C=U.listener,F=U.handler||U.src;U.callOnce&&AOa(N.eventTargetListeners_,U);A=C.call(F,H)!==!1&&A}}return A&&!H.defaultPrevented};
_.Xm.prototype.getListener=function(N,t,O,H){return this.eventTargetListeners_.getListener(String(N),t,O,H)};
_.Xm.prototype.hasListener=function(N,t){return this.eventTargetListeners_.hasListener(N!==void 0?String(N):void 0,t)};var xF=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(N){return N&&AsyncContext.Snapshot.wrap(N)}:function(N){return N};var cOp=function(N,t){this.create_=N;this.reset_=t;this.occupants_=0;this.JSC$9913_head_=null};
cOp.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var N=this.JSC$9913_head_;this.JSC$9913_head_=N.next;N.next=null}else N=this.create_();return N};
cOp.prototype.put=function(N){this.reset_(N);this.occupants_<100&&(this.occupants_++,N.next=this.JSC$9913_head_,this.JSC$9913_head_=N)};var $Cu=function(){this.workTail_=this.workHead_=null};
$Cu.prototype.add=function(N,t){var O=DHN.get();O.set(N,t);this.workTail_?this.workTail_.next=O:this.workHead_=O;this.workTail_=O};
$Cu.prototype.remove=function(){var N=null;this.workHead_&&(N=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),N.next=null);return N};
var DHN=new cOp(function(){return new jou},function(N){return N.reset()}),jou=function(){this.next=this.scope=this.fn=null};
jou.prototype.set=function(N,t){this.fn=N;this.scope=t;this.next=null};
jou.prototype.reset=function(){this.next=this.scope=this.fn=null};var iL_,UH9,VoG,uNS;UH9=!1;VoG=new $Cu;_.kF=function(N,t){iL_||uNS();UH9||(iL_(),UH9=!0);VoG.add(N,t)};
uNS=function(){var N=Promise.resolve(void 0);iL_=function(){N.then(CPS)}};var S2S=function(N){N.prototype.$goog_Thenable=!0},hgZ=function(N){if(!N)return!1;
try{return!!N.$goog_Thenable}catch(t){return!1}};var MT_,bLZ,pZp,zgX,Y2Z,atR,PfX,kmr,WDQ,ft0,dJy;_.TW=function(N,t){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(N!=_.YG)try{var O=this;N.call(t,function(H){O.resolve_(2,H)},function(H){O.resolve_(3,H)})}catch(H){this.resolve_(3,H)}};
MT_=function(){this.next=this.context=this.JSC$9924_onRejected=this.JSC$9924_onFulfilled=this.child=null;this.always=!1};
MT_.prototype.reset=function(){this.context=this.JSC$9924_onRejected=this.JSC$9924_onFulfilled=this.child=null;this.always=!1};
bLZ=new cOp(function(){return new MT_},function(N){N.reset()});
pZp=function(N,t,O){var H=bLZ.get();H.JSC$9924_onFulfilled=N;H.JSC$9924_onRejected=t;H.context=O;return H};
_.Hc=function(N){if(N instanceof _.TW)return N;var t=new _.TW(_.YG);t.resolve_(2,N);return t};
_.M2=function(N){return new _.TW(function(t,O){O(N)})};
zgX=function(N,t,O){LD0(N,t,O,null)||_.kF(_.Fu(t,N))};
_.qs=function(N){return new _.TW(function(t,O){var H=N.length,A=[];if(H)for(var Z=function(g,B){H--;A[g]=B;H==0&&t(A)},U=function(g){O(g)},C,F=0;F<N.length;F++)C=N[F],zgX(C,_.Fu(Z,F),U);
else t(A)})};
Y2Z=function(N){return new _.TW(function(t){var O=N.length,H=[];if(O)for(var A=function(C,F,g){O--;H[C]=F?{fulfilled:!0,value:g}:{fulfilled:!1,reason:g};O==0&&t(H)},Z,U=0;U<N.length;U++)Z=N[U],zgX(Z,_.Fu(A,U,!0),_.Fu(A,U,!1));
else t(H)})};
atR=function(N){return new _.TW(function(t,O){var H=N.length,A=[];if(H)for(var Z=function(g){t(g)},U=function(g,B){H--;
A[g]=B;H==0&&O(A)},C,F=0;F<N.length;F++)C=N[F],zgX(C,Z,_.Fu(U,F));
else t(void 0)})};
_.lj=function(){var N,t,O=new _.TW(function(H,A){N=H;t=A});
return new TuY(O,N,t)};
_.TW.prototype.then=function(N,t,O){return wZQ(this,xF(typeof N==="function"?N:null),xF(typeof t==="function"?t:null),O)};
S2S(_.TW);PfX=function(N,t,O,H){egY(N,pZp(t||_.YG,O||null,H))};
_.fV=function(N,t){t=xF(t);t=pZp(t,t);t.always=!0;egY(N,t);return N};
_.TW.prototype.finally=function(N){var t=this;N=xF(N);return new _.TW(function(O,H){PfX(t,function(A){N();O(A)},function(A){N();
H(A)})})};
_.TW.prototype.thenCatch=function(N,t){return wZQ(this,null,xF(N),t)};
_.TW.prototype.catch=_.TW.prototype.thenCatch;_.TW.prototype.cancel=function(N){if(this.state_==0){var t=new _.kg(N);_.kF(function(){XZ_(this,t)},this)}};
var XZ_=function(N,t){if(N.state_==0)if(N.parent_){var O=N.parent_;if(O.callbackEntries_){for(var H=0,A=null,Z=null,U=O.callbackEntries_;U&&(U.always||(H++,U.child==N&&(A=U),!(A&&H>1)));U=U.next)A||(Z=U);A&&(O.state_==0&&H==1?XZ_(O,t):(Z?(H=Z,H.next==O.callbackEntriesTail_&&(O.callbackEntriesTail_=H),H.next=H.next.next):xC_(O),kmr(O,A,3,t)))}N.parent_=null}else N.resolve_(3,t)},egY=function(N,t){N.callbackEntries_||N.state_!=2&&N.state_!=3||q2Q(N);
N.callbackEntriesTail_?N.callbackEntriesTail_.next=t:N.callbackEntries_=t;N.callbackEntriesTail_=t},wZQ=function(N,t,O,H){var A=pZp(null,null,null);
A.child=new _.TW(function(Z,U){A.JSC$9924_onFulfilled=t?function(C){try{var F=t.call(H,C);Z(F)}catch(g){U(g)}}:Z;
A.JSC$9924_onRejected=O?function(C){try{var F=O.call(H,C);F===void 0&&C instanceof _.kg?U(C):Z(F)}catch(g){U(g)}}:U});
A.child.parent_=N;egY(N,A);return A.child};
_.TW.prototype.unblockAndFulfill_=function(N){this.state_=0;this.resolve_(2,N)};
_.TW.prototype.unblockAndReject_=function(N){this.state_=0;this.resolve_(3,N)};
_.TW.prototype.resolve_=function(N,t){this.state_==0&&(this===t&&(N=3,t=new TypeError("xa")),this.state_=1,LD0(t,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=t,this.state_=N,this.parent_=null,q2Q(this),N!=3||t instanceof _.kg||ft0(this,t)))};
var LD0=function(N,t,O,H){if(N instanceof _.TW)return PfX(N,t,O,H),!0;if(hgZ(N))return N.then(t,O,H),!0;if(_.mG(N))try{var A=N.then;if(typeof A==="function")return nlY(N,A,t,O,H),!0}catch(Z){return O.call(H,Z),!0}return!1},nlY=function(N,t,O,H,A){var Z=!1,U=function(F){Z||(Z=!0,O.call(A,F))},C=function(F){Z||(Z=!0,H.call(A,F))};
try{t.call(N,U,C)}catch(F){C(F)}},q2Q=function(N){N.executing_||(N.executing_=!0,_.kF(N.executeCallbacks_,N))},xC_=function(N){var t=null;
N.callbackEntries_&&(t=N.callbackEntries_,N.callbackEntries_=t.next,t.next=null);N.callbackEntries_||(N.callbackEntriesTail_=null);return t};
_.TW.prototype.executeCallbacks_=function(){for(var N;N=xC_(this);)kmr(this,N,this.state_,this.result_);this.executing_=!1};
kmr=function(N,t,O,H){if(O==3&&t.JSC$9924_onRejected&&!t.always)for(;N&&N.hadUnhandledRejection_;N=N.parent_)N.hadUnhandledRejection_=!1;if(t.child)t.child.parent_=null,WDQ(t,O,H);else try{t.always?t.JSC$9924_onFulfilled.call(t.context):WDQ(t,O,H)}catch(A){dJy.call(null,A)}bLZ.put(t)};
WDQ=function(N,t,O){t==2?N.JSC$9924_onFulfilled.call(N.context,O):N.JSC$9924_onRejected&&N.JSC$9924_onRejected.call(N.context,O)};
ft0=function(N,t){N.hadUnhandledRejection_=!0;_.kF(function(){N.hadUnhandledRejection_&&dJy.call(null,t)})};
dJy=Ag;_.kg=function(N){_.Nz.call(this,N)};
_.Od(_.kg,_.Nz);_.kg.prototype.name="cancel";var TuY=function(N,t,O){this.promise=N;this.resolve=t;this.reject=O};var nV;_.hv=function(N,t){_.Xm.call(this);this.JSC$9936_interval_=N||1;this.timerObject_=t||_.H4;this.boundTick_=(0,_.qn)(this.tick_,this);this.last_=_.tw()};
_.Od(_.hv,_.Xm);_.V=_.hv.prototype;_.V.enabled=!1;_.V.JSC$9938_timer_=null;_.V.setInterval=function(N){this.JSC$9936_interval_=N;this.JSC$9938_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9938_timer_&&this.stop()};
_.V.tick_=function(){if(this.enabled){var N=_.tw()-this.last_;N>0&&N<this.JSC$9936_interval_*.8?this.JSC$9938_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9936_interval_-N):(this.JSC$9938_timer_&&(this.timerObject_.clearTimeout(this.JSC$9938_timer_),this.JSC$9938_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.V.start=function(){this.enabled=!0;this.JSC$9938_timer_||(this.JSC$9938_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9936_interval_),this.last_=_.tw())};
_.V.stop=function(){this.enabled=!1;this.JSC$9938_timer_&&(this.timerObject_.clearTimeout(this.JSC$9938_timer_),this.JSC$9938_timer_=null)};
_.V.disposeInternal=function(){_.hv.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
nV=function(N,t,O){if(typeof N==="function")O&&(N=(0,_.qn)(N,O));else if(N&&typeof N.handleEvent=="function")N=(0,_.qn)(N.handleEvent,N);else throw Error("ya");return Number(t)>2147483647?-1:_.H4.setTimeout(N,t||0)};
_.rOB=function(N){var t=null;return(new _.TW(function(O,H){t=nV(function(){O(void 0)},N);
t==-1&&H(Error("za"))})).thenCatch(function(O){_.H4.clearTimeout(t);
throw O;})};var zu=function(N){_.k1.call(this);this.streamzLogger=N;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9942_flushTimer=new _.hv(this.flushInterval);this.JSC$9942_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.L1(this,this.JSC$9942_flushTimer)};
_.p(zu,_.k1);zu.prototype.sendIsolatedPayload=function(N){this.shouldSendIsolatedPayload=N;this.invocationLimit=1};
var Ity=function(N){N.JSC$9942_flushTimer.enabled||N.JSC$9942_flushTimer.start();N.invocationCount++;N.invocationCount>=N.invocationLimit&&N.snapshotAndFlush()};
zu.prototype.snapshotAndFlush=function(){var N=this.metricMap.values();N=[].concat(_.W6(N)).filter(function(t){return t.cellMap.size});
N.length&&this.streamzLogger.flush(N,this.shouldSendIsolatedPayload);ltS(N);this.invocationCount=0;this.JSC$9942_flushTimer.enabled&&this.JSC$9942_flushTimer.stop()};
zu.prototype.addNewCounter=function(N){var t=_.E1.apply(1,arguments);this.metricMap.has(N)||this.metricMap.set(N,new JJY(N,t))};
zu.prototype.addNewEventMetric=function(N){var t=_.E1.apply(1,arguments);this.metricMap.has(N)||this.metricMap.set(N,new oMB(N,t))};
var Qoa=function(N,t){return N.disabledMetrics.has(t)?void 0:N.metricMap.get(t)};
zu.prototype.JSC$9942_incrementCounter=function(N){this.JSC$9942_incrementCounterBy(N,1,_.E1.apply(1,arguments))};
zu.prototype.JSC$9942_incrementCounterBy=function(N,t){var O=_.E1.apply(2,arguments),H=Qoa(this,N);H&&H instanceof JJY&&(H.JSC$9881_incrementCounterBy(t,O),Ity(this))};
zu.prototype.record=function(N,t){var O=_.E1.apply(2,arguments),H=Qoa(this,N);H&&H instanceof oMB&&(H.record(t,O),Ity(this))};
var ltS=function(N){for(var t=0;t<N.length;t++)N[t].clear()};_.WG=function(N,t,O){O=O===void 0?{}:O;t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=N;this.metadata=O;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(_.WG,Error);_.WG.prototype.toString=function(){var N="RpcError("+(FYl(this.code)||String(this.code))+")";this.message&&(N+=": "+this.message);return N};_.mCy=_.H4.JSON.parse;_.r3=_.H4.JSON.stringify;_.SB=_.H4.JSON.parse;_.Elu=function(N){switch(N){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var Gmr=function(N){switch(N){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var RgE,vlf=function(){};
_.Od(vlf,_.dHv);vlf.prototype.createInstance=function(){return new XMLHttpRequest};
RgE=new vlf;_.I7=function(N){_.Xm.call(this);this.headers=new Map;this.JSC$9951_xmlHttpFactory_=N||null;this.JSC$9951_active_=!1;this.JSC$9951_xhr_=null;this.JSC$9951_lastUri_="";this.JSC$9951_lastErrorCode_=0;this.JSC$9951_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9951_timeoutId_=null;this.responseType_="";this.JSC$9951_withCredentials_=!1};
_.Od(_.I7,_.Xm);var JOp=/^https?$/i,olp=["POST","PUT"],soS=[],Q3p=function(N,t,O,H,A,Z,U){var C=new _.I7;soS.push(C);t&&C.listen("complete",t);C.listenOnce("ready",C.cleanupSend_);Z&&(C.timeoutInterval_=Math.max(0,Z));U&&(C.JSC$9951_withCredentials_=U);C.send(N,O,H,A)};
_.I7.prototype.cleanupSend_=function(){this.dispose();_.rt(soS,this)};
_.I7.prototype.send=function(N,t,O,H){if(this.JSC$9951_xhr_)throw Error("Aa`"+this.JSC$9951_lastUri_+"`"+N);t=t?t.toUpperCase():"GET";this.JSC$9951_lastUri_=N;this.JSC$9951_lastError_="";this.JSC$9951_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9951_active_=!0;this.JSC$9951_xhr_=this.createXhr();this.JSC$9951_xhr_.onreadystatechange=xF((0,_.qn)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9951_xhr_.open(t,String(N),!0),this.inOpen_=!1}catch(U){NEf(this,U);return}N=O||"";O=new Map(this.headers);
if(H)if(Object.getPrototypeOf(H)===Object.prototype)for(var A in H)O.set(A,H[A]);else if(typeof H.keys==="function"&&typeof H.get==="function"){A=_.D(H.keys());for(var Z=A.next();!Z.done;Z=A.next())Z=Z.value,O.set(Z,H.get(Z))}else throw Error("Ba`"+String(H));H=Array.from(O.keys()).find(function(U){return"content-type"==U.toLowerCase()});
A=_.H4.FormData&&N instanceof _.H4.FormData;!_.W4(olp,t)||H||A||O.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");t=_.D(O);for(H=t.next();!H.done;H=t.next())O=_.D(H.value),H=O.next().value,O=O.next().value,this.JSC$9951_xhr_.setRequestHeader(H,O);this.responseType_&&(this.JSC$9951_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9951_xhr_&&this.JSC$9951_xhr_.withCredentials!==this.JSC$9951_withCredentials_&&(this.JSC$9951_xhr_.withCredentials=this.JSC$9951_withCredentials_);
try{this.JSC$9951_timeoutId_&&(clearTimeout(this.JSC$9951_timeoutId_),this.JSC$9951_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9951_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9951_xhr_.send(N),this.inSend_=!1}catch(U){NEf(this,U)}};
_.I7.prototype.createXhr=function(){return this.JSC$9951_xmlHttpFactory_?this.JSC$9951_xmlHttpFactory_.createInstance():RgE.createInstance()};
_.I7.prototype.timeout_=function(){typeof gxR!="undefined"&&this.JSC$9951_xhr_&&(this.JSC$9951_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9951_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var NEf=function(N,t){N.JSC$9951_active_=!1;N.JSC$9951_xhr_&&(N.inAbort_=!0,N.JSC$9951_xhr_.abort(),N.inAbort_=!1);N.JSC$9951_lastError_=t;N.JSC$9951_lastErrorCode_=5;to0(N);OFQ(N)},to0=function(N){N.errorDispatched_||(N.errorDispatched_=!0,N.dispatchEvent("complete"),N.dispatchEvent("error"))};
_.I7.prototype.abort=function(N){this.JSC$9951_xhr_&&this.JSC$9951_active_&&(this.JSC$9951_active_=!1,this.inAbort_=!0,this.JSC$9951_xhr_.abort(),this.inAbort_=!1,this.JSC$9951_lastErrorCode_=N||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),OFQ(this))};
_.I7.prototype.disposeInternal=function(){this.JSC$9951_xhr_&&(this.JSC$9951_active_&&(this.JSC$9951_active_=!1,this.inAbort_=!0,this.JSC$9951_xhr_.abort(),this.inAbort_=!1),OFQ(this,!0));_.I7.superClass_.disposeInternal.call(this)};
_.I7.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)HF0(this);else this.onReadyStateChangeEntryPoint_()};
_.I7.prototype.onReadyStateChangeEntryPoint_=function(){HF0(this)};
var HF0=function(N){if(N.JSC$9951_active_&&typeof gxR!="undefined")if(N.inSend_&&_.lM(N)==4)setTimeout(N.onReadyStateChange_.bind(N),0);else if(N.dispatchEvent("readystatechange"),N.isComplete()){N.JSC$9951_active_=!1;try{if(N.isSuccess())N.dispatchEvent("complete"),N.dispatchEvent("success");else{N.JSC$9951_lastErrorCode_=6;try{var t=_.lM(N)>2?N.JSC$9951_xhr_.statusText:""}catch(O){t=""}N.JSC$9951_lastError_=t+" ["+N.getStatus()+"]";to0(N)}}finally{OFQ(N)}}},OFQ=function(N,t){if(N.JSC$9951_xhr_){N.JSC$9951_timeoutId_&&
(clearTimeout(N.JSC$9951_timeoutId_),N.JSC$9951_timeoutId_=null);
var O=N.JSC$9951_xhr_;N.JSC$9951_xhr_=null;t||N.dispatchEvent("ready");try{O.onreadystatechange=null}catch(H){}}};
_.I7.prototype.isActive=function(){return!!this.JSC$9951_xhr_};
_.I7.prototype.isComplete=function(){return _.lM(this)==4};
_.I7.prototype.isSuccess=function(){var N=this.getStatus(),t;if(!(t=Gmr(N))){if(N=N===0)N=UnB(String(this.JSC$9951_lastUri_)),N=!JOp.test(N);t=N}return t};
_.lM=function(N){return N.JSC$9951_xhr_?N.JSC$9951_xhr_.readyState:0};
_.V=_.I7.prototype;_.V.getStatus=function(){try{return _.lM(this)>2?this.JSC$9951_xhr_.status:-1}catch(N){return-1}};
_.V.getResponseText=function(){try{return this.JSC$9951_xhr_?this.JSC$9951_xhr_.responseText:""}catch(N){return""}};
_.V.getResponse=function(){try{if(!this.JSC$9951_xhr_)return null;if("response"in this.JSC$9951_xhr_)return this.JSC$9951_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9951_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9951_xhr_)return this.JSC$9951_xhr_.mozResponseArrayBuffer}return null}catch(N){return null}};
_.V.getAllResponseHeaders=function(){return this.JSC$9951_xhr_&&_.lM(this)>=2?this.JSC$9951_xhr_.getAllResponseHeaders()||"":""};
_.V.getLastError=function(){return typeof this.JSC$9951_lastError_==="string"?this.JSC$9951_lastError_:String(this.JSC$9951_lastError_)};var ceM=function(){};
ceM.prototype.send=function(N,t,O){t=t===void 0?function(){}:t;
O=O===void 0?function(){}:O;
Q3p(N.url,function(H){H=H.target;H.isSuccess()?t(H.getResponseText()):O(H.getStatus())},N.requestType,N.body,N.requestHeaders,N.timeoutMillis,N.withCredentials)};
ceM.prototype.getTransmissionType=function(){return 1};var AeR=function(N,t){this.mBA=N;this.event=t;this.startTime=Y1()},hel;
AeR.prototype.done=function(){this.mBA.j3(this.event,Y1()-this.startTime)};
var Qh=function(){BG.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.p(Qh,BG);_.m0=function(N,t,O){var H=Y1();t=t();N.j3(O,Y1()-H);return t};
hel=function(){Qh.apply(this,arguments)};
_.p(hel,Qh);_.V=hel.prototype;_.V.mPE=function(){};
_.V.sG=function(){};
_.V.j3=function(){};
_.V.logError=function(){};
_.V.ck=function(){};
_.V.fh7=function(){};
_.V.y4E=function(){};
_.V.vmu=function(){};
var ZFR=function(N){Qh.call(this);var t=this;this.uF=N;this.TEST_ONLY={vng:function(){return t.uF},
getExperimentIds:function(){return t.uF.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void t.uF.dispose()})};
_.p(ZFR,Qh);_.V=ZFR.prototype;_.V.update=function(N){this.uF.dispose();this.uF=N};
_.V.sG=function(N){this.uF.sG(N)};
_.V.j3=function(N,t){this.uF.j3(N,t)};
_.V.logError=function(N){this.uF.logError(N)};
_.V.ck=function(){this.uF.ck()};
_.V.fh7=function(N){this.uF.fh7(N)};
_.V.y4E=function(N){this.uF.y4E(N)};
_.V.vmu=function(N){this.uF.vmu(N)};
_.V.mPE=function(N){this.uF.mPE(N)};
var VoZ=function(N,t){_.k1.call(this);var O=this;this.callback=N;this.m7r=t;this.ctW=-t;this.addOnDisposeCallback(function(){return void clearTimeout(O.timer)})};
_.p(VoZ,_.k1);var DHR=function(N){if(N.timer===void 0){var t=Math.max(0,N.ctW+N.m7r-Y1());N.timer=setTimeout(function(){try{N.callback()}finally{N.ctW=Y1(),N.timer=void 0}},t)}},UHa=function(N,t){Qh.call(this);
this.metrics=N;this.so=t};
_.p(UHa,Qh);_.V=UHa.prototype;_.V.mPE=function(N){this.metrics.i2Y.record(N,this.so)};
_.V.sG=function(N){this.metrics.eventCount.increment(N,this.so)};
_.V.j3=function(N,t){this.metrics.aS9.record(t,N,this.so)};
_.V.logError=function(N){this.metrics.errorCount.increment(N,this.so)};
_.V.fh7=function(N){this.metrics.wP6.increment(N,this.so)};
_.V.y4E=function(N){this.metrics.r8L.increment(N,this.so)};
_.V.vmu=function(N){this.metrics.eSf.increment(N,this.so)};
var Mo9=function(N,t){t=t===void 0?[]:t;var O={so:N.so||"_",yVI:N.yVI||[],lNc:N.lNc|0,destinationUrl:N.destinationUrl,uGN:N.uGN||function(){},
mYE:N.mYE||function(Z,U){return Syt(Z,U,O.uGN,O.destinationUrl)}},H=O.mYE("51",O.yVI.concat(t));
UHa.call(this,{i2Y:new llf(H),errorCount:new Gu0(H),eventCount:new mnB(H),aS9:new E1r(H),pye:new QPZ(H),wP6:new Rzp(H),r8L:new v1Z(H),eSf:new JIS(H)},O.so);var A=this;this.TEST_ONLY={getExperimentIds:function(){return A.options.yVI.concat(A.zAl).sort(function(Z,U){return Z-U})}};
this.options=O;this.service=H;this.mN9=!N.mYE;this.flushDebouncer=new VoZ(function(){return void A.service.snapshotAndFlush()},O.lNc);
this.addOnDisposeCallback(function(){A.flushDebouncer.dispose();A.mN9&&A.service.dispose()});
(this.zAl=t.slice()).sort(_.xzt)};
_.p(Mo9,UHa);Mo9.prototype.ck=function(){DHR(this.flushDebouncer)};var rjv=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(rjv,_.C8);_.IMx=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(_.IMx,_.C8);var Wy=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N,0,Wy.messageId)};
_.p(Wy,_.C8);var CPp=_.GNO(Wy);Wy.messageId="bfkj";var Rgy=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Rgy,_.C8);var KY_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(KY_,_.C8);var FYQ=_.hR(KY_);_.CT=function(){var N=this;this.promise=new Promise(function(t,O){N.resolve=t;N.reject=O})};_.EP=function(N){_.k1.call(this);var t=this;this.vIs=Math.floor(Math.random()*200);this.dMI=new KY_;if("challenge"in N&&CPp(N.challenge)){var O=_.YD(N.challenge,4,void 0,P0);var H=_.YD(N.challenge,5,void 0,P0);_.YD(N.challenge,7,void 0,P0)&&(this.dMI=FYQ(_.YD(N.challenge,7,void 0,P0)))}else O=N.program,H=N.globalName;this.addOnDisposeCallback(function(){var b,z,w;return _.K(function(P){if(P.nextAddress==1)return P.yield(t.dKN,2);b=P.yieldResult;z=b.tMY;(w=z)==null||w();_.Ty(P)})});
this.qv=bFv(N.eOu||{},this.dMI);_.L1(this,this.qv);var A=new _.CT;this.dKN=A.promise;this.qv.sG("t");var Z=this.qv.share(),U=new AeR(Z,"t"),C=function(b,z,w,P){if(!t.qv.isDisposed()){var x="k";z?x="h":w&&(x="u");x!=="k"?P!==0&&(t.qv.sG(x),t.qv.j3(x,b)):t.vIs<=0?(t.qv.sG(x),t.qv.j3(x,b),t.vIs=Math.floor(Math.random()*200)):t.vIs--}},F=function(b,z,w,P){Promise.resolve().then(function(){U.done();
Z.ck();Z.dispose();A.resolve({p4L:b,tMY:z,r59:w,t5d:P})})};
if(!_.H4[H])throw this.qv.logError(25),Error("Ca");if(!_.H4[H].a)throw this.qv.logError(26),Error("Da");try{var g=_.H4[H].a;H=[];for(var B=[],c=vlt(this.dMI),u=0;u<c.length;u++)H.push(c[u]),B.push(1);var S=JOS(this.dMI);for(c=0;c<S.length;c++)H.push(S[c]),B.push(2);this.u9f=_.D(g(O,F,!0,N.opt,C,[H,B],_.YD(this.dMI,5),!1)).next().value;this.rCc=A.promise.then(function(){})}catch(b){throw this.qv.logError(28),b;
}};
_.p(_.EP,_.k1);_.EP.prototype.snapshot=function(N){if(this.isDisposed())throw Error("Ea");this.qv.sG("n");var t=this.qv.share();return this.dKN.then(function(O){var H=O.p4L;return new Promise(function(A){var Z=new AeR(t,"n");H(function(U){Z.done();t.mPE(U.length);t.ck();t.dispose();A(U)},[N.iF,
N.x3N,N.waR,N.xVK])})})};
_.EP.prototype.l7u=function(N){this.dKN.then(function(t){var O;(O=t.r59)==null||O(N)})};
_.EP.prototype.zeH=function(N,t){return this.dKN.then(function(O){var H;return(H=O.t5d)==null?void 0:H(N,t,!1)})};
_.EP.prototype.pUC=function(){return this.qv.share()};var dHr=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(dHr,_.C8);var jnt=_.GNO(dHr);var gvp=function(){this.promises={};this.wFW=null},yeu=function(){gvp.instance||(gvp.instance=new gvp);
return gvp.instance},ceS=function(N,t){return BES(N,_.Sg(t,rjv,1,P0),_.Sg(t,_.IMx,2,P0),_.YD(t,3,void 0,P0))},BES=function(N,t,O,H){if(!t&&!O)return Promise.resolve();
if(!H)return a9t(t,O);var A;(A=N.promises)[H]||(A[H]=new Promise(function(Z,U){a9t(t,O).then(function(){N.wFW=H;Z()},function(C){delete N.promises[H];
U(C)})}));
return N.promises[H]};var $HR=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p($HR,_.C8);var jDX=function(N,t){return _.rv(N,1,t)},iFE=function(N,t){return _.rv(N,2,t)};var Gk=function(N){_.k1.call(this);var t=this;this.options=N;this.ym2=new _.CT;this.rCc=this.ym2.promise;this.bGy=new _.CT;this.v4c=1;this.kSC=new _.CT;this.zFu=[];this.z5E=N.z5E||function(){};
this.f1c=new ZFR(bFv(N.eOu||{}));ueQ(this,N.iM,N.iFt,N.hOe,N.ttN,Object.assign({},Syf,N.qnu||{}));this.addOnDisposeCallback(function(){return void heQ(t)})};
_.p(Gk,_.k1);Gk.prototype.snapshot=function(N){var t=this;return _.K(function(O){switch(O.nextAddress){case 1:if(t.isDisposed())throw Error("Ea");if(t.ct||t.jqW){O.jumpTo(2);break}return O.yield(t.bGy.promise,2);case 2:if(!t.ct){O.jumpTo(4);break}return O.yield(t.ct.snapshot(N),5);case 5:return O.return(O.yieldResult);case 4:throw t.jqW;}})};
var Moa=function(N){var t;return _.K(function(O){if(N.isDisposed())throw Error("Ea");(t=N.u0)!=null&&(t.endTimeMs=0,t.resolver(1));return O.yield(N.kSC.promise,0)})},heQ=function(N){N.jqW=Error("Ga");
N.bGy.resolve();olS(N.ym2.promise);N.ym2.reject(Error("Ga"));N.f1c.dispose();Promise.all(N.zFu).then(function(){var O;return _.K(function(H){(O=N.ct)==null||O.dispose();N.ct=void 0;_.Ty(H)})});
N.zFu=[];var t;(t=N.u0)!=null&&(t.endTimeMs=0,t.resolver(1));olS(N.kSC.promise);N.kSC.reject(Error("Ga"))};
Gk.prototype.l7u=function(N){var t,O;(t=this.ct)==null||(O=t.l7u)==null||O.call(t,N)};
Gk.prototype.zeH=function(N,t){var O,H,A;return(A=(O=this.ct)==null?void 0:(H=O.zeH)==null?void 0:H.call(O,N,t))!=null?A:Promise.resolve()};
var bFr=function(N,t){var O=N.z5E;N.z5E=function(){O();t()}},pY0=function(N,t){N.isDisposed()||(N.ct=t,N.f1c.update(t.pUC()),N.bGy.resolve(),N.ym2.resolve(void 0),N.z5E())};
Gk.prototype.handleError=function(N){if(!this.isDisposed()){this.jqW=N;this.bGy.resolve();var t,O;(O=(t=this.options).rOY)==null||O.call(t,N)}};
var LYX=function(N,t){t&&(Promise.all(N.zFu).then(function(){return void t.dispose()}),N.zFu=[])},R7=function(N,t){N.v4c=t;
var O,H;(H=(O=N.options).ku9)==null||H.call(O,t)},ze_=function(N){N.isDisposed()||(N.kSC.resolve(),N.kSC=new _.CT)},ueQ=function(N,t,O,H,A,Z){H=H===void 0?yeu():H;
A=A===void 0?Promise.resolve(void 0):A;var U,C,F,g,B,c,u,S,b,z,w,P;_.K(function(x){switch(x.nextAddress){case 1:return x.yield(0,3);case 3:C=null;if(!U){x.jumpTo(6);break}R7(N,7);_.Mo(x,7);return x.yield(PA(U.snapshot({}),Z.wm9,function(){return Promise.resolve("E:CTO")}),9);
case 9:C=x.yieldResult;_.Do(x,6);break;case 7:_.ax(x),C="E:UCE";case 6:F=void 0,g=U?Z.wfl:Z.mSd,B=new hI(g,Z.ymd,Z.vvL,Z.eCt),c=1;case 10:if(!(c<=Z.maxAttempts)){x.jumpTo(12);break}if(c===1){x.jumpTo(13);break}R7(N,0);N.u0=new Yyy(B.getValue(),Z.mxK,Z.tw9);return x.yield(N.u0.promise,14);case 14:u=x.yieldResult,N.u0=void 0,u===1?(c=1,B.reset()):nMp(B);case 13:_.Mo(x,15);S=void 0;if(O){S=O;x.jumpTo(17);break}R7(N,5);b=H.wFW;return x.yield(PA(a9f(t,b,C),Z.vQs,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:S=x.yieldResult;case 17:return R7(N,3),x.yield(PA(ceS(H,S),Z.kke,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return R7(N,8),x.yield(A,20);case 20:return z=new _.EP({challenge:S,eOu:N.options.eOu,opt:N.options.opt}),x.yield(PA(z.rCc,Z.fag,function(){return Promise.reject(Error("Ja"))}),21);
case 21:F=z;x.jumpTo(12);break;case 15:w=_.ax(x),N.handleError(w),ze_(N);case 11:c++;x.jumpTo(10);break;case 12:if(N.isDisposed()){x.jumpTo(5);break}F&&(O=void 0,LYX(N,U),U=F,pY0(N,F),ze_(N));R7(N,2);N.u0=new Yyy(Z.sus,Z.mxK,Z.tw9);return x.yield(N.u0.promise,22);case 22:N.u0=void 0;if(N.isDisposed()){x.jumpTo(5);break}x.jumpTo(3);break;case 5:(P=U)==null||P.dispose(),_.Ty(x)}})};
Gk.prototype.pUC=function(){return this.f1c.share()};
var Syf={sus:432E5,mxK:3E5,tw9:10,wm9:1E4,vQs:3E4,kke:3E4,fag:6E4,mSd:1E3,wfl:6E4,ymd:6E5,vvL:.25,eCt:2,maxAttempts:10},Yyy=function(N,t,O){var H=this;this.endTimeMs=Date.now()+N;this.promise=new Promise(function(Z){H.resolver=Z});
var A=function(){var Z=H.endTimeMs-Date.now();Z<=O?H.resolver(0):setTimeout(A,Math.min(Z,t))};
A()};var TEX,eel=(TEX=Math.imul)!=null?TEX:function(N,t){return N*t|0},X$=[196,
200,224,18],vG=function(N,t,O){O=O===void 0?[]:O;this.maxItems=N;this.uM=t===void 0?0:t;this.zx=O},wY0=function(N){var t=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!t)return new vG(N);var O=t.split(",");if(O.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new vG(N);t=O.slice(1);t.length===1&&t[0]===""&&(t=[]);O=Number(O[0]);return isNaN(O)||O<0||O>t.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new vG(N)):new vG(N,O,t)};
vG.prototype.serialize=function(){return String(this.uM)+","+this.zx.join()};
vG.prototype.insert=function(N,t){var O=void 0;if(this.zx[this.uM]!==N){var H=this.zx.indexOf(N);H!==-1?(this.zx.splice(H,1),H<this.uM&&this.uM--,this.zx.splice(this.uM,0,N)):(O=this.zx[this.uM],this.zx[this.uM]=N)}this.uM=(this.uM+1)%this.maxItems;N=TEx("iU5q-!O9@$",this.serialize());O&&N&&t(O);return N};
var eeQ=function(N,t){this.aqE=t;try{var O=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(H){O=!1}O&&(this.index=wY0(N))},PPY=function(N,t,O,H,A){var Z=N.index?_.m0(N.aqE,function(){return kpz(N.index,XYO(t),O,H,A)},"W"):"u";
N.aqE.vmu(Z)},XYB=function(N,t,O){var H=_.D(N.index?_.m0(N.aqE,function(){return qyv(XYO(t),O)},"R"):["u"]),A=H.next().value;
H=H.next().value;N.aqE.y4E(A);return H};var xHa={toString:function(N){var t=[],O=0;N-=-2147483648;t[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(N%52);for(N=Math.floor(N/52);N>0;)t[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(N%62),N=Math.floor(N/62);return t.join("")}};var f9u=function(N){N=kpy(N);for(var t=2654435769,O=2654435769,H=314159265,A=N.length,Z=A,U=0,C=function(){t-=O;t-=H;t^=H>>>13;O-=H;O-=t;O^=t<<8;H-=t;H-=O;H^=O>>>13;t-=O;t-=H;t^=H>>>12;O-=H;O-=t;O^=t<<16;H-=t;H-=O;H^=O>>>5;t-=O;t-=H;t^=H>>>3;O-=H;O-=t;O^=t<<10;H-=t;H-=O;H^=O>>>15};Z>=12;Z-=12,U+=12)t+=qyr(N,U),O+=qyr(N,U+4),H+=qyr(N,U+8),C();
H+=A;switch(Z){case 11:H+=N[U+10]<<24;case 10:H+=N[U+9]<<16;case 9:H+=N[U+8]<<8;case 8:O+=N[U+7]<<24;case 7:O+=N[U+6]<<16;case 6:O+=N[U+5]<<8;case 5:O+=N[U+4];case 4:t+=N[U+3]<<24;case 3:t+=N[U+2]<<16;case 2:t+=N[U+1]<<8;case 1:t+=N[U]}C();return xHa.toString(H)},kpy=function(N){for(var t=[],O=0;O<N.length;O++)t.push(N.charCodeAt(O));
return t},qyr=function(N,t){return N[t]+(N[t+1]<<8)+(N[t+2]<<16)+(N[t+3]<<24)};var J$=function(N){_.k1.call(this);this.sU=N;this.kD7=new _.CT};
_.p(J$,_.k1);var nvX=function(N,t){var O=setTimeout(function(){N.kD7.resolve()},t);
N.addOnDisposeCallback(function(){return void clearTimeout(O)})};
J$.prototype.wWC=function(N,t){var O=this.jW(N);t==null||t(O);return _.m0(this.sU,function(){return _.wi(O,2)},this.j52)};
var WYB=function(N,t,O,H){return _.m0(N.sU,function(){return O?N.wWC(t,H):N.jW(t,H)},N.m7y)},reZ=function(N,t,O,H){J$.call(this,N);
this.fD2=t;this.ugg=O;this.m7y="m";this.j52="x";this.ddW=0;nvX(this,H)};
_.p(reZ,J$);reZ.prototype.jW=function(N,t){var O=this;this.sU.sG(this.m7y);++this.ddW>=this.ugg&&this.kD7.resolve();var H=N();N=_.m0(this.sU,function(){return O.fD2(H)},"C");
if(N===void 0)throw new g3(17,"YNJ:Undefined");if(!(N instanceof Uint8Array))throw new g3(18,"ODM:Invalid");t==null||t(N);return N};
var I9X=function(N,t,O){J$.call(this,N);this.wcs=t;this.m7y="f";this.j52="z";nvX(this,O)};
_.p(I9X,J$);I9X.prototype.jW=function(){return this.wcs};
var l9y=function(N,t,O){J$.call(this,N);this.yjK=t;this.m7y="w";this.j52="z";nvX(this,O)};
_.p(l9y,J$);l9y.prototype.jW=function(){var N=this;return _.m0(this.sU,function(){return _.Jg(N.yjK)},"d")};
l9y.prototype.wWC=function(){return this.yjK};
var QDZ=function(N,t){J$.call(this,N);this.error=t;this.m7y="e";this.j52="y"};
_.p(QDZ,J$);var mHY=function(N,t){var O=(t(N.error.message)+":"+t(N.error.stack)).substring(0,2048);t=O.length+1;O=f9g(O);var H=new Uint8Array(4+O.length);H.set([42,t&127|128,t>>7,N.error.code]);H.set(O,4);return H};
QDZ.prototype.jW=function(){if(this.rxR)return this.rxR;this.rxR=mHY(this,function(N){return"_"+f9u(N)});
return mHY(this,function(N){return N})};
var EvQ=function(N,t,O){J$.call(this,N);this.sPl=t;this.clientState=O;this.m7y="S";this.j52="q"};
_.p(EvQ,J$);EvQ.prototype.jW=function(){var N=Math.floor(Date.now()/1E3),t=[Math.random()*255,Math.random()*255],O=t.concat([this.sPl&255,this.clientState],[N>>24&255,N>>16&255,N>>8&255,N&255]);N=new Uint8Array(2+O.length);N[0]=34;N[1]=O.length;N.set(O,2);O=N.subarray(2);for(var H=t=t.length;H<O.length;++H)O[H]^=O[H%t];this.sU.fh7(this.clientState);return N};var GpS={fke:3E4,c9g:2E4},o7=function(N){_.k1.call(this);var t=this;this.naC=new _.CT;this.ks7=0;this.cD=void 0;this.state=2;this.vm=N.vm;this.iM=N.iM;this.qnu=Object.assign({},GpS,N.qnu||{});this.gf=N.vm.pUC();var O;this.onError=(O=N.onError)!=null?O:function(){};
this.sOO=N.sOO||!1;if(ReB(N)){var H=this.vm;this.isW=function(){return Moa(H).catch(function(U){U=t.reportError(new g3(t.t9?20:32,"TRG:Disposed",U));t.cD=U;var C;(C=t.t9)==null||C.dispose();t.t9=void 0;t.naC.reject(U)})};
bFr(H,function(){return void vvu(t)});
H.v4c===2&&vvu(this)}else this.isW=N.iv6,vvu(this);var A=this.gf.share();A.sG("o");var Z=new AeR(A,"o");this.naC.promise.then(function(){Z.done();A.ck();A.dispose()},function(){return void A.dispose()});
this.addOnDisposeCallback(function(){t.t9?(t.t9.dispose(),t.t9=void 0):t.cD?t.gf.ck():(t.cD=t.reportError(new g3(32,"TNP:Disposed")),t.gf.ck(),t.naC.reject(t.cD))});
_.L1(this,this.gf)};
_.p(o7,_.k1);o7.prototype.kQT=function(){return this.naC.promise};
var JeY=function(N,t){if(!(t instanceof g3))if(t instanceof _.WG){var O=Error(t.toString());O.stack=t.stack;t=new g3(11,"EBH:Error",O)}else t=new g3(12,"BSO:Unknown",t);return N.reportError(t)},vvu=function(N){var t,O,H,A,Z,U,C,F,g,B,c,u,S,b,z;
return _.K(function(w){switch(w.nextAddress){case 1:t=void 0;N.ks7++;O=new _.CT;N.vm instanceof Gk&&N.vm.zFu.push(O.promise);if(!N.sOO){w.jumpTo(2);break}H=new _.CT;setTimeout(function(){return void H.resolve()});
return w.yield(H.promise,2);case 2:return A=N.gf.share(),_.Mo(w,4,5),N.state=5,Z={},U=[],w.yield(PA(N.vm.snapshot({iF:Z,waR:U}),N.qnu.c9g,function(){return Promise.reject(new g3(15,"MDA:Timeout"))}),7);
case 7:C=w.yieldResult;if(N.isDisposed())throw new g3(N.t9?20:32,"MDA:Disposed");F=U[0];N.state=6;return w.yield(PA(ovR(N.iM,C),N.qnu.fke,function(){return Promise.reject(new g3(10,"BWB:Timeout"))}),8);
case 8:g=w.yieldResult;if(N.isDisposed())throw new g3(N.t9?20:32,"BWB:Disposed");N.state=7;t=_.m0(A,function(){var x=sDu(N,g,O,F);x.kD7.promise.then(function(){return void N.isW()});
return x},"i");
case 5:_.pU(w);A.dispose();_.YC(w,6);break;case 4:B=_.ax(w);(c=t)==null||c.dispose();if(!N.cD){u=JeY(N,B);O.resolve();var P;if(P=N.vm instanceof Gk&&N.ks7<2)a:if(B instanceof g3)P=B.code!==32&&B.code!==20&&B.code!==10;else{if(B instanceof _.WG)switch(B.code){case 2:case 13:case 14:case 4:break;default:P=!1;break a}P=!0}if(P)return S=(1+Math.random()*.25)*(N.t9?6E4:1E3),b=setTimeout(function(){return void N.isW()},S),N.addOnDisposeCallback(function(){return void clearTimeout(b)}),w.return();
N.cD=u}A.logError(N.t9?13:14);N.naC.reject(N.cD);return w.return();case 6:N.state=8,N.ks7=0,(z=N.t9)==null||z.dispose(),N.t9=t,N.naC.resolve(),_.Ty(w)}})},sDu=function(N,t,O,H){var A=X0R(t,2)*1E3;
if(A<=0)throw new g3(31,"TTM:Invalid");if(_.YD(t,4))return new l9y(N.gf,_.YD(t,4),A);if(!X0R(t,3))return new I9X(N.gf,$yZ(_.iC(t,1)),A);if(!H)throw new g3(4,"PMD:Undefined");H=H($yZ(_.iC(t,1)));if(!(H instanceof Function))throw new g3(16,"APF:Failed");N.bqt=Math.floor((Date.now()+A)/1E3);N=new reZ(N.gf,H,X0R(t,3),A);N.addOnDisposeCallback(function(){return void O.resolve()});
return N};
o7.prototype.jW=function(N){return NrB(this,Object.assign({},N),!1)};
o7.prototype.wWC=function(N){return NrB(this,Object.assign({},N),!0)};
o7.prototype.wcx=function(N){if(N>150)return!1;try{return this.cache=new eeQ(N,this.gf),!0}catch(t){return this.reportError(new g3(22,"GBJ:init",t)),!1}};
o7.prototype.reportError=function(N){this.gf.logError(N.code);this.onError(N);return N};
var tgB=function(N,t){t=t instanceof g3?t:new g3(5,"TVD:error",t);return N.reportError(t)},NrB=function(N,t,O){try{if(N.isDisposed())throw new g3(21,"BNT:disposed");
if(!N.t9&&N.cD)throw N.cD;var H,A;return(A=(H=Ozu(N,t,O))!=null?H:Hzu(N,t,O))!=null?A:ArS(N,t,O)}catch(Z){if(!t.aTR)throw tgB(N,Z);return Zzy(N,O,Z)}},Ozu=function(N,t,O){var H;
return(H=N.t9)==null?void 0:WYB(H,function(){return Vgy(N,t)},O,function(A){var Z;
if(N.t9 instanceof reZ&&((Z=t.u3)==null?0:Z.lrl))try{var U;(U=N.cache)==null||PPY(U,Vgy(N,t),A,t.u3.m8I,N.bqt-120)}catch(C){N.reportError(new g3(24,"ELX:write",C))}})},Hzu=function(N,t,O){var H;
if((H=t.u3)!=null&&H.bUG)try{var A,Z=(A=N.cache)==null?void 0:XYB(A,Vgy(N,t),t.u3.m8I);return Z?O?_.m0(N.gf,function(){return _.wi(Z,2)},"a"):Z:void 0}catch(U){N.reportError(new g3(23,"RXO:read",U))}},ArS=function(N,t,O){var H={stack:[],
error:void 0,hasError:!1};try{if(!t.uZs)throw new g3(29,"SDF:notready");return WYB(iN_(H,new EvQ(N.gf,0,N.state)),function(){return Vgy(N,t)},O)}catch(A){H.error=A,H.hasError=!0}finally{uOX(H)}},Zzy=function(N,t,O){var H={stack:[],
error:void 0,hasError:!1};try{var A=tgB(N,O);return WYB(iN_(H,new QDZ(N.gf,A)),function(){return[]},t)}catch(Z){H.error=Z,H.hasError=!0}finally{uOX(H)}},Vgy=function(N,t){return t.n2E?t.n2E:t.iF?_.m0(N.gf,function(){return t.n2E=f9g(t.iF)},"c"):[]},ReB=function(N){return xX(function(t){if(!yo(t))return!1;
for(var O=_.D(Object.entries(N)),H=O.next();!H.done;H=O.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;if(!(H in t)){if(A.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!A(t[H]))return!1}return!0})}({vm:function(N){return xX(function(t){return t instanceof N})}(Gk)},"");var DVy=function(){var N=_.Zm();this.JSC$10069_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",jR("cookie_enabled"),jR("cookie_3p_enabled"),_.uu("browser"))};
DVy.prototype.increment=function(N,t,O){this.JSC$10069_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",N,t,O)};
var JXG=function(){var N=_.Zm();this.JSC$10093_streamzService=N;N.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",iu("tick"),jR("from_st_cookie"))};
JXG.prototype.increment=function(N,t){this.JSC$10093_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",N,t)};
var UVQ=function(){var N=_.Zm();this.JSC$10099_streamzService=N;N.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.uu("status"))};
UVQ.prototype.increment=function(N){this.JSC$10099_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",N)};
var C0_=function(){var N=_.Zm();this.JSC$10102_streamzService=N;N.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.uu("stage"),jR("is_using_ytd_player"),jR("has_expandable_tiles"))};
C0_.prototype.increment=function(N,t,O){this.JSC$10102_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",N,t,O)};
var K8p=function(){var N=_.Zm();this.JSC$10105_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/response_signature",_.uu("check_status"))};
K8p.prototype.increment=function(N){this.JSC$10105_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/response_signature",N)};
var F8E=function(){var N=_.Zm();this.JSC$10108_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.uu("sig"),iu("de"))};
F8E.prototype.increment=function(N,t){this.JSC$10108_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/e_sig_log",N,t)};
var dVZ=function(){var N=_.Zm();this.JSC$10111_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.uu("sig"),iu("de"))};
dVZ.prototype.increment=function(N,t){this.JSC$10111_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/e_sig_en",N,t)};
_.g2r=function(){var N=_.Zm();this.JSC$10114_streamzService=N;N.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.uu("action"))};
_.g2r.prototype.increment=function(N){this.JSC$10114_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/web/enforcement_intent",N)};var sP=window;var yrB=(new Date).getTime();_.WW.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.WW.createSet("action","cite","data","formaction","href","manifest","poster","src");var BrB=function(N){this.servicePromise_=N;N.then((0,_.qn)(function(){},this),function(){},this)},crB=function(N,t,O){N.servicePromise_.then(function(H){var A=H[t];
if(!A)throw Error("Ka`"+t);return A.apply(H,O)})},izZ=function(N,t,O){for(var H=Array(arguments.length-2),A=2;A<arguments.length;A++)H[A-2]=arguments[A];
A=$Va(N,t).then(function(Z){return Z.apply(null,H)},function(Z){Z=Error("La`"+t+"`"+N+"`"+Z,{cause:Z});
delete jkB[t];return _.M2(Z)});
return new BrB(A)},jkB={},$Va=function(N,t){var O=jkB[t];
if(O)return O;O=(O=_.s2(t))?_.Hc(O):(new _.TW(function(H,A){var Z=(new P1(document)).createElement("SCRIPT");Z.async=!0;_.UG(Z,_.wD(yDR(N)));Z.onload=Z.onreadystatechange=function(){Z.readyState&&Z.readyState!="loaded"&&Z.readyState!="complete"||H()};
Z.onerror=function(U){A(Error("Ma`"+t+"`"+N,{cause:U}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(Z)})).then(function(){var H=_.s2(t);
if(!H)throw Error("Na`"+t+"`"+N);return H});
return jkB[t]=O};var ucQ={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},hAy=function(){var N=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=nvx(function(){return _.K(function(t){if(t.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?t.return(Promise.resolve()):t.yield(Sv0(N),2);N.rsaForList.length>
0&&document.addEventListener("click",N.requestAccessForHelpPanel);_.Ty(t)})});
this.requestAccessForHelpPanel=function(){if(!(N.rsaForPromises.length>0)){for(var t=_.D(N.rsaForList),O=t.next();!O.done;O=t.next()){O=O.value;try{N.rsaForPromises.push(document.requestStorageAccessFor(O))}catch(H){}}Promise.all(N.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){N.reset()})}}};
hAy.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Sv0=function(N){var t,O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:t=_.D(Object.values(ucQ)),O=t.next();case 2:if(O.done){Z.jumpTo(0);break}H=O.value;_.Mo(Z,5);return Z.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:H}),7);case 7:A=Z.yieldResult;A.state!=="granted"&&N.rsaForList.push(H);_.Do(Z,3);break;case 5:_.ax(Z);Z.jumpTo(0);break;case 3:O=t.next(),Z.jumpTo(2)}})};(new hAy).initialize();var Mga=function(N){this.JSC$10128_loader_=N};
Mga.prototype.startHelp=function(N){crB(this.JSC$10128_loader_,"startHelp",arguments)};
Mga.prototype.JSC$10130_loadChatSupport=function(N){crB(this.JSC$10128_loader_,"loadChatSupport",arguments)};
var paa=function(N,t){t=t||{};N=izZ(bzR,"help.service.Lazy.create",N,{apiKey:t.apiKey||t.apiKey,asxUiUri:t.asxUiUri||t.asxUiUri,environment:t.environment||t.environment,flow:t.flow||t.flow,frdProductData:t.frdProductData||t.frdProductData,frdProductDataSerializedJspb:t.frdProductDataSerializedJspb||t.frdProductDataSerializedJspb,helpCenterPath:t.helpCenterPath||t.helpCenterPath,locale:t.locale||t.locale||"en-US".replace(/-/g,"_"),nonce:t.nonce||t.nonce,productData:t.productData||t.productData,receiverUri:t.receiverUri||
t.receiverUri,renderApiUri:t.renderApiUri||t.renderApiUri,theme:t.theme||t.theme,window:t.window||t.window});return new Mga(N)},bzR=new s7(QMy,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var L8X=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(L8X,_.C8);var zAX=_.hR(L8X);var YvR=[0,_.sd,Ed,bnX];_.aoE=new function(N,t,O,H){this.configType=N;this.flagName=O;this.defaultValue=H;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 waZ=function(){this.retriever=_.cY().resolve(Trp)};_.Jq={get payments(){return window.payments}};reG(Node);reG(Element);var eA0=reG(HTMLElement);reG(SVGElement);var P0R,XaZ,ON,xVu;P0R=function(N){return typeof N.className=="string"?N.className:N.getAttribute&&N.getAttribute("class")||""};
XaZ=function(N){return N.classList?N.classList:P0R(N).match(/\S+/g)||[]};
_.NK=function(N,t){typeof N.className=="string"?N.className=t:N.setAttribute&&N.setAttribute("class",t)};
_.t8=function(N,t){return N.classList?N.classList.contains(t):_.W4(XaZ(N),t)};
_.mw=function(N,t){if(N.classList)N.classList.add(t);else if(!_.t8(N,t)){var O=P0R(N);_.NK(N,O+(O.length>0?" "+t:t))}};
ON=function(N,t){if(N.classList)Array.prototype.forEach.call(t,function(A){_.mw(N,A)});
else{var O={};Array.prototype.forEach.call(XaZ(N),function(A){O[A]=!0});
Array.prototype.forEach.call(t,function(A){O[A]=!0});
t="";for(var H in O)t+=t.length>0?" "+H:H;_.NK(N,t)}};
_.lb=function(N,t){N.classList?N.classList.remove(t):_.t8(N,t)&&_.NK(N,Array.prototype.filter.call(XaZ(N),function(O){return O!=t}).join(" "))};
xVu=function(N,t){N.classList?Array.prototype.forEach.call(t,function(O){_.lb(N,O)}):_.NK(N,Array.prototype.filter.call(XaZ(N),function(O){return!_.W4(t,O)}).join(" "))};var kBB=function(N){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=N.document},n2p=function(N,t){qvQ(N);
var O=document.createElement("div"),H;(H=t.parentNode)==null||H.insertBefore(O,t);O.tabIndex=0;O.id="fc-focus-trap-pre-div";O=document.createElement("div");var A;(A=t.parentNode)==null||A.insertBefore(O,t.nextSibling);O.tabIndex=0;O.id="fc-focus-trap-post-div";var Z=fou(N,t),U=fou(N,t,!0);Z&&U&&(N.focusChangeHandler=function(){var C=N.document.activeElement;if(C)if(_.oP(t,C))N.previouslyFocusedElement=C;else if(C===N.document.activeElement)switch(N.previouslyFocusedElement){case Z:U.focus();N.previouslyFocusedElement=
U;break;default:Z.focus(),N.previouslyFocusedElement=Z}},N.document.addEventListener("focus",N.focusChangeHandler,!0),N.document.addEventListener("focusin",N.focusChangeHandler))},qvQ=function(N){N.focusChangeHandler&&(document.removeEventListener("focus",N.focusChangeHandler,!0),document.removeEventListener("focusin",N.focusChangeHandler),N.focusChangeHandler=null);
var t;(t=document.getElementById("fc-focus-trap-pre-div"))==null||t.remove();var O;(O=document.getElementById("fc-focus-trap-post-div"))==null||O.remove()},W8f=function(N,t,O,H,A){O=O===void 0?!0:O;
var Z;A=(Z=A===void 0?null:A)!=null?Z:fou(N,t,H===void 0?!1:H);A!==null&&(A.focus(),O&&n2p(N,t))};
kBB.prototype.disableButton=function(N,t){t=t===void 0?null:t;N.disabled=!0;t&&_.mw(N,t)};
var fou=function(N,t,O){O=O===void 0?!1:O;if(CbN(t)&&!O)return t;var H=O?[].slice.call(t.children,0).reverse():t.children;H=_.D(H);for(var A=H.next();!A.done;A=H.next())if(A=A.value,eA0(A)&&(A=fou(N,A,O)))return A;return CbN(t)&&O?t:null};var rr0=function(N){this.originalBodyOverflow="";this.JSC$10155_domHelper=eu(N);var t;this.isScrollingEnabled=((t=this.JSC$10155_domHelper.JSC$9481_document_.body)==null?void 0:t.style.overflow)!=="hidden"};
rr0.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10155_domHelper.JSC$9481_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.Od(_.f1,_.k1);_.V=_.f1.prototype;_.V.JSC$10158_id_=0;_.V.disposeInternal=function(){_.f1.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10156_listener_;delete this.handler_};
_.V.start=function(N){this.stop();this.JSC$10158_id_=nV(this.callback_,N!==void 0?N:this.JSC$10156_interval_)};
_.V.stop=function(){this.isActive()&&_.H4.clearTimeout(this.JSC$10158_id_);this.JSC$10158_id_=0};
_.V.fire=function(){this.stop();this.JSC$10158_doAction_()};
_.V.isActive=function(){return this.JSC$10158_id_!=0};
_.V.JSC$10158_doAction_=function(){this.JSC$10158_id_=0;this.JSC$10156_listener_&&this.JSC$10156_listener_.call(this.handler_)};_.MT=function(N){_.k1.call(this);this.handler_=N;this.JSC$10159_keys_={}};
_.Od(_.MT,_.k1);var IoS=[];_.MT.prototype.listen=function(N,t,O,H){Array.isArray(t)||(t&&(IoS[0]=t.toString()),t=IoS);for(var A=0;A<t.length;A++){var Z=_.SF(N,t[A],O||this.handleEvent,H||!1,this.handler_||this);if(!Z)break;this.JSC$10159_keys_[Z.key]=Z}return this};
_.MT.prototype.listenOnce=function(N,t,O,H){return lor(this,N,t,O,H)};
var lor=function(N,t,O,H,A,Z){if(Array.isArray(O))for(var U=0;U<O.length;U++)lor(N,t,O[U],H,A,Z);else{t=$J(t,O,H||N.handleEvent,A,Z||N.handler_||N);if(!t)return N;N.JSC$10159_keys_[t.key]=t}return N};
_.MT.prototype.unlisten=function(N,t,O,H,A){if(Array.isArray(t))for(var Z=0;Z<t.length;Z++)this.unlisten(N,t[Z],O,H,A);else if(N=glB(N,t,O||this.handleEvent,_.mG(H)?!!H.capture:!!H,A||this.handler_||this))jF(N),delete this.JSC$10159_keys_[N.key];return this};
_.MT.prototype.removeAll=function(){_.WW.forEach(this.JSC$10159_keys_,function(N,t){this.JSC$10159_keys_.hasOwnProperty(t)&&jF(N)},this);
this.JSC$10159_keys_={}};
_.MT.prototype.disposeInternal=function(){_.MT.superClass_.disposeInternal.call(this);this.removeAll()};
_.MT.prototype.handleEvent=function(){throw Error("Oa");};var HL=function(){_.k1.call(this);this.services_={}};
_.Od(HL,_.k1);HL.prototype.connect=function(N){N&&N()};
HL.prototype.isConnected=function(){return!0};
HL.prototype.registerService=function(N,t,O){this.services_[N]={callback:t,objectPayload:!!O}};
HL.prototype.getService=function(N,t){var O=this.services_[N];return O?O:this.defaultService_?{callback:_.Fu(this.defaultService_,N),objectPayload:_.mG(t)}:null};
var QkS=function(N,t){if(t&&typeof N==="string")try{return JSON.parse(N)}catch(O){return null}else if(!t&&typeof N!=="string")return(0,_.r3)(N);return N};
HL.prototype.disposeInternal=function(){HL.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 A8=function(N,t){this.sequence_=[];this.onCancelFunction_=N;this.defaultScope_=t||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};
A8.prototype.cancel=function(N){if(this.fired_)this.result_ instanceof A8&&this.result_.cancel();else{if(this.parent_){var t=this.parent_;delete this.parent_;N?t.cancel(N):(t.branches_--,t.branches_<=0&&t.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Zj(this))}};
A8.prototype.continue_=function(N,t){this.blocked_=!1;mVZ(this,N,t)};
var mVZ=function(N,t,O){N.fired_=!0;N.result_=O;N.hadError_=!t;E2E(N)},RAZ=function(N){if(N.fired_){if(!N.silentlyCanceled_)throw new GBS(N);
N.silentlyCanceled_=!1}};
A8.prototype.callback=function(N){RAZ(this);mVZ(this,!0,N)};
A8.prototype.errback=function(N){RAZ(this);mVZ(this,!1,N)};
var v2Q=function(N,t,O){V1(N,t,null,O)};
A8.prototype.finally=function(N){var t=this;return Jrp(new Promise(function(O,H){V1(t,function(A){N();O(A)},function(A){N();
H(A)})}))};
var V1=function(N,t,O,H){var A=N.fired_;A||(t===O?t=O=xF(t):(t=xF(t),O=xF(O)));N.sequence_.push([t,O,H]);A&&E2E(N)};
A8.prototype.then=function(N,t,O){var H,A,Z=new _.TW(function(U,C){A=U;H=C});
V1(this,A,function(U){U instanceof Zj?Z.cancel():H(U);return o2r},this);
return Z.then(N,t,O)};
S2S(A8);var skp=function(N,t){t instanceof A8?v2Q(N,(0,_.qn)(t.branch,t)):v2Q(N,function(){return t})};
A8.prototype.branch=function(N){var t=new A8;V1(this,t.callback,t.errback,t);N&&(t.parent_=this,this.branches_++);return t};
A8.prototype.isError=function(N){return N instanceof Error};
var NaS=function(N){return U7(N.sequence_,function(t){return typeof t[1]==="function"})},o2r={},E2E=function(N){if(N.unhandledErrorId_&&N.fired_&&NaS(N)){var t=N.unhandledErrorId_,O=tO0[t];
O&&(_.H4.clearTimeout(O.JSC$10176_id_),delete tO0[t]);N.unhandledErrorId_=0}N.parent_&&(N.parent_.branches_--,delete N.parent_);t=N.result_;for(var H=O=!1;N.sequence_.length&&!N.blocked_;){var A=N.sequence_.shift(),Z=A[0],U=A[1];A=A[2];if(Z=N.hadError_?U:Z)try{var C=Z.call(A||N.defaultScope_,t);C===o2r&&(C=void 0);C!==void 0&&(N.hadError_=N.hadError_&&(C==t||N.isError(C)),N.result_=t=C);if(hgZ(t)||typeof _.H4.Promise==="function"&&t instanceof _.H4.Promise)H=!0,N.blocked_=!0}catch(F){t=F,N.hadError_=
!0,NaS(N)||(O=!0)}}N.result_=t;H&&(C=(0,_.qn)(N.continue_,N,!0),H=(0,_.qn)(N.continue_,N,!1),t instanceof A8?(V1(t,C,H),t.blocking_=!0):t.then(C,H));O&&(t=new ObY(t),tO0[t.JSC$10176_id_]=t,N.unhandledErrorId_=t.JSC$10176_id_)},Jrp=function(N){var t=new A8;
N.then(function(O){t.callback(O)},function(O){t.errback(O)});
return t},GBS=function(){_.Nz.call(this)};
_.Od(GBS,_.Nz);GBS.prototype.message="Deferred has already fired";GBS.prototype.name="AlreadyCalledError";var Zj=function(){_.Nz.call(this)};
_.Od(Zj,_.Nz);Zj.prototype.message="Deferred was canceled";Zj.prototype.name="CanceledError";var ObY=function(N){this.JSC$10176_id_=_.H4.setTimeout((0,_.qn)(this.throwError,this),0);this.JSC$10176_error_=N};
ObY.prototype.throwError=function(){delete tO0[this.JSC$10176_id_];throw this.JSC$10176_error_;};
var tO0={};var HbZ={1:"NativeMessagingTransport"},A_f=["pu","lru","pru","lpu","ppu"],VOf=function(){for(var N=10,t=ZbB,O=t.length,H="";N-- >0;)H+=t.charAt(Math.floor(Math.random()*O));return H},ZbB="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Dj=function(N){_.k1.call(this);this.JSC$10179_domHelper_=N||eu()};
_.Od(Dj,_.k1);Dj.prototype.transportType=0;Dj.prototype.getWindow=function(){return this.JSC$10179_domHelper_.getWindow()};
Dj.prototype.getName=function(){return HbZ[String(this.transportType)]||""};var UN=function(N,t,O,H,A){Dj.call(this,O);this.JSC$10182_channel_=N;this.protocolVersion_=A||2;this.peerHostname_=t||"*";this.JSC$10182_eventHandler_=new _.MT(this);this.maybeAttemptToConnectTimer_=new _.hv(100,this.getWindow());this.oneSidedHandshake_=!!H;this.setupAckReceived_=new A8;this.setupAckSent_=new A8;this.JSC$10182_connected_=new A8;this.endpointId_=VOf();this.peerEndpointId_=null;this.oneSidedHandshake_?DgQ(this.JSC$10182_channel_)==1?skp(this.JSC$10182_connected_,this.setupAckReceived_):
skp(this.JSC$10182_connected_,this.setupAckSent_):(skp(this.JSC$10182_connected_,this.setupAckReceived_),this.protocolVersion_==2&&skp(this.JSC$10182_connected_,this.setupAckSent_));v2Q(this.JSC$10182_connected_,this.notifyConnected_,this);this.JSC$10182_connected_.callback(!0);this.JSC$10182_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Od(UN,Dj);UN.prototype.peerProtocolVersion_=null;UN.prototype.initialized_=!1;UN.prototype.transportType=1;var UgX={};UN.prototype.sendTimerId_=0;
var Fv_=function(N){var t=N.event_.data;if(typeof t!=="string")return!1;var O=t.indexOf("|"),H=t.indexOf(":");if(O==-1||H==-1)return!1;var A=t.substring(0,O);O=t.substring(O+1,H);t=t.substring(H+1);if(H=Cf[A])return H.xpcDeliver(O,t,N.event_.origin),!0;H=Cdr(t)[0];for(var Z in Cf){var U=Cf[Z];if(DgQ(U)==1&&!U.isConnected()&&O=="tp"&&(H=="SETUP"||H=="SETUP_NTPV2")&&Kv_(U,N.event_.origin))return delete Cf[U.name],U.name=A,Cf[A]=U,U.xpcDeliver(O,t),!0}return!1},dgp=function(N){N.protocolVersion_!=2||
N.peerProtocolVersion_!=null&&N.peerProtocolVersion_!=2||N.send("tp","SETUP_NTPV2,"+N.endpointId_);
N.peerProtocolVersion_!=null&&N.peerProtocolVersion_!=1||N.send("tp","SETUP")},g3E=function(N,t){if(N.protocolVersion_!=2||N.peerProtocolVersion_!=null&&N.peerProtocolVersion_!=2||t!=2){if(N.peerProtocolVersion_!=null&&N.peerProtocolVersion_!=1||t!=1)return;
N.send("tp","SETUP_ACK")}else N.send("tp","SETUP_ACK_NTPV2");N.setupAckSent_.fired_||N.setupAckSent_.callback(!0)},y_f=function(N,t){t>N.peerProtocolVersion_&&(N.peerProtocolVersion_=t);
N.peerProtocolVersion_==1&&(N.setupAckSent_.fired_||N.oneSidedHandshake_||N.setupAckSent_.callback(!0),N.peerEndpointId_=null)};
_.V=UN.prototype;_.V.connect=function(){var N=this.getWindow(),t=_.GM(N),O=UgX[t];typeof O!=="number"&&(O=0);O==0&&_.SF(N.postMessage?N:N.document,"message",Fv_,!1,UN);UgX[t]=O+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.V.maybeAttemptToConnect_=function(){var N=DgQ(this.JSC$10182_channel_)==0;this.oneSidedHandshake_&&N||this.JSC$10182_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),dgp(this))};
_.V.send=function(N,t){var O=this.JSC$10182_channel_.peerWindowObject_;O&&(this.send=function(H,A){var Z=this,U=this.JSC$10182_channel_.name;this.sendTimerId_=nV(function(){Z.sendTimerId_=0;try{var C=O.postMessage?O:O.document;C.postMessage&&C.postMessage(U+"|"+H+":"+A,Z.peerHostname_)}catch(F){}},0)},this.send(N,t))};
_.V.notifyConnected_=function(){var N=this.JSC$10182_channel_,t=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;N.isConnected()||N.connectionDelay_&&N.connectionDelay_.isActive()||(N.state_=2,_.F$(N.connectionDelay_),t!==void 0?(N.connectionDelay_=new _.f1(N.connectCb_,t),N.connectionDelay_.start()):(N.connectionDelay_=null,N.connectCb_()))};
_.V.disposeInternal=function(){if(this.initialized_){var N=this.getWindow(),t=_.GM(N),O=UgX[t];UgX[t]=O-1;O==1&&_.PG(N.postMessage?N:N.document,"message",Fv_,!1,UN)}this.sendTimerId_&&(_.H4.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.F$(this.JSC$10182_eventHandler_);delete this.JSC$10182_eventHandler_;_.F$(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10182_connected_.cancel();delete this.JSC$10182_connected_;delete this.send;UN.superClass_.disposeInternal.call(this)};
var Cdr=function(N){N=N.split(",");N[1]=N[1]||null;return N};var c_0;_.Kf=function(N){if(N.getValues&&typeof N.getValues=="function")return N.getValues();if(typeof Map!=="undefined"&&N instanceof Map||typeof Set!=="undefined"&&N instanceof Set)return Array.from(N.values());if(typeof N==="string")return N.split("");if(_.lQ(N)){for(var t=[],O=N.length,H=0;H<O;H++)t.push(N[H]);return t}return _.WW.getValues(N)};
_.Bay=function(N){if(N.getKeys&&typeof N.getKeys=="function")return N.getKeys();if(!N.getValues||typeof N.getValues!="function"){if(typeof Map!=="undefined"&&N instanceof Map)return Array.from(N.keys());if(!(typeof Set!=="undefined"&&N instanceof Set)){if(_.lQ(N)||typeof N==="string"){var t=[];N=N.length;for(var O=0;O<N;O++)t.push(O);return t}return _.WW.getKeys(N)}}};
c_0=function(N,t,O){if(N.forEach&&typeof N.forEach=="function")N.forEach(t,O);else if(_.lQ(N)||typeof N==="string")Array.prototype.forEach.call(N,t,O);else for(var H=_.Bay(N),A=_.Kf(N),Z=A.length,U=0;U<Z;U++)t.call(O,A[U],H&&H[U],N)};var VQ4,$E,iv,MOy,$gQ,ibE,j0_,hSY,uWf;
_.Ir=function(N,t){this.JSC$10187_domain_=this.userInfo_=this.scheme_="";this.JSC$10187_port_=null;this.fragment_=this.JSC$10187_path_="";this.JSC$10187_ignoreCase_=!1;var O;N instanceof _.Ir?(this.JSC$10187_ignoreCase_=t!==void 0?t:N.JSC$10187_ignoreCase_,_.Fx(this,N.scheme_),this.userInfo_=N.userInfo_,_.d5(this,N.JSC$10187_domain_),_.g5(this,N.JSC$10187_port_),_.y1(this,N.getPath()),_.BL(this,N.JSC$10187_queryData_.clone()),_.cL(this,N.fragment_)):N&&(O=_.KF(String(N)))?(this.JSC$10187_ignoreCase_=
!!t,_.Fx(this,O[1]||"",!0),this.userInfo_=$E(O[2]||""),_.d5(this,O[3]||"",!0),_.g5(this,O[4]),_.y1(this,O[5]||"",!0),_.BL(this,O[6]||"",!0),_.cL(this,O[7]||"",!0)):(this.JSC$10187_ignoreCase_=!!t,this.JSC$10187_queryData_=new _.jz(null,this.JSC$10187_ignoreCase_))};
_.Ir.prototype.toString=function(){var N=[],t=this.scheme_;t&&N.push(iv(t,$gQ,!0),":");var O=this.JSC$10187_domain_;if(O||t=="file")N.push("//"),(t=this.userInfo_)&&N.push(iv(t,$gQ,!0),"@"),N.push(_.Ae(O).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),O=this.JSC$10187_port_,O!=null&&N.push(":",String(O));if(O=this.getPath())this.JSC$10187_domain_&&O.charAt(0)!="/"&&N.push("/"),N.push(iv(O,O.charAt(0)=="/"?j0_:ibE,!0));(O=this.JSC$10187_queryData_.toString())&&N.push("?",O);(O=this.fragment_)&&N.push("#",
iv(O,uWf));return N.join("")};
_.Ir.prototype.resolve=function(N){var t=this.clone(),O=!!N.scheme_;O?_.Fx(t,N.scheme_):O=!!N.userInfo_;O?t.userInfo_=N.userInfo_:O=!!N.JSC$10187_domain_;O?_.d5(t,N.JSC$10187_domain_):O=N.JSC$10187_port_!=null;var H=N.getPath();if(O)_.g5(t,N.JSC$10187_port_);else if(O=!!N.JSC$10187_path_){if(H.charAt(0)!="/")if(this.JSC$10187_domain_&&!this.JSC$10187_path_)H="/"+H;else{var A=t.getPath().lastIndexOf("/");A!=-1&&(H=t.getPath().slice(0,A+1)+H)}A=H;if(A==".."||A==".")H="";else if(_.KN(A,"./")||_.KN(A,
"/.")){H=_.Zp(A,"/");A=A.split("/");for(var Z=[],U=0;U<A.length;){var C=A[U++];C=="."?H&&U==A.length&&Z.push(""):C==".."?((Z.length>1||Z.length==1&&Z[0]!="")&&Z.pop(),H&&U==A.length&&Z.push("")):(Z.push(C),H=!0)}H=Z.join("/")}else H=A}O?_.y1(t,H):O=N.JSC$10187_queryData_.toString()!=="";O?_.BL(t,N.JSC$10187_queryData_.clone()):O=!!N.fragment_;O&&_.cL(t,N.fragment_);return t};
_.Ir.prototype.clone=function(){return new _.Ir(this)};
_.Fx=function(N,t,O){N.scheme_=O?$E(t,!0):t;N.scheme_&&(N.scheme_=N.scheme_.replace(/:$/,""));return N};
_.d5=function(N,t,O){N.JSC$10187_domain_=O?$E(t,!0):t;return N};
_.g5=function(N,t){if(t){t=Number(t);if(isNaN(t)||t<0)throw Error("Pa`"+t);N.JSC$10187_port_=t}else N.JSC$10187_port_=null;return N};
_.Ir.prototype.getPath=function(){return this.JSC$10187_path_};
_.y1=function(N,t,O){N.JSC$10187_path_=O?$E(t,!0):t;return N};
_.BL=function(N,t,O){t instanceof _.jz?(N.JSC$10187_queryData_=t,S7r(N.JSC$10187_queryData_,N.JSC$10187_ignoreCase_)):(O||(t=iv(t,hSY)),N.JSC$10187_queryData_=new _.jz(t,N.JSC$10187_ignoreCase_));return N};
_.Ho=function(N,t,O){N.JSC$10187_queryData_.set(t,O);return N};
_.OH=function(N,t){return N.JSC$10187_queryData_.get(t)};
_.cL=function(N,t,O){N.fragment_=O?$E(t):t;return N};
_.uv=function(N){_.Ho(N,"zx",NY());return N};
_.tJ=function(N,t){return N instanceof _.Ir?N.clone():new _.Ir(N,t)};
VQ4=function(N,t){N instanceof _.Ir||(N=_.tJ(N));t instanceof _.Ir||(t=_.tJ(t));return N.resolve(t)};
$E=function(N,t){return N?t?decodeURI(N.replace(/%25/g,"%2525")):decodeURIComponent(N):""};
iv=function(N,t,O){return typeof N==="string"?(N=encodeURI(N).replace(t,MOy),O&&(N=N.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),N):null};
MOy=function(N){N=N.charCodeAt(0);return"%"+(N>>4&15).toString(16)+(N&15).toString(16)};
$gQ=/[#\/\?@]/g;ibE=/[#\?:]/g;j0_=/[#\?]/g;hSY=/[#\?@]/g;uWf=/#/g;_.jz=function(N,t){this.count_=this.keyMap_=null;this.encodedQuery_=N||null;this.JSC$10188_ignoreCase_=!!t};
_.Sz=function(N){N.keyMap_||(N.keyMap_=new Map,N.count_=0,N.encodedQuery_&&F7y(N.encodedQuery_,function(t,O){N.add(yl(t),O)}))};
_.V=_.jz.prototype;_.V.getCount=function(){_.Sz(this);return this.count_};
_.V.add=function(N,t){_.Sz(this);this.encodedQuery_=null;N=h8(this,N);var O=this.keyMap_.get(N);O||this.keyMap_.set(N,O=[]);O.push(t);this.count_+=1;return this};
_.V.remove=function(N){_.Sz(this);N=h8(this,N);return this.keyMap_.has(N)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(N).length,this.keyMap_.delete(N)):!1};
_.V.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.V.isEmpty=function(){_.Sz(this);return this.count_==0};
_.V.containsKey=function(N){_.Sz(this);N=h8(this,N);return this.keyMap_.has(N)};
_.V.containsValue=function(N){var t=this.getValues();return _.W4(t,N)};
_.V.forEach=function(N,t){_.Sz(this);this.keyMap_.forEach(function(O,H){O.forEach(function(A){N.call(t,A,H,this)},this)},this)};
_.V.getKeys=function(){_.Sz(this);for(var N=Array.from(this.keyMap_.values()),t=Array.from(this.keyMap_.keys()),O=[],H=0;H<t.length;H++)for(var A=N[H],Z=0;Z<A.length;Z++)O.push(t[H]);return O};
_.V.getValues=function(N){_.Sz(this);var t=[];if(typeof N==="string")this.containsKey(N)&&(t=t.concat(this.keyMap_.get(h8(this,N))));else{N=Array.from(this.keyMap_.values());for(var O=0;O<N.length;O++)t=t.concat(N[O])}return t};
_.V.set=function(N,t){_.Sz(this);this.encodedQuery_=null;N=h8(this,N);this.containsKey(N)&&(this.count_-=this.keyMap_.get(N).length);this.keyMap_.set(N,[t]);this.count_+=1;return this};
_.V.get=function(N,t){if(!N)return t;N=this.getValues(N);return N.length>0?String(N[0]):t};
_.bb0=function(N,t,O){N.remove(t);O.length>0&&(N.encodedQuery_=null,N.keyMap_.set(h8(N,t),_.Il(O)),N.count_+=O.length)};
_.jz.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var N=[],t=Array.from(this.keyMap_.keys()),O=0;O<t.length;O++){var H=t[O],A=_.Ae(H);H=this.getValues(H);for(var Z=0;Z<H.length;Z++){var U=A;H[Z]!==""&&(U+="="+_.Ae(H[Z]));N.push(U)}}return this.encodedQuery_=N.join("&")};
_.jz.prototype.clone=function(){var N=new _.jz;N.encodedQuery_=this.encodedQuery_;this.keyMap_&&(N.keyMap_=new Map(this.keyMap_),N.count_=this.count_);return N};
var h8=function(N,t){t=String(t);N.JSC$10188_ignoreCase_&&(t=t.toLowerCase());return t},S7r=function(N,t){t&&!N.JSC$10188_ignoreCase_&&(_.Sz(N),N.encodedQuery_=null,N.keyMap_.forEach(function(O,H){var A=H.toLowerCase();
H!=A&&(this.remove(H),_.bb0(this,A,O))},N));
N.JSC$10188_ignoreCase_=t};
_.jz.prototype.extend=function(N){for(var t=0;t<arguments.length;t++)c_0(arguments[t],function(O,H){this.add(H,O)},this)};var MK=function(N,t){HL.call(this);for(var O=0,H;H=A_f[O];O++)if(H in N&&!/^https?:\/\//.test(N[H]))throw Error("Ra`"+N[H]+"`"+H);this.cfg_=N;this.name=this.cfg_.cn||VOf();this.JSC$10183_domHelper_=t||eu();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.MT(this);N.lpu=N.lpu||Cup(this.JSC$10183_domHelper_.getWindow().location.href)+"/robots.txt";N.ppu=N.ppu||Cup(N.pu||"")+"/robots.txt";Cf[this.name]=this;glB(window,"unload",pXf)||$J(window,"unload",pXf)};
_.Od(MK,HL);var Lva=RegExp("^%*tp$"),zSX=RegExp("^%+tp$");_.V=MK.prototype;_.V.connectionDelay_=null;_.V.peerWindowDeferred_=null;_.V.transport_=null;_.V.state_=1;_.V.isConnected=function(){return this.state_==2};
_.V.peerWindowObject_=null;_.V.iframeElement_=null;_.V.getConfig=function(){return this.cfg_};
_.V.connect=function(N){this.connectCb_=N||_.YG;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?v2Q(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.V.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10183_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var N=this.iframeElement_.contentWindow;N||(N=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=N}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10183_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new UN(this,this.cfg_.ph,this.JSC$10183_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.V.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.F$(this.transport_);this.connectCb_=this.transport_=null;_.F$(this.connectionDelay_);this.connectionDelay_=null};
_.V.send=function(N,t){if(this.isConnected()){try{var O=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(A){O=!1}if(O){_.mG(t)&&(t=(0,_.r3)(t));O=this.transport_;var H=O.send;Lva.test(N)&&(N="%"+N);N=N.replace(/[%:|]/g,encodeURIComponent);H.call(O,N,t)}else this.close()}};
_.V.xpcDeliver=function(N,t,O){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.qn)(this.xpcDeliver,this,N,t,O));else if(Kv_(this,O)&&!this.isDisposed()&&this.state_!=3)if(N&&N!="tp")this.isConnected()&&(N=N.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),N=zSX.test(N)?N.substring(1):N,N=this.getService(N,t))&&(t=QkS(t,N.objectPayload),t!=null&&N.callback(t));else switch(N=this.transport_,O=Cdr(t),t=O[1],O[0]){case "SETUP_ACK":y_f(N,1);N.setupAckReceived_.fired_||N.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":N.protocolVersion_==2&&(y_f(N,2),N.setupAckReceived_.fired_||N.setupAckReceived_.callback(!0));break;case "SETUP":y_f(N,1);g3E(N,1);break;case "SETUP_NTPV2":N.protocolVersion_==2&&(O=N.peerProtocolVersion_,y_f(N,2),g3E(N,2),O!=1&&N.peerEndpointId_==null||N.peerEndpointId_==t||dgp(N),N.peerEndpointId_=t)}};
var DgQ=function(N){var t=N.cfg_.role;return typeof t==="number"?t:window.parent==N.peerWindowObject_?1:0},Kv_=function(N,t){var O=N.cfg_.ph;
return _.Dp(t==null?"":String(t))||_.Dp(O==null?"":String(O))||t==N.cfg_.ph};
MK.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Cf[this.name];_.F$(this.peerLoadHandler_);delete this.peerLoadHandler_;MK.superClass_.disposeInternal.call(this)};
var pXf=function(){for(var N in Cf)_.F$(Cf[N])},Cf={};var a4r=function(N,t){this.win=N;this.allowAdsHttpEndpoint=t;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10197_domHelper=eu(N);this.scrollManager=new rr0(N);this.accessibilityManager=new kBB(N);Y7y(this)},Y7y=function(N){var t=function(){N.allowAdsPopup&&N.allowAdsPopup.style.setProperty("display","none","important");
N.wallElement.style.setProperty("display","","important");qvQ(N.accessibilityManager);W8f(N.accessibilityManager,N.wallElement.querySelector(".fc-dialog-container"),!1,!1,N.wallElement.querySelector(".fc-button-whitelist"));N.scrollManager.enableScrolling()};
N.allowAdsPopup=N.JSC$10197_domHelper.JSC$9483_createDom("DIV",{"class":"fc-whitelist-root"});N.allowAdsPopup.style.setProperty("display","none","important");N.JSC$10197_domHelper.appendChild(N.JSC$10197_domHelper.JSC$9481_document_.body,N.allowAdsPopup);var O=N.JSC$10197_domHelper.JSC$9483_createDom("DIV",{"class":"fc-dialog-overlay"});N.JSC$10197_domHelper.appendChild(N.allowAdsPopup,O);var H=N.JSC$10197_domHelper.JSC$9483_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:t});N.JSC$10197_domHelper.appendChild(N.allowAdsPopup,
H);O=N.JSC$10197_domHelper.JSC$9483_createDom("IFRAME");O.className="fc-whitelist-dialog";O.frameBorder="0";O.id="fc-whitelist-iframe";O.tabIndex="0";_.No(O,N.allowAdsHttpEndpoint);N.JSC$10197_domHelper.appendChild(H,O);H={};H.pu=_.es(N.allowAdsHttpEndpoint).toString();H.tp=1;H.cn="fc-whitelist-channel";H.ifrid=O.id;H.osh=!0;N.allowAdsCrossPageChannel=new MK(H);N.allowAdsCrossPageChannel.registerService("close",t);N.allowAdsCrossPageChannel.registerService("refresh",function(){N.win.location.reload()});
N.allowAdsCrossPageChannel.registerService("resize",function(A){if(A){var Z=N.allowAdsPopup.querySelector(".fc-whitelist-dialog");A.width&&Z.style.setProperty("width",A.width,"important");A.height&&Z.style.setProperty("height",A.height,"important")}},!0);
N.allowAdsCrossPageChannel.connect()};
a4r.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10197_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var bv=window,pf=document,Ta_=bv.location,wXa=function(){},eSr=/\[native code\]/,Lf=function(N,t,O){return N[t]=N[t]||O},Pd0=function(N){N=N.sort();
for(var t=[],O=void 0,H=0;H<N.length;H++){var A=N[H];A!=O&&t.push(A);O=A}return t},z2=function(){var N;
if((N=Object.create)&&eSr.test(N))N=N(null);else{N={};for(var t in N)N[t]=void 0}return N},YE=Lf(bv,"gapi",{});var aj={};aj=Lf(bv,"___jsl",z2());Lf(aj,"I",0);Lf(aj,"hel",10);var XXB=function(){var N=Ta_.href;if(aj.dpo)var t=aj.h;else{t=aj.h;var O=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),H=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(N=N&&(O.exec(N)||H.exec(N)))try{t=decodeURIComponent(N[2])}catch(A){}}return t},xg0=function(N){var t=Lf(aj,"PQ",[]);
aj.PQ=[];var O=t.length;if(O===0)N();else for(var H=0,A=function(){++H===O&&N()},Z=0;Z<O;Z++)t[Z](A)},kWY=function(N){return Lf(Lf(aj,"H",z2()),N,z2())};var T2=function(N){this.JSC$10199_obj_=N};
T2.prototype.value=function(){return this.JSC$10199_obj_};
T2.prototype.getWidth=function(){return this.JSC$10199_obj_.width};
T2.prototype.getHeight=function(){return this.JSC$10199_obj_.height};
T2.prototype.getStyle=function(){return this.JSC$10199_obj_.style};var q7S=function(N){this.JSC$10202_obj_=N||{}};
_.V=q7S.prototype;_.V.value=function(){return this.JSC$10202_obj_};
_.V.setUrl=function(N){this.JSC$10202_obj_.url=N;return this};
_.V.getUrl=function(){return this.JSC$10202_obj_.url};
_.V.getStyle=function(){return this.JSC$10202_obj_.style};
_.V.getId=function(){return this.JSC$10202_obj_.id};
_.V.getContext=function(){return this.JSC$10202_obj_.context};
var f4X=function(N){N.JSC$10202_obj_.attributes=N.JSC$10202_obj_.attributes||{};return new T2(N.JSC$10202_obj_.attributes)};var n3X=function(){q7S.apply(this,arguments)};
_.p(n3X,q7S);var Wvf=Lf(aj,"perf",z2());Lf(Wvf,"g",z2());var r_r=Lf(Wvf,"i",z2());Lf(Wvf,"r",[]);z2();z2();var l4r=function(N,t,O){t&&t.length>0&&(t=I4Z(t),O&&O.length>0&&(t+="___"+I4Z(O)),t.length>28&&(t=t.substr(0,28)+(t.length-28)),O=t,t=Lf(r_r,"_p",z2()),Lf(t,O,z2())[N]=(new Date).getTime(),t=Wvf.r,typeof t==="function"?t(N,"_p",O):t.push([N,"_p",O]))},I4Z=function(N){return N.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Q0Z=z2(),mgB=[],w5=function(N){throw Error("Ua`"+N);};
mgB.push(["jsl",function(N){for(var t in N)if(Object.prototype.hasOwnProperty.call(N,t)){var O=N[t];typeof O=="object"?aj[t]=Lf(aj,t,[]).concat(O):Lf(aj,t,O)}if(t=N.u)N=Lf(aj,"us",[]),N.push(t),(t=/^https:(.*)$/.exec(t))&&N.push("http:"+t[1])}]);
var E3R=/^(\/[a-zA-Z0-9_\-]+)+$/,GWS=[/\/amp\//,/\/amp$/,/^\/amp$/],RSQ=/^[a-zA-Z0-9\-_\.,!]+$/,v3u=/^gapi\.loaded_[0-9]+$/,J_X=/^[a-zA-Z0-9,._-]+$/,t4a=function(N,t,O,H,A){var Z=N.split(";"),U=Z.shift(),C=Q0Z[U],F=null;C?F=C(Z,t,O,H):w5("no hint processor for: "+U);F||w5("failed to generate load url");t=F;O=t.match(o3S);(H=t.match(s0f))&&H.length===1&&N9Q.test(t)&&O&&O.length===1||w5("failed sanity: "+N);try{N="?";if(A&&A.length>0){X44(A);var g=A.join(",");F=F+"?le="+g;N="&"}if(aj.rol){var B=aj.ol;
B&&B.length&&(F=""+F+N+"ol="+B.length)}}catch(c){}return F},Ay0=function(N,t,O,H){N=O9r(N);
v3u.test(O)||w5("invalid_callback");t=H9Q(t);H=H&&H.length?H9Q(H):null;var A=function(Z){return encodeURIComponent(Z).replace(/%2C/g,",")};
return[encodeURIComponent(N.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",A(N.version),"/m=",A(t),H?"/exm="+A(H):"","/rt=j/sv=1/d=1/ed=1",N.activeMods?"/am="+A(N.activeMods):"",N.resourceSig?"/rs="+A(N.resourceSig):"",N.zcms?"/t="+A(N.zcms):"","/cb=",A(O)].join("")},O9r=function(N){N.charAt(0)!=="/"&&w5("relative path");
for(var t=N.substring(1).split("/"),O=[];t.length;){N=t.shift();if(!N.length||N.indexOf(".")==0)w5("empty/relative directory");else if(N.indexOf("=")>0){t.unshift(N);break}O.push(N)}N={};for(var H=0,A=t.length;H<A;++H){var Z=t[H].split("="),U=decodeURIComponent(Z[0]),C=decodeURIComponent(Z[1]);Z.length==2&&U&&C&&(N[U]=N[U]||C)}t="/"+O.join("/");E3R.test(t)||w5("invalid_prefix");O=0;for(H=GWS.length;O<H;++O)GWS[O].test(t)&&w5("invalid_prefix");O=Z9Z(N,"k",!0);H=Z9Z(N,"am");A=Z9Z(N,"rs");N=Z9Z(N,"t");
return{pathPrefix:t,version:O,activeMods:H,resourceSig:A,zcms:N}},H9Q=function(N){for(var t=[],O=0,H=N.length;O<H;++O){var A=N[O].replace(/\./g,"_").replace(/-/g,"_");
J_X.test(A)&&t.push(A)}return t.join(",")},Z9Z=function(N,t,O){N=N[t];
!N&&O&&w5("missing: "+t);if(N){if(RSQ.test(N))return N;w5("invalid: "+t)}return null},N9Q=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,s0f=/\/cb=/g,o3S=/\/\//g;
Q0Z.m=function(N,t,O,H){(N=N[0])||w5("missing_hint");return"https://apis.google.com"+Ay0(N,t,O,H)};
var V4y=decodeURI("%73cript"),D1R=/^[-+_0-9\/A-Za-z]+={0,2}$/,U1y=function(N,t){for(var O=[],H=0;H<N.length;++H){var A=N[H],Z;if(Z=A){a:{for(Z=0;Z<t.length;Z++)if(t[Z]===A)break a;Z=-1}Z=Z<0}Z&&O.push(A)}return O},CUX=function(){var N=aj.nonce;
return N!==void 0?N&&N===String(N)&&N.match(D1R)?N:aj.nonce=null:pf.querySelector?(N=pf.querySelector("script[nonce]"))?(N=N.nonce||N.getAttribute("nonce")||"",N&&N===String(N)&&N.match(D1R)?aj.nonce=N:aj.nonce=null):null:null},d1X=function(N){if(pf.readyState!="loading")KKR(N);
else{var t=CUX(),O="";t!==null&&(O=' nonce="'+t+'"');N="<"+V4y+' src="'+encodeURI(N)+'"'+O+"></"+V4y+">";pf.write(FKQ?FKQ.createHTML(N):N)}},KKR=function(N){var t=pf.createElement(V4y);
t.setAttribute("src",FKQ?FKQ.createScriptURL(N):N);N=CUX();N!==null&&t.setAttribute("nonce",N);t.async="true";(N=pf.getElementsByTagName(V4y)[0])?N.parentNode.insertBefore(t,N):(pf.head||pf.body||pf.documentElement).appendChild(t)},yy_=function(N,t,O){g6E(function(){var H=t===XXB()?Lf(YE,"_",z2()):z2();
H=Lf(kWY(t),"_",H);N(H)},O)},Oez=function(N,t){var O=t||{};
typeof t=="function"&&(O={},O.callback=t);var H=(t=O)&&t._c;if(H)for(var A=0;A<mgB.length;A++){var Z=mgB[A][0],U=mgB[A][1];U&&Object.prototype.hasOwnProperty.call(H,Z)&&U(H[Z],N,t)}t=[];N?t=N.split(":"):O.features&&(t=O.features);if(!(N=O.h)&&(N=XXB(),!N))throw Error("Va");B9S(t||[],O,N)},B9S=function(N,t,O){N=Pd0(N)||[];
var H=t.callback,A=t.config,Z=t.timeout,U=t.ontimeout,C=t.onerror,F=void 0;typeof C=="function"&&(F=C);var g=null,B=!1;if(Z&&!U||!Z&&U)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";C=Lf(kWY(O),"r",[]).sort();var c=Lf(kWY(O),"L",[]).sort(),u=aj.le||[],S=[].concat(C),b=function(l,I){if(B)return 0;bv.clearTimeout(g);c.push.apply(c,z);var r=((YE||{}).config||{}).update;r?r(A):A&&Lf(aj,"cu",[]).push(A);if(I){l4r("me0",l,S);try{yy_(I,O,F)}finally{l4r("me1",l,S)}}return 1};
Z>0&&(g=bv.setTimeout(function(){B=!0;U()},Z));
var z=U1y(N,c);if(z.length){z=U1y(N,C);var w=Lf(aj,"CP",[]),P=w.length;w[P]=function(l){if(!l)return 0;l4r("ml1",z,S);var I=function(E){w[P]=null;b(z,l)&&xg0(function(){H&&H();E()})},r=function(){var E=w[P+1];
E&&E()};
P>0&&w[P-1]?w[P]=function(){I(r)}:I(r)};
if(z.length){var x="loaded_"+aj.I++;YE[x]=function(l){w[P](l);YE[x]=null};
N=t4a(O,z,"gapi."+x,C,u);C.push.apply(C,z);l4r("ml0",z,S);t.sync||bv.___gapisync?d1X(N):KKR(N)}else w[P](wXa)}else b(z)&&H&&H()},cy0;
var $1Q=null,jbX=_.H4.trustedTypes;if(jbX&&jbX.createPolicy){try{$1Q=jbX.createPolicy("goog#gapi",{createHTML:jlR,createScript:jlR,createScriptURL:jlR})}catch(N){_.H4.console&&_.H4.console.error(N.message)}cy0=$1Q}else cy0=$1Q;var FKQ=cy0,g6E=function(N,t){if(aj.hee&&aj.hel>0)try{return N()}catch(O){t&&t(O),aj.hel--,Oez("debug_error",function(){try{window.___jsl.hefn(O)}catch(H){throw O;}})}else try{return N()}catch(O){throw t&&t(O),O;
}},i9_=YE.load;
i9_&&Lf(aj,"ol",[]).push(i9_);YE.load=function(N,t){return g6E(function(){return Oez(N,t)})};var Evl;var ShE=function(N,t){var O=O||[];this.serviceId_=N;this.moduleId_=t||null;this.dependencies_=[];uyy(this,O)};
ShE.prototype.toString=function(){return this.serviceId_};
ShE.prototype.getModuleId=function(){return this.moduleId_};
var uyy=function(N,t){var O=!1;O=O===void 0?!1:O;N.dependencies_=N.dependencies_.concat(t);if(O){if(!N.moduleId_)throw Error("Wa`"+N.serviceId_);t.map(function(H){return H.getModuleId()}).forEach(function(H){GpM(function(A){A.addExtraEdge(N.moduleId_,H)})})}};var PqO=new ShE("MpJwZc","MpJwZc");var L29=new _.YF("a"),xTt=new _.YF("c"),Xv9=function(N,t,O){_.a7.call(this,N,t);this.node=t;this.kind=O};
_.p(Xv9,_.a7);var hcS=function(){this.JSC$10215_keys_={};this.urlPrefix_="";this.JSC$10215_queryData_={}};
hcS.prototype.toString=function(){var N=this.urlPrefix_+M4Z(this),t=_.Tp(this.JSC$10215_queryData_),O="";t!=""&&(O="?"+t);return N+O};
var b9X=function(N){N=ez(N,"md");return!!N&&N!=="0"},M4Z=function(N){var t=[],O=function(H){N.JSC$10215_keys_[H]!==void 0&&t.push(H+"="+N.JSC$10215_keys_[H])};
b9X(N)?(O("md"),O("k"),O("ck"),O("am"),O("rs"),O("gssmodulesetproto"),O("slk"),O("dti")):(O("sdch"),O("k"),O("ck"),O("am"),O("rt"),"d"in N.JSC$10215_keys_||PL(N,"d","0"),O("d"),O("exm"),O("excm"),(N.JSC$10215_keys_.excm||N.JSC$10215_keys_.exm)&&t.push("ed=1"),O("im"),O("dg"),O("sm"),ez(N,"br")!="1"&&ez(N,"br")!="0"||O("br"),O("br-d"),ez(N,"rb")=="1"&&O("rb"),ez(N,"zs")!=="0"&&O("zs"),pdp(N)!==""&&O("wt"),O("gssmodulesetproto"),O("ujg"),O("sp"),O("rs"),O("cb"),O("ee"),O("slk"),O("dti"),O("m"));return t.join("/")},
ez=function(N,t){return N.JSC$10215_keys_[t]?N.JSC$10215_keys_[t]:null},PL=function(N,t,O){O?N.JSC$10215_keys_[t]=O:delete N.JSC$10215_keys_[t]},LKE=function(N,t){N.urlPrefix_=t},zca=function(N,t){t&&t.length>0?(t.sort(),PL(N,"exm",t.join(","))):PL(N,"exm",null)},Yhy=function(N,t){t&&t.length>0?(t.sort(),PL(N,"excm",t.join(","))):PL(N,"excm",null)},a3p=function(N){return(N=ez(N,"m"))?N.split(","):[]},pdp=function(N){switch(ez(N,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},T9p=function(N,t){var O=Object.keys(t).filter(function(H){return!!Object.keys(t[H]).length}).map(function(H){var A=Object.keys(t[H]);
A.length>1&&A.sort();return H+":"+A.join(",")});
O.sort();PL(N,"ee",O.join(";"))},n2S=function(N){var t=ez(N,"ee");
if(!t)return{};N={};t=_.D(t.split(";"));for(var O=t.next();!O.done;O=t.next()){var H=_.D(O.value.split(":"));O=H.next().value;H=H.next().value;N[O]={};H=_.D(H.split(","));for(var A=H.next();!A.done;A=H.next())N[O][A.value]=!0}return N},wdY=function(N){delete N.JSC$10215_keys_.m;
delete N.JSC$10215_keys_.exm;delete N.JSC$10215_keys_.ed};
hcS.prototype.clone=function(){var N=new hcS;N.JSC$10215_keys_=Object.assign({},this.JSC$10215_keys_);N.urlPrefix_=this.urlPrefix_;N.JSC$10215_queryData_=Object.assign({},this.JSC$10215_queryData_);return N};
var W8t=function(N,t){t=t===void 0?!0:t;var O=ecr(N),H=new hcS,A=_.KF(O)[5];_.WW.forEach(PUu,function(U){var C=A.match("/"+U+"=([^/]+)");C&&PL(H,U,C[1])});
var Z="";Z=N.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";LKE(H,N.substr(0,N.indexOf(Z)+Z.length));if(!t)return H;(N=_.KF(O)[6]||null)&&F7y(N,function(U,C){H.JSC$10215_queryData_[U]=C});
return H},kBO=function(N){N=_.Yv(ecr(N));
return N===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(N)?/\/k=/.test(N):!1},ecr=function(N){return N.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?N.substr(65):N},PUu={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"},XdX=RegExp("^loaded_(g|h)?[_\\d]+$");_.Xx=function(N){this.JSC$10227_id_=N;this.opts={}};
_.Xx.prototype.JSC$10229_setLabel=function(N){this.label_=N||void 0;return this};
_.Xx.prototype.addUploadMetadata=function(N,t){var O=this.opts.data||{};O[N]=t;this.opts.data=O;return this};
var x1E=function(N){var t=_.WW.filter(N.opts,function(O){return O!==null});
t=_.WW.isEmpty(t)?null:t;N=[N.JSC$10227_id_,N.label_,t];t=apQ(N);return N=N.slice(0,t+1)};
_.Xx.prototype.toString=function(){var N=x1E(this);return"("+_.rc(N,function(t){return JSON.stringify(t)}).join(",")+")"};
_.Xx.prototype.getId=function(){return this.JSC$10227_id_};
_.Xx.prototype.getOptions=function(){return _.WW.clone(this.opts)};var xE=function(){_.Xx.call(this,"image-search")};
_.p(xE,_.Xx);xE.prototype.setSize=function(N){this.opts.imgsz=N;return this};
xE.prototype.JSC$10229_setLabel=function(N){_.Xx.prototype.JSC$10229_setLabel.call(this,N);return this};
xE.prototype.addUploadMetadata=function(N,t){_.Xx.prototype.addUploadMetadata.call(this,N,t);return this};var kE=function(){_.Xx.call(this,"maps")};
_.p(kE,_.Xx);kE.prototype.setZoom=function(N){this.opts.zoom=N;return this};
kE.prototype.JSC$10229_setLabel=function(N){_.Xx.prototype.JSC$10229_setLabel.call(this,N);return this};
kE.prototype.addUploadMetadata=function(N,t){_.Xx.prototype.addUploadMetadata.call(this,N,t);return this};_.qK=function(){_.Xx.call(this,"photos")};
_.p(_.qK,_.Xx);_.qK.prototype.JSC$10229_setLabel=function(N){_.Xx.prototype.JSC$10229_setLabel.call(this,N);return this};
_.qK.prototype.addUploadMetadata=function(N,t){_.Xx.prototype.addUploadMetadata.call(this,N,t);return this};var ff=function(){_.Xx.call(this,"url")};
_.p(ff,_.Xx);var kC_=function(){var N=new ff;N.opts.type="video";N.opts.site="youtube.com";return N};
ff.prototype.JSC$10229_setLabel=function(N){_.Xx.prototype.JSC$10229_setLabel.call(this,N);return this};
ff.prototype.addUploadMetadata=function(N,t){_.Xx.prototype.addUploadMetadata.call(this,N,t);return this};var nf=function(){_.Xx.call(this,"video-search")};
_.p(nf,_.Xx);var qhZ=function(){var N=new nf;N.opts.site="youtube.com";return N};
nf.prototype.JSC$10229_setLabel=function(N){_.Xx.prototype.JSC$10229_setLabel.call(this,N);return this};
nf.prototype.addUploadMetadata=function(N,t){_.Xx.prototype.addUploadMetadata.call(this,N,t);return this};var f3p=function(){_.Xx.call(this,"web")};
_.p(f3p,_.Xx);f3p.prototype.JSC$10229_setLabel=function(N){_.Xx.prototype.JSC$10229_setLabel.call(this,N);return this};
f3p.prototype.addUploadMetadata=function(N,t){_.Xx.prototype.addUploadMetadata.call(this,N,t);return this};var WL=function(){this.items_=[];this.opts={}},n6B=function(N){switch(N){case "image-search":return new xE;
case "maps":return new kE;case "photos":return new _.qK;case "url":return new ff;case "video-search":return new nf;case "web":return new f3p}return new _.Xx(N)};
WL.prototype.addView=function(N){this.items_.push(typeof N==="string"?n6B(N):N);return this};
var WKp=function(N){return"("+_.rc(N.items_,function(t){return t.toString()}).join(",")+")"};
WL.prototype.toString=function(){return WKp(this)};
WL.prototype.getViews=function(N,t){t=t===void 0?[]:t;for(var O=this.items_,H=0;H<O.length;H++){var A=O[H];A instanceof WL?A.getViews(N,t):A.getId()==N&&t.push(A)}return t};
WL.prototype.getOptions=function(){return _.WW.clone(this.opts)};var RP=function(N){this.basePickerUrl_=N||"https://docs.google.com/picker";this.nav_=new WL};
RP.prototype.nav_=null;RP.prototype.addView=function(N){this.nav_.addView(N);return this};
RP.prototype.getBaseUrl=function(){return this.basePickerUrl_};
RP.prototype.getViews=function(N){return this.nav_.getViews(N)};
_.ryQ=function(N,t){N.callback_=t;return N};var I3f=new Map;I3f.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");I3f.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");I3f.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var l3X=new Set;l3X.add("application/vnd.google-apps.kix");l3X.add("application/vnd.google-apps.ritz");l3X.add("application/vnd.google-apps.punch");var O0u=function(N,t,O){var H=O&&_.YD(O,1);O=Qbp(O);var A=N[0].getId();switch(_.aG(A,2)){case 13:return m1E(N,t,H,O);case 3:return E6u(N,t,H,O);case 10:return GCX(N,t,H,O);case 27:return GCX(N,t,H,O);case 12:return Rcu(N,t);case 2:return v6Z(N,t,H,O);case 5:return Jyy(N,t,H,O);case 9:return o6p(N,t,H,O);case 6:return sbf(N,t,H,O);case 25:return NeX(N,t,H,O);case 1:return _.$D(N[0],zzu,26)?tma(N,t,H,O):GCX(N,t,H,O);default:return{}}},sbf=function(N,t,O,H){N=N.map(function(A){return{id:A.getId().getId(),
serviceId:"youtube",name:A.getName(),description:_.YD(A,3),type:r5(A),lastEditedUtc:_.L7u(_.Sg(A,_.Tn,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:A.getUrl(),embedUrl:_.YD(A,13),thumbnails:Ij(DP(A))}});
return{action:t,docs:N,viewToken:H,view:O||"youtube",v2Translated:!0}},v6Z=function(N,t,O,H){var A=N.map(function(Z){var U=Z.getId().getId(),C=_.YD(Z,7),F=Z.getName(),g=r5(Z),B=_.L7u(_.Sg(Z,_.Tn,12)).getTime(),c=Z.getUrl(),u=Number(xyQ(Z)),S=_.YD(Z,3),b=_.YD(Z,11),z=Ij(DP(Z));
var w=_.Sg(Z,UP,21);w=_.pl(w,1);var P=_.Sg(Z,UP,21);P=_.YD(P,10);var x=_.YD(Z,13);var l=_.Sg(Z,UP,21);l=_.pl(l,9);var I=_.Sg(Z,UP,21);I=_.YD(I,11);U={id:U,serviceId:"docs",mimeType:C,name:F,type:g,lastEditedUtc:B,url:c,sizeBytes:u,description:S,iconUrl:b,thumbnails:z,isShared:w,downloadUrl:P,embedUrl:x,copyable:l,resourceKey:I};C=_.Sg(Z,UP,21);_.pl(C,12)&&(U.uploadState="success",U.isNew=!0);C=_.Sg(Z,UP,21);_.$D(C,A$,3)&&(Z=_.Sg(Z,UP,21),Z=_.Sg(Z,A$,3),_.$D(Z,OP,2)&&(C=E$(Z.getDuration().getSeconds()),
F=Z.getDuration(),F=_.$1(F,2),U.duration=C+F/1E9),U.aspectRatio=Z.getAspectRatio());return U});
return{action:t,docs:A,viewToken:H,view:O||"all",extraUserInputs:H0u(N),v2Translated:!0}},Jyy=function(N,t,O,H){N=N.map(function(A){var Z=_.Sg(A,ku_,15);
Z=_.Sg(Z,HG,1);XW(A,10,HG,Z);return{id:A.getId().getId(),serviceId:"web",mimeType:_.YD(A,7),name:A.getName(),type:r5(A),url:A.getUrl(),description:_.YD(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ij(DP(A))}});
return{action:t,docs:N,viewToken:H,view:O||"image-search",v2Translated:!0}},o6p=function(N,t,O,H){N=N.map(function(A){return{serviceId:"url",
name:DP(A)[0].getUrl().split("/").pop(),type:r5(A),mimeType:_.YD(A,7),url:A.getUrl(),description:_.YD(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ij(DP(A))}});
return{action:t,docs:N,viewToken:H,view:O||"url",v2Translated:!0}},tma=function(N,t,O,H){N=N.map(function(A){return{id:A.getId().getId(),
serviceId:"picasa",name:A.getName(),type:r5(A),description:_.YD(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ij(DP(A))}});
return{action:t,docs:N,viewToken:H,view:O||"webcam",v2Translated:!0}},GCX=function(N,t,O,H){return{action:t,
docs:N.map(Avr),viewToken:H,view:Z0p(O||"upload",N),extraUserInputs:H0u(N),v2Translated:!0}},Z0p=function(N,t){return t.some(function(O){var H;
return((H=_.Sg(O,ZP,30))==null?void 0:_.aG(H,3))===9})?N+"/gmailphotos":N},E6u=function(N,t,O,H){var A=N.map(function(Z){var U={id:Z.getId().getId(),
serviceId:"picasa",mimeType:_.YD(Z,7),name:Z.getName(),type:r5(Z),lastEditedUtc:_.L7u(_.Sg(Z,_.Tn,12)).getTime(),url:Z.getUrl(),sizeBytes:Number(xyQ(Z)),description:_.YD(Z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ij(DP(Z)),mediaKey:Z.getId().getId(),parentId:_.YD(Z,4)},C,F=(C=_.Sg(Z,Tby,18))==null?void 0:_.Sg(C,al_,3);F&&(U.latitude=zl(F,1),U.longitude=zl(F,2));var g;Z=(g=_.Sg(Z,Tby,18))==null?void 0:Ll(g,6);g=Z!=null?E$(Z):void 0;g&&(U.version=
g);return U});
return{action:t,docs:A,viewToken:H,view:O||"photos",extraUserInputs:H0u(N),v2Translated:!0}},m1E=function(N,t,O,H){N=N.map(function(A){return{id:A.getId().getId(),
serviceId:"et",name:DP(A)[0].getUrl().split("/").pop(),description:_.YD(A,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ij(DP(A),"etjpg")}});
return{action:t,docs:N,viewToken:H,view:O||"et",v2Translated:!0}},NeX=function(N,t,O,H){N=N.map(function(A){var Z=A.getId().getId(),U=H["2"];
return{id:Z,serviceId:U.type!=="gmail_themes"&&U.parent==="6226252643674576769"?"picasa":"static_themes",name:A.getName(),mimeType:_.YD(A,7),type:r5(A),description:_.YD(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:A.getUrl(),embedUrl:A.getUrl(),thumbnails:Ij(DP(A))}});
return{action:t,docs:N,viewToken:H,view:O||"photos",v2Translated:!0}},Rcu=function(N,t){N=N.map(function(O){var H=_.Sg(O,Y$Q,27);
H=_.R1(H,1,_.SJ,_.cA())[0];return{id:O.getId().getId(),serviceId:"contacts",mimeType:_.YD(O,7),name:O.getName(),description:_.YD(O,3),url:"mailto:"+H,thumbnail:[{url:_.YD(O,11)}],email:H}});
return{action:t,docs:N,view:"contacts",v2Translated:!0}},Qbp=function(N){if(!N)return{};
var t=_.YD(N,3);t=t&&JSON.parse(t)||{};return{0:_.YD(N,1),1:_.YD(N,2),2:t}},Ij=function(N,t){t=t===void 0?"":t;
if(!N.length)return null;t=="etjpg"&&(N=N.filter(function(O){return O.getUrl().includes("w1200-h300")}));
return N.map(function(O){return{url:O.getUrl(),height:O.getHeight(),width:O.getWidth(),type:t}})},H0u=function(N){return{isAttachment:N.some(function(t){return _.pl(t,31)})}},Avr=function(N){var t,O={id:(t=N.getId())==null?void 0:t.getId(),
serviceId:VmR(N),mimeType:_.YD(N,7),name:N.getName(),type:r5(N),sizeBytes:Number(xyQ(N)),description:_.YD(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Ij(DP(N)),isNew:!0};if(t=_.Sg(N,ZP,30)){O.dataUrl=_.YD(t,1)||null;a:{var H=_.Sg(N,ZP,30);switch(_.aG(H,3)){case 9:H=_.e0(H,XAa,2,Vh);H={remoteRefs:H&&_.YD(H,1)};break a;case 10:case 15:H=_.e0(H,PuQ,4,Vh);var A=DP(N);H={photo_id:H&&_.YD(H,1),media_key:N.getId().getId(),media_type:_.aG(N,6)===1?1:2,image_url:A&&
A[0].getUrl(),width:A&&String(A[0].getWidth()),height:A&&String(A[0].getHeight())};break a}H=null}O.uploadMetadata=H;O.uploadId=_.YD(t,9)||null;O.uploadState=DTX(t)||null}(H=t&&_.e0(t,PuQ,4,Vh))&&(O.id=_.YD(H,1));(H=t&&_.e0(t,xnr,5,Vh))&&(O.contentId=_.YD(H,1));(H=t&&_.e0(t,wAy,7,Vh))&&(O.contentId=_.YD(H,1));(H=t&&_.e0(t,ezp,6,Vh))&&(O.contentId=_.YD(H,1));(t==null?void 0:_.aG(t,3))===1&&(O.mediaKey=N.getId().getId());return O},VmR=function(N){var t;
switch(((t=_.Sg(N,ZP,30))==null?void 0:_.aG(t,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},r5=function(N){switch(_.aG(N,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.YD(N,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},DTX=function(N){switch(N==null?void 0:_.aG(N,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var FFy,UTp,CqB,KFf;_.dT_=function(N,t){var O=t||{};t=O.document||document;var H=_.es(N).toString(),A=(new P1(t)).createElement("SCRIPT"),Z={script_:A,timeout_:void 0},U=new A8(UTp,Z),C=null,F=O.timeout!=null?O.timeout:5E3;F>0&&(C=window.setTimeout(function(){CqB(A,!0);U.errback(new KFf(1,"Timeout reached for loading script "+H))},F),Z.timeout_=C);
A.onload=A.onreadystatechange=function(){A.readyState&&A.readyState!="loaded"&&A.readyState!="complete"||(CqB(A,O.cleanupWhenDone||!1,C),U.callback(null))};
A.onerror=function(){CqB(A,!0,C);U.errback(new KFf(0,"Error while loading script "+H))};
Z=O.attributes||{};_.WW.extend(Z,{type:"text/javascript",charset:"UTF-8"});jNr(A,Z);_.UG(A,N);FFy(t).appendChild(A);return U};
FFy=function(N){var t=eR("HEAD",N);return t&&t.length!==0?t[0]:N.documentElement};
UTp=function(){if(this&&this.script_){var N=this.script_;N&&N.tagName=="SCRIPT"&&CqB(N,!0,this.timeout_)}};
CqB=function(N,t,O){O!=null&&_.H4.clearTimeout(O);N.onload=function(){};
N.onerror=function(){};
N.onreadystatechange=function(){};
t&&window.setTimeout(function(){_.wb(N)},0)};
KFf=function(N,t){var O="Jsloader error (code #"+N+")";t&&(O+=": "+t);_.Nz.call(this,O);this.code=N};
_.Od(KFf,_.Nz);var gIX=_.mp(["https://apis.google.com/js/api.js"]),yvZ=_.ju(gIX),jnf=function(N,t,O){O=O===void 0?{}:O;var H=!1,A=BeZ(N,t,O).then(function(U){H=!0;return U}),Z=_.rOB(5E3).then(function(){return H?BeZ(N,t,O):cvB(t,O).then(function(U){return $TS(U,N)})});
return atR([A,Z])},BeZ=function(N,t,O){O=O===void 0?{}:O;
return i0S(t,O).then(function(H){return $TS(H,N)})},$TS=function(N,t){var O=_.Zp(t,"gapi.")?t.slice(5):t;
return N[O]?_.Hc(N[O]):new _.TW(function(H,A){var Z=nV(function(){A(Error("Ya"))},3E4);
N.load(t,{callback:function(){_.H4.clearTimeout(Z);H(N[O])},
onerror:function(U){_.H4.clearTimeout(Z);A(U)}})})},i0S=function(N,t){t=t===void 0?{}:t;
return N.gapi&&N.gapi.load?_.Hc(N.gapi):cvB(N,t)},cvB=function(N,t){t=t===void 0?{}:t;
return _.dT_(yvZ,{document:N.document,attributes:t}).then(function(){return N.gapi})},ud0=function(){};
ud0.prototype.load=function(N,t,O){t=t===void 0?window:t;O=O===void 0?{}:O;var H=Date.now();return jnf(N,t,O).then(function(A){var Z=Date.now();return{library:A,loadStartMs:H,loadEndMs:Z}},function(A){throw A instanceof Error?A:Error(String(A));
})};var Vgz=function(){_.k1.call(this);this.gapiLoader_=new ud0;this.origin_=null;this.gapiPickerIframeResolver_=_.lj();this.gapiIframesResolver_=_.lj();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.p(Vgz,_.k1);var S8y=function(N,t){var O=O===void 0?{}:O;var H=_.s2("gapi.iframes",t);return H?(N=Date.now(),_.Hc({library:H,loadStartMs:N,loadEndMs:N})):N.gapiLoader_.load("gapi.iframes",t,O)},hKf=function(N,t,O,H,A,Z){var U=!1;
U=U===void 0?!1:U;S8y(N,lw(t.ownerDocument)).then(function(C){var F=C.library;N.gapiIframesResolver_.resolve(F);C=N.gapiPickerIframeResolver_;var g=C.resolve,B=U;B=B===void 0?!1:B;var c={};c["host-message-handler"]=O;N.hostMessageHandlerInternal_=c;var u=_.tJ(H);u=_.tJ(u);u=_.g5(_.d5(_.Fx(new _.Ir,u.scheme_),u.JSC$10187_domain_),u.JSC$10187_port_).toString();N.origin_=u;u=(new n3X).setUrl(H);u.JSC$10202_obj_.where=t;u.JSC$10202_obj_.allowPost=B;u.JSC$10202_obj_.messageHandlers=c;B=_.s2("makeWhiteListIframesFilter",
F)([N.origin_]);u.JSC$10202_obj_.messageHandlersFilter=B;A!=null&&(u.JSC$10202_obj_.id=A);Z!=null&&(u.JSC$10202_obj_.rpctoken=Z);B=f4X(u);B.JSC$10199_obj_.style={display:"block","min-width":"100%",width:"1px"};B.JSC$10199_obj_.height="100%";f4X(u).value().allow="camera 'src' "+N.origin_;F=F.getContext().openChild(u.value());g.call(C,F)},function(C){N.gapiIframesResolver_.reject(C);
N.gapiPickerIframeResolver_.reject(C)});
return N.gapiPickerIframeResolver_.promise},MmQ=function(N,t){return _.qs([N.gapiIframesResolver_.promise,
N.gapiPickerIframeResolver_.promise]).then(function(O){var H=_.D(O);O=H.next().value;return(H=H.next().value)?H.send("picker-message-handler",t,void 0,_.s2("makeWhiteListIframesFilter",O)([N.origin_])):_.M2(Error("Za"))})};
Vgz.prototype.disposeInternal=function(){b0_(this);_.k1.prototype.disposeInternal.call(this)};
var b0_=function(N){N.gapiPickerIframeResolver_.promise.then(function(t){t&&(t.unregister("host-message-handler"),delete N.hostMessageHandlerInternal_["host-message-handler"])})};var pvy=function(){this.nextId=0};var zKS=function(N,t){switch(N.action){case "select-contacts":N=LFy(N.contacts);break;case "visibility":N=N.visible;var O=new d3;N=_.XA(O,1,7).setVisible(N);O={};O["iframe-command"]=N.serialize();N=O;break;default:N=null}return N?MmQ(t,N):_.Hc()},LFy=function(N){if(!N||N.length==0)return null;
var t=new d3;_.XA(t,1,11);var O=new pvy;N.forEach(function(H){if(H.email){var A=new Md;A=_.rv(A,2,H.name?H.name:H.email);var Z=new Y$Q;H=_.rm9(Z,1,_.cm,H.email,_.SJ);H=_.L8(A,27,H);A=new pAR;Z=":"+(O.nextId++).toString(36);A=_.rv(A,1,Z);A=_.XA(A,2,12);H=_.L8(H,1,A)}else H=null;H&&XW(t,7,Md,H)});
N={};N["iframe-command"]=t.serialize();return N};_.Y8X=function(){if(vx_){var N=/Windows NT ([0-9.]+)/;return(N=N.exec(_.$x()))?N[1]:"0"}return _.R9R?(N=/1[0|1][_.][0-9_.]+/,(N=N.exec(_.$x()))?N[0].replace(/_/g,"."):"10"):IiM?(N=/Android\s+([^\);]+)(\)|;)/,(N=N.exec(_.$x()))?N[1]:""):oxB||slX||Nfu?(N=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(N=N.exec(_.$x()))?N[1].replace(/_/g,"."):""):""}();var lv;lv=function(N){return(N=N.exec(_.$x()))?N[1]:""};
_.a0p=function(){if(_.Kl)return lv(/Firefox\/([0-9.]+)/);if(_.V_||gr||mzS)return Dyu;if(_.FA){if(_.TM()||_.p4g()){var N=lv(/CriOS\/([0-9.]+)/);if(N)return N}return lv(/Chrome\/([0-9.]+)/)}if(_.NV&&!_.TM())return lv(/Version\/([0-9.]+)/);if(EYp||GTG){if(N=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.$x()))return N[1]+"."+N[2]}else if(dyy)return(N=lv(/Android\s+([0-9.]+)/))?N:lv(/Version\/([0-9.]+)/);return""}();var TeS=function(){};
_.Nd(TeS);TeS.prototype.nextId_=0;_.Q1=function(N){return":"+(N.nextId_++).toString(36)};var mg=function(N){_.Xm.call(this);this.JSC$10297_dom_=N||eu();this.JSC$10297_id_=null;this.inDocument_=!1;this.JSC$10297_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Od(mg,_.Xm);mg.prototype.idGenerator_=TeS.getInstance();mg.prototype.getId=function(){return this.JSC$10297_id_||(this.JSC$10297_id_=_.Q1(this.idGenerator_))};
mg.prototype.getElement=function(){return this.JSC$10297_element_};
var EN=function(N){N.googUiComponentHandler_||(N.googUiComponentHandler_=new _.MT(N));return N.googUiComponentHandler_},wvB=function(N,t){if(N==t)throw Error("$a");
var O;if(O=t&&N.parent_&&N.JSC$10297_id_){O=N.parent_;var H=N.JSC$10297_id_;O=O.childIndex_&&H?_.WW.get(O.childIndex_,H)||null:null}if(O&&N.parent_!=t)throw Error("$a");N.parent_=t;mg.superClass_.setParentEventTarget.call(N,t)};
mg.prototype.setParentEventTarget=function(N){if(this.parent_&&this.parent_!=N)throw Error("ab");mg.superClass_.setParentEventTarget.call(this,N)};
mg.prototype.JSC$10299_createDom=function(){this.JSC$10297_element_=this.JSC$10297_dom_.createElement("DIV")};
mg.prototype.render=function(N){eKa(this,N)};
var eKa=function(N,t,O){if(N.inDocument_)throw Error("bb");N.JSC$10297_element_||N.JSC$10299_createDom();t?t.insertBefore(N.JSC$10297_element_,O||null):N.JSC$10297_dom_.JSC$9481_document_.body.appendChild(N.JSC$10297_element_);N.parent_&&!N.parent_.inDocument_||N.enterDocument()};
_.V=mg.prototype;_.V.decorate=function(N){if(this.inDocument_)throw Error("bb");if(N&&this.canDecorate(N)){this.wasDecorated_=!0;var t=_.Qs(N);this.JSC$10297_dom_&&this.JSC$10297_dom_.JSC$9481_document_==t||(this.JSC$10297_dom_=eu(N));this.decorateInternal(N);this.enterDocument()}else throw Error("cb");};
_.V.canDecorate=function(){return!0};
_.V.decorateInternal=function(N){this.JSC$10297_element_=N};
_.V.enterDocument=function(){this.inDocument_=!0;PqB(this,function(N){!N.inDocument_&&N.getElement()&&N.enterDocument()})};
_.V.exitDocument=function(){PqB(this,function(N){N.inDocument_&&N.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.V.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);PqB(this,function(N){N.dispose()});
!this.wasDecorated_&&this.JSC$10297_element_&&_.wb(this.JSC$10297_element_);this.parent_=this.model_=this.JSC$10297_element_=this.childIndex_=this.children_=null;mg.superClass_.disposeInternal.call(this)};
_.V.getModel=function(){return this.model_};
_.V.addChild=function(N,t){var O=this.children_?this.children_.length:0;if(N.inDocument_&&(t||!this.inDocument_))throw Error("bb");if(O<0||O>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);N.parent_==this?(_.WW.set(this.childIndex_,N.getId(),N),_.rt(this.children_,N)):_.WW.add(this.childIndex_,N.getId(),N);wvB(N,this);_.PQt(this.children_,O,0,N);N.inDocument_&&this.inDocument_&&N.parent_==this?(t=this.getContentElement(),
(t.childNodes[O]||null)!=N.getElement()&&(N.getElement().parentElement==t&&t.removeChild(N.getElement()),O=t.childNodes[O]||null,t.insertBefore(N.getElement(),O))):t?(this.JSC$10297_element_||this.JSC$10299_createDom(),O=this.children_?this.children_[O+1]||null:null,eKa(N,this.getContentElement(),O?O.JSC$10297_element_:null)):this.inDocument_&&!N.inDocument_&&N.JSC$10297_element_&&N.JSC$10297_element_.parentNode&&N.JSC$10297_element_.parentNode.nodeType==1&&N.enterDocument()};
_.V.getContentElement=function(){return this.JSC$10297_element_};
var PqB=function(N,t){N.children_&&N.children_.forEach(t,void 0)};
mg.prototype.removeChild=function(N,t){if(N){var O=typeof N==="string"?N:N.getId();N=this.childIndex_&&O?_.WW.get(this.childIndex_,O)||null:null;O&&N&&(_.WW.remove(this.childIndex_,O),_.rt(this.children_,N),t&&(N.exitDocument(),N.JSC$10297_element_&&_.wb(N.JSC$10297_element_)),wvB(N,null))}if(!N)throw Error("eb");return N};_.Od(Jep,vvg);_.Od(ovN,vvg);var Xva;_.WW.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var xTf=function(N,t){t?N.setAttribute("role",t):N.removeAttribute("role")},G2=function(N,t,O){Array.isArray(O)&&(O=O.join(" "));
var H="aria-"+t;O===""||O==void 0?(Xva||(O={},Xva=(O.atomic=!1,O.autocomplete="none",O.dropeffect="none",O.haspopup=!1,O.live="off",O.multiline=!1,O.multiselectable=!1,O.orientation="vertical",O.readonly=!1,O.relevant="additions text",O.required=!1,O.sort="none",O.busy=!1,O.disabled=!1,O.hidden=!1,O.invalid="false",O)),O=Xva,t in O?N.setAttribute(H,O[t]):N.removeAttribute(H)):N.setAttribute(H,O)};var kZr;_.Rj=function(N,t,O){_.Xm.call(this);this.target=N;this.handle=t||N;this.limits=O||new QA(NaN,NaN,NaN,NaN);this.JSC$10302_document_=_.Qs(N);this.JSC$10302_eventHandler_=new _.MT(this);_.L1(this,this.JSC$10302_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;_.SF(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=kZr};
_.Od(_.Rj,_.Xm);kZr=_.H4.document&&_.H4.document.documentElement&&!!_.H4.document.documentElement.setCapture&&!!_.H4.document.releaseCapture;_.q8Q=function(N,t){N.hysteresisDistanceSquared_=Math.pow(t,2)};
_.V=_.Rj.prototype;_.V.setEnabled=function(N){this.enabled_=N};
_.V.disposeInternal=function(){_.Rj.superClass_.disposeInternal.call(this);_.PG(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10302_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10302_document_.releaseCapture();this.handle=this.target=null};
_.V.startDrag=function(N){var t=N.type=="mousedown";if(!this.enabled_||this.dragging_||t&&(!N.isButton(0)||_.R9R&&N.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new vL("start",this,N.clientX,N.clientY,N)))this.dragging_=!0,t&&N.preventDefault();else return;else t&&N.preventDefault();t=this.JSC$10302_document_;var O=t.documentElement,H=!this.useSetCapture_;this.JSC$10302_eventHandler_.listen(t,["touchmove","mousemove"],this.handleMove_,
{capture:H,passive:!1});this.JSC$10302_eventHandler_.listen(t,["touchend","mouseup"],this.endDrag,H);this.useSetCapture_?(O.setCapture(!1),this.JSC$10302_eventHandler_.listen(O,"losecapture",this.endDrag)):this.JSC$10302_eventHandler_.listen(lw(t),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10302_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,H);this.clientX=this.startX=N.clientX;this.clientY=this.startY=N.clientY;this.screenX=N.screenX;this.screenY=N.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=wc(eu(this.JSC$10302_document_))}};
_.V.endDrag=function(N,t){this.JSC$10302_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10302_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new vL("end",this,N.clientX,N.clientY,N,f0a(this,this.deltaX),nIE(this,this.deltaY),t||N.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.V.handleMove_=function(N){if(this.enabled_){var t=N.clientX-this.clientX,O=N.clientY-this.clientY;this.clientX=N.clientX;this.clientY=N.clientY;this.screenX=N.screenX;this.screenY=N.screenY;if(!this.dragging_){var H=this.startX-this.clientX,A=this.startY-this.clientY;if(H*H+A*A>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new vL("start",this,N.clientX,N.clientY,N)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(N);return}}O=WFZ(this,t,O);t=O.x;O=O.y;this.dragging_&&this.dispatchEvent(new vL("beforedrag",
this,N.clientX,N.clientY,N,t,O))&&(rvB(this,N,t,O),N.preventDefault())}};
var WFZ=function(N,t,O){var H=wc(eu(N.JSC$10302_document_));t+=H.x-N.pageScroll.x;O+=H.y-N.pageScroll.y;N.pageScroll=H;N.deltaX+=t;N.deltaY+=O;return new _.IN(f0a(N,N.deltaX),nIE(N,N.deltaY))};
_.Rj.prototype.onScroll_=function(N){var t=WFZ(this,0,0);N.clientX=this.clientX;N.clientY=this.clientY;rvB(this,N,t.x,t.y)};
var rvB=function(N,t,O,H){N.target.style.left=O+"px";N.target.style.top=H+"px";N.dispatchEvent(new vL("drag",N,t.clientX,t.clientY,t,O,H))},f0a=function(N,t){var O=N.limits;
N=isNaN(O.left)?null:O.left;O=isNaN(O.width)?0:O.width;return Math.min(N!=null?N+O:Infinity,Math.max(N!=null?N:-Infinity,t))},nIE=function(N,t){var O=N.limits;
N=isNaN(O.top)?null:O.top;O=isNaN(O.height)?0:O.height;return Math.min(N!=null?N+O:Infinity,Math.max(N!=null?N:-Infinity,t))};
_.Rj.prototype.isDragging=function(){return this.dragging_};
var vL=function(N,t,O,H,A,Z,U){_.a7.call(this,N);this.clientX=O;this.clientY=H;this.browserEvent=A;this.left=Z!==void 0?Z:t.deltaX;this.top=U!==void 0?U:t.deltaY};
_.Od(vL,_.a7);var J8=function(N){this.JSC$10309_map_=new Map;var t=arguments.length;if(t>1){if(t%2)throw Error("ma");for(var O=0;O<t;O+=2)this.set(arguments[O],arguments[O+1])}else N&&this.addAll(N)};
_.V=J8.prototype;_.V.getCount=function(){return this.JSC$10309_map_.size};
_.V.getValues=function(){return Array.from(this.JSC$10309_map_.values())};
_.V.getKeys=function(){return Array.from(this.JSC$10309_map_.keys())};
_.V.containsKey=function(N){return this.JSC$10309_map_.has(N)};
_.V.containsValue=function(N){return this.getValues().some(function(t){return t==N})};
_.V.equals=function(N,t){var O=this;t=t===void 0?function(H,A){return H===A}:t;
return this===N?!0:this.JSC$10309_map_.size!=N.getCount()?!1:this.getKeys().every(function(H){return t(O.JSC$10309_map_.get(H),N.get(H))})};
_.V.isEmpty=function(){return this.JSC$10309_map_.size==0};
_.V.clear=function(){this.JSC$10309_map_.clear()};
_.V.remove=function(N){return this.JSC$10309_map_.delete(N)};
_.V.get=function(N,t){return this.JSC$10309_map_.has(N)?this.JSC$10309_map_.get(N):t};
_.V.set=function(N,t){this.JSC$10309_map_.set(N,t);return this};
_.V.addAll=function(N){if(N instanceof J8){N=_.D(N.JSC$10309_map_);for(var t=N.next();!t.done;t=N.next()){var O=_.D(t.value);t=O.next().value;O=O.next().value;this.JSC$10309_map_.set(t,O)}}else if(N)for(N=_.D(Object.entries(N)),t=N.next();!t.done;t=N.next())O=_.D(t.value),t=O.next().value,O=O.next().value,this.JSC$10309_map_.set(t,O)};
_.V.forEach=function(N,t){var O=this;t=t===void 0?this:t;this.JSC$10309_map_.forEach(function(H,A){return N.call(t,H,A,O)})};
_.V.clone=function(){return new J8(this)};(function(){for(var N=["ms","moz","webkit","o"],t,O=0;t=N[O]&&!_.H4.requestAnimationFrame;++O)_.H4.requestAnimationFrame=_.H4[t+"RequestAnimationFrame"],_.H4.cancelAnimationFrame=_.H4[t+"CancelAnimationFrame"]||_.H4[t+"CancelRequestAnimationFrame"];if(!_.H4.requestAnimationFrame){var H=0;_.H4.requestAnimationFrame=function(A){var Z=(new Date).getTime(),U=Math.max(0,16-(Z-H));H=Z+U;return _.H4.setTimeout(function(){A(Z+U)},U)};
_.H4.cancelAnimationFrame||(_.H4.cancelAnimationFrame=function(A){clearTimeout(A)})}})();
var I0E=[[],[]],l0B=0,QnB=!1,mTQ=0,GZ_=function(N,t){var O=mTQ++,H={measureTask:{id:O,fn:N.measure,context:t},mutateTask:{id:O,fn:N.mutate,context:t},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(H.args||(H.args=[]),H.args.length=0,H.args.push.apply(H.args,arguments),H.args.push(H.state)):H.args&&H.args.length!=0?(H.args[0]=H.state,H.args.length=1):H.args=[H.state];H.isScheduled||(H.isScheduled=!0,I0E[l0B].push(H));QnB||(QnB=!0,window.requestAnimationFrame(EIp))}},EIp=
function(){QnB=!1;
var N=I0E[l0B],t=N.length;l0B=(l0B+1)%2;for(var O,H=0;H<t;++H){O=N[H];var A=O.measureTask;O.isScheduled=!1;A.fn&&A.fn.apply(A.context,O.args)}for(H=0;H<t;++H)O=N[H],A=O.mutateTask,O.isScheduled=!1,A.fn&&A.fn.apply(A.context,O.args),O.state={};N.length=0};var RKp=_.mp(["about:blank"]),vIS=_.mp(["javascript:undefined"]),Jv0=_.ju(RKp);_.es(Jv0);var oI_=_.ju(vIS);_.es(oI_);var oj=function(N){_.Xm.call(this);this.JSC$10315_element_=N;this.listenKeyIn_=_.SF(this.JSC$10315_element_,"focus",this,!0);this.listenKeyOut_=_.SF(this.JSC$10315_element_,"blur",this,!0)};
_.Od(oj,_.Xm);oj.prototype.handleEvent=function(N){var t=new _.Tk(N.event_);t.type=N.type=="focusin"||N.type=="focus"?"focusin":"focusout";this.dispatchEvent(t)};
oj.prototype.disposeInternal=function(){oj.superClass_.disposeInternal.call(this);jF(this.listenKeyIn_);jF(this.listenKeyOut_);delete this.JSC$10315_element_};var snQ=function(N,t){this.JSC$10318_element_=N;this.JSC$10318_dom_=t};var sN=function(N,t){mg.call(this,t);this.useIframeMask_=!!N;this.lastFocus_=null;this.resizeBackgroundTask_=GZ_({mutate:this.resizeBackground_},this);GZ_({mutate:this.updateModalAndBackground_},this)};
_.Od(sN,mg);_.V=sN.prototype;_.V.focusHandler_=null;_.V.visible_=!1;_.V.bgEl_=null;_.V.bgIframeEl_=null;_.V.tabCatcherElement_=null;_.V.backwardTabWrapInProgress_=!1;_.V.getCssClass=function(){return"goog-modalpopup"};
_.V.getBackgroundElement=function(){return this.bgEl_};
_.V.JSC$10299_createDom=function(){sN.superClass_.JSC$10299_createDom.call(this);var N=this.getElement(),t=gt(this.getCssClass()).split(" ");ON(N,t);N.tabIndex=0;_.AJ(N,!1);NNp(this);tBf(this)};
var NNp=function(N){if(N.useIframeMask_&&!N.bgIframeEl_){var t=N.JSC$10297_dom_.JSC$9483_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.No(t,Jv0);N.bgIframeEl_=t;N.bgIframeEl_.className=N.getCssClass()+"-bg";_.AJ(N.bgIframeEl_,!1);Gia(N.bgIframeEl_,0)}N.bgEl_||(N.bgEl_=N.JSC$10297_dom_.JSC$9483_createDom("DIV",N.getCssClass()+"-bg"),_.AJ(N.bgEl_,!1))},tBf=function(N){N.tabCatcherElement_||(N.tabCatcherElement_=N.JSC$10297_dom_.createElement("SPAN"),_.AJ(N.tabCatcherElement_,
!1),N.tabCatcherElement_.tabIndex=0,N.tabCatcherElement_.style.position="absolute")};
_.V=sN.prototype;_.V.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.V.canDecorate=function(N){return!!N&&N.tagName=="DIV"};
_.V.decorateInternal=function(N){sN.superClass_.decorateInternal.call(this,N);N=gt(this.getCssClass()).split(" ");ON(this.getElement(),N);NNp(this);tBf(this);this.getElement().tabIndex=0;_.AJ(this.getElement(),!1)};
_.V.enterDocument=function(){this.bgIframeEl_&&_.W1(this.bgIframeEl_,this.getElement());_.W1(this.bgEl_,this.getElement());sN.superClass_.enterDocument.call(this);_.rI(this.tabCatcherElement_,this.getElement());this.focusHandler_=new oj(this.JSC$10297_dom_.JSC$9481_document_);EN(this).listen(this.focusHandler_,"focusin",this.onFocus);Ovr(this,!1)};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.F$(this.focusHandler_);sN.superClass_.exitDocument.call(this);_.wb(this.bgIframeEl_);_.wb(this.bgEl_);_.wb(this.tabCatcherElement_)};
_.V.setVisible=function(N){if(N!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&Ovr(this,N),N){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10297_dom_.JSC$9481_document_.activeElement}catch(A){}this.updateModalAndBackground_();EN(this).listen(this.JSC$10297_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10297_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);HvY(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)$J(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){EN(this).unlisten(this.JSC$10297_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10297_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)$J(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var t=this.JSC$10297_dom_,O=t.JSC$9481_document_.body,H=t.JSC$9481_document_.activeElement||O;if(!this.lastFocus_||this.lastFocus_==O){this.lastFocus_=null;break a}(H==O||t.contains(this.getElement(),H))&&this.lastFocus_.focus()}catch(A){}this.lastFocus_=
null}}};
var Ovr=function(N,t){N.modalAriaVisibilityHelper_||(N.modalAriaVisibilityHelper_=new snQ(N.JSC$10297_element_,N.JSC$10297_dom_));N=N.modalAriaVisibilityHelper_;if(t){N.hiddenElements_||(N.hiddenElements_=[]);t=N.JSC$10318_dom_.getChildren(N.JSC$10318_dom_.JSC$9481_document_.body);for(var O=0;O<t.length;O++){var H=t[O],A;if(A=H!=N.JSC$10318_element_)A=H.getAttribute("aria-hidden"),A=!(A==null||A==void 0?0:String(A));A&&(G2(H,"hidden",!0),N.hiddenElements_.push(H))}}else if(N.hiddenElements_){for(t=
0;t<N.hiddenElements_.length;t++)N.hiddenElements_[t].removeAttribute("aria-hidden");N.hiddenElements_=null}};
sN.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var HvY=function(N,t){N.bgIframeEl_&&_.AJ(N.bgIframeEl_,t);N.bgEl_&&_.AJ(N.bgEl_,t);_.AJ(N.getElement(),t);_.AJ(N.tabCatcherElement_,t)};
_.V=sN.prototype;_.V.onShow=function(){this.dispatchEvent("show")};
_.V.onHide=function(){HvY(this,!1);this.dispatchEvent("hide")};
_.V.isVisible=function(){return this.visible_};
_.V.focus=function(){this.focusElement_()};
_.V.resizeBackground_=function(){this.bgIframeEl_&&_.AJ(this.bgIframeEl_,!1);this.bgEl_&&_.AJ(this.bgEl_,!1);var N=this.JSC$10297_dom_.JSC$9481_document_;var t=_.Ti(lw(this.JSC$10297_dom_.JSC$9481_document_)||window);var O=Math.max(t.width,Math.max(N.body.scrollWidth,N.documentElement.scrollWidth));N=Math.max(t.height,Math.max(N.body.scrollHeight,N.documentElement.scrollHeight));this.bgIframeEl_&&(_.AJ(this.bgIframeEl_,!0),_.lCE(this.bgIframeEl_,O,N));this.bgEl_&&(_.AJ(this.bgEl_,!0),_.lCE(this.bgEl_,
O,N))};
_.V.reposition=function(){var N;if(_.ICB(this.getElement())=="fixed")var t=N=0;else t=wc(this.JSC$10297_dom_),N=t.x,t=t.y;var O=mwf(this.getElement());var H=_.Ti(lw(this.JSC$10297_dom_.JSC$9481_document_)||window);N=Math.max(N+H.width/2-O.width/2,0);t=Math.max(t+H.height/2-O.height/2,0);Gj(this.getElement(),N,t);Gj(this.tabCatcherElement_,N,t)};
_.V.onFocus=function(N){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():N.target==this.tabCatcherElement_&&nV(this.focusElement_,0,this)};
_.V.focusElement_=function(){try{this.getElement().focus()}catch(N){}};
_.V.disposeInternal=function(){_.F$(this.popupShowTransition_);this.popupShowTransition_=null;_.F$(this.popupHideTransition_);this.popupHideTransition_=null;_.F$(this.bgShowTransition_);this.bgShowTransition_=null;_.F$(this.bgHideTransition_);this.bgHideTransition_=null;sN.superClass_.disposeInternal.call(this)};var Gu=function(N,t,O){sN.call(this,t,O);this.JSC$10328_class_=N||"modal-dialog";this.buttons_=(new NB).addButton(AHZ,!0).addButton(ZvB,!1,!0)};
_.Od(Gu,sN);_.V=Gu.prototype;_.V.escapeToCancel_=!0;_.V.hasTitleCloseButton_=!0;_.V.modal_=!0;_.V.draggable_=!0;_.V.backgroundElementOpacity_=.5;_.V.title_="";_.V.JSC$10330_dragger_=null;_.V.JSC$10330_disposeOnHide_=!1;_.V.titleEl_=null;_.V.titleTextEl_=null;_.V.titleTextId_=null;_.V.titleCloseEl_=null;_.V.contentEl_=null;_.V.buttonEl_=null;_.V.getCssClass=function(){return this.JSC$10328_class_};
_.V.setTitle=function(N){this.title_=N;this.titleTextEl_&&_.lt(this.titleTextEl_,N)};
_.V.getTitle=function(){return this.title_};
_.V.getContent=function(){return""};
_.V.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var VBr=function(N){N.getElement()||N.render();return N.getElement()};
Gu.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Gu.superClass_.getBackgroundElement.call(this)};
var D0f=function(N,t){N.backgroundElementOpacity_=t;N.getElement()&&(t=N.getBackgroundElement())&&Gia(t,N.backgroundElementOpacity_)};
Gu.prototype.setDraggable=function(N){this.draggable_=N;U00(this,N&&this.inDocument_)};
Gu.prototype.handleDrag=function(){};
var U00=function(N,t){var O=gt(N.JSC$10328_class_+"-title-draggable").split(" ");N.getElement()&&(t?ON(N.titleEl_,O):xVu(N.titleEl_,O));t&&!N.JSC$10330_dragger_?(t=new _.Rj(N.getElement(),N.titleEl_),N.JSC$10330_dragger_=t,ON(N.titleEl_,O),_.SF(N.JSC$10330_dragger_,"start",N.setDraggerLimits_,!1,N),_.SF(N.JSC$10330_dragger_,"drag",N.handleDrag,!1,N)):!t&&N.JSC$10330_dragger_&&(N.JSC$10330_dragger_.dispose(),N.JSC$10330_dragger_=null)};
_.V=Gu.prototype;
_.V.JSC$10299_createDom=function(){Gu.superClass_.JSC$10299_createDom.call(this);var N=this.getElement(),t=this.JSC$10297_dom_;this.titleTextId_=this.getId();var O=this.getId()+".contentEl";this.titleEl_=t.JSC$9483_createDom("DIV",this.JSC$10328_class_+"-title",this.titleTextEl_=t.JSC$9483_createDom("SPAN",{className:this.JSC$10328_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=t.JSC$9483_createDom("SPAN",this.JSC$10328_class_+"-title-close"));MuQ(N,this.titleEl_,this.contentEl_=
t.JSC$9483_createDom("DIV",{className:this.JSC$10328_class_+"-content",id:O}),this.buttonEl_=t.JSC$9483_createDom("DIV",this.JSC$10328_class_+"-buttons"));xTf(this.titleTextEl_,"heading");xTf(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;G2(this.titleCloseEl_,"label","Close");xTf(N,"dialog");G2(N,"labelledby",this.titleTextId_||"");_.AJ(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(N=this.buttons_,N.JSC$10331_element_=this.buttonEl_,N.render());_.AJ(this.buttonEl_,!!this.buttons_);
D0f(this,this.backgroundElementOpacity_)};
_.V.decorateInternal=function(N){Gu.superClass_.decorateInternal.call(this,N);N=this.getElement();var t=this.JSC$10328_class_+"-content";this.contentEl_=XJ(document,null,t,N)[0];this.contentEl_||(this.contentEl_=this.JSC$10297_dom_.JSC$9483_createDom("DIV",t),N.appendChild(this.contentEl_));t=this.JSC$10328_class_+"-title";var O=this.JSC$10328_class_+"-title-text",H=this.JSC$10328_class_+"-title-close";(this.titleEl_=XJ(document,null,t,N)[0])?(this.titleTextEl_=XJ(document,null,O,this.titleEl_)[0],
this.titleCloseEl_=XJ(document,null,H,this.titleEl_)[0]):(this.titleEl_=this.JSC$10297_dom_.JSC$9483_createDom("DIV",t),N.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=qWE(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.kG("SPAN",{className:O,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;G2(N,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10297_dom_.JSC$9483_createDom("SPAN",H),this.titleEl_.appendChild(this.titleCloseEl_));_.AJ(this.titleCloseEl_,this.hasTitleCloseButton_);t=this.JSC$10328_class_+"-buttons";(this.buttonEl_=XJ(document,null,t,N)[0])?(this.buttons_=new NB(this.JSC$10297_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10297_dom_.JSC$9483_createDom("DIV",t),N.appendChild(this.buttonEl_),this.buttons_&&(N=this.buttons_,N.JSC$10331_element_=this.buttonEl_,N.render()),_.AJ(this.buttonEl_,
!!this.buttons_));D0f(this,this.backgroundElementOpacity_)};
_.V.enterDocument=function(){Gu.superClass_.enterDocument.call(this);EN(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);EN(this).listen(this.buttonEl_,"click",this.onButtonClick_);U00(this,this.draggable_);EN(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var N=this.getElement();xTf(N,"dialog");this.titleTextEl_.id!==""&&G2(N,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){N=this.JSC$10297_dom_;
var t=this.getBackgroundElement();N.removeNode(this.bgIframeEl_);N.removeNode(t)}this.isVisible()&&Ovr(this,!1)}};
_.V.exitDocument=function(){this.isVisible()&&this.setVisible(!1);U00(this,!1);Gu.superClass_.exitDocument.call(this)};
_.V.setVisible=function(N){N!=this.isVisible()&&(this.inDocument_||this.render(),Gu.superClass_.setVisible.call(this,N))};
_.V.onShow=function(){Gu.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.V.onHide=function(){Gu.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10330_disposeOnHide_&&this.dispose()};
_.V.setDraggerLimits_=function(){var N=this.JSC$10297_dom_.JSC$9481_document_,t=_.Ti(lw(N)||window),O=Math.max(N.body.scrollWidth,t.width);N=Math.max(N.body.scrollHeight,t.height);var H=mwf(this.getElement());_.ICB(this.getElement())=="fixed"?this.JSC$10330_dragger_.limits=new QA(0,0,Math.max(0,t.width-H.width),Math.max(0,t.height-H.height)):this.JSC$10330_dragger_.limits=new QA(0,0,O-H.width,N-H.height)};
_.V.onTitleCloseClick_=function(){COr(this)};
var COr=function(N){if(N.hasTitleCloseButton_){var t=N.buttons_,O=t&&t.cancelButton_;O?(t=t.get(O),N.dispatchEvent(new tL(O,t))&&N.setVisible(!1)):N.setVisible(!1)}},K2E=function(N){N.hasTitleCloseButton_=!1;
N.titleCloseEl_&&_.AJ(N.titleCloseEl_,N.hasTitleCloseButton_)};
Gu.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Gu.superClass_.disposeInternal.call(this)};
Gu.prototype.onButtonClick_=function(N){a:{for(N=N.target;N!=null&&N!=this.buttonEl_;){if(N.tagName=="BUTTON")break a;N=N.parentNode}N=null}if(N&&!N.disabled){N=N.name;var t=this.buttons_.get(N);this.dispatchEvent(new tL(N,t))&&this.setVisible(!1)}};
Gu.prototype.onKey_=function(N){var t=!1,O=!1,H=this.buttons_,A=N.target;if(N.type=="keydown")if(this.escapeToCancel_&&N.keyCode==27){var Z=H&&H.cancelButton_;A=A.tagName=="SELECT"&&!A.disabled;Z&&!A?(O=!0,t=H.get(Z),t=this.dispatchEvent(new tL(Z,t))):A||(t=!0)}else{if(N.keyCode==9&&N.shiftKey&&A==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(B){}nV(this.resetBackwardTabWrap_,0,this)}}else if(N.keyCode==13){if(A.tagName=="BUTTON"&&!A.disabled)Z=A.name;
else if(A==this.titleCloseEl_)COr(this);else if(H){var U=H.defaultButton_,C;if(C=U)a:{C=eR("BUTTON",H.JSC$10331_element_);for(var F,g=0;F=C[g];g++)if(F.name==U||F.id==U){C=F;break a}C=null}A=(A.tagName=="TEXTAREA"||A.tagName=="SELECT"||A.tagName=="A")&&!A.disabled;!C||C.disabled||A||(Z=U)}Z&&H&&(O=!0,t=this.dispatchEvent(new tL(Z,String(H.get(Z)))))}else A!=this.titleCloseEl_||N.keyCode!=32&&N.key!=" "||COr(this);if(t||O)N.stopPropagation(),N.preventDefault();t&&this.setVisible(!1)};
var tL=function(N,t){this.type="dialogselect";this.key=N;this.caption=t};
_.Od(tL,_.a7);var NB=function(N){J8.call(this);N||eu();this.cancelButton_=this.JSC$10331_element_=this.defaultButton_=null};
_.Od(NB,J8);_.V=NB.prototype;_.V.clear=function(){J8.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.V.set=function(N,t,O,H){J8.prototype.set.call(this,N,t);O&&(this.defaultButton_=N);H&&(this.cancelButton_=N);return this};
_.V.addButton=function(N,t,O){return this.set(N.key,N.caption,t,O)};
_.V.render=function(){if(this.JSC$10331_element_){_.CU(this.JSC$10331_element_,K8S);var N=eu(this.JSC$10331_element_);this.forEach(function(t,O){t=N.JSC$9483_createDom("BUTTON",{name:O},t);O==this.defaultButton_&&(t.className="goog-buttonset-default");this.JSC$10331_element_.appendChild(t)},this)}};
_.V.decorate=function(N){if(N&&N.nodeType==1){this.JSC$10331_element_=N;N=eR("BUTTON",this.JSC$10331_element_);for(var t,O,H,A=0;t=N[A];A++)if(O=t.name||t.id,H=qWE(t)||t.value,O){var Z=A==0;this.set(O,H,Z,t.name=="cancel");Z&&_.mw(t,"goog-buttonset-default")}}};
_.V.getElement=function(){return this.JSC$10331_element_};
var AHZ={key:"ok",caption:"OK"},ZvB={key:"cancel",caption:"Cancel"},F20={key:"yes",caption:"Yes"},d0S={key:"no",caption:"No"},gL0={key:"save",caption:"Save"},yHf={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new NB).addButton(AHZ,!0,!0),(new NB).addButton(AHZ,!0).addButton(ZvB,!1,!0),(new NB).addButton(F20,!0).addButton(d0S,!1,!0),(new NB).addButton(F20).addButton(d0S,!0).addButton(ZvB,!1,!0),(new NB).addButton(yHf).addButton(gL0).addButton(ZvB,!0,!0));_.Od(sDg,Gu);_.Od(NrO,RP);var BNS=_.mp(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),cHr=_.mp(["//apis.google.com/js/rpc.js"]),C0Q=_.ju(BNS),UVl=_.ju(cHr),Ozg=null;var vA=function(N,t){_.Xm.call(this);this.JSC$10340_element_=N;N=_.FW(this.JSC$10340_element_)?this.JSC$10340_element_:this.JSC$10340_element_?this.JSC$10340_element_.body:null;this.isRtl_=!!N&&_.RoZ(N);this.listenKey_=_.SF(this.JSC$10340_element_,_.D7?"DOMMouseScroll":"mousewheel",this,t)};
_.Od(vA,_.Xm);vA.prototype.handleEvent=function(N){var t=0,O=0,H=N.event_;H.type=="mousewheel"?(N=$0S(-H.wheelDelta),H.wheelDeltaX!==void 0?(t=$0S(-H.wheelDeltaX),O=$0S(-H.wheelDeltaY)):O=N):(N=H.detail,N>100?N=3:N<-100&&(N=-3),H.axis!==void 0&&H.axis===H.HORIZONTAL_AXIS?t=N:O=N);typeof this.maxDeltaX_==="number"&&(t=_.eS(t,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(O=_.eS(O,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(t=-t);t=new jrX(N,H,t,O);this.dispatchEvent(t)};
var $0S=function(N){return _.Ud&&(_.R9R||Jgp)&&N%40!=0?N:N/40};
vA.prototype.disposeInternal=function(){vA.superClass_.disposeInternal.call(this);jF(this.listenKey_);this.listenKey_=null};
var jrX=function(N,t,O,H){_.Tk.call(this,t);this.type="mousewheel";this.detail=N;this.deltaX=O;this.deltaY=H};
_.Od(jrX,_.Tk);_.oE=function(N){var t="instance_";if(N.instance_&&N.hasOwnProperty(t))return N.instance_;t=new N;return N.instance_=t};var DVz;var ivY=_.mp(["https://about:blank"]),uUy=_.mp(['javascript:""']),Sla=_.mp(["about:blank"]);_.Od(Zy,sDg);_.V=Zy.prototype;_.V.JSC$10348_url_="";_.V.JSC$10348_iframe_=null;_.V.iframeLoaded_=!1;_.V.loadedFired_=!1;_.V.callback_=function(){};
_.V.enterDocument=function(){Zy.superClass_.enterDocument.call(this);Zzz(this.getBackgroundElement(),EN(this))};
_.V.render=function(N){var t=this;Zy.superClass_.render.call(this,N);this.useGapi_?S8y(this.iframeManager_,window).then(function(){return hnE(t)}).then(null,function(){t.callback_({action:"error"})}):MBp(this)};
var hnE=function(N){var t=N.JSC$10297_dom_.JSC$9483_createDom("div",["picker-dialog-content","picker-frame"]);_.AJ(t,!1);N.getContentElement().appendChild(t);return hKf(N.iframeManager_,t,function(O){var H=W7E(O["iframe-command"]);switch(H.getCommand()){case 1:O=N.callback_;H=_.Sg(H,Fm,2);var A="";switch(H.getStatus()){case 2:A="cancel";break;case 1:A="picked";break;case 3:A="error"}var Z=_.y5(H,Md,2,_.cA(Spr));H=Z.length===0?{action:A}:O0u(Z,A,_.Sg(H,q$X,7));O.call(N,H);N.setVisible(!1);break;case 4:K2E(N);
N.callback_({action:"loaded"});break;case 7:case 8:O=N.callback_;a:{A=H.getCommand();Z=_.Sg(H,Fm,2);switch(A){case 7:A="uploadScheduled";break;case 8:A="uploadStateChange";break;default:H={};break a}H=_.y5(Z,Md,2,_.cA(Spr));if(H.length===0)H={action:A};else{var U=_.Sg(Z,q$X,7);Z=U&&_.YD(U,1);U=Qbp(U);H=GCX(H,A,Z,U)}}O.call(N,H)}},N.JSC$10348_url_,N.targetId_,N.rpcToken_).then(function(O){N.JSC$10348_iframe_=O.getIframeEl();
bvr(N);_.AJ(N.JSC$10348_iframe_.parentElement,!0);_.mw(N.getElement(),"picker-dialog");pCS(N);return O})},MBp=function(N){N.JSC$10348_iframe_=N.JSC$10297_dom_.JSC$9483_createDom("IFRAME",{id:N.targetId_,
name:N.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.No(N.JSC$10348_iframe_,L2a(N));_.mw(N.getElement(),"picker-dialog");N.getContentElement().appendChild(N.JSC$10348_iframe_);EN(N).listen(N.JSC$10348_iframe_,"load",function(){return void bvr(N)});
N.JSC$10348_iframe_.src=N.JSC$10348_url_;pCS(N)},Ylp=function(N){znR(N,(0,_.qn)(function(t){t.setAuthToken(this.targetId_,this.rpcToken_)},N))},pCS=function(N){var t=_.OH(_.tJ(N.JSC$10348_url_),"title");
t&&N.setTitle(t)},L2a=function(N){return _.h9x("Internet Explorer")>=7&&_.Zp(N.JSC$10348_url_,"https")?_.ju(ivY):_.V_?_.ju(uUy):_.ju(Sla)},bvr=function(N){Ylp(N);
N.iframeLoaded_=!0;N.JSC$10348_iframe_.tabIndex=0;N.isVisible()&&N.focus()};
Zy.prototype.handleKeydown_=function(N){N.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),N.stopPropagation(),N.preventDefault())};
var znR=function(N,t){var O=N.JSC$10346_gadgetsDomHelper_;Hzg(function(){t(O.getWindow().gadgets.rpc)},O)};
Zy.prototype.setUrl=function(N){N=_.Ho(new _.Ir(N),"rpcService",this.targetId_);_.Ho(N,"rpctoken",this.rpcToken_);_.cL(N,"rpctoken="+this.rpcToken_);_.Fx(N,"https");this.JSC$10348_url_=N.toString();this.JSC$10348_iframe_&&(this.JSC$10348_iframe_.src=this.JSC$10348_url_)};
var aAp=function(N,t){N.callback_=t;znR(N,(0,_.qn)(function(O){O.register(this.targetId_,(0,_.qn)(this.handlePickerAction_,this))},N))};
Zy.prototype.handlePickerAction_=function(N){var t=N.action;t=="loaded"&&(this.loadedFired_=!0,TNQ(this,new ovN(this.isVisible())),wCu(this),K2E(this),EN(this).unlisten(this.JSC$10297_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10348_iframe_.tabIndex=0);t!="picked"&&t!="cancel"||this.setVisible(!1);this.callback_(N)};
var wCu=function(N){N.JSC$10348_appId_&&TNQ(N,new Jep(N.JSC$10348_appId_,window.location.protocol+"//"+window.location.host))};
Zy.prototype.setRelayUrl=function(N){znR(this,(0,_.qn)(function(t){t.setRelayUrl(this.targetId_,N)},this))};
var TNQ=function(N,t){N.useGapi_&&zKS(t,N.iframeManager_).then(null,function(){N.callback_({action:"error"})});
znR(N,(0,_.qn)(function(O){O.call(this.targetId_,"picker",null,t)},N))};
Zy.prototype.resizePicker_=function(){var N=lw(this.JSC$10297_dom_.JSC$9481_document_)||window;if(_.OH(_.tJ(this.JSC$10348_url_),"ignoreLimits")=="true")N=new _.aN(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.OH(_.tJ(this.JSC$10348_url_),"shadeDialog")=="true"){var t=VBr(this);t=vmu(t);var O=_.Ti(N);N=O.width-80;O=O.height-40;t&&(N-=t.left?t.left:0,N-=t.right?t.right:0,O-=t.top?t.top:0,O-=t.bottom?t.bottom:0);N=new _.aN(N>0?N:0,O>0?O:0)}else(t=this.preferredDialogWidth_)?(t=Math.max(320,
Math.min(1051,t)),(O=this.preferredDialogHeight_)||(O=_.Ti(N).height*.85),O=Math.max(480,Math.min(650,O))):(t=_.Ti(N),O=t.width*.618,O=O<t.height?Math.round(Math.max(480,Math.min(650,O*.85))):Math.round(Math.max(480,Math.min(650,t.height*.85))),t=Math.round(O/.618)),N=_.Ti(N),t=Math.min(t,Math.max(N.width,320)),O=Math.min(O,Math.max(N.height,480)),N=new _.aN(t,O);_.lCE(this.getContentElement(),N);this.reposition()};
Zy.prototype.reposition=function(){if(_.OH(_.tJ(this.JSC$10348_url_),"shadeDialog")=="true"){var N=mwf(this.getElement()),t=_.Ti(this.JSC$10297_dom_.getWindow());N=Math.floor(t.width/2-N.width/2);t=VBr(this);if(t=vmu(t)){var O=t.left?t.left:0;O+=t.right?t.right:0;N=Math.floor(N-O/2)}N=N>0?N:0;t=wc(this.JSC$10297_dom_).y;Gj(this.getElement(),N,t)}else Zy.superClass_.reposition.call(this)};
Zy.prototype.setVisible=function(N){if(N!=this.isVisible()&&this.autoSizeDialog_){var t=this.JSC$10297_dom_.getWindow();N?(this.resizePicker_(),EN(this).listen(t,"resize",this.resizePicker_),this.iframeLoaded_||EN(this).listen(t,"keydown",this.handleKeydown_)):(EN(this).unlisten(t,"resize",this.resizePicker_),this.iframeLoaded_||EN(this).unlisten(t,"keydown",this.handleKeydown_))}Zy.superClass_.setVisible.call(this,N);TNQ(this,new ovN(N))};
Zy.prototype.focus=function(){Zy.superClass_.focus.call(this);if(this.JSC$10348_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10348_iframe_.focus()}catch(N){}};var i8=function(N,t){t=t===void 0?Zy:t;RP.call(this,N);this.pickerConstructor=t;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(N=window.location.origin)||(N=window.location.protocol+"//"+window.location.host);N&&this.urlParamMap_.set("origin",N);this.postProcessors_=[]};
_.p(i8,NrO);i8.prototype.JSC$10353_disposeOnHide_=!1;
i8.prototype.build=function(){this.JSC$10254_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10254_appId_);this.getRelayUrl()||this.setRelayUrl(_.y1(_.cL(_.BL(_.tJ(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var N=new this.pickerConstructor(enu(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);N.JSC$10330_disposeOnHide_=this.JSC$10353_disposeOnHide_;
N.JSC$10348_appId_=this.JSC$10254_appId_;N.loadedFired_&&wCu(N);aAp(N,this.callback_);return N};
var POR=function(N){N.urlParamMap_.set("multiselectEnabled","true");return N};
_.V=i8.prototype;_.V.getHeight=function(){return this.dialogHeight_};
_.V.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.V.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.V.getTitle=function(){return this.urlParamMap_.get("title")};
_.V.getWidth=function(){return this.dialogWidth_};
var XCZ=function(N){N.JSC$10353_disposeOnHide_=void 0;return N};
i8.prototype.setRelayUrl=function(N){this.urlParamMap_.set("parent",N);return this};
var x0Q=function(N,t){N.urlParamMap_.set("selectButtonLabel",t);return N};
i8.prototype.setSize=function(N,t){this.dialogWidth_=N;this.dialogHeight_=t;return this};
i8.prototype.setTitle=function(N){this.urlParamMap_.set("title",N);return this};
var enu=function(N){N.postProcessors_.length&&N.urlParamMap_.set("pp",JSON.stringify(N.postProcessors_));N.urlParamMap_.set("nav",WKp(N.nav_));var t=new _.Ir(N.getBaseUrl());N.urlParamMap_.forEach(function(O,H){_.Ho(t,H,O)});
return t};var fAR=function(N,t){N.name!==void 0?(this.name=N.name,this.code=k8y[N.name]):(this.code=N=N.code,this.name=qlB(N));_.Nz.call(this,Uoy("%s %s",this.name,t))};
_.Od(fAR,_.Nz);var qlB=function(N){var t=_.WW.findKey(k8y,function(O){return N==O});
if(t===void 0)throw Error("hb`"+N);return t},Ot={},k8y=(Ot.AbortError=3,Ot.EncodingError=5,Ot.InvalidModificationError=9,Ot.InvalidStateError=7,Ot.NotFoundError=1,Ot.NotReadableError=4,Ot.NoModificationAllowedError=6,Ot.PathExistsError=12,Ot.QuotaExceededError=10,Ot.SecurityError=2,Ot.SyntaxError=8,Ot.TypeMismatchError=11,Ot);var nLu=function(N,t){_.a7.call(this,N.type,t);this.event_=N};
_.Od(nLu,_.a7);var W2p=function(N,t,O){O===void 0&&(O=N.size);return N.slice?N.slice(t,O):null};var dVG=new WeakMap,F8y=function(N,t){N=[N];for(var O=t.length-1;O>=0;--O)N.push(typeof t[O],t[O]);return N.join("\v")};_.yrO(function(){if(!_.H4.Blob)return!1;var N=new Uint8Array(100);try{var t=new Blob([N])}catch(O){return!1}return t.size!=100?!1:!0});
var rHu=_.yrO(function(){if(!_.H4.Blob)return!1;var N=new Uint8Array(100);try{var t=new Blob([N])}catch(O){return!1}return W2p(t,0,1)===null?!1:!0});_.H4.U3bHHf!=null||(_.H4.U3bHHf=0);_.H4.U3bHHf++;_.IAB=new WeakMap;_.lAR=new WeakMap;var crO={};var UH=void 0;var jkO=Symbol("pb");var waG=FS("WizInjectionContext_Dispatcher");var y8=Symbol("qb");var Tm,kl;Tm=function(){this.afterRenderCallbacks=null};
_.ivp=Symbol("rb");kl=function(N){this.props=N;this.__unmounted=!1};
kl.prototype.didPatch=function(){};
kl.prototype.didMount=function(){};
kl.prototype.didUnmount=function(){};
kl.prototype.didUpdate=function(){};_.L8x=FS("WizInjectionContext_RootElement");var YvN=FS("WizInjectionContext_AppContext"),zAx=FS("WizInjectionContext_ModelRootElement"),aoy=FS("WizInjectionContext_RendererData"),TrS=FS("WizInjectionContext_InjectingConstructor"),pa9=FS("WizInjectionContext_AsyncDeps"),eA4={};var fog=!1;var IoM={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:IpQ,enableLazyTsx:lpX,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:rgE,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var gp=Object.assign({},{attributes:{},handleError:function(N){throw N;}},IoM);var QrB=Symbol("vb"),kM=Symbol("wb"),l4v=Symbol("xb"),r_v=Symbol("yb"),J_x=xX(function(N){return yo(N)&&QrB in N});var v2l=Symbol("zb"),HS={},GBM=(HS[v2l]=!0,HS.debugName="[component]",HS.getComponentStack=function(){for(var N=[],t=this;t;)JrS(t)&&N.push(t.debugName),t=t.parent;return N},HS.registerSignal=function(){},HS.registerEffect=function(){},HS);var Bo=null,$M=!1,i$=1,hJ=Symbol("Db"),YM={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var AL=Symbol("Eb"),ZX=Symbol("Fb"),SG=Symbol("Gb"),Dgl=Object.assign({},YM,{value:AL,dirty:!0,error:null,equal:o2v,kind:"computed",producerMustRecompute:function(N){return N.value===AL||N.value===ZX},
producerRecomputeValue:function(N){if(N.value===ZX)throw Error("Z");var t=N.value;N.value=ZX;var O=A_t(N),H=!1;try{var A=N.computation();co(null);H=t!==AL&&t!==SG&&A!==SG&&N.equal(t,A)}catch(Z){A=SG,N.error=Z}finally{co(O),N&&VOt(N)}H?N.value=t:(N.value=A,N.version++)}});Object.assign({},YM,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var FvQ=function(){throw Error();};var g3y=null,Cdv=Object.assign({},YM,{equal:o2v,value:void 0,kind:"signal"});var y_t=Object.assign({},YM,{value:AL,dirty:!0,error:null,equal:o2v,kind:"linkedSignal",producerMustRecompute:function(N){return N.value===AL||N.value===ZX},
producerRecomputeValue:function(N){if(N.value===ZX)throw Error("Z");var t=N.value;N.value=ZX;var O=A_t(N);try{var H=N.source();var A=N.computation(H,t===AL||t===SG?void 0:{source:N.sourceValue,value:t});N.sourceValue=H}catch(Z){A=SG,N.error=Z}finally{co(O),N&&VOt(N)}t!==AL&&A!==SG&&N.equal(t,A)?N.value=t:(N.value=A,N.version++)}});Object.assign({},YM,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(N){N.schedule!==null&&N.schedule(N.ref)},
cleanupFn:function(){}});var $gl=Symbol("Hb"),pt=Symbol("Ib");var Lt=Array.isArray;var Lv9;var m0a={},Y7z=pXt(Object.assign({},{consumerAllowSignalWrites:!0},m0a)),eT=pXt(Object.assign({},{consumerAllowSignalWrites:!0},m0a));var eG=Symbol("Nb");var wp=null,wX9,eSv=null,Pd4;var qY=0,ft=!1,Vq=function(){this.queue=new Set};
Vq.prototype.schedule=function(N){this.queue.add(N)};
Vq.prototype.remove=function(N){this.queue.delete(N)};
Vq.prototype.clear=function(){this.queue.clear()};
var q7M=Symbol("Ob"),xg4=Symbol("Pb"),DX=function(){Vq.apply(this,arguments)};
_.p(DX,Vq);DX.prototype.flush=function(){if(this.queue.size){ft=!0;for(var N=_.D(this.queue),t=N.next();!t.done;t=N.next()){t=t.value;this.queue.delete(t);try{t.run()}catch(O){ELB(O)}}ft=!1}};
var G8B=function(){DX.apply(this,arguments)};
_.p(G8B,DX);var kWp=new G8B,Rnu=function(){DX.apply(this,arguments)};
_.p(Rnu,DX);Rnu.prototype.schedule=function(N){return _.K(function(t){if(t.nextAddress==1)return t.yield(Promise.resolve(),2);N.run();_.Ty(t)})};
Rnu.prototype.enqueue=function(N){this.queue.add(N)};
var f4x=new Rnu,Ut=function(){Vq.apply(this,arguments)};
_.p(Ut,Vq);Ut.prototype.flush=function(){this.queue.size&&o3M(this.queue)};
var vLZ=function(){Ut.apply(this,arguments)};
_.p(vLZ,Ut);vLZ.prototype.schedule=function(N){N.hasRun?this.queue.add(N):N.run()};
vLZ.prototype.flush=function(){if(this.queue.size)if(gp.flushRenderEffectsDuringRender){var N=this.queue;this.queue=new Set;o3M(N)}else o3M(this.queue)};
var Wvt=new vLZ,JHf=function(){Ut.apply(this,arguments)};
_.p(JHf,Ut);JHf.prototype.schedule=function(N){return _.K(function(t){if(t.nextAddress==1)return t.yield(Promise.resolve(),2);N.run();_.Ty(t)})};
JHf.prototype.enqueue=function(N){this.queue.add(N)};
var Q0G=new JHf,oLQ=function(){Ut.apply(this,arguments)};
_.p(oLQ,Ut);var I4G=new oLQ,E3N=[Wvt,kWp,I4G],v3g=[f4x,Q0G],srX=[Wvt,I4G,Q0G],s0t=[].concat(_.W6(E3N),_.W6(v3g)),N0Z=[];g3y=function(){RSl();for(var N=_.D(N0Z),t=N.next();!t.done;t=N.next())t=t.value,t()};
var ELB=Ag;var Cg={},tb0=Object.assign({},YM,(Cg[QrB]=!0,Cg.effectType=kM,Cg.isResettableContext=!0,Cg.hasRun=!1,Cg.effectFn=null,Cg.consumerIsAlwaysLive=!0,Cg.consumerAllowSignalWrites=!0,Cg.consumerMarkedDirty=mgO,Cg.kind="effect",Cg.run=function(){if(this.effectFn!==null&&!this.isDisposed){if($M)throw Error("Qb");this.dirty=!1;if(!this.hasRun||tO4(this)){this.hasRun=!0;bzN(this);var N=_.Ct(this),t=A_t(this);QkM("effectRun",this.debugName);try{xM(this.effectFn,this.componentStack,this)}catch(O){throw gp.enableContextBasedComponentStacks&&
XS(O),O;}finally{mVG("effectRun",this.debugName),co(t),this&&VOt(this),_.Ct(N)}}}},Cg.componentStack=void 0,Cg.debugName="[effect]",Cg[Symbol.dispose]=function(){if(jG(this))for(var N=this.producers;N!==void 0;)N=ZbO(N);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;N=_.D(srX);for(var t=N.next();!t.done;t=N.next())t.value.remove(this);Mg9(this)},Cg));var t49=Object.assign({},tb0,{effectType:kM});var O9v=Object.assign({},tb0,{effectType:l4v});var hcM=Symbol("Rb");var Avv=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 pdS={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},b9x=
{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}]}},jBg={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},Yhz=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],zc9={"*":{async:1,dir:0,loading:2,target:3}};var OJX=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Kg={},T9S=(Kg[1]=null,Kg[2]=function(N,t){return t instanceof vl?od(t):rD.toString()},Kg[3]=function(N,t){return qm(t)?_.f8(t):OJX.test(String(t))?String(t):rD.toString()},Kg[4]=function(N,t){return t instanceof TN?_.es(t):rD.toString()},Kg[5]=function(N,t){return String(t)},Kg[7]=null,Kg[8]=null,Kg[10]=null,Kg);var bxG=Symbol("Ub");var Fa9=function(N){var t=HJ0,O=N,H="",A="",Z=1;N<0&&(N=-N);if(N===Infinity)N=(Infinity*Math.sign(O)).toString();else{for(var U=0;U<AbZ.length;U++){var C=AbZ[U];Z=t[C];if(N>=Z||Z<=1&&N>.1*Z){H=C;break}}H?(H+="B",A=" "):Z=1;N=Math.round(O/Z*10)/10+A+H}return N},AbZ="Y Z E P T G M K  m u n".split(" "),HJ0={"":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};_.ZJy=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 MC={};RegExp.prototype.hasOwnProperty("sticky");var VmN=function(N){N=String(N);for(var t=function(H,A,Z){for(var U=Math.min(A.length-Z,H.length),C=0;C<U;C++){var F=A[Z+C];if(H[C]!==("A"<=F&&F<="Z"?F.toLowerCase():F))return!1}return!0},O=0;(O=N.indexOf("<",O))!=-1;){if(t("\x3c/script",N,O)||t("\x3c!--",N,O))return"zSoyz";
O+=1}return N};var JJ={default:"__default"};var kCQ=Object.prototype.hasOwnProperty;PUg.prototype=Object.create(null);var cd=n6O();var CL=null;var Jyz=function(N){this.created=[];this.deleted=[];this.node=N};var o6S=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var N=this,t=N;N;)t=N,N=N.parentNode;return t};var ryl=function(N,t){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=N;this.key=t;this.text=void 0};var HZ=null,AO=null,tO=null,V8=null,E6g=[],m1y=l3x,Dt=[],U2=[],Mpl=function(N){return sbt(function(t,O,H){tO=AO=t;AO=null;O(H);QbS(null);AO=tO;tO=tO.parentNode;return t},N)}(),hPv=function(N){return sbt(function(t,O,H){var A={nextSibling:t};
AO=A;O(H);tO&&QbS(t.nextSibling);return A===AO?null:AO},N)}();var KL=[],tm9=0;var FN=new PUg;var pC=new PUg;var VbB=n6O(),CqO=VbB[JJ.default],UTS=VbB.style,Z0S=["focusin","focusout"],dTQ="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var oIQ=function(){},WFG=function(){},Hvp=function(){},NNS=function(){};var gu=Symbol("bc");var $TM,cvO=BeG;var LL=Symbol("cc");var Ovv=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(" ")),
tBt=new Set(["a","font","script","style","title"]);_.pL={setUp:TeM,tearDown:TeM,log:TeM,logNodeRange:TeM,graft:function(N,t){t()}};var PZ={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var XN=null,xl=function(N,t){kl.call(this,N);var O=this;this.functionComponent=t;this.hooks=[];this.hookCounter=0;this.disposeEffects=l$(function(H){O.effectContext=H;_.Ia(function(){QnO(O,O.el)})},gp.alwaysTrackContexts||!!UH)};
_.p(xl,kl);xl.prototype.render=function(N){var t=XN;XN=this;this.hookCounter=0;var O=co(eT),H=_.Ct(this.effectContext);try{return QkM("render",this.componentName),this.functionComponent(N)}finally{mVG("render",this.componentName),_.Ct(H),co(O),XN=t}};
_.cv.Object.defineProperties(xl.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return a4v(this.functionComponent)}}});var AHG=Symbol("qc"),vIM=function(N,t,O){this.afterRenderCallbacks=null;this.kind=N;this.props=t;this.children=O};
_.p(vIM,Tm);vIM.prototype.render=function(){var N=RKS(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var t=_.D(this.afterRenderCallbacks),O=t.next();!O.done;O=t.next())O=O.value,N=O(N);return N};
vIM.prototype.getChildren=function(){return this.children};var VBv=[];FvQ=function(N){throw Error("ob`"+N.debugName);};
(function(){var N=CL;CL=function(t){N==null||N(t);D0t(t)}})();Object.assign({},tb0,{effectType:kM,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var N=this.elementRef;var t;N.element!=null||(N.element=(t=N.document.getElementById(N.value))!=null?t:void 0);N=N.element;for(t=this.attributes;t;){var O=t.signal();O!==t.prevValue&&(t.prevValue=O,t.namespace===1?N[t.name]=O:Avv.has(t.name)?vo(N,t.name,O?"":null):vo(N,t.name,O));t=t.next}}});_.qC.debugName="tbhMcf";_.fL.debugName="zyMFzb";Object.assign({},tb0,{effectType:kM,hasRun:!0});_.y.debugName="RlDudd";var U04={nonNullableCondIsNull:function(){return Error("uc")}};var BNM=function(){this.map=new Map};
BNM.prototype.push=function(N,t){var O=this.map;O.has(N)&&(this.multi||(this.multi=new Map),this.multi.set(t,O.get(N)));O.set(N,t)};
BNM.prototype.pop=function(N){var t=this.map,O=t.get(N),H;O!==void 0&&((H=this.multi)==null?0:H.has(O))?(t.set(N,this.multi.get(O)),this.multi.delete(O)):t.delete(N);return O};_.nL.debugName="nsTGHd";_.WZ.debugName="vI1rtf";_.Sl9={OUT_OF_ORDER_HOOK_CALL:function(N){return Error("vc`"+N)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(N,t){return Error("zc`"+((t===void 0?0:t)?"IDOM":"Reactive")+"`"+(ru(N)?N.description:N))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(N,t){return Error("Ac`"+(ru(N)?N.description:N)+"`"+t)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(N){return Error("Bc`"+(ru(N)?N.description:N))},
USE_ELEMENT_NOT_ASSIGNED:function(N){return Error("Cc`"+(ru(N)?N.description:N))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(N){return Error("Dc`"+(ru(N)?N.description:N))}};$TM=Jv4;var znN=Symbol("Ec");I0y({beforeRender:function(N){var t=_.Ct(N.effectContext);try{var O;((O=N.__syncEffects)==null?0:O.length)&&TNl(N.__syncEffects)}finally{_.Ct(t)}},
didPatch:function(N){var t=_.Ct(N.effectContext);try{var O;((O=N.__syncEffects)==null?0:O.length)&&TNl(N.__syncEffects)}finally{_.Ct(t)}},
didUnmount:function(N){var t;((t=N.hooks)==null?0:t.length)&&N.hooks.forEach(aAS)}});var DpS,Up0,Cpa;DpS=_.H4.window;_.E2=(DpS==null?void 0:(Up0=DpS.yt)==null?void 0:Up0.config_)||(DpS==null?void 0:(Cpa=DpS.ytcfg)==null?void 0:Cpa.data_)||{};_.Ba("yt.config_",_.E2);var KIY={},x0l=[];_.fF=function(N){var t=_.E1.apply(1,arguments);var O=Error.call(this,N);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.args=[].concat(_.W6(t));Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(_.fF,Error);var tfz=function(N,t,O){this.actionName=N;this.optionalAction=t===void 0?!1:t;this.args=O===void 0?null:O;this.returnValue=[]};_.Fp=function(N){this.name=N};_.Hd=new _.Fp("signalAction");var ELO=/^[\w.]*$/,W2S={q:!0,search_query:!0},nLg=String(fAN);var $v;$v=Symbol("Fc");_.dk=function(N){this.name=N};
_.dk.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var G8O=function(N){this.key=N},srx=function(N){this.deferredKey=N},vLG=function(){var N=this;
this.providers=new Map;this.JSC$10643_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(N.providers)}}};
vLG.prototype.addProvider=function(N){this.providers.set(N.provide,N);var t=this.JSC$10643_deferred.get(N.provide);if(t)try{t.resolver(this.resolve(N.provide))}catch(O){t.rejector(O)}};
vLG.prototype.resolve=function(N){return N instanceof srx?FIY(this,N):N instanceof G8O?dpr(this,N.key,[],!0):dpr(this,N,[])};
var FIY=function(N,t){t=t.deferredKey;if(N.JSC$10643_deferred.has(t))return N.JSC$10643_deferred.get(t).promise;var O={};O.promise=new Promise(function(H,A){O.resolver=H;O.rejector=A});
N.JSC$10643_deferred.set(t,O);return O.promise},dpr=function(N,t,O,H){H=H===void 0?!1:H;
if(O.indexOf(t)>-1)throw Error("Gc`"+t);if(N.cachedValues.has(t))return N.cachedValues.get(t);if(!N.providers.has(t)){if(H)return;throw Error("Hc`"+t);}H=N.providers.get(t);O.push(t);if(H.useValue!==void 0)var A=H.useValue;else if(H.useFactory)A=H[$v]?gY0(N,H[$v],O):[],A=H.useFactory.apply(H,_.W6(A));else if(H.useClass){A=H.useClass;var Z=A[$v]?gY0(N,A[$v],O):[];A=new (Function.prototype.bind.apply(A,[null].concat(_.W6(Z))))}else throw Error("Ic`"+t);O.pop();H.skipCache||N.cachedValues.set(t,A);return A},
gY0=function(N,t,O){return t?t.map(function(H){return H instanceof G8O?dpr(N,H.key,O,!0):dpr(N,H,O)}):[]};var Rng;var Ay=new _.dk("ENDPOINT_HANDLER_TOKEN");_.Z3=new _.Fp("urlEndpoint");var ybp=function(){this.data=[];this.cachedPackedInt52=-1};
ybp.prototype.set=function(N,t){t=t===void 0?!0:t;0<=N&&N<52&&Number.isInteger(N)&&this.data[N]!==t&&(this.data[N]=t,this.cachedPackedInt52=-1)};
ybp.prototype.get=function(N){return!!this.data[N]};
var B0r=function(N){N.cachedPackedInt52===-1&&(N.cachedPackedInt52=N.data.reduce(function(t,O,H){return t+(O?Math.pow(2,H):0)},0));
return N.cachedPackedInt52};var gY4=function(N){var t=cb0;N=N===void 0?_.s2("yt.ads.biscotti.lastId_")||"":N;var O=Object,H=O.assign,A={};A.dt=yrB;A.flash="0";a:{try{var Z=t.JSC$10649_win_.top.location.href}catch(J){Z=2;break a}Z=Z?Z===t.doc_.location.href?0:1:2}A=(A.frm=Z,A);try{A.u_tz=-(new Date).getTimezoneOffset();try{var U=sP.history.length}catch(J){U=0}A.u_his=U;var C;A.u_h=(C=sP.screen)==null?void 0:C.height;var F;A.u_w=(F=sP.screen)==null?void 0:F.width;var g;A.u_ah=(g=sP.screen)==null?void 0:g.availHeight;var B;A.u_aw=
(B=sP.screen)==null?void 0:B.availWidth;var c;A.u_cd=(c=sP.screen)==null?void 0:c.colorDepth}catch(J){}U=t.JSC$10649_win_;try{var u=U.screenX;var S=U.screenY}catch(J){}try{var b=U.outerWidth;var z=U.outerHeight}catch(J){}try{var w=U.innerWidth;var P=U.innerHeight}catch(J){}try{var x=U.screenLeft;var l=U.screenTop}catch(J){}try{w=U.innerWidth,P=U.innerHeight}catch(J){}try{var I=U.screen.availWidth;var r=U.screen.availTop}catch(J){}u=[x,l,u,S,I,r,b,z,w,P];S=L7g(!1,t.JSC$10649_win_.top);b={};var E=E===
void 0?_.H4:E;z=new ybp;"SVGElement"in E&&"createElementNS"in E.document&&z.set(0);w=Fqa();w["allow-top-navigation-by-user-activation"]&&z.set(1);w["allow-popups-to-escape-sandbox"]&&z.set(2);E.crypto&&E.crypto.subtle&&z.set(3);"TextDecoder"in E&&"TextEncoder"in E&&z.set(4);E=B0r(z);t=(b.bc=E,b.bih=S.height,b.biw=S.width,b.brdim=u.join(),b.vis=$Cg(t.doc_),b.wgl=!!sP.WebGLRenderingContext,b);O=H.call(O,A,t);O.ca_type="image";N&&(O.bid=N);return O},cb0=new function(){var N=window.document;
this.JSC$10649_win_=window;this.doc_=N};
_.Ba("yt.ads_.signals_.getAdSignalsString",function(N){return rHg(gY4(N))});_.tw();navigator.userAgent.indexOf(" (CrKey ");var AbG="XMLHttpRequest"in _.H4?function(){return new XMLHttpRequest}:null;var $p_="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),jXQ=[].concat(_.W6($p_),["client_dev_set_cookie"]);var dpv={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"},DpM="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(_.W6($p_)),h7x=!1,Cp9=_.ybS,iJl=FIp;var lNQ=[{messageFn:function(N){return"Cannot read property '"+N.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(N){return"Cannot call '"+N.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(N){return N.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var iJQ={messageWeights:[],callbackWeights:[{callback:LIl,weight:500},{callback:z7y,weight:500}]};var uuS=function(){this.callbackWeights=[];this.messageWeights=[]},SKQ,ING=function(){if(!SKQ){var N=SKQ=new uuS;
N.messageWeights.length=0;N.callbackWeights.length=0;Ffl(N,iJQ)}return SKQ},Ffl=function(N,t){t.messageWeights&&N.messageWeights.push.apply(N.messageWeights,t.messageWeights);
t.callbackWeights&&N.callbackWeights.push.apply(N.callbackWeights,t.callbackWeights)};_.Od(_.wE,_.k1);_.wE.prototype.subscribe=function(N,t,O){var H=this.topics_[N];H||(H=this.topics_[N]=[]);var A=this.JSC$10673_key_;this.subscriptions_[A]=N;this.subscriptions_[A+1]=t;this.subscriptions_[A+2]=O;this.JSC$10673_key_=A+3;H.push(A);return A};
var h7X=function(N){var t=N1,O=!1,H=t.subscribe("handleError",function(A){O||(O=!0,this.unsubscribeByKey(H),N.apply(void 0,arguments))},t)};
_.wE.prototype.unsubscribe=function(N,t,O){if(N=this.topics_[N]){var H=this.subscriptions_;if(N=N.find(function(A){return H[A+1]==t&&H[A+2]==O}))return this.unsubscribeByKey(N)}return!1};
_.wE.prototype.unsubscribeByKey=function(N){var t=this.subscriptions_[N];if(t){var O=this.topics_[t];this.publishDepth_!=0?(this.pendingKeys_.push(N),this.subscriptions_[N+1]=function(){}):(O&&_.rt(O,N),delete this.subscriptions_[N],delete this.subscriptions_[N+1],delete this.subscriptions_[N+2])}return!!t};
_.wE.prototype.publish=function(N,t){var O=this.topics_[N];if(O){var H=Array(arguments.length-1),A=arguments.length,Z;for(Z=1;Z<A;Z++)H[Z-1]=arguments[Z];if(this.async_)for(Z=0;Z<O.length;Z++)A=O[Z],MbE(this.subscriptions_[A+1],this.subscriptions_[A+2],H);else{this.publishDepth_++;try{for(Z=0,A=O.length;Z<A&&!this.isDisposed();Z++){var U=O[Z];this.subscriptions_[U+1].apply(this.subscriptions_[U+2],H)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;O=this.pendingKeys_.pop();)this.unsubscribeByKey(O)}}return Z!=
0}return!1};
var MbE=function(N,t,O){_.kF(function(){N.apply(t,O)})};
_.wE.prototype.clear=function(N){if(N){var t=this.topics_[N];t&&(t.forEach(this.unsubscribeByKey,this),delete this.topics_[N])}else this.subscriptions_.length=0,this.topics_={}};
_.wE.prototype.getCount=function(N){if(N){var t=this.topics_[N];return t?t.length:0}N=0;for(t in this.topics_)N+=this.getCount(t);return N};
_.wE.prototype.disposeInternal=function(){_.wE.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var N1=new _.wE;var b0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(b0,_.C8);b0.prototype.getColdHashData=function(){return _.YD(this,3)};
b0.prototype.getHotHashData=function(){return _.YD(this,5)};
b0.prototype.setHotHashData=function(N){return _.Xa(this,5,N)};var njp=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(njp,_.C8);var y4x=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(y4x,_.C8);_.V=y4x.prototype;_.V.getDeviceId=function(){return _.YD(this,6)};
_.V.getExperimentIds=function(N){var t=_.R1(this,9,_.Ux,3,!0);slx(t,N);return t[N]};
_.V.getPlayerType=function(){return _.aG(this,36)};
_.V.setHomeGroupInfo=function(N){return _.L8(this,81,N)};
_.V.clearLocationPlayabilityToken=function(){return _.MV(this,89)};var PX=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(PX,_.C8);PX.prototype.setKey=function(N){return _.Xa(this,1,N)};
PX.prototype.getValue=function(){return wQ(this,2,c4y)};
var c4y=[2,3,4,5,6];var bJr=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(bJr,_.C8);bJr.prototype.setTrackingParams=function(N){return _.MV(this,1,_.eE(N,!1))};var Bqt=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Bqt,_.C8);var Inl=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Inl,_.C8);Inl.prototype.getExperimentIds=function(N){var t=_.R1(this,5,_.Spv,3,!0);slx(t,N);return t[N]};var qg=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(qg,_.C8);qg.prototype.getToken=function(){return _.aP(this,2)};
qg.prototype.setToken=function(N){return _.Xa(this,2,N)};var x3=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(x3,_.C8);x3.prototype.setSafetyMode=function(N){return _.hr(this,5,N)};var eO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(eO,_.C8);eO.prototype.setClient=function(N){return _.L8(this,1,N)};var rBt={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 Wdg;_.nT=function(){var N=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.H4.addEventListener("beforeinstallprompt",function(t){t.preventDefault();N.deferredInstallPrompt=t});
_.H4.addEventListener("appinstalled",function(){N.appInstalledEventFired=!0},{once:!0})};
Wdg=function(){if(!_.H4.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.H4.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.H4.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.H4.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.H4.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(N){return"WEB_DISPLAY_MODE_UNKNOWN"}};var mES=function(){this.syncHeaders=!0},Ej4=function(N){var t={},O=[];
"USER_SESSION_ID"in _.E2&&O.push({key:"u",value:_.Ro("USER_SESSION_ID")});if(O=_.ynt(O))t.Authorization=O,O=N=N==null?void 0:N.sessionIndex,O===void 0&&(O=Number(_.Ro("SESSION_INDEX",0)),O=isNaN(O)?0:O),_.h("voice_search_auth_header_removal")||(t["X-Goog-AuthUser"]=O.toString()),"INNERTUBE_HOST_OVERRIDE"in _.E2||(t["X-Origin"]=window.location.origin),N===void 0&&"DELEGATED_SESSION_ID"in _.E2&&(t["X-Goog-PageId"]=_.Ro("DELEGATED_SESSION_ID"));return t};var pcf={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var gk=_.s2("ytglobal.prefsUserPrefsPrefs_")||{},LIQ;_.Ba("ytglobal.prefsUserPrefsPrefs_",gk);_.yq=function(){this.cookieName=_.Ro("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Ro("ALT_PREF_COOKIE_DOMAIN","youtube.com");var N=_.PY.get(this.cookieName,void 0);N&&this.parse(N)};
_.d0=function(){LIQ||(LIQ=new _.yq);return LIQ};
_.yq.prototype.get=function(N,t){z7E(N);YKr(N);N=gk[N]!==void 0?gk[N].toString():null;return N!=null?N:t?t:""};
_.yq.prototype.set=function(N,t){z7E(N);YKr(N);if(t==null)throw Error("Lc");gk[N]=t.toString()};
_.yq.prototype.getFlag=function(N){return!!((aa_("f"+(Math.floor(N/31)+1))||0)&1<<N%31)};
_.g0=function(N,t,O){N="f"+(Math.floor(t/31)+1);t=1<<t%31;var H=aa_(N)||0;H=O?H|t:H&~t;H===0?delete gk[N]:(O=H.toString(16),gk[N]=O.toString())};
_.yq.prototype.remove=function(N){z7E(N);YKr(N);delete gk[N]};
_.yq.prototype.save=function(){var N=!0;_.h("web_secure_pref_cookie_killswitch")&&(N=!1);_.Xe(this.cookieName,this.dump(),63072E3,this.cookieDomain,N)};
_.yq.prototype.clear=function(){_.WW.clear(gk)};
_.yq.prototype.dump=function(){var N=[],t;for(t in gk)gk.hasOwnProperty(t)&&N.push(t+"="+encodeURIComponent(String(gk[t])));return N.join("&")};
var YKr=function(N){if(/^f([1-9][0-9]*)$/.test(N))throw Error("Mc`"+N);},z7E=function(N){if(!/^\w+$/.test(N))throw Error("Nc`"+N);
},aa_=function(N){N=gk[N]!==void 0?gk[N].toString():null;
return N!=null&&/^[A-Fa-f0-9]+$/.test(N)?parseInt(N,16):null};
_.yq.prototype.parse=function(N){N=decodeURIComponent(N).split("&");for(var t=0;t<N.length;t++){var O=N[t].split("="),H=O[0];(O=O[1])&&(gk[H]=O.toString())}};var kTM={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"},lnN={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},QJS={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},fag={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Oi;_.BS=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.WX=function(N,t,O){return N.addJob(t,0,O)};
_.BS.prototype.addLowPriorityJob=function(N,t){return this.addJob(N,1,t)};
_.MU=function(N,t,O){return N.addJob(t,2,O)};
_.yD=function(N,t,O){return N.addJob(t,3,O)};
_.HH=function(N,t,O){return N.addJob(t,4,O)};
Oi=function(N){var t=_.s2("yt.scheduler.instance.addImmediateJob");t?t(N):N()};
_.BS.prototype.debounce=function(N,t,O){var H=this,A=0,Z=function(){A&&H.cancelJob(A);A=H.addJob(N,t,O);H.cancelDebouncedJobMap.set(Z,A)};
return Z};
_.BS.prototype.cancelThrottle=function(N){(N=this.cancelThrottledJobMap.get(N))&&N()};var cS=function(){_.BS.apply(this,arguments)},T0E;
_.p(cS,_.BS);_.zh=function(){cS.instance||(cS.instance=new cS);return cS.instance};
cS.prototype.addJob=function(N,t,O){O!==void 0&&Number.isNaN(Number(O))&&(O=void 0);var H=_.s2("yt.scheduler.instance.addJob");return H?H(N,t,O):O===void 0?(N(),NaN):_.pF(N,O||0)};
cS.prototype.cancelJob=function(N){if(N===void 0||!Number.isNaN(Number(N))){var t=_.s2("yt.scheduler.instance.cancelJob");t?t(N):_.zp(N)}};
cS.prototype.start=function(){var N=_.s2("yt.scheduler.instance.start");N&&N()};
cS.prototype.pause=function(){var N=_.s2("yt.scheduler.instance.pause");N&&N()};
T0E=function(){_.zh();var N=_.s2("yt.scheduler.instance.setPriorityThreshold");N&&N(4)};
_.GB=_.zh();_.nF.prototype.set=function(N,t){t===void 0?this.mechanism.remove(N):this.mechanism.set(N,(0,_.r3)(t))};
_.nF.prototype.get=function(N){try{var t=this.mechanism.get(N)}catch(O){return}if(t!==null)try{return JSON.parse(t)}catch(O){throw"Storage: Invalid value was encountered";}};
_.nF.prototype.remove=function(N){this.mechanism.remove(N)};var $k=function(N){this.mechanism=N};
_.Od($k,_.nF);var wcQ=function(N){this.data=N},e7S=function(N){return N===void 0||N instanceof wcQ?N:new wcQ(N)};
$k.prototype.set=function(N,t){$k.superClass_.set.call(this,N,e7S(t))};
$k.prototype.getWrapper=function(N){N=$k.superClass_.get.call(this,N);if(N===void 0||N instanceof Object)return N;throw"Storage: Invalid value was encountered";};
$k.prototype.get=function(N){if(N=this.getWrapper(N)){if(N=N.data,N===void 0)throw"Storage: Invalid value was encountered";}else N=void 0;return N};_.Od(WY,$k);_.PpY=function(N){var t=N.creation;N=N.expiration;return!!N&&N<_.tw()||!!t&&t>_.tw()};
WY.prototype.set=function(N,t,O){if(t=e7S(t)){if(O){if(O<_.tw()){WY.prototype.remove.call(this,N);return}t.expiration=O}t.creation=_.tw()}WY.superClass_.set.call(this,N,t)};
WY.prototype.getWrapper=function(N,t){var O=WY.superClass_.getWrapper.call(this,N);if(O)if(!t&&_.PpY(O))WY.prototype.remove.call(this,N);else return O};var j8=function(){};
j8.prototype.next=function(){return un};
var un={done:!0,value:void 0},S8=function(N){return{value:N,done:!1}};
j8.prototype.__iterator__=function(){return this};
_.Xca=function(N){if(N instanceof j8)return N;if(typeof N.__iterator__=="function")return N.__iterator__(!1);if(_.lQ(N)){var t=0,O=new j8;O.next=function(){for(;;){if(t>=N.length)return un;if(t in N)return S8(N[t++]);t++}};
return O}throw Error("Oc");};var xpp=function(N){if(N instanceof hL||N instanceof MB||N instanceof bn)return N;if(typeof N.next=="function")return new hL(function(){return N});
if(typeof N[Symbol.iterator]=="function")return new hL(function(){return N[Symbol.iterator]()});
if(typeof N.__iterator__=="function")return new hL(function(){return N.__iterator__()});
throw Error("Pc");},hL=function(N){this.func_=N};
hL.prototype.__iterator__=function(){return new MB(this.func_())};
hL.prototype[Symbol.iterator]=function(){return new bn(this.func_())};
hL.prototype.toEs6=function(){return new bn(this.func_())};
var MB=function(N){this.JSC$10758_iter_=N};
_.p(MB,j8);MB.prototype.next=function(){return this.JSC$10758_iter_.next()};
MB.prototype[Symbol.iterator]=function(){return new bn(this.JSC$10758_iter_)};
MB.prototype.toEs6=function(){return new bn(this.JSC$10758_iter_)};
var bn=function(N){hL.call(this,function(){return N});
this.JSC$10761_iter_=N};
_.p(bn,hL);bn.prototype.next=function(){return this.JSC$10761_iter_.next()};var kTS=function(){};var pg=function(){};
_.Od(pg,kTS);pg.prototype.getCount=function(){for(var N=0,t=_.D(this),O=t.next();!O.done;O=t.next())N++;return N};
pg.prototype[Symbol.iterator]=function(){return xpp(this.__iterator__(!0)).toEs6()};
pg.prototype.clear=function(){var N=Array.from(this);N=_.D(N);for(var t=N.next();!t.done;t=N.next())this.remove(t.value)};_.Od(rE,pg);_.V=rE.prototype;_.V.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var N=this.storage_;if(N)try{N.setItem("__sak","1");N.removeItem("__sak");var t=!0}catch(O){t=O instanceof DOMException&&(O.name==="QuotaExceededError"||O.code===22||O.code===1014||O.name==="NS_ERROR_DOM_QUOTA_REACHED")&&N&&N.length!==0}else t=!1;this.cachedIsStorageAvailable_=t}return this.cachedIsStorageAvailable_};
_.V.set=function(N,t){Lg(this);try{this.storage_.setItem(N,t)}catch(O){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.V.get=function(N){Lg(this);N=this.storage_.getItem(N);if(typeof N!=="string"&&N!==null)throw"Storage mechanism: Invalid value was encountered";return N};
_.V.remove=function(N){Lg(this);this.storage_.removeItem(N)};
_.V.getCount=function(){Lg(this);return this.storage_.length};
_.V.__iterator__=function(N){Lg(this);var t=0,O=this.storage_,H=new j8;H.next=function(){if(t>=O.length)return un;var A=O.key(t++);if(N)return S8(A);A=O.getItem(A);if(typeof A!=="string")throw"Storage mechanism: Invalid value was encountered";return S8(A)};
return H};
_.V.clear=function(){Lg(this);this.storage_.clear()};
_.V.key=function(N){Lg(this);return this.storage_.key(N)};
var Lg=function(N){if(N.storage_==null)throw Error("Qc");N.isAvailable()||Ag(Error("Qc"))};_.Od(WI9,rE);_.Od(rbz,rE);_.Od(ID,pg);ID.prototype.set=function(N,t){this.mechanism_.set(this.JSC$10776_prefix_+N,t)};
ID.prototype.get=function(N){return this.mechanism_.get(this.JSC$10776_prefix_+N)};
ID.prototype.remove=function(N){this.mechanism_.remove(this.JSC$10776_prefix_+N)};
ID.prototype.__iterator__=function(N){var t=this.mechanism_[Symbol.iterator](),O=this,H=new j8;H.next=function(){var A=t.next();if(A.done)return A;for(A=A.value;A.slice(0,O.JSC$10776_prefix_.length)!=O.JSC$10776_prefix_;){A=t.next();if(A.done)return A;A=A.value}return S8(N?A.slice(O.JSC$10776_prefix_.length):O.mechanism_.get(A))};
return H};_.sv=function(N){this.expiringStorage_=(N=_.lP(N))?new WY(N):null;this.JSC$10780_domain_=document.domain||window.location.hostname};
_.V=_.sv.prototype;_.V.hasLocalStorage=function(){return!!this.expiringStorage_};
_.V.set=function(N,t,O,H){O=O||31104E3;this.remove(N);if(this.hasLocalStorage())try{this.expiringStorage_.set(N,t,Date.now()+O*1E3);return}catch(Z){}var A="";if(H)try{A=escape((0,_.r3)(t))}catch(Z){return}else A=escape(t);_.Xe(N,A,O,this.JSC$10780_domain_)};
_.V.get=function(N,t){var O=void 0,H=!this.hasLocalStorage();if(!H)try{O=this.expiringStorage_.get(N)}catch(A){H=!0}if(H&&(O=_.PY.get(N,void 0))&&(O=unescape(O),t))try{O=JSON.parse(O)}catch(A){this.remove(N),O=void 0}return O};
_.V.remove=function(N){this.hasLocalStorage()&&this.expiringStorage_.remove(N);_.Ppp(N,"/",this.JSC$10780_domain_)};
_.V.getCreationTime=function(N){return this.hasLocalStorage()&&(N=(this.expiringStorage_.getWrapper(N)||{}).creation,typeof N==="number")?N:null};var laG=function(){var N;return function(){N||(N=new _.sv("ytidb"));return N}}();var mpv;_.mY=[];mpv=!1;var Kdx=EYp||GTG;var z4={},qKp=(z4.AUTH_INVALID="No user identifier specified.",z4.EXPLICIT_ABORT="Transaction was explicitly aborted.",z4.IDB_NOT_SUPPORTED="IndexedDB is not supported.",z4.MISSING_INDEX="Index not created.",z4.MISSING_OBJECT_STORES="Object stores not created.",z4.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",z4.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",z4.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",z4.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",z4.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",z4.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",z4.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",z4),Yk={},fau=(Yk.AUTH_INVALID="ERROR",Yk.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Yk.EXPLICIT_ABORT="IGNORED",
Yk.IDB_NOT_SUPPORTED="ERROR",Yk.MISSING_INDEX="WARNING",Yk.MISSING_OBJECT_STORES="ERROR",Yk.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Yk.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Yk.QUOTA_EXCEEDED="WARNING",Yk.QUOTA_MAYBE_EXCEEDED="WARNING",Yk.UNKNOWN_ABORT="WARNING",Yk.INCOMPATIBLE_DB_VERSION="WARNING",Yk),aB={},nYQ=(aB.AUTH_INVALID=!1,aB.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,aB.EXPLICIT_ABORT=!1,aB.IDB_NOT_SUPPORTED=!1,aB.MISSING_INDEX=!1,aB.MISSING_OBJECT_STORES=!1,aB.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,aB.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,aB.QUOTA_EXCEEDED=!1,aB.QUOTA_MAYBE_EXCEEDED=!0,aB.UNKNOWN_ABORT=!0,aB.INCOMPATIBLE_DB_VERSION=!1,aB),sy=function(N,t,O,H,A){t=t===void 0?{}:t;O=O===void 0?qKp[N]:O;H=H===void 0?fau[N]:H;A=A===void 0?nYQ[N]:A;_.fF.call(this,O,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:N},t));this.type=N;this.message=O;this.level=H;this.retryable=A;Object.setPrototypeOf(this,sy.prototype)};
_.p(sy,_.fF);var WIa=function(N,t){sy.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:t,foundObjectStores:N},qKp.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,WIa.prototype)};
_.p(WIa,sy);var vYv=function(N,t){var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.index=N;this.objectStore=t;Object.setPrototypeOf(this,vYv.prototype)};
_.p(vYv,Error);var JbQ=["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 Ha=function(N){this.executor=N},Ov=function(N){var t=this;
this.state={status:"PENDING"};this.JSC$10808_onFulfilled=[];this.JSC$10808_onRejected=[];N=N.executor;var O=function(A){if(t.state.status==="PENDING"){t.state={status:"FULFILLED",value:A};A=_.D(t.JSC$10808_onFulfilled);for(var Z=A.next();!Z.done;Z=A.next())Z=Z.value,Z()}},H=function(A){if(t.state.status==="PENDING"){t.state={status:"REJECTED",
reason:A};A=_.D(t.JSC$10808_onRejected);for(var Z=A.next();!Z.done;Z=A.next())Z=Z.value,Z()}};
try{N(O,H)}catch(A){H(A)}};
Ov.all=function(N){return new Ov(new Ha(function(t,O){var H=[],A=N.length;A===0&&t(H);for(var Z={i$jscomp$468:0};Z.i$jscomp$468<N.length;Z={i$jscomp$468:Z.i$jscomp$468},++Z.i$jscomp$468)Ov.resolve(N[Z.i$jscomp$468]).then(function(U){return function(C){H[U.i$jscomp$468]=C;A--;A===0&&t(H)}}(Z)).catch(function(U){O(U)})}))};
Ov.resolve=function(N){return new Ov(new Ha(function(t,O){N instanceof Ov?N.then(t,O):t(N)}))};
Ov.reject=function(N){return new Ov(new Ha(function(t,O){O(N)}))};
Ov.prototype.then=function(N,t){var O=this,H=N!=null?N:N84,A=t!=null?t:sXS;return new Ov(new Ha(function(Z,U){O.state.status==="PENDING"?(O.JSC$10808_onFulfilled.push(function(){rby(O,O,H,Z,U)}),O.JSC$10808_onRejected.push(function(){IaX(O,O,A,Z,U)})):O.state.status==="FULFILLED"?rby(O,O,H,Z,U):O.state.status==="REJECTED"&&IaX(O,O,A,Z,U)}))};
Ov.prototype.catch=function(N){return this.then(void 0,N)};
var rby=function(N,t,O,H,A){try{if(N.state.status!=="FULFILLED")throw Error("Tc");var Z=O(N.state.value);Z instanceof Ov?laZ(N,t,Z,H,A):H(Z)}catch(U){A(U)}},IaX=function(N,t,O,H,A){try{if(N.state.status!=="REJECTED")throw Error("Uc");
var Z=O(N.state.reason);Z instanceof Ov?laZ(N,t,Z,H,A):H(Z)}catch(U){A(U)}},laZ=function(N,t,O,H,A){t===O?A(new TypeError("Vc")):O.then(function(Z){Z instanceof Ov?laZ(N,t,Z,H,A):H(Z)},function(Z){A(Z)})};var T4;T4=window;_.jg=T4.ytcsi&&T4.ytcsi.now?T4.ytcsi.now:T4.performance&&T4.performance.timing&&T4.performance.now&&T4.performance.timing.navigationStart?function(){return T4.performance.timing.navigationStart+T4.performance.now()}:function(){return(new Date).getTime()};var Zo=function(N,t){this.JSC$10820_wrapped=N;this.options=t;this.transactionCount=0;this.startedMs=Math.round((0,_.jg)());this.hasUnknownAbortedTransaction=!1},wk=function(){return _.h("idb_immediate_commit")},EYY,GTZ,Xp,Jb_;
Zo.prototype.add=function(N,t,O){return _.Kz(this,[N],{mode:"readwrite",enableRetries:!0,commit:wk()},function(H){return H.objectStore(N).add(t,O)})};
Zo.prototype.clear=function(N){return _.Kz(this,[N],{mode:"readwrite",enableRetries:!0},function(t){return t.objectStore(N).clear()})};
Zo.prototype.close=function(){this.JSC$10820_wrapped.close();var N;((N=this.options)==null?0:N.closed)&&this.options.closed()};
Zo.prototype.count=function(N,t){return _.Kz(this,[N],{mode:"readonly",enableRetries:!0,commit:wk()},function(O){return O.objectStore(N).count(t)})};
var t_=function(N,t,O){N=N.JSC$10820_wrapped.createObjectStore(t,O);return new e8(N)};
Zo.prototype.delete=function(N,t){return _.Kz(this,[N],{mode:"readwrite",enableRetries:!0,commit:wk()&&!(t instanceof IDBKeyRange)},function(O){return O.objectStore(N).delete(t)})};
var QXZ=function(N,t){return _.Kz(N,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(O){return O.objectStore("ResponseStore").index("byInterface").delete(t)})};
Zo.prototype.get=function(N,t){return _.Kz(this,[N],{mode:"readonly",enableRetries:!0,commit:wk()},function(O){return O.objectStore(N).get(t)})};
Zo.prototype.getAll=function(N,t,O){return _.Kz(this,[N],{mode:"readonly",enableRetries:!0},function(H){return H.objectStore(N).getAll(t,O)})};
Zo.prototype.put=function(N,t,O){return _.Kz(this,[N],{mode:"readwrite",enableRetries:!0,commit:wk()},function(H){return H.objectStore(N).put(t,O)})};
Zo.prototype.objectStoreNames=function(){return Array.from(this.JSC$10820_wrapped.objectStoreNames)};
_.Kz=function(N,t,O,H){var A,Z,U,C,F,g,B,c,u,S,b,z;return _.K(function(w){switch(w.nextAddress){case 1:var P={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof O==="string"?P.mode=O:Object.assign(P,O);A=P;N.transactionCount++;Z=A.enableRetries?3:1;U=0;case 2:if(C){w.jumpTo(4);break}U++;F=Math.round((0,_.jg)());_.Mo(w,5);g=N.JSC$10820_wrapped.transaction(t,A.mode);P=w.yield;var x=!!A.commit;var l=new VS(g);x=mpr(l,H,x);return P.call(w,x,7);case 7:return B=w.yieldResult,c=Math.round((0,_.jg)()),
EYY(N,F,c,U,void 0,t.join(),A),w.return(B);case 5:u=_.ax(w);S=Math.round((0,_.jg)());b=oY9(u,N.JSC$10820_wrapped.name,t.join(),N.JSC$10820_wrapped.version);if((z=b instanceof sy&&!b.retryable)||U>=Z)EYY(N,F,S,U,b,t.join(),A),C=b;w.jumpTo(2);break;case 4:return w.return(Promise.reject(C))}})};
EYY=function(N,t,O,H,A,Z,U){t=O-t;A?(A instanceof sy&&(A.type==="QUOTA_EXCEEDED"||A.type==="QUOTA_MAYBE_EXCEEDED")&&Gp("QUOTA_EXCEEDED",{dbName:Je(N.JSC$10820_wrapped.name),objectStoreNames:Z,transactionCount:N.transactionCount,transactionMode:U.mode}),A instanceof sy&&A.type==="UNKNOWN_ABORT"&&(O-=N.startedMs,O<0&&O>=2147483648&&(O=0),Gp("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:Z,transactionDuration:t,transactionCount:N.transactionCount,dbDuration:O}),N.hasUnknownAbortedTransaction=!0),
GTZ(N,!1,H,Z,t,U.tag),_.Ey(A)):GTZ(N,!0,H,Z,t,U.tag)};
GTZ=function(N,t,O,H,A,Z){Gp("TRANSACTION_ENDED",{objectStoreNames:H,connectionHasUnknownAbortedTransaction:N.hasUnknownAbortedTransaction,duration:A,isSuccessful:t,tryCount:O,tag:Z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":Z})};
Zo.prototype.getName=function(){return this.JSC$10820_wrapped.name};
var e8=function(N){this.JSC$10835_wrapped=N};
e8.prototype.add=function(N,t){return Ar(this.JSC$10835_wrapped.add(N,t))};
e8.prototype.autoIncrement=function(){return this.JSC$10835_wrapped.autoIncrement};
e8.prototype.clear=function(){return Ar(this.JSC$10835_wrapped.clear()).then(function(){})};
var O7=function(N,t,O){N.JSC$10835_wrapped.createIndex(t,O,{unique:!1})};
e8.prototype.count=function(N){return Ar(this.JSC$10835_wrapped.count(N))};
var R7E=function(N,t){return dr(N,{query:t},function(O){return O.delete().then(function(){return O.continue()})}).then(function(){})};
e8.prototype.delete=function(N){return N instanceof IDBKeyRange?R7E(this,N):Ar(this.JSC$10835_wrapped.delete(N))};
e8.prototype.get=function(N){return Ar(this.JSC$10835_wrapped.get(N))};
e8.prototype.getAll=function(N,t){return"getAll"in IDBObjectStore.prototype?Ar(this.JSC$10835_wrapped.getAll(N,t)):vYr(this,N,t)};
var vYr=function(N,t,O){var H=[];return dr(N,{query:t},function(A){if(!(O!==void 0&&H.length>=O))return H.push(A.getValue()),A.continue()}).then(function(){return H})};
e8.prototype.index=function(N){try{return new PS(this.JSC$10835_wrapped.index(N))}catch(t){if(t instanceof Error&&t.name==="NotFoundError")throw new vYv(N,this.JSC$10835_wrapped.name);throw t;}};
e8.prototype.getName=function(){return this.JSC$10835_wrapped.name};
e8.prototype.keyPath=function(){return this.JSC$10835_wrapped.keyPath};
e8.prototype.put=function(N,t){return Ar(this.JSC$10835_wrapped.put(N,t))};
var dr=function(N,t,O){N=N.JSC$10835_wrapped.openCursor(t.query,t.direction);return Jb_(N).then(function(H){return HMN(H,O)})},VS=function(N){var t=this;
this.JSC$10843_wrapped=N;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(O,H){t.JSC$10843_wrapped.addEventListener("complete",function(){O()});
t.JSC$10843_wrapped.addEventListener("error",function(A){A.currentTarget===A.target&&H(t.JSC$10843_wrapped.error)});
t.JSC$10843_wrapped.addEventListener("abort",function(){var A=t.JSC$10843_wrapped.error;if(A)H(A);else if(!t.aborted){A=sy;for(var Z=t.JSC$10843_wrapped.objectStoreNames,U=[],C=0;C<Z.length;C++){var F=Z.item(C);if(F===null)throw Error("Wc");U.push(F)}A=new A("UNKNOWN_ABORT",{objectStoreNames:U.join(),dbName:t.JSC$10843_wrapped.db.name,mode:t.JSC$10843_wrapped.mode});H(A)}})})},mpr=function(N,t,O){var H=new Promise(function(A,Z){try{var U=t(N);
O&&N.commit();U.then(function(C){A(C)}).catch(Z)}catch(C){Z(C),N.abort()}});
return Promise.all([H,N.done]).then(function(A){return _.D(A).next().value})};
VS.prototype.abort=function(){this.JSC$10843_wrapped.abort();this.aborted=!0;throw new sy("EXPLICIT_ABORT");};
VS.prototype.commit=function(){if(!this.aborted){var N,t;(t=(N=this.JSC$10843_wrapped).commit)==null||t.call(N)}};
VS.prototype.objectStore=function(N){N=this.JSC$10843_wrapped.objectStore(N);var t=this.objectStoreCache.get(N);t||(t=new e8(N),this.objectStoreCache.set(N,t));return t};
var PS=function(N){this.JSC$10845_wrapped=N};
PS.prototype.count=function(N){return Ar(this.JSC$10845_wrapped.count(N))};
PS.prototype.delete=function(N){return _.i0(this,{query:N},function(t){return t.delete().then(function(){return t.continue()})})};
PS.prototype.get=function(N){return Ar(this.JSC$10845_wrapped.get(N))};
PS.prototype.getAll=function(N,t){return"getAll"in IDBIndex.prototype?Ar(this.JSC$10845_wrapped.getAll(N,t)):oYa(this,N,t)};
var oYa=function(N,t,O){var H=[];return _.i0(N,{query:t},function(A){if(!(O!==void 0&&H.length>=O))return H.push(A.getValue()),A.continue()}).then(function(){return H})};
PS.prototype.keyPath=function(){return this.JSC$10845_wrapped.keyPath};
PS.prototype.unique=function(){return this.JSC$10845_wrapped.unique};
_.i0=function(N,t,O){N=N.JSC$10845_wrapped.openCursor(t.query===void 0?null:t.query,t.direction===void 0?"next":t.direction);return Jb_(N).then(function(H){return HMN(H,O)})};
Xp=function(N,t){this.request=N;this.cursor=t};
Jb_=function(N){return Ar(N).then(function(t){return t?new Xp(N,t):null})};
Xp.prototype.continue=function(N){this.cursor.continue(N);return Jb_(this.request)};
Xp.prototype.delete=function(){return Ar(this.cursor.delete()).then(function(){})};
Xp.prototype.getValue=function(){return this.cursor.value};
Xp.prototype.update=function(N){return Ar(this.cursor.update(N))};var xk=function(N,t){this.name=N;this.options=t;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},sXp;
xk.prototype.openDb=function(N,t,O){O=O===void 0?{}:O;return ZMv(N,t,O)};
xk.prototype.delete=function(N){N=N===void 0?{}:N;return _.Uv(this.name,N)};
sXp=function(N,t){return new sy("INCOMPATIBLE_DB_VERSION",{dbName:N.name,oldVersion:N.options.version,newVersion:t})};
_.Cz=function(N,t){if(!t)throw tr("openWithToken",Je(N.name));return N.open()};
xk.prototype.open=function(){var N=this;if(!this.isCompatible)throw sXp(this);if(this.connectionPromise)return this.connectionPromise;var t,O=function(){N.connectionPromise===t&&(N.connectionPromise=void 0)},H={blocking:function(Z){Z.close()},
closed:O,terminated:O,upgrade:this.options.upgrade},A=function(){var Z,U,C,F,g,B,c,u,S,b;return _.K(function(z){switch(z.nextAddress){case 1:return U=(Z=Error().stack)!=null?Z:"",_.Mo(z,2),z.yield(N.openDb(N.name,N.options.version,H),4);case 4:for(var w=C=z.yieldResult,P=N.options,x=[],l=_.D(Object.keys(P.objectStores)),I=l.next();!I.done;I=l.next()){I=I.value;var r=P.objectStores[I],E=r.removedAtVersion===void 0?Number.MAX_VALUE:r.removedAtVersion;!(w.JSC$10820_wrapped.version>=r.addedAtVersion)||
w.JSC$10820_wrapped.version>=E||w.JSC$10820_wrapped.objectStoreNames.contains(I)||x.push(I)}F=x;if(F.length===0){z.jumpTo(5);break}g=Object.keys(N.options.objectStores);B=C.objectStoreNames();if(N.timesReopenedToFixMissingObjectStore<_.uP("ytidb_reopen_db_retries",0))return N.timesReopenedToFixMissingObjectStore++,C.close(),_.Ey(new sy("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:N.name,expectedObjectStores:g,foundObjectStores:B})),z.return(A());if(!(N.timesDeletedToFixMissingObjectStore<_.uP("ytidb_remake_db_retries",
1))){z.jumpTo(6);break}N.timesDeletedToFixMissingObjectStore++;return z.yield(N.delete(),7);case 7:return _.Ey(new sy("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:N.name,expectedObjectStores:g,foundObjectStores:B})),z.return(A());case 6:throw new WIa(B,g);case 5:return z.return(C);case 2:c=_.ax(z);if(c instanceof DOMException?c.name!=="VersionError":"DOMError"in self&&c instanceof DOMError?c.name!=="VersionError":!(c instanceof Object&&"message"in c)||c.message!=="An attempt was made to open a database using a lower version than the existing version."){z.jumpTo(8);
break}return z.yield(N.openDb(N.name,void 0,Object.assign({},H,{upgrade:void 0})),9);case 9:u=z.yieldResult;S=u.JSC$10820_wrapped.version;if(N.options.version!==void 0&&S>N.options.version+1)throw u.close(),N.isCompatible=!1,sXp(N,S);return z.return(u);case 8:throw O(),c instanceof Error&&!_.h("ytidb_async_stack_killswitch")&&(c.stack=c.stack+"\n"+U.substring(U.indexOf("\n")+1)),oY9(c,N.name,"",(b=N.options.version)!=null?b:-1);}})};
return this.connectionPromise=t=A()};var VD9=new xk("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(N,t){t(1)&&t_(N,"databases",{keyPath:"actualName"})}});var gjp,Fd4=new function(){}(new function(){});new _.CT;var N80=function(N,t){xk.call(this,N,t);this.options=t;RD(N)};
_.p(N80,xk);var MDv=function(N,t){var O;return function(){O||(O=new N80(N,t));return O}};
N80.prototype.openDb=function(N,t,O){O=O===void 0?{}:O;return(this.options.shared?jJ4:$EN)(N,t,Object.assign({},O))};
N80.prototype.delete=function(N){N=N===void 0?{}:N;return(this.options.shared?hkx:iMQ)(this.name,N)};var tDa={},bMt=$2("ytGcfConfig",{objectStores:(tDa.coldConfigStore={addedAtVersion:1},tDa.hotConfigStore={addedAtVersion:1},tDa),shared:!1,upgrade:function(N,t){t(1)&&(O7(t_(N,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),O7(t_(N,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var OMr=function(){_.k1.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var N=_.s2("yt.gcf.config.hotUpdateCallbacks");N?(this.localHotConfigJobQueue=[].concat(_.W6(N)),this.sharedHotConfigJobQueue=N):(this.sharedHotConfigJobQueue=[],_.Ba("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.p(OMr,_.k1);OMr.prototype.disposeInternal=function(){for(var N=_.D(this.localHotConfigJobQueue),t=N.next();!t.done;t=N.next()){var O=this.sharedHotConfigJobQueue;t=O.indexOf(t.value);t>=0&&O.splice(t,1)}this.localHotConfigJobQueue.length=0;_.k1.prototype.disposeInternal.call(this)};var ra=function(){var N=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new OMr;this.TEST_ONLY={initializeConfigDb:function(){N.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return N.coldGlobalConfigGroup},
setHotConfigGroup:function(t){HMR(N,t)},
setHotHashData:function(t){N.setHotHashData(t)},
setColdConfigGroup:function(t){ABS(N,t)},
getColdHashData:function(){return N.coldHashData},
getHotHashData:function(){return N.hotHashData},
getHotConfigGroup:function(){return N.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return ZMr()},
getExportedHotConfigGroup:function(){return kk()},
getExportedColdHashData:function(){return _.s2("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.s2("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){VDa(N)},
resetInstance:function(){N.setHotHashData(void 0);DE_(N);delete ra.instance},
setDebounceTimer:function(t){N.debounceTimer=t},
getDebounceTimer:function(){return N.debounceTimer}}},UEp=function(){if(!ra.instance){var N=new ra;
ra.instance=N}return ra.instance},Fd0=function(N){var t;
_.K(function(O){if(O.nextAddress==1)return _.h("start_client_gcf")||_.h("delete_gcf_config_db")?_.h("start_client_gcf")?O.yield(_.ca(),3):O.jumpTo(2):O.return();O.nextAddress!=2&&((t=O.yieldResult)&&_.qH()&&!_.h("delete_gcf_config_db")?(N.isConfigDbInitialized=!0,VDa(N)):(C5f(N),KdX(N)));return _.h("delete_gcf_config_db")?O.yield(T8O(),0):O.jumpTo(0)})},I0=function(){var N;
return(N=kk())!=null?N:_.Ro("RAW_HOT_CONFIG_GROUP")},dEX=function(N){var t,O,H,A,Z,U;
return _.K(function(C){switch(C.nextAddress){case 1:if(N.hotGlobalConfigGroup)return C.return(kk());if(!N.isConfigDbInitialized)return t=tr("getHotConfig IDB not initialized"),_.HY(t),C.return(Promise.reject(t));O=yS();H=_.Ro("TIME_CREATED_MS");if(!O){A=tr("getHotConfig token error");_.HY(A);C.jumpTo(2);break}return C.yield(anz(O),3);case 3:if((Z=C.yieldResult)&&Z.timestamp>H)return HMR(N,Z.config),N.setHotHashData(Z.hashData),C.return(kk());case 2:KdX(N);if(!(O&&N.hotGlobalConfigGroup&&N.hotHashData)){C.jumpTo(4);
break}return C.yield(LdQ(N.hotGlobalConfigGroup,N.hotHashData,O,H),4);case 4:return N.hotGlobalConfigGroup?C.return(kk()):(U=new _.fF("Config not available in ytConfig"),_.HY(U),C.return(Promise.reject(U)))}})},yBr=function(N){var t,O,H,A,Z,U;
return _.K(function(C){switch(C.nextAddress){case 1:if(N.coldGlobalConfigGroup)return C.return(ZMr());if(!N.isConfigDbInitialized)return t=tr("getColdConfig IDB not initialized"),_.HY(t),C.return(Promise.reject(t));O=yS();H=_.Ro("TIME_CREATED_MS");if(!O){A=tr("getColdConfig");_.HY(A);C.jumpTo(2);break}return C.yield(Y_t(O),3);case 3:if((Z=C.yieldResult)&&Z.timestamp>H)return ABS(N,Z.config),gjY(N,Z.configData),DE_(N,Z.hashData),C.return(ZMr());case 2:C5f(N);if(!(O&&N.coldGlobalConfigGroup&&N.coldHashData&&
N.configData)){C.jumpTo(4);break}return C.yield(zky(N.coldGlobalConfigGroup,N.coldHashData,N.configData,O,H),4);case 4:return N.coldGlobalConfigGroup?C.return(ZMr()):(U=new _.fF("Config not available in ytConfig"),_.HY(U),C.return(Promise.reject(U)))}})},VDa=function(N){if(!N.hotGlobalConfigGroup||!N.coldGlobalConfigGroup){if(!yS()){var t=tr("scheduleGetConfigs");
_.HY(t)}N.initJob||(N.initJob=_.GB.addLowPriorityJob(function(){return _.K(function(O){switch(O.nextAddress){case 1:return _.Mo(O,2),O.yield(dEX(N),4);case 4:_.Do(O,3);break;case 2:_.ax(O);case 3:return _.Mo(O,5),O.yield(yBr(N),7);case 7:_.Do(O,6);break;case 5:_.ax(O);case 6:N.initJob&&(N.initJob=0),_.Ty(O)}})},100))}},zw9=function(N,t,O){var H,A,Z;
return _.K(function(U){switch(U.nextAddress){case 1:if(!_.h("start_client_gcf")){U.jumpTo(0);break}O&&HMR(N,O);N.setHotHashData(t);H=yS();if(!H){U.jumpTo(3);break}if(O){U.jumpTo(4);break}return U.yield(anz(H),5);case 5:A=U.yieldResult,O=(Z=A)==null?void 0:Z.config;case 4:return U.yield(LdQ(O,t,H),3);case 3:if(O)for(var C=O,F=_.D(N.configUpdateService.sharedHotConfigJobQueue),g=F.next();!g.done;g=F.next())g=g.value,g(C);_.Ty(U)}})},Yiv=function(N,t,O){var H,A,Z,U;
return _.K(function(C){if(C.nextAddress==1){if(!_.h("start_client_gcf"))return C.jumpTo(0);DE_(N,t);return(H=yS())?O?C.jumpTo(4):C.yield(Y_t(H),5):C.jumpTo(0)}C.nextAddress!=4&&(A=C.yieldResult,O=(Z=A)==null?void 0:Z.config);if(!O)return C.jumpTo(0);U=O.configData;return C.yield(zky(O,t,U,H),0)})},Rk4=function(){var N=UEp(),t=(0,_.jg)()-N.debounceTimer;
if(!(N.debounceTimer!==0&&t<_.uP("send_config_hash_timer"))){t=_.s2("yt.gcf.config.coldConfigData");var O=_.s2("yt.gcf.config.hotHashData"),H=_.s2("yt.gcf.config.coldHashData");t&&O&&H&&(N.debounceTimer=(0,_.jg)());return{coldConfigData:t,hotHashData:O,coldHashData:H}}},C5f=function(N){ABS(N,_.Ro("RAW_COLD_CONFIG_GROUP"));
DE_(N,_.Ro("SERIALIZED_COLD_HASH_DATA"));var t;gjY(N,(t=N.coldGlobalConfigGroup)==null?void 0:t.configData)},KdX=function(N){HMR(N,_.Ro("RAW_HOT_CONFIG_GROUP"));
N.setHotHashData(_.Ro("SERIALIZED_HOT_HASH_DATA"))},HMR=function(N,t){N.hotGlobalConfigGroup=t;
_.Ba("yt.gcf.config.hotConfigGroup",N.hotGlobalConfigGroup||null)},ABS=function(N,t){N.coldGlobalConfigGroup=t;
_.Ba("yt.gcf.config.coldConfigGroup",N.coldGlobalConfigGroup||null)};
ra.prototype.setHotHashData=function(N){this.hotHashData=N;_.Ba("yt.gcf.config.hotHashData",this.hotHashData||null)};
var DE_=function(N,t){N.coldHashData=t;_.Ba("yt.gcf.config.coldHashData",N.coldHashData||null)},gjY=function(N,t){N.configData=t;
_.Ba("yt.gcf.config.coldConfigData",N.configData||null)},kk=function(){return _.s2("yt.gcf.config.hotConfigGroup")},ZMr=function(){return _.s2("yt.gcf.config.coldConfigGroup")};var ak={},B8y=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";ak.assign=function(N){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var O=t.shift();if(O){if(typeof O!=="object")throw new TypeError("Zc`"+O);for(var H in O)Object.prototype.hasOwnProperty.call(O,H)&&(N[H]=O[H])}}return N};
ak.shrinkBuf=function(N,t){if(N.length===t)return N;if(N.subarray)return N.subarray(0,t);N.length=t;return N};
var cBy={arraySet:function(N,t,O,H,A){if(t.subarray&&N.subarray)N.set(t.subarray(O,O+H),A);else for(var Z=0;Z<H;Z++)N[A+Z]=t[O+Z]},
flattenChunks:function(N){var t,O;var H=O=0;for(t=N.length;H<t;H++)O+=N[H].length;var A=new Uint8Array(O);H=O=0;for(t=N.length;H<t;H++){var Z=N[H];A.set(Z,O);O+=Z.length}return A}},$ER={arraySet:function(N,t,O,H,A){for(var Z=0;Z<H;Z++)N[A+Z]=t[O+Z]},
flattenChunks:function(N){return[].concat.apply([],N)}};
ak.setTyped=function(){B8y?(ak.Buf8=Uint8Array,ak.Buf16=Uint16Array,ak.Buf32=Int32Array,ak.assign(ak,cBy)):(ak.Buf8=Array,ak.Buf16=Array,ak.Buf32=Array,ak.assign(ak,$ER))};
ak.setTyped();var jJ0=!0;try{new Uint8Array(1)}catch(N){jJ0=!1}
var amt=function(N){var t,O,H=N.length,A=0;for(t=0;t<H;t++){var Z=N.charCodeAt(t);if((Z&64512)===55296&&t+1<H){var U=N.charCodeAt(t+1);(U&64512)===56320&&(Z=65536+(Z-55296<<10)+(U-56320),t++)}A+=Z<128?1:Z<2048?2:Z<65536?3:4}var C=new ak.Buf8(A);for(t=O=0;O<A;t++)Z=N.charCodeAt(t),(Z&64512)===55296&&t+1<H&&(U=N.charCodeAt(t+1),(U&64512)===56320&&(Z=65536+(Z-55296<<10)+(U-56320),t++)),Z<128?C[O++]=Z:(Z<2048?C[O++]=192|Z>>>6:(Z<65536?C[O++]=224|Z>>>12:(C[O++]=240|Z>>>18,C[O++]=128|Z>>>12&63),C[O++]=
128|Z>>>6&63),C[O++]=128|Z&63);return C};var cG9={};cG9=function(N,t,O,H){var A=N&65535|0;N=N>>>16&65535|0;for(var Z;O!==0;){Z=O>2E3?2E3:O;O-=Z;do A=A+t[H++]|0,N=N+A|0;while(--Z);A%=65521;N%=65521}return A|N<<16|0};for(var Ik={},qB,iM_=[],uo0=0;uo0<256;uo0++){qB=uo0;for(var S_0=0;S_0<8;S_0++)qB=qB&1?3988292384^qB>>>1:qB>>>1;iM_[uo0]=qB}Ik=function(N,t,O,H){O=H+O;for(N^=-1;H<O;H++)N=N>>>8^iM_[(N^t[H])&255];return N^-1};var Pa={};Pa={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 ZTy=[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],DLM=[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],Y3l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],yGl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],qV=Array(576);pz(qV);var fz=Array(60);pz(fz);var wr=Array(512);pz(wr);var TB=Array(256);pz(TB);var Vcp=Array(29);pz(Vcp);var ULx=Array(30);pz(ULx);var pi4,L1M,zVz,bTS=!1;var Ev;
Ev=[new m8(0,0,0,0,function(N,t){var O=65535;for(O>N.pending_buf_size-5&&(O=N.pending_buf_size-5);;){if(N.lookahead<=1){l0(N);if(N.lookahead===0&&t===0)return 1;if(N.lookahead===0)break}N.strstart+=N.lookahead;N.lookahead=0;var H=N.block_start+O;if(N.strstart===0||N.strstart>=H)if(N.lookahead=N.strstart-H,N.strstart=H,nz(N,!1),N.strm.avail_out===0)return 1;if(N.strstart-N.block_start>=N.w_size-262&&(nz(N,!1),N.strm.avail_out===0))return 1}N.insert=0;if(t===4)return nz(N,!0),N.strm.avail_out===0?3:
4;N.strstart>N.block_start&&nz(N,!1);return 1}),
new m8(4,4,8,4,$Ll),new m8(4,5,16,8,$Ll),new m8(4,6,32,32,$Ll),new m8(4,4,16,16,QS),new m8(8,16,32,32,QS),new m8(8,16,128,128,QS),new m8(8,32,128,256,QS),new m8(32,128,258,1024,QS),new m8(32,258,258,4096,QS)];var Mcl={};Mcl=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 TYg=Object.prototype.toString;
hVl.prototype.push=function(N,t){var O=this.strm,H=this.options.chunkSize;if(this.ended)return!1;var A=t===~~t?t:t===!0?4:0;typeof N==="string"?O.input=amt(N):TYg.call(N)==="[object ArrayBuffer]"?O.input=new Uint8Array(N):O.input=N;O.next_in=0;O.avail_in=O.input.length;do{O.avail_out===0&&(O.output=new ak.Buf8(H),O.next_out=0,O.avail_out=H);N=S3p(O,A);if(N!==1&&N!==0)return hkX(this,N),this.ended=!0,!1;if(O.avail_out===0||O.avail_in===0&&(A===4||A===2))if(this.options.to==="string"){var Z=ak.shrinkBuf(O.output,
O.next_out);t=Z;Z=Z.length;if(Z<65537&&(t.subarray&&jJ0||!t.subarray))t=String.fromCharCode.apply(null,ak.shrinkBuf(t,Z));else{for(var U="",C=0;C<Z;C++)U+=String.fromCharCode(t[C]);t=U}this.chunks.push(t)}else t=ak.shrinkBuf(O.output,O.next_out),this.chunks.push(t)}while((O.avail_in>0||O.avail_out===0)&&N!==1);if(A===4)return(O=this.strm)&&O.state?(H=O.state.status,H!==42&&H!==69&&H!==73&&H!==91&&H!==103&&H!==113&&H!==666?N=Xc(O,-2):(O.state=null,N=H===113?Xc(O,-3):0)):N=-2,hkX(this,N),this.ended=
!0,N===0;A===2&&(hkX(this,0),O.avail_out=0);return!0};
var hkX=function(N,t){t===0&&(N.result=N.options.to==="string"?N.chunks.join(""):ak.flattenChunks(N.chunks));N.chunks=[];N.err=t;N.msg=N.strm.msg};var MDr=typeof TextEncoder!=="undefined"?new TextEncoder:null,Vnz=MDr?function(N){return MDr.encode(N)}:function(N){N=_.x1(N);
for(var t=new Uint8Array(N.length),O=0;O<t.length;O++)t[O]=N[O];return t};var Es4={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},R$l={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var fg=function(N,t){this.version=N;this.args=t};
fg.prototype.serialize=function(){return{version:this.version,args:this.args}};var xLN=function(N,t){this.topic=N;this.dataClass=t};
xLN.prototype.toString=function(){return this.topic};var bMf=_.s2("ytPubsub2Pubsub2Instance")||new _.wE;_.wE.prototype.subscribe=_.wE.prototype.subscribe;_.wE.prototype.unsubscribeByKey=_.wE.prototype.unsubscribeByKey;_.wE.prototype.publish=_.wE.prototype.publish;_.wE.prototype.clear=_.wE.prototype.clear;_.Ba("ytPubsub2Pubsub2Instance",bMf);var Xig=_.s2("ytPubsub2Pubsub2SubscribedKeys")||{};_.Ba("ytPubsub2Pubsub2SubscribedKeys",Xig);var q34=_.s2("ytPubsub2Pubsub2TopicToKeys")||{};_.Ba("ytPubsub2Pubsub2TopicToKeys",q34);
var kVO=_.s2("ytPubsub2Pubsub2IsAsync")||{};_.Ba("ytPubsub2Pubsub2IsAsync",kVO);_.Ba("ytPubsub2Pubsub2SkipSubKey",null);var GVz=void 0,mLx=void 0;var OON=_.uP("max_body_size_to_compress",5E5),HOt=_.uP("min_body_size_to_compress",500),va=!0,CcO=0,Jr=0,Uf4=_.uP("compression_performance_threshold_lr",250),FNQ=_.uP("slow_compressions_before_abandon_count",4),JGQ=!1,oH4=new Map,ZOp=1,Anv=!0;_.Od(ok,gq4);ok.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 p5p=function(N,t,O){O||(O=0);var H=N.W_;if(typeof t==="string")for(var A=0;A<16;A++)H[A]=t.charCodeAt(O)<<24|t.charCodeAt(O+1)<<16|t.charCodeAt(O+2)<<8|t.charCodeAt(O+3),O+=4;else for(A=0;A<16;A++)H[A]=t[O]<<24|t[O+1]<<16|t[O+2]<<8|t[O+3],O+=4;for(t=16;t<80;t++)O=H[t-3]^H[t-8]^H[t-14]^H[t-16],H[t]=(O<<1|O>>>31)&4294967295;t=N.chain_[0];O=N.chain_[1];A=N.chain_[2];for(var Z=N.chain_[3],U=N.chain_[4],C,F,g=0;g<80;g++)g<40?g<20?(C=Z^O&(A^Z),F=1518500249):(C=O^A^Z,F=1859775393):g<60?(C=O&A|Z&(O|A),
F=2400959708):(C=O^A^Z,F=3395469782),C=(t<<5|t>>>27)+C+U+F+H[g]&4294967295,U=Z,Z=A,A=(O<<30|O>>>2)&4294967295,O=t,t=C;N.chain_[0]=N.chain_[0]+t&4294967295;N.chain_[1]=N.chain_[1]+O&4294967295;N.chain_[2]=N.chain_[2]+A&4294967295;N.chain_[3]=N.chain_[3]+Z&4294967295;N.chain_[4]=N.chain_[4]+U&4294967295};
ok.prototype.update=function(N,t){if(N!=null){t===void 0&&(t=N.length);for(var O=t-this.blockSize,H=0,A=this.buf_,Z=this.inbuf_;H<t;){if(Z==0)for(;H<=O;)p5p(this,N,H),H+=this.blockSize;if(typeof N==="string")for(;H<t;){if(A[Z]=N.charCodeAt(H),++Z,++H,Z==this.blockSize){p5p(this,A);Z=0;break}}else for(;H<t;)if(A[Z]=N[H],++Z,++H,Z==this.blockSize){p5p(this,A);Z=0;break}}this.inbuf_=Z;this.total_+=t}};
ok.prototype.digest=function(){var N=[],t=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var O=this.blockSize-1;O>=56;O--)this.buf_[O]=t&255,t/=256;p5p(this,this.buf_);for(O=t=0;O<5;O++)for(var H=24;H>=0;H-=8)N[t]=this.chain_[O]>>H&255,++t;return N};var cnx;var WS=function(N){var t=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(B){t.databaseToken=B},
triggerThrottle:function(){t.throttledSend()},
cancelThrottle:function(){t.cancelThrottledSend()},
immediateSend:function(B){return _.K(function(c){return c.yield(t.immediateSend(B),0)})},
requestWithinAgeLimit:function(B,c){return t.requestWithinAgeLimit(B,c)},
retryQueuedRequests:function(){t.retryQueuedRequests()}};
var O;this.throttleTimeout=(O=N.throttleTimeout)!=null?O:100;var H;this.retryMaxAttempts=(H=N.retryMaxAttempts)!=null?H:1;var A;this.requestAgeLimitMs=(A=N.requestAgeLimitMs)!=null?A:2592E6;var Z;this.queuedRequestAgeLimitMs=(Z=N.queuedRequestAgeLimitMs)!=null?Z:12E4;var U;this.retryDelayMs=(U=N.retryDelayMs)!=null?U:5E3;var C;this.databaseToken=(C=N.databaseToken)!=null?C:void 0;this.enableCleaning=!!N.enableCleaning;var F;this.cleaningRate=(F=N.cleaningRate)!=null?F:.1;var g;this.potentialEsfErrorLimit=
(g=N.potentialEsfErrorLimit)!=null?g:10;N.handleError&&(this.handleError=N.handleError);N.handleWarning&&(this.handleWarning=N.handleWarning);N.disableYtIdbTransactions&&(this.disableYtIdbTransactions=N.disableYtIdbTransactions);N.bypassDbTokenDependency&&(this.bypassDbTokenDependency=N.bypassDbTokenDependency);this.getBooleanFlag=N.getBooleanFlag;this.jobManager=N.jobManager;this.logsStore=N.logsStore;this.networkManager=N.networkManager;this.sendFn=N.sendFn;this.onlineEvent=N.onlineEvent;this.offlineEvent=
N.offlineEvent;ng(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Ld_(this)},Ld_=function(N){ng(N)&&!N.disableYtIdbTransactions&&(N.initialized=!0,N.enableCleaning&&Math.random()<=N.cleaningRate&&N.logsStore.cleanLogsStore(N.databaseToken),N.retryQueuedRequests(),N.networkManager.isNetworkAvailable()&&N.throttledSend(),N.networkManager.listen(N.onlineEvent,N.throttledSend.bind(N)),N.networkManager.listen(N.offlineEvent,N.cancelThrottledSend.bind(N)))};
_.V=WS.prototype;_.V.writeThenSend=function(N,t){var O=this;t=t===void 0?{}:t;if(ng(this)&&this.initialized){var H={url:N,options:t,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(H,this.databaseToken).then(function(A){H.id=A;O.networkManager.isNetworkAvailable()&&O.immediateSend(H)}).catch(function(A){O.immediateSend(H);
zkE(O,A)})}else this.sendFn(N,t)};
_.V.sendThenWrite=function(N,t,O){var H=this;t=t===void 0?{}:t;if(ng(this)&&this.initialized){var A={url:N,options:t,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(A.skipRetry=O);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!A.skipRetry){if(!A.skipRetry){var Z=t.onError?t.onError:function(){};
t.onError=function(U,C){return _.K(function(F){if(F.nextAddress==1)return F.yield(H.logsStore.set(A,H.databaseToken).catch(function(g){zkE(H,g)}),2);
Z(U,C);_.Ty(F)})}}this.sendFn(N,t,A.skipRetry)}else this.logsStore.set(A,this.databaseToken).catch(function(U){H.sendFn(N,t,A.skipRetry);
zkE(H,U)})}else this.sendFn(N,t,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&O)};
_.V.sendAndWrite=function(N,t){var O=this;t=t===void 0?{}:t;if(ng(this)&&this.initialized){var H={url:N,options:t,timestamp:this.now(),status:"NEW",sendCount:0},A=!1,Z=t.onSuccess?t.onSuccess:function(){};
H.options.onSuccess=function(U,C){H.id!==void 0?O.logsStore.deleteRequest(H.id,O.databaseToken):A=!0;O.networkManager.networkStatusHint&&O.getBooleanFlag&&O.getBooleanFlag("vss_network_hint")&&O.networkManager.networkStatusHint(!0);Z(U,C)};
this.sendFn(H.url,H.options,void 0,!0);this.logsStore.set(H,this.databaseToken).then(function(U){H.id=U;A&&O.logsStore.deleteRequest(H.id,O.databaseToken)}).catch(function(U){zkE(O,U)})}else this.sendFn(N,t,void 0,!0)};
_.V.throttledSend=function(){var N=this;if(!ng(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(N.logsStore.getMostRecentByStatus("NEW",N.databaseToken),2);if(O.nextAddress!=3)return t=O.yieldResult,t?O.yield(N.immediateSend(t),3):(N.cancelThrottledSend(),O.return());N.intervalJob&&(N.intervalJob=0,N.throttledSend());_.Ty(O)})},this.throttleTimeout))};
_.V.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.V.immediateSend=function(N){var t=this,O;return _.K(function(H){switch(H.nextAddress){case 1:if(!ng(t))throw Error("cd");if(N.id===void 0){H.jumpTo(2);break}return H.yield(t.logsStore.markAsQueued(N.id,t.databaseToken),3);case 3:(O=H.yieldResult)||t.handleWarning(Error("dd"));case 2:if(t.requestWithinAgeLimit(N,t.requestAgeLimitMs)){H.jumpTo(4);break}t.handleWarning(Error("ed"));if(N.id===void 0){H.jumpTo(5);break}return H.yield(t.logsStore.deleteRequest(N.id,t.databaseToken),5);case 5:return H.return();
case 4:N.skipRetry||(N=Y_f(t,N));if(!N){H.jumpTo(0);break}if(!N.skipRetry||N.id===void 0){H.jumpTo(8);break}return H.yield(t.logsStore.deleteRequest(N.id,t.databaseToken),8);case 8:t.sendFn(N.url,N.options,!!N.skipRetry),_.Ty(H)}})};
var Y_f=function(N,t){if(!ng(N))throw Error("fd");var O=t.options.onError?t.options.onError:function(){};
t.options.onError=function(A,Z){var U,C,F,g;return _.K(function(B){switch(B.nextAddress){case 1:U=S6y(Z);(C=hhM(Z))&&N.getBooleanFlag&&N.getBooleanFlag("web_enable_error_204")&&N.handleError(Error("gd"),t.url,Z);if(!(N.getBooleanFlag&&N.getBooleanFlag("nwl_consider_error_code")&&U||N.getBooleanFlag&&!N.getBooleanFlag("nwl_consider_error_code")&&N.potentialEsfErrorCounter<=N.potentialEsfErrorLimit)){B.jumpTo(2);break}if(!N.networkManager.sendNetworkCheckRequest){B.jumpTo(3);break}return B.yield(N.networkManager.sendNetworkCheckRequest(),
3);case 3:if(N.networkManager.isNetworkAvailable()){B.jumpTo(2);break}O(A,Z);if(!N.getBooleanFlag||!N.getBooleanFlag("nwl_consider_error_code")||((F=t)==null?void 0:F.id)===void 0){B.jumpTo(6);break}return B.yield(N.logsStore.resetRequest(t.id,N.databaseToken,!1),6);case 6:return B.return();case 2:if(N.getBooleanFlag&&N.getBooleanFlag("nwl_consider_error_code")&&!U&&N.potentialEsfErrorCounter>N.potentialEsfErrorLimit)return B.return();N.potentialEsfErrorCounter++;if(((g=t)==null?void 0:g.id)===void 0){B.jumpTo(8);
break}return t.sendCount<N.retryMaxAttempts?B.yield(N.logsStore.resetRequest(t.id,N.databaseToken,!0,C?!1:void 0),12):B.yield(N.logsStore.deleteRequest(t.id,N.databaseToken),8);case 12:N.jobManager.addLowPriorityJob(function(){N.networkManager.isNetworkAvailable()&&N.throttledSend()},N.retryDelayMs);
case 8:O(A,Z),_.Ty(B)}})};
var H=t.options.onSuccess?t.options.onSuccess:function(){};
t.options.onSuccess=function(A,Z){var U;return _.K(function(C){if(C.nextAddress==1)return((U=t)==null?void 0:U.id)===void 0?C.jumpTo(2):C.yield(N.logsStore.deleteRequest(t.id,N.databaseToken),2);N.networkManager.networkStatusHint&&N.getBooleanFlag&&N.getBooleanFlag("vss_network_hint")&&N.networkManager.networkStatusHint(!0);H(A,Z);_.Ty(C)})};
return t};
WS.prototype.requestWithinAgeLimit=function(N,t){N=N.timestamp;return this.now()-N>=t?!1:!0};
WS.prototype.retryQueuedRequests=function(){var N=this;if(!ng(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(t){t&&!N.requestWithinAgeLimit(t,N.queuedRequestAgeLimitMs)?N.jobManager.addLowPriorityJob(function(){return _.K(function(O){if(O.nextAddress==1)return t.id===void 0?O.jumpTo(2):O.yield(N.logsStore.resetRequest(t.id,N.databaseToken),2);N.retryQueuedRequests();_.Ty(O)})}):N.networkManager.isNetworkAvailable()&&N.throttledSend()})};
var zkE=function(N,t){N.writeError&&!N.networkManager.isNetworkAvailable()?N.writeError(t):N.handleError(t)},ng=function(N){return!!N.databaseToken||N.bypassDbTokenDependency};var MnO;var wHl={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532};var any={},Pct=$2("ServiceWorkerLogsDatabase",{objectStores:(any.SWHealthLog={addedAtVersion:1},any),shared:!0,upgrade:function(N,t){t(1)&&O7(t_(N,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var rnS={},WNy=0;var mfG;var rk=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},D4=function(){if(!rk.instance){var N=_.s2("yt.networkRequestMonitor.instance")||new rk;
_.Ba("yt.networkRequestMonitor.instance",N);rk.instance=N}return rk.instance};
rk.prototype.requestComplete=function(N,t){t&&(this.anyRequestHasSucceeded=!0);N=this.removeParams(N);this.requestMap.get(N)||this.requestMap.set(N,t)};
rk.prototype.isEndpointCFR=function(N){N=this.removeParams(N);return(N=this.requestMap.get(N))?!1:N===!1&&this.anyRequestHasSucceeded?!0:null};
rk.prototype.removeParams=function(N){return N.split("?")[0]};
rk.prototype.removeParams=rk.prototype.removeParams;rk.prototype.isEndpointCFR=rk.prototype.isEndpointCFR;rk.prototype.requestComplete=rk.prototype.requestComplete;rk.getInstance=D4;var IB=function(N){_.Xm.call(this);var t=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=N!=null?N:{addLowPriorityJob:function(A,Z){return setTimeout(A,Z)},
cancelJob:function(A){clearTimeout(A)}};
var O,H;this.isOnline=(H=(O=window.navigator)==null?void 0:O.onLine)!=null?H:!0;this.onNavigatorChange=function(){return _.K(function(A){return A.yield(T8B(t),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||w5Z(this)};
_.p(IB,_.Xm);IB.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete IB.instance};
IB.prototype.isNetworkAvailable=function(){return this.isOnline};
var w5Z=function(N){N.pollingJob=N.jobManager.addLowPriorityJob(function(){var t;return _.K(function(O){if(O.nextAddress==1)return N.isOnline?((t=window.navigator)==null?0:t.onLine)?O.jumpTo(3):O.yield(T8B(N),3):O.yield(T8B(N),3);w5Z(N);_.Ty(O)})},3E4)},T8B=function(N,t){return N.networkRequestPromise?N.networkRequestPromise:N.networkRequestPromise=new Promise(function(O){var H,A,Z,U;
return _.K(function(C){switch(C.nextAddress){case 1:return H=window.AbortController?new window.AbortController:void 0,Z=(A=H)==null?void 0:A.signal,U=!1,_.Mo(C,2,3),H&&(N.abortTimeoutKey=N.jobManager.addLowPriorityJob(function(){H.abort()},t||2E4)),C.yield(fetch("/generate_204",{method:"HEAD",
signal:Z}),5);case 5:U=!0;case 3:_.pU(C);N.networkRequestPromise=void 0;N.abortTimeoutKey&&(N.jobManager.cancelJob(N.abortTimeoutKey),N.abortTimeoutKey=0);U!==N.isOnline&&(N.isOnline=U,N.isOnline?N.dispatchEvent("networkstatus-online"):N.dispatchEvent("networkstatus-offline"));O(U);_.YC(C,0);break;case 2:_.ax(C),U=!1,C.jumpTo(3)}})})};var ln=function(){_.Xm.call(this);var N=this;this.shouldFlushErrors=!1;IB.instance||(IB.instance=new IB(_.GB));this.sharedNetworkStatusManager=IB.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(N.shouldFlushErrors&&_.h("offline_error_handling")){var t=EqO().get("errors",!0);if(t){for(var O in t)if(t[O]){var H=new _.fF(O,"sent via offline_errors");H.name=t[O].name;H.stack=t[O].stack;H.level=t[O].level;_.JO(H)}EqO().set("errors",{},2592E3,!0)}}})};
_.p(ln,_.Xm);var ekR=function(){if(!ln.instance){var N=_.s2("yt.networkStatusManager.instance")||new ln;_.Ba("yt.networkStatusManager.instance",N);ln.instance=N}return ln.instance};
_.V=ln.prototype;_.V.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.V.networkStatusHint=function(N){this.sharedNetworkStatusManager.isOnline=N};
_.V.getWindowStatus=function(){var N=window.navigator.onLine;return N===void 0?!0:N};
_.V.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.V.listen=function(N,t){return this.sharedNetworkStatusManager.listen(N,t)};
_.V.sendNetworkCheckRequest=function(N){N=T8B(this.sharedNetworkStatusManager,N);N.then(function(t){_.h("use_cfr_monitor")&&D4().requestComplete("generate_204",t)});
return N};
ln.prototype.sendNetworkCheckRequest=ln.prototype.sendNetworkCheckRequest;ln.prototype.listen=ln.prototype.listen;ln.prototype.enableErrorFlushing=ln.prototype.enableErrorFlushing;ln.prototype.getWindowStatus=ln.prototype.getWindowStatus;ln.prototype.networkStatusHint=ln.prototype.networkStatusHint;ln.prototype.isNetworkAvailable=ln.prototype.isNetworkAvailable;ln.getInstance=ekR;_.VN=function(N){N=N===void 0?{}:N;_.Xm.call(this);var t=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=ekR();var O=_.s2("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);O&&(N.rateLimit?(this.rateLimit=N.rateLimit,O("networkstatus-online",function(){P5_(t,"publicytnetworkstatus-online")}),O("networkstatus-offline",function(){P5_(t,"publicytnetworkstatus-offline")})):(O("networkstatus-online",function(){t.dispatchEvent("publicytnetworkstatus-online")}),O("networkstatus-offline",
function(){t.dispatchEvent("publicytnetworkstatus-offline")})))};
_.p(_.VN,_.Xm);_.VN.prototype.isNetworkAvailable=function(){var N=_.s2("yt.networkStatusManager.instance.isNetworkAvailable");return N?N.bind(this.nsmInstance)():!0};
_.VN.prototype.networkStatusHint=function(N){var t=_.s2("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);t&&t(N)};
_.VN.prototype.sendNetworkCheckRequest=function(N){var t=this,O;return _.K(function(H){O=_.s2("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(t.nsmInstance);return _.h("skip_network_check_if_cfr")&&D4().isEndpointCFR("generate_204")?H.return(new Promise(function(A){var Z;t.networkStatusHint(((Z=window.navigator)==null?void 0:Z.onLine)||!0);A(t.isNetworkAvailable())})):O?H.return(O(N)):H.return(!0)})};
var P5_=function(N,t){N.rateLimit?N.lastJobTime?(_.GB.cancelJob(N.schedulerJob),N.schedulerJob=_.GB.addLowPriorityJob(function(){N.lastPublicSignalSent!==t&&(N.dispatchEvent(t),N.lastPublicSignalSent=t,N.lastJobTime=(0,_.jg)())},N.rateLimit-((0,_.jg)()-N.lastJobTime))):(N.dispatchEvent(t),N.lastPublicSignalSent=t,N.lastJobTime=(0,_.jg)()):N.dispatchEvent(t)};var oqp,Qq=function(){WS.call(this,{logsStore:{cleanLogsStore:w2x,deleteRequest:Tzt,getMostRecentByStatus:zhg,markAsQueued:Y6x,resetRequest:arQ,set:LNl},networkManager:_.sHO(),handleError:function(N,t,O){var H,A=O==null?void 0:(H=O.error)==null?void 0:H.code;if(A===400||A===415){var Z;N=new _.fF(N.message,t,O==null?void 0:(Z=O.error)==null?void 0:Z.code);_.HY(N,void 0,void 0,void 0,!0)}else _.JO(N)},
handleWarning:_.HY,sendFn:vqN,now:_.jg,writeError:Grp,jobManager:_.zh(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.uP("potential_esf_error_limit",10),getBooleanFlag:_.h,disableYtIdbTransactions:!(_.qH()&&_.NFy())});this.initializationPromise=new _.CT;_.h("networkless_immediately_drop_all_requests")&&ehz();hkx("LogsDatabaseV2")};
_.p(Qq,WS);_.xEp=function(){var N=_.s2("yt.networklessRequestController.instance");N||(N=new Qq,_.Ba("yt.networklessRequestController.instance",N),_.h("networkless_logging")&&_.ca().then(function(t){N.databaseToken=t;Ld_(N);N.initializationPromise.resolve();N.enableCleaning&&Math.random()<=N.cleaningRate&&N.databaseToken&&xfG(N.databaseToken);_.h("networkless_immediately_drop_sw_health_store")&&X5B(N)}));
return N};
Qq.prototype.writeThenSend=function(N,t){t||(t={});t=JnG(N,t);_.qH()||(this.initialized=!1);WS.prototype.writeThenSend.call(this,N,t)};
Qq.prototype.sendThenWrite=function(N,t,O){t||(t={});t=JnG(N,t);_.qH()||(this.initialized=!1);WS.prototype.sendThenWrite.call(this,N,t,O)};
Qq.prototype.sendAndWrite=function(N,t){t||(t={});t=JnG(N,t);_.qH()||(this.initialized=!1);WS.prototype.sendAndWrite.call(this,N,t)};
Qq.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var X5B=function(N){var t;_.K(function(O){if(!N.databaseToken)throw t=tr("clearSWHealthLogsDb"),t;return O.return(kr4(N.databaseToken).catch(function(H){N.handleError(H)}))})};_.OC9=!1;_.tFQ=_.H4.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.OC9};_.Ba("ytNetworklessLoggingInitializationOptions",_.tFQ);var mv=function(N){var t=this;this.config_=null;N?this.config_=N:w5G()&&(this.config_=_.u0());_.WX(_.GB,function(){ubg(t)},5E3)};
mv.prototype.isReady=function(){!this.config_&&w5G()&&(this.config_=_.u0());return!!this.config_};
var iOp=function(N,t,O,H){!_.Ro("VISITOR_DATA")&&t!=="visitor_id"&&Math.random()<.01&&_.HY(new _.fF("Missing VISITOR_DATA when sending innertube request.",t,O,H));if(!N.isReady()){var A=new _.fF("innertube xhrclient not ready",t,O,H);_.JO(A);throw A;}var Z={headers:H.headers||{},method:"POST",postParams:O,postBody:H.postBody,postBodyFormat:H.postBodyFormat||"JSON",onTimeout:function(){H.onTimeout()},
onFetchTimeout:H.onTimeout,onSuccess:function(c,u){if(H.onSuccess)H.onSuccess(u)},
onFetchSuccess:function(c){if(H.onSuccess)H.onSuccess(c)},
onProgress:function(c){if(H.onProgress)H.onProgress(c)},
onError:function(c,u){if(H.onError)H.onError(u)},
onFetchError:function(c){if(H.onError)H.onError(c)},
timeout:H.timeout,withCredentials:!0,compress:H.compress};Z.headers["Content-Type"]||(Z.headers["Content-Type"]="application/json");var U="";(A=N.config_.innertubeHostOverride)&&(U=A);var C=N.config_.innertubeUseThirdPartyAuth||!1,F=_.Gvy(C,U,H);Object.assign(Z.headers,F);Z.headers.Authorization&&!U&&C&&(Z.headers["x-origin"]=window.location.origin);var g=_.Uy(U+("/youtubei/"+N.config_.innertubeApiVersion+"/"+t),{alt:"json"}),B=function(c){c=c===void 0?!1:c;var u;if(H.retry&&U!="www.youtube-nocookie.com"&&
(c||_.h("skip_ls_gel_retry")||Z.headers["Content-Type"]!=="application/json"||(u=$fg(t,O,F,C)),u)){var S=Z.onSuccess,b=Z.onFetchSuccess;Z.onSuccess=function(P,x){jHg(u);S(P,x)};
O.onFetchSuccess=function(P,x){jHg(u);b(P,x)}}try{if(c&&H.retry&&!H.networklessOptions.bypassNetworkless)Z.method="POST",H.networklessOptions.writeThenSend?_.xEp().writeThenSend(g,Z):_.xEp().sendAndWrite(g,Z);
else if(H.compress){var z=!H.networklessOptions.writeThenSend;if(Z.postBody){var w=Z.postBody;typeof w!=="string"&&(w=JSON.stringify(Z.postBody));DfG(g,w,Z,_.aD,z)}else DfG(g,JSON.stringify(Z.postParams),Z,B0v,z)}else B0v(g,Z)}catch(P){if(P.name==="InvalidAccessError")u&&(jHg(u),u=0),_.HY(Error("id"));else throw P;}u&&_.WX(_.GB,function(){ubg(N)},5E3)};
_.HCx()?yBv().then(function(c){B(c)}):B(!1)};var Mfz=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Mfz,_.C8);var kva=0,ZCS=_.Ud?"webkit":_.D7?"moz":_.V_?"ms":mzS?"o":"";_.Ba("ytDomDomGetNextId",_.s2("ytDomDomGetNextId")||function(){return++kva});var q_X={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},yN=function(N){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(N=
N||window.event){this.event=N;for(var t in N)t in q_X||(this[t]=N[t]);this.scale=N.scale;this.rotation=N.rotation;var O=N.target||N.srcElement;O&&O.nodeType==3&&(O=O.parentNode);this.target=O;var H=N.relatedTarget;if(H)try{H=H.nodeName?H:null}catch(A){H=null}else this.type=="mouseover"?H=N.fromElement:this.type=="mouseout"&&(H=N.toElement);this.relatedTarget=H;this.clientX=N.clientX!=void 0?N.clientX:N.pageX;this.clientY=N.clientY!=void 0?N.clientY:N.pageY;this.keyCode=N.keyCode?N.keyCode:N.which;
this.charCode=N.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=N.altKey;this.ctrlKey=N.ctrlKey;this.shiftKey=N.shiftKey;this.metaKey=N.metaKey;this.pageX_=N.pageX;this.pageY_=N.pageY}}catch(A){}},fnr=function(N){if(document.body&&document.documentElement){var t=document.body.scrollTop+document.documentElement.scrollTop;
N.pageX_=N.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);N.pageY_=N.clientY+t}};
yN.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
yN.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
yN.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var da=_.H4.ytEventsEventsListeners||{};_.Ba("ytEventsEventsListeners",da);var Fwy=_.H4.ytEventsEventsCounter||{count:0};_.Ba("ytEventsEventsCounter",Fwy);var d2O=_.a5(function(){var N=!1;try{var t=Object.defineProperty({},"capture",{get:function(){N=!0}});
window.addEventListener("test",null,t)}catch(O){}return N});_.Od(cX,_.k1);cX.prototype.onMouseMove_=function(N){N.pageX_===void 0&&fnr(N);var t=N.pageX_;N.pageY_===void 0&&fnr(N);this.position_=new _.IN(t,N.pageY_)};
cX.prototype.checkPosition_=function(){if(this.position_){var N=(0,_.jg)();if(this.previousTime_!=0){var t=this.previousPosition_,O=this.position_,H=t.x-O.x;t=t.y-O.y;H=Math.sqrt(H*H+t*t)/(N-this.previousTime_);this.cycles_[this.index_]=Math.abs((H-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(O=t=0;O<4;O++)t+=this.cycles_[O]||0;t>=3&&this.callback_();this.previousVelocity_=H}this.previousTime_=N;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
cX.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.gJp(this.mouseListenerKey_)};var j_y={};var LBy=new _.Fp("rawColdConfigGroup");var pHt=new _.Fp("rawHotConfigGroup");var njY=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(njY,_.C8);var h$G=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(h$G,_.C8);var nb=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N,500)};
_.p(nb,_.C8);nb.prototype.getPayloadCase=function(){return _.S0(this,Wdu)};
nb.prototype.getContext=function(){return _.Sg(this,h$G,33)};
var Wdu=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var iEl=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(iEl,_.C8);var REg=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(REg,_.C8);REg.prototype.setVideoId=function(N){return wa(this,1,vJl,i1(N))};
REg.prototype.getPlaylistId=function(){return _.aP(this,k3(this,vJl,2))};
var vJl=[1,2];var gVO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(gVO,_.C8);gVO.prototype.getContext=function(){return _.Sg(this,eO,1)};
gVO.prototype.getTier=function(){return _.aG(this,7)};var rBf,SO,h_;rBf=_.H4.ytPubsubPubsubInstance||new _.wE;SO=_.H4.ytPubsubPubsubSubscribedKeys||{};h_=_.H4.ytPubsubPubsubTopicToKeys||{};_.iCt=_.H4.ytPubsubPubsubIsSynchronous||{};_.wE.prototype.subscribe=_.wE.prototype.subscribe;_.wE.prototype.unsubscribeByKey=_.wE.prototype.unsubscribeByKey;_.wE.prototype.publish=_.wE.prototype.publish;_.wE.prototype.clear=_.wE.prototype.clear;_.Ba("ytPubsubPubsubInstance",rBf);_.Ba("ytPubsubPubsubTopicToKeys",h_);_.Ba("ytPubsubPubsubIsSynchronous",_.iCt);
_.Ba("ytPubsubPubsubSubscribedKeys",SO);var bd=window;var mj=_.h("web_enable_lifecycle_monitoring")&&bCz()!==0,InQ=_.h("web_enable_lifecycle_monitoring");var lnR=function(N){var t=this;var O=O===void 0?0:O;var H=H===void 0?_.zh():H;this.JSC$11041_defaultPriority=O;this.scheduler=H;this.completedResolver=new _.CT;this.scheduledPayloads=N;for(N={i$jscomp$492:0};N.i$jscomp$492<this.scheduledPayloads.length;N={payload$jscomp$20:void 0,i$jscomp$492:N.i$jscomp$492},N.i$jscomp$492++)N.payload$jscomp$20=this.scheduledPayloads[N.i$jscomp$492],O=function(A){return function(){A.payload$jscomp$20.job();t.scheduledPayloads[A.i$jscomp$492].processed=!0;t.scheduledPayloads.every(function(Z){return Z.processed===
!0})&&t.completedResolver.resolve()}}(N),H=this.getPriority(N.payload$jscomp$20),H=this.scheduler.addJob(O,H),this.scheduledPayloads[N.i$jscomp$492]=Object.assign({},N.payload$jscomp$20,{job:O,
jobId:H})};
lnR.prototype.flushJobs=function(){var N=this,t=Array.from(this.scheduledPayloads.keys()).sort(function(H,A){return N.getPriority(N.scheduledPayloads[A])-N.getPriority(N.scheduledPayloads[H])});
t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=this.scheduledPayloads[O.value],O.jobId===void 0||O.processed||(this.scheduler.cancelJob(O.jobId),this.scheduler.addJob(O.job,10))};
lnR.prototype.cancel=function(){for(var N=_.D(this.scheduledPayloads),t=N.next();!t.done;t=N.next())t=t.value,t.jobId===void 0||t.processed||this.scheduler.cancelJob(t.jobId),t.processed=!0;this.completedResolver.resolve()};
lnR.prototype.getPriority=function(N){var t;return(t=N.priority)!=null?t:this.JSC$11041_defaultPriority};var Et=function(N){this.state=N;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};mj&&pV9(this.state)};
Et.prototype.install=function(N){this.plugins.push(N);return this};
Et.prototype.uninstall=function(){var N=this;_.E1.apply(0,arguments).forEach(function(t){t=N.plugins.indexOf(t);t>-1&&N.plugins.splice(t,1)})};
Et.prototype.transition=function(N,t){var O=this;mj&&Lw4(this.state);var H=this.transitions.find(function(Z){return Array.isArray(Z.from)?Z.from.find(function(U){return U===O.state&&Z.to===N}):Z.from===O.state&&Z.to===N});
if(H){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);QJp(this,N,t);this.state=N;mj&&pV9(this.state);H=H.action.bind(this);var A=this.plugins.filter(function(Z){return Z[N]}).map(function(Z){return Z[N]});
H(mEp(this,A),t)}else throw Error("jd`"+this.state+"`"+N);};
var mEp=function(N,t){var O=t.filter(function(A){return Ej0(N,A)===10}),H=t.filter(function(A){return Ej0(N,A)!==10});
return N.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var A=_.E1.apply(0,arguments);return _.K(function(Z){if(Z.nextAddress==1)return Z.yield(N.runImmediateJobsAsync.apply(N,[O].concat(_.W6(A))),2);N.setJobSetWithScheduledJobs.apply(N,[H].concat(_.W6(A)));_.Ty(Z)})}:function(){var A=_.E1.apply(0,arguments);
N.runImmediateJobsSync.apply(N,[O].concat(_.W6(A)));N.setJobSetWithScheduledJobs.apply(N,[H].concat(_.W6(A)))}};
Et.prototype.runImmediateJobsSync=function(N){var t=_.E1.apply(1,arguments);_.zh();for(var O=_.D(N),H=O.next(),A={};!H.done;A={lifecycle$jscomp$2:void 0},H=O.next())A.lifecycle$jscomp$2=H.value,Oi(function(Z){return function(){GvE(Z.lifecycle$jscomp$2.name);Y4l(function(){return Z.lifecycle$jscomp$2.callback.apply(Z.lifecycle$jscomp$2,_.W6(t))});
G4(Z.lifecycle$jscomp$2.name)}}(A))};
Et.prototype.runImmediateJobsAsync=function(N){var t=_.E1.apply(1,arguments),O,H,A,Z;return _.K(function(U){U.nextAddress==1&&(_.zh(),O=_.D(N),H=O.next(),A={});if(U.nextAddress!=3){if(H.done)return U.jumpTo(0);A.lifecycle$jscomp$3=H.value;A.asyncJobCompletion=void 0;Z=function(C){return function(){GvE(C.lifecycle$jscomp$3.name);var F=Y4l(function(){return C.lifecycle$jscomp$3.callback.apply(C.lifecycle$jscomp$3,_.W6(t))});
MEp(F)?C.asyncJobCompletion=_.h("web_lifecycle_error_handling_killswitch")?F.then(function(){G4(C.lifecycle$jscomp$3.name)}):F.then(function(){G4(C.lifecycle$jscomp$3.name)},function(g){zEM(g);
G4(C.lifecycle$jscomp$3.name)}):G4(C.lifecycle$jscomp$3.name)}}(A);
Oi(Z);return A.asyncJobCompletion?U.yield(A.asyncJobCompletion,3):U.jumpTo(3)}A={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};H=O.next();return U.jumpTo(2)})};
Et.prototype.setJobSetWithScheduledJobs=function(N){var t=_.E1.apply(1,arguments),O=this,H=N.map(function(A){return{job:function(){GvE(A.name);Y4l(function(){return A.callback.apply(A,_.W6(t))});
G4(A.name)},
priority:Ej0(O,A)}});
H.length&&(this.jobSet=new lnR(H))};
var Ej0=function(N,t){var O,H;return(H=(O=N.overridePriority)!=null?O:t.priority)!=null?H:0},GvE=function(N){mj&&N&&pV9(N)},G4=function(N){mj&&N&&Lw4(N)},QJp=function(N,t,O){InQ&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+N.constructor.name+"] '"+N.state+"' to '"+t+"'"),console.log("with message: ",O),console.groupEnd())};
_.cv.Object.defineProperties(Et.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Rk0=function(N){Et.call(this,N===void 0?"none":N);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},vjp;
_.p(Rk0,Et);Rk0.prototype.runApplicationNavigationBegin=function(N,t){var O=this;this.navigationTimer=_.WX(_.GB,function(){O.currentState==="application_navigating"&&O.transition("none")},5E3);
N(t==null?void 0:t.event)};
Rk0.prototype.runApplicationNavigationEnd=function(N,t){this.navigationTimer&&(_.GB.cancelJob(this.navigationTimer),this.navigationTimer=null);N(t==null?void 0:t.event)};
_.bEp=function(){vjp||(vjp=new Rk0);return vjp};var M9M=[];_.Ba("yt.logging.transport.getScrapedGelPayloads",function(){return M9M});var pb=function(){var N=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return N.totalEntries}}};
pb.prototype.storePayload=function(N,t){N=a5t(N);this.store[N]?this.store[N].push(t):(this.memoizedKeySequences={},this.store[N]=[t]);this.totalEntries++;_.h("more_accurate_gel_parser")&&(t=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(t));return N};
pb.prototype.smartExtractMatchingEntries=function(N){if(!N.keys.length)return[];for(var t=JBR(this,N.keys.splice(0,1)[0]),O=[],H=0;H<t.length;H++)this.store[t[H]]&&N.sizeLimit&&(this.store[t[H]].length<=N.sizeLimit?(O.push.apply(O,_.W6(this.store[t[H]])),delete this.store[t[H]]):O.push.apply(O,_.W6(this.store[t[H]].splice(0,N.sizeLimit))));this.totalEntries-=O.length;(N==null?0:N.sizeLimit)&&O.length<(N==null?void 0:N.sizeLimit)&&(N.sizeLimit-=O.length,O.push.apply(O,_.W6(this.smartExtractMatchingEntries(N))));
return O};
pb.prototype.extractMatchingEntries=function(N){N=JBR(this,N);for(var t=[],O=0;O<N.length;O++)this.store[N[O]]&&(t.push.apply(t,_.W6(this.store[N[O]])),delete this.store[N[O]]);this.totalEntries-=t.length;return t};
pb.prototype.getSequenceCount=function(N){N=JBR(this,N);for(var t=0,O=0;O<N.length;O++){var H=void 0;t+=((H=this.store[N[O]])==null?void 0:H.length)||0}return t};
var JBR=function(N,t){var O=a5t(t);if(N.memoizedKeySequences[O])return N.memoizedKeySequences[O];var H=Object.keys(N.store)||[];if(H.length<=1&&a5t(t)===H[0])return H;for(var A=[],Z=0;Z<H.length;Z++){var U=H[Z].split("/");if(ojp(t.auth,U[0])){var C=t.isJspb;ojp(C===void 0?"undefined":C?"true":"false",U[1])&&ojp(t.cttAuthInfo,U[2])&&(C=t.tier,C=C===void 0?"undefined":JSON.stringify(C),ojp(C,U[3])&&A.push(H[Z]))}}return N.memoizedKeySequences[O]=A},ojp=function(N,t){return N===void 0||N==="undefined"?
!0:N===t};
pb.prototype.getSequenceCount=pb.prototype.getSequenceCount;pb.prototype.extractMatchingEntries=pb.prototype.extractMatchingEntries;pb.prototype.smartExtractMatchingEntries=pb.prototype.smartExtractMatchingEntries;pb.prototype.storePayload=pb.prototype.storePayload;var ZEp,HEv,V9g,a0,sJB,Tq4,aN4,OEt,t9O,l5y,A4Q,SiO,oJy;ZEp=_.uP("initial_gel_batch_timeout",2E3);HEv=_.uP("gel_queue_timeout_max_ms",6E4);V9g=_.uP("gel_min_batch_size",5);a0=void 0;sJB=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Tq4=new sJB;aN4=new sJB;OEt=new sJB;t9O=new sJB;A4Q=!0;SiO=1;_.uM4=new Map;oJy=_.H4.ytLoggingTransportTokensToCttTargetIds_||{};_.Ba("ytLoggingTransportTokensToCttTargetIds_",oJy);var JdM=_.H4.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Ba("ytLoggingTransportTokensToJspbCttTargetIds_",JdM);var Y3={};var ld=_.H4.ytLoggingGelSequenceIdObj_||{};_.Ba("ytLoggingGelSequenceIdObj_",ld);var Pjy=[];var mey=new Set,fNx=0,Rwz=0,GIl=0,WBv=[],nVt=[],vVx=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var CF4=function(){};
CF4.prototype.getUrl=function(N,t){t=t===void 0?!1:t;return N.hasOwnProperty("shareEndpoint")?null:_.NZg(N,null,t)};
var ujQ=function(N,t,O){N={endpoint:t,actions:[]};O=(O.path?O.path[0]:O.target).icon||"";t=O.indexOf(":");t>0&&(O=O.substr(t+1));O&&N.actions.push(O);return N};var Vpl=/Command$/,Zxv=/Endpoint$/,OxM=new Map;var NYX,tcu;NYX=1;_.VM=function(){this.actionRoutingMap=new Map};
_.VM.prototype.triggerAction=function(N){var t=new tfz(N,!1,_.E1.apply(1,arguments));this.handleAction(t);return t.returnValue};
_.VM.prototype.triggerOptionalAction=function(N){var t=new tfz(N,!0,_.E1.apply(1,arguments));this.handleAction(t);return t.returnValue};
_.RB=function(N,t,O){t.forEach(function(H){var A=A5Q(H);A&&N.triggerOptionalAction(A,H,O,void 0)})};
_.VM.prototype.handleAction=function(N){var t=this.actionRoutingMap.get(N.actionName);t&&tcu(N,t);N.optionalAction||N.returnValue.length!==0||(N=new _.fF("Unhandled action",N.actionName),_.HY(N))};
tcu=function(N,t){t.forEach(function(O){var H=null;O?H=O.apply(null,N.args):(O=Error("kd"),O.params=N.actionName,_.JO(O));N.returnValue.push(H)})};
_.Uh=function(N,t,O){O||(O=NYX++);for(var H=_.D(Object.keys(t)),A=H.next();!A.done;A=H.next()){A=A.value;var Z=N.actionRoutingMap.get(A);Z||(Z=new Map,N.actionRoutingMap.set(A,Z));N.registerActionHandler(O,A,t[A],Z)}return O};
_.VM.prototype.registerActionHandler=function(N,t,O,H){H.set(N,_.oo(O))};
_.C9=function(N,t,O){t=_.D(Object.keys(t));for(var H=t.next();!H.done;H=t.next())(H=N.actionRoutingMap.get(H.value))&&H.delete(O)};
_.Nd(_.VM);var dUt=function(N,t){var O=_.VM.getInstance();_.Q8(function(){var H={},A=_.Uh(O,(H[N]=t,H));_.Ia(function(){var Z={};_.C9(O,(Z[N]="",Z),A)})})};var MUz=Symbol("md");$TM=Jv4;var aES=new Set(["For","If","Match","Watch"]),OTS={},HT0=(OTS[JJ.default]=function(){return KFt},OTS.style=function(){return KFt},OTS),AGB;
for(AGB in HT0)gp.attributes[AGB]=HT0[AGB](gp.attributes[AGB]);var j4=new _.dk("VISIBILITY_OBSERVER");var nSt={retrieve:function(N){return this.id.\u0275prov.token===N.\u0275prov.token?this.contextValue:this?_.Kt(this,this.id):jkO}};var tMO=function(N,t,O){if(N!==$U9)return!1;N=Mpl(document.createElement("div"),function(){var H=cZ(!1);try{O[0]()}finally{cZ(H)}});
N=Array.from(N.childNodes);N.length===1&&(N=N[0]);return N};var ZTE=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(N){}var VcY=typeof WeakRef==="function";var DLS=function(N){this.value=N};
DLS.prototype.deref=function(){return this.value};
var ULX=VcY?WeakRef:DLS,C8S=function(N){this.newKeyHandler=N;this.map=new WeakMap};
C8S.prototype.add=function(N,t){this.map.has(N)||(this.newKeyHandler(N),this.map.set(N,[]));this.map.get(N).push(new ULX(t))};
C8S.prototype.get=function(N){var t=this;return function H(){var A,Z,U,C,F,g,B,c,u,S,b;return _.CS(H,function(z){switch(z.nextAddress){case 1:_.zy(z,2);A=t.map.get(N);if(!A)return z.return();Z=0;U=_.D(A);C=U.next();case 4:if(C.done){z.jumpTo(6);break}F=C.value;g=F.deref();if(!g){z.jumpTo(5);break}Z++;B=_.KS;return z.yield(g,8);case 8:B(z.yieldResult);case 5:C=U.next();z.jumpTo(4);break;case 6:if(2*Z<A.length){c=0;u=_.D(A);for(S=u.next();!S.done;S=u.next())b=S.value,b.deref()&&(A[c++]=b);A.length=
c}case 2:_.pU(z),_.YC(z,0)}})}()};var K1E=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},ESv=new C8S(function(N){N.addEventListener("abort",RPg,{once:!0})}),mUS=new WeakMap,F1p=function(N){N=N===void 0?vS:N;
this.signal=new N};
F1p.prototype.abort=function(N){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=N,N=new Event("abort"),this.signal.dispatchEvent(N))};
var vS=function(){this.target=K1E();this.aborted=!1;this.onabort=null};
vS.prototype.throwIfAborted=function(){Q8Q.call(this)};
vS.prototype.addEventListener=function(N,t,O){this.target.addEventListener(N,t,O)};
vS.prototype.removeEventListener=function(N,t,O){this.target.removeEventListener(N,t,O)};
vS.prototype.dispatchEvent=function(N){if(this.onabort&&N.type==="abort")this.onabort(N);return this.target.dispatchEvent(N)};
vS.abort=lEM;vS.timeout=vSN;vS.any=GEx;var IE9=ZTE?AbortController:F1p,JL=ZTE?AbortSignal:vS;typeof JL.abort!=="function"&&(JL.abort=lEM);typeof JL.prototype.throwIfAborted!=="function"&&(JL.prototype.throwIfAborted=Q8Q);typeof JL.any!=="function"&&(JL.any=GEx);typeof JL.timeout!=="function"&&(JL.timeout=vSN);var uU=null,oSO=new Map;var dLu=function(N){N=N.clone();wdY(N);PL(N,"dg",null);PL(N,"d","0");zca(N,null);Yhy(N,null);return N},gHR=!0,yGQ=function(N,t,O){var H=O===void 0?{}:O;
O=H.cssRowKey===void 0?void 0:H.cssRowKey;var A=H.combinedSignature===void 0?void 0:H.combinedSignature;var Z=H.extraEdges===void 0?void 0:H.extraEdges;H=H.callback===void 0?void 0:H.callback;PL(N,"m",t.join(","));Z&&T9p(N,Z);O&&(PL(N,"ck",O),A?PL(N,"rs",A):gHR&&(gHR=!1));if(H){if(H!=null&&!XdX.test(H))throw Error("Xa`"+H);PL(N,"cb",H)}N=N.toString();_.Zp(N,"/")&&(N=Cup(document.location.href)+N);return _.wD(N)};var cGa=function(N){return BYy(N).then(function(t){return JSON.parse(t.responseText)})},BYy=function(N){var t={},O=t.xmlHttpFactory?t.xmlHttpFactory.createInstance():RgE.createInstance();
return(new _.TW(function(H,A){var Z;try{O.open("GET",N,!0)}catch(F){A(new oB("Error opening XHR: "+F.message,N,O))}O.onreadystatechange=function(){if(O.readyState==4){_.H4.clearTimeout(Z);var F;!(F=Gmr(O.status))&&(F=O.status===0)&&(F=UnB(N),F=!(F=="http"||F=="https"||F==""));F?H(O):A(new $LQ(O.status,N,O))}};
O.onerror=function(){A(new oB("Network error",N,O))};
if(t.headers)for(var U in t.headers){var C=t.headers[U];C!=null&&O.setRequestHeader(U,C)}t.withCredentials&&(O.withCredentials=t.withCredentials);t.responseType&&(O.responseType=t.responseType);t.mimeType&&O.overrideMimeType(t.mimeType);t.timeoutMs>0&&(Z=_.H4.setTimeout(function(){O.onreadystatechange=function(){};
O.abort();A(new jIr(N,O))},t.timeoutMs));
try{O.send(null)}catch(F){O.onreadystatechange=function(){},_.H4.clearTimeout(Z),A(new oB("Error sending XHR: "+F.message,N,O))}})).thenCatch(function(H){H instanceof _.kg&&O.abort();
throw H;})},oB=function(N,t,O){_.Nz.call(this,N+", url="+t);
this.url=t;this.xhr=O};
_.Od(oB,_.Nz);oB.prototype.name="XhrError";var $LQ=function(N,t,O){oB.call(this,"Request Failed, status="+N,t,O);this.status=N};
_.Od($LQ,oB);$LQ.prototype.name="XhrHttpError";var jIr=function(N,t){oB.call(this,"Request timed out",N,t)};
_.Od(jIr,oB);jIr.prototype.name="XhrTimeoutError";sI=sI||{};var st=function(){_.k1.call(this)};
_.Od(st,_.k1);st.prototype.initialize=function(){};var iT_=function(N,t){this.fn_=N;this.handler_=t};
iT_.prototype.execute=function(N){this.fn_&&(this.fn_.call(this.handler_||null,N),this.fn_=this.handler_=null)};
iT_.prototype.abort=function(){this.handler_=this.fn_=null};var N_=function(N,t){_.k1.call(this);this.deps_=N;this.JSC$11196_id_=t;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Od(N_,_.k1);N_.prototype.moduleConstructor_=st;N_.prototype.module_=null;N_.prototype.getId=function(){return this.JSC$11196_id_};
N_.prototype.registerCallback=function(N,t){return tA(this.onloadCallbacks_,N,t)};
var uir=function(N,t){tA(N.onErrorCallbacks_,t)},tA=function(N,t,O){t=new iT_(t,O);
N.push(t);return t};
N_.prototype.isLoaded=function(){return!!this.module_};
N_.prototype.onLoad=function(N){var t=new this.moduleConstructor_;t.initialize(N());this.module_=t;t=(t=S3Y(this.earlyOnloadCallbacks_,N()))||S3Y(this.onloadCallbacks_,N());t||(this.onErrorCallbacks_.length=0);return t};
N_.prototype.onError=function(N){(N=S3Y(this.onErrorCallbacks_,N))&&Ag(Error("rd`"+N));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var S3Y=function(N,t){for(var O=[],H=0;H<N.length;H++)try{N[H].execute(t)}catch(A){Ag(A),O.push(A)}N.length=0;return O.length?O:null};
N_.prototype.disposeInternal=function(){N_.superClass_.disposeInternal.call(this);_.F$(this.module_)};var hVQ,Y3Q,L1S,zVy,bTp,pi0,P8p,wiX,eVE;
_.hy=function(N,t,O,H,A){H=H===void 0?!1:H;A=A===void 0?!1:A;var Z=Z===void 0?!0:Z;this.scsReferenceUrl_=W8t(_.es(N).toString(),Z);this.cssRowKey_=t;this.combinedSignature_=O;this.useNegativeLoading_=H;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(N=ez(this.scsReferenceUrl_,"excm"))?N.split(","):[];this.shouldScanForCss_=A;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;rr4();_.OT(this,a3p(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
hVQ=function(N,t){if(t.href||t.getAttribute("data-href"))if(t=t.href||t.getAttribute("data-href"),kBO(t)&&!W8t(t).urlPrefix_.endsWith("_/js/")){t=a3p(W8t(t));t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=O.value,N.loadedCssModuleList_.includes(O)||N.loadedCssModuleList_.push(O)}};
_.hy.prototype.JSC$11201_loadModules=function(N,t,O){var H=O===void 0?{}:O;t=H.extraEdges;O=H.onError;var A=H.onSuccess;H=H.forceReload;if(!N)throw Error("sd");if(this.shouldScanForCss_){for(var Z=_.D(document.getElementsByTagName("style")),U=Z.next();!U.done;U=Z.next())hVQ(this,U.value);Z=_.D(document.getElementsByTagName("link"));for(U=Z.next();!U.done;U=Z.next())hVQ(this,U.value)}McQ(this,bTp(this,N),t,O,A,H)};
var McQ=function(N,t,O,H,A,Z){H=H===void 0?function(){}:H;
A=A===void 0?function(){}:A;
Z=Z===void 0?!1:Z;pi0(N,t,function(U,C,F){F=F===void 0?C:F;N.enableFallbackFetch&&Z?N.loadWithFetch(U,C,H,A,F):N.load(U,C,H,A,F,O)},O)||H(-1)};
_.hy.prototype.loadWithFetch=function(){_.K(function(){throw Error("td");})};
_.hy.prototype.maybeSetAdditionalFields=function(){};
Y3Q=function(N,t,O){if(N.useNegativeLoading_){var H=N.scsReferenceUrl_;N={cssRowKey:N.cssRowKey_,combinedSignature:N.combinedSignature_,extraEdges:O,requestedModuleIds:L1S(N),requestedCssModuleIds:zVy(N)};var A=N===void 0?{}:N;N=A.requestedModuleIds===void 0?[]:A.requestedModuleIds;O=A.requestedCssModuleIds===void 0?[]:A.requestedCssModuleIds;var Z=A.cssRowKey===void 0?void 0:A.cssRowKey;var U=A.combinedSignature===void 0?void 0:A.combinedSignature;var C=A.extraEdges===void 0?void 0:A.extraEdges;
A=A.callback===void 0?void 0:A.callback;H=dLu(H);PL(H,"d","1");zca(H,N);Yhy(H,O);t=yGQ(H,t,{cssRowKey:Z,combinedSignature:U,extraEdges:C,callback:A})}else H=N.scsReferenceUrl_,N={cssRowKey:N.cssRowKey_,combinedSignature:N.combinedSignature_,requestedModuleIds:L1S(N),requestedCssModuleIds:zVy(N)},C=N===void 0?{}:N,N=C.requestedCssModuleIds===void 0?[]:C.requestedCssModuleIds,O=C.cssRowKey===void 0?void 0:C.cssRowKey,Z=C.combinedSignature===void 0?void 0:C.combinedSignature,U=C.extraEdges===void 0?
void 0:C.extraEdges,C=C.callback===void 0?void 0:C.callback,H=dLu(H),Yhy(H,N),t=yGQ(H,t,{cssRowKey:O,combinedSignature:Z,extraEdges:U,callback:C});return t};
_.OT=function(N,t){for(var O=!1,H=[],A=0;A<t.length;++A){var Z=t[A];N.requestedModuleMap_[Z]||(N.requestedModuleMap_[Z]=!0,N.requestedModuleList_.push(Z),O=!0,H.push(Z))}O&&(N.requestedModuleListSorted_=!1)};
_.Hn=function(N,t){for(var O=[],H=0;H<t.length;++H){var A=t[H];N.requestedModuleMap_[A]&&(delete N.requestedModuleMap_[A],_.rt(N.requestedModuleList_,A),O.push(A))}};
_.hy.prototype.load=function(N,t,O,H,A){A=A===void 0?t:A;_.es(N);var Z=this.useCors_,U=this.corsMode_,C=this.fetchPriority,F=_.Tu("SCRIPT");_.UG(F,N);Z&&(F.crossOrigin=U);F.async=!1;C&&F.setAttribute("fetchpriority",C);_.OT(this,t);_.amf(this,N,F,t,O,H,A)};
_.amf=function(N,t,O,H,A,Z,U){U=U===void 0?H:U;N.lastScript_=O;N.insertPos.insertBefore(O,N.insertPos.firstChild);_.TYu(O,H,function(){O.parentElement.removeChild(O);N.lastScript_==O&&(N.lastScript_=null);Z()},function(C){O.parentElement.removeChild(O);
N.lastScript_==O&&(N.lastScript_=null);_.Hn(N,C);N.pendingModuleGraphUpdate_?N.pendingModuleGraphUpdate_.then(function(){A(-1,t)}):A(-1,t)},U)};
_.TYu=function(N,t,O,H,A){A=A===void 0?t:A;var Z=t.length,U=function(){Z=0;N.onload=null;N.onerror=null;C=function(){}},C=function(){U();
var g=A.filter(function(B){return!lu().getModuleInfo(B).isLoaded()});
g.length!==0?H(g,"Response was successful but was missing module(s) "+g+"."):O()},F=function(){Z--;
Z==0&&C()};
t.forEach(function(g){g=lu().getModuleInfo(g);g.isLoaded()?F():(tA(g.earlyOnloadCallbacks_,F),uir(g,F))});
N.onload=function(){return C()};
N.onerror=function(){U();H(t)}};
L1S=function(N){N.requestedModuleListSorted_||(N.requestedModuleListSorted_=!0,N.requestedModuleList_.sort());return N.requestedModuleList_};
zVy=function(N){N=N.loadedCssModuleList_;N.sort();return N};
bTp=function(N,t){return t.filter(function(O){return!N.requestedModuleMap_[O]})};
pi0=function(N,t,O,H){if(N.pendingModuleGraphUpdate_)return N.pendingModuleGraphUpdate_.then(function(){pi0(N,t,O,H)}),!0;
if(!N.useNegativeLoading_){var A=[],Z=Object.assign({},N.requestedModuleMap_);wiX(N,t,function(B){A.push(B.getId())},H,function(B){return!B.isLoaded()},Z);
t=A}for(Z=0;Z<t.length;){for(var U=t.length-Z,C=Z==0?t:t.slice(Z,t.length),F=Y3Q(N,C,H),g=_.es(F).toString();g.length>N.urlMaxLength;)if(U>1)U-=Math.ceil((g.length-N.urlMaxLength)/6),U=Math.max(U,1),C=t.slice(Z,Z+U),F=Y3Q(N,C,H),g=_.es(F).toString();else return N.useNegativeLoading_?(N.useNegativeLoading_=!1,N.pendingModuleGraphUpdate_=eVE(N).then(function(B){P8p(N,B,H)}),pi0(N,t.slice(Z),O,H)):!1;
Z+=U;N.useNegativeLoading_?O(F,C):O(F,C,Z===t.length?t:[])}return!0};
P8p=function(N,t,O){lu().setAllModuleInfoString((t||{}).moduleGraph);wiX(N,L1S(N),function(H){_.OT(N,[H.getId()])},O);
N.pendingModuleGraphUpdate_=null};
wiX=function(N,t,O,H,A,Z){Z=Z===void 0?{}:Z;var U=lu();t=_.D(t);for(var C=t.next();!C.done;C=t.next()){C=C.value;var F=U.getModuleInfo(C);if(!(Z[C]||A&&!A(F))){Z[C]=!0;var g=F.deps_||[];if(H){var B=[];H[C]&&(B=Object.keys(H[C]));g=g.concat(B)}wiX(N,g,O,H,A,Z);O(F)}}};
eVE=function(N){N=N.scsReferenceUrl_.clone();wdY(N);PL(N,"dg",null);PL(N,"md","1");return cGa(N.toString())};var Nvp=new Uint8Array(123);var Xiu=[];var xLR=function(){this.JSC$10209_loader_=null};
_.V=xLR.prototype;_.V.setBatchModeEnabled=function(){};
_.V.setAllModuleInfoString=function(){};
_.V.addExtraEdge=function(){throw Error("ud");};
_.V.removeExtraEdge=function(){throw Error("vd");};
_.V.getModuleContext=function(){return null};
_.V.isActive=function(){return!1};
_.V.isUserActive=function(){return!1};
_.V.registerInitializationCallback=function(){};
_.V.registerCallback=function(){};var AA=function(N,t,O,H,A){var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.name="ModuleLoadFailure";this.type=N;this.status=t;this.requestedModuleIds=O;this.url=H;this.cause=A;this.message=this.toString()};
_.p(AA,Error);AA.prototype.toString=function(){return kVB(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var kVB=function(N){switch(N.type){case AA.Type.UNAUTHORIZED:return"Unauthorized";case AA.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case AA.Type.TIMEOUT:return"Timed out";case AA.Type.OLD_CODE_GONE:return"Out of date module id";case AA.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+N.type}};
sI.ModuleLoadFailure=AA;sI.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Zg=function(){this.moduleIds_=this.JSC$10209_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11214_extraEdges_={};this.JSC$11214_callbackMap_={};this.JSC$11214_currentlyLoadingModule_=this.baseModuleInfo_=new N_([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new A8;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.Od(Zg,xLR);var q30=function(N,t){_.Nz.call(this,"Error loading "+N+": "+t)};
_.Od(q30,_.Nz);Zg.prototype.setBatchModeEnabled=function(N){this.batchModeEnabled_=N};
Zg.prototype.setAllModuleInfoString=function(N,t){if(!(this instanceof Zg))this.setAllModuleInfoString(N,t);else if(typeof N==="string"){if(N.startsWith("d$")){N=N.substring(2);for(var O=[],H=0,A=N.indexOf("/"),Z=0,U=!1,C=0;;){var F=U?N.substring(Z):N.substring(Z,A);if(F.length===0)H++,Z="sy"+H.toString(36),F=[];else{var g=F.indexOf(":");if(g<0)Z=F,F=[];else if(g===F.length-1)Z=F.substring(0,g),F=Array(O[C-1]);else{Z=F.substring(0,g);F=F.substring(g+1).split(",");g=C;for(var B=0;B<F.length;B++)g-=
F[B].length===0?1:Number(F[B]),F[B]=O[g]}g=0;if(Z.length===0)g=1;else if(Z.charAt(0)==="+"||Z.charAt(0)==="-")g=Number(Z);g!==0&&(H+=g,Z="sy"+H.toString(36))}O.push(Z);fm_(this,Z,F);if(U)break;Z=A+1;A=N.indexOf("/",Z);A===-1&&(U=!0);C++}this.moduleIds_=O}else if(N.startsWith("p$"))nH_(this,N);else{N=N.split("/");O=[];for(H=0;H<N.length;H++){C=N[H].split(":");A=C[0];U=[];if(C[1])for(U=C[1].split(","),C=0;C<U.length;C++)U[C]=O[parseInt(U[C],36)];O.push(A);fm_(this,A,U)}this.moduleIds_=O}t&&t.length?
(_.Qv(this.loadingModuleIds_,t),this.lastInitialModuleId_=_.wt(t)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11214_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11214_currentlyLoadingModule_=null,(t=this.baseModuleInfo_.onLoad((0,_.qn)(this.getModuleContext,this)))&&t.length&&W1u(this,new sI.ModuleLoadFailure(sI.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,t[0])),Vu(this))}};
var nH_=function(N,t){var O=t.substring(2);for(t=0;t<64;t++)Nvp["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(t)]=t;var H={buf:O,pos:0};S4(H);var A=S4(H),Z=S4(H)+1;t=Array(A);var U=Array(A),C=Array(A);Z=Array(Z);var F=0,g=0,B=H.pos,c=H.buf.indexOf("|",H.pos);H.pos=c+1;for(c=0;c<A;c++){var u=S4(H),S=u&2,b=u&1;u>>>=2;b?(F+=u>>>1^-(u&1),u="sy"+F.toString(36)):(b=B,B+=u,u=O.substring(b,B));t[c]=u;S&&(Z[g++]=u)}Z[g]="";H.pos++;g=A&-2;O=A&1;for(F=0;F<g;F+=2)B=tqN(H),C[F]=
B&7,C[F+1]=B>>>3&7;O&&(O=tqN(H),C[g]=O&7);H.pos++;for(g=0;g<A;g++)C[g]===7&&(C[g]=S4(H));H.pos++;for(O=g=0;O<A;O++){F=C[O];B=F===0?Xiu:Array(F);U[O]=B;c=g;for(S=0;S<F;S++)c-=S4(H),B[S]=Z[c];Z[g]===t[O]&&g++}for(H=0;H<t.length;H++)fm_(N,t[H],U[H]);N.moduleIds_=t};
_.V=Zg.prototype;_.V.getModuleInfo=function(N){return this.moduleInfoMap[N]};
_.V.addExtraEdge=function(N,t){var O=this.getModuleInfo(N);O&&O.isLoaded()?this.load(t):(this.JSC$11214_extraEdges_[N]||(this.JSC$11214_extraEdges_[N]={}),this.JSC$11214_extraEdges_[N][t]=!0)};
_.V.removeExtraEdge=function(N,t){if(this.JSC$11214_extraEdges_[N]){delete this.JSC$11214_extraEdges_[N][t];for(var O in this.JSC$11214_extraEdges_[N])return;delete this.JSC$11214_extraEdges_[N]}};
_.V.isActive=function(){return this.loadingModuleIds_.length>0};
_.V.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Vu=function(N){var t=N.lastActive_,O=N.isActive();O!=t&&(N.executeCallbacks_(O?"active":"idle"),N.lastActive_=O);t=N.isUserActive();t!=N.userLastActive_&&(N.executeCallbacks_(t?"userActive":"userIdle"),N.userLastActive_=t)},fm_=function(N,t,O){N.moduleInfoMap[t]?(N=N.moduleInfoMap[t].deps_,N!=O&&N.splice.apply(N,[0,
N.length].concat(_.W6(O)))):N.moduleInfoMap[t]=new N_(O,t)},Imy=function(N,t,O){var H=[];
X44(t,H);t=[];for(var A={},Z=0;Z<H.length;Z++){var U=H[Z],C=N.getModuleInfo(U);if(!C)throw Error("wd`"+U);var F=new A8;A[U]=F;C.isLoaded()?F.callback(null):(rGX(N,U,C,!!O,F),N.isModuleLoading(U)||t.push(U))}t.length>0&&(N.loadingModuleIds_.length===0?N.loadModules_(t):(N.requestedModuleIdsQueue_.push(t),Vu(N)));return A},rGX=function(N,t,O,H,A){O.registerCallback(A.callback,A);
uir(O,function(Z){A.errback(new q30(t,Z))});
N.isModuleLoading(t)?H&&(lmE(N,t),Vu(N)):H&&lmE(N,t)};
Zg.prototype.loadModules_=function(N,t,O){var H=this;t=t===void 0?0:t;var A=QIZ(this,N);this.loadingModuleIds_=A;this.requestedLoadingModuleIds_=this.batchModeEnabled_?N:_.Il(A);Vu(this);if(A.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,A);N=this.JSC$10209_loader_;if(!N)throw Error("xd");if(Object.keys(this.JSC$11214_extraEdges_).length>0&&!N.supportsExtraEdges)throw Error("yd");O=(0,_.qn)(N.JSC$11201_loadModules,N,_.Il(A),this.moduleInfoMap,{extraEdges:this.JSC$11214_extraEdges_,
forceReload:!!O,onError:function(Z,U){var C=H.requestedLoadingModuleIds_;Z=Z!=null?Z:void 0;var F=(t===void 0?0:t)+1,g=_.Il(A);H.requestedLoadingModuleIds_=C;A.forEach(_.Fu(_.rt,H.requestedModuleIds_),H);Z==401?(W1u(H,new sI.ModuleLoadFailure(sI.ModuleLoadFailure.Type.UNAUTHORIZED,Z)),H.requestedModuleIdsQueue_.length=0):Z==410?(mLX(H,new sI.ModuleLoadFailure(sI.ModuleLoadFailure.Type.OLD_CODE_GONE,Z)),EHB(H)):F>=3?(mLX(H,new sI.ModuleLoadFailure(sI.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,Z,g,
U)),EHB(H)):H.loadModules_(H.requestedLoadingModuleIds_,F,Z==8001||!1)},
onTimeout:(0,_.qn)(this.handleLoadTimeout_,this)});(N=Math.pow(t,2)*5E3)?_.H4.setTimeout(O,N):O()}};
var QIZ=function(N,t){t=t.filter(function(A){return N.moduleInfoMap[A].isLoaded()?(_.H4.setTimeout(function(){return Error("zd`"+A)},0),!1):!0});
for(var O=[],H=0;H<t.length;H++)O=O.concat(GVy(N,t[H]));X44(O);return!N.batchModeEnabled_&&O.length>1?(t=O.shift(),N.requestedModuleIdsQueue_=O.map(function(A){return[A]}).concat(N.requestedModuleIdsQueue_),[t]):O},GVy=function(N,t){var O=_.WW.createSet(N.requestedModuleIds_),H=[];
O[t]||H.push(t);t=[t];for(var A=0;A<t.length;A++)for(var Z=N.getModuleInfo(t[A]).deps_,U=Z.length-1;U>=0;U--){var C=Z[U];N.getModuleInfo(C).isLoaded()||O[C]||(H.push(C),t.push(C))}H.reverse();X44(H);return H};
Zg.prototype.JSC$11209_setLoaded=function(){if(this.JSC$11214_currentlyLoadingModule_){var N=this.JSC$11214_currentlyLoadingModule_.getId(),t=[];if(this.JSC$11214_extraEdges_[N]){for(var O=_.D(Object.keys(this.JSC$11214_extraEdges_[N])),H=O.next();!H.done;H=O.next()){H=H.value;var A=this.getModuleInfo(H);A&&!A.isLoaded()&&(this.removeExtraEdge(N,H),t.push(H))}this.loadMultiple(t)}this.isDisposed()||((t=this.moduleInfoMap[N].onLoad((0,_.qn)(this.getModuleContext,this)))&&t.length&&W1u(this,new sI.ModuleLoadFailure(sI.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,t[0])),_.rt(this.userInitiatedLoadingModuleIds_,N),_.rt(this.loadingModuleIds_,N),this.loadingModuleIds_.length===0&&EHB(this),this.lastInitialModuleId_&&N==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Vu(this),this.JSC$11214_currentlyLoadingModule_=null)}};
Zg.prototype.isModuleLoading=function(N){if(_.W4(this.loadingModuleIds_,N))return!0;for(var t=0;t<this.requestedModuleIdsQueue_.length;t++)if(_.W4(this.requestedModuleIdsQueue_[t],N))return!0;return!1};
Zg.prototype.load=function(N,t){return Imy(this,[N],t)[N]};
Zg.prototype.loadMultiple=function(N){return Imy(this,N)};
var lmE=function(N,t){_.W4(N.userInitiatedLoadingModuleIds_,t)||N.userInitiatedLoadingModuleIds_.push(t)};
Zg.prototype.beforeLoadModuleCode=function(N){var t=this;this.JSC$11214_currentlyLoadingModule_&&this.JSC$11214_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11209_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[N]&&RVZ(this,this.moduleInfoMap[N].deps_||[],function(O){O.module_=new st;_.rt(t.loadingModuleIds_,O.getId())},function(O){return!O.isLoaded()});
this.JSC$11214_currentlyLoadingModule_=this.getModuleInfo(N)};
Zg.prototype.registerInitializationCallback=function(N){this.JSC$11214_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new N_([],"synthetic_module_overhead"),this.JSC$11214_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);tA(this.JSC$11214_currentlyLoadingModule_.earlyOnloadCallbacks_,N)};
Zg.prototype.handleLoadTimeout_=function(){mLX(this,new sI.ModuleLoadFailure(sI.ModuleLoadFailure.Type.TIMEOUT));EHB(this)};
var mLX=function(N,t){N.requestedLoadingModuleIds_.length>1?N.requestedModuleIdsQueue_=N.requestedLoadingModuleIds_.map(function(O){return[O]}).concat(N.requestedModuleIdsQueue_):W1u(N,t)},W1u=function(N,t){var O=N.requestedLoadingModuleIds_;
N.loadingModuleIds_.length=0;for(var H=[],A=0;A<N.requestedModuleIdsQueue_.length;A++){var Z=N.requestedModuleIdsQueue_[A].filter(function(F){var g=GVy(this,F);return U7(O,function(B){return _.W4(g,B)})},N);
_.Qv(H,Z)}for(A=0;A<O.length;A++)_.Ttg(H,O[A]);for(A=0;A<H.length;A++){for(Z=0;Z<N.requestedModuleIdsQueue_.length;Z++)_.rt(N.requestedModuleIdsQueue_[Z],H[A]);_.rt(N.userInitiatedLoadingModuleIds_,H[A])}if(A=N.JSC$11214_callbackMap_.error)for(Z=0;Z<A.length;Z++)for(var U=A[Z],C=0;C<H.length;C++)U("error",H[C],t);for(H=0;H<O.length;H++)if(N.moduleInfoMap[O[H]])N.moduleInfoMap[O[H]].onError(t);N.requestedLoadingModuleIds_.length=0;Vu(N)},EHB=function(N){for(;N.requestedModuleIdsQueue_.length;){var t=
N.requestedModuleIdsQueue_.shift().filter(function(O){return!this.getModuleInfo(O).isLoaded()},N);
if(t.length>0){N.loadModules_(t);return}}Vu(N)};
Zg.prototype.registerCallback=function(N,t){Array.isArray(N)||(N=[N]);for(var O=0;O<N.length;O++){var H=N[O],A=t,Z=this.JSC$11214_callbackMap_;Z[H]||(Z[H]=[]);Z[H].push(A)}};
Zg.prototype.executeCallbacks_=function(N){for(var t=this.JSC$11214_callbackMap_[N],O=0;t&&O<t.length;O++)t[O](N)};
var RVZ=function(N,t,O,H,A){H=H===void 0?function(){return!0}:H;
A=A===void 0?{}:A;t=_.D(t);for(var Z=t.next();!Z.done;Z=t.next()){Z=Z.value;var U=N.getModuleInfo(Z);!A[Z]&&H(U)&&(A[Z]=!0,RVZ(N,U.deps_||[],O,H,A),O(U))}};
Zg.prototype.dispose=function(){_.db(_.WW.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11214_callbackMap_={};this.isDisposed_=!0};
Zg.prototype.isDisposed=function(){return this.isDisposed_};
_.IP=function(){return new Zg};var vHS=[5E3,2E4],f$t=function(){this.JSC$10209_loader_=null;this.JSC$11222_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11222_queue_=[];this.JSC$11222_extraEdges_=Object.create(null);this.JSC$11222_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.p(f$t,xLR);_.V=f$t.prototype;_.V.setAllModuleInfoString=function(){this.JSC$11222_currentlyLoadingModule_&&this.JSC$11222_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11209_setLoaded()};
_.V.getModuleInfo=function(N){var t=this.JSC$11222_moduleInfoMap_[N];t||(t=new N_([],N),this.JSC$11222_moduleInfoMap_[N]=t);return t};
_.V.addExtraEdge=function(N,t){this.getModuleInfo(N).isLoaded()?this.load(t):(this.JSC$11222_extraEdges_[N]||(this.JSC$11222_extraEdges_[N]={}),this.JSC$11222_extraEdges_[N][t]=!0)};
_.V.removeExtraEdge=function(N,t){if(this.JSC$11222_extraEdges_[N]){delete this.JSC$11222_extraEdges_[N][t];for(var O in this.JSC$11222_extraEdges_[N])return;delete this.JSC$11222_extraEdges_[N]}};
_.V.isModuleLoading=function(N){return!!this.loadingModules_[N]};
_.V.load=function(N){JG_(this,[N]);return oH0(this,N)};
_.V.loadMultiple=function(N){var t=this,O=Object.create(null),H=[];N.forEach(function(A){O[A]||(O[A]=oH0(t,A),H.push(A))});
JG_(this,H);return O};
_.V.beforeLoadModuleCode=function(N){var t;((t=this.JSC$11222_currentlyLoadingModule_)==null?void 0:t.getId())==="synthetic_module_overhead"&&this.JSC$11209_setLoaded();var O,H;sIa(this,(H=(O=this.JSC$11222_moduleInfoMap_[N])==null?void 0:O.deps_)!=null?H:[],function(A){A.module_=new st},function(A){return!A.isLoaded()});
this.JSC$11222_currentlyLoadingModule_=this.getModuleInfo(N)};
_.V.JSC$11209_setLoaded=function(){if(this.JSC$11222_currentlyLoadingModule_){var N=this.JSC$11222_currentlyLoadingModule_.getId(),t=[];if(this.JSC$11222_extraEdges_[N]){for(var O=_.D(Object.keys(this.JSC$11222_extraEdges_[N])),H=O.next();!H.done;H=O.next())H=H.value,this.getModuleInfo(H).isLoaded()||(this.removeExtraEdge(N,H),t.push(H));this.loadMultiple(t)}this.JSC$11222_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11222_currentlyLoadingModule_=null;(!this.isModuleLoading(N)&&/^sy[0-9a-z]{0,4}$/.test(N)||N==="synthetic_module_overhead")&&delete this.JSC$11222_moduleInfoMap_[N];this.unsetModulesAsLoading(N)}};
_.V.registerInitializationCallback=function(N){this.JSC$11222_currentlyLoadingModule_||(this.JSC$11222_moduleInfoMap_.synthetic_module_overhead=new N_([],"synthetic_module_overhead"),this.JSC$11222_currentlyLoadingModule_=this.JSC$11222_moduleInfoMap_.synthetic_module_overhead);tA(this.JSC$11222_currentlyLoadingModule_.earlyOnloadCallbacks_,N)};
_.V.setModulesAsLoading=function(){var N=this;_.E1.apply(0,arguments).forEach(function(t){N.loadingModules_[t]=!0})};
_.V.unsetModulesAsLoading=function(){var N=this;_.E1.apply(0,arguments).forEach(function(t){delete N.loadingModules_[t]})};
var oH0=function(N,t){return new _.TW(function(O,H){var A=N.getModuleInfo(t);A.isLoaded()?O(null):(A.registerCallback(function(){O(null)}),uir(A,function(Z){var U="Error loading "+t+": "+Z;
Z instanceof sI.ModuleLoadFailure&&Z.url&&(U=U+", requested url: "+Z.url.toString());H(Error(U))}))})},JG_=function(N,t){t=t.filter(function(O){return!N.isModuleLoading(O)&&!N.getModuleInfo(O).isLoaded()});
t.length>0&&(N.setModulesAsLoading.apply(N,_.W6(t)),N.JSC$11222_queue_.push(t),Nzf(N))},Nzf=function(N){for(var t={};N.activeLoads_<Infinity&&N.JSC$11222_queue_.length>0;t={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})t.ids$jscomp$37=N.JSC$11222_queue_.shift().filter(function(O){return!N.getModuleInfo(O).isLoaded()}),t.ids$jscomp$37.length>0&&(N.activeLoads_++,t.finishLoad=function(O){return function(){N.activeLoads_--;
Nzf(N);O.finishLoad=function(){}}}(t),_.qs(t.ids$jscomp$37.map(function(O){return oH0(N,O)})).then(function(O){return function(){(0,O.finishLoad)()}}(t)),t.attempt$jscomp$6=0,t.load$jscomp$1=function(O){return function(){if(Object.keys(N.JSC$11222_extraEdges_).length>0&&!N.JSC$10209_loader_.supportsExtraEdges)throw Error("yd");
N.JSC$10209_loader_.JSC$11201_loadModules(O.ids$jscomp$37,N.JSC$11222_moduleInfoMap_,{extraEdges:N.JSC$11222_extraEdges_,onError:function(H,A){var Z=vHS[O.attempt$jscomp$6++];Z!==void 0?setTimeout(function(){(0,O.load$jscomp$1)()},Z):(N.unsetModulesAsLoading.apply(N,_.W6(O.ids$jscomp$37)),(0,O.finishLoad)(),O.ids$jscomp$37.forEach(function(U){U=N.getModuleInfo(U);
if(!U.isLoaded())U.onError(new sI.ModuleLoadFailure(sI.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,H,O.ids$jscomp$37,A))}))}})}}(t),(0,t.load$jscomp$1)())},sIa=function(N,t,O,H,A){H=H===void 0?function(){return!0}:H;
A=A===void 0?{}:A;t=_.D(t);for(var Z=t.next();!Z.done;Z=t.next()){Z=Z.value;var U=N.getModuleInfo(Z);!A[Z]&&H(U)&&(A[Z]=!0,sIa(N,U.deps_||[],O,H,A),O(U))}};var tnf=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var ZiQ=Symbol("Bd");window.JSCompiler_renameProperty=function(N){return N};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var OOR=!tnf||HTMLElement.es5Shimmed||_.H4.Reflect===void 0||_.H4.customElements===void 0||_.H4.customElements.polyfillWrapFlushCallback||!1,HOf,kYv=function(){var N=HTMLElement;if(OOR)return N;if(HOf!==void 0)return HOf;var t=_.H4.Reflect,O=function(){return t.construct(N,[],this.constructor)};
O.prototype=N.prototype;O.prototype.constructor=O;O.es5Shimmed=!0;Object.setPrototypeOf(O,N);return HOf=O},Anr=!1;OOR||Anr||(Anr=!0,_.H4.HTMLElement=kYv());/*

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 Khx=/(url\()([^)]*)(\))/g,UuO=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Cey,M1;var tv=!window.ShadyDOM||!window.ShadyDOM.inUse,ZOY=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Vny=!window.customElements.polyfillWrapFlushCallback,DfZ;if(DfZ=tv&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Uf0=new CSSStyleSheet;Uf0.replaceSync("");var CcB=document.createElement("div");CcB.attachShadow({mode:"open"});CcB.shadowRoot.adoptedStyleSheets=[Uf0];DfZ=CcB.shadowRoot.adoptedStyleSheets[0]===Uf0}catch(N){DfZ=!1}
var KNR=DfZ,FN_=window.Polymer&&window.Polymer.rootPath||duQ(document.baseURI||window.location.href),q1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,uQO=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,D0=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,dfX=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,NT=window.Polymer&&window.Polymer.legacyOptimizations||!1,VB=window.Polymer&&window.Polymer.legacyWarnings||!1,gq0=window.Polymer&&window.Polymer.syncInitialRender||
!1,n9=window.Polymer&&window.Polymer.legacyUndefined||!1,ynf=window.Polymer&&window.Polymer.orderedComputed||!1,Dg=window.Polymer&&window.Polymer.removeNestedTemplates||!1,UT=window.Polymer&&window.Polymer.fastDomIf||!1,Cp=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Bzu=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,cnX=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Kp={},$fu={},r9=function(){return HTMLElement.apply(this,arguments)||this};
_.p(r9,HTMLElement);r9.import=function(N,t){return N?(N=Kp[N]||$fu[N.toLowerCase()])&&t?N.querySelector(t):N:null};
r9.prototype.attributeChangedCallback=function(N,t,O){t!==O&&this.register()};
r9.prototype.register=function(N){if(N=N||this.id){if(D0&&(Kp[N]||$fu[N.toLowerCase()])!==void 0)throw Kp[N]=$fu[N.toLowerCase()]=null,Error("Cd`"+N);this.id=N;Kp[N]=$fu[N.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.cv.Object.defineProperties(r9.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var N=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;N=_.bU(this.getAttribute("assetpath")||"",N.baseURI);this.__assetpath=duQ(N)}return this.__assetpath}}});
_.cv.Object.defineProperties(r9,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
r9["import"]=r9.import;r9.prototype.modules=Kp;customElements.define("dom-module",r9);var jHu=0,yqp=0,p9=[],iOY=0,ggp=!1,ubu=document.createTextNode(""),S6E,ob;(new window.MutationObserver(BvN)).observe(ubu,{characterData:!0});_.FI={after:function(N){return{run:function(t){return window.setTimeout(t,N)},
cancel:function(t){window.clearTimeout(t)}}},
run:function(N,t){return window.setTimeout(N,t)},
cancel:function(N){window.clearTimeout(N)}};
_.hd={run:function(N){return window.requestAnimationFrame(N)},
cancel:function(N){window.cancelAnimationFrame(N)}};
S6E={run:function(N){return window.requestIdleCallback?window.requestIdleCallback(N):window.setTimeout(N,16)},
cancel:function(N){window.cancelIdleCallback?window.cancelIdleCallback(N):window.clearTimeout(N)}};
ob={run:function(N){ggp||(ggp=!0,ubu.textContent=iOY++);p9.push(N);return jHu++},
cancel:function(N){var t=N-yqp;if(t>=0){if(!p9[t])throw Error("Dd`"+N);p9[t]=null}}};var hhS=0,dH=function(N){var t=N.__mixinApplications;t||(t=new WeakMap,N.__mixinApplications=t);var O=hhS++;return function(H){var A=H.__mixinSet;if(A&&A[O])return H;var Z=t,U=Z.get(H);U||(U=N(H),Z.set(H,U),H=Object.create(U.__mixinSet||A||null),H[O]=!0,U.__mixinSet=H);return U}};_.k6=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(N){return ShadyDOM.patch(N)}:function(N){return N};var MnB=dH(function(N){var t=function(){var O=N.call(this)||this;O.__dataEnabled=!1;O.__dataReady=!1;O.__dataInvalid=!1;O.__data={};O.__dataPending=null;O.__dataOld=null;O.__dataInstanceProps=null;O.__dataCounter=0;O.__serializing=!1;O._initializeProperties();return O};
_.p(t,N);t.createProperties=function(O){var H=this.prototype,A;for(A in O)A in H||H._createPropertyAccessor(A)};
t.attributeNameForProperty=function(O){return O.toLowerCase()};
t.typeForProperty=function(){};
t.prototype._createPropertyAccessor=function(O,H){this._addPropertyToAttributeMap(O);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[O]||(this.__dataHasAccessor[O]=!0,this._definePropertyAccessor(O,H))};
t.prototype._addPropertyToAttributeMap=function(O){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var H=this.__dataAttributes[O];H||(H=this.constructor.attributeNameForProperty(O),this.__dataAttributes[H]=O);return H};
t.prototype._definePropertyAccessor=function(O,H){Object.defineProperty(this,O,{get:function(){return this.__data[O]},
set:H?function(){}:function(A){this._setPendingProperty(O,A,!0)&&this._invalidateProperties()}})};
t.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
t.prototype._initializeProperties=function(){for(var O in this.__dataHasAccessor)this.hasOwnProperty(O)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[O]=this[O],delete this[O])};
t.prototype._initializeInstanceProperties=function(O){Object.assign(this,O)};
t.prototype._setProperty=function(O,H){this._setPendingProperty(O,H)&&this._invalidateProperties()};
t.prototype._getProperty=function(O){return this.__data[O]};
t.prototype._setPendingProperty=function(O,H){var A=this.__data[O],Z=this._shouldPropertyChange(O,H,A);Z&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||O in this.__dataOld||(this.__dataOld[O]=A),this.__data[O]=H,this.__dataPending[O]=H);return Z};
t.prototype._isPropertyPending=function(O){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(O))};
t.prototype._invalidateProperties=function(){var O=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ob.run(function(){O.__dataInvalid&&(O.__dataInvalid=!1,O._flushProperties())}))};
t.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
t.prototype._flushProperties=function(){this.__dataCounter++;var O=this.__data,H=this.__dataPending,A=this.__dataOld;this._shouldPropertiesChange(O,H,A)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(O,H,A));this.__dataCounter--};
t.prototype._shouldPropertiesChange=function(O,H){return!!H};
t.prototype._propertiesChanged=function(){};
t.prototype._shouldPropertyChange=function(O,H,A){return A!==H&&(A===A||H===H)};
t.prototype.attributeChangedCallback=function(O,H,A,Z){H!==A&&this._attributeToProperty(O,A);N.prototype.attributeChangedCallback&&N.prototype.attributeChangedCallback.call(this,O,H,A,Z)};
t.prototype._attributeToProperty=function(O,H,A){if(!this.__serializing){var Z=this.__dataAttributes;O=Z&&Z[O]||O;this[O]=this._deserializeValue(H,A||this.constructor.typeForProperty(O))}};
t.prototype._propertyToAttribute=function(O,H,A){this.__serializing=!0;A=arguments.length<3?this[O]:A;this._valueToNodeAttribute(this,A,H||this.constructor.attributeNameForProperty(O));this.__serializing=!1};
t.prototype._valueToNodeAttribute=function(O,H,A){H=this._serializeValue(H);if(A==="class"||A==="name"||A==="slot")O=(0,_.k6)(O);H===void 0?O.removeAttribute(A):O.setAttribute(A,H===""&&window.trustedTypes?window.trustedTypes.emptyScript:H)};
t.prototype._serializeValue=function(O){switch(typeof O){case "boolean":return O?"":void 0;default:return O!=null?O.toString():void 0}};
t.prototype._deserializeValue=function(O,H){switch(H){case Boolean:return O!==null;case Number:return Number(O);default:return O}};
return t});var bOQ=0,cqQ=[];var p2r=dH(function(N){function t(Z){Z=Object.getPrototypeOf(Z);return Z.prototype instanceof A?Z:null}
function O(Z){if(!Z.hasOwnProperty("__ownProperties")){var U=null;if(Z.hasOwnProperty("properties")){var C=Z.properties;if(C){U={};for(var F in C){var g=C[F];U[F]=typeof g==="function"?{type:g}:g}}}Z.__ownProperties=U}return Z.__ownProperties}
var H=MnB(N),A=function(){return H.apply(this,arguments)||this};
_.p(A,H);A.finalize=function(){if(!this.hasOwnProperty("__finalized")){var Z=t(this);Z&&Z.finalize();this.__finalized=!0;this._finalizeClass()}};
A._finalizeClass=function(){var Z=O(this);Z&&this.createProperties(Z)};
A.typeForProperty=function(Z){return(Z=this._properties[Z])&&Z.type};
A.prototype._initializeProperties=function(){bOQ++;this.constructor.finalize();H.prototype._initializeProperties.call(this)};
A.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this._enableProperties()};
A.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this)};
_.cv.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var Z=this;if(!this.hasOwnProperty("__observedAttributes")){$uO(this.prototype);var U=this._properties;this.__observedAttributes=U?Object.keys(U).map(function(C){return Z.prototype._addPropertyToAttributeMap(C)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var Z=t(this);this.__properties=Object.assign({},Z&&Z._properties,O(this))}return this.__properties}}});
return A});var jEN={},iiQ=/-[a-z]/g,u_N=/([A-Z])/g;for(var LNQ={},zhu=HTMLElement.prototype;zhu;){for(var Y6X=Object.getOwnPropertyNames(zhu),ar_=0;ar_<Y6X.length;ar_++)LNQ[Y6X[ar_]]=!0;zhu=Object.getPrototypeOf(zhu)}var Tzf=window.trustedTypes?function(N){return trustedTypes.isHTML(N)||trustedTypes.isScript(N)||trustedTypes.isScriptURL(N)}:function(){return!1},w2X=dH(function(N){var t=MnB(N);
N=function(){return t.apply(this,arguments)||this};
_.p(N,t);N.createPropertiesForAttributes=function(){for(var O=this.observedAttributes,H=0;H<O.length;H++)this.prototype._createPropertyAccessor(L9(O[H]))};
N.attributeNameForProperty=function(O){return zC(O)};
N.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);t.prototype._initializeProperties.call(this)};
N.prototype._initializeProtoProperties=function(O){for(var H in O)this._setProperty(H,O[H])};
N.prototype._ensureAttribute=function(O,H){this.hasAttribute(O)||this._valueToNodeAttribute(this,H,O)};
N.prototype._serializeValue=function(O){switch(typeof O){case "object":if(O instanceof Date)return O.toString();if(O){if(Tzf(O))return O;try{return JSON.stringify(O)}catch(H){return""}}default:return t.prototype._serializeValue.call(this,O)}};
N.prototype._deserializeValue=function(O,H){switch(H){case Object:try{var A=JSON.parse(O)}catch(Z){A=O}break;case Array:try{A=JSON.parse(O)}catch(Z){A=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+O)}break;case Date:A=isNaN(O)?String(O):Number(O);A=new Date(A);break;default:A=t.prototype._deserializeValue.call(this,O,H)}return A};
N.prototype._definePropertyAccessor=function(O,H){if(!LNQ[O]){var A=this[O];A!==void 0&&(this.__data?this._setPendingProperty(O,A):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[O]=A))}t.prototype._definePropertyAccessor.call(this,O,H)};
N.prototype._hasAccessor=function(O){return this.__dataHasAccessor&&this.__dataHasAccessor[O]};
N.prototype._isPropertyPending=function(O){return!!(this.__dataPending&&O in this.__dataPending)};
return N});var ehy={"dom-if":!0,"dom-repeat":!0},Pcf=!1,X2f=!1,xfZ=function(){var N=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(t){return t}});
return function(t,O,H){O=O.getAttribute(H);N&&H.startsWith("on-")?t.setAttribute(H,N.createScript(O,H)):t.setAttribute(H,O)}}(),kr0=dH(function(N){var t=function(){return N.apply(this,arguments)||this};
_.p(t,N);t._parseTemplate=function(O,H){if(!O._templateInfo){var A=O._templateInfo={};A.nodeInfoList=[];A.nestedTemplate=!!H;A.stripWhiteSpace=H&&H.stripWhiteSpace||O.hasAttribute&&O.hasAttribute("strip-whitespace");this._parseTemplateContent(O,A,{parent:null})}return O._templateInfo};
t._parseTemplateContent=function(O,H,A){return this._parseTemplateNode(O.content,H,A)};
t._parseTemplateNode=function(O,H,A){var Z=!1;O.localName!="template"||O.hasAttribute("preserve-content")?O.localName==="slot"&&(H.hasInsertionPoint=!0):Z=this._parseTemplateNestedTemplate(O,H,A)||Z;if(!Pcf){Pcf=!0;var U=document.createElement("textarea");U.placeholder="a";X2f=U.placeholder===U.textContent}X2f&&O.localName==="textarea"&&O.placeholder&&O.placeholder===O.textContent&&(O.textContent=null);O.firstChild&&this._parseTemplateChildNodes(O,H,A);O.hasAttributes&&O.hasAttributes()&&(Z=this._parseTemplateNodeAttributes(O,
H,A)||Z);return Z||A.noted};
t._parseTemplateChildNodes=function(O,H,A){if(O.localName!=="script"&&O.localName!=="style")for(var Z=O.firstChild,U=0,C;Z;Z=C){if(Z.localName=="template"){var F=Z.getAttribute("is");if(F&&ehy[F])for(C=Z,C.removeAttribute("is"),Z=C.ownerDocument.createElement(F),C.parentNode.replaceChild(Z,C),Z.appendChild(C);C.attributes.length;)F=C.attributes[0].name,xfZ(Z,C,F),C.removeAttribute(F)}C=Z.nextSibling;if(Z.nodeType===Node.TEXT_NODE){for(F=C;F&&F.nodeType===Node.TEXT_NODE;)Z.textContent+=F.textContent,
C=F.nextSibling,O.removeChild(F),F=C;if(H.stripWhiteSpace&&!Z.textContent.trim()){O.removeChild(Z);continue}}F={parentIndex:U,parentInfo:A};this._parseTemplateNode(Z,H,F)&&(F.infoIndex=H.nodeInfoList.push(F)-1);Z.parentNode&&U++}};
t._parseTemplateNestedTemplate=function(O,H,A){H=this._parseTemplate(O,H);(H.content=O.content.ownerDocument.createDocumentFragment()).appendChild(O.content);A.templateInfo=H;return!0};
t._parseTemplateNodeAttributes=function(O,H,A){for(var Z=!1,U=Array.from(O.attributes),C=U.length-1,F;F=U[C];C--)Z=this._parseTemplateNodeAttribute(O,H,A,F.name,F.value)||Z;return Z};
t._parseTemplateNodeAttribute=function(O,H,A,Z,U){return Z.slice(0,3)==="on-"?(O.removeAttribute(Z),A.events=A.events||[],A.events.push({name:Z.slice(3),value:U}),!0):Z==="id"?(A.id=U,!0):!1};
t._contentForTemplate=function(O){var H=O._templateInfo;return H&&H.content||O.content};
t.prototype._stampTemplate=function(O,H){O&&!O.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(O);H=H||this.constructor._parseTemplate(O);var A=H.nodeInfoList;O=document.importNode(H.content||O.content,!0);O.__noInsertionPoint=!H.hasInsertionPoint;var Z=O.nodeList=Array(A.length);O.$={};for(var U=0,C=A.length,F=void 0;U<C&&(F=A[U]);U++){var g=Z[U]=S9M(O,F);F.id&&(O.$[F.id]=g);var B=g,c=F,u=H;c.templateInfo&&(B._templateInfo=c.templateInfo,B._parentTemplateInfo=
u);if(F.events&&F.events.length)for(B=0,c=F.events,u=void 0;B<c.length&&(u=c[B]);B++)this._addMethodEventListenerToNode(g,u.name,u.value,this)}return O};
t.prototype._addMethodEventListenerToNode=function(O,H,A,Z){A=hIQ(Z||O,A);this._addEventListenerToNode(O,H,A);return A};
t.prototype._addEventListenerToNode=function(O,H,A){O.addEventListener(H,A)};
t.prototype._removeEventListenerFromNode=function(O,H,A){O.removeEventListener(H,A)};
return t});var Xy=0,f9=[],q6_={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},frQ=/[A-Z]/,nqa=function(N,t,O,H,A){var Z=A?ab(N):N;if(t=t[Z])for(Z=0;Z<t.length;Z++){var U=t[Z];if(U.info.lastRun!==Xy&&(!A||Y9G(N,U.trigger))){U.info.lastRun=Xy;U=U.info;for(var C=O,F=H,g=0,B=C.length-1,c=-1;g<=B;){var u=g+B>>1,S=F.get(C[u].methodInfo)-F.get(U.methodInfo);if(S<0)g=u+1;else if(S>0)B=u-1;else{c=u;break}}c<
0&&(c=B+1);C.splice(c,0,U)}}},l_4=[],WNE=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"),yu=dH(function(N){var t=kr0(w2X(N));
N=function(){var O=t.call(this)||this;O.__isPropertyEffectsClient=!0;return O};
_.p(N,t);N.prototype._initializeProperties=function(){t.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
N.prototype._registerHost=function(){if(gH.length){var O=gH[gH.length-1];O._enqueueClient(this);this.__dataHost=O}};
N.prototype._initializeProtoProperties=function(O){this.__data=Object.create(O);this.__dataPending=Object.create(O);this.__dataOld={}};
N.prototype._initializeInstanceProperties=function(O){var H=this.__readOnly,A;for(A in O)H&&H[A]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[A]=this.__dataPending[A]=O[A])};
N.prototype._addPropertyEffect=function(O,H,A){this._createPropertyAccessor(O,H=="__readOnly");var Z=zIz(this,H,!0)[O];Z||(Z=this[H][O]=[]);Z.push(A)};
N.prototype._removePropertyEffect=function(O,H,A){O=zIz(this,H,!0)[O];A=O.indexOf(A);A>=0&&O.splice(A,1)};
N.prototype._hasPropertyEffect=function(O,H){H=this[H];return!(!H||!H[O])};
N.prototype._hasReadOnlyEffect=function(O){return this._hasPropertyEffect(O,"__readOnly")};
N.prototype._hasNotifyEffect=function(O){return this._hasPropertyEffect(O,"__notifyEffects")};
N.prototype._hasReflectEffect=function(O){return this._hasPropertyEffect(O,"__reflectEffects")};
N.prototype._hasComputedEffect=function(O){return this._hasPropertyEffect(O,"__computeEffects")};
N.prototype._setPendingPropertyOrPath=function(O,H,A,Z){if(Z||ab(Array.isArray(O)?O[0]:O)!==O){if(!Z&&(Z=Pd(this,O),O=LhN(this,O,H),!O||!t.prototype._shouldPropertyChange.call(this,O,H,Z)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(O,H,A)){if(A=this.__dataLinkedPaths)for(var U in A)Z=A[U],TC(U,O)?(Z=w9(U,Z,O),this._setPendingPropertyOrPath(Z,H,!0,!0)):TC(Z,O)&&(Z=w9(Z,U,O),this._setPendingPropertyOrPath(Z,H,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[O])return this._setPendingProperty(O,
H,A);this[O]=H}return!1};
N.prototype._setUnmanagedPropertyToNode=function(O,H,A){if(A!==O[H]||typeof A=="object")H==="className"&&(O=(0,_.k6)(O)),O[H]=A};
N.prototype._setPendingProperty=function(O,H,A){var Z=this.__dataHasPaths&&Y6(O);if(this._shouldPropertyChange(O,H,(Z?this.__dataTemp:this.__data)[O])){this.__dataPending||(this.__dataPending={},this.__dataOld={});O in this.__dataOld||(this.__dataOld[O]=this.__data[O]);Z?this.__dataTemp[O]=H:this.__data[O]=H;this.__dataPending[O]=H;if(Z||this.__notifyEffects&&this.__notifyEffects[O])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[O]=A;return!0}return!1};
N.prototype._setProperty=function(O,H){this._setPendingProperty(O,H,!0)&&this._invalidateProperties()};
N.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
N.prototype._enqueueClient=function(O){this.__dataPendingClients=this.__dataPendingClients||[];O!==this&&this.__dataPendingClients.push(O)};
N.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
N.prototype.__enableOrFlushClients=function(){var O=this.__dataPendingClients;if(O){this.__dataPendingClients=null;for(var H=0;H<O.length;H++){var A=O[H];A.__dataEnabled?A.__dataPending&&A._flushProperties():A._enableProperties()}}};
N.prototype._readyClients=function(){this.__enableOrFlushClients()};
N.prototype.setProperties=function(O,H){for(var A in O)!H&&this.__readOnly&&this.__readOnly[A]||this._setPendingPropertyOrPath(A,O[A],!0);this._invalidateProperties()};
N.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
N.prototype._propertiesChanged=function(O,H,A){O=this.__dataHasPaths;this.__dataHasPaths=!1;var Z;if(Z=this.__computeEffects)if(ynf){Xy++;var U=Xyy(this),C=[],F;for(F in H)nqa(F,Z,C,U,O);for(;F=C.shift();)knt(this,"",H,A,F)&&nqa(F.methodInfo,Z,C,U,O);Object.assign(A,this.__dataOld);Object.assign(H,this.__dataPending);this.__dataPending=null}else for(U=H;x6(this,Z,U,A,O);)Object.assign(A,this.__dataOld),Object.assign(H,this.__dataPending),U=this.__dataPending,this.__dataPending=null;Z=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(H,A,O);this._flushClients();x6(this,this.__reflectEffects,H,A,O);x6(this,this.__observeEffects,H,A,O);if(Z){U=this.__notifyEffects;C=Xy++;for(var g in Z)if(Z[g]){if(F=U){var B=U;F=C;var c=g,u=H,S=A,b=O,z=!1,w=b?ab(c):c;if(B=B[w]){w=0;for(var P=B.length,x=void 0;w<P&&(x=B[w]);w++)x.info&&x.info.lastRun===F||b&&!Y9G(c,x.trigger)||(x.info&&(x.info.lastRun=F),x.fn(this,c,u,S,x.info,b,void 0),z=!0)}F=z}if(F)var l=!0;else{if(F=O)F=g,c=H,u=ab(F),u!==
F?(u=zC(u)+"-changed",TvQ(this,u,c[F],F),F=!0):F=!1;F&&(l=!0)}}var I;l&&(I=this.__dataHost)&&I._invalidateProperties&&I._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
N.prototype._propagatePropertyChanges=function(O,H,A){this.__propagateEffects&&x6(this,this.__propagateEffects,O,H,A);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,O,H,A)};
N.prototype._runEffectsForTemplate=function(O,H,A,Z){var U=this,C=function(F,g){x6(U,O.propertyEffects,F,A,g,O.nodeList);for(var B=O.firstChild;B;B=B.nextSibling)U._runEffectsForTemplate(B,F,A,g)};
O.runEffects?O.runEffects(C,H,Z):C(H,Z)};
N.prototype.linkPaths=function(O,H){O=e4(O);H=e4(H);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[O]=H};
N.prototype.unlinkPaths=function(O){O=e4(O);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[O]};
N.prototype.notifySplices=function(O,H){var A={path:""};O=Pd(this,O,A);GnS(this,O,A.path,H)};
N.prototype.get=function(O,H){return Pd(H||this,O)};
N.prototype.set=function(O,H,A){A?LhN(A,O,H):this.__readOnly&&this.__readOnly[O]||this._setPendingPropertyOrPath(O,H,!0)&&this._invalidateProperties()};
N.prototype.push=function(O){var H=_.E1.apply(1,arguments),A={path:""},Z=Pd(this,O,A),U=Z.length,C=Z.push.apply(Z,_.W6(H));H.length&&Wd(this,Z,A.path,U,H.length,[]);return C};
N.prototype.pop=function(O){var H={path:""};O=Pd(this,O,H);var A=!!O.length,Z=O.pop();A&&Wd(this,O,H.path,O.length,0,[Z]);return Z};
N.prototype.splice=function(O,H,A){var Z=_.E1.apply(3,arguments),U={path:""},C=Pd(this,O,U);H<0?H=C.length-Math.floor(-H):H&&(H=Math.floor(H));var F=arguments.length===2?C.splice(H):C.splice.apply(C,[H,A].concat(_.W6(Z)));(Z.length||F.length)&&Wd(this,C,U.path,H,Z.length,F);return F};
N.prototype.shift=function(O){var H={path:""};O=Pd(this,O,H);var A=!!O.length,Z=O.shift();A&&Wd(this,O,H.path,0,0,[Z]);return Z};
N.prototype.unshift=function(O){var H=_.E1.apply(1,arguments),A={path:""},Z=Pd(this,O,A),U=Z.unshift.apply(Z,_.W6(H));H.length&&Wd(this,Z,A.path,0,H.length,[]);return U};
N.prototype.notifyPath=function(O,H){if(arguments.length==1){var A={path:""};H=Pd(this,O,A);A=A.path}else A=Array.isArray(O)?e4(O):O;this._setPendingPropertyOrPath(A,H,!0,!0)&&this._invalidateProperties()};
N.prototype._createReadOnlyProperty=function(O,H){this._addPropertyEffect(O,"__readOnly");H&&(this["_set"+(O[0].toUpperCase()+O.substring(1))]=function(A){this._setProperty(O,A)})};
N.prototype._createPropertyObserver=function(O,H,A){var Z={property:O,method:H,dynamicFn:!!A};this._addPropertyEffect(O,"__observeEffects",{fn:a_v,info:Z,trigger:{name:O}});A&&this._addPropertyEffect(H,"__observeEffects",{fn:a_v,info:Z,trigger:{name:H}})};
N.prototype._createMethodObserver=function(O,H){var A=mul(O);if(!A)throw Error("Ed`"+O);rq4(this,A,"__observeEffects",xuz,null,H)};
N.prototype._createNotifyingProperty=function(O){this._addPropertyEffect(O,"__notifyEffects",{fn:wyO,info:{eventName:zC(O)+"-changed",property:O}})};
N.prototype._createReflectedProperty=function(O){var H=this.constructor.attributeNameForProperty(O);H[0]==="-"?console.warn("Property "+O+" cannot be reflected to attribute "+H+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(O,"__reflectEffects",{fn:eIN,info:{attrName:H}})};
N.prototype._createComputedProperty=function(O,H,A){var Z=mul(H);if(!Z)throw Error("Fd`"+H);H=rq4(this,Z,"__computeEffects",knt,O,A);zIz(this,"__computeInfo")[O]=H};
N.prototype._marshalArgs=function(O,H,A){for(var Z=this.__data,U=[],C=0,F=O.length;C<F;C++){var g=O[C],B=g.name,c=g.structured,u=g.wildcard,S=g.value;g.literal||(u?(g=TC(B,H),c=EgM(Z,A,g?H:B),S={path:g?H:B,value:c,base:g?Pd(Z,B):c}):S=c?EgM(Z,A,B):Z[B]);if(n9&&!this._overrideLegacyUndefined&&S===void 0&&O.length>1)return f9;U[C]=S}return U};
N.addPropertyEffect=function(O,H,A){this.prototype._addPropertyEffect(O,H,A)};
N.createPropertyObserver=function(O,H,A){this.prototype._createPropertyObserver(O,H,A)};
N.createMethodObserver=function(O,H){this.prototype._createMethodObserver(O,H)};
N.createNotifyingProperty=function(O){this.prototype._createNotifyingProperty(O)};
N.createReadOnlyProperty=function(O,H){this.prototype._createReadOnlyProperty(O,H)};
N.createReflectedProperty=function(O){this.prototype._createReflectedProperty(O)};
N.createComputedProperty=function(O,H,A){this.prototype._createComputedProperty(O,H,A)};
N.bindTemplate=function(O){return this.prototype._bindTemplate(O)};
N.prototype._bindTemplate=function(O,H){var A=this.constructor._parseTemplate(O),Z=this.__preBoundTemplateInfo==A;if(!Z)for(var U in A.propertyEffects)this._createPropertyAccessor(U);H?(A=Object.create(A),A.wasPreBound=Z,this.__templateInfo?(O=O._parentTemplateInfo||this.__templateInfo,H=O.lastChild,A.parent=O,O.lastChild=A,(A.previousSibling=H)?H.nextSibling=A:O.firstChild=A):this.__templateInfo=A):this.__preBoundTemplateInfo=A;return A};
N._addTemplatePropertyEffect=function(O,H,A){(O.hostProps=O.hostProps||{})[H]=!0;O=O.propertyEffects=O.propertyEffects||{};(O[H]=O[H]||[]).push(A)};
N.prototype._stampTemplate=function(O,H){H=H||this._bindTemplate(O,!0);gH.push(this);O=t.prototype._stampTemplate.call(this,O,H);gH.pop();H.nodeList=O.nodeList;if(!H.wasPreBound)for(var A=H.childNodes=[],Z=O.firstChild;Z;Z=Z.nextSibling)A.push(Z);O.templateInfo=H;A=H.nodeList;Z=H.nodeInfoList;if(Z.length)for(var U=0;U<Z.length;U++){var C=A[U],F=Z[U].bindings;if(F)for(var g=0;g<F.length;g++){var B=F[g],c=C,u=B;if(u.isCompound){for(var S=c.__dataCompoundStorage||(c.__dataCompoundStorage={}),b=u.parts,
z=Array(b.length),w=0;w<b.length;w++)z[w]=b[w].literal;b=u.target;S[b]=z;u.literal&&u.kind=="property"&&(b==="className"&&(c=(0,_.k6)(c)),c[b]=u.literal)}Wh4(C,this,B)}C.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(H,this.__data,null,!1),this._flushClients());return O};
N.prototype._removeBoundDom=function(O){O=O.templateInfo;var H=O.previousSibling,A=O.nextSibling,Z=O.parent;H?H.nextSibling=A:Z&&(Z.firstChild=A);A?A.previousSibling=H:Z&&(Z.lastChild=H);O.nextSibling=O.previousSibling=null;O=O.childNodes;for(H=0;H<O.length;H++)A=O[H],(0,_.k6)((0,_.k6)(A).parentNode).removeChild(A)};
N._parseTemplateNode=function(O,H,A){var Z=t._parseTemplateNode.call(this,O,H,A);if(O.nodeType===Node.TEXT_NODE){var U=this._parseBindings(O.textContent,H);U&&(O.textContent=I_S(U)||" ",ngO(this,H,A,"text","textContent",U),Z=!0)}return Z};
N._parseTemplateNodeAttribute=function(O,H,A,Z,U){var C=this._parseBindings(U,H);if(C){U=Z;var F="property";frQ.test(Z)?F="attribute":Z[Z.length-1]=="$"&&(Z=Z.slice(0,-1),F="attribute");var g=I_S(C);g&&F=="attribute"&&(Z=="class"&&O.hasAttribute("class")&&(g+=" "+O.getAttribute(Z)),O.setAttribute(Z,g));F=="attribute"&&U=="disable-upgrade$"&&O.setAttribute(Z,"");O.localName==="input"&&U==="value"&&O.setAttribute(U,"");O.removeAttribute(U);F==="property"&&(Z=L9(Z));ngO(this,H,A,F,Z,C,g);return!0}return t._parseTemplateNodeAttribute.call(this,
O,H,A,Z,U)};
N._parseTemplateNestedTemplate=function(O,H,A){var Z=t._parseTemplateNestedTemplate.call(this,O,H,A),U=O.parentNode,C=A.templateInfo,F=U.localName==="dom-if",g=U.localName==="dom-repeat";Dg&&(F||g)&&(U.removeChild(O),A=A.parentInfo,A.templateInfo=C,A.noted=!0,Z=!1);O=C.hostProps;if(UT&&F)O&&(H.hostProps=Object.assign(H.hostProps||{},O),Dg||(A.parentInfo.noted=!0));else for(var B in O)ngO(this,H,A,"property","_host_"+B,[{mode:"{",source:B,dependencies:[B],hostProp:!0}]);return Z};
N._parseBindings=function(O,H){for(var A=[],Z=0,U;(U=WNE.exec(O))!==null;){U.index>Z&&A.push({literal:O.slice(Z,U.index)});Z=U[1][0];var C=!!U[2];U=U[3].trim();var F=!1,g="",B=-1;Z=="{"&&(B=U.indexOf("::"))>0&&(g=U.substring(B+2),U=U.substring(0,B),F=!0);B=mul(U);var c=[];if(B){var u=B,S=u.args;u=u.methodName;for(var b=0;b<S.length;b++){var z=S[b];z.literal||c.push(z)}if((S=H.dynamicFns)&&S[u]||B.static)c.push(u),B.dynamicFn=!0}else c.push(U);A.push({source:U,mode:Z,negate:C,customEvent:F,signature:B,
dependencies:c,event:g});Z=WNE.lastIndex}Z&&Z<O.length&&(O=O.substring(Z))&&A.push({literal:O});return A.length?A:null};
N._evaluateBinding=function(O,H,A,Z,U,C){O=H.signature?xuz(O,A,Z,U,H.signature):A!=H.source?Pd(O,H.source):C&&Y6(A)?Pd(O,A):O.__data[A];H.negate&&(O=!O);return O};
_.cv.Object.defineProperties(N.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return q6_}}});
return N}),gH=[];var rnp=window.ShadyCSS&&window.ShadyCSS.cssBuild,Bn=dH(function(N){function t(H,A,Z,U){if(!rnp){for(var C=A.content.querySelectorAll("style"),F=ogx(A),g=sE4(Z),B=A.content.firstElementChild,c=0;c<g.length;c++){var u=g[c];u.textContent=H._processStyleText(u.textContent,U);A.content.insertBefore(u,B)}for(B=g=0;B<F.length;B++)c=F[B],u=C[g],u!==c?(c=c.cloneNode(!0),u.parentNode.insertBefore(c,u)):g++,c.textContent=H._processStyleText(c.textContent,U)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(A,
Z);if(cnX&&rnp&&KNR&&(A=A.content.querySelectorAll("style"))){var S="";Array.from(A).forEach(function(b){S+=b.textContent;b.parentNode.removeChild(b)});
H._styleSheet=new CSSStyleSheet;H._styleSheet.replaceSync(S)}}
var O=p2r(yu(N));N=function(){return O.call(this)||this};
_.p(N,O);N._finalizeClass=function(){O._finalizeClass.call(this);var H;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(H=this.__ownObservers)&&this.createObservers(H,this._properties);this._prepareTemplate()};
N._prepareTemplate=function(){var H=this.template;H&&(typeof H==="string"?(console.error("template getter must return HTMLTemplateElement"),H=null):NT||(H=H.cloneNode(!0)));this.prototype._template=H};
N.createProperties=function(H){for(var A in H){var Z=this.prototype,U=A,C=H[A],F=H;C.computed&&(C.readOnly=!0);C.computed&&(Z._hasReadOnlyEffect(U)?console.warn("Cannot redefine computed property '"+U+"'."):Z._createComputedProperty(U,C.computed,F));C.readOnly&&!Z._hasReadOnlyEffect(U)?Z._createReadOnlyProperty(U,!C.computed):C.readOnly===!1&&Z._hasReadOnlyEffect(U)&&console.warn("Cannot make readOnly property '"+U+"' non-readOnly.");C.reflectToAttribute&&!Z._hasReflectEffect(U)?Z._createReflectedProperty(U):
C.reflectToAttribute===!1&&Z._hasReflectEffect(U)&&console.warn("Cannot make reflected property '"+U+"' non-reflected.");C.notify&&!Z._hasNotifyEffect(U)?Z._createNotifyingProperty(U):C.notify===!1&&Z._hasNotifyEffect(U)&&console.warn("Cannot make notify property '"+U+"' non-notify.");C.observer&&Z._createPropertyObserver(U,C.observer,F[C.observer]);Z._addPropertyToAttributeMap(U)}};
N.createObservers=function(H,A){for(var Z=this.prototype,U=0;U<H.length;U++)Z._createMethodObserver(H[U],A)};
N.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);O.prototype._initializeProperties.call(this);this.rootPath=FN_;this.importPath=this.constructor.importPath;var H=this.constructor;if(!H.hasOwnProperty("__propertyDefaults")){H.__propertyDefaults=null;var A=H._properties,Z;for(Z in A){var U=A[Z];"value"in U&&(H.__propertyDefaults=H.__propertyDefaults||{},H.__propertyDefaults[Z]=U)}}if(H=H.__propertyDefaults)for(var C in H)A=H[C],
this._canApplyPropertyDefault(C)&&(A=typeof A.value=="function"?A.value.call(this):A.value,this._hasAccessor(C)?this._setPendingProperty(C,A,!0):this[C]=A)};
N.prototype._canApplyPropertyDefault=function(H){return!this.hasOwnProperty(H)};
N._processStyleText=function(H,A){return Fhz(H,A)};
N._finalizeTemplate=function(H){var A=this.prototype._template;if(A&&!A.__polymerFinalized){A.__polymerFinalized=!0;var Z=this.importPath;Z=Z?_.bU(Z):"";t(this,A,H,Z);this.prototype._bindTemplate(A)}};
N.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);O.prototype.connectedCallback.call(this)};
N.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);O.prototype.ready.call(this)};
N.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));O.prototype._readyClients.call(this)};
N.prototype._attachDom=function(H){var A=(0,_.k6)(this);if(A.attachShadow)return H?(A.shadowRoot||(A.attachShadow({mode:"open",shadyUpgradeFragment:H}),A.shadowRoot.appendChild(H),this.constructor._styleSheet&&(A.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),gq0&&window.ShadyDOM&&window.ShadyDOM.flushInitial(A.shadowRoot),A.shadowRoot):null;throw Error("Hd");};
N.prototype.updateStyles=function(H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,H)};
N.prototype.resolveUrl=function(H,A){!A&&this.importPath&&(A=_.bU(this.importPath));return _.bU(H,A)};
N._parseTemplateContent=function(H,A,Z){A.dynamicFns=A.dynamicFns||this._properties;return O._parseTemplateContent.call(this,H,A,Z)};
N._addTemplatePropertyEffect=function(H,A,Z){!VB||A in this._properties||Z.info.part.signature&&Z.info.part.signature.static||Z.info.part.hostProp||H.nestedTemplate||console.warn("Property '"+A+"' used in template but not declared in 'properties'; attribute will not be observed.");return O._addTemplatePropertyEffect.call(this,H,A,Z)};
_.cv.Object.defineProperties(N,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var H=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof H==="function"&&(H=H());if(H===void 0){if(H=this.hasOwnProperty("is")){H=this.is;var A=null;if(H&&(!D0||dfX)&&(A=r9.import(H,"template"),D0&&!A))throw Error("Gd`"+H);H=A}H=H||Object.getPrototypeOf(this.prototype).constructor.template}this._template=H}return this._template},
set:function(H){this._template=H}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var H=this.importMeta;H?this._importPath=duQ(H.url):this._importPath=(H=r9.import(this.is))&&H.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return N});var IrS=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(N){return N}}),VSO=function(N,t){lrX(N,t);
this.value=t.reduce(function(O,H,A){return O+D4g(H)+N[A+1]},N[0]).toString()},lrX;
VSO.prototype.toString=function(){return this.value};
_.QHB=function(N){var t=_.E1.apply(1,arguments);lrX(N,t);var O=document.createElement("template");t=t.reduce(function(H,A,Z){if(A instanceof HTMLTemplateElement)A=A.innerHTML;else if(A instanceof VSO)A=D4g(A);else throw Error("Jd`"+A);return H+A+N[Z+1]},N[0]);
IrS&&(t=IrS.createHTML(t));O.innerHTML=t;return O};
lrX=function(N,t){if(!Array.isArray(N)||!Array.isArray(N.raw)||t.length!==N.length-1)throw new TypeError("Kd");};var cn=Bn(HTMLElement);var mfZ=dH(function(N){var t=Bn(N);N=function(){var O=t.call(this)||this;O.__lastItems=null;O.__lastMulti=null;O.__selectedMap=null;return O};
_.p(N,t);N.prototype.__updateSelection=function(O,H){var A=H.path;A=="items"?(H=H.base||[],A=this.__lastItems,O!==this.__lastMulti&&this.clearSelection(),A&&(A=ZSM(H,A),this.__applySplices(A)),this.__lastItems=H,this.__lastMulti=O):H.path=="items.splices"?this.__applySplices(H.value.indexSplices):(O=A.slice(6),H=parseInt(O,10),O.indexOf(".")<0&&O==H&&this.__deselectChangedIdx(H))};
N.prototype.__applySplices=function(O){for(var H=this,A=this.__selectedMap,Z={},U=0;U<O.length;Z={s$jscomp$109:void 0},U++){Z.s$jscomp$109=O[U];A.forEach(function(B){return function(c,u){c<B.s$jscomp$109.index||(c>=B.s$jscomp$109.index+B.s$jscomp$109.removed.length?A.set(u,c+B.s$jscomp$109.addedCount-B.s$jscomp$109.removed.length):A.set(u,-1))}}(Z));
for(var C=0;C<Z.s$jscomp$109.addedCount;C++){var F=Z.s$jscomp$109.index+C;A.has(this.items[F])&&A.set(this.items[F],F)}}this.__updateLinks();var g=0;A.forEach(function(B,c){B<0?(H.multi?H.splice("selected",g,1):H.selected=H.selectedItem=null,A.delete(c)):g++})};
N.prototype.__updateLinks=function(){var O=this;this.__dataLinkedPaths={};if(this.multi){var H=0;this.__selectedMap.forEach(function(A){A>=0&&O.linkPaths("items."+A,"selected."+H++)})}else this.__selectedMap.forEach(function(A){O.linkPaths("selected","items."+A);
O.linkPaths("selectedItem","items."+A)})};
N.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
N.prototype.isSelected=function(O){return this.__selectedMap.has(O)};
N.prototype.isIndexSelected=function(O){return this.isSelected(this.items[O])};
N.prototype.__deselectChangedIdx=function(O){var H=this,A=this.__selectedIndexForItemIndex(O);if(A>=0){var Z=0;this.__selectedMap.forEach(function(U,C){A==Z++&&H.deselect(C)})}};
N.prototype.__selectedIndexForItemIndex=function(O){if(O=this.__dataLinkedPaths["items."+O])return parseInt(O.slice(9),10)};
N.prototype.deselect=function(O){var H=this.__selectedMap.get(O);if(H>=0){this.__selectedMap.delete(O);var A;this.multi&&(A=this.__selectedIndexForItemIndex(H));this.__updateLinks();this.multi?this.splice("selected",A,1):this.selected=this.selectedItem=null}};
N.prototype.deselectIndex=function(O){this.deselect(this.items[O])};
N.prototype.select=function(O){this.selectIndex(this.items.indexOf(O))};
N.prototype.selectIndex=function(O){var H=this.items[O];this.isSelected(H)?this.toggle&&this.deselectIndex(O):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(H,O),this.__updateLinks(),this.multi?this.push("selected",H):this.selected=this.selectedItem=H)};
_.cv.Object.defineProperties(N,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return N}),EqB=mfZ(cn),$b=function(){return EqB.apply(this,arguments)||this};
_.p($b,EqB);_.cv.Object.defineProperties($b,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define($b.is,$b);var GrY=window.Polymer;window.Polymer=function(N){return window.Polymer._polymerFn(N)};
GrY&&Object.assign(Polymer,GrY);Polymer._polymerFn=function(){throw Error("Ld");};/*

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:Fhz,resolveUrl:_.bU,pathFromUrl:duQ};Polymer.DomModule=r9;Polymer.Async={timeOut:_.FI,animationFrame:_.hd,idlePeriod:S6E,microTask:ob};Polymer.dedupingMixin=dH;Polymer.wrap=_.k6;Polymer.PropertiesChanged=MnB;Polymer.telemetry={instanceCount:bOQ,incrementInstanceCount:function(){bOQ++},
registrations:cqQ,register:$uO,dumpRegistrations:function(){cqQ.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=p2r;Polymer.CaseMap={dashToCamelCase:L9,camelToDashCase:zC};Polymer.PropertyAccessors=w2X;Polymer.TemplateStamp=kr0;Polymer.Path={isPath:Y6,root:ab,isAncestor:Mq9,isDescendant:TC,translate:w9,matches:biy,normalize:e4,split:pyN,get:Pd,set:LhN,isDeep:Y6};Polymer.Settings={useShadow:tv,useNativeCSSProperties:ZOY,useNativeCustomElements:Vny,get rootPath(){return FN_},setRootPath:function(N){FN_=N},
get sanitizeDOMValue(){return q1},setSanitizeDOMValue:function(N){q1=N},
get passiveTouchGestures(){return uQO},setPassiveTouchGestures:function(N){uQO=N},
get strictTemplatePolicy(){return D0},setStrictTemplatePolicy:function(N){D0=N},
get allowTemplateFromDomModule(){return dfX},setAllowTemplateFromDomModule:function(N){dfX=N},
get legacyOptimizations(){return NT},setLegacyOptimizations:function(N){NT=N},
get syncInitialRender(){return gq0},setSyncInitialRender:function(N){gq0=N},
get legacyUndefined(){return n9},setLegacyUndefined:function(N){n9=N},
get legacyWarnings(){return VB},setLegacyWarnings:function(N){VB=N},
get orderedComputed(){return ynf},setOrderedComputed:function(N){ynf=N},
get fastDomIf(){return UT},setFastDomIf:function(N){UT=N},
get removeNestedTemplates(){return Dg},setRemoveNestedTemplates:function(N){Dg=N},
get suppressTemplateNotifications(){return Cp},setSuppressTemplateNotifications:Cp};Polymer.rootPath!==void 0&&(FN_=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(q1=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(uQO=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(D0=Polymer.strictTemplatePolicy);dfX=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(NT=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(gq0=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(n9=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(VB=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(ynf=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(UT=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Dg=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Cp=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return q1},
set:function(N){q1=N}});Polymer.PropertyEffects=yu;Polymer.StyleGather={stylesFromModules:Jq4,stylesFromModule:vgS,stylesFromTemplate:ogx,stylesFromModuleImports:sE4,cssFromModules:tSx,cssFromModule:NPx,cssFromTemplate:OSS,cssFromModuleImports:function(N){return(N=r9.import(N))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(N):""}};Polymer.ElementMixin=Bn;Polymer.updateStyles=function(N){window.ShadyCSS&&window.ShadyCSS.styleDocument(N)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:ZSM};Polymer.html=_.QHB;Polymer.htmlLiteral=function(N){return new VSO(N,_.E1.apply(1,arguments))};Polymer.Element=cn;Polymer.ArraySelectorMixin=mfZ;Polymer.ArraySelector=$b;var Rha=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,vqR=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Wep=/@media\s(.*)/;var FpO=null,Kpg=window.HTMLImports&&window.HTMLImports.whenReady||null,d4O;var JnZ=null,je=null,ir=function(){this.customStyles=[];this.enqueued=!1;gf4(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},oqY=function(N){!N.enqueued&&je&&(N.enqueued=!0,gf4(je))};
ir.prototype.addCustomStyle=function(N){N.__seenByShadyCSS||(N.__seenByShadyCSS=!0,this.customStyles.push(N),oqY(this))};
ir.prototype.getStyleForCustomStyle=function(N){if(N.__shadyCSSCachedStyle)return N.__shadyCSSCachedStyle;var t;N.getStyle?t=N.getStyle():t=N;return t};
ir.prototype.processStyles=function(){for(var N=this.customStyles,t=0;t<N.length;t++){var O=N[t];if(!O.__shadyCSSCachedStyle){var H=this.getStyleForCustomStyle(O);H&&(H=H.__appliedElement||H,JnZ&&JnZ(H),O.__shadyCSSCachedStyle=H)}}return N};
ir.prototype.addCustomStyle=ir.prototype.addCustomStyle;ir.prototype.getStyleForCustomStyle=ir.prototype.getStyleForCustomStyle;ir.prototype.processStyles=ir.prototype.processStyles;Object.defineProperties(ir.prototype,{transformCallback:{get:function(){return JnZ},
set:function(N){JnZ=N}},
validateCallback:{get:function(){return je},
set:function(N){var t=!1;je||(t=!0);je=N;t&&oqY(this)}}});var BPG=!(window.ShadyDOM&&window.ShadyDOM.inUse),ylg,Bv;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Bv=window.ShadyCSS.cssBuild);var sHB=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?ylg=window.ShadyCSS.nativeCss:window.ShadyCSS?(clv(window.ShadyCSS),window.ShadyCSS=void 0):clv(window.WebComponents&&window.WebComponents.flags);var qdl=ylg;var NFE=new ir;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(N,t){NFE.processStyles();U4Q(N,t)},
styleElement:function(){NFE.processStyles()},
styleDocument:function(N){NFE.processStyles();U4Q(document.body,N)},
getComputedStyleValue:function(N,t){return Clp(N,t)},
flushCustomStyles:function(){},
nativeCss:qdl,nativeShadow:BPG,cssBuild:Bv,disableRuntime:sHB});window.ShadyCSS.CustomStyleInterface=NFE;var tF_=window.ShadyCSS.CustomStyleInterface,ur=function(){var N=HTMLElement.call(this)||this;N._style=null;tF_.addCustomStyle(N);return N};
_.p(ur,HTMLElement);ur.prototype.getStyle=function(){if(this._style)return this._style;var N=this.querySelector("style");if(!N)return null;this._style=N;var t=N.getAttribute("include");t&&(N.removeAttribute("include"),N.textContent=tSx(t)+N.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
ur.prototype.getStyle=ur.prototype.getStyle;window.customElements.define("custom-style",ur);Polymer.CustomStyle=ur;var Se=function(){this._timer=this._callback=this._asyncModule=null},hA,HCX;
Se.prototype.setConfig=function(N,t){var O=this;this._asyncModule=N;this._callback=t;this._timer=this._asyncModule.run(function(){O._timer=null;hA.delete(O);O._callback()})};
Se.prototype.cancel=function(){this.isActive()&&(OCa(this),hA.delete(this))};
var OCa=function(N){N.isActive()&&(N._asyncModule.cancel(N._timer),N._timer=null)};
Se.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Se.prototype.isActive=function(){return this._timer!=null};
_.M_=function(N,t,O){N instanceof Se?OCa(N):N=new Se;N.setConfig(t,O);return N};
hA=new Set;_.br=function(N){hA.add(N)};
HCX=function(){var N=!!hA.size;hA.forEach(function(t){try{t.flush()}catch(O){setTimeout(function(){throw O;})}});
return N};var jCO=typeof document.head.style.touchAction==="string",$4z=["mousedown","mousemove","mouseup","click"],zNM=[0,1,4,2],AdE;try{AdE=(new MouseEvent("test",{buttons:1})).buttons===1}catch(N){AdE=!1}var Lpv=AdE,iSg=!1;(function(){try{var N=Object.defineProperty({},"passive",{get:function(){iSg=!0}});
window.addEventListener("test",null,N);window.removeEventListener("test",null,N)}catch(t){}})();
var hNN=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),MS9=[],ZCp={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},nfQ={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},bSG=function(N){var t=N.sourceCapabilities;if(!t||t.firesTouchEvents)if(N.__polymerGesturesHandled={skip:!0},N.type==="click"){t=!1;for(var O=w7t(N),H=0;H<O.length;H++){if(O[H].nodeType===Node.ELEMENT_NODE)if(O[H].localName==="label")MS9.push(O[H]);
else if(ZCp[O[H].localName]){var A=O[H];var Z=Array.prototype.slice.call(A.labels||[]);if(!Z.length){Z=[];try{var U=A.getRootNode();if(A.id){var C=U.querySelectorAll("label[for = '"+A.id+"']");for(A=0;A<C.length;A++)Z.push(C[A])}}catch(F){}}for(A=0;A<Z.length;A++)t=t||MS9.indexOf(Z[A])>-1}if(O[H]===VFZ)return}t||(N.preventDefault(),N.stopPropagation())}},VFZ=null,pp=null,PlM=0,X7G=0,eNN=-1,x4v=!1;
document.addEventListener("touchend",function(N){pp||p7x(!0);VFZ=w7t(N)[0];pp=_.M_(pp,_.FI.after(2500),function(){p7x();pp=VFZ=null})},iSg?{passive:!0}:!1);
var w7t=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(N){return N.composedPath&&N.composedPath()||[]},GC={},mK=[];
khG({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){QM(this.info)},
mousedown:function(N){if(lU(N)){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N),O=this;aZQ(this.info,function(H){lU(H)||(sh("up",t,H),QM(O.info))},function(H){lU(H)&&sh("up",t,H);
QM(O.info)});
sh("down",t,N)}},
touchstart:function(N){sh("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N),N.changedTouches[0],N)},
touchend:function(N){sh("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N),N.changedTouches[0],N)}});
khG({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(N){this.moves.length>2&&this.moves.shift();this.moves.push(N)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;QM(this.info)},
mousedown:function(N){if(lU(N)){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N),O=this,H=function(A){var Z=A.clientX,U=A.clientY;qIS(O.info,Z,U)&&(O.info.state=O.info.started?A.type==="mouseup"?"end":"track":"start",O.info.state==="start"&&Eh("tap"),O.info.addMove({x:Z,y:U}),lU(A)||(O.info.state="end",QM(O.info)),t&&fZM(O.info,t,A),O.info.started=!0)};
aZQ(this.info,H,function(A){O.info.started&&H(A);QM(O.info)});
this.info.x=N.clientX;this.info.y=N.clientY}},
touchstart:function(N){N=N.changedTouches[0];this.info.x=N.clientX;this.info.y=N.clientY},
touchmove:function(N){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N);N=N.changedTouches[0];var O=N.clientX,H=N.clientY;qIS(this.info,O,H)&&(this.info.state==="start"&&Eh("tap"),this.info.addMove({x:O,y:H}),fZM(this.info,t,N),this.info.state="track",this.info.started=!0)},
touchend:function(N){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N);N=N.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:N.clientX,y:N.clientY}),fZM(this.info,t,N))}});
khG({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(N){lU(N)&&(this.info.x=N.clientX,this.info.y=N.clientY)},
click:function(N){lU(N)&&WpQ(this.info,N)},
touchstart:function(N){N=N.changedTouches[0];this.info.x=N.clientX;this.info.y=N.clientY},
touchend:function(N){WpQ(this.info,N.changedTouches[0],N)}});var D20=dH(function(N){var t=function(){return N.apply(this,arguments)||this};
_.p(t,N);t.prototype._addEventListenerToNode=function(O,H,A){Rb(O,H,A)||N.prototype._addEventListenerToNode.call(this,O,H,A)};
t.prototype._removeEventListenerFromNode=function(O,H,A){vd(O,H,A)||N.prototype._removeEventListenerFromNode.call(this,O,H,A)};
return t});var Lp=dH(function(N){var t=function(){return N.apply(this,arguments)||this};
_.p(t,N);t.prototype._shouldPropertyChange=function(O,H,A){return rlx(this,O,H,A,!0)};
return t}),U2y=dH(function(N){var t=function(){return N.apply(this,arguments)||this};
_.p(t,N);t.prototype._shouldPropertyChange=function(O,H,A){return rlx(this,O,H,A,this.mutableData)};
_.cv.Object.defineProperties(t,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return t});
Lp._mutablePropertyChange=rlx;var IZM=!1;var CbR=D20(U2y(yu(HTMLElement))),zc=function(){var N=CbR.call(this)||this;if(D0)throw Error("Md");N.root=null;N.$=null;N.__children=null;return N};
_.p(zc,CbR);_.V=zc.prototype;_.V.attributeChangedCallback=function(){this.mutableData=!0};
_.V.connectedCallback=function(){lZg()||(this.style.display="none");this.render()};
_.V.disconnectedCallback=function(){this.__removeChildren()};
_.V.__insertChildren=function(){(0,_.k6)((0,_.k6)(this).parentNode).insertBefore(this.root,this)};
_.V.__removeChildren=function(){if(this.__children)for(var N=0;N<this.__children.length;N++)this.root.appendChild(this.__children[N])};
_.V.render=function(){var N=this;if(!this.__children){var t=t||this.querySelector("template");if(!t){var O=new MutationObserver(function(){if(t=N.querySelector("template"))O.disconnect(),N.render();else throw Error("Nd");});
O.observe(this,{childList:!0});return}this.root=this._stampTemplate(t);this.$=this.root.$;this.__children=[];for(var H=this.root.firstChild;H;H=H.nextSibling)this.__children[this.__children.length]=H;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.cv.Object.defineProperties(zc,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",zc);Polymer.Debouncer=Se;Polymer.Gestures={gestures:GC,recognizers:mK,deepTargetFind:TPy,addListener:Rb,removeListener:vd,register:khG,setTouchAction:_.Jy,prevent:Eh,resetMouseCanceller:function(){pp&&pp.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Rb,remove:vd};Polymer.GestureEventListeners=D20;Polymer.MutableData=Lp;Polymer.OptionalMutableData=U2y;Polymer.DomBind=zc;_.Yb=function(){do{var N=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var t=HCX()}while(N||t)};var QCz=null;m44.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:m44,writable:!0}});var NQg=yu(m44),sCO=Lp(NQg),Kwp=yu(function(){}),O8=function(N){var t=Kwp.call(this)||this;
t._configureProperties(N);t.root=t._stampTemplate(t.__dataHost);var O=[];t.children=O;for(var H=t.root.firstChild;H;H=H.nextSibling)O.push(H),H.__templatizeInstance=t;t.__templatizeOwner&&t.__templatizeOwner.__hideTemplateChildren__&&t._showHideChildren(!0);O=t.__templatizeOptions;(N&&O.instanceProps||!O.instanceProps)&&t._enableProperties();return t};
_.p(O8,Kwp);_.V=O8.prototype;_.V._configureProperties=function(N){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var O in N)this._setPendingProperty(O,N[O])};
_.V.forwardHostProp=function(N,t){this._setPendingPropertyOrPath(N,t,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.V._addEventListenerToNode=function(N,t,O){var H=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(N,t,function(Z){Z.model=H;O(Z)});
else{var A=this.__dataHost.__dataHost;A&&A._addEventListenerToNode(N,t,O)}};
_.V._showHideChildren=function(N){Ghz(N,this.children)};
_.V._setUnmanagedPropertyToNode=function(N,t,O){N.__hideTemplateChildren__&&N.nodeType==Node.TEXT_NODE&&t=="textContent"?N.__polymerTextContent__=O:Kwp.prototype._setUnmanagedPropertyToNode.call(this,N,t,O)};
_.V.dispatchEvent=function(){return!0};
_.cv.Object.defineProperties(O8.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var N=this.__parentModel;if(!N){var t;N=this;do N=N.__dataHost.__dataHost;while((t=N.__templatizeOptions)&&!t.parentModel);this.__parentModel=N}return N}}});
var vfN=Lp(O8);var a3=function(){var N=cn.call(this)||this;N.__renderDebouncer=null;N._lastIf=!1;N.__hideTemplateChildren__=!1;return N};
_.p(a3,cn);_.V=a3.prototype;_.V.__debounceRender=function(){var N=this;this.__renderDebouncer=_.M_(this.__renderDebouncer,ob,function(){return N.__render()});
_.br(this.__renderDebouncer)};
_.V.disconnectedCallback=function(){cn.prototype.disconnectedCallback.call(this);var N=(0,_.k6)(this).parentNode;N&&(N.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.k6)(N).host)||this.__teardownInstance()};
_.V.connectedCallback=function(){cn.prototype.connectedCallback.call(this);lZg()||(this.style.display="none");this.if&&this.__debounceRender()};
_.V.__ensureTemplate=function(){var N=this;if(!this.__template){var t=this._templateInfo?this:(0,_.k6)(this).querySelector("template");if(!t){var O=new MutationObserver(function(){if((0,_.k6)(N).querySelector("template"))O.disconnect(),N.__render();else throw Error("Qd");});
O.observe(this,{childList:!0});return!1}this.__template=t}return!0};
_.V.__ensureInstance=function(){var N=(0,_.k6)(this).parentNode;if(this.__hasInstance()){var t=this.__getInstanceNodes();if(t&&t.length&&(0,_.k6)(this).previousSibling!==t[t.length-1])for(var O=0,H=void 0;O<t.length&&(H=t[O]);O++)(0,_.k6)(N).insertBefore(H,this)}else{if(!N||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(N)}return!0};
_.V.render=function(){_.Yb()};
_.V.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Cp&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.V.__hasInstance=function(){};
_.V.__getInstanceNodes=function(){};
_.V.__createAndInsertInstance=function(){};
_.V.__teardownInstance=function(){};
_.V._showHideChildren=function(){};
_.cv.Object.defineProperties(a3,{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:a3.prototype.__debounceRender},restamp:{type:Boolean,observer:a3.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var FwE=function(){var N=a3.call(this)||this;N.__instance=null;N.__syncInfo=null;return N};
_.p(FwE,a3);_.V=FwE.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.V.__createAndInsertInstance=function(N){var t=this,O=this.__dataHost||this;if(D0&&!this.__dataHost)throw Error("Od");var H=O._bindTemplate(this.__template,!0);H.runEffects=function(A,Z,U){var C=t.__syncInfo;if(t.if)C&&(t.__syncInfo=null,t._showHideChildren(),Z=Object.assign(C.changedProps,Z)),A(Z,U);else if(t.__instance)if(C||(C=t.__syncInfo={runEffects:A,changedProps:{}}),U)for(var F in Z)A=ab(F),C.changedProps[A]=t.__dataHost[A];else Object.assign(C.changedProps,Z)};
this.__instance=O._stampTemplate(this.__template,H);(0,_.k6)(N).insertBefore(this.__instance,this)};
_.V.__syncHostProperties=function(){var N=this.__syncInfo;N&&(this.__syncInfo=null,N.runEffects(N.changedProps,!1))};
_.V.__teardownInstance=function(){var N=this.__dataHost||this;this.__instance&&(N._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.V._showHideChildren=function(){var N=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==N&&(this.__instance.__hidden=N,Ghz(N,this.__instance.templateInfo.childNodes));N||this.__syncHostProperties()};
var d2B=function(){var N=a3.call(this)||this;N.__ctor=null;N.__instance=null;N.__invalidProps=null;return N};
_.p(d2B,a3);_.V=d2B.prototype;_.V.__hasInstance=function(){return!!this.__instance};
_.V.__getInstanceNodes=function(){return this.__instance.children};
_.V.__createAndInsertInstance=function(N){this.__ctor||(this.__ctor=Z0(this.__template,this,{mutableData:!0,forwardHostProp:function(t,O){this.__instance&&(this.if?this.__instance.forwardHostProp(t,O):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ab(t)]=!0))}}));
this.__instance=new this.__ctor;(0,_.k6)(N).insertBefore(this.__instance.root,this)};
_.V.__teardownInstance=function(){if(this.__instance){var N=this.__instance.children;if(N&&N.length){var t=(0,_.k6)(N[0]).parentNode;if(t){t=(0,_.k6)(t);for(var O=0,H=void 0;O<N.length&&(H=N[O]);O++)t.removeChild(H)}}this.__instance=this.__invalidProps=null}};
_.V.__syncHostProperties=function(){var N=this.__invalidProps;if(N){this.__invalidProps=null;for(var t in N)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}};
_.V._showHideChildren=function(){var N=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==N&&(this.__instance.__hidden=N,this.__instance._showHideChildren(N));N||this.__syncHostProperties()};
_.Yq=UT?FwE:d2B;customElements.define(_.Yq.is,_.Yq);Polymer.enqueueDebouncer=_.br;Polymer.flush=_.Yb;Polymer.Templatize={templatize:Z0,modelForElement:V0y};Polymer.TemplateInstanceBase=O8;Polymer.DomIf=_.Yq;var gJY=U2y(cn),zr=function(){var N=gJY.call(this)||this;N.__instances=[];N.__renderDebouncer=null;N.__itemsIdxToInstIdx={};N.__chunkCount=null;N.__renderStartTime=null;N.__itemsArrayChanged=!1;N.__shouldMeasureChunk=!1;N.__shouldContinueChunking=!1;N.__chunkingId=0;N.__sortFn=null;N.__filterFn=null;N.__observePaths=null;N.__ctor=null;N.__isDetached=!0;N.template=null;return N};
_.p(zr,gJY);_.V=zr.prototype;_.V.disconnectedCallback=function(){gJY.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var N=0;N<this.__instances.length;N++)this.__detachInstance(N);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.V.connectedCallback=function(){gJY.prototype.connectedCallback.call(this);lZg()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var N=(0,_.k6)((0,_.k6)(this).parentNode),t=0;t<this.__instances.length;t++)this.__attachInstance(t,N);this.__chunkingId&&this.__render()}};
_.V.__ensureTemplatized=function(){var N=this;if(!this.__ctor){var t=this.template=this._templateInfo?this:this.querySelector("template");if(!t){var O=new MutationObserver(function(){if(N.querySelector("template"))O.disconnect(),N.__render();else throw Error("Rd");});
O.observe(this,{childList:!0});return!1}var H={};H[this.as]=!0;H[this.indexAs]=!0;H[this.itemsIndexAs]=!0;this.__ctor=Z0(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:H,forwardHostProp:function(A,Z){for(var U=this.__instances,C=0,F=void 0;C<U.length&&(F=U[C]);C++)F.forwardHostProp(A,Z)},
notifyInstanceProp:function(A,Z,U){biy(this.as,Z)&&(A=A[this.itemsIndexAs],Z==this.as&&(this.items[A]=U),Z=w9(this.as,"items."+A,Z),this.notifyPath(Z,U))}})}return!0};
_.V.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.V.__functionFromPropertyValue=function(N){if(typeof N==="string"){var t=this.__getMethodHost();return function(){return t[N].apply(t,arguments)}}return N};
_.V.__sortChanged=function(N){this.__sortFn=this.__functionFromPropertyValue(N);this.items&&this.__debounceRender(this.__render)};
_.V.__filterChanged=function(N){this.__filterFn=this.__functionFromPropertyValue(N);this.items&&this.__debounceRender(this.__render)};
_.V.__computeFrameTime=function(N){return Math.ceil(1E3/N)};
_.V.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.V.__handleObservedPaths=function(N){if(this.__sortFn||this.__filterFn)if(!N)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var t=this.__observePaths,O=0;O<t.length;O++)N.indexOf(t[O])===0&&this.__debounceRender(this.__render,this.delay)};
_.V.__itemsChanged=function(N){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(N.path,N.value)||(N.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.V.__debounceRender=function(N,t){t=t===void 0?0:t;this.__renderDebouncer=_.M_(this.__renderDebouncer,t>0?_.FI.after(t):ob,N.bind(this));_.br(this.__renderDebouncer)};
_.V.render=function(){this.__debounceRender(this.__render);_.Yb()};
_.V.__render=function(){var N=this;if(this.__ensureTemplatized()){var t=this.items||[],O=this.__sortAndFilterItems(t),H=this.__calculateLimit(O.length);this.__updateInstances(t,H,O);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){N.__chunkingId=null;N.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Cp&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.V.__sortAndFilterItems=function(N){for(var t=this,O=Array(N.length),H=0;H<N.length;H++)O[H]=H;this.__filterFn&&(O=O.filter(function(A,Z,U){return t.__filterFn(N[A],Z,U)}));
this.__sortFn&&O.sort(function(A,Z){return t.__sortFn(N[A],N[Z])});
return O};
_.V.__calculateLimit=function(N){var t=N,O=this.__instances.length;if(this.initialCount){var H;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(N,this.initialCount),this.__chunkCount=(H=Math.max(t-O,0))||1):(H=Math.min(Math.max(N-O,0),this.__chunkCount),t=Math.min(O+H,N));this.__shouldMeasureChunk=H===this.__chunkCount;this.__shouldContinueChunking=t<N;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return t};
_.V.__continueChunking=function(){if(this.__shouldMeasureChunk){var N=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/N*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.V.__updateInstances=function(N,t,O){var H=this.__itemsIdxToInstIdx={},A;for(A=0;A<t;A++){var Z=this.__instances[A],U=O[A],C=N[U];H[U]=A;Z?(Z._setPendingProperty(this.as,C),Z._setPendingProperty(this.indexAs,A),Z._setPendingProperty(this.itemsIndexAs,U),Z._flushProperties()):this.__insertInstance(C,A,U)}for(N=this.__instances.length-1;N>=A;N--)this.__detachAndRemoveInstance(N)};
_.V.__detachInstance=function(N){N=this.__instances[N];for(var t=(0,_.k6)(N.root),O=0;O<N.children.length;O++)t.appendChild(N.children[O]);return N};
_.V.__attachInstance=function(N,t){t.insertBefore(this.__instances[N].root,this)};
_.V.__detachAndRemoveInstance=function(N){this.__detachInstance(N);this.__instances.splice(N,1)};
_.V.__stampInstance=function(N,t,O){var H={};H[this.as]=N;H[this.indexAs]=t;H[this.itemsIndexAs]=O;return new this.__ctor(H)};
_.V.__insertInstance=function(N,t,O){N=this.__stampInstance(N,t,O);O=(O=this.__instances[t+1])?O.children[0]:this;(0,_.k6)((0,_.k6)(this).parentNode).insertBefore(N.root,O);return this.__instances[t]=N};
_.V._showHideChildren=function(N){for(var t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(N)};
_.V.__handleItemPath=function(N,t){var O=N.slice(6),H=O.indexOf(".");N=H<0?O:O.substring(0,H);if(N==parseInt(N,10)){O=H<0?"":O.substring(H+1);this.__handleObservedPaths(O);if(N=this.__instances[this.__itemsIdxToInstIdx[N]])N._setPendingPropertyOrPath(this.as+(O?"."+O:""),t,!1,!0),N._flushProperties();return!0}};
_.V.itemForElement=function(N){return(N=this.modelForElement(N))&&N[this.as]};
_.V.indexForElement=function(N){return(N=this.modelForElement(N))&&N[this.indexAs]};
_.V.modelForElement=function(N){return V0y(this.template,N)};
_.cv.Object.defineProperties(zr,{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:zr.prototype.__sortChanged},filter:{type:Function,observer:zr.prototype.__filterChanged},observe:{type:String,observer:zr.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Cp,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.*)"]}}});
zr.prototype._setRenderedItemCount=function(){};
customElements.define(zr.is,zr);Polymer.DomRepeat=zr;var ydS=function(N,t){var O=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=N;this.callback=t;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){O._schedule()};
this.connect();this._schedule()},BFR=function(N){var t=(0,_.k6)(N);
if(U8(N))return t.assignedNodes({flatten:!0});N=[];for(var O=0;O<t.childNodes.length;O++){var H=t.childNodes[O];U8(H)?N.push.apply(N,_.W6((0,_.k6)(H).assignedNodes({flatten:!0}))):N.push(H)}return N};
_.V=ydS.prototype;_.V.connect=function(){var N=this;U8(this._target)?this._listenSlots([this._target]):(0,_.k6)(this._target).children&&(this._listenSlots((0,_.k6)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(t){N._processMutations(t)}):(this._nativeChildrenObserver=new MutationObserver(function(t){N._processMutations(t)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.V.disconnect=function(){U8(this._target)?this._unlistenSlots([this._target]):(0,_.k6)(this._target).children&&(this._unlistenSlots((0,_.k6)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.V._schedule=function(){var N=this;this._scheduled||(this._scheduled=!0,ob.run(function(){return N.flush()}))};
_.V._processMutations=function(N){this._processSlotMutations(N);this.flush()};
_.V._processSlotMutations=function(N){if(N)for(var t=0;t<N.length;t++){var O=N[t];O.addedNodes&&this._listenSlots(O.addedNodes);O.removedNodes&&this._unlistenSlots(O.removedNodes)}};
_.V.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var N={target:this._target,addedNodes:[],removedNodes:[]},t=BFR(this._target),O=ZSM(t,this._effectiveNodes),H=0,A=void 0;H<O.length&&(A=O[H]);H++)for(var Z=0,U=void 0;Z<A.removed.length&&(U=A.removed[Z]);Z++)N.removedNodes.push(U);
H=0;for(A=void 0;H<O.length&&(A=O[H]);H++)for(Z=A.index;Z<A.index+A.addedCount;Z++)N.addedNodes.push(t[Z]);this._effectiveNodes=t;t=!1;if(N.addedNodes.length||N.removedNodes.length)t=!0,this.callback.call(this._target,N);return t};
_.V._listenSlots=function(N){for(var t=0;t<N.length;t++){var O=N[t];U8(O)&&O.addEventListener("slotchange",this._boundSchedule)}};
_.V._unlistenSlots=function(N){for(var t=0;t<N.length;t++){var O=N[t];U8(O)&&O.removeEventListener("slotchange",this._boundSchedule)}};var Tc=Element.prototype,cd_=Tc.matches||Tc.matchesSelector||Tc.mozMatchesSelector||Tc.msMatchesSelector||Tc.oMatchesSelector||Tc.webkitMatchesSelector,$2u=function(N,t){return cd_.call(N,t)},C0=function(N){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(N);
this.node=N},S4Q;
_.V=C0.prototype;_.V.observeNodes=function(N){return new ydS(this.node,N)};
_.V.unobserveNodes=function(N){N.disconnect()};
_.V.notifyObserver=function(){};
_.V.deepContains=function(N){if((0,_.k6)(this.node).contains(N))return!0;var t=N;for(N=N.ownerDocument;t&&t!==N&&t!==this.node;)t=(0,_.k6)(t).parentNode||(0,_.k6)(t).host;return t===this.node};
_.V.getOwnerRoot=function(){return(0,_.k6)(this.node).getRootNode()};
_.V.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.k6)(this.node).assignedNodes({flatten:!0}):[]};
_.V.getDestinationInsertionPoints=function(){for(var N=[],t=(0,_.k6)(this.node).assignedSlot;t;)N.push(t),t=(0,_.k6)(t).assignedSlot;return N};
_.V.importNode=function(N,t){return(0,_.k6)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(N,t)};
_.V.getEffectiveChildNodes=function(){return BFR(this.node)};
_.V.queryDistributedElements=function(N){for(var t=this.getEffectiveChildNodes(),O=[],H=0,A=t.length,Z=void 0;H<A&&(Z=t[H]);H++)Z.nodeType===Node.ELEMENT_NODE&&$2u(Z,N)&&O.push(Z);return O};
_.cv.Object.defineProperties(C0.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var N=this.node;return N._activeElement!==void 0?N._activeElement:N.activeElement}}});
var wH=function(N){this.event=N};
_.cv.Object.defineProperties(wH.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 j_E=C0;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var iCf=window.ShadyDOM.Wrapper,urr=function(){return iCf.apply(this,arguments)||this};
_.p(urr,iCf);Object.getOwnPropertyNames(C0.prototype).forEach(function(N){N!="activeElement"&&N!="constructor"&&(urr.prototype[N]=C0.prototype[N])});
Udl(urr.prototype,["classList"]);j_E=urr;Object.defineProperties(wH.prototype,{localTarget:{get:function(){var N=this.event.currentTarget;N=N&&_.$L(N).getOwnerRoot();for(var t=this.path,O=0;O<t.length;O++){var H=t[O];if(_.$L(H).getOwnerRoot()===N)return H}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else DdG(),Udl(C0.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),CC9();S4Q=j_E;_.$L=function(N){N=N||document;if(N instanceof j_E)return N;if(N instanceof wH)return N;var t=N.__domApi;t||(N instanceof Event?t=new wH(N):t=new j_E(N),N.__domApi=t);return t};var hEZ=/:host\(:dir\((ltr|rtl)\)\)/g,MF_=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,bCy=/:dir\((?:ltr|rtl)\)/,pVa=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Fd=[],ee=null,K0="",Lw0=dH(function(N){pVa||ee||(K0=document.documentElement.getAttribute("dir"),ee=new MutationObserver(Kel),ee.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var t=w2X(N);N=function(){var O=t.call(this)||this;O.__autoDirOptOut=!1;return O};
_.p(N,t);N._processStyleText=function(O,H){O=t._processStyleText.call(this,O,H);!pVa&&bCy.test(O)&&(O=this._replaceDirInCssText(O),this.__activateDir=!0);return O};
N._replaceDirInCssText=function(O){O=O.replace(hEZ,':host([dir="$1"])');return O=O.replace(MF_,':host([dir="$2"]) $1')};
N.prototype.ready=function(){t.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
N.prototype.connectedCallback=function(){t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ee&&ee.takeRecords().length&&Kel(),Fd.push(this),this.__autoDirOptOut||this.setAttribute("dir",K0))};
N.prototype.disconnectedCallback=function(){t.prototype.disconnectedCallback&&t.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var O=Fd.indexOf(this);O>-1&&Fd.splice(O,1)}};
N.__activateDir=!1;return N});var zES=function(N){for(;N;){var t=Object.getOwnPropertyDescriptor(N,"observedAttributes");if(t)return t.get;N=Object.getPrototypeOf(N.prototype).constructor}return function(){return[]}};
dH(function(N){var t=Bn(N),O=zES(t);N=function(){return t.call(this)||this};
_.p(N,t);N.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:t.prototype._initializeProperties.call(this)};
N.prototype._enableProperties=function(){this.__isUpgradeDisabled||t.prototype._enableProperties.call(this)};
N.prototype._canApplyPropertyDefault=function(H){return t.prototype._canApplyPropertyDefault.call(this,H)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(H))};
N.prototype.attributeChangedCallback=function(H,A,Z,U){H=="disable-upgrade"?this.__isUpgradeDisabled&&Z==null&&(t.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.k6)(this).isConnected&&t.prototype.connectedCallback.call(this)):t.prototype.attributeChangedCallback.call(this,H,A,Z,U)};
N.prototype.connectedCallback=function(){this.__isUpgradeDisabled||t.prototype.connectedCallback.call(this)};
N.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||t.prototype.disconnectedCallback.call(this)};
_.cv.Object.defineProperties(N,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return O.call(this).concat("disable-upgrade")}}});
return N});var de=!1,ddG=[],ge=[];var cw4=window.ShadyDOM,$dx=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",ilg):document.readyState==="interactive"||document.readyState==="complete"?ilg():window.addEventListener("DOMContentLoaded",ilg);var hGS=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=""},uAN=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Sdt=/@import[^;]*;/gim,YdS=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,a7N=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,TQ9=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,wU9=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Ley=/^@[^\s]*keyframes/,
pUv=/\s+/g;var eGQ={};var xdO=Promise.resolve();var Y4Q=new Set;var a5f=/;\s*/m,TFf=/^\s*(initial)|(inherit)\s*$/,wV0=/\s*!important/,eEy=function(){this._map={}};
eEy.prototype.set=function(N,t){N=N.trim();this._map[N]={properties:t,dependants:{}}};
eEy.prototype.get=function(N){N=N.trim();return this._map[N]||null};
var PbE=null,Pn=function(){this._measureElement=this._currentElement=null;this._map=new eEy};
_.V=Pn.prototype;_.V.detectMixin=function(N){N=vqR.test(N)||Rha.test(N);vqR.lastIndex=0;Rha.lastIndex=0;return N};
_.V.transformTemplate=function(N,t){if(N._gatheredStyle===void 0){var O=[];for(var H=N.content.querySelectorAll("style"),A=0;A<H.length;A++){var Z=H[A];if(Z.hasAttribute("shady-unscoped")){if(!BPG){var U=Z.textContent;if(!Y4Q.has(U)){Y4Q.add(U);var C=document.createElement("style");C.setAttribute("shady-unscoped","");C.textContent=U;document.head.appendChild(C)}Z.parentNode.removeChild(Z)}}else O.push(Z.textContent),Z.parentNode.removeChild(Z)}(O=O.join("").trim())?(H=document.createElement("style"),
H.textContent=O,N.content.insertBefore(H,N.content.firstChild),O=H):O=null;N._gatheredStyle=O}return(N=N._gatheredStyle)?this.JSC$11422_transformStyle(N,t):null};
_.V.JSC$11422_transformStyle=function(N,t){t=t===void 0?"":t;var O=nDv(N);this.transformRules(O,t);N.textContent=f7Q(O);return O};
_.V.transformCustomStyle=function(N){var t=this,O=nDv(N);rwl(O,function(H){H.selector===":root"&&(H.selector="html");t.transformRule(H)});
N.textContent=f7Q(O);return O};
_.V.transformRules=function(N,t){var O=this;this._currentElement=t;rwl(N,function(H){O.transformRule(H)});
this._currentElement=null};
_.V.transformRule=function(N){N.cssText=XVY(this,N.parsedCssText,N);N.selector===":root"&&(N.selector=":host > *")};
var XVY=function(N,t,O){t=t.replace(Rha,function(H,A,Z,U){return N._produceCssProperties(H,A,Z,U,O)});
return N._consumeCssProperties(t,O)};
_.V=Pn.prototype;_.V._getInitialValueForProperty=function(N){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(N)};
_.V._fallbacksFromPreviousRules=function(N){for(var t=this,O=N;O.parent;)O=O.parent;var H={},A=!1;rwl(O,function(Z){(A=A||Z===N)||Z.selector===N.selector&&Object.assign(H,t._cssTextToMap(Z.parsedCssText))});
return H};
_.V._consumeCssProperties=function(N,t){for(var O;O=vqR.exec(N);){var H=O[0],A=O[1];O=O.index;var Z=O+H.indexOf("@apply"),U=O+H.length;H=N.slice(0,Z);N=N.slice(U);Z=t?this._fallbacksFromPreviousRules(t):{};Object.assign(Z,this._cssTextToMap(H));A=this._atApplyToCssProperties(A,Z);N=H+A+N;vqR.lastIndex=O+A.length}return N};
_.V._atApplyToCssProperties=function(N,t){N=N.replace(a5f,"");var O=[],H=this._map.get(N);H||(this._map.set(N,{}),H=this._map.get(N));if(H){this._currentElement&&(H.dependants[this._currentElement]=!0);var A,Z=H.properties;for(A in Z){var U=t&&t[A];H=[A,": var(",N,"_-_",A];U&&H.push(",",U.replace(wV0,""));H.push(")");wV0.test(Z[A])&&H.push(" !important");O.push(H.join(""))}}return O.join("; ")};
_.V._replaceInitialOrInherit=function(N,t){var O=TFf.exec(t);O&&(t=O[1]?this._getInitialValueForProperty(N):"apply-shim-inherit");return t};
_.V._cssTextToMap=function(N,t){t=t===void 0?!1:t;N=N.split(";");for(var O,H,A={},Z=0;Z<N.length;Z++)if(O=N[Z])H=O.split(":"),H.length>1&&(O=H[0].trim(),H=H.slice(1).join(":"),t&&(H=this._replaceInitialOrInherit(O,H)),A[O]=H);return A};
_.V._invalidateMixinEntry=function(N){if(PbE)for(var t in N.dependants)t!==this._currentElement&&PbE(t)};
_.V._produceCssProperties=function(N,t,O,H,A){var Z=this;O&&I7x(O,function(b,z){z&&Z._map.get(z)&&(H="@apply "+z+";")});
if(!H)return N;var U=this._consumeCssProperties(""+H,A);A=N.slice(0,N.indexOf("--"));var C=U=this._cssTextToMap(U,!0),F=this._map.get(t),g=F&&F.properties;g?C=Object.assign(Object.create(g),U):this._map.set(t,C);var B=[],c,u=!1;for(c in C){var S=U[c];S===void 0&&(S="initial");!g||c in g||(u=!0);B.push(t+"_-_"+c+": "+S)}u&&this._invalidateMixinEntry(F);F&&(F.properties=C);O&&(A=N+";"+A);return A+B.join("; ")+";"};
Pn.prototype.detectMixin=Pn.prototype.detectMixin;Pn.prototype.transformStyle=Pn.prototype.JSC$11422_transformStyle;Pn.prototype.transformCustomStyle=Pn.prototype.transformCustomStyle;Pn.prototype.transformRules=Pn.prototype.transformRules;Pn.prototype.transformRule=Pn.prototype.transformRule;Pn.prototype.transformTemplate=Pn.prototype.transformTemplate;Pn.prototype._separator="_-_";Object.defineProperty(Pn.prototype,"invalidCallback",{get:function(){return PbE},
set:function(N){PbE=N}});var XI=new Pn,x2p=function(){this.customStyleInterface=null;XI.invalidCallback=PCx},xb=function(N){!N.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(N.customStyleInterface=window.ShadyCSS.CustomStyleInterface,N.customStyleInterface.transformCallback=function(t){XI.transformCustomStyle(t)},N.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){N.customStyleInterface.enqueued&&N.flushCustomStyles()})})};
_.V=x2p.prototype;_.V.prepareTemplate=function(N,t){xb(this);l7t(N)===""&&(eGQ[t]=N,t=XI.transformTemplate(N,t),N._styleAst=t)};
_.V.flushCustomStyles=function(){xb(this);if(this.customStyleInterface){var N=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var t=0;t<N.length;t++){var O=this.customStyleInterface.getStyleForCustomStyle(N[t]);O&&XI.transformCustomStyle(O)}this.customStyleInterface.enqueued=!1}}};
_.V.styleSubtree=function(N,t){xb(this);t&&U4Q(N,t);if(N.shadowRoot)for(this.styleElement(N),N=N.shadowRoot.children||N.shadowRoot.childNodes,t=0;t<N.length;t++)this.styleSubtree(N[t]);else for(N=N.children||N.childNodes,t=0;t<N.length;t++)this.styleSubtree(N[t])};
_.V.styleElement=function(N){xb(this);var t=N.localName,O;t?t.indexOf("-")>-1?O=t:O=N.getAttribute&&N.getAttribute("is")||"":O=N.is;t=eGQ[O];if(!(t&&l7t(t)!==""||!t||XUG(t))){if(XUG(t)||t._applyShimValidatingVersion!==t._applyShimNextVersion)this.prepareTemplate(t,O),klM(t);if(N=N.shadowRoot)if(N=N.querySelector("style"))N.__cssRules=t._styleAst,N.textContent=f7Q(t._styleAst)}};
_.V.styleDocument=function(N){xb(this);this.styleSubtree(document.body,N)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var kb=new x2p,kbR=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(N,t){kb.flushCustomStyles();kb.prepareTemplate(N,t)},
prepareTemplateStyles:function(N,t,O){window.ShadyCSS.prepareTemplate(N,t,O)},
prepareTemplateDom:function(){},
styleSubtree:function(N,t){kb.flushCustomStyles();kb.styleSubtree(N,t)},
styleElement:function(N){kb.flushCustomStyles();kb.styleElement(N)},
styleDocument:function(N){kb.flushCustomStyles();kb.styleDocument(N)},
getComputedStyleValue:function(N,t){return Clp(N,t)},
flushCustomStyles:function(){kb.flushCustomStyles()},
nativeCss:qdl,nativeShadow:BPG,cssBuild:Bv,disableRuntime:sHB};kbR&&(window.ShadyCSS.CustomStyleInterface=kbR)}window.ShadyCSS.ApplyShim=XI;var q4f;q4f=window.ShadyCSS;_.np=dH(function(N){N=D20(Bn(N));var t=rnp?N:Lw0(N),O=zES(t),H={x:"pan-x",y:"pan-y",none:"none",all:"auto"};N=function(){return t.call(this)||this};
_.p(N,t);N.prototype.created=function(){};
N.prototype.__attributeReaction=function(A,Z,U){(this.__dataAttributes&&this.__dataAttributes[A]||A==="disable-upgrade")&&this.attributeChangedCallback(A,Z,U,null)};
N.prototype.setAttribute=function(A,Z){if(Bzu&&!this._legacyForceObservedAttributes){var U=this.getAttribute(A);t.prototype.setAttribute.call(this,A,Z);this.__attributeReaction(A,U,String(Z))}else t.prototype.setAttribute.call(this,A,Z)};
N.prototype.removeAttribute=function(A){if(Bzu&&!this._legacyForceObservedAttributes){var Z=this.getAttribute(A);t.prototype.removeAttribute.call(this,A);this.__attributeReaction(A,Z,null)}else t.prototype.removeAttribute.call(this,A)};
N.prototype._enableProperties=function(){this.__isUpgradeDisabled||t.prototype._enableProperties.call(this)};
N.prototype._canApplyPropertyDefault=function(A){return t.prototype._canApplyPropertyDefault.call(this,A)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(A))};
N.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(t.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
N.prototype.attached=function(){};
N.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(t.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
N.prototype.detached=function(){};
N.prototype.attributeChangedCallback=function(A,Z,U,C){Z!==U&&(A=="disable-upgrade"?this.__isUpgradeDisabled&&U==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.k6)(this).isConnected&&this.connectedCallback()):(t.prototype.attributeChangedCallback.call(this,A,Z,U,C),this.attributeChanged(A,Z,U)))};
N.prototype.attributeChanged=function(){};
N.prototype._initializeProperties=function(){if(NT&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var A=Object.getPrototypeOf(this);A.hasOwnProperty("__hasRegisterFinished")||(this._registered(),A.__hasRegisterFinished=!0);t.prototype._initializeProperties.call(this);this.root=this;this.created();Bzu&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
N.prototype._takeAttributes=function(){for(var A=this.attributes,Z=0,U=A.length;Z<U;Z++){var C=A[Z];this.__attributeReaction(C.name,null,C.value)}};
N.prototype._registered=function(){};
N.prototype.ready=function(){this._ensureAttributes();t.prototype.ready.call(this)};
N.prototype._ensureAttributes=function(){};
N.prototype._applyListeners=function(){};
N.prototype.serialize=function(A){return this._serializeValue(A)};
N.prototype.deserialize=function(A,Z){return this._deserializeValue(A,Z)};
N.prototype.reflectPropertyToAttribute=function(A,Z,U){this._propertyToAttribute(A,Z,U)};
N.prototype.serializeValueToAttribute=function(A,Z,U){this._valueToNodeAttribute(U||this,A,Z)};
N.prototype.extend=function(A,Z){if(!A||!Z)return A||Z;for(var U=Object.getOwnPropertyNames(Z),C=0,F=void 0;C<U.length&&(F=U[C]);C++){var g=Object.getOwnPropertyDescriptor(Z,F);g&&Object.defineProperty(A,F,g)}return A};
N.prototype.mixin=function(A,Z){for(var U in Z)A[U]=Z[U];return A};
N.prototype.chainObject=function(A,Z){A&&Z&&A!==Z&&(A.__proto__=Z);return A};
N.prototype.instanceTemplate=function(A){A=this.constructor._contentForTemplate(A);return document.importNode(A,!0)};
N.prototype.fire=function(A,Z,U){U=U||{};Z=Z===null||Z===void 0?{}:Z;A=new Event(A,{bubbles:U.bubbles===void 0?!0:U.bubbles,cancelable:!!U.cancelable,composed:U.composed===void 0?!0:U.composed});A.detail=Z;(0,_.k6)(U.node||this).dispatchEvent(A);return A};
N.prototype.listen=function(A,Z,U){A=A||this;var C=this.__boundListeners||(this.__boundListeners=new WeakMap),F=C.get(A);F||(F={},C.set(A,F));C=Z+U;F[C]||(F[C]=this._addMethodEventListenerToNode(A,Z,U,this))};
N.prototype.unlisten=function(A,Z,U){A=A||this;var C=this.__boundListeners&&this.__boundListeners.get(A);U=Z+U;var F=C&&C[U];F&&(this._removeEventListenerFromNode(A,Z,F),C[U]=null)};
N.prototype.setScrollDirection=function(A,Z){_.Jy(Z||this,H[A]||"auto")};
N.prototype.$$=function(A){return this.root.querySelector(A)};
N.prototype.distributeContent=function(){var A=_.$L(this);window.ShadyDOM&&A.shadowRoot&&ShadyDOM.flush()};
N.prototype.getEffectiveChildNodes=function(){return _.$L(this).getEffectiveChildNodes()};
N.prototype.queryDistributedElements=function(A){return _.$L(this).queryDistributedElements(A)};
N.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(A){return A.nodeType===Node.ELEMENT_NODE})};
N.prototype.getEffectiveTextContent=function(){for(var A=this.getEffectiveChildNodes(),Z=[],U=0,C;C=A[U];U++)C.nodeType!==Node.COMMENT_NODE&&Z.push(C.textContent);return Z.join("")};
N.prototype.queryEffectiveChildren=function(A){return(A=this.queryDistributedElements(A))&&A[0]};
N.prototype.queryAllEffectiveChildren=function(A){return this.queryDistributedElements(A)};
N.prototype.getContentChildNodes=function(A){return(A=this.root.querySelector(A||"slot"))?_.$L(A).getDistributedNodes():[]};
N.prototype.getContentChildren=function(A){return this.getContentChildNodes(A).filter(function(Z){return Z.nodeType===Node.ELEMENT_NODE})};
N.prototype.isLightDescendant=function(A){return this!==A&&(0,_.k6)(this).contains(A)&&(0,_.k6)(this).getRootNode()===(0,_.k6)(A).getRootNode()};
N.prototype.isLocalDescendant=function(A){return this.root===(0,_.k6)(A).getRootNode()};
N.prototype.scopeSubtree=function(A,Z){return jG4(A,Z===void 0?!1:Z)};
N.prototype.getComputedStyleValue=function(A){return q4f.getComputedStyleValue(this,A)};
N.prototype.debounce=function(A,Z,U){this._debouncers=this._debouncers||{};return this._debouncers[A]=_.M_(this._debouncers[A],U>0?_.FI.after(U):ob,Z.bind(this))};
N.prototype.isDebouncerActive=function(A){this._debouncers=this._debouncers||{};A=this._debouncers[A];return!(!A||!A.isActive())};
N.prototype.flushDebouncer=function(A){this._debouncers=this._debouncers||{};(A=this._debouncers[A])&&A.flush()};
N.prototype.cancelDebouncer=function(A){this._debouncers=this._debouncers||{};(A=this._debouncers[A])&&A.cancel()};
N.prototype.async=function(A,Z){return Z>0?_.FI.run(A.bind(this),Z):~ob.run(A.bind(this))};
N.prototype.cancelAsync=function(A){A<0?ob.cancel(~A):_.FI.cancel(A)};
N.prototype.create=function(A,Z){A=document.createElement(A);if(Z)if(A.setProperties)A.setProperties(Z);else for(var U in Z)A[U]=Z[U];return A};
N.prototype.elementMatches=function(A,Z){return $2u(Z||this,A)};
N.prototype.toggleAttribute=function(A,Z){var U=this;arguments.length===3&&(U=arguments[2]);arguments.length==1&&(Z=!U.hasAttribute(A));if(Z)return(0,_.k6)(U).setAttribute(A,""),!0;(0,_.k6)(U).removeAttribute(A);return!1};
N.prototype.toggleClass=function(A,Z,U){U=U||this;arguments.length==1&&(Z=!U.classList.contains(A));Z?U.classList.add(A):U.classList.remove(A)};
N.prototype.transform=function(A,Z){Z=Z||this;Z.style.webkitTransform=A;Z.style.transform=A};
N.prototype.translate3d=function(A,Z,U,C){this.transform("translate3d("+A+","+Z+","+U+")",C||this)};
N.prototype.arrayDelete=function(A,Z){if(Array.isArray(A)){if(Z=A.indexOf(Z),Z>=0)return A.splice(Z,1)}else if(Z=Pd(this,A).indexOf(Z),Z>=0)return this.splice(A,Z,1);return null};
N.prototype._logger=function(A,Z){Array.isArray(Z)&&Z.length===1&&Array.isArray(Z[0])&&(Z=Z[0]);switch(A){case "log":case "warn":case "error":console[A].apply(console,_.W6(Z))}};
N.prototype._log=function(){this._logger("log",_.E1.apply(0,arguments))};
N.prototype._warn=function(){this._logger("warn",_.E1.apply(0,arguments))};
N.prototype._error=function(){this._logger("error",_.E1.apply(0,arguments))};
N.prototype._logf=function(A){return["[%s::%s]",this.is,A].concat(_.W6(_.E1.apply(1,arguments)))};
_.cv.Object.defineProperties(N.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var A=(0,_.k6)(this).getRootNode();return A instanceof DocumentFragment?A.host:A}}});
_.cv.Object.defineProperties(N,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Bzu&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],$uO(this.prototype)),this.__observedAttributes):O.call(this).concat("disable-upgrade")}}});
N.prototype.is="";return N});Polymer.FlattenedNodesObserver=ydS;Polymer.DomApi=S4Q;Polymer.EventApi=wH;Polymer.dom=_.$L;Polymer.dom.matchesSelector=$2u;Polymer.dom.flush=_.Yb;Polymer.dom.addDebouncer=_.br;Polymer.DirMixin=Lw0;Polymer.RenderStatus={beforeNextRender:_.BQS,afterNextRender:_.yB,flush:function(){for(;ddG.length||ge.length;)FeQ(ddG),FeQ(ge);de=!1}};Polymer.LegacyElementMixin=_.np;var f5_;f5_=Lp._mutablePropertyChange;var nJu={properties:{mutableData:Boolean},_shouldPropertyChange:function(N,t,O){return f5_(this,N,t,O,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(N,t,O){return f5_(this,N,t,O,!0)}};
Polymer.OptionalMutableDataBehavior=nJu;var QG4={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},vDp={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},RGy=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},vDp),WwY=(0,_.np)(HTMLElement),rfQ=function(N,t){N||console.warn("Polymer.Class requires `info` argument");t=t?t(WwY):WwY;t=Jwz(N,t,N.behaviors);t.is=t.prototype.is=
N.is;return t};Polymer.Class=rfQ;Polymer.mixinBehaviors=function(N,t){return Jwz({},(0,_.np)(t),N)};
Polymer.GenerateClassFromInfo=Jwz;_.LO=function(N){var t=typeof N==="function"?N:_.LO.Class(N);N._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=N._legacyForceObservedAttributes);customElements.define(t.is,t);return t};
_.LO.Class=rfQ;Polymer._polymerFn=_.LO;var rdf=window.onLegacyPolymerFunctionDefinedCallback;rdf&&rdf();var lQO={templatize:function(N,t){this._templatizerTemplate=N;this.ctor=Z0(N,this,{mutableData:!!t,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(N){return new this.ctor(N)},
modelForElement:function(N){return V0y(this._templatizerTemplate,N)}};Polymer.Templatizer=lQO;_.Wn=(0,_.np)(HTMLElement).prototype;Polymer.Base=_.Wn;var sGg=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.$I=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.p(_.$I,PolymerFakeBaseClass);var jm=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.p(jm,PolymerFakeBaseClass);var NIv=Symbol("Sd"),UOg=[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 I5X=I5X||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},l5E;(function(N){function t(I,r,E){var J=l.get(I);if(!J){if(!E)return;J=new P;l.set(I,J)}I=J.get(r);if(!I){if(!E)return;I=new P;J.set(r,I)}return I}
function O(I,r,E){if(H(I,r,E))return!0;r=u(r);return r!==null?O(I,r,E):!1}
function H(I,r,E){r=t(r,E,!1);return r===void 0?!1:!!r.has(I)}
function A(I,r,E){if(H(I,r,E))return Z(I,r,E);r=u(r);if(r!==null)return A(I,r,E)}
function Z(I,r,E){r=t(r,E,!1);if(r!==void 0)return r.get(I)}
function U(I,r){var E=C(I,r);I=u(I);if(I===null)return E;var J=U(I,r);if(J.length<=0)return E;if(E.length<=0)return J;r=new x;I=[];E=_.D(E);for(var CN=E.next();!CN.done;CN=E.next())CN=CN.value,r.has(CN)||(r.add(CN),I.push(CN));E=_.D(J);for(J=E.next();!J.done;J=E.next())J=J.value,r.has(J)||(r.add(J),I.push(J));return I}
function C(I,r){I=t(I,r,!1);var E=[];I&&I.forEach(function(J,CN){return E.push(CN)});
return E}
function F(I){return I===void 0}
function g(I){return typeof I==="object"?I!==null:typeof I==="function"}
function B(I){return typeof I==="function"}
function c(I){return typeof I==="symbol"?I:String(I)}
function u(I){var r=Object.getPrototypeOf(I);if(typeof I!=="function"||I===w||r!==w)return r;var E=Object.getPrototypeOf(I.prototype);if(E==null||E===Object.prototype)return r;E=E.constructor;return typeof E!=="function"||E===I?r:E}
function S(){function I(){this._keys=[];this._values=[];this._cache=r}
var r={};I.prototype={get size(){return this._keys.length},has:function(E){return E===this._cache?!0:this._find(E)>=0?(this._cache=E,!0):!1},
get:function(E){var J=this._find(E);if(J>=0)return this._cache=E,this._values[J]},
set:function(E,J){this.delete(E);this._keys.push(E);this._values.push(J);this._cache=E;return this},
delete:function(E){E=this._find(E);return E>=0?(this._keys.splice(E,1),this._values.splice(E,1),this._cache=r,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=r},
forEach:function(E){for(var J=this.size,CN=0;CN<J;++CN){var B4=this._keys[CN],zM=this._values[CN];this._cache=B4;E.call(this,zM,B4,this)}},
_find:function(E){for(var J=this._keys,CN=J.length,B4=0;B4<CN;++B4)if(J[B4]===E)return B4;return-1}};
return I}
function b(){function I(){this._map=new P}
I.prototype={get size(){return this._map.length},has:function(r){return this._map.has(r)},
add:function(r){this._map.set(r,r);return this},
delete:function(r){return this._map.delete(r)},
clear:function(){this._map.clear()},
forEach:function(r,E){this._map.forEach(r,E)}};
return I}
function z(){function I(){this._key=E()}
function r(c4,XO){for(var kx=0;kx<XO;++kx)c4[kx]=Math.random()*255|0}
function E(){do{if(CN)var c4=CN.randomBytes(16);else typeof Uint8Array==="function"?(c4=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(c4):r(c4,16)):(c4=Array(16),r(c4,16));c4[6]=c4[6]&79|64;c4[8]=c4[8]&191|128;for(var XO="",kx=0;kx<16;++kx){var fN=c4[kx];if(kx===4||kx===6||kx===8)XO+="-";fN<16&&(XO+="0");XO+=fN.toString(16).toLowerCase()}c4="@@WeakMap@@"+XO}while(B4.call(zM,c4));zM[c4]=!0;return c4}
function J(c4,XO){if(!B4.call(c4,jy)){if(!XO)return;Object.defineProperty(c4,jy,{value:Object.create(null)})}return c4[jy]}
var CN=typeof global!=="undefined"&&typeof I5X==="object"&&typeof require==="function"&&require("crypto"),B4=Object.prototype.hasOwnProperty,zM={},jy=E();I.prototype={has:function(c4){return(c4=J(c4,!1))?this._key in c4:!1},
get:function(c4){if(c4=J(c4,!1))return c4[this._key]},
set:function(c4,XO){J(c4,!0)[this._key]=XO;return this},
delete:function(c4){return(c4=J(c4,!1))&&this._key in c4?delete c4[this._key]:!1},
clear:function(){this._key=E()}};
return I}
var w=Object.getPrototypeOf(Function),P=typeof Map==="function"?Map:S(),x=typeof Set==="function"?Set:b(),l=new (typeof WeakMap==="function"?WeakMap:z());N.decorate=function(I,r,E,J){if(F(J)){if(F(E)){if(!Array.isArray(I))throw new TypeError;if(!B(r))throw new TypeError;for(E=I.length-1;E>=0;--E)if(J=(0,I[E])(r),!F(J)){if(!B(J))throw new TypeError;r=J}return r}if(!Array.isArray(I))throw new TypeError;if(!g(r))throw new TypeError;E=c(E);for(J=I.length-1;J>=0;--J)(0,I[J])(r,E)}else{if(Array.isArray(I))if(g(r)){if(F(E))throw new TypeError;
if(!g(J))throw new TypeError;}else throw new TypeError;else throw new TypeError;E=c(E);for(var CN=I.length-1;CN>=0;--CN){var B4=(0,I[CN])(r,E,J);if(!F(B4)){if(!g(B4))throw new TypeError;J=B4}}return J}};
N.metadata=function(I,r){return function(E,J){if(F(J)){if(!B(E))throw new TypeError;t(E,void 0,!0).set(I,r)}else{if(!g(E))throw new TypeError;J=c(J);t(E,J,!0).set(I,r)}}};
N.defineMetadata=function(I,r){var E;if(g(r))F(E)||(E=c(E));else throw new TypeError;t(r,E,!0).set("parameters",I)};
N.hasMetadata=function(I,r,E){if(g(r))F(E)||(E=c(E));else throw new TypeError;return O(I,r,E)};
N.hasOwnMetadata=function(I,r,E){if(g(r))F(E)||(E=c(E));else throw new TypeError;return H(I,r,E)};
N.getMetadata=function(I,r,E){if(g(r))F(E)||(E=c(E));else throw new TypeError;return A(I,r,E)};
N.getOwnMetadata=function(I,r,E){if(g(r))F(E)||(E=c(E));else throw new TypeError;return Z(I,r,E)};
N.getMetadataKeys=function(I,r){if(g(I))F(r)||(r=c(r));else throw new TypeError;return U(I,r)};
N.getOwnMetadataKeys=function(I,r){if(g(I))F(r)||(r=c(r));else throw new TypeError;return C(I,r)};
N.deleteMetadata=function(I,r,E){if(g(r))F(E)||(E=c(E));else throw new TypeError;var J=t(r,E,!1);if(!F(J)){if(!J.delete(I))return!1;if(J.size>0)return!0;I=l.get(r);I.delete(E);if(I.size>0)return!0;l.delete(r);return!0}};
(function(I){if(typeof I.Reflect!=="undefined"){if(I.Reflect!==N)for(var r in N)I.Reflect[r]=N[r]}else I.Reflect=N})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(l5E||(l5E={}));var $Gp=self;var Q_Y=[0,_.RG,_.oG,_.RG];var m2y=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(m2y,_.C8);var EJa=_.u9(m2y,[0,_.H1,_.tC,Q_Y,_.oG,_.Zb]);var REu=[0,_.AC,-3,_.Zb,_.H1,_.RG,_.Sxy,_.AC,MJy,j1u,IG,_.vU,_.RG,function(){return Gbu},
_.oG],Gbu=[0,_.tC,function(){return REu},
_.H1,14,_.AC];_.Od(_.iq,_.k1);_.V=_.iq.prototype;_.V.start=function(){this.stop();this.usingListeners_=!1;var N=vJQ(this),t=JdS(this);N&&!t&&this.JSC$11465_win_.mozRequestAnimationFrame?(this.JSC$11465_id_=_.SF(this.JSC$11465_win_,"MozBeforePaint",this.callback_),this.JSC$11465_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11465_id_=N&&t?N.call(this.JSC$11465_win_,this.callback_):this.JSC$11465_win_.setTimeout(IxX(this.callback_),20)};
_.V.stop=function(){if(this.isActive()){var N=vJQ(this),t=JdS(this);N&&!t&&this.JSC$11465_win_.mozRequestAnimationFrame?jF(this.JSC$11465_id_):N&&t?t.call(this.JSC$11465_win_,this.JSC$11465_id_):this.JSC$11465_win_.clearTimeout(this.JSC$11465_id_)}this.JSC$11465_id_=null};
_.V.fire=function(){this.stop();this.JSC$11467_doAction_()};
_.V.isActive=function(){return this.JSC$11465_id_!=null};
_.V.JSC$11467_doAction_=function(){this.usingListeners_&&this.JSC$11465_id_&&jF(this.JSC$11465_id_);this.JSC$11465_id_=null;this.JSC$11465_listener_.call(this.handler_,_.tw())};
_.V.disposeInternal=function(){this.stop();_.iq.superClass_.disposeInternal.call(this)};
var vJQ=function(N){N=N.JSC$11465_win_;return N.requestAnimationFrame||N.webkitRequestAnimationFrame||N.mozRequestAnimationFrame||N.oRequestAnimationFrame||N.msRequestAnimationFrame||null},JdS=function(N){N=N.JSC$11465_win_;
return N.cancelAnimationFrame||N.cancelRequestAnimationFrame||N.webkitCancelRequestAnimationFrame||N.mozCancelRequestAnimationFrame||N.oCancelRequestAnimationFrame||N.msCancelRequestAnimationFrame||null};_.KE=function(N,t,O){_.k1.call(this);this.JSC$11468_listener_=O!=null?N.bind(O):N;this.JSC$11468_interval_=t;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11468_timer_=null};
_.p(_.KE,_.k1);_.V=_.KE.prototype;_.V.fire=function(N){this.args_=arguments;this.JSC$11468_timer_||this.pauseCount_?this.shouldFire_=!0:oJE(this)};
_.V.stop=function(){this.JSC$11468_timer_&&(_.H4.clearTimeout(this.JSC$11468_timer_),this.JSC$11468_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.V.pause=function(){this.pauseCount_++};
_.V.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11468_timer_||(this.shouldFire_=!1,oJE(this))};
_.V.disposeInternal=function(){_.k1.prototype.disposeInternal.call(this);this.stop()};
var oJE=function(N){N.JSC$11468_timer_=nV(function(){N.JSC$11468_timer_=null;N.shouldFire_&&!N.pauseCount_&&(N.shouldFire_=!1,oJE(N))},N.JSC$11468_interval_);
var t=N.args_;N.args_=null;N.JSC$11468_listener_.apply(null,t)};var s_X=function(N,t){this.childIterator_=N[_.H4.Symbol.iterator]();this.mapFn_=t};
s_X.prototype[Symbol.iterator]=function(){return this};
s_X.prototype.next=function(){var N=this.childIterator_.next();return{value:N.done?void 0:this.mapFn_.call(void 0,N.value),done:N.done}};
var NqQ=function(N,t){return new s_X(N,t)};var t9B={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 Z5l=function(N){var t=OEf(N);if(!t)throw Error("Wd`"+N);return t},OEf=function(N){var t={};
N=String(N);var O=N.charAt(0)=="#"?N:"#"+N;if(HEr.test(O))return t.hex=J0l(O),t.type="hex",t;O=CV4(N);return O.length?(t.hex=XKx(O[0],O[1],O[2]),t.type="rgb",t):t9B&&(N=t9B[N.toLowerCase()])?(t.hex=N,t.type="named",t):null},A4_=/#(.)(.)(.)/,J0l=function(N){if(!HEr.test(N))throw Error("Yd`"+N);
N.length==4&&(N=N.replace(A4_,"#$1$1$2$2$3$3"));return N.toLowerCase()},V5O=function(N){N=J0l(N);
N=parseInt(N.slice(1),16);return[N>>16,N>>8&255,N&255]},XKx=function(N,t,O){N=Number(N);
t=Number(t);O=Number(O);if(N!=(N&255)||t!=(t&255)||O!=(O&255))throw Error("Zd`"+N+"`"+t+"`"+O);t=N<<16|t<<8|O;return N<16?"#"+(16777216|t).toString(16).slice(1):"#"+t.toString(16)},HEr=/^#(?:[0-9a-f]{3}){1,2}$/i,ZEY=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,CV4=function(N){var t=N.match(ZEY);
if(t){N=Number(t[1]);var O=Number(t[2]);t=Number(t[3]);if(N>=0&&N<=255&&O>=0&&O<=255&&t>=0&&t<=255)return[N,O,t]}return[]};var V9u={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},dv=V9u;dv=V9u;var v7y,DeS,Uer;v7y=function(N,t){switch(t){case 1:return N%4!=0||N%100==0&&N%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
DeS=function(N,t,O,H,A){N=new Date(N,t,O);A=A||0;return N.valueOf()+(((H!==void 0?H:3)-A+7)%7-((N.getDay()+6)%7-A+7)%7)*864E5};
_.rH=function(N,t,O){typeof N==="number"?(this.date=Uer(N,t||0,O||1),CjX(this,O||1)):_.mG(N)?(this.date=Uer(N.getFullYear(),N.getMonth(),N.getDate()),CjX(this,N.getDate())):(this.date=new Date(_.tw()),N=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),CjX(this,N))};
Uer=function(N,t,O){t=new Date(N,t,O);N>=0&&N<100&&t.setFullYear(t.getFullYear()-1900);return t};
_.V=_.rH.prototype;_.V.firstDayOfWeek_=dv.FIRSTDAYOFWEEK;_.V.firstWeekCutOffDay_=dv.FIRSTWEEKCUTOFFDAY;_.V.clone=function(){var N=new _.rH(this.date);N.firstDayOfWeek_=this.firstDayOfWeek_;N.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return N};
_.V.getFullYear=function(){return this.date.getFullYear()};
_.V.getYear=function(){return this.getFullYear()};
_.V.getMonth=function(){return this.date.getMonth()};
_.V.getDate=function(){return this.date.getDate()};
_.V.getTime=function(){return this.date.getTime()};
_.V.getDay=function(){return this.date.getDay()};
_.V.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.V.getUTCMonth=function(){return this.date.getUTCMonth()};
_.V.getUTCDate=function(){return this.date.getUTCDate()};
_.V.getUTCDay=function(){return this.date.getDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.V.set=function(N){this.date=new Date(N.getFullYear(),N.getMonth(),N.getDate())};
_.V.setFullYear=function(N){this.date.setFullYear(N)};
_.V.setYear=function(N){this.setFullYear(N)};
_.V.setMonth=function(N){this.date.setMonth(N)};
_.V.setDate=function(N){this.date.setDate(N)};
_.V.setTime=function(N){this.date.setTime(N)};
_.V.setUTCFullYear=function(N){this.date.setUTCFullYear(N)};
_.V.setUTCMonth=function(N){this.date.setUTCMonth(N)};
_.V.setUTCDate=function(N){this.date.setUTCDate(N)};
_.V.add=function(N){if(N.years||N.months){var t=this.getMonth()+N.months+N.years*12,O=this.getYear()+Math.floor(t/12);t%=12;t<0&&(t+=12);var H=Math.min(v7y(O,t),this.getDate());this.setDate(1);this.setFullYear(O);this.setMonth(t);this.setDate(H)}N.days&&(O=this.getYear(),t=O>=0&&O<=99?-1900:0,N=new Date((new Date(O,this.getMonth(),this.getDate(),12)).getTime()+N.days*864E5),this.setDate(1),this.setFullYear(N.getFullYear()+t),this.setMonth(N.getMonth()),this.setDate(N.getDate()),CjX(this,N.getDate()))};
_.V.JSC$11481_toIsoString=function(N){var t=this.getFullYear(),O=t<0?"-":t>=1E4?"+":"";return[O+_.dI(Math.abs(t),O?6:4),_.dI(this.getMonth()+1,2),_.dI(this.getDate(),2)].join(N?"-":"")};
_.V.equals=function(N){return!(!N||this.getYear()!=N.getYear()||this.getMonth()!=N.getMonth()||this.getDate()!=N.getDate())};
_.V.toString=function(){return this.JSC$11481_toIsoString()};
var CjX=function(N,t){N.getDate()!=t&&N.date.setUTCHours(N.date.getUTCHours()+(N.getDate()<t?1:-1))};
_.rH.prototype.valueOf=function(){return this.date.valueOf()};var lr=function(N,t,O,H,A){this.reversed=!!t;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!O;N&&I3(this,N,H);this.depth=A!=void 0?A:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Od(lr,j8);var I3=function(N,t,O,H){if(N.node=t)N.tagType=typeof O==="number"?O:N.node.nodeType!=1?0:N.reversed?-1:1;typeof H==="number"&&(N.depth=H)};
_.V=lr.prototype;_.V.JSC$11496_copyFrom=function(N){this.node=N.node;this.tagType=N.tagType;this.depth=N.depth;this.reversed=N.reversed;this.constrained=N.constrained};
_.V.clone=function(){return new lr(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.V.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return un;var N=this.node;var t=this.reversed?-1:1;if(this.tagType==t){var O=this.reversed?N.lastChild:N.firstChild;O?I3(this,O):I3(this,N,t*-1)}else(O=this.reversed?N.previousSibling:N.nextSibling)?I3(this,O):I3(this,N.parentNode,t*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(N=this.node)?S8(N):un};
_.V.equals=function(N){return N.node==this.node&&(!this.node||N.tagType==this.tagType)};
_.V.splice=function(N){var t=this.node,O=this.reversed?1:-1;this.tagType==O&&(this.tagType=O*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;lr.prototype.next.call(this);this.reversed=!this.reversed;O=_.lQ(arguments[0])?arguments[0]:arguments;for(var H=O.length-1;H>=0;H--)_.rI(O[H],t);_.wb(t)};var KBa=function(){},Qu=function(N){for(var t=[],O=N.getTextRangeCount(),H=0;H<O;H++)t.push(N.getTextRange(H));
return t};
KBa.prototype.isReversed=function(){return!1};
KBa.prototype.getWindow=function(){return lw(_.Qs(this.JSC$11498_getStartNode()))};
var FBE=function(N,t){lr.call(this,N,t,!0)};
_.Od(FBE,lr);var mC=function(N,t,O,H,A){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!A;if(N){this.startNode_=N;this.startOffset_=t;this.endNode_=O;this.endOffset_=H;if(N.nodeType==1&&N.tagName!="BR")if(N=N.childNodes,t=N[t])this.startNode_=t,this.startOffset_=0;else{N.length&&(this.startNode_=_.wt(N));var Z=!0}O.nodeType==1&&((this.endNode_=O.childNodes[H])?this.endOffset_=0:this.endNode_=O)}lr.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);Z&&this.next()};
_.Od(mC,FBE);_.V=mC.prototype;_.V.JSC$11504_getStartNode=function(){return this.startNode_};
_.V.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.V.next=function(){return this.isLast()?un:mC.superClass_.next.call(this)};
_.V.JSC$11496_copyFrom=function(N){this.startNode_=N.startNode_;this.endNode_=N.endNode_;this.startOffset_=N.startOffset_;this.endOffset_=N.endOffset_;this.isReversed_=N.isReversed_;mC.superClass_.JSC$11496_copyFrom.call(this,N)};
_.V.clone=function(){var N=new mC(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);N.JSC$11496_copyFrom(this);return N};var de_=function(){};
de_.prototype.__iterator__=function(){return new mC(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ET=function(N){this.range_=N};
_.Od(ET,de_);var gVB=function(N){var t=_.Qs(N).createRange();if(N.nodeType==3)t.setStart(N,0),t.setEnd(N,N.length);else if(fA(N)||N.nodeType==3){for(var O,H=N;(O=H.firstChild)&&(fA(O)||O.nodeType==3);)H=O;t.setStart(H,0);for(H=N;(O=H.lastChild)&&(fA(O)||O.nodeType==3);)H=O;t.setEnd(H,H.nodeType==1?H.childNodes.length:H.length)}else O=N.parentNode,N=Array.prototype.indexOf.call(O.childNodes,N),t.setStart(O,N),t.setEnd(O,N+1);return t},y4X=function(N,t,O,H){var A=_.Qs(N).createRange();
A.setStart(N,t);A.setEnd(O,H);return A};
_.V=ET.prototype;_.V.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.V.getContainer=function(){return this.range_.commonAncestorContainer};
_.V.compareBrowserRangeEndpoints=function(N,t,O){return this.range_.compareBoundaryPoints(O==1?t==1?_.H4.Range.START_TO_START:_.H4.Range.START_TO_END:t==1?_.H4.Range.END_TO_START:_.H4.Range.END_TO_END,N)};
_.V.isCollapsed=function(){return this.range_.collapsed};
_.V.select=function(N){this.selectInternal(lw(_.Qs(this.range_.startContainer)).getSelection(),N)};
_.V.selectInternal=function(N){N.removeAllRanges();N.addRange(this.range_)};
_.V.insertNode=function(N,t){var O=this.range_.cloneRange();O.collapse(t);O.insertNode(N);O.detach();return N};
_.V.collapse=function(N){this.range_.collapse(N)};_.Od(uq,ET);uq.prototype.selectInternal=function(N,t){!t||this.isCollapsed()?uq.superClass_.selectInternal.call(this,N,t):(N.collapse(this.range_.endContainer,this.range_.endOffset),N.extend(this.range_.startContainer,this.range_.startOffset))};_.Od(Sm,ET);Sm.prototype.compareBrowserRangeEndpoints=function(N,t,O){return Sm.superClass_.compareBrowserRangeEndpoints.call(this,N,t,O)};
Sm.prototype.selectInternal=function(N,t){t?N.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):N.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Bqf=function(N){return _.Ud?new Sm(N):_.D7?new uq(N):new ET(N)};var Gc=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},c4E;
_.Od(Gc,KBa);c4E=function(N,t){var O=new Gc;O.browserRangeWrapper_=N;O.isReversed_=!!t;return O};
_.$eE=function(N){N=_.Ud?new Sm(gVB(N)):_.D7?new uq(gVB(N)):new ET(gVB(N));return c4E(N)};
_.R3=function(N,t,O,H){var A=new Gc;A.isReversed_=jMB(N,t,O,H);if(_.FW(N)&&!fA(N)){var Z=N.parentNode;t=Array.prototype.indexOf.call(Z.childNodes,N);N=Z}_.FW(O)&&!fA(O)&&(Z=O.parentNode,H=Array.prototype.indexOf.call(Z.childNodes,O),O=Z);A.isReversed_?(A.startNode_=O,A.startOffset_=H,A.endNode_=N,A.endOffset_=t):(A.startNode_=N,A.startOffset_=t,A.endNode_=O,A.endOffset_=H);return A};
_.V=Gc.prototype;_.V.clone=function(){var N=new Gc;N.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();N.startNode_=this.startNode_;N.startOffset_=this.startOffset_;N.endNode_=this.endNode_;N.endOffset_=this.endOffset_;N.isReversed_=this.isReversed_;return N};
_.V.JSC$11498_getType=function(){return"text"};
_.V.getBrowserRangeObject=function(){return vn(this).range_};
_.V.getTextRangeCount=function(){return 1};
_.V.getTextRange=function(){return this};
var vn=function(N){var t;if(!(t=N.browserRangeWrapper_)){t=N.JSC$11498_getStartNode();var O=N.JSC$11498_getStartOffset(),H=N.JSC$11498_getEndNode(),A=N.JSC$11498_getEndOffset();t=_.Ud?new Sm(y4X(t,O,H,A)):_.D7?new uq(y4X(t,O,H,A)):new ET(y4X(t,O,H,A));t=N.browserRangeWrapper_=t}return t};
_.V=Gc.prototype;_.V.getContainer=function(){return vn(this).getContainer()};
_.V.JSC$11498_getStartNode=function(){return this.startNode_||(this.startNode_=vn(this).range_.startContainer)};
_.V.JSC$11498_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=vn(this).range_.startOffset};
_.V.JSC$11498_getEndNode=function(){return this.endNode_||(this.endNode_=vn(this).range_.endContainer)};
_.V.JSC$11498_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=vn(this).range_.endOffset};
_.V.isReversed=function(){return this.isReversed_};
_.V.JSC$11498_containsRange=function(N,t){if(N.JSC$11498_getType()=="text"){var O=vn(this);N=vn(N);t=t&&!N.isCollapsed();N=N.range_;O=t?O.compareBrowserRangeEndpoints(N,0,1)>=0&&O.compareBrowserRangeEndpoints(N,1,0)<=0:O.compareBrowserRangeEndpoints(N,0,0)>=0&&O.compareBrowserRangeEndpoints(N,1,1)<=0}else O=!1;return O};
_.V.isCollapsed=function(){return vn(this).isCollapsed()};
_.V.JSC$11498_getText=function(){return vn(this).range_.toString()};
_.V.__iterator__=function(){return new mC(this.JSC$11498_getStartNode(),this.JSC$11498_getStartOffset(),this.JSC$11498_getEndNode(),this.JSC$11498_getEndOffset())};
_.V.select=function(){vn(this).select(this.isReversed_)};
_.V.JSC$11498_removeContents=function(){var N=vn(this).range_;N.extractContents();if(N.startContainer.hasChildNodes()&&(N=N.startContainer.childNodes[N.startOffset])){var t=N.previousSibling;fCp(N)==""&&_.wb(N);t&&fCp(t)==""&&_.wb(t)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.V.insertNode=function(N,t){N=vn(this).insertNode(N,t);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return N};
_.V.collapse=function(N){N=this.isReversed()?!N:N;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(N);N?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var iEQ=function(){};
_.Od(iEQ,KBa);iEQ.prototype.JSC$11498_containsRange=function(N,t){var O=Qu(this);N=Qu(N);return(t?U7:_.xGv)(N,function(H){return U7(O,function(A){return A.JSC$11498_containsRange(H,t)})})};
iEQ.prototype.insertNode=function(N,t){t?_.W1(N,this.JSC$11498_getStartNode()):_.rI(N,this.JSC$11498_getEndNode());return N};var uM0,SiB=eu().JSC$9481_document_.documentElement;uM0=SiB.requestFullscreen?"fullscreenchange":SiB.webkitRequestFullscreen?"webkitfullscreenchange":SiB.mozRequestFullScreen?"mozfullscreenchange":SiB.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var hwp=function(){var N=eu().JSC$9481_document_;return!!(N.webkitIsFullScreen||N.mozFullScreen||N.msFullscreenElement||N.fullscreenElement)};var JA=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Od(JA,iEQ);_.V=JA.prototype;_.V.clone=function(){var N=new JA;N.browserRanges_=_.Il(this.browserRanges_);return N};
_.V.JSC$11498_getType=function(){return"mutli"};
_.V.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.V.getTextRangeCount=function(){return this.browserRanges_.length};
_.V.getTextRange=function(N){this.ranges_[N]||(this.ranges_[N]=c4E(Bqf(this.browserRanges_[N])));return this.ranges_[N]};
_.V.getContainer=function(){if(!this.container_){for(var N=[],t=this.getTextRangeCount(),O=0;O<t;O++)N.push(this.getTextRange(O).getContainer());this.container_=wWr.apply(null,N)}return this.container_};
var o3=function(N){N.sortedRanges_||(N.sortedRanges_=Qu(N),N.sortedRanges_.sort(function(t,O){var H=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();var A=O.JSC$11498_getStartNode();O=O.JSC$11498_getStartOffset();return H==A&&t==O?0:jMB(H,t,A,O)?1:-1}));
return N.sortedRanges_};
_.V=JA.prototype;_.V.JSC$11498_getStartNode=function(){return o3(this)[0].JSC$11498_getStartNode()};
_.V.JSC$11498_getStartOffset=function(){return o3(this)[0].JSC$11498_getStartOffset()};
_.V.JSC$11498_getEndNode=function(){return _.wt(o3(this)).JSC$11498_getEndNode()};
_.V.JSC$11498_getEndOffset=function(){return _.wt(o3(this)).JSC$11498_getEndOffset()};
_.V.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.V.JSC$11498_getText=function(){return Qu(this).map(function(N){return N.JSC$11498_getText()}).join("")};
_.V.__iterator__=function(){return new sT(this)};
_.V.select=function(){var N=this.getWindow().getSelection();N.removeAllRanges();for(var t=this.getTextRangeCount(),O=0;O<t;O++)N.addRange(this.getTextRange(O).getBrowserRangeObject())};
_.V.JSC$11498_removeContents=function(){Qu(this).forEach(function(N){N.JSC$11498_removeContents()})};
_.V.collapse=function(N){if(!this.isCollapsed()){var t=N?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;t.collapse(N);this.ranges_=[t];this.sortedRanges_=[t];this.browserRanges_=[t.getBrowserRangeObject()]}};
var sT=function(N){this.iterators_=null;this.currentIdx_=0;N&&(this.iterators_=o3(N).map(function(t){return _.Xca(t)}));
lr.call(this,N?this.JSC$11504_getStartNode():null,!1,!0)};
_.Od(sT,FBE);_.V=sT.prototype;_.V.JSC$11504_getStartNode=function(){return this.iterators_[0].JSC$11504_getStartNode()};
_.V.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.V.next=function(){for(;this.currentIdx_<this.iterators_.length;){var N=this.iterators_[this.currentIdx_],t=N.next();if(t.done)this.currentIdx_++;else return I3(this,N.node,N.tagType,N.depth),t}return un};
_.V.JSC$11496_copyFrom=function(N){this.iterators_=_.Il(N.iterators_);sT.superClass_.JSC$11496_copyFrom.call(this,N)};
_.V.clone=function(){var N=new sT(null);N.JSC$11496_copyFrom(this);return N};var M9S,jMB;_.D_=function(){var N=window.getSelection();return N&&M9S(N)};
M9S=function(N){var t=!1;if(N.createRange)try{var O=N.createRange()}catch(A){return null}else if(N.rangeCount){if(N.rangeCount>1){O=new JA;t=N.rangeCount;for(var H=0;H<t;H++)O.browserRanges_.push(N.getRangeAt(H));return O}O=N.getRangeAt(0);t=jMB(N.anchorNode,N.anchorOffset,N.focusNode,N.focusOffset)}else return null;return c4E(Bqf(O),t)};
_.Nj=function(N,t){return _.R3(N,t,N,t)};
_.tV=function(N,t,O,H){return _.R3(N,t,O,H)};
jMB=function(N,t,O,H){if(N==O)return H<t;var A;if(N.nodeType==1&&t)if(A=N.childNodes[t])N=A,t=0;else if(_.oP(N,O))return!0;if(O.nodeType==1&&H)if(A=O.childNodes[H])O=A,H=0;else if(_.oP(O,N))return!1;return(Tcu(N,O)||t-H)>0};var Ob=function(){_.Xm.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.qn)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.qn)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.qn)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.qn)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.qn)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.qn)(this.dispatchProgressEvent_,this)};
_.Od(Ob,_.Xm);Ob.prototype.abort=function(){try{this.reader_.abort()}catch(N){throw new fAR(N,"aborting read");}};
Ob.prototype.getError=function(){return this.reader_.error&&new fAR(this.reader_.error,"reading file")};
Ob.prototype.dispatchProgressEvent_=function(N){this.dispatchEvent(new nLu(N,this))};
Ob.prototype.disposeInternal=function(){Ob.superClass_.disposeInternal.call(this);delete this.reader_};
var pHf=function(N){var t=new Ob,O=bEY(t);t.reader_.readAsArrayBuffer(N);return O},LBE=function(N){var t=new Ob,O=bEY(t);
t.reader_.readAsDataURL(N);return O},bEY=function(N){var t=new A8;
N.listen("loadend",_.Fu(function(O,H){var A=H.reader_.result,Z=H.getError();A==null||Z?O.errback(Z):O.callback(A);H.dispose()},t,N));
return t};var Hb=function(){_.Xm.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11538_eventHandler_=new _.MT(this);this.JSC$11538_isInitialized_=!1};
_.Od(Hb,_.Xm);var zwa=new _.YF("d"),Yir=new _.YF("beforedragstart"),aN0=new _.YF("dragstart"),Tq0=new _.YF("beforedragmove"),wHQ=new _.YF("dragmove"),ewR=new _.YF("beforedragend"),PjE=new _.YF("dragend"),XHp=new _.YF("e");Hb.prototype.isDragging=function(){return!!this.JSC$11538_dragger_};
var xef=function(N,t){t.dlgGrowthDirection_=0;t.dlgDragHoverClass_=void 0;t.dlgDragPermission=0;N.dragLists_.push(t)},kIR=function(N,t){N.getHandleForDragItem_=t};
Hb.prototype.init=function(){if(!this.JSC$11538_isInitialized_){for(var N=this.dragLists_.length,t=0;t<N;t++)for(var O=_.I5(this.dragLists_[t]),H=O.length,A=0;A<H;++A){var Z=O[A],U=this.getHandleForDragItem_(Z),C=_.GM(U);this.dragItemForHandle_[C]=Z;this.dragItemHoverClasses_&&(this.JSC$11538_eventHandler_.listen(Z,"mouseover",this.handleDragItemMouseover_),this.JSC$11538_eventHandler_.listen(Z,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11538_eventHandler_.listen(U,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11538_eventHandler_.listen(U,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(Z);this.JSC$11538_eventHandler_.listen(U,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11538_isInitialized_=!0}};
Hb.prototype.disposeInternal=function(){this.JSC$11538_eventHandler_.dispose();for(var N=this.dragLists_.length,t=0;t<N;t++){var O=this.dragLists_[t];O.dlgGrowthDirection_=void 0;O.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;qi_(this);Hb.superClass_.disposeInternal.call(this)};
var fNX=function(N,t){for(var O=N.dragLists_.length,H=0;H<O;H++){var A=N.dragLists_[H];A.dlgBounds_=yCO(A)}O=N.dragItems_.length;for(H=0;H<O;H++)A=N.dragItems_[H],A!=t&&(A.dlgBounds_=yCO(A))};
_.V=Hb.prototype;
_.V.handlePotentialDragStart_=function(N){var t=_.GM(N.currentTarget);t=this.dragItemForHandle_[t];if(t.parentElement.dlgDragPermission!=2){this.currDragItem_=t;a:{t=this.currDragItem_;for(var O=t.cloneNode(!0),H=eR("TEXTAREA",t),A=eR("TEXTAREA",O),Z=0;Z<H.length;Z++)A[Z].value=H[Z].value;switch(t.tagName){case "TR":t=_.kG("TABLE",null,_.kG("TBODY",null,O));break a;case "TD":case "TH":t=_.kG("TABLE",null,_.kG("TBODY",null,_.kG("TR",null,O)));break a;case "TEXTAREA":O.value=t.value;default:t=O;break a}t=
void 0}this.draggerEl_=t;this.draggerElClasses_&&ON(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Qs(this.currDragItem_).body.appendChild(this.draggerEl_);O=_.mq(this.currDragItem_);t=this.draggerEl_;H=_.mq(t);if(O instanceof _.IN){var U=O.y;O=O.x}Gj(t,t.offsetLeft+(O-H.x),t.offsetTop+(Number(U)-H.y));this.JSC$11538_dragger_=new _.Rj(this.draggerEl_);_.q8Q(this.JSC$11538_dragger_,this.hysteresisDistance_);
_.SF(this.JSC$11538_dragger_,"start",this.handleDragStart_,!1,this);_.SF(this.JSC$11538_dragger_,"end",this.handleDragEnd_,!1,this);_.SF(this.JSC$11538_dragger_,"earlycancel",this.JSC$11540_cleanup_,!1,this);this.dispatchEvent(new AV(zwa,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11538_dragger_));this.JSC$11538_dragger_.startDrag(N)}};
_.V.handleDragStart_=function(N){if(this.dispatchEvent(new AV(Yir,this,N.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.zoE(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?ON(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var t=QNQ(this.draggerEl_);this.draggerEl_.halfWidth=t.width/2;this.draggerEl_.halfHeight=t.height/2;t=this.draggerEl_.getBoundingClientRect();
var O=N.clientY,H=f0a(this.JSC$11538_dragger_,N.clientX);if(H>t.right){var A=this.currDragItem_.getBoundingClientRect();this.JSC$11538_dragger_.deltaX=H-(H-A.left)/A.width*t.width}O=nIE(this.JSC$11538_dragger_,O);O>t.bottom&&(this.JSC$11538_dragger_.deltaY+=O-t.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";fNX(this,this.currDragItem_);this.currDragItem_.style.display="";_.SF(this.JSC$11538_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new AV(aN0,
this,N.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11538_dragger_))}else N.preventDefault(),this.JSC$11540_cleanup_()};
_.V.handleDragMove_=function(N){var t=_.mq(this.draggerEl_);t=new _.IN(t.x+this.draggerEl_.halfWidth,t.y+this.draggerEl_.halfHeight);a:{var O=null;if(this.currDragItem_.style.display!="none"){O=this.currDragItem_.parentNode;var H=yCO(O);if(nVf(t,H))break a}H=this.dragLists_.length;for(var A=0;A<H;A++){var Z=this.dragLists_[A];if(Z!=O&&nVf(t,Z.dlgBounds_)){O=Z;break a}}O=null}if(O){if(O==null)throw Error("$d");H=0;A=!1;Z=void 0;switch(O.dlgGrowthDirection_){case 0:H=t.y;var U=WBr;var C=r4X;break;case 4:A=
!0;case 2:H=t.x;U=INZ;C=r4X;break;case 5:A=!0;case 3:H=t.x,U=lN_,C=QME}for(var F=null,g,B=_.I5(O),c=B.length,u=0;u<c;u++){var S=B[u];if(S!=this.currDragItem_){var b=U(S.dlgBounds_);if(A){var z=meE(S,t);Z===void 0&&(Z=z);C(H,b)&&(g==void 0||z<Z||z==Z&&(C(b,g)||b==g))&&(F=S,g=b);z<Z&&(Z=z)}else C(H,b)&&(g==void 0||C(b,g))&&(F=S,g=b)}}U=F!==null&&meE(F,t)>Z?null:F}else U=null;if(!this.dispatchEvent(new AV(Tq0,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11538_dragger_,t,O,U)))return!1;if(O&&O.dlgDragPermission!=
1)this.currDragItem_.parentNode==O&&_.zoE(this.currDragItem_)==U||O.insertBefore(this.currDragItem_,U),this.currDragItem_.style.display="",O.dlgDragHoverClass_&&_.mw(O,O.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",C=this.dragLists_.length,g=0;g<C;g++)H=this.dragLists_[g],H.dlgDragHoverClass_&&_.lb(H,H.dlgDragHoverClass_);O!=this.currHoverList_&&(this.currHoverList_=O,fNX(this,this.currDragItem_));this.dispatchEvent(new AV(wHQ,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11538_dragger_,
t,O,U));return!1};
_.V.JSC$11540_cleanup_=function(){qi_(this);this.JSC$11538_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var N=this.dragLists_.length,t=0;t<N;t++)this.dragLists_[t].dlgBounds_=null;N=this.dragItems_.length;for(t=0;t<N;t++)this.dragItems_[t].dlgBounds_=null};
_.V.handleDragEnd_=function(N){if(!this.dispatchEvent(new AV(ewR,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11538_dragger_)))return!1;qi_(this);this.dispatchEvent(new AV(PjE,this,N,this.currDragItem_,this.draggerEl_,this.JSC$11538_dragger_));this.JSC$11540_cleanup_();return!0};
var qi_=function(N){_.F$(N.JSC$11538_dragger_);var t=N.draggerEl_&&N.draggerEl_.parentElement;N.draggerEl_&&_.wb(N.draggerEl_);N.currDragItem_&&N.currDragItem_.style.display=="none"&&(N.origList_.insertBefore(N.currDragItem_,N.origNextItem_),N.currDragItem_.style.display="");N.currDragItemClasses_&&N.currDragItem_?xVu(N.currDragItem_,N.currDragItemClasses_||[]):N.currDragItem_&&(N.currDragItem_.style.visibility="");for(var O=N.dragLists_.length,H=0;H<O;H++){var A=N.dragLists_[H];A.dlgDragHoverClass_&&
_.lb(A,A.dlgDragHoverClass_)}t&&N.dispatchEvent(new AV(XHp,N,null,N.currDragItem_,N.draggerEl_,N.JSC$11538_dragger_))};
_.V=Hb.prototype;_.V.getHandleForDragItem_=function(N){return N};
_.V.handleDragItemMouseover_=function(N){ON(N.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemMouseout_=function(N){xVu(N.currentTarget,this.dragItemHoverClasses_||[])};
_.V.handleDragItemHandleMouseover_=function(N){ON(N.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.V.handleDragItemHandleMouseout_=function(N){xVu(N.currentTarget,this.dragItemHandleHoverClasses_||[])};
var nVf=function(N,t){return N.x>t.left&&N.x<t.left+t.width&&N.y>t.top&&N.y<t.top+t.height},meE=function(N,t){N=N.dlgBounds_;
return Math.abs(t.y-(N.top+(N.height-1)/2))},WBr=function(N){return N.top+N.height-1},INZ=function(N){return N.left+N.width-1},lN_=function(N){return N.left||0},r4X=function(N,t){return N<t},QME=function(N,t){return N>t},AV=function(N,t,O,H,A,Z){_.a7.call(this,N);
this.event=O;this.currDragItem=H;this.draggerEl=A;this.JSC$11542_dragger=Z};
_.Od(AV,_.a7);_.Od(bq,_.k1);var EVS=new _.IN(0,0);bq.prototype.JSC$11546_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
bq.prototype.JSC$11546_onMouseMove=function(N){var t=this.containerIsActuallyContent_?EVS:wc(eu(this.containerNode_)),O=this.horizontalScrolling_?this.calculateScrollDelta(N.clientX+t.x,this.scrollBounds_.left,this.scrollBounds_.width):0,H=this.calculateScrollDelta(N.clientY+t.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=O;this.scrollDelta_.y=H;!(O=!O&&!H)&&(O=this.constrainScroll_)&&(O=N.clientX+t.x,N=N.clientY+t.y,t=this.containerBounds_,O=!(t.left<=O&&t.left+t.width>=
O&&t.top<=N&&t.top+t.height>=N));O?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
bq.prototype.calculateScrollDelta=function(N,t,O){var H=0;N<t?H=-8:N>t+O&&(H=8);return H};
bq.prototype.disposeInternal=function(){bq.superClass_.disposeInternal.call(this);this.JSC$11544_eventHandler_.dispose();this.scrollTimer_.dispose()};var GIQ={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"}}},Zi=GIQ;Zi=GIQ;var Vy={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 Rwy=function(){},QP=function(N){if(typeof N=="number"){var t=new Rwy;
t.standardOffset_=N;var O=N;if(O==0)O="Etc/GMT";else{var H=["Etc/GMT",O<0?"-":"+"];O=Math.abs(O);H.push(Math.floor(O/60)%100);O%=60;O!=0&&H.push(":",_.dI(O,2));O=H.join("")}t.timeZoneId_=O;O=N;O==0?O="UTC":(H=["UTC",O<0?"+":"-"],O=Math.abs(O),H.push(Math.floor(O/60)%100),O%=60,O!=0&&H.push(":",O),O=H.join(""));N=vVX(N);t.tzNames_=[O,O];t.tzNamesExt_={STD_LONG_NAME_GMT:N,STD_GENERIC_LOCATION:N};t.transitions_=[];return t}t=new Rwy;t.timeZoneId_=N.id;t.standardOffset_=-N.std_offset;t.tzNames_=N.names;
t.tzNamesExt_=N.names_ext;t.transitions_=N.transitions;return t},vVX=function(N){var t=["GMT"];
t.push(N<=0?"+":"-");N=Math.abs(N);t.push(_.dI(Math.floor(N/60)%100,2),":",_.dI(N%60,2));return t.join("")},J4f=function(N,t){t=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes())/36E5;
for(var O=0;O<N.transitions_.length&&t>=N.transitions_[O];)O+=2;return O==0?0:N.transitions_[O-1]},oVX=function(N,t){N=N.standardOffset_-J4f(N,t);
return N===-1440?0:N};var md=function(N,t){this.patternParts_=[];this.JSC$11557_dateTimeSymbols_=t||dv;typeof N=="number"?sMX(this,N):NZu(this,N)},tpS=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Di=function(N){return N.getHours?N.getHours():0},NZu=function(N,t){for($3Q&&(t=t.replace(/\u200f/g,""));t;){for(var O=t,H=0;H<tpS.length;++H){var A=t.match(tpS[H]);
if(A){var Z=A[0];t=t.substring(Z.length);H==0&&(Z=="''"?Z="'":(Z=Z.substring(1,A[1]=="'"?Z.length-1:Z.length),Z=Z.replace(/''/g,"'")));N.patternParts_.push({text:Z,type:H});break}}if(O===t)throw Error("ae`"+t);}};
md.prototype.format=function(N,t){if(!N)throw Error("be");var O=t?(N.getTimezoneOffset()-oVX(t,N))*6E4:0,H=O?new Date(N.getTime()+O):N,A=H;t&&H.getTimezoneOffset()!=N.getTimezoneOffset()&&(H=new Date(H.getTime()+(H.getTimezoneOffset()-N.getTimezoneOffset())*6E4),A=new Date(N.getTime()+(O+(O>0?-864E5:864E5))));O=[];for(var Z=0;Z<this.patternParts_.length;++Z){var U=this.patternParts_[Z].text;1==this.patternParts_[Z].type?O.push(OxS(this,U,N,H,A,t)):O.push(U)}return O.join("")};
var sMX=function(N,t){if(t<4)var O=N.JSC$11557_dateTimeSymbols_.DATEFORMATS[t];else if(t<8)O=N.JSC$11557_dateTimeSymbols_.TIMEFORMATS[t-4];else if(t<12)O=N.JSC$11557_dateTimeSymbols_.DATETIMEFORMATS[t-8],O=O.replace("{1}",N.JSC$11557_dateTimeSymbols_.DATEFORMATS[t-8]),O=O.replace("{0}",N.JSC$11557_dateTimeSymbols_.TIMEFORMATS[t-8]);else if(t===12)O=N.JSC$11557_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(t===13)O=N.JSC$11557_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{sMX(N,10);return}NZu(N,O)},Ub=function(N,t){t=String(t);
N=N.JSC$11557_dateTimeSymbols_||dv;if(N.ZERODIGIT!==void 0&&!ciy){for(var O=[],H=0;H<t.length;H++){var A=t.charCodeAt(H);O.push(48<=A&&A<=57?String.fromCharCode(N.ZERODIGIT+A-48):t.charAt(H))}t=O.join("")}return t},ciy=!1,$3Q=!1,A5_=function(N,t,O,H){O=O.getFullYear();
O<=0&&H&&(O=1-O);return Ub(N,Hxf(O,t))},Hxf=function(N,t){t==2&&(N%=100);
N<0&&t++;return _.dI(N,t)},C7=function(N){if(!(N.getHours&&N.getSeconds&&N.getMinutes))throw Error("ce");
},Zxr=function(N,t){C7(t);
t=Di(t);return N.JSC$11557_dateTimeSymbols_.AMPMS[t>=12&&t<24?1:0]},OxS=function(N,t,O,H,A,Z){var U=t.length;
switch(t.charAt(0)){case "G":return O=H.getFullYear()>0?1:0,U>=4?N.JSC$11557_dateTimeSymbols_.ERANAMES[O]:N.JSC$11557_dateTimeSymbols_.ERAS[O];case "y":return A5_(N,U,H,!0);case "Y":return O=(new Date(DeS(H.getFullYear(),H.getMonth(),H.getDate(),N.JSC$11557_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,N.JSC$11557_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),U==2&&(O%=100),Ub(N,Hxf(O,U));case "u":return A5_(N,U,H,!1);case "M":a:switch(O=H.getMonth(),U){case 5:U=N.JSC$11557_dateTimeSymbols_.NARROWMONTHS[O];
break a;case 4:U=N.JSC$11557_dateTimeSymbols_.MONTHS[O];break a;case 3:U=N.JSC$11557_dateTimeSymbols_.SHORTMONTHS[O];break a;default:U=Ub(N,_.dI(O+1,U))}return U;case "k":return C7(A),Ub(N,_.dI(Di(A)||24,U));case "S":return Ub(N,(A.getMilliseconds()/1E3).toFixed(Math.min(3,U)).slice(2)+(U>3?_.dI(0,U-3):""));case "E":return O=H.getDay(),U>=4?N.JSC$11557_dateTimeSymbols_.WEEKDAYS[O]:N.JSC$11557_dateTimeSymbols_.SHORTWEEKDAYS[O];case "a":return Zxr(N,A);case "b":return Zxr(N,A);case "B":return Zxr(N,
A);case "h":return C7(A),Ub(N,_.dI(Di(A)%12||12,U));case "K":return C7(A),Ub(N,_.dI(Di(A)%12,U));case "H":return C7(A),Ub(N,_.dI(Di(A),U));case "c":a:switch(O=H.getDay(),U){case 5:U=N.JSC$11557_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[O];break a;case 4:U=N.JSC$11557_dateTimeSymbols_.STANDALONEWEEKDAYS[O];break a;case 3:U=N.JSC$11557_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[O];break a;default:U=Ub(N,_.dI(O,1))}return U;case "L":a:switch(O=H.getMonth(),U){case 5:U=N.JSC$11557_dateTimeSymbols_.STANDALONENARROWMONTHS[O];
break a;case 4:U=N.JSC$11557_dateTimeSymbols_.STANDALONEMONTHS[O];break a;case 3:U=N.JSC$11557_dateTimeSymbols_.STANDALONESHORTMONTHS[O];break a;default:U=Ub(N,_.dI(O+1,U))}return U;case "Q":return O=Math.floor(H.getMonth()/3),U<4?N.JSC$11557_dateTimeSymbols_.SHORTQUARTERS[O]:N.JSC$11557_dateTimeSymbols_.QUARTERS[O];case "d":return Ub(N,_.dI(H.getDate(),U));case "m":return C7(A),Ub(N,_.dI(A.getMinutes?A.getMinutes():0,U));case "s":return C7(A),Ub(N,_.dI(A.getSeconds(),U));case "v":return(Z||QP(O.getTimezoneOffset())).timeZoneId_;
case "V":return N=Z||QP(O.getTimezoneOffset()),U<=2?N.timeZoneId_:J4f(N,O)>0?N.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?N.tzNamesExt_.DST_GENERIC_LOCATION:N.tzNamesExt_.DST_GENERIC_LOCATION:N.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?N.tzNamesExt_.STD_GENERIC_LOCATION:N.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return O=DeS(A.getFullYear(),A.getMonth(),A.getDate(),N.JSC$11557_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,N.JSC$11557_dateTimeSymbols_.FIRSTDAYOFWEEK),Ub(N,_.dI(Math.floor(Math.round((O-(new Date((new Date(O)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,U));case "z":return N=Z||QP(O.getTimezoneOffset()),U<4?N.tzNames_[J4f(N,O)>0?2:0]:N.tzNames_[J4f(N,O)>0?3:1];case "Z":return t=Z||QP(O.getTimezoneOffset()),U<4?(U=-oVX(t,O),N=[U<0?"-":"+"],U=Math.abs(U),N.push(_.dI(Math.floor(U/60)%100,2),_.dI(U%60,2)),U=N.join("")):U=Ub(N,vVX(oVX(t,O))),U;default:return""}};var VpQ=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,DUu=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,SQ9=function(N){this.patternParts_=[];this.JSC$11566_dateTimeSymbols_=dv;if(typeof N=="number"){N>11&&(N=10);if(N<4)var t=this.JSC$11566_dateTimeSymbols_.DATEFORMATS[N];else N<8?t=this.JSC$11566_dateTimeSymbols_.TIMEFORMATS[N-4]:(t=this.JSC$11566_dateTimeSymbols_.DATETIMEFORMATS[N-8],t=t.replace("{1}",this.JSC$11566_dateTimeSymbols_.DATEFORMATS[N-8]),t=t.replace("{0}",this.JSC$11566_dateTimeSymbols_.TIMEFORMATS[N-
8]));UUS(this,t)}else UUS(this,N)},UUS=function(N,t){for(var O=!1,H="",A=0;A<t.length;A++){var Z=t.charAt(A);
if(VpQ.test(Z))for(H.length>0&&(N.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1}),H=""),N.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});A<t.length-1&&t.charAt(A+1)==" ";)A++;else if(O)Z=="'"?A+1<t.length&&t.charAt(A+1)=="'"?(H+="'",A++):O=!1:H+=Z;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(Z)>=0){H.length>0&&(N.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1}),H="");for(var U=t.charAt(A),C=A+1;C<t.length&&t.charAt(C)==U;)C++;U=C-A;U<=0?C=!1:(C="MydhHmsSDkK".indexOf(Z),
C=C>0||C==0&&U<3);N.patternParts_.push({text:Z,count:U,abutStart:!1,numeric:C});A+=U-1}else Z=="'"?A+1<t.length&&t.charAt(A+1)=="'"?(H+="'",A++):O=!0:H+=Z}H.length>0&&N.patternParts_.push({text:H,count:0,abutStart:!1,numeric:!1});t=!1;for(O=0;O<N.patternParts_.length;O++)N.patternParts_[O].numeric?!t&&O+1<N.patternParts_.length&&N.patternParts_[O+1].numeric&&(t=!0,N.patternParts_[O].abutStart=!0):t=!1};
SQ9.prototype.parse=function(N,t,O){var H=!1,A=!1;O&&(H=O.predictive||!1,A=O.validate||!1);if(H)for(O=0;O<this.patternParts_.length;O++){var Z=this.patternParts_[O];if(Z.count>0&&("abBhHkKm".indexOf(Z.text.charAt(0))<0||Z.count>2||Z.abutStart))throw Error("de`"+Z.text.charAt(0));}Z=new CF0;O=[0];Z.dayPeriodIndex=-1;for(var U=0;U<this.patternParts_.length&&!(H&&O[0]>=N.length);U++){if(this.patternParts_[U].count==0){a:{var C=N;var F=O,g=this.patternParts_[U],B=H;if(g.text.match(VpQ)!=null){if(g=F[0],
Kbp(C,F),F[0]>g){C=!0;break a}}else{if(C.indexOf(g.text,F[0])==F[0]){F[0]+=g.text.length;C=!0;break a}if(B&&g.text.indexOf(C.substring(F[0]))==0){F[0]+=C.length-F[0];C=!0;break a}}C=!1}if(C)continue;return 0}if(this.patternParts_[U].abutStart){a:{F=N;g=O;B=U;var c=g[0],u=0;for(C=B;C<this.patternParts_.length;C++){var S=this.patternParts_[C],b=S.count;if(b===0)break;if(C==B&&(b-=u,u++,b==0)){C=0;break a}var z=C>B&&S.numeric,w=g[0];if(!FbS(this,F,g,S,b,Z,!1)||z&&g[0]-w<b)C=B-1,g[0]=c}C-=B}if(C<=0)return 0;
U+=C-1}else if(!FbS(this,N,O,this.patternParts_[U],0,Z,H))return 0}a:{N=A;if(t==null)throw Error("ee");Z.era!=void 0&&Z.year!=void 0&&Z.era==0&&Z.year>0&&(Z.year=-(Z.year-1));Z.year!=void 0&&t.setFullYear(Z.year);H=t.getDate();t.setDate(1);Z.month!=void 0&&t.setMonth(Z.month);Z.day!=void 0?t.setDate(Z.day):(A=v7y(t.getFullYear(),t.getMonth()),t.setDate(H>A?A:H));typeof t.setHours==="function"&&(Z.hours==void 0&&(Z.hours=t.getHours()),Z.hours<12&&(Z.ampm!=void 0&&Z.ampm>0?Z.hours+=12:Z.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(Z.dayPeriodName)||["night1","night2"].includes(Z.dayPeriodName)&&Z.hours>=6)&&(Z.hours+=12)),t.setHours(Z.hours));typeof t.setMinutes==="function"&&Z.minutes!=void 0&&t.setMinutes(Z.minutes);typeof t.setSeconds==="function"&&Z.seconds!=void 0&&t.setSeconds(Z.seconds);typeof t.setMilliseconds==="function"&&Z.milliseconds!=void 0&&t.setMilliseconds(Z.milliseconds);if(N&&(Z.year&&Z.year!=t.getFullYear()||Z.month&&Z.month!=
t.getMonth()||Z.day&&Z.day!=t.getDate()||Z.hours&&Z.hours>=24||Z.minutes&&Z.minutes>=60||Z.seconds&&Z.seconds>=60||Z.milliseconds&&Z.milliseconds>=1E3))t=!1;else{Z.tzOffset!=void 0&&t.setTime(t.getTime()+(Z.tzOffset-t.getTimezoneOffset())*60*1E3);Z.ambiguousYear&&(N=new Date,N.setFullYear(N.getFullYear()-80),t.getTime()<N.getTime()&&t.setFullYear(N.getFullYear()+100));if(Z.dayOfWeek!=void 0)if(Z.day==void 0)Z=(7+Z.dayOfWeek-t.getDay())%7,Z>3&&(Z-=7),N=t.getMonth(),t.setDate(t.getDate()+Z),t.getMonth()!=
N&&t.setDate(t.getDate()+(Z>0?-7:7));else if(Z.dayOfWeek!=t.getDay()){t=!1;break a}t=!0}}return t?O[0]:0};
var FbS=function(N,t,O,H,A,Z,U){Kbp(t,O);if(H.numeric&&A>0&&O[0]+A>t.length)return!1;switch(H.text.charAt(0)){case "G":return K7(t,O,[N.JSC$11566_dateTimeSymbols_.ERAS],function(C){return Z.era=C}),!0;
case "M":case "L":return dUf(N,t,O,A,H,Z);case "E":return K7(t,O,[N.JSC$11566_dateTimeSymbols_.WEEKDAYS,N.JSC$11566_dateTimeSymbols_.SHORTWEEKDAYS],function(C){return Z.dayOfWeek=C});
case "B":case "b":return A=[],N=[[].concat(N.JSC$11566_dateTimeSymbols_.AMPMS)],A.push("isAm"),A.push("isPm"),t=K7(t,O,N,function(C){return Z.dayPeriodIndex=C},U),Z.dayPeriodName=A[Z.dayPeriodIndex],U?t:!0;
case "a":return t=K7(t,O,[N.JSC$11566_dateTimeSymbols_.AMPMS],function(C){return Z.ampm=C},U),U?t:!0;
case "y":return gSp(N,t,O,H,A,Z);case "Q":return K7(t,O,[N.JSC$11566_dateTimeSymbols_.QUARTERS,N.JSC$11566_dateTimeSymbols_.SHORTQUARTERS],function(C){Z.month=C*3;Z.day=1});
case "d":return Fn(N,t,O,H,A,function(C){Z.day=C}),!0;
case "S":return y5R(N,t,O,A,Z);case "h":case "K":case "H":case "k":return t=Fn(N,t,O,H,A,function(C){Z.hours=H.text.charAt(0)==="h"&&C===12?0:C},U),U?t:!0;
case "m":return t=Fn(N,t,O,H,A,function(C){Z.minutes=C},U),U?t:!0;
case "s":return Fn(N,t,O,H,A,function(C){Z.seconds=C}),!0;
case "z":case "Z":case "v":return BZB(N,t,O,Z);default:return!1}},gSp=function(N,t,O,H,A,Z){var U=O[0];
A=dA(N,t,O,A);A===null&&(A=dA(N,t,O,0,!0));if(A===null)return!1;A>=0&&O[0]-U==2&&H.count==2?(N=A,t=(new Date).getFullYear()-80,O=t%100,Z.ambiguousYear=N==O,N+=Math.floor(t/100)*100+(N<O?100:0),Z.year=N):Z.year=A;return!0},dUf=function(N,t,O,H,A,Z){return A.numeric&&Fn(N,t,O,A,H,function(U){Z.month=U-1})?!0:K7(t,O,[N.JSC$11566_dateTimeSymbols_.MONTHS,
N.JSC$11566_dateTimeSymbols_.STANDALONEMONTHS,N.JSC$11566_dateTimeSymbols_.SHORTMONTHS,N.JSC$11566_dateTimeSymbols_.STANDALONESHORTMONTHS],function(U){Z.month=U})},y5R=function(N,t,O,H,A){var Z=O[0];
N=dA(N,t,O,H);if(N===null)return!1;O=O[0]-Z;A.milliseconds=O<3?N*Math.pow(10,3-O):Math.round(N/Math.pow(10,O-3));return!0},BZB=function(N,t,O,H){t.indexOf("GMT",O[0])==O[0]&&(O[0]+=3);
if(O[0]>=t.length)return H.tzOffset=0,!0;var A=O[0],Z=dA(N,t,O,0,!0);if(Z===null)return!1;if(O[0]<t.length&&t.charAt(O[0])==":"){var U=Z*60;O[0]++;Z=dA(N,t,O,0);if(Z===null)return!1;U+=Z}else U=Z,U=U<24&&O[0]-A<=3?U*60:U%100+U/100*60;H.tzOffset=-U;return!0},Fn=function(N,t,O,H,A,Z,U){U=U||!1;
var C=O[0];N=dA(N,t,O,A);if(N===null)return!1;if(U&&O[0]-C<H.count){if(O[0]<t.length)return!1;N*=Math.pow(10,H.count-(O[0]-C))}Z(N);return!0},K7=function(N,t,O,H,A){A=A||!1;
for(var Z,U=0;U<O.length;U++){Z=t;for(var C=O[U],F=A,g=0,B=null,c=N.substring(Z[0]).toLowerCase(),u=0;u<C.length;u++){var S=C[u].toLowerCase();if(F&&S.indexOf(c)==0){g=c.length;B=u;break}C[u].length>g&&c.indexOf(S)==0&&(g=C[u].length,B=u)}B!==null&&(Z[0]+=g);Z=B;if(Z!==null)return H(Z),!0}return!1},Kbp=function(N,t){(N=N.substring(t[0]).match(DUu))&&(t[0]+=N[0].length)},dA=function(N,t,O,H,A){t=H>0?t.substring(0,O[0]+H):t;
A=A||!1;if(N.JSC$11566_dateTimeSymbols_.ZERODIGIT){H=[];for(var Z=O[0];Z<t.length;Z++){var U=t.charCodeAt(Z)-N.JSC$11566_dateTimeSymbols_.ZERODIGIT;H.push(0<=U&&U<=9?String.fromCharCode(U+48):t.charAt(Z))}t=H.join("")}else t=t.substring(O[0]);N=t.match(new RegExp("^"+(A?"[+-]?":"")+"\\d+"));if(!N)return null;O[0]+=N[0].length;return parseInt(N[0],10)},CF0=function(){};
CF0.prototype.ambiguousYear=!1;var c50;
c50={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 $Ua={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}"]};
$Ua={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 j8X=function(){var N={type:"unit",style:"narrow"};this.listType_=N&&N.type?N.type:"conjunction";this.listStyle_=N&&N.style?N.style:"long";this.listSymbols_=$Ua;N=0;switch(this.listStyle_){case "short":N=1;break;case "narrow":N=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[N];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[N];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[N];this.listEndPattern_=
this.listSymbols_.AND_END[N];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[N];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[N];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[N];this.listEndPattern_=this.listSymbols_.OR_END[N];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[N],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[N],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[N],this.listEndPattern_=this.listSymbols_.UNIT_END[N]}};
j8X.prototype.format=function(N){return ixf(this,N)};
var ixf=function(N,t){var O=t.length;switch(O){case 0:return"";case 1:return String(t[0]);case 2:return N.listTwoPattern_.replace("{0}",String(t[0])).replace("{1}",String(t[1]))}for(var H=N.listStartPattern_.replace("{0}",String(t[0])).replace("{1}",String(t[1])),A=2;A<O-1;++A)H=N.listMiddlePattern_.replace("{0}",H).replace("{1}",String(t[A]));return N.listEndPattern_.replace("{0}",H).replace("{1}",String(t[O-1]))};var uFX={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"},SMZ=uFX,hPr=uFX;hPr=SMZ=uFX;var bxZ,gA,Bb,D6Q,yy,MpQ;
_.r8=function(N,t,O,H){var A;if(A=t){a:if(t&&t.length===3){for(A=0;A<3;A++){var Z=t[A];if(Z<"A"||Z>"Z"&&Z<"a"||Z>"z"){A=!1;break a}}A=!0}else A=!1;A=!A}if(A)throw new TypeError("fe");this.intlCurrencyCode_=t?t.toUpperCase():null;this.currencyStyle_=O||0;this.overrideNumberFormatSymbols_=H||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_=gA(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof N==="number")switch(N){case 1:yy(this,gA(this).DECIMAL_PATTERN);break;case 2:yy(this,gA(this).SCIENTIFIC_PATTERN);break;case 3:yy(this,gA(this).PERCENT_PATTERN);break;case 4:N=gA(this).CURRENCY_PATTERN;t=["0"];if(O=
Vy[Bb(this)]){O=O[0]&7;if(O>0)for(t.push("."),H=0;H<O;H++)t.push("0");N=N.replace(/0.00/g,t.join(""))}yy(this,N);break;case 5:MpQ(this,1);break;case 6:MpQ(this,2);break;default:throw Error("ie");}else yy(this,N)};
bxZ=!1;gA=function(N){return N.overrideNumberFormatSymbols_||(bxZ?hPr:SMZ)};
Bb=function(N){return N.intlCurrencyCode_||gA(N).DEF_CURRENCY_CODE};
D6Q=function(N,t){if(t>308)throw Error("he`"+t);N.maximumFractionDigits_=t;return N};
yy=function(N,t){var O=[0];N.positivePrefix_=pzB(N,t,O);for(var H=O[0],A=-1,Z=0,U=0,C=0,F=-1,g=t.length,B=!0;O[0]<g&&B;O[0]++)switch(t.charAt(O[0])){case "#":U>0?C++:Z++;F>=0&&A<0&&F++;break;case "0":if(C>0)throw Error("oe`"+t);U++;F>=0&&A<0&&F++;break;case ",":F>0&&N.groupingArray_.push(F);F=0;break;case ".":if(A>=0)throw Error("pe`"+t);A=Z+U+C;break;case "E":if(N.useExponentialNotation_)throw Error("qe`"+t);N.useExponentialNotation_=!0;N.minExponentDigits_=0;O[0]+1<g&&t.charAt(O[0]+1)=="+"&&(O[0]++,
N.useSignForPositiveExponent_=!0);for(;O[0]+1<g&&t.charAt(O[0]+1)=="0";)O[0]++,N.minExponentDigits_++;if(Z+U<1||N.minExponentDigits_<1)throw Error("re`"+t);B=!1;break;default:O[0]--,B=!1}U==0&&Z>0&&A>=0&&(U=A,U==0&&U++,C=Z-U,Z=U-1,U=1);if(A<0&&C>0||A>=0&&(A<Z||A>Z+U)||F==0)throw Error("se`"+t);C=Z+U+C;N.maximumFractionDigits_=A>=0?C-A:0;A>=0&&(N.minimumFractionDigits_=Z+U-A,N.minimumFractionDigits_<0&&(N.minimumFractionDigits_=0));N.minimumIntegerDigits_=(A>=0?A:C)-Z;N.useExponentialNotation_&&(N.maximumIntegerDigits_=
Z+N.minimumIntegerDigits_,N.maximumFractionDigits_==0&&N.minimumIntegerDigits_==0&&(N.minimumIntegerDigits_=1));N.groupingArray_.push(Math.max(0,F));N.decimalSeparatorAlwaysShown_=A==0||A==C;H=O[0]-H;N.positiveSuffix_=pzB(N,t,O);O[0]<t.length&&t.charAt(O[0])==";"?(O[0]++,N.multiplier_!=1&&(N.negativePercentSignExpected_=!0),N.negativePrefix_=pzB(N,t,O),O[0]+=H,N.negativeSuffix_=pzB(N,t,O)):(N.negativePrefix_+=N.positivePrefix_,N.negativeSuffix_+=N.positiveSuffix_)};
MpQ=function(N,t){N.compactStyle_=t;yy(N,gA(N).DECIMAL_PATTERN);N.minimumFractionDigits_=0;D6Q(N,2);if(N.minimumFractionDigits_>0)throw Error("ge");N.significantDigits_=2};
_.r8.prototype.parse=function(N,t){t=t||[0];if(this.compactStyle_!==0)throw Error("je");N=N.replace(/ |\u202f/g,"\u00a0");var O=N.indexOf(this.positivePrefix_,t[0])==t[0],H=N.indexOf(this.negativePrefix_,t[0])==t[0];O&&H&&(this.positivePrefix_.length>this.negativePrefix_.length?H=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(O=!1));O?t[0]+=this.positivePrefix_.length:H&&(t[0]+=this.negativePrefix_.length);if(N.indexOf(gA(this).INFINITY,t[0])==t[0]){t[0]+=gA(this).INFINITY.length;var A=
Infinity}else{A=N;var Z=!1,U=!1,C=!1,F=-1,g=1,B=gA(this).DECIMAL_SEP,c=gA(this).GROUP_SEP,u=gA(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");c=c.replace(/\u202f/g,"\u00a0");for(var S="";t[0]<A.length;t[0]++){var b=A.charAt(t[0]),z=Lbp(this,b);if(z>=0&&z<=9)S+=z,C=!0;else if(b==B.charAt(0)){if(Z||U)break;S+=".";Z=!0}else if(b==c.charAt(0)&&("\u00a0"!=c.charAt(0)||t[0]+1<A.length&&Lbp(this,A.charAt(t[0]+1))>=0)){if(Z||U)break}else if(b==u.charAt(0)){if(U)break;S+="E";U=!0;F=t[0]}else if(b==
"+"||b=="-"){if(C&&F!=t[0]-1)break;S+=b}else if(this.multiplier_==1&&b==gA(this).PERCENT.charAt(0)){if(g!=1)break;g=100;if(C){t[0]++;break}}else if(this.multiplier_==1&&b==gA(this).PERMILL.charAt(0)){if(g!=1)break;g=1E3;if(C){t[0]++;break}}else break}this.multiplier_!=1&&(g=this.multiplier_);A=parseFloat(S)/g}if(O){if(N.indexOf(this.positiveSuffix_,t[0])!=t[0])return NaN;t[0]+=this.positiveSuffix_.length}else if(H){if(N.indexOf(this.negativeSuffix_,t[0])!=t[0])return NaN;t[0]+=this.negativeSuffix_.length}return H?
-A:A};
_.r8.prototype.format=function(N){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(N))return gA(this).NAN;var t=[];var O=N;if(this.compactStyle_==0)O=cb;else{O=Math.abs(O);var H=zPE(this,O<=1?0:YM_(O)).divisorBase;O=zPE(this,H+YM_(aEp(this,$c(O,-H)).intValue))}N=$c(N,-O.divisorBase);(H=N<0||N==0&&1/N<0)?O.negative_prefix?t.push(O.negative_prefix):(t.push(O.prefix),t.push(this.negativePrefix_)):(t.push(O.prefix),t.push(this.positivePrefix_));if(isFinite(N))if(N*=
H?-1:1,N*=this.multiplier_,this.useExponentialNotation_){var A=N;if(A==0)TZr(this,A,this.minimumIntegerDigits_,t),wzf(this,0,t);else{var Z=Math.floor(Math.log(A)/Math.log(10)+2E-15);A=$c(A,-Z);var U=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(U=Z%this.maximumIntegerDigits_,U<0&&(U=this.maximumIntegerDigits_+U),A=$c(A,U),Z-=U,U=1):this.minimumIntegerDigits_<1?(Z++,A=$c(A,-1)):(Z-=this.minimumIntegerDigits_-1,A=$c(A,this.minimumIntegerDigits_-
1));TZr(this,A,U,t);wzf(this,Z,t)}}else TZr(this,N,this.minimumIntegerDigits_,t);else t.push(gA(this).INFINITY);H?O.negative_suffix?t.push(O.negative_suffix):(isFinite(N)&&t.push(O.suffix),t.push(this.negativeSuffix_)):(isFinite(N)&&t.push(O.suffix),t.push(this.positiveSuffix_));return t.join("")};
var aEp=function(N,t){var O=$c(t,N.maximumFractionDigits_);N.significantDigits_>0&&(O=ePy(O,N.significantDigits_,N.maximumFractionDigits_));O=Math.round(O);if(isFinite(O)){var H=Math.floor($c(O,-N.maximumFractionDigits_));O=Math.floor(O-$c(H,N.maximumFractionDigits_));if(O<0||O>=$c(1,N.maximumFractionDigits_))H=Math.round(t),O=0}else H=t,O=0;return{intValue:H,fracValue:O}},TZr=function(N,t,O,H){if(N.minimumFractionDigits_>N.maximumFractionDigits_)throw Error("le");
H||(H=[]);t=aEp(N,t);var A=t.intValue,Z=t.fracValue,U=N.minimumFractionDigits_>0||Z>0||!1;t=N.minimumFractionDigits_;U&&(t=N.minimumFractionDigits_);for(var C="",F=A;F>1E20;)C="0"+C,F=Math.round($c(F,-1));C=F+C;var g=gA(N).DECIMAL_SEP;F=gA(N).ZERO_DIGIT.codePointAt(0);var B=C.length,c=0;if(A>0||O>0){for(A=B;A<O;A++)H.push(String.fromCodePoint(F));if(N.groupingArray_.length>=2)for(O=1;O<N.groupingArray_.length;O++)c+=N.groupingArray_[O];O=B-c;if(O>0){A=N.groupingArray_;c=B=0;for(var u,S=gA(N).GROUP_SEP,
b=C.length,z=0;z<b;z++)if(H.push(String.fromCodePoint(F+Number(C.charAt(z)))),b-z>1)if(u=A[c],z<O){var w=O-z;(u===1||u>0&&w%u===1)&&H.push(S)}else c<A.length&&(z===O?c+=1:u===z-O-B+1&&(H.push(S),B+=u,c+=1))}else{O=C;C=N.groupingArray_;A=gA(N).GROUP_SEP;u=O.length;S=[];for(B=C.length-1;B>=0&&u>0;B--){c=C[B];for(b=0;b<c&&u-b-1>=0;b++)S.push(String.fromCodePoint(F+Number(O.charAt(u-b-1))));u-=c;u>0&&S.push(A)}H.push.apply(H,S.reverse())}}else U||H.push(String.fromCodePoint(F));(N.decimalSeparatorAlwaysShown_||
U)&&H.push(g);Z=String(Z);U=Z.split("e+");U.length==2&&(Z=String(ePy(parseFloat(U[0]),N.significantDigits_,1)),Z=Z.replace(".",""),Z+=(0,_.doS)("0",parseInt(U[1],10)-Z.length+1));N.maximumFractionDigits_+1>Z.length&&(Z="1"+(0,_.doS)("0",N.maximumFractionDigits_-Z.length)+Z);for(N=Z.length;Z.charAt(N-1)=="0"&&N>t+1;)N--;for(t=1;t<N;t++)H.push(String.fromCodePoint(F+Number(Z.charAt(t))))},wzf=function(N,t,O){O.push(gA(N).EXP_SYMBOL);
t<0?(t=-t,O.push(gA(N).MINUS_SIGN)):N.useSignForPositiveExponent_&&O.push(gA(N).PLUS_SIGN);t=""+t;for(var H=gA(N).ZERO_DIGIT,A=t.length;A<N.minExponentDigits_;A++)O.push(H);N=H.codePointAt(0)-PFB;for(H=0;H<t.length;H++)O.push(String.fromCodePoint(N+t.codePointAt(H)))},Lbp=function(N,t){t=t.codePointAt(0);
if(48<=t&&t<58)return t-48;N=gA(N).ZERO_DIGIT.codePointAt(0);return N<=t&&t<N+10?t-N:-1},PFB="0".codePointAt(0),pzB=function(N,t,O){for(var H="",A=!1,Z=t.length;O[0]<Z;O[0]++){var U=t.charAt(O[0]);
if(U=="'")O[0]+1<Z&&t.charAt(O[0]+1)=="'"?(O[0]++,H+="'"):A=!A;else if(A)H+=U;else switch(U){case "#":case "0":case ",":case ".":case ";":return H;case "\u00a4":if(O[0]+1<Z&&t.charAt(O[0]+1)=="\u00a4")O[0]++,H+=Bb(N);else switch(N.currencyStyle_){case 0:U=Bb(N);H+=U in Vy?Vy[U][1]:U;break;case 2:U=Bb(N);var C=Vy[U];H+=C?U==C[1]?U:U+" "+C[1]:U;break;case 1:U=Bb(N),H+=U in Vy?Vy[U][2]:U}break;case "%":if(!N.negativePercentSignExpected_&&N.multiplier_!=1)throw Error("me");if(N.negativePercentSignExpected_&&
N.multiplier_!=100)throw Error("ne");N.multiplier_=100;N.negativePercentSignExpected_=!1;H+=gA(N).PERCENT;break;case "\u2030":if(!N.negativePercentSignExpected_&&N.multiplier_!=1)throw Error("me");if(N.negativePercentSignExpected_&&N.multiplier_!=1E3)throw Error("ne");N.multiplier_=1E3;N.negativePercentSignExpected_=!1;H+=gA(N).PERMILL;break;default:H+=U}}return H},cb={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},zPE=function(N,t){N=N.compactStyle_==1?Zi.COMPACT_DECIMAL_SHORT_PATTERN:Zi.COMPACT_DECIMAL_LONG_PATTERN;N==null&&(N=Zi.COMPACT_DECIMAL_SHORT_PATTERN);if(t<3)return cb;t=Math.min(14,t);var O=N[$c(1,t)];for(--t;!O&&t>=3;)O=N[$c(1,t)],t--;if(!O)return cb;O=O.other;var H=N="",A=O.indexOf(";");A>=0&&(O=O.substring(0,A),A=O.substring(A+1))&&(H=/([^0]*)(0+)(.*)/.exec(A),N=H[1],H=H[3]);return O&&O!="0"?(O=/([^0]*)(0+)(.*)/.exec(O))?{divisorBase:t+
1-(O[2].length-1),negative_prefix:N,negative_suffix:H,prefix:O[1],suffix:O[3]}:cb:cb},YM_=function(N){if(!isFinite(N))return N>0?N:0;
for(var t=0;(N/=10)>=1;)t++;return t},$c=function(N,t){if(!N||!isFinite(N)||t==0)return N;
N=String(N).split("e");return parseFloat(N[0]+"e"+(parseInt(N[1]||0,10)+t))},XzB=function(N,t){return N&&isFinite(N)?$c(Math.round($c(N,t)),-t):N},ePy=function(N,t,O){if(!N)return N;
t=t-YM_(N)-1;return t<-O?XzB(N,-O):XzB(N,t)};var xUr=function(N){return N%10==1&&N%100!=11?"one":N%10==2&&N%100!=12?"two":N%10==3&&N%100!=13?"few":"other"},kEu=xUr;
kEu=xUr;var qMa=function(N,t){var O=N|0;if(void 0===t){t=Math;var H=t.min,A=N+"",Z=A.indexOf(".");t=H.call(t,Z===-1?0:A.length-Z-1,3)}H=Math.pow(10,t);N={v:t,f:(N*H|0)%H};return O==1&&N.v==0?"one":"other"},W5=qMa;
W5=qMa;var r5_=function(N){this.JSC$11609_pattern_=N;this.parsedPattern_=this.literals_=this.initialLiterals_=null;N=SMZ;var t=Zi;if(fEZ!==N||nSf!==t)fEZ=N,nSf=t,Wba=new _.r8(1);this.numberFormatter_=Wba},fEZ=null,nSf=null,Wba=null,IEa=RegExp("'([{}#].*?)'","g"),lES=RegExp("''","g");
r5_.prototype.format=function(N){if(this.JSC$11609_pattern_){this.initialLiterals_=[];var t=Q8_(this,this.JSC$11609_pattern_);this.parsedPattern_=mUp(this,t);this.JSC$11609_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Il(this.initialLiterals_),t=[],ESr(this,this.parsedPattern_,N,!1,t),N=t.join("");this.literals_.length>0;)N=N.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else N="";return N};
var ESr=function(N,t,O,H,A){for(var Z=0;Z<t.length;Z++)switch(t[Z].type){case 4:A.push(t[Z].value);break;case 3:var U=t[Z].value;var C=N,F=A,g=O[U];g===void 0?F.push("Undefined parameter - "+U):(C.literals_.push(g),F.push(C.buildPlaceholder_(C.literals_)));break;case 2:U=t[Z].value;C=N;F=O;g=H;var B=A,c=U.argumentIndex;F[c]===void 0?B.push("Undefined parameter - "+c):(c=U[F[c]],c===void 0&&(c=U.other),ESr(C,c,F,g,B));break;case 0:U=t[Z].value;GEX(N,U,O,W5,H,A);break;case 1:U=t[Z].value,GEX(N,U,O,
kEu,H,A)}},GEX=function(N,t,O,H,A,Z){var U=t.argumentIndex,C=t.argumentOffset,F=+O[U];
isNaN(F)?Z.push("Undefined or invalid parameter - "+U):(C=F-C,U=t[O[U]],U===void 0&&(H=H(Math.abs(C)),U=t[H],U===void 0&&(U=t.other)),t=[],ESr(N,U,O,A,t),O=t.join(""),A?Z.push(O):(N=N.numberFormatter_.format(C),Z.push(O.replace(/#/g,N))))},Q8_=function(N,t){var O=N.initialLiterals_,H=N.buildPlaceholder_.bind(N);
t=t.replace(lES,function(){O.push("'");return H(O)});
return t=t.replace(IEa,function(A,Z){O.push(Z);return H(O)})},RPu=function(N){var t=0,O=[],H=[],A=/[{}]/g;
A.lastIndex=0;for(var Z;Z=A.exec(N);){var U=Z.index;Z[0]=="}"?(O.pop(),O.length==0&&(Z={type:1},Z.value=N.substring(t,U),H.push(Z),t=U+1)):(O.length==0&&(t=N.substring(t,U),t!=""&&H.push({type:0,value:t}),t=U+1),O.push("{"))}N=N.substring(t);N!=""&&H.push({type:0,value:N});return H},vSR=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,J5S=/^\s*(\w+)\s*,\s*selectordinal\s*,/,oSB=/^\s*(\w+)\s*,\s*select\s*,/,mUp=function(N,t){var O=[];
t=RPu(t);for(var H=0;H<t.length;H++){var A={};if(0==t[H].type)A.type=4,A.value=t[H].value;else if(1==t[H].type){var Z=t[H].value;switch(vSR.test(Z)?0:J5S.test(Z)?1:oSB.test(Z)?2:/^\s*\w+\s*/.test(Z)?3:5){case 2:A.type=2;A.value=s8f(N,t[H].value);break;case 0:A.type=0;A.value=NvY(N,t[H].value);break;case 1:A.type=1;A.value=tqR(N,t[H].value);break;case 3:A.type=3,A.value=t[H].value}}O.push(A)}return O},s8f=function(N,t){var O="";
t=t.replace(oSB,function(C,F){O=F;return""});
var H={};H.argumentIndex=O;t=RPu(t);for(var A=0;A<t.length;){var Z=t[A].value;A++;var U=void 0;1==t[A].type&&(U=mUp(N,t[A].value));H[Z.replace(/\s/g,"")]=U;A++}return H},NvY=function(N,t){var O="",H=0;
t=t.replace(vSR,function(F,g,B){O=g;B&&(H=parseInt(B,10));return""});
var A={};A.argumentIndex=O;A.argumentOffset=H;t=RPu(t);for(var Z=0;Z<t.length;){var U=t[Z].value;Z++;var C=void 0;1==t[Z].type&&(C=mUp(N,t[Z].value));A[U.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=C;Z++}return A},tqR=function(N,t){var O="";
t=t.replace(J5S,function(C,F){O=F;return""});
var H={};H.argumentIndex=O;H.argumentOffset=0;t=RPu(t);for(var A=0;A<t.length;){var Z=t[A].value;A++;var U=void 0;1==t[A].type&&(U=mUp(N,t[A].value));H[Z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=U;A++}return H};
r5_.prototype.buildPlaceholder_=function(N){return"\ufddf_"+(N.length-1).toString(10)+"_"};var Ait=function(){var N={style:1},t=Oi_;this.style_=(N==null?void 0:N.style)||0;this.durationSymbols_=t||c50},Hip=function(N,t){switch(t){default:case "years":return N.durationSymbols_.YEAR;
case "months":return N.durationSymbols_.MONTH;case "weeks":return N.durationSymbols_.WEEK;case "days":return N.durationSymbols_.DAY;case "hours":return N.durationSymbols_.HOUR;case "minutes":return N.durationSymbols_.MINUTE;case "seconds":return N.durationSymbols_.SECOND}},j6=function(N,t,O){a:{O=Hip(N,O);
switch(N.style_){case 1:if(O.LONG!=void 0){N=O.LONG;break a}case 2:if(O.NARROW!=void 0){N=O.NARROW;break a}default:N=O.SHORT;break a}N=void 0}return N?(new r5_("{DURATION_VALUE,plural,"+N+"}")).format({DURATION_VALUE:t}):""};
Ait.prototype.format=function(N){var t=[],O=N.years,H=N.months,A=N.weeks,Z=N.days,U=N.hours,C=N.minutes;N=N.seconds;O!=null&&t.push(j6(this,O,"years"));H!=null&&t.push(j6(this,H,"months"));A!=null&&t.push(j6(this,A,"weeks"));Z!=null&&t.push(j6(this,Z,"days"));U!=null&&t.push(j6(this,U,"hours"));C!=null&&t.push(j6(this,C,"minutes"));N!=null&&t.push(j6(this,N,"seconds"));return(new j8X).format(t)};var AqY;
AqY={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 iXG=function(){this.rdtfSymbols_=Zi_||AqY;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
iXG.prototype.format=function(N,t){a:{t=Vqa(this,t);switch(this.style_){case 2:if(t.NARROW!=void 0){t=t.NARROW;break a}case 1:if(t.SHORT!=void 0){t=t.SHORT;break a}default:t=t.LONG;break a}t=void 0}if(!this.alwaysNumeric_&&t&&t.R&&t.R[""+N])N=t.R[""+N];else if(t){var O=Math.abs(N);N=(new r5_("{N,plural,"+(N>0||N==0&&1/N==Infinity?t.F:t.P)+"}")).format({N:O})}else N="";return N};
var Vqa=function(N,t){switch(t){default:case 0:return N.rdtfSymbols_.YEAR;case 1:return N.rdtfSymbols_.QUARTER;case 2:return N.rdtfSymbols_.MONTH;case 3:return N.rdtfSymbols_.WEEK;case 4:return N.rdtfSymbols_.DAY;case 5:return N.rdtfSymbols_.HOUR;case 6:return N.rdtfSymbols_.MINUTE;case 7:return N.rdtfSymbols_.SECOND}};var DuB=function(N,t,O,H,A,Z,U,C){this.x0=N;this.y0=t;this.x1=O;this.y1=H;this.x2=A;this.y2=Z;this.x3=U;this.y3=C};
DuB.prototype.clone=function(){return new DuB(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
DuB.prototype.equals=function(N){return this.x0==N.x0&&this.y0==N.y0&&this.x1==N.x1&&this.y1==N.y1&&this.x2==N.x2&&this.y2==N.y2&&this.x3==N.x3&&this.y3==N.y3};
var UuB=function(N,t){if(t==0)return N.x0;if(t==1)return N.x3;var O=eW(N.x0,N.x1,t),H=eW(N.x1,N.x2,t);N=eW(N.x2,N.x3,t);O=eW(O,H,t);H=eW(H,N,t);return eW(O,H,t)},CeE=function(N,t){var O=(t-N.x0)/(N.x3-N.x0);
if(O<=0)return 0;if(O>=1)return 1;for(var H=0,A=1,Z=0,U=0;U<8;U++){Z=UuB(N,O);var C=(UuB(N,O+1E-6)-Z)/1E-6;if(Math.abs(Z-t)<1E-6)return O;if(Math.abs(C)<1E-6)break;else Z<t?H=O:A=O,O-=(Z-t)/C}for(U=0;Math.abs(Z-t)>1E-6&&U<8;U++)Z<t?(H=O,O=(O+A)/2):(A=O,O=(O+H)/2),Z=UuB(N,O);return O};var iD=function(){_.Xm.call(this);this.JSC$11630_name_="closure_frame"+KhX++;this.iframesForDisposal_=[];Fhy[this.JSC$11630_name_]=this},uD;
_.Od(iD,_.Xm);var Fhy={},KhX=0,du_=function(N,t){var O=eu(N);c_0(t,function(H,A){Array.isArray(H)||(H=[H]);_.Z9(H,function(Z){Z=O.JSC$9483_createDom("INPUT",{type:"hidden",name:A,value:Z});N.appendChild(Z)})})};
_.V=iD.prototype;_.V.JSC$11632_form_=null;_.V.JSC$11632_iframe_=null;_.V.iframeName_=null;_.V.nextIframeId_=0;_.V.JSC$11632_active_=!1;_.V.complete_=!1;_.V.success_=!1;_.V.lastContent_=null;_.V.JSC$11632_lastErrorCode_=0;_.V.iframeDisposalTimer_=null;
_.V.send=function(N,t,O,H){if(this.JSC$11632_active_)throw Error("te");N=new _.Ir(N);t=t?t.toUpperCase():"GET";O&&_.uv(N);uD||(uD=_.kG("FORM"),uD.acceptCharset="utf-8",O=uD.style,O.position="absolute",O.visibility="hidden",O.top=O.left="-10px",O.width=O.height="10px",O.overflow="hidden",document.body.appendChild(uD));this.JSC$11632_form_=uD;t=="GET"&&du_(this.JSC$11632_form_,N.JSC$10187_queryData_);H&&du_(this.JSC$11632_form_,H);O=N.toString();O=I9x(O);H=this.JSC$11632_form_;O=_.GN(xw(O));O!==void 0&&
(H.action=O);this.JSC$11632_form_.method=t;ggY(this);yqY(this)};
_.V.abort=function(N){if(this.JSC$11632_active_){var t=S6(this);if(t)if(w3(t))t.removeAllListeners(void 0);else if(t=er(t)){var O=0,H;for(H in t.listeners)for(var A=t.listeners[H].concat(),Z=0;Z<A.length;++Z)jF(A[Z])&&++O}this.success_=this.JSC$11632_active_=this.complete_=!1;this.JSC$11632_lastErrorCode_=N||7;this.dispatchEvent("abort");BvR(this)}};
_.V.disposeInternal=function(){this.JSC$11632_active_&&this.abort();iD.superClass_.disposeInternal.call(this);this.JSC$11632_iframe_&&cq_(this);yqY(this);this.JSC$11632_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11632_form_=null;this.JSC$11632_lastErrorCode_=0;delete Fhy[this.JSC$11630_name_]};
_.V.isComplete=function(){return this.complete_};
_.V.isSuccess=function(){return this.success_};
_.V.isActive=function(){return this.JSC$11632_active_};
_.V.getResponseText=function(){return this.lastContent_};
_.V.getLastError=function(){return _.Elu(this.JSC$11632_lastErrorCode_)};
var ggY=function(N){N.JSC$11632_active_=!0;N.complete_=!1;N.JSC$11632_lastErrorCode_=0;N.iframeName_=N.JSC$11630_name_+"_"+(N.nextIframeId_++).toString(36);N.JSC$11632_iframe_=eu(N.JSC$11632_form_).JSC$9483_createDom("IFRAME",{name:N.iframeName_,id:N.iframeName_});var t=N.JSC$11632_iframe_.style;t.visibility="hidden";t.width=t.height="10px";t.display="none";_.Ud?t.marginTop=t.marginLeft="-10px":(t.position="absolute",t.top=t.left="-10px");eu(N.JSC$11632_form_).JSC$9481_document_.body.appendChild(N.JSC$11632_iframe_);
t=N.iframeName_+"_inner";var O=eoY(N.JSC$11632_iframe_);if(document.baseURI){var H=DE(t);H='<head><base href="'+DE(document.baseURI)+'"></head><body><iframe id="'+H+'" name="'+H+'"></iframe>';H=JR(H)}else H=DE(t),H=JR('<body><iframe id="'+H+'" name="'+H+'"></iframe>');O.write(od(H));_.SF(O.getElementById(t),"load",N.onIframeLoaded_,!1,N);H=eR("TEXTAREA",N.JSC$11632_form_);for(var A=0,Z=H.length;A<Z;A++){var U=H[A].value;fCp(H[A])!=U&&(_.lt(H[A],U),H[A].value=U)}H=O.importNode(N.JSC$11632_form_,!0);
H.target=t;H.action=N.JSC$11632_form_.action;O.body.appendChild(H);A=eR("SELECT",N.JSC$11632_form_);Z=eR("SELECT",H);U=0;for(var C=A.length;U<C;U++)for(var F=eR("OPTION",A[U]),g=eR("OPTION",Z[U]),B=0,c=F.length;B<c;B++)g[B].selected=F[B].selected;A=eR("INPUT",N.JSC$11632_form_);Z=eR("INPUT",H);U=0;for(C=A.length;U<C;U++)if(A[U].type=="file"&&A[U].value!=Z[U].value){N.JSC$11632_form_.target=t;H=N.JSC$11632_form_;break}try{N.errorHandled_=!1,H.submit(),O.close(),_.D7&&setTimeout(N.testForFirefoxSilentError_.bind(N),
250)}catch(u){_.PG(O.getElementById(t),"load",N.onIframeLoaded_,!1,N),O.close(),hV(N,2)}};
iD.prototype.onIframeLoaded_=function(){_.PG(S6(this),"load",this.onIframeLoaded_,!1,this);try{var N=this.JSC$11632_iframe_?eoY(S6(this)):null;this.complete_=!0;this.JSC$11632_active_=!1;try{var t=N.body;this.lastContent_=t.textContent||t.innerText}catch(A){var O=1}var H;O||typeof this.errorChecker_!="function"||(H=this.errorChecker_(N))&&(O=4);O?hV(this,O):(this.success_=!0,this.JSC$11632_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),BvR(this))}catch(A){hV(this,1)}};
var hV=function(N,t){N.errorHandled_||(N.success_=!1,N.JSC$11632_active_=!1,N.complete_=!0,N.JSC$11632_lastErrorCode_=t,N.dispatchEvent("complete"),N.dispatchEvent("error"),BvR(N),N.errorHandled_=!0)},BvR=function(N){cq_(N);
yqY(N);N.JSC$11632_form_=null;N.dispatchEvent("ready")},cq_=function(N){var t=N.JSC$11632_iframe_;
t&&(t.onreadystatechange=null,t.onload=null,t.onerror=null,N.iframesForDisposal_.push(t));N.iframeDisposalTimer_&&(clearTimeout(N.iframeDisposalTimer_),N.iframeDisposalTimer_=null);_.D7?N.iframeDisposalTimer_=setTimeout(N.disposeIframes_.bind(N),2E3):N.disposeIframes_();N.JSC$11632_iframe_=null;N.iframeName_=null};
iD.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var N=this.iframesForDisposal_.pop();_.wb(N)}};
var yqY=function(N){N.JSC$11632_form_&&N.JSC$11632_form_==uD&&_.nA(N.JSC$11632_form_)},S6=function(N){return N.JSC$11632_iframe_?eoY(N.JSC$11632_iframe_).getElementById(N.iframeName_+"_inner"):null};
iD.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11632_active_){var N=this.JSC$11632_iframe_?eoY(S6(this)):null;N&&!xwx(N,"documentUri")?(_.PG(S6(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?hV(this,3):hV(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Mj=function(N){return N=="\r"||N=="\n"||N==" "||N=="\t"};var $uB;_.bD=function(N){this.errorMessage_=null;this.result_=[];this.JSC$11634_buffer_="";this.stack_=[];this.JSC$11634_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!N||!N.deliverMessageAsRawString)};
$uB={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};_.bD.prototype.isInputValid=function(){return this.streamState_!=3};
_.bD.prototype.done=function(){return this.streamState_===2};
var p7=function(N,t,O){N.streamState_=3;N.errorMessage_="The stream is broken @"+N.JSC$11634_pos_+"/"+O+". With input:\n"+t;throw Error(N.errorMessage_);};
_.bD.prototype.acceptsBinaryInput=function(){return!1};
_.bD.prototype.parse=function(N){function t(){for(;u<N.length;)if(_.Mj(N[u]))u++,Z.JSC$11634_pos_++;else break;return u<g}
function O(){for(var b;;){b=N[u++];if(!b)break;Z.JSC$11634_pos_++;switch(Z.state_){case F.INIT:b==="{"?Z.state_=F.OBJECT_OPEN:b==="["?Z.state_=F.ARRAY_OPEN:_.Mj(b)||p7(Z,N,u);continue;case F.KEY_START:case F.OBJECT_OPEN:if(_.Mj(b))continue;if(Z.state_===F.KEY_START)U.push(F.KEY_END);else if(b==="}"){A("{}");Z.state_=H();continue}else U.push(F.OBJECT_END);b==='"'?Z.state_=F.STRING:p7(Z,N,u);continue;case F.KEY_END:case F.OBJECT_END:if(_.Mj(b))continue;b===":"?(Z.state_===F.OBJECT_END&&(U.push(F.OBJECT_END),
Z.depth_++),Z.state_=F.VALUE):b==="}"?(Z.depth_--,A(),Z.state_=H()):b===","?(Z.state_===F.OBJECT_END&&U.push(F.OBJECT_END),Z.state_=F.KEY_START):p7(Z,N,u);continue;case F.ARRAY_OPEN:case F.VALUE:if(_.Mj(b))continue;if(Z.state_===F.ARRAY_OPEN)if(Z.depth_++,Z.state_=F.VALUE,b==="]"){Z.depth_--;if(Z.depth_===0){Z.state_=F.ARRAY_END;return}A("[]");Z.state_=H();continue}else U.push(F.ARRAY_END);b==='"'?Z.state_=F.STRING:b==="{"?Z.state_=F.OBJECT_OPEN:b==="["?Z.state_=F.ARRAY_OPEN:b==="t"?Z.state_=F.TRUE1:
b==="f"?Z.state_=F.FALSE1:b==="n"?Z.state_=F.NULL1:b!=="-"&&("0123456789".indexOf(b)!==-1?Z.state_=F.NUM_DIGIT:p7(Z,N,u));continue;case F.ARRAY_END:if(b===",")U.push(F.ARRAY_END),Z.state_=F.VALUE,Z.depth_===1&&(c=u);else if(b==="]"){Z.depth_--;if(Z.depth_===0)return;A();Z.state_=H()}else if(_.Mj(b))continue;else p7(Z,N,u);continue;case F.STRING:var z=u;a:for(;;){for(;Z.unicodeCount_>0;)if(b=N[u++],Z.unicodeCount_===4?Z.unicodeCount_=0:Z.unicodeCount_++,!b)break a;if(b==='"'&&!Z.slashed_){Z.state_=
H();break}if(b==="\\"&&!Z.slashed_&&(Z.slashed_=!0,b=N[u++],!b))break;if(Z.slashed_)if(Z.slashed_=!1,b==="u"&&(Z.unicodeCount_=1),b=N[u++])continue;else break;C.lastIndex=u;b=C.exec(N);if(!b){u=N.length+1;break}u=b.index+1;b=N[b.index];if(!b)break}Z.JSC$11634_pos_+=u-z;continue;case F.TRUE1:if(!b)continue;b==="r"?Z.state_=F.TRUE2:p7(Z,N,u);continue;case F.TRUE2:if(!b)continue;b==="u"?Z.state_=F.TRUE3:p7(Z,N,u);continue;case F.TRUE3:if(!b)continue;b==="e"?Z.state_=H():p7(Z,N,u);continue;case F.FALSE1:if(!b)continue;
b==="a"?Z.state_=F.FALSE2:p7(Z,N,u);continue;case F.FALSE2:if(!b)continue;b==="l"?Z.state_=F.FALSE3:p7(Z,N,u);continue;case F.FALSE3:if(!b)continue;b==="s"?Z.state_=F.FALSE4:p7(Z,N,u);continue;case F.FALSE4:if(!b)continue;b==="e"?Z.state_=H():p7(Z,N,u);continue;case F.NULL1:if(!b)continue;b==="u"?Z.state_=F.NULL2:p7(Z,N,u);continue;case F.NULL2:if(!b)continue;b==="l"?Z.state_=F.NULL3:p7(Z,N,u);continue;case F.NULL3:if(!b)continue;b==="l"?Z.state_=H():p7(Z,N,u);continue;case F.NUM_DECIMAL_POINT:b===
"."?Z.state_=F.NUM_DIGIT:p7(Z,N,u);continue;case F.NUM_DIGIT:if("0123456789.eE+-".indexOf(b)!==-1)continue;else u--,Z.JSC$11634_pos_--,Z.state_=H();continue;default:p7(Z,N,u)}}}
function H(){var b=U.pop();return b!=null?b:F.VALUE}
function A(b){Z.depth_>1||(b||(b=c===-1?Z.JSC$11634_buffer_+N.substring(B,u):N.substring(c,u)),Z.deliverMessageAsRawString_?Z.result_.push(b):Z.result_.push(JSON.parse(b)),c=u)}
for(var Z=this,U=Z.stack_,C=Z.stringInputPattern_,F=$uB,g=N.length,B=0,c=-1,u=0;u<g;)switch(Z.streamState_){case 3:return p7(Z,N,u),null;case 2:return t()&&p7(Z,N,u),null;case 0:if(t()){var S=N[u++];Z.JSC$11634_pos_++;if(S==="["){Z.streamState_=1;B=u;Z.state_=F.ARRAY_OPEN;continue}else p7(Z,N,u)}return null;case 1:return O(),Z.depth_===0&&Z.state_==F.ARRAY_END?(Z.streamState_=2,Z.JSC$11634_buffer_=N.substring(u)):Z.JSC$11634_buffer_=c===-1?Z.JSC$11634_buffer_+N.substring(B):N.substring(c),Z.result_.length>
0?(S=Z.result_,Z.result_=[],S):null}return null};_.Od(_.p0,WY);L0.prototype.getValue=function(){return this.JSC$11642_value_};
L0.prototype.clone=function(){return new L0(this.JSC$11642_key_,this.JSC$11642_value_)};var L7=function(N){this.nodes_=[];if(N)a:{if(N instanceof L7){var t=N.getKeys();N=N.getValues();if(this.getCount()<=0){for(var O=this.nodes_,H=0;H<t.length;H++)O.push(new L0(t[H],N[H]));break a}}else t=_.WW.getKeys(N),N=_.WW.getValues(N);for(O=0;O<t.length;O++)this.insert(t[O],N[O])}};
_.V=L7.prototype;_.V.insert=function(N,t){var O=this.nodes_;O.push(new L0(N,t));N=O.length-1;t=this.nodes_;for(O=t[N];N>0;){var H=N-1>>1;if(t[H].JSC$11642_key_>O.JSC$11642_key_)t[N]=t[H],N=H;else break}t[N]=O};
_.V.remove=function(){var N=this.nodes_,t=N.length,O=N[0];if(!(t<=0)){if(t==1)N.length=0;else{N[0]=N.pop();N=0;t=this.nodes_;for(var H=t.length,A=t[N];N<H>>1;){var Z=N*2+1,U=N*2+2;Z=U<H&&t[U].JSC$11642_key_<t[Z].JSC$11642_key_?U:Z;if(t[Z].JSC$11642_key_>A.JSC$11642_key_)break;t[N]=t[Z];N=Z}t[N]=A}return O.getValue()}};
_.V.peek=function(){var N=this.nodes_;if(N.length!=0)return N[0].getValue()};
_.V.getValues=function(){for(var N=this.nodes_,t=[],O=N.length,H=0;H<O;H++)t.push(N[H].getValue());return t};
_.V.getKeys=function(){for(var N=this.nodes_,t=[],O=N.length,H=0;H<O;H++)t.push(N[H].JSC$11642_key_);return t};
_.V.containsValue=function(N){return this.nodes_.some(function(t){return t.getValue()==N})};
_.V.containsKey=function(N){return this.nodes_.some(function(t){return t.JSC$11642_key_==N})};
_.V.clone=function(){return new L7(this)};
_.V.getCount=function(){return this.nodes_.length};
_.V.isEmpty=function(){return this.nodes_.length===0};
_.V.clear=function(){this.nodes_.length=0};_.zG=function(N,t){this.JSC$11648_map_={};this.JSC$11648_keys_=[];this.version_=this.size=0;var O=arguments.length;if(O>1){if(O%2)throw Error("ma");for(var H=0;H<O;H+=2)this.set(arguments[H],arguments[H+1])}else N&&this.addAll(N)};
_.V=_.zG.prototype;_.V.getCount=function(){return this.size};
_.V.getValues=function(){Yc(this);for(var N=[],t=0;t<this.JSC$11648_keys_.length;t++)N.push(this.JSC$11648_map_[this.JSC$11648_keys_[t]]);return N};
_.V.getKeys=function(){Yc(this);return this.JSC$11648_keys_.concat()};
_.V.containsKey=function(N){return this.has(N)};
_.V.has=function(N){return av(this.JSC$11648_map_,N)};
_.V.containsValue=function(N){for(var t=0;t<this.JSC$11648_keys_.length;t++){var O=this.JSC$11648_keys_[t];if(av(this.JSC$11648_map_,O)&&this.JSC$11648_map_[O]==N)return!0}return!1};
_.V.equals=function(N,t){if(this===N)return!0;if(this.size!=N.getCount())return!1;t=t||jER;Yc(this);for(var O,H=0;O=this.JSC$11648_keys_[H];H++)if(!t(this.get(O),N.get(O)))return!1;return!0};
var jER=function(N,t){return N===t};
_.zG.prototype.isEmpty=function(){return this.size==0};
_.zG.prototype.clear=function(){this.JSC$11648_map_={};this.version_=this.size=this.JSC$11648_keys_.length=0};
_.zG.prototype.remove=function(N){return this.delete(N)};
_.zG.prototype.delete=function(N){return av(this.JSC$11648_map_,N)?(delete this.JSC$11648_map_[N],--this.size,this.version_++,this.JSC$11648_keys_.length>2*this.size&&Yc(this),!0):!1};
var Yc=function(N){if(N.size!=N.JSC$11648_keys_.length){for(var t=0,O=0;t<N.JSC$11648_keys_.length;){var H=N.JSC$11648_keys_[t];av(N.JSC$11648_map_,H)&&(N.JSC$11648_keys_[O++]=H);t++}N.JSC$11648_keys_.length=O}if(N.size!=N.JSC$11648_keys_.length){t={};for(H=O=0;O<N.JSC$11648_keys_.length;){var A=N.JSC$11648_keys_[O];av(t,A)||(N.JSC$11648_keys_[H++]=A,t[A]=1);O++}N.JSC$11648_keys_.length=H}};
_.V=_.zG.prototype;_.V.get=function(N,t){return av(this.JSC$11648_map_,N)?this.JSC$11648_map_[N]:t};
_.V.set=function(N,t){av(this.JSC$11648_map_,N)||(this.size+=1,this.JSC$11648_keys_.push(N),this.version_++);this.JSC$11648_map_[N]=t};
_.V.addAll=function(N){if(N instanceof _.zG)for(var t=N.getKeys(),O=0;O<t.length;O++)this.set(t[O],N.get(t[O]));else for(t in N)this.set(t,N[t])};
_.V.forEach=function(N,t){for(var O=this.getKeys(),H=0;H<O.length;H++){var A=O[H],Z=this.get(A);N.call(t,Z,A,this)}};
_.V.clone=function(){return new _.zG(this)};
_.V.transpose=function(){for(var N=new _.zG,t=0;t<this.JSC$11648_keys_.length;t++){var O=this.JSC$11648_keys_[t];N.set(this.JSC$11648_map_[O],O)}return N};
_.V.keys=function(){return xpp(this.__iterator__(!0)).toEs6()};
_.V.values=function(){return xpp(this.__iterator__(!1)).toEs6()};
_.V.entries=function(){var N=this;return NqQ(this.keys(),function(t){return[t,N.get(t)]})};
_.V.__iterator__=function(N){Yc(this);var t=0,O=this.version_,H=this,A=new j8;A.next=function(){if(O!=H.version_)throw Error("ue");if(t>=H.JSC$11648_keys_.length)return un;var Z=H.JSC$11648_keys_[t++];return S8(N?Z:H.JSC$11648_map_[Z])};
return A};
var av=function(N,t){return Object.prototype.hasOwnProperty.call(N,t)};var u_R=function(){this.JSC$11651_map_=new _.zG;this.JSC$11651_head_=new ii_("");this.JSC$11651_head_.next=this.JSC$11651_head_.prev=this.JSC$11651_head_},S9S=function(N,t){if(t=N.JSC$11651_map_.get(t))t.remove(),N.insert_(t);
return t};
_.V=u_R.prototype;_.V.get=function(N,t){return(N=S9S(this,N))?N.value:t};
_.V.set=function(N,t){var O=S9S(this,N);O?O.value=t:(O=new ii_(N,t),this.JSC$11651_map_.set(N,O),this.insert_(O))};
_.V.peek=function(){return this.JSC$11651_head_.next.value};
_.V.shift=function(){return hI_(this,this.JSC$11651_head_.next)};
_.V.pop=function(){return hI_(this,this.JSC$11651_head_.prev)};
_.V.remove=function(N){return(N=this.JSC$11651_map_.get(N))?(this.removeNode(N),!0):!1};
_.V.removeNode=function(N){N.remove();this.JSC$11651_map_.remove(N.key)};
_.V.getCount=function(){return this.JSC$11651_map_.getCount()};
_.V.isEmpty=function(){return this.JSC$11651_map_.isEmpty()};
_.V.getKeys=function(){return this.map(function(N,t){return t})};
_.V.getValues=function(){return this.map(function(N){return N})};
_.V.contains=function(N){return this.some(function(t){return t==N})};
_.V.containsKey=function(N){return this.JSC$11651_map_.containsKey(N)};
_.V.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11651_head_.prev)};
_.V.forEach=function(N,t){for(var O=this.JSC$11651_head_.next;O!=this.JSC$11651_head_;O=O.next)N.call(t,O.value,O.key,this)};
_.V.map=function(N,t){for(var O=[],H=this.JSC$11651_head_.next;H!=this.JSC$11651_head_;H=H.next)O.push(N.call(t,H.value,H.key,this));return O};
_.V.some=function(N,t){for(var O=this.JSC$11651_head_.next;O!=this.JSC$11651_head_;O=O.next)if(N.call(t,O.value,O.key,this))return!0;return!1};
_.V.every=function(N,t){for(var O=this.JSC$11651_head_.next;O!=this.JSC$11651_head_;O=O.next)if(!N.call(t,O.value,O.key,this))return!1;return!0};
_.V.insert_=function(N){N.next=this.JSC$11651_head_.next;N.prev=this.JSC$11651_head_;this.JSC$11651_head_.next=N;for(N.next.prev=N;this.getCount()>100;)this.removeNode(this.JSC$11651_head_.prev)};
var hI_=function(N,t){N.JSC$11651_head_!=t&&N.removeNode(t);return t.value},ii_=function(N,t){this.key=N;
this.value=t};
ii_.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Mqa=function(){L7.apply(this,arguments)};
_.p(Mqa,L7);Mqa.prototype.enqueue=function(N,t){this.insert(N,t)};var biE=function(){var N=Error();N.name="SecurityError";throw N;},hyg=function(){return{get opener(){return null},
get closed(){return!0},get location(){biE()},get document(){biE()},postMessage:function(){},
close:function(){},
focus:function(){}}};var BIv={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 j5z={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 pyR={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(j5z).join("|");var LhR=function(){function N(C){C.substr(-1)!==";"&&(C+=";");return U(C)}
for(var t=Object.keys(pyR).sort($O4),O=Object.keys(j5z).sort($O4),H=0,A=0;H<O.length;H++)t[A]===O[H]?(O[H]+=";?",A++):O[H]+=";";var Z=new RegExp("&(?:"+O.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),U=iAS();return function(C){return String(C).replace(Z,N)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var zIy={};var Y9Z=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"),a_r=/[\\&]/,Tv_=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),wyB=RegExp('[&<>"]',"g"),eIR=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Pea=function(N){return N.charCodeAt(0)===92?N.charAt(1):LhR(N)},XyE=function(N){return a_r.test(N)?N.replace(Tv_,Pea):N},xuy=function(N){try{var t,O="";
if(typeof A!=="string"){var H=A;var A=";/?:@&=+$,-_.!~*'()#"}typeof H==="undefined"&&(H=!0);var Z,U=zIy[A];if(U)var C=U;else{U=zIy[A]=[];for(Z=0;Z<128;Z++){var F=String.fromCharCode(Z);/^[0-9a-z]$/i.test(F)?U.push(F):U.push("%"+("0"+Z.toString(16).toUpperCase()).slice(-2))}for(Z=0;Z<A.length;Z++)U[A.charCodeAt(Z)]=A[Z];C=U}var g=0;for(t=N.length;g<t;g++){var B=N.charCodeAt(g);if(H&&B===37&&g+2<t&&/^[0-9a-f]{2}$/i.test(N.slice(g+1,g+3)))O+=N.slice(g,g+3),g+=2;else if(B<128)O+=C[B];else if(B>=55296&&
B<=57343){if(B>=55296&&B<=56319&&g+1<t){var c=N.charCodeAt(g+1);if(c>=56320&&c<=57343){O+=encodeURIComponent(N[g]+N[g+1]);g++;continue}}O+="%EF%BF%BD"}else O+=encodeURIComponent(N[g])}return O}catch(u){return N}},knf=function(N){switch(N){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return N}},TG=function(N,t){return wyB.test(N)?t?N.replace(eIR,knf):N.replace(wyB,knf):N};/*

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

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var wA;if(String.fromCodePoint)wA=function(N){try{return String.fromCodePoint(N)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t;}};
else{var q9Y=String.fromCharCode,f__=Math.floor;wA=function(){var N=[],t=-1,O=arguments.length;if(!O)return"";for(var H="";++t<O;){var A=Number(arguments[t]);if(!isFinite(A)||A<0||A>1114111||f__(A)!==A)return String.fromCharCode(65533);if(A<=65535)N.push(A);else{A-=65536;var Z=(A>>10)+55296;A=A%1024+56320;N.push(Z,A)}if(t+1===O||N.length>16384)H+=q9Y.apply(null,N),N.length=0}return H}};var ngB=function(N){this.root=this.current=N;this.entering=!0};
ngB.prototype.next=function(){var N=this.current,t=this.entering;if(N===null)return null;a:switch(N._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var O=!0;break a;default:O=!1}t&&O?N._firstChild?(this.current=N._firstChild,this.entering=!0):this.entering=!1:N===this.root?this.current=null:N._next===null?(this.current=
N._parent,this.entering=!1):(this.current=N._next,this.entering=!0);return{entering:t,node:N}};
var we=function(N,t){this._type=N;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=t;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};
we.prototype.appendChild=function(N){N.unlink();N._parent=this;this._lastChild?(this._lastChild._next=N,N._prev=this._lastChild):this._firstChild=N;this._lastChild=N};
we.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var Wh0=function(N,t){t.unlink();t._next=N._next;t._next&&(t._next._prev=t);t._prev=N;N._next=t;t._parent=N._parent;t._next||(t._parent._lastChild=t)};
we.prototype.insertBefore=function(N){N.unlink();N._prev=this._prev;N._prev&&(N._prev._next=N);N._next=this;this._prev=N;N._parent=this._parent;N._prev||(N._parent._firstChild=N)};
_.cv.Object.defineProperties(we.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(N){this._literal=N}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(N){this._destination=N}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(N){this._title=N}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(N){this._info=N}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(N){this._level=N}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(N){this._listData.type=N}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(N){this._listData.tight=N}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(N){this._listData.start=N}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(N){this._onEnter=N}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(N){this._onExit=N}}});var uJt=/[ \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,
SwO={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 rq0=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]/),
I_p=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),l_0=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),QEp=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),muQ=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),EgS=/`+/,Gnp=/^`+/,RIa=/\.\.\./g,vgp=/--+/g,Jq0=/^<([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])?)*)>/,
ogX=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,sE0=/^ *(?:\n *)?/,NPX=/^[ \t\n\x0b\x0c\x0d]/,tSX=/[ \t\n\x0b\x0c\x0d]+/g,OSp=/^\s/,HSQ=/ *$/,Al0=/^ */,ZSS=/^ *(?:\n|$)/,VSB=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),D4u=/^[^\n`\[\]\\!<&*_'"]+/m,Xn=function(N){var t=new we("text");t._literal=N;return t},xc=function(N){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=N||{}};
xc.prototype.match=function(N){N=N.exec(this.subject.slice(this.pos));if(N===null)return null;this.pos+=N.index+N[0].length;return N[0]};
xc.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var kc=function(N){N.match(sE0);return!0},U4_=function(N,t,O){var H=0;
var A=N.pos;if(t===39||t===34)H++,N.pos++;else for(;N.peek()===t;)H++,N.pos++;if(H===0)H=null;else{var Z=A===0?"\n":N.subject.charAt(A-1);var U=N.peek();U=U===-1?"\n":wA(U);var C=OSp.test(U);U=rq0.test(U);var F=OSp.test(Z);var g=rq0.test(Z);Z=!C&&!(U&&!F&&!g);C=!F&&!(g&&!C&&!U);t===95?(F=Z&&(!C||g),U=C&&(!Z||U)):(F=t===39||t===34?Z&&!C:Z,U=C);N.pos=A;H={numdelims:H,can_open:F,can_close:U}}if(!H)return!1;A=H.numdelims;U=N.pos;N.pos+=A;U=t===39?"\u2019":t===34?"\u201c":N.subject.slice(U,N.pos);U=Xn(U);
O.appendChild(U);N.delimiters={cc:t,numdelims:A,origdelims:A,node:U,previous:N.delimiters,next:null,can_open:H.can_open,can_close:H.can_close};N.delimiters.previous!==null&&(N.delimiters.previous.next=N.delimiters);return!0},ClY=function(N,t){t.previous!==null&&(t.previous.next=t.next);
t.next===null?N.delimiters=t.previous:t.next.previous=t.previous},Kpu=function(N,t){var O,H,A=[],Z=!1;
A[95]=t;A[42]=t;A[39]=t;A[34]=t;for(O=N.delimiters;O!==null&&O.previous!==t;)O=O.previous;for(;O!==null;){var U=O.cc;if(O.can_close){var C=O.previous;for(H=!1;C!==null&&C!==t&&C!==A[U];){Z=(O.can_open||C.can_close)&&(C.origdelims+O.origdelims)%3===0;if(C.cc===O.cc&&C.can_open&&!Z){H=!0;break}C=C.previous}var F=O;if(U===42||U===95)if(H){var g=O.numdelims>=2&&C.numdelims>=2?2:1;var B=C.node;var c=O.node;C.numdelims-=g;O.numdelims-=g;B._literal=B._literal.slice(0,B._literal.length-g);c._literal=c._literal.slice(0,
c._literal.length-g);var u=new we(g===1?"emph":"strong");for(g=B._next;g&&g!==c;){var S=g._next;g.unlink();u.appendChild(g);g=S}Wh0(B,u);g=C;S=O;g.next!==S&&(g.next=S,S.previous=g);C.numdelims===0&&(B.unlink(),ClY(N,C));O.numdelims===0&&(c.unlink(),C=O.next,ClY(N,O),O=C)}else O=O.next;else U===39?(O.node._literal="\u2019",H&&(C.node._literal="\u2018"),O=O.next):U===34&&(O.node._literal="\u201d",H&&(C.node.literal="\u201c"),O=O.next);H||Z||(A[U]=F.previous,F.can_open||ClY(N,F))}else O=O.next}for(;N.delimiters!==
null&&N.delimiters!==t;)ClY(N,N.delimiters)},FpB=function(N){N=N.match(I_p);
return N===null?null:XyE(N.substr(1,N.length-2))},d4B=function(N){var t=N.match(l_0);
if(t===null){t=N.pos;for(var O=0,H;(H=N.peek())!==-1;)if(H===92)N.pos+=1,N.peek()!==-1&&(N.pos+=1);else if(H===40)N.pos+=1,O+=1;else if(H===41)if(O<1)break;else N.pos+=1,--O;else if(NPX.exec(wA(H))!==null)break;else N.pos+=1;t=N.subject.substr(t,N.pos-t);return xuy(XyE(t))}return xuy(XyE(t.substr(1,t.length-2)))},gf0=function(N){N=N.match(VSB);
return N===null||N.length>1001?0:N.length},ylu=function(N,t,O,H){N.brackets!==null&&(N.brackets.bracketAfter=!0);
N.brackets={node:t,previous:N.brackets,previousDelimiter:N.delimiters,index:O,image:H,active:!0}},BPZ=function(N,t){var O;
return(O=N.match(D4u))?(N.options.smart?t.appendChild(Xn(O.replace(RIa,"\u2026").replace(vgp,function(H){var A=0,Z=0;H.length%3===0?Z=H.length/3:H.length%2===0?A=H.length/2:H.length%3===2?(A=1,Z=(H.length-2)/3):(A=2,Z=(H.length-4)/3);H="";var U;for(U=0;U<Z;U++)H+="\u2014";for(U=0;U<A;U++)H+="\u2013";return H}))):t.appendChild(Xn(O)),!0):!1},clr=function(N,t,O){N.subject=t;
N.pos=0;t=N.pos;var H=gf0(N);if(H===0)return 0;var A=N.subject.substr(0,H);if(N.peek()===58)N.pos++;else return N.pos=t,0;kc(N);H=d4B(N);if(H===null||H.length===0)return N.pos=t,0;var Z=N.pos;kc(N);var U=FpB(N);U===null&&(U="",N.pos=Z);var C=!0;N.match(ZSS)===null&&(U===""?C=!1:(U="",N.pos=Z,C=N.match(ZSS)!==null));if(!C)return N.pos=t,0;A=h4v(A);if(A==="")return N.pos=t,0;O[A]||(O[A]={destination:H,title:U});return N.pos-t},$4y=function(N,t){var O,H=N.peek();
if(H===-1)return!1;switch(H){case 10:N.pos+=1;if((O=t._lastChild)&&O.type==="text"&&O._literal[O._literal.length-1]===" "){var A=O._literal[O._literal.length-2]===" ";O._literal=O._literal.replace(HSQ,"");t.appendChild(new we(A?"linebreak":"softbreak"))}else t.appendChild(new we("softbreak"));N.match(Al0);O=!0;break;case 92:O=N.subject;N.pos+=1;N.peek()===10?(N.pos+=1,O=new we("linebreak"),t.appendChild(O)):QEp.test(O.charAt(N.pos))?(t.appendChild(Xn(O.charAt(N.pos))),N.pos+=1):t.appendChild(Xn("\\"));
O=!0;break;case 96:a:if(O=N.match(Gnp),O===null)O=!1;else{A=N.pos;for(var Z;(Z=N.match(EgS))!==null;)if(Z===O){Z=new we("code");Z._literal=N.subject.slice(A,N.pos-O.length).trim().replace(tSX," ");t.appendChild(Z);O=!0;break a}N.pos=A;t.appendChild(Xn(O));O=!0}break;case 42:case 95:O=U4_(N,H,t);break;case 39:case 34:O=N.options.smart&&U4_(N,H,t);break;case 91:O=N.pos;N.pos+=1;A=Xn("[");t.appendChild(A);ylu(N,A,O,!1);O=!0;break;case 33:O=N.pos;N.pos+=1;N.peek()===91?(N.pos+=1,A=Xn("!["),t.appendChild(A),
ylu(N,A,O+1,!0)):t.appendChild(Xn("!"));O=!0;break;case 93:var U,C=!1,F;N.pos+=1;var g=N.pos;A=N.brackets;if(A===null)t.appendChild(Xn("]"));else if(A.active){O=A.image;var B=N.pos;N.peek()===40&&(N.pos++,kc(N)&&(Z=d4B(N))!==null&&kc(N)&&(NPX.test(N.subject.charAt(N.pos-1))&&(U=FpB(N)),1)&&kc(N)&&N.peek()===41?(N.pos+=1,C=!0):N.pos=B);if(!C){var c=N.pos,u=gf0(N);u>2?F=N.subject.slice(c,c+u):A.bracketAfter||(F=N.subject.slice(A.index,g));u===0&&(N.pos=B);F&&(F=N.refmap[h4v(F)])&&(Z=F.destination,U=
F.title,C=!0)}if(C){g=new we(O?"image":"link");g._destination=Z;g._title=U||"";for(Z=A.node._next;Z;)U=Z._next,Z.unlink(),g.appendChild(Z),Z=U;t.appendChild(g);Kpu(N,A.previousDelimiter);N.brackets=N.brackets.previous;A.node.unlink();if(!O)for(A=N.brackets;A!==null;)A.image||(A.active=!1),A=A.previous}else N.brackets=N.brackets.previous,N.pos=g,t.appendChild(Xn("]"))}else t.appendChild(Xn("]")),N.brackets=N.brackets.previous;O=!0;break;case 60:(O=N.match(Jq0))?(O=O.slice(1,O.length-1),A=new we("link"),
A._destination=xuy("mailto:"+O),A._title="",A.appendChild(Xn(O)),t.appendChild(A),O=!0):(O=N.match(ogX))?(O=O.slice(1,O.length-1),A=new we("link"),A._destination=xuy(O),A._title="",A.appendChild(Xn(O)),t.appendChild(A),O=!0):O=!1;O||(O=N.match(Y9Z),O===null?O=!1:(A=new we("html_inline"),A._literal=O,t.appendChild(A),O=!0));break;case 38:(O=N.match(muQ))?(t.appendChild(Xn(LhR(O))),O=!0):O=!1;break;default:O=BPZ(N,t)}O||(N.pos+=1,t.appendChild(Xn(wA(H))));return!0};
xc.prototype.parseInlines=function(N){this.subject=N._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;$4y(this,N););N._string_content=null;Kpu(this,null)};
xc.prototype.parse=xc.prototype.parseInlines;var jCB=[/./,/^<(?: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")],iSu=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],uQB=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,SI0=/^[#`~*+_=<>0-9-\|]|\|/,hNR=/[^ \t\f\v\r\n]/,MSa=/^[*+-]/,bSZ=/^(\d{1,9})([.)])/,p7X=/^#{1,6}(?:[ \t]+|$)/,Lpr=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,zNS=/^(?:`{3,}|~{3,})(?= *$)/,YIY=/^(?:=+|-+)[ \t]*$/,aZ_=/\r\n|\n|\r/,bAl=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,p1z=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,TPE={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(N){return N!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(N,t){for(N=t._firstChild;N;){if(MWS(N)&&N._next){t._listData.tight=!1;break}for(var O=N._firstChild;O;){if(MWS(O)&&(N._next||O._next)){t._listData.tight=!1;break}O=O._next}N=N._next}},
canContain:function(N){return N==="item"},
acceptsLines:!1},block_quote:{continue:function(N){var t=N.currentLine;if(N.indented||an(t,N.nextNonspace)!==62)return 1;qj(N);f7(N,1,!1);YI(an(t,N.offset))&&f7(N,1,!0);return 0},
finalize:function(){},
canContain:function(N){return N!=="item"},
acceptsLines:!1},item:{continue:function(N,t){if(N.blank){if(t._firstChild==null)return 1;qj(N)}else if(N.indent>=t._listData.markerOffset+t._listData.padding)f7(N,t._listData.markerOffset+t._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(N){return N!=="item"&&!LsO(N)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(N,t){var O=N.currentLine,H=N.indent;if(t._isFenced){if((H=H<=3&&O.charAt(N.nextNonspace)===t._fenceChar&&O.slice(N.nextNonspace).match(zNS))&&H[0].length>=t._fenceLength)return N.finalize(t,N.lineNumber),2;for(t=t._fenceOffset;t>0&&YI(an(O,N.offset));)f7(N,1,!0),t--}else if(H>=4)f7(N,4,!0);else if(N.blank)qj(N);else return 1;return 0},
finalize:function(N,t){if(t._isFenced){var O=t._string_content,H=O.indexOf("\n");N=O.slice(0,H);O=O.slice(H+1);t.info=XyE(N.trim());t._literal=O}else t._literal=t._string_content.replace(/(\n *)+$/,"\n");t._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(N,t){return!N.blank||t._htmlBlockType!==6&&t._htmlBlockType!==7?0:1},
finalize:function(N,t){t._literal=t._string_content.replace(/(\n *)+$/,"");t._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(N){return N.blank?1:0},
finalize:function(N,t){for(var O,H=!1;an(t._string_content,0)===91&&(O=clr(N.inlineParser,t._string_content,N.refmap));)t._string_content=t._string_content.slice(O),H=!0;H&&!hNR.test(t._string_content)&&t.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(N){return TZ(N.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(N){return N=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(N,t){if(!t._rowIsDelimiter){N=t._isHeader?"th":"td";for(var O=t._parent._tableColumns,H=t._string_content,A=0,Z="",U,C=t._sourcepos[0][0];A<H.length;){switch(H[A]){case "|":U&&(U._string_content=Z.trim(),Z="",U=null,O--,O<=0&&(A=H.length));break;default:if(!U){U=new we(N,[[C,A],[C,A]]);var F=t._parent._columnAlignment,g=t._parent._tableColumns-O;F&&g<=F.length&&g>=0&&(U._alignment=F[g]);t.appendChild(U)}Z+=H[A];U._sourcepos[1][1]=A}A++}U&&(U._string_content=Z.trim());t._string_content=
""}},
canContain:function(N){return N!=="row"},
acceptsLines:!1}},w7f=[function(N){if(N.indented||an(N.currentLine,N.nextNonspace)!==62)return 0;qj(N);f7(N,1,!1);YI(an(N.currentLine,N.offset))&&f7(N,1,!0);n7(N);N.addChild("block_quote",N.nextNonspace);return 1},
function(N){var t;if(!N.indented&&(t=N.currentLine.slice(N.nextNonspace).match(p7X))){qj(N);f7(N,t[0].length,!1);n7(N);var O=N.addChild("heading",N.nextNonspace);O.level=t[0].trim().length;O._string_content=N.currentLine.slice(N.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");f7(N,N.currentLine.length-N.offset);return 2}return 0},
function(N){var t;if(!N.indented&&(t=N.currentLine.slice(N.nextNonspace).match(Lpr))){var O=t[0].length;n7(N);var H=N.addChild("code_block",N.nextNonspace);H._isFenced=!0;H._fenceLength=O;H._fenceChar=t[0][0];H._fenceOffset=N.indent;qj(N);f7(N,O,!1);return 2}return 0},
function(N,t){if(!N.indented&&an(N.currentLine,N.nextNonspace)===60){var O=N.currentLine.slice(N.nextNonspace),H;for(H=1;H<=7;H++)if(jCB[H].test(O)&&(H<7||t.type!=="paragraph"))return n7(N),N.addChild("html_block",N.offset)._htmlBlockType=H,2}return 0},
function(N,t){var O;if(!N.indented&&t.type==="paragraph"&&(O=N.currentLine.slice(N.nextNonspace).match(YIY))){n7(N);var H=new we("heading",t.sourcepos);H.level=O[0][0]==="="?1:2;H._string_content=t._string_content;Wh0(t,H);t.unlink();N.tip=H;f7(N,N.currentLine.length-N.offset,!1);return 2}return 0},
function(N){return!N.indented&&uQB.test(N.currentLine.slice(N.nextNonspace))?(n7(N),N.addChild("thematic_break",N.nextNonspace),f7(N,N.currentLine.length-N.offset,!1),2):0},
function(N,t){var O,H;if(!(H=N.indented&&t.type!=="list")){a:{var A=t,Z=N.currentLine.slice(N.nextNonspace);H={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:N.indent};if(O=Z.match(MSa))H.type="bullet",H.bulletChar=O[0][0];else{if(!(O=Z.match(bSZ))||A.type==="paragraph"&&O[1]!=="1"){O=null;break a}H.type="ordered";H.start=parseInt(O[1],10);H.delimiter=O[2]}var U=an(N.currentLine,N.nextNonspace+O[0].length);if(U!==-1&&U!==9&&U!==32||A.type==="paragraph"&&!N.currentLine.slice(N.nextNonspace+
O[0].length).match(hNR))O=null;else{qj(N);f7(N,O[0].length,!0);A=N.column;Z=N.offset;do f7(N,1,!0),U=an(N.currentLine,N.offset);while(N.column-A<5&&YI(U));U=an(N.currentLine,N.offset)===-1;var C=N.column-A;C>=5||C<1||U?(H.padding=O[0].length+1,N.column=A,N.offset=Z,YI(an(N.currentLine,N.offset))&&f7(N,1,!0)):H.padding=O[0].length+C;O=H}}H=!O}if(H)return 0;n7(N);(H=N.tip.type!=="list")||(t=t._listData,H=!(t.type===O.type&&t.delimiter===O.delimiter&&t.bulletChar===O.bulletChar));H&&(t=N.addChild("list",
N.nextNonspace),t._listData=O);t=N.addChild("item",N.nextNonspace);t._listData=O;return 1},
function(N){var t;return((t=N.options.shouldParseIndentAsCodeBlock)!=null?t:1)&&N.indented&&N.tip.type!=="paragraph"&&!N.blank?(f7(N,4,!0),n7(N),N.addChild("code_block",N.offset),2):0},
function(N,t){var O=TZ(N.currentLine),H=TZ(N.lookahead);if(O!==0&&H<0&&Math.abs(O)==Math.abs(H)&&!LsO(t.type)){n7(N);t=N.addChild("table",N.nextNonspace);t._tableRows=1;t._tableColumns=Math.abs(O);O=N.lookahead;if(p1z.test(O)){H=[];for(var A=0,Z=!1,U=0,C=void 0;A<O.length;){var F=U>=3;switch(O[A]){case "-":U++;break;case "|":Z&&(H.push(C),C=void 0,U=0);Z=!0;break;case ":":C||F||(C="left"),!C&&F&&(C="right"),C==="left"&&F&&(C="center")}A++}O=H}else O=void 0;t._columnAlignment=O;t=N.addChild("row",
N.nextNonspace);t._isHeader=!0;f7(N,N.currentLine.length-N.offset,!1);t._string_content=N.currentLine;return 1}return 0},
function(N,t){if(t.type=="table"&&TZ(N.currentLine)!==0){n7(N);var O=t;t=N.addChild("row",N.nextNonspace);TZ(N.currentLine)<0?t._rowIsDelimiter=!0:O._tableRows+=1;f7(N,N.currentLine.length-N.offset,!1);t._string_content=N.currentLine;return 2}return 0}],hit=function(){var N={shouldParseIndentAsCodeBlock:!1};
N=N===void 0?{}:N;this.lastMatchedContainer=this.doc=z4S();this.refmap={};this.lastLineLength=0;this.inlineParser=new xc(N);this.options=N;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=TPE;this.blockStarts=w7f},eNR=function(N){N.partiallyConsumedTab&&(N.offset+=1,N.tip._string_content+=" ".repeat(4-N.column%
4));
N.tip._string_content+=N.currentLine.slice(N.offset)+"\n"};
hit.prototype.addChild=function(N,t){for(;!this.blocks[this.tip.type].canContain(N);)this.finalize(this.tip,this.lineNumber-1);N=new we(N,[[this.lineNumber,t+1],[0,0]]);N._string_content="";this.tip.appendChild(N);return this.tip=N};
var n7=function(N){if(!N.allClosed){for(;N.oldtip!==N.lastMatchedContainer;){var t=N.oldtip._parent;N.finalize(N.oldtip,N.lineNumber-1);N.oldtip=t}N.allClosed=!0}},f7=function(N,t,O){for(var H=N.currentLine,A,Z;t>0&&(Z=H[N.offset]);)Z==="\t"?(A=4-N.column%4,O?(N.partiallyConsumedTab=A>t,A=A>t?t:A,N.column+=A,N.offset+=N.partiallyConsumedTab?0:1,t-=A):(N.partiallyConsumedTab=!1,N.column+=A,N.offset+=1,--t)):(N.partiallyConsumedTab=!1,N.offset+=1,N.column+=1,--t)},qj=function(N){N.offset=N.nextNonspace;
N.column=N.nextNonspaceColumn;N.partiallyConsumedTab=!1},PlS=function(N){for(var t=N.currentLine,O=N.offset,H=N.column,A;(A=t.charAt(O))!=="";)if(A===" ")O++,H++;
else if(A==="\t")O++,H+=4-H%4;else break;N.blank=A==="\n"||A==="\r"||A==="";N.nextNonspace=O;N.nextNonspaceColumn=H;N.indent=N.nextNonspaceColumn-N.column;N.indented=N.indent>=4};
hit.prototype.finalize=function(N,t){var O=N._parent;N._open=!1;N.sourcepos[1]=[t,this.lastLineLength];this.blocks[N.type].finalize(this,N);this.tip=O};
hit.prototype.parse=function(N){this.tip=this.doc=z4S();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!N)return this.doc;this.options.time&&console.time("preparing input");var t=N.split(aZ_),O=t.length;N.charCodeAt(N.length-1)===10&&--O;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(N=0;N<O;N++)a:{var H=void 0,A=t[N],Z=t[N+1],U=!0,C=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;A.indexOf("\x00")!==-1&&(A=A.replace(/\0/g,"\ufffd"));this.currentLine=A;for(this.lookahead=Z;(H=C._lastChild)&&H._open;){C=H;PlS(this);switch(this.blocks[C.type].continue(this,C)){case 0:break;case 1:U=!1;break;case 2:this.lastLineLength=A.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!U){C=C._parent;break}}this.allClosed=C===this.oldtip;this.lastMatchedContainer=
C;H=C.type!=="paragraph"&&TPE[C.type].acceptsLines;Z=this.blockStarts;for(U=Z.length;!H;){PlS(this);if(!this.indented&&!SI0.test(A.slice(this.nextNonspace))){qj(this);break}for(var F=0;F<U;){var g=Z[F](this,C);if(g===1){C=this.tip;break}else if(g===2){C=this.tip;H=!0;break}else F++}if(F===U){qj(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){n7(this);this.blank&&C.lastChild&&(C.lastChild._lastLineBlank=!0);H=C.type;Z=this.blank&&!(H==="block_quote"||H==="code_block"&&C._isFenced||
H==="item"&&!C._firstChild&&C.sourcepos[0][0]===this.lineNumber);for(U=C;U;)U._lastLineBlank=Z,U=U._parent;this.blocks[H].acceptsLines?(eNR(this),H==="html_block"&&C._htmlBlockType>=1&&C._htmlBlockType<=5&&iSu[C._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(C,this.lineNumber)):this.offset<A.length&&!this.blank&&(this.addChild("paragraph",this.offset),qj(this),eNR(this))}else eNR(this);this.lastLineLength=A.length}for(;this.tip;)this.finalize(this.tip,O);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");A=new ngB(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;O=A.next();)t=O.node,N=t.type,O.entering||N!=="paragraph"&&N!=="heading"&&N!=="th"&&N!="td"||this.inlineParser.parse(t);this.options.time&&console.timeEnd("inline parsing");return this.doc};Ywz.prototype.render=function(N){N=new ngB(N);var t;this.buffer="";for(this.lastOut="\n";t=N.next();){var O=t.node.type;if(this[O])this[O](t.node,t.entering)}return this.buffer};
Ywz.prototype.out=function(N){Wb(this,N)};
var Wb=function(N,t){N.buffer+=t;N.lastOut=t};
Ywz.prototype.cr=function(){this.lastOut!=="\n"&&Wb(this,"\n")};var X7Z=/^javascript:|vbscript:|file:|data:/i,x4r=/^data:image\/(?:png|gif|jpeg|webp)/i,khZ=function(N){return X7Z.test(N)&&!x4r.test(N)};
em.prototype=Object.create(Ywz.prototype);_.V=em.prototype;_.V.text=function(N){this.out(N.literal)};
_.V.html_inline=function(N){this.options.safe?Wb(this,"\x3c!-- raw HTML omitted --\x3e"):Wb(this,N.literal)};
_.V.html_block=function(N){this.cr();this.options.safe?Wb(this,"\x3c!-- raw HTML omitted --\x3e"):Wb(this,N.literal);this.cr()};
_.V.softbreak=function(){Wb(this,this.options.softbreak)};
_.V.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.V.link=function(N,t){var O=this.attrs(N);t?(this.options.safe&&khZ(N.destination)||O.push(["href",TG(N.destination,!0)]),N.title&&O.push(["title",TG(N.title,!0)]),this.tag("a",O)):this.tag("/a")};
_.V.image=function(N,t){t?(this.disableTags===0&&(this.options.safe&&khZ(N.destination)?Wb(this,'<img src="" alt="'):Wb(this,'<img src="'+TG(N.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(N.title&&Wb(this,'" title="'+TG(N.title,!0)),Wb(this,'" />')))};
_.V.emph=function(N,t){this.tag(t?"em":"/em")};
_.V.strong=function(N,t){this.tag(t?"strong":"/strong")};
_.V.paragraph=function(N,t){var O=N.parent.parent;N=this.attrs(N);O!==null&&O.type==="list"&&O.listTight||(t?(this.cr(),this.tag("p",N)):(this.tag("/p"),this.cr()))};
_.V.heading=function(N,t){var O="h"+N.level;N=this.attrs(N);t?(this.cr(),this.tag(O,N)):(this.tag("/"+O),this.cr())};
_.V.code=function(N){this.tag("code");this.out(N.literal);this.tag("/code")};
_.V.code_block=function(N){var t=N.info?N.info.split(/\s+/):[],O=this.attrs(N);t.length>0&&t[0].length>0&&O.push(["class","language-"+TG(t[0],!0)]);this.cr();this.tag("pre");this.tag("code",O);this.out(N.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.V.thematic_break=function(N){N=this.attrs(N);this.cr();this.tag("hr",N,!0);this.cr()};
_.V.block_quote=function(N,t){N=this.attrs(N);t?(this.cr(),this.tag("blockquote",N)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.V.list=function(N,t){var O=N.listType==="bullet"?"ul":"ol",H=this.attrs(N);t?(N=N.listStart,N!==null&&N!==1&&H.push(["start",N.toString()]),this.cr(),this.tag(O,H)):(this.cr(),this.tag("/"+O));this.cr()};
_.V.item=function(N,t){N=this.attrs(N);t?this.tag("li",N):(this.tag("/li"),this.cr())};
_.V.custom_inline=function(N,t){t&&N.onEnter?Wb(this,N.onEnter):!t&&N.onExit&&Wb(this,N.onExit)};
_.V.custom_block=function(N,t){this.cr();t&&N.onEnter?Wb(this,N.onEnter):!t&&N.onExit&&Wb(this,N.onExit);this.cr()};
_.V.table=function(N,t){N=this.attrs(N);t?(this.cr(),this.tag("table",N)):(this.tag("/table"),this.cr())};
_.V.row=function(N,t){N._rowIsDelimiter||(N=this.attrs(N),t?this.tag("tr",N):this.tag("/tr"))};
_.V.td=function(N,t){var O=this.attrs(N);N._alignment&&O.push(["align",N._alignment]);t?this.tag("td",O):this.tag("/td")};
_.V.th=function(N,t){var O=this.attrs(N);N._alignment&&O.push(["align",N._alignment]);t?this.tag("th",O):this.tag("/th")};
_.V.out=function(N){Wb(this,TG(N,!1))};
_.V.tag=function(N,t,O){if(!(this.disableTags>0)){this.buffer+="<"+N;if(t&&t.length>0){N=0;for(var H;(H=t[N])!==void 0;)this.buffer+=" "+H[0]+'="'+H[1]+'"',N++}O&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.V.attrs=function(N){var t=[];this.options.sourcepos&&(N=N.sourcepos)&&t.push(["data-sourcepos",String(N[0][0])+":"+String(N[0][1])+"-"+String(N[1][0])+":"+String(N[1][1])]);return t};
em.prototype.text=em.prototype.text;em.prototype.html_inline=em.prototype.html_inline;em.prototype.html_block=em.prototype.html_block;em.prototype.softbreak=em.prototype.softbreak;em.prototype.linebreak=em.prototype.linebreak;em.prototype.link=em.prototype.link;em.prototype.image=em.prototype.image;em.prototype.emph=em.prototype.emph;em.prototype.strong=em.prototype.strong;em.prototype.paragraph=em.prototype.paragraph;em.prototype.heading=em.prototype.heading;em.prototype.code=em.prototype.code;
em.prototype.code_block=em.prototype.code_block;em.prototype.thematic_break=em.prototype.thematic_break;em.prototype.block_quote=em.prototype.block_quote;em.prototype.list=em.prototype.list;em.prototype.item=em.prototype.item;em.prototype.custom_inline=em.prototype.custom_inline;em.prototype.custom_block=em.prototype.custom_block;em.prototype.table=em.prototype.table;em.prototype.row=em.prototype.row;em.prototype.td=em.prototype.td;em.prototype.th=em.prototype.th;em.prototype.out=em.prototype.out;
em.prototype.tag=em.prototype.tag;em.prototype.attrs=em.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 qIp,fZS,UrS;(function(){function N(e,T){return e<T?-1:e>T?1:e>=T?0:NaN}
function t(e){return function(T,f){return N(e(T),f)}}
function O(){for(var e=0,T=arguments.length,f={},OS;e<T;++e){if(!(OS=arguments[e]+"")||OS in f)throw Error("we`"+OS);f[OS]=[]}return new H(f)}
function H(e){this._=e}
function A(e,T){return e.trim().split(/^|\s+/).map(function(f){var OS="",FO=f.indexOf(".");FO>=0&&(OS=f.slice(FO+1),f=f.slice(0,FO));if(f&&!T.hasOwnProperty(f))throw Error("xe`"+f);return{type:f,name:OS}})}
function Z(e,T,f){for(var OS=0,FO=e.length;OS<FO;++OS)if(e[OS].name===T){e[OS]=$7q;e=e.slice(0,OS).concat(e.slice(OS+1));break}f!=null&&e.push({name:T,value:f});return e}
function U(e){var T=e,f=T.indexOf(":");f>=0&&(T=e.slice(0,f))!=="xmlns"&&(e=e.slice(f+1));return tl.hasOwnProperty(T)?{space:tl[T],local:e}:e}
function C(e){return function(){var T=this.ownerDocument,f=this.namespaceURI;return f==="http://www.w3.org/1999/xhtml"&&T.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?T.createElement(e):T.createElementNS(f,e)}}
function F(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}
function g(e){e=U(e);return(e.local?F:C)(e)}
function B(){}
function c(e){return e==null?B:function(){return this.querySelector(e)}}
function u(e){return Array(e.length)}
function S(e,T){this.ownerDocument=e.ownerDocument;this.namespaceURI=e.namespaceURI;this._next=null;this._parent=e;this.__data__=T}
function b(e){return function(){return e}}
function z(e,T,f,OS,FO,iQ){for(var pN=0,P4,DY=T.length,tu=iQ.length;pN<tu;++pN)(P4=T[pN])?(P4.__data__=iQ[pN],OS[pN]=P4):f[pN]=new S(e,iQ[pN]);for(;pN<DY;++pN)if(P4=T[pN])FO[pN]=P4}
function w(e,T,f,OS,FO,iQ,pN){var P4,DY,tu={},CR=T.length,jE=iQ.length,RQ=Array(CR),eJ;for(P4=0;P4<CR;++P4)if(DY=T[P4])RQ[P4]=eJ="$"+pN.call(DY,DY.__data__,P4,T),eJ in tu?FO[P4]=DY:tu[eJ]=DY;for(P4=0;P4<jE;++P4)eJ="$"+pN.call(e,iQ[P4],P4,iQ),(DY=tu[eJ])?(OS[P4]=DY,DY.__data__=iQ[P4],tu[eJ]=null):f[P4]=new S(e,iQ[P4]);for(P4=0;P4<CR;++P4)(DY=T[P4])&&tu[RQ[P4]]===DY&&(FO[P4]=DY)}
function P(e,T){return e<T?-1:e>T?1:e>=T?0:NaN}
function x(e){return function(){this.removeAttribute(e)}}
function l(e){return function(){this.removeAttributeNS(e.space,e.local)}}
function I(e,T){return function(){this.setAttribute(e,T)}}
function r(e,T){return function(){this.setAttributeNS(e.space,e.local,T)}}
function E(e,T){return function(){var f=T.apply(this,arguments);f==null?this.removeAttribute(e):this.setAttribute(e,f)}}
function J(e,T){return function(){var f=T.apply(this,arguments);f==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,f)}}
function CN(e){return function(){this.style.removeProperty(e)}}
function B4(e,T,f){return function(){this.style.setProperty(e,T,f)}}
function zM(e,T,f){return function(){var OS=T.apply(this,arguments);OS==null?this.style.removeProperty(e):this.style.setProperty(e,OS,f)}}
function jy(e,T){return e.style.getPropertyValue(T)||(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView).getComputedStyle(e,null).getPropertyValue(T)}
function c4(e){return function(){delete this[e]}}
function XO(e,T){return function(){this[e]=T}}
function kx(e,T){return function(){var f=T.apply(this,arguments);f==null?delete this[e]:this[e]=f}}
function fN(){this.textContent=""}
function gf(e){return function(){this.textContent=e}}
function yr(e){return function(){var T=e.apply(this,arguments);this.textContent=T==null?"":T}}
function sS(){this.innerHTML=""}
function $X(e){return function(){this.innerHTML=e}}
function pR(e){return function(){var T=e.apply(this,arguments);this.innerHTML=T==null?"":T}}
function wf(){return null}
function b1(){var e=this.parentNode;e&&e.removeChild(this)}
function $r(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function US(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function H0(e,T,f){e=SE(e,T,f);return function(OS){var FO=OS.relatedTarget;FO&&(FO===this||FO.compareDocumentPosition(this)&8)||e.call(this,OS)}}
function SE(e,T,f){return function(){e.call(this,this.__data__,T,f)}}
function v0(e){return e.trim().split(/^|\s+/).map(function(T){var f="",OS=T.indexOf(".");OS>=0&&(f=T.slice(OS+1),T=T.slice(0,OS));return{type:T,name:f}})}
function hu(e){return function(){var T=this.__on;if(T){for(var f=0,OS=-1,FO=T.length,iQ;f<FO;++f)(iQ=T[f],e.type&&iQ.type!==e.type||iQ.name!==e.name)?T[++OS]=iQ:this.removeEventListener(iQ.type,iQ.listener,iQ.capture);++OS?T.length=OS:delete this.__on}}}
function sp(e,T,f){var OS=rkr.hasOwnProperty(e.type)?H0:SE;return function(FO,iQ,pN){FO=this.__on;var P4;iQ=OS(T,iQ,pN);if(FO){pN=0;for(var DY=FO.length;pN<DY;++pN)if((P4=FO[pN]).type===e.type&&P4.name===e.name){this.removeEventListener(P4.type,P4.listener,P4.capture);this.addEventListener(P4.type,P4.listener=iQ,P4.capture=f);P4.value=T;return}}this.addEventListener(e.type,iQ,f);P4={type:e.type,name:e.name,value:T,listener:iQ,capture:f};FO?FO.push(P4):this.__on=[P4]}}
function LU(e,T,f){var OS=e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView,FO=OS.CustomEvent;typeof FO==="function"?FO=new FO(T,f):(FO=OS.document.createEvent("Event"),f?(FO.initEvent(T,f.bubbles,f.cancelable),FO.detail=f.detail):FO.initEvent(T,!1,!1));e.dispatchEvent(FO)}
function Qr(e,T){return function(){return LU(this,e,T)}}
function B0(e,T){return function(){return LU(this,e,T.apply(this,arguments))}}
function c0(e,T){this._groups=e;this._parents=T}
function Am(){return new c0([[document.documentElement]],jfx)}
function Rl(){this._="@"+(++io5).toString(36)}
function Ox(e,T,f){e.prototype=T.prototype=f;f.constructor=e}
function cl(e,T){e=Object.create(e.prototype);for(var f in T)e[f]=T[f];return e}
function Hl(){}
function jJ(e){var T;e=(e+"").trim().toLowerCase();return(T=ul1.exec(e))?(T=parseInt(T[1],16),new Ln(T>>8&15|T>>4&240,T>>4&15|T&240,(T&15)<<4|T&15,1)):(T=SfO.exec(e))?QO(parseInt(T[1],16)):(T=hvi.exec(e))?new Ln(T[1],T[2],T[3],1):(T=M_x.exec(e))?new Ln(T[1]*255/100,T[2]*255/100,T[3]*255/100,1):(T=bof.exec(e))?BA(T[1],T[2],T[3],T[4]):(T=pDO.exec(e))?BA(T[1]*255/100,T[2]*255/100,T[3]*255/100,T[4]):(T=L$r.exec(e))?vW(T[1],T[2]/100,T[3]/100,1):(T=zvr.exec(e))?vW(T[1],T[2]/100,T[3]/100,T[4]):IUp.hasOwnProperty(e)?
QO(IUp[e]):e==="transparent"?new Ln(NaN,NaN,NaN,0):null}
function QO(e){return new Ln(e>>16&255,e>>8&255,e&255,1)}
function BA(e,T,f,OS){OS<=0&&(e=T=f=NaN);return new Ln(e,T,f,OS)}
function Su(e){e instanceof Hl||(e=jJ(e));if(!e)return new Ln;e=e.rgb();return new Ln(e.r,e.g,e.b,e.opacity)}
function mZ(e,T,f,OS){return arguments.length===1?Su(e):new Ln(e,T,f,OS==null?1:OS)}
function Ln(e,T,f,OS){this.r=+e;this.g=+T;this.b=+f;this.opacity=+OS}
function VO(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}
function vW(e,T,f,OS){OS<=0?e=T=f=NaN:f<=0||f>=1?e=T=NaN:T<=0&&(e=NaN);return new JD(e,T,f,OS)}
function PW(e){if(e instanceof JD)return new JD(e.h,e.s,e.l,e.opacity);e instanceof Hl||(e=jJ(e));if(!e)return new JD;if(e instanceof JD)return e;e=e.rgb();var T=e.r/255,f=e.g/255,OS=e.b/255,FO=Math.min(T,f,OS),iQ=Math.max(T,f,OS),pN=NaN,P4=iQ-FO,DY=(iQ+FO)/2;P4?(pN=T===iQ?(f-OS)/P4+(f<OS)*6:f===iQ?(OS-T)/P4+2:(T-f)/P4+4,P4/=DY<.5?iQ+FO:2-iQ-FO,pN*=60):P4=DY>0&&DY<1?0:pN;return new JD(pN,P4,DY,e.opacity)}
function Zl(e,T,f,OS){return arguments.length===1?PW(e):new JD(e,T,f,OS==null?1:OS)}
function JD(e,T,f,OS){this.h=+e;this.s=+T;this.l=+f;this.opacity=+OS}
function nU(e,T,f){return(e<60?T+(f-T)*e/60:e<180?f:e<240?T+(f-T)*(240-e)/60:T)*255}
function Sb(e){if(e instanceof al)return new al(e.l,e.a,e.b,e.opacity);if(e instanceof aQ){if(isNaN(e.h))return new al(e.l,0,0,e.opacity);var T=e.h*lUf;return new al(e.l,Math.cos(T)*e.c,Math.sin(T)*e.c,e.opacity)}e instanceof Ln||(e=Su(e));var f=Mq(e.r),OS=Mq(e.g),FO=Mq(e.b);T=nN(.2225045*f+.7168786*OS+.0606169*FO);if(f===OS&&OS===FO)var iQ=f=T;else iQ=nN((.4360747*f+.3850649*OS+.1430804*FO)/.96422),f=nN((.0139322*f+.0971045*OS+.7141733*FO)/.82521);return new al(116*T-16,500*(iQ-T),200*(T-f),e.opacity)}
function al(e,T,f,OS){this.l=+e;this.a=+T;this.b=+f;this.opacity=+OS}
function nN(e){return e>Yfm?Math.pow(e,1/3):e/Q2u+mRf}
function ES(e){return e>b7?e*e*e:Q2u*(e-mRf)}
function My(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}
function Mq(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}
function kw(e){if(e instanceof aQ)return new aQ(e.h,e.c,e.l,e.opacity);e instanceof al||(e=Sb(e));if(e.a===0&&e.b===0)return new aQ(NaN,0,e.l,e.opacity);var T=Math.atan2(e.b,e.a)*Etr;return new aQ(T<0?T+360:T,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}
function T5(e,T,f,OS){return arguments.length===1?kw(e):new aQ(e,T,f,OS==null?1:OS)}
function aQ(e,T,f,OS){this.h=+e;this.c=+T;this.l=+f;this.opacity=+OS}
function LR(e,T,f,OS){if(arguments.length===1){var FO=e;if(FO instanceof ri)FO=new ri(FO.h,FO.s,FO.l,FO.opacity);else{FO instanceof Ln||(FO=Su(FO));var iQ=FO.g/255,pN=FO.b/255,P4=(Gd0*pN+FO.r/255*-1.7884503806-3.5172982438*iQ)/(Gd0+-1.7884503806-3.5172982438);pN-=P4;var DY=(1.97294*(iQ-P4)- -.29227*pN)/-.90649;pN=(iQ=Math.sqrt(DY*DY+pN*pN)/(1.97294*P4*(1-P4)))?Math.atan2(DY,pN)*Etr-120:NaN;FO=new ri(pN<0?pN+360:pN,iQ,P4,FO.opacity)}}else FO=new ri(e,T,f,OS==null?1:OS);return FO}
function ri(e,T,f,OS){this.h=+e;this.s=+T;this.l=+f;this.opacity=+OS}
function Q$(e,T,f,OS,FO){var iQ=e*e,pN=iQ*e;return((1-3*e+3*iQ-pN)*T+(4-6*iQ+3*pN)*f+(1+3*e+3*iQ-3*pN)*OS+pN*FO)/6}
function u_(e){return function(){return e}}
function oN(e,T){return function(f){return e+f*T}}
function ST(e,T,f){return e=Math.pow(e,f),T=Math.pow(T,f)-e,f=1/f,function(OS){return Math.pow(e+OS*T,f)}}
function mA(e,T){var f=T-e;return f?oN(e,f>180||f<-180?f-360*Math.round(f/360):f):u_(isNaN(e)?T:e)}
function Ra(e){return(e=+e)===1?D3:function(T,f){return f-T?ST(T,f,e):u_(isNaN(T)?f:T)}}
function D3(e,T){var f=T-e;return f?oN(e,f):u_(isNaN(e)?T:e)}
function bM(e){return function(T){var f=T.length,OS=Array(f),FO=Array(f),iQ=Array(f),pN;for(pN=0;pN<f;++pN){var P4=mZ(T[pN]);OS[pN]=P4.r||0;FO[pN]=P4.g||0;iQ[pN]=P4.b||0}OS=e(OS);FO=e(FO);iQ=e(iQ);P4.opacity=1;return function(DY){P4.r=OS(DY);P4.g=FO(DY);P4.b=iQ(DY);return P4+""}}}
function hO(e,T){return e=+e,T-=e,function(f){return e+T*f}}
function IM(e){return function(){return e}}
function FR(e){return function(T){return e(T)+""}}
function ud(e,T){var f=DR4.lastIndex=UR4.lastIndex=0,OS,FO,iQ,pN=-1,P4=[],DY=[];e+="";for(T+="";(OS=DR4.exec(e))&&(FO=UR4.exec(T));)(iQ=FO.index)>f&&(iQ=T.slice(f,iQ),P4[pN]?P4[pN]+=iQ:P4[++pN]=iQ),(OS=OS[0])===(FO=FO[0])?P4[pN]?P4[pN]+=FO:P4[++pN]=FO:(P4[++pN]=null,DY.push({i:pN,x:hO(OS,FO)})),f=UR4.lastIndex;f<T.length&&(iQ=T.slice(f),P4[pN]?P4[pN]+=iQ:P4[++pN]=iQ);return P4.length<2?DY[0]?FR(DY[0].x):IM(T):(T=DY.length,function(tu){for(var CR=0,jE;CR<T;++CR)P4[(jE=DY[CR]).i]=jE.x(tu);return P4.join("")})}
function wy(e,T,f,OS,FO,iQ){var pN,P4,DY;if(pN=Math.sqrt(e*e+T*T))e/=pN,T/=pN;if(DY=e*f+T*OS)f-=e*DY,OS-=T*DY;if(P4=Math.sqrt(f*f+OS*OS))f/=P4,OS/=P4,DY/=P4;e*OS<T*f&&(e=-e,T=-T,DY=-DY,pN=-pN);return{translateX:FO,translateY:iQ,rotate:Math.atan2(T,e)*RMS,skewX:Math.atan(DY)*RMS,scaleX:pN,scaleY:P4}}
function vY(e,T,f,OS){function FO(tu){return tu.length?tu.pop()+" ":""}
function iQ(tu,CR,jE,RQ,eJ,p8){tu!==jE||CR!==RQ?(eJ=eJ.push("translate(",null,T,null,f),p8.push({i:eJ-4,x:hO(tu,jE)},{i:eJ-2,x:hO(CR,RQ)})):(jE||RQ)&&eJ.push("translate("+jE+T+RQ+f)}
function pN(tu,CR,jE,RQ){tu!==CR?(tu-CR>180?CR+=360:CR-tu>180&&(tu+=360),RQ.push({i:jE.push(FO(jE)+"rotate(",null,OS)-2,x:hO(tu,CR)})):CR&&jE.push(FO(jE)+"rotate("+CR+OS)}
function P4(tu,CR,jE,RQ){tu!==CR?RQ.push({i:jE.push(FO(jE)+"skewX(",null,OS)-2,x:hO(tu,CR)}):CR&&jE.push(FO(jE)+"skewX("+CR+OS)}
function DY(tu,CR,jE,RQ,eJ,p8){tu!==jE||CR!==RQ?(eJ=eJ.push(FO(eJ)+"scale(",null,",",null,")"),p8.push({i:eJ-4,x:hO(tu,jE)},{i:eJ-2,x:hO(CR,RQ)})):jE===1&&RQ===1||eJ.push(FO(eJ)+"scale("+jE+","+RQ+")")}
return function(tu,CR){var jE=[],RQ=[];tu=e(tu);CR=e(CR);iQ(tu.translateX,tu.translateY,CR.translateX,CR.translateY,jE,RQ);pN(tu.rotate,CR.rotate,jE,RQ);P4(tu.skewX,CR.skewX,jE,RQ);DY(tu.scaleX,tu.scaleY,CR.scaleX,CR.scaleY,jE,RQ);tu=CR=null;return function(eJ){for(var p8=-1,Gy=RQ.length,wG;++p8<Gy;)jE[(wG=RQ[p8]).i]=wG.x(eJ);return jE.join("")}}}
function Ym(e){return function(T,f){var OS=e((T=Zl(T)).h,(f=Zl(f)).h),FO=D3(T.s,f.s),iQ=D3(T.l,f.l),pN=D3(T.opacity,f.opacity);return function(P4){T.h=OS(P4);T.s=FO(P4);T.l=iQ(P4);T.opacity=pN(P4);return T+""}}}
function pV(e){return function(T,f){var OS=e((T=T5(T)).h,(f=T5(f)).h),FO=D3(T.c,f.c),iQ=D3(T.l,f.l),pN=D3(T.opacity,f.opacity);return function(P4){T.h=OS(P4);T.c=FO(P4);T.l=iQ(P4);T.opacity=pN(P4);return T+""}}}
function bR(e){return function OS(f){function FO(iQ,pN){var P4=e((iQ=LR(iQ)).h,(pN=LR(pN)).h),DY=D3(iQ.s,pN.s),tu=D3(iQ.l,pN.l),CR=D3(iQ.opacity,pN.opacity);return function(jE){iQ.h=P4(jE);iQ.s=DY(jE);iQ.l=tu(Math.pow(jE,f));iQ.opacity=CR(jE);return iQ+""}}
f=+f;FO.gamma=OS;return FO}(1)}
function q_(){return vf||(vtQ(bB),vf=jY.now()+Ay4)}
function bB(){vf=0}
function fp(){this._call=this._time=this._next=null}
function p_(e,T,f){var OS=new fp;OS.restart(e,T,f);return OS}
function zZ(){vf=(Z9G=jY.now())+Ay4;pa=i4=0;try{q_();++pa;for(var e=V4z,T;e;)(T=vf-e._time)>=0&&e._call.call(null,T),e=e._next;--pa}finally{pa=0;e=V4z;for(var f=Infinity;e;)if(e._call){f>e._time&&(f=e._time);var OS=e;e=e._next}else T=e._next,e._next=null,e=OS?OS._next=T:V4z=T;u4=OS;ei(f);vf=0}}
function p$(){var e=jY.now(),T=e-Z9G;T>1E3&&(Ay4-=T,Z9G=e)}
function ei(e){pa||(i4&&(i4=clearTimeout(i4)),e-vf>24?(e<Infinity&&(i4=setTimeout(zZ,e-jY.now()-Ay4)),SY&&(SY=clearInterval(SY))):(SY||(Z9G=jY.now(),SY=setInterval(p$,1E3)),pa=1,vtQ(zZ)))}
function Au(e,T,f){var OS=new fp;T=T==null?0:+T;OS.restart(function(FO){OS.stop();e(FO+T)},T,f);
return OS}
function u1(e,T,f,OS,FO,iQ){var pN=e.__transition;if(!pN)e.__transition={};else if(f in pN)return;WA(e,f,{name:T,index:OS,group:FO,on:aF5,tween:TM1,time:iQ.time,delay:iQ.delay,duration:iQ.duration,ease:iQ.ease,timer:null,state:0})}
function qq(e,T){e=rG(e,T);if(e.state>0)throw Error("ye");return e}
function U1(e,T){e=rG(e,T);if(e.state>2)throw Error("ze");return e}
function rG(e,T){e=e.__transition;if(!e||!(e=e[T]))throw Error("Ae");return e}
function WA(e,T,f){function OS(DY){var tu,CR;if(f.state!==1)return iQ();for(RQ in pN){var jE=pN[RQ];if(jE.name===f.name){if(jE.state===3)return Au(OS);jE.state===4?(jE.state=6,jE.timer.stop(),jE.on.call("interrupt",e,e.__data__,jE.index,jE.group),delete pN[RQ]):+RQ<T&&(jE.state=6,jE.timer.stop(),delete pN[RQ])}}Au(function(){f.state===3&&(f.state=4,f.timer.restart(FO,f.delay,f.time),FO(DY))});
f.state=2;f.on.call("start",e,e.__data__,f.index,f.group);if(f.state===2){f.state=3;P4=Array(CR=f.tween.length);var RQ=0;for(tu=-1;RQ<CR;++RQ)if(jE=f.tween[RQ].value.call(e,e.__data__,f.index,f.group))P4[++tu]=jE;P4.length=tu+1}}
function FO(DY){DY=DY<f.duration?f.ease.call(null,DY/f.duration):(f.timer.restart(iQ),f.state=5,1);for(var tu=-1,CR=P4.length;++tu<CR;)P4[tu].call(null,DY);f.state===5&&(f.on.call("end",e,e.__data__,f.index,f.group),iQ())}
function iQ(){f.state=6;f.timer.stop();delete pN[T];for(var DY in pN)return;delete e.__transition}
var pN=e.__transition,P4;pN[T]=f;f.timer=p_(function(DY){f.state=1;f.timer.restart(OS,f.delay,f.time);f.delay<=DY&&OS(DY-f.delay)},0,f.time)}
function NH(e,T){var f,OS;return function(){var FO=U1(this,e),iQ=FO.tween;if(iQ!==f){OS=f=iQ;iQ=0;for(var pN=OS.length;iQ<pN;++iQ)if(OS[iQ].name===T){OS=OS.slice();OS.splice(iQ,1);break}}FO.tween=OS}}
function Q_(e,T,f){var OS,FO;if(typeof f!=="function")throw Error();return function(){var iQ=U1(this,e),pN=iQ.tween;if(pN!==OS){FO=(OS=pN).slice();pN={name:T,value:f};for(var P4=0,DY=FO.length;P4<DY;++P4)if(FO[P4].name===T){FO[P4]=pN;break}P4===DY&&FO.push(pN)}iQ.tween=FO}}
function e6(e,T,f){var OS=e._id;e.each(function(){var FO=U1(this,OS);(FO.value||(FO.value={}))[T]=f.apply(this,arguments)});
return function(FO){return rG(FO,OS).value[T]}}
function JkQ(e,T){var f;return(typeof T==="number"?hO:T instanceof jJ?otR:(f=jJ(T))?(T=f,otR):ud)(e,T)}
function wDq(e){return function(){this.removeAttribute(e)}}
function evn(e){return function(){this.removeAttributeNS(e.space,e.local)}}
function P2n(e,T,f){var OS,FO;return function(){var iQ=this.getAttribute(e);return iQ===f?null:iQ===OS?FO:FO=T(OS=iQ,f)}}
function XDq(e,T,f){var OS,FO;return function(){var iQ=this.getAttributeNS(e.space,e.local);return iQ===f?null:iQ===OS?FO:FO=T(OS=iQ,f)}}
function x7n(e,T,f){var OS,FO,iQ;return function(){var pN=f(this);if(pN==null)return void this.removeAttribute(e);var P4=this.getAttribute(e);return P4===pN?null:P4===OS&&pN===FO?iQ:iQ=T(OS=P4,FO=pN)}}
function kUm(e,T,f){var OS,FO,iQ;return function(){var pN=f(this);if(pN==null)return void this.removeAttributeNS(e.space,e.local);var P4=this.getAttributeNS(e.space,e.local);return P4===pN?null:P4===OS&&pN===FO?iQ:iQ=T(OS=P4,FO=pN)}}
function qf5(e,T){function f(){var OS=this,FO=T.apply(OS,arguments);return FO&&function(iQ){OS.setAttributeNS(e.space,e.local,FO(iQ))}}
f._value=T;return f}
function fFq(e,T){function f(){var OS=this,FO=T.apply(OS,arguments);return FO&&function(iQ){OS.setAttribute(e,FO(iQ))}}
f._value=T;return f}
function npr(e,T){return function(){qq(this,e).delay=+T.apply(this,arguments)}}
function W$O(e,T){return T=+T,function(){qq(this,e).delay=T}}
function r6x(e,T){return function(){U1(this,e).duration=+T.apply(this,arguments)}}
function IFx(e,T){return T=+T,function(){U1(this,e).duration=T}}
function lFO(e,T){if(typeof T!=="function")throw Error();return function(){U1(this,e).ease=T}}
function Qfz(e){return(e+"").trim().split(/^|\s+/).every(function(T){var f=T.indexOf(".");f>=0&&(T=T.slice(0,f));return!T||T==="start"})}
function m71(e,T,f){var OS,FO,iQ=Qfz(T)?qq:U1;return function(){var pN=iQ(this,e),P4=pN.on;if(P4!==OS)(FO=(OS=P4).copy()).on(T,f);pN.on=FO}}
function Ep5(e){return function(){var T=this.parentNode,f;for(f in this.__transition)if(+f!==e)return;T&&T.removeChild(this)}}
function GUz(e,T){var f,OS,FO;return function(){var iQ=jy(this,e),pN=(this.style.removeProperty(e),jy(this,e));return iQ===pN?null:iQ===f&&pN===OS?FO:FO=T(f=iQ,OS=pN)}}
function Rvm(e){return function(){this.style.removeProperty(e)}}
function vpO(e,T,f){var OS,FO;return function(){var iQ=jy(this,e);return iQ===f?null:iQ===OS?FO:FO=T(OS=iQ,f)}}
function J6i(e,T,f){var OS,FO,iQ;return function(){var pN=jy(this,e),P4=f(this);P4==null&&(P4=(this.style.removeProperty(e),jy(this,e)));return pN===P4?null:pN===OS&&P4===FO?iQ:iQ=T(OS=pN,FO=P4)}}
function opJ(e,T,f){function OS(){var FO=this,iQ=T.apply(FO,arguments);return iQ&&function(pN){FO.style.setProperty(e,iQ(pN),f)}}
OS._value=T;return OS}
function sfr(e){return function(){this.textContent=e}}
function NVz(e){return function(){var T=e(this);this.textContent=T==null?"":T}}
function X5(e,T,f,OS){this._groups=e;this._parents=T;this._name=f;this._id=OS}
function CE9(e){return{type:e}}
function KO4(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function D1N(){}
function s2p(e,T){var f=new D1N;if(e instanceof D1N)e.each(function(pN,P4){f.set(P4,pN)});
else if(Array.isArray(e)){var OS=-1,FO=e.length,iQ;if(T==null)for(;++OS<FO;)f.set(OS,e[OS]);else for(;++OS<FO;)f.set(T(iQ=e[OS],OS,e),iQ)}else if(e)for(OS in e)f.set(OS,e[OS]);return f}
function U1z(){}
function NME(e){return function(T){for(var f={},OS=0;OS<e.length;OS++)f[e[OS]]=T[OS]||"";return f}}
function t31(e,T){var f=NME(e);return function(OS,FO){return T(f(OS),FO,e)}}
function O_i(e){var T=Object.create(null),f=[];e.forEach(function(OS){for(var FO in OS)FO in T||f.push(T[FO]=FO)});
return f}
function t_B(e){function T(pN,P4){function DY(){if(p8)return FON;if(Gy)return Gy=!1,OoQ;var d9,oa=jE,w0;if(pN.charCodeAt(oa)===34){for(;jE++<CR&&pN.charCodeAt(jE)!==34||pN.charCodeAt(++jE)===34;);(d9=jE)>=CR?p8=!0:(w0=pN.charCodeAt(jE++))===10?Gy=!0:w0===13&&(Gy=!0,pN.charCodeAt(jE)===10&&++jE);return pN.slice(oa+1,d9-1).replace(/""/g,'"')}for(;jE<CR;){if((w0=pN.charCodeAt(d9=jE++))===10)Gy=!0;else if(w0===13)Gy=!0,pN.charCodeAt(jE)===10&&++jE;else if(w0!==iQ)continue;return pN.slice(oa,d9)}return p8=
!0,pN.slice(oa,CR)}
var tu=[],CR=pN.length,jE=0,RQ=0,eJ,p8=CR<=0,Gy=!1;pN.charCodeAt(CR-1)===10&&--CR;for(pN.charCodeAt(CR-1)===13&&--CR;(eJ=DY())!==FON;){for(var wG=[];eJ!==OoQ&&eJ!==FON;)wG.push(eJ),eJ=DY();P4&&(wG=P4(wG,RQ++))==null||tu.push(wG)}return tu}
function f(pN){return pN.map(OS).join(e)}
function OS(pN){return pN==null?"":FO.test(pN)?'"'+pN.replace(/"/g,'""')+'"':pN}
var FO=new RegExp('["'+e+"\n\r]"),iQ=e.charCodeAt(0);return{parse:function(pN,P4){var DY,tu;pN=T(pN,function(CR,jE){if(DY)return DY(CR,jE-1);tu=CR;DY=P4?t31(CR,P4):NME(CR)});
pN.columns=tu||[];return pN},
parseRows:T,format:function(pN,P4){P4==null&&(P4=O_i(pN));return[P4.map(OS).join(e)].concat(pN.map(function(DY){return P4.map(function(tu){return OS(DY[tu])}).join(e)})).join("\n")},
formatRows:function(pN){return pN.map(f).join("\n")}}}
function H_J(e){if(!e.ok)throw Error("Be`"+e.status+"`"+e.statusText);return e.text()}
function HoZ(e){return function(T,f,OS){arguments.length===2&&typeof f==="function"&&(OS=f,f=void 0);return fetch(T,f).then(H_J).then(function(FO){return e(FO,OS)})}}
function A6r(e,T,f,OS){if(isNaN(T)||isNaN(f))return e;var FO,iQ=e._root;OS={data:OS};var pN=e._x0,P4=e._y0,DY=e._x1,tu=e._y1,CR,jE,RQ,eJ,p8;if(!iQ)return e._root=OS,e;for(;iQ.length;)if((RQ=T>=(CR=(pN+DY)/2))?pN=CR:DY=CR,(eJ=f>=(jE=(P4+tu)/2))?P4=jE:tu=jE,FO=iQ,!(iQ=iQ[p8=eJ<<1|RQ]))return FO[p8]=OS,e;var Gy=+e._x.call(null,iQ.data);var wG=+e._y.call(null,iQ.data);if(T===Gy&&f===wG)return OS.next=iQ,FO?FO[p8]=OS:e._root=OS,e;do FO=FO?FO[p8]=Array(4):e._root=Array(4),(RQ=T>=(CR=(pN+DY)/2))?pN=CR:DY=
CR,(eJ=f>=(jE=(P4+tu)/2))?P4=jE:tu=jE;while((p8=eJ<<1|RQ)===(RQ=(wG>=jE)<<1|Gy>=CR));return FO[RQ]=iQ,FO[p8]=OS,e}
function H2(e,T,f,OS,FO){this.node=e;this.x0=T;this.y0=f;this.x1=OS;this.y1=FO}
function AX1(e){return e[0]}
function Z_1(e){return e[1]}
function dRv(e,T,f,OS,FO,iQ){this._x=e;this._y=T;this._x0=f;this._y0=OS;this._x1=FO;this._y1=iQ;this._root=void 0}
function ZoB(e){for(var T={data:e.data},f=T;e=e.next;)f=f.next={data:e.data};return T}
function CUx(e,T){if((T=(e=T?e.toExponential(T-1):e.toExponential()).indexOf("e"))<0)return null;var f=e.slice(0,T);return[f.length>1?f[0]+f.slice(2):f,+e.slice(T+1)]}
function V3O(e){return e=CUx(Math.abs(e)),e?e[1]:NaN}
function DG5(e,T){return function(f,OS){for(var FO=f.length,iQ=[],pN=0,P4=e[0],DY=0;FO>0&&P4>0;){DY+P4+1>OS&&(P4=Math.max(1,OS-DY));iQ.push(f.substring(FO-=P4,FO+P4));if((DY+=P4+1)>OS)break;P4=e[pN=(pN+1)%e.length]}return iQ.reverse().join(T)}}
function UG1(e){return function(T){return T.replace(/[0-9]/g,function(f){return e[+f]})}}
function gtv(e){return new ykt(e)}
function ykt(e){if(!(T=CRm.exec(e)))throw Error("Ce`"+e);var T;this.fill=T[1]||" ";this.align=T[2]||">";this.sign=T[3]||"-";this.symbol=T[4]||"";this.zero=!!T[5];this.width=T[6]&&+T[6];this.comma=!!T[7];this.precision=T[8]&&+T[8].slice(1);this.trim=!!T[9];this.type=T[10]||""}
function V_X(e,T){T=CUx(e,T);if(!T)return e+"";e=T[0];T=T[1];return T<0?"0."+Array(-T).join("0")+e:e.length>T+1?e.slice(0,T+1)+"."+e.slice(T+1):e+Array(T-e.length+2).join("0")}
function D7y(e){return e}
function KuO(e){function T(P4){function DY(s1){var zW=w0,Ex=Cx,Mm,dD;if(oa==="c")Ex=sH(s1)+Ex,s1="";else{s1=+s1;var xr=s1<0;s1=sH(Math.abs(s1),wG);if(d9){var te=s1.length,Hv=1,g9=-1;a:for(;Hv<te;++Hv)switch(s1[Hv]){case ".":g9=Mm=Hv;break;case "0":g9===0&&(g9=Hv);Mm=Hv;break;default:if(!+s1[Hv])break a;g9>0&&(g9=0)}s1=g9>0?s1.slice(0,g9)+s1.slice(Mm+1):s1}xr&&+s1===0&&(xr=!1);zW=(xr?jE==="("?jE:"-":jE==="-"||jE==="("?"":jE)+zW;Ex=(oa==="s"?U7Z[8+C2Y/3]:"")+Ex+(xr&&jE==="("?")":"");if(p1)for(xr=-1,
Mm=s1.length;++xr<Mm;)if(dD=s1.charCodeAt(xr),48>dD||dD>57){Ex=(dD===46?FO+s1.slice(xr+1):s1.slice(xr))+Ex;s1=s1.slice(0,xr);break}}Gy&&!eJ&&(s1=f(s1,Infinity));dD=zW.length+s1.length+Ex.length;xr=dD<p8?Array(p8-dD+1).join(tu):"";Gy&&eJ&&(s1=f(xr+s1,xr.length?p8-Ex.length:Infinity),xr="");switch(CR){case "<":s1=zW+s1+Ex+xr;break;case "=":s1=zW+xr+s1+Ex;break;case "^":s1=xr.slice(0,dD=xr.length>>1)+zW+s1+Ex+xr.slice(dD);break;default:s1=xr+zW+s1+Ex}return iQ(s1)}
P4=gtv(P4);var tu=P4.fill,CR=P4.align,jE=P4.sign,RQ=P4.symbol,eJ=P4.zero,p8=P4.width,Gy=P4.comma,wG=P4.precision,d9=P4.trim,oa=P4.type;oa==="n"?(Gy=!0,oa="g"):K$r[oa]||(wG==null&&(wG=12),d9=!0,oa="g");if(eJ||tu==="0"&&CR==="=")eJ=!0,tu="0",CR="=";var w0=RQ==="$"?OS[0]:RQ==="#"&&/[boxX]/.test(oa)?"0"+oa.toLowerCase():"",Cx=RQ==="$"?OS[1]:/[%p]/.test(oa)?pN:"",sH=K$r[oa],p1=/[defgprs%]/.test(oa);wG=wG==null?6:/[gprs]/.test(oa)?Math.max(1,Math.min(21,wG)):Math.max(0,Math.min(20,wG));DY.toString=function(){return P4+
""};
return DY}
var f=e.grouping&&e.thousands?DG5(e.grouping,e.thousands):D7y,OS=e.currency,FO=e.decimal,iQ=e.numerals?UG1(e.numerals):D7y,pN=e.percent||"%";return{format:T,formatPrefix:function(P4,DY){var tu=T((P4=gtv(P4),P4.type="f",P4));P4=Math.max(-8,Math.min(8,Math.floor(V3O(DY)/3)))*3;var CR=Math.pow(10,-P4),jE=U7Z[8+P4/3];return function(RQ){return tu(CR*RQ)+jE}}}}
function me(){this.reset()}
function F$_(e,T,f){var OS=e.s=T+f,FO=OS-T;e.t=T-(OS-FO)+(f-FO)}
function KKN(e){return e>1?OI:e<-1?-OI:Math.asin(e)}
function Fu5(){}
function d7_(e){var T=e[0];e=e[1];var f=H7(e);return[f*H7(T),f*kj(T),kj(e)]}
function gpp(e,T){return[e[1]*T[2]-e[2]*T[1],e[2]*T[0]-e[0]*T[2],e[0]*T[1]-e[1]*T[0]]}
function y60(e){var T=FKl(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=T;e[1]/=T;e[2]/=T}
function dGn(){var e=[],T;return{point:function(f,OS){T.push([f,OS])},
lineStart:function(){e.push(T=[])},
lineEnd:Fu5,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},
result:function(){var f=e;e=[];T=null;return f}}}
function d1x(e,T,f,OS){this.x=e;this.z=T;this.o=f;this.e=OS;this.v=!1;this.n=this.p=null}
function gef(e,T,f,OS,FO){var iQ=[],pN=[];e.forEach(function(jE){if(!((RQ=jE.length-1)<=0)){var RQ,eJ=jE[0],p8=jE[RQ],Gy=eJ;if(xO(Gy[0]-p8[0])<1E-6&&xO(Gy[1]-p8[1])<1E-6){FO.lineStart();for(P4=0;P4<RQ;++P4)FO.point((eJ=jE[P4])[0],eJ[1]);FO.lineEnd()}else iQ.push(RQ=new d1x(eJ,jE,null,!0)),pN.push(RQ.o=new d1x(eJ,null,RQ,!1)),iQ.push(RQ=new d1x(p8,jE,null,!1)),pN.push(RQ.o=new d1x(p8,null,RQ,!0))}});
if(iQ.length){pN.sort(T);BM0(iQ);BM0(pN);var P4=0;for(e=pN.length;P4<e;++P4)pN[P4].e=f=!f;f=iQ[0];for(var DY;;){for(var tu=f,CR=!0;tu.v;)if((tu=tu.n)===f)return;T=tu.z;FO.lineStart();do{tu.v=tu.o.v=!0;if(tu.e){if(CR)for(P4=0,e=T.length;P4<e;++P4)FO.point((DY=T[P4])[0],DY[1]);else OS(tu.x,tu.n.x,1,FO);tu=tu.n}else{if(CR)for(T=tu.p.z,P4=T.length-1;P4>=0;--P4)FO.point((DY=T[P4])[0],DY[1]);else OS(tu.x,tu.p.x,-1,FO);tu=tu.p}tu=tu.o;T=tu.z;CR=!CR}while(!tu.v);FO.lineEnd()}}}
function BM0(e){if(T=e.length){for(var T,f=0,OS=e[0],FO;++f<T;)OS.n=FO=e[f],FO.p=OS,OS=FO;OS.n=FO=e[0];FO.p=OS}}
function yX5(e){return e.length>1}
function BVJ(e,T){return((e=e.x)[0]<0?e[1]-OI-1E-6:OI-e[1])-((T=T.x)[0]<0?T[1]-OI-1E-6:OI-T[1])}
function B4y(){}
function c60(e){return function(T,f){var OS=H7(T),FO=H7(f);OS=e(OS*FO);return[OS*FO*kj(T),OS*kj(f)]}}
function hF(e){return function(T,f){var OS=FKl(T*T+f*f),FO=e(OS),iQ=kj(FO);FO=H7(FO);return[$7y(T*iQ,OS*FO),KKN(OS&&f*iQ/OS)]}}
function cX1(e){var T=0,f=e.children,OS=f&&f.length;if(OS)for(;--OS>=0;)T+=f[OS].value;else T=1;e.value=T}
function jfp(e,T){var f=new MM(e);e=+e.value&&(f.value=e.value);var OS,FO=[f],iQ,pN,P4,DY;for(T==null&&(T=$Gz);OS=FO.pop();)if(e&&(OS.value=+OS.data.value),(pN=T(OS.data))&&(DY=pN.length))for(OS.children=Array(DY),P4=DY-1;P4>=0;--P4)FO.push(iQ=OS.children[P4]=new MM(pN[P4])),iQ.parent=OS,iQ.depth=OS.depth+1;return f.eachBefore(jRm)}
function $Gz(e){return e.children}
function i_5(e){e.data=e.data.data}
function jRm(e){var T=0;do e.height=T;while((e=e.parent)&&e.height<++T)}
function MM(e){this.data=e;this.depth=this.height=0;this.parent=null}
function Lv(e,T,f,OS){function FO(iQ){return e(iQ=new Date(+iQ)),iQ}
FO.floor=FO;FO.ceil=function(iQ){return e(iQ=new Date(iQ-1)),T(iQ,1),e(iQ),iQ};
FO.round=function(iQ){var pN=FO(iQ),P4=FO.ceil(iQ);return iQ-pN<P4-iQ?pN:P4};
FO.offset=function(iQ,pN){return T(iQ=new Date(+iQ),pN==null?1:Math.floor(pN)),iQ};
FO.range=function(iQ,pN,P4){var DY=[],tu;iQ=FO.ceil(iQ);P4=P4==null?1:Math.floor(P4);if(!(iQ<pN&&P4>0))return DY;do DY.push(tu=new Date(+iQ)),T(iQ,P4),e(iQ);while(tu<iQ&&iQ<pN);return DY};
FO.filter=function(iQ){return Lv(function(pN){if(pN>=pN)for(;e(pN),!iQ(pN);)pN.setTime(pN-1)},function(pN,P4){if(pN>=pN)if(P4<0)for(;++P4<=0;)for(;T(pN,-1),!iQ(pN););
else for(;--P4>=0;)for(;T(pN,1),!iQ(pN););})};
f&&(FO.count=function(iQ,pN){ckv.setTime(+iQ);$Rg.setTime(+pN);e(ckv);e($Rg);return Math.floor(f(ckv,$Rg))},FO.every=function(iQ){iQ=Math.floor(iQ);
return isFinite(iQ)&&iQ>0?iQ>1?FO.filter(OS?function(pN){return OS(pN)%iQ===0}:function(pN){return FO.count(0,pN)%iQ===0}):FO:null});
return FO}
function J3(e){return Lv(function(T){T.setDate(T.getDate()-(T.getDay()+7-e)%7);T.setHours(0,0,0,0)},function(T,f){T.setDate(T.getDate()+f*7)},function(T,f){return(f-T-(f.getTimezoneOffset()-T.getTimezoneOffset())*6E4)/6048E5})}
function oO(e){return Lv(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-e)%7);T.setUTCHours(0,0,0,0)},function(T,f){T.setUTCDate(T.getUTCDate()+f*7)},function(T,f){return(f-T)/6048E5})}
function uqn(e){if(0<=e.y&&e.y<100){var T=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);T.setFullYear(e.y);return T}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}
function g6y(e){if(0<=e.y&&e.y<100){var T=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));T.setUTCFullYear(e.y);return T}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}
function b4(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}
function Ssm(e){function T(Ex,Mm){return function(dD){var xr=[],te=-1,Hv=0,g9=Ex.length,he,Pb;for(dD instanceof Date||(dD=new Date(+dD));++te<g9;)if(Ex.charCodeAt(te)===37){xr.push(Ex.slice(Hv,te));(Hv=ioa[he=Ex.charAt(++te)])!=null?he=Ex.charAt(++te):Hv=he==="e"?" ":"0";if(Pb=Mm[he])he=Pb(dD,Hv);xr.push(he);Hv=te+1}xr.push(Ex.slice(Hv,te));return xr.join("")}}
function f(Ex,Mm){return function(dD){var xr=b4(1900);if(OS(xr,Ex,dD,0)!=dD.length)return null;if("Q"in xr)return new Date(xr.Q);"p"in xr&&(xr.H=xr.H%12+xr.p*12);if("V"in xr){if(xr.V<1||xr.V>53)return null;"w"in xr||(xr.w=1);if("Z"in xr){dD=g6y(b4(xr.y));var te=dD.getUTCDay();dD=te>4||te===0?j24.ceil(dD):j24(dD);dD=ulQ.offset(dD,(xr.V-1)*7);xr.y=dD.getUTCFullYear();xr.m=dD.getUTCMonth();xr.d=dD.getUTCDate()+(xr.w+6)%7}else dD=Mm(b4(xr.y)),te=dD.getDay(),dD=te>4||te===0?ict.ceil(dD):ict(dD),dD=Sfr.offset(dD,
(xr.V-1)*7),xr.y=dD.getFullYear(),xr.m=dD.getMonth(),xr.d=dD.getDate()+(xr.w+6)%7}else if("W"in xr||"U"in xr)"w"in xr||(xr.w="u"in xr?xr.u%7:"W"in xr?1:0),te="Z"in xr?g6y(b4(xr.y)).getUTCDay():Mm(b4(xr.y)).getDay(),xr.m=0,xr.d="W"in xr?(xr.w+6)%7+xr.W*7-(te+5)%7:xr.w+xr.U*7-(te+6)%7;return"Z"in xr?(xr.H+=xr.Z/100|0,xr.M+=xr.Z%100,g6y(xr)):Mm(xr)}}
function OS(Ex,Mm,dD,xr){for(var te=0,Hv=Mm.length,g9=dD.length,he;te<Hv;){if(xr>=g9)return-1;he=Mm.charCodeAt(te++);if(he===37){if(he=Mm.charAt(te++),he=zW[he in ioa?Mm.charAt(te++):he],!he||(xr=he(Ex,dD,xr))<0)return-1}else if(he!=dD.charCodeAt(xr++))return-1}return xr}
var FO=e.dateTime,iQ=e.date,pN=e.time,P4=e.periods,DY=e.days,tu=e.shortDays,CR=e.months,jE=e.shortMonths,RQ=pG(P4),eJ=LG(P4),p8=pG(DY),Gy=LG(DY),wG=pG(tu),d9=LG(tu),oa=pG(CR),w0=LG(CR),Cx=pG(jE),sH=LG(jE),p1={a:function(Ex){return tu[Ex.getDay()]},
A:function(Ex){return DY[Ex.getDay()]},
b:function(Ex){return jE[Ex.getMonth()]},
B:function(Ex){return CR[Ex.getMonth()]},
c:null,d:hvf,e:hvf,f:hW5,H:M31,I:b_1,j:pKi,L:M_p,m:Luz,M:zWz,p:function(Ex){return P4[+(Ex.getHours()>=12)]},
Q:boB,s:pDr,S:Ys5,u:avm,U:TVf,V:wKO,w:eWx,W:PR5,x:null,X:null,y:XKr,Y:xGO,Z:kHi,"%":L$X},s1={a:function(Ex){return tu[Ex.getUTCDay()]},
A:function(Ex){return DY[Ex.getUTCDay()]},
b:function(Ex){return jE[Ex.getUTCMonth()]},
B:function(Ex){return CR[Ex.getUTCMonth()]},
c:null,d:zvX,e:zvX,f:qsJ,H:fvm,I:ne5,j:Wum,L:Yfu,m:rX1,M:Ivf,p:function(Ex){return P4[+(Ex.getUTCHours()>=12)]},
Q:boB,s:pDr,S:lvx,u:QR5,U:mGm,V:Eem,w:GHn,W:RWi,x:null,X:null,y:veq,Y:JX5,Z:oen,"%":L$X},zW={a:function(Ex,Mm,dD){return(Mm=wG.exec(Mm.slice(dD)))?(Ex.w=d9[Mm[0].toLowerCase()],dD+Mm[0].length):-1},
A:function(Ex,Mm,dD){return(Mm=p8.exec(Mm.slice(dD)))?(Ex.w=Gy[Mm[0].toLowerCase()],dD+Mm[0].length):-1},
b:function(Ex,Mm,dD){return(Mm=Cx.exec(Mm.slice(dD)))?(Ex.m=sH[Mm[0].toLowerCase()],dD+Mm[0].length):-1},
B:function(Ex,Mm,dD){return(Mm=oa.exec(Mm.slice(dD)))?(Ex.m=w0[Mm[0].toLowerCase()],dD+Mm[0].length):-1},
c:function(Ex,Mm,dD){return OS(Ex,FO,Mm,dD)},
d:aFS,e:aFS,f:sRJ,H:TMQ,I:TMQ,j:Nnm,L:tQm,m:Oq1,M:Hqf,p:function(Ex,Mm,dD){return(Mm=RQ.exec(Mm.slice(dD)))?(Ex.p=eJ[Mm[0].toLowerCase()],dD+Mm[0].length):-1},
Q:A3O,s:Zq5,S:VQm,u:DPz,U:UPm,V:CXf,w:KR1,W:FRq,x:function(Ex,Mm,dD){return OS(Ex,iQ,Mm,dD)},
X:function(Ex,Mm,dD){return OS(Ex,pN,Mm,dD)},
y:dP1,Y:gT1,Z:y3i,"%":Bnr};p1.x=T(iQ,p1);p1.X=T(pN,p1);p1.c=T(FO,p1);s1.x=T(iQ,s1);s1.X=T(pN,s1);s1.c=T(FO,s1);return{format:function(Ex){var Mm=T(Ex,p1);Mm.toString=function(){return Ex};
return Mm},
parse:function(Ex){var Mm=f(Ex,uqn);Mm.toString=function(){return Ex};
return Mm},
utcFormat:function(Ex){var Mm=T(Ex,s1);Mm.toString=function(){return Ex};
return Mm},
utcParse:function(Ex){var Mm=f(Ex,g6y);Mm.toString=function(){return Ex};
return Mm}}}
function zm(e,T,f){var OS=e<0?"-":"";e=(OS?-e:e)+"";var FO=e.length;return OS+(FO<f?Array(f-FO+1).join(T)+e:e)}
function c3f(e){return e.replace($Pi,"\\$&")}
function pG(e){return new RegExp("^(?:"+e.map(c3f).join("|")+")","i")}
function LG(e){for(var T={},f=-1,OS=e.length;++f<OS;)T[e[f].toLowerCase()]=f;return T}
function KR1(e,T,f){return(T=eb.exec(T.slice(f,f+1)))?(e.w=+T[0],f+T[0].length):-1}
function DPz(e,T,f){return(T=eb.exec(T.slice(f,f+1)))?(e.u=+T[0],f+T[0].length):-1}
function UPm(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.U=+T[0],f+T[0].length):-1}
function CXf(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.V=+T[0],f+T[0].length):-1}
function FRq(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.W=+T[0],f+T[0].length):-1}
function gT1(e,T,f){return(T=eb.exec(T.slice(f,f+4)))?(e.y=+T[0],f+T[0].length):-1}
function dP1(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.y=+T[0]+(+T[0]>68?1900:2E3),f+T[0].length):-1}
function y3i(e,T,f){return(T=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(T.slice(f,f+6)))?(e.Z=T[1]?0:-(T[2]+(T[3]||"00")),f+T[0].length):-1}
function Oq1(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.m=T[0]-1,f+T[0].length):-1}
function aFS(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.d=+T[0],f+T[0].length):-1}
function Nnm(e,T,f){return(T=eb.exec(T.slice(f,f+3)))?(e.m=0,e.d=+T[0],f+T[0].length):-1}
function TMQ(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.H=+T[0],f+T[0].length):-1}
function Hqf(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.M=+T[0],f+T[0].length):-1}
function VQm(e,T,f){return(T=eb.exec(T.slice(f,f+2)))?(e.S=+T[0],f+T[0].length):-1}
function tQm(e,T,f){return(T=eb.exec(T.slice(f,f+3)))?(e.L=+T[0],f+T[0].length):-1}
function sRJ(e,T,f){return(T=eb.exec(T.slice(f,f+6)))?(e.L=Math.floor(T[0]/1E3),f+T[0].length):-1}
function Bnr(e,T,f){return(e=jOm.exec(T.slice(f,f+1)))?f+e[0].length:-1}
function A3O(e,T,f){return(T=eb.exec(T.slice(f)))?(e.Q=+T[0],f+T[0].length):-1}
function Zq5(e,T,f){return(T=eb.exec(T.slice(f)))?(e.Q=+T[0]*1E3,f+T[0].length):-1}
function hvf(e,T){return zm(e.getDate(),T,2)}
function M31(e,T){return zm(e.getHours(),T,2)}
function b_1(e,T){return zm(e.getHours()%12||12,T,2)}
function pKi(e,T){return zm(1+Sfr.count(La(e),e),T,3)}
function M_p(e,T){return zm(e.getMilliseconds(),T,3)}
function hW5(e,T){return M_p(e,T)+"000"}
function Luz(e,T){return zm(e.getMonth()+1,T,2)}
function zWz(e,T){return zm(e.getMinutes(),T,2)}
function Ys5(e,T){return zm(e.getSeconds(),T,2)}
function avm(e){e=e.getDay();return e===0?7:e}
function TVf(e,T){return zm(iqn.count(La(e),e),T,2)}
function wKO(e,T){var f=e.getDay();e=f>=4||f===0?u7N(e):u7N.ceil(e);return zm(u7N.count(La(e),e)+(La(e).getDay()===4),T,2)}
function eWx(e){return e.getDay()}
function PR5(e,T){return zm(ict.count(La(e),e),T,2)}
function XKr(e,T){return zm(e.getFullYear()%100,T,2)}
function xGO(e,T){return zm(e.getFullYear()%1E4,T,4)}
function kHi(e){e=e.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+zm(e/60|0,"0",2)+zm(e%60,"0",2)}
function zvX(e,T){return zm(e.getUTCDate(),T,2)}
function fvm(e,T){return zm(e.getUTCHours(),T,2)}
function ne5(e,T){return zm(e.getUTCHours()%12||12,T,2)}
function Wum(e,T){return zm(1+ulQ.count(zK(e),e),T,3)}
function Yfu(e,T){return zm(e.getUTCMilliseconds(),T,3)}
function qsJ(e,T){return Yfu(e,T)+"000"}
function rX1(e,T){return zm(e.getUTCMonth()+1,T,2)}
function Ivf(e,T){return zm(e.getUTCMinutes(),T,2)}
function lvx(e,T){return zm(e.getUTCSeconds(),T,2)}
function QR5(e){e=e.getUTCDay();return e===0?7:e}
function mGm(e,T){return zm(u31.count(zK(e),e),T,2)}
function Eem(e,T){var f=e.getUTCDay();e=f>=4||f===0?Sep(e):Sep.ceil(e);return zm(Sep.count(zK(e),e)+(zK(e).getUTCDay()===4),T,2)}
function GHn(e){return e.getUTCDay()}
function RWi(e,T){return zm(j24.count(zK(e),e),T,2)}
function veq(e,T){return zm(e.getUTCFullYear()%100,T,2)}
function JX5(e,T){return zm(e.getUTCFullYear()%1E4,T,4)}
function oen(){return"+0000"}
function L$X(){return"%"}
function boB(e){return+e}
function pDr(e){return Math.floor(+e/1E3)}
function cW(e){for(var T=e.length/6|0,f=Array(T),OS=0;OS<T;)f[OS]="#"+e.slice(OS*6,++OS*6);return f}
function Oy(e){return SXx(e[e.length-1])}
function yyQ(e){var T=e.length;return function(f){return e[Math.max(0,Math.min(T-1,Math.floor(f*T)))]}}
function wDy(e){this._context=e}
function evR(e){this._curve=e}
function P2R(e,T,f){var OS=e._x1-e._x0;T-=e._x1;var FO=(e._y1-e._y0)/(OS||T<0&&-0);e=(f-e._y1)/(T||OS<0&&-0);return((FO<0?-1:1)+(e<0?-1:1))*Math.min(Math.abs(FO),Math.abs(e),.5*Math.abs((FO*T+e*OS)/(OS+T)))||0}
function XDy(e,T){var f=e._x1-e._x0;return f?(3*(e._y1-e._y0)/f-T)/2:T}
function hMz(e,T,f){var OS=e._x0,FO=e._x1,iQ=e._y1,pN=(FO-OS)/3;e._context.bezierCurveTo(OS+pN,e._y0+pN*T,FO-pN,iQ-pN*f,FO,iQ)}
function MLM(e){this._context=e}
function x7R(e){this._context=e}
function z3(e,T,f){this.k=e;this.x=T;this.y=f}
(function(e){e.length===1&&(e=t(e));return{left:function(T,f,OS,FO){OS==null&&(OS=0);FO==null&&(FO=T.length);for(;OS<FO;){var iQ=OS+FO>>>1;e(T[iQ],f)<0?OS=iQ+1:FO=iQ}return OS},
right:function(T,f,OS,FO){OS==null&&(OS=0);FO==null&&(FO=T.length);for(;OS<FO;){var iQ=OS+FO>>>1;e(T[iQ],f)>0?FO=iQ:OS=iQ+1}return OS}}})(N);
var $7q={value:function(){}};
H.prototype=O.prototype={constructor:H,on:function(e,T){var f=this._,OS=A(e+"",f),FO,iQ=-1,pN=OS.length;if(arguments.length<2)for(;++iQ<pN;){var P4;if(P4=FO=(e=OS[iQ]).type){a:{P4=f[FO];for(var DY=0,tu=P4.length;DY<tu;++DY)if((FO=P4[DY]).name===e.name){FO=FO.value;break a}FO=void 0}P4=FO}if(P4)return FO}else{if(T!=null&&typeof T!=="function")throw Error("De`"+T);for(;++iQ<pN;)if(FO=(e=OS[iQ]).type)f[FO]=Z(f[FO],e.name,T);else if(T==null)for(FO in f)f[FO]=Z(f[FO],e.name,null);return this}},
copy:function(){var e={},T=this._,f;for(f in T)e[f]=T[f].slice();return new H(e)},
call:function(e,T){if((FO=arguments.length-2)>0)for(var f=Array(FO),OS=0,FO,iQ;OS<FO;++OS)f[OS]=arguments[OS+2];if(!this._.hasOwnProperty(e))throw Error("xe`"+e);iQ=this._[e];OS=0;for(FO=iQ.length;OS<FO;++OS)iQ[OS].value.apply(T,f)},
apply:function(e,T,f){if(!this._.hasOwnProperty(e))throw Error("xe`"+e);e=this._[e];for(var OS=0,FO=e.length;OS<FO;++OS)e[OS].value.apply(T,f)}};
var tl={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/"},kUu=function(e){return function(){return this.matches(e)}};
if(typeof document!=="undefined"){var Yh=document.documentElement;if(!Yh.matches){var hLm=Yh.webkitMatchesSelector||Yh.msMatchesSelector||Yh.mozMatchesSelector||Yh.oMatchesSelector;kUu=function(e){return function(){return hLm.call(this,e)}}}}var qfZ=kUu;
S.prototype={constructor:S,appendChild:function(e){return this._parent.insertBefore(e,this._next)},
insertBefore:function(e,T){return this._parent.insertBefore(e,T)},
querySelector:function(e){return this._parent.querySelector(e)},
querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};
var rkr={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(rkr={mouseenter:"mouseover",mouseleave:"mouseout"}));var jfx=[null];c0.prototype=Am.prototype={constructor:c0,select:function(e){typeof e!=="function"&&(e=c(e));for(var T=this._groups,f=T.length,OS=Array(f),FO=0;FO<f;++FO)for(var iQ=T[FO],pN=iQ.length,P4=OS[FO]=Array(pN),DY,tu,CR=0;CR<pN;++CR)(DY=iQ[CR])&&(tu=e.call(DY,DY.__data__,CR,iQ))&&("__data__"in DY&&(tu.__data__=DY.__data__),P4[CR]=tu);return new c0(OS,
this._parents)},
filter:function(e){typeof e!=="function"&&(e=qfZ(e));for(var T=this._groups,f=T.length,OS=Array(f),FO=0;FO<f;++FO)for(var iQ=T[FO],pN=iQ.length,P4=OS[FO]=[],DY,tu=0;tu<pN;++tu)(DY=iQ[tu])&&e.call(DY,DY.__data__,tu,iQ)&&P4.push(DY);return new c0(OS,this._parents)},
data:function(e,T){if(!e)return eJ=Array(this.size()),tu=-1,this.each(function(oa){eJ[++tu]=oa}),eJ;
var f=T?w:z,OS=this._parents,FO=this._groups;typeof e!=="function"&&(e=b(e));for(var iQ=FO.length,pN=Array(iQ),P4=Array(iQ),DY=Array(iQ),tu=0;tu<iQ;++tu){var CR=OS[tu],jE=FO[tu],RQ=jE.length,eJ=e.call(CR,CR&&CR.__data__,tu,OS),p8=eJ.length,Gy=P4[tu]=Array(p8),wG=pN[tu]=Array(p8);RQ=DY[tu]=Array(RQ);f(CR,jE,Gy,wG,RQ,eJ,T);jE=CR=0;for(var d9;CR<p8;++CR)if(RQ=Gy[CR]){for(CR>=jE&&(jE=CR+1);!(d9=wG[jE])&&++jE<p8;);RQ._next=d9||null}}pN=new c0(pN,OS);pN._enter=P4;pN._exit=DY;return pN},
enter:function(){return new c0(this._enter||this._groups.map(u),this._parents)},
exit:function(){return new c0(this._exit||this._groups.map(u),this._parents)},
merge:function(e){var T=this._groups;e=e._groups;for(var f=T.length,OS=Math.min(f,e.length),FO=Array(f),iQ=0;iQ<OS;++iQ)for(var pN=T[iQ],P4=e[iQ],DY=pN.length,tu=FO[iQ]=Array(DY),CR,jE=0;jE<DY;++jE)if(CR=pN[jE]||P4[jE])tu[jE]=CR;for(;iQ<f;++iQ)FO[iQ]=T[iQ];return new c0(FO,this._parents)},
order:function(){for(var e=this._groups,T=-1,f=e.length;++T<f;)for(var OS=e[T],FO=OS.length-1,iQ=OS[FO],pN;--FO>=0;)if(pN=OS[FO])iQ&&iQ!==pN.nextSibling&&iQ.parentNode.insertBefore(pN,iQ),iQ=pN;return this},
sort:function(e){function T(jE,RQ){return jE&&RQ?e(jE.__data__,RQ.__data__):!jE-!RQ}
e||(e=P);for(var f=this._groups,OS=f.length,FO=Array(OS),iQ=0;iQ<OS;++iQ){for(var pN=f[iQ],P4=pN.length,DY=FO[iQ]=Array(P4),tu,CR=0;CR<P4;++CR)if(tu=pN[CR])DY[CR]=tu;DY.sort(T)}return(new c0(FO,this._parents)).order()},
call:function(){var e=arguments[0];arguments[0]=this;e.apply(null,arguments);return this},
nodes:function(){var e=Array(this.size()),T=-1;this.each(function(){e[++T]=this});
return e},
node:function(){for(var e=this._groups,T=0,f=e.length;T<f;++T)for(var OS=e[T],FO=0,iQ=OS.length;FO<iQ;++FO){var pN=OS[FO];if(pN)return pN}return null},
size:function(){var e=0;this.each(function(){++e});
return e},
empty:function(){return!this.node()},
each:function(e){for(var T=this._groups,f=0,OS=T.length;f<OS;++f)for(var FO=T[f],iQ=0,pN=FO.length,P4;iQ<pN;++iQ)(P4=FO[iQ])&&e.call(P4,P4.__data__,iQ,FO);return this},
attr:function(e,T){var f=U(e);if(arguments.length<2){var OS=this.node();return f.local?OS.getAttributeNS(f.space,f.local):OS.getAttribute(f)}return this.each((T==null?f.local?l:x:typeof T==="function"?f.local?J:E:f.local?r:I)(f,T))},
style:function(e,T,f){return arguments.length>1?this.each((T==null?CN:typeof T==="function"?zM:B4)(e,T,f==null?"":f)):jy(this.node(),e)},
property:function(e,T){return arguments.length>1?this.each((T==null?c4:typeof T==="function"?kx:XO)(e,T)):this.node()[e]},
text:function(e){return arguments.length?this.each(e==null?fN:(typeof e==="function"?yr:gf)(e)):this.node().textContent},
html:function(e){return arguments.length?this.each(e==null?sS:(typeof e==="function"?pR:$X)(e)):this.node().innerHTML},
append:function(e){var T=typeof e==="function"?e:g(e);return this.select(function(){return this.appendChild(T.apply(this,arguments))})},
insert:function(e,T){var f=typeof e==="function"?e:g(e),OS=T==null?wf:typeof T==="function"?T:c(T);return this.select(function(){return this.insertBefore(f.apply(this,arguments),OS.apply(this,arguments)||null)})},
remove:function(){return this.each(b1)},
clone:function(e){return this.select(e?US:$r)},
datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},
on:function(e,T,f){var OS=v0(e+""),FO=OS.length,iQ;if(arguments.length<2){var pN=this.node().__on;if(pN)for(var P4=0,DY=pN.length,tu;P4<DY;++P4){var CR=0;for(tu=pN[P4];CR<FO;++CR)if((iQ=OS[CR]).type===tu.type&&iQ.name===tu.name)return tu.value}}else{pN=T?sp:hu;f==null&&(f=!1);for(CR=0;CR<FO;++CR)this.each(pN(OS[CR],T,f));return this}},
dispatch:function(e,T){return this.each((typeof T==="function"?B0:Qr)(e,T))}};
var io5=0;Rl.prototype=function(){return new Rl}.prototype={constructor:Rl,
get:function(e){for(var T=this._;!(T in e);)if(!(e=e.parentNode))return;return e[T]},
set:function(e,T){return e[this._]=T},
remove:function(e){return this._ in e&&delete e[this._]},
toString:function(){return this._}};
var Yz=1/.7,ul1=/^#([0-9a-f]{3})$/,SfO=/^#([0-9a-f]{6})$/,hvi=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),M_x=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),bof=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),pDO=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*\\)$"),
L$r=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),zvr=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*\\)$"),IUp={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};
Ox(Hl,jJ,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Ox(Ln,mZ,cl(Hl,{brighter:function(e){e=e==null?Yz:Math.pow(Yz,e);return new Ln(this.r*e,this.g*e,this.b*e,this.opacity)},
darker:function(e){e=e==null?.7:Math.pow(.7,e);return new Ln(this.r*e,this.g*e,this.b*e,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"#"+VO(this.r)+VO(this.g)+VO(this.b)},
toString:function(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===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))+(e===1?")":", "+e+")")}}));
Ox(JD,Zl,cl(Hl,{brighter:function(e){e=e==null?Yz:Math.pow(Yz,e);return new JD(this.h,this.s,this.l*e,this.opacity)},
darker:function(e){e=e==null?.7:Math.pow(.7,e);return new JD(this.h,this.s,this.l*e,this.opacity)},
rgb:function(){var e=this.h%360+(this.h<0)*360,T=this.l,f=T+(T<.5?T:1-T)*(isNaN(e)||isNaN(this.s)?0:this.s);T=2*T-f;return new Ln(nU(e>=240?e-240:e+120,T,f),nU(e,T,f),nU(e<120?e+240:e-120,T,f),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 lUf=Math.PI/180,Etr=180/Math.PI,mRf=4/29,b7=6/29,Q2u=3*b7*b7,Yfm=b7*b7*b7;Ox(al,function(e,T,f,OS){return arguments.length===1?Sb(e):new al(e,T,f,OS==null?1:OS)},cl(Hl,{brighter:function(e){return new al(this.l+18*(e==null?1:e),this.a,this.b,this.opacity)},
darker:function(e){return new al(this.l-18*(e==null?1:e),this.a,this.b,this.opacity)},
rgb:function(){var e=(this.l+16)/116,T=isNaN(this.a)?e:e+this.a/500,f=isNaN(this.b)?e:e-this.b/200;T=.96422*ES(T);e=1*ES(e);f=.82521*ES(f);return new Ln(My(3.1338561*T-1.6168667*e-.4906146*f),My(-.9787684*T+1.9161415*e+.033454*f),My(.0719453*T-.2289914*e+1.4052427*f),this.opacity)}}));
Ox(aQ,T5,cl(Hl,{brighter:function(e){return new aQ(this.h,this.c,this.l+18*(e==null?1:e),this.opacity)},
darker:function(e){return new aQ(this.h,this.c,this.l-18*(e==null?1:e),this.opacity)},
rgb:function(){return Sb(this).rgb()}}));
var Gd0=1.78277*-.29227-.1347134789;Ox(ri,LR,cl(Hl,{brighter:function(e){e=e==null?Yz:Math.pow(Yz,e);return new ri(this.h,this.s,this.l*e,this.opacity)},
darker:function(e){e=e==null?.7:Math.pow(.7,e);return new ri(this.h,this.s,this.l*e,this.opacity)},
rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*lUf,T=+this.l,f=isNaN(this.s)?0:this.s*T*(1-T),OS=Math.cos(e);e=Math.sin(e);return new Ln(255*(T+f*(-.14861*OS+1.78277*e)),255*(T+f*(-.29227*OS+-.90649*e)),255*(T+1.97294*OS*f),this.opacity)}}));
var otR=function f(T){function OS(iQ,pN){var P4=FO((iQ=mZ(iQ)).r,(pN=mZ(pN)).r),DY=FO(iQ.g,pN.g),tu=FO(iQ.b,pN.b),CR=D3(iQ.opacity,pN.opacity);return function(jE){iQ.r=P4(jE);iQ.g=DY(jE);iQ.b=tu(jE);iQ.opacity=CR(jE);return iQ+""}}
var FO=Ra(T);OS.gamma=f;return OS}(1),SXx=bM(function(T){var f=T.length-1;
return function(OS){var FO=OS<=0?OS=0:OS>=1?(OS=1,f-1):Math.floor(OS*f),iQ=T[FO],pN=T[FO+1];return Q$((OS-FO/f)*f,FO>0?T[FO-1]:2*iQ-pN,iQ,pN,FO<f-1?T[FO+2]:2*pN-iQ)}});
bM(function(T){var f=T.length;return function(OS){var FO=Math.floor(((OS%=1)<0?++OS:OS)*f);return Q$((OS-FO/f)*f,T[(FO+f-1)%f],T[FO%f],T[(FO+1)%f],T[(FO+2)%f])}});
var DR4=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,UR4=new RegExp(DR4.source,"g"),RMS=180/Math.PI,bcG={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ah,pFg,fFy,B9M,MQx=vY(function(T){if(T==="none")return bcG;ah||(ah=document.createElement("DIV"),pFg=document.documentElement,fFy=document.defaultView);ah.style.transform=T;T=fFy.getComputedStyle(pFg.appendChild(ah),null).getPropertyValue("transform");pFg.removeChild(ah);T=T.slice(7,-1).split(",");return wy(+T[0],+T[1],+T[2],+T[3],
+T[4],+T[5])},"px, ","px)","deg)"),bqJ=vY(function(T){if(T==null)return bcG;
B9M||(B9M=document.createElementNS("http://www.w3.org/2000/svg","g"));B9M.setAttribute("transform",T);if(!(T=B9M.transform.baseVal.consolidate()))return bcG;T=T.matrix;return wy(T.a,T.b,T.c,T.d,T.e,T.f)},", ",")",")");
Ym(mA);Ym(D3);pV(mA);pV(D3);bR(mA);var LOy=bR(D3),pa=0,i4=0,SY=0,V4z,u4,Z9G=0,vf=0,Ay4=0,jY=typeof performance==="object"&&performance.now?performance:Date,vtQ=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(T){setTimeout(T,17)};
fp.prototype=p_.prototype={constructor:fp,restart:function(T,f,OS){if(typeof T!=="function")throw new TypeError("Ee");OS=(OS==null?q_():+OS)+(f==null?0:+f);this._next||u4===this||(u4?u4._next=this:V4z=this,u4=this);this._call=T;this._time=OS;ei()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,ei())}};
var aF5=O("start","end","interrupt"),TM1=[],pf1=Am.prototype.constructor,npX=0,ae=Am.prototype;X5.prototype=function(T){return Am().transition(T)}.prototype={constructor:X5,
select:function(T){var f=this._name,OS=this._id;typeof T!=="function"&&(T=c(T));for(var FO=this._groups,iQ=FO.length,pN=Array(iQ),P4=0;P4<iQ;++P4)for(var DY=FO[P4],tu=DY.length,CR=pN[P4]=Array(tu),jE,RQ,eJ=0;eJ<tu;++eJ)(jE=DY[eJ])&&(RQ=T.call(jE,jE.__data__,eJ,DY))&&("__data__"in jE&&(RQ.__data__=jE.__data__),CR[eJ]=RQ,u1(CR[eJ],f,OS,eJ,CR,rG(jE,OS)));return new X5(pN,this._parents,f,OS)},
filter:function(T){typeof T!=="function"&&(T=qfZ(T));for(var f=this._groups,OS=f.length,FO=Array(OS),iQ=0;iQ<OS;++iQ)for(var pN=f[iQ],P4=pN.length,DY=FO[iQ]=[],tu,CR=0;CR<P4;++CR)(tu=pN[CR])&&T.call(tu,tu.__data__,CR,pN)&&DY.push(tu);return new X5(FO,this._parents,this._name,this._id)},
merge:function(T){if(T._id!==this._id)throw Error();var f=this._groups;T=T._groups;for(var OS=f.length,FO=Math.min(OS,T.length),iQ=Array(OS),pN=0;pN<FO;++pN)for(var P4=f[pN],DY=T[pN],tu=P4.length,CR=iQ[pN]=Array(tu),jE,RQ=0;RQ<tu;++RQ)if(jE=P4[RQ]||DY[RQ])CR[RQ]=jE;for(;pN<OS;++pN)iQ[pN]=f[pN];return new X5(iQ,this._parents,this._name,this._id)},
selection:function(){return new pf1(this._groups,this._parents)},
transition:function(){for(var T=this._name,f=this._id,OS=++npX,FO=this._groups,iQ=FO.length,pN=0;pN<iQ;++pN)for(var P4=FO[pN],DY=P4.length,tu,CR=0;CR<DY;++CR)if(tu=P4[CR]){var jE=rG(tu,f);u1(tu,T,OS,CR,P4,{time:jE.time+jE.delay+jE.duration,delay:0,duration:jE.duration,ease:jE.ease})}return new X5(FO,this._parents,T,OS)},
call:ae.call,nodes:ae.nodes,node:ae.node,size:ae.size,empty:ae.empty,each:ae.each,on:function(T,f){var OS=this._id;return arguments.length<2?rG(this.node(),OS).on.on(T):this.each(m71(OS,T,f))},
attr:function(T,f){var OS=U(T),FO=OS==="transform"?bqJ:JkQ;return this.attrTween(T,typeof f==="function"?(OS.local?kUm:x7n)(OS,FO,e6(this,"attr."+T,f)):f==null?(OS.local?evn:wDq)(OS):(OS.local?XDq:P2n)(OS,FO,f+""))},
attrTween:function(T,f){var OS="attr."+T;if(arguments.length<2)return(OS=this.tween(OS))&&OS._value;if(f==null)return this.tween(OS,null);if(typeof f!=="function")throw Error();var FO=U(T);return this.tween(OS,(FO.local?qf5:fFq)(FO,f))},
style:function(T,f,OS){var FO=T==="transform"?MQx:JkQ;return f==null?this.styleTween(T,GUz(T,FO)).on("end.style."+T,Rvm(T)):this.styleTween(T,typeof f==="function"?J6i(T,FO,e6(this,"style."+T,f)):vpO(T,FO,f+""),OS)},
styleTween:function(T,f,OS){var FO="style."+T;if(arguments.length<2)return(FO=this.tween(FO))&&FO._value;if(f==null)return this.tween(FO,null);if(typeof f!=="function")throw Error();return this.tween(FO,opJ(T,f,OS==null?"":OS))},
text:function(T){return this.tween("text",typeof T==="function"?NVz(e6(this,"text",T)):sfr(T==null?"":T+""))},
remove:function(){return this.on("end.remove",Ep5(this._id))},
tween:function(T,f){var OS=this._id;if(arguments.length<2){OS=rG(this.node(),OS).tween;for(var FO=0,iQ=OS.length,pN;FO<iQ;++FO)if((pN=OS[FO]).name===T)return pN.value;return null}return this.each((f==null?NH:Q_)(OS,T,f))},
delay:function(T){var f=this._id;return arguments.length?this.each((typeof T==="function"?npr:W$O)(f,T)):rG(this.node(),f).delay},
duration:function(T){var f=this._id;return arguments.length?this.each((typeof T==="function"?r6x:IFx)(f,T)):rG(this.node(),f).duration},
ease:function(T){var f=this._id;return arguments.length?this.each(lFO(f,T)):rG(this.node(),f).ease}};
var zMx={time:null,delay:0,duration:250,ease:function(T){return((T*=2)<=1?T*T*T:(T-=2)*T*T+2)/2}};
Am.prototype.transition=function(T){var f;if(T instanceof X5){var OS=T._id;T=T._name}else OS=++npX,(f=zMx).time=q_(),T=T==null?null:T+"";for(var FO=this._groups,iQ=FO.length,pN=0;pN<iQ;++pN)for(var P4=FO[pN],DY=P4.length,tu,CR=0;CR<DY;++CR)if(tu=P4[CR]){var jE=tu,RQ=T,eJ=OS,p8=CR,Gy=P4,wG;if(!(wG=f))a:{wG=void 0;for(var d9=OS;!(wG=tu.__transition)||!(wG=wG[d9]);)if(!(tu=tu.parentNode)){wG=(zMx.time=q_(),zMx);break a}}u1(jE,RQ,eJ,p8,Gy,wG)}return new X5(FO,this._parents,T,OS)};
["e","w"].map(CE9);["n","s"].map(CE9);"n e s w nw ne se sw".split(" ").map(CE9);KO4.prototype=function(){return new KO4}.prototype={constructor:KO4,
moveTo:function(T,f){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+f)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(T,f){this._+="L"+(this._x1=+T)+","+(this._y1=+f)},
bezierCurveTo:function(T,f,OS,FO,iQ,pN){this._+="C"+ +T+","+ +f+","+ +OS+","+ +FO+","+(this._x1=+iQ)+","+(this._y1=+pN)},
rect:function(T,f,OS,FO){this._+="M"+(this._x0=this._x1=+T)+","+(this._y0=this._y1=+f)+"h"+ +OS+"v"+ +FO+"h"+-OS+"Z"},
toString:function(){return this._}};
D1N.prototype=s2p.prototype={constructor:D1N,has:function(T){return" "+T in this},
get:function(T){return this[" "+T]},
set:function(T,f){this[" "+T]=f;return this},
remove:function(T){T=" "+T;return T in this&&delete this[T]},
clear:function(){for(var T in this)T[0]===" "&&delete this[T]},
keys:function(){var T=[],f;for(f in this)f[0]===" "&&T.push(f.slice(1));return T},
values:function(){var T=[],f;for(f in this)f[0]===" "&&T.push(this[f]);return T},
entries:function(){var T=[],f;for(f in this)f[0]===" "&&T.push({key:f.slice(1),value:this[f]});return T},
size:function(){var T=0,f;for(f in this)f[0]===" "&&++T;return T},
empty:function(){for(var T in this)if(T[0]===" ")return!1;return!0},
each:function(T){for(var f in this)f[0]===" "&&T(this[f],f.slice(1),this)}};
var sX=s2p.prototype;U1z.prototype=function(T,f){var OS=new U1z;if(T instanceof U1z)T.each(function(pN){OS.add(pN)});
else if(T){var FO=-1,iQ=T.length;if(f==null)for(;++FO<iQ;)OS.add(T[FO]);else for(;++FO<iQ;)OS.add(f(T[FO],FO,T))}return OS}.prototype={constructor:U1z,
has:sX.has,add:function(T){this[" "+T]=T;return this},
remove:sX.remove,clear:sX.clear,values:sX.keys,size:sX.size,empty:sX.empty,each:sX.each};var OoQ={},FON={},LRr=t_B(",").parse,zLm=t_B("\t").parse;HoZ(LRr);HoZ(zLm);var An=function(T,f,OS){f=new dRv(f==null?AX1:f,OS==null?Z_1:OS,NaN,NaN,NaN,NaN);return T==null?f:f.addAll(T)}.prototype=dRv.prototype;
An.copy=function(){var T=new dRv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),f=this._root,OS,FO;if(!f)return T;if(!f.length)return T._root=ZoB(f),T;for(OS=[{source:f,target:T._root=Array(4)}];f=OS.pop();)for(var iQ=0;iQ<4;++iQ)if(FO=f.source[iQ])FO.length?OS.push({source:FO,target:f.target[iQ]=Array(4)}):f.target[iQ]=ZoB(FO);return T};
An.add=function(T){var f=+this._x.call(null,T),OS=+this._y.call(null,T);return A6r(this.cover(f,OS),f,OS,T)};
An.addAll=function(T){var f,OS,FO=T.length,iQ,pN,P4=Array(FO),DY=Array(FO),tu=Infinity,CR=Infinity,jE=-Infinity,RQ=-Infinity;for(OS=0;OS<FO;++OS)isNaN(iQ=+this._x.call(null,f=T[OS]))||isNaN(pN=+this._y.call(null,f))||(P4[OS]=iQ,DY[OS]=pN,iQ<tu&&(tu=iQ),iQ>jE&&(jE=iQ),pN<CR&&(CR=pN),pN>RQ&&(RQ=pN));jE<tu&&(tu=this._x0,jE=this._x1);RQ<CR&&(CR=this._y0,RQ=this._y1);this.cover(tu,CR).cover(jE,RQ);for(OS=0;OS<FO;++OS)A6r(this,P4[OS],DY[OS],T[OS]);return this};
An.cover=function(T,f){if(isNaN(T=+T)||isNaN(f=+f))return this;var OS=this._x0,FO=this._y0,iQ=this._x1,pN=this._y1;if(isNaN(OS))iQ=(OS=Math.floor(T))+1,pN=(FO=Math.floor(f))+1;else if(OS>T||T>iQ||FO>f||f>pN){var P4=iQ-OS,DY=this._root,tu;switch(tu=(f<(FO+pN)/2)<<1|T<(OS+iQ)/2){case 0:do{var CR=Array(4);CR[tu]=DY;DY=CR}while(P4*=2,iQ=OS+P4,pN=FO+P4,T>iQ||f>pN);break;case 1:do CR=Array(4),CR[tu]=DY,DY=CR;while(P4*=2,OS=iQ-P4,pN=FO+P4,OS>T||f>pN);break;case 2:do CR=Array(4),CR[tu]=DY,DY=CR;while(P4*=
2,iQ=OS+P4,FO=pN-P4,T>iQ||FO>f);break;case 3:do CR=Array(4),CR[tu]=DY,DY=CR;while(P4*=2,OS=iQ-P4,FO=pN-P4,OS>T||FO>f)}this._root&&this._root.length&&(this._root=DY)}else return this;this._x0=OS;this._y0=FO;this._x1=iQ;this._y1=pN;return this};
An.data=function(){var T=[];this.visit(function(f){if(!f.length){do T.push(f.data);while(f=f.next)}});
return T};
An.extent=function(T){return arguments.length?this.cover(+T[0][0],+T[0][1]).cover(+T[1][0],+T[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
An.find=function(T,f,OS){var FO=this._x0,iQ=this._y0,pN,P4,DY,tu,CR=this._x1,jE=this._y1,RQ=[],eJ=this._root,p8;eJ&&RQ.push(new H2(eJ,FO,iQ,CR,jE));OS==null?OS=Infinity:(FO=T-OS,iQ=f-OS,CR=T+OS,jE=f+OS,OS*=OS);for(;p8=RQ.pop();)if(!(!(eJ=p8.node)||(pN=p8.x0)>CR||(P4=p8.y0)>jE||(DY=p8.x1)<FO||(tu=p8.y1)<iQ))if(eJ.length){p8=(pN+DY)/2;var Gy=(P4+tu)/2;RQ.push(new H2(eJ[3],p8,Gy,DY,tu),new H2(eJ[2],pN,Gy,p8,tu),new H2(eJ[1],p8,P4,DY,Gy),new H2(eJ[0],pN,P4,p8,Gy));if(eJ=(f>=Gy)<<1|T>=p8)p8=RQ[RQ.length-
1],RQ[RQ.length-1]=RQ[RQ.length-1-eJ],RQ[RQ.length-1-eJ]=p8}else if(p8=T-+this._x.call(null,eJ.data),Gy=f-+this._y.call(null,eJ.data),p8=p8*p8+Gy*Gy,p8<OS){var wG=Math.sqrt(OS=p8);FO=T-wG;iQ=f-wG;CR=T+wG;jE=f+wG;wG=eJ.data}return wG};
An.remove=function(T){if(isNaN(tu=+this._x.call(null,T))||isNaN(CR=+this._y.call(null,T)))return this;var f,OS=this._root,FO,iQ=this._x0,pN=this._y0,P4=this._x1,DY=this._y1,tu,CR,jE,RQ,eJ,p8,Gy;if(!OS)return this;if(OS.length)for(;;){(eJ=tu>=(jE=(iQ+P4)/2))?iQ=jE:P4=jE;(p8=CR>=(RQ=(pN+DY)/2))?pN=RQ:DY=RQ;if(!(f=OS,OS=OS[Gy=p8<<1|eJ]))return this;if(!OS.length)break;if(f[Gy+1&3]||f[Gy+2&3]||f[Gy+3&3]){var wG=f;var d9=Gy}}for(;OS.data!==T;)if(!(FO=OS,OS=OS.next))return this;(T=OS.next)&&delete OS.next;
if(FO)return T?FO.next=T:delete FO.next,this;if(!f)return this._root=T,this;T?f[Gy]=T:delete f[Gy];(OS=f[0]||f[1]||f[2]||f[3])&&OS===(f[3]||f[2]||f[1]||f[0])&&!OS.length&&(wG?wG[d9]=OS:this._root=OS);return this};
An.removeAll=function(T){for(var f=0,OS=T.length;f<OS;++f)this.remove(T[f]);return this};
An.root=function(){return this._root};
An.size=function(){var T=0;this.visit(function(f){if(!f.length){do++T;while(f=f.next)}});
return T};
An.visit=function(T){var f=[],OS,FO=this._root,iQ,pN,P4,DY,tu;for(FO&&f.push(new H2(FO,this._x0,this._y0,this._x1,this._y1));OS=f.pop();)if(!T(FO=OS.node,pN=OS.x0,P4=OS.y0,DY=OS.x1,tu=OS.y1)&&FO.length){OS=(pN+DY)/2;var CR=(P4+tu)/2;(iQ=FO[3])&&f.push(new H2(iQ,OS,CR,DY,tu));(iQ=FO[2])&&f.push(new H2(iQ,pN,CR,OS,tu));(iQ=FO[1])&&f.push(new H2(iQ,OS,P4,DY,CR));(iQ=FO[0])&&f.push(new H2(iQ,pN,P4,OS,CR))}};
An.visitAfter=function(T){var f=[],OS=[],FO;for(this._root&&f.push(new H2(this._root,this._x0,this._y0,this._x1,this._y1));FO=f.pop();){var iQ=FO.node;if(iQ.length){var pN,P4=FO.x0,DY=FO.y0,tu=FO.x1,CR=FO.y1,jE=(P4+tu)/2,RQ=(DY+CR)/2;(pN=iQ[0])&&f.push(new H2(pN,P4,DY,jE,RQ));(pN=iQ[1])&&f.push(new H2(pN,jE,DY,tu,RQ));(pN=iQ[2])&&f.push(new H2(pN,P4,RQ,jE,CR));(pN=iQ[3])&&f.push(new H2(pN,jE,RQ,tu,CR))}OS.push(FO)}for(;FO=OS.pop();)T(FO.node,FO.x0,FO.y0,FO.x1,FO.y1);return this};
An.x=function(T){return arguments.length?(this._x=T,this):this._x};
An.y=function(T){return arguments.length?(this._y=T,this):this._y};
var CRm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;gtv.prototype=ykt.prototype;ykt.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 C2Y,K$r={"%":function(T,f){return(T*100).toFixed(f)},
b:function(T){return Math.round(T).toString(2)},
c:function(T){return T+""},
d:function(T){return Math.round(T).toString(10)},
e:function(T,f){return T.toExponential(f)},
f:function(T,f){return T.toFixed(f)},
g:function(T,f){return T.toPrecision(f)},
o:function(T){return Math.round(T).toString(8)},
p:function(T,f){return V_X(T*100,f)},
r:V_X,s:function(T,f){var OS=CUx(T,f);if(!OS)return T+"";var FO=OS[0];OS=OS[1];OS=OS-(C2Y=Math.max(-8,Math.min(8,Math.floor(OS/3)))*3)+1;var iQ=FO.length;return OS===iQ?FO:OS>iQ?FO+Array(OS-iQ+1).join("0"):OS>0?FO.slice(0,OS)+"."+FO.slice(OS):"0."+Array(1-OS).join("0")+CUx(T,Math.max(0,f+OS-1))[0]},
X:function(T){return Math.round(T).toString(16).toUpperCase()},
x:function(T){return Math.round(T).toString(16)}},U7Z="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),YX5;
(function(T){return YX5=KuO(T)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});me.prototype={constructor:me,reset:function(){this.s=this.t=0},
add:function(T){F$_(cy4,T,this.t);F$_(this,cy4.s,this.s);this.s?this.t+=cy4.t:this.s=cy4.t},
valueOf:function(){return this.s}};
var cy4=new me,Av=Math.PI,OI=Av/2,W$r=Av/4,aHJ=Av*2,Yeg=Av/180,xO=Math.abs,aU9=Math.atan,$7y=Math.atan2,H7=Math.cos,kj=Math.sin,FKl=Math.sqrt;new me;new me;new me;var T4x=new me;(function(T,f,OS,FO){return function(iQ){function pN(sH,p1){T(sH,p1)&&iQ.point(sH,p1)}
function P4(sH,p1){eJ.point(sH,p1)}
function DY(){Cx.point=P4;eJ.lineStart()}
function tu(){Cx.point=pN;eJ.lineEnd()}
function CR(sH,p1){w0.push([sH,p1]);Gy.point(sH,p1)}
function jE(){Gy.lineStart();w0=[]}
function RQ(){CR(w0[0][0],w0[0][1]);Gy.lineEnd();var sH=Gy.clean(),p1=p8.result(),s1=p1.length,zW;w0.pop();d9.push(w0);w0=null;if(s1)if(sH&1){if(s1=p1[0],(p1=s1.length-1)>0){wG||(iQ.polygonStart(),wG=!0);iQ.lineStart();for(sH=0;sH<p1;++sH)iQ.point((zW=s1[sH])[0],zW[1]);iQ.lineEnd()}}else s1>1&&sH&2&&p1.push(p1.pop().concat(p1.shift())),oa.push(p1.filter(yX5))}
var eJ=f(iQ),p8=dGn(),Gy=f(p8),wG=!1,d9,oa,w0,Cx={point:pN,lineStart:DY,lineEnd:tu,polygonStart:function(){Cx.point=CR;Cx.lineStart=jE;Cx.lineEnd=RQ;oa=[];d9=[]},
polygonEnd:function(){Cx.point=pN;Cx.lineStart=DY;Cx.lineEnd=tu;var sH=oa,p1=sH.length;var s1=-1;for(var zW=0,Ex,Mm;++s1<p1;)zW+=sH[s1].length;for(Ex=Array(zW);--p1>=0;)for(Mm=sH[p1],s1=Mm.length;--s1>=0;)Ex[--zW]=Mm[s1];oa=Ex;sH=d9;p1=FO[0];zW=FO[1];var dD=kj(zW);s1=[kj(p1),-H7(p1),0];Mm=Ex=0;T4x.reset();dD===1?zW=OI+1E-6:dD===-1&&(zW=-OI-1E-6);dD=0;for(var xr=sH.length;dD<xr;++dD)if(Hv=(te=sH[dD]).length){var te,Hv,g9=te[Hv-1],he=g9[0],Pb=g9[1]/2+W$r,$1l=kj(Pb),r6p=H7(Pb);for(Pb=0;Pb<Hv;++Pb,he=
wF4,$1l=IFp,r6p=T3,g9=jbx){var jbx=te[Pb],wF4=jbx[0];T3=jbx[1]/2+W$r;var IFp=kj(T3),T3=H7(T3),TK=wF4-he,eMt=TK>=0?1:-1,PEN=eMt*TK,i9Q=PEN>Av;$1l*=IFp;T4x.add($7y($1l*eMt*kj(PEN),r6p*T3+$1l*H7(PEN)));Ex+=i9Q?TK+eMt*aHJ:TK;i9Q^he>=p1^wF4>=p1&&(g9=gpp(d7_(g9),d7_(jbx)),y60(g9),he=gpp(s1,g9),y60(he),he=(i9Q^TK>=0?-1:1)*KKN(he[2]),zW>he||zW===he&&(g9[0]||g9[1]))&&(Mm+=i9Q^TK>=0?1:-1)}}sH=(Ex<-1E-6||Ex<1E-6&&T4x<-1E-6)^Mm&1;oa.length?(wG||(iQ.polygonStart(),wG=!0),gef(oa,BVJ,sH,OS,iQ)):sH&&(wG||(iQ.polygonStart(),
wG=!0),iQ.lineStart(),OS(null,null,1,iQ),iQ.lineEnd());wG&&(iQ.polygonEnd(),wG=!1);oa=d9=null},
sphere:function(){iQ.polygonStart();iQ.lineStart();OS(null,null,1,iQ);iQ.lineEnd();iQ.polygonEnd()}};
return Cx}})(function(){return!0},function(T){var f=NaN,OS=NaN,FO=NaN,iQ;
return{lineStart:function(){T.lineStart();iQ=1},
point:function(pN,P4){var DY=pN>0?Av:-Av,tu=xO(pN-f);if(xO(tu-Av)<1E-6)T.point(f,OS=(OS+P4)/2>0?OI:-OI),T.point(FO,OS),T.lineEnd(),T.lineStart(),T.point(DY,OS),T.point(pN,OS),iQ=0;else if(FO!==DY&&tu>=Av){xO(f-FO)<1E-6&&(f-=FO*1E-6);xO(pN-DY)<1E-6&&(pN-=DY*1E-6);tu=f;var CR=OS,jE=pN,RQ,eJ,p8=kj(tu-jE);OS=xO(p8)>1E-6?aU9((kj(CR)*(eJ=H7(P4))*kj(jE)-kj(P4)*(RQ=H7(CR))*kj(tu))/(RQ*eJ*p8)):(CR+P4)/2;T.point(FO,OS);T.lineEnd();T.lineStart();T.point(DY,OS);iQ=0}T.point(f=pN,OS=P4);FO=DY},
lineEnd:function(){T.lineEnd();f=OS=NaN},
clean:function(){return 2-iQ}}},function(T,f,OS,FO){T==null?(OS*=OI,FO.point(-Av,OS),FO.point(0,OS),FO.point(Av,OS),FO.point(Av,0),FO.point(Av,-OS),FO.point(0,-OS),FO.point(-Av,-OS),FO.point(-Av,0),FO.point(-Av,OS)):xO(T[0]-f[0])>1E-6?(T=T[0]<f[0]?Av:-Av,OS=OS*T/2,FO.point(-T,OS),FO.point(0,OS),FO.point(T,OS)):FO.point(f[0],f[1])},[-Av,
-OI]);new me;new me;new me;new me;B4y.prototype={constructor:B4y,point:function(T,f){this.stream.point(T,f)},
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()}};
H7(30*Yeg);(function(T){return function(f){var OS=new B4y,FO;for(FO in T)OS[FO]=T[FO];OS.stream=f;return OS}})({point:function(T,f){this.stream.point(T*Yeg,f*Yeg)}});
c60(function(T){return FKl(2/(1+T))}).invert=hF(function(T){return 2*KKN(T/2)});
c60(function(T){return(T=T>1?0:T<-1?Av:Math.acos(T))&&T/kj(T)}).invert=hF(function(T){return T});
FKl(3);hF(aU9);hF(KKN);hF(function(T){return 2*aU9(T)});
MM.prototype=jfp.prototype={constructor:MM,count:function(){return this.eachAfter(cX1)},
each:function(T){var f,OS=[this],FO;do{var iQ=OS.reverse();for(OS=[];f=iQ.pop();)if(T(f),f=f.children){var pN=0;for(FO=f.length;pN<FO;++pN)OS.push(f[pN])}}while(OS.length);return this},
eachAfter:function(T){for(var f,OS=[this],FO=[],iQ,pN;f=OS.pop();)if(FO.push(f),f=f.children)for(iQ=0,pN=f.length;iQ<pN;++iQ)OS.push(f[iQ]);for(;f=FO.pop();)T(f);return this},
eachBefore:function(T){for(var f,OS=[this],FO;f=OS.pop();)if(T(f),f=f.children)for(FO=f.length-1;FO>=0;--FO)OS.push(f[FO]);return this},
sum:function(T){return this.eachAfter(function(f){for(var OS=+T(f.data)||0,FO=f.children,iQ=FO&&FO.length;--iQ>=0;)OS+=FO[iQ].value;f.value=OS})},
sort:function(T){return this.eachBefore(function(f){f.children&&f.children.sort(T)})},
path:function(T){var f=this;var OS=f;var FO=T;if(OS!==FO){var iQ=OS.ancestors(),pN=FO.ancestors(),P4=null;OS=iQ.pop();for(FO=pN.pop();OS===FO;)P4=OS,OS=iQ.pop(),FO=pN.pop();OS=P4}for(FO=[f];f!==OS;)f=f.parent,FO.push(f);for(f=FO.length;T!==OS;)FO.splice(f,0,T),T=T.parent;return FO},
ancestors:function(){for(var T=this,f=[T];T=T.parent;)f.push(T);return f},
links:function(){var T=this,f=[];T.each(function(OS){OS!==T&&f.push({source:OS.parent,target:OS})});
return f},
copy:function(){return jfp(this).eachBefore(i_5)}};
(function(T,f){this._=T;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=f}).prototype=Object.create(MM.prototype);
var ckv=new Date,$Rg=new Date,lFr=Lv(function(){},function(T,f){T.setTime(+T+f)},function(T,f){return f-T});
lFr.every=function(T){T=Math.floor(T);return isFinite(T)&&T>0?T>1?Lv(function(f){f.setTime(Math.floor(f/T)*T)},function(f,OS){f.setTime(+f+OS*T)},function(f,OS){return(OS-f)/T}):lFr:null};
Lv(function(T){T.setTime(Math.floor(T/1E3)*1E3)},function(T,f){T.setTime(+T+f*1E3)},function(T,f){return(f-T)/1E3},function(T){return T.getUTCSeconds()});
Lv(function(T){T.setTime(Math.floor(T/6E4)*6E4)},function(T,f){T.setTime(+T+f*6E4)},function(T,f){return(f-T)/6E4},function(T){return T.getMinutes()});
Lv(function(T){var f=T.getTimezoneOffset()*6E4%36E5;f<0&&(f+=36E5);T.setTime(Math.floor((+T-f)/36E5)*36E5+f)},function(T,f){T.setTime(+T+f*36E5)},function(T,f){return(f-T)/36E5},function(T){return T.getHours()});
var Sfr=Lv(function(T){T.setHours(0,0,0,0)},function(T,f){T.setDate(T.getDate()+f)},function(T,f){return(f-T-(f.getTimezoneOffset()-T.getTimezoneOffset())*6E4)/864E5},function(T){return T.getDate()-1}),iqn=J3(0),ict=J3(1);
J3(2);J3(3);var u7N=J3(4);J3(5);J3(6);Lv(function(T){T.setDate(1);T.setHours(0,0,0,0)},function(T,f){T.setMonth(T.getMonth()+f)},function(T,f){return f.getMonth()-T.getMonth()+(f.getFullYear()-T.getFullYear())*12},function(T){return T.getMonth()});
var La=Lv(function(T){T.setMonth(0,1);T.setHours(0,0,0,0)},function(T,f){T.setFullYear(T.getFullYear()+f)},function(T,f){return f.getFullYear()-T.getFullYear()},function(T){return T.getFullYear()});
La.every=function(T){return isFinite(T=Math.floor(T))&&T>0?Lv(function(f){f.setFullYear(Math.floor(f.getFullYear()/T)*T);f.setMonth(0,1);f.setHours(0,0,0,0)},function(f,OS){f.setFullYear(f.getFullYear()+OS*T)}):null};
Lv(function(T){T.setUTCSeconds(0,0)},function(T,f){T.setTime(+T+f*6E4)},function(T,f){return(f-T)/6E4},function(T){return T.getUTCMinutes()});
Lv(function(T){T.setUTCMinutes(0,0,0)},function(T,f){T.setTime(+T+f*36E5)},function(T,f){return(f-T)/36E5},function(T){return T.getUTCHours()});
var ulQ=Lv(function(T){T.setUTCHours(0,0,0,0)},function(T,f){T.setUTCDate(T.getUTCDate()+f)},function(T,f){return(f-T)/864E5},function(T){return T.getUTCDate()-1}),u31=oO(0),j24=oO(1);
oO(2);oO(3);var Sep=oO(4);oO(5);oO(6);Lv(function(T){T.setUTCDate(1);T.setUTCHours(0,0,0,0)},function(T,f){T.setUTCMonth(T.getUTCMonth()+f)},function(T,f){return f.getUTCMonth()-T.getUTCMonth()+(f.getUTCFullYear()-T.getUTCFullYear())*12},function(T){return T.getUTCMonth()});
var zK=Lv(function(T){T.setUTCMonth(0,1);T.setUTCHours(0,0,0,0)},function(T,f){T.setUTCFullYear(T.getUTCFullYear()+f)},function(T,f){return f.getUTCFullYear()-T.getUTCFullYear()},function(T){return T.getUTCFullYear()});
zK.every=function(T){return isFinite(T=Math.floor(T))&&T>0?Lv(function(f){f.setUTCFullYear(Math.floor(f.getUTCFullYear()/T)*T);f.setUTCMonth(0,1);f.setUTCHours(0,0,0,0)},function(f,OS){f.setUTCFullYear(f.getUTCFullYear()+OS*T)}):null};
var ioa={"-":"",_:" ",0:"0"},eb=/^\s*\d+/,jOm=/^%/,$Pi=/[\\^$*+?|[\]().{}]/g,uyz;(function(T){uyz=Ssm(T);qIp=uyz.utcFormat;fZS=uyz.utcParse;return uyz})({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||qIp("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||fZS("%Y-%m-%dT%H:%M:%S.%LZ");cW("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
cW("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");cW("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");cW("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");cW("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");cW("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");cW("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
cW("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");cW("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");cW("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");cW("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");cW("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Tnq=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(cW);Oy(Tnq);var wfr=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(cW);Oy(wfr);var eLf=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(cW);Oy(eLf);var PXx=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(cW);
Oy(PXx);var Xf5=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(cW);Oy(Xf5);var xPr=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(cW);Oy(xPr);var kOq=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(cW);Oy(kOq);var qX5=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(cW);Oy(qX5);var fH5=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(cW);Oy(fH5);var nTx=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(cW);Oy(nTx);var WR1=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(cW);Oy(WR1);var r3m=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(cW);Oy(r3m);var IHm=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(cW);Oy(IHm);var lHf=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(cW);Oy(lHf);var QO1=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(cW);Oy(QO1);var mPr=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(cW);Oy(mPr);var ETO=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(cW);Oy(ETO);var GO5=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(cW);Oy(GO5);var RLn=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(cW);Oy(RLn);var vTm=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(cW);Oy(vTm);var J3m=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(cW);Oy(J3m);var oTO=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(cW);Oy(oTO);var sO5=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(cW);Oy(sO5);var NXf=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(cW);Oy(NXf);var tdO=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(cW);Oy(tdO);var O61=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(cW);Oy(O61);var H6n=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(cW);Oy(H6n);LOy(LR(300,.5,0),LR(-240,.5,1));LOy(LR(-100,.75,.35),LR(80,1.5,.8));LOy(LR(260,.75,.35),LR(80,1.5,.8));LR();mZ();yyQ(cW("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
yyQ(cW("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
yyQ(cW("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
yyQ(cW("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
wDy.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(T,f){T=+T;f=+f;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(T,f):this._context.moveTo(T,f);break;case 1:this._point=2;default:this._context.lineTo(T,f)}}};
(function(T){function f(OS){return new evR(T(OS))}
f._curve=T;return f})(function(T){return new wDy(T)});
evR.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(T,f){this._curve.point(f*Math.sin(T),f*-Math.cos(T))}};
MLM.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:hMz(this,this._t0,XDy(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(T,f){var OS=NaN;T=+T;f=+f;if(T!==this._x1||f!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(T,f):this._context.moveTo(T,f);break;case 1:this._point=2;break;case 2:this._point=3;hMz(this,XDy(this,OS=P2R(this,T,f)),OS);break;default:hMz(this,this._t0,OS=P2R(this,T,f))}this._x0=this._x1;this._x1=T;this._y0=this._y1;this._y1=f;this._t0=OS}}};
(function(T){this._context=new x7R(T)}.prototype=Object.create(MLM.prototype)).point=function(T,f){MLM.prototype.point.call(this,f,T)};
x7R.prototype={moveTo:function(T,f){this._context.moveTo(f,T)},
closePath:function(){this._context.closePath()},
lineTo:function(T,f){this._context.lineTo(f,T)},
bezierCurveTo:function(T,f,OS,FO,iQ,pN){this._context.bezierCurveTo(f,T,FO,OS,pN,iQ)}};
z3.prototype={constructor:z3,scale:function(T){return T===1?this:new z3(this.k*T,this.x,this.y)},
translate:function(T,f){return T===0&f===0?this:new z3(this.k,this.x+this.k*T,this.y+this.k*f)},
apply:function(T){return[T[0]*this.k+this.x,T[1]*this.k+this.y]},
invert:function(T){return[(T[0]-this.x)/this.k,(T[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new z3(1,0,0);UrS=jJ;tl.svg=tl.svg;tl.xhtml=tl.xhtml;tl.xlink=tl.xlink;tl.xml=tl.xml;tl.xmlns=tl.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 nf_="hammer_"+(Math.random()*1E6|0),Wp_=function(){var N=document||document;if(!N[nf_]){var t=function(){(function(O,H,A,Z){function U(al,nN,ES){return setTimeout(u(al,ES),nN)}
function C(al,nN,ES){return Array.isArray(al)?(F(al,ES[nN],ES),!0):!1}
function F(al,nN,ES){var My;if(al)if(al.forEach)al.forEach(nN,ES);else if(al.length!==Z){var Mq=0;for(My=al.length;Mq<My;Mq++)nN.call(ES,al[Mq],Mq,al)}else for(Mq in al)al.hasOwnProperty(Mq)&&nN.call(ES,al[Mq],Mq,al)}
function g(al,nN,ES){for(var My=Object.keys(nN),Mq=0,kw=My.length;Mq<kw;Mq++)if(!ES||ES&&al[My[Mq]]===Z)al[My[Mq]]=nN[My[Mq]];return al}
function B(al,nN){return g(al,nN,!0)}
function c(al,nN,ES){nN=nN.prototype;var My=al.prototype=Object.create(nN);My.constructor=al;My._super=nN;ES&&g(My,ES)}
function u(al,nN){return function(){return al.apply(nN,arguments)}}
function S(al,nN){return typeof al=="function"?al.apply(nN?nN[0]||Z:Z,nN):al}
function b(al,nN,ES){F(w(nN),function(My){al.addEventListener(My,ES,!1)})}
function z(al,nN,ES){F(w(nN),function(My){al.removeEventListener(My,ES,!1)})}
function w(al){return al.trim().split(/\s+/g)}
function P(al,nN,ES){if(al.indexOf&&!ES)return al.indexOf(nN);for(var My=0,Mq=al.length;My<Mq;My++)if(ES&&al[My][ES]==nN||!ES&&al[My]===nN)return My;return-1}
function x(al,nN,ES){for(var My=[],Mq=[],kw=0,T5=al.length;kw<T5;kw++){var aQ=nN?al[kw][nN]:al[kw];P(Mq,aQ)<0&&My.push(al[kw]);Mq[kw]=aQ}ES&&(My=nN?My.sort(function(LR,ri){return LR[nN]>ri[nN]}):My.sort());
return My}
function l(al,nN){for(var ES,My=nN[0].toUpperCase()+nN.slice(1),Mq=0,kw=B0.length;Mq<kw;Mq++)if(ES=(ES=B0[Mq])?ES+My:nN,ES in al)return ES;return Z}
function I(al,nN){var ES=this;this.manager=al;this.callback=nN;this.element=al.element;this.target=al.options.inputTarget;this.domHandler=function(My){S(al.options.enable,[al])&&ES.handler(My)};
this.evEl&&b(this.element,this.evEl,this.domHandler);this.evTarget&&b(this.target,this.evTarget,this.domHandler);this.evWin&&b(O,this.evWin,this.domHandler)}
function r(al){var nN;QO?nN=XO:BA?nN=kx:jJ?nN=fN:nN=c4;return new nN(al,E)}
function E(al,nN,ES){var My=ES.pointers.length,Mq=ES.changedPointers.length,kw=nN&1&&My-Mq===0;ES.isFirst=!!kw;ES.isFinal=!!(nN&12&&My-Mq===0);kw&&(al.session={});ES.eventType=nN;nN=al.session;My=ES.pointers;Mq=My.length;nN.firstInput||(nN.firstInput=J(ES));Mq>1&&!nN.firstMultiple?nN.firstMultiple=J(ES):Mq===1&&(nN.firstMultiple=!1);kw=nN.firstInput;var T5=(Mq=nN.firstMultiple)?Mq.center:kw.center,aQ=ES.center=CN(My);ES.timeStamp=Ox();ES.deltaTime=ES.timeStamp-kw.timeStamp;ES.angle=jy(T5,aQ);ES.distance=
zM(T5,aQ);kw=ES.center;T5=nN.offsetDelta||{};aQ=nN.prevDelta||{};var LR=nN.prevInput||{};if(ES.eventType===1||LR.eventType===4)aQ=nN.prevDelta={x:LR.deltaX||0,y:LR.deltaY||0},T5=nN.offsetDelta={x:kw.x,y:kw.y};ES.deltaX=aQ.x+(kw.x-T5.x);ES.deltaY=aQ.y+(kw.y-T5.y);ES.offsetDirection=B4(ES.deltaX,ES.deltaY);Mq?(kw=Mq.pointers,kw=zM(My[0],My[1],mZ)/zM(kw[0],kw[1],mZ)):kw=1;ES.scale=kw;Mq?(Mq=Mq.pointers,My=jy(My[1],My[0],mZ)-jy(Mq[1],Mq[0],mZ)):My=0;ES.rotation=My;T5=nN.lastInterval||ES;My=ES.timeStamp-
T5.timeStamp;ES.eventType!=8&&(My>25||T5.velocity===Z)?(kw=T5.deltaX-ES.deltaX,T5=T5.deltaY-ES.deltaY,aQ=kw/My||0,LR=T5/My||0,My=aQ,Mq=LR,aQ=Rl(aQ)>Rl(LR)?aQ:LR,kw=B4(kw,T5),nN.lastInterval=ES):(aQ=T5.velocity,My=T5.velocityX,Mq=T5.velocityY,kw=T5.direction);ES.velocity=aQ;ES.velocityX=My;ES.velocityY=Mq;ES.direction=kw;nN=al.element;a:{for(My=ES.srcEvent.target;My;){if(My==nN){My=!0;break a}My=My.parentNode}My=!1}My&&(nN=ES.srcEvent.target);ES.target=nN;al.emit("hammer.input",ES);al.recognize(ES);
al.session.prevInput=ES}
function J(al){for(var nN=[],ES=0;ES<al.pointers.length;ES++)nN[ES]={clientX:Am(al.pointers[ES].clientX),clientY:Am(al.pointers[ES].clientY)};return{timeStamp:Ox(),pointers:nN,center:CN(nN),deltaX:al.deltaX,deltaY:al.deltaY}}
function CN(al){var nN=al.length;if(nN===1)return{x:Am(al[0].clientX),y:Am(al[0].clientY)};for(var ES=0,My=0,Mq=0;Mq<nN;Mq++)ES+=al[Mq].clientX,My+=al[Mq].clientY;return{x:Am(ES/nN),y:Am(My/nN)}}
function B4(al,nN){return al===nN?1:Rl(al)>=Rl(nN)?al>0?2:4:nN>0?8:16}
function zM(al,nN,ES){ES||(ES=Su);var My=nN[ES[0]]-al[ES[0]];al=nN[ES[1]]-al[ES[1]];return Math.sqrt(My*My+al*al)}
function jy(al,nN,ES){ES||(ES=Su);return Math.atan2(nN[ES[1]]-al[ES[1]],nN[ES[0]]-al[ES[0]])*180/Math.PI}
function c4(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;I.apply(this,arguments)}
function XO(){this.evEl=PW;this.evWin=Zl;I.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function kx(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};I.apply(this,arguments)}
function fN(){I.apply(this,arguments);var al=u(this.handler,this);this.touch=new kx(this.manager,al);this.mouse=new c4(this.manager,al)}
function gf(al,nN){this.manager=al;this.set(nN)}
function yr(al){if(al.indexOf("none")>-1)return"none";var nN=al.indexOf("pan-x")>-1,ES=al.indexOf("pan-y")>-1;return nN&&ES?"pan-x pan-y":nN||ES?nN?"pan-x":"pan-y":al.indexOf("manipulation")>-1?"manipulation":"auto"}
function sS(al){this.id=cl++;this.manager=null;this.options=B(al||{},this.defaults);al=this.options.enable;this.options.enable=al===Z?!0:al;this.state=1;this.simultaneous={};this.requireFail=[]}
function $X(al){return al==16?"down":al==8?"up":al==2?"left":al==4?"right":""}
function pR(al,nN){return(nN=nN.manager)?nN.get(al):al}
function wf(){sS.apply(this,arguments)}
function b1(){wf.apply(this,arguments);this.pY=this.pX=null}
function $r(){wf.apply(this,arguments)}
function US(){sS.apply(this,arguments);this._input=this._timer=null}
function H0(){wf.apply(this,arguments)}
function SE(){wf.apply(this,arguments)}
function v0(){sS.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function hu(al,nN){nN=nN||{};var ES=nN.recognizers;nN.recognizers=ES===Z?hu.defaults.preset:ES;return new sp(al,nN)}
function sp(al,nN){nN=nN||{};this.options=B(nN,hu.defaults);this.options.inputTarget=this.options.inputTarget||al;this.handlers={};this.session={};this.recognizers=[];this.element=al;this.input=r(this);this.touchAction=new gf(this,this.options.touchAction);LU(this,!0);F(nN.recognizers,function(ES){var My=this.add(new ES[0](ES[1]));ES[2]&&My.recognizeWith(ES[2]);ES[3]&&My.requireFailure(ES[2])},this)}
function LU(al,nN){var ES=al.element;F(al.options.cssProps,function(My,Mq){ES.style[l(ES.style,Mq)]=nN?My:""})}
function Qr(al,nN){var ES=H.createEvent("Event");ES.initEvent(al,!0,!0);ES.gesture=nN;nN.target.dispatchEvent(ES)}
var B0=" webkit moz MS ms o".split(" "),c0=H.createElement("div"),Am=Math.round,Rl=Math.abs,Ox=Date.now,cl=1,Hl=/mobile|tablet|ip(ad|hone|od)|android/i,jJ="ontouchstart"in O,QO=l(O,"PointerEvent")!==Z,BA=jJ&&Hl.test(navigator.userAgent),Su=["x","y"],mZ=["clientX","clientY"];I.prototype={handler:function(){},
destroy:function(){this.evEl&&z(this.element,this.evEl,this.domHandler);this.evTarget&&z(this.target,this.evTarget,this.domHandler);this.evWin&&z(O,this.evWin,this.domHandler)}};
var Ln={mousedown:1,mousemove:2,mouseup:4};c(c4,I,{handler:function(al){var nN=Ln[al.type];nN&1&&al.button===0&&(this.pressed=!0);nN&2&&al.which!==1&&(nN=4);this.pressed&&this.allow&&(nN&4&&(this.pressed=!1),this.callback(this.manager,nN,{pointers:[al],changedPointers:[al],pointerType:"mouse",srcEvent:al}))}});
var VO={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},vW={2:"touch",3:"pen",4:"mouse",5:"kinect"},PW="pointerdown",Zl="pointermove pointerup pointercancel";O.MSPointerEvent&&(PW="MSPointerDown",Zl="MSPointerMove MSPointerUp MSPointerCancel");c(XO,I,{handler:function(al){var nN=this.store,ES=!1,My=al.type.toLowerCase().replace("ms","");My=VO[My];var Mq=vW[al.pointerType]||al.pointerType;My&1&&(al.button===0||Mq=="touch")?nN.push(al):My&12&&(ES=!0);var kw=P(nN,al.pointerId,"pointerId");
kw<0||(nN[kw]=al,this.callback(this.manager,My,{pointers:nN,changedPointers:[al],pointerType:Mq,srcEvent:al}),ES&&nN.splice(kw,1))}});
var JD={touchstart:1,touchmove:2,touchend:4,touchcancel:8};c(kx,I,{handler:function(al){var nN=JD[al.type];var ES=Array.prototype.slice.call(al.touches,0);var My=this.targetIds;if(nN&3&&ES.length===1)My[ES[0].identifier]=!0,My=[ES,ES];else{var Mq,kw=Array.prototype.slice.call(al.targetTouches,0),T5=Array.prototype.slice.call(al.changedTouches,0),aQ=[];if(nN===1)for(ES=0,Mq=kw.length;ES<Mq;ES++)My[kw[ES].identifier]=!0;ES=0;for(Mq=T5.length;ES<Mq;ES++)My[T5[ES].identifier]&&aQ.push(T5[ES]),nN&12&&
delete My[T5[ES].identifier];My=aQ.length?[x(kw.concat(aQ),"identifier",!0),aQ]:void 0}My&&this.callback(this.manager,nN,{pointers:My[0],changedPointers:My[1],pointerType:"touch",srcEvent:al})}});
c(fN,I,{handler:function(al,nN,ES){var My=ES.pointerType=="mouse";if(ES.pointerType=="touch")this.mouse.allow=!1;else if(My&&!this.mouse.allow)return;nN&12&&(this.mouse.allow=!0);this.callback(al,nN,ES)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var nU=l(c0.style,"touchAction"),Sb=nU!==Z;gf.prototype={set:function(al){al=="compute"&&(al=this.compute());Sb&&(this.manager.element.style[nU]=al);this.actions=al.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var al=[];F(this.manager.recognizers,function(nN){S(nN.options.enable,[nN])&&(al=al.concat(nN.getTouchAction()))});
return yr(al.join(" "))},
preventDefaults:function(al){if(!Sb){var nN=al.srcEvent;al=al.offsetDirection;if(this.manager.session.prevented)nN.preventDefault();else{var ES=this.actions,My=ES.indexOf("none")>-1,Mq=ES.indexOf("pan-y")>-1;ES=ES.indexOf("pan-x")>-1;if(My||Mq&&ES||Mq&&al&6||ES&&al&24)return this.preventSrc(nN)}}},
preventSrc:function(al){this.manager.session.prevented=!0;al.preventDefault()}};
sS.prototype={defaults:{},set:function(al){g(this.options,al);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(al){if(C(al,"recognizeWith",this))return this;var nN=this.simultaneous;al=pR(al,this);nN[al.id]||(nN[al.id]=al,al.recognizeWith(this));return this},
dropRecognizeWith:function(al){if(C(al,"dropRecognizeWith",this))return this;al=pR(al,this);delete this.simultaneous[al.id];return this},
requireFailure:function(al){if(C(al,"requireFailure",this))return this;var nN=this.requireFail;al=pR(al,this);P(nN,al)===-1&&(nN.push(al),al.requireFailure(this));return this},
dropRequireFailure:function(al){if(C(al,"dropRequireFailure",this))return this;al=pR(al,this);al=P(this.requireFail,al);al>-1&&this.requireFail.splice(al,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(al){return!!this.simultaneous[al.id]},
emit:function(al){function nN(Mq){ES.manager.emit(ES.options.event+(Mq?My&16?"cancel":My&8?"end":My&4?"move":My&2?"start":"":""),al)}
var ES=this,My=this.state;My<8&&nN(!0);nN();My>=8&&nN(!0)},
tryEmit:function(al){if(this.canEmit())return this.emit(al);this.state=32},
canEmit:function(){for(var al=0;al<this.requireFail.length;al++)if(!(this.requireFail[al].state&33))return!1;return!0},
recognize:function(al){al=g({},al);S(this.options.enable,[this,al])?(this.state&56&&(this.state=1),this.state=this.process(al),this.state&30&&this.tryEmit(al)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
c(wf,sS,{defaults:{pointers:1},attrTest:function(al){var nN=this.options.pointers;return nN===0||al.pointers.length===nN},
process:function(al){var nN=this.state,ES=al.eventType,My=nN&6;al=this.attrTest(al);return My&&(ES&8||!al)?nN|16:My||al?ES&4?nN|8:nN&2?nN|4:2:32}});
c(b1,wf,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var al=this.options.direction;if(al===30)return["none"];var nN=[];al&6&&nN.push("pan-y");al&24&&nN.push("pan-x");return nN},
directionTest:function(al){var nN=this.options,ES=!0,My=al.distance,Mq=al.direction,kw=al.deltaX,T5=al.deltaY;Mq&nN.direction||(nN.direction&6?(Mq=kw===0?1:kw<0?2:4,ES=kw!=this.pX,My=Math.abs(al.deltaX)):(Mq=T5===0?1:T5<0?8:16,ES=T5!=this.pY,My=Math.abs(al.deltaY)));al.direction=Mq;return ES&&My>nN.threshold&&Mq&nN.direction},
attrTest:function(al){return wf.prototype.attrTest.call(this,al)&&(this.state&2||!(this.state&2)&&this.directionTest(al))},
emit:function(al){this.pX=al.deltaX;this.pY=al.deltaY;var nN=$X(al.direction);nN&&this.manager.emit(this.options.event+nN,al);this._super.emit.call(this,al)}});
c($r,wf,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(al){return this._super.attrTest.call(this,al)&&(Math.abs(al.scale-1)>this.options.threshold||this.state&2)},
emit:function(al){this._super.emit.call(this,al);al.scale!==1&&this.manager.emit(this.options.event+(al.scale<1?"in":"out"),al)}});
c(US,sS,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(al){var nN=this.options,ES=al.pointers.length===nN.pointers,My=al.distance<nN.threshold,Mq=al.deltaTime>nN.time;this._input=al;if(!My||!ES||al.eventType&12&&!Mq)this.reset();else if(al.eventType&1)this.reset(),this._timer=U(function(){this.state=8;this.tryEmit()},nN.time,this);
else if(al.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(al){this.state===8&&(al&&al.eventType&4?this.manager.emit(this.options.event+"up",al):(this._input.timeStamp=Ox(),this.manager.emit(this.options.event,this._input)))}});
c(H0,wf,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(al){return this._super.attrTest.call(this,al)&&(Math.abs(al.rotation)>this.options.threshold||this.state&2)}});
c(SE,wf,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return b1.prototype.getTouchAction.call(this)},
attrTest:function(al){var nN=this.options.direction;if(nN&30)var ES=al.velocity;else nN&6?ES=al.velocityX:nN&24&&(ES=al.velocityY);return this._super.attrTest.call(this,al)&&nN&al.direction&&Rl(ES)>this.options.velocity&&al.eventType&4},
emit:function(al){var nN=$X(al.direction);nN&&this.manager.emit(this.options.event+nN,al);this.manager.emit(this.options.event,al)}});
c(v0,sS,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(al){var nN=this.options,ES=al.pointers.length===nN.pointers,My=al.distance<nN.threshold,Mq=al.deltaTime<nN.time;this.reset();if(al.eventType&1&&this.count===0)return this.failTimeout();if(My&&Mq&&ES){if(al.eventType!=4)return this.failTimeout();ES=this.pTime?al.timeStamp-this.pTime<nN.interval:!0;My=!this.pCenter||zM(this.pCenter,al.center)<nN.posThreshold;this.pTime=al.timeStamp;this.pCenter=al.center;My&&ES?this.count+=1:this.count=1;this._input=al;if(this.count%nN.taps===0)return this.hasRequireFailures()?
(this._timer=U(function(){this.state=8;this.tryEmit()},nN.interval,this),2):8}return 32},
failTimeout:function(){this._timer=U(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))}});
hu.VERSION="2.0.2";hu.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[H0,{enable:!1}],[$r,{enable:!1},["rotate"]],[SE,{direction:6}],[b1,{direction:6},["swipe"]],[v0],[v0,{event:"doubletap",taps:2},["tap"]],[US]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};sp.prototype={set:function(al){g(this.options,al);return this},
stop:function(al){this.session.stopped=al?2:1},
recognize:function(al){var nN=this.session;if(!nN.stopped){this.touchAction.preventDefaults(al);var ES=this.recognizers,My=nN.curRecognizer;if(!My||My&&My.state&8)My=nN.curRecognizer=null;for(var Mq=0,kw=ES.length;Mq<kw;Mq++){var T5=ES[Mq];nN.stopped===2||My&&T5!=My&&!T5.canRecognizeWith(My)?T5.reset():T5.recognize(al);!My&&T5.state&14&&(My=nN.curRecognizer=T5)}}},
get:function(al){if(al instanceof sS)return al;for(var nN=this.recognizers,ES=0;ES<nN.length;ES++)if(nN[ES].options.event==al)return nN[ES];return null},
add:function(al){if(C(al,"add",this))return this;var nN=this.get(al.options.event);nN&&this.remove(nN);this.recognizers.push(al);al.manager=this;this.touchAction.update();return al},
remove:function(al){if(C(al,"remove",this))return this;var nN=this.recognizers;al=this.get(al);nN.splice(P(nN,al),1);this.touchAction.update();return this},
on:function(al,nN){var ES=this.handlers;F(w(al),function(My){ES[My]=ES[My]||[];ES[My].push(nN)});
return this},
off:function(al,nN){var ES=this.handlers;F(w(al),function(My){nN?ES[My].splice(P(ES[My],nN),1):delete ES[My]});
return this},
emit:function(al,nN){this.options.domEvents&&Qr(al,nN);var ES=this.handlers[al]&&this.handlers[al].slice();if(ES&&ES.length){nN.type=al;nN.preventDefault=function(){nN.srcEvent.preventDefault()};
al=0;for(var My=ES.length;al<My;al++)ES[al](nN)}},
destroy:function(){this.element&&LU(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
g(hu,{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:sp,Input:I,TouchAction:gf,Recognizer:sS,AttrRecognizer:wf,Tap:v0,Pan:b1,Swipe:SE,Pinch:$r,Rotate:H0,Press:US,on:b,off:z,each:F,merge:B,extend:g,inherit:c,bindFn:u,prefixed:l});
O[A]=hu})(window,document,"Hammer");
return window.Hammer}.call({});
t.DOCUMENT=N;N[nf_]=t}return N[nf_]};/*

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

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
*/
_.LO({_template:function(){if(w1Z!==void 0)return w1Z;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-autogrow-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_autogrow_textarea.tp.yt.iron.autogrow.textarea.css.js--\x3e\n\n<div id="mirror" class="mirror-text style-scope tp-yt-iron-autogrow-textarea" aria-hidden="true" style-target="textarea">\u00a0</div>\n\n\n<div class="textarea-container fit style-scope tp-yt-iron-autogrow-textarea">\n  <textarea id="textarea" name$="[[name]]" aria-label$="[[label]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" autocapitalize$="[[autocapitalize]]" inputmode$="[[inputmode]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" disabled$="[[disabled]]" rows$="[[rows]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" style-target="textarea" class="style-scope tp-yt-iron-autogrow-textarea"></textarea>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;TIB===void 0&&(TIB=document.createElement("template"));var H=TIB;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return w1Z=N},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.Rv,_.Iv],properties:{value:{observer:"_valueChanged",type:String,notify:!0},bindValue:{observer:"_bindValueChanged",type:String,notify:!0},rows:{type:Number,value:1,observer:"_updateCached"},maxRows:{type:Number,value:0,observer:"_updateCached"},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,value:!1},autocapitalize:{type:String,value:"none"},inputmode:{type:String},placeholder:{type:String},readonly:{type:String},required:{type:Boolean},
minlength:{type:Number},maxlength:{type:Number},label:{type:String}},listeners:{input:"_onInput"},get textarea(){return this.$.textarea},get selectionStart(){return this.$.textarea.selectionStart},get selectionEnd(){return this.$.textarea.selectionEnd},set selectionStart(N){this.$.textarea.selectionStart=N},set selectionEnd(N){this.$.textarea.selectionEnd=N},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var N=this.$.textarea.validity.valid;N&&(this.required&&this.value===""?N=!1:this.hasValidator()&&(N=_.Rv.validate.call(this,this.value)));this.invalid=!N;this.fire("iron-input-validate");return N},
_bindValueChanged:function(N){this.value=N},
_valueChanged:function(N){var t=this.textarea;t&&(t.value!==N&&(t.value=N||N===0?N:""),this.bindValue=N,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(N){var t=_.$L(N).path;this.value=t?t[0].value:N.target.value},
_constrain:function(N){var t;N=N||[""];for(t=this.maxRows>0&&N.length>this.maxRows?N.slice(0,this.maxRows):N.slice(0);this.rows>0&&t.length<this.rows;)t.push("");return t.join("\n")+"\u00a0"},
_valueForMirror:function(){var N=this.textarea;if(N)return this.tokens=N&&N.value?N.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var e4p;var PtZ;_.LO({_template:function(){if(PtZ!==void 0)return PtZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-collapse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_collapse.tp.yt.iron.collapse.css.js--\x3e<slot class="style-scope tp-yt-iron-collapse"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
var t=N.content,O=t.insertBefore;e4p===void 0&&(e4p=document.createElement("template"));var H=e4p;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return PtZ=N},
is:"tp-yt-iron-collapse",behaviors:[_.JV],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(N,t){N=N==="auto"?"":N;t=t&&!this.noAnimation&&this.isAttached&&this._desiredSize!==N;this._desiredSize=N;this._updateTransition(!1);t&&(t=this._calcSize(),N===""&&(this.style[this._dimensionMax]="",N=this._calcSize()),this.style[this._dimensionMax]=t,this.scrollTop=this.scrollTop,this._updateTransition(!0),t=N!==t);this.style[this._dimensionMax]=N;t||this._transitionEnd()},
enableTransition:function(N){_.Wn._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!N},
_updateTransition:function(N){this.style.transitionDuration=N&&!this.noAnimation?"":"0s"},
_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;this.style[this._dimensionMax==="maxWidth"?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},
_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0);this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},
_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},
_onTransitionEnd:function(N){_.$L(N).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var X1y;var xOu;var kja=void 0,qwR={properties:{sizingTarget:{type:Object,value:function(){var N;return(N=this.hostElement)!=null?N:this}},
fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object},avoidOuterEdge:{type:Boolean,value:!1}},get _defaultPositionTarget(){var N,t=_.$L((N=this.hostElement)!=null?N:
this).parentNode;t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t=t.host);return t},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var N;this._memoizedIsRTL=window.getComputedStyle((N=this.hostElement)!=null?N:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var N;window.getComputedStyle((N=this.hostElement)!=null?N:this).display==="none"?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit())}},
detached:function(){},
fit:function(){this.position();this.constrain();this.center()},
_discoverInfo:function(){if(!this._fitInfo){var N,t=window.getComputedStyle((N=this.hostElement)!=null?N:this);N=window.getComputedStyle(this.sizingTarget);var O,H,A;this._fitInfo={inlineStyle:{top:((O=this.hostElement)!=null?O:this).style.top||"",left:((H=this.hostElement)!=null?H:this).style.left||"",position:((A=this.hostElement)!=null?A:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:t.top!=="auto"?"top":t.bottom!=="auto"?"bottom":null,horizontally:t.left!=="auto"?"left":t.right!=="auto"?"right":null},sizedBy:{height:N.maxHeight!=="none",width:N.maxWidth!=="none",minWidth:parseInt(N.minWidth,10)||0,minHeight:parseInt(N.minHeight,10)||0},margin:{top:parseInt(t.marginTop,10)||0,right:parseInt(t.marginRight,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0}}}},
resetFit:function(){var N=this._fitInfo||{},t;for(t in N.sizerInlineStyle)this.sizingTarget.style[t]=N.sizerInlineStyle[t];for(t in N.inlineStyle){var O=void 0;((O=this.hostElement)!=null?O:this).style[t]=N.inlineStyle[t]}this._fitInfo=null},
refit:function(){var N=this.sizingTarget.scrollLeft,t=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=N;this.sizingTarget.scrollTop=t},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var N;((N=this.hostElement)!=null?N:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var t;((t=this.hostElement)!=null?t:this).style.left="0px";var O;((O=this.hostElement)!=null?O:this).style.top="0px";var H,A=((H=this.hostElement)!=null?H:this).getBoundingClientRect();t=this.__getNormalizedRect(this.positionTarget);H=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(H={left:H.left+24,right:H.right-24,top:H.top+24,bottom:H.bottom-24});if(this.expandSizingTargetForScrollbars){var Z=this.sizingTarget.offsetWidth;var U=this.sizingTarget.offsetHeight;var C=this.sizingTarget.clientWidth;var F=this.sizingTarget.clientHeight}N=this._fitInfo.margin;t=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:A.width+N.left+N.right,height:A.height+N.top+N.bottom},A,t,H);var g=t.left+N.left,B=t.top+N.top;O=Math.min(H.right-N.right,g+A.width);var c=Math.min(H.bottom-
N.bottom,B+A.height);g=Math.max(H.left+N.left,Math.min(g,O-this._fitInfo.sizedBy.minWidth));B=Math.max(H.top+N.top,Math.min(B,c-this._fitInfo.sizedBy.minHeight));O=Math.max(O-g,this._fitInfo.sizedBy.minWidth);c=Math.max(c-B,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=O+"px";this.sizingTarget.style.maxHeight=c+"px";g-=A.left;A=B-A.top;var u;((u=this.hostElement)!=null?u:this).style.left=g+"px";var S;((S=this.hostElement)!=null?S:this).style.top=A+"px";if(this.expandSizingTargetForScrollbars){u=
this.sizingTarget.offsetHeight;U=u-this.sizingTarget.clientHeight-(U-F);if(U>0){this.sizingTarget.style.maxHeight=Math.min(H.height-N.top-N.bottom,c+U)+"px";U=this.sizingTarget.offsetHeight;F=U-u;var b;t.verticalAlign==="top"?b=A:t.verticalAlign==="middle"?b=A-F/2:t.verticalAlign==="bottom"&&(b=A-F);b=Math.max(H.top+N.top,Math.min(b,H.bottom-N.bottom-U));var z;((z=this.hostElement)!=null?z:this).style.top=b+"px"}b=this.sizingTarget.offsetWidth;Z=b-this.sizingTarget.clientWidth-(Z-C);if(Z>0){kja!==
void 0?C=kja:(C=document.createElement("div"),Object.assign(C.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),z=document.createElement("div"),z.style.width="200px",z.style.height="200px",C.appendChild(z),document.body.appendChild(C),kja=Math.abs(C.offsetWidth-100)>1?C.offsetWidth-C.clientWidth:0,document.body.removeChild(C),C=kja);this.sizingTarget.style.maxWidth=Math.min(H.width-N.left-N.right,O+Z-C)+"px";Z=this.sizingTarget.offsetWidth+C;C=Z-b;var w;
t.horizontalAlign==="left"?w=g:t.horizontalAlign==="center"?w=g-C/2:t.horizontalAlign==="right"&&(w=g-C);w=Math.max(H.left+N.left,Math.min(w,H.right-N.right-Z));var P;((P=this.hostElement)!=null?P:this).style.left=w+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var N=this._fitInfo;if(!N.positionedBy.vertically){var t;((t=this.hostElement)!=null?t:this).style.position="fixed";var O;((O=this.hostElement)!=null?O:this).style.top="0px"}if(!N.positionedBy.horizontally){var H;((H=this.hostElement)!=null?H:this).style.position="fixed";var A;((A=this.hostElement)!=null?A:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var Z;t=((Z=this.hostElement)!=null?Z:this).getBoundingClientRect();
N.sizedBy.height||this.__sizeDimension(t,N.positionedBy.vertically,"top","bottom","Height");N.sizedBy.width||this.__sizeDimension(t,N.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(N,t,O,H,A){this.__sizeDimension(N,t,O,H,A)},
__sizeDimension:function(N,t,O,H,A){var Z=this._fitInfo,U=this.__getNormalizedRect(this.fitInto);U=A==="Width"?U.width:U.height;N=(t=t===H)?U-N[H]:N[O];O=Z.margin[t?O:H];H="offset"+A;var C;Z=((C=this.hostElement)!=null?C:this)[H]-this.sizingTarget[H];this.sizingTarget.style["max"+A]=U-O-N-Z+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var N=this._fitInfo.positionedBy;if(!N.vertically||!N.horizontally){var t;((t=this.hostElement)!=null?t:this).style.position="fixed";if(!N.vertically){var O;((O=this.hostElement)!=null?O:this).style.top="0px"}if(!N.horizontally){var H;((H=this.hostElement)!=null?H:this).style.left="0px"}var A;t=((A=this.hostElement)!=null?A:this).getBoundingClientRect();A=this.__getNormalizedRect(this.fitInto);if(!N.vertically){O=A.top-t.top+(A.height-
t.height)/2;var Z;((Z=this.hostElement)!=null?Z:this).style.top=O+"px"}if(!N.horizontally){N=A.left-t.left+(A.width-t.width)/2;var U;((U=this.hostElement)!=null?U:this).style.left=N+"px"}}}},
__getNormalizedRect:function(N){return N===document.documentElement||N===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:N.getBoundingClientRect()},
__getOffscreenArea:function(N,t,O){return Math.abs(Math.min(0,N.top)+Math.min(0,O.bottom-(N.top+t.height)))*t.width+Math.abs(Math.min(0,N.left)+Math.min(0,O.right-(N.left+t.width)))*t.height},
__getPosition:function(N,t,O,H,A,Z){var U=[{verticalAlign:"top",horizontalAlign:"left",top:A.top+this.verticalOffset,left:A.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:A.top+this.verticalOffset,left:A.right-O.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:A.bottom-O.height-this.verticalOffset,left:A.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:A.bottom-O.height-this.verticalOffset,left:A.right-O.width-
this.horizontalOffset}];if(this.noOverlap){for(var C=0,F=U.length;C<F;C++){var g={},B;for(B in U[C])g[B]=U[C][B];U.push(g)}U[0].top=U[1].top+=A.height;U[2].top=U[3].top-=A.height;U[4].left=U[6].left+=A.width;U[5].left=U[7].left-=A.width}t=t==="auto"?null:t;N=N==="auto"?null:N;N&&N!=="center"||(U.push({verticalAlign:"top",horizontalAlign:"center",top:A.top+this.verticalOffset+(this.noOverlap?A.height:0),left:A.left-H.width/2+A.width/2+this.horizontalOffset}),U.push({verticalAlign:"bottom",horizontalAlign:"center",
top:A.bottom-O.height-this.verticalOffset-(this.noOverlap?A.height:0),left:A.left-H.width/2+A.width/2+this.horizontalOffset}));t&&t!=="middle"||(U.push({verticalAlign:"middle",horizontalAlign:"left",top:A.top-H.height/2+A.height/2+this.verticalOffset,left:A.left+this.horizontalOffset+(this.noOverlap?A.width:0)}),U.push({verticalAlign:"middle",horizontalAlign:"right",top:A.top-H.height/2+A.height/2+this.verticalOffset,left:A.right-O.width-this.horizontalOffset-(this.noOverlap?A.width:0)}));t==="middle"&&
N==="center"&&U.push({verticalAlign:"middle",horizontalAlign:"center",top:A.top-H.height/2+A.height/2+this.verticalOffset,left:A.left-H.width/2+A.width/2+this.horizontalOffset});for(C=0;C<U.length;C++){H=U[C];A=H.verticalAlign===t;F=H.horizontalAlign===N;if(!this.dynamicAlign&&!this.noOverlap&&A&&F){var c=H;break}g=(!t||A)&&(!N||F);if(this.dynamicAlign||g){H.offscreenArea=this.__getOffscreenArea(H,O,Z);if(H.offscreenArea===0&&g){c=H;break}H.alignsOk=A+F;c=c||H;A=H.offscreenArea-c.offscreenArea;if(A<
0||A===0&&H.alignsOk>c.alignsOk)c=H}}return c}};/*

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 Ce,fbp,nGZ;Ce=Element.prototype;fbp=Ce.matches||Ce.matchesSelector||Ce.mozMatchesSelector||Ce.msMatchesSelector||Ce.oMatchesSelector||Ce.webkitMatchesSelector;nGZ=function(){};
_.rCZ=function(N){var t=WsZ,O=[];return t._collectTabbableNodes(N,O)?t._sortByTabIndex(O):O};
_.V=nGZ.prototype;_.V.isFocusable=function(N){return fbp.call(N,"input, select, textarea, button, object")?fbp.call(N,":not([disabled])"):fbp.call(N,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.V._normalizedTabIndex=function(N){return this.isFocusable(N)?(N=N.getAttribute("tabindex")||0,Number(N)):-1};
_.V._collectTabbableNodes=function(N,t){if(N.nodeType!==Node.ELEMENT_NODE||!this._isVisible(N))return!1;var O=this._normalizedTabIndex(N),H=O>0;O>=0&&t.push(N);if(N.localName==="content"||N.localName==="slot")O=_.$L(N).getDistributedNodes();else{var A;O=((A=_.$L(N).shadowRoot)!=null?A:_.$L(N.root||N)).children}for(N=0;N<O.length;N++)H=this._collectTabbableNodes(O[N],t)||H;return H};
_.V._isVisible=function(N){var t=N.style;return t.visibility!=="hidden"&&t.display!=="none"?(t=window.getComputedStyle(N),t.visibility!=="hidden"&&t.display!=="none"):!1};
_.V._sortByTabIndex=function(N){var t=N.length;if(t<2)return N;var O=Math.ceil(t/2);t=this._sortByTabIndex(N.slice(0,O));N=this._sortByTabIndex(N.slice(O));return this._mergeSortByTabIndex(t,N)};
_.V._mergeSortByTabIndex=function(N,t){for(var O=[];N.length>0&&t.length>0;)this._hasLowerTabOrder(N[0],t[0])?O.push(t.shift()):O.push(N.shift());return O.concat(N,t)};
_.V._hasLowerTabOrder=function(N,t){N=Math.max(N.tabIndex,0);t=Math.max(t.tabIndex,0);return N===0||t===0?t>N:N>t};
var WsZ=new nGZ;var IbR;var lbZ;_.LO({_template:function(){if(lbZ!==void 0)return lbZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;IbR===void 0&&(IbR=document.createElement("template"));var H=IbR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return lbZ=N},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.$L(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.$L(this.parentNode).removeChild(this)},
_onTransitionend:function(N){N&&N.target===this&&this.complete()},
_openedChanged:function(N){N?this.prepare():(N=window.getComputedStyle(this),N.transitionDuration!=="0s"&&N.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var Ke=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Rb(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)};
Ke.prototype._bringOverlayAtIndexToFront=function(N){var t=this._overlays[N];if(t){var O=this._overlays.length-1,H=this._overlays[O];H&&this._shouldBeBehindOverlay(t,H)&&O--;if(!(N>=O)){H=Math.max(this._getZ(_.Q5f(this)),this._minimumZ);for(this._getZ(t)<=H&&this._applyOverlayZ(t,H);N<O;)this._overlays[N]=this._overlays[N+1],N++;this._overlays[O]=t}}};
Ke.prototype.addOverlay=function(N){var t=this._overlays.indexOf(N);if(t>=0)this._bringOverlayAtIndexToFront(t);else{t=this._overlays.length;var O=this._overlays[t-1],H=Math.max(this._getZ(O),this._minimumZ),A=this._getZ(N);O&&this._shouldBeBehindOverlay(N,O)&&(this._applyOverlayZ(O,H),t--,H=Math.max(this._getZ(this._overlays[t-1]),this._minimumZ));A<=H&&this._applyOverlayZ(N,H);this._overlays.splice(t,0,N)}this.trackBackdrop()};
Ke.prototype.removeOverlay=function(N){N=this._overlays.indexOf(N);N!==-1&&(this._overlays.splice(N,1),this.trackBackdrop())};
_.Q5f=function(N){return N._overlays[N._overlays.length-1]};
_.V=Ke.prototype;_.V.trackBackdrop=function(){var N=this._overlayWithBackdrop();if(N||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(N)-1,this.backdropElement.opened=!!N,this.backdropElement.prepare()};
_.V._overlayWithBackdrop=function(){for(var N=this._overlays.length-1;N>=0;N--)if(this._overlays[N].withBackdrop)return this._overlays[N]};
_.V._getZ=function(N){var t=this._minimumZ;if(N){var O,H,A=Number(((O=N.hostElement)!=null?O:N).style.zIndex||window.getComputedStyle((H=N.hostElement)!=null?H:N).zIndex);A===A&&(t=A)}return t};
_.V._setZ=function(N,t){var O;((O=N.hostElement)!=null?O:N).style.zIndex=t};
_.V._applyOverlayZ=function(N,t){this._setZ(N,t+2)};
_.V._overlayInPath=function(N){N=N||[];for(var t=0;t<N.length;t++){var O=void 0;if(((O=N[t].polymerController)!=null?O:N[t])._manager===this)return N[t]}};
_.V._onCaptureClick=function(N){var t=this._overlays.length-1;if(t!==-1)for(var O=_.$L(N).path,H,A;(H=this._overlays[t])&&this._overlayInPath(O)!==((A=H.hostElement)!=null?A:H);)if(H._onCaptureClick(N),H.allowClickThrough)t--;else break};
_.V._onCaptureFocus=function(N){var t=_.Q5f(this);t&&t._onCaptureFocus(N)};
_.V._onCaptureKeyDown=function(N){var t=_.Q5f(this);t&&(_.rA.keyboardEventMatchesKeys(N,"esc")?t._onCaptureEsc(N):_.rA.keyboardEventMatchesKeys(N,"tab")&&t._onCaptureTab(N))};
_.V._shouldBeBehindOverlay=function(N,t){return!N.alwaysOnTop&&t.alwaysOnTop&&!t.contains(N)};
_.cv.Object.defineProperties(Ke.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var N=document.activeElement;N&&N instanceof Element!==!1||(N=document.body);for(;N.root&&_.$L(N.root).activeElement;)N=_.$L(N.root).activeElement;return N}}});
_.F6=new Ke;var cAy=0,$_9=0,j3t=null,ipt=[],jB=["wheel","mousewheel","DOMMouseScroll"],uIO;_.h("web_no_lock_on_touchstart_killswitch")&&(jB.push("touchstart"),jB.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;_.d6={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:_.F6},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var N;return this._focusedChild||_.$L((N=this.hostElement)!=null?N:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var N;return _.rCZ((N=this.hostElement)!=null?N:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var N;this._observer=_.$L((N=this.hostElement)!=null?N:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var N;_.$L((N=this.hostElement)!=null?N:this).unobserveNodes(this._observer)}this._observer=null;for(var t in this.__rafs)this.__rafs[t]!==null&&cancelAnimationFrame(this.__rafs[t]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(N){this.fire("iron-overlay-canceled",N,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var N;((N=this.hostElement)!=null?N:this).style.outline="none";var t;((t=this.hostElement)!=null?t:this).style.display="none"}},
_openedChanged:function(N){if(N){var t;((t=this.hostElement)!=null?t:this).removeAttribute("aria-hidden")}else{var O;((O=this.hostElement)!=null?O:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var N;if(this.withBackdrop&&!((N=this.hostElement)!=null?N:this).hasAttribute("tabindex")){var t;((t=this.hostElement)!=null?t:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var O;((O=this.hostElement)!=null?O:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var N;((N=this.hostElement)!=null?N:this).style.display="none";var t;((t=this.hostElement)!=null?t:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var N,t;((N=this.hostElement)!=null?N:this).style.transition=((t=this.hostElement)!=null?t:this).style.webkitTransition="none";var O,H;((O=this.hostElement)!=null?O:this).style.transform=((H=this.hostElement)!=null?H:this).style.webkitTransform="none";var A;((A=this.hostElement)!=null?A:this).style.display=""},
_finishPositioning:function(){var N;((N=this.hostElement)!=null?N:this).style.display="none";this.scrollTop=this.scrollTop;var t,O;((t=this.hostElement)!=null?t:this).style.transition=((O=this.hostElement)!=null?O:this).style.webkitTransition="";var H,A;((H=this.hostElement)!=null?H:this).style.transform=((A=this.hostElement)!=null?A:this).style.webkitTransform="";var Z;((Z=this.hostElement)!=null?Z:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var N=this._manager.deepActiveElement,t;if(!(t=N===document.body))a:{for(;N;N=N.assignedSlot||N.parentNode||N.host)if(N===this){t=!0;break a}t=!1}t&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(N){this.noCancelOnOutsideClick||this.cancel(N)},
_onCaptureFocus:function(N){if(this.withBackdrop){var t=_.$L(N).path;t.indexOf(this)===-1?(N.stopPropagation(),this._applyFocus()):this._focusedChild=t[0]}},
_onCaptureEsc:function(N){this.noCancelOnEscKey||this.cancel(N)},
_onCaptureTab:function(N){if(this.withBackdrop){this.__ensureFirstLastFocusables();var t=N.shiftKey,O=t?this.__firstFocusableNode:this.__lastFocusableNode;t=t?this.__lastFocusableNode:this.__firstFocusableNode;if(O===t)O=!0;else{var H=this._manager.deepActiveElement;O=H===O||H===this}O&&(N.preventDefault(),this._focusedChild=t,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var N=this._focusableNodes;this.__firstFocusableNode=N[0];this.__lastFocusableNode=N[N.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(N,t){var O=this.__rafs;O[N]!==null&&cancelAnimationFrame(O[N]);O[N]=requestAnimationFrame(function(){O[N]=null;t.call(this)}.bind(this))},
__updateScrollObservers:function(N,t,O){N&&t&&this.__isValidScrollAction(O)?(O==="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),uIO=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(N=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),N!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(N,1),uIO=_._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(tv)for(var N=this;N;)N.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&N.host&&this.__rootNodes.push(N),N=N.host||N.assignedSlot||N.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(t){t.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(N){N.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(N){return N==="lock"||N==="refit"||N==="cancel"},
__onCaptureScroll:function(N){if(!(this.__isAnimating||_.$L(N).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(N)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.g6=[qwR,_.JV,_.d6];_.LO({_template:function(){if(xOu!==void 0)return xOu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;X1y===void 0&&(X1y=document.createElement("template"));var H=X1y;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return xOu=N},
is:"tp-yt-iron-dropdown",behaviors:[_.Iv,_.rA,_.g6,Zlu],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var N=_.$L(this.$.content).getDistributedNodes(),t=0,O=N.length;t<O;t++)if(N[t].nodeType===Node.ELEMENT_NODE)return N[t]},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(),_.d6._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.d6._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.d6._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var N=this.containedElement,t=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),O=0;O<t.length;O++)t[O].node=N;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(N){this._readied&&(N?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var N=this.focusTarget||this.containedElement;N&&this.opened&&!this.noAutoFocus?N.focus():_.d6._applyFocus.apply(this,arguments)}});var mOR;var EGQ;/*

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 GjY=new _.Eb({type:"iconset"});
_.LO({_template:function(){if(EGQ!==void 0)return EGQ;var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_icon.tp.yt.iron.icon.css.js--\x3e\n");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;mOR===void 0&&(mOR=document.createElement("template"));
var H=mOR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return EGQ=N},
is:"tp-yt-iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(N){N=(N||"").split(":");this._iconName=N.pop();this._iconsetName=N.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.$L(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=GjY.byKey(this._iconsetName)){var N=this._iconset.applyIcon(this,this._iconName,this.theme);N&&N.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.$L(this.root).appendChild(this._img)}});var R4y;var vGE;_.LO({_template:function(){if(vGE!==void 0)return vGE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_input.tp.yt.iron.input.css.js--\x3e<slot id="content" class="style-scope tp-yt-iron-input"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
var t=N.content,O=t.insertBefore;R4y===void 0&&(R4y=document.createElement("template"));var H=R4y;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return vGE=N},
is:"tp-yt-iron-input",behaviors:[_.Rv],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(){_.Uk.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.$L(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.$L(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var N=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":N=/[0-9.,e-]/}return N},_bindValueChanged:function(N,t){t&&(N===void 0?t.value=null:N!==t.value&&(this.inputElement.value=N),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:N}))},
_onInput:function(){!this.allowedPattern||this._patternAlreadyChecked||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput);this.bindValue=this._previousValidInput=this.inputElement.value;this._patternAlreadyChecked=!1},
_isPrintable:function(N){var t=N.keyCode==19||N.keyCode==20||N.keyCode==45||N.keyCode==46||N.keyCode==144||N.keyCode==145||N.keyCode>32&&N.keyCode<41||N.keyCode>111&&N.keyCode<124;return!(N.keyCode==8||N.keyCode==9||N.keyCode==13||N.keyCode==27)&&!(N.charCode==0&&t)},
_onKeypress:function(N){if(this.allowedPattern||this.inputElement.type==="number"){var t=this._patternRegExp;if(t&&!(N.metaKey||N.ctrlKey||N.altKey)){this._patternAlreadyChecked=!0;var O=String.fromCharCode(N.charCode);this._isPrintable(N)&&!t.test(O)&&(N.preventDefault(),this._announceInvalidCharacter("Invalid character "+O+" not entered."))}}},
_checkPatternValidity:function(){var N=this._patternRegExp;if(!N)return!0;for(var t=0;t<this.inputElement.value.length;t++)if(!N.test(this.inputElement.value[t]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var N=this.inputElement.checkValidity();N&&(this.required&&this.bindValue===""?N=!1:this.hasValidator()&&(N=_.Rv.validate.call(this,this.bindValue)));this.invalid=!N;this.fire("iron-input-validate");return N},
_announceInvalidCharacter:function(N){this.fire("iron-announce",{text:N})},
_computeValue:function(N){return N}});var JCB;var oGp;var s5E=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),N3Q=s5E&&s5E[1]>=8;
_.LO({_template:function(){if(oGp!==void 0)return oGp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;JCB===void 0&&(JCB=document.createElement("template"));var H=JCB;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return oGp=N},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[lQO,_.JV,_.AwE,nJu],_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 _.$L(_.$L(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var N=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,N-this._physicalCount)},set _virtualStart(N){N=this._clamp(N,0,this._maxVirtualStart);this.grid&&(N-=N%this._itemsPerRow);this._virtualStartVal=N},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(N){N%=this._physicalCount;N<0&&(N=this._physicalCount+N);this.grid&&(N-=N%this._itemsPerRow);this._physicalStartVal=N},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(N){this._physicalCountVal=N},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?Infinity:this._viewportHeight*this._maxPages},get _isVisible(){return!(!this.offsetWidth&&!this.offsetHeight)},get firstVisibleIndex(){var N=this._firstVisibleIndexVal;if(N==null){var t=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
N=this._iterateItems(function(O,H){t+=this._getPhysicalSizeIncrement(O);if(t>this._scrollPosition)return this.grid?H-H%this._itemsPerRow:H;if(this.grid&&this._virtualCount-1===H)return H-H%this._itemsPerRow})||0}return N},
get lastVisibleIndex(){var N=this._lastVisibleIndexVal;if(N==null){if(this.grid)N=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var t=this._physicalTop+this._scrollOffset;this._iterateItems(function(O,H){t<this._scrollBottom&&(N=H);t+=this._getPhysicalSizeIncrement(O)})}this._lastVisibleIndexVal=N}return N},
get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},
attached:function(){this._debounce("_render",this._render,_.hd);this.listen(this,"iron-resize","_resizeHandler");this.listen(this,"keydown","_keydownHandler")},
detached:function(){this.unlisten(this,"iron-resize","_resizeHandler");this.unlisten(this,"keydown","_keydownHandler")},
_setOverflow:function(N){this.style.webkitOverflowScrolling=N===this?"touch":"";this.style.overflowY=N===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.hd)},
updateViewportBoundaries:function(){var N=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(N["padding-top"],10);this._isRTL=N.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var N=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),t=N-this._scrollPosition,O=t>=0;this._scrollPosition=N;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(t)>this._physicalSize&&this._physicalSize>0?(t-=this._scrollOffset,O=Math.round(t/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=O,this._physicalStart+=O,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(N=this._getReusables(O),O?(this._physicalTop=N.physicalTop,this._virtualStart+=N.indexes.length,this._physicalStart+=N.indexes.length):(this._virtualStart=this._virtualStart-N.indexes.length,this._physicalStart=this._physicalStart-N.indexes.length),this._update(N.indexes,O?null:N.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ob))},
_getReusables:function(N){var t=[],O=this._hiddenContentSize*this._ratio,H=this._virtualStart,A=this._virtualEnd,Z=this._physicalCount,U=this._physicalTop+this._scrollOffset;var C=this._physicalBottom+this._scrollOffset;var F=this._scrollPosition,g=this._scrollBottom;if(N){var B=this._physicalStart;C=F-U}else B=this._physicalEnd,C-=g;for(;;){var c=this._getPhysicalSizeIncrement(B);C-=c;if(t.length>=Z||C<=O)break;if(N){if(A+t.length+1>=this._virtualCount)break;if(U+c>=F-this._scrollOffset)break;t.push(B);
U+=c;B=(B+1)%Z}else{if(H-t.length<=0)break;if(U+this._physicalSize-c<=g)break;t.push(B);U-=c;B=B===0?Z-1:B-1}}return{indexes:t,physicalTop:U-this._scrollOffset}},
_update:function(N,t){if(!(N&&N.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(N);this._updateMetrics(N);if(t)for(;t.length;)N=t.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(N);this._positionItems();this._updateScrollerSize()}},
_createPool:function(N){this._ensureTemplatized();var t,O=Array(N);for(t=0;t<N;t++){var H=this.stamp(null);O[t]=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}return O},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(N){N=this._clamp(this._physicalCount+N,3,this._virtualCount-this._virtualStart);N=this._convertIndexToCompleteRow(N);if(this.grid){var t=N%this._itemsPerRow;t&&N-t<=this._physicalCount&&(N+=this._itemsPerRow);N-=t}N-=this._physicalCount;t=Math.round(this._physicalCount*.5);if(!(N<0)){if(N>0){t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(N));for(var O=0;O<N;O++)this._physicalSizes.push(0);this._physicalCount+=N;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=N);this._update();this._templateCost=(window.performance.now()-t)/N;t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),S6E):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,t),ob))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var N=this._getReusables(!0);this._physicalTop=N.physicalTop;this._virtualStart+=N.indexes.length;this._physicalStart+=N.indexes.length;this._update(N.indexes);this._update();this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},
_ensureTemplatized:function(){if(!this.ctor){(this._userTemplate=this.queryEffectiveChildren("template"))||console.warn("iron-list requires a template to be provided in light-dom");var N={__key__:!0};N[this.as]=!0;N[this.indexAs]=!0;N[this.selectedAs]=!0;N.tabIndex=!0;this._instanceProps=N;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(N,t){typeof t!=="undefined"&&(this.notifyResize(),_.Yb(),N&&this._updateGridMetrics())},
_itemsChanged:function(N){if(N.path==="items")this._physicalTop=this._virtualStart=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._lastVisibleIndexVal=this._firstVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._removeFocusedItem(),this._debounce("_render",this._render,
_.hd);else if(N.path==="items.splices"){this._adjustVirtualIndex(N.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(N.value.indexSplices.some(function(O){return O.addedCount>0||O.removed.length>0})){var t=this._getActiveElement();
this.contains(t)&&t.blur()}N=N.value.indexSplices.some(function(O){return O.index+O.addedCount>=this._virtualStart&&O.index<=this._virtualEnd},this);
this._isClientFull()&&!N||this._debounce("_render",this._render,_.hd)}else N.path!=="items.length"&&this._forwardItemPath(N.path,N.value)},
_forwardItemPath:function(N,t){N=N.slice(6);var O=N.indexOf(".");O===-1&&(O=N.length);var H,A=this.modelForElement(this._offscreenFocusedItem),Z=parseInt(N.substring(0,O),10);if(H=this._isIndexRendered(Z)){var U=this._getPhysicalIndex(Z);var C=this.modelForElement(this._physicalItems[U])}else A&&(C=A);C&&C[this.indexAs]===Z&&(N=N.substring(O+1),N=this.as+(N?"."+N:""),C._setPendingPropertyOrPath(N,t,!1,!0),C._flushProperties&&C._flushProperties(),H&&(this._updateMetrics([U]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(N){N.forEach(function(t){t.removed.forEach(this._removeItem,this);t.index<this._virtualStart&&(t=Math.max(t.addedCount-t.removed.length,t.index-this._virtualStart),this._virtualStart+=t,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=t))},this)},
_removeItem:function(N){this.$.selector.deselect(N);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===N&&this._removeFocusedItem()},
_iterateItems:function(N,t){var O,H;if(arguments.length===2&&t)for(H=0;H<t.length;H++){var A=t[H];var Z=this._computeVidx(A);if((O=N.call(this,A,Z))!=null)return O}else{A=this._physicalStart;for(Z=this._virtualStart;A<this._physicalCount;A++,Z++)if((O=N.call(this,A,Z))!=null)return O;for(A=0;A<this._physicalStart;A++,Z++)if((O=N.call(this,A,Z))!=null)return O}},
_computeVidx:function(N){return N>=this._physicalStart?this._virtualStart+(N-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+N},
_assignModels:function(N){this._iterateItems(function(t,O){var H=this._physicalItems[t],A=this.items&&this.items[O];if(A!=null){var Z=this.modelForElement(H);Z.__key__=null;this._forwardProperty(Z,this.as,A);this._forwardProperty(Z,this.selectedAs,this.$.selector.isSelected(A));this._forwardProperty(Z,this.indexAs,O);this._forwardProperty(Z,"tabIndex",this._focusedVirtualIndex===O?0:-1);this._physicalIndexForKey[Z.__key__]=t;Z._flushProperties&&Z._flushProperties(!0);H.removeAttribute("hidden")}else H.setAttribute("hidden",
"")},N)},
_updateMetrics:function(N){_.Yb();var t=0,O=0,H=this._physicalAverageCount,A=this._physicalAverage;this._iterateItems(function(Z){O+=this._physicalSizes[Z];this._physicalSizes[Z]=this._physicalItems[Z].offsetHeight;t+=this._physicalSizes[Z];this._physicalAverageCount+=this._physicalSizes[Z]?1:0},N);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(O=this._itemsPerRow===1?O:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+t-O,this._itemsPerRow=1);this._physicalAverageCount!==H&&(this._physicalAverage=Math.round((A*H+t)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var N=this._physicalTop;if(this.grid){var t=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(O,H){var A=Math.floor(H%this._itemsPerRow*this._itemWidth+t);this._isRTL&&(A*=-1);this.translate3d(A+"px",N+"px",0,this._physicalItems[O]);this._shouldRenderNextRow(H)&&(N+=this._rowHeight)})}else this._iterateItems(function(O){this.translate3d(0,N+"px",0,this._physicalItems[O]);
N+=this._physicalSizes[O]})},
_getPhysicalSizeIncrement:function(N){return this.grid?this._computeVidx(N)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[N]},
_shouldRenderNextRow:function(N){return N%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var N=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(N!==0){this._physicalTop=this._physicalTop-N;var t=this._scrollPosition;!N3Q&&t>0&&this._resetScrollPosition(t-N)}},
_resetScrollPosition:function(N){this.scrollTarget&&N>=0&&(this._scrollPosition=this._scrollTop=N)},
_updateScrollerSize:function(N){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((N=(N=(N=N||this._scrollHeight===0)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||this.grid&&this.$.items.style.height<this._estScrollHeight)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)this.$.items.style.height=
this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight},
scrollToItem:function(N){return this.scrollToIndex(this.items.indexOf(N))},
scrollToIndex:function(N){if(!(typeof N!=="number"||N<0||N>this.items.length-1)&&(_.Yb(),this._physicalCount!==0)){N=this._clamp(N,0,this._virtualCount-1);if(!this._isIndexRendered(N)||N>=this._maxVirtualStart)this._virtualStart=this.grid?N-this._itemsPerRow*2:N-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var t=this._physicalStart,O=this._virtualStart,H=0,A=this._hiddenContentSize;O<N&&
H<=A;)H+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,O++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+H);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)},_.hd)},
selectItem:function(N){return this.selectIndex(this.items.indexOf(N))},
selectIndex:function(N){if(!(N<0||N>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(N)){var t=this.modelForElement(this._physicalItems[this._getPhysicalIndex(N)]);t&&(t[this.selectedAs]=!0);this.updateSizeForIndex(N)}this.$.selector.selectIndex(N)}},
deselectItem:function(N){return this.deselectIndex(this.items.indexOf(N))},
deselectIndex:function(N){N<0||N>=this._virtualCount||(this._isIndexRendered(N)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(N)])[this.selectedAs]=!1,this.updateSizeForIndex(N)),this.$.selector.deselectIndex(N))},
toggleSelectionForItem:function(N){return this.toggleSelectionForIndex(this.items.indexOf(N))},
toggleSelectionForIndex:function(N){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(N):this.$.selector.isSelected(this.items[N]))?this.deselectIndex(N):this.selectIndex(N)},
clearSelection:function(){this._iterateItems(function(N){this.modelForElement(this._physicalItems[N])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(N){(N?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(N){var t=this.modelForElement(N.target);if(t){var O=_.$L(N).path[0];N=this._getActiveElement();var H=this._physicalItems[this._getPhysicalIndex(t[this.indexAs])];if(O.localName!=="input"&&O.localName!=="button"&&O.localName!=="select"){O=t.tabIndex;t.tabIndex=-100;var A=N?N.tabIndex:-1;t.tabIndex=O;N&&H!==N&&H.contains(N)&&A!==-100||this.toggleSelectionForItem(t[this.as])}}},
_multiSelectionChanged:function(N){this.clearSelection();this.$.selector.multi=N},
updateSizeForItem:function(N){return this.updateSizeForIndex(this.items.indexOf(N))},
updateSizeForIndex:function(N){if(!this._isIndexRendered(N))return null;this._updateMetrics([this._getPhysicalIndex(N)]);this._positionItems();return null},
_manageFocus:function(){var N=this._focusedVirtualIndex;N>=0&&N<this._virtualCount?this._isIndexRendered(N)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},
_convertIndexToCompleteRow:function(N){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(N/this._itemsPerRow)*this._itemsPerRow:N},
_isIndexRendered:function(N){return N>=this._virtualStart&&N<=this._virtualEnd},
_isIndexVisible:function(N){return N>=this.firstVisibleIndex&&N<=this.lastVisibleIndex},
_getPhysicalIndex:function(N){return(this._physicalStart+(N-this._virtualStart))%this._physicalCount},
focusItem:function(N){this._focusPhysicalItem(N)},
_focusPhysicalItem:function(N){if(!(N<0||N>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(N)||this.scrollToIndex(N);var t=this._physicalItems[this._getPhysicalIndex(N)],O=this.modelForElement(t),H;O.tabIndex=-100;t.tabIndex===-100&&(H=t);H||(H=_.$L(t).querySelector('[tabindex="-100"]'));O.tabIndex=0;this._focusedVirtualIndex=N;H&&H.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var N=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var t=this.stamp(null);this._focusBackfillItem=t.root.querySelector("*");this._itemsParent.appendChild(t.root)}this._offscreenFocusedItem=this._physicalItems[N];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[N]=this._focusBackfillItem;this._focusedPhysicalIndex=N;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var N=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),t=this._physicalItems[N];if(t){var O=this.modelForElement(t),H=this.modelForElement(this._offscreenFocusedItem);O[this.as]===H[this.as]?(this._focusBackfillItem=t,O.tabIndex=-1,this._physicalItems[N]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(N){N=this.modelForElement(N.target);var t=this.modelForElement(this._focusedItem),O=this._offscreenFocusedItem!==null,H=this._focusedVirtualIndex;N&&(t===N?this._isIndexVisible(H)||this.scrollToIndex(H):(this._restoreFocusedItem(),t&&(t.tabIndex=-1),N.tabIndex=0,this._focusedVirtualIndex=H=N[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(H),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],O&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(N){switch(N.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&N.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&N.preventDefault();this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+
(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(N)}},
_clamp:function(N,t,O){return Math.min(O,Math.max(t,N))},
_debounce:function(N,t,O){this._debouncers=this._debouncers||{};this._debouncers[N]=_.M_(this._debouncers[N],O,t.bind(this));_.br(this._debouncers[N])},
_forwardProperty:function(N,t,O){N._setPendingProperty(t,O)},
_forwardHostPropV2:function(N,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&this.modelForElement(O).forwardHostProp(N,t)},this)},
_notifyInstancePropV2:function(N,t,O){biy(this.as,t)&&(N=N[this.indexAs],t==this.as&&(this.items[N]=O),this.notifyPath(w9(this.as,"items."+N,t),O))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(N,t,O){t.indexOf(this.as+".")===0&&this.notifyPath("items."+N.__key__+"."+t.slice(this.as.length+1),O)},
_forwardParentPath:function(N,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&this.modelForElement(O).notifyPath(N,t)},this)},
_forwardParentProp:function(N,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&(this.modelForElement(O)[N]=t)},this)},
_getActiveElement:function(){var N=this._itemsParent.node.domHost;return _.$L(N?N.root:document).activeElement},
_scrollTargetChanged:function(N,t){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(t)if(N==="document")this.scrollTarget=this._doc;else if(typeof N==="string"){var O,H;this.scrollTarget=(t=(H=(O=this.domHost)==null?void 0:O.polymerController)!=null?H:this.domHost)&&t.$?t.$[N]:_.$L(this.ownerDocument).querySelector("#"+N)}else this._isValidScrollTarget()&&(this._oldScrollTarget=N,this._toggleScrollListener(this._shouldHaveListener,N))}});var trQ;var OV_;var HV_=function(N,t,O,H){N-=O;t-=H;return Math.sqrt(N*N+t*t)},A$y=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
STt.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var hpG=function(N){N.maxRadius=0;N.mouseDownStart=0;N.mouseUpStart=0;N.xStart=0;N.yStart=0;N.xEnd=0;N.yEnd=0;N.containerMetrics=new STt(N.element)};
Mey.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var N=A$y()-this.mouseDownStart;this.mouseUpStart&&(N-=this.mouseUpElapsed);return N},get mouseUpElapsed(){return this.mouseUpStart?A$y()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1E3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1E3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+
this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var N=Math.min(Math.sqrt(this.containerMetrics.width*this.containerMetrics.width+this.containerMetrics.height*this.containerMetrics.height),300)*1.1+5;return Math.min(Math.abs(N*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-N/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var N=this.radius/(this.containerMetrics.size/2);var t=this.xNow-this.containerMetrics.width/2;var O=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+t+"px, "+O+"px)";this.waveContainer.style.transform="translate3d("+t+"px, "+O+"px, 0)";this.wave.style.webkitTransform="scale("+N+","+N+")";this.wave.style.transform="scale3d("+N+","+N+",1)"},
downAction:function(N){var t=this.containerMetrics.width/2,O=this.containerMetrics.height/2;hpG(this);this.mouseDownStart=A$y();this.center?(this.xStart=t,this.yStart=O):(this.xStart=N?N.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=N?N.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=t,this.yEnd=O);N=this.containerMetrics;t=this.xStart;O=this.yStart;this.maxRadius=Math.max(HV_(t,O,0,0),HV_(t,O,
N.width,0),HV_(t,O,0,N.height),HV_(t,O,N.width,N.height));this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px";this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px";this.waveContainer.style.width=this.containerMetrics.size+"px";this.waveContainer.style.height=this.containerMetrics.size+"px"},
upAction:function(){this.isMouseDown&&(this.mouseUpStart=A$y())},
remove:function(){_.$L(_.$L(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.LO({_template:function(){if(OV_!==void 0)return OV_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-ripple--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_ripple.tp.yt.paper.ripple.css.js--\x3e<div id="background" class="style-scope tp-yt-paper-ripple"></div>\n<div id="waves" class="style-scope tp-yt-paper-ripple"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;trQ===void 0&&(trQ=document.createElement("template"));var H=trQ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return OV_=N},
is:"tp-yt-paper-ripple",behaviors:[_.rA],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(){_.$L(this).parentNode.nodeType==11?this.keyEventTarget=_.$L(this).getOwnerRoot().host:this.keyEventTarget=_.$L(this).parentNode;var N=this.keyEventTarget;this.listen(N,"up","uiUpAction");this.listen(N,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(N){N.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var N=0;N<this.ripples.length;++N)if(!this.ripples[N].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(N){this.noink||this.downAction(N)},
downAction:function(N){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(N),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(N){this.noink||this.upAction(N)},
upAction:function(N){this.holdDown||(this.ripples.forEach(function(t){t.upAction(N)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var N=0;N<this.ripples.length;++N){var t=this.ripples[N];t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var N=new Mey(this);_.$L(this.$.waves).appendChild(N.waveContainer);this.$.background.style.backgroundColor=N.color;this.ripples.push(N);this._setAnimating(!0);return N},
removeRipple:function(N){var t=this.ripples.indexOf(N);t<0||(this.ripples.splice(t,1),N.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var N;for(N=0;N<this.ripples.length;++N){var t=this.ripples[N];t.draw();this.$.background.style.opacity=t.outerOpacity;t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(N,t){t!==void 0&&(N?this.downAction():this.upAction())}});var yX={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(N){lD._downHandler.call(this,N);this.pressed&&this.ensureRipple(N)},
ensureRipple:function(N){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;t&&_.$L(t).appendChild(this._ripple);if(N){t=_.$L(this._rippleContainer||this);var O=_.$L(N).rootTarget;t.deepContains(O)&&this._ripple.uiDownAction(N)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(N){this.hasRipple()&&(this._ripple.noink=N)}};var ZVu={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var N=1;this.disabled?N=0:this.active||this.pressed?N=4:this.receivedFocusFromKeyboard&&(N=3);this._setElevation(N)},
_computeKeyboardClass:function(N){this.toggleClass("keyboard-focus",N)},
_spaceKeyDownHandler:function(N){lD._spaceKeyDownHandler.call(this,N);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(N){lD._spaceKeyUpHandler.call(this,N);this.hasRipple()&&this._ripple.uiUpAction()}},VrZ=[Efp,
_.Iv,yX,ZVu];_.Dsr={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(N){N&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=N)},
_createRipple:function(){var N=yX._createRipple();N.id="ink";N.setAttribute("center","");N.classList.add("circle");return N}};
_.UsZ=[Efp,_.Iv,yX,_.Dsr];_.CM_=[_.UsZ,vfR,{_checkedChanged:function(){RNS._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){yX._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var K0f;var F0a;var dsr=function(){};
_.V=dsr.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._createRipple=function(){};
_.V._noinkChanged=function(){};
_.V._computeKeyboardClass=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setElevation=function(){};
dsr=_.LO({_template:function(){if(F0a!==void 0)return F0a;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_button.tp.yt.paper.button.css.js--\x3e<slot class="style-scope tp-yt-paper-button"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
var t=N.content,O=t.insertBefore;K0f===void 0&&(K0f=document.createElement("template"));var H=K0f;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return F0a=N},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[VrZ],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?ZVu._calculateElevation.apply(this):this._setElevation(0)}});var gFY;var y$r;var B3_={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(N){_.h("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(N)},
_onDialogClickWrapped:function(N){_.h("dialog_behavior_no_tap_killswitch")||this._onDialogClick(N)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(N,t){t&&(N?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(N){if(N){var t;((t=this.hostElement)!=null?t:this).setAttribute("aria-modal","true")}else{var O;((O=this.hostElement)!=null?O:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(N){this.closingReason=this.closingReason||{};this.closingReason.confirmed=N},
_onDialogClick:function(N){for(var t=_.$L(N).path,O=0,H,A=t.indexOf((H=this.hostElement)!=null?H:this);O<A;O++)if(H=t[O],H.hasAttribute&&(H.hasAttribute("dialog-dismiss")||H.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(H.hasAttribute("dialog-confirm"));this.close();N.stopPropagation();break}}},c$R=[_.g6,
B3_];var $sQ=document.createElement("template");_.L($sQ,'<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($sQ.content);var j7r=document.createElement("template");_.L(j7r,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(j7r.content);_.LO({_template:function(){if(y$r!==void 0)return y$r;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog.tp.yt.paper.dialog.css.js--\x3e<slot class="style-scope tp-yt-paper-dialog"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
var t=N.content,O=t.insertBefore;gFY===void 0&&(gFY=document.createElement("template"));var H=gFY;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return y$r=N},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[c$R,Zlu],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 iVX;var umR;_.LO({_template:function(){if(umR!==void 0)return umR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dialog-scrollable--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dialog_scrollable.tp.yt.paper.dialog.scrollable.css.js--\x3e<div id="scrollable" class="scrollable style-scope tp-yt-paper-dialog-scrollable" on-scroll="updateScrollState">\n  <slot class="style-scope tp-yt-paper-dialog-scrollable"></slot>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;iVX===void 0&&(iVX=document.createElement("template"));var H=iVX;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return umR=N},
is:"tp-yt-paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget();this.classList.add("no-padding")},
attached:function(){this._ensureTarget();requestAnimationFrame(this.updateScrollState.bind(this))},
updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0);this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight);this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},
_ensureTarget:function(){var N,t,O;if(((N=window.ShadyDOM)==null?void 0:N.noPatch)!==!0&&((t=window.ShadyDOM)==null?void 0:t.noPatch)!=="on-demand"||((O=this.__shady_parentNode)==null?void 0:O.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(B3_)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var SPa=_.mp(['<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>']),hDY=_.QHB(SPa);hDY.setAttribute("style","display: none;");document.head.appendChild(hDY.content);var Mry;var bVy;var pGY;var L0u;_.LO({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[ov],configure:function(N){var t=N.node,O=t.getBoundingClientRect().height;return this._effect=new KeyframeEffect(t,[{height:O/2+"px"},{height:O+"px"}],this.timingFromConfig(N))}});
_.LO({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[ov],configure:function(N){var t=N.node,O=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:O/2+"px"},{width:O+"px"}],this.timingFromConfig(N))}});
_.LO({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[ov],configure:function(N){var t=N.node,O=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:O+"px"},{width:O-O/20+"px"}],this.timingFromConfig(N))}});
_.LO({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[ov],configure:function(N){var t=N.node,O=t.getBoundingClientRect().height;this.setPrefixedProperty(t,"transformOrigin","0 0");return this._effect=new KeyframeEffect(t,[{height:O+"px",transform:"translateY(0)"},{height:O/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(N))}});var B8={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},zD0=function(){};
_.V=zD0.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._focusBlurHandler=function(){};
_.V._changedControlState=function(){};
_.V._setFocused=function(){};
zD0=_.LO({_template:function(){if(L0u!==void 0)return L0u;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;pGY===void 0&&(pGY=document.createElement("template"));var H=pGY;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return L0u=N},
is:"tp-yt-paper-menu-button",behaviors:[_.rA,_.Iv],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:B8.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:B8.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:B8.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var N=_.$L(this.$.content).getDistributedNodes(),t=0,O=N.length;t<O;t++)if(N[t].nodeType===Node.ELEMENT_NODE)return N[t]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(N,t){N?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):t!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(N){_.Iv._disabledChanged.apply(this,arguments);N&&this.opened&&this.close()},
__onIronOverlayCanceled:function(N){var t=this.$.trigger;_.$L(N.detail).path.indexOf(t)>-1&&N.preventDefault()}});
Object.keys(B8).forEach(function(N){zD0[N]=B8[N]});var YPa=_.Qy.IronButtonState,aPu=(0,_.np)(HTMLElement);
_.LO({_template:function(){if(bVy!==void 0)return bVy;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu-light--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu_light.tp.yt.paper.dropdown.menu.light.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" class="style-scope tp-yt-paper-dropdown-menu-light">\n  \n  <div id="dropdown-trigger" class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu-light" slot="dropdown-trigger" role="button" tabindex="0" aria-haspopup="listbox">\n    <label class$="[[_computeLabelClass(noLabelFloat,alwaysFloatLabel,hasContent)]] style-scope tp-yt-paper-dropdown-menu-light" style-target="label">\n      [[label]]\n    </label>\n    <div id="input" tabindex="-1" style-target="input" class="style-scope tp-yt-paper-dropdown-menu-light">\u00a0</div>\n    <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" class="style-scope tp-yt-paper-dropdown-menu-light"></tp-yt-iron-icon>\n    <span class="error style-scope tp-yt-paper-dropdown-menu-light">[[errorMessage]]</span>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu-light"></slot>\n</tp-yt-paper-menu-button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Mry===void 0&&(Mry=document.createElement("template"));var H=Mry;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return bVy=N},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[YPa,_.Iv,yX,_.mT,_.Rv],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0,observer:"_valueChanged"},label:{type:String},placeholder:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,hasContent:{type:Boolean,readOnly:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(N){var t=(0,_.k6)(this);t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:N});t.shadowRoot.appendChild(N);return aPu.prototype._attachDom.call(this,N)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var N=this.contentElement;N&&N.selectedItem&&this._setSelectedItem(N.selectedItem)},
get contentElement(){for(var N=_.$L(this.$.content).getDistributedNodes(),t=0,O=N.length;t<O;t++)if(N[t].nodeType===Node.ELEMENT_NODE)return N[t]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(N){this._setSelectedItem(N.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(N){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N)===this&&this.open()},
_selectedItemChanged:function(N){var t="";N?t=N.label||N.getAttribute("label")||N.textContent.trim():t="";this.value=t;this._setSelectedItemLabel(t)},
_computeMenuVerticalOffset:function(N,t){return t?t:N?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var N=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",N)},
_computeLabelClass:function(N,t,O){var H="label";if(N)O&&(H+=" label-is-hidden");else if(O||t)H+=" label-is-floating";return H},
_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 T3B;var wGY;_.LO({is:"tp-yt-paper-icon-button",_template:function(){if(wGY!==void 0)return wGY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_button.tp.yt.paper.icon.button.css.js--\x3e<tp-yt-iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]" class="style-scope tp-yt-paper-icon-button"></tp-yt-iron-icon>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;T3B===void 0&&(T3B=document.createElement("template"));var H=T3B;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return wGY=N},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.UsZ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(N,t){var O=this.getAttribute("aria-label");O&&t!=O||this.setAttribute("aria-label",N)}});var eDS;var PMr;_.c8=[Efp,_.Iv,{hostAttributes:{role:"option",tabindex:"0"}}];_.LO({_template:function(){if(PMr!==void 0)return PMr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-icon-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_icon_item.tp.yt.paper.icon.item.css.js--\x3e<div id="contentIcon" class="content-icon style-scope tp-yt-paper-icon-item">\n  <slot name="item-icon" class="style-scope tp-yt-paper-icon-item"></slot>\n</div>\n<slot class="style-scope tp-yt-paper-icon-item"></slot>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;eDS===void 0&&(eDS=document.createElement("template"));var H=eDS;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return PMr=N},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.c8]});var XGE;var xsB;var kkp={attached:function(){this.fire("addon-attached")},
update:function(){}};var qPy=1,fPa=1,nFZ=1,W0Y=[_.Iv,_.rA,{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();!cn&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(N,t){N?N=N+" "+t:N=t;return N},
_onAddonAttached:function(N){N=_.$L(N).rootTarget;if(N.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,N.id);else{var t="paper-input-add-on-"+fPa++;N.id=t;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(N){_.Iv._focusBlurHandler.call(this,N);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var N=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",N);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(N){try{var t=this.inputElement.selectionStart;this.value=N;this.inputElement.selectionStart=t;this.inputElement.selectionEnd=t}catch(O){this.value=N}},
_computeAlwaysFloatLabel:function(N,t){return t||N},
_updateAriaLabelledBy:function(){var N=_.$L(this.root).querySelector("label");if(N){if(N.id)var t=N.id;else t="paper-input-label-"+qPy++,N.id=t;this._ariaLabelledBy=t}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+nFZ++)},
_onChange:function(N){this.shadowRoot&&this.fire(N.type,{sourceEvent:N},{node:this,bubbles:N.bubbles,cancelable:N.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var N=document.activeElement;N instanceof HTMLElement&&N!==document.body&&N!==document.documentElement||this._focusableElement.focus()}}}];var r$_;var IPX;_.LO({_template:function(){if(IPX!==void 0)return IPX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-char-counter--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_char_counter.tp.yt.paper.input.char.counter.css.js--\x3e<span class="style-scope tp-yt-paper-input-char-counter">[[_charCounterStr]]</span>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;r$_===void 0&&(r$_=document.createElement("template"));var H=r$_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return IPX=N},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[kkp],properties:{_charCounterStr:{type:String,value:"0"}},update:function(N){if(N.inputElement){N.value=N.value||"";var t=N.value.toString().length.toString();N.inputElement.hasAttribute("maxlength")&&(t+="/"+N.inputElement.getAttribute("maxlength"));this._charCounterStr=t}}});var lPQ;var Q7X;_.LO({_template:function(){if(Q7X!==void 0)return Q7X;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_container.tp.yt.paper.input.container.css.js--\x3e<div class="floated-label-placeholder style-scope tp-yt-paper-input-container" aria-hidden="true" hidden="[[noLabelFloat]]">\n  \u00a0\n</div>\n\n<div class="input-wrapper style-scope tp-yt-paper-input-container">\n  <span class="prefix style-scope tp-yt-paper-input-container"><slot name="prefix" class="style-scope tp-yt-paper-input-container"></slot></span>\n\n  <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]] style-scope tp-yt-paper-input-container" id="labelAndInputContainer">\n    <slot name="label" class="style-scope tp-yt-paper-input-container"></slot>\n    <slot name="input" on-slotchange="onInputSlotChanged" class="style-scope tp-yt-paper-input-container"></slot><slot name="after-input" class="style-scope tp-yt-paper-input-container"></slot>\n  </div>\n\n  <span class="suffix style-scope tp-yt-paper-input-container"><slot name="suffix" class="style-scope tp-yt-paper-input-container"></slot></span>\n</div>\n\n<div class$="[[_computeUnderlineClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <div class="unfocused-line style-scope tp-yt-paper-input-container"></div>\n  <div class="focused-line style-scope tp-yt-paper-input-container"></div>\n</div>\n\n<div class$="[[_computeAddOnContentClass(focused,invalid)]] style-scope tp-yt-paper-input-container">\n  <slot name="add-on" class="style-scope tp-yt-paper-input-container"></slot>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;lPQ===void 0&&(lPQ=document.createElement("template"));var H=lPQ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return Q7X=N},
is:"tp-yt-paper-input-container",hostAttributes:{"style-target":"host"},properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,tp-yt-iron-input,textarea,.paper-input-input"},
_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},
_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},
_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},
_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},
listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return L9(this.attrForValue)},get _inputElement(){return _.$L(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(N){this._addons||(this._addons=[]);N=N.target;this._addons.indexOf(N)===-1&&(this._addons.push(N),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(N){this._handleValueAndAutoValidate(N.target)},
_onValueChanged:function(N){var t=N.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,t.value===void 0||t.value===""))return;this._handleValueAndAutoValidate(N.target)},
_handleValue:function(N){var t=this._inputElementValue;t||t===0||N.type==="number"&&!N.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:N,value:t,invalid:this.invalid})},
_handleValueAndAutoValidate:function(N){this.autoValidate&&N&&(this.invalid=!(N.validate?N.validate(this._inputElementValue):N.checkValidity()));this._handleValue(N)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(N){if(this._addons)for(var t,O=0;t=this._addons[O];O++)t.update(N)},
_computeInputContentClass:function(N,t,O,H,A){var Z="input-content";N?(A&&(Z+=" label-is-hidden"),H&&!this.noUnfloatedLabelError&&(Z+=" is-invalid")):(N=this.querySelector("label"),t||A?(Z+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",H?Z+=" is-invalid":O&&(Z+=" label-is-highlighted")):(N&&(this.$.labelAndInputContainer.style.position="relative"),H&&!this.noUnfloatedLabelError&&(Z+=" is-invalid")));O&&(Z+=" focused");return Z},
_computeUnderlineClass:function(N,t){var O="underline";t?O+=" is-invalid":N&&(O+=" is-highlighted");return O},
_computeAddOnContentClass:function(N,t){var O="add-on-content";t?O+=" is-invalid":N&&(O+=" is-highlighted");return O}});var ms0;var EFS;_.LO({_template:function(){if(EFS!==void 0)return EFS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input-error--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input_error.tp.yt.paper.input.error.css.js--\x3e\n<div id="a11yWrapper" class="style-scope tp-yt-paper-input-error">\n  <slot class="style-scope tp-yt-paper-input-error"></slot>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;ms0===void 0&&(ms0=document.createElement("template"));var H=ms0;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return EFS=N},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[kkp],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(N){this._setInvalid(N.invalid)}});_.LO({is:"tp-yt-paper-input",_template:function(){if(xsB!==void 0)return xsB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_input.tp.yt.paper.input.css.js--\x3e<tp-yt-paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-input">\n  <slot name="prefix" slot="prefix" class="style-scope tp-yt-paper-input"></slot>\n\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-input">[[label]]</label>\n\n  \n  <tp-yt-iron-input bind-value="{{value}}" slot="input" class="input-element style-scope tp-yt-paper-input" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">\n    <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]" dir$="[[inputDir]]" class="style-scope tp-yt-paper-input">\n  </tp-yt-iron-input>\n\n  <slot name="suffix" slot="suffix" class="style-scope tp-yt-paper-input"></slot>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-input">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-input">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-input"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;XGE===void 0&&(XGE=document.createElement("template"));var H=XGE;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return xsB=N},
behaviors:[W0Y,_.mT],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 Gky;var RDr;_.LO({_template:function(){if(RDr!==void 0)return RDr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item.tp.yt.paper.item.css.js--\x3e<slot class="style-scope tp-yt-paper-item"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=
N.content,O=t.insertBefore;Gky===void 0&&(Gky=document.createElement("template"));var H=Gky;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return RDr=N},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.c8]});var vFa;var J$E;_.LO({_template:function(){if(J$E!==void 0)return J$E;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-item-body--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_item_body.tp.yt.paper.item.body.css.js--\x3e<slot class="style-scope tp-yt-paper-item-body"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
var t=N.content,O=t.insertBefore;vFa===void 0&&(vFa=document.createElement("template"));var H=vFa;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return J$E=N},
is:"tp-yt-paper-item-body"});var oF0;var s7f;var N5Q=function(){};
_.V=N5Q.prototype;_.V.indexOf=function(){};
_.V.selectPrevious=function(){};
_.V.selectNext=function(){};
_.V.selectIndex=function(){};
_.V.forceSynchronousItemUpdate=function(){};
_.V._checkFallback=function(){};
_.V._addListener=function(){};
_.V._removeListener=function(){};
_.V._activateEventChanged=function(){};
_.V._updateItems=function(){};
_.V._selectSelected=function(){};
_.V._filterItem=function(){};
_.V._valueToItem=function(){};
_.V._valueToIndex=function(){};
_.V._indexToValue=function(){};
_.V._valueForItem=function(){};
_.V._observeItems=function(){};
_.V._itemActivate=function(){};
_.V.multiChanged=function(){};
_.V._updateAttrForSelected=function(){};
_.V._updateSelected=function(){};
_.V._selectMulti=function(){};
_.V._selectionChange=function(){};
_.V._toggleSelected=function(){};
_.V._valuesToItems=function(){};
_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V.select=function(){};
_.V._resetTabindices=function(){};
_.V._updateMultiselectable=function(){};
_.V._focusWithKeyboardEvent=function(){};
_.V._clearSearchText=function(){};
_.V._focusPrevious=function(){};
_.V._focusNext=function(){};
_.V._applySelection=function(){};
_.V._focusedItemChanged=function(){};
_.V._onIronItemsChanged=function(){};
_.V._onShiftTabDown=function(){};
_.V._onFocus=function(){};
_.V._onUpKey=function(){};
_.V._onDownKey=function(){};
_.V._onEscKey=function(){};
_.V._onKeydown=function(){};
_.V._activateHandler=function(){};
_.V._disabledChanged=function(){};
_.V._setSelectedItem=function(){};
_.V._setItems=function(){};
_.V._setSelectedItems=function(){};
_.V._setFocusedItem=function(){};
N5Q=_.LO({_template:function(){if(s7f!==void 0)return s7f;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-listbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_listbox.tp.yt.paper.listbox.css.js--\x3e<slot class="style-scope tp-yt-paper-listbox"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
var t=N.content,O=t.insertBefore;oF0===void 0&&(oF0=document.createElement("template"));var H=oF0;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return s7f=N},
is:"tp-yt-paper-listbox",behaviors:[NQu],hostAttributes:{role:"listbox"}});var tzR;var OfR;var Hf_={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(N,t){return[N||t?"active":"",t?"cooldown":""].join(" ")},
__activeChanged:function(N,t){this.__setAriaHidden(!N);this.__coolingDown=!N&&t},
__altChanged:function(N){this.setAttribute("aria-label",N||"loading")},
__setAriaHidden:function(N){N?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.LO({_template:function(){if(OfR!==void 0)return OfR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner.tp.yt.paper.spinner.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner">\n  <div class="spinner-layer layer-1 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-2 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-3 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n\n  <div class="spinner-layer layer-4 style-scope tp-yt-paper-spinner">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner">\n      <div class="circle style-scope tp-yt-paper-spinner"></div>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;tzR===void 0&&(tzR=document.createElement("template"));var H=tzR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return OfR=N},
is:"tp-yt-paper-spinner",behaviors:[Hf_]});var A8E;var Zfp;_.LO({_template:function(){if(Zfp!==void 0)return Zfp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-spinner-lite--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_spinner_lite.tp.yt.paper.spinner.lite.css.js--\x3e<div id="spinnerContainer" class-name="[[__computeContainerClasses(active, __coolingDown)]]" on-animationend="__reset" on-webkit-animation-end="__reset" class="style-scope tp-yt-paper-spinner-lite">\n  <div class="spinner-layer style-scope tp-yt-paper-spinner-lite">\n    <div class="circle-clipper left style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n    <div class="circle-clipper right style-scope tp-yt-paper-spinner-lite">\n      <div class="circle style-scope tp-yt-paper-spinner-lite"></div>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;A8E===void 0&&(A8E=document.createElement("template"));var H=A8E;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return Zfp=N},
is:"tp-yt-paper-spinner-lite",behaviors:[Hf_]});var VzZ;var DKr;_.LO({_template:function(){if(DKr!==void 0)return DKr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tab--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tab.tp.yt.paper.tab.css.js--\x3e<div class="tab-content style-scope tp-yt-paper-tab" style-target="tab-content">\n  <slot class="style-scope tp-yt-paper-tab"></slot>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;VzZ===void 0&&(VzZ=document.createElement("template"));var H=VzZ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return DKr=N},
is:"tp-yt-paper-tab",behaviors:[_.Iv,_.Qy.IronButtonState,yX],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0},noBoldOnFocus:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab","style-target":"host"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},
get _parentNoink(){var N=_.$L(this).parentNode;return!!N&&!!N.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(N){if(this.link){var t=this.queryEffectiveChildren("a");t&&N.target!==t&&t.click()}}});var UK_;var Cv_;var Kg_=_.mp(['<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>']),FgS=_.QHB(Kg_);document.head.appendChild(FgS.content);_.LO({_template:function(){if(Cv_!==void 0)return Cv_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;UK_===void 0&&(UK_=document.createElement("template"));var H=UK_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return Cv_=N},
is:"tp-yt-paper-tabs",behaviors:[_.JV,_.Ola],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(N){_.$L(this).querySelectorAll("tp-yt-paper-tab").forEach(N?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(N){N.setAttribute("noink","")},
_removeNoinkAttribute:function(N){N.removeAttribute("noink")},
_computeScrollButtonClass:function(N,t,O,H){return!t||O?"hidden":N?H?"hidden":"not-visible":""},
_computeTabsContentClass:function(N,t){var O="tabs-content";N&&(O+=" scrollable");if(!N||t)O+=" fit-container";return O},
_computeSelectionBarClass:function(N,t){var O="selection-bar";N?O+=" hidden":t&&(O+=" align-bottom");return O},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(N){return""+N},
_onIronSelect:function(N){this._tabChanged(N.detail.item,this._previousTab);this._previousTab=N.detail.item;this.cancelDebouncer("tab-changed")},
_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},
_activateHandler:function(){this._cancelPendingActivation();_.vb._activateHandler.apply(this,arguments)},
_scheduleActivation:function(N,t){this._pendingActivationItem=N;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,t)},
_delayedActivationHandler:function(){var N=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;N.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},
_cancelPendingActivation:function(){this._pendingActivationTimeout!==void 0&&(this.cancelAsync(this._pendingActivationTimeout),this._pendingActivationTimeout=this._pendingActivationItem=void 0)},
_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},
_onBlurCapture:function(N){N.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(N,t){this.scrollable&&this._affectScroll(t&&-t.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(N){this.$.tabsContainer.scrollLeft+=N;N=this.$.tabsContainer.scrollLeft;this._leftHidden=N===0||this.hideScrollButtons;this._rightHidden=N===this._tabContainerScrollSize||this.hideScrollButtons},
_onLeftScrollButtonDown:function(){this._scrollToLeft();this._holdJob=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},
_onRightScrollButtonDown:function(){this._scrollToRight();this._holdJob=setInterval(this._scrollToRight.bind(this),this._holdDelay)},
_onScrollButtonUp:function(){clearInterval(this._holdJob);this._holdJob=null},
_scrollToLeft:function(){this._affectScroll(-this._step)},
_scrollToRight:function(){this._affectScroll(this._step)},
_tabChanged:function(N,t){if(N){var O=this.$.tabsContent.getBoundingClientRect(),H=O.width,A=N.getBoundingClientRect();O=A.left-O.left;this._pos={width:this._calcPercent(A.width,H),left:this._calcPercent(O,H)};if(this.noSlide||t==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var Z=t.getBoundingClientRect();t=this.items.indexOf(t);N=this.items.indexOf(N);this.$.selectionBar.classList.add("expand");
N=t<N;this._isRTL&&(N=!N);N?this._positionBar(this._calcPercent(A.left+A.width-Z.left,H)-5,this._left):this._positionBar(this._calcPercent(Z.left+Z.width-A.left,H)-5,this._calcPercent(O,H)+5);this.scrollable&&this._scrollToSelectedIfNeeded(A.width,O)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(N,t){t-=this.$.tabsContainer.scrollLeft;t<0?this.$.tabsContainer.scrollLeft+=t:(t+=N-this.$.tabsContainer.offsetWidth,t>0&&(this.$.tabsContainer.scrollLeft+=t))},
_calcPercent:function(N,t){return 100*N/t},
_positionBar:function(N,t){N=N||0;t=t||0;this._width=N;this._left=t;this.transform("translateX("+t+"%) scaleX("+N/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var N=this.$.selectionBar.classList;N.contains("expand")?(N.remove("expand"),N.add("contract"),this._positionBar(this._pos.width,this._pos.left)):N.contains("contract")&&N.remove("contract")}});var dKS;var gEp;_.LO({_template:function(){if(gEp!==void 0)return gEp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-textarea--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_textarea.tp.yt.paper.textarea.css.js--\x3e<tp-yt-paper-input-container no-label-float$="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]" no-unfloated-label-error="[[noUnfloatedLabelError]]" class="style-scope tp-yt-paper-textarea">\n  <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label" class="style-scope tp-yt-paper-textarea">[[label]]</label>\n\n  <tp-yt-iron-autogrow-textarea class="paper-input-input style-scope tp-yt-paper-textarea" slot="input" id$="[[_inputId]]" aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" bind-value="{{value}}" invalid="{{invalid}}" validator$="[[validator]]" disabled$="[[disabled]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" required$="[[required]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" autocapitalize$="[[autocapitalize]]" rows$="[[rows]]" max-rows$="[[maxRows]]" on-change="_onChange"></tp-yt-iron-autogrow-textarea>\n\n  <template is="dom-if" if="[[errorMessage]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-error aria-live="assertive" slot="add-on" class="style-scope tp-yt-paper-textarea">[[errorMessage]]</tp-yt-paper-input-error>\n  </template>\n\n  <template is="dom-if" if="[[charCounter]]" class="style-scope tp-yt-paper-textarea">\n    <tp-yt-paper-input-char-counter slot="add-on" class="style-scope tp-yt-paper-textarea"></tp-yt-paper-input-char-counter>\n  </template>\n</tp-yt-paper-input-container>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;dKS===void 0&&(dKS=document.createElement("template"));var H=dKS;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return gEp=N},
is:"tp-yt-paper-textarea",behaviors:[W0Y,_.mT],properties:{_ariaLabelledBy:{observer:"_ariaLabelledByChanged",type:String},_ariaDescribedBy:{observer:"_ariaDescribedByChanged",type:String},value:{type:String},rows:{type:Number,value:1},maxRows:{type:Number,value:0},noUnfloatedLabelError:{type:Boolean,value:!1}},get selectionStart(){return this.$.input.textarea.selectionStart},set selectionStart(N){this.$.input.textarea.selectionStart=N},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(N){this.$.input.textarea.selectionEnd=N},_ariaLabelledByChanged:function(N){this._focusableElement.setAttribute("aria-labelledby",N)},
_ariaDescribedByChanged:function(N){this._focusableElement.setAttribute("aria-describedby",N)},
get _focusableElement(){return this.inputElement.textarea}});var y8p;var B5Z;/*

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 c8Z=function(){};
_.V=c8Z.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
c8Z=_.LO({is:"tp-yt-paper-toggle-button",_template:function(){if(B5Z!==void 0)return B5Z;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;y8p===void 0&&(y8p=document.createElement("template"));var H=y8p;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return B5Z=N},
behaviors:[_.CM_],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");_.yB(this,function(){_.Jy(this,"pan-y")})},
_ontrack:function(N){N=N.detail;N.state==="start"?this._trackStart(N):N.state==="track"?this._trackMove(N):N.state==="end"&&this._trackEnd(N)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(N){N=N.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+N:N)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+N:N));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var N=yX._createRipple();N.id="ink";N.setAttribute("recenters","");N.classList.add("circle","toggle-ink");return N}});var $KX;var jj_;_.LO({_template:function(){if(jj_!==void 0)return jj_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;$KX===void 0&&($KX=document.createElement("template"));var H=$KX;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return jj_=N},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var N=_.$L(this).parentNode,t=_.$L(this).getOwnerRoot(),O;this.for?O=_.$L(t).querySelector("#"+this.for):O=N.nodeType==Node.DOCUMENT_FRAGMENT_NODE?t.host:N;return O},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(N){N==="entry"?this.show():N==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.$L(this).textContent.trim()===""){for(var N=!0,t=_.$L(this).getEffectiveChildNodes(),O=0;O<t.length;O++)if(t[O].textContent.trim()!==""){N=!1;break}if(N)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var N=this.offset;this.marginTop!=14&&this.offset==14&&(N=this.marginTop);var t=this.offsetParent.getBoundingClientRect(),O=this._target.getBoundingClientRect(),H=this.getBoundingClientRect(),A=(O.width-H.width)/2,Z=(O.height-H.height)/2,U=O.left-t.left,C=O.top-t.top;switch(this.position){case "top":var F=U+A;var g=C-H.height-N;break;case "bottom":F=U+A;g=C+O.height+N;break;case "left":F=U-H.width-N;g=C+Z;break;case "right":F=U+O.width+
N,g=C+Z}this.fitToVisibleBounds?(t.left+F+H.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,F)+"px",this.style.right="auto"),t.top+g+H.height>window.innerHeight?(this.style.bottom=t.height+"px",this.style.top="auto"):(this.style.top=Math.max(-t.top,g)+"px",this.style.bottom="auto")):(this.style.left=F+"px",this.style.top=g+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(N){N!==500&&this.updateStyles({"--paper-tooltip-delay-in":N+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(N){if(N==="entry"&&this.animationEntry!=="")return this.animationEntry;if(N==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[N]&&typeof this.animationConfig[N][0].name==="string"){if(this.animationConfig[N][0].timing&&this.animationConfig[N][0].timing.delay&&this.animationConfig[N][0].timing.delay!==0){var t=this.animationConfig[N][0].timing.delay;N==="entry"?this.updateStyles({"--paper-tooltip-delay-in":t+"ms"}):N==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":t+
"ms"})}return this.animationConfig[N][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var ifQ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ifQ,_.C8);var uxQ=_.u9(ifQ,[0,_.Zb]);var $s=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p($s,_.C8);var SN_=[3,4],hfQ=[5,6];var Mzu=[0,SN_,hfQ,_.CV,-1,_.Ow,_.KV,-1,wmf,e5Q];var bf_=_.u9($s,Mzu),pLr=_.Ss(Mzu);var Lgp=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Lgp,_.C8);var zfu=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(zfu,_.C8);var YN0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(YN0,_.C8);var aja=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(aja,_.C8);var T5r=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(T5r,_.C8);var jf=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(jf,_.C8);jf.prototype.getSource=function(){return _.aG(this,1)};
jf.prototype.getMessage=function(){return _.YD(this,4)};
jf.prototype.getData=function(){return _.Sg(this,T5r,8)};var wLE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(wLE,_.C8);var iK=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(iK,_.C8);var uK=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(uK,_.C8);var Sf=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Sf,_.C8);Sf.prototype.getUrl=function(){return _.YD(this,1)};
Sf.prototype.setUrl=function(N){return _.Xa(this,1,N)};
Sf.prototype.hasUrl=function(){return _.SJ(_.cU(this,1))!=null};var efu=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(efu,_.C8);var Pva=[3];var XLZ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(XLZ,_.C8);var hx=function(N){var t=new XLZ;return _.hr(t,2,N)};
XLZ.prototype.getLanguage=function(){return wQ(this,4,MS)};
var xKY=function(N){var t=hx(1);return _.zN(t,6,MS,N)},MS=[3,
4,5,6];var k2p=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(k2p,_.C8);var bK=function(N){var t=new k2p;return _.hr(t,1,N)},pe=function(N,t){return _.zN(N,2,qN0,t)},qN0=[2,
3,4,5];var fjB=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(fjB,_.C8);var Le=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Le,_.C8);var nEp=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(nEp,_.C8);var WgX=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(WgX,_.C8);var r8R=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(r8R,_.C8);var Iju=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Iju,_.C8);var ljB=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ljB,_.C8);var zL=function(N){return _.Sg(N,uK,5)};var Qj0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Qj0,_.C8);Qj0.prototype.getValue=function(){return Ll(this,1)};var mKa=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(mKa,_.C8);var Ys=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Ys,_.C8);Ys.prototype.getMetadata=function(){return _.e0(this,r8R,7,a$)};
Ys.prototype.hasMetadata=function(){return _.j0(this,r8R,7,a$)};
var EE0=_.GNO(Ys),a$=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var TL=function(N){this.JSC$12324_name_=N;this.files_=[];this.directories_=[];this.directoryMap_={}};
TL.prototype.getName=function(){return this.JSC$12324_name_};var ef=function(N,t){this.callback_=t;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new TL("");G2Y(this,N,this.rootDirectory_);w6(this)},G2Y=function(N,t,O){for(var H=0;H<t.length;H++){var A=t[H];
A.isFile?(N.fileOps_++,A.file((0,_.qn)(N.handleFileSuccess_,N,O),(0,_.qn)(N.handleFileError_,N))):N.unscannedDirectories_.push(new RfQ(A,O))}},w6=function(N){if(N.unscannedDirectories_.length>0&&N.directoryOps_<5&&!N.hasError_){N.directoryOps_++;
var t=N.unscannedDirectories_.shift(),O=t.entry,H=new TL(O.name);t=t.parent;t.directoryMap_[H.getName()]=H;t.directories_.push(H);O=O.createReader();O.readEntries((0,_.qn)(N.handleDirectorySuccess_,N,O,H),(0,_.qn)(N.handleDirectoryError_,N))}N.directoryOps_!=0||N.fileOps_!=0||N.unscannedDirectories_.length!=0&&!N.hasError_||N.callback_(N.rootDirectory_.files_,N.rootDirectory_.directories_,N.hasError_)};
ef.prototype.handleDirectorySuccess_=function(N,t,O){G2Y(this,O,t);O.length==0?(this.directoryOps_--,w6(this)):N.readEntries((0,_.qn)(this.handleDirectorySuccess_,this,N,t),(0,_.qn)(this.handleDirectoryError_,this))};
ef.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;w6(this)};
ef.prototype.handleFileSuccess_=function(N,t){N.files_.push(t);this.fileOps_--;w6(this)};
ef.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;w6(this)};
var RfQ=function(N,t){this.entry=N;this.parent=t};var P8=function(N){_.Xm.call(this);_.SF(N,"drop",this.onObjectsDropped_,!1,this);_.SF(N,"dragenter",this.onFilesDragged_,!1,this);_.SF(N,"dragover",this.onFilesDragged_,!1,this);_.SF(N,"dragleave",this.onDragLeave_,!1,this);_.SF(N,"dragend",this.onDragLeave_,!1,this)};
_.Od(P8,_.Xm);var vEB=function(N,t){_.a7.call(this,"f");this.files=N;this.directories=t};
_.Od(vEB,_.a7);var J8r=function(){_.a7.call(this,"h")};
_.Od(J8r,_.a7);var oEu=function(){_.a7.call(this,"i")};
_.Od(oEu,_.a7);var sjZ=function(){_.a7.call(this,"g")};
_.Od(sjZ,_.a7);P8.prototype.onObjectsDropped_=function(N){var t=this;N.preventDefault();var O=N.event_.dataTransfer;if((N=O&&O.items)&&N.length>0&&N[0].webkitGetAsEntry){O=[];for(var H=[],A=0;A<N.length;A++){var Z=N[A].webkitGetAsEntry();Z?O.push(Z):H.push(N[A])}new ef(O,function(U,C,F){F?t.dispatchEvent(new sjZ("Error occurred while reading from the file system.")):t.dispatchEvent(new vEB(U,C,H))})}else(N=O&&O.files)&&this.dispatchEvent(new vEB(Array.from(N),[]))};
P8.prototype.onFilesDragged_=function(N){N.type==="dragenter"&&this.dispatchEvent(new J8r);N.preventDefault()};
P8.prototype.onDragLeave_=function(){this.dispatchEvent(new oEu)};var NkZ=function(N,t){this.JSC$12347_name_=N;this.inputElement_=t};
NkZ.prototype.getName=function(){return this.JSC$12347_name_};
NkZ.prototype.getInputElement=function(){return this.inputElement_};var X6=function(N,t,O){t=t===void 0?"single_file":t;O=O===void 0?[]:O;_.Xm.call(this);this.overlayTarget_=N;this.parentOverlay_=N!=null?N.parentNode:_.Tu("scotty-overlay-parent");this.selectorType_=t;this.acceptTypes_=O;this.overlay_=t8B(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.p(X6,_.Xm);
var t8B=function(N,t,O,H){var A=document.createElement("input");A.setAttribute("type","file");A.setAttribute("name","Filedata");_.SF(A,"change",N.onFilesSelected_,!1,N);O==="multiple_file"&&(A.multiple="true");O==="single_directory"&&(A.webkitdirectory="true");H.length>0&&A.setAttribute("accept",H.join(","));A.style.position="absolute";A.style.overflow="hidden";A.style.height="0px";A.style.width="0px";A.style.opacity="0";A.setAttribute("aria-hidden","true");A.setAttribute("tabIndex",-1);if(N.overlayTarget_!=
null)return A.style.height=t.offsetHeight+"px",A.style.width=t.offsetWidth+"px",N.parentOverlay_&&(N.parentOverlay_.style.position="relative"),_.rI(A,t),Gj(A,new _.IN(t.offsetLeft,t.offsetTop)),A;N.parentOverlay_.appendChild(A);return A};
X6.prototype.click=function(){this.overlay_.click()};
X6.prototype.onFilesSelected_=function(N){a:{try{var t=(new XMLHttpRequest).upload!==void 0;break a}catch(g){}t=!1}if(t){var O;N=Array.from((O=N.target.files)!=null?O:[]);O=[];if(this.selectorType_==="single_directory"&&(_.Ud||gr||_.D7)){O=new TL("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(t=0;t<N.length;t++)for(var H=N[t],A=H.webkitRelativePath.split("/"),Z=O,U=0;U<A.length;U++){var C=A[U];if(U==A.length-1){C!="."&&Z.files_.push(H);break}var F=Z.directoryMap_[C];F==void 0&&(C=
F=new TL(C),Z.directoryMap_[C.getName()]=C,Z.directories_.push(C));Z=F}O=O.directories_}this.dispatchEvent(new OgX(N,O,null))}else N=N.target.value,N.match(/^c:\\fakepath\\/i)&&(N=N.substring(12)),this.dispatchEvent(new OgX([],[],new NkZ(N,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=t8B(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var OgX=function(N,t){_.a7.call(this,"j");this.files=N;this.directories=t};
_.p(OgX,_.a7);var Hg0=function(N){this.uploadUrl_=N};var ALQ=function(){_.Xm.call(this)};
_.Od(ALQ,_.Xm);var xs=function(N){_.a7.call(this,N)};
_.Od(xs,_.a7);var ks=function(N){_.a7.call(this,N)};
_.Od(ks,_.a7);var Zga=function(N,t,O,H,A){_.Xm.call(this);O=document.createElement("form");O.setAttribute("method",t);O.setAttribute("enctype","multipart/form-data");O.setAttribute("encoding","multipart/form-data");t=document.createElement("input");t.setAttribute("type","hidden");t.setAttribute("name","metadata");t.setAttribute("value",A);O.appendChild(t);O.appendChild(H);this.JSC$12364_form_=O;N=new _.Ir(N);_.Ho(N,"upload_protocol","multipart");this.JSC$12364_url_=N.toString();this.JSC$12364_request_=new iD;this.state_=
"Ready";this.JSC$12364_errorDescription_=null;this.JSC$12364_eventHandler_=new _.MT(this);_.L1(this,this.JSC$12364_eventHandler_);this.JSC$12364_eventHandler_.listen(this.JSC$12364_request_,"success",this.onTransferSuccess_);this.JSC$12364_eventHandler_.listen(this.JSC$12364_request_,"error",this.onTransferError_)};
_.p(Zga,ALQ);_.V=Zga.prototype;_.V.run=function(){this.state_="Transferring";var N=this.JSC$12364_request_,t=this.JSC$12364_form_;if(N.JSC$11632_active_)throw Error("te");var O=new _.Ir(this.JSC$12364_url_||t.action);N.JSC$11632_form_=t;t=N.JSC$11632_form_;O=_.GN(O.toString());O!==void 0&&(t.action=O);ggY(N)};
_.V.getResponseCode=function(){return null};
_.V.getResponseText=function(){return this.JSC$12364_request_&&this.JSC$12364_request_.getResponseText()||null};
_.V.JSC$30161_getErrorDescription=function(){return this.JSC$12364_errorDescription_};
_.V.cancel=function(){this.JSC$12364_request_&&this.JSC$12364_request_.abort();this.state_="Cancelled";this.dispatchEvent(new xs("o"))};
_.V.pause=function(){};
_.V.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new xs("l"))};
_.V.onTransferError_=function(){this.JSC$12364_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new xs("n"))};var qS=function(){_.I7.call(this)};
_.p(qS,_.I7);qS.prototype.createXhr=function(){var N=_.I7.prototype.createXhr.call(this);N.upload&&(N.upload.onprogress=(0,_.qn)(this.onProgress_,this));return N};
qS.prototype.onProgress_=function(N){this.dispatchEvent(N)};var V8Z=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},UBS=function(N,t){var O=N.attempt_+1;
if(N.maxAttempts_>0&&O>N.maxAttempts_)return!1;O==0?t():N.delayCallId_=nV(function(){N.delayCallId_=null;t()},DBy(N),N);
N.attempt_=O;return!0};
V8Z.prototype.reset=function(){this.delayCallId_&&_.H4.clearTimeout(this.delayCallId_);this.attempt_=-1};
var DBy=function(N){var t=250*Math.pow(2,N.attempt_);N.maxDelayMs_>=0&&(t=Math.min(t,N.maxDelayMs_));return t};var pnQ=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var fe=function(){_.Xm.call(this);this.JSC$12374_request_=this.state_=null;this.JSC$12374_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12374_bytesTransferred_=0;this.retryIterator_=new V8Z;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12374_errorDescription_=null;this.JSC$12374_eventHandler_=new _.MT(this);_.L1(this,this.JSC$12374_eventHandler_);this.JSC$12374_url_=this.blob_=null;this.JSC$12374_method_=void 0;this.chunkSize_=this.JSC$12374_metadata_=
this.JSC$12374_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12374_responseText_=this.JSC$12374_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Od(fe,ALQ);_.V=fe.prototype;_.V.run=function(){ne(this)};
_.V.getResponseCode=function(){return this.JSC$12374_responseCode_};
_.V.getResponseText=function(){return this.JSC$12374_responseText_};
_.V.JSC$30161_getErrorDescription=function(){return this.JSC$12374_errorDescription_};
_.V.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12374_eventHandler_.removeAll();this.JSC$12374_request_&&this.JSC$12374_request_.abort();this.retryIterator_.reset();var N=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(N==="Upload"||N==="Query")N=new qS,N.JSC$9951_withCredentials_=this.JSC$12374_withCredentials_,N.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12374_bytesTransferred_=
0;this.dispatchEvent(new xs("o"))}};
_.V.pause=function(){this.pauseRequested_=!0};
var ne=function(N){var t=N.state_;N.pauseRequested_?(N.pauseRequested_=!1,N.stateAfterUnpausing_=t,N.state_="Paused"):UBS(N.retryIterator_,function(){switch(N.state_){case "Start":N.JSC$12374_request_=new qS;var O=_.WW.clone(N.JSC$12374_headers_);N.blob_.size!=null&&(O["Content-Length"]=N.blob_.size);O=LCS(O);O["X-Goog-Upload-Protocol"]="resumable";O["X-Goog-Upload-Command"]="start";N.JSC$12374_eventHandler_.removeAll();N.JSC$12374_eventHandler_.listen(N.JSC$12374_request_,"complete",N.onStartComplete_);
N.JSC$12374_request_.JSC$9951_withCredentials_=N.JSC$12374_withCredentials_;N.JSC$12374_request_.send(N.JSC$12374_url_,N.JSC$12374_method_,N.JSC$12374_metadata_,O);N.lastCommandResponseCode_=null;N.dispatchEvent(new ks("q"));break;case "Upload":O=N.transferHandle_.uploadUrl_;var H=N.blob_.size;if(rHu()){var A=N.chunkSize_;var Z=N.offset_+A>=H;H=W2p(N.blob_,N.offset_,Z?H:N.offset_+A)}else N.offset_=0,H=N.blob_,Z=!0;N.JSC$12374_request_=new qS;N.JSC$12374_request_.JSC$9951_withCredentials_=N.JSC$12374_withCredentials_;
N.JSC$12374_eventHandler_.removeAll();N.JSC$12374_eventHandler_.listen(N.JSC$12374_request_,"progress",N.onUploadProgress_);A=(0,_.qn)(N.JSC$12376_onUploadComplete_,N,N.offset_+H.size,Z);N.JSC$12374_eventHandler_.listen(N.JSC$12374_request_,"complete",A);N.lastCommandResponseCode_=null;N.dispatchEvent(new ks("q"));Z=Object.assign({},N.JSC$12374_headers_||{},{"X-Goog-Upload-Command":"upload"+(Z?", finalize":""),"X-Goog-Upload-Offset":N.offset_});N.JSC$12374_request_.send(O,"POST",H,Z);break;case "Query":N.JSC$12374_request_=
new qS;N.JSC$12374_eventHandler_.removeAll();N.JSC$12374_eventHandler_.listen(N.JSC$12374_request_,"complete",N.onQueryComplete_);O=Object.assign({},N.JSC$12374_headers_||{},{"X-Goog-Upload-Command":"query"});N.JSC$12374_request_.send(N.transferHandle_.uploadUrl_,"POST","",O);N.lastCommandResponseCode_=null;N.dispatchEvent(new ks("q"));break;default:throw Error("lf");}})||W8(N,"Transfer encountered too many consecutive failures.")},W8=function(N,t){N.state_="Error";
N.JSC$12374_errorDescription_=t;N.dispatchEvent(new xs("n"))};
fe.prototype.onStartComplete_=function(N){var t=N.target;this.lastCommandResponseCode_=t.getStatus();this.dispatchEvent(new ks("r"));if(Cny(t))Kjy(this,t);else if(Fjr(t)){N=Dy(N.target.getAllResponseHeaders());for(var O in N)_.Zp(O.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new xs("m"));O=iO(N,"X-Goog-Upload-URL");N=(N=iO(N,"X-Goog-Upload-Chunk-Granularity"))?parseInt(N,10):1;O===void 0||isNaN(N)||N<=0?W8(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
N)*N,this.transferHandle_=new Hg0(O),this.dispatchEvent(new xs("p")),this.state_="Upload",this.retryIterator_.reset(),ne(this))}else ne(this)};
fe.prototype.onUploadProgress_=function(N){this.JSC$12374_bytesTransferred_=this.offset_+N.loaded;this.dispatchEvent(new xs("k"))};
fe.prototype.JSC$12376_onUploadComplete_=function(N,t,O){var H=this,A,Z;return _.K(function(U){switch(U.nextAddress){case 1:A=O.target;H.lastCommandResponseCode_=A.getStatus();H.dispatchEvent(new ks("r"));if(dBB(A)||A.getStatus()==404)return H.JSC$12374_bytesTransferred_=N,Kjy(H,A),U.return();if(Fjr(A)){U.jumpTo(2);break}if(!(Z=H.detectCorruptedBlobEnabled_)){U.jumpTo(3);break}return U.yield(gka(H),4);case 4:Z=U.yieldResult;case 3:if(Z)return W8(H,"Blob has been modified or corrupted."),U.return();
H.requireUploadRequestModification_=A.getStatus()==400;H.state_="Query";ne(H);return U.return();case 2:if(t)return W8(H,"Got a non-final success response after issuing a finalize command."),U.return();H.JSC$12374_bytesTransferred_=N;H.offset_=N;H.retryIterator_.reset();ne(H);return U.return()}})};
fe.prototype.onQueryComplete_=function(N){var t=N.target;this.lastCommandResponseCode_=t.getStatus();this.dispatchEvent(new ks("r"));Cny(t)?(t.getStatus()===200&&(this.JSC$12374_bytesTransferred_=this.blob_.size),Kjy(this,t)):Fjr(t)?(N=Dy(N.target.getAllResponseHeaders()),N=parseInt(iO(N,"X-Goog-Upload-Size-Received"),10),isNaN(N)?W8(this,"Server did not respond with current offset."):N<this.offset_?W8(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
N+"."):this.requireUploadRequestModification_&&this.offset_===N?W8(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<N&&this.retryIterator_.reset(),this.offset_=this.JSC$12374_bytesTransferred_=N,this.state_="Upload",ne(this))):ne(this)};
var Kjy=function(N,t){N.JSC$12374_responseCode_=t.getStatus();var O=Dy(t.getAllResponseHeaders());zpg(O);N.JSC$12374_responseText_=t.getResponseText();N.state_="Response received";N.dispatchEvent(new xs("l"))},Fjr=function(N){var t=N.getStatus();
N=Dy(N.getAllResponseHeaders());N=iO(N,"X-Goog-Upload-Status");return t===200&&N==="active"},dBB=function(N){N=Dy(N.getAllResponseHeaders());
return iO(N,"X-Goog-Upload-Status")==="final"},Cny=function(N){if(dBB(N))return!0;
N=N.getStatus();return N>=400&&N<500},gka=function(N){var t;
return _.K(function(O){if(O.nextAddress==1){if(!N.blob_||N.originalBlobSize_<=0)return O.return(!1);if(N.blob_.size!==N.originalBlobSize_)return O.return(!0);_.Mo(O,2);if(t=W2p(N.blob_,0,1)){var H=O.yield,A=new Ob,Z=bEY(A);A.reader_.readAsBinaryString(t);O=H.call(O,Z,4)}else O=O.return(!0);return O}if(O.nextAddress!=2)return O.return(N.blob_.size!==N.originalBlobSize_);_.ax(O);return O.return(!0)})};var yLY=function(N,t,O,H,A,Z){_.Xm.call(this);this.payload_=H;this.JSC$12377_url_=N;this.JSC$12377_method_=t;this.JSC$12377_headers_=O;this.JSC$12377_metadata_=A;this.encoding_=Z||"binary";N=new _.rH;this.boundary_="uploader-"+NY()+"-"+N.JSC$11481_toIsoString();this.JSC$12377_responseText_=this.JSC$12377_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12377_errorDescription_=null;this.JSC$12377_eventHandler_=new _.MT(this);_.L1(this,this.JSC$12377_eventHandler_)};
_.p(yLY,ALQ);_.V=yLY.prototype;
_.V.run=function(){var N=_.WW.clone(this.JSC$12377_headers_);this.payload_.length!=null&&(N["Content-Length"]=this.payload_.length);N=LCS(N);N["X-Goog-Upload-Protocol"]="multipart";N["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new qS;this.JSC$12377_eventHandler_.removeAll();this.JSC$12377_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12377_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12377_url_,this.JSC$12377_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12377_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",N)};
_.V.getResponseCode=function(){return this.JSC$12377_responseCode_};
_.V.getResponseText=function(){return this.JSC$12377_responseText_};
_.V.JSC$30161_getErrorDescription=function(){return this.JSC$12377_errorDescription_};
_.V.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12377_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new xs("o")))};
_.V.pause=function(){};
_.V.onTransferProgress_=function(){this.dispatchEvent(new xs("k"))};
_.V.onTransferComplete_=function(N){var t=N.target.getStatus();t===void 0||t===-1?(this.JSC$12377_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new xs("n"))):(this.JSC$12377_responseCode_=t,N=N.target,t=Dy(N.getAllResponseHeaders()),zpg(t),this.JSC$12377_responseText_=N.getResponseText(),this.state_="Complete",this.dispatchEvent(new xs("l")))};_.Bkp=function(N,t,O,H){H=H===void 0?!1:H;if(O instanceof NkZ)return new Zga(N,"POST",t,O.getInputElement(),"");if(typeof O==="string"||O instanceof String)return new yLY(N,"POST",t,O,"");var A=new fe(void 0);A.JSC$12374_url_=N;A.JSC$12374_method_="POST";A.JSC$12374_headers_=t;A.blob_=O;A.originalBlobSize_=O.size;A.JSC$12374_metadata_="";H&&(A.JSC$12374_withCredentials_=H);A.state_="Start";return A};var r6=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(r6,_.C8);_.V=r6.prototype;_.V.getEnableSsEngine=function(){return _.pl(this,2)};
_.V.getEnableAwr=function(){return _.pl(this,3)};
_.V.getAlohaAutoGaRollout=function(){return _.pl(this,5)};
_.V.getEnableConfigurator=function(){return _.pl(this,6)};
_.V.getEnableMweb=function(){return _.pl(this,7)};
var $Bu=function(){var N=cLy();return _.hH(N,7,!0)};
r6.prototype.getEnableCtlConsentCheckbox=function(){return _.pl(this,8)};
r6.prototype.getEnableIframe=function(){return _.pl(this,9)};
var cLy=function(){var N=new r6;N=_.hH(N,5,!0);N=_.hH(N,2,!0);N=_.hH(N,4,!1);N=_.hH(N,8,!0);return _.hH(N,9,!0)};
r6.prototype.getEnableScreenshotNudge=function(){return _.pl(this,10)};
var jBu=function(){var N=$Bu();return _.hH(N,10,!0)};
r6.prototype.getEnableWebStartupConfigEndpoint=function(){return _.pl(this,11)};
r6.prototype.getEnableJunkNudge=function(){return _.pl(this,12)};
var Ebx=function(){var N=jBu();return _.hH(N,12,!0)};
_.V=r6.prototype;_.V.getEnableConfiguratorLocale=function(){return _.pl(this,13)};
_.V.getEnableTinyNoPointer=function(){return _.pl(this,14)};
_.V.getEnableSupportSessionLogging=function(){return _.pl(this,15)};
_.V.getEnableFileUploadForScreenshot=function(){return _.pl(this,16)};
_.V.getEnableDirectDeflectionForSingleCategory=function(){return _.pl(this,17)};
_.V.getEnableImageSanitization=function(){return _.pl(this,18)};
_.V.getEnableAlohaBinarySplit=function(){return _.pl(this,19)};
_.V.getEnableDbFeedbackIntents=function(){return _.pl(this,20)};
_.V.getEnableMarkMandatoryFieldsWithRequired=function(){return _.pl(this,21)};
_.V.getEnableFeedbackCategoryCustomUi=function(){return _.pl(this,22)};
_.V.getEnableRealtimeCtl=function(){return _.pl(this,23)};var m_g=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(m_g,_.C8);var YTy=[/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 THp="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 wnx=_.mp(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ep4=_.mp(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var uO=function(){var N=Error.call(this,"Form is either loading or already opened");this.message=N.message;"stack"in N&&(this.stack=N.stack);this.name="DuplicateFormError"};
_.p(uO,Error);var Xnl,qTG,x_l,fg4;var I$,igR;
I$=function(N,t,O){N.timeOfStartCall=(new Date).getTime();var H=O||_.H4,A=H.document,Z=N.nonce||_.H6(H.document);Z&&!N.nonce&&(N.nonce=Z);if(N.flow=="help"){var U=_.s2("document.location.href",H);!N.helpCenterContext&&U&&(N.helpCenterContext=U.substring(0,1200));U=!0;if(t&&JSON&&JSON.stringify){var C=JSON.stringify(t);(U=C.length<=1200)&&(N.psdJson=C)}U||(t={invalidPsd:!0})}t=[N,t,O];H.GOOGLE_FEEDBACK_START_ARGUMENTS=t;O=N.feedbackServerUri||"//www.google.com/tools/feedback";if(U=H.GOOGLE_FEEDBACK_START)U.apply(H,t);
else{H=O+"/load.js?";for(var F in N)t=N[F],t==null||_.mG(t)||(H+=encodeURIComponent(F)+"="+encodeURIComponent(t)+"&");N=eu(A).createElement("SCRIPT");Z&&N.setAttribute("nonce",Z);_.UG(N,_.wD(H));A.body.appendChild(N)}};
igR=function(N,t,O,H){var A,Z;return _.K(function(U){A=O||_.H4;var C=N.serverEnvironment==="DEV",F=O||_.H4;F=N.nonce||_.H6(F.document);C={integrationKeys:{productId:N.productId,feedbackBucket:N.bucket,triggerId:N.triggerId},callbacks:{onClose:N.callback,onLoad:N.onLoadCallback},formContent:{locale:N.locale,disableScreenshot:N.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:N.abuseLink,additionalDataConsent:N.additionalDataConsent},initializationData:{isLocalServer:C,nonce:F,useNightlyRelease:C,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:N.feedbackServerUri,colorScheme:N.colorScheme},extraData:{productVersion:N.productVersion,authUser:N.authuser,configuratorId:N.configuratorId,customZIndex:N.customZIndex,tinyNoPointer:N.tinyNoPointer,
allowNonLoggedInFeedback:N.allowNonLoggedInFeedback,enableAnonymousFeedback:N.enableAnonymousFeedback}};t&&(F=new Map(Object.entries(t)),C.extraData.productSpecificData=F);Z=C;return U.yield(Igp(Z,H,A),0)})};
_.upX=function(N,t,O){try{if(N.flow==="help"){var H=N.helpCenterPath.replace(/^\//,"");_.OG(O||window,"https://support.google.com/"+H)}else N.flow==="submit"?I$(N,t,O):Gcl(N.productId,N.feedbackServerUri).then(function(A){A=_.Sg(A,r6,1);var Z=!GMR||(A==null?void 0:A.getEnableMweb()),U=!N.tinyNoPointer||(A==null?void 0:A.getEnableTinyNoPointer());!A||A.getAlohaAutoGaRollout()&&Z&&U?igR(N,t,O,A).catch(function(C){!C||C instanceof uO||I$(N,t,O)}):I$(N,t,O)},function(A){!A||A instanceof uO||I$(N,t,O)})}catch(A){igR(N,
t,O,null).catch(function(Z){!Z||Z instanceof uO||I$(N,t,O)})}};
_.Ba("userfeedback.api.startFeedback",_.upX);var Rpy=/https?:\/\/\S+\.\S+/,vbg=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],JAS=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var kfS=function(N){var t=N.split(""),O=[-263237435,15,t,function(H,A,Z){var U=A.length;Z.forEach(function(C,F,g){this.push(g[F]=A[(A.indexOf(C)-A.indexOf(this[F])+F+U--)%A.length])},H.split(""))},
function(H,A){H=(H%A.length+A.length)%A.length;A.splice(-H).reverse().forEach(function(Z){A.unshift(Z)})},
"response",function(){for(var H=64,A=[];++H-A.length-32;){switch(H){case 58:H-=14;case 91:case 92:case 93:continue;case 123:H=47;case 94:case 95:case 96:continue;case 46:H=95}A.push(String.fromCharCode(H))}return A},
null,12,1540023973,65941107,null,t,function(H,A){for(H=(H%A.length+A.length)%A.length;H--;)A.unshift(A.pop())},
695603893,function(H){for(var A=H.length;A;)H.push(H.splice(--A,1)[0])},
"'[;'[(",function(H,A){H.push(A)},
null,function(H,A,Z,U,C){return A(Z,U,C)},
"continuation",t,function(H,A){if(H.length!=0){A=(A%H.length+H.length)%H.length;var Z=H[0];H[0]=H[A];H[A]=Z}},
function(){for(var H=64,A=[];++H-A.length-32;){switch(H){case 91:H=44;continue;case 123:H=65;break;case 65:H-=18;continue;case 58:H=96;continue;case 46:H=95}A.push(String.fromCharCode(H))}return A},
'"),/]];'];O[7]=O;O[11]=O;O[18]=O;try{(((0,O[15])(O[21]),O[22])(O[11],O[9]),O[22])(O[new Date("1970-01-01T04:30:12.000+04:30")/1E3],O[1]),((0,O[22])(O[11],O[23]),O[4])(O[10],O[18]),(0,O[20])(O[21],O[14])<<(0,O[17])(O[18],O[1]),(0,O[4])(O[8],O[21]),(0,O[19])((0,O[19])((0,O[17])(O[7],O[9]),O[3],O[20],(0,O[6])(),O[2]),O[3],O[5],(0,O[15])(),O[2])}catch(H){return"aTlOUOubTO4AP____8P_"+N}return t.join("")};_.Sta=new _.Fp("runAttestationCommand");var h2Z=new _.Fp("verifyCommand");_.ue=new _.Fp("accessibilityContext");var M8p=new _.Fp("accessibilityData");var bgy=new _.Fp("profileCardCommand");var Lkl=new _.Fp("signInEndpoint");var pqN=new _.Fp("signOutEndpoint");var LjE;_.pSZ=new _.Fp("accountItemSectionRenderer");LjE=new _.Fp("accountItemRenderer");_.z2a=new _.Fp("saveCommandToSessionStorageAction");var Ytf=new _.Fp("crossAccountChannelTransferEndpoint");var i4y=new _.Fp("getAccountMenuEndpoint");_.uDQ=new _.Fp("getAccountSwitcherEndpoint");var jYp=new _.Fp("getAccountsListEndpoint");var aXQ=new _.Fp("getAccountsListInnertubeEndpoint");_.Tkp=new _.Fp("addToToastAction");var wSE=new _.Fp("hideEnclosingAction");_.lK=new _.Fp("replaceEnclosingAction");var e2_=new _.Fp("buttonRefreshAction");var PnY=new _.Fp("adsControlFlowOpportunityReceivedCommand");var XSB=new _.Fp("openAdAllowlistInstructionCommand");var xBB=new _.Fp("videoMastheadAdPrimaryVideoRenderer");var k4X=new _.Fp("displayAdRenderer");_.qtS=new _.Fp("inFeedAdLayoutRenderer");var fXX=new _.Fp("sequenceItemInPlayerAdLayoutRenderer");_.nkf=new _.Fp("adSlotRenderer");var Wj0=new _.Fp("adAvatarViewModel");var rLp=new _.Fp("adBadgeViewModel");var IXY=new _.Fp("adButtonViewModel");var lXf=new _.Fp("adImageViewModel");var rEG=new _.Fp("reelsAdCardButtonedViewModel");var QBf=new _.Fp("reelsPlayerOverlayLayoutViewModel");var mBS=new _.Fp("formDataDecoratorCommand");var EkR=new _.Fp("updateConversationIdCommand");var G4Z=new _.Fp("showSchedulingPanelCommand");var R2p=new _.Fp("backstageCommentsRenderer");var vkp=new _.Fp("backstageImageRenderer");var JLp=new _.Fp("backstagePostRenderer");var okX=new _.Fp("backstageZeroStateRenderer");var sB_=new _.Fp("postRenderer");var NHQ=new _.Fp("sharedPostRenderer");var te0=new _.Fp("createBackstagePostEndpoint");var Opy=new _.Fp("getPostVideoPreviewEndpoint");var Hpu=new _.Fp("updateBackstagePostEndpoint");var AAZ=new _.Fp("filterChipTransformCommand");var ZpR=new _.Fp("insertRichSectionCommand");var $5t=new _.Fp("talkToRecsDeselectCommand");var Vep=new _.Fp("talkToRecsNextCommand");var cQO=new _.Fp("talkToRecsSelectCommand");var rpN=new _.Fp("talkToRecsUpdateTextCommand");_.yE=new _.Fp("browseEndpoint");_.D_p=new _.Fp("confirmDialogEndpoint");var U__=new _.Fp("expandOnHoverCardRenderer");var CrS=new _.Fp("lumiereShelfDetailsRenderer");var KCY=new _.Fp("revealBusinessEmailCommand");var FCy=new _.Fp("validateChannelHandleCommand");var d_a=new _.Fp("channelCreationFormEndpoint");var gbE=new _.Fp("aboutChannelViewModel");var yAY=new _.Fp("channelThumbnailWithLinkRenderer");var BHB=new _.Fp("channelCreationServiceEndpoint");var cAE=new _.Fp("updateChannelPageSettingsEndpoint");var QX=function(N){this.delegate=N},mV=function(){QX.apply(this,arguments)};
_.p(mV,QX);_.cv.Object.defineProperties(mV.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(N){this.delegate.entityMetadata=N}}});var $_a=function(){mV.apply(this,arguments)};
_.p($_a,mV);$_a.prototype.getAssociations=function(){return[]};
$_a.prototype.getTypeName=function(){return"channelHandle"};var SVp=new _.Fp("webThumbnailDetailsExtensionData");_.ep=new _.Fp("commandContext");var j3f=new _.Fp("addVideoLinkAction");var ipf=new _.Fp("banAuthorAction");var uIB=new _.Fp("createCommentAction");var STf=new _.Fp("createCommentReplyAction");var hpZ=new _.Fp("createPollAction");var MeE=new _.Fp("hideIdentityChipAction");var bpa=new _.Fp("openUpdateCommentDialogAction");var pn_=new _.Fp("pinCommentAction");var LCp=new _.Fp("removeCommentAction");var zpu=new _.Fp("unpinCommentAction");var Ek=new _.Fp("updateBackstagePollAction");var YTE=new _.Fp("updateCommentVoteAction");var agX=new _.Fp("commentThreadRenderer");var THY=function(){mV.apply(this,arguments)};
_.p(THY,mV);THY.prototype.getAssociations=function(){return[]};
THY.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var wnX=function(){mV.apply(this,arguments)};
_.p(wnX,mV);wnX.prototype.getAssociations=function(){return[]};
wnX.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.ep0=new _.Fp("commentDialogRenderer");var Pru=new _.Fp("reloadCommentsCommand");var XnQ=new _.Fp("updateCommentsSettingsEndpoint");var x_Q=new _.Fp("commentViewModel");var kcB=new _.Fp("triStateButtonViewModel");var qTZ=new _.Fp("voiceReplyContainerViewModel");_.Ab=new _.Fp("commandExecutorCommand");var YJ=new _.Fp("emoji");var fg0=new _.Fp("updateCreatorChannelInnertubeCommand");_.nb_=new _.Fp("appendContinuationItemsAction");_.WCY=new _.Fp("changeEngagementPanelVisibilityAction");_.PH=new _.Fp("continuationCommand");var rAS=new _.Fp("hideReportedCommentAction");var IgY=new _.Fp("listMutationCommand");_.GL=new _.Fp("openPopupAction");var lgS=new _.Fp("persistSubscriptionsDisplayPreferencesCommand");var ob_;_.Q3Y=new _.Fp("playlistRemoveVideosAction");_.m_u=new _.Fp("updatePlaylistAction");_.EbX=new _.Fp("addToPlaylistCommand");_.GcQ=new _.Fp("endPlaylistCommand");_.RpE=new _.Fp("recoverPlaylistCommand");_.vbu=new _.Fp("refreshPlaylistCommand");_.JAp=new _.Fp("refreshFormCommand");ob_=new _.Fp("openOnePickAddVideoModalCommand");_.Lxz=new _.Fp("reloadContinuationItemsCommand");_.s3R=new _.Fp("scrollToEngagementPanelCommand");var NAX=new _.Fp("selectCountryCommand");var t6Q=new _.Fp("showReloadUiCommand");var O7Y=new _.Fp("undoFeedbackAction");var H7r=new _.Fp("updateButtonAction");var AVS=new _.Fp("updateSubscribeButtonAction");var Z7E=new _.Fp("updateToggleAction");var V6f=new _.Fp("webNativeShareCommand");_.Da=new _.Fp("webCommandMetadata");_.R$=new _.Fp("webHandleServiceEndpointExtension");var yKl=new _.Fp("webNavigationEndpointData");var DjX=new _.Fp("backgroundAudioPlaybackCommand");var Ujp=new _.Fp("copyLinkCommand");var CDf=new _.Fp("playlistVotingRefreshPopupCommand");var KTy=new _.Fp("selectChipCommand");var FTR=new _.Fp("setCookieCommand");var djf=new _.Fp("setLocalStorageCommand");var gcR=new _.Fp("setPrefStorageEntryCommand");var $j0;_.yVR=new _.Fp("settingsUpdateCheckboxCommand");_.BAE=new _.Fp("settingsUpdateTextCommand");_.cVf=new _.Fp("settingsUpdateOptionsCommand");$j0=new _.Fp("settingsUpdateSwitchCommand");_.jva=new _.Fp("settingsUpdateConnectedAppRendererCommand");var i7Q=new _.Fp("showCreatorChatbotEngagementPanelCommand");var unE=new _.Fp("updateTextInputFormFieldRendererCommand");var SbY=new _.Fp("updateToggleButtonStateCommand");var h8a=new _.Fp("updateUrlParamCommand");var M6E=new _.Fp("webSubmitFormCommand");var b7y=new _.Fp("channelSwitcherPageRenderer"),pba=new _.Fp("updateChannelSwitcherPageAction");_.vy=new _.Fp("continuationItemRenderer");_.Jx=new _.Fp("richItemRenderer");var LTS=new _.Fp("richSectionRenderer");_.z8X=new _.Fp("richShelfRenderer");_.YbX=new _.Fp("metadataBadgeRenderer");_.aia=new _.Fp("multiPageMenuNotificationSectionRenderer");_.TAY=new _.Fp("playlistLoopButtonStateRenderer");var wbZ=new _.Fp("claimLegacyYoutubeChannelEndpoint");var e8p=new _.Fp("getNotificationMenuEndpoint");var PDy=new _.Fp("getSearchInVideoCommand");_.XbB=new _.Fp("getTranscriptEndpoint");_.VZ=new _.Fp("signalServiceEndpoint");var xjr=new _.Fp("verifyAgeEndpoint");var nRN=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(nRN,_.C8);nRN.prototype.getPath=function(){return _.YD(this,1)};
nRN.prototype.getValue=function(){return _.YD(this,2)};var kGB=[0,_.oG,-1];var qbQ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(qbQ,_.C8);var fMp=_.u9(qbQ,[0,_.tC,kGB]);var fi_=new _.Fp("dismissalEndpoint");var ncr=new _.Fp("elementsCommand");_.Tb=new _.Fp("innertubeCommand");var WTB=new _.Fp("multipleInlinePlaybackCommand");var oNz=new _.Fp("loggingDirectives");var rVp=new _.Fp("acknowledgeChannelTouStrikeCommand");var IiS=function(){mV.apply(this,arguments)};
_.p(IiS,mV);IiS.prototype.getAssociations=function(){return[]};
IiS.prototype.getTypeName=function(){return"booleanEntity"};var li0=function(){mV.apply(this,arguments)};
_.p(li0,mV);li0.prototype.getAssociations=function(){return[]};
li0.prototype.getTypeName=function(){return"stringEntity"};var mB=new _.Fp("entityBatchUpdate");_.Qvu=new _.Fp("entityUpdateCommand");var mjR=function(){mV.apply(this,arguments)};
_.p(mjR,mV);mjR.prototype.getAssociations=function(){var N=[];this.delegate.alternateChannel&&N.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&N.push.apply(N,_.W6(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&N.push(this.delegate.oneofChannelEntity);return[].concat(_.W6(new Set(N)))};
mjR.prototype.getTypeName=function(){return"fakeChannel"};var Eca=function(){mV.apply(this,arguments)};
_.p(Eca,mV);Eca.prototype.getAssociations=function(){var N=[];this.delegate.entryCollection&&N.push(this.delegate.entryCollection);return[].concat(_.W6(new Set(N)))};
Eca.prototype.getTypeName=function(){return"fakePlaylist"};
var GG_=function(){mV.apply(this,arguments)};
_.p(GG_,mV);GG_.prototype.getAssociations=function(){var N=[];this.delegate.parentPlaylist&&N.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var t=_.D(this.delegate.entries),O=t.next();!O.done;O=t.next())N.push.apply(N,_.W6((new R8Q(O.value)).getAssociations()));return[].concat(_.W6(new Set(N)))};
GG_.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var R8Q=function(){QX.apply(this,arguments)};
_.p(R8Q,QX);R8Q.prototype.getAssociations=function(){var N=[];this.delegate.video&&N.push(this.delegate.video);return[].concat(_.W6(new Set(N)))};var vcZ=function(){mV.apply(this,arguments)};
_.p(vcZ,mV);vcZ.prototype.getAssociations=function(){var N=[];this.delegate.descriptionEntity&&N.push(this.delegate.descriptionEntity);this.delegate.creators&&N.push.apply(N,_.W6(this.delegate.creators));this.delegate.theBiggestFan&&N.push(this.delegate.theBiggestFan);return[].concat(_.W6(new Set(N)))};
vcZ.prototype.getTypeName=function(){return"fakeVideo"};
var JVp=function(){mV.apply(this,arguments)};
_.p(JVp,mV);JVp.prototype.getAssociations=function(){return[]};
JVp.prototype.getTypeName=function(){return"fakeVideoDescription"};var ocE=new _.Fp("fantasyRosterViewModel");var svX=new _.Fp("addFollowUpSurveyCommand");var N6p=new _.Fp("getSurveyCommand");var tfy=new _.Fp("ratingSurveyOptionRenderer");_.wP=new _.Fp("feedbackEndpoint");var Oey=new _.Fp("reportHistoryTableCellRenderer"),HeE=new _.Fp("reportHistoryTableTextCellRenderer"),AxE=new _.Fp("reportHistoryTableReasonCellRenderer");_.Zep=new _.Fp("flagEndpoint");var Vfu=new _.Fp("deleteFlowStepsCommand");_.DSy=new _.Fp("flowNextStepCommand");_.USB=new _.Fp("flowPrevStepCommand");var CKE=new _.Fp("getFlowCommand");var KVr=new _.Fp("submitFormWithValidationFlowCommand");_.FVE=new _.Fp("updateFlowCommand");var dSR=function(){mV.apply(this,arguments)};
_.p(dSR,mV);dSR.prototype.getAssociations=function(){return[]};
dSR.prototype.getTypeName=function(){return"flowStateEntity"};var gsZ=new _.Fp("flowFormState");_.o$=new _.Fp("flowStepRenderer");var yxB=new _.Fp("gameCardRenderer");var B6B=new _.Fp("accountLinkingStateChangedCommand");var cxa=function(){mV.apply(this,arguments)};
_.p(cxa,mV);cxa.prototype.getAssociations=function(){return[]};
cxa.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var $SQ=new _.Fp("changeMiniAppPlayStateCommand");var j$_=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(j$_,_.C8);var sk=[1,2,3];var iey=[0,sk,Yxf,_.NO,ufa];var u6Z=_.u9(j$_,iey),SkR=_.Ss(iey);var h$Z=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(h$Z,_.C8);var Mfy=[0,_.lC,_.oG];var bef=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(bef,_.C8);var p8p=[0,_.oG,_.lC,-1];var Nc=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Nc,_.C8);var LVB=_.Ss([0,1,Mfy,_.Zb,p8p]);var z$Z=new _.Fp("miniAppScoreChallengeViewModel");var YkZ=new _.Fp("miniGameCardViewModel");var acQ=new _.Fp("teaserCardViewModel");var T6Y=function(){mV.apply(this,arguments)};
_.p(T6Y,mV);T6Y.prototype.getAssociations=function(){return[]};
T6Y.prototype.getTypeName=function(){return"logoEntity"};var w8Q=new _.Fp("feedbackItemRenderer");var e$_=function(){mV.apply(this,arguments)};
_.p(e$_,mV);e$_.prototype.getAssociations=function(){return[]};
e$_.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.PKX=new _.Fp("playerInterstitialRenderer");var X8X=new _.Fp("getKidsBlocklistPickerCommand");_.xSE=new _.Fp("updateKidsBlacklistEndpoint");_.xg=new _.Fp("likeEndpoint");var kLQ,qkf,fcR;kLQ=new _.Fp("addChatItemAction");qkf=new _.Fp("removeChatItemAction");fcR=new _.Fp("markChatItemAsDeletedAction");_.nsS=new _.Fp("setLiveChatCollapsedStateAction");var WVf=function(){mV.apply(this,arguments)};
_.p(WVf,mV);WVf.prototype.getAssociations=function(){return[]};
WVf.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var rxX=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(rxX,_.C8);rxX.prototype.getPayloadCase=function(){return _.S0(this,Icu)};
var Icu=[3,4];var lcf=[0,_.tC,[0,[1,2],_.NO,_.Ow,[0,_.sd,1,_.sd]]];var Q$X=[0,_.oG,-1];var mSy=[0,[1],_.NO];var tc=[0,[1,2],_.NO,_.Ow,[0,_.Zb]];var On=[0,_.oG];var Es0=[0,[0,_.vU,_.RG,[0,_.sd,_.VA,_.sd]],1,[0,_.vU]];var GLR=[0,Ed];var R$Q=[0,Ed];var vsr=[0,R$Q,GLR];var JxS=[0,_.tC,[0,[1,2],_.NO,-1],_.vU];var osu=[0,[2],1,_.Ow,[0,_.sd,-1,JxS]];var s$X=[0,[1],_.Ow,[0,_.sd,_.oG,_.VA,1,JxS]];var N_B=[0,_.RG,-1,inp,_.Zb];var t7Z=[0,[0,IG,-3],-4];var Hs=[0,_.vU,-3,_.oG,_.vU,_.CV,_.vU,lcf,_.vU,-2];var Ac=[0,_.tC,[0,[1,2],_.NO,-1],_.vU,_.oG];var OYr=[0,[3],tc,[0,[2,3,4],P1_,_.NO,-2],_.Ow,[0,_.oG],_.lC];var HY_=[0,[3,5],_.oG,_.Gl,_.Ow,[0,1,_.lC,_.Zb],_.Zb,_.Ow,[0,_.Zb,_.lC]];var Ac0=[0,2,_.Gl,_.oG,-1];var ZYQ=[0,L5Z];var V7Z=[0,[3,4],2,h5r,_.NO,_.oG];var DcY=[0,_.Zb,-2,1,_.oG];var Ucu=[0,_.oG,-1,_.Zb];var CAS=[0,On,function(){return Zh},
On,_.oG],KX0=[0,_.Zb,On,tc,function(){return Zh},
_.oG],Zh=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],On,_.Gl,[0,_.vU,1,_.vU,1,_.vU,1,_.Zb,-1,On],[0,1,_.vU,2,_.vU,_.Zb,_.vU],1,_.Gl,-1,_.oG,_.Gl,2,IG,[0,IG,_.Gl],_.oG,1,Es0,1,tc,_.CV,1,[0,[0,_.tC,[0,_.oG,_.vU,_.Zb]]],[0,_.vU,[0,_.lC,[0,_.VA]],_.lC,1,[0,bnX,-1]],_.oG,[0,1,_.oG],76,_.Ow,[0,tc,Ac,Es0,1,[0,_.tC,Ac]],1,_.Ow,[0,tc,_.oG,_.vU],
_.Ow,[0,tc,mSy],_.Ow,[0,tc,mSy,_.Gl],_.Ow,[0,tc,mSy],_.Ow,[0,tc,_.tC,On,tc,azQ],_.Ow,[0,tc,On,_.oG],_.Ow,[0,tc,_.vU,Hs,-1,_.vU],4,_.Ow,[0,tc,_.vU,_.Gl,Hs,_.vU],_.Ow,[0,[4,9],tc,_.Zb,_.Gl,_.NO,Ac,1,Es0,_.oG,_.NO,DcY],_.Ow,[0,tc,On,tc,_.Zb,_.oG],_.Ow,[0,_.vU,tc,Hs,_.vU,_.oG],_.Ow,[0,tc,On,tc,_.Zb,_.oG],1,_.Ow,[0,tc,_.Zb,_.oG,Hs],_.Ow,[0,tc,_.Zb,[0,_.oG,_.Gl],_.oG,_.Gl,_.oG,_.AC,-2,3,Ucu,_.tC,Ucu,Ucu,DcY],_.Ow,[0,tc,_.Zb,s$X,_.tC,[0,R$Q,osu],On,_.tC,vsr,_.oG,1,_.Zb,N_B,t7Z,j1u,-1],_.Ow,[0,tc,[0,_.VA,
-1,s$X,_.tC,[0,R$Q,osu,GLR],[0,_.KV],1,_.sd],On,_.oG],_.Ow,[0,tc,Ac,_.oG,[0,_.RG]],_.Ow,function(){return KX0},
_.Ow,[0,tc,_.Gl,_.oG,-1,_.vU],_.Ow,[0,[6,7],tc,_.tC,Ac0,_.Zb,Ac,1,_.Ow,V7Z,_.Ow,ZYQ],_.Ow,[0,_.tC,Ac0,_.Zb,_.vU],_.Ow,[0,_.oG,YvR,-1],_.Ow,[0,On,_.tC,vsr,_.oG],_.Ow,[0,tc,On,_.oG],_.Ow,[0,_.AC,_.oG],_.Ow,[0,Q$X],_.Ow,[0,Q$X],_.Ow,[0,Ac],_.Ow,[0,On,Ac],_.Ow,function(){return CAS},
_.Ow,[0,On,_.oG],_.Ow,[0,On,_.oG],1,_.Ow,[0,_.vU,tc,Hs,_.vU,Hs],_.Ow,[0,_.KV],1,_.Ow,[0],1,_.Ow,[0,On,_.Zb,tc,_.Zb],_.Ow,[0,[1,2],_.Ow,V7Z,_.Ow,ZYQ,_.Gl],_.Ow,[0,_.KV,Ac,HY_,_.oG,_.Gl],_.Ow,[0,HY_,_.oG,_.Gl],_.Ow,[0,N_B,Ac,_.vU,t7Z],_.Ow,OYr,_.Ow,[0],_.Ow,[0,_.oG,-1,_.lC],_.Ow,[0,On,_.oG],_.Ow,[0,OYr,_.lC,_.oG],_.Ow,[0,tc,Hs,_.vU],_.Ow,[0,tc,Hs,_.vU],_.Ow,[0,N_B,t7Z,Ac,_.CV,_.vU,j1u,-1],_.Ow,[0,tc,Hs,_.vU]];var FXX=[0,_.tC,Zh];var dcR=_.u9(rxX,[0,Icu,1,_.lC,_.Ow,[0,[18,22,24],FXX,3,[0,FXX],1,_.lC,[0,_.tC,[0,_.Gl,IG],_.Gl],1,Zh,-1,[0,_.Jw,-2,_.CV,_.Jw,-1,_.CV,_.Jw,lcf,_.Jw,-2],cmS,[!0,_.oG,[0,mSy,2,_.oG,_.Gl,_.vU,2,_.oG,_.AC]],[0,[1,2,3],[5,6],_.Ow,[0,_.sd],_.Ow,[0,_.sd,-1],_.Ow,[0,_.sd],1,_.Ow,Q$X,_.Ow,[0,_.oG]],[0,Zh,-1],_.KV,Zh,_.Ow,Zh,[0,FXX],_.lC,Zh,_.Ow,Zh,_.oG,_.Ow,Zh],_.Ow,Gbu,_.lC]);var g9u=new _.Fp("liveChatEndpoint");var ycX=new _.Fp("liveChatItemContextMenuEndpoint");var B_Q=new _.Fp("liveChatReplayEndpoint");_.cc0=new _.Fp("emojiPickerRenderer");var $c_=new _.Fp("liveChatAuthorBadgeViewModel");var jyS=new _.Fp("deleteLiveChatMessageCommand");var iY0=new _.Fp("liveChatActionEndpoint");var uLX=new _.Fp("createLiveChatPollEndpoint");var Snr=new _.Fp("manageLiveChatUserEndpoint");var hRr=new _.Fp("moderateLiveChatEndpoint");_.M7R=new _.Fp("sendLiveChatMessageEndpoint");var bYf=new _.Fp("sendLiveChatVoteEndpoint");var psf=new _.Fp("clearLocationCommand");var LXf=new _.Fp("resolveLocationCommand");var zRX=new _.Fp("interactionLoggingCommandMetadata");var Yna=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Yna,_.C8);var ahX=function(N,t){return _.SR(N,1,t)};var T_Q=[0,_.vU];var wsu=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(wsu,_.C8);var eR0=function(N,t){return XW(N,1,Yna,t)};wsu.prototype.JSC$12473_serializeBinary=EwM([0,_.tC,T_Q]);var i7l={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 PAa={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"},
Xsy={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 tEQ={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.fOx=new _.Fp("logFlowLoggingEventCommand");_.BV=new _.Fp("loggingContext");var xcS=new _.Fp("audioTrackSelectActionCommand");var kau=new _.Fp("captionLanguageSelectActionCommand");var qnu=new _.Fp("showAudioTrackPickerActionCommand");var fh0=new _.Fp("showCaptionLanguageSelectActionCommand");var n9p=new _.Fp("dismissDialogEndpoint");var WXB=new _.Fp("dismissPlayerOverlayCommand");var rcX=new _.Fp("hideItemSectionVideosByIdCommand");var IhZ=new _.Fp("showMiniplayerCommand");var lhf=function(){mV.apply(this,arguments)};
_.p(lhf,mV);lhf.prototype.getAssociations=function(){return[]};
lhf.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var QyE=function(){mV.apply(this,arguments)};
_.p(QyE,mV);QyE.prototype.getAssociations=function(){return[]};
QyE.prototype.getTypeName=function(){return"downloadStatusEntity"};var mcf=function(){mV.apply(this,arguments)};
_.p(mcf,mV);mcf.prototype.getAssociations=function(){return[]};
mcf.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var E9S=function(){mV.apply(this,arguments)};
_.p(E9S,mV);E9S.prototype.getAssociations=function(){var N=[];this.delegate.downloadsList&&N.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&N.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&N.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&N.push(this.delegate.refresh);return[].concat(_.W6(new Set(N)))};
E9S.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var GaE=function(){mV.apply(this,arguments)};
_.p(GaE,mV);GaE.prototype.getAssociations=function(){var N=[];this.delegate.refresh&&N.push(this.delegate.refresh);if(this.delegate.downloads)for(var t=_.D(this.delegate.downloads),O=t.next();!O.done;O=t.next())N.push.apply(N,_.W6((new RRf(O.value)).getAssociations()));return[].concat(_.W6(new Set(N)))};
GaE.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var RRf=function(){QX.apply(this,arguments)};
_.p(RRf,QX);RRf.prototype.getAssociations=function(){var N=[];this.delegate.video&&N.push(this.delegate.video);this.delegate.playlist&&N.push(this.delegate.playlist);this.delegate.videoItem&&N.push(this.delegate.videoItem);this.delegate.playlistItem&&N.push(this.delegate.playlistItem);return[].concat(_.W6(new Set(N)))};var v9X=function(){mV.apply(this,arguments)};
_.p(v9X,mV);v9X.prototype.getAssociations=function(){var N=[];this.delegate.localImageEntities&&N.push.apply(N,_.W6(this.delegate.localImageEntities));return[].concat(_.W6(new Set(N)))};
v9X.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var JcS=function(){mV.apply(this,arguments)};
_.p(JcS,mV);JcS.prototype.getAssociations=function(){var N=[];this.delegate.playbackData&&N.push(this.delegate.playbackData);this.delegate.localImageEntities&&N.push.apply(N,_.W6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&N.push(this.delegate.videoDownloadContextEntity);return[].concat(_.W6(new Set(N)))};
JcS.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var o9r=function(){mV.apply(this,arguments)};
_.p(o9r,mV);o9r.prototype.getAssociations=function(){return[]};
o9r.prototype.getTypeName=function(){return"offlineabilityEntity"};var syf=function(){mV.apply(this,arguments)};
_.p(syf,mV);syf.prototype.getAssociations=function(){var N=[];this.delegate.fakeChildren&&N.push.apply(N,_.W6(this.delegate.fakeChildren));return[].concat(_.W6(new Set(N)))};
syf.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var NyY=function(){mV.apply(this,arguments)};
_.p(NyY,mV);NyY.prototype.getAssociations=function(){var N=[];this.delegate.video&&N.push(this.delegate.video);this.delegate.playbackData&&N.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&N.push(this.delegate.offlineVideoPolicy);return[].concat(_.W6(new Set(N)))};
NyY.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var tiZ=function(){mV.apply(this,arguments)};
_.p(tiZ,mV);tiZ.prototype.getAssociations=function(){return[]};
tiZ.prototype.getTypeName=function(){return"continuationTokenEntity"};var OZr=function(){mV.apply(this,arguments)};
_.p(OZr,mV);OZr.prototype.getAssociations=function(){var N=[];this.delegate.channelOwner&&N.push(this.delegate.channelOwner);this.delegate.videos&&N.push.apply(N,_.W6(this.delegate.videos));this.delegate.collaboratorChannels&&N.push.apply(N,_.W6(this.delegate.collaboratorChannels));this.delegate.downloadState&&N.push(this.delegate.downloadState);this.delegate.refresh&&N.push(this.delegate.refresh);return[].concat(_.W6(new Set(N)))};
OZr.prototype.getTypeName=function(){return"mainPlaylistEntity"};var HZB=function(){mV.apply(this,arguments)};
_.p(HZB,mV);HZB.prototype.getAssociations=function(){var N=[];this.delegate.video&&N.push(this.delegate.video);this.delegate.channelContributor&&N.push(this.delegate.channelContributor);return[].concat(_.W6(new Set(N)))};
HZB.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var A7_=function(){QX.apply(this,arguments)};
_.p(A7_,QX);A7_.prototype.getAssociations=function(){var N=[];this.delegate.recommendedVideoMetadata&&N.push.apply(N,_.W6((new ZZf(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.W6(new Set(N)))};
var ZZf=function(){QX.apply(this,arguments)};
_.p(ZZf,QX);ZZf.prototype.getAssociations=function(){var N=[];this.delegate.localImageEntities&&N.push.apply(N,_.W6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&N.push(this.delegate.videoDownloadContextEntity);return[].concat(_.W6(new Set(N)))};var ViS=function(){QX.apply(this,arguments)};
_.p(ViS,QX);ViS.prototype.getAssociations=function(){var N=[];this.delegate.playbackPosition&&N.push(this.delegate.playbackPosition);return[].concat(_.W6(new Set(N)))};var Daf=function(){mV.apply(this,arguments)};
_.p(Daf,mV);Daf.prototype.getAssociations=function(){var N=[];this.delegate.owner&&N.push(this.delegate.owner);this.delegate.downloadState&&N.push(this.delegate.downloadState);this.delegate.userState&&N.push.apply(N,_.W6((new ViS(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&N.push.apply(N,_.W6((new A7_(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.W6(new Set(N)))};
Daf.prototype.getTypeName=function(){return"mainVideoEntity"};var UaB=function(){mV.apply(this,arguments)};
_.p(UaB,mV);UaB.prototype.getAssociations=function(){var N=[];this.delegate.userChannelDetails&&N.push(this.delegate.userChannelDetails);return[].concat(_.W6(new Set(N)))};
UaB.prototype.getTypeName=function(){return"ytMainChannelEntity"};var CI0=function(){mV.apply(this,arguments)};
_.p(CI0,mV);CI0.prototype.getAssociations=function(){var N=[];this.delegate.channelOwner&&N.push(this.delegate.channelOwner);this.delegate.playbackPosition&&N.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&N.push.apply(N,_.W6(this.delegate.localImageEntities));this.delegate.downloadStatus&&N.push(this.delegate.downloadStatus);return[].concat(_.W6(new Set(N)))};
CI0.prototype.getTypeName=function(){return"ytMainVideoEntity"};var yPv=new _.Fp("downloadsPageSmartDownloadsOptInBannerParams");var jwv=new _.Fp("downloadsPageUpsellBannerParams");var K3E=function(){mV.apply(this,arguments)};
_.p(K3E,mV);K3E.prototype.getAssociations=function(){return[]};
K3E.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var F3S=function(){mV.apply(this,arguments)};
_.p(F3S,mV);F3S.prototype.getAssociations=function(){return[]};
F3S.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var daR=function(){mV.apply(this,arguments)};
_.p(daR,mV);daR.prototype.getAssociations=function(){return[]};
daR.prototype.getTypeName=function(){return"macroMarkerEntity"};var g8E=function(){mV.apply(this,arguments)};
_.p(g8E,mV);g8E.prototype.getAssociations=function(){return[]};
g8E.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var y7u=function(){mV.apply(this,arguments)};
_.p(y7u,mV);y7u.prototype.getAssociations=function(){return[]};
y7u.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var Byu=function(){mV.apply(this,arguments)};
_.p(Byu,mV);Byu.prototype.getAssociations=function(){return[]};
Byu.prototype.getTypeName=function(){return"playerStateEntity"};var c7f=function(){mV.apply(this,arguments)};
_.p(c7f,mV);c7f.prototype.getAssociations=function(){return[]};
c7f.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var $af=function(){mV.apply(this,arguments)};
_.p($af,mV);$af.prototype.getAssociations=function(){return[]};
$af.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var juZ=function(){mV.apply(this,arguments)};
_.p(juZ,mV);juZ.prototype.getAssociations=function(){return[]};
juZ.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.V2=new _.Fp("dislikeButtonViewModel");_.Dh=new _.Fp("likeButtonViewModel");var iZ_=new _.Fp("videoSummaryContentViewModel");var u9E=new _.Fp("videoSummaryParagraphViewModel");var SrZ=new _.Fp("changeTimelyActionVisibilityCommand");var hJR=new _.Fp("hideEngagementPanelEndpoint");var Miy=new _.Fp("refreshPanelEndpoint");var bZp=new _.Fp("scrollToSectionEndpoint");var pTB=new _.Fp("seekToVideoTimestampCommand");_.Th=new _.Fp("showEngagementPanelEndpoint");var L3_=new _.Fp("showTransientPlayerScrimOverlayCommand");var zJS=new _.Fp("toggleEngagementPanelCommand");_.Yrf=new _.Fp("createBroadcastCommand");var aI0=new _.Fp("metadataUpdateCommand");var Typ=function(){mV.apply(this,arguments)};
_.p(Typ,mV);Typ.prototype.getAssociations=function(){return[]};
Typ.prototype.getTypeName=function(){return"featuredProductsEntity"};var wT_=function(){mV.apply(this,arguments)};
_.p(wT_,mV);wT_.prototype.getAssociations=function(){return[]};
wT_.prototype.getTypeName=function(){return"pinnedProductEntity"};var eJB=function(){mV.apply(this,arguments)};
_.p(eJB,mV);eJB.prototype.getAssociations=function(){return[]};
eJB.prototype.getTypeName=function(){return"trendingOfferEntity"};_.PIQ=new _.Fp("merchandiseShelfRenderer");var XTX=new _.Fp("shoppingContentLineItemViewModel");var xau=new _.Fp("gridMovieRenderer");_.kPf=new _.Fp("movieRenderer");var qrp=function(){mV.apply(this,arguments)};
_.p(qrp,mV);qrp.prototype.getAssociations=function(){return[]};
qrp.prototype.getTypeName=function(){return"compositeSourceEntity"};var fIR=function(){mV.apply(this,arguments)};
_.p(fIR,mV);fIR.prototype.getAssociations=function(){var N=[];this.delegate.compositeSourceKeys&&N.push.apply(N,_.W6(this.delegate.compositeSourceKeys));return[].concat(_.W6(new Set(N)))};
fIR.prototype.getTypeName=function(){return"multiviewStagingEntity"};var n8X=function(){mV.apply(this,arguments)};
_.p(n8X,mV);n8X.prototype.getAssociations=function(){var N=[];this.delegate.trackDownloadMetadatas&&N.push.apply(N,_.W6(this.delegate.trackDownloadMetadatas));return[].concat(_.W6(new Set(N)))};
n8X.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var W30=function(){mV.apply(this,arguments)};
_.p(W30,mV);
W30.prototype.getAssociations=function(){var N=[];this.delegate.downloadedTracks&&N.push.apply(N,_.W6(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&N.push.apply(N,_.W6(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&N.push.apply(N,_.W6(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&N.push.apply(N,_.W6(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&N.push.apply(N,_.W6(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
N.push.apply(N,_.W6(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&N.push.apply(N,_.W6(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&N.push.apply(N,_.W6(this.delegate.metadataOnlyTracks));return[].concat(_.W6(new Set(N)))};
W30.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var r7B=function(){mV.apply(this,arguments)};
_.p(r7B,mV);r7B.prototype.getAssociations=function(){var N=[];this.delegate.trackDownloadMetadatas&&N.push.apply(N,_.W6(this.delegate.trackDownloadMetadatas));return[].concat(_.W6(new Set(N)))};
r7B.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var IIS=function(){mV.apply(this,arguments)};
_.p(IIS,mV);IIS.prototype.getAssociations=function(){var N=[];this.delegate.playbackData&&N.push(this.delegate.playbackData);this.delegate.localImageEntities&&N.push.apply(N,_.W6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&N.push(this.delegate.videoDownloadContextEntity);return[].concat(_.W6(new Set(N)))};
IIS.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var lIS=function(){mV.apply(this,arguments)};
_.p(lIS,mV);
lIS.prototype.getAssociations=function(){var N=[];this.delegate.musicLibraryStatusEntity&&N.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&N.push.apply(N,_.W6(this.delegate.primaryArtists));this.delegate.details&&N.push(this.delegate.details);this.delegate.userDetails&&N.push(this.delegate.userDetails);this.delegate.tracks&&N.push.apply(N,_.W6(this.delegate.tracks));this.delegate.share&&N.push(this.delegate.share);this.delegate.downloadMetadata&&N.push(this.delegate.downloadMetadata);this.delegate.refresh&&
N.push(this.delegate.refresh);return[].concat(_.W6(new Set(N)))};
lIS.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Qur=function(){mV.apply(this,arguments)};
_.p(Qur,mV);Qur.prototype.getAssociations=function(){var N=[];this.delegate.albumRelease&&N.push(this.delegate.albumRelease);this.delegate.tracks&&N.push.apply(N,_.W6(this.delegate.tracks));return[].concat(_.W6(new Set(N)))};
Qur.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var maE=function(){mV.apply(this,arguments)};
_.p(maE,mV);maE.prototype.getAssociations=function(){var N=[];this.delegate.albumRelease&&N.push(this.delegate.albumRelease);return[].concat(_.W6(new Set(N)))};
maE.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var E8S=function(){mV.apply(this,arguments)};
_.p(E8S,mV);E8S.prototype.getAssociations=function(){var N=[];this.delegate.details&&N.push(this.delegate.details);this.delegate.userDetails&&N.push(this.delegate.userDetails);return[].concat(_.W6(new Set(N)))};
E8S.prototype.getTypeName=function(){return"musicArtist"};
var GPa=function(){mV.apply(this,arguments)};
_.p(GPa,mV);GPa.prototype.getAssociations=function(){var N=[];this.delegate.parentArtist&&N.push(this.delegate.parentArtist);return[].concat(_.W6(new Set(N)))};
GPa.prototype.getTypeName=function(){return"musicArtistDetail"};
var RJQ=function(){mV.apply(this,arguments)};
_.p(RJQ,mV);RJQ.prototype.getAssociations=function(){var N=[];this.delegate.parentArtist&&N.push(this.delegate.parentArtist);return[].concat(_.W6(new Set(N)))};
RJQ.prototype.getTypeName=function(){return"musicArtistUserDetail"};var v80=function(){mV.apply(this,arguments)};
_.p(v80,mV);v80.prototype.getAssociations=function(){return[]};
v80.prototype.getTypeName=function(){return"musicLibraryEdit"};var J7y=function(){mV.apply(this,arguments)};
_.p(J7y,mV);J7y.prototype.getAssociations=function(){return[]};
J7y.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var o8_=function(){mV.apply(this,arguments)};
_.p(o8_,mV);
o8_.prototype.getAssociations=function(){var N=[];this.delegate.tracks&&N.push.apply(N,_.W6(this.delegate.tracks));this.delegate.refresh&&N.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&N.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&N.push(this.delegate.details);this.delegate.downloadMetadata&&N.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&N.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&N.push(this.delegate.userDetails);this.delegate.entryCollection&&
N.push(this.delegate.entryCollection);this.delegate.share&&N.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&N.push.apply(N,_.W6((new suQ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.W6(new Set(N)))};
o8_.prototype.getTypeName=function(){return"musicPlaylist"};
var suQ=function(){QX.apply(this,arguments)};
_.p(suQ,QX);suQ.prototype.getAssociations=function(){var N=[];this.delegate.creatorEntity&&N.push(this.delegate.creatorEntity);return[].concat(_.W6(new Set(N)))};var NdZ=function(){mV.apply(this,arguments)};
_.p(NdZ,mV);NdZ.prototype.getAssociations=function(){return[]};
NdZ.prototype.getTypeName=function(){return"musicShare"};var ttp=function(){mV.apply(this,arguments)};
_.p(ttp,mV);
ttp.prototype.getAssociations=function(){var N=[];this.delegate.musicLibraryStatusEntity&&N.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&N.push.apply(N,_.W6(this.delegate.artists));this.delegate.audioModeVersion&&N.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&N.push(this.delegate.videoModeVersion);this.delegate.userDetails&&N.push(this.delegate.userDetails);this.delegate.details&&N.push(this.delegate.details);this.delegate.albumRelease&&N.push(this.delegate.albumRelease);this.delegate.share&&
N.push(this.delegate.share);this.delegate.libraryEdit&&N.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&N.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&N.push(this.delegate.playbackPosition);this.delegate.lyrics&&N.push(this.delegate.lyrics);return[].concat(_.W6(new Set(N)))};
ttp.prototype.getTypeName=function(){return"musicTrack"};
var OD_=function(){mV.apply(this,arguments)};
_.p(OD_,mV);OD_.prototype.getAssociations=function(){var N=[];this.delegate.parentTrack&&N.push(this.delegate.parentTrack);return[].concat(_.W6(new Set(N)))};
OD_.prototype.getTypeName=function(){return"musicTrackDetail"};
var HDB=function(){mV.apply(this,arguments)};
_.p(HDB,mV);HDB.prototype.getAssociations=function(){var N=[];this.delegate.parentTrack&&N.push(this.delegate.parentTrack);return[].concat(_.W6(new Set(N)))};
HDB.prototype.getTypeName=function(){return"musicTrackUserDetail"};var E9=new _.Fp("musicResponsiveListItemRenderer");var aqx=new _.Fp("addToPlaylistEndpoint");var APX=new _.Fp("captionPickerEndpoint");var ZDa=new _.Fp("suggestStats");var Vty=new _.Fp("backstageImageUploadEndpoint");var DF_=new _.Fp("createBackstagePostDialogEndpoint");_.UFB=new _.Fp("createCommentReplyDialogEndpoint");_.CLy=new _.Fp("updateCommentDialogEndpoint");_.KJ_=new _.Fp("updateCommentReplyDialogEndpoint");var FJp=new _.Fp("menuEndpoint");var FLy=new _.Fp("modalEndpoint");var dFr=new _.Fp("playlistEditorEndpoint");var gOQ=new _.Fp("copyTextEndpoint");var yPr,BdR;yPr=new _.Fp("shareEndpoint");BdR=new _.Fp("shareEntityEndpoint");_.cPS=new _.Fp("shareEntityServiceEndpoint");_.SYS=new _.Fp("userFeedbackEndpoint");_.rN=new _.Fp("watchEndpoint");var NVp=new _.Fp("watchPlaylistEndpoint");var $FX=new _.Fp("addUpcomingEventReminderEndpoint");_.Un=new _.Fp("getCommentsFromInboxCommand");var jwr=new _.Fp("notificationOptOutEndpoint");var iDZ=new _.Fp("recordNotificationInteractionsEndpoint");var u5R=new _.Fp("removeUpcomingEventReminderEndpoint");_.GI=new _.Fp("getDownloadActionCommand");_.SoZ=new _.Fp("offlineOrchestrationActionCommand");var htu=function(){mV.apply(this,arguments)};
_.p(htu,mV);htu.prototype.getAssociations=function(){return[]};
htu.prototype.getTypeName=function(){return"captionTrack"};var MtY=function(){mV.apply(this,arguments)};
_.p(MtY,mV);MtY.prototype.getAssociations=function(){return[]};
MtY.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var bDQ=function(){mV.apply(this,arguments)};
_.p(bDQ,mV);bDQ.prototype.getAssociations=function(){return[]};
bDQ.prototype.getTypeName=function(){return"offlineVideoPolicy"};var pur=function(){mV.apply(this,arguments)};
_.p(pur,mV);pur.prototype.getAssociations=function(){return[]};
pur.prototype.getTypeName=function(){return"offlineVideoStreams"};var LJa=function(){mV.apply(this,arguments)};
_.p(LJa,mV);LJa.prototype.getAssociations=function(){var N=[];this.delegate.transfer&&N.push(this.delegate.transfer);this.delegate.adsPlaybackData&&N.push.apply(N,_.W6(this.delegate.adsPlaybackData));this.delegate.drmLicense&&N.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&N.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&N.push(this.delegate.videoDownloadContextEntity);return[].concat(_.W6(new Set(N)))};
LJa.prototype.getTypeName=function(){return"playbackData"};var zt_=function(){mV.apply(this,arguments)};
_.p(zt_,mV);zt_.prototype.getAssociations=function(){return[]};
zt_.prototype.getTypeName=function(){return"refresh"};var YoQ=function(){mV.apply(this,arguments)};
_.p(YoQ,mV);YoQ.prototype.getAssociations=function(){var N=[];this.delegate.offlineVideoStreams&&N.push.apply(N,_.W6(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&N.push.apply(N,_.W6(this.delegate.captionTrack));return[].concat(_.W6(new Set(N)))};
YoQ.prototype.getTypeName=function(){return"transfer"};var aTX=function(){mV.apply(this,arguments)};
_.p(aTX,mV);aTX.prototype.getAssociations=function(){return[]};
aTX.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Tdr=new _.Fp("showMoreDrawerCommand");var wu_=new _.Fp("updateEngagementPanelContentCommand");var etX=new _.Fp("getPdgBuyFlowCommand");var PLf=new _.Fp("liveChatPurchaseMessageEndpoint");var Xur=new _.Fp("openSuperStickerBuyFlowCommand");var xF_=new _.Fp("updatePdgFeatureEnablementCommand");var k6p=function(){mV.apply(this,arguments)};
_.p(k6p,mV);k6p.prototype.getAssociations=function(){return[]};
k6p.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var qoX=function(){mV.apply(this,arguments)};
_.p(qoX,mV);qoX.prototype.getAssociations=function(){return[]};
qoX.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.fTR=new _.Fp("pdgCommentChipRenderer");_.nOa=new _.Fp("permissionRoleBottomBarRenderer");_.WJZ=new _.Fp("updatePermissionRoleCommand");var rPB=new _.Fp("prefetchWatchCommand");var ITR=new _.Fp("updatePlayerErrorMessageCommand");var Sgx=new _.Fp("toggleCaptionsVisibilityCommand");var lTr=new _.Fp("playerDisclosureViewModel");_.Qwy=new _.Fp("quickActionsViewModel");var mFf=new _.Fp("playerResponse");var EOB=new _.Fp("playlistRenderer");_.G6X=new _.Fp("playlistVideoListRenderer");_.CY=new _.Fp("playlistEditEndpoint");var RtB=new _.Fp("createImagePollCommand");var vOX=new _.Fp("createQuizCommand");var JPa=new _.Fp("quizRenderer");var oO_=new _.Fp("uploadedVideoRenderer");var swy=new _.Fp("decorateMessageEndpoint");var NOX=new _.Fp("lpOfferCardOptionViewModel");var tNr=new _.Fp("sfvAudioItemPlaybackCommand");var OXX=function(){mV.apply(this,arguments)};
_.p(OXX,mV);OXX.prototype.getAssociations=function(){return[]};
OXX.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.KY=new _.Fp("reelNonVideoContentEndpoint");_.jc=new _.Fp("reelWatchEndpoint");_.FL=new _.Fp("reelItemRenderer");var HXX=new _.Fp("reelMetapanelViewModel");_.d_=new _.Fp("reelNonVideoContentRenderer");_.Aif=new _.Fp("reelPlayerOverlayRenderer");var ZXB=new _.Fp("shortsLockupViewModel");var VN0=new _.Fp("sponsorButtonViewModel");var D3Y=new _.Fp("reelItemWatchResponse");var U3R=new _.Fp("textBadgeRenderer");_.g_=new _.Fp("buttonRenderer");_.y2=new _.Fp("toggleButtonRenderer");var PHv=new _.Fp("switchButtonViewModel");_.CWu=new _.Fp("confirmDialogRenderer");var KSY;KSY=new _.Fp("menuRenderer");_.FSX=new _.Fp("menuFlexibleItemRenderer");var d3r=new _.Fp("pollRenderer");_.gn0=new _.Fp("backgroundPromoRenderer");var BOf;_.yiR=new _.Fp("chipCloudRenderer");BOf=new _.Fp("chipCloudChipRenderer");var ciE=new _.Fp("dropdownRenderer");var $3_=new _.Fp("gridVideoRenderer");_.jgB=new _.Fp("itemSectionRenderer");_.iXZ=new _.Fp("messageRenderer");var usZ=new _.Fp("sortFilterHeaderRenderer");_.Bs=new _.Fp("videoRenderer");var Saa=new _.Fp("resolveUrlCommandMetadata");var hHZ=function(){mV.apply(this,arguments)};
_.p(hHZ,mV);hHZ.prototype.getAssociations=function(){return[]};
hHZ.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.MNy=new _.Fp("getAnswerCommand");_.Bi=new _.Fp("searchEndpoint");var bXR=new _.Fp("genAiRichTextViewModel");var zZv=new _.Fp("overviewAnswerViewModel");var pRR=new _.Fp("videoOverviewViewModel");var LSY=new _.Fp("addToPlaylistServiceEndpoint");var zHu=new _.Fp("clearSearchHistoryEndpoint");var YaE=new _.Fp("clearWatchHistoryEndpoint");var adY=new _.Fp("webSerializedServiceEndpointExtension");_.TOp=new _.Fp("createCommentEndpoint");var wRa=new _.Fp("createCommentReplyEndpoint");var eHB=new _.Fp("performCommentActionEndpoint");var PWY=new _.Fp("updateCommentEndpoint");var XRZ=new _.Fp("updateCommentReplyEndpoint");_.cs=new _.Fp("createPlaylistServiceEndpoint");var x3S=new _.Fp("deletePlaylistEndpoint");var kzu=new _.Fp("deleteVideoEndpoint");var Ygv=new _.Fp("getReportFormEndpoint");var qaE=new _.Fp("modifyChannelNotificationPreferenceEndpoint");var nZO;_.Bz=new _.Fp("offlinePlaylistEndpoint");nZO={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 WkN;_.ye=new _.Fp("offlineVideoEndpoint");WkN={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 fdS=new _.Fp("pingingEndpoint");_.nnY=new _.Fp("selectActiveIdentityEndpoint");var WSQ=new _.Fp("setSettingEndpoint");var jTG=new _.Fp("undoFeedbackEndpoint");var riS=new _.Fp("unsubscribeEndpoint");_.IdX=new _.Fp("updatedMetadataEndpoint");var ldS=function(){mV.apply(this,arguments)};
_.p(ldS,mV);ldS.prototype.getAssociations=function(){return[]};
ldS.prototype.getTypeName=function(){return"settingEntity"};_.Qgy=new _.Fp("updateLocalAppSettingCommand");var m3p=new _.Fp("saveImageToDeviceEndpoint");var EnX=new _.Fp("shareImageCommand");var GzB=new _.Fp("sharingProviderDataCommand");var RHu=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(RHu,_.C8);var vna=[0,_.oG,-1];RHu.prototype.JSC$12680_serializeBinary=EwM(vna);var Ji0=_.Ss(vna);var onf=new _.Fp("userMentionSuggestionRenderer");var sgp=new _.Fp("liveChatTunnelCommand");var N4B=new _.Fp("showSponsorshipsGiftOfferDialogCommand");var tL_=new _.Fp("sponsorshipsScrollableShelfViewModel");var OcS=new _.Fp("updateUpcomingEventReminderButtonStateCommand");var HcR=new _.Fp("upcomingEventReminderButtonStateRenderer");var Aka=new _.Fp("subscribeEndpoint");var Zcf=new _.Fp("registerTasksCommand");var VLa=new _.Fp("hideSheetCommand");var DR0=new _.Fp("hideSnackbarCommand");var UR0=new _.Fp("showDialogCommand");_.Sp=new _.Fp("showSheetCommand");var CEa=new _.Fp("showSnackbarCommand");var KO0=function(){mV.apply(this,arguments)};
_.p(KO0,mV);KO0.prototype.getAssociations=function(){return[]};
KO0.prototype.getTypeName=function(){return"chipEntity"};var FOR=function(){mV.apply(this,arguments)};
_.p(FOR,mV);FOR.prototype.getAssociations=function(){return[]};
FOR.prototype.getTypeName=function(){return"dismissState"};_.Pz=new _.Fp("avatarViewModel");var dRr=new _.Fp("badgeViewModel");_.$9=new _.Fp("buttonViewModel");_.j7=new _.Fp("chipViewModel");var DIp=new _.Fp("collectionThumbnailViewModel");var gtr=new _.Fp("contentPreviewImageViewModel");var ykf=new _.Fp("decoratedAvatarViewModel");_.tYg=new _.Fp("engagementBarViewModel");_.B4E=new _.Fp("imageBannerViewModel");var ckr=new _.Fp("lockupContentMetadataRowExtension");_.$Ru=new _.Fp("lockupMetadataViewModel");_.j20=new _.Fp("lockupViewModel");var icf=new _.Fp("avatarStackViewModel");_.u7R=new _.Fp("contentMetadataViewModel");var SeY=function(){mV.apply(this,arguments)};
_.p(SeY,mV);SeY.prototype.getAssociations=function(){return[]};
SeY.prototype.getTypeName=function(){return"pageHeaderEntity"};_.hMy=new _.Fp("pageHeaderViewModel");var MLS=new _.Fp("snackbarViewModel");var bcZ=new _.Fp("thumbnailHoverOverlayToggleActionsViewModel");_.iA=new _.Fp("toggleButtonViewModel");var pFu=function(){mV.apply(this,arguments)};
_.p(pFu,mV);pFu.prototype.getAssociations=function(){return[]};
pFu.prototype.getTypeName=function(){return"votingEntity"};_.OGQ=new _.Fp("votingViewModel");var LOE=new _.Fp("sectionHeaderViewModel");var zMX=new _.Fp("notifyDropdownOptionSelectedCommand");var DxG=new _.Fp("listViewModel");_.h5=new _.Fp("listItemViewModel");var VCx=new _.Fp("toggleableListItemViewModel");var Yeu=new _.Fp("dialogHeaderViewModel");var aUa=function(){mV.apply(this,arguments)};
_.p(aUa,mV);aUa.prototype.getAssociations=function(){return[]};
aUa.prototype.getTypeName=function(){return"dataFreshnessEntity"};var cEt=new _.Fp("suspenseViewModel");var T4X=new _.Fp("tooltipViewModel");var wF0=function(){mV.apply(this,arguments)};
_.p(wF0,mV);wF0.prototype.getAssociations=function(){return[]};
wF0.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var eMf=function(){mV.apply(this,arguments)};
_.p(eMf,mV);eMf.prototype.getAssociations=function(){return[]};
eMf.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var PER=function(){mV.apply(this,arguments)};
_.p(PER,mV);PER.prototype.getAssociations=function(){return[]};
PER.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.XFR=new _.Fp("transcriptSubmitCaptionCorrectionCommand");var xRZ=function(){mV.apply(this,arguments)};
_.p(xRZ,mV);xRZ.prototype.getAssociations=function(){return[]};
xRZ.prototype.getTypeName=function(){return"buttonEntity"};var s9l=new _.Fp("unpluggedStringRunImage");var kdE=new _.Fp("tabViewModel");var qey=new _.Fp("tabbedViewModel");var fUS=function(){mV.apply(this,arguments)};
_.p(fUS,mV);fUS.prototype.getAssociations=function(){return[]};
fUS.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.ntX=new _.Fp("updateDescriptionAction");var WOa=new _.Fp("updateToggleButtonTextAction");var QfY=new _.Fp("showFullscreenPlayerControlsCommand");var m7Q=new _.Fp("updateVideoMetadataCommand");_.Epa=new _.Fp("autoplaySwitchButtonRenderer");var P7;_.GUY=new _.Fp("multiMarkersPlayerBarRenderer");P7=new _.Fp("chapterRenderer");var Rv0=new _.Fp("heatMarkerRenderer");var Tjl=new _.Fp("heatmapRenderer");var vpr=new _.Fp("smartSkipPlayerScrimOverlayRenderer");var J6f=new _.Fp("timedMarkerDecorationRenderer");var WWt=new _.Fp("postWebToNativeMessageCommand");var wv=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(wv,_.C8);wv.prototype.getMethodName=function(){return _.YD(this,1)};var opE=[0,_.oG,-2];wv.prototype.JSC$12702_serializeBinary=EwM(opE);var sfX=_.u9(wv,opE);var NVY=new _.Fp("whitelistEditEndpoint");var t3Q=new _.Fp("clearUrlParamCommand");var O_f=new _.Fp("commerceActionCommand");_.H_E=new _.Fp("getPaymentInstrumentsParamsCommand");var AX_=new _.Fp("getPaymentsClientTokenCommand");var Z_Q=new _.Fp("googlePaymentBillingCommand");var V3r=new _.Fp("googlePaymentPurchaseManagerCommand");_.DGZ=new _.Fp("logGtmCommand");var UGQ=new _.Fp("updateCardItemOnClickCommand");_.CRu=new _.Fp("ypcPauseSubscriptionCommand");_.Kur=new _.Fp("ypcResumeSubscriptionCommand");var Fua=function(){mV.apply(this,arguments)};
_.p(Fua,mV);Fua.prototype.getAssociations=function(){return[]};
Fua.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var dGR=function(){mV.apply(this,arguments)};
_.p(dGR,mV);dGR.prototype.getAssociations=function(){return[]};
dGR.prototype.getTypeName=function(){return"commerceCartListEntity"};var geB=function(){mV.apply(this,arguments)};
_.p(geB,mV);geB.prototype.getAssociations=function(){return[]};
geB.prototype.getTypeName=function(){return"iconBadgeEntity"};var yXa=function(){mV.apply(this,arguments)};
_.p(yXa,mV);yXa.prototype.getAssociations=function(){return[]};
yXa.prototype.getTypeName=function(){return"pdpStateEntity"};var BVE=function(){mV.apply(this,arguments)};
_.p(BVE,mV);BVE.prototype.getAssociations=function(){return[]};
BVE.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var Bgt=new _.Fp("ypcOffersEndpoint");var cXQ=new _.Fp("cardItemRenderer"),$GY=new _.Fp("cardItemTextRenderer");var jR0=new _.Fp("commerceCartItemQuantityPickerRenderer");var i_S=new _.Fp("linkCardRenderer");var PNy=new _.Fp("quantityIncrementerButtonViewModel");var uqR=new _.Fp("quantityIncrementerViewModel");var Ss0=new _.Fp("themedImageViewModel");_.hWS=new _.Fp("ypcCancelRecurrenceEndpoint");var M3_=new _.Fp("ypcCompleteTransactionEndpoint");_.b_Q=new _.Fp("ypcGetCartEndpoint");_.mb=new _.Fp("ypcGetOffersEndpoint");_.uA=new _.Fp("ypcHandleTransactionEndpoint");var pKf=new _.Fp("ypcLogWalletAnalyticDataEndpoint");_.LuY=new _.Fp("ypcRedeemCodeEndpoint");var zWY=new _.Fp("ypcUpdateFopEndpoint");pe(bK(1),hx(4));Um_((new MessageChannel).port2);var Ysa=function(){this.register=new Map},Sbp=function(N,t,O){N=N+"_"+t;
S7.register.has(N)?O=S7.register.get(N):(O=O(),S7.register.set(N,O));return O},av0=function(N){N=_.D(N.register.values());
for(var t=N.next();!t.done;t=N.next())_.dP(t.value,"ABORTED")};
Ysa.prototype.clear=function(){av0(this);this.register.clear()};
var S7=new Ysa;var t6l=Date.now().toString();var AVM=H7v();var djt={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 TVB,bO;TVB=1;bO=function(N){this.veData=N};
_.ib=function(N){return new bO({trackingParams:N})};
_.UM=function(N,t,O,H,A,Z){var U=TVB++;return new bO({veType:N,veCounter:U,elementIndex:O,dataElement:t,youtubeData:H,jspbYoutubeData:A,loggingDirectives:Z})};
_.V=bO.prototype;
_.V.getAsJson=function(){var N={};this.veData.trackingParams!==void 0?N.trackingParams=this.veData.trackingParams:(N.veType=this.veData.veType,this.veData.veCounter!==void 0&&(N.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(N.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(N.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(N.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(N.isCounterfactual=!0);
return N};
_.V.getAsJspb=function(){var N=new bJr;this.veData.trackingParams!==void 0?N.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.PU(N,2,this.veData.veType),this.veData.veCounter!==void 0&&_.PU(N,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.PU(N,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.SR(N,5,!0));if(this.veData.dataElement!==void 0){var t=this.veData.dataElement.getAsJspb();_.L8(N,7,t)}this.veData.youtubeData!==void 0&&_.L8(N,8,this.veData.jspbYoutubeData);
return N};
_.V.toString=function(){return JSON.stringify(this.getAsJson())};
_.V.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.V.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Ba("yt_logging_screen.getRootVeType",CDt);_.Ba("yt_logging_screen.getCurrentCsn",_.z8);_.Ba("yt_logging_screen.getCttAuthInfo",YL);_.Ba("yt_logging_screen.setCurrentScreen",_.ar);var wKr=function(){this.events=new Map},eWp=function(N){var t=[];
N=_.D(N.events.values());for(var O=N.next();!O.done;O=N.next())t.push(O.value);return t};
wKr.prototype.clear=function(){this.events.clear()};var XKX=function(){this.logTransport=new PRS;this.loggedEventRegister=new wKr;this.unloggedEventRegister=new wKr;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12739_flushTimer=new _.hv(this.flushInterval);this.JSC$12739_flushTimer.listen("tick",this.flush,!1,this)};
XKX.prototype.flush=function(){if(this.eventsCount){var N={loggedEvents:eWp(this.loggedEventRegister),unloggedEvents:eWp(this.unloggedEventRegister)};if(_.h("export_player_version_to_ytconfig")){var t;(t=_.Ro("PLAYER_CLIENT_VERSION"))?(t=t.split("-")[0].replace(/\./g,""),t=isNaN(Number(t))?"0":t):t="";var O=_.Ro("PLAYER_CLIENT_VERSION");if(O){O=O.split("-");var H="";O.length>1&&(H=O[O.length-1]);O=NAx(H.startsWith("canary_experiment")?"canary":H.startsWith("canary_control")?"control":"none")}else O=
"CLIENT_CANARY_STATE_UNKNOWN";N.dimensions={playerClientVersion:t,playerCanaryState:O}}this.logTransport.flush(N);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12739_flushTimer.enabled&&this.JSC$12739_flushTimer.stop()}};
var xGr=function(N){hc==null&&(hc=new XKX);var t=hc;var O=t.loggedEventRegister;N.dimensions=N.dimensions||{};N.dimensions.csn=_.z8()||"";var H=BAy(N.dimensions).join(";");if(N.records!=null)if(O.events.has(H)){var A;(A=O.events.get(H).records)==null||A.push.apply(A,_.W6(N.records))}else O.events.set(H,N);t.JSC$12739_flushTimer.enabled||t.JSC$12739_flushTimer.start();t.eventsCount++;t.eventsCount>=100&&t.flush()};var PRS=function(){};
PRS.prototype.flush=function(N,t){_.h("enable_client_sli_logging")&&_.E7("sliEventBatch",N,{sendIsolatedPayload:!!t})};var hc;var qsE;qsE=function(N){var t=kHf;N=N===void 0?{}:N;t=t.name;var O=uny("SUCCESS");xGr({dimensions:N,records:[{name:t,state:"SLI_STATE_END",status:O}]})};
_.h89=function(N,t,O,H){this.name=N;this.sliId=t;this.timeoutMs=O;this.statusOnTimeout=H;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.h89.prototype.getId=function(){return this.sliId};
_.FQ=function(N,t){t=t===void 0?{}:t;N.ongoing||(N.ongoing=!0,N.dimensions=t,N.logSliId=lbG(),xGr({dimensions:N.dimensions,records:[{name:N.name,state:"SLI_STATE_START",sliId:N.logSliId}]}),N.timeoutMs>0&&(N.timeoutHandle=setTimeout(function(){_.dP(N,N.statusOnTimeout)},N.timeoutMs)))};
_.dP=function(N,t){N.ongoing&&(N.timeoutMs>0&&clearTimeout(N.timeoutHandle),N.ongoing=!1,t={dimensions:N.dimensions,records:[{name:N.name,status:uny(t),state:"SLI_STATE_END",sliId:N.logSliId}]},S7.register.delete(N.name+"_"+N.sliId),xGr(t))};var kHf=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var fvu=function(){mV.apply(this,arguments)};
_.p(fvu,mV);fvu.prototype.getAssociations=function(){return[]};
fvu.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var xQS=new _.Fp("highlightTextDecoratorColorMapExtension");var PBG=new _.Fp("styleRunColorMapExtension");var ai9=_.mp(["data-"]),e8S={};var XbO={};var Mc=function(N){this.wrappedPromise_=N===void 0?null:N;this.state_=0;this.JSC$12770_value_=null};
Mc.prototype.then=function(N,t,O){return this.wrappedPromise_?this.wrappedPromise_.then(N,t,O):this.state_===1&&N?(N=N.call(O,this.JSC$12770_value_))&&typeof N.then==="function"?N:_.bA(N):this.state_===2&&t?(N=t.call(O,this.JSC$12770_value_))&&typeof N.then==="function"?N:_.neZ(N):this};
Mc.prototype.getValue=function(){return this.JSC$12770_value_};
Mc.prototype.isRejected=function(){return this.state_==2};
S2S(Mc);_.neZ=function(N){var t=new Mc;N=N===void 0?null:N;t.state_=2;t.JSC$12770_value_=N===void 0?null:N;return t};
_.bA=function(N){var t=new Mc;N=N===void 0?null:N;t.state_=1;t.JSC$12770_value_=N===void 0?null:N;return t};var vcG="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Wu0=["load","abort","error"],pY=function(N,t,O){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12790_maxAspectRatio_=N;this.disableAnimation_=t===void 0?!1:t;this.disableExifRotation_=O===void 0?!1:O;this.JSC$12790_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12790_reject_=this.resolve_=null};
pY.prototype.transform=function(N){var t=this;this.mime_=N.type;V1(LBE(N),this.dataUrlRead_,this.readError_,this);V1(pHf(N.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(O,H){t.resolve_=O;t.JSC$12790_reject_=H})};
pY.prototype.dataUrlRead_=function(N){this.dataUrl_=N;this.angle_!=null&&rXQ(this)};
pY.prototype.exifRead_=function(N){if(this.disableExifRotation_)this.angle_=0;else{a:if(N=new DataView(N),N.byteLength<2||N.getUint16(0)!==65496)N=-2;else{for(var t=2,O=N.byteLength;t<O;){var H=N.getUint16(t),A=N.getUint16(t+2);if(H===65505){t+=4;H=N.getUint32(t);A=N.getUint16(t+4);if(H!==1165519206||A!==0)break;t+=6;H=N.getUint16(t)===18761;t+=N.getUint32(t+4,H);A=N.getUint16(t,H);t+=2;for(var Z=0;Z<A;Z++){if(N.getUint16(t,H)===274){t+=8;N=N.getUint16(t,H);break a}t+=12}}else if(H>>8!==255)break;
else t+=A+2}N=-1}switch(N){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&rXQ(this)};
pY.prototype.readError_=function(){this.JSC$12790_reject_()};
var rXQ=function(N){$J(N.JSC$12790_image_,Wu0,N.completeTransform_,!1,N);N.JSC$12790_image_.src=_.Id(N.dataUrl_).toString();N.JSC$12790_image_.src!=rD.toString()&&N.JSC$12790_image_.src.substr(0,11)==="data:image/"||N.JSC$12790_reject_()};
pY.prototype.completeTransform_=function(){if(this.JSC$12790_image_.src!=rD.toString()){var N=_.Id(this.dataUrl_),t=this.JSC$12790_image_.naturalHeight?this.JSC$12790_image_.naturalWidth/this.JSC$12790_image_.naturalHeight:null;this.invalidAspectRatio=t>this.JSC$12790_maxAspectRatio_||t<1/this.JSC$12790_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var O=this.JSC$12790_image_.naturalWidth,H=this.JSC$12790_image_.naturalHeight,A=t=0,Z=this.JSC$12790_image_.naturalHeight?this.JSC$12790_image_.naturalWidth/
this.JSC$12790_image_.naturalHeight:null;Z>this.JSC$12790_maxAspectRatio_?(O=this.JSC$12790_maxAspectRatio_*H,t=(O-this.JSC$12790_image_.naturalWidth)/2,this.cropped=!0):Z<1/this.JSC$12790_maxAspectRatio_?(H=this.JSC$12790_maxAspectRatio_*O,A=(H-this.JSC$12790_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)Z=O,O=H,H=Z,Z=t,t=A,A=Z;switch(this.angle_){case 90:A-=O;break;case 180:t-=O;A-=H;break;case 270:t-=
H}this.cropped||this.angle_%360!==0?(N=document.createElement("canvas"),N.width=O||1,N.height=H||1,this.JSC$12790_image_.naturalWidth&&this.JSC$12790_image_.naturalHeight&&(O=N.getContext("2d"),O.rotate(Math.PI/180*this.angle_),O.drawImage(this.JSC$12790_image_,t,A,this.JSC$12790_image_.naturalWidth,this.JSC$12790_image_.naturalHeight)),this.transformedData=_.Id(N.toDataURL(this.mime_))):this.transformedData=N}else this.transformedData=N;this.resolve_(this)}};var LY=function(N,t){_.a7.call(this,N);this.value=t};
_.p(LY,_.a7);
var za=function(N,t,O,H,A,Z,U){U=U===void 0?!1:U;_.Xm.call(this);var C=this;this.JSC$12795_url_=N;this.channelId_=t;this.maxFileSizeMb_=O;this.JSC$12795_maxAspectRatio_=H;this.dropZoneEl_=A;this.rejectInvalidAspectRatio_=U;this.selectButtonEl_=Z;this.JSC$12795_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new P8(this.dropZoneEl_);this.selectOverlay_=new X6(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12795_image_=this.transfer_=null;this.handler_=new _.MT(this);_.L1(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(Z,"click",function(){C.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.p(za,_.Xm);za.prototype.disposeInternal=function(){for(var N=this.selectButtonEl_.nextSibling;N&&N.parentNode&&N.tagName=="INPUT";)N.parentNode.removeChild(N),N=this.selectButtonEl_.nextSibling;this.cancel();_.Xm.prototype.disposeInternal.call(this)};
za.prototype.uploadPromise=function(){if(this.JSC$12795_image_==null)return null;this.uploadPromise_||IvB(this);return this.uploadPromise_};
za.prototype.cancel=function(){lvp(this);this.JSC$12795_image_=null};
var lvp=function(N){N.transfer_&&N.transfer_.cancel();N.transfer_=null;N.uploadPromise_=null;N.resolve_=null;N.JSC$12795_reject_=null},IvB=function(N){lvp(N);
N.transfer_=_.Bkp(N.JSC$12795_url_,{"X-YouTube-ChannelId":N.channelId_},N.JSC$12795_image_);N.handler_.listenOnce(N.transfer_,"l",N.JSC$12797_onUploadComplete_);N.handler_.listenOnce(N.transfer_,"n",N.onUploadError_);N.transfer_.run();N.uploadPromise_=new Promise(function(t,O){N.resolve_=t;N.JSC$12795_reject_=O})};
_.V=za.prototype;_.V.onChange_=function(N){N.files.length&&(this.JSC$12795_image_=N.files[0],this.JSC$12795_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12795_image_=null,this.dispatchEvent(new LY("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(IvB(this),(new pY(this.JSC$12795_maxAspectRatio_)).transform(this.JSC$12795_image_).then((0,_.qn)(this.onPreview_,this),(0,_.qn)(this.onPreviewError_,this))))};
_.V.onPreview_=function(N){if(N.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12795_image_=null),this.dispatchEvent(new LY("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;N.cropped&&this.dispatchEvent(new LY("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new LY("yt.comments.ImageUploadOverlay.CHANGE_EVENT",N.transformedData))};
_.V.onPreviewError_=function(){this.JSC$12795_image_=null;this.dispatchEvent(new LY("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.V.onHover_=function(N){N.stopPropagation();N.preventDefault();if(N.type==="dragover")N=!0;else if(N.type==="dragleave")N=!1;else return;this.dispatchEvent(new LY("yt.comments.ImageUploadOverlay.HOVER_EVENT",N))};
_.V.JSC$12797_onUploadComplete_=function(){var N=(0,_.mCy)(this.transfer_.getResponseText());this.resolve_(N.encryptedBlobId)};
_.V.onUploadError_=function(){this.JSC$12795_reject_();lvp(this)};var QRa=function(N){N=N||{};var t={},O={};this.url=N.url||"";this.args=N.args||_.WW.clone(t);this.assets=N.assets||{};this.attrs=N.attrs||_.WW.clone(O);this.fallback=N.fallback||null;this.fallbackMessage=N.fallbackMessage||null;this.html5=!!N.html5;this.disable=N.disable||{};this.loaded=!!N.loaded;this.messages=N.messages||{}};
QRa.prototype.clone=function(){var N=new QRa,t;for(t in this)if(this.hasOwnProperty(t)){var O=this[t];_.oQ(O)=="object"?N[t]=_.WW.clone(O):N[t]=O}return N};var mG0,Eeu,GHR,mh,vey,JXZ,oeR,sRE,Nnu,tQu,Oq_,HqB,A3r,ZqZ,VQ0,DPY,UP0,CXB,KRQ,FRy,dP_,gTQ,y3f,BnX,c3B,$Pf,jOu,iqR,u3_,Jjx,SXp,hL0,MQp,bqE,pfQ,LRX,zL0,YXa,aHE,Tny,vRS,wfX,eLB,PXp,XfZ,xPX,kOy,qXZ,fHS,nTp,WR_,r30,IHu,lHB,QO_,mPX,Y9,ETr,GOS,RLR,vT0,J3u,oTr,sOa,NXB,tdr,O6_,H6R,AfZ,Z6r,VdR,DlE,UlQ,CsQ,KQX,FQS,Gfy,dl0,guQ,yfR,BXR,cfQ,$lr,jq0,i6B,u4S,Su_,hOR,Mdr,b60,pIX,LQX,zOp,YuB,aQZ,TXa,wIY,eOf,Psa,XI0,xla,k9u;mG0=["account/accounts_list"];Eeu=["acknowledge_channel_tou_strike"];GHR=["notification/add_upcoming_event_reminder"];
_.RWf=["att/get"];mh=["browse","music/browse","streaming_browse","unplugged/browse"];vey=["channel/claim_legacy_youtube_channel"];JXZ=["history/clear_search_history"];oeR=["history/clear_watch_history"];sRE=["comment/perform_comment_action"];Nnu=["comment/get_comment_replies"];tQu=["ypc/commerce_action"];Oq_=["backstage/create_post"];HqB=["live/create_broadcast"];A3r=["channel/create_channel"];ZqZ=["comment/create_comment_reply"];VQ0=["comment/create_comment"];DPY=["live_chat/create_poll"];UP0=["playlist/create"];
CXB=["decorate_message"];KRQ=["live_chat/delete_message"];FRy=["playlist/delete"];dP_=["video/delete"];gTQ=["like/dislike"];y3f=["dismissal/dismiss"];BnX=["flag/flag"];c3B=["flow"];$Pf=["account/account_menu"];jOu=["playlist/get_add_to_playlist"];iqR=["get_answer"];u3_=["channel/get_channel_creation_form"];Jjx=["offline/get_download_action"];SXp=["kids/get_kids_blocklist_picker"];hL0=["live_chat/get_item_context_menu"];MQp=["live_chat/get_live_chat_message_buy_flow"];bqE=["live_chat/get_live_chat_replay"];
pfQ=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];LRX=["live_chat/get_live_chat_super_sticker_buy_flow"];zL0=["notification/get_notification_menu"];YXa=["playlist/get_settings_editor"];aHE=["backstage/get_post_video_preview"];Tny=["account/get_profile_card"];vRS=["share/get_share_panel"];wfX=["share/get_sharing_provider_data"];eLB=["get_survey"];PXp=["notification/get_unseen_count"];XfZ=["get_user_mention_suggestions"];xPX=["get_watch"];kOy=["guide"];
qXZ=["feedback"];fHS=["kids/update_blacklist"];nTp=["like/like"];WR_=["live_chat/live_chat_action"];r30=["live_chat/manage_user"];IHu=["video_manager/metadata_update"];lHB=["live_chat/moderate"];QO_=["notification/modify_channel_preference"];mPX=["notification/opt_out"];Y9=["get_panel","get_posts_by_host_panel"];ETr=["player"];GOS=["browse/edit_playlist"];RLR=["notification/record_interactions"];vT0=["reel/reel_item_watch"];J3u=["reel/reel_watch_sequence"];oTr=["like/removelike"];sOa=["notification/remove_upcoming_event_reminder"];
NXB=["flag/get_form"];tdr=["miniapp/report_value"];O6_=["navigation/resolve_url"];H6R=["channel/reveal_business_email"];AfZ=["in_video/search"];Z6r=["search","sfv/search","unplugged/search"];VdR=["live_chat/send_message"];DlE=["live_chat/send_live_chat_vote"];UlQ=["account/set_setting"];CsQ=["submit_caption_correction"];KQX=["submit_form"];FQS=["subscription/subscribe"];Gfy=["get_transcript"];dl0=["resolve_location","unplugged/resolve_location"];guQ=["subscription/unsubscribe"];yfR=["backstage/update_post"];
BXR=["channel_edit/update_channel_page_settings"];cfQ=["comment/update_comment_reply"];$lr=["comment/update_comment"];jq0=["comment/update_comments_settings"];i6B=["creator/update_creator_channel"];u4S=["pdg/update_enablement"];Su_=["updated_metadata"];hOR=["channel_edit/validate_channel_handle"];Mdr=["verify_age"];b60=["next","unplugged/watch_next"];pIX=["whitelist/edit"];LQX=["ypc/cancel_recurrence"];zOp=["ypc/complete_transaction"];YuB=["ypc/get_cart"];aQZ=["ypc/get_fix_instrument_params"];
TXa=["ypc/get_offers"];wIY=["ypc/get_payment_instruments_params"];eOf=["ypc/handle_transaction"];Psa=["ypc/log_payment_server_analytics"];XI0=["ypc/pause_subscription"];xla=["ypc/redeem_code"];k9u=["ypc/resume_subscription"];var qur=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,
25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,
37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,133818,
182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,282472,
277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,
30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,
150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,
106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,
21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,
273232,82039];var UK=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Ba("yt.msgs_",UK);var ay=new _.dk("ACTION_ROUTER_TOKEN");_.Ta=function(){this.autonavState_=_.h("kevlar_is_pupi_enabled")?2:USO()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Ta.prototype.getState=function(){return this.autonavState_};
_.Ta.prototype.pause=function(N){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=N):this.autonavState_==1&&(this.disabledAutonavPauseReason_=N)};
_.Ta.prototype.setState=function(N,t,O){t&&(this.autoplayChangedByUser=!0);t=this.autonavState_===3||N===3;this.autonavState_!=N&&(this.autonavState_=N,N!=3&&_.CKy(N==2),N=_.h("kevlar_is_pupi_enabled")?O||t:!0,_.VM.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,N,O))};
_.Ta.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Nd(_.Ta);var w_=function(){this.hasRun=!1};var e7={},u6G=(e7.auto_search="LATENCY_ACTION_AUTO_SEARCH",e7.ad_to_ad="LATENCY_ACTION_AD_TO_AD",e7.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",e7.app_startup="LATENCY_ACTION_APP_STARTUP",e7.browse="LATENCY_ACTION_BROWSE",e7.cast_splash="LATENCY_ACTION_CAST_SPLASH",e7.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",e7.channels="LATENCY_ACTION_CHANNELS",e7.chips="LATENCY_ACTION_CHIPS",e7.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",e7.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
e7.editor="LATENCY_ACTION_EDITOR",e7.embed="LATENCY_ACTION_EMBED",e7.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",e7.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",e7.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",e7.explore="LATENCY_ACTION_EXPLORE",e7.favorites="LATENCY_ACTION_FAVORITES",e7.home="LATENCY_ACTION_HOME",e7.inboarding="LATENCY_ACTION_INBOARDING",e7.landing="LATENCY_ACTION_LANDING",e7.learning="LATENCY_ACTION_LEARNING",
e7.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",e7.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",e7.library="LATENCY_ACTION_LIBRARY",e7.live="LATENCY_ACTION_LIVE",e7.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",e7.management="LATENCY_ACTION_MANAGEMENT",e7.mini_app="LATENCY_ACTION_MINI_APP_PLAY",e7.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",e7.onboarding="LATENCY_ACTION_ONBOARDING",e7.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
e7.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",e7.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",e7.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",e7.prebuffer="LATENCY_ACTION_PREBUFFER",e7.prefetch="LATENCY_ACTION_PREFETCH",e7.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",e7.profile_switcher="LATENCY_ACTION_LOGIN",e7.projects="LATENCY_ACTION_PROJECTS",e7.reel_watch="LATENCY_ACTION_REEL_WATCH",e7.results="LATENCY_ACTION_RESULTS",e7.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
e7.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",e7.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",e7.review="LATENCY_ACTION_REVIEW",e7.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",e7.search_ui="LATENCY_ACTION_SEARCH_UI",e7.search_suggest="LATENCY_ACTION_SUGGEST",e7.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",e7.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",e7.seek="LATENCY_ACTION_PLAYER_SEEK",e7.settings="LATENCY_ACTION_SETTINGS",e7.store="LATENCY_ACTION_STORE",
e7.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",e7.tenx="LATENCY_ACTION_TENX",e7.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",e7.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",e7.watch="LATENCY_ACTION_WATCH",e7.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",e7["watch,watch7"]="LATENCY_ACTION_WATCH",e7["watch,watch7_html5"]="LATENCY_ACTION_WATCH",e7["watch,watch7ad"]="LATENCY_ACTION_WATCH",e7["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",e7.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
e7.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",e7.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",e7.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",e7.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",e7.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",e7.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",e7.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",e7),fQB=0;var nsM=function(N,t){fg.call(this,1,arguments);this.timer=t};
_.p(nsM,fg);var fcN=new xLN("aft-recorded",nsM);var bet=_.H4.ytLoggingGelSequenceIdObj_||{};_.Ba("ytLoggingGelSequenceIdObj_",bet);var Ps=_.H4.ytLoggingLatencyUsageStats_||{};_.Ba("ytLoggingLatencyUsageStats_",Ps);var XL=function(){this.cleanupJob=0},z$G=function(){XL.instance||(XL.instance=new XL);
return XL.instance};
_.V=XL.prototype;_.V.baseline=function(N,t,O){x9(this,"baseline_"+N)||_.E7("latencyActionBaselined",{clientActionNonce:N},{timestamp:t,cttAuthInfo:O})};
_.V.tick=function(N,t,O,H){x9(this,"tick_"+N+"_"+t)||_.E7("latencyActionTicked",{tickName:N,clientActionNonce:t},{timestamp:O,cttAuthInfo:H})};
_.V.info=function(N,t,O){var H=Object.keys(N).join("");x9(this,"info_"+H+"_"+t)||(N=Object.assign({},N),N.clientActionNonce=t,_.E7("latencyActionInfo",N,{cttAuthInfo:O}))};
_.V.jspbInfo=function(N,t,O){for(var H="",A=0;A<Pm(N).length;A++)Pm(N)[A]!==void 0&&(H=A===0?H.concat(""+A):H.concat("_"+A));x9(this,"info_"+H+"_"+t)||(_.Xa(N,2,t),t={cttAuthInfo:O},O=_.h("jspb_sparse_encoded_pivot")?new nb([{}]):new nb,_.zN(O,7,Wdu,N),p8S("latencyActionInfo",O,t))};
_.V.span=function(N,t,O){var H=Object.keys(N).join("");x9(this,"span_"+H+"_"+t)||(N.clientActionNonce=t,_.E7("latencyActionSpan",N,{cttAuthInfo:O}))};
var x9=function(N,t){Ps[t]=Ps[t]||{count:0};var O=Ps[t];O.count++;O.time=(0,_.jg)();N.cleanupJob||(N.cleanupJob=_.WX(_.GB,function(){var H=(0,_.jg)(),A;for(A in Ps)Ps[A]&&H-Ps[A].time>6E4&&delete Ps[A];N&&(N.cleanupJob=0)},5E3));
return O.count>5?(O.count===6&&Math.random()*1E5<1&&(O=new _.fF("CSI data exceeded logging limit with key",t.split("_")),t.indexOf("plev")>=0||_.J_(O)),!0):!1};var nuY,WQY;nuY=window;WQY=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.$Y=nuY.performance||nuY.mozPerformance||nuY.msPerformance||nuY.webkitPerformance||new WQY;var qkt=!1,acl=!1,WVt=(0,_.qn)(_.$Y.clearResourceTimings||_.$Y.webkitClearResourceTimings||_.$Y.mozClearResourceTimings||_.$Y.msClearResourceTimings||_.$Y.oClearResourceTimings||_.YG,_.$Y);var oUv=_.oo(function(N,t,O,H,A,Z,U){if(!_.h("web_csi_action_sampling_enabled")||!_.yZ(Z).actionDisabled){U=U==null?void 0:U.spanStatus;var C=_.Bc(Z);if(C.gelSpans)C.gelSpans[N]=!0;else{var F={};C.gelSpans=(F[N]=!0,F)}fQB++;N={spanName:N,spanLengthUsec:String(Math.round(t*1E3)),spanNonce:fQB};U&&(N.spanStatus=U);H&&(N.spanInfo=H);A&&(N.parentSpanNonce=A);O&&(N.spanStartTimeUsec=String(Math.round(O*1E3)));_.cc(Z||"").span[String(N.spanName)]=N;O=_.Bc(Z);O.gelSpans||(O.gelSpans={});_.wN(O.gelSpans,
N);O=cx9(Z);Z=_.yZ(Z).cttAuthInfo;z$G().span(N,O,Z);return N.spanNonce}}),rf_=window;
rf_.ytcsi&&(rf_.ytcsi.infoGel=_.bp,rf_.ytcsi.tick=_.zT);var osg=function(N){fg.call(this,1,arguments);this.csn=N};
_.p(osg,fg);var W1g=new xLN("screen-created",osg),ycx=[],JxM=g9g,B_l=0,Xu=new Map,s$x=new Map,N_O=new Map;var vy9=Symbol("Cf"),mI=new WeakMap;var k9=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},cV=function(){k9.instance||(k9.instance=new k9);
return k9.instance};
_.V=k9.prototype;_.V.setClient=function(N){this.client=N};
_.V.JSC$12879_newScreen=function(){this.clear();this.csn=_.z8()};
_.V.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.V.reportShown=function(N,t,O,H){var A=this.JSC$12879_getTrackingParams(N),Z=N.visualElement?N.visualElement:A;t=this.shownElements.has(Z);var U=this.visibleState.get(Z);this.shownElements.add(Z);this.visibleState.set(Z,!0);N.impressionLog&&!t&&N.impressionLog();if(A||N.visualElement)if(O=IQY(this,N,O))if(Z=lQB(this,N),qc(this,N)||Z){A=N.visualElement?N.visualElement:_.ib(A);var C=N.interactionLoggingClientData;Z||t?qc(this,N)&4?U||Ucg(this.client,O,A,C):qc(this,N)&1&&!t&&ZYl(this.client,O,A,C,H):
ZYl(this.client,O,A,C,H)}};
_.V.reportHidden=function(N,t,O,H){var A=this.JSC$12879_getTrackingParams(N),Z=N.visualElement?N.visualElement:A;t=this.hiddenElements.has(Z);var U=this.visibleState.get(Z);this.hiddenElements.add(Z);this.visibleState.set(Z,!1);if(U===!1)return!0;if(!A&&!N.visualElement)return!1;O=IQY(this,N,O);if(!O||!qc(this,N)&&lQB(this,N))return!1;A=N.visualElement?N.visualElement:_.ib(A);qc(this,N)&8?CAM(this.client,O,A,void 0,void 0,H):qc(this,N)&2&&!t&&(N=this.client,H=Pc({cttAuthInfo:YL(O)||void 0,automatedLogEventSource:H},
O),t={csn:O,ve:A.getAsJson(),eventType:2},O==="UNDEFINED_CSN"?kY("visualElementHidden",H,t):N?QN("visualElementHidden",t,N,H):_.E7("visualElementHidden",t,H));return!0};
_.V.JSC$12879_getTrackingParams=function(N){var t=this.getData(N),O,H;if(_.h("il_use_view_model_logging_context")&&(t==null?0:(O=t.context)==null?0:(H=O.loggingContext)==null?0:H.loggingDirectives))return t.context.loggingContext.loggingDirectives.trackingParams||"";var A,Z;if(t==null?0:(A=t.rendererContext)==null?0:(Z=A.loggingContext)==null?0:Z.loggingDirectives)return t.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(t==null?0:t.loggingDirectives)return t.loggingDirectives.trackingParams||
"";var U;return((U=N.veContainer)==null?0:U.trackingParams)?N.veContainer.trackingParams:(t==null?void 0:t.trackingParams)||""};
_.V.JSC$12879_elementShouldLogGesture=function(N,t){N=this.getData(N);return!!((Math.floor(Number(N&&N.loggingDirectives&&N.loggingDirectives.gestures&&N.loggingDirectives.gestures.types||""))||0)&t)};
_.V.JSC$12879_getNearestParentVe=function(N){var t=this.JSC$12879_getTrackingParams(N);return N.visualElement?N.visualElement:t?_.ib(t):N.parentElement?this.JSC$12879_getNearestParentVe(N.parentElement):null};
var IQY=function(N,t,O){var H=_.z8(O);return N.csn===null||H===N.csn||O?H:(N=new _.fF("VisibilityLogger called before newScreen",{caller:t.tagName,previous_csn:N.csn,current_csn:H}),_.J_(N),null)};
k9.prototype.getData=function(N){var t,O=N.data||((t=N.props)==null?void 0:t.data);if(!O||N.isWebComponentWrapper){var H;O=(H=mI.get(N))==null?void 0:H[vy9]}return O};
var lQB=function(N,t){var O;return!((O=N.getData(t))==null||!O.loggingDirectives)},qc=function(N,t){N=N.getData(t);
return Math.floor(Number(N&&N.loggingDirectives&&N.loggingDirectives.visibility&&N.loggingDirectives.visibility.types||""))||1};var fY;fY=function(){};
_.Fr=function(){fY.instance||(fY.instance=new fY);return fY.instance};
fY.prototype.setClient=function(N){_.oo(cV().setClient).bind(cV())(N)};
_.Qqa=function(){_.Fr();_.oo(cV().JSC$12879_newScreen).bind(cV())()};
fY.prototype.clear=function(){_.oo(cV().clear).bind(cV())()};
fY.prototype.reportShown=function(N,t,O,H){_.oo(cV().reportShown).bind(cV())(N,t,O,H)};
fY.prototype.reportHidden=function(N,t,O,H){return _.oo(cV().reportHidden).bind(cV())(N,t,O,H)};
var Xwy=function(N,t){return _.oo(cV().JSC$12879_getTrackingParams).bind(cV())(t)},Jzl=function(N,t){return _.oo(cV().JSC$12879_getNearestParentVe).bind(cV())(t)};var nY,mly;nY=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};
_.gF=function(){nY.instance||(nY.instance=new nY);return nY.instance};
nY.prototype.setClient=function(N){this.client=N};
mly=function(N,t,O){O=O===void 0?{}:O;_.oo(function(){var H,A,Z,U=((H=_.M(t==null?void 0:t.commandMetadata,_.Da))==null?void 0:H.rootVe)||((A=_.M(t==null?void 0:t.commandMetadata,zRX))==null?void 0:(Z=A.screenVisualElement)==null?void 0:Z.uiType);if(U){H=_.M(t==null?void 0:t.commandMetadata,Saa);if(H==null?0:H.parentTrackingParams){var C=_.ib(H.parentTrackingParams);if(H.parentCsn)var F=H.parentCsn}else O.clickedVisualElement?C=O.clickedVisualElement:t.clickTrackingParams&&(C=_.ib(t.clickTrackingParams));
a:{H=_.M(t,_.rN);A=_.M(t,NVp);if(H){if(A=KVv(H,"VIDEO")){H={token:A,videoId:H.videoId};break a}}else if(A&&(H=KVv(A,"PLAYLIST"))){H={token:H,playlistId:A.playlistId};break a}H=void 0}O=Object.assign({},{cttAuthInfo:H,parentCsn:F},O);if(_.h("expectation_logging")){var g;O.loggingExpectations=((g=_.M(t==null?void 0:t.commandMetadata,zRX))==null?void 0:g.loggingExpectations)||void 0}_.Ws(N,U,C,O)}else _.J_(new _.fF("Error: Trying to create a new screen without a rootVeType",t))})()};
_.Ws=function(N,t,O,H){H=H===void 0?{}:H;_.oo(function(){qur.includes(t)||(_.J_(new _.fF("createClientScreen() called with a non-page VE",t)),t=83769);H.isHistoryNavigation||(N.forwardHistoryStack=[],N.backHistoryStack.push({rootVe:t,key:H.key||""}));N.graftQueue=[];N.stateChangedQueue=[];H.dataPromises?EuR(N,t,O,H):G9p(N,t,O,H)})()};
_.ROY=function(N,t,O){O=O===void 0?0:O;_.oo(function(){t.then(function(H){N.pendingScreenCreation.has(O)&&N.pendingScreenFn&&N.pendingScreenFn();var A=_.z8(O),Z=_.pv(O);if(A&&Z){var U={automatedLogEventSource:3},C;(H==null?0:(C=H.response)==null?0:C.trackingParams)&&xY(N.client,A,Z,_.ib(H.response.trackingParams),!1,U);var F;(H==null?0:(F=H.playerResponse)==null?0:F.trackingParams)&&xY(N.client,A,Z,_.ib(H.playerResponse.trackingParams),!1,U)}})})()};
nY.prototype.graftServerVe=function(N,t,O){var H=this;return _.oo(function(){var A=_.ib(N);_.r_(H,A,t,O);return A})()};
_.oyO=function(N,t,O,H){return _.h("enable_client_ve_spec")&&t.clientVeSpec?(t=_.UM(t.clientVeSpec.uiType,void 0,t.clientVeSpec.elementIndex,t.clientVeSpec.clientYoutubeData,void 0,t),_.r_(N,t,O,H)?t:null):t.trackingParams?N.graftServerVe(t.trackingParams,O,H):null};
_.dF=function(N,t,O,H){return _.oo(function(){if(!t.veType)return _.vX(new _.fF("Error: Trying to graft a client VE without a veType.")),null;if(t.visibilityTypes){var A=t.visibilityTypes.reduce(function(Z,U){return Z|U});
A={visibility:{types:String(A)}}}A=_.UM(t.veType,t.visualElement,t.elementIndex,t.clientYouTubeData,void 0,A);return _.r_(N,A,O,H)?A:null})()};
_.r_=function(N,t,O,H){H=H===void 0?0:H;return _.oo(function(){if(N.pendingScreenCreation.has(H))return N.graftQueue.push([t,O]),!0;var A=_.z8(H),Z=O||_.pv(H);if(A&&Z){if(_.h("combine_ve_grafts")){var U=N.cachedVisualElements.get(Z.toString());U?U.push(t):(N.cachedRootVisualElements.set(Z.toString(),Z),N.cachedVisualElements.set(Z.toString(),[t]));N.attachTimeout||(N.attachTimeout=_.WX(_.GB,function(){vua(N,A)},1200))}else xY(N.client,A,Z,t);
return!0}return!1})()};
_.Iy=function(N,t,O){O=O===void 0?0:O;var H=N.recurringGrafts.get(O)||new Map;if(_.h("smarter_ve_dedupping"))for(var A=Array.from(H.keys()),Z=0;Z<A.length;Z++){var U=void 0,C=void 0;var F=t;var g=A[Z];g.isClientVe()&&F.isClientVe()?(U=F.getAsJson(),C=g.getAsJson(),F=U.veType!==C.veType||U.elementIndex!==C.elementIndex||U.dataElement!==C.dataElement||F.getLoggingDirectives()!==g.getLoggingDirectives()?!1:!0):F=g.veData.trackingParams!==void 0&&F.veData.trackingParams!==void 0?((C=F.veData)==null?void 0:
C.trackingParams)===((U=g.veData)==null?void 0:U.trackingParams):!1;if(F)return}else if(H.has(t))return;H.set(t,void 0);N.recurringGrafts.set(O,H);_.z8(O)==="UNDEFINED_CSN"||N.pendingScreenCreation.has(O)||_.r_(N,t,void 0,O)};
_.lA=function(N,t,O,H){H=_.z8(H===void 0?0:H);if(!H)return!1;FXx(N.client,H,t,O);return!0};
_.Q2=function(N,t,O,H){if(!t)return!1;H=_.z8(H===void 0?0:H);if(!H)return!1;FXx(N.client,H,_.ib(t),O);return!0};
_.fE=function(N,t){var O=t.getScreenLayer&&t.getScreenLayer();if(t.visualElement)return _.lA(N,t.visualElement,void 0,O);t=Xwy(_.Fr(),t);return _.Q2(N,t,void 0,O)};
nY.prototype.clickCommand=function(N,t,O){return _.Q2(this,N.clickTrackingParams,t,O===void 0?0:O)};
nY.prototype.stateChanged=function(N,t,O){this.visualElementStateChanged(_.ib(N),t,O===void 0?0:O)};
nY.prototype.visualElementStateChanged=function(N,t,O){O=O===void 0?0:O;O===0&&this.pendingScreenCreation.has(O)?this.stateChangedQueue.push([N,t]):this.logStateChanged(N,t,O)};
nY.prototype.logStateChanged=function(N,t,O){O=O===void 0?0:O;var H=_.z8(O);N=N||_.pv(O);return H&&N?(dcN(this.client,H,N,t),!0):!1};
var EuR=function(N,t,O,H){H=H===void 0?{}:H;N.pendingScreenCreation.add(H.layer||0);N.pendingScreenFn=function(){G9p(N,t,O,H);var U=_.pv(H.layer);if(U){for(var C=_.D(N.graftQueue),F=C.next();!F.done;F=C.next())F=F.value,_.r_(N,F[0],F[1]||U,H.layer);U=_.D(N.stateChangedQueue);for(C=U.next();!C.done;C=U.next())C=C.value,N.logStateChanged(C[0],C[1])}};
O||_.z8(H.layer)||N.pendingScreenFn();if(H.dataPromises)for(var A=_.D(H.dataPromises),Z=A.next();!Z.done;Z=A.next())_.ROY(N,Z.value,H.layer);else _.R0(Error("Df"))},G9p=function(N,t,O,H){H=H===void 0?{}:H;
var A=void 0;H.layer||(H.layer=0);A=H.parentLayer!==void 0?H.parentLayer:H.layer;var Z=_.z8(A);A=_.pv(A);var U=O||A,C;U&&(H.parentCsn!==void 0?C={clientScreenNonce:H.parentCsn,visualElement:U}:Z&&Z!=="UNDEFINED_CSN"&&(C={clientScreenNonce:Z,visualElement:U}));var F,g=_.Ro("EVENT_ID");Z==="UNDEFINED_CSN"&&g&&(F={servletData:{serializedServletEventId:g}});_.h("combine_ve_grafts")&&Z&&vua(N,Z);_.h("no_client_ve_attach_unless_shown")&&U&&Z&&Ac4(U,Z);try{var B=_.t7G(N.client,t,C,H.csnToClone,H.cttAuthInfo,
F,H.implicitGestureType,void 0,H.loggingExpectations,H.automatedLogEventSource)}catch(S){_.o0(S,{rootVeType:t,rootVe:A,parentVisualElement:O,currentCsn:Z,parentEl:C,csnToClone:H.csnToClone});_.R0(S);return}_.ar(B,t,H.layer,H.cttAuthInfo);Z&&Z!=="UNDEFINED_CSN"&&A&&!gcN(Z)&&CAM(N.client,Z,A,!0);N.backHistoryStack[N.backHistoryStack.length-1]&&!N.backHistoryStack[N.backHistoryStack.length-1].csn&&(N.backHistoryStack[N.backHistoryStack.length-1].csn=B||"");_.bp({clientScreenNonce:B});_.Qqa();var c=_.pv(H.layer);
Z&&Z!=="UNDEFINED_CSN"&&c&&_.h("music_web_mark_root_visible")&&_.nJ(B,c);N.pendingScreenCreation.delete(H.layer||0);N.pendingScreenFn=void 0;var u;(u=N.recurringGrafts.get(H.layer))==null||u.forEach(function(S,b){S?_.r_(N,b,S,H.layer):c&&_.r_(N,b,c,H.layer)});
JfS(N)},JfS=function(N){for(var t=0;t<N.afterNewScreenOneOffJobs.length;t++){var O=N.afterNewScreenOneOffJobs[t];
try{O()}catch(H){_.R0(H)}}for(t=N.afterNewScreenOneOffJobs.length=0;t<N.afterNewScreenRecurringJobs.length;t++){O=N.afterNewScreenRecurringJobs[t];try{O()}catch(H){_.R0(H)}}},vua=function(N,t){if(t===void 0)for(var O=FTN(),H=0;H<O.length;H++)O[H]!==void 0&&vua(N,O[H]);
else N.cachedVisualElements.forEach(function(A,Z){(Z=N.cachedRootVisualElements.get(Z))&&OYv(N.client,t,Z,A)}),N.cachedVisualElements.clear(),N.cachedRootVisualElements.clear(),N.attachTimeout=void 0};var mX=function(N){N=N===void 0?{layer:0}:N;this.hasRun=!1;this.createScreenConfig=N;N={};this.emc=(N.response=!1,N.playerResponse=!1,N)};
_.p(mX,w_);mX.prototype.validate=function(N){return!(!N.data||!N.data.response&&!N.data.playerResponse)};
mX.prototype.handle=function(N){var t=_.gF(),O=this.createScreenConfig.layer;N.data.response&&N.data.response.trackingParams&&!this.emc.response&&(t.graftServerVe(N.data.response.trackingParams,void 0,O),this.emc.response=!0);N.data.playerResponse&&N.data.playerResponse.trackingParams&&!this.emc.playerResponse&&(t.graftServerVe(N.data.playerResponse.trackingParams,void 0,O),this.emc.playerResponse=!0)};var En=function(){this.nH=_.lj();this.y5=[];this.sUc=0};
En.prototype.processChunk=function(N){if(N){for(var t=_.D(this.y5),O=t.next();!O.done;O=t.next())O=O.value,O.validate(N)&&(O.handle(N),O.hasRun=!0);_.zT("np"+this.sUc);this.sUc++}};var uLx=function(N,t,O){O=O===void 0?{}:O;this.name=N;this.id=EK.nextSpanId++;this.sessionId=EK.sessionId;this.attributes=t;this.status="SPAN_STATUS_UNSET";var H;this.startTime=(H=O.startTime)!=null?H:(0,_.jg)();this.isActiveSpan=O.active;if(N=EK.stack[EK.stack.length-1])this.parentId=N.id,N.children||(N.children=[]),N.children.push(this);N=_.D(EK.processors);for(t=N.next();!t.done;t=N.next()){t=t.value;try{var A=H=void 0;(A=(H=t).onSpanStart)==null||A.call(H,this)}catch(Z){_.J_(Z)}}O.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",O.endTime))};
uLx.prototype.end=function(N,t){N=N===void 0?"SPAN_STATUS_OK":N;this.endTime=t=t===void 0?(0,_.jg)():t;this.duration=this.endTime-this.startTime;this.status=N;this.isActiveSpan!==!1&&(EK.stack[EK.stack.length-1]===this?EK.stack.pop():_.J_(Error("Ef`"+String(this.name))));N=_.D(EK.processors);for(t=N.next();!t.done;t=N.next()){t=t.value;try{var O=void 0,H=void 0;(H=(O=t).onSpanEnd)==null||H.call(O,this)}catch(A){_.J_(A)}}};
uLx.prototype.addAttributes=function(N){Object.assign(this.attributes,N)};
var Snv={end:function(){},
addAttributes:function(){}},EK={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},iY4={rootSpan:function(){return EK.stack[0]}};_.vc={};var HHM=function(N){this.observers=[];this.value=N};
_.V=HHM.prototype;_.V.subscribe=function(N){var t=this;if(N.idx!=null)throw Error("Gf");N.idx=this.observers.length;this.observers.push(N);try{N(this.value)}catch(O){}return function(){var O=t.observers[t.observers.length-1];t.observers[N.idx]=O;O.idx=N.idx;t.observers.pop()}};
_.V.update=function(N){this.value=N(this.value);this.notify()};
_.V.mutate=function(N){N(this.value);this.notify()};
_.V.set=function(N){this.value=N;this.notify()};
_.V.notify=function(){for(var N=_.D(this.observers),t=N.next();!t.done;t=N.next()){t=t.value;try{t(this.value)}catch(O){}}};var iBG,ouX,tAQ;_.U4=function(N,t,O,H,A,Z,U,C){U=U===void 0?[]:U;C=C===void 0?[]:C;this.buildCommandPayload=N;this.navigate=t;this.handleServiceRequest=O;this.sendAction=H;this.JSC$12928_screenManager=A;this.commandResolverMap=Z;this.autoLogResolverAllowlist=U;this.metaCommandClickLoggingDenylist=C;this.pendingCommands=new Set;this.isTracingEnabled=!1;ouX(this)};
iBG=function(N,t,O){var H=[_.Qvu,Vep],A=ZBv,Z=VMQ,U=_.gF(),C=sqE;O=O===void 0?[]:O;H=H===void 0?[]:H;_.U4.instance=new _.U4(N,t,A,Z,U,C,O,H)};
ouX=function(N){if(!N.isTracingEnabled&&GT("command")){var t=N.resolveCommand;N.resolveCommand=function(O,H){a:{for(A in O)if(Object.prototype.hasOwnProperty.call(O,A)){var A={commandType:A};break a}A={}}return RX("command",A,t.bind(this,O,H))};
N.isTracingEnabled=!0}};
tAQ=function(N,t,O){if(!N.commandResolverMap)return!1;var H=Yn9(t,N.commandResolverMap);return H?((N.autoLogResolverAllowlist.some(function(A){return!!_.M(t,A)})||(O==null?0:O.forceClickLogging))&&NJu(N,t,O),H instanceof Promise?H.then(function(A){A.resolve(t,O)}):H.resolve(t,O),!0):!1};
_.U4.prototype.resolveCommand=function(N,t){var O=this,H=Osu(N);if(tAQ(this,N,t))return!0;if(H)return HsB(this,N,t);if(!this.buildCommandPayload)return pst(N,"Unhandled command by buildCommandPayload"),!1;var A=this.buildCommandPayload(N,t);if(t==null?0:t.commandController)A.commandController=t.commandController;if(A.type===0){if(!this.navigate)return LXt(N,"navigate"),!1;if(!ANQ(A.command))return pst(N,"Page requests need to specify a url"),!1;_.h("logging_avoid_blocking_during_navigation")&&_.bEp().transition("application_navigating");
N=this.navigate(A)||[];Y2Z(N).then(function(){O.pendingCommands.delete(A.command)});
return!0}if(A.type===1){if(!this.handleServiceRequest)return LXt(N,"handleServiceRequest"),!1;(t==null?0:t.forceClickLogging)&&NJu(this,A.command,t);N=this.handleServiceRequest(A);Y2Z(N).then(function(){O.pendingCommands.delete(A.command)});
return!0}if(A.type===2){if(!this.sendAction)return LXt(N,"sendAction"),!1;NJu(this,A.command,t);this.sendAction(A);return!0}return!1};
var NJu=function(N,t,O){if((O==null||!O.disableClickTracking)&&N.JSC$12928_screenManager)if(t.clickTrackingParams&&_.h("log_click_with_layer_from_element_in_command_handler")){var H;O=O==null?void 0:(H=O.form)==null?void 0:H.element;N.JSC$12928_screenManager.clickCommand(t,null,O&&O.getScreenLayer&&O.getScreenLayer())}else t.clickTrackingParams?N.JSC$12928_screenManager.clickCommand(t):!_.h("disable_clicked_visual_element_in_command_handler")&&(O==null?0:O.clickedVisualElement)&&_.lA(N.JSC$12928_screenManager,
O.clickedVisualElement)},Osu=function(N){var t=!!_.M(N,_.Ab),O;
N=((O=_.M(N,_.VZ))==null?void 0:O.signal)==="CLIENT_SIGNAL";return t||N},HsB=function(N,t,O){var H=_.M(t,_.Ab);
if(H)var A=(H==null?void 0:H.commands)||[];else{var Z;if(((Z=_.M(t,_.VZ))==null?void 0:Z.signal)==="CLIENT_SIGNAL"){var U;A=((U=_.M(t,_.VZ))==null?void 0:U.actions)||[]}}if(A){(H=Zsf(N,A))&&NJu(N,t,O);t=_.D(A);for(A=t.next();!A.done;A=t.next()){A=A.value;try{var C=Object.assign({},O);H&&(C.disableClickTracking=!0);N.resolveCommand(A,C)}catch(F){F instanceof Error&&_.R0(F)}}return!0}pst(t,"Could not handle the meta command");return!1},Zsf=function(N,t){return t.every(function(O){return N.metaCommandClickLoggingDenylist.some(function(H){return!!_.M(O,
H)})})},ANQ=function(N){var t;
return!((t=_.M(N==null?void 0:N.commandMetadata,_.Da))==null||!t.url)};var Ga=function(){w_.apply(this,arguments)};
_.p(Ga,w_);Ga.prototype.validate=function(N){var t,O;return!this.hasRun&&!!((t=N.data.response)==null?0:(O=t.onResponseReceivedEndpoints)==null?0:O.length)};
Ga.prototype.handle=function(N){var t=_.U4.instance;N=_.D(N.data.response.onResponseReceivedEndpoints);for(var O=N.next();!O.done;O=N.next())t.resolveCommand(O.value)};var VAZ,DNY,UNB;
VAZ=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.Hc();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.Ry=function(){DNY||(DNY=new VAZ);return DNY};
UNB=function(){var N=_.Ry();N.miniplayerButtonActivation=!1;N.userActivation=!1;N.playlistWatchPageActivation=!1;N.productDetailsPageActivation=!1;N.miniAppPageActivation=!1;N.playablesDestPageActivation=!1;N.lockupActivation=!1;N.showMiniplayerCommandActivation=!1;N.playlistSuggestionsShelfActivation=!1;N.mediaSessionPipActivation=!1;N.watchPipActivation=!1;N.watchWhileActivation=!1;N.shortsPipActivation=!1;N.companionCanvasActivation=!1};
_.Cy0=function(){var N=_.Ry(),t=N.mediaSessionPipActivation,O=N.watchPipActivation,H=N.watchWhileActivation,A=N.playlistWatchPageActivation,Z=N.lockupActivation,U=N.showMiniplayerCommandActivation,C=N.navigatingAwayFromWatchDeletedVideo,F=N.shortsPipActivation,g=N.playlistSuggestionsShelfActivation,B=N.productDetailsPageActivation,c=N.miniAppPageActivation,u=N.playablesDestPageActivation,S=N.companionCanvasActivation;return!N.miniplayerButtonActivation&&!A&&!g&&!B&&!c&&!u&&!Z&&!U&&!t&&!O&&!H&&!F&&
!S||C};var lRl;_.vs=_.oX("FEwhat_to_watch","/",3854);_.QW9=_.oX("FEdownloads","/feed/downloads",42352);lRl=_.oX("FEmusic_offline","browse/FEmusic_offline",42352);var RJ=function(N,t){t=t===void 0?[]:t;var O=O===void 0?[]:O;t=Q5t.apply(null,[mON.apply(null,_.W6(t))].concat(_.W6(O)));this.store=vGy(N,void 0,t)};
RJ.prototype.getState=function(){return this.store.getState()};
RJ.prototype.dispatch=function(N){return this.store.dispatch(N)};
RJ.prototype.subscribe=function(N){return this.store.subscribe(N)};
RJ.prototype.replaceReducer=function(N){return this.store.replaceReducer(N)};
RJ.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Jc=function(N,t,O){var H=t(N.getState());return N.subscribe(function(){var A=t(N.getState());if(A!==H){var Z=H;H=A;O(A,Z)}})};var iZQ;_.uF=function(N,t,O){return _.H5({type:"REPLACE_ENTITY",payload:{entityPayload:O,entityType:N,key:t}})};
iZQ=function(N){return _.H5({type:"REPLACE_ENTITIES",payload:N})};
_.aE=function(N,t,O,H){return _.H5({type:"UPDATE_ENTITY",payload:{entityPayload:O,entityType:N,key:t,mergeOption:H}})};var rcx=function(N){var t=this;N=N===void 0?[]:N;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;N.forEach(function(O){t.append(O)})};
_.V=rcx.prototype;_.V.getLength=function(){return this.totalLength};
_.V.append=function(N){var t=this.arrays.length===0?!1:(t=this.arrays[this.arrays.length-1])&&t.buffer===N.buffer&&t.byteOffset+t.length===N.byteOffset;t?(t=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(t.buffer,t.byteOffset,t.length+N.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(N);this.totalLength+=N.length};
_.V.split=function(N){for(var t=new rcx,O=new rcx,H=_.D(this.arrays),A=H.next();!A.done;A=H.next())A=A.value,N>=A.length?(t.append(A),N-=A.length):N?(t.append(new Uint8Array(A.buffer,A.byteOffset,N)),O.append(new Uint8Array(A.buffer,A.byteOffset+N,A.length-N)),N=0):O.append(A);return{headView:t,tailView:O}};
_.V.isFocused=function(N){return N>=this.arrayPos&&N<this.arrayPos+this.arrays[this.arrayIdx].length};
_.V.focus=function(N){if(!this.isFocused(N))for(N<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=N&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var K_X=function(N,t){N.focus(t);return N.arrays[N.arrayIdx][t-N.arrayPos]};(function(){var N=function(H){return new Uint8Array(H)},t=function(H){for(var A=new Uint8Array(H.length),Z=0;Z<H.length;Z++)A[Z]=H[Z];
return A},O=new Uint8Array([1]);
return O.length===1&&O[0]===1?N:t})();
var xcM=Array(1024),Xsz=window.TextDecoder?new TextDecoder:void 0,qng=window.TextEncoder?new TextEncoder:void 0;var WXO=function(N){this.arrayView=N;this.pos=0;this.pendingTagAndType=-1},AB=function(N){var t=K_X(N.arrayView,N.pos);
++N.pos;if(t<128)return t;for(var O=t&127,H=1;t>=128;)t=K_X(N.arrayView,N.pos),++N.pos,H*=128,O+=(t&127)*H;return O},IhG=function(N,t){var O=N.pendingTagAndType;
for(N.pendingTagAndType=-1;N.pos+1<=N.arrayView.totalLength;){O<0&&(O=AB(N));var H=O>>3,A=O&7;if(H===t)return!0;if(H>t){N.pendingTagAndType=O;break}O=-1;switch(A){case 0:AB(N);break;case 1:N.pos+=8;break;case 2:H=AB(N);N.pos+=H;break;case 5:N.pos+=4}}return!1};var Qyy=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=n9S(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Dn=function(N,t){t=N.pos+t;
if(!(N.buf.length>=t)){for(var O=N.buf.length*2;O<t;)O*=2;N.buf=n9S(O,N.wasm,N.buf.subarray(0,N.pos));N.view=new DataView(N.buf.buffer,N.buf.byteOffset,N.buf.byteLength)}},VP=function(N,t){if(t>268435455){Dn(N,4);
for(var O=t&1073741823,H=0;H<4;H++)N.view.setUint8(N.pos,O&127|128),O>>=7,N.pos+=1;t=Math.floor(t/268435456)}for(Dn(N,4);t>127;)N.view.setUint8(N.pos,t&127|128),t>>=7,N.pos+=1;N.view.setUint8(N.pos,t);N.pos+=1};for(var mct={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},lht={},F_E=_.D(Object.entries(mct)),dNB=F_E.next();!dNB.done;dNB=F_E.next()){var gAy=_.D(dNB.value),yNE=gAy.next().value,BJR=gAy.next().value,cNS=yNE,$Nr=BJR;$Nr&&(lht[$Nr]=cNS)};var Gay=function(N,t){N=N===void 0?{}:N;switch(t.type){case "ENTITY_LOADED":return t.payload.reduce(function(H,A){var Z,U=(Z=A.options)==null?void 0:Z.persistenceOption;if(U&&U!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&U!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return H;if(!A.entityKey)return _.R0(Error("If")),H;if(A.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!A.payload)return A=new _.fF("REPLACE entity mutation is missing a payload",{entityKey:A.entityKey}),_.R0(A),H;var C=(0,_.WW.getAnyKey)(A.payload);
return v9x(H,C,A.entityKey,A.payload[C])}if(A.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{A=A.entityKey;try{var F=_.Zn(A).entityType;C=v9x(H,F,A);break a}catch(c){if(c instanceof Error){A=new _.fF("Failed to deserialize entity key",{entityKey:A,originalMessage:c.message});_.R0(A);C=H;break a}throw c;}C=void 0}return C}if(A.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!A.payload)return A=new _.fF("UPDATE entity mutation is missing a payload",{entityKey:A.entityKey}),_.R0(A),H;C=(0,_.WW.getAnyKey)(A.payload);
var g,B;return JcM(H,C,A.entityKey,A.payload[C],(g=A.fieldMask)==null?void 0:(B=g.mergeOptions)==null?void 0:B.repeatedFieldsMergeOption)}return H},N);
case "REPLACE_ENTITY":var O=t.payload;return v9x(N,O.entityType,O.key,O.entityPayload);case "REPLACE_ENTITIES":return Object.keys(t.payload).reduce(function(H,A){var Z=t.payload[A];return Object.keys(Z).reduce(function(U,C){return v9x(U,A,C,Z[C])},H)},N);
case "UPDATE_ENTITY":return O=t.payload,JcM(N,O.entityType,O.key,O.entityPayload,O.mergeOption);default:return N}};var o9v;var jS0=!1,oy,sn,Na,t7,Or,is0=function(N){_.k1.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!jS0){var t,O=new Uint8Array(256),H=new Uint8Array(256);var A=1;for(t=0;t<256;t++)O[A]=t,H[t]=A,A^=A<<1^(A>>7&&283);oy=new Uint8Array(256);sn=KM(256);Na=KM(256);t7=KM(256);Or=KM(256);for(var Z=0;Z<256;Z++){A=Z?H[255^O[Z]]:0;A^=A<<1^A<<2^A<<3^A<<4;A=A&255^A>>>8^99;oy[Z]=A;t=A<<1^(A>>7&&283);var U=t^A;sn[Z]=t<<24|A<<16|A<<8|U;Na[Z]=U<<24|sn[Z]>>>8;t7[Z]=A<<24|Na[Z]>>>
8;Or[Z]=A<<24|t7[Z]>>>8}jS0=!0}A=KM(44);for(O=0;O<4;O++)A[O]=N[4*O]<<24|N[4*O+1]<<16|N[4*O+2]<<8|N[4*O+3];for(H=1;O<44;O++)N=A[O-1],O%4||(N=(oy[N>>16&255]^H)<<24|oy[N>>8&255]<<16|oy[N&255]<<8|oy[N>>>24],H=H<<1^(H>>7&&283)),A[O]=A[O-4]^N;this.key=A};
_.p(is0,_.k1);
is0.prototype.encrypt=function(N){var t=N.length;N=new Uint8Array(N.buffer.slice(N.byteOffset,N.byteOffset+t));for(var O=this.cipherBlock,H=0;H<t&&this.blockOffset<16;)N[H++]^=O[this.blockOffset++];for(var A=t-(t-H)%16;H<A;)uHa(this),N[H++]^=O[0],N[H++]^=O[1],N[H++]^=O[2],N[H++]^=O[3],N[H++]^=O[4],N[H++]^=O[5],N[H++]^=O[6],N[H++]^=O[7],N[H++]^=O[8],N[H++]^=O[9],N[H++]^=O[10],N[H++]^=O[11],N[H++]^=O[12],N[H++]^=O[13],N[H++]^=O[14],N[H++]^=O[15];if(H<t)for(uHa(this),this.blockOffset=0;H<t;)N[H++]^=
O[this.blockOffset++];return N};
var uHa=function(N){for(var t=N.key,O=N.counter[0]^t[0],H=N.counter[1]^t[1],A=N.counter[2]^t[2],Z=N.counter[3]^t[3],U=3;U>=0&&!(N.counter[U]=-~N.counter[U]);U--);for(var C,F,g=4;g<40;)U=sn[O>>>24]^Na[H>>16&255]^t7[A>>8&255]^Or[Z&255]^t[g++],C=sn[H>>>24]^Na[A>>16&255]^t7[Z>>8&255]^Or[O&255]^t[g++],F=sn[A>>>24]^Na[Z>>16&255]^t7[O>>8&255]^Or[H&255]^t[g++],Z=sn[Z>>>24]^Na[O>>16&255]^t7[H>>8&255]^Or[A&255]^t[g++],O=U,H=C,A=F;N=N.cipherBlock;U=t[40];N[0]=oy[O>>>24]^U>>>24;N[1]=oy[H>>16&255]^U>>16&255;N[2]=
oy[A>>8&255]^U>>8&255;N[3]=oy[Z&255]^U&255;U=t[41];N[4]=oy[H>>>24]^U>>>24;N[5]=oy[A>>16&255]^U>>16&255;N[6]=oy[Z>>8&255]^U>>8&255;N[7]=oy[O&255]^U&255;U=t[42];N[8]=oy[A>>>24]^U>>>24;N[9]=oy[Z>>16&255]^U>>16&255;N[10]=oy[O>>8&255]^U>>8&255;N[11]=oy[H&255]^U&255;U=t[43];N[12]=oy[Z>>>24]^U>>>24;N[13]=oy[O>>16&255]^U>>16&255;N[14]=oy[H>>8&255]^U>>8&255;N[15]=oy[A&255]^U&255};var SJ0=!1;(function(){var N=function(H){return new Uint8Array(H)},t=function(H){for(var A=new Uint8Array(H.length),Z=0;Z<H.length;Z++)A[Z]=H[Z];
return A},O=new Uint8Array([1]);
return O.length===1&&O[0]===1?N:t})();
var HT;var bsR=function(N){a:{if(!SJ0&&!gr){if(HT){var t=HT;break a}HT=(t=window.crypto)==null?void 0:t.subtle;var O,H,A;if(((O=HT)==null?0:O.importKey)&&((H=HT)==null?0:H.sign)&&((A=HT)==null?0:A.encrypt)){t=HT;break a}HT=void 0}t=void 0}t&&(this.nativeEncryptor=new hdY(N,t));this.encryptorPolyfill=new MAa(N)};
bsR.prototype.encrypt=function(N,t){var O=this,H;return _.K(function(A){switch(A.nextAddress){case 1:if(!O.nativeEncryptor){A.jumpTo(2);break}_.Mo(A,3);return A.yield(O.nativeEncryptor.encrypt(N,t),5);case 5:return A.return(A.yieldResult);case 3:H=_.ax(A),_.J_(H),SJ0=!0,O.nativeEncryptor=void 0;case 2:return A.return(O.encryptorPolyfill.encrypt(N,t))}})};
bsR.prototype.decrypt=function(N,t){return this.encrypt(N,t)};
var hdY=function(N,t){this.JSC$13001_aesKey=N;this.subtleCrypto=t};
hdY.prototype.encrypt=function(N,t){var O=this,H;return _.K(function(A){if(A.nextAddress==1)return _.Mo(A,2),A.yield(pkB(O,N,t),4);if(A.nextAddress!=2)return A.return(A.yieldResult);H=_.ax(A);_.J_(H);SJ0=!0;throw H;})};
var pkB=function(N,t,O){var H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:if(N.cryptoKey){Z.jumpTo(2);break}return Z.yield(N.subtleCrypto.importKey("raw",N.JSC$13001_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:N.cryptoKey=Z.yieldResult;case 2:return H={name:"AES-CTR",counter:O,length:128},Z.yield(N.subtleCrypto.encrypt(H,N.cryptoKey,t),4);case 4:return A=Z.yieldResult,Z.return(new Uint8Array(A))}})},MAa=function(N){this.JSC$13004_aesKey=N};
MAa.prototype.encrypt=function(N,t){this.encryptor||(this.encryptor=new is0(this.JSC$13004_aesKey));for(var O=this.encryptor,H=0;H<4;H++)O.counter[H]=t[H*4]<<24|t[H*4+1]<<16|t[H*4+2]<<8|t[H*4+3];O.blockOffset=16;return this.encryptor.encrypt(N)};
MAa.prototype.decrypt=function(N,t){return this.encrypt(N,t)};var L_y={},tiG=$2("yt-idb-pref-storage",{objectStores:(L_y.prefs={addedAtVersion:1},L_y),shared:!1,upgrade:function(N,t){t(1)&&O7(t_(N,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.A7=function(N){this.token=N};
_.A7.getInstance=function(){return _.K(function(N){return N.return(new Promise(function(t){_.ca().then(function(O){O?(_.A7.instance||(_.A7.instance=new _.A7(O)),t(_.A7.instance)):t(void 0)})}))})};
_.A7.prototype.get=function(N){var t=this,O,H,A;return _.K(function(Z){if(Z.nextAddress==1)return Z.yield(OZv(t.token),2);if(Z.nextAddress!=3)return O=Z.yieldResult,Z.yield(O.get("prefs",N),3);H=Z.yieldResult;if(!H)return Z.return();A=(0,_.jg)();return H.expirationTimestampMs<=A?Z.return():Z.return(H.value)})};
_.A7.prototype.set=function(N,t,O){O=O===void 0?31536E3:O;var H=this,A,Z,U;return _.K(function(C){if(C.nextAddress==1)return A=(0,_.jg)(),Z={key:N,value:t,expirationTimestampMs:A+O*1E3},C.yield(OZv(H.token),2);U=C.yieldResult;return C.yield(U.put("prefs",Z),0)})};
_.A7.prototype.remove=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(OZv(t.token),2);O=H.yieldResult;return H.yield(O.delete("prefs",N),0)})};var ZI={},zdE=(ZI.INVALID_ENCODER_VERSION="Invalid encoder version",ZI.KEY_CREATION_FAILED="Failed to create encoder key",ZI.UNKNOWN_DECODE_ERROR="Failed to decode PES data",ZI.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",ZI.WRONG_DATA_TYPE="Encoder cannot process the data type",ZI),Fo=function(N,t){t=t===void 0?{}:t;_.fF.call(this,zdE[N],Object.assign({},{name:"PESEncoderError",type:N},t));this.type=N;this.level="WARNING";Object.setPrototypeOf(this,Fo.prototype)};
_.p(Fo,_.fF);var V6=function(){};
V6.prototype.encode=function(N,t){try{return this.encodeImpl(N,t)}catch(O){ViM(O,A7Q)}};
V6.prototype.decode=function(N,t){try{return this.decodeImpl(N,t)}catch(O){ViM(O,ZZt)}};
var YJS=function(N,t,O){var H;return _.K(function(A){if(A.nextAddress==1)return _.Mo(A,2),A.yield(N.decodeAsyncImpl(t,O),4);if(A.nextAddress!=2)return A.return(A.yieldResult);H=_.ax(A);ViM(H,ZZt);_.Ty(A)})};
V6.prototype.decodeAsyncImpl=function(N,t){return Promise.resolve(this.decodeImpl(N,t))};var DI=function(N,t){this.aesEncryptor=N;this.aesEncryptorAsync=t};
_.p(DI,V6);DI.prototype.encodeImpl=function(N,t){t=Dat(t);N=(new TextEncoder).encode(JSON.stringify(N));return this.aesEncryptor.encrypt(N,t)};
DI.prototype.decodeImpl=function(N,t){if(!(N instanceof Uint8Array))throw HZO(1);var O=new TextDecoder;t=Dat(t);N=this.aesEncryptor.decrypt(N,t);return JSON.parse(O.decode(N))};
DI.prototype.decodeAsyncImpl=function(N,t){var O=this,H,A,Z;return _.K(function(U){if(U.nextAddress==1){if(!(N instanceof Uint8Array))throw HZO(1);H=new TextDecoder;A=Dat(t);return U.yield(O.aesEncryptorAsync.decrypt(N,A),2)}Z=U.yieldResult;return U.return(JSON.parse(H.decode(Z)))})};var UaO={accountLinkStatusEntity:cxa,booleanEntity:IiS,buttonEntity:xRZ,captionTrack:htu,channelHandle:$_a,chipEntity:KO0,commerceAcquisitionClientPayloadEntity:Fua,commerceCartListEntity:dGR,compositeSourceEntity:qrp,multiviewStagingEntity:fIR,contextNoteFeedEntityPayload:THY,contextNoteUserRatingEntityPayload:wnX,continuationTokenEntity:tiZ,downloadQualityPickerEntity:lhf,downloadsPageRefreshTokenEntity:mcf,downloadsPageViewConfigurationEntity:K3E,downloadStatusEntity:QyE,dismissState:FOR,sfvAudioItemCurrentlyPlayingEntity:OXX,
emojiFountainDataEntity:eMf,emojiCustomizationSetEntity:wF0,fakeChannel:mjR,fakePlaylist:Eca,fakePlaylistEntryCollection:GG_,fakeVideo:vcZ,fakeVideoDescription:JVp,featuredProductsEntity:Typ,flowStateEntity:dSR,iconBadgeEntity:geB,interstitialInteractionStateEntity:e$_,likeButtonAnimationEntity:F3S,liveChatPollStateEntity:WVf,dataFreshnessEntity:aUa,liveViewerLeaderboardChatEntryPointStateEntity:k6p,liveViewerLeaderboardPointsEntity:qoX,liveReactionsDataEntity:PER,logoEntity:T6Y,macroMarkerEntity:daR,
mainDownloadsLibraryEntity:E9S,mainDownloadsListEntity:GaE,mainPlaylistDownloadStateEntity:v9X,mainPlaylistEntity:OZr,mainPlaylistVideoEntity:HZB,mainVideoDownloadStateEntity:JcS,mainVideoEntity:Daf,markersEngagementPanelSyncEntity:g8E,markersVisibilityOverrideEntity:y7u,musicAlbumReleaseDetail:Qur,musicAlbumReleaseDownloadMetadataEntity:n8X,musicAlbumRelease:lIS,musicAlbumReleaseUserDetail:maE,musicArtistDetail:GPa,musicArtist:E8S,musicArtistUserDetail:RJQ,musicDownloadsLibraryEntity:W30,musicLibraryEdit:v80,
musicLibraryStatusEntity:J7y,musicPlaylist:o8_,musicPlaylistDownloadMetadataEntity:r7B,musicShare:NdZ,musicTrackDetail:OD_,musicTrackDownloadMetadataEntity:IIS,musicTrack:ttp,musicTrackUserDetail:HDB,offlineOrchestrationActionWrapperEntity:MtY,offlineVideoPolicy:bDQ,offlineVideoStreams:pur,offlineabilityEntity:o9r,orchestrationWebSamplingEntity:syf,pageHeaderEntity:SeY,pdpStateEntity:yXa,pinnedProductEntity:wT_,playbackData:LJa,playerStateEntity:Byu,quantityIncrementerEntity:BVE,refresh:zt_,saveToPlaylistListEntity:hHZ,
selectedChipIndexEntityPayload:c7f,settingEntity:ldS,stringEntity:li0,suggestedFeedbackChipStateEntity:$af,transfer:YoQ,trendingOfferEntity:eJB,videoDownloadContextEntity:aTX,videoOverviewAsyncDataEntity:fvu,videoPlaybackPositionEntity:fUS,votingEntity:pFu,ytMainChannelEntity:UaB,youchatPendingResponseEntity:juZ,ytMainDownloadedVideoEntity:NyY,ytMainVideoEntity:CI0};var a1E,wkR,c5,c7t,$at,XkS,kAf,xNR,PyQ;a1E=function(N,t){this.JSC$13023_wrapped=N;this.JSC$13023_encoderRegistry=t;this.changedKeys={}};
wkR=function(N,t){return TJS(N.JSC$13023_encoderRegistry,t.version).decode(t.data,t.key)};
_.edZ=function(N,t,O){return N.JSC$13023_wrapped.objectStore("EntityStore").get(t).then(function(H){if(H){if(O&&H.entityType!==O)throw Error("Jf");return wkR(N,H)}})};
c5=function(N,t,O){return O?(O=O.map(function(H){return _.edZ(N,H,t)}),Ov.all(O)):N.JSC$13023_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(t)).then(function(H){return H.map(function(A){return wkR(N,A)})})};
_.Byg=function(N,t,O){var H=E9M(t),A=TJS(N.JSC$13023_encoderRegistry,1),Z=Object.assign({},t);return N.JSC$13023_wrapped.objectStore("EntityStore").get(H).then(function(U){if(U){if(U.entityType!==O)throw Error("Jf");Z.entityMetadata||(U=wkR(N,U),Z.entityMetadata=U.entityMetadata)}}).then(function(){var U={key:H,
entityType:O,data:A.encode(Z,H),version:1};return Ov.all([N.JSC$13023_wrapped.objectStore("EntityStore").put(U),PyQ(N,Z,O)])}).then(function(){XkS(N,H,O);
return H})};
c7t=function(N,t){var O=_.Zn(t).entityType;return Ov.all([N.JSC$13023_wrapped.objectStore("EntityStore").delete(t),xNR(N,t)]).then(function(){XkS(N,t,O)})};
$at=function(N,t,O,H){var A=TJS(N.JSC$13023_encoderRegistry,1);return _.edZ(N,t,H).then(function(Z){if(Z){Z=PA9(Z,O);var U={key:t,entityType:H,data:A.encode(Z,t),version:1};return Ov.all([N.JSC$13023_wrapped.objectStore("EntityStore").put(U),PyQ(N,Z,H)])}}).then(function(){XkS(N,t,H);
return t})};
XkS=function(N,t,O){var H=N.changedKeys[O];H||(H=new Set,N.changedKeys[O]=H);H.add(t)};
kAf=function(N,t,O){var H=E9M(t);O=CI4(O);if(!O)return Ov.resolve([]);O=new O(t);N=N.JSC$13023_wrapped.objectStore("EntityAssociationStore");t=[];O=_.D(O.getAssociations());for(var A=O.next();!A.done;A=O.next())t.push(N.put({parentEntityKey:H,childEntityKey:A.value}));return Ov.all(t).then(function(Z){return Z.map(function(U){return U[1]})})};
xNR=function(N,t){return N.JSC$13023_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(t))};
PyQ=function(N,t,O){var H=E9M(t);return xNR(N,H).then(function(){return kAf(N,t,O)})};var qJX=function(){};
_.p(qJX,V6);qJX.prototype.encodeImpl=function(N){return N};
qJX.prototype.decodeImpl=function(N){if(N instanceof Uint8Array)throw HZO(0);return N};var daN=function(){this.cacheMap={};this.cacheMap[0]=new qJX;if(!_.h("aes_pes_encoder_killswitch")){var N=this.cacheMap;try{var t=_.kv();var O=Dat(t);var H=new DI(new MAa(O),new bsR(O))}catch(A){throw N=A instanceof Error?new Fo("KEY_CREATION_FAILED",{originalMessage:A.message}):new Fo("KEY_CREATION_FAILED"),_.R0(N),N;}N[1]=H}},TJS=function(N,t){t=t===void 0?0:t;
N=N.cacheMap[t];if(!N)throw t=new Fo("INVALID_ENCODER_VERSION",{encoderVersion:t}),_.R0(t),t;return N};var g8=function(N,t){_.k1.call(this);this.token=N;this.JSC$13037_encoderRegistry=t;this.observers=[];N=new _.H4.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.kv());N.onmessage=this.JSC$13037_handleMessage.bind(this);this.channel=N};
_.p(g8,_.k1);_.B5=function(N,t,O){var H,A,Z,U;return _.K(function(C){if(C.nextAddress==1)return C.yield(Nyp(N.token),2);if(C.nextAddress!=3)return H=C.yieldResult,C.yield(_.Kz(H,["EntityStore","EntityAssociationStore"],t,function(F){A=new a1E(F,N.JSC$13037_encoderRegistry);return O(A)}),3);
Z=C.yieldResult;A&&(U=A.changedKeys,Object.keys(U).length>0&&(N.channel.postMessage(U),f1Z(N,U)));return C.return(Z)})};
g8.prototype.observe=function(N){var t=this;this.observers.push(N);return function(){var O=t.observers.indexOf(N);O>=0&&t.observers.splice(O,1)}};
var cst=function(N){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(_.B5(N,{mode:"readonly",enableRetries:!0},function(H){return H.JSC$13023_wrapped.objectStore("EntityStore").getAll()}),2);
t=O.yieldResult;return O.return(Promise.all(t.filter(function(H){return!!H}).map(function(H){var A,Z;
return _.K(function(U){if(U.nextAddress==1){A=H.key;Z=H.entityType;var C=U.yield;var F=YJS(TJS(N.JSC$13037_encoderRegistry,H.version),H.data,H.key);return C.call(U,F,2)}return U.return({key:A,entityType:Z,data:U.yieldResult})})})))})};
g8.prototype.JSC$13037_handleMessage=function(N){f1Z(this,N.data)};
var f1Z=function(N,t){N=_.D(N.observers);for(var O=N.next();!O.done;O=N.next())O=O.value,O(t)};
g8.prototype.disposeInternal=function(){this.channel.close()};
var K3y;var Ur,W_Q,kPt;Ur={};_.nA_=(Ur.mainVideoEntity="mainVideoEntityActionMetadata",Ur.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Ur.musicTrack="musicTrackEntityActionMetadata",Ur.musicPlaylist="musicPlaylistEntityActionMetadata",Ur);W_Q=new _.dk("DOWNLOADS_ENTITY_TYPE_MAP");_.pM=_.U_("","downloadsPageViewConfigurationEntity");kPt=_.U_("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.cPM=_.U_("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.U_("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.U_("SMART_DOWNLOADS_ENABLED","settingEntity");_.U_("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var hJN=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var aI4=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var rN_={isLeaderTab:!0};var APx={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var CZ=window,nM=CZ.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",HXx=CZ.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||W5,U3N=CZ.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||dv,Zi_=CZ.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||AqY,Oi_=CZ.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||c50,U6l=CZ.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||hPr;var OXx;QP({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 Sa9=CWg(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(N){return N}}}),Lzz=CWg(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(N){return N}}}),gn4=new Map;var MNz=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],jgO;var I1u=function(N){return _.H5({type:"SET_EPHEMERAL_ACTION",payload:N})};var l1X={ephemeralAction:null};var QS_=Xd({ephemeralAction:function(N,t){N=N===void 0?l1X.ephemeralAction:N;switch(t.type){case "SET_EPHEMERAL_ACTION":return t.payload;default:return N}}});var mNf=function(N){return _.H5({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:N})};var EAQ={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var GAZ={sharedUi:EAQ,a11y:l1X,entities:{}},RHg={sharedUi:function(N,t){N=N===void 0?EAQ:N;switch(t.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},N,{animatedThumbnailEnabled:t.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},N,{inlinePreviewEnabled:t.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},N,{currentPageType:t.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},N,{currentPageSubType:t.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},N,{persistentPanelVisible:t.payload});default:return N}},
a11y:QS_,entities:RRt};var adp={playlistId:"",inviteLinkURL:""};var RdS={continuationCommand:{}};var WSl=Xd({continuationCommand:function(N,t){N=N===void 0?RdS.continuationCommand:N;switch(t.type){case "SET_CONTINUATION_COMMAND":return t.payload.continuationCommand;default:return N}}});var wR9={currentFormId:"",commandsMap:{}};var riM=Xd({isLeaderTab:function(N,t){N=N===void 0?rN_.isLeaderTab:N;switch(t.type){case "SET_IS_LEADER_TAB":var O,H;return(H=t==null?void 0:(O=t.payload)==null?void 0:O.isLeaderTab)!=null?H:N;default:return N}}});var JN_;_.vAr=function(N){return _.H5({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:N}})};
JN_=function(N){return _.H5({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:N}})};var KZ={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var GzO=Xd({isDesktopSmallWidth:function(N,t){N=N===void 0?KZ.isDesktopSmallWidth:N;switch(t.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return t.payload.isDesktopSmallWidth;default:return N}},
isShortsActive:function(N,t){N=N===void 0?KZ.isShortsActive:N;switch(t.type){case "SET_IS_SHORTS_ACTIVE":return t.payload.isShortsActive;default:return N}},
isWatchWhileMode:function(N,t){N=N===void 0?KZ.isWatchWhileMode:N;switch(t.type){case "SET_IS_WATCH_WHILE_MODE":return t.payload.isWatchWhileMode;default:return N}},
playerState:function(N,t){N=N===void 0?KZ.playerState:N;switch(t.type){case "SET_PLAYER_STATE":return t.payload.playerState;default:return N}},
isFullscreen:function(N,t){N=N===void 0?KZ.isFullscreen:N;switch(t.type){case "SET_IS_FULLSCREEN":return t.payload.isFullscreen;default:return N}},
isSmallScreenSqueezeback:function(N,t){N=N===void 0?KZ.isSmallScreenSqueezeback:N;switch(t.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return t.payload.isSmallScreenSqueezeback;default:return N}},
isShortsPipActive:function(N,t){N=N===void 0?KZ.isShortsPipActive:N;switch(t.type){case "SET_IS_SHORTS_PIP_ACTIVE":return t.payload.isShortsPipActive;default:return N}},
isPlaybackStarted:function(N,t){N=N===void 0?KZ.isPlaybackStarted:N;switch(t.type){case "SET_IS_PLAYBACK_STARTED":return t.payload.isPlaybackStarted;default:return N}}});var PWp={currentMode:"canvas-hidden"};var Ji4=function(){return function(N){return function(t){var O=N(t);_.sl(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[t],!0);return O}}};var oAR,wqQ;oAR=new _.CT;_.A5=new _.dk("WATCH_PLAYER_PROMISE_TOKEN");_.sSp=new _.CT;_.N7Z=new _.dk("SHORTS_PLAYER_PROMISE_TOKEN");wqQ=new _.dk("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var ont=function(){return function(N){return function(t){t.type==="ENTITY_LOADED"&&_.cY().resolve(_.A5).then(function(O){var H;(H=O.dispatchReduxAction)==null||H.call(O,t)});
return N(t)}}};var tZa={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Idx=Xd({additionalContext:function(N,t){N=N===void 0?tZa.additionalContext:N;switch(t.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var O;return(O=t.payload)!=null?O:"";default:return N}},
impersonatedChannelUrl:function(N,t){N=N===void 0?tZa.impersonatedChannelUrl:N;switch(t.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var O;return(O=t.payload)!=null?O:"";default:return N}},
selectedVideoIds:function(N,t){N=N===void 0?tZa.selectedVideoIds:N;switch(t.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var O={};return Object.assign({},N,(O[t.payload]=!0,O));case "VIDEO_UNSELECTED":return t=t.payload,N=Object.assign({},N),delete N[t],N;default:return N}}});var Oju={parentClickTrackingParams:""};var ldM=Xd({parentClickTrackingParams:function(N,t){N=N===void 0?Oju.parentClickTrackingParams:N;switch(t.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return t.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return N}}});var Hju=function(N){return _.H5({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:N})},A9Z=function(N){return _.H5({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:N})};var ZjB={stepStates:{}};var Qgz=Xd({stepStates:function(N,t){N=N===void 0?ZjB.stepStates:N;switch(t.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var O=N,H=t.payload,A,Z,U;N={};t={selectionStates:Object.assign({},(U=(A=O[H.stepId])==null?void 0:A.selectionStates)!=null?U:{},(N[H.token]={isSelected:H.isSelected},N)),userQuery:(Z=O[H.stepId])==null?void 0:Z.userQuery};A={};return Object.assign({},O,(A[H.stepId]=t,A));case "TALK_TO_RECS_UPDATE_USER_QUERY":return A=N,Z=t.payload,U=
{selectionStates:Object.assign({},(H=(O=A[Z.stepId])==null?void 0:O.selectionStates)!=null?H:{}),userQuery:{userQuery:Z.userQuery,token:Z.userQueryToken}},O={},Object.assign({},A,(O[Z.stepId]=U,O));default:return N}}});var VZu,DXX,Cmy;VZu=function(N){return _.H5({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:N})};
DXX=function(N){return _.H5({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:N})};
_.Yf=function(N){return _.H5({type:"SET_CURRENT_PAGE_TYPE",payload:N})};
_.UX0=function(N){return _.H5({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:N})};
Cmy=function(N){return _.H5({type:"SET_CHIP_BAR_IS_STICKY",payload:N})};var x3M={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"};_.Kir=function(N){return _.H5({type:"SET_PLAYER_STATE",payload:{playerState:N}})};var F9={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:qay(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var m3S=Xd({isTheaterMode:function(N,t){N=N===void 0?qay():N;switch(t.type){case "SET_IS_THEATER_MODE":return t.payload.isTheaterMode;default:return N}},
isWatchActive:function(N,t){N=N===void 0?F9.isWatchActive:N;switch(t.type){case "SET_IS_WATCH_ACTIVE":return t.payload.isWatchActive;default:return N}},
isLearningJourneyActive:function(N,t){N=N===void 0?F9.isLearningJourneyActive:N;switch(t.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return t.payload.isLearningJourneyActive;default:return N}},
isWatchFullscreen:function(N,t){N=N===void 0?F9.isWatchFullscreen:N;switch(t.type){case "SET_IS_WATCH_FULLSCREEN":return t.payload.isWatchFullscreen;default:return N}},
isWatchNarrowWidth:function(N,t){N=N===void 0?F9.isWatchNarrowWidth:N;switch(t.type){case "SET_IS_WATCH_NARROW_WIDTH":return t.payload.isWatchNarrowWidth;default:return N}},
isSwatcherooActive:function(N,t){N=N===void 0?F9.isSwatcherooActive:N;switch(t.type){case "SET_IS_SWATCHEROO_ACTIVE":return t.payload.isSwatcherooActive;default:return N}},
isWatchRetroMode:function(N,t){N=N===void 0?F9.isWatchRetroMode:N;switch(t.type){case "SET_IS_WATCH_RETRO_MODE":return t.payload.isWatchRetroMode;default:return N}},
isLiveChatCollapsed:function(N,t){N=N===void 0?F9.isLiveChatCollapsed:N;switch(t.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return t.payload.isLiveChatCollapsed;default:return N}},
openEngagementPanels:function(N,t){N=N===void 0?F9.openEngagementPanels:N;var O=[].concat(_.W6(N));switch(t.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return O.push(t.payload.panelToAdd),O;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return O.splice(O.indexOf(t.payload.panelToRemove),1),O;default:return N}},
playerState:function(N,t){N=N===void 0?F9.playerState:N;switch(t.type){case "SET_PLAYER_STATE":return t.payload.playerState;default:return N}},
watchScrollTop:function(N,t){N=N===void 0?F9.watchScrollTop:N;switch(t.type){case "SET_WATCH_SCROLL_TOP":return t.payload.watchScrollTop;default:return N}},
watchWindowSize:function(N,t){N=N===void 0?F9.watchWindowSize:N;switch(t.type){case "SET_WATCH_WINDOW_SIZE":return t.payload.watchWindowSize;default:return N}}});var Fir={surveyFeedbackData:{feedbackTokens:[]}};var Enx=Xd({surveyFeedbackData:function(N,t){N=N===void 0?Fir.surveyFeedbackData:N;switch(t.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return t.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},N,t.payload);default:return N}}});var fdM={};var N4O=void 0;_.h("web_enable_redux_store_on_demand")||(N4O=sgS());var dXa=function(N,t,O){var H=this;this.listId=N;this.JSC$13181_updateCallback=t;this.isOfflineVideoCallback=O;_.v5().subscribe(function(){H.handleUpdate()})};
dXa.prototype.getPlaylistData=function(){var N=_.v5().getState().entities;if(this.listId&&this.listId!=="PPSV"){var t=E8M(N,this.listId,!0),O=_.U_(this.listId,"mainPlaylistEntity"),H,A;N=N==null?void 0:(H=N.mainPlaylistEntity)==null?void 0:(A=H[O])==null?void 0:A.title;return tLQ(t,N,this.listId)}t=_.TyS(htg(N));N=_.TyS(_.LM(N));N=t.concat(N);return tLQ(N)};
dXa.prototype.getPlaylistId=function(){return this.listId};
dXa.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13181_updateCallback(this.listId,this.getPlaylistData(),{})};var dy=function(N,t,O,H){H=H===void 0?[]:H;this.JSC$13184_playlistNetworkManager=N;this.listId=t;this.JSC$13184_updateCallback=O;this.videoIds=H;this.pendingUpdates=[];this.currentIndex=0};
dy.prototype.JSC$13184_setCurrentIndex=function(N){this.currentIndex=N};
dy.prototype.setListId=function(N){this.listId=N};
var g4r=function(N,t){N.currentCreateRequest&&N.currentCreateRequest.cancel(t);N.currentUpdateRequest&&N.currentUpdateRequest.cancel(t);N.currentRefreshRequest&&N.currentRefreshRequest.cancel(t)};
dy.prototype.delete=function(){g4r(this,"PROXY DELETED")};
dy.prototype.addVideos=function(N,t,O){var H=this;O!==void 0?this.videoIds.splice.apply(this.videoIds,[O,0].concat(_.W6(N))):this.videoIds.push.apply(this.videoIds,_.W6(N));this.listId||this.currentCreateRequest?(N.forEach(function(A,Z){A={addedVideoId:A,action:"ACTION_ADD_VIDEO"};O&&(A.addedVideoPosition=O+Z);H.pendingUpdates.push(A)}),gy(this)):y9R(this,t.onCreateListCommand)};
var B7S=function(N,t,O,H,A){fpg(N.videoIds,t,O);t>N.currentIndex&&O<=N.currentIndex?N.JSC$13184_setCurrentIndex(N.currentIndex+1):t===N.currentIndex?N.JSC$13184_setCurrentIndex(O):t<N.currentIndex&&O>=N.currentIndex&&N.JSC$13184_setCurrentIndex(N.currentIndex-1);N.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:H,movedSetVideoIdPredecessor:A});gy(N)},y9R=function(N,t){g4r(N,"OBSOLETE");
N.currentCreateRequest=c9a(N.JSC$13184_playlistNetworkManager,t,N.videoIds);_.fV(N.currentCreateRequest,function(){N.currentCreateRequest=void 0}).then(function(O){N.setListId(O.playlistId);
N.pendingUpdates.length>0?gy(N):$XY(N)})},gy=function(N){if(N.pendingUpdates.length!==0&&(N.currentRefreshRequest&&N.currentRefreshRequest.cancel("OBSOLETE"),!N.currentUpdateRequest&&!N.currentCreateRequest)){var t=N.pendingUpdates.splice(0,N.pendingUpdates.length);
N.currentUpdateRequest=N.JSC$13184_playlistNetworkManager.updatePlaylist(N.listId,t);_.fV(N.currentUpdateRequest,function(){N.currentUpdateRequest=void 0}).then(function(){N.pendingUpdates.length>0?gy(N):$XY(N)}).thenCatch(function(){N.pendingUpdates.unshift.apply(N.pendingUpdates,_.W6(t))})}},$XY=function(N){N.currentRefreshRequest=_.jFa(N.JSC$13184_playlistNetworkManager,N.listId,N.currentIndex,N.videoIds[N.currentIndex]);
_.fV(N.currentRefreshRequest,function(){N.currentRefreshRequest=void 0}).then(function(t){N.JSC$13184_updateCallback(t.playlistId,t.playlistPanelRenderer,t.autoplayRenderer)})};
dy.prototype.size=function(){return this.videoIds.length};var ijQ=function(N,t,O,H){H=H===void 0?[]:H;dy.call(this,N,t,O,H);this.JSC$13184_playlistNetworkManager=N;this.listId=t;this.JSC$13184_updateCallback=O;this.videoIds=H};
_.p(ijQ,dy);_.y6=function(N,t,O,H,A,Z,U){A=A===void 0?[]:A;U=U===void 0?cG:U;dy.call(this,N,t,O,A);this.JSC$13184_playlistNetworkManager=N;this.listId=t;this.JSC$13184_updateCallback=O;this.onAuthChange=H;this.videoIds=A;this.storage=Z;this.cookieReader=U;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.HH(_.GB,this.checkLoggedInStatusChange.bind(this),1E3)};
_.p(_.y6,dy);_.V=_.y6.prototype;_.V.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.HH(_.GB,this.checkLoggedInStatusChange.bind(this),1E3)};
_.V.JSC$13184_setCurrentIndex=function(N){dy.prototype.JSC$13184_setCurrentIndex.call(this,N);this.store()};
_.V.delete=function(){_.GB.cancelJob(this.queueSapisIdJob);dy.prototype.delete.call(this)};
_.V.setListId=function(N){dy.prototype.setListId.call(this,N);this.store()};
_.V.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var uva=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],SRR=["playerResponse","videoDetails"],hqB=["response","currentVideoEndpoint","watchEndpoint","videoId"],MZY=["response","currentVideoEndpoint","watchEndpoint","playlistId"],bjf=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],phR=["response","contents","twoColumnWatchNextResults","playlist","playlist"],LiE=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
zqp=["response","contents","twoColumnWatchNextResults"];var BT={},VL9=(BT.WEB_UNPLUGGED="^unplugged/",BT.WEB_UNPLUGGED_ONBOARDING="^unplugged/",BT.WEB_UNPLUGGED_OPS="^unplugged/",BT.WEB_UNPLUGGED_PUBLIC="^unplugged/",BT.WEB_CREATOR="^creator/",BT.WEB_KIDS="^kids/",BT.WEB_EXPERIMENTS="^experiments/",BT.WEB_MUSIC="^music/",BT.WEB_REMIX="^music/",BT.WEB_MUSIC_EMBEDDED_PLAYER="^music/",BT.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",BT);var Z_l,c9a;Z_l=function(N,t){this.networkManager=N;this.innertubeTransportService=t};
c9a=function(N,t,O){if(!_.M(t,_.cs))return _.M2(Error("Nf"));_.M(t,_.cs).videoIds=O;O={create_playlist_title:_.CJ("QUEUE",void 0,"Queue")};return Ak9(_.rq(N.innertubeTransportService,t,O),OcM)};
_.jFa=function(N,t,O,H){t={videoId:H,playlistId:t,playlistIndex:O};O=_.JB(b60);return Ak9(_.cT(N.innertubeTransportService,t,O),Zct)};
Z_l.prototype.updatePlaylist=function(N,t){return Ak9(_.rq(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:N,actions:t}}),HcN)};var YRp=function(N){this.storage=N},akf;
YRp.prototype.store=function(N,t){t=t===void 0?0:t;if(this.storage&&N.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",N),this.storage.set("TLPQindex",String(t)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(O){}};
YRp.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
YRp.prototype.getPlaylistId=function(){if(!this.storage)return null;var N=null;try{N=this.storage.get("TLPQplaylist")}catch(t){}return N};var qez=["navigationEndpoint","watchEndpoint","videoId"],kdy=["nextButtonVideo","watchEndpoint","videoId"];_.u8=new _.dk("NETWORK_TOKEN");_.J4=new _.dk("PAGE_TOKEN");_.$8=new _.dk("PLAYLIST_TOKEN");var T7S;T7S=new _.dk("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Sc=new _.dk("INNERTUBE_TRANSPORT_TOKEN");var whE,ji,PmE,XhZ,kX0,qRf;whE=new Set(["ci","cr","carml"]);ji=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13231_parkedJobs=new Map;this.parkedProcessors=new Map};
_.iI=function(){ji.instance||(ji.instance=new ji);return ji.instance};
ji.prototype.onAny=function(N){return _.eqY(this,N,2)};
ji.prototype.parkOrScheduleJob=function(N,t,O,H,A){_.uI(this,O)?_.zh().addJob(N,t,H):(A&&(N=PmE(N),XhZ(this,N,t,O,A)),A=this.JSC$13231_parkedJobs.get(O),A||(this.JSC$13231_parkedJobs.set(O,[]),A=this.JSC$13231_parkedJobs.get(O)),A.push({job:N,priority:t,delay:H}))};
ji.prototype.addListener=function(N,t,O){O&&(t=PmE(t),XhZ(this,t,0,N,O));O=this.parkedProcessors.get(N);O||(this.parkedProcessors.set(N,[]),O=this.parkedProcessors.get(N));O.push(t)};
ji.prototype.processSignal=function(N){if(!_.uI(this,N)){this.inProgressSignals.add(N);var t=this.JSC$13231_parkedJobs.get(N);if(t){t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=O.value,_.zh().addJob(O.job,O.priority,O.delay);this.JSC$13231_parkedJobs.delete(N)}if(t=this.parkedProcessors.get(N)){t=_.D(t);for(O=t.next();!O.done;O=t.next())O=O.value,O();this.parkedProcessors.delete(N)}this.signals.push(N);this.inProgressSignals.delete(N)}};
_.uI=function(N,t){return whE.has(t)||_.vZ("IS_HOMEPAGE_COLD")||_.vZ("IS_RESULTS_PAGE_COLD")||_.vZ("IS_WATCH_PAGE_COLD")?N.signals.indexOf(t)>=0:!0};
PmE=function(N){var t=!1;return function(){t||(t=!0,N())}};
XhZ=function(N,t,O,H,A){if(xXQ.has(H))_.zh().addJob(t,O,A);else{var Z=N.compoundSignals.get(H);Z&&_.zh().addJob(function(){_.uI(N,H)||(Z.isTimeoutConditionSatisfied?_.zh().addJob(t,O):Z.timeoutConditionObservers.push(function(){_.zh().addJob(t,O)}))},O,A)}};
_.eqY=function(N,t,O){if(t.length>1){var H=[],A=Object.create(null);t=_.D(t);for(var Z=t.next();!Z.done;Z=t.next())Z=Z.value,A[Z]||(H.push(Z),A[Z]=!0);t=H}if(t.length===1)return t[0];Z=t;H="";A=O===2?"|":"&";Z.sort();Z=_.D(Z);for(var U=Z.next();!U.done;U=Z.next())H+=U.value+A;if(!N.compoundSignals.get(H)){A=0;Z=[];U=_.D(t);for(var C=U.next();!C.done;C=U.next())C=C.value,A++,_.uI(N,C)||Z.push(C);(O=O===2)&&A>Z.length||!O&&!Z.length?N.signals.push(H):kX0(N,H,O,t,Z)}return H};
kX0=function(N,t,O,H,A){var Z=A.length,U=function(){O||--Z===0?N.processSignal(t):qRf(N,t)};
A=_.D(A);for(var C=A.next();!C.done;C=A.next())N.addListener(C.value,U);N.compoundSignals.set(t,{signals:H,isOnAny:O,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});qRf(N,t)};
qRf=function(N,t){if(!_.uI(N,t)){var O=N.compoundSignals.get(t);if(O&&!O.isTimeoutConditionSatisfied){for(var H=!1,A=0,Z=0,U=_.D(O.signals),C=U.next();!C.done;C=U.next()){var F=C.value;C=!_.uI(N,F);xXQ.has(F)?H=!0:(F=N.compoundSignals.get(F))?C&&!F.isTimeoutConditionSatisfied&&(Z++,O.isInitialized||F.timeoutConditionObservers.push(function(){qRf(N,t)})):C&&A++}O.isInitialized=!0;
O.isOnAny?H&&(O.isTimeoutConditionSatisfied=!0):A===0&&Z===0&&(O.isTimeoutConditionSatisfied=!0);if(O.isTimeoutConditionSatisfied)for(O=_.D(O.timeoutConditionObservers),H=O.next();!H.done;H=O.next())H=H.value,H()}}};
ji.prototype.processSignal=ji.prototype.processSignal;ji.prototype.parkOrScheduleJob=ji.prototype.parkOrScheduleJob;ji.prototype.onAny=ji.prototype.onAny;_.Ba("ytsignals.getInstance",_.iI);ji.prototype.onAny=ji.prototype.onAny;ji.prototype.parkOrScheduleJob=ji.prototype.parkOrScheduleJob;ji.prototype.processSignal=ji.prototype.processSignal;var xXQ=new Set(["eop","eocs","dl","pcl"]);_.kf=new _.dk("MINIPLAYER_SERVICE");var Si,fkp,n4R;Si=function(N,t,O){var H=_.VM.getInstance();if(!akf){var A=new rbz;var Z=void 0,U=_.Ro("ID_TOKEN");U&&A.isAvailable()&&(Z=new ID(A,"yt-queue"+U));akf=new YRp(Z)}A=akf;Z=_.iI();this.JSC$13238_actionRouter=H;this.JSC$13238_pageManager=N;this.playlistManager=t;this.JSC$13238_playlistNetworkManager=O;this.storage=A;this.signals=Z;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.h7=function(){if(!fkp){var N=_.cY(),t=N.resolve(_.BY(_.J4)),O=N.resolve(_.BY(_.u8)),H=N.resolve(_.BY(_.$8));N=N.resolve(_.Sc);fkp=new Si(t,H,new Z_l(O,N))}return fkp};
n4R=function(N,t,O){if(O){var H;if(((H=N.responsePlaylistData)==null?void 0:H.playlistId)!==O)return}N.responsePlaylistData&&(O=lUt(t,N.responsePlaylistData),N.responsePlaylistData=(0,_.WW.unsafeClone)(N.responsePlaylistData),mRt(N.responsePlaylistData,O));O=N.temporaryItems.findIndex(function(A){return A.videoId===t});
O>-1&&N.temporaryItems.splice(O,1);_.Ma(N,_.bI(N,N.response?N.response.autoplayRenderer:void 0))};
_.Wi0=function(N,t){if(N.responsePlaylistData){var O=Q2g(t,N.responsePlaylistData);mRt(N.responsePlaylistData,O);if(N.queueProxy){var H=N.queueProxy;O<0||(H.videoIds.splice(O,1),O<H.currentIndex&&H.JSC$13184_setCurrentIndex(H.currentIndex-1),H.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:t}),gy(H))}}_.Ma(N,_.bI(N,N.response?N.response.autoplayRenderer:void 0))};
Si.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Ma(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Si.prototype.setPlaylistData=function(N,t,O){this.temporaryItems=[];this.listId=N;this.responsePlaylistData=t;_.Ma(this,_.bI(this,O))};
var r9Z=function(N){return(N==null?0:N.playlistId)?N.playlistId:"PPSV"},IkX=function(N){return N&&N.playlistId?N.playlistId==="PPSV"?!0:Quv(_.v5().getState().entities,N.playlistId):!1};
Si.prototype.isPlayingOfflineVideo=function(){return this.response?IkX(this.response):!1};
Si.prototype.closeMiniplayer=function(N){var t=this.queueProxy&&this.queueProxy.size()<=1,O=_.cY().resolve(_.kf);if(!this.queueProxy||t)this.queueProxy&&this.clearQueue(),O.close(!0);else{O.pipController.getWindow()&&window.focus();t=this.responsePlaylistData;var H=this.temporaryItems.length+(t&&t.contents?t.contents.length:0);t=_.CJ("QUEUE_CLEARED_UNPLURALIZED")||_.KJ("QUEUE_CLEARED",H);t=_.s_(t);O=_.CJ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");H=_.CJ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.KJ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",H);var A=_.CJ("MINIPLAYER_CLOSE",void 0,"Close"),Z=_.CJ("CANCEL",void 0,"Cancel");_.RB(this.JSC$13238_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.E_(O),dialogMessages:[_.E_(H)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.E_(A),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
t]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.E_(Z)}}}}}}],N)}};
_.bI=function(N,t){var O={},H=N.response;O.autoplayRenderer=t;if(!N.responsePlaylistData&&!N.temporaryItems.length)return!H||!H.hasRelatedVideoData&&_.h("kevlar_prefetch_data_augments_network_data")||(O.playerData={rvs:H.relatedVideoArgs,endScreenRenderer:H.endScreenRenderer}),O;O.playerData={};if(N.index===void 0)return _.R0(Error("Pf")),O;O.panel=N.responsePlaylistData?(0,_.WW.unsafeClone)(N.responsePlaylistData):{titleText:_.E_(_.CJ("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
t=O.panel;if(t.contents)for(var A=_.D(N.temporaryItems),Z=A.next();!Z.done;Z=A.next())t.contents.push({playlistPanelVideoRenderer:Z.value});N.queueProxy&&H&&H.playingVideo&&H.playingVideoId&&!IUS(H.playingVideoId,O.panel)&&(t=H.playingVideo,A=O.panel,Z=N.index,A.contents&&A.contents.splice(Z===void 0?0:Z,0,{playlistPanelVideoRenderer:t}));H&&H.playingVideoId&&(t=N.index,A=O.panel,t=!A.contents||t>=A.contents.length?void 0:A.contents[t].playlistPanelVideoRenderer,t&&t.videoId===H.playingVideoId||(t=
lUt(H.playingVideoId,O.panel),N.index=t!==-1?t:N.index?N.index-1:0));t=rkv(N.index+1,O.panel);A=void 0;N.index>0&&(A=rkv(N.index-1,O.panel));if(A||t)O.autoplayRenderer=fUM(t,A,O.autoplayRenderer);!t&&(H==null?0:H.relatedVideoArgs)&&(O.playerData.rvs=H.relatedVideoArgs);H=H?H.playlistIndexOffset:0;N.queueProxy?RMM(O.panel,N.index,H,WO9,!0,!0,!0):RMM(O.panel,N.index,H);O.playerData.playlistPanelRenderer=O.panel;return O};
Si.prototype.openToast=function(N){_.cY().resolve(_.kf).openToast(N,_.CJ("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Si.prototype.isMiniplayerActive=function(){return _.cY().resolve(_.kf).isMiniplayerActive()};
_.Ma=function(N,t){N.playlistManager.setAutoplayRenderer(t.autoplayRenderer||null);N.playlistManager.setPlaylistData(t.panel||null);t.playerData&&N.playlistManager.setPlayerPlaybackControlData(t.playerData)};var Jkl="#";var lkX={},QFp={},mXS={},E4S={},GXE={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:(lkX.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",lkX),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:(QFp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",QFp),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:(mXS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",mXS),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:(E4S.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",E4S),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 P2N=[{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:GXE},{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:GXE}}];var M_S;_.U3=[[["bXdyc2tpbmQjaWFqMTJxbnM=","Mm12YWx1ZSM2OWk2dHQycXdp"],"NGRBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCM4eGFoa2F5MTZq"]];
M_S=[[["aW1hcnkjZXdrNno4ajJ3eW8ycHI=",null,null],[null,["bi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciN0ZnA2YXFpaGY3dWd5dGQtdHdvLWNvbHVt","ZSNlMGtnMHdlYTA4aXVzdHlsZS1zY29w"],null],["ZCN6YXFxNWxyengwNHhtYXN0aGVhZC1h",["M2hoeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNub2ExbDU1ZDk="],null],[null,["MXlneXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNlenNmbGc5Njc=","ZSNod2plbTM1dGNzaTJzdHlsZS1zY29w"],null],[null,["eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciN4czR2OXJ0dTc3YWw=","ZSNydWc5Mnd1ZDN1cXRzdHlsZS1zY29w"],null],[null,["YzJkY3h5dGQtYWQtc2xvdC1yZW5kZXJlciM3ZGhlbHZm"],
null]],[["ZHMjYXpuaWhteHdvdWJzcGxheWVyLWE=",null,null]]];_.Dm=["M3ltOTRmN3N2Nmdsb2JhbENhbGxiYWNrcyN5aQ==","NTg3am9uQWJub3JtYWxpdHlEZXRlY3RlZCMxa3o2cmM2bw==","U2tpcCNhZDlnODVkNHJranpvbkFk","NDl5c2xocmF3X3BsYXllcl9yZXNwb25zZSN4NTFxN2k=","U2xvdHMjZjVzbjhnc3JucnptYWQ="];_.pZ="M3ltOTRmN3N2Nmdsb2JhbENhbGxiYWNrcyN5aQ== NTg3am9uQWJub3JtYWxpdHlEZXRlY3RlZCMxa3o2cmM2bw== U2tpcCNhZDlnODVkNHJranpvbkFk NDl5c2xocmF3X3BsYXllcl9yZXNwb25zZSN4NTFxN2k= dF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNvbmQ1anB5Yjl0Ym53ZWJfcGxheWxpcw== YV9lZiN2ZXIyY3c4YWtpcHhhYl9z U2xvdHMjZjVzbjhnc3JucnptYWQ=".split(" ");var LZ;LZ=function(N,t,O){this.mOR=N;this.fAL=t;this.dJi=O};
_.m7l=[new LZ("b.f_",!1,0),new LZ("j.s_",!1,2),new LZ("r.s_",!1,4),new LZ("e.h_",!1,6),new LZ("i.s_",!0,8),new LZ("s.t_",!1,10),new LZ("p.h_",!1,12),new LZ("s.i_",!1,14),new LZ("f.i_",!1,16),new LZ("a.b_",!1,18),new LZ("a.o_",!1),new LZ("g.o_",!1,22),new LZ("p.i_",!1,24),new LZ("p.m_",!1),new LZ("n.k_",!0,20),new LZ("i.f_",!1),new LZ("a.s_",!0),new LZ("m.c_",!1),new LZ("n.h_",!1,26),new LZ("o.p_",!1),new LZ("m.p_",!0,28),new LZ("o.a_",!1),new LZ("d.p_",!1),new LZ("e.i_",!1)].reduce(function(N,t){N[t.mOR]=
t;return N},{});var RqX=function(){};
RqX.prototype.flush=function(N,t){N=N===void 0?[]:N;t=t===void 0?!1:t;if(_.h("enable_client_streamz_web")){N=_.D(N);for(var O=N.next();!O.done;O=N.next())O=jaY(O.value),this.rootSpec&&_.L8(O,2,this.rootSpec),O={serializedIncrementBatch:_.wi(O.JSC$9762_serializeBinary())},_.E7("streamzIncremented",O,{sendIsolatedPayload:t})}};
var Ool=function(){};
_.p(Ool,RqX);var v4_=function(N){var t=new FP0;var O=new UYB;O=_.Xa(O,1,"botguard");N=_.Xa(O,2,N);this.rootSpec=_.zN(t,1,dYa,N)};
_.p(v4_,RqX);var AG,J9S=new Map;var zvx,A6v,gpS,D7z,K$v,Sfv,aFM,io9;zvx=2;A6v=2;gpS=2;D7z=2;K$v=2;Sfv=2;aFM=2;io9=new dVZ;var sFa,Nx_;sFa=function(){this.ongoingFlowNonces=new Map};
_.Fi=function(){Nx_||(Nx_=new sFa);return Nx_};
_.KT=function(N,t,O){return{eventType:{flowEventNamespace:N,flowEventType:t},metadata:O,statusCode:void 0,csn:void 0,can:void 0}};
_.GUp=function(N,t){var O=_.Fi(),H=twa(O,t,!0);O.logFlowEvent(N,t,H,void 0)};
sFa.prototype.logFlowEvent=function(N,t,O,H){t={flowNonce:O||twa(this,t),flowType:t,flowEventType:N.eventType};N.metadata&&(t.flowMetadata=N.metadata);N.statusCode!==void 0&&(t.flowEventStatus=N.statusCode);N.csn&&(t.csn=N.csn);N.can&&(t.can=N.can);_.E7("flowEvent",t,H)};
var twa=function(N,t,O){O=O===void 0?!1:O;var H=N.ongoingFlowNonces.get(t);if(!H||O)H=M0(16),N.ongoingFlowNonces.set(t,H);return H};_.Ouf=new F8E;var sfx={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var zP=function(N,t,O,H,A,Z,U){O=O===void 0?!1:O;H=H===void 0?!1:H;Z=Z===void 0?_.h7():Z;this.hasRun=!1;this.wrc=N;this.xzG=t;this.nw9=O;this.fromHistory=H;this.previousVideoId=A;this.q3o=Z;this.tempData=U;this.crg=new _.g2r};
_.p(zP,w_);zP.prototype.validate=function(N){return!(!N.data.playerResponse||N.data.page!=="watch"&&N.data.page!=="learning_journey_watch"&&N.data.page!=="shorts"||this.hasRun)};
zP.prototype.handle=function(N){var t=this,O=_.M(N.endpoint,_.rN),H=_.M(N.endpoint,_.jc);if(_.h("kevlar_continue_playback_without_player_response")&&(O==null?0:O.videoId)&&this.previousVideoId&&(O==null?void 0:O.videoId)===this.previousVideoId&&(O==null?0:O.continuePlayback)&&!this.fromHistory)this.wrc.resolve();else{var A={};O?A.watch_endpoint=O:H&&(A.watch_endpoint=H,H.endTimeSeconds&&(A.end=H.endTimeSeconds));N.data.page==="watch"?(N.data.filler||this.nw9||(_.YY("cfg"),_.VM.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(A,HuS(this,N.endpoint)),_.h("enable_masthead_quartile_ping_fix")&&Object.assign(A,A1Y(this)),Object.assign(A,void 0),N.data.forceExternalPlaylist&&(A.external_list=!0)):N.data.page==="shorts"?_.VM.getInstance().triggerAction("yt-start-loading-shorts"):N.data.page==="learning_journey_watch"&&_.VM.getInstance().triggerAction("yt-start-loading-learning-journey");if(O=this.xzG()){try{O.loadVideoWithPlayerResponse(N.data.playerResponse,A),O.getPlayerPromise().then(this.wrc.resolve)}catch(Z){_.R0(Z),
this.wrc.resolve()}this.hasRun=!0;O.getPlayerPromise().then(function(Z){Z.addEventListener("onAbnormalityDetected",function(){var U=N.data.playerResponse,C=Z.getVideoData().cpn;aFM=0;_.o4Z=C;if(C=Qfp(U))t.crg.increment("IN_PLAYER"),_.dY(5),_.h("ab_st_vid_ks")?Z.pauseVideo(!0):Z.stopVideo(),U.playabilityStatus=Object.assign({},U.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:C}}),U.videoDetails=void 0,_.VM.getInstance().triggerOptionalAction("yt-updated-playability-status",
U.playabilityStatus)})})}else _.J_(Error("Sf"))}};
var HuS=function(N,t){var O=_.M(t,_.rN);if(t&&O&&O.playlistId&&O.videoId&&(N=N.q3o,N.queueProxy?(N=N.queueProxy,O=N.listId===O.playlistId?N.attributionData.get(O.videoId):void 0):O=void 0,O))return{queue_info:O}},A1Y=function(N){var t;
if((t=N.tempData)==null?0:t.adpings)return{adpings:N.tempData.adpings}};var Y8=function(N,t,O){this.hasRun=!1;this.kDd=N;this.sCY=t;this.l8L=O};
_.p(Y8,w_);Y8.prototype.validate=function(N){return!!_.WW.getValueByKeys.apply(null,[N.data].concat(_.W6(zqp)))};
Y8.prototype.handle=function(N){var t=this;this.kDd.promise.then(function(){var O=N.data;var H=_.WW.getValueByKeys.apply(null,[O].concat(_.W6(uva))),A=_.WW.getValueByKeys.apply(null,[O].concat(_.W6(phR))),Z=_.WW.getValueByKeys.apply(null,[O].concat(_.W6(hqB)));var U=(U=_.WW.getValueByKeys.apply(null,[O].concat(_.W6(SRR))))?{videoId:U.videoId,thumbnail:U.thumbnail,title:U.title?_.E_(U.title):void 0,shortBylineText:U.author?_.E_(U.author):void 0}:void 0;var C=void 0;_.h("web_get_playlist_id_from_current_endpoint_ks")||
(C=_.WW.getValueByKeys.apply(null,[O].concat(_.W6(MZY))));var F=_.WW.getValueByKeys.apply(null,[O].concat(_.W6(LiE))),g=_.WW.getValueByKeys.apply(null,[O].concat(_.W6(bjf))),B=!!F||!!g&&!!g.results&&g.results.length>0,c=0;A&&A.currentIndex&&A.localCurrentIndex&&(c=A.currentIndex-A.localCurrentIndex);A&&A.playlistId&&(C=A.playlistId);O={rawResponse:O,autoplayRenderer:H,hasRelatedVideoData:B,playingVideo:U,playingVideoId:Z,playlistPanelRenderer:A,playlistId:C,playlistIndex:A&&A.currentIndex,relatedVideoArgs:F,
endScreenRenderer:g,playlistIndexOffset:c};a:{H=t.l8L;A=t.sCY;H.response=O;if(IkX(O))H.downloadPlaylistProxy&&H.downloadPlaylistProxy.getPlaylistId()===r9Z(O)||(H.downloadPlaylistProxy=new dXa(r9Z(O),H.setPlaylistData.bind(H),H.isPlayingOfflineVideo.bind(H))),H.responsePlaylistData=H.downloadPlaylistProxy.getPlaylistData(),H.listId=r9Z(O),H.index=0;else if(O.playlistPanelRenderer&&O.playlistId&&O.autoplayRenderer)O.playlistId.startsWith("TLPQ")?H.queueProxy?H.listId===O.playlistId?(H.index=O.playlistIndex,
H.responsePlaylistData=O.playlistPanelRenderer,H.queueProxy.JSC$13184_setCurrentIndex(H.index)):O.playingVideoId&&H.index!==void 0&&A.clientParams.autoSaveToQueue&&(H.index+=1,H.queueProxy.JSC$13184_setCurrentIndex(H.index),H.queueProxy.addVideos([O.playingVideoId],{},H.index)):(H.queueProxy=new _.y6(H.JSC$13238_playlistNetworkManager,O.playlistId,H.setPlaylistData.bind(H),H.clearQueue.bind(H),_.Etv(O.playlistPanelRenderer),H.storage),H.responsePlaylistData=O.playlistPanelRenderer,H.listId=O.playlistId,
H.index=O.playlistIndex):(H.index=O.playlistIndex,H.listId!==O.playlistId&&H.clearQueue(),H.responsePlaylistData=O.playlistPanelRenderer,H.listId=O.playlistId,H.playlistProxy=new ijQ(H.JSC$13238_playlistNetworkManager,O.playlistId,H.setPlaylistData.bind(H),_.Etv(O.playlistPanelRenderer)));else if(!H.queueProxy)H.responsePlaylistData=void 0;else if(O.playingVideoId&&A.clientParams.autoSaveToQueue){if(H.index===void 0){_.R0(Error("Of"));H.clearQueue();break a}H.queueProxy.videoIds.includes(O.playingVideoId)||
(H.index+=1,H.queueProxy.JSC$13184_setCurrentIndex(H.index),H.queueProxy.addVideos([O.playingVideoId],{},H.index))}_.Ma(H,_.bI(H,H.response.autoplayRenderer))}})};var ZuR=function(N,t){t=t===void 0?_.h7():t;En.call(this);this.y5.push(new Y8(this.nH,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},t));this.y5.push(new zP(this.nH,N,!1,!1));_.h("web_response_commands_chunk_processor")&&this.y5.push(new Ga)};
_.p(ZuR,En);ZuR.prototype.processChunk=function(N){N&&N.data.player===void 0&&this.nH.resolve();En.prototype.processChunk.call(this,N)};var au=function(N,t){N=N===void 0?{layer:0}:N;this.hasRun=!1;this.createScreenConfig=N;this.xfR=t};
_.p(au,w_);au.prototype.validate=function(N){return!(this.hasRun||!N.endpoint)};
au.prototype.handle=function(N){var t=_.gF(),O,H,A=(H=_.M((O=N.endpoint)==null?void 0:O.commandMetadata,_.Da))==null?void 0:H.rootVe;this.xfR&&A?_.Ws(t,A,this.xfR,this.createScreenConfig):mly(t,N.endpoint,this.createScreenConfig);this.hasRun=!0};var TP=function(N,t){this.hasRun=!1;this.s4L=N;this.previousVideoId=t};
_.p(TP,w_);TP.prototype.validate=function(N){return _.h("kevlar_continue_playback_without_player_response")&&(N=_.M(N.endpoint,_.rN),(N==null?0:N.videoId)&&this.previousVideoId&&(N==null?void 0:N.videoId)===this.previousVideoId&&(N==null?0:N.continuePlayback))?!1:this.s4L.sUc===0};
TP.prototype.handle=function(N){_.VM.getInstance().triggerAction("yt-stop-old-player",N.data,!0)};var Vwa=function(N){N=N===void 0?{layer:0}:N;En.call(this);this.y5.push(new TP(this));this.y5.push(new au(N));this.y5.push(new mX(N))};
_.p(Vwa,En);var PT=function(){w_.apply(this,arguments)};
_.p(PT,w_);PT.prototype.validate=function(N){return!!N.data.preconnect};
PT.prototype.handle=function(N){_.zT("bc");N=_.D(N.data.preconnect);for(var t=N.next();!t.done;t=N.next())t=t.value,(new Image).src=t};var DAY=function(N,t,O,H,A,Z,U){O=O===void 0?{layer:0}:O;Z=Z===void 0?_.h7():Z;En.call(this);if(H)if(A){A=Z;this.y5.push(new Y8(this.nH,t,A));this.y5.push(new PT);var C,F;this.y5.push(new zP(this.nH,N,!1,!((C=t.clientParams)==null||!C.fromHistory),(F=t.clientParams)==null?void 0:F.previousVideoId,A,t.tempData));var g;this.y5.push(new TP(this,(g=t.clientParams)==null?void 0:g.previousVideoId));var B;(B=t.clientParams)!=null&&B.fromHistory||(O.layer||(O=Object.assign({},O,{layer:0})),this.y5.push(new au(O,
U)),this.y5.push(new mX(O)))}else this.y5.push(new Y8(this.nH,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},Z)),this.y5.push(new zP(this.nH,N,!1,!1));else this.y5.push(new TP(this)),this.y5.push(new au(O)),this.y5.push(new mX(O));_.h("web_response_commands_chunk_processor")&&H&&this.y5.push(new Ga)};
_.p(DAY,En);DAY.prototype.processChunk=function(N){N&&N.data.player===void 0&&this.nH.resolve();En.prototype.processChunk.call(this,N)};var UAB=function(){this.hasRun=this.hasRun=!1};
_.p(UAB,w_);UAB.prototype.validate=function(N){return!this.hasRun&&!(!N.data.csn||!N.data.rootVe)};
UAB.prototype.handle=function(N){this.hasRun=!0;_.ar(N.data.csn,N.data.rootVe,3)};var CYu=function(N,t,O){O=O===void 0?{layer:0}:O;En.call(this);this.y5.push(new zP(this.nH,N));this.y5.push(new au(O));this.y5.push(new mX(O))};
_.p(CYu,En);var KHZ=function(N,t,O,H,A){O=O===void 0?{layer:0}:O;H=H===void 0?_.h7():H;En.call(this);var Z=!!t&&!!t.clientParams&&!!t.clientParams.miniplayer;Z&&this.y5.push(new UAB);this.y5.push(new Y8(this.nH,t,H));this.y5.push(new PT);var U,C;this.y5.push(new zP(this.nH,N,Z,!((U=t.clientParams)==null||!U.fromHistory),(C=t.clientParams)==null?void 0:C.previousVideoId,H,t.tempData));var F;this.y5.push(new TP(this,(F=t.clientParams)==null?void 0:F.previousVideoId));var g;(g=t.clientParams)!=null&&g.fromHistory||
(O.layer||(O=Object.assign({},O,{layer:Z?3:0})),this.y5.push(new au(O,A)),this.y5.push(new mX(O)));_.h("web_response_commands_chunk_processor")&&this.y5.push(new Ga)};
_.p(KHZ,En);var X9,gP_;X9={};
_.FHp=(X9["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},X9["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},X9["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},X9["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},X9["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},X9["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},X9["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},X9);_.x8=new _.sv("yt-edu");_.dAB=function(){this.JSC$13336_eduDisplayedThisLoad_={}};
gP_=function(N){var t=_.dAB.getInstance();var O=_.uP("kevlar_tooltip_impression_cap");t=O&&parseInt(_.x8.get(N+"-impression")||0,10)>=O||_.x8.get(N+"-dismissed")?!1:(O=_.FHp[N])&&!t.JSC$13336_eduDisplayedThisLoad_[O.setKey||N]&&(O.titleText&&_.CJ(O.titleText)||O.bodyText&&_.CJ(O.bodyText))?!0:!1;if(!t)return null;t=_.FHp[N];if(!t)return null;O=t.bodyText?_.CJ(t.bodyText):void 0;var H=t.titleText?_.CJ(t.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:t.position,popup:{bubbleHintRenderer:{text:H?
_.E_(H):void 0,detailsText:O?_.E_(O):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.E_(_.CJ("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:N}}]}}}}}}}},{eduImpressionAction:{key:N}}]};
_.Nd(_.dAB);var Rv4=!1;for(var y1B="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),BxE=[],k8=6;k8>=1;k8--)BxE.push({columnCount:k8,query:k8==1?0:k8*2*107-4+32,className:"grid-"+k8+"-columns",width:k8*2*107+"px"});_.qa=function(N){this.actionRouter_=N=N===void 0?_.VM.getInstance():N;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.c1Q(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.c1Q=function(N){var t=N.documentWidth_-(N.miniGuideVisible_?72:0)-(N.guidePersistentAndVisible_?240:0)-(N.persistentPanelVisible_?400:0);return BxE.find(function(O){return t>O.query})};
_.Nd(_.qa);var $AR=function(){var N=this;this.JSC$13348_keyboardInUse=!1;document.addEventListener("keydown",function(){N.onKeydown()});
document.addEventListener("mousedown",function(){N.JSC$13348_keyboardInUse=!1})},j6_;
$AR.prototype.isKeyBoardInUse=function(){return this.JSC$13348_keyboardInUse};
$AR.prototype.onKeydown=function(){this.JSC$13348_keyboardInUse=!0};var iuS,WT;_.fZ=new _.sv("yt-mentions");_.nZ=function(){};
iuS=function(N,t){return WT(t,"drag-to-reorder-edu-displayed")};
WT=function(N,t,O,H,A,Z){O=O===void 0?"OPEN_POPUP_POSITION_TOP":O;if(t){if(_.fZ.get(t))return;_.fZ.set(t,!0,H)}if(A&&Z!==void 0){t=Number(_.fZ.get(A)||0);if(t>=Z)return;_.fZ.set(A,t+1)}return[{openPopupAction:{popupType:"HINT",position:O,popup:{bubbleHintRenderer:{detailsText:N,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Nd(_.nZ);var uTu,SDZ,hsp;uTu=function(N,t,O,H){this.JSC$13358_taskManager_=N;this.onFulfilled_=typeof t==="function"?t:null;this.onRejected_=typeof O==="function"?O:null;this.JSC$13358_context_=H};
SDZ=function(N,t){N.onFulfilled_&&_.MU(N.JSC$13358_taskManager_,function(){N.onFulfilled_.call(N.JSC$13358_context_,t)})};
hsp=function(N,t){N.onRejected_&&_.MU(N.JSC$13358_taskManager_,function(){N.onRejected_.call(N.JSC$13358_context_,t)})};
_.ry=function(N){this.JSC$13361_taskManager_=N;this.callbacks_=[]};
_.ry.prototype.then=function(N,t,O){this.callbacks_.push(new uTu(this.JSC$13361_taskManager_,N,t,O));return this};
_.ry.prototype.onSuccess=function(N){this.callbacks_.forEach(function(t){SDZ(t,N)})};
_.ry.prototype.onFailure=function(N){this.callbacks_.forEach(function(t){hsp(t,N)})};
_.ry.prototype.cancel=function(){this.callbacks_.length=0};
S2S(_.ry);_.t3l=null;_.j9=new _.dk("ACTIVITY_TOKEN");var MwB;_.bl=new _.dk("PAGE_REQUEST_TOKEN");MwB=new _.dk("FETCH_PBJ_TOKEN");_.bur=function(N){if(N.validatedFragments_.length==0)return null;if(!N.mergedPrefetchedData_){for(var t=[],O=_.D(N.validatedFragments_),H=O.next();!H.done;H=O.next()){H=_.D(N.fragmentConfiguration_[H.value].graftedKeys);for(var A=H.next();!A.done;A=H.next())(A=N.prefetchedData_[A.value].trackingParams)&&t.push(A)}N.mergedPrefetchedData_={};Object.assign(N.mergedPrefetchedData_,N.prefetchedData_,{clientSideGrafts:t})}return N.mergedPrefetchedData_};var pj0;_.Iu=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
pj0=function(N,t,O){if(_.O_t(t))return N.prefetchCache_.get(_.H_y(t,O))};_.lI=new _.dk("NAVIGATION_TOKEN");var LHf=function(N){var t=this;var O=O===void 0?V3v():O;var H=H===void 0?_.cY().resolve(_.lI):H;this.onePickCommand=N;this.JSC$13433_playlistNetworkManager=O;this.navigationManager=H;this.videoPickerBuilder=_.AXQ("yt-addtoplaylist");_.ryQ(XCZ(x0Q(POR(this.videoPickerBuilder.setTitle(N.modalTitle).setSize(1E3).addView(qhZ()).addView(kC_())).addView("youtube"),N.selectButtonLabel)),function(A){t.handleAction(A)})};
LHf.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
LHf.prototype.handleAction=function(N){var t=this;if(N&&this.onePickCommand.listId&&N.action==="picked"&&N.docs){var O=[];N.docs.forEach(function(H){O.push({addedVideoId:H.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13433_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,O).then(function(){_.h("playlist_add_video_hard_reload_killswitch")?t.navigationManager.reload():zsY(t.navigationManager)})}};var YD0=function(){if(this.constructor===YD0)throw new TypeError("Uf");};
_.V=YD0.prototype;_.V.dispose=function(){};
_.V.disconnect=function(){};
_.V.reconnect=function(){};
_.V.observe=function(N,t,O){return{element:N,option:O}};
_.V.unobserveByKey=function(){};var DGG=function(N,t){t=t===void 0?0:t;YD0.call(this);this.viewroot=N;this.defaultPrescanHeight=t;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),N?{root:N,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.p(DGG,YD0);_.V=DGG.prototype;_.V.dispose=function(){this.disconnect();this.handlers.clear()};
_.V.disconnect=function(N){this.isConnected=!1;this.pauseObservingUntilReconnect=N===void 0?!1:N;this.observer.disconnect();N=_.D(this.prescanObservers.values());for(var t=N.next();!t.done;t=N.next())t.value.disconnect()};
_.V.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var N=_.D(this.handlers),t=N.next();!t.done;t=N.next()){var O=_.D(t.value);t=O.next().value;var H=O.next().value;O=!1;H=_.D(H.keys());for(var A=H.next();!A.done;A=H.next())if((A=A.value)&&A.state==="prescan"){O=!0;break}O&&aVa(this,t).observe(t);this.observer.observe(t)}}};
_.V.handleObserveEvent=function(N){N=_.D(N);for(var t=N.next();!t.done;t=N.next()){t=t.value;var O=this.handlers.get(t.target);if(O){var H=t.isIntersecting;O=_.D(O);for(var A=O.next();!A.done;A=O.next()){var Z=_.D(A.value);A=Z.next().value;Z=Z.next().value;A&&(A.state==="visible"&&H||A.state==="hidden"&&!H)&&(Z(t.target,A.state),A.calledOnce&&this.unobserveByKey({element:t.target,option:A}))}}}};
_.V.handlePrescanEvent=function(N){N=_.D(N);for(var t=N.next();!t.done;t=N.next()){t=t.value;var O=this.handlers.get(t.target);if(O&&t.isIntersecting){O=_.D(O);for(var H=O.next();!H.done;H=O.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;H&&H.state==="prescan"&&(A(t.target,H.state),H.calledOnce&&this.unobserveByKey({element:t.target,option:H}))}}}};
_.V.observe=function(N,t,O){var H=(H=this.handlers.get(N))&&H.has(O)?{element:N,option:O}:void 0;if(H)return H;H={element:N,option:O};this.handlers.has(N)||this.handlers.set(N,new Map);var A=this.handlers.get(N);A&&!A.has(O)&&A.set(O,t);this.pauseObservingUntilReconnect||(O.state==="prescan"&&aVa(this,N).observe(N),this.observer.observe(N));return H};
_.V.unobserveByKey=function(N){var t=this.handlers.get(N.element);if(t&&t.has(N.option)){t.delete(N.option);if(N&&N.option.state==="prescan")for(var O=_.D(this.prescanObservers.values()),H=O.next();!H.done;H=O.next())H.value.unobserve(N.element);t.size===0&&(this.handlers.delete(N.element),this.observer.unobserve(N.element))}};
var aVa=function(N,t){var O=N.defaultPrescanHeight;t.hasAttribute("prescan-height")&&(t=Number(t.getAttribute("prescan-height")),isNaN(t)||(O=t));if(N.prescanObservers.has(O))return N.prescanObservers.get(O);t="-0.1px -0.1px "+O+"px -0.1px";t=new IntersectionObserver(N.handlePrescanEvent.bind(N),N.viewroot?{root:N.viewroot,rootMargin:t}:{rootMargin:t});N.prescanObservers.set(O,t);return t};var TxR=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],wja=function(){var N,t=this;this.JSC$13450_actionRouter=N=N===void 0?_.VM.getInstance():N;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return t.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return t.visibilityObservedElementHandlerKeys}}},esr,Xj_,qDZ;
wja.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.h("kevlar_use_vimio_behavior")&&_.Ro("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=UGl())};
wja.prototype.dispose=function(){this.visibilityMonitor&&_.PG(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
wja.prototype.handleVisibilityRefreshed=function(){for(var N=_.D(this.targetMap.entries()),t=N.next();!t.done;t=N.next()){var O=_.D(t.value);t=O.next().value;O=O.next().value;_.PYE(this,t,O)}};
_.kJy=function(N,t,O){Xj_(N,O);var H=_.xAu(N,t);H.element=O;N.targetedElements.set(O,t);_.PYE(N,t,H)};
Xj_=function(N,t){var O=N.targetedElements.get(t);if(O){var H=N.targetMap.get(O);H&&(delete H.element,N.targetMap.set(O,H));N.targetedElements.delete(t);N.visibilityObserver&&N.visibilityObservedElementHandlerKeys&&(O=N.visibilityObservedElementHandlerKeys.get(t))&&(N.visibilityObserver.unobserveByKey(O),N.visibilityObservedElementHandlerKeys.delete(t))}};
_.PYE=function(N,t,O){var H=O.action,A=O.element;A&&H&&(TxR.includes(t)||_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||N.visibilityMonitor&&N.visibilityMonitor.isNodeVisible(A)?qDZ(N,t,O):N.visibilityObserver&&(N.visibilityObservedElementHandlerKeys||(N.visibilityObservedElementHandlerKeys=new WeakMap),H=N.visibilityObserver.observe(A,function(){qDZ(N,t,O);N.visibilityObservedElementHandlerKeys.delete(A)},{calledOnce:!0,
state:"visible"}),N.visibilityObservedElementHandlerKeys.set(A,H)))};
qDZ=function(N,t,O){var H=O.action;(O=O.element)&&H&&(_.RB(N.JSC$13450_actionRouter,[H],O),N.targetMap.delete(t),N.targetedElements.delete(O),N.triggeredTargets.add(t))};
_.xAu=function(N,t){var O=N.targetMap.get(t);O||(O={},N.targetMap.set(t,O));return O};
_.Q6=function(){esr||(esr=new wja);return esr};var fVa=document.createElement("div");fVa.style.touchAction="pan-down";var CRg=fVa.style.touchAction==="pan-down";var nPE,WHZ;nPE=function(){this.hammerFn=Wp_();this.JSC$13458_screenManager=_.gF();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.UM(83615);_.Iy(this.JSC$13458_screenManager,this.ve);Kuv()};
_.m3=function(){WHZ||(WHZ=new nPE);return WHZ};
nPE.prototype.registerTouchEvents=function(N,t,O){var H=_.E1.apply(3,arguments),A=this.hammerFn(N,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});O&&A.set({touchAction:O});this.nodeManagerMapping.set(N,A);var Z=
Fu9(t);H=_.D(H);for(var U=H.next();!U.done;U=H.next()){U=U.value;if(U.includes("swipe")||U.includes("pinch")||U.includes("pan"))U.includes("swipe")?A.get("swipe").set({enable:!0,direction:Z,velocity:.2}):U.includes("pinch")?A.get("pinch").set({enable:!0}):U.includes("pan")&&(A.get("pan").set({enable:!0,direction:Z}),A.get("swipe").set({enable:!0,direction:Z,velocity:.2}),A.get("swipe").recognizeWith("pan"));r1f(this,N,A,U)}};
var r1f=function(N,t,O,H){O.on(H,function(A){if(H.includes("pinch"))N.lastPinchTime=Date.now();else if(H.includes("swipe")&&Date.now()-N.lastPinchTime<400)return;A.pointerType!=="mouse"&&(A=H==="doubletap"?{coordinates:A.center}:H.includes("pan")?A:H.includes("swipe")?{target:A.target}:{},t.dispatchEvent(new CustomEvent(H,{bubbles:!0,composed:!0,detail:A})))})};
nPE.prototype.unregisterTouchEvents=function(N){var t=_.E1.apply(1,arguments),O=this.nodeManagerMapping.get(N);if(O){t=_.D(t);for(var H=t.next();!H.done;H=t.next())O.off(H.value);this.nodeManagerMapping.delete(N);N.style.touchAction="unset"}};var IVp=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var dGN=null;_.hG={getLocalStorage:_.a5(function(){try{var N=new WI9;var t=N.isAvailable()?N:null}catch(O){return null}return t?new _.p0(t):null}),
getSessionStorage:_.a5(function(){var N=new rbz;return N.isAvailable()?new _.p0(N):null})};var lVp=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},TVO=function(){lVp.instance||(lVp.instance=new lVp);
return lVp.instance},wKv=function(N){var t=N.networkEvents;
N.networkEvents=[];return _.h("enable_network_monitoring")?t:[]};var Q6Z;Q6Z={};_.mAZ=$2("yt-serviceworker-metadata",{objectStores:(Q6Z.auth={addedAtVersion:1},Q6Z["resource-manifest-assets"]={addedAtVersion:2},Q6Z),shared:!0,upgrade:function(N,t){t(1)&&t_(N,"resource-manifest-assets");t(2)&&t_(N,"auth")},
version:2});var jR4=self.location.origin+"/";i_M([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);i_M([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);i_M([/\.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\//]);i_M([/purge_shell=1/]);var EPQ=void 0;EPQ=EPQ===void 0?[]:EPQ;
for(var GJy=[],Rs_=_.D(jXQ),vPr=Rs_.next();!vPr.done;vPr=Rs_.next())GJy.push({key:vPr.value});for(var J10=_.D(EPQ),oPr=J10.next();!oPr.done;oPr=J10.next())GJy.push(oPr.value);var s6X,LT=_.H4==null?void 0:(s6X=_.H4.performance)==null?void 0:s6X.memory,hWM=!1,eWS={},pKt={},zV={},YH=navigator;var Er=function(N){this.JSC$13503_expiringStorage=new WY(N)};
Er.prototype.set=function(N,t,O){O=O!==void 0?Date.now()+O:void 0;this.JSC$13503_expiringStorage.set(N,t,O)};
Er.prototype.get=function(N){return this.JSC$13503_expiringStorage.get(N)};
Er.prototype.remove=function(N){this.JSC$13503_expiringStorage.remove(N)};var Wu4=_.mp(["https://www.youtube.com/",""]),rXl=_.mp(["https://studio.youtube.com/",""]),Eeg="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",lvS=null,oeN;var N1S=_.mp(["https://www.youtube.com/iframe_api"]),GP=function(){this.playerResolver_=_.lj();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.YG;this.playbackDurationSeconds_=0},t5y=function(N){var t=function(){return window.YT&&typeof window.YT.ready==="function"};
if(t())return _.Hc(window.YT);var O=_.lj(),H=_.Tu("SCRIPT");H.onload=H.onreadystatechange=function(){H.readyState&&H.readyState!="loaded"&&H.readyState!="complete"||(H.onload=_.YG,H.onreadystatechange=_.YG,H.onerror=_.YG,t()?O.resolve(window.YT):O.reject(new _.fF("Failed to load the iframe player library","script.onload",H.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
H.onerror=function(A){H.onload=_.YG;H.onreadystatechange=_.YG;H.onerror=_.YG;O.reject(new _.fF("Failed to load the iframe player library","script.onerror",A&&A.target&&A.target.src))};
_.UG(H,_.ju(N1S));N.insertBefore(H,N.firstChild);return O.promise},O5R=function(N,t,O){var H,A;
_.K(function(Z){switch(Z.nextAddress){case 1:return N.playbackEndedCallback_=O,_.Mo(Z,2),Z.yield(t5y(t.parentElement||null),4);case 4:H=Z.yieldResult;_.Do(Z,3);break;case 2:return A=_.ax(Z),A instanceof _.fF&&A.args&&A.args[0]=="script.onerror"?_.J_(A):_.R0(A),Z.return();case 3:H.ready(function(){return new H.Player(t,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:N.onPlayerReady_.bind(N),onStateChange:N.onPlayerStateChange_.bind(N),
onCueRangeExit:N.onCueRangeExit_.bind(N)}})}),_.Ty(Z)}})};
_.V=GP.prototype;_.V.getPlayerPromise=function(){return this.playerPromise_};
_.V.onPlayerReady_=function(N){this.playerResolver_.resolve(N.target)};
_.V.onPlayerStateChange_=function(N){if(N.data==YT.PlayerState.PLAYING){N=N.target;var t=N.getCurrentTime();N.addCueRange("playback",t,t+this.playbackDurationSeconds_)}};
_.V.onCueRangeExit_=function(N){N.data=="playback"&&(N.target.stopVideo(),this.playbackEndedCallback_())};
_.V.stopVideo=function(){this.playerPromise_.then(function(N){N.stopVideo()})};
var H5_=function(N){N.playerVars_&&N.playerPromise_.then(function(t){typeof t.cueVideoByPlayerVars!="function"?_.J_(new _.fF("vmh: player API not ready","cueVideoByPlayerVars",typeof t.cueVideoByPlayerVars)):t.cueVideoByPlayerVars(N.playerVars_)})};
GP.prototype.playVideo=function(){var N=this;this.playerVars_&&this.playerPromise_.then(function(t){typeof t.loadVideoByPlayerVars!="function"?(t=new _.fF("vmh: player API not ready","loadVideoByPlayerVars",typeof t.loadVideoByPlayerVars),_.R0(t)):t.loadVideoByPlayerVars(N.playerVars_)})};
var A0r=function(N,t,O,H,A){t&&(O===void 0&&(O=0),H===void 0&&(H=0),N.playbackDurationSeconds_=H/1E3,N.playerVars_={adformat:"17_8",videoId:t,suggestedQuality:"hd720",startSeconds:O/1E3,player_params:A})};
GP.prototype.mute=function(){this.playerPromise_.then(function(N){N.mute()})};
GP.prototype.unMute=function(){this.playerPromise_.then(function(N){N.unMute()})};var ZqG=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Ru;Ru=function(){this.tokenJars={};if(this.cookiesEnabled=_.xv()){var N=_.PY.get("CONSISTENCY",void 0);N&&Z5Q(this,{encryptedTokenJarContents:N})}};
_.DPp=function(){Ru.instance||(Ru.instance=new Ru);return Ru.instance};
Ru.prototype.handleResponse=function(N,t){if(!t)throw Error("Zf");var O,H;t=((O=t.innerTubeRequest.context)==null?void 0:(H=O.request)==null?void 0:H.consistencyTokenJars)||[];var A;(N=(A=N.responseContext)==null?void 0:A.consistencyTokenJar)&&this.replace(t,N)};
Ru.prototype.replace=function(N,t){N=_.D(N);for(var O=N.next();!O.done;O=N.next())delete this.tokenJars[O.value.encryptedTokenJarContents];Z5Q(this,t)};
var Z5Q=function(N,t){if(t.encryptedTokenJarContents&&(N.tokenJars[t.encryptedTokenJarContents]=t,typeof t.expirationSeconds==="string")){var O=Number(t.expirationSeconds);setTimeout(function(){delete N.tokenJars[t.encryptedTokenJarContents]},O*1E3);
N.cookiesEnabled&&_.Xe("CONSISTENCY",t.encryptedTokenJarContents,O,void 0,!0)}};var V5B,vT;V5B=window.location.hostname.split(".").slice(-2).join(".");_.Wi=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var N=_.Ro("LOCATION_PLAYABILITY_TOKEN");_.Ro("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Dr0(this))&&(N=this.localStorage.get("yt-location-playability-token"));N&&(this.locationPlayabilityToken=N,this.mostRecentPosition=void 0)};
_.Wi.getInstance=function(){vT=_.s2("yt.clientLocationService.instance");vT||(vT=new _.Wi,_.Ba("yt.clientLocationService.instance",vT));return vT};
_.Wi.prototype.setLocationOnInnerTubeContext=function(N){N.client||(N.client={});if(this.mostRecentPosition)N.client.locationInfo||(N.client.locationInfo={}),N.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),N.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),N.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),N.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)N.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Wi.prototype.handleResponse=function(N){var t;N=(t=N.responseContext)==null?void 0:t.locationPlayabilityToken;N!==void 0&&(this.locationPlayabilityToken=N,this.mostRecentPosition=void 0,_.Ro("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Dr0(this))&&this.localStorage.set("yt-location-playability-token",N,15552E3):_.Xe("YT_CL",JSON.stringify({loctok:N}),15552E3,V5B,!0))};
var Dr0=function(N){return N.localStorage===void 0?new _.sv("yt-client-location"):N.localStorage};
_.Wi.prototype.clearLocationPlayabilityToken=function(N){N==="TVHTML5"?(this.localStorage=Dr0(this))&&this.localStorage.remove("yt-location-playability-token"):_.Ppp("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Wi.prototype.getCurrentPositionFromGeolocation=function(){var N=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var t=!1,O=1E4;_.Ro("INNERTUBE_CLIENT_NAME")==="MWEB"&&(t=!0,O=15E3);return new Promise(function(H,A){navigator.geolocation.getCurrentPosition(function(Z){N.mostRecentPosition=Z;H(Z)},function(Z){A(Z)},{enableHighAccuracy:t,
maximumAge:0,timeout:O})})};
_.Wi.prototype.createUnpluggedLocationInfo=function(N){var t={};N=N.coords;if(N==null?0:N.latitude)t.latitudeE7=Math.floor(N.latitude*1E7);if(N==null?0:N.longitude)t.longitudeE7=Math.floor(N.longitude*1E7);if(N==null?0:N.accuracy)t.locationRadiusMeters=Math.round(N.accuracy);return t};
_.Wi.prototype.createLocationInfo=function(N){var t={};N=N.coords;if(N==null?0:N.latitude)t.latitudeE7=Math.floor(N.latitude*1E7);if(N==null?0:N.longitude)t.longitudeE7=Math.floor(N.longitude*1E7);return t};var Urp=function(N,t){var O=PC();N||(N="unknown");t||(t="unknown");N="MAIN_APP_WEB_PAGE_TYPE_"+N.toUpperCase();N in PAa||(N="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");t="MAIN_APP_WEB_REQUEST_TYPE_"+t.toUpperCase();t in Xsy||(t="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.FQ(O,{mainAppWeb:{pageType:N,requestType:t,isShellLoad:_.vZ("IS_SHELL_LOAD",!1)}})},CV0={start:function(){_.FQ(b7z(),{mainAppWeb:_.rY()})},
success:function(){_.dP(b7z(),"SUCCESS")},
failure:function(){_.dP(b7z(),"FAILURE")},
cancelled:function(){_.dP(b7z(),"CANCELLED")}};var Kyf,FyB,dPQ;Kyf=_.mp(["/sw.js"]);FyB=_.mp(["/sw.js?0"]);_.dra=_.ju(Kyf);dPQ=_.ju(FyB);var gNf=function(){var N=Error.apply(this,arguments);this.message=N.message;"stack"in N&&(this.stack=N.stack)};
_.p(gNf,Error);_.QE.prototype.load=function(N){this.megabloxUrl_=_.Ro("YPC_MB_URL");_.XU(this.megabloxUrl_,(0,_.qn)(function(){N&&N()},this))};
_.nhy=function(N,t,O,H,A,Z,U,C,F,g,B){_.y3t(F);N.load((0,_.qn)(function(){try{var c=Z?Z:_.Ro("HL"),u=_.Ro("SESSION_INDEX");_.Hey("client",function(){paa("59",{helpCenterPath:"/youtube",locale:c,window:window}).JSC$10130_loadChatSupport({authuser:String(u)})})}catch(S){throw II(10,B,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),A&&A(S),_.R0(S),S;
}y0B(this,t,O,H,A,Z,U,C,F,g,B)},N))};
_.QE.prototype.openFixFlowDialog=function(N,t,O,H){this.load((0,_.qn)(function(){try{B1X(this,_.s2("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(N).withIntegratorCallback(t).load(O,H)}catch(A){throw _.R0(A),A;}},this))};
var B1X=function(N,t,O,H){var A=t.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.h("enable_window_constrained_buy_flow_dialog")&&(A=A.usingPopupStyle(_.s2("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));H&&(A=A.usingCloseCallback(H));t.bootstrap.fromPaymentsUrl(N.megabloxUrl_);N=t.bootstrap.asMashupMode(A);O=O?O:_.Ro("HL");N.usingGaiaIndex(_.Ro("SESSION_INDEX")).usingLocale(O).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.h("enable_google_payments_buyflow_material2_style_web")?
N.usingStyle(":m2;pc=#444;ac=#065fd4"):N.usingStyle(":md;pc=#444;ac=#065fd4");return N},y0B=function(N,t,O,H,A,Z,U,C,F,g,B){try{var c=_.s2("payments.business.integration");
if(!c)throw new gNf("payments.business.integration is undefined");var u=c.standaloneContextAuthId.forUserId(),S=B1X(N,c,Z,function(){c3O(!1);C&&C()});
U&&S.usingServerAnalyticsEventHandler(U);var b=S.inStandaloneContext(u).buyFlow(function(z){if(z&&(!z.integratorData||z.integratorData===""||z.error))if(z.error!=null)if(String(z.error)==="-1")_.Bnx(F);else{var w=String(z.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";II(10,B,w,z.debugCode);_.l8(w,F,z.debugCode);w=new _.fF("PAYMENT_ERROR_MESSAGE::"+z.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+z.internalErrorDetails);
_.R0(w)}else II(10,B,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.l8("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",F,"EMPTY_INTEGRATOR_DATA"),_.R0(Error("bg"));O&&(c3O(!1),O(z))}).withEncryptedParameters(t);
g&&b.withClientParameters(LGY(_.qBg(g)));b.load(function(){II(24,B);_.aX("ttc",void 0,"commerce_transaction");pJ("commerce_transaction");H&&(H(),c3O(!0))},function(z){if(z==null?0:z.debugCode)var w=z==null?void 0:z.debugCode;
else if(!z||(z==null?0:z.debugCode))w="EMPTY_LOAD_FAILURE_ERROR",_.R0(Error(w));else{w="EMPTY_LOAD_FAILURE_DEBUG_CODE";var P=new _.fF("LOAD_FAILURE:"+z.message," DEBUG_CODE:"+w);_.R0(P)}II(10,B,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",w);_.l8("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",F,w);_.R0(z);A&&A(z)})}catch(z){throw z instanceof gNf&&(II(10,B,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),A&&A(z)),_.R0(z),z;
}};var c0S;c0S=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.k3t=function(N,t){t=t===void 0?!1:t;N=c0S.test(N)?_.wD(N):null;!t&&window.payments||!N?(N=_.lj(),t=N.promise,N.resolve()):t=_.dT_(N,{attributes:{"data-payments-main":"",id:"payment-lib"}});return t};var $ra;$ra=_.mp(["//www.googletagmanager.com/gtm.js?id=",""]);_.J7=function(N,t){_.t5(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:t}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Ro("GL")}),t=_.Tu("SCRIPT"),t.async=!0,_.UG(t,_.ju($ra,N)),t.id="gtm",N=document.getElementsByTagName("script"),N.length==0?document.head.appendChild(t):(N=N[0],N.parentNode.insertBefore(t,N)))};
_.ou=function(N){if(N=JSON.parse(N))window.dataLayer=window.dataLayer||[],window.dataLayer.push(N)};var j9Q,i5B;j9Q=_.mp(["https://clients2.google.com/gr/gr_sync.js"]);_.X$x=function(){};
_.X$x.prototype.init=function(){if(i5B()){var N=_.lj();N.resolve();return N.promise}return _.dT_(_.ju(j9Q)).then(function(){if(!i5B())throw Error("cg");},function(){throw Error("dg");
})};
_.xMy=function(){if(!i5B())return"";var N=window.google.gr;N.init({async:{schedule:"sync"},merchantId:"youtube"});N.start();N=N.finish();return N==null?"":N};
i5B=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.k=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.p(_.k,PolymerFakeBaseClassWithoutHtml);_.$q=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.p(_.$q,PolymerFakeBaseClassWithoutHtml);var $Pt=window.ShadyDOM;var tdv,sO9,H6N,AfG,VdN,Dly,sr,tn;tdv=_.h("enable_shadydom_free_scoped_query_methods");sO9=_.h("enable_shadydom_free_scoped_node_methods");H6N=_.h("enable_shadydom_free_scoped_readonly_properties_batch_one");AfG=_.h("enable_shadydom_free_parent_node");VdN=_.h("enable_shadydom_free_children");Dly=_.h("enable_shadydom_free_last_child");sr=window.ShadyDOM;_.U6=sr&&sr.noPatch&&sr.wrap?sr.wrap:sr?function(N){return sr.patch(N)}:function(N){return N};
tn=function(N){if(N instanceof ShadowRoot)this.host=(0,_.U6)(N.host),this.root=N;else if(N.$$){this.host=(0,_.U6)(N);var t;this.root=(t=N.root)!=null?t:this.host}else if(N.polymerController){this.host=(0,_.U6)(N);var O;this.root=(O=this.host.shadowRoot)!=null?O:this.host}else this.root=this.host=(0,_.U6)(N)};
NXO();O6Q();Ull();Csl();Z6v();var ukB={querySelector:function(N,t){t=Tnz(t,vi(N));return _.h("sunnydom_native_scoped_query_selectors")?iqN(N,t):iqN(_.JG(N),t)},
querySelectorAll:function(N,t){t=Tnz(t,vi(N));return _.h("sunnydom_native_scoped_query_selectors")?Array.from(u3Q(N,t)):u3Q(_.JG(N),t)}},SZp={appendChild:function(N,t){var O=vi(N),H=_.RI(t);
return _.J3g(_.JG(N),O?_.s3(t,O,H):t)},
cloneNode:function(N,t){var O=_.RI(N);N=_.JG(N);t=GV(N).prototype.cloneNode.call(N,t);return O?Nf(t,O):t},
contains:function(N,t){var O=vi(N),H=_.RI(t);return O!==H?!1:oTv(N,t)},
insertBefore:function(N,t,O){var H=vi(N),A=_.RI(t);N=_.JG(N);t=H?_.s3(t,H,A):t;return GV(N).prototype.insertBefore.call(N,t,O)},
removeChild:function(N,t){var O=vi(N);N=_.JG(N);t=O?Nf(t,O):t;return GV(N).prototype.removeChild.call(N,t)},
replaceChild:function(N,t,O){var H=vi(N),A=_.RI(t);t=H?_.s3(t,H,A):A?Nf(t,A):t;O=H?Nf(O,H):O;N=_.JG(N);return GV(N).prototype.replaceChild.call(N,t,O)},
getRootNode:function(N,t){t=t===void 0?{composed:!0}:t;var O;if(((O=t)!=null?O:{}).composed)N=vT4(N);else{t=N;for(N=hL4(N);N;)t=N,N=eLO(N);N=t}return N}},FQM=H6N?{firstChild:lHO,
nextSibling:WRQ,previousSibling:IHg,firstElementChild:QOQ,lastElementChild:ETv,nextElementSibling:nTS,previousElementSibling:r34,childNodes:GOM}:{};AfG&&(FQM.parentNode=fHM);VdN&&(FQM.children=RLN);Dly&&(FQM.lastChild=mPx);tdv&&KQx(ukB);sO9&&KQx(SZp);dl4();var gul=function(N){this.node=N instanceof ShadowRoot?N.host:N};
yfN();BXN();var jq4=new WeakMap;var u4M=Symbol("Bd");var pIx=new Set(["tap","track","down","up"]),LQx=_.h("pbcm_fi_query_decorators");var NF=function(){return _.$q.apply(this,arguments)||this};
_.p(NF,_.$q);_.V=NF.prototype;_.V.getState=function(){return this.store.getState()};
_.V.dispatch=function(N){this.store.dispatch(N)};
_.V.beforeRegister=function(){if(this&&typeof this==="object"){var N;var t=!!this.useSignals||!((N=this.polymerController)==null||!N.useSignals)}else t=!1;if(!t&&this.properties)for(t=_.D(Object.keys(this.properties)),N=t.next();!N.done;N=t.next()){var O=N.value;N=this.properties[O];if(N.selector){if(N.computed)throw Error("kg");O=["reduxPropertiesRecomputeTrigger",'"'+O+'"'].concat(_.W6(N.selectorArgs||[])).join(",");N.computed="recomputeReduxSelector("+O+")"}}};
_.V.attached=function(){var N=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){N.reduxPropertiesRecomputeTrigger++}));
_.h("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.V.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.V.recomputeReduxSelector=function(N,t){var O=_.E1.apply(2,arguments),H=this.properties[t].selector;if(!H)throw Error("ig`"+t);return H.apply(null,[this.store.getState()].concat(_.W6(O)))};
_.V.select=function(N){var t=_.E1.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return N.apply(null,[this.store.getState()].concat(_.W6(t)))};
_.cv.Object.defineProperties(NF.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
NF.prototype.recomputeReduxSelector=NF.prototype.recomputeReduxSelector;_.W([_.X(),_.Q("design:type",Number)],NF.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.W([_.jn()],NF);var tP=[],TX9={},Tr=function(){return jm.apply(this,arguments)||this};
_.p(Tr,jm);Tr.prototype._addPropertyEffect=function(N,t,O){if(t==="__observeEffects"&&O){var H,A=(H=O.info.method)!=null?H:O.info.methodName;if(A){var Z=this[A];this[A]=function(){tP.push(A);try{Z==null||Z.apply(this,arguments)}finally{tP.pop()}}}}_.Wn._addPropertyEffect.apply(this,[N,
t,O])};
Tr.prototype._setPendingProperty=function(N,t,O){if(tP.length){var H=tP[tP.length-1],A;(A=TX9[this.is])!=null&&A.has(H)||(wIp(this.is,H),_.E7("polymerPropertyChangedInObserver",{componentName:this.is,observerName:H}))}return _.Wn._setPendingProperty.apply(this,[N,t,O])};
_.W([OAv()],Tr);var eOt=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),XI4,Sn={};_.h("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Sn);var bc=function(){return _.$q.apply(this,arguments)||this};
_.p(bc,_.$q);bc.prototype._setUnmanagedPropertyToNode=function(N,t,O){N.loggingStatus&&(N.loggingStatus.isDeclarativeExternal=!0);if(O!==N[t]||typeof O==="object")N[t]=O;N.is&&N.polymerController&&N.polymerController!==N&&hn(N.is,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");N.loggingStatus&&(N.loggingStatus.isDeclarativeExternal=!1)};
_.W([_.jn()],bc);Ps9()&&(O8.prototype._setUnmanagedPropertyToNode=(new bc)._setUnmanagedPropertyToNode);_.ROp={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(N){},set polymerController(N){}}]};var aH=function(){var N=jm.apply(this,arguments)||this;N.json=function(){};
return N};
_.p(aH,jm);aH.prototype.equals=function(N,t){return N===t};
aH.prototype.isEmpty=function(N){var t;(t=!N)||(t=_.lQ(N)&&N.length===0);return t};
_.W([OAv()],aH);var hmZ=function(N){N=Opz(N);VX.call(this,N)};
_.p(hmZ,VX);hmZ.prototype.addProvider=function(N){N=N.key?N:Opz([N])[0];var t=this.keyIdToIndex.get(N.key.id);if(t){if(nup(N,this.providers[t]))throw Error("lg`"+N.key.displayName);}else VX.prototype.addProvider.call(this,N)};
var M5y=new hmZ([]);var b5R=!1;var mlz={};b5R||(Qq9(),b5R=!0);
mlz.InjectBehavior={initializeInjection:function(){var N=this.provide;try{if((N=N!=null?N:[])&&N.length>0)for(var t=Opz(N),O=_.D(t),H=O.next();!H.done;H=O.next())M5y.addProvider(H.value);var A=new Set;WQp(this.behaviors||[],A);t={};for(var Z=_.D(A),U=Z.next();!U.done;U=Z.next()){var C=U.value;C.inject&&Object.assign(t,C.inject)}this.inject&&Object.assign(t,this.inject);for(var F=_.D(Object.keys(t)),g=F.next();!g.done;g=F.next()){var B=g.value,c=t[B];try{this[B]=M5y.resolve(c)}catch(u){throw u;}}}catch(u){throw Error(u.message);
}}};var G9S;var vu9=/\bclass\b/.test(function(){}.toString()),sqy=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var pwQ=function(N){this.wasDefined=!0;Array.isArray(N)||N instanceof Array?(this.JSC$13661_getImpl=N[0],this.JSC$13661_setImpl=N[1]):this.JSC$13661_getImpl=N};
_.V=pwQ.prototype;_.V.getWithPath=function(N){return Osg(this.JSC$13661_getImpl(),N)};
_.V.setWithPath=function(N,t){var O=this;if(N.length)throw Error("mg");if(!this.JSC$13661_setImpl)throw Error("ng");Tg(function(){O.JSC$13661_setImpl(t)})};
_.V.notifyPath=function(){throw Error("og");};
_.V.notifySplices=function(){throw Error("pg");};
_.V.getChangeRecordSignal=function(N,t){var O=this;if(N.length)throw Error("qg");return function(){var H=O.getWithPath(N);return{path:t!=null?t:"",base:H,value:H}}};
_.V.getSplicesSignal=function(){throw Error("rg");};
_.V.getPathMutationSignal=function(){throw Error("sg");};
_.V.pop=function(){throw Error("tg");};
_.V.push=function(){throw Error("ug");};
_.V.splice=function(){throw Error("vg");};
_.V.unshift=function(){throw Error("wg");};var Oo=function(N){var t=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(N)||N instanceof Array?(this.JSC$13666_getImpl=N[0],this.JSC$13666_setImpl=N[1]):this.JSC$13666_getImpl=N;this.wasDefined=!1;_.MY(function(){t.wasDefined=t.JSC$13666_getImpl()!==void 0})};
Oo.prototype.getWithPath=function(N){return Osg(this.JSC$13666_getImpl(),N)};
Oo.prototype.setWithPath=function(N,t){var O=this;if(N[N.length-1]!=="*"&&N[N.length-1]!=="splices"){var H=_.MY(function(){return O.getWithPath([])});
if(N.length===0){if(!this.JSC$13666_setImpl)throw Error("xg");if(H===t)return;this.wasDefined||(this.wasDefined=t!==void 0);Tg(function(){O.JSC$13666_setImpl(t)})}else{for(var A=0;A<N.length-1;A++){if(!H)return;
H=H[N[A]]}A=N[N.length-1];H&&(H[A]=t);this.wasDefined||(this.wasDefined=N.length>1||t!==void 0)}Lyu(this,N,{pathComponents:N,value:t})}};
Oo.prototype.notifyPath=function(N,t){N.length===0?t&&this.setWithPath(N,t.value):Lyu(this,N,{pathComponents:N,value:t==null?void 0:t.value,fallbackWhenUndefined:t==null?void 0:t.value})};
var Lyu=function(N,t,O,H){if(N.setMutationSignal){var A=++N.mutationIndex,Z=[N.observedPath],U=N.observedPath,C;t.length===0&&(C=U);for(var F=0;F<t.length;F++){var g=U.subPaths[t[F]];if(!g)break;Z.push(g);U=g;F===t.length-1&&(C=g)}for(t=!1;Z.length;)U=Z.shift(),U.data={index:A,mutation:O,spliceMutationIndex:H},t||(t=U===C),t&&Z.push.apply(Z,_.W6(Object.values(U.subPaths)));Tg(function(){N.setMutationSignal(A)})}};
Oo.prototype.notifySplices=function(N,t){var O=this,H=_.MY(function(){return O.getWithPath(N)}),A=[].concat(_.W6(N),["splices"]);
Lyu(this,A,{pathComponents:A,value:{indexSplices:t}});if(H==null?0:H.length)t=this.mutationIndex,A=[].concat(_.W6(N),["length"]),Lyu(this,A,{pathComponents:A,value:H.length},t)};
var zmf=function(N,t,O,H,A,Z){N.notifySplices(O,[{index:H,addedCount:A,removed:Z,object:t,type:"splice"}])},YZY=function(N,t){N=N.observedPath;
for(var O=0;O<t.length;O++){var H=t[O],A=N.subPaths[H];A||(A={pathComponents:t.slice(0,O+1),subPaths:{}},N.subPaths[H]=A);N=A}},T10=function(N,t,O){YZY(N,t);
if(!N.getMutationSignal){var H=_.D(_.b$(N.mutationIndex,void 0,"sNBMCd"));N.getMutationSignal=H.next().value;N.setMutationSignal=H.next().value}var A=N.getMutationSignal;return _.aa(function(){A();return O(aOY(N,t))},void 0,"zvsXEd")};
Oo.prototype.getChangeRecordSignal=function(N,t){var O=this,H=this.mutationIndex,A;return T10(this,N,function(Z){if(Z&&Z.index>H){var U=Z.mutation;H=Z.index;A=void 0}Z=_.MY(function(){return O.getWithPath(N)});
if(U){var C=U.pathComponents[U.pathComponents.length-1],F=[].concat(_.W6(U.pathComponents));if(C==="splices"||C==="length")return{base:Z,path:(t?[t].concat(_.W6(F)):F).join("."),value:U.value};var g=N.length>F.length?N:F,B;return{base:Z!=null?Z:U.fallbackWhenUndefined,path:(t?[t].concat(_.W6(g)):g).join("."),value:(B=_.MY(function(){return O.getWithPath(g)}))!=null?B:U.fallbackWhenUndefined}}A||(A={base:Z,
path:(t?[t].concat(_.W6(N)):N).join("."),value:Z});return A})};
Oo.prototype.getSplicesSignal=function(N){var t=this.mutationIndex,O;return T10(this,N,function(H){if(H&&H.index>t&&H.spliceMutationIndex!==t){var A=H.mutation;t=H.index;O=void 0}return A&&A.pathComponents[A.pathComponents.length-1]==="splices"?O=H=A.value:O})};
Oo.prototype.getPathMutationSignal=function(N){var t=this;YZY(this,N);if(!this.getMutationSignal){var O=_.D(_.b$(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=O.next().value;this.setMutationSignal=O.next().value}var H=this.getMutationSignal,A=this.mutationIndex,Z;return _.aa(function(){H();var U=aOY(t,N);if(U&&U.index>A&&U.mutation&&HsO(U.mutation.pathComponents,N)){var C=U.mutation;A=U.index}if(!Z||A!==Z.index){var F,g;U=(g=_.MY(function(){return t.getWithPath(N)}))!=null?g:(F=C)==null?
void 0:F.fallbackWhenUndefined;
Z={index:A,value:U}}return Z},void 0,"RXYC9b")};
var aOY=function(N,t){N=N.observedPath;t=_.D(t);for(var O=t.next();!O.done;O=t.next())N=N.subPaths[O.value];return N.data};
Oo.prototype.pop=function(N){var t=this,O=_.MY(function(){return t.getWithPath(N)});
if(!(O instanceof Array))throw Error("yg");var H=O.length>0,A=O.pop();H&&zmf(this,O,N,O.length,0,[A]);return A};
Oo.prototype.push=function(N){var t=_.E1.apply(1,arguments),O=this,H=_.MY(function(){return O.getWithPath(N)});
if(!(H instanceof Array))throw Error("zg");var A=H.length,Z=H.push.apply(H,_.W6(t));t.length&&zmf(this,H,N,A,t.length,[]);return Z};
Oo.prototype.splice=function(N,t,O){var H=_.E1.apply(3,arguments),A=this,Z=_.MY(function(){return A.getWithPath(N)});
if(!(Z instanceof Array))throw Error("Ag");t<0?t=Z.length-Math.floor(-t):t&&(t=Math.floor(t));var U=Z.splice.apply(Z,[t,O].concat(_.W6(H)));(H.length||U.length)&&zmf(this,Z,N,t,H.length,U);return U};
Oo.prototype.unshift=function(N){var t=_.E1.apply(1,arguments),O=this,H=_.MY(function(){return O.getWithPath(N)});
if(!(H instanceof Array))throw Error("Bg");var A=H.unshift.apply(H,_.W6(t));t.length&&zmf(this,H,N,0,t.length,[]);return A};var Hu=function(N,t,O){this.model=N;this.unknownSignalResolver=t;this.options=O;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];t=_.D(dNO());N=t.next().value;t=t.next().value;this.owner=N;this.disposeImpl=t};
Hu.prototype.dispose=function(){if(!this.isDisposed){for(var N=_.D(this.childSignalProxies),t=N.next();!t.done;t=N.next())t.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var wwZ=function(N,t){N=_.Ct(N.owner);try{t()}finally{_.Ct(N)}};
Hu.prototype.effect=function(N){wwZ(this,function(){_.Wo(N,"h")})};
var emZ=function(N,t){N.options!=null||(N.options={});var O;(O=N.options).immutableProps!=null||(O.immutableProps=new Set);N.options.immutableProps.add(t)},qJx=function(N,t){t=""+t;
PVp(N,t);var O,H;if((O=N.options)==null?0:(H=O.immutableProps)==null?0:H.has(t))return!0;var A;if((A=N.model.__signalCache)==null?0:A.has(t))O=N.model.__signalCache.get(t),Array.isArray(O)&&emZ(N,t);var Z,U,C;return(C=(Z=N.options)==null?void 0:(U=Z.immutableProps)==null?void 0:U.has(t))!=null?C:!1},XwE=function(N,t){var O;
N.unknownSignalResolver&&(O=N.unknownSignalResolver(t));var H,A;((H=N.options)==null?0:(A=H.immutableProps)==null?0:A.has(t))?O!=null||(O=new pwQ(_.b$(N.model[t],void 0,"By5iP"))):O!=null||(O=new Oo(_.b$(N.model[t],void 0,"CXghNc")));var Z=N.model.hostElement;Object.defineProperty(N.model,t,{get:function(){k9g(Z,t);return O.getWithPath([])},
set:function(U){Mf(Z,t);N.setWithPath([t],U)},
configurable:!0});return O},PVp=function(N,t){var O,H,A;
((O=N.model.__signalCache)==null||!O.has(t))&&((H=N.options)==null?0:(A=H.externalSignalProps)==null?0:A.has(t))&&N.model[t]},xq=function(N,t){t=""+t;
var O=N.signalCache[t];if(O!==void 0)return O;O=!1;PVp(N,t);var H;if((H=N.model.__signalCache)==null?0:H.has(t))if(O=N.model.__signalCache.get(t),Array.isArray(O))O=!0,emZ(N,t);else return N.signalCache[t]=N.model.__signalCache.get(t).signal,N.signalCache[t];var A,Z;H=(Z=(A=N.options)==null?void 0:A.reactivityMode)!=null?Z:0;var U,C;if(!((U=N.options)==null?0:(C=U.reactiveProps)==null?0:C.has(t))&&!O&&H===1)throw Error("Cg`"+t);A=O?xrR(N,t):XwE(N,t);return N.signalCache[t]=A},xrR=function(N,t){var O=
Object.getOwnPropertyDescriptor(N.model.constructor.prototype,t),H=function(){return N.model[t]};
return new pwQ(O&&O.get&&!O.set?H:[H,function(A){N.model[t]=A}])};
Hu.prototype.getWithPath=function(N){var t=_.D(N);N=t.next().value;t=Vo(t);k9g(this.model.hostElement,""+N);return xq(this,N).getWithPath(t)};
Hu.prototype.setWithPath=function(N,t){if(N.length){Mf(this.model.hostElement,N.join("."));var O=_.D(N);N=O.next().value;O=Vo(O);xq(this,N).setWithPath(O,t)}};
Hu.prototype.getPathMutationSignal=function(N){var t=_.D(N);N=t.next().value;t=Vo(t);return xq(this,N).getPathMutationSignal(t)};
Hu.prototype.notifyPath=function(N,t){var O=_.D(N);N=O.next().value;O=Vo(O);xq(this,N).notifyPath(O,t)};
var ksy=function(N,t){if(t.type==="literal")return function(){return{rootWasDefined:!0,value:t.value}};
var O=P2(t.path),H=_.D(O),A=H.next().value;H=Vo(H);var Z,U;if(t.type==="path"&&(O.length===1||((Z=N.options)==null?0:(U=Z.immutableProps)==null?0:U.has(A))))return function(){var c=N.getWithPath(O.slice(0,1));c=Osg(c,O.slice(1));return{rootWasDefined:xq(N,O[0]).wasDefined,value:c}};
var C=xq(N,A);if(t.type==="path"){var F=C.getPathMutationSignal(H);return function(){var c,u=(c=F())==null?void 0:c.value;return{rootWasDefined:C.wasDefined,value:u}}}if(t.type==="splices"){var g=C.getSplicesSignal(H);
return function(){var c=g();return{rootWasDefined:C.wasDefined,value:c}}}var B=C.getChangeRecordSignal(H,""+A);
return function(){var c=B();return{rootWasDefined:C.wasDefined,value:c}}},Cy4=function(N,t,O){var H=O.map(function(C){return ksy(N,C)}),A=O.length===0,Z=[],U=O.length!==1||O[0].type!=="path"?!1:!0;
N.effect(function(){for(var C=H.length,F=[],g=!!Z.length,B=0;B<C;B++){var c=H[B](),u=c.rootWasDefined;c=c.value;A||(A=u);F[B]=c;U&&(F[B+C]=g?Z[B]:F[B],Z[B]=c)}A&&mP(N.owner,function(){return void t.apply(null,_.W6(F))})})},ANl=function(N,t,O,H,A){var Z=xq(N,t);
A!==void 0&&Z.setWithPath([],A);Cy4(N,function(){var U=_.E1.apply(0,arguments);Mf(N.model.hostElement,t,!0);Z.setWithPath([],O.apply(null,_.W6(U)))},H)};
Hu.prototype.arrayPush=function(N){var t=_.E1.apply(1,arguments),O=_.D(N),H=O.next().value;O=Vo(O);H=xq(this,H);return H.push.apply(H,[O].concat(_.W6(t)))};
Hu.prototype.arraySplice=function(N,t,O){var H=_.E1.apply(3,arguments),A=_.D(N),Z=A.next().value;A=Vo(A);Z=xq(this,Z);return Z.splice.apply(Z,[A,t,O].concat(_.W6(H)))};
Hu.prototype.arrayUnshift=function(N){var t=_.E1.apply(1,arguments),O=_.D(N),H=O.next().value;O=Vo(O);H=xq(this,H);return H.unshift.apply(H,[O].concat(_.W6(t)))};
Hu.prototype.notifySplices=function(N,t){var O=_.D(N);N=O.next().value;O=Vo(O);xq(this,N).notifySplices(O,t)};var qZR=!0,fOX=!1,fkS=!1,nNX=!1,Wyr=0;nNX=!1;Wyr=0;qZR=!0;fOX=fkS=!1;var jS4=/([^\s]+?)\(([\s\S]*)\)/,BJN=/\.([^.]+)$/,uH9=/\\,/g,gAz=/&comma;/g,yNy=/\\(.)/g,is4=[],cNM={"*":"wildcard",splices:"splices"};var TJM=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"),L_z=/[A-Z]/,r0X=["class","hidden","id","on-dom-change"],edG=new Set([].concat(_.W6(r0X),
["if","notify-dom-change","restamp"])),Pyl=new Set([].concat(_.W6(r0X),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),XkM=new Set(["restamp"]);var esv=new Set(["className","id"]);var nAQ=Symbol(),EAl=window;var tZ9=window;var UX4=0,A9G=0,kq=[],DXx=0,Hjg=!1,VZg=document.createTextNode("");(new window.MutationObserver(ZjO)).observe(VZg,{characterData:!0});var fO=new Map,qf=0,IOp=function(N){this.mappedHandleId=N},Kiv=function(N,t,O,H){this.mappedHandleId=N;
var A=this;this.mappedHandleId=N;this.callback=t;this.waitTime=O;this.schedulerPriority=H;this.handleId=_.GB.addJob(function(){A.callback();fO.delete(A.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.p(Kiv,IOp);Kiv.prototype.cancel=function(){_.GB.cancelJob(this.handleId);fO.delete(this.mappedHandleId)};
var Fiv=function(N,t){this.mappedHandleId=N;var O=this;this.mappedHandleId=N;this.callback=t;this.handleId=Cmz(function(){O.callback();fO.delete(O.mappedHandleId)})};
_.p(Fiv,IOp);Fiv.prototype.cancel=function(){var N=this.handleId-A9G;N<0||kq.length<=N||(kq[N]=null);fO.delete(this.mappedHandleId)};var B7M=function(){};
B7M.prototype.cancel=function(){this.jobHandle!==void 0&&(dX9(this.jobHandle),this.jobHandle=void 0)};
B7M.prototype.run=function(N,t,O){var H=this;this.cancel();this.callback=N;this.jobHandle=_.nO(function(){N();H.callback=void 0},t,O)};
B7M.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var g4v=new WeakMap;var lOa=dH(function(N){for(var t=N,O=0;O<3;O++)t=Object.getPrototypeOf(t);delete t.prototype.connectedCallback;var H=function(){return N.apply(this,arguments)||this};
_.p(H,N);H.prototype._attachDom=function(A){if(!A)return null;var Z=(0,_.U6)(this.hostElement);Z.attachShadow({mode:"open",shadyUpgradeFragment:A});Z.shadowRoot.appendChild(A);return Z.shadowRoot};
H.prototype._takeAttributes=function(){for(var A=this.hostElement.attributes,Z=0;Z<A.length;Z++){var U=A[Z],C=void 0,F=void 0;(F=(C=this).__attributeReaction)==null||F.call(C,U.name,null,U.value)}};
H.prototype._readyClients=function(){N.prototype._readyClients.call(this);this.root=this};
H.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);N.prototype.connectedCallback.call(this)};
_.cv.Object.defineProperties(H,{template:{configurable:!0,enumerable:!0,get:function(){return H.prototype._template}}});
return H}),Q9S=dH(function(N){var t=function(){return N.apply(this,arguments)||this};
_.p(t,N);t.prototype.created=function(){if(this.__notifyEffects)for(var O=_.D(Object.values(this.__notifyEffects)),H=O.next();!H.done;H=O.next()){H=_.D(H.value);for(var A=H.next();!A.done;A=H.next())A.value.fn=ijl}if(this.__reflectEffects)for(O=_.D(Object.values(this.__reflectEffects)),H=O.next();!H.done;H=O.next())for(H=_.D(H.value),A=H.next();!A.done;A=H.next())A.value.fn=uv9};
t.prototype._addEventListenerToNode=function(O,H,A){O=rz(O);Rb(O,H,A)||N.prototype._addEventListenerToNode.call(this,O,H,A)};
t.prototype._removeEventListenerFromNode=function(O,H,A){O=rz(O);vd(O,H,A)||N.prototype._removeEventListenerFromNode.call(this,O,H,A)};
t.prototype._propertiesChanged=function(O,H,A){if(this.__dataToNotify&&this.__notifyEffects)for(var Z=_.D(Object.keys(this.__dataToNotify)),U=Z.next();!U.done;U=Z.next()){U=U.value;var C=jF9(U);this.__notifyEffects[C]||delete this.__dataToNotify[U]}else this.__dataToNotify=null;N.prototype._propertiesChanged.call(this,O,H,A)};
t.prototype.fire=function(O,H,A){H=H===void 0?{}:H;var Z;return _.or(rz((Z=A==null?void 0:A.node)!=null?Z:this),O,H,A)};
t.prototype._ensureAttribute=function(O,H){var A=rz(this);A.hasAttribute(O)||Xb(A,H,O)};
t.prototype.isLightDescendant=function(O){var H=rz(this);return rz(H)!==O&&_.O6(H).contains(O)&&_.O6(H).getRootNode()===_.O6(O).getRootNode()};
return t});
_.Iv.ready=function(){var N;((N=this.hostElement)!=null?N:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var t;((t=this.hostElement)!=null?t:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.JV._subscribeIronResize=function(N){var t;((t=N.hostElement)!=null?t:N).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.JV._unsubscribeIronResize=function(N){var t;((t=N.hostElement)!=null?t:N).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var MZp=[Array,Boolean,Date,Number,Object,String],lc=function(N,t,O,H){this.polySiInfo=N;this.polySiParams=t;this.polySiContext=O;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;H||this instanceof HTMLElement&&(H=this);if(!H)throw Error("Jg");this.allowedProps=t.allowedProps;this.hostElement=H;this.is=N.is;this.upgradeDisabled=!!t.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");N=new Set(t.reactiveSchemas.filter(function(A){return A.type!==
"observe"}).map(function(A){return A.propertyKey}));
this.signalProxy=new Hu(this,void 0,{reactiveProps:N,reactivityMode:t.reactivityMode});this.__dataHasAccessor={};t=_.D(t.reactiveSchemas);for(N=t.next();!N.done;N=t.next())N=N.value,N.type==="signal"&&(this.__dataHasAccessor[N.propertyKey]=!0);this.upgradeDisabled||mrr(this)};
lc.prototype.getExtraMethodsToForward=function(){return[]};
var mrr=function(N){N.polySiContext.didRegister||(N.registered(),N.polySiContext.didRegister=!0);N.polySiContext.finalizedTemplate||(N.polySiContext.finalizedTemplate={},N.polySiParams.templateGetter&&(N.polySiContext.finalizedTemplate.processedTemplate=Ojg(N.polySiParams.templateGetter,N.polySiParams.is)));EN_(N);var t=N.hostElement;t.loggingStatus!=null||(t.loggingStatus={});t.loggingStatus.isInitializing=!0;_.MY(function(){return void N.created()});
t.loggingStatus.isInitializing=!1;N.isPolySiElementConnected&&GsE(N)},GsE=function(N){N.didCallReady||(_.MY(function(){return void N.ready()}),N.didCallReady=!0);
N.isAttached=!0;N.attached()};
_.V=lc.prototype;_.V.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||GsE(this)};
_.V.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.V.attributeChangedCallback=function(N,t,O){if(this.upgradeDisabled)N==="disable-upgrade"&&O===null&&(this.upgradeDisabled=!1,mrr(this));else if(t!==O){var H=_.Kv(N),A=this.polySiContext.typesForSignals[H];if(A&&(!this.reflecting||_.h("polysi_attribute_changed_serializing_killswitch"))){switch(A){case Object:try{var Z=JSON.parse(O)}catch(C){Z=O}break;case Array:try{Z=JSON.parse(O)}catch(C){Z=null}break;case Date:Z=isNaN(O)?String(O):Number(O);Z=new Date(Z);break;case Boolean:Z=O!==null;break;case Number:Z=
Number(O);break;default:Z=O}this[H]=Z}H=_.D(this.polySiParams.behaviors);for(A=H.next();!A.done;A=H.next())Z=void 0,(Z=A.value.attributeChanged)==null||Z.call(this,N,t,O);var U;(U=this.attributeChanged)==null||U.call(this,N,t,O)}};
_.V.attributeChangedCallbackWrapper=function(N,t,O){this.attributeChangedCallback(N,t,O)};
_.V.setPropertiesFromInitialAttributeValues=function(){for(var N=0;N<this.hostElement.attributes.length;N++){var t=this.hostElement.attributes[N];(t.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(t.name))&&this.attributeChangedCallback(t.name,null,t.value)}};
_.V.created=function(){this.provide=this.polySiParams.provide;var N;(N=this.initializeInjection)==null||N.call(this);N=_.D(this.polySiParams.reactiveSchemas);for(var t=N.next();!t.done;t=N.next())t=t.value,t.type==="signal"&&(this.mutablePropNames.add(t.propertyKey),xq(this.signalProxy,t.propertyKey));hqO(this,this.polySiInfo,this.polySiParams.behaviors);N=_.D(this.polySiParams.reactiveSchemas);for(t=N.next();!t.done;t=N.next())t=t.value,t.type==="signal"&&t.value!==void 0&&(this.signalProxy.model[t.propertyKey]=
typeof t.value==="function"?t.value.call(this):t.value);if(this.polySiParams.signalProperties)for(N=_.D(this.polySiParams.signalProperties),t=N.next();!t.done;t=N.next()){t=t.value;var O=void 0;((O=this.__signalCache)==null?0:O.has(t))||(this.signalProxy.model[t]=void 0)}nNX||Rmr(this);SRN(this);N=_.D(this.polySiParams.behaviors);for(t=N.next();!t.done;t=N.next())O=void 0,(O=t.value.created)==null||O.call(this);var H;(H=this.polySiInfo.created)==null||H.call(this)};
_.V.registered=function(){var N=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var t=Object.getPrototypeOf(this);t.addReactiveSchema=function(C){N.polySiParams.reactiveSchemas.push(C)};
for(var O=_.D(this.polySiParams.behaviors),H=O.next();!H.done;H=O.next()){var A=void 0;(A=H.value.beforeRegister)==null||A.call(t)}var Z;(Z=this.polySiInfo.beforeRegister)==null||Z.call(t);t.addReactiveSchema=phN;O=_.D(this.polySiParams.behaviors);for(H=O.next();!H.done;H=O.next())A=void 0,(A=H.value.registered)==null||A.call(t);var U;(U=this.polySiInfo.registered)==null||U.call(t)};
_.V.ready=function(){var N;(N=this.beforeReady)==null||N.call(this);nNX&&Rmr(this);var t;if(N=(t=this.polySiContext.finalizedTemplate)==null?void 0:t.processedTemplate){N=N7G(N.template,N.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:N.hasInsertionPoint,thisCtx:this});t=N.nodesById;N=N.root;var O=this.hostElement;var H=H===void 0?!1:H;O=(0,_.U6)(O);if(!O.attachShadow)throw Error("Hd");if(!O.shadowRoot||H)O.attachShadow({mode:"open",shadyUpgradeFragment:N}),O.shadowRoot.appendChild(N);
this.root=O.shadowRoot;this.$=t}vNR(this);H=_.D(this.polySiParams.behaviors);for(t=H.next();!t.done;t=H.next())N=void 0,(N=t.value.ready)==null||N.call(this);var A;(A=this.polySiInfo.ready)==null||A.call(this)};
_.V.attached=function(){for(var N=_.D(this.polySiParams.behaviors),t=N.next();!t.done;t=N.next()){var O=void 0;(O=t.value.attached)==null||O.call(this)}var H;(H=this.polySiInfo.attached)==null||H.call(this)};
_.V.detached=function(){for(var N=_.D(this.polySiParams.behaviors),t=N.next();!t.done;t=N.next()){var O=void 0;(O=t.value.detached)==null||O.call(this)}var H;(H=this.polySiInfo.detached)==null||H.call(this)};
var EN_=function(N){for(var t=_.D(N.polySiParams.behaviors),O=t.next();!O.done;O=t.next())if(O=O.value,O.listeners)for(var H in O.listeners)sSS(N,N.hostElement,H,O.listeners[H]);if(N.polySiInfo.listeners)for(var A in N.polySiInfo.listeners)sSS(N,N.hostElement,A,N.polySiInfo.listeners[A])},sSS=function(N,t,O,H,A){N=tAl(N,H,A);
Rb(t,O,N)||t.addEventListener(O,N);return N},Rmr=function(N){for(var t=_.D(N.polySiParams.reactiveSchemas),O=t.next();!O.done;O=t.next())O=O.value,O.type==="compute"||O.type==="computeWithMethod"?Zst(N.signalProxy,O,N):O.type==="redux"?UNO(N.signalProxy,O,N.store):O.type==="signal"&&O.readOnly&&DNp(N.signalProxy,O)},vNR=function(N){for(var t=_.D(N.polySiParams.reactiveSchemas),O=t.next(),H={};!O.done;H={schema$jscomp$12:void 0},O=t.next())H.schema$jscomp$12=O.value,H.schema$jscomp$12.type==="notify"?
K_x(N.signalProxy,H.schema$jscomp$12,N.hostElement):H.schema$jscomp$12.type==="observe"?F_y(N.signalProxy,H.schema$jscomp$12,N):H.schema$jscomp$12.type==="reflect"&&N.signalProxy.effect(function(Z){return function(){var U=N.signalProxy.getWithPath([Z.schema$jscomp$12.propertyKey]);
N.reflecting=!0;hdp(N.hostElement,Z.schema$jscomp$12.propertyKey,U,!0);N.reflecting=!1}}(H));
if(N.reflectedAttributes)for(t=_.D(Object.entries(N.reflectedAttributes)),H=t.next(),O={};!H.done;O={key$jscomp$938:void 0,value$jscomp$10197:void 0},H=t.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;O.key$jscomp$938=H;O.value$jscomp$10197=A;N.signalProxy.effect(function(Z){return function(){N.reflecting=!0;hdp(N.hostElement,Z.key$jscomp$938,(0,Z.value$jscomp$10197)(),!0);N.reflecting=!1}}(O))}};
_.V=lc.prototype;_.V._setPendingProperty=function(N,t){this.set(N,t);return!1};
_.V._enableProperties=function(){};
_.V._setPendingPropertyOrPath=function(N,t){this.notifyPath(N,t);return!1};
_.V._addPropertyEffect=function(){};
_.V._stampTemplate=function(){throw Error("Kg");};
_.V.fire=function(N,t,O){t=t===void 0?{}:t;O=O===void 0?{}:O;var H,A,Z={bubbles:(H=O.bubbles)!=null?H:!0,cancelable:!!O.cancelable,composed:(A=O.composed)!=null?A:!0},U;return _.or(Liy((U=O.node)!=null?U:this.hostElement),N,t,Z)};
_.V.get=function(N,t){var O=P2(N);return t?Osg(t,O):N==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(O)};
_.V.linkPaths=function(){};
_.V.listen=function(N,t,O){N=Liy(N);this.boundListeners!=null||(this.boundListeners=new WeakMap);var H=this.boundListeners.get(N);H||(H={},this.boundListeners.set(N,H));var A=t+O;H[A]||(H[A]=sSS(this,N,t,O))};
_.V.notifyPath=function(N,t){this.signalProxy.notifyPath(P2(N),arguments.length===2?{value:t}:void 0)};
_.V.canNotifyPath=function(N){return this.mutablePropNames.has(N)&&!qJx(this.signalProxy,N)};
_.V.notifySplices=function(N,t){this.signalProxy.notifySplices(P2(N),t)};
_.V.pop=function(N){var t=this.signalProxy;N=P2(N);var O=_.D(N);N=O.next().value;O=Vo(O);return xq(t,N).pop(O)};
_.V.push=function(N){var t=_.E1.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[P2(N)].concat(_.W6(t)))};
_.V.set=function(N,t,O){if(O)throw Error("Lg");N==="hidden"?this.hostElement.hidden=!!t:this.signalProxy.setWithPath(P2(N),t)};
_.V.setProperties=function(N){N=_.D(Object.entries(N));for(var t=N.next();!t.done;t=N.next()){var O=_.D(t.value);t=O.next().value;O=O.next().value;this[t]=O}};
_.V.splice=function(N,t,O){var H=_.E1.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[P2(N),t,O].concat(_.W6(H)))};
_.V.unlinkPaths=function(){};
_.V.unlisten=function(N,t,O){N=Liy(N);if(this.boundListeners){var H=this.boundListeners.get(N);if(H){O=t+O;var A=H[O];A&&(vd(N,t,A)||N.removeEventListener(t,A),delete H[O])}}};
_.V.unshift=function(N){var t=_.E1.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[P2(N)].concat(_.W6(t)))};
_.cv.Object.defineProperties(lc.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 qRt=[Array,Boolean,Date,Number,Object,String];var Wi4=!1;var AP=function(){var N=HTMLElement.apply(this,arguments)||this;N.restamp=!1;N.notifyDomChange=!1;N.JSC$13774_didCallConnected=!1;N.JSC$13774_renderDebouncer=null;N.disableTemplateUpdateSignalImpl=QQ()?void 0:_.b$(!1,void 0,"Ofhkwb");var t;N.getDisableTemplateUpdate=(t=N.disableTemplateUpdateSignalImpl)==null?void 0:t[0];var O;N.setDisableTemplateUpdate=(O=N.disableTemplateUpdateSignalImpl)==null?void 0:O[1];return N};
_.p(AP,HTMLElement);var J0Q=function(N){N.conditionSignalImpl!=null||(N.conditionSignalImpl=new Oo(_.b$(!1,void 0,"gE52Fb")));return N.conditionSignalImpl};
_.V=AP.prototype;_.V.showHideChildren=function(N){oNy(this,N,this.if)};
_.V.attributeChangedCallback=function(N,t,O){if(this.JSC$13774_didCallConnected)throw Error("Pg`"+N);N==="notify-dom-change"?this.notifyDomChange=O!==null:N==="restamp"&&(this.restamp=O!==null)};
_.V.debounceRender=function(){this.JSC$13774_renderDebouncer=_.M_(this.JSC$13774_renderDebouncer,ob,this.JSC$13774_renderImpl.bind(this));_.br(this.JSC$13774_renderDebouncer)};
_.V.disconnectedCallback=function(){var N=(0,_.U6)(this).parentNode;(!N||N.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in N&&!N.host)&&s9Q(this)};
_.V.connectedCallback=function(){var N=this;this.JSC$13774_didCallConnected=!0;qZR?r9G():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.h("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){J0Q(N).getWithPath([]);N.debounceRender()})};
_.V.render=function(){_.Yb()};
_.V.JSC$13774_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var N=this.if,t=!1;if(N){this.hasInstance()||(NBB(this),t=!0);a:{var O=(0,_.U6)(this).parentNode;if(this.hasInstance()){var H=this.instance.children;if((H==null?0:H.length)&&(0,_.U6)(this).previousSibling!==H[H.length-1])for(var A=0;A<H.length;A++)(0,_.U6)(O).insertBefore(H[A],this)}else{if(!O){O=!1;break a}tha(this,O)}O=!0}if(!O)return}else this.restamp&&s9Q(this);oNy(this,!1,N);N&&!t&&NBB(this);fOX&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.V.hasInstance=function(){return!!this.instance};
var tha=function(N,t){var O=N.parentSignalProxy;if(QQ()){var H=_.D(_.b$(!0,void 0,"dkzufd"));var A=H.next().value;H=H.next().value;O=N.parentSignalProxy}else{var Z;var U=new Hu((Z=O$y(N))!=null?Z:{},function(F){var g=xq(N.parentSignalProxy,F).getChangeRecordSignal([]);F=_.b$(void 0,void 0,"iG8Uwe");var B=new Oo(F);U.effect(function(){if(N.getDisableTemplateUpdate&&!N.getDisableTemplateUpdate()){var c=g();B.notifyPath(P2(c.path),{value:c.value})}});
return B});
N.parentSignalProxy.childSignalProxies.push(U);var C=O=U}O=N7G(N.templateInfo,N.templateInfo.nodeInfoList,O,{eventListenerHost:N.eventListenerHost,hasInsertionPoint:N.templateInfo.hasInsertionPoint,thisCtx:N.eventListenerHost,enabledSignal:QQ()?A:void 0,getModel:function(){return O$y(N)}}).root;
N.instance={root:O,children:[],hidden:!1,signalProxy:C,getTemplateUpdatesEnabled:A,setTemplateUpdatesEnabled:H};C=_.D(O.childNodes);for(A=C.next();!A.done;A=C.next())N.instance.children.push(A.value);(0,_.U6)(t).insertBefore(N.instance.root,N)},O$y=function(N){if((N=N.parentSignalProxy.model)&&!N.hostElement){var t={},O;
for(O in N)N.hasOwnProperty(O)&&(t[O]=N[O]);return t}},s9Q=function(N){if(N.instance){var t=N.instance.children;
if(t.length){var O=(0,_.U6)(t[0]).parentNode;if(O){O=(0,_.U6)(O);for(var H=0;H<t.length;H++)O.removeChild(t[H])}}QQ()?N.instance.setTemplateUpdatesEnabled(!1):N.instance.signalProxy.dispose();N.instance=void 0}},oNy=function(N,t,O){t=t||!O;
N.instance&&N.instance.hidden!==t&&(N.instance.hidden=t,n4N(t,N.instance.children))},NBB=function(N){if(QQ()){var t=N.instance;
t&&mP(N.parentSignalProxy.owner,function(){return!t.getTemplateUpdatesEnabled()})&&t.setTemplateUpdatesEnabled(!0)}else N.setDisableTemplateUpdate(!1)};
_.cv.Object.defineProperties(AP.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var N=this;return mP(this.parentSignalProxy.owner,function(){return J0Q(N).getWithPath([])})},
set:function(N){N||(QQ()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));J0Q(this).setWithPath([],!!N)}}});
_.cv.Object.defineProperties(AP,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",AP);var H$B=[],ZT=function(){var N=HTMLElement.apply(this,arguments)||this;N.as="item";N.indexAs="index";N.itemsIndexAs="itemsIndex";N.targetFramerate=20;N.notifyDomChange=!1;N.isDetached=!1;N.JSC$13781_renderDebouncer=null;N.instances=[];N.chunkingId=null;N.chunkCount=null;N.shouldMeasureChunk=!1;N.shouldContinueChunking=!1;N.renderStartTime=null;N.JSC$13781_didCallConnected=!1;return N};
_.p(ZT,HTMLElement);var AKf=function(N){N.itemSignalImpl!=null||(N.itemSignalImpl=new Oo(_.b$(H$B,void 0,"YBrqgf")));return N.itemSignalImpl},Z$u=function(N,t){Array.isArray(t)||(t=H$B);
AKf(N).setWithPath([],t)};
_.V=ZT.prototype;_.V.showHideChildren=function(N){for(var t=_.D(this.instances),O=t.next();!O.done;O=t.next())n4N(N,O.value.children)};
_.V.notifyPath=function(N,t){N=P2(N);N[0]==="items"&&(N.length===1?Z$u(this,t):AKf(this).setWithPath(N.slice(1),t))};
_.V.canNotifyPath=function(N){return N==="items"};
_.V.attributeChangedCallback=function(N,t,O){if(this.JSC$13781_didCallConnected)throw Error("Qg`"+N);N==="as"?this.as=O:N==="index-as"?this.indexAs=O:N==="items-index-as"?this.itemsIndexAs=O:N==="initial-count"?this.initialCount=Number(O):N==="notify-dom-change"?this.notifyDomChange=O!==null:N==="target-framerate"&&(this.targetFramerate=Number(O))};
_.V.disconnectedCallback=function(){this.isDetached=!0;for(var N=0;N<this.instances.length;N++)VhE(this,N);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.V.connectedCallback=function(){var N=this,t=AKf(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var A=t(),Z=P2(A.path);if(Z[0]===void 0||Z[0]==="splices"||Z[0]==="length")N.debounceRender();else{var U=Z[0];if(U=N.instances[typeof U==="string"?Math.floor(Number(U)):U])Z=[N.as].concat(_.W6(Z.slice(1))),U.signalProxy.notifyPath(Z,A)}});
this.JSC$13781_didCallConnected=!0;qZR?r9G():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var O=(0,_.U6)((0,_.U6)(this).parentNode),H=0;H<this.instances.length;H++)O.insertBefore(this.instances[H].root,this);this.chunkingId&&this.render()}};
_.V.debounceRender=function(){this.JSC$13781_renderDebouncer=_.M_(this.JSC$13781_renderDebouncer,ob,this.JSC$13781_renderImpl.bind(this));_.br(this.JSC$13781_renderDebouncer)};
_.V.render=function(){this.debounceRender();_.Yb()};
_.V.JSC$13781_renderImpl=function(){var N=this;if(!this.parentSignalProxy.isDisposed){var t=this.items,O=DQa(this,t.length);UQy(this,t,O);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){N.chunkingId=null;if(N.shouldMeasureChunk){var H=performance.now()-N.renderStartTime;N.chunkCount=Math.round(Math.ceil(1E3/N.targetFramerate)/H*N.chunkCount)||1}N.shouldContinueChunking&&N.debounceRender()}));
fOX&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var DQa=function(N,t){var O=t,H=N.instances.length;if(N.initialCount){if(N.chunkCount){var A=Math.min(Math.max(t-H,0),N.chunkCount);O=Math.min(H+A,t)}else O=Math.min(t,N.initialCount),A=Math.max(O-H,0),N.chunkCount=A||1;N.shouldMeasureChunk=A===N.chunkCount;N.shouldContinueChunking=O<t;N.renderStartTime=performance.now()}return O},UQy=function(N,t,O){for(var H=0;H<O;H++){var A=N.instances[H],Z=t[H];
A?(A.signalProxy.setWithPath([N.as],Z),A.signalProxy.setWithPath([N.indexAs],H)):CBZ(N,Z,H)}for(t=N.instances.length-1;t>=H;t--)O=N,A=t,VhE(O,A),_.D(O.instances.splice(A,1)).next().value.signalProxy.dispose()},VhE=function(N,t){N=N.instances[t];
t=(0,_.U6)(N.root);for(var O=0;O<N.children.length;O++)t.appendChild(N.children[O])},CBZ=function(N,t,O){var H={};
t=Object.assign({},KL0(N),(H[N.as]=t,H[N.indexAs]=O,H[N.itemsIndexAs]=O,H));var A=new Hu(t,function(U){if(U!==N.as&&U!==N.indexAs){if(U===N.itemsIndexAs)return xq(A,N.indexAs);var C=xq(N.parentSignalProxy,U).getChangeRecordSignal([]);U=_.b$(void 0,void 0,"T21Pqc");var F=new Oo(U);A.effect(function(){var g=C();F.notifyPath(P2(g.path),{value:g.value})});
return F}});
N.parentSignalProxy.childSignalProxies.push(A);H=N7G(N.templateInfo,N.templateInfo.nodeInfoList,A,{eventListenerHost:N.eventListenerHost,getModel:function(){var U={};return Object.assign({},KL0(N),(U[N.as]=A.model[N.as],U[N.indexAs]=A.model[N.indexAs],U[N.itemsIndexAs]=A.model[N.indexAs],U))},
hasInsertionPoint:N.templateInfo.hasInsertionPoint,thisCtx:N.eventListenerHost,methodInvocationRequirement:Wyr,enabledSignal:N.stampingEnabled}).root;t={root:H,children:[],signalProxy:A};H=_.D(H.childNodes);for(var Z=H.next();!Z.done;Z=H.next())t.children.push(Z.value);H=(H=N.instances[O+1])?H.children[0]:N;(0,_.U6)((0,_.U6)(N).parentNode).insertBefore(t.root,H);N.instances[O]=t},KL0=function(N){if((N=N.parentSignalProxy.model)&&!N.hostElement){var t={},O;
for(O in N)N.hasOwnProperty(O)&&(t[O]=N[O]);return t}};
ZT.prototype.itemForElement=function(N){var t=this,O=this.instances.find(function(H){return H.children.includes(N)});
if(O)return mP(this.parentSignalProxy.owner,function(){return O.signalProxy.getWithPath([t.as])})};
ZT.prototype.indexForElement=function(N){var t=this.instances.findIndex(function(O){return O.children.includes(N)});
return t>=0?t:void 0};
_.cv.Object.defineProperties(ZT.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var N=this;return mP(this.parentSignalProxy.owner,function(){return AKf(N).getWithPath([])})},
set:function(N){Z$u(this,N)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.cv.Object.defineProperties(ZT,{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",ZT);var FLE,dQ0;_.VT=new _.dk("STATE_STORE_TOKEN");FLE=new _.dk("SELECT_TOKEN");dQ0=new _.dk("DISPATCH_TOKEN");var GXy={getSelectFn:function(){var N;return(N=_.cY().resolve(_.BY(FLE)))!=null?N:Ikx},
getDispatchFn:function(){var N;return(N=_.cY().resolve(_.BY(dQ0)))!=null?N:_.mN().dispatch.bind(_.mN())},
getAppStore:function(){return _.cY().resolve(_.VT)}},lkx,E4M=!1;var tw9=function(){};var o4G=void 0;var gWR=function(){};
gWR.prototype.hasAttribute=function(N){if(N==="dir")return!1;if(N==="disable-upgrade"){var t,O;return(O=(t=this.hostElement)==null?void 0:t.hasAttribute("disable-upgrade"))!=null?O:!1}throw Error("Rg`"+N);};
gWR.prototype.attributeChangedCallbackWrapper=function(N,t,O){if(N==="disable-upgrade"&&this.__isUpgradeDisabled&&O===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var H;((H=this.hostElement)!=null?H:this).isConnected&&this.connectedCallback()}else t===O||this.__isReflecting||this.attributeChangedCallback(N,t,O)};
gWR.prototype.getExtraMethodsToForward=function(){for(var N=this,t=[],O=_.D(yKQ),H=O.next(),A={};!H.done;A={tagName$jscomp$67:void 0,name$jscomp$630:void 0},H=O.next())A.name$jscomp$630=H.value,H=void 0,A.name$jscomp$630==="_setPendingProperty"?(A.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),H=function(Z){return function(U,C,F){hn(Z.tagName$jscomp$67,U,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return N._setPendingProperty(U,C,F)}}(A)):H=function(Z){return function(){return N[Z.name$jscomp$630].apply(N,
_.W6(_.E1.apply(0,arguments)))}}(A),t.push([A.name$jscomp$630,
H]);return t};
for(var A1p=Q9S(lOa((0,_.np)(gWR))),UAO=["disabled","disable-upgrade"],BBR=(0,_.np)(function(){}),cKa=new Set(Object.getOwnPropertyNames(BBR.prototype)),gPQ=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.W6(cKa))),KHG=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),yKQ=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),$Q_=new Set([].concat(_.W6(KHG),_.W6(yKQ),_.W6(cKa))),jty=_.D($Q_),i$Z=jty.next();!i$Z.done;i$Z=jty.next())eOt.add(i$Z.value);var dAO={created:function(){SRN(this);this.initializeInjection()}};var hsS=!1,s6=window.ShadyDOM,TxN=["appendChild","insertBefore","removeChild","replaceChild"],aV9=[Node];s6&&aV9.push(s6.Wrapper);var qDG,fV9,r1t={};var N2,EPl=new WeakMap,lVS=new Set;var oPv=new Set("context didCallReady is info params signalProxy".split(" ")),N1M="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),t5z="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var u8S=Xd({entities:RRt}),Sma=new RJ(u8S);var hQ_=function(){return _.$q.apply(this,arguments)||this};
_.p(hQ_,_.$q);_.cv.Object.defineProperties(hQ_.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Sma}}});
_.W([_.jn()],hQ_);_.DT=[NF.prototype,hQ_.prototype];_.Uo={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var N=this,t={};setTimeout(function(){var O;return _.or((O=N.hostElement)!=null?O:N,"yt-live-chat-add-tooltip-target",t)},0);
this.handler_=t.handler},
detached:function(){if(this.handler_){var N;this.handler_.removeElementFromSupportingTooltips((N=this.hostElement)!=null?N:this)}this.handler_=null}}};_.D5=new _.dk("ICON_MANAGER_TOKEN");var MhQ=[48,20,18,16,15,13,12],SZS=new Map,$r9=new Set,y0O=new Set,c0M=new Set,gNt=new Set,B1x=new Set,i5O=new Promise(function(N){var t=!1,O=!1,H=!1,A=[],Z=function(U){if("detail"in U)if(U=U.detail,U.name==="yt-icons")j9l(U),t=!0;else if(U.name==="yt-sys-icons")j9l(U),O=!0;else{var C;((C=U.name)==null?0:C.includes("yt-sys-icons"))&&U.size!==24&&(j9l(U,!0),A.push(U.size),A.length===MhQ.length&&(H=!0))}t&&O&&H&&(window.removeEventListener("iron-iconset-added",Z),N())};
window.addEventListener("iron-iconset-added",Z)}),b$Q=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"]]);_.CD={};_.CD.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Gv,computeHref_:function(N,t){t=t===void 0?!1:t;if(!N||N.commandExecutorCommand)return null;var O=KbS(N,t);return t||O!==null?O?_.h("enable_polymer_resin")?_.Id(O).toString():O:null:(_.J_(new _.fF("computeHref was null",this.is,N)),null)},
computeOptionalHref_:function(N){return this.computeHref_(N,!0)},
computeNofollow_:function(N){return N?tpM(N)?"nofollow":null:null},
computeIcon_:function(N){return N&&N.iconType?_.Vt(N.iconType):""},
resolveCommand:function(N,t,O){t=t===void 0?{}:t;return _.CC(N,this.hostElement,t,O===void 0?!1:O)}};var LLX,KD;_.pPr={};LLX=null;
KD={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_=UGl(this.viewroot));_.nO(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var N=this;this.unobserve_();if(_.h("kevlar_vimio_use_shared_monitor"))Lyg(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 t=[];this.visibilityOptionVisible_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return N.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return N.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return N.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=t}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){hmG(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var N=_.EW(this.parentNode,function(O){var H,A=(H=O.polymerController)!=null?H:O;return!!A.getVisibilityObserverForChild&&A.getVisibilityObserverForChild()},!0);
if(N){var t;this.localVisibilityObserver_=((t=N.polymerController)!=null?t:N).getVisibilityObserverForChild()}else LLX||(LLX=UGl()),this.localVisibilityObserver_=LLX;return this.localVisibilityObserver_},visibilityCallback:function(N){N?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.h("kevlar_use_vimio_behavior")||(KD={});KD&&!_.h("kevlar_use_vimio_behavior")&&(delete KD.attached,delete KD.detached);_.pPr.YtVisibilityObserverBehavior=[KD];var zQZ={};zQZ.YtVisualElementBehavior=[_.pPr.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.h("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.h("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var N=this.getScreenLayer&&this.getScreenLayer(),t=this.getVisibilityLogger();t&&t.reportShown(this,void 0,N)}},
onHidden:function(){if(_.h("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.h("kevlar_vimio_use_shared_monitor")){var N=this.getScreenLayer&&this.getScreenLayer(),t=this.getVisibilityLogger();t&&t.reportHidden(this,void 0,N)}},
getVisibilityLogger:function(){return _.h("kevlar_use_vimio_behavior")?_.Fr():null},
shouldSkipLogging:function(){if(_.Ro("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var N=this.getParentRenderer&&this.getParentRenderer();if(!N)return!1;var t,O=(t=N.polymerController)!=null?t:N;if(!O.data)return!1;N=this.data.trackingParams;N=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:N;var H;t=(H=O.data)==null?void 0:H.trackingParams;var A,Z;t=((A=O.data)==null?0:A.loggingDirectives)?(Z=O.data)==null?void 0:Z.loggingDirectives.trackingParams:t;return N&&t&&N===
t}}];var aOp=new Map,ub;var Rlg=function(N){this.layer=N},gP=function(N){return N.layer!==void 0?N.layer:N.parent?gP(N.parent):N.layer=0};var xrN;_.G={};xrN=0;_.G.YtRendererBehavior=[_.CD.YtComponentBehavior,zQZ.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_:_.h("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var N,t;(t=(N=this.monitorScrollElement)!=null?N:this.hostElement)==null||t.removeEventListener("scroll",_.Fb(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();zmt(this.hostElement);Xj_(_.Q6(),this.hostElement);mI.delete(this.hostElement)},
registerRenderer:function(N){var t;((t=N.polymerController)!=null?t:N).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(N),this.markDirty())},
unregisterRenderer_:function(N){this.useVimio_||(this.childCache_.delete(N),this.markDirty())},
attached:function(){var N=this,t=this.getParentRenderer();if(t){var O,H,A;(H=(O=(A=t.polymerController)!=null?A:t).registerRenderer)==null||H.call(O,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var Z,U;(U=(Z=this.monitorScrollElement)!=null?Z:this.hostElement)==null||U.addEventListener("scroll",_.Fb(this,this.onScroll))}_.GB.addJob(function(){T14(N.hostElement)},8);
O=new Rlg(this.screenLayer||void 0);(t=mI.get(t))&&t.layerNode&&(O.parent=t.layerNode);t={};cc4(this.hostElement,(t.isRenderer=!0,t.layerNode=O,t[vy9]=this.data,t))},
getParentRenderer:function(){for(var N=this.hostElement.parentNode,t,O;N&&((t=mI.get(N))==null||!t.isRenderer)&&!((O=N.polymerController)!=null?O:N).isRenderer_;)N=N.parentNode||N.host;return N},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.h("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.vZ("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.h("debug_web_ve_data")&&this.data.trackingParams){var N="";try{N=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(O){_.R0(O)}if(N){var t=aaQ(N,1);t!==void 0&&(this.hostElement.dataset.veIndex=String(t));N=aaQ(N,2);
N!==void 0&&(this.hostElement.dataset.ve=String(N))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.h("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.ib(this.data.loggingDirectives.trackingParams)),this.visualElement=_.dF(_.gF(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var N=this.data.targetId;_.kJy(_.Q6(),N,this.hostElement)}else Xj_(_.Q6(),this.hostElement)},
onScroll:function(){var N=Date.now();N-this.lastHandledScroll_<50||(this.lastHandledScroll_=N,this.markDirty())},
markDirty:function(){_.h("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():ksz(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var N=this.getParentRenderer();if(N&&(N=mI.get(N))&&N.layerNode)return gP(N.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.W6(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var N=0;N<this.data.impressionEndpoints.length;N++)this.sendImpression(this.data.impressionEndpoints[N]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(N){N.clickTrackingParams&&delete N.clickTrackingParams;var t,O;(N==null?0:(t=N.commandMetadata)==null?0:(O=t.webCommandMetadata)==null?0:O.sendPost)?_.tb(this.hostElement,[N,{impression:!0}]):_.OK(this.hostElement,[N],this.hostElement)},
logExplicitClick:function(N){var t=_.z8(this.getScreenLayer());if(t){var O,H=(O=N.polymerController)!=null?O:N;N=H.visualElement;H=H.trackingParams||H.clickTrackingParams;!N&&H&&(N=_.ib(H));N&&_.IX(t,N)}}}];var YmQ={},F5=function(){return _.$q.apply(this,arguments)||this};
_.p(F5,_.$q);F5.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
F5.prototype.onPdgItemBehaviorClick=F5.prototype.onPdgItemBehaviorClick;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],F5.prototype,"data",void 0);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],F5.prototype,"onPdgItemBehaviorClick",null);_.W([_.jn()],F5);YmQ.YtPdgLiveChatItemBehavior=[F5.prototype,_.G.YtRendererBehavior];var aGY;var TB_;_.dd={};_.dd.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var gd=function(){var N=jm.apply(this,arguments)||this;N.switchTemplateAtRegistration=!1;return N};
_.p(gd,jm);gd.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Wyv(this),_.c99(this,"doRender"),this.doRender())};
gd.prototype.debounceRender=function(){this.templatingFn&&_.W2(this,"doRender",this.doRender)};
gd.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.R0(Error("ah"))};
gd.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.W([OAv()],gd);var wPY=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,yT={},Q9M=(yT[1]={filterString:null,isUnwrappable:null,unwrap:null},yT[2]={filterString:function(N,t,O){return DE(O)},
isUnwrappable:function(N){return N instanceof vl},
unwrap:function(N){return od(N)}},yT[3]={filterString:function(N,t,O){return wPY.test(O)?O:rD.toString()},
isUnwrappable:function(N){return qm(N)},
unwrap:function(N){return _.f8(N)}},yT[4]={filterString:function(){return rD.toString()},
isUnwrappable:function(N){return N instanceof TN},
unwrap:function(N){return _.es(N).toString()}},yT[5]={filterString:function(N,t,O){return O},
isUnwrappable:function(N){return typeof N==="string"},
unwrap:function(N){return N.toString()}},yT[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(N){return N instanceof _.AY},
unwrap:function(N){return V0(N)}},yT[8]={filterString:function(N,t,O){O=String(O).toLowerCase();
return a3S(N,t,O)?O:"zClosurez"},
isUnwrappable:null,unwrap:null},yT[10]={filterString:null,isUnwrappable:null,unwrap:null},yT);cd[JJ["default"]]=ENQ;var Gsy=[];(function(){var N=CL;CL=function(t){N==null||N(t);bb(function(){for(var O=0;O<t.length;O++)Rmv(t[O])})}})();var eQr=function(){var N=_.$q.apply(this,arguments)||this;N.hasUnmounted=!1;return N};
_.p(eQr,_.$q);_.V=eQr.prototype;_.V.beforeRegister=function(){var N=this.doIdomRender;this.templatingFn?_.R0(Error("$g")):(this.templatingFn=N,this.switchTemplateAtRegistration=!0,lO9(this))};
_.V.attached=function(){};
_.V.detached=function(){Rmv(this.hostElement)};
_.V.renderIdom=function(){throw Error("ch");};
_.V.doIdomRender=function(){var N=this;Mpl(this.hostElement,function(){N.renderIdom()})};
_.W([_.jn()],eQr);var PBZ=[gd.prototype,eQr.prototype];var XPu,xQp=function(){return XPu!==void 0?XPu:XPu=document.createElement("template")};
document.head.appendChild(xQp().content);var kof;var qmr,fGZ=function(){return qmr!==void 0?qmr:qmr=document.createElement("template")};
document.head.appendChild(fGZ().content);var nWX;var WLf=document.head,rKf=WLf.appendChild,IGp;if(nWX===void 0){var lGp=document.createElement("template");_.L(lGp,"\x3c!--css-build:shady--\x3e");lGp.content.insertBefore(fGZ().content.cloneNode(!0),lGp.content.firstChild);nWX=lGp}IGp=nWX;rKf.call(WLf,IGp.content);var QtS,mQZ=function(){return QtS!==void 0?QtS:QtS=document.createElement("template")};
document.head.appendChild(mQZ().content);var EW0;var Goa=document.head,RQE=Goa.appendChild,vWY;if(EW0===void 0){var JKr=document.createElement("template");_.L(JKr,"\x3c!--css-build:shady--\x3e");JKr.content.insertBefore(mQZ().content.cloneNode(!0),JKr.content.firstChild);EW0=JKr}vWY=EW0;RQE.call(Goa,vWY.content);var oWX=document.head,st_=oWX.appendChild,NsS;if(kof===void 0){var tUB=document.createElement("template");_.L(tUB,"\x3c!--css-build:shady--\x3e");tUB.content.insertBefore(xQp().content.cloneNode(!0),tUB.content.firstChild);kof=tUB}NsS=kof;st_.call(oWX,NsS.content);var OPX,HPS=function(){return OPX!==void 0?OPX:OPX=document.createElement("template")};
document.head.appendChild(HPS().content);var Ata;_.WV=new _.dk("DARK_THEME_TOKEN");var qmv=new _.Fp("accessibilityProperties");var kot=new _.Fp("layoutProperties");var fGG=new _.Fp("imageType");var ZPr={};if("ytAttributedStringLinkHoverColor"in ZPr)throw Error("fh`ytAttributedStringLinkHoverColor");(function(N,t){ZPr[N]="value"in t&&"unit"in t?th9(N,t):function(O){try{return t(O)}catch(H){throw Error("dh`"+N+"`"+H.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var VUZ=function(N){var t=this;this.holdTime=N===void 0?500:N;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(O){var H=new CustomEvent("LONG_PRESS"),A;(A=O.changedTouches[0].target)==null||A.dispatchEvent(H)};
this.ontouchstart=function(O){t.longPressTimeout=_.yD(_.GB,function(){t.onlongpress(O);t.longPressOccurred=!0},t.holdTime)};
this.ontouchmove=function(){_.GB.cancelJob(t.longPressTimeout);t.longPressTimeout=NaN;t.longPressOccurred=!1;t.moveOccurred=!0};
this.ontouchend=function(O){if(t.longPressTimeout&&!t.longPressOccurred&&!t.moveOccurred){var H;(H=O.changedTouches[0].target)==null||H.dispatchEvent(new Event("click"))}_.GB.cancelJob(t.longPressTimeout);t.longPressTimeout=NaN;t.longPressOccurred=!1;t.moveOccurred=!1}};var i$G=function(N,t){VUZ.call(this,t);var O=this;this.callback=N;this.onlongpress=function(H){var A;(A=O.callback)==null||A.call(O,H)}};
_.p(i$G,VUZ);var u8M=function(N,t){var O=Object.assign({},t);N=_.D(new Map([["ontouchstart",N.ontouchstart],["ontouchend",N.ontouchend],["ontouchmove",N.ontouchmove]]));for(var H=N.next(),A={};!H.done;A={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},H=N.next()){var Z=_.D(H.value);H=Z.next().value;Z=Z.next().value;A.eventName$jscomp$103=H;A.eventHandler$jscomp$2=Z;t[A.eventName$jscomp$103]=function(U){return function(C){var F;(F=O[U.eventName$jscomp$103])==null||F.call(O,C);(0,U.eventHandler$jscomp$2)(C)}}(A)}};_.jo=new _.dk("COMMAND_HANDLER_TOKEN");var H$O=new _.Fp("parallelCommand");var Vhy=new _.Fp("performOnceCommand");var Z$g=new _.Fp("serialCommand");var DQ9=void 0;var DZQ=function(){this.data=[];this.consumer=null};
DZQ.prototype.push=function(N){this.consumer?this.consumer(N):this.data.push(N)};var Qe={};_.b$(Qe,void 0,"sgPmTd");_.b$(null,void 0,"jypsq");_.b$(null,void 0,"mWiOof");var q0M=new DZQ;var BBN=[JRY,owr,sdu,tVa,NGp,vwa,OUB,HUu];var XPg=new _.Fp("bracketTextDecorator");var fC=new _.Fp("highlightTextDecorator");_.I_=new _.dk("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var aGp=function(){},UZQ;
(UZQ=window.requestIdleCallback)==null||UZQ.bind(window);var wPp={calledOnce:!1,state:"visible"},TBQ={calledOnce:!1,state:"hidden"};var C6E=new _.dk("ICON_WIZ_COMPONENT_TOKEN");_.dq=_.q(function(N){var t=N.icon;var O=N.active;var H=N.className;var A=N.style;var Z=N.dataSelected;var U=N.dataDisabled;var C=N.role;var F=N.animateIcon;var g=N.themeOverride;var B=N.ariaHidden;var c=N.ariaExpanded;var u=N.ariaLabel;var S=N.tabindex;var b=N.id;var z=N.size;var w=N.iconFilter;var P=N.gradientColor;var x=N.onKeydown;var l=N.title;return _.d(_.y,{cond:t,then:function(){var I=_.cY().resolve(C6E);return _.d(I,{icon:t,dataSelected:Z,dataDisabled:U,animateIcon:F,themeOverride:g,ariaExpanded:c,
tabindex:S,id:b,active:O,size:z,role:C,className:H,ariaHidden:B,ariaLabel:u,style:function(){return A!=null&&A()||z==null||!z()?A==null?void 0:A():"width: "+(z==null?void 0:z())+"px;height: "+((z==null?void 0:z())+"px;")},
title:l,iconFilter:w,gradientColor:P,onKeydown:x})}})},"l");
_.dq.idomCompat={callbacks:{onKeydown:!0}};var tUO=new _.Fp("borderImageProcessor");var At9=window.devicePixelRatio||1;var UZl=new Map([["yt_outline_bag_black_24","bag"]]);var Bu=function(N){var t=this;this.margin=.1;this.whenInViewportWithMargin=N;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){t.requestScan()});
window.addEventListener("touchend",function(){t.requestScan()});
window.addEventListener("updateui",function(){t.requestScan()});
var O=new _.KE((0,_.qn)(this.requestScan,this),100);window.addEventListener("scroll",function(){O.fire()},!0);
window.addEventListener("resize",(0,_.qn)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){t.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.qn)(this.requestScan,this))};
Bu.prototype.observe=function(N){this.observationTargets.includes(N)||this.observationTargets.push(N)};
Bu.prototype.unobserve=function(N){this.observationTargets=this.observationTargets.filter(function(t){return t!==N})};
Bu.prototype.requestScan=function(){var N=this;this.scanRequested||(bb(function(){KoE(N)}),this.scanRequested=!0)};
var KoE=function(N){var t=(1+N.margin)*(document.documentElement.clientHeight||window.innerHeight);N.observationTargets=N.observationTargets.filter(function(O){var H=O.getBoundingClientRect();(H=t>H.top&&!!H.height)&&N.whenInViewportWithMargin(O);return!H&&O.parentNode});
N.scanRequested=!1};
Bu.prototype.disconnect=function(){this.observationTargets=[]};var Fo_,gdR;Fo_=_.D(_.b$(gdN(),void 0,"O3X2wd"));_.dZY=Fo_.next().value;gdR=Fo_.next().value;window.addEventListener("resize",function(){gdR(gdN())});var ytB={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},BsR=void 0,ct0=window.innerWidth,$Za=window.innerHeight;window.addEventListener("resize",function(){BsR=void 0});var jZr;if("IntersectionObserver"in window)jZr=ct4();else{if(BsR===void 0){var iPZ;iPZ="matchMedia"in window?window.matchMedia(ytB.landscape+","+ytB.portrait).matches:void 0;BsR=iPZ!==void 0?iPZ:ct0>=930&&$Za>=550||ct0>=550&&$Za>=930}jZr=BsR?{observe:function(N){bb(function(){var t;(t=N.onViewportEntered)==null||t.call(N)})},
unobserve:function(){}}:new Bu(function(N){bb(function(){var t;
(t=N.onViewportEntered)==null||t.call(N)})})}var ytO=jZr;var uXS=_.q(function(N){var t=!1,O=_.Fy("img",function(H){_.Ia(function(){t=!0;H.onload=null})});
_.rp(function(){var H,A=(H=N.data)==null?void 0:H.call(N),Z,U=(Z=N.getSrc)==null?void 0:Z.call(N).cb,C;H=(C=N.config)==null?void 0:C.call(N);if(C=O.value)if(Z=function(g,B){if(!t)return U?U(g,B):g},iPG(C,H),_.h("web_image_dont_reload_same_src")&&jZv(C,A,Z))_.h("web_image_dont_reload_same_src_simulate_load")&&C.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var F;$Z9(C,A||null,Z,H,(F=N.lazy)==null?void 0:F.call(N))}},"zS0jKb");
return _.d("img",{el:O})},"n");
uXS.idomCompat=!0;_.Qt=_.q(function(N){var t=function(){var O,H=N.data(),A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E,J,CN,B4,zM,jy,c4,XO,kx,fN,gf;var yr={contentMode:(A=N.contentMode)==null?void 0:A.call(N),loadedClass:(Z=N.loadedClass)==null?void 0:Z.call(N),isPreloaded:(U=N.isPreloaded)==null?void 0:U.call(N),notifyOnLoaded:(C=N.notifyOnLoaded)==null?void 0:C.call(N),notifyOnUnloaded:(F=N.notifyOnUnloaded)==null?void 0:F.call(N),preferredThumbnail:(g=N.preferredThumbnail)==null?void 0:g.call(N),preserveHeight:(B=N.preserveHeight)==
null?void 0:B.call(N),preserveWidth:(c=N.preserveWidth)==null?void 0:c.call(N),objectPosition:(u=N.objectPosition)==null?void 0:u.call(N),targetWidth:(S=N.targetWidth)==null?void 0:S.call(N),targetHeight:(b=N.targetHeight)==null?void 0:b.call(N),shouldShowPlaceholder:(z=N.shouldShowPlaceholder)==null?void 0:z.call(N),useWidth:(w=N.useWidth)==null?void 0:w.call(N),isToggled:(P=N.isToggled)==null?void 0:P.call(N),alt:(x=N.alt)==null?void 0:x.call(N),className:(l=N.className)==null?void 0:l.call(N),
onerror:N.onerror,onload:N.onload,style$:((I=N.style$)==null?void 0:I.call(N))||((r=N.style)==null?void 0:r.call(N)),color:(E=N.color)==null?void 0:E.call(N),width:(J=N.width)==null?void 0:J.call(N),height:(CN=N.height)==null?void 0:CN.call(N),"aria-hidden$":(fN=(B4=N["aria-hidden$"])==null?void 0:B4.call(N))!=null?fN:(zM=N.ariaHidden)==null?void 0:zM.call(N),draggable:(jy=N.draggable)==null?void 0:jy.call(N),"data-disabled$":(gf=(c4=N["data-disabled$"])==null?void 0:c4.call(N))!=null?gf:(XO=N.dataDisabled)==
null?void 0:XO.call(N),size:(kx=N.size)==null?void 0:kx.call(N)};return h1Q(H,yr,(O=N.hideOn404)==null?void 0:O.call(N))};
return _.d(_.WZ,null,_.d(_.qC,{when:function(){var O;return((O=t())==null?void 0:O.type)==="image"}},function(){return _.d(uXS,{data:function(){return t().image},
getSrc:{cb:function(O,H){var A=t().image.sources,Z=t().config.isPreloaded,U=t().config.useWidth,C=t().config.targetWidth,F=t().config.targetHeight,g=t().config.preferredThumbnail;return _.ZPv(H,A,Z,U,C,F,g)||""}},
config:function(){var O=t().config,H;for(H in O)O[H]===void 0&&delete O[H];return O},
lazy:N.renderLazy})}),_.d(_.qC,{when:function(){var O;
return((O=t())==null?void 0:O.type)==="icon"}},function(){return _.d(_.dq,{icon:function(){return t().iconName},
role:function(){return t().config.role},
className:function(){return t().config.className},
style:function(){return t().config.style$+";width: "+(t().config.width+"px;height: ")+(t().config.height+"px;color: ")+(t().config.color+";")},
ariaLabel:function(){return t().config["aria-label$"]},
ariaHidden:function(){return t().config["aria-hidden$"]},
dataDisabled:function(){return t().config["data-disabled$"]},
active:function(){return t().config.isToggled},
size:function(){return t().config.size}})}))},"o");
_.Qt.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var SVY=function(N){return function(t){return _.d(Wb9,null,function(){var O=t.data(),H=_.Qo(t.config);return _.d($U9,null,function(){return void N(O,H)})})}}(YVG),LoG=_.q(function(N){var t=function(A){var Z,U,C=_.E4(function(S){Z=A();
U=l$(function(){for(var b=_.D(c()),z=b.next();!z.done;z=b.next()){z=a2x(z.value);z=typeof z==="string"?document.createTextNode(z):z;if(!(z instanceof Node)){b=new _.fF("Part is not a node",z,typeof z);_.R0(b);break}S.appendChild(z)}})}),F=_.Gr(N.config),g=function(){var S;
return IGS(A(),(S=F())==null?void 0:S.ariaLabel)},B=bPG(F,{isEqual:wtM}),c=function(){var S=nWx(A(),B());
lGS(S,B());return A().content?vWp(A().content,S).parts:[]},u=!0;
_.rp(function(){A();B();if(u){u=!1;var S=ptx(A(),Z);if(!_.h("web_attributed_string_race_fix")||S)return}var b=c();Promise.resolve().then(function(){var z=C.value;if(z){z.innerText="";var w;(w=U)==null||w();U=_.Io(z,function(){return _.d(TsN,{parts:b})},"r")}})},"hIYo9d");
return _.d("span",{el:C,class:function(){return A()&&pPv(A(),F())},
dir:function(){var S;return((S=F())==null?0:S.userInput)?"auto":void 0},
"aria-label":function(){var S;return g()?(S=F())==null?void 0:S.ariaLabel:void 0},
role:function(){return g()?"text":void 0}})},O=bPG(function(){var A,Z=(A=N.text)==null?void 0:A.call(N);
if(Z)return A=WLt(Z),(A==null?0:A.content)?A:void 0},{isEqual:ptx}),H;
return((H=N.config)==null?0:H.contentAsserted)?t(O):_.d(_.y,{cond:O,then:t})},"t");
LoG.idomCompat=!0;_.cu=_.q(function(N){var t=_.Gr(N.text),O=e1l(N);N.contentAsserted!==void 0&&(O.contentAsserted=!0);return _.h("attr_string_reactive")?_.d(LoG,{text:t,config:O}):_.d(_.y,{cond:function(){var H;return t()&&((H=WLt(t()))==null?void 0:H.content)},
then:function(){return _.d(SVY,{data:N.text,config:O})},
debugInstance:"Apcuac"})},"u");
_.cu.idomCompat=!0;var P6G=function(N,t,O){t=t===void 0?"unknown":t;O=O===void 0?{}:O;_.fF.call(this,N+" ("+t+")",Object.assign({},{name:"YtWcwError",tagName:t},O));Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(P6G,_.fF);_.Jd=new WeakMap;_.vV=!1;var f2v,nd9,qV4;_.$O=Symbol("hh");_.R_=Symbol("ih");f2v=Symbol("jh");nd9=new Set(Object.getOwnPropertyNames(Element.prototype));qV4=Symbol("kh");var h1_=_.q(function(N){return _.d("yt-attributed-string",{"aria-label":N.ariaLabel,hidden:N.hidden,id:N.id,class:N.className,"force-default-style":N.forceDefaultStyle},_.d(_.cu,{text:N.data,ariaLabel:N.ariaLabel,ellipsisTruncate:N.ellipsisTruncate,isOverlay:N.isOverlay,linkInheritColor:N.linkInheritColor,noPreWrap:N.noPreWrap,noWrap:N.noWrap,userInput:N.userInput,noEndpoints:N.noEndpoints,headerRuns:N.headerRuns,isHeadline:N.isHeadline}))},"v");
_.h("web_wiz_attributed_string")&&_.o_(h1_,"yt-attributed-string",{props:{ariaHidden:_.$O,ariaLabel:_.$O,className:_.$O,ellipsisTruncate:_.$O,isOverlay:_.$O,linkInheritColor:_.$O,noEndpoints:_.$O,noStyleRuns:_.$O,noLinkColor:_.$O,noPreWrap:_.$O,noWrap:_.$O,skipOnClick:_.$O,userInput:_.$O,headerRuns:_.$O,isHeadline:_.$O,id:_.$O,data:_.$O,hidden:_.$O,forceDefaultStyle:_.$O,text:_.R_,disableUpgrade:_.R_,disable:_.R_,slot:_.R_}});var jt=function(){return _.k.apply(this,arguments)||this};
_.p(jt,_.k);jt.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},YVG(this.data,this.config))};
_.W([_.Y(PBZ),_.Q("design:type",Object)],jt.prototype,"ytIdomTemplatingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jt.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jt.prototype,"ariaLabel",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jt.prototype,"disable",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jt.prototype,"ellipsisTruncate",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jt.prototype,"isOverlay",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],jt.prototype,"linkInheritColor",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jt.prototype,"noPreWrap",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jt.prototype,"noWrap",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jt.prototype,"userInput",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jt.prototype,"noEndpoints",void 0);_.W([_.X(),_.Q("design:type",Array)],jt.prototype,"headerRuns",void 0);
_.W([_.wz({is:"yt-attributed-string",disableElementRegistration:!0})],jt);
_.h("web_wiz_attributed_string")||_.n(jt,"yt-attributed-string",function(){if(Ata===void 0){var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
N.content.insertBefore(HPS().content.cloneNode(!0),N.content.firstChild);Ata=N}N=Ata;return N},{mode:2});var MUy,bPZ,Edg;MUy=function(){this.firstThumbnailLoaded=!1};
_.ptX=function(){bPZ||(bPZ=new MUy);return bPZ};
Edg=function(N){var t=_.ptX();t.firstThumbnailLoaded||(t.firstThumbnailLoaded=!0,_.zT("ftl",N))};
MUy.prototype.reset=function(){this.firstThumbnailLoaded=!1};var rty=0,mZM=new WeakMap,l2v=0,t4=new Set;var LoZ,z1R=function(){return LoZ!==void 0?LoZ:LoZ=document.createElement("template")};
document.head.appendChild(z1R().content);var YVZ;var Jtv,sZQ,iL;_.A4=_.H4.caches;iL=function(){};
iL.prototype.open=function(N){return _.A4.open(a2X(N))};
iL.prototype.has=function(N){return _.A4.has(a2X(N))};
iL.prototype.delete=function(N){return _.A4.delete(a2X(N))};
iL.prototype.match=function(N,t){var O=this,H,A,Z,U,C,F;return _.K(function(g){switch(g.nextAddress){case 1:return g.yield(O.keys(),2);case 2:H=g.yieldResult,A=_.D(H),Z=A.next();case 3:if(Z.done){g.jumpTo(5);break}U=Z.value;return g.yield(O.open(U),6);case 6:return C=g.yieldResult,g.yield(C.match(N,t),7);case 7:if(F=g.yieldResult)return g.return(F);Z=A.next();g.jumpTo(3);break;case 5:return g.return()}})};
var NUy=function(){};
_.p(NUy,iL);var a2X=function(N){if(N.includes(":"))throw Error("nh`"+N);return N+":"+_.kv("CacheStorage get")};
NUy.prototype.keys=function(){var N,t,O,H,A,Z,U,C,F;return _.K(function(g){if(g.nextAddress==1)return N=[],t=_.kv("CacheStorage keys"),g.yield(_.A4.keys(),2);O=g.yieldResult;H=_.D(O);for(A=H.next();!A.done;A=H.next())Z=A.value,U=_.vdM(Z),C=U.originalName,F=U.datasyncId,F===t&&N.push(C);return g.return(N)})};var uL=function(){var N=_.k.apply(this,arguments)||this;N.objectURL=null;N.loadTime=Infinity;return N};
_.p(uL,_.k);_.V=uL.prototype;_.V.renderIdom=function(){R14(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&uXM(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.V.objectFitToContentMode=function(N){switch(N){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.V.logThumbnailFailureVe=function(){var N=_.UM(197497);_.r_(_.gF(),N);var t=_.z8();t&&N&&t&&_.Wc(t,[N])};
_.V.loadImageFromCacheIfExists=function(N){var t=this,O=N.target;(O==null?0:O.src)&&OaN(O.src).then(function(H){t.objectURL=_.l9(H).toString();t.setSrc(O,t.objectURL)}).catch(function(){})};
_.V.onError=function(N){var t=this;if(_.h("web_use_cache_for_image_fallback")){var O=N.target;O&&OaN(O.src).then(function(H){t.objectURL=_.l9(H).toString();t.setSrc(O,t.objectURL)}).catch(function(){_.h("kevlar_woffle_log_thumbnail_failure_ve")&&t.logThumbnailFailureVe();
_.h("kevlar_woffle_fallback_image")&&t.setSrc(O,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.V.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.V.setConfig=function(){var N=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(t){N.loadImageFromCacheIfExists(t);N.revokeObjectURL();GYp(N.hostElement)},
onerror:function(t){N.onError(t)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.h("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.V.setSrc=function(N,t){t&&(N.src=t)};
_.W([_.Y(PBZ),_.Q("design:type",Object)],uL.prototype,"ytIdomTemplatingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],uL.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],uL.prototype,"alt",void 0);_.W([_.X(),_.Q("design:type",Boolean)],uL.prototype,"ftlEligible",void 0);_.W([_.X(),_.Q("design:type",Number)],uL.prototype,"height",void 0);_.W([_.X(),_.Q("design:type",Boolean)],uL.prototype,"notifyOnLoaded",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],uL.prototype,"notifyOnUnloaded",void 0);_.W([_.X(),_.Q("design:type",String)],uL.prototype,"objectFit",void 0);_.W([_.X(),_.Q("design:type",String)],uL.prototype,"objectPosition",void 0);_.W([_.X(),_.Q("design:type",String)],uL.prototype,"preferredThumbnail",void 0);_.W([_.X(),_.Q("design:type",Boolean)],uL.prototype,"preserveHeight",void 0);_.W([_.X(),_.Q("design:type",Boolean)],uL.prototype,"preserveWidth",void 0);
_.W([_.X({value:!0}),_.Q("design:type",Boolean)],uL.prototype,"useWidth",void 0);_.W([_.X({value:function(){return!_.vZ("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Q("design:type",Boolean)],uL.prototype,"shouldRenderLazy",void 0);_.W([_.X(),_.Q("design:type",Number)],uL.prototype,"width",void 0);_.W([_.wz({is:"yt-image",disableElementRegistration:!0})],uL);
_.n(uL,"yt-image",function(){if(YVZ===void 0){var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);N.content.insertBefore(z1R().content.cloneNode(!0),N.content.firstChild);
YVZ=N}N=YVZ;return N},{mode:2});var St=function(){return _.k.apply(this,arguments)||this};
_.p(St,_.k);St.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var N=_.wF(this.data.onVisibleCommand);N&&this.ytComponentBehavior.resolveCommand(N)}};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],St.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.dd.YtVisibilityBehavior),_.Q("design:type",Object)],St.prototype,"ytVisibilityBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],St.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],St);
_.n(St,"yt-bumper-user-edu-content-view-model",function(){if(TB_===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;aGY===void 0&&(aGY=document.createElement("template"));var H=aGY;O.call(t,H.content.cloneNode(!0),N.content.firstChild);TB_=N}N=TB_;return N},{mode:0});var TsR;var wtS,e1Q=function(){if(wtS!==void 0)return wtS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden$="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;TsR===void 0&&(TsR=document.createElement("template"));var H=TsR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return wtS=N};var P6Z;_.hP={};P6Z=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"]);_.hP.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var N=this.getContext_();return N?N.getTaskManager():_.GB},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var N=_.or(this.hostElement,"yt-get-context-provider",{});N.detail&&N.detail.contextProvider?this.cachedProviderNode_=N.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return P6Z.has(this.hostElement.localName)},
getNetworkManager:function(){var N=this.getContext_();if(N)return N.getNetworkManager()}};var UWO,XtE,kYr,xZr;_.MF=function(N){var t=XtE.get(N);if(t&&(t=t.pop()))return xZr++,t;kYr++;try{var O=document.createElement(N)}catch(H){throw new _.fF("ElementPool failed to create element",N,H.message);}return O};
UWO=function(N){var t=N.is;if(t){var O=XtE.get(t);O||(O=[],XtE.set(t,O));var H=_.Ro("ELEMENT_POOL_CONFIG")||{};O.length>=(H[t]!==void 0?H[t]:_.Ro("ELEMENT_POOL_DEFAULT_CAP",0))||O.push(N)}else _.J_(new _.fF("Element pool should only handle custom elements:",N.nodeName))};
XtE=new Map;kYr=0;xZr=0;var ZN=new WeakMap,DWM=new WeakMap;var f2r;_.bL=function(N,t,O){O=O===void 0?_.zh():O;this.JSC$14050_defaultPriority=N;this.signal=t;this.scheduler=O;this.nextJobDescriptor=0;this.JSC$14050_parkedJobs=[];this.scheduledJobs=new Map};
_.pD=function(N,t){if(t){var O=_.iI();N.signal&&!_.uI(O,N.signal)?(O.addListener(N.signal,function(){N.processSignal()}),N.JSC$14050_parkedJobs.push({job:t,
priority:void 0})):qV0(N,t)}};
f2r=function(N,t){if(t!==N.JSC$14050_defaultPriority){N.JSC$14050_defaultPriority=t;for(var O=_.D(N.scheduledJobs.values()),H=O.next();!H.done;H=O.next())H=H.value,N.scheduler.cancelJob(H.jobId),H.jobId=N.scheduler.addJob(H.jobWrapper,t)}};
_.bL.prototype.flushJobs=function(){f2r(this,10);this.processSignal()};
_.bL.prototype.cancel=function(){for(var N=_.D(this.scheduledJobs),t=N.next();!t.done;t=N.next()){var O=_.D(t.value);t=O.next().value;O=O.next().value;this.scheduler.cancelJob(O.jobId);this.scheduledJobs.delete(t)}this.JSC$14050_parkedJobs=[]};
_.bL.prototype.processSignal=function(){for(var N=_.D(this.JSC$14050_parkedJobs),t=N.next();!t.done;t=N.next())t=t.value,qV0(this,t.job,t.priority);this.JSC$14050_parkedJobs=[]};
var qV0=function(N,t,O){O=O||N.JSC$14050_defaultPriority;if(O===10)Oi(t);else{var H=N.nextJobDescriptor++,A=function(){t();N.scheduledJobs.delete(H)},Z=N.scheduler.addJob(A,O);
N.scheduledJobs.set(H,{jobWrapper:A,jobId:Z,priority:O})}};var nda;_.LD={};nda={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.LD.YtRendererstamperBehavior=[_.hP.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var N in this.stampDom){var t=this.stampDom[N];t&&t.id&&this.addReactiveSchema({type:"observe",method:{methodName:AUx(t.id),args:[{type:"wildcard",path:N}]}})}else{(N=(this.constructor.generatedFrom||this).observers)||(N=[]);for(t in this.stampDom){var O=this.stampDom[t];O&&O.id&&N.push(AUx(O.id)+"("+t+".*)")}this.constructor.generatedFrom.observers=N}},
addStampDomObserverFns_:function(){for(var N in this.stampDom){var t=this.stampDom[N];t.id?(this[AUx(t.id)]=this.rendererStamperObserver_.bind(this,N,t.id),this.hasDataPath_[N]=!1):(t=new _.fF("Bad rendererstamper config",this.is+":"+N),_.R0(t))}},
rendererStamperObserver_:function(N,t,O){if(O.path==N){if(O.value===void 0&&!this.hasDataPath_[N])return;this.hasDataPath_[N]=O.value!==void 0}this.rendererStamperApplyChangeRecord_(N,t,O)},
rendererStamperApplyChangeRecord_:function(N,t,O){var H=this.renderJobsMap_[t],A=null;N==O.path?(O=O.value,_.lQ(O)||(O=O===void 0||O===null?[]:[O]),N=this.stampDom[N],N.mapping&&(A=this.stampDomArray_.bind(this,O,t,N.mapping,N.reuseComponents,N.events,N.stamperStableList)),H&&H.cancel(),O=N.usePageScheduler?this.getTaskManager():void 0,H||N.initialRenderPriority==void 0)?N.renderPriority==void 0||H||(H=new _.bL(N.renderPriority,N.waitForSignal,O),this.renderJobsMap_[t]=H):(H=new _.bL(N.initialRenderPriority,
N.waitForSignal,O),this.renderJobsMap_[t]=H,A=function(Z,U){Z();f2r(U,10)}.bind(this,A,H)):A=N+".splices"==O.path?this.stampDomArraySplices_.bind(this,N,t,O.value):this.forwardRendererStamperChanges_.bind(this,N,t,O);
H?_.pD(H,A):A()},
forwardRendererStamperChanges_:function(N,t,O){var H=O.path.slice(N.length+1),A=this.getStampContainer_(t),Z=H.indexOf("."),U=H.substring(0,Z),C=!1,F=0,g=parseInt(U,0);if(U[0]=="#"){C=parseInt(U.substring(1),0);g=this.get(N);var B=this.get([N,U]);g[C]==B?F=C:F=g.indexOf(B);C=!0}else isNaN(g)||(F=g,C=!0);C&&(H=H.substring(U.length+1),Z=H.indexOf("."));U=this.polymerDom(A).children[F];var c;if(A=(c=U==null?void 0:U.polymerController)!=null?c:U)H="data"+H.slice(Z),typeof A.notifyPath!=="function"?_.J_(new _.fF("notifyPath missing",
this.is+": "+N+", "+t)):O.value?A.notifyPath(H,O.value):A.notifyPath(H)},
stampDomArraySplices_:function(N,t,O){if(O&&O.indexSplices){var H=this.getStampContainer_(t);if(H){for(var A=this.polymerDom(H),Z=VXx(this.stampDom[N].reuseComponents),U=O.indexSplices.length,C=0;C<U;C++){for(var F=O.indexSplices[C],g=A.children[F.index],B=F.removed.length;B>0;B--)g&&g.parentElement&&(this.polymerDom(g.parentElement).removeChild(g),Z&&UWO(g),g=A.children[F.index]);B=this.stampDom[N].mapping;for(var c=F.index+F.addedCount,u=document.createDocumentFragment(),S=Z,b=F.index;b<c;b++){var z=
F.object[b],w=HaQ(B,z);if(w){var P=B[w];z=z[w];w=this.getComponentName_(P,z);var x=g?ZN.has(g):!1;S&&g&&g.is==w&&x?(w=g,this.telemetry_.reuse++,g=g.nextElementSibling):S&&g&&x?(w=this.createComponent_(P,z,Z),x=this.polymerDom(g).nextElementSibling,A.insertBefore(w,x),KUl(this.is,A,g,Z),g=x):(S=!1,w=this.createComponent_(P,z,Z),u.appendChild(w));this.deferRenderStamperBinding_(w,P,z)}else P=new _.fF("Unimplemented type",N,t,H.tagName,Object.keys(z)[0]),_.R0(P)}A.insertBefore(u,g)}this.flushRenderStamperComponentBindings_();
this.stampDom[N].events&&_.or(this.hostElement,"yt-rendererstamper-finished",{container:H})}else N=new _.fF("Container object not found",t,this.hostElement?this.hostElement.is:""),_.R0(N)}},
stampDomArray_:function(N,t,O,H,A,Z){var U=this.getStampContainer_(t);if(U)if(t=this.polymerDom(U),H=VXx(H),N){var C=0,F=0,g;if(Z=Z===void 0?_.vZ("STAMPER_STABLE_LIST",!1):Z||!1)for(g=t.firstElementChild;g&&!ZN.has(g)&&N.length>F;){Z=N[F];var B=HaQ(O,Z);if(B){if(this.getComponentName_(O[B],Z[B])!=g.is){var c=this.createComponent_(O[B],Z[B],H),u=this.polymerDom(g).nextElementSibling;u?t.insertBefore(c,u):t.appendChild(c);KUl(this.is,t,g,H);g=c}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(g,
O[B],Z[B]);C++;F++;g=this.polymerDom(g).nextElementSibling}else F++}FUv(this.is,t,C,H);C=g;if(N.length>F){Z=document.createDocumentFragment();for(B=N.length;F<B;F++)if(c=N[F],u=HaQ(O,c))g=this.createComponent_(O[u],c[u],H),this.deferRenderStamperBinding_(g,O[u],c[u]),Z.appendChild(g);if(C&&this.polymerDom(C).parentNode&&g&&!ZN.has(g))t.insertBefore(Z,C);else try{t.appendChild(Z)}catch(S){_.J_(new _.fF("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();A&&_.or(this.hostElement,"yt-rendererstamper-finished",{container:U})}else FUv(this.is,t,0,H);else N=new _.fF("Container object not found",t,this.hostElement?this.hostElement.is:""),_.R0(N)},
polymerDom:function(N){return this.minimizePipBreakages?N:_.$L(N)},
getStampContainer_:function(N){return this.$&&this.$[N]||_.O6(this.hostElement).querySelector("#"+N)},
getComponentName_:function(N,t){return typeof N==="string"?N:N.matcher?N.matcher.call(this,t):N.component},
createComponent_:function(N,t,O){N=this.getComponentName_(N,t);try{var H=lVS.has(N);if(O&&!H){var A=_.MF(N);try{_.CO(A)}catch(Z){O="Failed to clear styles for "+N+".",Z.message&&(O+=" Original error: "+Z.message),_.J_(new _.fF(O))}}else A=document.createElement(N)}catch(Z){return A="YtRendererStamperBehavior failed to create "+N+".",Z.message&&(A+=" Original description: "+Z.message),Z.message="YtRendererStamperBehavior failed to create element",_.o0(Z,A),nda.hasOwnProperty(N)?_.J_(Z):_.R0(Z),document.createElement("SPAN")}this.telemetry_.create++;
return A},
deferRenderStamperBinding_:function(N,t,O){this.deferredBindingTasks_.push({component:N,typeOrConfig:t,data:O})},
flushRenderStamperComponentBindings_:function(){for(var N=0,t=this.deferredBindingTasks_.length;N<t;N++){var O=this.deferredBindingTasks_[N];if(!O)break;var H=void 0,A=void 0,Z=void 0,U=void 0,C=O.component,F=O.typeOrConfig;O=O.data;var g=(U=C.polymerController)!=null?U:C;U=C.loggingStatus;try{U&&(U.isRendererStamper=!0);if(typeof F!=="string"){for(Z in F.attributes)F.attributes[Z]===!0?C.setAttribute(Z,""):F.attributes[Z]===!1?C.removeAttribute(Z):C.setAttribute(Z,F.attributes[Z]);for(A in F.params)g[A]=
F.params[A],C!==g&&hn(C.localName,A,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(H in F.properties){var B=F.properties[H];if(B){var c=Zat(B);g[H]=this.get(c);C!==g&&hn(C.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(H==="on-tap"||H==="on-click"){var u=this.get(c);C.addEventListener("click",u);DWM.set(C,{property:H,listener:{type:"element",eventName:"click",handler:u}})}}else{var S=new _.fF("Undefined property binding",H);_.R0(S)}}}if(F.classListBinding){var b=Zat(F.classListBinding),
z=b?this[b]:null;if(z)for(H=0;H<z.length;H++)_.VQ(C,z[H],!0)}g.data=O}finally{U&&(U.isRendererStamper=!1)}if(H=ZN.get(C))C.hidden=!1,ZN.delete(C),_.GB.cancelJob(H)}this.deferredBindingTasks_.length=0}}];_.o_(_.q(function(N){function t(){O().seconds&&Z(swz({seconds:Number(O().seconds)-Date.now()/1E3}))}
var O=N.targetTimestamp;N=N.className;var H=_.D(_.b$("",void 0,"U1Q8Ae")),A=H.next().value,Z=H.next().value;_.lf(function(){t();var U=setInterval(function(){t()},1E3);
_.Ia(function(){clearInterval(U)})});
return _.d("yt-countdown",{class:_.V7("ytCountDownHost",N)},_.d("div",null,A))},"x"),"yt-countdown",{props:{targetTimestamp:_.$O,
className:_.R_}});_.z6=new _.dk("KEY_MANAGER_TOKEN");var iat={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"};_.YO=_.q(function(N){var t=_.Fy("a",N.ref),O=N.aTagConfig?N.aTagConfig:_.aa(function(){var H,A,Z,U,C;var F=(C=_.wF((Z=N.command)==null?void 0:Z.call(N)))!=null?C:(U=N.command)==null?void 0:U.call(N);return _.PV({innertubeCommand:F,skipOnClick:(H=N.skipOnClick)==null?void 0:H.call(N),defaultTarget:(A=N.target)==null?void 0:A.call(N)})||{}},void 0,"TAvz0");
_.rp(function(){_.h("mweb_get_endpoint_from_atag_command")||(t.value._data=O()._data,t.value.params=O().params)},"dcjvAe");
return _.d("a",{el:t,href:function(){return O().href$},
rel:function(){return O().rel$},
class:function(){var H,A;return(A=O().className)!=null?A:(H=N.className)==null?void 0:H.call(N)},
style:function(){var H;if((H=N.style)==null?0:H.call(N))return N.style();var A;return((A=N.disabled)==null?0:A.call(N))?"pointer-events:none":""},
"aria-haspopup":function(){return!!O()["aria-haspopup$"]},
"force-new-state":CE(function(){return O()["force-new-state$"]}),
title:CE(function(){var H,A;return(A=O().title$)!=null?A:(H=N.title)==null?void 0:H.call(N)}),
role:CE(function(){var H;return((H=N.role)==null?void 0:H.call(N))||O().role$}),
target:CE(function(){return O().target$}),
dir:CE(function(){var H;return((H=N.dir)==null?void 0:H.call(N))||O().dir}),
tabindex:function(){var H;return O().tabindex$?Number(O().tabindex$):(H=N.tabIndex)==null?void 0:H.call(N)},
"aria-hidden":function(){var H,A;return(A=O()["aria-hidden$"])!=null?A:(H=N.ariaHidden)==null?void 0:H.call(N)},
"aria-label":function(){var H,A;return(A=O()["aria-label$"])!=null?A:(H=N.ariaLabel)==null?void 0:H.call(N)},
"aria-current":N.ariaCurrent,"aria-disabled":N.disabled,"aria-labelledby":N.ariaLabelledby,"aria-describedby":N.ariaDescribedby,"aria-selected":N.ariaSelected,"tab-identifier":N.tabIdentifier,"on:pointerdown":_.Ui(function(H){var A,Z;return void((Z=(A=O()).onpointerdown)==null?void 0:Z.call(A,H))}),
"on:click":_.Ui(function(H){var A,Z;(Z=(A=O()).onclick)==null||Z.call(A,H);var U;(U=N.onClick)==null||U.call(N,H)}),
"on:focusin":_.Ui(function(H){var A;(A=N.onFocusin)==null||A.call(N,H)}),
"on:focusout":_.Ui(function(H){var A;(A=N.onFocusout)==null||A.call(N,H)})},N.children)},"z");var zXO={duration:1E3,easing:"ease",fill:"forwards"};LUt.componentType=eG;var TUy={duration:1E3,easing:"ease",fill:"forwards"},I20=_.q(function(N){var t=_.Fy("animated-rolling-character"),O=void 0,H=function(){var C,F;return lO((C=N.character)==null?void 0:C.call(N))||lO((F=N.previousCharacter)==null?void 0:F.call(N))},A=_.D(_.b$(0,void 0,"CYT8Ob")),Z=A.next().value,U=A.next().value;
_.lf(function(){if(window.ResizeObserver&&_.h("web_fix_rolling_numbers_zoom_safari")){var C=new _.KE(function(){var g,B,c=Math.round(((B=(g=t.value.querySelector("div"))==null?void 0:g.getBoundingClientRect().height)!=null?B:0)*100)/100;c&&U(c)},500),F=new ResizeObserver(function(){C.fire()});
F.observe(t.value);_.Ia(function(){F.disconnect();C.dispose()})}});
_.rp(function(){var C=_.h("web_fix_rolling_numbers_zoom_safari")?Z:N.marginMultiplier;if(C()){var F;(F=O)==null||F.cancel();if(H()){var g;F=((g=N.previousCharacter)==null?0:g.call(N))?Number(N.previousCharacter())+10:N.rollUp()?0:30;var B;if((B=N.shouldAnimate)==null||!B.call(N)){var c,u;F-=a8x((c=N.character)==null?void 0:c.call(N),(u=N.previousCharacter)==null?void 0:u.call(N),N.rollUp(),F)}}else{F=N.rollUp()?0:2;var S;(S=N.shouldAnimate)!=null&&S.call(N)||(g=F,B=N.rollUp()?-1:1,F=g-B)}t.value.style.marginTop=
"-"+F*C()+"px";var b;if((b=N.shouldAnimate)==null?0:b.call(N)){var z,w;O=wNx(t.value,(z=N.character)==null?void 0:z.call(N),(w=N.previousCharacter)==null?void 0:w.call(N),N.rollUp(),F,H(),C())}else{var P;t.value.style.display=((P=N.character)==null?0:P.call(N))?"":"none"}}},"CA6Pmf");
return _.d("animated-rolling-character",{el:t,class:"animatedRollingCharacterHost"},_.d(_.y,{cond:H,then:function(){return _.d(WoB,null)},
else:function(){return _.d(rtE,{character:N.character})}}))},"C");
I20.idomCompat=!0;var eX4=_.h("web_enable_sink_animated_rolling_character_and_number")?I20:LUt,l2r=_.h("web_enable_sink_animated_rolling_character_and_number")?I20:YUv(LUt),WoB=_.q(function(){for(var N=[],t=1;t<30;t++)N.push(_.d("div",null,t%10));return _.d(_.BZ,null,_.d("div",null,"\u00a0"),N,_.d("div",null,"\u00a0"))},"D"),rtE=_.q(function(N){var t=N.character;
return _.d(_.BZ,null,_.d("div",null,"\u00a0"),_.d(_.y,{cond:function(){return!(t==null?0:t())||_.Dp(t==null?void 0:t())},
then:function(){return _.d("div",null,"\u00a0")},
else:function(){return _.d("div",null,t)}}),_.d("div",null,"\u00a0"))},"E");P7S.componentType=eG;var QZB=_.q(function(N){var t=void 0,O=void 0,H=function(){var Z;return((Z=N.fontSizeMultiplier)==null?0:Z.call(N))?N.heightPx()*N.fontSizeMultiplier():N.heightPx()},A=_.aa(function(){if(!N.numberText())return[];
var Z,U,C=((Z=N.forceRollUp)==null?void 0:Z.call(N))||!O||!((U=N.numberValue)==null?0:U.call(N))||O<N.numberValue(),F,g=N.numberText();Z=H();U=!((F=N.shouldAnimate)==null||!F.call(N));F=[];var B=0,c=0,u=(t?t.replace(/\D/g,"").length:0)-(g?g.replace(/\D/g,"").length:0),S=t?t.split(/(\d)/).filter(Boolean):[];for(g=g.split(/(\d)/).filter(Boolean);u<0;){var b=g[c];F.push({character:b,rollUp:C,marginMultiplier:Z,shouldAnimate:U});c++;lO(b)&&u++}for(;B<u;)b=S[B],F.push({previousCharacter:b,rollUp:C,marginMultiplier:Z,
shouldAnimate:U}),B++,lO(b)||u++;for(;c<g.length;)u=g[c],b=S[B],lO(u)===lO(b)?(c++,B++):lO(u)?(B++,u=void 0):lO(b)&&(c++,b=void 0),F.push({character:u,previousCharacter:b,rollUp:C,marginMultiplier:Z,shouldAnimate:U});t=N.numberText();var z;O=(z=N.numberValue)==null?void 0:z.call(N);return F},void 0,"kWiBv");
return _.d("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return N.numberText()?["height: "+H()+"px;","line-height: "+N.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.d(_.nL,{each:A,keyBy:"INDEX"},function(Z){return _.d(l2r,{character:function(){return Z().character},
previousCharacter:function(){return Z().previousCharacter},
marginMultiplier:function(){return Z().marginMultiplier},
rollUp:function(){return Z().rollUp},
shouldAnimate:function(){return Z().shouldAnimate}})}))},"F");
QZB.idomCompat=!0;_.mZS=_.h("web_enable_sink_animated_rolling_character_and_number")?QZB:YUv(P7S);var Edu=function(N,t){this.fillAnimation=new Animation(qUQ(N),document.timeline);this.strokeAnimation=new Animation(f8l(t),document.timeline)};
Edu.prototype.play=function(){var N,t;(t=(N=this.fillAnimation).play)==null||t.call(N);var O,H;(H=(O=this.strokeAnimation).play)==null||H.call(O)};
Edu.prototype.cancel=function(){var N,t;(t=(N=this.fillAnimation).cancel)==null||t.call(N);var O,H;(H=(O=this.strokeAnimation).cancel)==null||H.call(O)};_.aw=_.q(function(N){var t=N.model;var O=N.pointerDownEvent;var H=N.pointerUpEvent;var A=N.pointerLeaveEvent;var Z=N.hovered;N=_.Fy("yt-touch-feedback-shape");var U=_.Fy("div"),C=_.Fy("div"),F=_.D(_.Gb(function(){return(H==null?0:H())||(A==null?0:A())?!1:!(O==null||!O())||!1})),g=F.next().value,B=F.next().value,c=void 0,u=function(){!c&&C.value&&U.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(c=new Edu(C.value,U.value));
var x;(x=c)==null||x.play()},S=function(){var x;
(x=c)==null||x.cancel()},b=function(){var x;
(x=c)==null||x.cancel()};
_.rp(function(){(H==null?0:H())&&u()},"bg756c");
_.rp(function(){(O==null?0:O())&&S()},"QAes8c");
_.rp(function(){(A==null?0:A())&&b()},"YaFbrc");
F=_.Ui(function(){u();B(!1)});
var z=_.Ui(function(){S();B(!0)}),w=_.Ui(function(){b();
B(!1)});
_.Ia(function(){if(c){var x;(x=c)==null||x.cancel();c=void 0}});
var P={};g=_.V7("yt-spec-touch-feedback-shape",function(){return nzM(t().color)},function(){return WU4(t().thumbnailSize,!!t().isExtended)},(P["yt-spec-touch-feedback-shape--focused"]=function(){return!!t().focused&&!t().disabled},P["yt-spec-touch-feedback-shape--circular"]=function(){return!!t().circular},P["yt-spec-touch-feedback-shape--down"]=g,P["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!t().triggerEvents},P["yt-spec-touch-feedback-shape--hovered"]=function(){return Z==
null?void 0:Z()},P));
return _.d("yt-touch-feedback-shape",{el:N,class:g,style:_.FM({"margin-top":function(){return t().customTopExtend?"-"+t().customTopExtend+"px":void 0}}),
"on:mousedown":z,"on:mouseup":F,"on:pointerleave":w,"on:touchstart":z,"on:touchend":F,"aria-hidden":!0},_.d(_.y,{cond:function(){return!!t().hoverEffect},
then:function(){return _.d("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.FM({"border-radius":function(){return t().borderRadius},
background:function(){var x;if(x=t().hoverEffect){for(var l=[],I=_.D((x==null?void 0:x.lightingTechniques)||[]),r=I.next();!r.done;r=I.next())switch(r.value){case 2:var E=r=void 0,J=void 0,CN=void 0;l.push("linear-gradient(180deg, "+((r=x)==null?void 0:(E=r.palette)==null?void 0:E.keyLight)+", "+((J=x)==null?void 0:(CN=J.palette)==null?void 0:CN.background)+")")}var B4,zM;l.push((B4=t().hoverEffect)==null?void 0:(zM=B4.palette)==null?void 0:zM.background);x=l.join(", ")}else x=void 0;return x}})})}}),
_.d("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.FM({"border-radius":function(){return t().borderRadius},
"border-color":function(){var x,l;return(x=t().touchEffect)==null?void 0:(l=x.palette)==null?void 0:l.background}}),
el:U}),_.d("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.FM({"border-radius":function(){return t().borderRadius},
"background-color":function(){var x,l;return(x=t().touchEffect)==null?void 0:(l=x.palette)==null?void 0:l.background}}),
el:C}))},"J");
_.aw.idomCompat=!0;var GYY={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 T6=_.$x();T6=T6.toLowerCase();if(_.KN(T6,"android")){var R10=T6.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);R10&&parseFloat(R10[1])<100||T6.match("("+Object.keys(GYY).join("|")+")")};var vdS=_.q(function(N){return _.d(_.y,{cond:N.aTagConfig,then:function(t){return _.d(_.YO,{aTagConfig:t,disabled:N.disabled,className:N.className,style:N.style,title:N.title,ariaLabel:N.ariaLabel,ariaCurrent:function(){var O,H;return((O=N.toggleable)==null?void 0:O.call(N))&&((H=N.toggled)==null?void 0:H.call(N))},
ref:N.ref},N.children)},
else:function(){return _.d("button",{el:_.E4(N.ref),"on:click":_.Ui(function(t){var O;return(O=N.onClick)==null?void 0:O.call(N,t)}),
class:N.className,title:N.title,style:N.style,disabled:N.disabled,"aria-pressed":function(){var t,O;return((t=N.toggleable)==null?0:t.call(N))?!((O=N.toggled)==null||!O.call(N)):void 0},
"aria-label":N.ariaLabel,"aria-disabled":N.visiblyDisabled,"aria-hidden":N.ariaHidden,tabindex:N.tabIndex},N.children)}})},"K"),od0=_.q(function(N){var t=N.data;
var O=N.hasIconLeading;var H=N.hasIconLeadingTrailing;var A=N.hasIconTrailing;var Z=N.iconButton;var U=N.iconClassName;var C=N.secondaryIconClassName;var F=N.icon;var g=N.secondaryIcon;var B=N.textContentClassName;return _.d(wd,{className:"",style:"display: inherit; justify-content: center"},_.d(_.y,{debugInstance:"V4z1Uc",cond:function(){return F&&(O()||H()||(Z==null?void 0:Z()))},
then:function(){return _.d(wd,null,_.d("div",{class:U,"aria-hidden":"true"},F==null?void 0:F()))}}),_.d(_.y,{debugInstance:"ok3btb",
cond:function(){return(t().buttonText||t().animatedTextProps||t().formattedButtonText)&&!(Z==null?0:Z())},
then:function(){return _.d(wd,null,_.d(Jtr,{className:B,iconPosition:function(){return t().iconPosition},
text:function(){return t().buttonText},
oneOffCustomTextWrap:function(){return t().oneOffCustomTextWrap},
formattedButtonText:function(){return t().formattedButtonText},
animatedTextProps:function(){return t().animatedTextProps}}))}}),_.d(_.y,{debugInstance:"DO5Rz",
cond:A,then:function(){return _.d(wd,null,_.d("div",{class:U},F==null?void 0:F()))}}),_.d(_.y,{debugInstance:"bnojSc",
cond:H,then:function(){return _.d(wd,null,_.d("div",{class:C},g==null?void 0:g()))}}),_.d(_.y,{debugInstance:"HN3kad",
cond:function(){return!t().disabled&&!0},
then:function(){return _.d(_.aw,{model:function(){var c=t();return{color:c.style==="overlay-dark"?4:c.style==="overlay"?c.type==="filled"?4:3:c.type==="filled"||c.style==="call-to-action-inverse"||c.style==="mono-inverse"?2:1}}})}}))},"L"),Jtr=_.q(function(N){var t=function(){var O,H;
return((O=N.iconPosition)==null?void 0:O.call(N))==="icon-with-label"||((H=N.oneOffCustomTextWrap)==null?void 0:H.call(N))};
return _.d("div",{class:N.className,"aria-hidden":function(){var O,H,A;return((O=N.ariaHidden)==null?void 0:O.call(N))&&(!((H=N.animatedTextProps)==null||!H.call(N))||!((A=N.formattedButtonText)==null||!A.call(N)))}},_.d(_.WZ,null,_.d(_.qC,{when:function(){var O;
return(O=N.animatedTextProps)==null?void 0:O.call(N)}},function(){return _.d(_.mZS,{numberText:function(){return N.animatedTextProps().numberText},
numberValue:function(){return N.animatedTextProps().numberValue},
heightPx:function(){return N.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return N.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return N.animatedTextProps().shouldAnimate},
forceRollUp:function(){return N.animatedTextProps().forceRollUp}})}),_.d(_.qC,{when:function(){var O;
return(O=N.formattedButtonText)==null?void 0:O.call(N)}},function(){return _.d(_.cu,{text:function(){return Object.assign({},N.formattedButtonText(),{lineBreakMode:t()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":N.formattedButtonText().lineBreakMode,
alignment:t()?"TEXT_ALIGNMENT_CENTER":N.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!t()}})}),_.d(_.qC,{when:function(){var O,H;
return((O=N.iconPosition)==null?void 0:O.call(N))==="icon-with-label"&&((H=N.text)==null?void 0:H.call(N))}},function(){return _.d(_.cu,{text:function(){return{content:N.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.d(_.fL,null,function(){return N.text})))},"M"),sZ_=_.q(function(N){return _.d(_.y,{debugInstance:"kM7Sgc",
cond:N.hasLabel,then:function(){var t;return _.d("label",{class:N.className},N.children,(t=N.textContent)==null?void 0:t.call(N))},
else:function(){return N.children}})},"N"),wd=_.q(function(N){return N.children},"O");var NUE=_.q(function(N){function t(){Z(void 0);C(void 0);g(void 0)}
var O=_.E4(),H=_.D(_.b$(void 0,void 0,"Ug77pc")),A=H.next().value,Z=H.next().value;H=_.D(_.b$(void 0,void 0,"XGf7Zb"));var U=H.next().value,C=H.next().value,F=_.D(_.b$(void 0,void 0,"w55oqd"));H=F.next().value;var g=F.next().value;F=_.D(_.b$(0,void 0,"rBgpzc"));var B=F.next().value,c=F.next().value;F=_.Ui(function(){switch(B()){case 1:c(2);break;case 3:var S,b;(b=(S=O.value).hidePopover)==null||b.call(S);c(0);t()}});
_.rp(function(){if(N.show()){var S;Z((S=N.children)==null?void 0:S.call(N));var b;C((b=N.location)==null?void 0:b.call(N));var z;g((z=N.classNames)==null?void 0:z.call(N));switch(B()){case 0:var w,P;(P=(w=O.value).showPopover)==null||P.call(w);c(1);break;case 3:c(1);var x,l;(l=(x=O.value).hidePopover)==null||l.call(x);var I,r;(r=(I=O.value).showPopover)==null||r.call(I)}}else switch(B()){case 2:c(3);break;case 1:var E,J;(J=(E=O.value).hidePopover)==null||J.call(E);t();c(0)}},"Z8V4Qb");
_.Q8(function(){});
var u={};return _.d("yt-popover",{popover:"manual",el:O,style:_.FM({left:function(){var S;return(S=U())==null?void 0:S.left},
top:function(){var S;return(S=U())==null?void 0:S.top},
bottom:function(){var S;return(S=U())==null?void 0:S.bottom},
right:function(){var S;return(S=U())==null?void 0:S.right}}),
class:_.V7("ytPopoverComponentHost",H,(u.ytPopoverComponentHostClosing=function(){return B()===3},u.ytPopoverComponentHostSeeThrough=function(){var S;
return((S=N.seeThrough)==null?void 0:S.call(N))===!0},u)),
"on:animationend":F},A)},"Q");var tXE={left:"0px",right:"auto",top:"0px",bottom:"auto"},OaR=function(){var N=this;this.registerTooltipElement=function(O){var H;N.tooltipElement=(H=O.querySelector("yt-popover"))!=null?H:void 0};
var t=_.D(_.b$(void 0,void 0,"EIh5sc"));this.state=t.next().value;this.setState=t.next().value;t=_.D(_.b$(void 0,void 0,"PC1M0b"));this.schedulerJobID=t.next().value;this.setSchedulerJobID=t.next().value},vzQ=function(N,t){var O=y7,H=_.GB.addJob(function(){var A=Ha_(O,N,t);
O.currentConfig=t;O.setState({text:t.text,location:_.h("web_tooltip_location_fix")?void 0:A,anchor:N,offset:t.offset,style:t.style})},4,t.delay);
O.setSchedulerJobID(H)},JU9=function(){var N=y7,t=N.schedulerJobID();
t&&(_.GB.cancelJob(t),N.setSchedulerJobID(void 0));N.setState(void 0);N.currentConfig=void 0};
OaR.prototype.notify=function(N,t){var O;((O=this.state())==null?void 0:O.anchor)===N&&(O=Ha_(this,N,t),this.currentConfig=t,this.setState({text:t.text,location:_.h("web_tooltip_location_fix")?void 0:O,anchor:N,offset:t.offset,style:t.style}))};
var Ha_=function(N,t,O){var H=t.getBoundingClientRect();t=window.innerWidth;var A=window.innerHeight,Z=O.location,U=O.offset;O=O.text;if(N=N.tooltipElement){var C=getComputedStyle(N);N=C.font;var F=gq(C.lineHeight),g=gq(C.paddingLeft),B=gq(C.paddingRight),c=gq(C.paddingTop);C=gq(C.paddingBottom);var u=document.createElement("canvas").getContext("2d");u.font=N;O={width:u.measureText(O).width+g+B,height:F+c+C}}else O=void 0;N=O;if(!N)return tXE;O=N.width;N=N.height;g=U+N;c=U+O;F=H.top>=g;g=A-H.bottom>=
g;B=H.left>=c;c=t-H.right>=c;C=Z;switch(Z){case "top":!F&&g&&(C="bottom");break;case "bottom":!g&&F&&(C="top");break;case "left":!B&&c&&(C="right");break;case "right":!c&&B&&(C="left")}switch(C){case "top":Z=H.left+H.width/2-O/2;H=H.top-N-U;break;case "bottom":Z=H.left+H.width/2-O/2;H=H.bottom+U;break;case "left":Z=H.left-O-U;H=H.top+H.height/2-N/2;break;case "right":Z=H.right+U;H=H.top+H.height/2-N/2;break;default:Z=H.left+H.width/2-O/2,H=H.bottom+U}U=Object.assign({},tXE);Z+O>t?(U.right="0px",U.left=
"auto"):(U.left=Math.round(Math.max(0,Z)+window.scrollX)+"px",U.right="auto");H+N>A?(U.bottom="0px",U.top="auto"):(U.top=Math.round(Math.max(0,H)+window.scrollY)+"px",U.bottom="auto");return U};var y7;y7=new OaR;_.AUX=_.q(function(){var N=_.aa(function(){var A;return(A=y7.state())==null?void 0:A.anchor},void 0,"tiGUn"),t=_.aa(function(){var A;
return(A=y7.state())==null?void 0:A.text},void 0,"TA2GQe"),O=_.aa(function(){var A;
return(A=y7.state())==null?void 0:A.style},void 0,"ucvFsf"),H=_.h("web_tooltip_location_fix")?_.aa(function(){var A=N();
var Z=y7.currentConfig;if(A&&Z)return Ha_(y7,A,Z)},void 0,"EpDz6"):_.aa(function(){var A;
return(A=y7.state())==null?void 0:A.location},void 0,"aRJtfd");
return _.d("yt-tooltip",{class:"ytTooltipContainerHost",el:_.E4(y7.registerTooltipElement),"aria-hidden":"true"},_.d(NUE,{classNames:function(){switch(O()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:H,show:function(){return!!t()&&!!H()},
seeThrough:!0},t))},"R");var xUv=FS("stamper-context");_.et=_.q(function(N){var t=N.data;var O=N.icon;var H=N.iconName;var A=N.animateIcon;var Z=N.secondaryIcon;var U=N.secondaryIconName;var C=N.focusedOverride;var F=N.clientOnlyWizTooltipsEnabled;sep();var g=rUQ(t),B=g.size,c=g.style;N=g.disabled;var u=g.onTap,S=g.alignByText,b=g.aTagConfig,z=g.customColors,w=g.segmentedPosition,P=g.toggled,x=g.toggleable,l=g.accessibilityLabel,I=g.onToggle,r=g.iconPosition,E=g.oneOffCustomTextWrap,J=g.disableTextEllipsis,CN=g.disableBackdropFilter,B4=g.tooltipText,
zM=g.ariaHidden,jy=g.tabIndex,c4=g.buttonText,XO=g.formattedButtonText,kx=g.animatedTextProps,fN=g.onClickRateLimitMs,gf=mWv(t,O,Z,H,U,C,A),yr=gf.type;O=gf.shouldFocus;H=gf.hasIconLeading;A=gf.hasIconTrailing;var sS=gf.hasIconLeadingTrailing,$X=gf.hasIconOnly;Z=gf.hasIconOnly40;var pR=gf.hasIconWithLabel;U=gf.iconButton;var wf=gf.visiblyDisabled;C=gf.overrideSmallSizeIcon;var b1=gf.iconToRender;gf=gf.secondaryIconToRender;var $r=_.D(oz9(B4,g.tooltipShape)).next().value,US=function(hu){u==null||u(hu);
x()&&(I==null||I(hu))},H0=_.aa(function(){return fN==null?void 0:fN()},void 0,"siKywb"),SE=_.aa(function(){return H0()?lxr(US,H0()):US},void 0,"wDTcN");
g={};var v0={};return _.d(sZ_,{className:_.V7("yt-spec-button-shape-with-label",(g["yt-spec-button-shape-with-label--is-overlay"]=function(){return c()==="overlay"||c()==="overlay-dark"},g)),
hasLabel:pR,textContent:function(){return _.d(Jtr,{text:c4,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:E,iconPosition:r,formattedButtonText:XO,animatedTextProps:kx})}},_.d(vdS,{aTagConfig:b,
className:_.V7("yt-spec-button-shape-next",function(){return Ezg(yr())},function(){return wf()?void 0:GKN(c())},function(){return RXt(B())},(v0["yt-spec-button-shape-next--disabled"]=wf,v0["yt-spec-button-shape-next--focused"]=O,v0["yt-spec-button-shape-next--icon-trailing"]=A,v0["yt-spec-button-shape-next--icon-leading"]=H,v0["yt-spec-button-shape-next--icon-leading-trailing"]=sS,v0["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return sS()&&!(c4()||XO())},v0["yt-spec-button-shape-next--icon-button"]=
function(){return $X()||pR()},v0["yt-spec-button-shape-next--icon-only-default"]=Z,v0["yt-spec-button-shape-next--align-by-text"]=S,v0["yt-spec-button-shape-next--segmented-start"]=function(){return w()==="start"},v0["yt-spec-button-shape-next--segmented-end"]=function(){return w()==="end"},v0["yt-spec-button-shape-next--override-small-size-icon"]=C,v0["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=E,v0["yt-spec-button-shape-next--disable-text-ellipsis"]=J,v0["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!CN()&&!_.h("web_disable_backdrop_filter")},v0)),
style:function(){var hu=z();if(hu){var sp=hu.color;var LU=hu.backgroundColor;hu=hu.borderColor;var Qr="";sp&&(Qr+="color: "+sp+";");LU&&(Qr+="background-color: "+LU+";");hu&&(Qr+="border-color: "+hu+";");sp={style:Qr}}else sp={};return sp.style},
onClick:function(hu){SE()(hu)},
disabled:N,ariaLabel:l,toggleable:x,toggled:P,title:function(){return(F==null?0:F())||!B4()?"":B4()},
visiblyDisabled:wf,ariaHidden:zM,tabIndex:jy,ref:function(hu){(F==null?0:F())&&$r(hu)}},_.d(od0,{data:t,
hasIconLeading:H,hasIconLeadingTrailing:sS,hasIconTrailing:A,iconButton:U,icon:b1,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:gf})))},"T");
_.et.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.Pu=_.q(function(N){var t=N.data;var O=N.className;var H=N.style;var A=N.useOutlinedIcon;var Z=N.buttonOverrides;var U=N.animatedTextProps;var C=N.onClick;var F=N.target;var g=_.Fy("button-view-model",function(I){I.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var r=t().targetId;r&&_.kJy(_.Q6(),r,I);return function(){Xj_(_.Q6(),I)}}),B=function(){return t().iconName},c=_.cH(function(I){a:{var r=t().entityKey,E=t().buttonEntitySelectorType;
if(E&&r)switch(E){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":I=(I=_.DN(I,r))?{isHidden:I.adsState==="ADS_STATE_NONE"||I.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:I={isHidden:!1};break a}I=void 0}return I}),u,S=(u=_.cY().resolve(_.BY(_.WV)))==null?void 0:u(),b=function(){var I=t();
var r=Z==null?void 0:Z(),E=U==null?void 0:U(),J=F==null?void 0:F();if(I){var CN=Dvg(I.type);var B4=!!I.title||!!I.titleFormatted;var zM=!(!I.iconName&&!I.iconImage);B4=zM&&!B4?"icon-only":zM?I.iconTrailing||I.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;B4==="icon-only-40"&&(CN="text");var jy;zM=(jy=r==null?void 0:r.state)!=null?jy:Uvx(I.state);var c4,XO=(c4=r==null?void 0:r.disabled)!=null?c4:I.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||I.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.h("web_button_vm_refactor_disabled")){var kx;XO=(kx=r==null?void 0:r.disabled)!=null?kx:zM==="disabled"}E=E&&E.numberText&&!isNaN(Number(E.numberValue))?E:void 0;c4=Object;kx=c4.assign;jy=I.title;var fN=I.titleFormatted,gf=I.accessibilityText,yr=VKt(I.style),sS=CTS(I.buttonSize);J=Z3g(I,g,XO,C,J);XO=XO&&!I.onDisabledTap;var $X=H3l(I,g),pR=I.customFontColor,wf=I.customBackgroundColor;var b1=I.customBorderColor;var $r=I.customDarkThemeFontColor,US=I.customDarkThemeBackgroundColor,H0=I.customDarkThemeBorderColor;
pR=S&&$r?$r:pR;wf=S&&US?US:wf;b1=S&&H0?H0:b1;b1={color:pR?_.TV(pR):void 0,backgroundColor:wf?_.TV(wf):void 0,borderColor:b1?_.TV(b1):void 0};if(H0=_.M(I.tooltipData,T4X)){var SE;wf={text:(SE=H0.tooltipText)!=null?SE:"",location:tK9(H0.placement),style:H0.style}}else wf=void 0;I=kx.call(c4,{},{buttonText:jy,formattedButtonText:fN,animatedTextProps:E,accessibilityLabel:gf,style:yr,type:CN,state:zM,size:sS,iconPosition:B4,onTap:J,disabled:XO,aTagConfig:$X,customColors:b1,tooltipText:I.tooltip,tooltipShape:wf},
r)}else I={style:"mono",type:"text",state:"active",size:"M"};I.focused=P();return I},z=function(){return l8N(b(),!!t().iconName)};
N=_.D(_.b$(!1,void 0,"yZ8hab"));u=N.next().value;var w=N.next().value,P=u;N=_.Ui(function(){var I=_.cY().resolve(_.BY(_.z6));I&&w(I.isKeyBoardInUse());return!1});
u=_.Ui(function(){w(!1);return!1});
_.rp(function(){var I,r=_.M(t==null?void 0:(I=t())==null?void 0:I.onVisible,_.Tb);r&&_.eF(r,{disableClickTracking:!0})},"G9MlKd");
var x=function(){var I;return(t==null?0:(I=t())==null?0:I.iconImage)?{sources:[t().iconImage]}:void 0},l=_.h("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.d("button-view-model",{el:g,class:_.V7("ytSpecButtonViewModelHost",O),"on:focusin":N,"on:focusout":u},_.d(_.y,{cond:function(){var I,r;return!((r=t().entityKey&&t().buttonEntitySelectorType&&((I=c())==null?void 0:I.isHidden))!=null&&r)},
then:function(){return _.d(_.y,{cond:x,then:function(I){return _.d(_.et,{data:b,icon:function(){return _.d(_.Qt,{data:I,alt:"",targetWidth:z,targetHeight:z,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:l})},
else:function(){return _.d(_.et,{data:b,icon:function(){return _.d(_.dq,{icon:B,active:function(){return(A==null?0:A())?!1:b().toggled},
animateIcon:function(){var I;return!!(H==null?0:(I=H())==null?0:I.animateIcon)},
size:z})},
clientOnlyWizTooltipsEnabled:l})}})}}))},"V");
_.Pu.idomCompat={callbacks:{onClick:!0}};_.o_(_.q(function(N){return _.d("yt-button-view-model",{id:N.id,class:_.V7(N.scopingClassName,N.classes),icon:function(){var t;return(t=N.icon)==null?void 0:t.call(N)},
"dialog-dismiss":function(){var t;return((t=N.dialogDismiss)==null?0:t.call(N))?"":void 0}},_.d(_.Pu,{data:function(){var t;
return(t=N.data)==null?void 0:t.call(N)},
className:function(){var t;return(t=N.className)==null?void 0:t.call(N)},
style:function(){var t;return(t=N.style)==null?void 0:t.call(N)},
useOutlinedIcon:function(){var t;return(t=N.useOutlinedIcon)==null?void 0:t.call(N)},
buttonOverrides:function(){var t;return(t=N.buttonOverrides)==null?void 0:t.call(N)},
animatedTextProps:function(){var t;return(t=N.animatedTextProps)==null?void 0:t.call(N)},
onClick:function(t){var O;return(O=N.onClick)==null?void 0:O.call(N,t)}}))},"W"),"yt-button-view-model",{props:{data:_.$O,
className:_.$O,style:_.$O,useOutlinedIcon:_.$O,buttonOverrides:_.$O,animatedTextProps:_.$O,onClick:_.R_,scopingClassName:_.$O,id:_.$O,icon:_.$O,dialogDismiss:_.$O,classes:_.$O,target:_.R_}});_.o_(_.q(function(N){var t=N.data;var O=N.id;var H=N.className;var A=N.iconName;var Z=N.animateIcon;var U=N.secondaryIconName;N=_.D(_.b$(!1,void 0,"TtJl8"));var C=N.next().value,F=N.next().value,g=function(){var c=_.cY().resolve(_.BY(_.z6));c&&F(c.isKeyBoardInUse())},B=function(){F(!1)};
N=_.Fy("yt-button-shape",function(c){if(_.cY().resolve(_.BY(_.z6)))return c.addEventListener("focusin",g),c.addEventListener("focusout",B),function(){c.removeEventListener("focusin",g);c.removeEventListener("focusout",B)}});
return _.d("yt-button-shape",{el:N,id:O,class:H},_.d(_.y,{cond:t,then:function(){return _.d(_.et,{data:t,iconName:A,secondaryIconName:U,focusedOverride:C,animateIcon:Z})}}))},"X"),"yt-button-shape",{props:{data:_.$O,
id:_.$O,className:_.$O,iconName:_.$O,animateIcon:_.$O,secondaryIconName:_.$O,clientOnlyWizTooltipsEnabled:_.$O,disableUpgrade:_.$O},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var kO=function(){var N=_.k.apply(this,arguments)||this;N.isGoalActive=!0;return N};
_.p(kO,_.k);kO.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
kO.prototype.progressBarChanged=function(){var N=_.O6(this.hostElement).querySelector("#progress-bar-progress"),t,O,H,A=(H=Number((t=this.creatorGoalState)==null?void 0:t.currentGoalCount)/Number((O=this.creatorGoalState)==null?void 0:O.totalGoalCount)*100)!=null?H:0,Z;N.style.width=((Z=Math.min(A,100))!=null?Z:0)+"%"};
kO.prototype.goalStateChanged=function(){var N;this.isGoalActive=((N=this.creatorGoalState)==null?void 0:N.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var t;N={"--yt-progress-bar-color":qZN((t=this.creatorGoalState)==null?void 0:t.progressBarColor)};_.CO(this.hostElement,N)};
kO.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.cv.Object.defineProperties(kO.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var N;return this.isGoalActive&&!((N=this.creatorGoalState)==null||!N.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.creatorGoalState)==null?0:N.endTimestampMs){var t;N=Number((t=this.creatorGoalState)==null?void 0:t.endTimestampMs)/1E3;return{seconds:String(N)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.creatorGoalState)==null?0:N.themedTargetImage){var t;N=_.M((t=this.creatorGoalState)==null?void 0:t.themedTargetImage,Ss0);return this.isAppDarkTheme()?N==null?void 0:N.imageDark:N==null?void 0:N.imageLight}}}});
_.cv.Object.defineProperties(kO,{template:{configurable:!0,enumerable:!0,get:function(){return e1Q()}}});
kO.prototype.goalStateChanged=kO.prototype.goalStateChanged;kO.prototype.progressBarChanged=kO.prototype.progressBarChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],kO.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);
_.W([_.X({selectorArgs:["data.creatorGoalEntityKey"],selector:function(N,t){return _.CM(N.entities,"creatorGoalEntity",t)}}),
_.Q("design:type",Object)],kO.prototype,"creatorGoalState",void 0);_.W([_.X(),_.Q("design:type",Object)],kO.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],kO.prototype,"isGoalActive",void 0);_.W([_.a("creatorGoalState","isGoalActive"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],kO.prototype,"shouldShowCountdown",null);_.W([_.a("creatorGoalState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kO.prototype,"endTimestamp",null);
_.W([_.a("creatorGoalState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kO.prototype,"targetIconThemedImage",null);_.W([_.gz("creatorGoalState.currentGoalCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kO.prototype,"progressBarChanged",null);_.W([_.gz("creatorGoalState.creatorGoalState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kO.prototype,"goalStateChanged",null);
_.W([_.wz({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],kO);_.n(kO,"yt-creator-goal-progress-flow-view-model",function(){return e1Q()},{mode:0});var Zaf;var VXX;var qF=function(){return _.k.apply(this,arguments)||this};
_.p(qF,_.k);qF.prototype.attached=function(){var N,t,O;if(this==null?0:(N=this.data)==null?0:(t=N.pdgPurchasedBumperLoggingDirectives)==null?0:(O=t.loggingDirectives)==null?0:O.trackingParams){var H,A,Z;dvz(this==null?void 0:(H=this.data)==null?void 0:(A=H.pdgPurchasedBumperLoggingDirectives)==null?void 0:(Z=A.loggingDirectives)==null?void 0:Z.trackingParams)}};
qF.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],qF.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],qF.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],qF);
_.n(qF,"yt-live-chat-item-bumper-view-model",function(){if(VXX===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Zaf===void 0&&(Zaf=document.createElement("template"));var H=Zaf;O.call(t,H.content.cloneNode(!0),N.content.firstChild);VXX=N}N=VXX;return N},{mode:0});var DWS;var UWB;_.Ei=function(N,t){this.data=N;this.actions=t;this.data=N;this.actions=t};
_.qe=function(){};_.fD={};_.fD.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(N,t){giN(this.hostElement,N,t)},
getNavigationEndpointPopupAction:function(N){return yoN(N,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(N,t){BKl(this.hostElement,N,t,this.openPopupConfig)}};var pOz=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.nD={};
_.nD.YtEndpointBehavior=[_.fD.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Ro("openPopupConfig");(this.useClickHandler=_.vZ("useClickHandler",!1))?this.hostElement.addEventListener("click",KO(this,this.onEndpointClick_)):(Rb(this.hostElement,"tap",KO(this,this.onEndpointTap_)),Rb(this.hostElement,"touchend",KO(this,this.onEndpointTouchEnd_)));Rb(this.hostElement,"touchstart",KO(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
KO(this,this.onEndpointTapStart_))},
onEndpointClick_:function(N){jcg(this.hostElement,N,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(N){var t=this.hostElement,O=this.openPopupConfig,H=this.disableCommandHandlerOverride;H=H===void 0?!1:H;var A=co4(N);if(A){A.href&&Xi(A.href);var Z=N.detail;var U=Z.sourceEvent;Z=Z.preventer;U=U.button!==void 0?U.button===0&&!$V(U):Z?!$V(Z):!0;A.data&&U&&$vp(t,A,N,O,H)}},
onEndpointTouchEnd_:function(N){$V(N)||co4(N)&&N.preventDefault()},
onEndpointTapStart_:function(N){MKv(N)}}];_.Wu={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(N){for(var t=_.VM.getInstance(),O=_.D(Object.keys(N)),H=O.next();!H.done;H=O.next()){var A=H.value;H=N[A];if(this&&this[H]){var Z=t.actionRoutingMap.get(A);Z||(Z=new Map,t.actionRoutingMap.set(A,Z));t.registerActionHandler(this,A,this[H].bind(this),Z)}else A=Error("ld"),A.params=H,_.JO(A)}},
unregisterActionMap:function(N){_.C9(_.VM.getInstance(),N,this)}}]};var uj=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_"+(_.h("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.h("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.h("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.h("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.h("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.h("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var ij;var S9=new Map;var wO4=window.matchMedia("(forced-colors: active)").matches;var C7a;var KUQ;var FUr=new _.dk("LOTTIE_LOADER_TOKEN");_.rd=_.q(function(N){var t=N.data;var O=N.className;var H=N.animationName;var A=N.animationRef;var Z=N.elRefForInterop;var U=_.yM("lottie-component"),C;_.Ia(function(){var g;return void((g=C)==null?void 0:g.destroy())});
var F;_.rp(function(){var g=_.Qo(H);if(g!==F){F=g;var B=Object.assign({},{animationName:g,animationRef:_.Qo(A)},_.Qo(t));try{_.cY().resolve(FUr)().then(function(S){var b;(b=C)==null||b.destroy();var z,w;b=(w=Z==null?void 0:(z=Z())==null?void 0:z.value)!=null?w:U.value;z=B.animationRef;w=B.listeners;S=S.loadAnimation(Object.assign({},{container:b},B.animationConfig));z&&(z.lottieEl=S);if(w)for(b=_.D(Object.entries(w)),z=b.next();!z.done;z=b.next())w=_.D(z.value),z=w.next().value,(w=w.next().value)&&
S.addEventListener(z,w);C=S})}catch(S){g=S;
var c="LottieComponent error.";g.message&&(c+=" Original description: "+g.message);_.o0(g,c);_.J_(g);var u;((u=B.listeners)==null?0:u.error)&&B.listeners.error(g)}}},"nrJISd");
return _.d(COv,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.d("lottie-component",{class:_.V7("ytLottieComponentHost",O),el:U})}})},"Z");_.o_(_.q(function(N){return _.d("ytd-lottie-player",{id:N.id,hidden:N.hidden,class:N.className,"aria-label":N.ariaLabel,style:"display: block;"},_.d(_.rd,{data:N.data,animationName:function(){var t;return((t=N.data().animationConfig)==null?void 0:t.name)||""},
animationRef:function(){return N.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.$O,
id:_.$O,hidden:_.$O,className:_.$O,ariaLabel:_.$O}});var Iw=function(){var N=_.k.apply(this,arguments)||this;N.animationRef={};N.delhiIconsEnabled=_.h("enable_web_delhi_icons");return N};
_.p(Iw,_.k);_.V=Iw.prototype;
_.V.handlePropertyChange=function(){var N=this.animatedIcon,t=this.active,O=this.isDarkTheme;if(N){var H=this.previousActive!==t;this.previousActive=t;this.animationRef.lottieEl?H&&this.toggleAnimation(t,N.totalFrames):t?this.initializeAnimationAsToggled(N.lottiePlayerProps,N.totalFrames):this.initializeAnimationAsUntoggled(N.lottiePlayerProps);N.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=N.type;this.lottiePlayerProps=this.computeLottiePlayerProps(N,O)}};
_.V.computeLottiePlayerProps=function(N,t){var O=this.deepCloneLottiePlayerProps(N);t?(t=N.nameDarkTheme,N=N.pathDarkTheme):(t=N.name,N=N.path);O.animationConfig.name=t;(t=S9.get(N))?O.animationConfig.animationData=t:O.animationConfig.path=N;return O};
_.V.initializeAnimationAsToggled=function(N,t){N.animationConfig.initialSegment=[t-1,t]};
_.V.initializeAnimationAsUntoggled=function(N){N.animationConfig.initialSegment=void 0};
_.V.toggleAnimation=function(N,t){if(N){var O;(O=this.animationRef.lottieEl)==null||O.playSegments([0,t],!0)}else{var H;(H=this.animationRef.lottieEl)==null||H.playSegments([0,1],!0)}};
_.V.deepCloneLottiePlayerProps=function(N){var t=Object.assign({},N.lottiePlayerProps.animationConfig);N=Object.assign({},N.lottiePlayerProps);N.animationConfig=t;return N};
Iw.prototype.handlePropertyChange=Iw.prototype.handlePropertyChange;_.W([_.X(),_.Q("design:type",Object)],Iw.prototype,"animatedIcon",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Iw.prototype,"active",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Iw.prototype,"isDarkTheme",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],Iw.prototype,"animatedIconType",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Iw.prototype,"previousActive",void 0);
_.W([_.X(),_.Q("design:type",Object)],Iw.prototype,"lottiePlayerProps",void 0);_.W([_.X(),_.Q("design:type",Object)],Iw.prototype,"animationRef",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Iw.prototype,"delhiIconsEnabled",void 0);_.W([_.gz("animatedIcon","active","isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Iw.prototype,"handlePropertyChange",null);_.W([_.wz({is:"yt-animated-icon",disableElementRegistration:!0})],Iw);
_.n(Iw,"yt-animated-icon",function(){if(KUQ===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;C7a===void 0&&(C7a=document.createElement("template"));var H=C7a;O.call(t,H.content.cloneNode(!0),N.content.firstChild);KUQ=N}N=KUQ;return N},{mode:2});var dWa;var gza;_.h4=_.q(function(N){var t={value:null,cancelled:!1};_.Ia(function(){t.cancelled=!0});
var O=_.aa(N.data,{equals:function(H,A){return H.iconName===A.iconName&&H.iconStyle===A.iconStyle&&H.iconSize===A.iconSize&&H.iconSetName===A.iconSetName&&H.iconSelected===A.iconSelected}},"ck24jb");
return _.d("span",{class:"yt-icon-shape",el:_.E4(function(H){_.rp(function(){var A,Z=(A=N.options)==null?void 0:A.call(N);A=O();k7t(H,t,A,Z)},"v878Je")})})},"ba");
_.h4.idomCompat=!0;var ZG4=["youtube_fill","youtube_outline"];var yUS=new _.Eb({type:"iconset",value:void 0}),lL=function(){var N=_.k.apply(this,arguments)||this;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.iconName="";N.iconsetName="yt-icons";N.iconset=null;N.missingIconSet=!1;N.iconType=null;N.iconShapeDataSignal=_.b$(void 0,void 0,"TaEgXd");N.renderingOptionsSignal=_.b$({iconWidth:"100%",iconHeight:"100%",iconFilter:N.iconFilter,iconColor:N.gradientColor},void 0,"a1vqYe");N.wizHasRendered=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return N};
_.p(lL,_.k);lL.prototype.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.isDarkTheme=N)};
lL.prototype.handlePropertyChange=function(){var N=this,t,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P;return _.K(function(x){switch(x.nextAddress){case 1:if(t=!N.icon&&!N.iconName||!N.isAttached)return x.return();O=N;H=O.icon;A=O.size;Z=O.defaultToFilled;U=O.active;C=O.targetContainer;N.toggleContainerClass(C);_.h("kevlar_use_wil_icons")&&H&&(F=dr9(H),N.iconType=F.length?F[1]:null);if(H){x.jumpTo(2);break}N.iconsetName="";N.iconName="";return x.yield(N.renderIcon(C,H),3);case 3:return x.return();case 2:g=BUf(H);
B=dr9(g);B.length&&(N.iconsetName=B[0],N.iconName=B[1]);if(!_.h("kevlar_use_wil_icons")){x.jumpTo(4);break}c=lL;u=cUS;S=N.iconType;b=N.active;z=N.defaultToFilled;w=N.size;P=N.iconsetName;return x.yield($WY(),6);case 6:return x.yield(u.call(c,S,b,z,w,P,x.yieldResult),5);case 5:N.iconShapeData=x.yieldResult;case 4:if(N.shouldRenderIconShape(C)){x.jumpTo(7);break}return x.yield(N.determineIconSet(g,U,Z,A,C),7);case 7:return x.yield(N.renderIcon(C,H),0)}})};
lL.prototype.toggleContainerClass=function(N){N?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var BUf=function(N){return!_.h("default_to_innertube_icon")||N.indexOf(":")>0?N:_.Vt(N)};
_.V=lL.prototype;_.V.determineIconSet=function(N,t,O,H){var A=this;return _.K(function(Z){return Z.nextAddress==1?_.h("kevlar_system_icons")||_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?Z.yield(A.switchToYtSysIconset(N,t,O,H),3):Z.jumpTo(2):Z.nextAddress!=2?Z.return():Z.yield(A.useYtSysIconsetForMissingIcons(N,t,O,H),0)})};
_.V.switchToYtSysIconset=function(N,t,O,H){var A=this,Z,U,C,F,g,B,c;return _.K(function(u){switch(u.nextAddress){case 1:if(!N||A.iconsetName!=="yt-icons"&&A.iconsetName!=="yt-sys-icons"){u.jumpTo(0);break}Z=dr9(N);U=Z[1];var S=U;if(ukO(S))U=S;else{var b=S=S.toLowerCase();(S=b$Q.get(S))&&(b=S);U=b}_.h("enable_polymer_icons_replace_underscores_dash")&&U.includes("_filled")&&(U=U.replace(/_filled/g,"-filled"));return u.yield(Z5(U,!0),3);case 3:return C=u.yieldResult,u.yield(Z5(U,!1),4);case 4:if((F=
u.yieldResult)||t&&C)A.iconsetName="yt-sys-icons";A.iconName=A.getIconName(U,t,O,F,C);if(H===24){u.jumpTo(0);break}g="yt-sys-icons"+H+":"+A.iconName;return u.yield(Z5(g,!1,!0),6);case 6:return B=u.yieldResult,u.yield(Z5(g,!0,!0),7);case 7:c=u.yieldResult;A.iconName=A.getIconName(U,t,O,B,c);if(!t&&B||t&&c)A.iconsetName="yt-sys-icons"+H;_.Ty(u)}})};
_.V.getIconName=function(N,t,O,H,A){N.includes("-filled")&&(N=N.replace("-filled",""));return A&&(t||O)?N+"-filled":N};
_.V.useYtSysIconsetForMissingIcons=function(N,t,O,H){var A=this,Z,U;return _.K(function(C){if(C.nextAddress==1)return A.iconsetName!=="yt-icons"?C.jumpTo(0):C.yield(Z5(A.iconName,!1,!1,!0),3);if(C.nextAddress!=4)return Z=C.yieldResult,C.yield(Z5(A.iconName,!1),4);U=C.yieldResult;if(Z||!U)return C.jumpTo(0);A.iconsetName="yt-sys-icons";return C.yield(A.switchToYtSysIconset(N,t,O,H),0)})};
_.V.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var $WY=function(){return _.K(function(N){try{return N.return(_.cY().resolve(_.D5))}catch(t){return N.return(new Promise(function(O){_.iI().parkOrScheduleJob(function(){O(_.cY().resolve(_.D5))},2,"ci")}))}})},cUS=function(N,t,O,H,A,Z){H=H===void 0?24:H;
if(N){N=N.toLowerCase();var U=N.endsWith("_filled")||N.endsWith("-filled");t={iconName:N,iconStyle:(t===void 0?0:t)||(O===void 0?0:O)||U?"youtube_fill":"youtube_outline",iconSize:H,iconSetName:A===void 0?"yt-icons":A};O=!!Z.resolveIcon(t);O||(t.iconSize=void 0,O=!!Z.resolveIcon(t));!O&&U&&(t.iconName=N.substring(0,N.length-7),t.iconSize=H,O=!!Z.resolveIcon(t),O||(t.iconSize=void 0,O=!!Z.resolveIcon(t)));O||(t.iconStyle=void 0,O=!!Z.resolveIcon(t));O||_.J_(new _.fF("Icon not supported",{iconName:t.iconName,
iconStyle:t.iconStyle,iconSize:t.iconSize,iconType:N}));return O?t:void 0}};
_.V=lL.prototype;_.V.shouldRenderIconShape=function(N){if(!_.h("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;N=this.getContainer(N);return!e6z(N,this.icon)};
_.V.renderIcon=function(N,t){var O=this,H,A,Z,U,C,F,g,B;return _.K(function(c){switch(c.nextAddress){case 1:if(t&&O.icon!==t)return c.return();H=O.getContainer(N);A=e6z(H,O.icon);if(O.shouldRenderIconShape(N)&&O.iconType)return O.applyIconShape(A,H),c.return();O.removeIconShape();if(!H)return c.return();O.iconName===""&&O.iconset&&H&&(O.removeStaticIcon(O.iconset,H),A&&O.removeAnimatedIcon(H));if(O.iconName===""&&O.iconset||!O.iconsetName||!yUS)return c.return();O.iconset=yUS.byKey(O.iconsetName);
if(!O.iconset)return O.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Fb(O,O.onIconsetAdded)),c.return();O.missingIconSet&&(O.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Fb(O,O.onIconsetAdded)));U=(Z=A||O.isAnimatedIcon?awG(O.icon):void 0)&&!Z.lazyLoad;F=Z&&((C=Z)==null?void 0:C.lazyLoad)&&(Z.lottiePlayerProps.animationConfig.animationData?!0:S9.get(O.isDarkTheme?Z.pathDarkTheme:Z.path)?!0:!1);if(U||F)return O.applyAnimatedIcon(H,Z,O.iconset),c.return();if(F||
(g=Z)==null||!g.lazyLoad){c.jumpTo(2);break}B=XOM(Z,O.isDarkTheme);O.applyStaticIcon(O.iconset,H,O.iconName,N,A);return c.yield(B,3);case 3:return c.yield(O.renderIcon(O.targetContainer,O.icon),4);case 4:return c.return();case 2:O.applyStaticIcon(O.iconset,H,O.iconName,N,A),_.Ty(c)}})};
_.V.getContainer=function(N){var t,O=(t=vT4(this.hostElement))==null?void 0:t.host;t=!!O&&!!O.polymerController;if(!N||t)return N?this.getTargetContainer(N,O):this.hostElement};
_.V.getTargetContainer=function(N,t){var O=_.O6(t).querySelector("#"+N);O||(N=new _.fF("yt-icon container missing",t.is,N),_.R0(N));return O};
_.V.applyStaticIcon=function(N,t,O,H,A){A&&this.removeAnimatedIcon(t);this.removeIconShape();A=A&&!!this.iconType&&!!this.iconShapeData&&_.h("kevlar_use_wil_icons");try{A?this.applyIconShape(!1,t):N.applyIcon(t,O)}catch(Z){this.handleError(Z,H,t)}};
_.V.applyIconShape=function(N,t){this.iconset&&t&&(this.removeStaticIcon(this.iconset,t),N&&this.removeAnimatedIcon(t));N={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var O=_.D(this.iconShapeDataSignal);t=O.next().value;O=O.next().value;var H=_.D(this.renderingOptionsSignal),A=H.next().value;H=H.next().value;O(this.iconShapeData);H(N);if(!this.wizHasRendered)for(this.wizHasRendered=!0,N=_.D(qYG(t,A)).next().value;N.firstChild;)_.O6(this.hostElement).appendChild(N.firstChild)};
_.V.removeIconShape=function(){if(_.h("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.V.removeStaticIcon=function(N,t){N.removeIcon(t)};
_.V.applyAnimatedIcon=function(N,t,O){this.removeStaticIcon(O,N);this.removeIconShape();var H;O=this.animatedIconElement&&((H=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:H.type)===t.type;if(this.animatedIconElement&&O){this.animatedIconElement.polymerController.animatedIcon=t;var A;((A=this.animatedIconElement)==null?void 0:A.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(N),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=t,this.animatedIconElement.polymerController.active=this.active,_.h("delhi_modern_web_player_icons")?(t=TKS(N,this.icon)&&N.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=t?t.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.h("kevlar_use_wil_icons")?
N.insertBefore(this.animatedIconElement,N.childNodes[0]):(N=_.O6(N),N.insertBefore(this.animatedIconElement,N.childNodes[0]))};
_.V.removeAnimatedIcon=function(N){_.h("kevlar_use_wil_icons")?this.animatedIconElement&&N.contains(this.animatedIconElement)&&N.removeChild(this.animatedIconElement):(N=_.O6(N),this.animatedIconElement&&N.contains(this.animatedIconElement)&&N.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.V.handleError=function(N,t,O){_.o0(N,this.iconName,t,O);t=e6z(O,this.icon);var H=!1;window.location.href.includes("JpymaW6Lh2w")?H=!0:O._svgIcon&&(O=(O=O._svgIcon.parentNode)?O.tagName:"unknown",_.o0(N,O),O==="YT-ICON"&&N.name==="NotFoundError"?H=!0:N.name==="NotFoundError"&&t&&(H=!0));H?_.J_(N):_.R0(N)};
_.cv.Object.defineProperties(lL,{template:{configurable:!0,enumerable:!0,get:function(){if(gza===void 0){var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;
dWa===void 0&&(dWa=document.createElement("template"));var H=dWa;O.call(t,H.content.cloneNode(!0),N.content.firstChild);gza=N}N=gza;return N}}});
lL.prototype.handlePropertyChange=lL.prototype.handlePropertyChange;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],lL.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",String)],lL.prototype,"icon",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],lL.prototype,"active",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],lL.prototype,"defaultToFilled",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],lL.prototype,"isAnimatedIcon",void 0);
_.W([_.X({value:24}),_.Q("design:type",Number)],lL.prototype,"size",void 0);_.W([_.X({value:""}),_.Q("design:type",String)],lL.prototype,"targetContainer",void 0);_.W([_.X(),_.Q("design:type",Object)],lL.prototype,"animatedIconElement",void 0);_.W([_.X(),_.Q("design:type",Object)],lL.prototype,"isDarkTheme",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lL.prototype,"ariaHidden",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],lL.prototype,"ariaLabel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],lL.prototype,"role",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],lL.prototype,"tabindex",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],lL.prototype,"title",void 0);_.W([_.X(),_.Q("design:type",String)],lL.prototype,"style",void 0);_.W([_.X(),_.Q("design:type",String)],lL.prototype,"iconFilter",void 0);_.W([_.X(),_.Q("design:type",String)],lL.prototype,"gradientColor",void 0);
_.W([_.gz("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],lL.prototype,"handlePropertyChange",null);_.W([_.wz({is:"yt-icon",noInjection:!0})],lL);var fwv="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),Wct=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var je_={};je_.YtPlaintextBehavior=[_.rA,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(N){N.preventDefault();N=N.clipboardData.getData("text/plain");document.execCommand("insertText",!1,N)},
preventRichTextFormatting_:function(N){_.FA&&(N=N.detail.keyboardEvent,N.stopImmediatePropagation(),N.preventDefault())}}];var iaf;var uGS;var QT=function(){var N=_.k.apply(this,arguments)||this;N.ignoreShadyDom=!1;N.hasChange_=!1;N.hasSetTitle_=!1;N.useIOObserverForVisibilityLogging_=_.h("kevlar_use_vimio_behavior")&&_.Ro("INNERTUBE_CLIENT_NAME")==="WEB";N.ytFormattedStringObserverHandlerKeys_=void 0;return N};
_.p(QT,_.k);_.V=QT.prototype;_.V.created=function(){this.useIOObserverForVisibilityLogging_=_.h("kevlar_use_vimio_behavior")&&_.Ro("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.V.ready=function(){_.Ro("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.V.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.V.detached=function(){this.unobserveIOObservers_()};
_.V.clearContents_=function(){for(var N=this.getRoot(),t=N.lastChild;t&&t.tagName!=="STYLE";){try{N.removeChild(t)}catch(O){break}t=N.lastChild}};
_.V.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var N=_.D(this.ytFormattedStringObserverHandlerKeys_),t=N.next();!t.done;t=N.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(t.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.V.resetForAttributedString=function(){var N=this.getRoot();!N.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),N.appendChild(this.ytAttributedStringElementRef))};
_.V.resetForFormattedString=function(){var N=this.getRoot(),t=N.querySelector("yt-attributed-string");t&&(this.ytAttributedStringElementRef=N.removeChild(t))};
_.V.textChanged=function(){this.textChanged_(this.text)};
_.V.textChanged_=function(N){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!N||!N.runs&&!N.simpleText;if(_.h("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var t=this.hostElement.firstChild;t&&t.nodeName==="FONT";){var O=t;t=t.nextSibling;this.hostElement.removeChild(O)}t=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
O=N.simpleText;var H;!O&&((H=N.runs)==null?void 0:H.length)===1&&this.isSimpleString_(N.runs[0])&&(O=N.runs[0].text);O!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Ro("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(O!==void 0){try{t.textContent=O}catch(A){}t.textContent||(this.isEmpty=!0)}else N=N.runs,O!==void 0&&(N=[{text:O}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),N&&this.updateText_(N),
t.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.V.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.V.computeAriaLabel_=function(N){return N};
_.V.computeEllipsisTruncateStyling=function(N,t){return N&&!t};
_.V.computeUseAttributedString=function(N){return _.h("web_replace_formatted_with_attributed_string")&&NBO(N)&&!this.disableAttributedString&&!this.enableContentEditable};
_.V.setNodeStyle_=function(N,t){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.h("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?t.removeAttribute("dir"):t.setAttribute("dir","auto");t.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");t.style.color="";var O=null;this.noStyles||(N.bold&&(t.classList.add("bold"),O="bold"),N.deemphasize&&(t.classList.add("deemphasize"),O="deemphasize"),N.italics&&t.classList.add("italic"),
N.strikethrough&&t.classList.add("strikethrough"),N.errorUnderline&&(t.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),N.bracket&&t.classList.add("bracket"),N.textColor&&(t.style.color=_.aI(N.textColor)));O!==t.getAttribute("style-target")&&(O?t.setAttribute("style-target",O):t.removeAttribute("style-target"))};
_.V.setUpVisibilityLogging_=function(N,t){var O=this;this.setNodeTrackingParams_(N,t);var H;((H=t.data)==null?0:H.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(N=this.ytRendererBehavior.visibilityObserver.observe(t,function(A){var Z=O.ytRendererBehavior.getVisibilityLogger();Z&&Z.reportShown(A)},this.ytRendererBehavior.visibilityOptionVisible_),t=this.ytRendererBehavior.visibilityObserver.observe(t,function(A){var Z=O.ytRendererBehavior.getVisibilityLogger();
Z&&Z.reportHidden(A)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(N),this.ytFormattedStringObserverHandlerKeys_.push(t))};
_.V.setNodeTrackingParams_=function(N,t){t.data||(t.data={});if((N=N.loggingDirectives?N.loggingDirectives.trackingParams:null)||t.data.trackingParams)t.data.trackingParams=N};
_.V.computeHasLinkOnly_=function(N){return!(!N||N.length!==1||this.noEndpoints||!N[0].navigationEndpoint)};
_.V.getRoot=function(){var N=this.buildScopeDomOptions();return this.enableContentEditable?_.O6(_.O6(this.hostElement,N).querySelector("[contenteditable]")):_.O6(this.hostElement,N)};
_.V.fixContenteditableScope=function(){var N=function(t){t&&(t.nodeType===1&&t.classList&&(t.classList.add("style-scope"),t.classList.add("yt-formatted-string")),t.childNodes&&t.childNodes.forEach(function(O){N(O)}))};
N(this.getRoot())};
_.V.updateText_=function(N){for(var t=N.length,O=this.getRoot(),H=O.firstChild;H&&H.nodeName==="STYLE";)H=H.nextSibling;for(var A=0;A<t&&H;){var Z=N[A],U=_.h("remove_cr_char")&&Z.text?Z.text.replace("\r",""):Z.text;if(this.isSimpleString_(Z)&&!this.useMixedDirectionFormattedStrings)if(H.nodeName==="#text"){H.textContent!=U&&(H.textContent=U);A++;H=H.nextSibling;continue}else break;if(_.M(Z,YJ))break;else if(!this.noEndpoints&&Z.navigationEndpoint){if(H.nodeName!=="A")break;this.setDataOnAnchor_(H,
Z.navigationEndpoint)}else if(H.nodeName!=="SPAN")break;this.setNodeStyle_(Z,H);this.setUpVisibilityLogging_(Z,H);H.textContent!=U&&(H.textContent=U);A++;H=H.nextSibling}if(H)for(Z=O.lastChild,H=A?H.previousSibling:null;Z&&Z!=H;){try{O.removeChild(Z)}catch(C){break}Z=O.lastChild}A!==t&&this.addTextNodes_(N,A)};
_.V.addTextNodes_=function(N,t){for(var O=document.createDocumentFragment(),H=N.length;t<H;t++){var A=N[t],Z=_.h("remove_cr_char")&&A.text?A.text.replace("\r",""):A.text;if(this.isSimpleString_(A)&&!this.useMixedDirectionFormattedStrings)O.appendChild(document.createTextNode(Z));else{var U=_.M(A,YJ);if(U){if(U.image){var C=document.createElement("img");U.isCustomEmoji||C.classList.add("small-emoji");C.classList.add("emoji");U.isCustomEmoji&&(C.dataset.emojiId=U.emojiId);C.src=_.s4(U.image.thumbnails,
this.emojiSize);(A=this.get("image.accessibility.accessibilityData.label",U))?C.alt=A:U.shortcuts&&U.shortcuts.length>0?C.alt=U.shortcuts[0]:U.emojiId&&(C.alt=U.emojiId);O.appendChild(C);this.hasEmoji=!0}}else!this.noEndpoints&&A.navigationEndpoint?(C=document.createElement("a"),C.classList.add("yt-simple-endpoint"),C.setAttribute("spellcheck","false"),this.setDataOnAnchor_(C,A.navigationEndpoint)):C=document.createElement("span"),this.setNodeStyle_(A,C),this.setUpVisibilityLogging_(A,C),C.appendChild(document.createTextNode(Z)),
O.appendChild(C)}}this.getRoot().appendChild(O)};
_.V.isSimpleString_=function(N){return(this.noEndpoints||!N.navigationEndpoint)&&!_.M(N,YJ)&&(this.noStyles||!(N.bold||N.deemphasize||N.italics||N.strikethrough||N.errorUnderline||N.bracket||N.textColor))&&!N.loggingDirectives};
_.V.getRawText=function(){return _.Gv(this.text)};
_.V.getFirstRunText=function(){var N;if(((N=this.text)==null?0:N.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.V.setFirstRunText=function(N){var t;((t=this.text)==null?0:t.runs)&&this.text.runs[0]&&(this.text.runs[0].text=N,this.textChanged_(this.text))};
_.V.setDataOnAnchor_=function(N,t){var O=this;!_.h("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(t)||this.isSignalServiceEndpoint_(t)?(N.onclick=this.serviceEndpointHandler_(t),Rd(N,"#")):sMx({text:this.text,command:t},function(){FbM(N,t,O.target)})};
_.V.isServiceEndpoint_=function(N){var t;return!((t=_.M(N==null?void 0:N.commandMetadata,_.Da))==null||!t.sendPost)};
_.V.isSignalServiceEndpoint_=function(N){return!!_.M(N,_.VZ)};
_.V.serviceEndpointHandler_=function(N){var t=this;return function(O){_.tb(t.hostElement,[N]);O.preventDefault()}};
_.V.overrideAriaLabelChanged_=function(){var N=this.getRoot();this.enableContentEditable&&N&&N.setAttribute("aria-label",this.overrideAriaLabel)};
_.V.enableContentEditableChanged_=function(){var N=this,t=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),t=_.O6(this.hostElement,t),!t.lastChild||t.lastChild instanceof HTMLElement&&t.lastChild.id!=="contenteditable-root"){var O=document.createElement("div");O.id="contenteditable-root";O.setAttribute("contenteditable","true");O.setAttribute("dir","auto");O.onfocus=function(){N.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
t.appendChild(O);this.overrideAriaLabel&&O.setAttribute("aria-label",this.overrideAriaLabel)}}else O=_.Zr(this.hostElement).firstChild,O instanceof HTMLElement&&O.id==="contenteditable-root"&&_.O6(this.hostElement,t).removeChild(O)};
_.V.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.V.getNodesForVisibilityLogging_=function(){return _.Aw(this.getRoot().childNodes,function(N){var t;return!((t=N.data)==null||!t.trackingParams)})};
_.V.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.V.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var N=this.ytRendererBehavior.getVisibilityLogger();N&&this.getNodesForVisibilityLogging_().forEach(function(t){N.reportShown(t)})}};
_.V.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var N=this.ytRendererBehavior.getVisibilityLogger();N&&this.getNodesForVisibilityLogging_().forEach(function(t){N.reportHidden(t)})}};
_.cv.Object.defineProperties(QT.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.h("enable_mixed_direction_formatted_strings")}}});
QT.prototype.enableContentEditableChanged_=QT.prototype.enableContentEditableChanged_;QT.prototype.overrideAriaLabelChanged_=QT.prototype.overrideAriaLabelChanged_;QT.prototype.ellipsisTruncateChanged_=QT.prototype.ellipsisTruncateChanged_;QT.prototype.textChanged=QT.prototype.textChanged;_.W([_.Y(je_.YtPlaintextBehavior),_.Q("design:type",Object)],QT.prototype,"ytPlaintextBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],QT.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],QT.prototype,"text",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"noEndpoints",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"noStyles",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],QT.prototype,"isDarkTheme",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],QT.prototype,"splitLines",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],QT.prototype,"forceDefaultStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],QT.prototype,"ellipsisTruncate",void 0);_.W([_.X(),_.Q("design:type",Object)],QT.prototype,"ignoreShadyDom",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Q("design:type",Boolean)],QT.prototype,"ellipsisTruncateStyling",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Q("design:type",String)],QT.prototype,"ariaLabel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],QT.prototype,"isEmpty",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Q("design:type",Boolean)],QT.prototype,"hasLinkOnly_",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"hasEmoji",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"disableAttributedString",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"isOverlay",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"linkInheritColor",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"noPreWrap",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"userInput",void 0);_.W([_.X({value:16}),_.Q("design:type",Number)],QT.prototype,"emojiSize",void 0);_.W([_.X(),_.Q("design:type",String)],QT.prototype,"target",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"enableContentEditable",void 0);_.W([_.X(),_.Q("design:type",String)],QT.prototype,"overrideAriaLabel",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"respectHtmlDir",void 0);_.W([_.X(),_.Q("design:type",Boolean)],QT.prototype,"respectLangDir",void 0);_.W([_.a("plaintextOnly"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],QT.prototype,"useMixedDirectionFormattedStrings",null);_.W([_.X({computed:"computeUseAttributedString(text)"}),_.Q("design:type",Boolean)],QT.prototype,"useYtAttributedString",void 0);
_.W([_.gz("text"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QT.prototype,"textChanged",null);_.W([_.gz("ellipsisTruncate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QT.prototype,"ellipsisTruncateChanged_",null);_.W([_.gz("overrideAriaLabel"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QT.prototype,"overrideAriaLabelChanged_",null);
_.W([_.gz("enableContentEditable"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QT.prototype,"enableContentEditableChanged_",null);_.W([_.wz({is:"yt-formatted-string",disableElementRegistration:!0})],QT);
_.n(QT,"yt-formatted-string",function(){if(uGS===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden$="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;iaf===void 0&&(iaf=document.createElement("template"));var H=iaf;O.call(t,H.content.cloneNode(!0),N.content.firstChild);uGS=N}N=uGS;return N});var SUQ;var hXp;var MXZ;var baZ;var mJ=function(){var N=_.k.apply(this,arguments)||this;N.focused=!1;N.disabled=!1;N.isOverlay=!1;return N};
_.p(mJ,_.k);mJ.prototype.triggerDown=function(){if(!this.disabled){_.VQ(this.hostElement,"down",!0);var N;(N=this.currentAnimation)==null||N.cancel()}};
mJ.prototype.triggerUp=function(){if(!this.disabled){_.VQ(this.hostElement,"down",!1);var N=this.fillElement;var t=this.strokeElement;typeof GroupEffect==="function"?(N=new GroupEffect([qUQ(N),f8l(t)]),N=new Animation(N,document.timeline)):N=new Edu(N,t);this.currentAnimation=N;var O;(O=this.currentAnimation)==null||O.play()}};
_.W([_.B2(".stroke"),_.Q("design:type",HTMLElement)],mJ.prototype,"strokeElement",void 0);_.W([_.B2(".fill"),_.Q("design:type",HTMLElement)],mJ.prototype,"fillElement",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],mJ.prototype,"focused",void 0);_.W([_.X(),_.Q("design:type",Object)],mJ.prototype,"disabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],mJ.prototype,"isOverlay",void 0);_.W([_.wz({is:"yt-interaction",disableElementRegistration:!0})],mJ);
_.n(mJ,"yt-interaction",function(){if(baZ===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;MXZ===void 0&&(MXZ=document.createElement("template"));var H=MXZ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);baZ=N}N=baZ;return N},{mode:2});var Eo=function(){return _.k.apply(this,arguments)||this};
_.p(Eo,_.k);_.V=Eo.prototype;_.V.ready=function(){var N=this,t=_.O6(this.hostElement).querySelector("#button");t.addEventListener("focus",function(){j6_||(j6_=new $AR);N.keyboardFocused=j6_.isKeyBoardInUse()});
t.addEventListener("blur",function(){N.keyboardFocused=!1;N.rippleUp_()})};
_.V.computeTabIndex_=function(N){return N?-1:0};
_.V.computeButtonAriaPressed_=function(N){if(this.toggleable)return N?"true":"false"};
_.V.rippleDown_=function(){_.O6(this.hostElement).querySelector("#interaction").triggerDown()};
_.V.rippleUp_=function(){_.O6(this.hostElement).querySelector("#interaction").triggerUp()};
_.V.onPressedChanged_=function(){var N=_.Zr(_.O6(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Zr(_.O6(this.hostElement).querySelector("#button")).children[0];N&&(N.active=this.pressed)};
Eo.prototype.onPressedChanged_=Eo.prototype.onPressedChanged_;Eo.prototype.rippleUp_=Eo.prototype.rippleUp_;Eo.prototype.rippleDown_=Eo.prototype.rippleDown_;_.W([_.X(),_.Q("design:type",String)],Eo.prototype,"label",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Eo.prototype,"disabled",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Eo.prototype,"pressed",void 0);_.W([_.X(),_.Q("design:type",Object)],Eo.prototype,"toggleable",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],Eo.prototype,"untabbable",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Eo.prototype,"keyboardFocused",void 0);_.W([_.dz("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Eo.prototype,"rippleDown_",null);_.W([_.dz("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Eo.prototype,"rippleUp_",null);
_.W([_.gz("pressed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Eo.prototype,"onPressedChanged_",null);_.W([_.wz({is:"yt-icon-button",disableElementRegistration:!0})],Eo);
_.n(Eo,"yt-icon-button",function(){if(hXp===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;SUQ===void 0&&(SUQ=document.createElement("template"));var H=SUQ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);hXp=N}N=hXp;return N},{mode:2});var pNR;var LUf=function(){var N=document.body,t=N.appendChild;if(pNR===void 0){var O=document.createElement("template");_.L(O,'\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>');
pNR=O}O=pNR;t.call(N,O.content)};
document.body?LUf():window.addEventListener("DOMContentLoaded",LUf);var zXB=_.mp(["aria-"]),G6={};G6.YtRenderButtonBehavior=[_.G.YtRendererBehavior,_.nD.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!!_.cY().resolve(_.BY(_.z6))&&_.h("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var N=this.computeHref_(this.endpoint,!0);N?Rd(this.elements_.endpoint,N):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){N=this.buttonClass.split(" ");N=_.D(N);for(var t=N.next();!t.done;t=N.next())t=t.value,_.VQ(this.hostElement,t,!0),this.elements_.button&&_.VQ(this.elements_.button,t,!0),this.elements_.text&&_.VQ(this.elements_.text,t,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(N=null,this.buttonAccessibility&&(N=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=N:N?_.KU([_.BW(zXB)],this.elements_.button,"aria-label",N):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var N=_.cY().resolve(_.BY(_.z6));N&&(this.keyboardFocused=N.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.MF("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,_.$L(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.$L(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(N,t){if(t)for(N=t.split(" "),N=_.D(N),t=N.next();!t.done;t=N.next())t=t.value,_.VQ(this.hostElement,t,!1),this.elements_.button&&_.VQ(this.elements_.button,t,!1),this.elements_.text&&_.VQ(this.elements_.text,t,!1)},
buttonIconChanged_:function(N){this.elements_.icon?N?(this.elements_.icon.icon=N,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.$L(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Dr(this.hostElement,"is-paper-button-with-icon",!1)):N&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.$L(this.elements_.button).appendChild(this.elements_.icon):_.$L(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Dr(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(N){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,N){var t=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(N){case "yt_icon_button_with_label":t=!0;_.VQ(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();N=_.$L(this.elements_.button).firstElementChild;
this.elements_.icon=N;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.$L(this.elements_.endpoint).appendChild(this.elements_.button);_.$L(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.MF("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;_.$L(this.elements_.button).appendChild(this.elements_.text);_.$L(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":t=!0,this.elements_.button=this.getYtIconButton_(),N=_.$L(this.elements_.button).firstElementChild,this.elements_.icon=N,this.setIconActive_(this.elements_.icon),
_.$L(this.elements_.endpoint).appendChild(this.elements_.button)}_.Dr(this.hostElement,"is-icon-button",t);_.Dr(this.hostElement,"is-paper-button",!t);_.Dr(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 O;_.O6((O=this.container.hostElement)!=null?O:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.$L(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(N){if(N!=void 0||this.disabled)this.disabled=N,this.elements_.button&&(this.elements_.button.disabled=N)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(N){_.h("kevlar_system_icons")&&N&&this.data&&(this.data.isSelected!==void 0?N.active=this.data.isSelected:this.data.isToggled!==void 0&&(N.active=this.data.isToggled))},
observeBasicPalette_:function(N){_.Me(this.hostElement,N)},
disabledChanged_:function(N){this.data&&this.set("data.isDisabled",N)},
onYtButtonTap_:function(N){if(this.disabled)N.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.tb(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(N=this.disableCommandHandlerOverride,!this.data||!this.data.command||N||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.h("handle_service_request_actions")||_.tb(this.hostElement,[this.serviceEndpoint]),
_.or(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.h("handle_service_request_actions")?(N=[],this.serviceEndpoint&&N.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&N.push(this.data.command),N.length&&_.OK(this.hostElement,N,this.hostElement)):this.data&&this.data.command&&(N=this.data.command,N.accountUnlinkCommand||N.accountLinkCommand||N.insertAdCommand||N.insertHighlightMarkerCommand||
N.createLivestreamHighlightClipCommand||N.getVideoUploadFeedbackCommand||N.musicDeletePrivatelyOwnedEntityCommand||N.ypcCancelRecurrenceEndpoint||N.getMultiSelectCommandEndpoint?_.tb(this.hostElement,[N]):_.OK(this.hostElement,[N],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var N,t=_.O6((N=this.container.hostElement)!=null?N:this.container);t.lastChild&&t.lastChild.tagName!="STYLE";)try{t.removeChild(t.lastChild)}catch(O){break}},
getYtIconButton_:function(){var N=this.reuseEnabled_()?_.MF("yt-icon-button"):document.createElement("yt-icon-button"),t=_.$L(N).firstElementChild;if(t&&t.is!="yt-icon"){for(t=_.$L(N);t.lastChild;)t.removeChild(t.lastChild);t=null}t||(t=this.getIcon_(),this.setIconActive_(t),_.$L(N).appendChild(t));return N},
reuseEnabled_:function(){return _.h("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.MF("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.MF("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.YUr={};
_.YUr.YtButtonBehavior=[G6.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var N=this.data;N&&(this._setEndpoint(this.computeEndpoint_(N)),this._setServiceEndpoint(this.computeServiceEndpoint_(N)),this._setCommand(this.computeCommand_(N)),this._setButtonIcon(this.computeButtonIcon_(N)),this._setButtonText(this.computeButtonText_(N,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(N)),this._setButtonTooltip(this.computeTooltip_(N)),this._setButtonClass(this.computeButtonClass_(N)),this._setIconPositionType(this.computeIconPositionType_(N)),this.updateRenderedElements())},
setPressedState:function(N){var t;if((t=this.elements_)==null?0:t.button)this.elements_.button.pressed=!!N},
computeIconPositionType_:function(N){return N&&N.iconPosition||null},
computeEndpoint_:function(N){var t=N&&N.navigationEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.url"),H=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:N&&N.command&&N.command.modalEndpoint?N.command:O&&!H&&N.command?N.command:null},
computeServiceEndpoint_:function(N){var t=N&&N.serviceEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:O&&N.command?N.command:null},
computeCommand_:function(N){return N&&N.command||null},
computeButtonIcon_:function(N){return N&&N.icon&&N.icon.iconType?_.Vt(N.icon.iconType):null},
computeButtonText_:function(N,t){return!t&&N&&N.text||null},
computeAccessibility_:function(N){return this.get("accessibilityData.accessibilityData",N)||N&&N.accessibility||(N&&N.text?{label:this.getSimpleString(N.text)}:null)},
computeTooltip_:function(N){return N?N.isDisabled&&N.disabledTooltip||N.tooltip||null:null},
computeButtonClass_:function(N){var t=N&&N.style?N.style.toLowerCase().replace(/_/g,"-")+" ":"";t+=N&&N.size?N.size.toLowerCase().replace(/_/g,"-")+" ":"";N.colorData&&N.colorData.basicColorPaletteData&&N.colorData.basicColorPaletteData.borderColor&&(t+="palette-with-border");return t.trim()}}];var bj={};var a8X;var TUE;var wNX,eX0=function(){return wNX!==void 0?wNX:wNX=document.createElement("template")};
document.head.appendChild(eX0().content);var P7p;var XNu,xWy=function(){return XNu!==void 0?XNu:XNu=document.createElement("template")};
document.head.appendChild(xWy().content);var kK_;var qU_,f8Q=function(){return qU_!==void 0?qU_:qU_=document.createElement("template")};
document.head.appendChild(f8Q().content);var nzS;var WU0=document.head,rU_=WU0.appendChild,I8r;if(nzS===void 0){var l8R=document.createElement("template");_.L(l8R,"\x3c!--css-build:shady--\x3e");l8R.content.insertBefore(f8Q().content.cloneNode(!0),l8R.content.firstChild);nzS=l8R}I8r=nzS;rU_.call(WU0,I8r.content);var Qey=document.head,mWr=Qey.appendChild,Ezu;if(kK_===void 0){var GKR=document.createElement("template");_.L(GKR,"\x3c!--css-build:shady--\x3e");GKR.content.insertBefore(xWy().content.cloneNode(!0),GKR.content.firstChild);kK_=GKR}Ezu=kK_;mWr.call(Qey,Ezu.content);var RXf=document.head,vz_=RXf.appendChild,JUa;if(P7p===void 0){var oza=document.createElement("template");_.L(oza,"\x3c!--css-build:shady--\x3e");oza.content.insertBefore(eX0().content.cloneNode(!0),oza.content.firstChild);P7p=oza}JUa=P7p;vz_.call(RXf,JUa.content);var seY;_.pE("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");seY=_.h("web_button_rework")&&_.vZ("BUTTON_REWORK")||_.h("web_button_rework_with_live");_.Rw=function(){return _.k.apply(this,arguments)||this};
_.p(_.Rw,_.k);_.Rw.prototype.created=function(){this.openPopupConfig=_.Ro("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Rw.prototype.onYtNavigate_=function(N){var t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(N.detail.endpoint);t&&(this.ytOpenPopupBehavior.openPopup(t),N.stopPropagation(),N.preventDefault())};
_.cv.Object.defineProperties(_.Rw,{template:{configurable:!0,enumerable:!0,get:function(){if(TUE===void 0){var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
var t=N.content,O=t.insertBefore;a8X===void 0&&(a8X=document.createElement("template"));var H=a8X;O.call(t,H.content.cloneNode(!0),N.content.firstChild);TUE=N}N=TUE;return N}}});
_.Rw.prototype.onYtNavigate_=_.Rw.prototype.onYtNavigate_;_.W([_.Y(_.fD.YtOpenPopupBehavior),_.Q("design:type",Object)],_.Rw.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Y(_.YUr.YtButtonBehavior),_.Q("design:type",Object)],_.Rw.prototype,"ytButtonBehavior",void 0);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],_.Rw.prototype,"onYtNavigate_",null);
_.W([_.wz({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:seY})],_.Rw);var NK_;var tKa=_.h("web_button_rework")&&_.vZ("BUTTON_REWORK")||_.h("web_button_rework_with_live"),vu=function(){var N=_.k.apply(this,arguments)||this;N.isPressed=!1;N.forceIconButton=!1;N.forceIconOnly=!1;N.forceModernIconButton=!1;N.skipCommandHandling=!1;N.alignByText=!1;N.fitToVisibleBounds=!0;N.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};N.onTap=function(t){_.or(N.hostElement,"yt-service-request-sent-button-renderer",t)};
return N};
_.p(vu,_.k);_.V=vu.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.V.onClick=function(N){var t,O=this.disabled||((t=this.data)==null?void 0:t.isDisabled);t=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");O&&t&&N.stopPropagation()};
_.V.computeIcon=function(){var N,t,O=(N=this.data)==null?void 0:(t=N.icon)==null?void 0:t.iconType;if(O)return _.Vt(O)};
_.V.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.V.handleUpdateButtonAction=function(N){N=_.M(N,H7r);var t=_.M(N==null?void 0:N.updatedButton,_.g_);if(this.data&&N&&t){var O=this.data;O.targetId&&N.targetId&&O.targetId===N.targetId&&(this.data=t)}};
_.cv.Object.defineProperties(vu.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var N=this;if(this.data){var t=Ei4({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.or(N.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.or(N.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});t.alignByText=this.alignByText;return t}}}});
_.cv.Object.defineProperties(vu,{template:{configurable:!0,enumerable:!0,get:function(){if(NK_===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');NK_=N}N=NK_;return N}}});
vu.prototype.onClick=vu.prototype.onClick;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],vu.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],vu.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"isPressed",void 0);
_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"forceIconButton",void 0);_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"forceIconOnly",void 0);_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"forceModernIconButton",void 0);_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"skipCommandHandling",void 0);_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"alignByText",void 0);_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"buttonTooltipPosition",void 0);
_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"fitToVisibleBounds",void 0);_.W([_.X({computed:"computeTooltip(data)"}),_.Q("design:type",Object)],vu.prototype,"tooltip",void 0);_.W([_.X(),_.Q("design:type",Object)],vu.prototype,"overrides",void 0);_.W([_.X(),_.Q("design:type",Boolean)],vu.prototype,"disabled",void 0);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],vu.prototype,"onClick",null);
_.W([_.a("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vu.prototype,"computedButtonShape",null);_.W([_.wz({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!tKa,cssBuildOptOut:!0}),_.wz({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!tKa,cssBuildOptOut:!0})],vu);var O3a;var H3Q;var JP=function(){var N=_.k.apply(this,arguments)||this;N.empty_=!0;N.loadTime=Infinity;N.pendingPaint=!1;N.hasChange_=!1;N.oldThumbnail_=null;N.oldDelayedSrc_="";N.objectURL_=null;return N};
_.p(JP,_.k);_.V=JP.prototype;_.V.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.V.ready=function(){var N=this.shouldShowPlaceholder_();_.VQ(this.hostElement,"no-transition",!0);N&&this.hostElement.classList.add("with-placeholder")};
_.V.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.V.isThumbPreloaded_=function(N){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",N)};
_.V.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||AoR};
_.V.computeThumbnailSrc_=function(N){return N&&N.thumbnails?_.s4(N.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.V.computeAlt_=function(){var N=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&N||""};
_.V.thumbnailChanged_=function(){var N=_.D([this.thumbnail,this.oldThumbnail_]),t=N.next().value;N=N.next().value;this.oldThumbnail_=t;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(N=this.computeThumbnailSrc_(N),this.computeThumbnailSrc_(t)===N))return;_.h("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(t)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):t&&_.vZ("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.yB(this,this.onReload_):_.yB(this,this.onShow_):this.resetImage_();t&&(this.hostElement.style.opacity=""+t.opacity)}};
_.V.delayedSrcChanged_=function(){var N=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===N||this.resetImage_()};
_.V.setSrc_=function(N){N?(_.O6(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.O6(this.hostElement).querySelector("#img").src=N):(_.O6(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.V.resetImage_=function(){R14(this.hostElement);this.empty_=!0;this.setSrc_(AoR);this.ytRendererBehavior.invalidate(!1)};
_.V.observePlaceholderColor_=function(){var N=this.thumbnail&&this.thumbnail.placeholderColor;N?this.hostElement.style.backgroundColor=_.aI(N):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.V.onLoad_=function(){_.O6(this.hostElement).querySelector("#img").src&&_.O6(this.hostElement).querySelector("#img").src!==AoR&&(GYp(this.hostElement),this.notifyOnLoaded&&_.or(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.V.onError_=function(){var N=this;if(_.h("web_use_cache_for_image_fallback"))OaN(_.O6(this.hostElement).querySelector("#img").src).then(function(t){N.objectURL_=_.l9(t).toString();N.setSrc_(N.objectURL_)}).catch(function(){_.h("kevlar_woffle_fallback_image")&&N.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.V.onPrescanVisible=function(){this.onShow_()};
_.V.onVisible=function(){if(_.h("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.V.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var N=this.computeSrc_();N!==_.O6(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(N))}};
_.V.onReload_=function(){this.empty_=!1;var N=this.computeSrc_();N!==_.O6(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(N))};
_.V.shouldShowPlaceholder_=function(){return _.h("kevlar_thumbnail_bg")};
JP.prototype.observePlaceholderColor_=JP.prototype.observePlaceholderColor_;JP.prototype.delayedSrcChanged_=JP.prototype.delayedSrcChanged_;JP.prototype.thumbnailChanged_=JP.prototype.thumbnailChanged_;_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],JP.prototype,"alt",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JP.prototype,"ariaHidden",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],JP.prototype,"ariaLabel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],JP.prototype,"hidden",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],JP.prototype,"id",void 0);_.W([_.Y(_.dd.YtVisibilityBehavior),_.Q("design:type",Object)],JP.prototype,"ytVisibilityBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",String)],JP.prototype,"delayedSrc",void 0);
_.W([_.X(),_.Q("design:type",Object)],JP.prototype,"thumbnail",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],JP.prototype,"loaded",void 0);_.W([_.X(),_.Q("design:type",Boolean)],JP.prototype,"notifyOnLoaded",void 0);_.W([_.X(),_.Q("design:type",Number)],JP.prototype,"height",void 0);_.W([_.X(),_.Q("design:type",Number)],JP.prototype,"width",void 0);_.W([_.X({value:function(){return"width"}}),
_.Q("design:type",String)],JP.prototype,"dimension",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],JP.prototype,"fit",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],JP.prototype,"fitHeight",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],JP.prototype,"fitWidth",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],JP.prototype,"objectFit",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],JP.prototype,"objectPosition",void 0);_.W([_.X(),_.Q("design:type",String)],JP.prototype,"preferredThumbnail",void 0);_.W([_.X({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Q("design:type",String)],JP.prototype,"alt_",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],JP.prototype,"sharedTooltipText",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],JP.prototype,"ftlEligible",void 0);_.W([_.X({value:void 0}),_.Q("design:type",String)],JP.prototype,"observeHiddenOption",void 0);_.W([_.X({value:"observe_once"}),_.Q("design:type",String)],JP.prototype,"observePrescanOption",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],JP.prototype,"roundedContainer",void 0);
_.W([_.ic("thumbnail"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JP.prototype,"thumbnailChanged_",null);_.W([_.ic("delayedSrc"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JP.prototype,"delayedSrcChanged_",null);_.W([_.gz("thumbnail.placeholderColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JP.prototype,"observePlaceholderColor_",null);
_.W([_.wz({is:"yt-img-shadow",disableElementRegistration:!0})],JP);var AoR=_.vZ("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.td()(JP,"yt-img-shadow",function(){if(H3Q===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;O3a===void 0&&(O3a=document.createElement("template"));var H=O3a;O.call(t,H.content.cloneNode(!0),N.content.firstChild);H3Q=N}N=H3Q;return N},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var F4M;_.ow=new _.dk("SCREEN_MANAGER_TOKEN");F4M=new _.dk("LOG_INITIAL_SCREEN_TOKEN");var Z3u=zI({entities:{}});_.so=YV(Z3u)(Z3u.entities,{selectSfvAudioItemPlaybackState:function(N,t){var O,H;N=(H=_.CM(N,"sfvAudioItemCurrentlyPlayingEntity",t))!=null?H:void 0;return(O=N==null?void 0:N.sfvAudioItemPlaybackState)!=null?O:void 0},
playlistLoopStateEntitySelector:vit,toggleMenuServiceItemEntitySelector:Jop});_.N3=_.q(function(N){function t(J){return _.M(J,_.$9)}
function O(){var J=H().isTogglingDisabled||z()&&H().toggledIsTogglingDisabled,CN=J||u()?z():!z();w(CN);x(!1);if(!J){var B4;(B4=U)==null||B4(!!CN)}var zM;((zM=Z)==null?0:zM())||_.Q2(_.cY().resolve(_.ow),H().trackingParams);var jy;if(!CN||!t(H().defaultButtonViewModel)||(jy=Z)!=null&&jy()){var c4;!t(H().toggledButtonViewModel)||((c4=Z)==null?0:c4())||_.Q2(_.cY().resolve(_.ow),t(H().toggledButtonViewModel).trackingParams)}else _.Q2(_.cY().resolve(_.ow),t(H().defaultButtonViewModel).trackingParams)}
var H=N.data,A=N.buttonShapeOverrides,Z=N.disableExplicitClickLogging,U=N.onToggle,C=N.style,F=N.useOutlinedIcon,g=N.className,B=function(){var J,CN;return z()?(J=N.animatedTextPropsToggled)==null?void 0:J.call(N):(CN=N.animatedTextPropsDefault)==null?void 0:CN.call(N)},c=_.aa(function(){return B()?Object.assign({},B(),{shouldAnimate:P()}):void 0},void 0,"Zp4uoe"),u=function(){var J;
return((J=r())==null?void 0:J.isToggled)!==void 0},S=_.D(_.Gb(function(){var J,CN,B4;
return u()?(J=r())==null?void 0:J.isToggled:(B4=A==null?void 0:(CN=A())==null?void 0:CN.toggled)!=null?B4:H().isToggled})),b=S.next().value;
S=S.next().value;var z=b,w=S;S=_.D(_.Gb(function(){var J,CN;return(J=N.animatedTextPropsToggled)==null?void 0:(CN=J.call(N))==null?void 0:CN.shouldAnimate}));
b=S.next().value;S=S.next().value;var P=b,x=S;b=_.D(_.b$(!1,void 0,"mq3Zfe"));var l=b.next().value,I=b.next().value,r=_.cH(function(J){a:{var CN=H().entityKey,B4=H().toggledStateEntitySelectorType;if(B4)switch(B4){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!CN)break;J=_.so.selectSfvAudioItemPlaybackState(J,CN);if(J==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){J={isToggled:!0};break a}if(J){J={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":J={isToggled:_.txv(J).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":J={isToggled:_.txv(J).includes("engagement-panel-live-chat-item-section")};break a;default:_.J_(new _.fF("Error: entitySelectorType defined but not matched in selector.",J,B4))}J=void 0}return J}),E=function(){return Object.assign({},A==null?void 0:A(),{onToggle:O,
toggleable:!0,toggled:z(),focused:l()})};
return _.d("toggle-button-view-model",{"on:focusin":_.Ui(function(){var J=_.cY().resolve(_.BY(_.z6));J&&I(J.isKeyBoardInUse());return!1}),
"on:focusout":_.Ui(function(){I(!1);return!1})},_.d(_.y,{cond:function(){return z()?t(H().toggledButtonViewModel):t(H().defaultButtonViewModel)},
then:function(J){return _.d(_.Pu,{data:J,className:g,style:C,useOutlinedIcon:F,buttonOverrides:E,animatedTextProps:c})}}))},"da");
_.N3.idomCompat={callbacks:{onToggle:!0}};_.o_(_.q(function(N){return _.d("yt-toggle-button-view-model",{class:function(){var t;return(t=N.scopingClassName)==null?void 0:t.call(N)}},_.d(_.N3,{data:function(){var t;
return(t=N.data)==null?void 0:t.call(N)},
buttonShapeOverrides:function(){var t;return(t=N.overrides)==null?void 0:t.call(N)},
animatedTextPropsDefault:function(){var t;return(t=N.animatedTextPropsDefault)==null?void 0:t.call(N)},
animatedTextPropsToggled:function(){var t;return(t=N.animatedTextPropsToggled)==null?void 0:t.call(N)},
disableExplicitClickLogging:function(){var t;return(t=N.disableExplicitClickLogging)==null?void 0:t.call(N)},
onToggle:function(t){var O;return(O=N.onToggle)==null?void 0:O.call(N,t)},
style:function(){var t;return(t=N.style)==null?void 0:t.call(N)},
useOutlinedIcon:function(){var t;return(t=N.useOutlinedIcon)==null?void 0:t.call(N)},
className:function(){var t;return(t=N.className)==null?void 0:t.call(N)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.$O,
buttonShapeOverrides:_.$O,overrides:_.$O,animatedTextPropsDefault:_.$O,animatedTextPropsToggled:_.$O,disableExplicitClickLogging:_.$O,onToggle:_.R_,style:_.$O,useOutlinedIcon:_.$O,className:_.$O,scopingClassName:_.$O}});var ti=function(){return _.k.apply(this,arguments)||this};
_.p(ti,_.k);ti.prototype.onTap=function(N){N.stopPropagation();N=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.aE("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:N})):this.ytLiveChatReduxBehavior.dispatch(_.uF("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:N}))};
_.cv.Object.defineProperties(ti.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.engagementState)==null?void 0:N.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N=_.M(this.data.toggleButton,_.iA),t;if(Number(((t=this.likeCountState)==null?void 0:t.likeCountIfIndifferentNumber)||"0")===0){var O;t=((O=this.data.likeCountPlaceholder)==null?void 0:O.content)||""}else{var H,A,Z;t=((H=this.likeCountState)==null?void 0:(A=H.likeCountIfIndifferent)==null?void 0:A.content)||((Z=this.data.likeCountPlaceholder)==null?void 0:Z.content)||""}var U,C;O=((U=this.likeCountState)==null?void 0:(C=
U.likeCountIfLiked)==null?void 0:C.content)||"1";U=_.M(N.toggledButtonViewModel,_.$9);return Object.assign({},N,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.M(N.defaultButtonViewModel,_.$9),{title:t})},toggledButtonViewModel:{buttonViewModel:Object.assign({},U,{title:O})}})}}}});
ti.prototype.onTap=ti.prototype.onTap;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],ti.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ti.prototype,"data",void 0);
_.W([_.X({selectorArgs:["data.likeCountEntityKey"],selector:O4l}),_.Q("design:type",Object)],ti.prototype,"likeCountState",void 0);_.W([_.X({selectorArgs:["data.engagementStateKey"],selector:KcO}),_.Q("design:type",Object)],ti.prototype,"engagementState",void 0);_.W([_.a("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ti.prototype,"isLiked",null);
_.W([_.a("data","likeCountState","isLiked"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ti.prototype,"toggleButton",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],ti.prototype,"onTap",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],ti);
_.n(ti,"yt-live-chat-like-button-view-model",function(){if(UWB===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;DWS===void 0&&(DWS=document.createElement("template"));var H=DWS;O.call(t,H.content.cloneNode(!0),N.content.firstChild);UWB=N}N=UWB;return N},{mode:0});var VKf;var Dvu;var Oa=function(){return _.k.apply(this,arguments)||this};
_.p(Oa,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Oa.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Oa);
_.n(Oa,"yt-live-chat-paid-message-footer-renderer",function(){if(Dvu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;VKf===void 0&&(VKf=document.createElement("template"));var H=VKf;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Dvu=N}N=Dvu;return N},{mode:0});var UvX;var CTp;var KcB;var FcS,dvy=function(){if(FcS!==void 0)return FcS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;KcB===void 0&&(KcB=document.createElement("template"));var H=KcB;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return FcS=N};var HR=function(){return _.k.apply(this,arguments)||this};
_.p(HR,_.k);HR.prototype.onTap=function(N){N.stopPropagation()};
_.cv.Object.defineProperties(HR.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N=_.M(this.data.replyButton,_.$9),t,O,H,A,Z,U,C,F=Number(((t=this.replyCountState)==null?void 0:t.replyCountNumber)||"0")===0?(O=this.data)==null?void 0:(H=O.replyCountPlaceholder)==null?void 0:H.content:((A=this.replyCountState)==null?void 0:(Z=A.replyCount)==null?void 0:Z.content)||((U=this.data)==null?void 0:(C=U.replyCountPlaceholder)==null?void 0:C.content)||"",g;return Object.assign({},
N,{title:F,accessibilityText:(g=this.replyCountState)==null?void 0:g.replyButtonAccessibilityText})}}}});
_.cv.Object.defineProperties(HR,{template:{configurable:!0,enumerable:!0,get:function(){return dvy()}}});
HR.prototype.onTap=HR.prototype.onTap;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],HR.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],HR.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],HR.prototype,"data",void 0);
_.W([_.X({selectorArgs:["data.replyCountEntityKey"],selector:function(N,t){return _.CM(N.entities,"replyCountEntity",t)}}),
_.Q("design:type",Object)],HR.prototype,"replyCountState",void 0);_.W([_.a("data","replyCountState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],HR.prototype,"buttonViewModel",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],HR.prototype,"onTap",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],HR);_.n(HR,"yt-live-chat-reply-button-view-model",function(){return dvy()},{mode:0});var giR;var yoR;var Ai=function(){var N=_.k.apply(this,arguments)||this;N.ariaLabel="";return N};
_.p(Ai,_.k);
Ai.prototype.dataChanged=function(){for(var N=(0,_.U6)(_.O6(this.hostElement).querySelector("#image"));N.firstChild;)N.removeChild(N.firstChild);if(this.data)if(this.data.icon){var t=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(t.polymerController.icon="yt-sys-icons:shield-filled",t.polymerController.defaultToFilled=!0):t.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();N.appendChild(t)}else if(this.data.customThumbnail){t=document.createElement("img");
var O=_.WoO(this.data.customThumbnail.thumbnails,16);O?(t.src=O,N.appendChild(t),t.setAttribute("alt",this.hostElement.ariaLabel||"")):_.J_(new _.fF("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Ai.prototype.identity=function(N){return N};
Ai.prototype.computeType=function(N){return HV(N||void 0)};
Ai.prototype.dataChanged=Ai.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],Ai.prototype,"data",void 0);_.W([_.X({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Q("design:type",Object)],Ai.prototype,"ariaLabel",void 0);_.W([_.X({computed:"computeType(data)",reflectToAttribute:!0}),_.Q("design:type",String)],Ai.prototype,"type",void 0);
_.W([_.X({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Q("design:type",String)],Ai.prototype,"sharedTooltipText",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("live_chat_enable_new_moderator_badge")}}),
_.Q("design:type",Boolean)],Ai.prototype,"enableNewModeratorBadge",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ai.prototype,"dataChanged",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Ai);
_.n(Ai,"yt-live-chat-author-badge-renderer",function(){if(yoR===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;giR===void 0&&(giR=document.createElement("template"));var H=giR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);yoR=N}N=yoR;return N},{mode:0});var BKQ;var co0;var Zd=function(){return _.k.apply(this,arguments)||this};
_.p(Zd,_.k);_.V=Zd.prototype;_.V.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.V.computeBadgesInsideChip=function(N){return N?N.filter(function(t){return HV(t.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.V.computeBadgesOutsideChip=function(N){return this.prependChatBadges||!N?[]:N.filter(function(t){t=HV(t.liveChatAuthorBadgeRenderer);return t!=="verified"&&t!=="owner"})};
_.V.computeBadgesBeforeChip=function(N){return this.prependChatBadges&&N?N.filter(function(t){t=HV(t.liveChatAuthorBadgeRenderer);return t!=="verified"&&t!=="owner"}):[]};
_.V.computeIsHighlighted=function(N,t){var O=!!A0v(N,"owner"),H=!!A0v(N,"verified");N=!!A0v(N,"moderator");return(O||H&&!N)&&!t};
_.V.computeAuthorType=function(N){return H5Q(N)};
_.V.computeAuthorClass=function(N,t){return t?(N?N+" ":"")+"single-line":N};
_.V.onSeedColorChanged=function(){_.h("live_chat_author_name_color_usernames")||_.h("live_chat_seed_color_usernames")||_.h("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):_.h("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Zd.prototype.onSeedColorChanged=Zd.prototype.onSeedColorChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Zd.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Zd.prototype,"authorName",void 0);_.W([_.X(),_.Q("design:type",Array)],Zd.prototype,"authorBadges",void 0);
_.W([_.X({computed:"computeAuthorType(authorBadges)"}),_.Q("design:type",String)],Zd.prototype,"authorType",void 0);_.W([_.X({computed:"computeAuthorClass(authorType, singleLine)"}),_.Q("design:type",String)],Zd.prototype,"authorClass",void 0);_.W([_.X({computed:"computeBadgesInsideChip(authorBadges)"}),_.Q("design:type",Array)],Zd.prototype,"badgesInsideChip",void 0);_.W([_.X({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Q("design:type",Array)],Zd.prototype,"badgesOutsideChip",void 0);
_.W([_.X({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Q("design:type",Array)],Zd.prototype,"badgesBeforeChip",void 0);_.W([_.X({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Zd.prototype,"isHighlighted",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Zd.prototype,"singleLine",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Zd.prototype,"disableHighlighting",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Zd.prototype,"dashboardMoneyFeed",void 0);_.W([_.X({value:_.h("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Q("design:type",Boolean)],Zd.prototype,"prependChatBadges",void 0);_.W([_.X(),_.Q("design:type",String)],Zd.prototype,"authorNameColor",void 0);_.W([_.B2("#author-name"),_.Q("design:type",HTMLDivElement)],Zd.prototype,"username",void 0);
_.W([_.gz("authorNameColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zd.prototype,"onSeedColorChanged",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Zd);
_.n(Zd,"yt-live-chat-author-chip",function(){if(co0===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;BKQ===void 0&&(BKQ=document.createElement("template"));var H=BKQ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);co0=N}N=co0;return N},{mode:0});var $vY;var jcu;var V3=function(){var N=_.k.apply(this,arguments)||this;N.debounceCommand=_.Tj(function(t){N.ytComponentBehavior.resolveCommand(t)},1500);
return N};
_.p(V3,_.k);V3.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var N=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",t,O,H=this.isHearted?(t=this.data)==null?void 0:t.unheartCommand:(O=this.data)==null?void 0:O.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.aE("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:N}));(N=_.wF(H))&&this.debounceCommand(N)}};
_.cv.Object.defineProperties(V3.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var N,t;if(!((N=this.data)==null?0:(t=N.creatorThumbnail)==null?0:t.sources))return{};N={thumbnails:[]};t={};t.url=this.data.creatorThumbnail.sources[0].url;N.thumbnails.push(t);return N}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.engagementState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((O=this.engagementState)==null?void 0:O.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}}});
V3.prototype.onTap=V3.prototype.onTap;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],V3.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],V3.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],V3.prototype,"data",void 0);
_.W([_.X({selectorArgs:["data.engagementStateKey"],selector:KcO}),_.Q("design:type",Object)],V3.prototype,"engagementState",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],V3.prototype,"thumbnailDetails",null);_.W([_.a("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],V3.prototype,"isHearted",null);_.W([_.a("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],V3.prototype,"isEditable",null);
_.W([_.a("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],V3.prototype,"showCreatorView",null);_.W([_.a("data","engagementState"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],V3.prototype,"showButton",null);_.W([_.a("data","isHearted"),_.Q("design:type",String),_.Q("design:paramtypes",[])],V3.prototype,"label",null);_.W([_.a("data","isHearted"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],V3.prototype,"heartHoverText",null);
_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],V3.prototype,"onTap",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],V3);
_.n(V3,"yt-live-chat-creator-heart-view-model",function(){if(jcu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;$vY===void 0&&($vY=document.createElement("template"));var H=$vY;O.call(t,H.content.cloneNode(!0),N.content.firstChild);jcu=N}N=jcu;return N},{mode:0});var Dd=function(N,t){this.serviceId=new ShE(N,t)};
Dd.prototype.toString=function(){return this.serviceId.toString()};var i30=function(){this.internalMap={}};
_.V=i30.prototype;_.V.contains=function(N){return Object.prototype.hasOwnProperty.call(this.internalMap,N)};
_.V.get=function(N){if(this.contains(N))return this.internalMap[N]};
_.V.set=function(N,t){this.internalMap[N]=t};
_.V.getKeys=function(){return Object.keys(this.internalMap)};
_.V.remove=function(N){delete this.internalMap[N]};var Ua=function(){this.mappings=new i30;this.errorCallbacks=new Set};
Ua.prototype.getModuleId=function(N){return N.serviceId.getModuleId()};
Ua.prototype.get=function(N){var t=this.mappings.get(N.toString());return uj_(this,t,N)};
Ua.prototype.getMultipleAsync=function(){var N=_.E1.apply(0,arguments),t=this,O=N.map(function(F){return t.getModuleId(F)}),H=N.map(function(F){return t.mappings.get(F.toString())}).filter(function(F){return F});
if(H.length===N.length)return _.Hc(H.map(function(F,g){return uj_(t,F,N[g])}));
var A=lu().loadMultiple(O);H=_.qs(O.map(function(F){return A[F]}));
var Z=document.hidden,U=-1,C=_.uP("get_async_timeout_ms",-1);C>-1&&(U=setTimeout(function(){_.J_(new _.fF("Module timeout.",O,Z,document.hidden))},C));
return _.fV(H.then(function(){return N.map(function(F){return uj_(t,t.mappings.get(F.toString()),F)})}).thenCatch(function(F){for(var g=_.D(t.errorCallbacks),B=g.next();!B.done;B=g.next())B=B.value,B(F);
throw F;}),function(){clearTimeout(U)})};
Ua.prototype.registerService=function(N,t){this.mappings.set(N.toString(),{type:"mapping",value:t});return N};
var uj_=function(N,t,O){switch(t.type){case "mapping":return t.value;case "factory":return t=t.value(),N.mappings.set(O.toString(),{type:"mapping",value:t}),t;default:return _.Ep(t)}};
Ua.prototype.onLoadError=function(N){var t=this;this.errorCallbacks.add(N);return function(){t.errorCallbacks.delete(N)}};
_.CX=new Ua;var SYp=function(){};
_.V=SYp.prototype;
_.V.JSC$14325_getRequest=function(N,t,O){t=t===void 0?{}:t;O=O===void 0?pcf:O;var H=t;if(this.isNavigationCommand()){var A,Z=(A=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?void 0:A.url;H=_.UP4(N.clickTrackingParams,!0,!1,Z,this.JSC$14325_getClientScreen(H))}else H=_.UP4(N.clickTrackingParams,!1,this.includeCsn);H={context:H};if(A=this.getExtension(N))return this.JSC$14325_buildRequest(H,A,t),A=this.getApiUrl(N),Z=Object.assign({},{command:N},this.getRequestConfig(N,t)),H={input:A,requestShell:nv(A),
innerTubeRequest:H,config:Z},H.config.authStrategy?H.config.authStrategy.identity=O:H.config.authStrategy={identity:O},(N=this.JSC$14325_getRequestKey(N,t))&&!H.config.requestKey&&(H.config.requestKey=N),H;N=new _.fF("Error: Failed to create Request from Command.",N);_.R0(N)};
_.V.getApiUrl=function(N){var t=_.JB(this.getApiPaths(N)),O;(N=(O=_.M(N.commandMetadata,_.Da))==null?void 0:O.apiUrl)&&(t=N);return ncv(fiQ(t))};
_.V.isNavigationCommand=function(){return!1};
_.V.JSC$14325_getClientScreen=function(){};
_.V.JSC$14325_getRequestKey=function(){};
_.V.getRequestConfig=function(){};
_.cv.Object.defineProperties(SYp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var KX=function(){};
_.p(KX,SYp);KX.prototype.JSC$14332_getStoreKey=function(){};
KX.prototype.JSC$14325_getRequestKey=function(N,t){t=t===void 0?{}:t;return this.JSC$14332_getStoreKey(N,t)};var Fs=function(){};
_.p(Fs,KX);Fs.prototype.JSC$14325_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:nv("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Fs.prototype.getApiPaths=function(){return[]};
Fs.prototype.getExtension=function(){};
Fs.prototype.JSC$14325_buildRequest=function(){};var h6_={},MKr=(h6_.GET_DATASYNC_IDS=XM(Fs),h6_);var b3a,pOy,LcR,e6y,dO,TKp,z6p,awZ,YYf;b3a="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");pOy=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.nE=function(N,t,O,H,A,Z,U,C,F){this.endpointMap=N;this.networkManager=t;this.authService=O;this.responseProcessorMap=H;this.innertubeResponseStore=A;this.contextProcessors=Z;this.asyncContextProcessors=U;this.localInnertubeRouter=C;this.requestSequencer=F;this.inflightRequests=new Map;N.signalEndpointMap||(N.signalEndpointMap={});N.signalEndpointMap=Object.assign({},MKr,N.signalEndpointMap)};
LcR=function(N,t,O,H,A,Z,U,C,F){if(_.nE.instance!==void 0){if(H=_.nE.instance,N=[N!==H.endpointMap,t!==H.networkManager,O!==H.authService,A!==H.innertubeResponseStore,Z!==H.contextProcessors,U!==H.asyncContextProcessors,C!==H.localInnertubeRouter],N.some(function(g){return g}))throw new _.fF("InnerTubeTransportService is already initialized",N);
}else _.nE.instance=new _.nE(N,t,O,H,A,Z,U,C,F)};
_.rq=function(N,t,O){var H=H===void 0?pcf:H;var A=z6p(N,t);return A?new _.TW(function(Z,U){var C,F,g,B,c;return _.K(function(u){switch(u.nextAddress){case 1:return u.yield(A,2);case 2:C=u.yieldResult;F=C.JSC$14325_getRequest(t,O,H);if(!F){U(new _.fF("Error: Failed to build request for command.",t));u.jumpTo(0);break}Xi(F.input);B=((g=F.requestShell)==null?void 0:g.mode)==="cors"?"cors":void 0;if(N.authService.syncHeaders){c=YYf(F.config,B);u.jumpTo(4);break}return u.yield(awZ(F.config,B),5);case 5:c=
u.yieldResult;case 4:Z(TKp(N,F,c)),_.Ty(u)}})}):_.M2(new _.fF("Error: No request builder found for command.",t))};
e6y=function(N,t,O,H){var A=A===void 0?pcf:A;var Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E;return _.K(function(J){switch(J.nextAddress){case 1:Z=VxM(t,N.endpointMap);if(!Z)throw new _.fF("Error: No streaming request builder found for command",t);U=Z.JSC$14325_getRequest(t,O,A);if(!U)throw new _.fF("Failed to build YtRequest for streaming Command",t);if((C=N.localInnertubeRouter)==null||!C.shouldPreferLocalResponse(U.input,U.innerTubeRequest)){J.jumpTo(2);break}return J.yield(N.localInnertubeRouter.localInnertubeResponse(U.input,
U.innerTubeRequest),3);case 3:return F=J.yieldResult,g={},F.playerResponse&&(dO(N,F.playerResponse,U),g.player=F.playerResponse,(B=H)==null||B(g,F)),F.watchNextResponse&&(dO(N,F.watchNextResponse,U),g.content=F.watchNextResponse,(c=H)==null||c(g,F)),J.return(g);case 2:S=((u=U.requestShell)==null?void 0:u.mode)==="cors"?"cors":void 0;if(N.authService.syncHeaders){b=YYf(U.config,S);J.jumpTo(4);break}return J.yield(awZ(U.config,S),5);case 5:b=J.yieldResult;case 4:return P=(w=(z=U.requestShell)==null?
void 0:z.headers)!=null?w:{},U.requestShell=Object.assign({},U.requestShell,{headers:Object.assign({},P,b)}),x=Object.assign({},U.requestShell),l=JSON.stringify(U.innerTubeRequest),U.requestShell.method==="POST"&&(x=Object.assign({},x,{body:l})),I=function(CN,B4){dO(N,B4.playerResponse||B4.watchNextResponse||B4.reelItemWatchResponse||B4.reelWatchSequenceResponse,U);H==null||H(CN,B4);_.h("web_watch_stop_scheduler_on_player_response")&&B4.playerResponse&&T0E()},r={},J.yield(wO0(N.networkManager,U.input,
x,I),6);
case 6:return r=J.yieldResult,((E=U.config)==null?0:E.responseTick)&&_.zT(U.config.responseTick),J.return(r)}})};
_.cT=function(N,t,O,H,A){A=A===void 0?{authStrategy:{identity:pcf}}:A;var Z=Z===void 0?!0:Z;var U=function(){};
U=vsv(GLN(O));t.context||(t.context=_.UP4(H,Z));return new _.TW(function(C){var F,g,B,c,u;return _.K(function(S){if(S.nextAddress==1)return F=fiQ(O),g=_.fv(F),N.authService.syncHeaders?(B=YYf(A,g),S.jumpTo(2)):S.yield(awZ(A,g),3);S.nextAddress!=2&&(B=S.yieldResult);c=ncv(fiQ(O));u={input:c,requestShell:nv(c),innerTubeRequest:t,config:A};C(TKp(N,u,B,U));_.Ty(S)})})};
dO=function(N,t,O){var H;if(t&&!(t==null?0:(H=t.sequenceMetaData)==null?0:H.skipProcessing)&&N.responseProcessorMap){H=_.D(b3a);for(var A=H.next();!A.done;A=H.next())A=A.value,N.responseProcessorMap[A]&&N.responseProcessorMap[A].handleResponse(t,O)}};
TKp=function(N,t,O,H){H=H===void 0?function(){}:H;
var A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E,J,CN,B4,zM,jy,c4,XO,kx,fN,gf,yr,sS,$X,pR,wf,b1,$r,US,H0,SE,v0;return _.K(function(hu){switch(hu.nextAddress){case 1:U=(A=t.config)==null?void 0:(Z=A.storeStrategy)==null?void 0:Z.storeKey;if(!(U&&N.innertubeResponseStore&&N.innertubeResponseStore.has(U))||((C=t.config)==null?0:(F=C.storeStrategy)==null?0:F.disableCache)){hu.jumpTo(2);break}return hu.yield(N.innertubeResponseStore.get(U),3);case 3:if((g=hu.yieldResult)&&!g.isExpired())return hu.return(Promise.resolve(_.N4(g)));
case 2:if(!((B=t)==null?0:(c=B.innerTubeRequest)==null?0:c.context)){hu.jumpTo(4);break}u=t.innerTubeRequest.context;if(!(N.asyncContextProcessors&&N.asyncContextProcessors.length>0)){hu.jumpTo(5);break}S=[];b=_.D(N.asyncContextProcessors);for(z=b.next();!z.done;z=b.next())w=z.value,P=w.processContext(t),P.wrappedPromise_&&S.push(P.wrappedPromise_);if(!(S.length>0)){hu.jumpTo(5);break}return hu.yield(Promise.all(S),5);case 5:x=_.D(N.contextProcessors||[]),l=x.next();case 8:if(l.done){hu.jumpTo(4);
break}I=l.value;return hu.yield(I.processContext(u),9);case 9:l=x.next();hu.jumpTo(8);break;case 4:if((r=N.localInnertubeRouter)==null||!r.shouldPreferLocalResponse(t.input,t.innerTubeRequest)){hu.jumpTo(12);break}return hu.yield(N.localInnertubeRouter.localInnertubeResponse(t.input,t.innerTubeRequest),13);case 13:return E=hu.yieldResult,dO(N,E,t),hu.return(E);case 12:return(B4=(CN=t.config)==null?void 0:CN.requestKey)&&N.inflightRequests.has(B4)?J=N.inflightRequests.get(B4):(zM=JSON.stringify(t.innerTubeRequest),
XO=(c4=(jy=t.requestShell)==null?void 0:jy.headers)!=null?c4:{},t.requestShell=Object.assign({},t.requestShell,{headers:Object.assign({},XO,O)}),kx=Object.assign({},t.requestShell),t.requestShell.method==="POST"&&(kx=Object.assign({},kx,{body:zM})),((fN=t.config)==null?0:fN.requestTick)&&_.zT(t.config.requestTick),gf=function(){return N.networkManager.fetch(t.input,kx,t.config)},J=N.requestSequencer?PT_(N.requestSequencer,t,gf):gf(),B4&&N.inflightRequests.set(B4,J)),hu.yield(J,14);
case 14:(yr=hu.yieldResult)&&_.h("web_streaming_player")&&Array.isArray(yr)&&(yr=yr[0].playerResponse);if(yr&&"error"in yr&&((sS=yr)==null?0:($X=sS.error)==null?0:$X.details))for(pR=yr.error.details,wf=_.D(pR),b1=wf.next();!b1.done;b1=wf.next())$r=b1.value,(US=$r["@type"])&&pOy.indexOf(US)>-1&&(delete $r["@type"],yr=$r);B4&&N.inflightRequests.has(B4)&&N.inflightRequests.delete(B4);((H0=t.config)==null?0:H0.responseTick)&&_.zT(t.config.responseTick);if(yr||(SE=N.localInnertubeRouter)==null||!SE.canProvideFallbackResponse(t.input,
t.innerTubeRequest)){hu.jumpTo(15);break}return hu.yield(N.localInnertubeRouter.localFallbackInnertubeResponse(t.input,t.innerTubeRequest),16);case 16:yr=hu.yieldResult;case 15:return dO(N,yr,t),((v0=t.config)==null?0:v0.processorTick)&&_.zT(t.config.processorTick),H(),hu.return(yr||void 0)}})};
_.WH=function(N,t){return Z4Q(t,N.endpointMap)};
z6p=function(N,t){N=D$t(t,N.endpointMap);if(N!==void 0)return Promise.resolve(N)};
awZ=function(N,t){var O,H,A,Z;return _.K(function(U){if(U.nextAddress==1){A=(O=N)==null?void 0:(H=O.authStrategy)==null?void 0:H.sessionIndex;var C=U.yield;var F=_.Hc(Ej4({sessionIndex:A}));return C.call(U,F,2)}Z=U.yieldResult;return U.return(Promise.resolve(Object.assign({},U$y(t),Z)))})};
YYf=function(N,t){var O;N=N==null?void 0:(O=N.authStrategy)==null?void 0:O.sessionIndex;O=Ej4({sessionIndex:N});return Object.assign({},U$y(t),O)};var XOS,xvE,k7f,qYZ,fwr,niR,Iw_,lw0,BR,QcS,mvr,rof,Ei0;XOS=0;xvE=/tone[1-5]/;k7f=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");qYZ="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
fwr=Number.MAX_SAFE_INTEGER;niR=RegExp("\ufe0f","g");_.gO=function(N){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;N&&_.Wcf(this,N)};
_.Wcf=function(N,t){try{_.aD(t,{context:N,onSuccess:function(H,A){Array.isArray(A)?N.load(A):(H=new _.fF("Emoji manager JSON response was not an array!",{response:A}),_.R0(H))},
onError:function(H){H=new _.fF("Failed to retrieve emoji manager initial JSON data!",{url:t,statusCode:_.bP(H).toString()});_.J_(H)}})}catch(H){var O=new _.fF("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:t});
_.J_(O)}};
_.gO.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.gO.prototype.load=function(N,t){if(t)if(N.length)N=N.concat(t.emojis);else{this.emojis=t.emojis;this.emojiMap=t.emojiMap;this.emojiShortcutMap=t.emojiShortcutMap;this.emojiShortcutCharMap=rof(t);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=t.emojiRegex;return}this.emojis=[].concat(_.W6(new Set(this.emojis.concat(N))));this.hasInitializedShortcutCharMap=!1;N=Array(this.emojis.length);for(t=0;t<this.emojis.length;t++){var O=this.emojis[t];if(O.emojiId){this.emojiMap[O.emojiId]=O;this.emojiMap[O.emojiId].index=
t;for(var H=0;O.shortcuts&&H<O.shortcuts.length;H++)this.emojiShortcutMap[O.shortcuts[H].toLocaleLowerCase()]=O;N[t]=O.isCustomEmoji&&O.shortcuts?O.shortcuts[0]:O.emojiId}}N.sort(function(A,Z){return Z.length-A.length});
if(N.length)try{this.emojiRegex=new RegExp(N.join("|").replace("*","\\*"),"gi")}catch(A){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Iw_=function(N,t){t=_.D(t);for(var O=t.next();!O.done;O=t.next()){var H=O.value;if(H.emojiId&&N.emojiMap[H.emojiId]){O=Object.assign({},N.emojiMap[H.emojiId],H);N.emojiMap[H.emojiId]=O;var A=void 0;O.index&&((A=N.emojis[O.index])==null?void 0:A.emojiId)===H.emojiId&&(N.emojis[O.index]=O);H=void 0;if((H=O.shortcuts)==null?0:H.length)for(N.hasInitializedShortcutCharMap=!1,H=_.D(O.shortcuts),A=H.next();!A.done;A=H.next())N.emojiShortcutMap[A.value.toLocaleLowerCase()]=O}}};
lw0=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(_.A7.getInstance(),2);if(H.nextAddress!=3)return(t=H.yieldResult)?H.yield(t.get("ytlc-emoji-pref"),3):H.return();(O=H.yieldResult)&&Iw_(N,Object.keys(O).map(function(A){return{emojiId:A,stickyPrefId:O[A]}}).filter(function(A){return!!A.emojiId&&!!A.stickyPrefId}));
_.Ty(H)})};
_.y3=function(N,t,O){return(N=N.emojiMap[t])&&(!N.isLocked||O!==void 0&&O)?N:void 0};
BR=function(N,t,O){O=_.y3(N,t,O===void 0?!1:O);var H=t.match("\u200d");O&&N.skinTone!==0&&(N=(H==null?void 0:H.length)===1?_.y3(N,t.replace("\u200d",k7f[N.skinTone]+"\u200d")):_.y3(N,t+k7f[N.skinTone]))&&(O=N);return O};
QcS=function(N,t){var O=N.emojiMap[t];return(O==null?0:O.stickyPrefId)?N.emojiMap[O.stickyPrefId]:BR(N,t)};
_.Z_=function(N,t){N=N.emojiShortcutMap[t.toLocaleLowerCase()];return!N||N.isLocked?null:N};
mvr=function(N,t,O){return rof(N,O===void 0?!1:O)[t]||{}};
rof=function(N,t){t=t===void 0?!1:t;if(!N.hasInitializedShortcutCharMap){N.hasInitializedShortcutCharMap=!0;for(var O=0;O<N.emojis.length;O++){var H=N.emojis[O];if(!(H.isLocked||t&&H.isCustomEmoji&&H.emojiId&&!N.pickerCustomEmojiIds.includes(H.emojiId)))for(var A=0;H.shortcuts&&A<H.shortcuts.length;A++){var Z=H.shortcuts[A];Z.startsWith(":_")&&H.isCustomEmoji&&(N.emojiShortcutCharMap[":_"]==null&&(N.emojiShortcutCharMap[":_"]=Object.create(null)),N.emojiShortcutCharMap[":_"][Z]=H);if(!(Z.length<3||
!H.isCustomEmoji&&xvE.test(Z))){var U=Z.substr(0,3).toLocaleLowerCase();N.emojiShortcutCharMap[U]==null&&(N.emojiShortcutCharMap[U]=Object.create(null));N.emojiShortcutCharMap[U][Z]=H}}}}return N.emojiShortcutCharMap};
_.gO.prototype.createEmoji=function(N,t){t=t===void 0?!0:t;var O=document.createElement("img");N.isCustomEmoji||O.classList.add("small-emoji");O.classList.add("emoji");O.classList.add("yt-formatted-string");O.src=N.image?_.s4(N.image.thumbnails,this.emojiSize)||"":"";var H=void 0;N.image&&N.image.accessibility&&N.image.accessibility.accessibilityData&&(H=N.image.accessibility.accessibilityData.label);O.alt=H?H:(N.isCustomEmoji&&N.shortcuts?N.shortcuts[0]:N.emojiId)||"";N.isCustomEmoji&&(O.dataset.emojiId=
N.emojiId);_.V_&&(O.setAttribute("contenteditable","false"),O.setAttribute("unselectable","on"));t&&(N.shortcuts&&N.shortcuts.length&&O.setAttribute("shared-tooltip-text",N.shortcuts[0]),O.id="emoji-"+XOS++);return O};
_.gO.prototype.createDocumentFragment=function(N,t,O,H){t=t===void 0?!1:t;O=O===void 0?!0:O;H=H===void 0?!1:H;N=N.replace(niR,"");for(var A=document.createDocumentFragment(),Z=0,U,C=0;(U=this.emojiRegex.exec(N))!=null;){var F=_.y3(this,U[0])||_.Z_(this,U[0]);!F||F.isCustomEmoji&&!t||(F=this.createEmoji(F,O),Z!==U.index&&A.appendChild(document.createTextNode(N.substring(Z,U.index))),A.appendChild(F),Z=U.index+U[0].length,C++)}if(!H||C)return A.appendChild(document.createTextNode(N.substr(Z))),A};
Ei0=function(N,t,O){var H,A,Z,U,C,F,g,B,c;return _.K(function(u){if(u.nextAddress==1){if(!t.emojiId||!N.emojiMap[t.emojiId])return u.return();H=Object.assign({},N.emojiMap[t.emojiId],{stickyPrefId:O});N.emojiMap[t.emojiId]=H;t.index&&((A=N.emojis[t.index])==null?void 0:A.emojiId)===t.emojiId&&(N.emojis[t.index]=H);if((Z=t.shortcuts)==null?0:Z.length)for(N.hasInitializedShortcutCharMap=!1,U=_.D(t.shortcuts),C=U.next();!C.done;C=U.next())F=C.value,N.emojiShortcutMap[F.toLocaleLowerCase()]=H;return u.yield(_.A7.getInstance(),
2)}if(u.nextAddress!=4)return(g=u.yieldResult)?u.yield(g.get("ytlc-emoji-pref"),4):u.jumpTo(0);c=(B=u.yieldResult)!=null?B:{};c[t.emojiId]=O;return u.yield(g.set("ytlc-emoji-pref",c,fwr),0)})};
_.cR=new _.gO;var vif;_.$n={};
vif={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.h("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:_.h("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 md(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var N=_.O6(this.hostElement||this).querySelector("#inline-action-button-container");N&&N.setAttribute("aria-hidden","true");this.menuButton=_.O6(this.hostElement).querySelector("#menu-button")},
attached:function(){var N=this.menuButton;N&&(N.addEventListener("focusin",_.Fb(this,this.onMenuButtonFocus_)),N.addEventListener("focusout",_.Fb(this,this.onMenuButtonBlur_)))},
detached:function(){var N=this.menuButton;N&&(N.removeEventListener("focusin",_.Fb(this,this.onMenuButtonFocus_)),N.removeEventListener("focusout",_.Fb(this,this.onMenuButtonBlur_)))},
identity:_.xx,truthy:function(N){return!!N},
computeTimestampString:function(N){return N?N.timestampText?this.getSimpleString(N.timestampText):this.TIME_FORMATTER.format(new Date(N.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(N){return N},
computeMenuVisible_:function(N,t){return N||t},
computeHasInlineActionButtons:function(N){if(!N)return!1;var t,O;return!((t=N.inlineActionButtons)==null||!t.length)||!((O=N.additionalInlineActionButtons)==null||!O.length)},
createDocumentFragmentFromString:function(N){var t=_.cR.createDocumentFragment.bind(_.cR),O;if((O=this.participantsManager)==null||!O.viewerRegex)return t(N);O=document.createDocumentFragment();for(var H=0,A;(A=this.participantsManager.viewerRegex.exec(N))!=null;){if(A.index>0){var Z=":"+A[0]+":";if((_.y3(_.cR,Z)||_.Z_(_.cR,Z))&&N.indexOf(Z)===A.index-1)continue}O.appendChild(t(N.substring(H,A.index)));H=document.createElement("span");H.appendChild(t(A[0]));H.classList.add("mention");O.appendChild(H);
H=A.index+A[0].length}O.appendChild(t(N.substring(H)));return O},
createDocumentFragment:function(N){var t=document.createDocumentFragment();if(N.simpleText)return t.appendChild(this.createDocumentFragmentFromString(N.simpleText)),t;if(!N.runs)return t;for(var O=0;O<N.runs.length;O++){var H=N.runs[O];if(H.emoji)t.appendChild(_.cR.createEmoji(H.emoji));else if(H.text)if(H.navigationEndpoint){var A=document.createElement("a");A.classList.add("yt-simple-endpoint");FbM(A,H.navigationEndpoint);_.O6(A).appendChild(this.createDocumentFragmentFromString(H.text));t.appendChild(A)}else t.appendChild(this.createDocumentFragmentFromString(H.text))}return t},
hasModerationOverlayVisible:function(){var N;return((N=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:N.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(N){N.composedPath().some(function(t){return(t=t instanceof Element?t:null)?t.tagName&&(t.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||t.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.h("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(N)},
colorFromDecimal:function(N){return qZN(N)},
markAsDeleted:function(N,t){this.set("data.deletedStateMessage",N);this.set("data.showOriginalContentMessage",t)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(N){if(this.data.contextMenuEndpoint){var t=_.cY().resolve(_.u8),O=this.data.contextMenuEndpoint,H;(H=_.nE.instance)&&_.WH(H,O)?(t=G7E(t,O),H=_.cT(H,{},t)):H=_.R6_(t,O);H.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);N&&N.stopPropagation()}},
handleGetContextMenuResponse_:function(N){var t=_.nE.instance;t&&_.WH(t,{liveChatEndpoint:{}})||(N=N.response);N.liveChatItemContextMenuSupportedRenderers&&N.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(N.liveChatItemContextMenuSupportedRenderers.menuRenderer);N.actions&&_.sl(this.hostElement,"yt-live-chat-actions",[N.actions])},
handleGetContextMenuError:function(N){if(N instanceof Error||N instanceof Object||N instanceof String)var t=N;_.R0(new _.fF("Error encountered calling GetLiveChatItemContextMenu",t))},
showContextMenu_:function(N){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:N}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.or(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.or(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.$n.YtLiveChatItemBehavior=[vif,_.CD.YtComponentBehavior,_.fD.YtOpenPopupBehavior];_.jN=function(){};var JoY;var oi_;var scr;var N2Z;var iW=function(){var N=_.k.apply(this,arguments)||this;N.active=!1;N.identity=_.xx;return N};
_.p(iW,_.k);iW.prototype.dataChanged=function(){this.active=!1};
iW.prototype.onClick=function(){_.or(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
iW.prototype.dataChanged=iW.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],iW.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iW.prototype,"active",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iW.prototype,"dataChanged",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],iW);
_.n(iW,"yt-live-chat-text-input-field-suggestion",function(){if(N2Z===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;scr===void 0&&(scr=document.createElement("template"));var H=scr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);N2Z=N}N=N2Z;return N},{mode:0});_.uW=function(N,t,O){return CustomEvent.call(this,N,{detail:{value:t,path:O}})||this};
_.p(_.uW,CustomEvent);_.SN=function(){var N=_.k.apply(this,arguments)||this;N.viewerName=null;N.actionMap={"yt-live-chat-actions":"onChatMessage_"};N.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];N.PARTICIPANT_TIME_USEC_=3E8;return N};
_.p(_.SN,_.k);_.V=_.SN.prototype;_.V.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.V.addParticipant=function(N){var t=_.kM9(this.participants,N,function(H,A){H=H[Object.keys(H)[0]];A=A[Object.keys(A)[0]];H=String(_.Gv(H.authorName)).toLowerCase();A=String(_.Gv(A.authorName)).toLowerCase();return H<A?-1:H==A?0:1}.bind(this));
if(t>=0){var O=this.participants[t];O[Object.keys(O)[0]].timestampUsec&&this.splice("participants",t,1,N)}else this.splice("participants",-t-1,0,N);N=N[Object.keys(N)[0]];t=_.Gv(N.authorName).toLocaleLowerCase();O=t.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(O)||(this.allParticipantsCharMap_[O]={});this.allParticipantsCharMap_[O][t]=N};
_.V.getAuthorsFromPrefix=function(N){return this.allParticipantsCharMap_.hasOwnProperty(N)?this.allParticipantsCharMap_[N]:null};
_.V.computeViewerRegex_=function(N){if(!N)return null;N=N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var t=N.indexOf("@")===0&&_.h("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(t+N.replace(/ /g,"\\s*")+"|^"+N.replace(/ /g,"\\s*")+"$|^"+N.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+N.replace(/ /g,"\\s*")+"$|(?<=\\s)"+N.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.V.checkForStaleParticipants_=function(){var N=this;this.trimOldParticipants_();this.asyncHandle_&&dX9(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.nO(function(){N.checkForStaleParticipants_()},3E4))};
_.V.onChatMessage_=function(N){var t=this,O=Date.now()*1E3;N.forEach(function(H){if(H=_.M(H,kLQ)){H=H.item;var A=Object.keys(H)[0];t.SUPPORTED_ITEM_TYPES_.indexOf(A)!=-1&&H[A].timestampUsec>=O-t.PARTICIPANT_TIME_USEC_&&t.addParticipant(H)}},this);
this.checkForStaleParticipants_()};
_.V.trimOldParticipants_=function(){for(var N=Date.now()*1E3,t=this.participants.length-1;t>=0;t--){var O=this.participants[t];O=O[Object.keys(O)[0]];O.timestampUsec&&O.timestampUsec<N-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",t,1)}};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],_.SN.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],_.SN.prototype,"viewerName",void 0);_.W([_.X({computed:"computeViewerRegex_(viewerName)"}),_.Q("design:type",Object)],_.SN.prototype,"viewerRegex",void 0);_.W([_.X({value:function(){return[]},
notify:!0}),_.Q("design:type",Array)],_.SN.prototype,"participants",void 0);_.W([_.wz({is:"yt-live-chat-participants-manager",noInjection:!0})],_.SN);var txr=/.*([:@#].*?)$/,hi=/\u00a0/g,O4Q=String.fromCharCode(160),H4R={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"},M3=function(){var N=_.k.apply(this,arguments)||this;N.disabled=!1;N.liveChatRichMessageInput=null;N.messageInput=null;N.isValidWithNoInputText=!1;N.suggestions=[];N.emojiManager=_.cR;N.inputMethodEditorActive=
!1;N.suggestionIndex=-1;N.JSC$14383_lastSuggestionRange=null;return N};
_.p(M3,_.k);_.V=M3.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.V.attached=function(){_.D7&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.V.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.V.dataChanged=function(){if(!this.ignoreColorMapping){var N=!1,t={},O;for(O in H4R)this.data&&this.data.hasOwnProperty(O)&&(t[H4R[O]]=this.colorFromDecimal(this.data[O]),N=!0);N&&_.CO(this.hostElement,t)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.V.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.V.colorFromDecimal=function(N){N=Math.floor(Number(N));return"rgba("+[N>>16&255,N>>8&255,N&255,(N>>24&255)/255].join()+")"};
_.V.preventDrag=function(N){N.dataTransfer&&(N.dataTransfer.dropEffect="none");N.preventDefault()};
_.V.preventResize=function(N){N.returnValue=!1};
_.V.onInputChange=function(){var N=this.characterCount,t=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&t&&t.remove();if(!t&&this.characterCount>this.maxCharacterLimit){var O=window.getSelection();if(O){var H=O.getRangeAt(0);O.removeAllRanges();O.addRange(H)}}if(O=this.getCurrentRange())H=this.calculateTextBeforeRange(O),this.completeEmojisInRange(O,H,!0)||this.updateSuggestions(O,H);H=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(H);
_.or(this.hostElement,"yt-live-chat-message-input-change",H);t&&this.characterCount===0&&t.remove();O&&O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>N):O&&!O.collapsed&&O.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(N=this.input.childNodes.length-1;N>=0;N--)this.input.childNodes[N].nodeName==="BR"&&this.input.childNodes[N].remove()};
_.V.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.V.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var N=this.getCurrentRange();N&&N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.mergeOverflowText=function(N){if(N){var t=document.createRange();t.selectNodeContents(N);t=t.extractContents();this.input.insertBefore(t,N)}};
_.V.checkRangeAtEndOfInput=function(){var N=this.getCurrentRange();if(N){var t=_.O6(this.hostElement).querySelector("#overflow-text"),O=document.createRange();t&&t.previousSibling?t.previousSibling instanceof HTMLImageElement?O.selectNode(t.previousSibling):O.selectNodeContents(t.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?O.selectNode(this.input.lastChild):O.selectNodeContents(this.input.lastChild));O.collapse(!1);return O.isPointInRange(N.startContainer,
N.startOffset)}return!1};
_.V.handleOverflowText=function(N){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var t=_.O6(this.hostElement).querySelector("#overflow-text"),O=this.getCurrentRange();this.input.normalize();N=this.checkRangeAtEndOfInput()&&N;this.mergeOverflowText(t);for(var H,A=0,Z=0,U,C=this.input.childNodes,F=0;F<C.length;F++){var g=C[F];g instanceof Text?(Z+=g.textContent.length,Z>this.maxCharacterLimit&&(H=g,A=this.maxCharacterLimit+g.textContent.length-Z)):g instanceof HTMLImageElement&&
(H=void 0,Z=g.dataset.emojiId&&((H=this.data)==null?0:H.emojiCharacterCount)?Z+this.data.emojiCharacterCount:Z+g.alt.length,H=this.input,A=F);if(Z>this.maxCharacterLimit&&H){U=document.createRange();U.collapse(!1);t?(Z=this.input.lastChild.previousSibling,Z instanceof Text?U.setEnd(this.input.lastChild.previousSibling,Z.textContent.length):Z instanceof HTMLImageElement&&U.setEnd(this.input,this.input.childNodes.length-1)):U.selectNodeContents(this.input);U.setStart(H,A);break}}U&&(H=!1,O&&(N=U.isPointInRange(O.startContainer,
O.startOffset-1)),t||(t=document.createElement("span"),t.id="overflow-text",t.textContent="",t.setAttribute("contenteditable","true"),_.O6(_.O6(this.hostElement).querySelector("#input")).appendChild(t),H=!0),t&&(O=U.extractContents(),t.insertBefore(O,t.firstChild),N&&t.firstChild&&(O=document.createRange(),H?O.setStartAfter(t.lastChild):O.setStartAfter(t.firstChild),O.collapse(!0),t=window.getSelection(),t.removeAllRanges(),t.addRange(O))))}};
_.V.checkForDuplicateSpans=function(){for(var N=0;N<this.input.childNodes.length;N++){var t=this.input.childNodes[N];if(t.nodeName==="SPAN"){var O=document.createRange();O.selectNodeContents(t);O=O.extractContents();this.input.insertBefore(O,t);t.remove()}}this.handleOverflowText(!0)};
_.V.getCurrentRange=function(){var N=window.getSelection();return N&&N.rangeCount?N.getRangeAt(0).cloneRange():null};
_.V.getInputRange=function(){var N=this.getCurrentRange();if(N){for(var t=N.commonAncestorContainer,O=!1,H=_.O6(this.hostElement).querySelector("#input");t;){if(t===H){O=!0;break}t=t.parentNode}O||(N=null)}N||(N=this.getRangeAtEnd());return N};
_.V.getRangeAtEnd=function(){var N=document.createRange(),t=_.O6(this.hostElement).querySelector("#input").lastChild;!t||t.nodeName!=="#text"&&t.nodeName!=="SPAN"?(N.selectNodeContents(_.O6(this.hostElement).querySelector("#input")),N.collapse(!1)):t.nodeName==="#text"?N.setStart(t,t.textContent.length):N.setStart(t,t.childNodes.length);return N};
_.V.getChatParticipantSuggestions=function(N,t,O,H){var A=_.h("live_chat_enable_handles_web_text_input_update");if(t)for(var Z in t)if(Z.indexOf(N)===0||A&&Z.indexOf(O+N)===0){var U=t[Z],C=_.Gv(U.authorName);H.push({suggestion:{author:!0,authorType:O,image:U.authorPhoto,alt:C,text:C}});if(H.length>=64)break}};
_.V.getSuggestions=function(N){var t=[],O=N.substring(0,3),H=mvr(_.cR,O,!0);if(H)for(var A in H)if(A.toLocaleLowerCase().indexOf(N)===0){var Z=H[A];if(Z&&Z.emojiId){if(Z=QcS(_.cR,Z.emojiId)){var U=void 0,C=void 0,F=void 0,g=void 0,B=((U=Z.image)==null?0:(C=U.accessibility)==null?0:(F=C.accessibilityData)==null?0:F.label)||Z.isCustomEmoji?(g=Z.shortcuts)==null?void 0:g[0]:Z.emojiId;t.push({suggestion:{emoji:!0,image:Z.image,alt:B,text:A,textToInsertWhenSelected:Z.isCustomEmoji?A:B}})}if(t.length>=
64)break}}if(!this.participantsManager)return null;if(O.indexOf("@")===0||O.indexOf("#")===0)H=O.charAt(0),N=N.substring(1),A=_.h("live_chat_enable_handles_web_text_input_update"),O.indexOf("@")===0&&A&&(A=this.participantsManager.getAuthorsFromPrefix(O.substring(0,2)),this.getChatParticipantSuggestions(N,A,H,t)),O=O.substring(1),O=this.participantsManager.getAuthorsFromPrefix(O),this.getChatParticipantSuggestions(N,O,H,t);return t?t.sort(function(c,u){return u.suggestion.text<c.suggestion.text?-1:
u.suggestion.text===c.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(N){var t=_.h("live_chat_enable_handles_web_text_input_update"),O=N.authorType;t=N.text.indexOf(O)===0&&t?N.text+O4Q:O+N.text+O4Q;N.emoji?this.insertTextAtRange(this.JSC$14383_lastSuggestionRange,N.textToInsertWhenSelected||""):N.author&&this.insertTextAtRange(this.JSC$14383_lastSuggestionRange,t)};
_.V.updateSuggestionsAtCaret=function(){var N=this.getCurrentRange();N&&this.updateSuggestions(N,this.calculateTextBeforeRange(N))};
_.V.offsetStartOfRangeBy=function(N,t){for(;t>0;)if(N.startOffset-t>=0){N.setStart(N.startContainer,N.startOffset-t);break}else{t=N.startContainer instanceof HTMLImageElement?t-N.startContainer.alt.length:t-N.startOffset;var O=N.startContainer.previousSibling;if(!O){N.setStart(N.startContainer,0);break}if(_.h("live_chat_require_space_for_autocomplete_emoji")){var H=void 0,A=void 0;N.setStart(O,((H=O)==null?void 0:(A=H.textContent)==null?void 0:A.length)||0)}else N.setStart(O,O.childNodes.length||
0)}};
_.V.updateSuggestions=function(N,t){var O=this;this.JSC$14383_lastSuggestionRange&&(this.JSC$14383_lastSuggestionRange.detach(),this.JSC$14383_lastSuggestionRange=null);if((t=txr.exec(t))&&t.length&&(t=t[t.length-1].toLocaleLowerCase(),t.length>2&&(this.offsetStartOfRangeBy(N,t.length),this.JSC$14383_lastSuggestionRange=N,(N=this.getSuggestions(t))&&N.length))){this.suggestions=N;_.yB(this,function(){_.O6(O.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(N.length-1);return}this.dropdown.opened=!1};
_.V.completeEmojisInRange=function(N,t,O){var H=t.replace(/[\s\xa0]+$/,"");t=t.length-H.length;H=H.split(" ");H=H[H.length-1].trim().toLocaleLowerCase();var A=H.lastIndexOf(":");if(O&&!t&&A!==H.length-1)return!1;A!==-1&&(O=H.lastIndexOf(":",A-1),O!==-1&&(H=H.substring(O)));if((O=_.Z_(_.cR,H))&&O.emojiId){O=QcS(_.cR,O.emojiId)||null;this.offsetStartOfRangeBy(N,H.length+t);var Z,U,C,F;H=(((Z=O)==null?0:Z.isCustomEmoji)?(U=O)==null?void 0:(C=U.shortcuts)==null?void 0:C[0]:(F=O)==null?void 0:F.emojiId)||
"";t&&(H+=O4Q);this.insertTextAtRange(N,H);this.dropdown.opened=!1;return!0}return!1};
_.V.onSuggestion=function(N){this.insertSuggestion(N.detail);this.dropdown.opened=!1};
_.V.onKeyPress=function(N){N.keyCode===13&&(N.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.or(this.hostElement,"yt-live-chat-send-message"))};
_.V.completeEmojis=function(){var N=document.createRange(),t=_.O6(this.hostElement).querySelector("#input").lastChild;t?N.setStart(t,t.childNodes.length):(N.selectNodeContents(_.O6(this.hostElement).querySelector("#input")),N.collapse(!1));this.completeEmojisInRange(N,this.calculateTextBeforeRange(N),_.h("live_chat_require_space_for_autocomplete_emoji"))};
_.V.maybePreventTextFormatting=function(N){!_.FA||!N.ctrlKey&&!N.metaKey||N.keyCode!==66&&N.keyCode!==73||(N.stopImmediatePropagation(),N.preventDefault())};
_.V.onKeyDown=function(N){this.maybePreventTextFormatting(N);if(this.dropdown.opened)switch(N.keyCode){case 27:this.dropdown.opened=!1;N.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;N.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);N.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),N.preventDefault()}};
_.V.onKeyUp=function(N){switch(N.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.V_)this.onInputChange()};
_.V.changeSuggestionIndex=function(N){if(this.dropdown.opened){var t=_.O6(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<t.children.length&&(t.children[this.suggestionIndex].active=!1);var O=this.suggestions.length;this.suggestionIndex=(N+O)%O;N=t.children[this.suggestionIndex];N.active=!0;t.scrollTop=N.offsetTop}};
_.V.onInputPaste=function(N){N.preventDefault();(N=N.clipboardData)&&N.types&&(N=N.getData("text/plain")||"",N=N.replace(/\n/g,""),this.insertText(N));(N=this.getCurrentRange())&&N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.V.onFocus=function(){this._setFocused(!0)};
_.V.onBlur=function(){this._setFocused(!1)};
_.V.insertText=function(N){this.insertTextAtRange(this.getInputRange(),N)};
_.V.insertTextAtRange=function(N,t){if(N&&(N.collapsed||N.deleteContents(),t=_.cR.createDocumentFragment(t,!0,!1))){for(var O=_.D((t==null?void 0:t.childNodes)||[]),H=O.next();!H.done;H=O.next()){H=H.value;var A=void 0,Z=void 0,U=void 0,C=void 0,F=void 0;(U=(A=window)==null?void 0:(Z=A.ShadyCSS)==null?void 0:Z.ScopingShim)==null||(F=(C=U).scopeNode)==null||F.call(C,H,this.hostElement.localName)}O=t.lastChild;N.insertNode(t);this.focused||this.input.focus();if(this.focused){N=N.cloneRange();N.selectNodeContents(O);
N.collapse(!1);if(t=window.getSelection())t.removeAllRanges(),t.addRange(N);N.commonAncestorContainer.parentElement.id==="input"&&N.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}N=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(N);_.or(this.hostElement,"yt-live-chat-message-input-change",N)}};
_.V.setLiveChatRichMessageInput=function(N){_.O6(_.O6(this.hostElement).querySelector("#input")).textContent="";if(N&&N.textSegments){for(var t=0;t<N.textSegments.length;t++){var O=N.textSegments[t];O.text?_.O6(_.O6(this.hostElement).querySelector("#input")).appendChild(_.cR.createDocumentFragment(O.text,!0,!1)):O.emojiId&&(O=_.y3(_.cR,O.emojiId))&&_.O6(_.O6(this.hostElement).querySelector("#input")).appendChild(_.cR.createEmoji(O,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.V.setText=function(N){this.setLiveChatRichMessageInput(N?{textSegments:[{text:N}]}:null)};
_.V.calculateTextBeforeRange=function(N){var t="",O=N.startContainer;if(O&&O instanceof Text){var H;t=((H=O.textContent)==null?void 0:H.substring(0,N.startOffset))||"";O=O.previousSibling}for(;O&&O instanceof Text;)t=O.textContent+t,O=O.previousSibling;return t.replace(hi," ")};
_.V.calculateLiveChatRichMessageInput=function(){for(var N=[],t="",O=_.O6(_.O6(this.hostElement).querySelector("#input")).childNodes,H=0;H<O.length;H++){var A=O[H];A instanceof Text?t+=A.textContent:A instanceof HTMLImageElement&&(A.dataset.emojiId?(t&&(N.push({text:t.replace(hi," ")}),t=""),N.push({emojiId:A.dataset.emojiId})):t+=A.alt)}t&&N.push({text:t.replace(hi," ")});if(O=_.O6(this.hostElement).querySelector("#overflow-text")){t="";O=O.childNodes;for(H=0;H<O.length;H++)A=O[H],A instanceof Text?
t+=A.textContent:A instanceof HTMLImageElement&&(A.dataset.emojiId?(t&&(N.push({text:t.replace(hi," ")}),t=""),N.push({emojiId:A.dataset.emojiId})):t+=A.alt);t&&N.push({text:t.replace(hi," ")})}return{textSegments:N}};
_.V.computeCharacterCount=function(N){if(!N||!N.textSegments)return 0;for(var t=0,O=0;O<N.textSegments.length;O++){var H=N.textSegments[O];if(H.text)t+=H.text.length;else if(H.emojiId){var A=void 0;if((A=this.data)==null?0:A.emojiCharacterCount)t+=this.data.emojiCharacterCount;else{var Z=A=void 0,U=void 0;t+=((Z=_.y3(_.cR,(A=H)==null?void 0:A.emojiId))==null?void 0:(U=Z.shortcuts)==null?void 0:U[0].length)||0}}}return t};
_.V.characterCountChanged=function(){_.or(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.V.focusedChanged=function(){this.hostElement.dispatchEvent(new _.uW("focused-changed",this.focused))};
_.V.focus=function(){this.setFocus(!1)};
_.V.focusAtEnd=function(){this.setFocus(!0)};
_.V.setFocus=function(N){N=N?this.getRangeAtEnd():this.getInputRange();_.O6(this.hostElement).querySelector("#input").focus();var t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(N))};
_.V.insertEmoji=function(N){var t,O=((N==null?0:N.isCustomEmoji)?(t=N.shortcuts)==null?void 0:t[0]:N==null?void 0:N.emojiId)||"";this.insertText(O)};
_.V.computeText=function(N){if(!N||!N.textSegments)return"";for(var t="",O=0;O<N.textSegments.length;O++){var H=N.textSegments[O];if(H.text)t+=H.text;else if(H.emojiId){var A=void 0,Z=void 0,U=void 0;t+=((Z=_.y3(_.cR,(A=H)==null?void 0:A.emojiId))==null?void 0:(U=Z.shortcuts)==null?void 0:U[0])||""}}return t};
_.V.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.cv.Object.defineProperties(M3.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
M3.prototype.focusedChanged=M3.prototype.focusedChanged;M3.prototype.characterCountChanged=M3.prototype.characterCountChanged;M3.prototype.onSuggestion=M3.prototype.onSuggestion;M3.prototype.onMessageSet=M3.prototype.onMessageSet;M3.prototype.dataChanged=M3.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],M3.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],M3.prototype,"disabled",void 0);_.W([_.a("disabled"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],M3.prototype,"inputTabIndex",null);_.W([_.a("data.maxCharacterLimit"),_.X({readOnly:!0,notify:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],M3.prototype,"maxCharacterLimit",null);
_.W([_.a("liveChatRichMessageInput"),_.X({readOnly:!0,notify:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],M3.prototype,"characterCount",null);_.W([_.a("maxCharacterLimit, characterCount"),_.X({readOnly:!0,notify:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],M3.prototype,"remainingCharacterCount",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],M3.prototype,"isChatMessageInput",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],M3.prototype,"inputExpanded",void 0);_.W([_.X({readOnly:!0,notify:!0}),_.Q("design:type",Object)],M3.prototype,"liveChatRichMessageInput",void 0);_.W([_.X(),_.Q("design:type",Object)],M3.prototype,"messageInput",void 0);_.W([_.X(),_.Q("design:type",Boolean)],M3.prototype,"ignoreColorMapping",void 0);_.W([_.a("characterCount"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],M3.prototype,"hasText",null);
_.W([_.X(),_.Q("design:type",Object)],M3.prototype,"isValidWithNoInputText",void 0);_.W([_.a("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.X(),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],M3.prototype,"isInputValid",null);_.W([_.X({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],M3.prototype,"focused",void 0);_.W([_.X(),_.Q("design:type",Array)],M3.prototype,"suggestions",void 0);
_.W([_.X(),_.Q("design:type",_.gO)],M3.prototype,"emojiManager",void 0);_.W([_.X(),_.Q("design:type",_.SN)],M3.prototype,"participantsManager",void 0);_.W([_.X(),_.Q("design:type",Boolean)],M3.prototype,"noUnderline",void 0);_.W([_.X(),_.Q("design:type",Object)],M3.prototype,"inputMethodEditorActive",void 0);_.W([_.B2("#dropdown"),_.Q("design:type",Object)],M3.prototype,"dropdown",void 0);_.W([_.B2("#input"),_.Q("design:type",HTMLElement)],M3.prototype,"input",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M3.prototype,"dataChanged",null);_.W([_.gz("messageInput"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M3.prototype,"onMessageSet",null);_.W([_.dz("yt-live-chat-select-suggestion"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],M3.prototype,"onSuggestion",null);
_.W([_.gz("characterCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M3.prototype,"characterCountChanged",null);_.W([_.gz("focused"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M3.prototype,"focusedChanged",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],M3);
_.Ahr=_.n(M3,"yt-live-chat-text-input-field-renderer",function(){if(oi_===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;JoY===void 0&&(JoY=document.createElement("template"));var H=JoY;O.call(t,H.content.cloneNode(!0),N.content.firstChild);oi_=N}N=oi_;return N},{mode:0});var bW=function(){var N=_.k.apply(this,arguments)||this;N.buttonOverrides={style:"overlay",type:"filled"};N.allowAnimations=!1;N.modern=_.h("web_button_rework_with_live");N.noPadding=!1;return N};
_.p(bW,_.k);_.V=bW.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.V.ready=function(){var N=document.querySelector("yt-live-chat-app");N&&N.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.attached=function(){this.allowAnimations=!1};
_.V.dataChanged=function(){if(this.data){var N={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.CO(this.hostElement,N);this.allowAnimations=!0}};
_.V.messageChanged=function(){var N,t=(N=this.data)==null?void 0:N.message;N=_.O6(_.O6(this.hostElement).querySelector("#message"));N.textContent="";t&&N.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.V.computeShowOnlyHeader=function(N,t){return!N||N.pdgLikeButton||N.replyButton||N.buyFlowButton?!1:this.isEmpty(N,t)&&!N.footer};
_.V.computeShowFooterDivider=function(N,t,O){return N?!!N.footer&&!this.isEmpty(N,t)&&!O:!1};
_.V.computeIsUserEditable=function(N){return!!N.inputField};
_.V.computeHasHeartButton=function(N){return(N==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(N==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(N==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.V.computeNoveltyImage=function(N){if(N.headerOverlayImage&&N.headerOverlayImage.thumbnails.length){var t=N.headerOverlayImage.thumbnails[0],O,H;if((O=N.pdgPurchasedNoveltyLoggingDirectives)==null?0:(H=O.loggingDirectives)==null?0:H.trackingParams){var A,Z;dvz((A=N.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Z=A.loggingDirectives)==null?void 0:Z.trackingParams)}return t.width||0}return 0};
_.V.computeAuthorPhotoSize=function(N){return(N==null?0:N.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.V.inputFocus=function(){var N=_.O6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");N&&N.focus()};
_.V.inputInsertEmoji=function(N){var t=_.O6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");t&&t.insertEmoji(N)};
_.V.inputMessage=function(){var N=_.O6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),t;return N&&((t=this.data)==null?0:t.inputField)?(N.completeEmojis(),_.kV(N.liveChatRichMessageInput)):null};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.V.isEmpty=function(N,t){return N?N.empty||!(N.message||N.inputField||t):!0};
_.V.onLowerBuyButtonClick=function(){var N,t=_.M((N=this.data)==null?void 0:N.buyButton,_.g_);t&&t.trackingParams&&!nNx(t.command)&&(N=_.ib(t.trackingParams))&&(t=_.z8())&&_.IX(t,N)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.cv.Object.defineProperties(bW.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
bW.prototype.isDeletedChanged=bW.prototype.isDeletedChanged;bW.prototype.messageChanged=bW.prototype.messageChanged;bW.prototype.dataChanged=bW.prototype.dataChanged;_.W([_.Y(YmQ.YtPdgLiveChatItemBehavior),_.Q("design:type",Object)],bW.prototype,"ytPdgLiveChatItemBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],bW.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],bW.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bW.prototype,"data",void 0);_.W([_.X({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:KcO}),_.Q("design:type",Object)],bW.prototype,"engagementState",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Q("design:type",Boolean)],bW.prototype,"isUserEditable",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Q("design:type",Boolean)],bW.prototype,"hasHeartButton",void 0);_.W([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],bW.prototype,"showOnlyHeader",void 0);
_.W([_.X({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],bW.prototype,"showFooterDivider",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Object)],bW.prototype,"allowAnimations",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],bW.prototype,"dashboardMoneyFeed",void 0);_.W([_.X({computed:"computeNoveltyImage(data)"}),_.Q("design:type",Number)],bW.prototype,"noveltyWidth",void 0);
_.W([_.X({computed:"computeAuthorPhotoSize(data)"}),_.Q("design:type",Number)],bW.prototype,"authorPhotoSize",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bW.prototype,"modern",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bW.prototype,"noPadding",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bW.prototype,"dataChanged",null);
_.W([_.gz("data.message"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bW.prototype,"messageChanged",null);_.W([_.a("data","dashboardMoneyFeed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],bW.prototype,"hideLowerBumper",null);_.W([_.gz("isDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bW.prototype,"isDeletedChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],bW);
_.n(bW,"yt-live-chat-paid-message-renderer",function(){if(CTp===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;UvX===void 0&&(UvX=document.createElement("template"));var H=UvX;O.call(t,H.content.cloneNode(!0),N.content.firstChild);CTp=N}N=CTp;return N},{mode:0});var Z4_;var VxS;var pX=function(){var N=_.$q.apply(this,arguments)||this;N._noAccessors=!0;return N};
_.p(pX,_.$q);pX.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Ro("openPopupConfig")};
_.W([_.Y(_.fD.YtOpenPopupBehavior),_.Q("design:type",Object)],pX.prototype,"ytOpenPopupBehavior",void 0);_.W([_.jn()],pX);_.LX=[_.fD.YtOpenPopupBehavior,pX.prototype];var D$f;var Q7=[_.yE,d_a,_.wP,_.MNy,_.GI,_.XbB,_.CY,_.jc,_.Bi,_.IdX,_.rN];_.h("web_continuation_response_processing")&&Q7.push(_.PH);_.h("web_show_ep_endpoint_response_received")&&Q7.push(_.Th);var xbv=new _.dk("RESPONSE_RECEIVED_COMMANDS"),b4N=new _.dk("RESPONSE_RECEIVED_COMMANDS");var $$x="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),chg=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],B2v=["GET_UNSEEN_NOTIFICATION_COUNT"];var zz=function(){var N=_.$q.apply(this,arguments)||this;N._noAccessors=!0;N.serviceEndpointHandlers=[];return N};
_.p(zz,_.$q);zz.prototype.created=function(){var N=this;this.endpointHandlerActionMap={"yt-service-request":function(t,O,H,A){var Z;return yhg(N.hostElement,t,O,H,A,N.serviceEndpointHandlers,(Z=N.onEntitiesUpdated)==null?void 0:Z.bind(N))}}};
zz.prototype.attached=function(){_.Uh(_.VM.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
zz.prototype.detached=function(){_.C9(_.VM.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.W([_.jn()],zz);_.U$E=[zz.prototype];var CZB,KxE=function(){return CZB!==void 0?CZB:CZB=document.createElement("template")};
document.head.appendChild(KxE().content);var FxY;var d$Z=document.head,gBf=d$Z.appendChild,yhu;if(FxY===void 0){var B2r=document.createElement("template");_.L(B2r,"\x3c!--css-build:shady--\x3e");B2r.content.insertBefore(KxE().content.cloneNode(!0),B2r.content.firstChild);FxY=B2r}yhu=FxY;gBf.call(d$Z,yhu.content);var chu,$$X=function(){return chu!==void 0?chu:chu=document.createElement("template")};
document.head.appendChild($$X().content);var jYY;var i4E=document.head,uD_=i4E.appendChild,SgX;if(jYY===void 0){var hZf=document.createElement("template");_.L(hZf,"\x3c!--css-build:shady--\x3e");hZf.content.insertBefore($$X().content.cloneNode(!0),hZf.content.firstChild);jYY=hZf}SgX=jYY;uD_.call(i4E,SgX.content);var MxZ;_.pE("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.pE("sharingRendererButtons","buttonRenderer","ytd-button-renderer");MxZ=_.h("web_button_rework")&&_.vZ("BUTTON_REWORK")||_.h("web_button_rework_with_live");_.Yn=function(){var N=_.k.apply(this,arguments)||this;N.isPressed=!1;N.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return N};
_.p(_.Yn,_.k);_.V=_.Yn.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.onHintIdChanged=function(){var N=this,t,O,H=(t=this.ytButtonBehavior.data)==null?void 0:(O=t.hint)==null?void 0:O.hintRenderer;if(H&&H.hintId){t=_.Np(this.hostElement,"yt-get-opened-popups-action");t=(t&&t.length===1?t[0]:[]).length>0;var A=null;H.hintId!=="sponsor-pre-purchase"||t?H.hintId.startsWith("sponsor-post-purchase")&&!t?A=gP_("membership-manage"):H.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!t&&(A=gP_("membership-freebie-join")):A=gP_("membership-join");A&&_.GB.addLowPriorityJob(function(){for(var Z=
_.D(A),U=Z.next();!U.done;U=Z.next())N.ytComponentBehavior.resolveCommand(U.value)})}};
_.V.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.V.onYtNavigate=function(N){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(N.detail.endpoint);t&&(N.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(t))};
_.V.onYtServiceRequestSent=function(N,t){this.handleServiceRequestActions(t);_.or(this.hostElement,"yt-service-request-sent-button-renderer")};
_.V.onServiceRequestCompleted=function(N,t){this.handleServiceRequestActions(t);_.or(this.hostElement,"yt-service-request-completed-button-renderer")};
_.V.updateButton=function(N){var t;if(N=(t=_.M(N,H7r))==null?void 0:t.updatedButton)this.ytButtonBehavior.data=_.M(N,_.g_)};
_.V.handleUpdateButtonAction=function(N){var t=this.ytButtonBehavior.data;t.targetId&&N.updateButtonAction.targetId&&t.targetId===N.updateButtonAction.targetId&&this.updateButton(N)};
_.V.handleServiceRequestActions=function(N){if(N=N.actions)for(var t=0;t<N.length;t++)this.updateButton(N[t])};
_.cv.Object.defineProperties(_.Yn,{template:{configurable:!0,enumerable:!0,get:function(){if(D$f===void 0){var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);D$f=N}N=D$f;return N}}});
_.Yn.prototype.onServiceRequestCompleted=_.Yn.prototype.onServiceRequestCompleted;_.Yn.prototype.onYtServiceRequestSent=_.Yn.prototype.onYtServiceRequestSent;_.Yn.prototype.onYtNavigate=_.Yn.prototype.onYtNavigate;_.Yn.prototype.onPressedStateChanged=_.Yn.prototype.onPressedStateChanged;_.Yn.prototype.onHintIdChanged=_.Yn.prototype.onHintIdChanged;_.W([_.X(),_.Q("design:type",Object)],_.Yn.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],_.Yn.prototype,"isPressed",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],_.Yn.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.YUr.YtButtonBehavior),_.Q("design:type",Object)],_.Yn.prototype,"ytButtonBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],_.Yn.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],_.Yn.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(G6.YtRenderButtonBehavior),_.Q("design:type",Object)],_.Yn.prototype,"ytRenderButtonBehavior",void 0);_.W([_.gz("data.hint.hintRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],_.Yn.prototype,"onHintIdChanged",null);_.W([_.gz("isPressed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],_.Yn.prototype,"onPressedStateChanged",null);
_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],_.Yn.prototype,"onYtNavigate",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],_.Yn.prototype,"onYtServiceRequestSent",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],_.Yn.prototype,"onServiceRequestCompleted",null);_.W([_.en({is:"ytd-button-renderer",disableElementRegistration:MxZ})],_.Yn);var ag=function(){var N=_.k.apply(this,arguments)||this;N.modern=_.h("web_button_rework_with_live");N.buttonOverrides={style:"overlay",type:"filled"};return N};
_.p(ag,_.k);_.V=ag.prototype;_.V.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.V.ready=function(){var N=document.querySelector("yt-live-chat-app");N&&N.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.V.dataChanged=function(){if(this.data&&this.data.sticker){var N=_.s4(this.data.sticker.thumbnails,this.stickerWidth);N||_.T2t(N).thenCatch(function(){_.J_(new _.fF("Failed to load Super Sticker with url",N))})}};
_.V.computeAuthorPhotoSize=function(N){return(N==null?0:N.isV2Style)?32:40};
_.V.computeIsV2Style=function(N){return(N==null?0:N.isV2Style)?!0:!1};
_.V.onStickerLoaded=function(N){var t,O,H;(t=_.E3(N))==null||(O=t.parentNode)==null||(H=O.classList)==null||H.add("sticker-loaded")};
_.V.computeNoveltyImageWidth=function(N){var t,O;if(N==null?0:(t=N.headerOverlayImage)==null?0:(O=t.thumbnails)==null?0:O.length){t=N.headerOverlayImage.thumbnails[0];var H,A;if((H=N.pdgPurchasedNoveltyLoggingDirectives)==null?0:(A=H.loggingDirectives)==null?0:A.trackingParams){var Z,U;dvz((Z=N.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(U=Z.loggingDirectives)==null?void 0:U.trackingParams)}return t.width||0}return 0};
_.V.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.V.updateStickerStyles=function(){var N=this.data;N&&(N={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(N.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(N.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(N.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(N.authorNameTextColor)},
_.CO(this.hostElement,N))};
_.V.onBuyButtonClick=function(){var N,t=_.M((N=this.data)==null?void 0:N.buyButton,_.g_);t&&!nNx(t.command)&&this.ytRendererBehavior.logExplicitClick(t)};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.cv.Object.defineProperties(ag.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
ag.prototype.updateStickerStyles=ag.prototype.updateStickerStyles;ag.prototype.isDeletedChanged=ag.prototype.isDeletedChanged;ag.prototype.onStickerLoaded=ag.prototype.onStickerLoaded;ag.prototype.dataChanged=ag.prototype.dataChanged;_.W([_.Y(YmQ.YtPdgLiveChatItemBehavior),_.Q("design:type",Object)],ag.prototype,"ytPdgLiveChatItemBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ag.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],ag.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ag.prototype,"data",void 0);
_.W([_.X({computed:"computeAuthorPhotoSize(data)"}),_.Q("design:type",Number)],ag.prototype,"authorPhotoSize",void 0);_.W([_.X(),_.Q("design:type",Boolean)],ag.prototype,"isDeleted",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ag.prototype,"dashboardMoneyFeed",void 0);_.W([_.X({computed:"computeNoveltyImageWidth(data)"}),_.Q("design:type",Number)],ag.prototype,"noveltyWidth",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ag.prototype,"modern",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Q("design:type",Boolean)],ag.prototype,"isV2Style",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ag.prototype,"dataChanged",null);_.W([_.dz("yt-img-shadow-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ag.prototype,"onStickerLoaded",null);
_.W([_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],ag.prototype,"stickerWidth",null);_.W([_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],ag.prototype,"stickerHeight",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ag.prototype,"hasHeartButton",null);_.W([_.a("data","dashboardMoneyFeed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ag.prototype,"hideLowerBumper",null);
_.W([_.gz("isDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ag.prototype,"isDeletedChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ag.prototype,"updateStickerStyles",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],ag);
_.n(ag,"yt-live-chat-paid-sticker-renderer",function(){if(VxS===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;Z4_===void 0&&(Z4_=document.createElement("template"));var H=Z4_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);VxS=N}N=VxS;return N},{mode:0});var b4R;var pEQ;var Lxy,zZr=function(){return Lxy!==void 0?Lxy:Lxy=document.createElement("template")};
document.head.appendChild(zZr().content);var Ygr,aqX=function(){return Ygr!==void 0?Ygr:Ygr=document.createElement("template")};
document.head.appendChild(aqX().content);var T2f;var wEa,eZR=function(){return wEa!==void 0?wEa:wEa=document.createElement("template")};
document.head.appendChild(eZR().content);var PZB;var XES=document.head,x$0=XES.appendChild,k$S;if(PZB===void 0){var qgp=document.createElement("template");_.L(qgp,"\x3c!--css-build:shady--\x3e");qgp.content.insertBefore(eZR().content.cloneNode(!0),qgp.content.firstChild);PZB=qgp}k$S=PZB;x$0.call(XES,k$S.content);var fqp=document.head,nBQ=fqp.appendChild,WxB;if(T2f===void 0){var Tz=document.createElement("template");_.L(Tz,"\x3c!--css-build:shady--\x3e");Tz.content.insertBefore(aqX().content.cloneNode(!0),Tz.content.firstChild);Tz.content.insertBefore(zZr().content.cloneNode(!0),Tz.content.firstChild);T2f=Tz}WxB=T2f;nBQ.call(fqp,WxB.content);var wO=function(){var N=_.$q.apply(this,arguments)||this;N.focusedIndex=0;N.verticalOffset=0;N.verticalAlign="top";N.dynamicAlign=!0;return N};
_.p(wO,_.$q);wO.prototype.emojiUrl=function(N){N=_.y3(this.emojiManager,N);if(!N)return"";var t;N=(t=N.image)==null?void 0:t.thumbnails;return _.s4(N,24)||""};
var rha=function(N){var t;N.emojiVariants&&(t=N.data)!=null&&t.target&&_.yB(N,function(){N.set("verticalOffset",-1*N.hostElement.clientHeight);var O=_.O6(N.hostElement).querySelector("img");O&&O.focus()})};
_.V=wO.prototype;_.V.onKeyboardEnter=function(){};
_.V.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.V.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.V.onKeyDown=function(N){switch(N.keyCode){case 13:this.onKeyboardEnter();N.preventDefault();break;case 40:this.changeFocus(1);N.preventDefault();break;case 38:this.changeFocus(-1);N.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.V.onYtEmojiSelect=function(N){var t=this,O,H,A,Z,U,C,F,g;return _.K(function(B){if(B.nextAddress==1)return H=(O=t.data)==null?void 0:O.emoji,U=((A=H)==null?void 0:A.stickyPrefId)||((Z=H)==null?void 0:Z.emojiId),F=(C=N.detail)==null?void 0:C.emojiId,U&&F&&U!==F?B.yield((g=t.emojiManager)==null?void 0:Ei0(g,H,F),2):B.return();_.sl(t.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[H,F]);_.Ty(B)})};
_.V.changeFocus=function(N){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+N+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(N=_.O6(this.hostElement).querySelector("#variants"))&&N.children[this.focusedIndex].focus())};
_.cv.Object.defineProperties(wO.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
wO.prototype.onYtEmojiSelect=wO.prototype.onYtEmojiSelect;wO.prototype.onKeyDown=wO.prototype.onKeyDown;wO.prototype.onEmojiVariantsChanged=wO.prototype.onEmojiVariantsChanged;wO.prototype.onVerticalOffsetOrPositionTargetChanged=wO.prototype.onVerticalOffsetOrPositionTargetChanged;_.W([_.Y(_.g6),_.Q("design:type",Object)],wO.prototype,"ironOverlayBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wO.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",_.gO)],wO.prototype,"emojiManager",void 0);
_.W([_.X(),_.Q("design:type",Object)],wO.prototype,"emojiVariants",void 0);_.W([_.X(),_.Q("design:type",Object)],wO.prototype,"focusedIndex",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],wO.prototype,"positionTarget",null);_.W([_.X({reflectToAttribute:!0}),_.a("verticalOffset","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],wO.prototype,"isPositioned",null);_.W([_.X(),_.Q("design:type",Object)],wO.prototype,"verticalOffset",void 0);
_.W([_.X(),_.Q("design:type",Object)],wO.prototype,"verticalAlign",void 0);_.W([_.X(),_.Q("design:type",Object)],wO.prototype,"dynamicAlign",void 0);_.W([_.gz("verticalOffset","positionTarget"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wO.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.W([_.gz("emojiVariants"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wO.prototype,"onEmojiVariantsChanged",null);
_.W([_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],wO.prototype,"onKeyDown",null);_.W([_.dz("yt-emoji-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype",Promise)],wO.prototype,"onYtEmojiSelect",null);_.W([_.jn()],wO);var Iqr=[wO.prototype];var lqR;var QYa;var m$Z=/medium-light|medium-dark|light|medium|dark/,EBQ=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,G$r=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),eN=function(){var N=_.k.apply(this,arguments)||this;N.userSelection={left:null,right:null};N.scrollAction="lock";N.isEmojiDraftInProgress=!1;return N};
_.p(eN,_.k);_.V=eN.prototype;_.V.onClick=function(N){N=_.E3(N);N instanceof HTMLImageElement&&this.selectOrUpdateEmoji(N)};
_.V.selectOrUpdateEmoji=function(N){var t=N.getAttribute("selection");t&&(t==="default"?_.or(this.hostElement,"yt-emoji-select",_.y3(this.emojiManager,N.id)):t==="left"?this.userSelection=Object.assign({},this.userSelection,{left:N.src}):t==="right"?this.userSelection=Object.assign({},this.userSelection,{right:N.src}):t==="user"&&this.userSelection.left&&this.userSelection.right&&_.or(this.hostElement,"yt-emoji-select",_.y3(this.emojiManager,N.id)))};
_.V.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.V.onMultiSelectorThumbnailRowChanged=function(){var N,t,O;((N=this.data)==null?0:(t=N.emoji)==null?0:(O=t.multiSelectorThumbnailRow)==null?0:O.length)&&this.openSelector()};
_.V.getThumbnailFromEmojiRow=function(N){var t,O;return(N==null?void 0:(t=N.thumbnails)==null?void 0:(O=t[0])==null?void 0:O.url)||""};
_.V.getEmojiAltTextForPartialSelector=function(N){var t;return((t=this.getThumbnailFromEmojiRow(N).match(EBQ))==null?void 0:t[0])||""};
_.V.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.V.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.V.getRowSelection=function(N){return["left","right"][N]};
_.V.getIdFromComposedEmoji=function(N){return(N==null?void 0:N.emojiId)||""};
_.V.getEmojiFromPartialSelections=function(N,t){if(!N&&!t)return null;var O,H,A=(O=this.data)==null?void 0:(H=O.emoji)==null?void 0:H.variantIds;if(!A||!A.length)return null;var Z;N=(Z=N.match(m$Z))==null?void 0:Z[0];var U;t=(U=t.match(m$Z))==null?void 0:U[0];if(!N||!t)return null;var C=G$r.get(N);U=G$r.get(t);if(C===U){U=Array.from(G$r.values()).filter(function(g){return g!==C}).join("|");
var F=new RegExp("^((?!("+U+")).)*"+C+"$")}else F=new RegExp(C+".*"+U);return(A=A.find(function(g){return F.test(g)}))&&_.y3(this.emojiManager,A)||null};
_.V.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var N,t=this.ytEmojiSelectorBehavior.emojiUrl(((N=this.data.emoji)==null?void 0:N.emojiId)||"");_.O6(this.hostElement).querySelector('[selection="user"]').src.includes(t)||(this.isEmojiDraftInProgress=!0)}};
_.V.onDomChange=function(){rha(this.ytEmojiSelectorBehavior)};
_.V.getFocusableElements=function(){return _.O6(this.hostElement).querySelectorAll("img").filter(function(N){return N.getAttribute("role")==="option"})};
_.V.changeFocus=function(N){var t=this.getFocusableElements();t!=null&&t.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+N+t.length)%t.length,this.ytEmojiSelectorBehavior.focusedIndex<t.length&&(N=t[this.ytEmojiSelectorBehavior.focusedIndex])&&N.focus())};
_.V.onKeyboardEnter=function(){var N=this.getFocusableElements();N!=null&&N.length&&(N=N[this.ytEmojiSelectorBehavior.focusedIndex])&&N instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(N),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.cv.Object.defineProperties(eN.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var N=this,t,O,H;return this.emojiManager&&((t=this.data)==null?0:(O=t.emoji)==null?0:(H=O.variantIds)==null?0:H.length)?this.data.emoji.variantIds.map(function(A){return!!A&&_.y3(N.emojiManager,A)}).filter(function(A){return!!A}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var N,t=(N=this.userSelection)==null?void 0:N.left,O;N=(O=this.userSelection)==null?void 0:O.right;return t&&N?this.getEmojiFromPartialSelections(t,N):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.composedEmojiSelection)==null?0:N.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var t;N=(t=this.userSelection)==null?void 0:t.left;var O;t=(O=this.userSelection)==null?void 0:O.right;if(!N&&!t){var H;return this.ytEmojiSelectorBehavior.emojiUrl(((H=this.data.emoji)==null?void 0:H.emojiId)||"")}return N&&!t?N:!N&&t?t:""}}});
eN.prototype.onMultiSelectorThumbnailRowChanged=eN.prototype.onMultiSelectorThumbnailRowChanged;eN.prototype.onClick=eN.prototype.onClick;_.W([_.Y(_.g6),_.Q("design:type",Object)],eN.prototype,"ironOverlayBehavior",void 0);_.W([_.Y(Iqr),_.Q("design:type",Object)],eN.prototype,"ytEmojiSelectorBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],eN.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",_.gO)],eN.prototype,"emojiManager",void 0);
_.W([_.X(),_.Q("design:type",Object)],eN.prototype,"userSelection",void 0);_.W([_.X(),_.Q("design:type",Object)],eN.prototype,"scrollAction",void 0);_.W([_.X(),_.Q("design:type",Object)],eN.prototype,"isEmojiDraftInProgress",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],eN.prototype,"emojiVariants",null);_.W([_.a("data","userSelection"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],eN.prototype,"composedEmojiSelection",null);
_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[MouseEvent]),_.Q("design:returntype")],eN.prototype,"onClick",null);_.W([_.gz("data.emoji.multiSelectorThumbnailRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eN.prototype,"onMultiSelectorThumbnailRowChanged",null);_.W([_.a("data","userSelection","composedEmojiSelection"),_.Q("design:type",String),_.Q("design:paramtypes",[])],eN.prototype,"draftEmojiUrl",null);
_.W([_.wz({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],eN);
_.n(eN,"yt-emoji-multi-person-selector",function(){if(QYa===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;lqR===void 0&&(lqR=document.createElement("template"));var H=lqR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);QYa=N}N=QYa;return N},{mode:2});var RZB;var vBX;var PR=function(){var N=_.k.apply(this,arguments)||this;N.tooltip_=null;return N};
_.p(PR,_.k);_.V=PR.prototype;_.V.dataChanged_=function(){var N;if((N=this.data)==null?0:N.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.O6(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.U6)(this.tooltip_).textContent=this.data.tooltip};
_.V.computeTargetId=function(){var N;return((N=this.data)==null?void 0:N.targetId)||""};
_.V.computeId_=function(N){return N};
_.V.computeIcon_=function(N){return _.Vt(N)};
_.V.onTap_=function(){this.active=!this.active;_.or(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.V.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("active-changed",this.active))};
_.cv.Object.defineProperties(PR.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var N,t;if((N=this.data)==null?0:(t=N.icon)==null?0:t.iconType)return this.data.icon.iconType==="SUPER_STICKER";var O,H;return((O=this.data)==null?void 0:(H=O.icon)==null?void 0:H.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
PR.prototype.activeChangedForBinding=PR.prototype.activeChangedForBinding;PR.prototype.dataChanged_=PR.prototype.dataChanged_;_.W([_.Y(_.Uo.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],PR.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],PR.prototype,"data",void 0);_.W([_.X({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Q("design:type",String)],PR.prototype,"id",void 0);
_.W([_.X({computed:"computeTargetId(data.targetId)"}),_.Q("design:type",String)],PR.prototype,"targetId",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],PR.prototype,"active",void 0);_.W([_.X({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Q("design:type",String)],PR.prototype,"icon",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PR.prototype,"dataChanged_",null);
_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],PR.prototype,"iconFilled",null);_.W([_.gz("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PR.prototype,"activeChangedForBinding",null);_.W([_.wz({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],PR);
_.n(PR,"yt-emoji-picker-category-button-renderer",function(){if(vBX===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;RZB===void 0&&(RZB=document.createElement("template"));var H=RZB;O.call(t,H.content.cloneNode(!0),N.content.firstChild);vBX=N}N=vBX;return N},{mode:2});var Jhf;var oBf;var Xs=function(){var N=_.k.apply(this,arguments)||this;N.ariaLabel=null;N.ariaActivedescendant=null;N.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};N.JSC$14448_ignoreNextFocus_=!1;N.longPressTimeoutId=-1;return N};
_.p(Xs,_.k);_.V=Xs.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var N=_.gF(),t=0;t<this.emoji.length;t++){var O={veType:88013,elementIndex:t},H=this.emoji[t];H.isCustomEmoji&&(H=document.querySelector(("#"+H.emojiId).replace("/","\\/")))&&(O=_.dF(N,O))&&(H.visualElement=O)}};
_.V.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.V.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.V.emojiSkinToneChanged_=function(N){this.skinTone=N};
_.V.dataChanged=function(){this.data&&this.data.emojiData&&Iw_(this.emojiManager,this.data.emojiData)};
_.V.emojiUrl=function(N){N=this.getEmoji(N);if(!N)return"";var t;N=(t=N.image)==null?void 0:t.thumbnails;return _.s4(N,24)||""};
_.V.emojiAlt=function(N){var t=this.get("image.accessibility.accessibilityData.label",N);return t?t:N.isCustomEmoji?N.shortcuts[0]:N.emojiId};
_.V.emojiAriaLabel=function(N){return N.shortcuts?N.shortcuts[0]:""};
_.V.emojiAriaSelected=function(N,t,O){return N&&O==t?"true":"false"};
_.V.getEmoji=function(N){if(this.emojiManager)return this.shouldUseStickyPreferences?QcS(this.emojiManager,N):BR(this.emojiManager,N)};
_.V.computeId_=function(N){return N.categoryId||""};
_.V.computeEmoji=function(N){var t=this;return this.emojiManager?N.emojiIds?N.emojiIds.map(function(O){return O?_.y3(t.emojiManager,O):null}).filter(wE9):N.emojiData?N.emojiData.map(function(O){var H=!!O.emojiId&&_.y3(t.emojiManager,O.emojiId);
return H?Object.assign({},H,O):null}).filter(wE9):[]:[]};
_.V.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.V.computeAriaLabel_=function(N){return _.Gv(N)};
_.V.computeAriaActivedescendant_=function(N,t){return N&&N[t]?N[t].emojiId||"":""};
_.V.handleLongPressEmojiWithVariants=function(N,t){this.changeFocusToEmoji(N.emojiId,!1);this.openVariantSelector(N,t)};
_.V.onMouseDown=function(N){var t=this;this.hostElement!==document.activeElement&&(this.JSC$14448_ignoreNextFocus_=!0);if(N.button===0){var O=_.E3(N);if(O instanceof HTMLImageElement){var H=_.O6(this.hostElement).querySelector("#repeat").itemForElement(O);this.emojiContainsVariants(H)&&(this.longPressTimeoutId=setTimeout(function(){t.handleLongPressEmojiWithVariants(H,O)},500))}}};
_.V.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.V.onFocus=function(){this.JSC$14448_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14448_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.emojiContainsVariants=function(N){return!!(N&&N.variantIds&&N.variantIds.length)};
_.V.onClick=function(N){clearTimeout(this.longPressTimeoutId);N=_.E3(N);if(N instanceof HTMLImageElement){var t=N.id;this.changeFocusToEmoji(t,!1);var O=this.getEmoji(t),H;if(H=this.shouldUseStickyPreferences&&this.emojiContainsVariants(O)){var A;H=!((A=this.emojiManager.emojiMap[t])!=null&&A.stickyPrefId)}H?(A=_.O6(this.hostElement).querySelector("#repeat").itemForElement(N),this.openVariantSelector(A,N)):_.or(this.hostElement,"yt-emoji-select",O)}};
_.V.isActiveEmojiWithVariants=function(N,t){return N&&t?t.stickyPrefId?N===t.stickyPrefId:N===t.emojiId:!1};
_.V.onCloseEmojiVariantSelector=function(N){this.activeEmojiWithVariantsId===N&&(this.activeEmojiWithVariantsId="")};
_.V.onMouseOver_=function(N){N=_.E3(N);N instanceof HTMLImageElement&&_.or(this.hostElement,"yt-emoji-hover",_.y3(this.emojiManager,N.id))};
_.V.changeFocus_=function(N,t){this.focusedIndex=(this.focusedIndex+N+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(N=this.emoji[this.focusedIndex],t&&(this.showFocus=!0,_.O6(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.or(this.hostElement,"yt-emoji-hover",N)))};
_.V.changeFocusToEmoji=function(N,t){if(N){var O=this.emoji.findIndex(function(H){return H.emojiId===N});
O!==-1&&this.changeFocus_(O-this.focusedIndex,t)}};
_.V.onKeyDown_=function(N){switch(N.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var t=this.emoji[this.focusedIndex];if(t&&t.emojiId){if(this.emojiContainsVariants(t)){var O=_.O6(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(t,O)}else _.or(this.hostElement,"yt-emoji-select",BR(this.emojiManager,t.emojiId)),this.hostElement.focus();N.preventDefault()}}break;case 40:this.changeFocus_(1,!0);N.preventDefault();break;case 38:this.changeFocus_(-1,!0),
N.preventDefault()}};
_.V.onEmojiStickyPreferenceChanged=function(N,t){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&N.emojiId&&N.variantIds&&N.variantIds.includes(t)&&this.activeEmojiWithVariantsId!==t&&this.setStickyEmojiPreference(N.emojiId,t)};
_.V.openVariantSelector=function(N,t){this.activeEmojiWithVariantsId=N.stickyPrefId||N.emojiId||"";_.or(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:N,target:t})};
_.V.setStickyEmojiPreference=function(N,t){if(this.data){var O=this.emoji.findIndex(function(A){return A.emojiId===N});
if(O!==-1){var H=this.emoji[O];H.stickyPrefId=t;this.set("emoji."+O,Object.assign({},H));this.activeEmojiWithVariantsId=t}}};
Xs.prototype.onKeyDown_=Xs.prototype.onKeyDown_;Xs.prototype.onMouseOver_=Xs.prototype.onMouseOver_;Xs.prototype.onClick=Xs.prototype.onClick;Xs.prototype.onBlur_=Xs.prototype.onBlur_;Xs.prototype.onFocus=Xs.prototype.onFocus;Xs.prototype.onMouseUp=Xs.prototype.onMouseUp;Xs.prototype.onMouseDown=Xs.prototype.onMouseDown;Xs.prototype.dataChanged=Xs.prototype.dataChanged;Xs.prototype.disableIncrementalLoadingChanged_=Xs.prototype.disableIncrementalLoadingChanged_;Xs.prototype.emojiManagerChanged_=Xs.prototype.emojiManagerChanged_;
Xs.prototype.emojiChanged_=Xs.prototype.emojiChanged_;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Xs.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Xs.prototype,"data",void 0);_.W([_.X({computed:"computeId_(data)"}),_.Q("design:type",String)],Xs.prototype,"id",void 0);_.W([_.X({computed:"computeEmoji(data)"}),_.Q("design:type",Array)],Xs.prototype,"emoji",void 0);_.W([_.X(),_.Q("design:type",Number)],Xs.prototype,"skinTone",void 0);
_.W([_.X(),_.Q("design:type",_.gO)],Xs.prototype,"emojiManager",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Xs.prototype,"disableIncrementalLoading",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],Xs.prototype,"focusedIndex",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Xs.prototype,"showFocus",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Q("design:type",Object)],Xs.prototype,"ariaLabel",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Q("design:type",Object)],Xs.prototype,"ariaActivedescendant",void 0);_.W([_.X({value:60}),_.Q("design:type",Number)],Xs.prototype,"domRepeatTargetFramerate",void 0);_.W([_.X({value:1}),_.Q("design:type",Number)],Xs.prototype,"domRepeatInitialCount",void 0);_.W([_.X({value:""}),_.Q("design:type",String)],Xs.prototype,"activeEmojiWithVariantsId",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Xs.prototype,"shouldUseStickyPreferences",void 0);_.W([_.gz("emoji"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xs.prototype,"emojiChanged_",null);_.W([_.gz("emojiManager"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xs.prototype,"emojiManagerChanged_",null);
_.W([_.gz("disableIncrementalLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xs.prototype,"disableIncrementalLoadingChanged_",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xs.prototype,"dataChanged",null);_.W([_.dz("mousedown"),_.Q("design:type",Function),_.Q("design:paramtypes",[Object]),_.Q("design:returntype")],Xs.prototype,"onMouseDown",null);
_.W([_.dz("mouseup"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xs.prototype,"onMouseUp",null);_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xs.prototype,"onFocus",null);_.W([_.dz("blur"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xs.prototype,"onBlur_",null);
_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Xs.prototype,"onClick",null);_.W([_.dz("mouseover"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Xs.prototype,"onMouseOver_",null);_.W([_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Xs.prototype,"onKeyDown_",null);
_.W([_.wz({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Xs);
_.n(Xs,"yt-emoji-picker-category-renderer",function(){if(oBf===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Jhf===void 0&&(Jhf=document.createElement("template"));var H=Jhf;O.call(t,H.content.cloneNode(!0),N.content.firstChild);oBf=N}N=oBf;return N},{mode:2});var sYE;var NWB;var t1E;var OdY;var xn=function(){var N=_.k.apply(this,arguments)||this;N.ariaLabel=null;N.ariaActivedescendant=null;N.getFormattedStringRawText=_.Gv;N.JSC$14454_ignoreNextFocus_=!1;return N};
_.p(xn,_.k);_.V=xn.prototype;_.V.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.emojiUrl=function(N){var t,O;N=(t=BR(this.emojiManager,N,!0))==null?void 0:(O=t.image)==null?void 0:O.thumbnails;return _.s4(N,24)||""};
_.V.emojiAlt=function(N){var t=this.get("image.accessibility.accessibilityData.label",N);return t?t:N.isCustomEmoji?N.shortcuts[0]:N.emojiId};
_.V.emojiId=function(N){return"emoji"+N};
_.V.computeId_=function(N){return N.categoryId||""};
_.V.computeAriaActivedescendant_=function(N){return this.emoji&&N<this.emoji.length?this.emojiId(N):""};
_.V.emojiChanged_=function(){this.changeFocus_(0,!1);for(var N=_.gF(),t=0;t<this.emoji.length;t++){var O={veType:88013,elementIndex:t},H=this.emoji[t];H.isCustomEmoji&&(H=document.querySelector(("#"+H.emojiId).replace("/","\\/")))&&(O=_.dF(N,O))&&(H.visualElement=O)}};
_.V.computeEmoji_=function(N){var t=this;return this.emojiManager?N.emojiIds.map(function(O){return _.y3(t.emojiManager,O,!0)}).filter(eZN):[]};
_.V.titleOffsetChanged_=function(){var N=this.hostElement.getBoundingClientRect(),t=_.O6(this.hostElement).querySelector("#title").getBoundingClientRect();N=Math.max(0,Math.min(this.titleOffset,N.height-t.height));_.O6(this.hostElement).querySelector("#title").style.top=N+"px"};
_.V.onEmojiMouseOver_=function(N){_.or(this.hostElement,"yt-emoji-hover",N.model.item)};
_.V.onEmojiTap_=function(N){this.data.command&&(N=ujQ(_.cY().resolve(_.BY(Ay)),this.data.command,N),_.or(this.hostElement,"yt-navigate",N))};
_.V.emojiAriaLabel=function(N){return N.shortcuts[0]};
_.V.emojiAriaSelected=function(N,t,O){return N&&O==t?"true":"false"};
_.V.changeFocus_=function(N,t){var O=this.emoji.length;this.focusedIndex=(this.focusedIndex+N+O)%O;N=this.emoji[this.focusedIndex];if(t){var H;(H=_.O6(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||H.scrollIntoView(!1);_.or(this.hostElement,"yt-emoji-hover",N)}};
_.V.onMouseDown_=function(){this.JSC$14454_ignoreNextFocus_=!0};
_.V.onFocus_=function(){this.JSC$14454_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14454_ignoreNextFocus_=!1};
_.V.onBlur_=function(){this.showFocus=!1};
_.V.onKeyDown_=function(N){switch(N.keyCode){case 13:this.onEmojiTap_(N);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);N.preventDefault();break;case 38:this.changeFocus_(-1,!0),N.preventDefault()}};
xn.prototype.onKeyDown_=xn.prototype.onKeyDown_;xn.prototype.onBlur_=xn.prototype.onBlur_;xn.prototype.onFocus_=xn.prototype.onFocus_;xn.prototype.onMouseDown_=xn.prototype.onMouseDown_;xn.prototype.onEmojiTap_=xn.prototype.onEmojiTap_;xn.prototype.titleOffsetChanged_=xn.prototype.titleOffsetChanged_;xn.prototype.emojiChanged_=xn.prototype.emojiChanged_;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],xn.prototype,"ytComponentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],xn.prototype,"data",void 0);_.W([_.X({computed:"computeId_(data)"}),_.Q("design:type",String)],xn.prototype,"id",void 0);_.W([_.X({computed:"computeEmoji_(data)"}),_.Q("design:type",Array)],xn.prototype,"emoji",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],xn.prototype,"titleOffset",void 0);_.W([_.X({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Q("design:type",Object)],xn.prototype,"ariaLabel",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Q("design:type",Object)],xn.prototype,"ariaActivedescendant",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],xn.prototype,"showFocus",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],xn.prototype,"focusedIndex",void 0);_.W([_.X(),_.Q("design:type",_.gO)],xn.prototype,"emojiManager",void 0);
_.W([_.gz("emoji"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xn.prototype,"emojiChanged_",null);_.W([_.gz("titleOffset"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xn.prototype,"titleOffsetChanged_",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],xn.prototype,"onEmojiTap_",null);
_.W([_.dz("mousedown"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xn.prototype,"onMouseDown_",null);_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xn.prototype,"onFocus_",null);_.W([_.dz("blur"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xn.prototype,"onBlur_",null);
_.W([_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],xn.prototype,"onKeyDown_",null);_.W([_.wz({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],xn);
_.n(xn,"yt-emoji-picker-upsell-category-renderer",function(){if(OdY===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;t1E===void 0&&(t1E=document.createElement("template"));var H=t1E;O.call(t,H.content.cloneNode(!0),N.content.firstChild);OdY=N}N=OdY;return N},{mode:2});var Hd_;var AS_;var kn=function(){var N=_.k.apply(this,arguments)||this;N.scrollAction="lock";N.verticalAlign="top";return N};
_.p(kn,_.k);_.V=kn.prototype;_.V.onClick=function(N){N=_.E3(N);N instanceof HTMLImageElement&&_.or(this.hostElement,"yt-emoji-select",_.y3(this.emojiManager,N.id))};
_.V.openSelector=function(){this.ironOverlayBehavior.open()};
_.V.onDomChange=function(){rha(this.ytEmojiSelectorBehavior)};
_.V.computeIsFamilySelector=function(N){var t;return(N==null?void 0:(t=N.emoji)==null?void 0:t.emojiId)==="\ud83d\udc6a"};
_.V.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var N=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];N&&N.emojiId&&(_.or(this.hostElement,"yt-emoji-select",_.y3(this.emojiManager,N.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.cv.Object.defineProperties(kn.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var N=this,t,O,H;return this.emojiManager&&((t=this.data)==null?0:(O=t.emoji)==null?0:(H=O.variantIds)==null?0:H.length)?this.data.emoji.variantIds.map(function(A){return!!A&&_.y3(N.emojiManager,A)}).filter(function(A){return!!A}):[]}}});
kn.prototype.onClick=kn.prototype.onClick;_.W([_.Y(_.g6),_.Q("design:type",Object)],kn.prototype,"ironOverlayBehavior",void 0);_.W([_.Y(Iqr),_.Q("design:type",Object)],kn.prototype,"ytEmojiSelectorBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],kn.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",_.gO)],kn.prototype,"emojiManager",void 0);_.W([_.X(),_.Q("design:type",Object)],kn.prototype,"scrollAction",void 0);_.W([_.X(),_.Q("design:type",Object)],kn.prototype,"verticalAlign",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Q("design:type",Boolean)],kn.prototype,"isFamilySelector",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kn.prototype,"emojiVariants",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[MouseEvent]),_.Q("design:returntype")],kn.prototype,"onClick",null);_.W([_.wz({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],kn);
_.n(kn,"yt-emoji-variant-selector",function(){if(AS_===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;Hd_===void 0&&(Hd_=document.createElement("template"));var H=Hd_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);AS_=N}N=AS_;return N},{mode:2});var Zdf=/:/g,V1E=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],q3=function(){var N=_.k.apply(this,arguments)||this;N.emojiVariantSelector=null;N.emojiMultiPersonSelector=null;N.identity=_.xx;N.lastAnimationTime_=0;N.animationStart_=null;N.animationEnd_=null;return N};
_.p(q3,_.k);_.V=q3.prototype;
_.V.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.V.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.cR)};
_.V.attached=function(){_.V_&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&lw0(this.emojiManager)};
_.V.dataChanged=function(){var N;if((N=this.data)==null?0:N.categories){N=this.emojiManager;var t=this.getCustomEmojiIds();N.pickerCustomEmojiIds=[].concat(_.W6(qYZ),_.W6(t))}};
_.V.getCustomEmojiIds=function(){var N,t=(N=this.data.categories)==null?void 0:N.find(function(Z){var U;return((U=Z.emojiPickerCategoryRenderer)==null?void 0:U.categoryId)&&V1E.includes(Z.emojiPickerCategoryRenderer.categoryId)}),O;
N=(O=this.data.categories)==null?void 0:O.find(function(Z){return Z.emojiPickerUpsellCategoryRenderer});
var H,A;return[t==null?void 0:(H=t.emojiPickerCategoryRenderer)==null?void 0:H.emojiIds,N==null?void 0:(A=N.emojiPickerUpsellCategoryRenderer)==null?void 0:A.emojiIds].flat().filter(function(Z){return!!Z})};
_.V.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.V.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.V.updateCategoriesAndPlaceholderInternal=function(N,t){var O=this;N&&t&&(this.categories=N.categories||[],this.categoryButtons=N.categoryButtons||[],this.resetPlaceholder(),this.search="",_.nO(function(){O.updateButtons_()}))};
_.V.computeId_=function(N){return N.id||""};
_.V.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(N){return N.emojiPickerCategoryRenderer&&N.emojiPickerCategoryRenderer.emojiData}):!1};
_.V.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.V.onShowEmojiVariantSelector=function(N){var t=N.detail.emojiData;t.variantIds&&t.variantIds.length&&(t.multiSelectorThumbnailRow&&t.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:t,target:N.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:t,target:N.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onIronOverlayClosed=function(N){var t=QcS(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");t&&N.composedPath&&(N.composedPath().includes(_.O6(this.hostElement).querySelector("#emoji-variant-selector"))||N.composedPath().includes(_.O6(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.sl(this.hostElement,"yt-close-emoji-variant-selector",[t.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.V.onEmojiVariantSelectorMouseup=function(N){var t=N.target.firstChild;this.variantSelectorOpened&&t&&_.nO(function(){t.noCancelOnOutsideClick=!1},100)};
_.V.onEmojiVariantSelectorMousedown=function(N){N=N.target.firstChild;this.variantSelectorOpened&&N&&(N.noCancelOnOutsideClick=!1)};
_.V.onSelectCategory_=function(N){var t=this.search!="";this.search="";for(var O=_.O6(this.hostElement).querySelector("#categories").children,H=0;H<O.length;H++){var A=O[H];if(A.id==N.detail.categoryId){t?(_.O6(this.hostElement).querySelector("#categories").scrollTop=A.offsetTop,this.updateButtons_()):(this.animationStart_=_.O6(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=A.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.V.onEmojiHover_=function(N){this.placeholder=N.detail.shortcuts?N.detail.shortcuts[0]:""};
_.V.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.V.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.V.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.V.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.V.computeSearchCategory_=function(N){N=N.replace(Zdf,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();N=N.split(" ");for(var t=[],O=this.emojiManager.emojis,H=0;H<O.length;H++){var A=O[H];if(A.searchTerms)for(var Z=0;Z<A.searchTerms.length;Z++){for(var U=A.searchTerms[Z].toLocaleLowerCase(),C=!1,F=0;F<N.length;F++)if(U.indexOf(N[F])!=-1){C=!0;break}if(C&&(!A.isCustomEmoji||!A.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(A.emojiId))){t.push(A.emojiId);
break}}}return{categoryId:-1,emojiIds:t}};
_.V.computeSearchEmptyMessage_=function(N,t){return N&&t&&t.emojiIds&&t.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.V.computeSearching_=function(N){return this.emojiManager&&N.replace(Zdf,"").length>1};
_.V.computeSkinToneHidden=function(){var N;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((N=this.data)==null||!N.hideSkinTonePicker)};
_.V.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.V.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.V.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.V.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.V.selectSkinTone_=function(N){N=Number(N.target.getAttribute("tone"));this.set("emojiManager.skinTone",N);_.sl(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[N]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.V.skinToneChanged_=function(){_.O6(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var N=_.O6(this.hostElement).querySelector("#dropdown-content").children,t=0;t<N.length;t++)t===this.skinTone?N[t].setAttribute("selected",""):N[t].removeAttribute("selected")};
_.V.animateScroll_=function(N){this.lastAnimationTime_||(this.lastAnimationTime_=N);N-=this.lastAnimationTime_;N<200?(_.O6(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*N/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.O6(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.V.searchChanged_=function(){this.updateButtons_()};
_.V.updateButtons_=function(){var N=null;if(!this.search)for(var t=_.O6(this.hostElement).querySelector("#categories").scrollTop,O=_.O6(this.hostElement).querySelector("#categories").children,H=0;H<O.length;H++){var A=O[H];A.offsetTop<=t&&(N=A.id)}t=_.O6(this.hostElement).querySelector("#category-buttons").children;for(O=0;O<t.length;O++)H=t[O],H.active=H.id===N};
q3.prototype.searchChanged_=q3.prototype.searchChanged_;q3.prototype.skinToneChanged_=q3.prototype.skinToneChanged_;q3.prototype.onEmojiHover_=q3.prototype.onEmojiHover_;q3.prototype.onSelectCategory_=q3.prototype.onSelectCategory_;q3.prototype.onShowEmojiVariantSelector=q3.prototype.onShowEmojiVariantSelector;q3.prototype.updateCategoriesAndPlaceholder_=q3.prototype.updateCategoriesAndPlaceholder_;q3.prototype.dataChanged=q3.prototype.dataChanged;
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],q3.prototype,"data",void 0);_.W([_.X({value:function(){return[]}}),
_.Q("design:type",Array)],q3.prototype,"categories",void 0);_.W([_.X({value:function(){return[]}}),
_.Q("design:type",Array)],q3.prototype,"categoryButtons",void 0);_.W([_.X({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],q3.prototype,"disableScroll",void 0);_.W([_.X({computed:"computeId_(data)",reflectToAttribute:!0}),_.Q("design:type",String)],q3.prototype,"id",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],q3.prototype,"selected",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],q3.prototype,"disableIncrementalLoading",void 0);_.W([_.X(),_.Q("design:type",String)],q3.prototype,"placeholder",void 0);_.W([_.X({value:""}),_.Q("design:type",String)],q3.prototype,"search",void 0);_.W([_.X({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],q3.prototype,"searching",void 0);_.W([_.X({computed:"computeSearchCategory_(search)"}),_.Q("design:type",Object)],q3.prototype,"searchCategory",void 0);
_.W([_.X({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Q("design:type",Object)],q3.prototype,"searchEmptyMessage",void 0);_.W([_.X({computed:"identity(emojiManager.skinTone)"}),_.Q("design:type",Number)],q3.prototype,"skinTone",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],q3.prototype,"skinToneOpened",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],q3.prototype,"variantSelectorOpened",void 0);
_.W([_.X({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Q("design:type",Boolean)],q3.prototype,"skinToneHidden",void 0);_.W([_.X(),_.Q("design:type",_.gO)],q3.prototype,"emojiManager",void 0);_.W([_.X(),_.Q("design:type",Object)],q3.prototype,"emojiVariantSelector",void 0);_.W([_.X(),_.Q("design:type",Object)],q3.prototype,"emojiMultiPersonSelector",void 0);
_.W([_.X({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Q("design:type",Boolean)],q3.prototype,"shouldUseStickyPreferences",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q3.prototype,"dataChanged",null);_.W([_.gz("data","selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q3.prototype,"updateCategoriesAndPlaceholder_",null);
_.W([_.dz("yt-show-emoji-variant-selector"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],q3.prototype,"onShowEmojiVariantSelector",null);_.W([_.dz("yt-emoji-picker-select-category"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],q3.prototype,"onSelectCategory_",null);_.W([_.dz("yt-emoji-hover"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],q3.prototype,"onEmojiHover_",null);
_.W([_.gz("skinTone"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q3.prototype,"skinToneChanged_",null);_.W([_.gz("search"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q3.prototype,"searchChanged_",null);_.W([_.wz({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],q3);
_.n(q3,"yt-emoji-picker-renderer",function(){if(NWB===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;sYE===void 0&&(sYE=document.createElement("template"));var H=sYE;O.call(t,H.content.cloneNode(!0),N.content.firstChild);NWB=N}N=NWB;return N},{mode:2});var fX=function(){var N=_.k.apply(this,arguments)||this;N.emojiManager=_.cR;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.selectedIndex=1;N.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return N};
_.p(fX,_.k);_.V=fX.prototype;_.V.handleEmojiCustomizationVisible=function(N){this.emojiPickerRenderer.selected=N;this.selectedIndex=1;N?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.V.emojiCustomizationSetChanged=function(){var N;(N=this.data)!=null&&N.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.v4(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.V.updateSaveButtonState=function(N){var t;(t=this.data)!=null&&t.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.uF("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:N}))};
_.V.emojiUrl=function(N){N=_.y3(this.emojiManager,N);if(!N)return"";var t;N=(t=N.image)==null?void 0:t.thumbnails;return _.s4(N,24)||""};
_.V.emojiAlt=function(N){var t=_.y3(this.emojiManager,N);if(!t)return N;var O,H,A,Z=(t==null?void 0:(O=t.image)==null?void 0:(H=O.accessibility)==null?void 0:(A=H.accessibilityData)==null?void 0:A.label)||"";return Z?Z:t.isCustomEmoji?t.shortcuts[0]:t.emojiId||N};
_.V.emojiAriaLabel=function(N){var t,O;return((t=_.y3(this.emojiManager,N))==null?void 0:(O=t.shortcuts)==null?void 0:O[0])||N};
_.V.onEmojiClick=function(N){N.model.index!==0&&(this.selectedIndex=N.model.index)};
_.V.onEmojiSelect=function(N){N=N.detail;var t,O;((t=this.data)==null?0:t.emojiCustomizationSetEntityKey)&&((O=this.emojiCustomizationSet)==null?0:O.emojiId)&&N.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,N.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.uF("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,N.emojiId,this.selectedIndex)}))};
_.V.canEditEmoji=function(N,t,O){N=N.indexOf(t);return N===O||N===0||O===0?!1:!0};
_.V.getUpdatedEmojiIdList=function(N,t,O){var H=N.indexOf(t);N=[].concat(_.W6(N));H>=0&&(N[H]=N[O]);N[O]=t;return N};
_.cv.Object.defineProperties(fX,{template:{configurable:!0,enumerable:!0,get:function(){if(pEQ===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;b4R===void 0&&(b4R=document.createElement("template"));var H=b4R;O.call(t,H.content.cloneNode(!0),N.content.firstChild);pEQ=N}N=pEQ;return N}}});
fX.prototype.onEmojiSelect=fX.prototype.onEmojiSelect;_.W([_.Y(_.DT),_.Q("design:type",Object)],fX.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],fX.prototype,"ytActionHandlerBehavior",void 0);_.W([_.B2("yt-emoji-picker-renderer"),_.Q("design:type",Object)],fX.prototype,"emojiPickerRenderer",void 0);
_.W([_.X({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(N,t){return _.CM(N.entities,"emojiCustomizationSetEntity",t)},
observer:"emojiCustomizationSetChanged"}),_.Q("design:type",Object)],fX.prototype,"emojiCustomizationSet",void 0);_.W([_.X(),_.Q("design:type",Object)],fX.prototype,"originalEmojiSet",void 0);_.W([_.X(),_.Q("design:type",_.gO)],fX.prototype,"emojiManager",void 0);_.W([_.X(),_.Q("design:type",Object)],fX.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],fX.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",Object)],fX.prototype,"selectedIndex",void 0);
_.W([_.dz("yt-emoji-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fX.prototype,"onEmojiSelect",null);_.W([_.wz({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],fX);var Dk0;var Ukf;var CgR;var Kku;var nX=function(){var N=_.k.apply(this,arguments)||this;N.authorBadges=[];return N};
_.p(nX,_.k);_.V=nX.prototype;_.V.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.V.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.V.dataChanged=function(){var N=H5Q(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",N)};
_.V.updateMessage=function(){var N=this.data.message,t=_.O6(_.O6(this.hostElement).querySelector("#message"));t.textContent="";N&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(N))};
_.V.shouldSupportWholeItemClick=function(){return!0};
_.V.onShowOriginalClick=function(N){N.preventDefault();this.showOriginal=!0};
_.V.computeShowBar=function(N,t,O){return N&&t||O};
_.V.computeAuthorBadges=function(N){return N.authorBadges||[]};
_.V.computeAuthorIsOwner=function(N){return!!A0v(N.authorBadges,"owner")};
_.V.computeAuthorNameColor=function(N){var t;if(_.h("live_chat_author_name_color_usernames")&&(N==null?0:(t=N.authorName)==null?0:t.simpleText))return _.Kyt(_.FyO(N.authorName.simpleText));if(_.h("live_chat_seed_color_usernames")&&(N==null?0:N.authorSeedColorArgb))return _.Kyt(_.Ad(N.authorSeedColorArgb));if(_.h("live_chat_colored_usernames"))return"#cc0000";var O;return _.h("live_chat_simple_color_usernames")&&(N==null?0:(O=N.authorName)==null?0:O.simpleText)&&(N==null?0:N.authorUsernameColorLight)&&
(N==null?0:N.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Ad(N.authorUsernameColorDark):_.Ad(N.authorUsernameColorLight):""};
nX.prototype.updateMessage=nX.prototype.updateMessage;nX.prototype.dataChanged=nX.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],nX.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nX.prototype,"data",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],nX.prototype,"showOriginal",void 0);_.W([_.X({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],nX.prototype,"isDimmed",void 0);_.W([_.X({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],nX.prototype,"showBar",void 0);
_.W([_.X({computed:"computeAuthorBadges(data)"}),_.Q("design:type",Array)],nX.prototype,"authorBadges",void 0);_.W([_.X({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],nX.prototype,"authorIsOwner",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],nX.prototype,"inCollapsedBanner",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],nX.prototype,"inBanner",void 0);
_.W([_.X({value:_.h("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Q("design:type",Boolean)],nX.prototype,"avatarHidden",void 0);_.W([_.X({computed:"computeAuthorNameColor(data)"}),_.Q("design:type",String)],nX.prototype,"authorNameColor",void 0);_.W([_.X(),_.Q("design:type",_.SN)],nX.prototype,"participantsManager",void 0);_.W([_.X({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Q("design:type",Object)],nX.prototype,"filledButtonOverrides",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nX.prototype,"dataChanged",null);_.W([_.gz("data.message"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nX.prototype,"updateMessage",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],nX);
_.n(nX,"yt-live-chat-text-message-renderer",function(){if(Kku===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;CgR===void 0&&(CgR=document.createElement("template"));var H=CgR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Kku=N}N=Kku;return N},{mode:0});var WR=function(){var N=_.k.apply(this,arguments)||this;N.tonalButtonOverrides={type:"tonal",style:"overlay"};return N};
_.p(WR,_.k);
WR.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]]"}}}}}};
WR.prototype.shouldSupportInlineActionButtons=function(){return!0};
WR.prototype.shouldSupportWholeItemClick=function(){return!0};
_.cv.Object.defineProperties(WR.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],WR.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],WR.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",_.SN)],WR.prototype,"participantsManager",void 0);
_.W([_.X(),_.Q("design:type",Object)],WR.prototype,"tonalButtonOverrides",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.infoDialogButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WR.prototype,"hasInfoDialogButton",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],WR);
_.n(WR,"yt-live-chat-auto-mod-message-renderer",function(){if(Ukf===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Dk0===void 0&&(Dk0=document.createElement("template"));var H=Dk0;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Ukf=N}N=Ukf;return N},{mode:0});var Fkr;var dkR;var gZf;var ySB=function(){return _.k.apply(this,arguments)||this};
_.p(ySB,_.k);_.W([_.X(),_.Q("design:type",Object)],ySB.prototype,"data",void 0);_.W([_.en({is:"ytd-factoid-renderer",disableElementRegistration:!0})],ySB);
_.n(ySB,"ytd-factoid-renderer",function(){if(gZf!==void 0)return gZf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return gZf=N},{mode:1});var rO=function(){return _.k.apply(this,arguments)||this};
_.p(rO,_.k);rO.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.W([_.X(),_.Q("design:type",Object)],rO.prototype,"data",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],rO);
_.n(rO,"yt-live-chat-channel-activity-reputation-renderer",function(){if(dkR===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Fkr===void 0&&(Fkr=document.createElement("template"));var H=Fkr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);dkR=N}N=dkR;return N},{mode:0});var BWr;var cSX;var Ig=function(){return _.k.apply(this,arguments)||this};
_.p(Ig,_.k);Ig.prototype.ready=function(){var N=document.querySelector("yt-live-chat-app");N&&N.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Ig.prototype,"menuFocused",void 0);_.W([_.X(),_.Q("design:type",Object)],Ig.prototype,"data",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],Ig.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Ig);
_.n(Ig,"yt-live-chat-donation-announcement-renderer",function(){if(cSX===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;BWr===void 0&&(BWr=document.createElement("template"));var H=BWr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);cSX=N}N=cSX;return N},{mode:0});var $kS;var jKY,idR=function(){if(jKY!==void 0)return jKY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;$kS===void 0&&($kS=document.createElement("template"));var H=$kS;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return jKY=N};var lW=function(){return _.k.apply(this,arguments)||this};
_.p(lW,_.k);_.cv.Object.defineProperties(lW,{template:{configurable:!0,enumerable:!0,get:function(){return idR()}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lW.prototype,"data",void 0);_.W([_.wz({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],lW);_.n(lW,"yt-live-chat-empty-feed-view-model",function(){return idR()},{mode:0});var utX;var SjE;var Q3=function(){return _.k.apply(this,arguments)||this};
_.p(Q3,_.k);Q3.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"}}}}}};
_.cv.Object.defineProperties(Q3.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var N,t;return{runs:[{text:(N=this.data)==null?void 0:(t=N.channelName)==null?void 0:t.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var N=[],t;if((t=this.data)==null||!t.channelBadges)return N;var O;t=_.D((O=this.data)==null?void 0:O.channelBadges);for(O=t.next();!O.done;O=t.next()){O=_.M(O.value,$c_);var H=void 0,A=void 0;if((H=O)==null?0:(A=H.badgeImage)==null?0:A.sources)H=void 0,A={liveChatAuthorBadgeRenderer:{tooltip:O.tooltip,accessibility:{accessibilityData:{label:(H=_.M(O.rendererContext,_.ue))==null?void 0:H.label}}}},O.badgeImage.sources[0].clientResource?A.liveChatAuthorBadgeRenderer.icon=
{iconType:O.badgeImage.sources[0].clientResource.imageName}:A.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:O.badgeImage.sources},N.push(A)}return N}}});
_.W([_.X(),_.Q("design:type",Object)],Q3.prototype,"data",void 0);_.W([_.a("data.channelName"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Q3.prototype,"channelName",null);_.W([_.a("data.channelBadges"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],Q3.prototype,"channelBadges",null);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Q3);
_.n(Q3,"yt-live-chat-identity-view-model",function(){if(SjE===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;utX===void 0&&(utX=document.createElement("template"));var H=utX;O.call(t,H.content.cloneNode(!0),N.content.firstChild);SjE=N}N=SjE;return N},{mode:0});var hyu;var M1S;var bdr;var pqR;var mS=function(){var N=_.k.apply(this,arguments)||this;N.hidden=!1;N.supportsInlineActionButtons=!0;return N};
_.p(mS,_.k);mS.prototype.ready=function(){var N;((N=document.querySelector("yt-live-chat-app"))==null?0:N.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
mS.prototype.dataChanged=function(N){var t=(0,_.U6)(_.O6(this.hostElement).querySelector("#detail-text"));t.textContent="";(N==null?0:N.detailText)&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(N.detailText))};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],mS.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X({observer:"dataChanged"}),_.Q("design:type",Object)],mS.prototype,"data",void 0);
_.W([_.X({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Q("design:type",Object)],mS.prototype,"hidden",void 0);_.W([_.en({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],mS);
_.n(mS,"yt-live-chat-legacy-paid-message-renderer",function(){if(pqR===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;bdr===void 0&&(bdr=document.createElement("template"));var H=bdr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);pqR=N}N=pqR;return N},{mode:0});var LkQ;var zyY;var Yj0={},Ea=function(){return _.$q.apply(this,arguments)||this};
_.p(Ea,_.$q);Ea.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ea.prototype.onLiveChatMembershipItemBehaviorClick=Ea.prototype.onLiveChatMembershipItemBehaviorClick;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ea.prototype,"data",void 0);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Ea.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.W([_.jn()],Ea);
Yj0.YtLiveChatMembershipItemBehavior=[Ea.prototype,_.G.YtRendererBehavior];var Gz=function(){var N=_.k.apply(this,arguments)||this;N.supportsInlineActionButtons=!0;N.hasPrimaryHeaderText=!1;N.showOnlyHeader=!1;N.authorBadges=[];N.modern=_.h("web_button_rework_with_live");N.buttonOverrides={style:"overlay",type:"filled"};return N};
_.p(Gz,_.k);_.V=Gz.prototype;_.V.shouldSupportInlineActionButtons=function(){return!0};
_.V.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.V.ready=function(){var N=document.querySelector("yt-live-chat-app");N&&N.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.V.messageChanged=function(){var N=this.data.message,t=(0,_.U6)(_.O6(this.hostElement).querySelector("#message"));t.textContent="";N&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(N))};
_.V.computeHasPrimaryHeaderText=function(N){return!(!N||!N.headerPrimaryText)};
_.V.computeShowOnlyHeader=function(N,t){return this.isMessageEmpty(N,t)};
_.V.computeAuthorBadges=function(N){return N.authorBadges||[]};
_.V.isMessageEmpty=function(N,t){return!N||N.empty?!0:!N.message&&!N.inputField&&!t};
_.V.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.V.getInputElement=function(){return _.O6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.V.inputFocus=function(){var N=this.getInputElement();N&&N.focus()};
_.V.inputInsertEmoji=function(N){var t=this.getInputElement();t&&t.insertEmoji(N)};
_.V.inputMessage=function(){var N=this.getInputElement();return N&&this.data.inputField?(N.completeEmojis(),_.kV(N.liveChatRichMessageInput)):null};
_.V.onFooterButtonClick=function(){this.data.footerButton&&_.or(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.V.shouldSupportWholeItemClick=function(){return!0};
Gz.prototype.isDeletedChanged=Gz.prototype.isDeletedChanged;Gz.prototype.messageChanged=Gz.prototype.messageChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],Gz.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Y(Yj0.YtLiveChatMembershipItemBehavior),_.Q("design:type",Object)],Gz.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Gz.prototype,"data",void 0);_.W([_.X({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],Gz.prototype,"hasPrimaryHeaderText",void 0);_.W([_.X({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Q("design:type",Object)],Gz.prototype,"showOnlyHeader",void 0);
_.W([_.X({computed:"computeAuthorBadges(data)"}),_.Q("design:type",Array)],Gz.prototype,"authorBadges",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Gz.prototype,"modern",void 0);_.W([_.gz("data.message"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gz.prototype,"messageChanged",null);_.W([_.gz("isDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gz.prototype,"isDeletedChanged",null);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Gz);
_.n(Gz,"yt-live-chat-membership-item-renderer",function(){if(zyY===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;LkQ===void 0&&(LkQ=document.createElement("template"));var H=LkQ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);zyY=N}N=zyY;return N},{mode:0});var a6p;var TWX;var Rg=function(){return _.k.apply(this,arguments)||this};
_.p(Rg,_.k);Rg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Rg.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Rg);
_.n(Rg,"yt-live-chat-mode-change-message-renderer",function(){if(TWX===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;a6p===void 0&&(a6p=document.createElement("template"));var H=a6p;O.call(t,H.content.cloneNode(!0),N.content.firstChild);TWX=N}N=TWX;return N},{mode:0});var wq_;var eyr;var vR=function(){return _.k.apply(this,arguments)||this};
_.p(vR,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],vR.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vR.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],vR);
_.n(vR,"yt-live-chat-moderation-message-renderer",function(){if(eyr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;wq_===void 0&&(wq_=document.createElement("template"));var H=wq_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);eyr=N}N=eyr;return N},{mode:0});var Pg_;var XqX;var Ji=function(){return _.k.apply(this,arguments)||this};
_.p(Ji,_.k);Ji.prototype.onClick=function(){var N;if((N=this.data)!=null&&N.onClickCommand){var t;_.U4.instance.resolveCommand((t=this.data)==null?void 0:t.onClickCommand)}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],Ji.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],Ji.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ji.prototype,"data",void 0);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Ji);
_.n(Ji,"yt-live-chat-offer-click-count-message-renderer",function(){if(XqX===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Pg_===void 0&&(Pg_=document.createElement("template"));var H=Pg_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);XqX=N}N=XqX;return N},{mode:0});var xkR;var kRZ=function(){return _.k.apply(this,arguments)||this};
_.p(kRZ,_.k);_.W([_.X(),_.Q("design:type",Object)],kRZ.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],kRZ);
_.n(kRZ,"yt-live-chat-placeholder-item-renderer",function(){if(xkR===void 0){var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);xkR=N}N=xkR;return N},{mode:0});var qjB;var f6B;var nZB=new md(7),og=function(){var N=_.k.apply(this,arguments)||this;N.data={};return N};
_.p(og,_.k);og.prototype.dataChanged=function(){var N;((N=this.data)==null?0:N.class)&&_.VQ(this.hostElement,this.data.class,!0);var t;((t=this.oldData)==null?0:t.class)&&_.VQ(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
og.prototype.computeTimestampString=function(N){return nZB.format(new Date(N/1E3))};
og.prototype.dataChanged=og.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],og.prototype,"data",void 0);_.W([_.X({computed:"computeTimestampString(data.timestampUsec)"}),_.Q("design:type",String)],og.prototype,"timestampString",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],og.prototype,"dataChanged",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],og);
_.n(og,"yt-live-chat-server-error-message",function(){if(f6B===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;qjB===void 0&&(qjB=document.createElement("template"));var H=qjB;O.call(t,H.content.cloneNode(!0),N.content.firstChild);f6B=N}N=f6B;return N},{mode:0});var WkR;var rSB;var sa=function(){var N=_.k.apply(this,arguments)||this;N.defaultToFilledIcon=!1;return N};
_.p(sa,_.k);sa.prototype.computeHasPrimaryColorIcon=function(N){return N==="SPARK"||N==="SPONSORSHIP_STAR"};
sa.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],sa.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sa.prototype,"defaultToFilledIcon",void 0);_.W([_.X(),_.Q("design:type",Object)],sa.prototype,"data",void 0);
_.W([_.X({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],sa.prototype,"hasPrimaryColorIcon",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],sa);
_.n(sa,"yt-live-chat-viewer-engagement-message-renderer",function(){if(rSB===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;WkR===void 0&&(WkR=document.createElement("template"));var H=WkR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);rSB=N}N=rSB;return N},{mode:0});var I60;var NR=function(){var N=_.k.apply(this,arguments)||this;N.modernUpdate=!1;N.buttonStyle="overlay";N.buttonType="filled";return N};
_.p(NR,_.k);NR.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
NR.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],NR.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],NR.prototype,"modernUpdate",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],NR.prototype,"buttonStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],NR.prototype,"buttonType",void 0);
_.W([_.en({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],NR);
_.n(NR,"ytd-ad-hover-text-button-renderer",function(){if(I60!==void 0)return I60;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return I60=N},{mode:1});var l6Q;var tk=function(){var N=_.k.apply(this,arguments)||this;N.buttonOverrides={size:"XS"};return N};
_.p(tk,_.k);tk.prototype.onHelpTap=function(N){this.data&&this.data.informationDialog&&(_.or(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),N.preventDefault(),N.stopPropagation())};
_.W([_.X(),_.Q("design:type",Object)],tk.prototype,"buttonOverrides",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tk.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],tk);
_.n(tk,"ytd-live-chat-purchased-product-message-renderer",function(){if(l6Q!==void 0)return l6Q;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return l6Q=N},{mode:1});var QK_;var mkB;var Oe=function(){var N=_.k.apply(this,arguments)||this;N.isContainerDeleted=!1;return N};
_.p(Oe,_.k);Oe.prototype.onContextMenuClick=function(N){this.ytLiveChatItemBehavior.showContextMenu(N)};
Oe.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))};
Oe.prototype.isContainerDeletedChanged=Oe.prototype.isContainerDeletedChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],Oe.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Oe.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Oe.prototype,"isContainerDeleted",void 0);
_.W([_.X(),_.Q("design:type",String)],Oe.prototype,"deletedStateMessage",void 0);_.W([_.gz("isContainerDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Oe.prototype,"isContainerDeletedChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Oe);
_.n(Oe,"ytd-sponsorships-live-chat-header-renderer",function(){if(mkB!==void 0)return mkB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return mkB=N},{mode:1});var HF=function(){var N=_.k.apply(this,arguments)||this;N.modern=_.h("web_button_rework_with_live");N.buttonOverrides={style:"overlay",type:"filled"};return N};
_.p(HF,_.k);HF.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]]"}}}}}};
HF.prototype.onCtaButtonClick=function(){var N,t=_.M((N=this.data)==null?void 0:N.optInPrompt,_.g_);if(N=this.maybeGetButtonCommand(t)){var O;(O=_.gF())==null||O.clickCommand(N)}};
HF.prototype.maybeGetButtonCommand=function(N){return!N||!N.command||_.M(N.command,N4B)===void 0&&_.M(N.command,sgp)===void 0?null:N.command};
HF.prototype.shouldHideOptinPrompt=function(N,t){return!N||t};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],HF.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],HF.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],HF.prototype,"modern",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],HF);
_.n(HF,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(QK_!==void 0)return QK_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return QK_=N},{mode:1});var EZr;var Ak=function(){return _.k.apply(this,arguments)||this};
_.p(Ak,_.k);Ak.prototype.onContextMenuClick=function(N){this.ytLiveChatItemBehavior.showContextMenu(N)};
Ak.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))};
Ak.prototype.isDeletedChanged=Ak.prototype.isDeletedChanged;_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],Ak.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ak.prototype,"data",void 0);_.W([_.gz("isDeleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ak.prototype,"isDeletedChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Ak);
_.n(Ak,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(EZr!==void 0)return EZr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return EZr=N},{mode:1});var ZU=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return N};
_.p(ZU,_.k);_.V=ZU.prototype;
_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.V.handleLiveChatAction=function(N){_.M(N,fcR)?this.handleMarkChatItemAsDeletedAction(_.M(N,fcR)):_.M(N,qkf)&&this.handleRemoveChatItemAction(_.M(N,qkf))};
_.V.handleLiveChatActions=function(N){N.forEach(this.handleLiveChatAction,this)};
_.V.handleMarkChatItemAsDeletedAction=function(N){var t=this,O;((O=this.data)==null?0:O.items)&&this.data.items.forEach(function(H,A){var Z=Object.keys(H)[0];Object.values(H)[0].id===N.targetItemId&&t.markAsDeleted("data.items",A,Z,N.deletedStateMessage,N.showOriginalContentMessage)})};
_.V.handleRemoveChatItemAction=function(N){var t=this,O;((O=this.data)==null?0:O.items)&&this.data.items.forEach(function(H,A){Object.values(H)[0].id===N.targetItemId&&t.splice("data.items",A,1)})};
_.V.markAsDeleted=function(N,t,O,H,A){N=[N,t,O].join(".");this.set(N+".deletedStateMessage",H);this.set(N+".showOriginalContentMessage",A)};
_.W([_.X(),_.Q("design:type",Object)],ZU.prototype,"data",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ZU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],ZU);
_.n(ZU,"yt-live-chat-item-display-list-renderer",function(){if(M1S===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;hyu===void 0&&(hyu=document.createElement("template"));var H=hyu;O.call(t,H.content.cloneNode(!0),N.content.firstChild);M1S=N}N=M1S;return N},{mode:0});var GRQ;var Ryu,vZa=function(){if(Ryu!==void 0)return Ryu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;GRQ===void 0&&(GRQ=document.createElement("template"));var H=GRQ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return Ryu=N};var VV=function(){var N=_.k.apply(this,arguments)||this;N.isHeader=!1;return N};
_.p(VV,_.k);VV.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.cv.Object.defineProperties(VV,{template:{configurable:!0,enumerable:!0,get:function(){return vZa()}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],VV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VV.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],VV.prototype,"isHeader",void 0);_.W([_.wz({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],VV);_.n(VV,"yt-live-chat-item-display-renderer",function(){return vZa()},{mode:0});var JSf,oZB,H2f,O2R;
JSf={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}};oZB={home:"eohps",search:"eosps",watch:"eowps"};_.sKu=["watch","search","home"];
_.DU=function(){this.JSC$14565_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14565_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Ro("PRECONSTRUCTION_DELAY",0);this.signals_=_.iI();this.targetPage_=""};
_.DU.prototype.init=function(N,t){N=N===void 0?"":N;t=t===void 0?null:t;if(this.JSC$14565_isInitialized_)this.abort();else if(this.JSC$14565_isInitialized_=!0,N&&_.NCR(this,N),t){var O=_.uI(this.signals_,"pcl")?0:10,H=function(){for(var A=0,Z;Z=_.sKu[A++];)Z!=N&&Z!=t&&this.pendingPages_.push(Z);_.tjE(this)}.bind(this);
this.signals_.parkOrScheduleJob(H,O,"pcl")}};
_.DU.prototype.abort=function(){this.fragmentJobId_&&(_.GB.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);O2R(this)};
_.NCR=function(N,t){N.JSC$14565_isInitialized_&&!N.targetPage_&&(N.targetPage_=t,H2f(N,t),N.isInitialPass_=!1,H2f(N,t),N.signals_.processSignal(oZB[N.targetPage_]),O2R(N),_.tjE(N))};
_.tjE=function(N){N.pendingPages_.length&&!N.pagePreparerJobId_&&(N.pagePreparerJobId_=_.WX(_.GB,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.NCR(this,this.pendingPages_.shift())}.bind(N),N.DEFAULT_DELAY_))};
H2f=function(N,t){if(t=JSf[t])for(var O in t){var H=!1,A=O;O.charAt(0)=="~"&&(H=!0,A=O.substring(1));var Z=t[O];Z=typeof Z=="object"?Z:{count:Z};t[O]=Z;Z.componentName=A;Z.count>0&&(N.isInitialPass_?H||N.isSeenDuringInitialPass_[A]||(N.JSC$14565_queue_.push({componentName:A,count:1,signals:Z.signals}),N.isSeenDuringInitialPass_[A]=!0,Z.count--):N.JSC$14565_queue_.push(Z))}};
O2R=function(N){N.JSC$14565_queue_.length=0;N.targetPage_="";N.isInitialPass_=!0;N.signals_.processSignal("eop")};
_.DU.getInstance=function(){return _.oE(_.DU)};var AaX=function(){this.signals=_.iI();this.init()};
AaX.prototype.startPreconstruction=function(){_.DU.getInstance().init(_.vZ("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
AaX.prototype.init=function(){Z2p(this);window.Polymer&&KIY&&vpv();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var N=_.H4.ytcsi;if(N&&N.gt&&(N=N.gt())&&N.tick&&(N.tick.aft>0||N.tick.pbs>0)&&(_.vZ("IS_HOMEPAGE_COLD")||_.vZ("IS_RESULTS_PAGE_COLD")||_.vZ("IS_WATCH_PAGE_COLD"))){VjR(this);break a}fmQ(fcN,this.onNotifications,this)}};
var Z2p=function(N){var t=function(){N.signals.processSignal("dl")};
document.readyState==="complete"?(_.HY(Error("th"),"WARNING"),t()):_.ydM(window,"load",t)};
AaX.prototype.onNotifications=function(N){N.timer||(_.vZ("IS_HOMEPAGE_COLD")||_.vZ("IS_RESULTS_PAGE_COLD")||_.vZ("IS_WATCH_PAGE_COLD"))&&VjR(this)};
var VjR=function(N){N.signals.parkOrScheduleJob(function(){N.signals.processSignal("eocs")},10,"eor")};
new AaX;var Dh_=function(){return _.$q.apply(this,arguments)||this};
_.p(Dh_,_.$q);_.cv.Object.defineProperties(Dh_.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_entity_store_from_dependency_injection")?_.mN():_.v5()}}});
_.W([_.jn()],Dh_);_.Ue=[NF.prototype,Dh_.prototype];var Uhr=["ytd-rich-shelf-renderer"],Cc=function(){var N=_.$q.apply(this,arguments)||this;N._noAccessors=!0;N.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";N.followUpDialogPromise=null;N.followUpDialogPromiseResolve=null;N.followUpDialogPromiseReject=null;return N};
_.p(Cc,_.$q);_.V=Cc.prototype;_.V.dismissibleItemIsDismissedChanged_=function(N){_.h("kevlar_fluid_dismiss")&&(N?_.or(this.hostElement,"yt-dismissible-item-dismissed"):_.or(this.hostElement,"yt-dismissible-item-undismissed"))};
_.V.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.V.dismissibleItemReset_=function(){var N=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.TW(function(t,O){N.followUpDialogPromiseResolve=t;N.followUpDialogPromiseReject=O});
_.or(this.hostElement,"yt-enable-lockup-interaction")};
_.V.dismissibleItemOnYtServiceRequestSent_=function(N,t){t.actions&&this.dismissibleItemProcessActions(t.actions,N)};
_.V.dismissibleItemOnRequestSent=function(N){for(var t=_.D(N.detail),O=t.next();!O.done;O=t.next()){var H=void 0;(O=(H=_.M(O.value,_.VZ))==null?void 0:H.actions)&&this.dismissibleItemProcessActions(O,N)}};
_.V.dismissibleItemOnCommandSent=function(N,t){t&&this.dismissibleItemProcessActions(t,N)};
_.V.setAndGetDismissedContentId=function(N){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+N};
_.V.replayDismissAction=function(N){this.dismissibleItemProcessActions([N])};
_.V.dismissibleItemProcessActions=function(N,t){for(var O=0;O<N.length;O++){var H=N[O],A=void 0;((A=_.M(H,_.Ab))==null?0:A.commands)&&this.dismissibleItemProcessActions(_.M(H,_.Ab).commands,t);if(_.M(H,_.lK)){if(A=_.M(H,_.lK),!A.replaceParentSection||Uhr.includes(this.hostElement.nodeName.toLowerCase()))A.groupDismissal&&PZO(this,A.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(A),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.uF("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:H})),H=void 0,(H=t)==null||H.stopPropagation()}else if(_.M(H,wSE))this.dismissibleItemHandleHideEnclosingAction_(),H=void 0,(H=t)==null||H.stopPropagation();else if(_.M(H,O7Y))H=_.M(H,O7Y),A=void 0,((A=H)==null?0:A.targetGroupId)&&PZO(this,{targetGroupId:H.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.uF("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
H=void 0,(H=t)==null||H.stopPropagation();else if(_.M(H,_.VZ))(H=_.M(H,_.VZ).actions)&&_.OK(this.hostElement,H,this.hostElement),H=void 0,(H=t)==null||H.stopPropagation();else{var Z=A=void 0;((A=_.M(H,_.Hd))==null?void 0:A.signal)!=="TELL_US_WHY"||((Z=_.M(H,_.Hd))==null?0:Z.targetId)&&_.h("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),H=void 0,(H=t)==null||H.stopPropagation())}}};
_.V.dismissibleItemOnYtServiceRequestCompleted_=function(N,t){var O=this.get("feedbackResponses.0.followUpDialog",t.data);O?this.followUpDialogPromiseResolve(O):t.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(t.actions,N)};
_.V.dismissibleItemHandleReplaceEnclosingAction_=function(N){this.dismissedRenderer=N.item;this.isDismissed=!0;var t=null;(t=_.O6(this.hostElement).querySelector("#dismissed"))&&_.yB(this,function(){_.Kb(t)});
_.or(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.V.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.V.dismissibleItemHandleUndoFeedbackAction_=function(){_.or(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.V.dismissibleItemHandleTellUsWhySignalAction_=function(){var N=this;this.followUpDialogPromise.then(function(t){N.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:t}})})};
Cc.prototype.dismissibleItemOnYtServiceRequestCompleted_=Cc.prototype.dismissibleItemOnYtServiceRequestCompleted_;Cc.prototype.dismissibleItemOnCommandSent=Cc.prototype.dismissibleItemOnCommandSent;Cc.prototype.dismissibleItemOnRequestSent=Cc.prototype.dismissibleItemOnRequestSent;Cc.prototype.dismissibleItemOnYtServiceRequestSent_=Cc.prototype.dismissibleItemOnYtServiceRequestSent_;Cc.prototype.dismissibleItemDataChanged_=Cc.prototype.dismissibleItemDataChanged_;
Cc.prototype.dismissibleItemIsDismissedChanged_=Cc.prototype.dismissibleItemIsDismissedChanged_;_.W([_.Y(_.LX),_.Q("design:type",Object)],Cc.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Cc.prototype,"ytdReduxBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Cc.prototype,"isDismissed",void 0);_.W([_.X(),_.Q("design:type",Object)],Cc.prototype,"dismissedRenderer",void 0);
_.W([_.gz("isDismissed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Boolean]),_.Q("design:returntype")],Cc.prototype,"dismissibleItemIsDismissedChanged_",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Cc.prototype,"dismissibleItemDataChanged_",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],Cc.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.W([_.dz("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Cc.prototype,"dismissibleItemOnRequestSent",null);
_.W([_.dz("yt-dismissible-item-action"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Array]),_.Q("design:returntype")],Cc.prototype,"dismissibleItemOnCommandSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],Cc.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.W([_.jn()],Cc);_.Kc=[_.LX,_.Ue,Cc.prototype];var F7=function(){var N=_.$q.apply(this,arguments)||this;N.disableGridStateAware=!1;N.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};N.currentGridClass="";return N};
_.p(F7,_.$q);F7.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.yB(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var N=this.gridStateAwareGetElement();_.VQ(N,"grid",!0)}};
F7.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
F7.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.O6(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
F7.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var N="grid-disabled";else{N=_.qa.getInstance();var t=this.get("pageSubtype");N=t&&y1B.includes(t)?"grid-disabled":N.currentSnapState_?N.currentSnapState_.className:null}(t=this.gridStateAwareGetElement())&&N!==this.currentGridClass&&(N&&_.VQ(t,N,!0),this.currentGridClass&&_.VQ(t,this.currentGridClass,!1),this.currentGridClass=N)};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],F7.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",String)],F7.prototype,"gridStateAwareSizingElementSelector",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],F7.prototype,"disableGridStateAware",void 0);_.W([_.jn()],F7);_.d4=[F7.prototype,_.Wu.YtActionHandlerBehavior];_.g4=new _.dk("GUIDE_TOKEN");var BF;_.yV={};BF=function(){var N=_.$q.apply(this,arguments)||this;N.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return N};
_.p(BF,_.$q);_.V=BF.prototype;_.V.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var N=_.cY().resolve(_.BY(_.g4));N&&(this.guidePersistentAndVisible=N.getGuidePersistentAndVisible(),this.activeEndpoint=N.getActiveEndpoint(),this.guideOpened=N.getGuideOpened(),this.miniGuideVisible=N.getMiniGuideVisible())};
_.V.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.V.handleGuideStateAction=function(N){this.guidePersistentAndVisible=N};
_.V.handleMiniGuideStateAction=function(N){this.miniGuideVisible=N};
_.V.handleGuideOpenedAction=function(N){this.guideOpened=N};
_.V.handleActiveEndpointAction=function(N){this.activeEndpoint=N};
BF.prototype.onActiveEndpointChange=BF.prototype.onActiveEndpointChange;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],BF.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],BF.prototype,"guidePersistentAndVisible",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],BF.prototype,"miniGuideVisible",void 0);_.W([_.X(),_.Q("design:type",Object)],BF.prototype,"activeEndpoint",void 0);
_.W([_.gz("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BF.prototype,"onActiveEndpointChange",null);_.W([_.X(),_.Q("design:type",Boolean)],BF.prototype,"guideOpened",void 0);_.W([_.jn()],BF);_.yV.YtdGuideStateAwareBehavior=[];_.yV.YtdGuideStateAwareBehavior.push(BF.prototype,_.Wu.YtActionHandlerBehavior);var CaE=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],cF=function(){var N=_.$q.apply(this,arguments)||this;N.hoverJobId=0;N.JSC$14592_touched=!1;return N};
_.p(cF,_.$q);_.V=cF.prototype;_.V.created=function(){this.useExpandableTooltip=!CaE.includes(this.is)};
_.V.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.V.detached=function(){this.useExpandableTooltip=!1};
_.V.lockupOnDown=function(N){this.interactionElement&&!_.RM(_.m1(N),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.V.lockupOnUp=function(N){this.interactionElement&&!_.RM(_.m1(N),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.V.onTouchStart=function(){this.JSC$14592_touched=!0};
_.V.lockupOnMouseEnter=function(){var N=this,t=_.uP("kevlar_lockup_hover_delay",-1);this.JSC$14592_touched&&t>=0?(_.GB.cancelJob(this.hoverJobId),this.hoverJobId=_.GB.addJob(function(){N.lockupIsHovered=!0},8,t),this.JSC$14592_touched=!1):this.lockupIsHovered=!0};
_.V.lockupOnMouseLeave=function(){this.hoverJobId&&(_.GB.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.V.lockupOnPopupClosed=function(N,t){var O;((O=t.popupRenderer)==null?void 0:O.is)==="ytd-menu-popup-renderer"&&(N=t.popupRenderer.veData,t=_.z8(),N&&t&&_.r0(t,[N]))};
_.V.lockupOnLockupRequested=function(N){var t=N.detail.videoIds[0],O;N.detail&&t===((O=this.data)==null?void 0:O.videoId)&&(N.detail.returnValue=[this.data])};
_.V.lockupOnYtServiceRequestSent=function(N,t){if(N=t.actions)for(var O=0;O<N.length;O++){var H=N[O];if(H.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&t.ajaxPromise){var A=void 0,Z=(A=_.M(t.endpoint,_.CY))==null?void 0:A.playlistId;A=void 0;H=(A=H.removedVideoId)!=null?A:"";n4R(_.h7(),H,Z)}else H.action==="ACTION_REMOVE_VIDEO"&&t.ajaxPromise&&(Z=void 0,H=(Z=H.setVideoId)!=null?Z:"",_.Wi0(_.h7(),H))}};
_.V.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.V.lockupOnLockupEnabled=function(){if(!this.$){var N=_.cY().resolve(_.J4).getCurrentPage(),t=this.getParentRenderer?this.getParentRenderer():void 0;_.J_(new _.fF("component not ready",this.is,this.isAttached,N==null?void 0:N.is,t==null?void 0:t.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
cF.prototype.lockupOnLockupEnabled=cF.prototype.lockupOnLockupEnabled;cF.prototype.lockupOnLockupDisabled=cF.prototype.lockupOnLockupDisabled;cF.prototype.lockupOnYtServiceRequestSent=cF.prototype.lockupOnYtServiceRequestSent;cF.prototype.lockupOnLockupRequested=cF.prototype.lockupOnLockupRequested;cF.prototype.lockupOnPopupClosed=cF.prototype.lockupOnPopupClosed;cF.prototype.lockupOnMouseLeave=cF.prototype.lockupOnMouseLeave;cF.prototype.lockupOnMouseEnter=cF.prototype.lockupOnMouseEnter;
cF.prototype.onTouchStart=cF.prototype.onTouchStart;cF.prototype.lockupOnUp=cF.prototype.lockupOnUp;cF.prototype.lockupOnDown=cF.prototype.lockupOnDown;_.W([_.X(),_.Q("design:type",Object)],cF.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],cF.prototype,"lockupIsHovered",void 0);_.W([_.X(),_.Q("design:type",Boolean)],cF.prototype,"lockupTouchTriggered",void 0);_.W([_.X(),_.Q("design:type",Boolean)],cF.prototype,"useExpandableTooltip",void 0);
_.W([_.B2("#interaction"),_.Q("design:type",Object)],cF.prototype,"interactionElement",void 0);_.W([_.dz("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],cF.prototype,"lockupOnDown",null);_.W([_.dz("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],cF.prototype,"lockupOnUp",null);
_.W([_.dz("touchstart"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cF.prototype,"onTouchStart",null);_.W([_.dz("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cF.prototype,"lockupOnMouseEnter",null);_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cF.prototype,"lockupOnMouseLeave",null);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],cF.prototype,"lockupOnPopupClosed",null);_.W([_.dz("yt-lockup-requested"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],cF.prototype,"lockupOnLockupRequested",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],cF.prototype,"lockupOnYtServiceRequestSent",null);_.W([_.dz("yt-disable-lockup-interaction"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cF.prototype,"lockupOnLockupDisabled",null);
_.W([_.dz("yt-enable-lockup-interaction"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cF.prototype,"lockupOnLockupEnabled",null);_.W([_.jn()],cF);_.$t=[cF.prototype];_.KMp={YtdReduxBehavior:[]};_.KMp.YtdReduxBehavior.push.apply(_.KMp.YtdReduxBehavior,_.Ue);var jL=function(){var N=_.$q.apply(this,arguments)||this;N._noAccessors=!0;N.disableNowPlaying=!1;N.disableTooltips=!1;N.useHoveredProperty=!1;N.hovered=!1;N.isThumbnailHovered_=!1;N.addBackground=_.h("kevlar_thumbnail_bg");N.nowPlaying=!1;N.disableRounding=!1;N.size="small";return N};
_.p(jL,_.$q);_.V=jL.prototype;_.V.computeThumbnailOverlaySidePanelWidth_=function(N,t){return N-t};
_.V.computeSize=function(N,t){if(!this.disableRounding){if(!N&&!t)return"small";N=Math.max(N||0,t||0);return N>=256?"large":N>=96?"medium":"small"}};
_.V.computeFinalHoveredState_=function(N,t,O){return this.nowPlaying?!1:_.h("kevlar_thumbnail_fluid")&&N?t:O};
_.V.computeHoverOverlays_=function(N,t){return N&&t?t:void 0};
_.V.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.V.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.V.checkMiniplayer_=function(){var N;if(((N=this.data)==null?0:N.playlistSetVideoId)&&_.h("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{N=_.Ry();var t=N.currentEndpoint;!this.disableNowPlaying&&t&&_.M(t,_.rN)&&this.data?(t=_.M(t,_.rN),this.nowPlaying=this.data.playlistId?t.playlistId===this.data.playlistId:t.videoId===this.data.videoId,this.isVideoPlaying=N==null?void 0:N.isVideoPlaying):this.nowPlaying=!1}};
jL.prototype.checkMiniplayer_=jL.prototype.checkMiniplayer_;jL.prototype.onMouseLeave_=jL.prototype.onMouseLeave_;jL.prototype.onMouseEnter_=jL.prototype.onMouseEnter_;jL.prototype.computeHoverOverlays_=jL.prototype.computeHoverOverlays_;jL.prototype.computeFinalHoveredState_=jL.prototype.computeFinalHoveredState_;jL.prototype.computeSize=jL.prototype.computeSize;jL.prototype.computeThumbnailOverlaySidePanelWidth_=jL.prototype.computeThumbnailOverlaySidePanelWidth_;
_.W([_.Y(_.Ue),_.Q("design:type",Object)],jL.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jL.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],jL.prototype,"height",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jL.prototype,"bottomSidePanel",void 0);_.W([_.X(),_.Q("design:type",Number)],jL.prototype,"width",void 0);_.W([_.X(),_.Q("design:type",Object)],jL.prototype,"disableNowPlaying",void 0);
_.W([_.X({selector:_.w8}),_.Q("design:type",Boolean)],jL.prototype,"miniplayerIsActive",void 0);_.W([_.X(),_.Q("design:type",Object)],jL.prototype,"disableTooltips",void 0);_.W([_.X(),_.Q("design:type",Object)],jL.prototype,"useHoveredProperty",void 0);_.W([_.X(),_.Q("design:type",Object)],jL.prototype,"hovered",void 0);_.W([_.X(),_.Q("design:type",Object)],jL.prototype,"isThumbnailHovered_",void 0);
_.W([_.X({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Q("design:type",Boolean)],jL.prototype,"finalHoveredState_",void 0);_.W([_.X({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Q("design:type",Number)],jL.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jL.prototype,"addBackground",void 0);
_.W([_.X({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Q("design:type",Object)],jL.prototype,"hoverOverlays_",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jL.prototype,"nowPlaying",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jL.prototype,"isVideoPlaying",void 0);_.W([_.X(),_.Q("design:type",Object)],jL.prototype,"disableRounding",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Q("design:type",Object)],jL.prototype,"size",void 0);_.W([_.dz("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jL.prototype,"onMouseEnter_",null);_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jL.prototype,"onMouseLeave_",null);
_.W([_.gz("data","disableNowPlaying","miniplayerIsActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jL.prototype,"checkMiniplayer_",null);_.W([_.jn()],jL);var FMp=[jL.prototype];_.iE={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(N,t){return N+":"+_.GM(t)},
getPlayerListener_:function(N,t,O){N=this.getPlayerListenerKey_(N,t);t=this.playerListeners_.get(N);O&&this.playerListeners_.delete(N);return t},
savePlayerListener_:function(N,t){var O=t.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(N,t),O);return O},
listenToPlayerEvent:function(N,t,O){O=this.savePlayerListener_(t,O);N.addEventListener(t,O)},
listenToPlayerEvents:function(N,t){t.forEach(function(O,H){this.listenToPlayerEvent(N,H,O)}.bind(this))},
unlistenFromPlayerEvent:function(N,t,O){O=this.getPlayerListener_(t,O,!0);N.removeEventListener(t,O)},
unlistenFromPlayerEvents:function(N,t){t.forEach(function(O,H){this.unlistenFromPlayerEvent(N,H,O)}.bind(this))}}};
_.uE=function(){};_.dh0=new _.dk("PLAYER_API_TOKEN");var qgS=!1,rh9,nBl=!1,lqN;var OM=function(N,t,O,H,A){_.k1.call(this);var Z=this;this.playerId=t;this.webPlayerContextConfig=H;this.jXs=A;this.b77=!1;this.api={};this.dNs=this.ygE=null;this.aXy=new _.wE;this.fC={};this.yvc=this.aUL=this.elementId=this.jI6=this.config=null;this.i9H=!1;this.fK=this.cPN=null;this.hxE={};this.iqL=["onReady"];this.lastError=null;this.hER=NaN;this.dLu={};this.nAH=0;this.qE=this.targetElement=N;_.L1(this,this.aXy);goB(this);O?this.nAH=setTimeout(function(){Z.loadNewVideoConfig(O)},0):H&&(yar(this),
BCY(this))};
_.p(OM,_.k1);OM.prototype.getId=function(){return this.playerId};
OM.prototype.loadNewVideoConfig=function(N){if(!this.isDisposed()){this.nAH&&(clearTimeout(this.nAH),this.nAH=0);var t=N||{};t instanceof QRa||(t=new QRa(t));this.config=t;this.setConfig(N);BCY(this);this.isReady()&&caR(this)}};
var yar=function(N){var t;N.webPlayerContextConfig?t=N.webPlayerContextConfig.rootElementId:t=N.config.attrs.id;N.elementId=t||N.elementId;N.elementId==="video-player"&&(N.elementId=N.playerId,N.webPlayerContextConfig?N.webPlayerContextConfig.rootElementId=N.playerId:N.config.attrs.id=N.playerId);var O;((O=N.qE)==null?void 0:O.id)===N.elementId&&(N.elementId+="-player",N.webPlayerContextConfig?N.webPlayerContextConfig.rootElementId=N.elementId:N.config.attrs.id=N.elementId)};
OM.prototype.setConfig=function(N){this.jI6=N;this.config=$hB(N);yar(this);if(!this.aUL){var t;this.aUL=j40(this,((t=this.config.args)==null?void 0:t.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var O;if((O=this.config)==null?0:O.attrs)N=this.config.attrs,(t=N.width)&&this.qE&&(this.qE.style.width=Ew(Number(t)||t,!0)),(N=N.height)&&this.qE&&(this.qE.style.height=Ew(Number(N)||N,!0))};
OM.prototype.getConfig=function(){return this.jI6};
var caR=function(N){if(N.config&&N.config.loaded!==!0)if(N.config.loaded=!0,!N.config.args||N.config.args.autoplay!=="0"&&N.config.args.autoplay!==0&&N.config.args.autoplay!==!1){var t;N.api.loadVideoByPlayerVars((t=N.config.args)!=null?t:null)}else N.api.cueVideoByPlayerVars(N.config.args)},uga=function(N){var t=!0,O=N.getPlayerElement();
O&&N.config&&(t=O.dataset.version===i2B(N));return t&&!!_.s2("yt.player.Application.create")},BCY=function(N){if(!N.isDisposed()&&!N.i9H){var t=uga(N);
if(t&&(N.getPlayerElement()?"html5":null)==="html5")N.yvc="html5",N.isReady()||S5X(N);else if(hTZ(N),N.yvc="html5",t&&N.fK&&N.targetElement)N.targetElement.appendChild(N.fK),S5X(N);else{N.config&&(N.config.loaded=!0);var O=!1;N.cPN=function(){O=!0;var H=Mj0(N,"player_bootstrap_method")?_.s2("yt.player.Application.createAlternate")||_.s2("yt.player.Application.create"):_.s2("yt.player.Application.create");var A=N.config?$hB(N.config):void 0;H&&H(N.targetElement,A,N.webPlayerContextConfig,N.jXs);S5X(N)};
N.i9H=!0;t?N.cPN():(_.XU(i2B(N),N.cPN),(t=b2u(N))&&DSz(t||""),pQr(N)&&!O&&_.Ba("yt.player.Application.create",null))}}};
OM.prototype.getPlayerElement=function(){var N=_.t5(document,this.elementId);!N&&this.qE&&this.qE.querySelector&&(N=this.qE.querySelector("#"+this.elementId));return N};
var S5X=function(N){if(!N.isDisposed()){var t=N.getPlayerElement(),O=!1;t&&t.getApiInterface&&t.getApiInterface()&&(O=!0);if(O){N.i9H=!1;if(!Mj0(N,"html5_remove_not_servable_check_killswitch")){var H;if((t==null?0:t.isNotServable)&&N.config&&(t==null?0:t.isNotServable((H=N.config.args)==null?void 0:H.video_id)))return}LMp(N)}else N.hER=setTimeout(function(){S5X(N)},50)}},LMp=function(N){goB(N);
N.b77=!0;var t=N.getPlayerElement();if(t){N.ygE=zTr(N,t,"addEventListener");N.dNs=zTr(N,t,"removeEventListener");var O=t.getApiInterface();O=O.concat(t.getInternalApiInterface());for(var H=N.api,A=0;A<O.length;A++){var Z=O[A];H[Z]||(H[Z]=zTr(N,t,Z))}}for(var U in N.fC)N.fC.hasOwnProperty(U)&&N.ygE&&N.ygE(U,N.fC[U]);caR(N);N.aUL&&N.aUL(N.api);N.aXy.publish("onReady",N.api)},zTr=function(N,t,O){var H=t[O];
return function(){var A=_.E1.apply(0,arguments);try{return N.lastError=null,H.apply(t,A)}catch(Z){if(O!=="sendAbandonmentPing")throw Z.params=O,N.lastError=Z,A=new _.fF("PlayerProxy error in method call",{error:Z,method:O,playerId:N.playerId}),A.level="WARNING",A;}}},goB=function(N){N.b77=!1;
if(N.dNs)for(var t in N.fC)N.fC.hasOwnProperty(t)&&N.dNs(t,N.fC[t]);for(var O in N.dLu)N.dLu.hasOwnProperty(O)&&clearTimeout(Number(O));N.dLu={};N.ygE=null;N.dNs=null;t=N.api;for(var H in t)t.hasOwnProperty(H)&&(t[H]=null);t.addEventListener=function(A,Z){N.addEventListener(A,Z)};
t.removeEventListener=function(A,Z){N.removeEventListener(A,Z)};
t.destroy=function(){N.dispose()};
t.getLastError=function(){return N.getLastError()};
t.getPlayerType=function(){return N.getPlayerType()};
t.getCurrentVideoConfig=function(){return N.getConfig()};
t.loadNewVideoConfig=function(A){N.loadNewVideoConfig(A)};
t.isReady=function(){return N.isReady()}};
OM.prototype.isReady=function(){return this.b77};
OM.prototype.addEventListener=function(N,t){var O=this;this.isDisposed();var H=j40(this,t);H&&(_.W4(this.iqL,N)||this.fC[N]||(t=Y50(this,N),this.ygE&&this.ygE(N,t)),this.aXy.subscribe(N,H),N==="onReady"&&this.isReady()&&setTimeout(function(){H(O.api)},0))};
OM.prototype.removeEventListener=function(N,t){this.isDisposed()||(t=j40(this,t))&&this.aXy.unsubscribe(N,t)};
var j40=function(N,t){var O=t;if(typeof t==="string"){if(N.hxE[t])return N.hxE[t];O=function(){var H=_.E1.apply(0,arguments),A=_.s2(t);if(A)try{A.apply(_.H4,H)}catch(Z){throw H=new _.fF("PlayerProxy error when executing callback",{error:Z}),H.level="ERROR",H;}};
N.hxE[t]=O}return O?O:null},Y50=function(N,t){var O=function(H){var A=function(){N.isDisposed();
if(!N.isDisposed())try{N.aXy.publish(t,H!=null?H:void 0)}catch(C){var U=new _.fF("PlayerProxy error when creating global callback",{error:C.message,event:t,playerId:N.playerId,data:H,originalStack:C.stack,componentStack:C.componentStack});U.level="WARNING";throw U;}};
if(Mj0(N,"web_player_publish_events_immediately"))A();else{var Z=setTimeout(function(){A();_.WW.remove(N.dLu,String(Z))},0);
_.WW.add(N.dLu,String(Z),!0)}};
return N.fC[t]=O};
OM.prototype.getPlayerType=function(){return this.yvc||(this.getPlayerElement()?"html5":null)};
OM.prototype.getLastError=function(){return this.lastError};
var hTZ=function(N){N.cancel();goB(N);N.yvc=null;N.config&&(N.config.loaded=!1);var t=N.getPlayerElement();t&&(uga(N)||!pQr(N)?N.fK=t:(t&&t.destroy&&t.destroy(),N.fK=null));N.targetElement&&_.nA(N.targetElement)};
OM.prototype.cancel=function(){this.cPN&&_.xjv(i2B(this),this.cPN);clearTimeout(this.hER);this.i9H=!1};
OM.prototype.disposeInternal=function(){hTZ(this);if(this.fK&&this.config&&this.fK.destroy)try{this.fK.destroy()}catch(t){var N=new _.fF("PlayerProxy error during disposal",{error:t});N.level="ERROR";throw N;}this.hxE=null;for(N in this.fC)this.fC.hasOwnProperty(N)&&delete this.fC[N];this.jI6=this.config=this.api=null;delete this.targetElement;delete this.qE;_.k1.prototype.disposeInternal.call(this)};
var pQr=function(N){var t,O;N=(t=N.config)==null?void 0:(O=t.args)==null?void 0:O.fflags;return!!N&&N.indexOf("player_destroy_old_version=true")!==-1},i2B=function(N){return N.webPlayerContextConfig?N.webPlayerContextConfig.jsUrl:(N=N.config.assets)?N.js:""},b2u=function(N){return N.webPlayerContextConfig?N.webPlayerContextConfig.cssUrl:(N=N.config.assets)?N.css:""},Mj0=function(N,t){if(N.webPlayerContextConfig)var O=N.webPlayerContextConfig.serializedExperimentFlags;
else{var H;if((H=N.config)==null?0:H.args)O=N.config.args.fflags}return(O||"").split("&").includes(t+"=true")},$hB=function(N){for(var t={},O=_.D(Object.keys(N)),H=O.next();!H.done;H=O.next()){H=H.value;
var A=N[H];t[H]=typeof A==="object"?_.WW.clone(A):A}return t};var RZO={},G$v="player_uid_"+(Math.random()*1E9>>>0);var SL=function(N,t,O,H,A,Z){t=t===void 0?document.createElement("div"):t;this.webPlayerContextConfig=N;this.container=t;this.commandResolver=O;this.apiResolver=oBt();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.CT;H||Z?aLZ(this):TCf(this);this.pendingPlayerResponse=H;this.pendingWatchNextResponse=A;this.pendingPlayerVars=Z;wQf(this)};
SL.prototype.loadVideoWithPlayerResponse=function(N,t,O){this.loadVideo(N,t,O)};
SL.prototype.loadVideoWithPlayerVars=function(N){return this.loadVideo(void 0,void 0,N)};
SL.prototype.destroy=function(N){if(N=_.t5(document,N))N=G$v+"_"+_.GM(N),(N=RZO[N])&&N.dispose()};
var Pa_=function(N,t){var O;_.K(function(H){if(H.nextAddress==1)return N.pendingWatchNextResponse=t,N.synchronousApi?(O=N.synchronousApi,H.jumpTo(2)):H.yield(N.api,3);H.nextAddress!=2&&(O=H.yieldResult);if(!eTB(N,O))return H.return();N.pendingWatchNextResponse&&(O.updateVideoData({raw_watch_next_response:N.pendingWatchNextResponse}),N.pendingWatchNextResponse=void 0);_.Ty(H)})},eTB=function(N,t){var O;
if(!(t==null?0:(O=t.isReady)==null?0:O.call(t))){var H;_.J_(new _.fF("playerApi is falsey",{synchronousApi:N.synchronousApi,apiResolved:N.apiResolver.resolved,playerApiUndefined:t===void 0,playerApiNull:t===null,playerApiReady:(t==null?void 0:(H=t.isReady)==null?void 0:H.call(t))===!0,playerApiMethods:t?Object.keys(t):[]}));return!1}return!0},XQ_=function(N,t){if(typeof N[t]==="function")return N[t]()},xhS=function(N){var t=window,O,H=(O=t.ytplayer)==null?void 0:O.bootstrapPlayerContainer;
if((O=H==null?void 0:H.firstElementChild)&&_.t8(O,"html5-video-player")){var A,Z,U=(A=t.ytplayer)==null?void 0:(Z=A.bootstrapWebPlayerContextConfig)==null?void 0:Z.contextId;A=N.webPlayerContextConfig.contextId;if(U&&U===A){H!==N.container&&(H=!1,XQ_(O,"getPlayerState")===2&&(H=!0),N.container.appendChild(O),H||XQ_(O,"playVideo"));var C;if((C=t.ytplayer)==null?0:C.bootstrapPlayerResponse)N.bootstrapPlayerResponse=t.ytplayer.bootstrapPlayerResponse}}},wQf=function(N){var t,O,H,A,Z;
_.K(function(U){if(U.nextAddress==1)return N.pageReadyOrDataAvailable?U.jumpTo(2):U.yield(N.pageReadyOrDataAvailableResolver.promise,2);if(U.nextAddress!=4)return!_.h("kevlar_player_unified_player_loading")||fqS()&&WxO()?U.jumpTo(4):U.yield(m$G(),4);xhS(N);if(N.pendingPlayerResponse||N.pendingPlayerVars)t=EBl(N.pendingPlayerResponse,N.pendingWatchNextResponse,N.pendingPlayerVars),N.pendingPlayerResponse&&N.pendingPlayerResponse===N.bootstrapPlayerResponse&&(t.loaded=!0),N.bootstrapPlayerResponse=
void 0;O=Jht(N.container,t,N.webPlayerContextConfig);((H=t)==null?0:H.loaded)&&N.pendingWatchNextResponse?(Pa_(N,N.pendingWatchNextResponse),N.pendingPlayerResponse=void 0,N.pendingPlayerVars=void 0):ktE(N);A=function(C){O.removeEventListener("onReady",A);N.synchronousApi=C;N.apiResolver.resolve(C)};
O.addEventListener("onReady",A);N.commandResolver!==void 0&&(Z=N.commandResolver,O.addEventListener("innertubeCommand",function(C){Z(C)}));
_.Ty(U)})};
SL.prototype.loadVideo=function(N,t,O){var H=this,A,Z,U,C,F,g,B,c,u;return _.K(function(S){if(S.nextAddress==1)return H.pendingPlayerResponse=N,H.pendingWatchNextResponse=t,H.pendingPlayerVars=O,aLZ(H),H.synchronousApi?(A=H.synchronousApi,S.jumpTo(2)):S.yield(H.api,3);S.nextAddress!=2&&(A=S.yieldResult);if(!eTB(H,A))return S.return(new Promise(function(){}));
U=new Promise(function(b){Z=b});
C=function(){var b=A.getPlayerResponse();b&&(A.removeEventListener("onVideoDataChange",C),Z(b))};
A.addEventListener("onVideoDataChange",C);if(H.pendingPlayerResponse||H.pendingPlayerVars)H.pendingPlayerResponse&&H.pendingPlayerResponse===H.bootstrapPlayerResponse?(Z(H.pendingPlayerResponse),H.pendingWatchNextResponse&&Pa_(H,H.pendingWatchNextResponse)):(F=EBl(H.pendingPlayerResponse,H.pendingWatchNextResponse,H.pendingPlayerVars),(u=(g=H.pendingPlayerResponse)==null?void 0:(B=g.playerConfig)==null?void 0:(c=B.playbackStartConfig)==null?void 0:c.startPaused)?A.cueVideoByPlayerVars(F.args):A.loadVideoByPlayerVars(F.args)),
ktE(H),H.bootstrapPlayerResponse=void 0;return S.return(U)})};
var TCf=function(N){if(document.readyState==="complete"||document.readyState==="interactive")aLZ(N);else{var t=function(){document.removeEventListener("DOMContentLoaded",t);aLZ(N)};
document.addEventListener("DOMContentLoaded",t)}},aLZ=function(N){N.pageReadyOrDataAvailable=!0;
N.pageReadyOrDataAvailableResolver.resolve()},ktE=function(N){N.pendingPlayerResponse=void 0;
N.pendingWatchNextResponse=void 0;N.pendingPlayerVars=void 0};
_.cv.Object.defineProperties(SL.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var hk=function(N){Et.call(this,N===void 0?"document_active":N);var t=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(O){t.transition("document_disposed",{event:O})});
window.addEventListener("beforeunload",function(O){t.transition("document_disposed_preventable",{event:O})});
window.addEventListener("unload",function(O){t.transition("document_disposed",{event:O});t.hasRun=new Map})};
_.p(hk,Et);
hk.prototype.runPreventableDispose=function(N,t){if(!this.hasRun.get("document_disposed_preventable")){N(t==null?void 0:t.event);var O,H;if((t==null?0:(O=t.event)==null?0:O.defaultPrevented)||(t==null?0:(H=t.event)==null?0:H.returnValue)){t.event.returnValue||(t.event.returnValue=!0);t.event.defaultPrevented||t.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")};
hk.prototype.runDispose=function(N,t){this.hasRun.get("document_disposed")?this.transition("document_active"):(N(t==null?void 0:t.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
hk.prototype.runFlush=function(N,t){N(t==null?void 0:t.event);this.transition("document_active")};
hk.prototype.runActive=function(){};var MR=function(N){Et.call(this,N===void 0?"document_visibility_unknown":N);var t=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(O){document.visibilityState==="visible"?t.transition("document_visible",{event:O}):t.transition("document_hidden",
{event:O})});
_.h("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(O){t.transition("document_backgrounded",{event:O})}),window.addEventListener("focus",function(O){t.transition("document_foregrounded",{event:O})}))};
_.p(MR,Et);MR.prototype.runVisible=function(N,t){N(t==null?void 0:t.event);_.h("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
MR.prototype.runHidden=function(N,t){N(t==null?void 0:t.event);_.h("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
MR.prototype.runBackgrounded=function(N,t){N(t==null?void 0:t.event)};
MR.prototype.runForegrounded=function(N,t){N(t==null?void 0:t.event)};var bE=function(){this.teardownLifecycle=new hk;this.visibilityLifecycle=new MR};
bE.prototype.install=function(){var N=_.E1.apply(0,arguments),t=this;N.forEach(function(O){t.teardownLifecycle.install(O)});
N.forEach(function(O){t.visibilityLifecycle.install(O)})};var pc=function(){bE.call(this);var N={};this.install((N.document_disposed={callback:this.abortSlisAndFlush},N));_.h("combine_ve_grafts")&&(N={},this.install((N.document_disposed={callback:this.flushInteractionLoggingAttachVes},N)));N={};this.install((N.flush_logs={callback:this.logFinalPayload},N));_.h("web_log_cfg_cee_ks")||_.WX(_.GB,q5Y)};
_.p(pc,bE);var sYy=function(){pc.loggingInstance||(pc.loggingInstance=new pc);return pc.loggingInstance};
pc.prototype.logFinalPayload=function(){if(_.h("web_fp_via_jspb")){var N=new njY,t=_.z8();t&&_.Xa(N,1,t);t=_.h("jspb_sparse_encoded_pivot")?new nb([{}]):new nb;_.zN(t,380,Wdu,N);p8S("finalPayload",t);_.h("web_fp_via_jspb_and_json")&&_.E7("finalPayload",{csn:_.z8()})}else _.E7("finalPayload",{csn:_.z8()})};
pc.prototype.abortSlisAndFlush=function(){av0(S7);hc!=null&&hc.flush()};
pc.prototype.flushInteractionLoggingAttachVes=function(){vua(_.gF())};
var q5Y=function(){var N=_.Ro("CLIENT_EXPERIMENT_EVENTS");if(N){var t=ORy();N=_.D(N);for(var O=N.next();!O.done;O=N.next())O=O.value,t(O)&&_.E7("genericClientExperimentEvent",{eventType:O});delete _.E2.CLIENT_EXPERIMENT_EVENTS}};var fLa={};
fLa.YtPlayerBehavior=[_.iE.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var N=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.CT;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;NWO(function(){N.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Jy(this,"pan-down"),_.h("kevlar_pinch_fullscreen")&&_.m3().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.h("kevlar_pinch_fullscreen")&&_.m3().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(N,t,O){var H=this;Hz(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Hz(!1,"MainAppPlayer already created.");else{var A=_.h("kevlar_player_container_query_killswitch")?this.$.container:_.O6(this.hostElement).querySelector("#container");this.mainAppPlayer_=new SL(this.getWebPlayerContextConfig_(),A,function(Z){return _.CC(Z,H.hostElement)},N,t,O);
this.mainAppPlayer_.api.then(function(Z){H.player_=Z;H.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&oAR.resolve(Z)})}},
loadVideoWithPlayerResponse:function(N,t){var O=this;if(this.useUnifiedPlayer_()){var H=this.watchNextData,A,Z=(A=N.videoDetails)==null?void 0:A.videoId,U,C,F;(A=(U=this.watchNextData)==null?void 0:(C=U.currentVideoEndpoint)==null?void 0:(F=C.watchEndpoint)==null?void 0:F.videoId)&&Z!=A&&(H=void 0,_.h("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(N,H,t):this.createMainAppPlayer_(N,H,t);this.mainAppPlayer_.api.then(function(){_.or(O.hostElement,
"yt-player-updated")})}else this.update(XEM(N,t))},
loadVideoWithPlayerVars:function(N){var t=this;this.useUnifiedPlayer_()?(_.h("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(N):this.createMainAppPlayer_(void 0,void 0,N),this.mainAppPlayer_.api.then(function(){_.or(t.hostElement,"yt-player-updated")})):this.update({args:N})},
update:function(N){var t=this;if(this.useUnifiedPlayer_())Hz(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(N);var O=Qvg(N.args);O&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==O&&Object.assign(N.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(N).then(function(H){_.or(t.hostElement,"yt-player-updated",_.h("kevlar_player_updated_obsolete_player_killswitch")?
H:void 0)})}_.vX(new _.fF("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(t.getPlayerPromise(),2);O=H.yieldResult;if(!O)throw Error("vh");N&&t.updatePlayerPlaylist_(N);_.Ty(H)})},
acquireApi_:function(N){var t=this;if(this.useUnifiedPlayer_())Hz(!1,"Invalid method call in kevlar_unified_player.");else return _.GB.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Hz(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(O){t.shouldAutoplay_(N)?O.loadVideoByPlayerVars(N.args):O.cueVideoByPlayerVars(N.args)})):this.initPlayerPromise_=this.initPlayerContainer_(N),this.initPlayerPromise_},
initPlayerContainer_:function(N){var t=this;if(this.useUnifiedPlayer_())Hz(!1,"Invalid method call in kevlar_unified_player.");else return Hz(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.J_(Error("wh")),Hz(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.h("kevlar_player_container_query_killswitch")?this.$.container:_.O6(this.hostElement).querySelector("#container"),m$G().then(function(){var O=t.initPlayer_(N);t.playerResolver_.resolve(O);
return O})},
onPlayerReady_:function(N,t){this.useUnifiedPlayer_()?Hz(!1,"Invalid method call in kevlar_unified_player."):(N.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&oAR.resolve(N),t(N))},
maybeCallApiMethodOnElement_:function(N,t){if(typeof N[t]==="function")return N[t]()},
maybeAdoptBootstrapPlayer_:function(){var N=window,t,O=(t=N.ytplayer)==null?void 0:t.bootstrapPlayerContainer;if((t=O==null?void 0:O.firstElementChild)&&t.classList.contains("html5-video-player")){var H,A,Z=(H=N.ytplayer)==null?void 0:(A=H.bootstrapWebPlayerContextConfig)==null?void 0:A.contextId;H=this.getWebPlayerContextConfig_().contextId;if(Z&&Z===H){O!==this.playerContainer_&&(O=!1,this.maybeCallApiMethodOnElement_(t,"getPlayerState")===2&&(O=!0),this.playerContainer_.appendChild(t),O||this.maybeCallApiMethodOnElement_(t,
"playVideo"));var U;if((U=N.ytplayer)==null?0:U.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=N.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(N){var t=this;if(this.useUnifiedPlayer_())Hz(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(O){t.maybeAdoptBootstrapPlayer_();var H=N?x$4(N):void 0;H&&H==t.bootstrapPlayerResponse_&&(N.loaded=!0);H=t.playerContainer_;var A=t.getWebPlayerContextConfig_();H=Jht(H,N,A);t.player_=H;t.onPlayerReadyEvent_=t.onPlayerReady_.bind(t,t.player_,O);t.player_.addEventListener("onReady",t.onPlayerReadyEvent_);t.player_.addEventListener("innertubeCommand",
t.onPlayerInnerTubeCommand_.bind(t))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(N){N.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(N){N.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var N=_.cY().resolve(_.J4).getCurrentPage();N&&N.getScrollTop()<=0?_.Jy(this,"pan-down"):_.Jy(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(N){N.isFullscreen()||N.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(N){N.isFullscreen()&&N.toggleFullscreen()})},
updatePlayerPlaylist_:function(N){var t=this,O,H,A;return _.K(function(Z){if(Z.nextAddress==1)return O=_.cY().resolve(_.BY(_.$8)),H=!!(O&&O.playlistComponent&&O.playlistComponent.loopOn),Z.yield(t.getPlayerPromise(),2);var U=A=Z.yieldResult,C=U.updatePlaylist,F=[];if(_.h("kevlar_player_playlist_use_local_index")){var g,B;var c=(B=(g=N.localCurrentIndex)!=null?g:N.currentIndex)!=null?B:0}else{var u;c=(u=N.currentIndex)!=null?u:0}if(N.contents)for(g=0;g<N.contents.length;g++)if((B=N.contents[g])&&B.playlistPanelVideoRenderer)if(ntx(B)){B=
B.playlistPanelVideoRenderer;u="";B.shortBylineText&&(u=_.Gv(B.shortBylineText));var S="";B.title?S=_.Gv(B.title):B.unplayableText&&(S=_.Gv(B.unplayableText));F.push({author:u,title:S,encrypted_id:B.videoId})}else g<c&&--c;C.call(U,{index:c,list:N.playlistId?N.playlistId:"",loop:H,playlist_title:N.title,playlist_length:F.length,video:F,fetch:0,external_list:"1",title:N.title?N.title:"",playlist_author:N.ownerName?_.Gv(N.ownerName):void 0});_.Ty(Z)})},
focusOnPlayer:function(){_.yB(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var N=this.playerContainer_.querySelector(".html5-video-player");N&&(_.Lc(_.cY().resolve(_.j9)),N.focus())}})},
preparePlayer:function(){var N=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(t){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")t();else{var O=function(){document.removeEventListener("DOMContentLoaded",O);t()};
document.addEventListener("DOMContentLoaded",O)}})).then(function(){return m$G()}).then(function(){N.initPlayerPromise_||N.preparePlayerJobId_||(N.preparePlayerJobId_=_.WX(_.GB,function(){N.initPlayerPromise_||(N.initPlayerPromise_=N.initPlayerContainer_())}))}):_.vX(new _.fF("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(N){this.useUnifiedPlayer_()?Hz(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(N)||(N.args.autoplay="0")},
shouldAutoplay_:function(N){if(this.useUnifiedPlayer_())Hz(!1,"Invalid method call in kevlar_unified_player.");else{var t=this.get("args.el",N);return t&&t!="detailpage"&&this.isMiniplayerActive_()||t&&(t=="sponsorshipsoffer"||t=="handlesclaiming")&&this.get("args.autoplay",N)=="0"?!1:(N=x$4(N))&&this.get("playerConfig.playbackStartConfig.startPaused",N)?!1:!0}},
isMiniplayerActive_:function(){return _.cY().resolve(_.kf).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var N=this.getPlayer();if(N){var t=N.getPlayerState();_.h("kevlar_player_check_ad_state_on_stop")&&(t=N.getPlayerState(N.getPresentingPlayerType()));t!=5&&N.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(N,t,O){O=O===void 0?!1:O;var H=this,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1)return t||(t=H.hostElement),A=H.useUnifiedPlayer_()?!!H.mainAppPlayer_:!!H.initPlayerPromise_,A?F.yield(H.getPlayerPromise(),2):(O?N.insertBefore(t,N.firstChild):N.appendChild(t),F.return());Z=F.yieldResult;U=Z.getPlayerState(Z.getPresentingPlayerType());C=!1;if(U==-1||U==1||U==3)C=!0;O?N.insertBefore(t,N.firstChild):N.appendChild(t);C&&Z.playVideo();Z.setSize(NaN,NaN);_.Ty(F)})},
watchNextDataChanged_:function(N){var t=this;N&&(this.useUnifiedPlayer_()&&_.h("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Pa_(this.mainAppPlayer_,N):this.getPlayerPromise().then(function(O){O.updateVideoData(t.computeWatchNextPlayerVars_(N))}))},
computeWatchNextPlayerVars_:function(N){if(this.useUnifiedPlayer_()&&_.h("kevlar_unified_player_update_watch_next_killswitch"))Hz(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:N}},
maybeSendAbandonmentPing_:function(){var N=this.getPlayer();N&&N.getPlayerState()!=5&&N.getPlayerState()!=0&&N.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var N=_.Ro("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(N=Object.assign({},N),N.rootElementId=this.playerId);N.serializedExperimentIds&&N.serializedExperimentFlags||_.J_(Error("xh"));return N},
hasWebPlayerContextConfig_:function(){return!!_.Ro("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(N){this.useUnifiedPlayer_()?Hz(!1,"Invalid method call in kevlar_unified_player."):_.CC(N,this.hostElement)},
useUnifiedPlayer_:function(){var N=_.h("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.h("kevlar_unified_player")||N}}];var nof={};nof.YtPlaylistPanelBehavior=[_.G.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(N){N=N.detail;if(N.actions.loop!=void 0||N.actions["yt-icons:loop"]!=void 0)this.loopOn=N.actions.loop||N.actions["yt-icons:loop"];if(N.actions.shuffle!=void 0||N.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=N.actions.shuffle||N.actions["yt-icons:shuffle"]},
setMenuData_:function(N){if(!N||!N.playlistButtons||N.isInfinite)return null;for(var t=N.playlistButtons.menuRenderer.topLevelButtons,O=t.length,H=0;H<O;H++)if(t[H].toggleButtonRenderer){var A=t[H].toggleButtonRenderer;A.defaultIcon.iconType=="LOOP"&&this.loopOn?A.isToggled=this.loopOn:A.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(A.isToggled=this.shuffleOn)}return N.playlistButtons}}];_.zd={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(N,t,O){var H=this.getClickTarget_(t);if(H&&this.isClickAllowed_(H)){t.preventDefault();N=(0,_.WW.unsafeClone)(N);var A=this.getContainerBoundingRect();t=this.getRelativeClickXy_(t,A);this.expandEndpointUrlMacros_(N,{NX:t[0],NY:t[1],NB:H.code});O&&this.truncateWebCommendMetadataUrl_(N);_.or(this.hostElement,"yt-navigate",{endpoint:N})}},
getClickTarget_:function(N){if(!this.clickTargetMap)return null;N=_.m1(N)||[];N=_.D(N);for(var t=N.next();!t.done;t=N.next()){t=t.value;if(t===_.O6(this.hostElement).querySelector("#menu"))break;if(t=this.clickTargetMap.get(t.id))return t}return null},
getRelativeClickXy_:function(N,t){var O=Math.round(N.detail.x-t.left);N=Math.round(N.detail.y-t.top);return O<0||N<0?[null,null]:[O,N]},
getContainerBoundingRect:function(){return _.O6(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(N,t){for(var O=_.D(N.loggingUrls||[]),H=O.next();!H.done;H=O.next())H=H.value,H.baseUrl&&(H.baseUrl=dY9(H.baseUrl,t));N.urlEndpoint&&N.urlEndpoint.url&&(N.urlEndpoint.url=dY9(N.urlEndpoint.url,t));N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.url&&(N.commandMetadata.webCommandMetadata.url=dY9(N.commandMetadata.webCommandMetadata.url,t))},
truncateWebCommendMetadataUrl_:function(N){if(N.commandMetadata&&N.commandMetadata.webCommandMetadata&&N.commandMetadata.webCommandMetadata.url){var t=N.commandMetadata.webCommandMetadata.url,O=t.indexOf("&pp=");if(O>0){var H=t.indexOf("&",O+1);N.commandMetadata.webCommandMetadata.url=H>O&&H<t.length?t.slice(0,O)+t.slice(H):t.slice(0,O)}}},
configureClickTargets:function(N,t,O){this.containerId=N;this.clickTargetMap=new Map;N=_.D(t);for(t=N.next();!t.done;t=N.next())if(t=t.value,t.location){var H=O.get(t.location);H&&(_.VQ(_.O6(this.hostElement).querySelector("#"+H),"yt-simple-endpoint",this.isClickAllowed_(t)),this.clickTargetMap.set(H,t))}},
isClickAllowed_:function(N){return N.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||N.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||N.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||N.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Yt={};
_.Yt.YtLazyListBehavior=[_.hP.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var N=(this.constructor.generatedFrom||this).observers;N||(N=[]);N.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
N}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var N=this.renderElementsOutsideVisibleArea_;N&&(f2r(N,4),N.processSignal())},
deepLazyListObserver_:function(N){var t=this;if(N){var O=N.value||[];if(this.itemsPath==N.path){var H=this.nonDeferredItemCount;N=0;H>-1&&O.length>H&&(N=_.Ro("REMAINING_DOVA_DEFERRED_CHUNKS",-1));N>0?(H>0&&(H=O.slice(0,H),this.setInitialItemsOnDataChanged(H)),(H=this.renderElementsOutsideVisibleArea_)?H.cancel():(H=this.renderElementsOutsideVisibleArea_=new _.bL(2,"eocs"),_.ydM(window,"scroll",function(){return t.renderDeferredElements()})),_.pD(H,function(){t.setInitialItemsOnDataChanged(O)}),_.Gm("REMAINING_DOVA_DEFERRED_CHUNKS",
N-1)):this.setInitialItemsOnDataChanged(O)}else if(this.itemsPath+".splices"==N.path)this.onItemsUpdated_(O);
else H="shownItems"+N.path.substr(this.itemsPath.length),this.useSignals&&H==="shownItems.length"||this.notifyPath(H,N.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(N){N&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(N),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(N){N=N.indexSplices;for(var t=0,O=N.length;t<O;t++){var H=N[t];if(H.index<this.shownCount&&(H.removed&&this.splice("shownItems",H.index,H.removed.length),H.addedCount)){var A=H.object.slice(H.index,H.index+H.addedCount);H=["shownItems",H.index,0];H.push.apply(H,A);this.splice.apply(this,H)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(N){this.cancelPendingTasks_();N||(N=[]);this.items_=N;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.vZ("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.yB(this,this.tryRenderChunk_)))},
fillRange_:function(N,t){this.canShowMore&&this.items_&&(N=this.items_.slice(N,t),N.unshift("shownItems"),this.push.apply(this,N),this.shownCount=t,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var N=this;this.canShowMore&&_.W2(this,"renderChunk",function(){N.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.vZ("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.MU(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var N=this.renderElementsOutsideVisibleArea_;N&&(N.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var N=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(N-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=N;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(N){return Math.ceil(1E3/N)},
onCanShowMoreUpdated_:function(N){this.data&&this.items_!==null&&(N?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(N){!this.shouldUseTaskManager()&&this.data&&(!N&&this.canShowMore?(_.c99(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):N&&this.partiallyRenderedItems_.has(this.items_)&&(_.h("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var w4;_.a2={};
w4=function(){var N=_.$q.apply(this,arguments)||this;N.atStart=!0;N.atEnd=!0;N.startIndex=0;N.endIndex=0;N.scrollCount=0;N.initialStartIndex=0;N.disableScrollEventListener=!1;N.useFloorScrolling=!1;N.isSearch=!1;N.dragging=!1;N.dragMouseStart=0;N.dragOffsetStart=0;N.disableWheelScroll=!1;N.centerListItems=!1;N.offset=0;N.minComponentWidth=0;N.marginWidthRight=0;N.marginWidthLeft=0;N.setButtonsStateRequested=!1;N.itemsVisibilityObserver=null;N.fullyVisibleItemsIndices=[];N.JSC$14654_onWheelScroll=function(t){if(N.isSearch&&
!N.disableWheelScroll&&_.h("desktop_enable_dmpanel_wheel_scroll")){var O=t.shiftKey?Math.abs(t.deltaY)>Math.abs(t.deltaX)?t.deltaY:t.deltaX:t.deltaX;O!==0&&(t.preventDefault(),N.ytLazyListBehavior.fillRemainingListItems(),N.offset+=O,Td(N),N.reposition_())}};
N.onPointerDown=function(t){WM0(N)&&(N.dragMouseStart=t.clientX,N.dragOffsetStart=N.offset,N.dragging=!0)};
N.onPointerMove=function(t){WM0(N)&&N.dragging&&(N.ytLazyListBehavior.fillRemainingListItems(),N.offset=N.dragOffsetStart-(t.clientX-N.dragMouseStart),Td(N),N.reposition_())};
N.onPointerUp=function(){WM0(N)&&(N.dragging=!1)};
return N};
_.p(w4,_.$q);var raE=function(N){var t=_.O6(N.hostElement).querySelector("#items").children;if(!t)return 0;var O=0;N=_.D(N.fullyVisibleItemsIndices);for(var H=N.next();!H.done;H=N.next())O+=t[H.value].clientWidth;return O},WM0=function(N){return N.isSearch&&_.h("desktop_enable_dmpanel_click_drag_scroll")};
w4.prototype.created=function(){this.cachedViewportWidth=_.Ro("initialInnerWidth")||window.innerWidth;this.JSC$14654_cachedViewportHeight=_.Ro("initialInnerHeight")||window.innerHeight;_.Ro("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Gm("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
w4.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.h("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();ILy(this)};
w4.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.h("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var N;(N=this.itemsVisibilityObserver)==null||N.disconnect();this.itemsVisibilityObserver=null;var t;(t=this.itemsObserver)==null||t.disconnect()};
var ILy=function(N){var t=_.O6(N.hostElement).querySelector("#scroll-container");if(t){if(!N.itemsVisibilityObserver){var O=window.getComputedStyle(t).marginRight;N.itemsVisibilityObserver=new IntersectionObserver(function(H){lLB(N,H)},{root:t,
rootMargin:O,threshold:.98})}if(t=_.O6(N.hostElement).querySelector("#items"))N.itemsObserver=new ydS(t,function(H){Q4f(N,H)})}},Q4f=function(N,t){mhp(N)&&(Array.from(t.addedNodes).filter(function(O){return O.nodeType===Node.ELEMENT_NODE}).forEach(function(O){N.itemsVisibilityObserver&&N.itemsVisibilityObserver.observe(O)}),Array.from(t.removedNodes).filter(function(O){return O.nodeType===Node.ELEMENT_NODE}).forEach(function(O){N.itemsVisibilityObserver&&N.itemsVisibilityObserver.unobserve(O)}))},
lLB=function(N,t){var O=new Set(N.fullyVisibleItemsIndices);
t=_.D(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var A=H.target.parentElement;A?(A=Array.from(A.children).indexOf(H.target),H.isIntersecting?O.add(A):O.has(A)&&O.delete(A)):_.J_(new _.fF("Parent element not found",H.target.nodeName))}N.fullyVisibleItemsIndices=Array.from(O).sort(function(Z,U){return Z-U});
O.size===0?_.J_(new _.fF("No visible entries in horizontal list")):(N.startIndex=N.fullyVisibleItemsIndices[0],N.endIndex=N.fullyVisibleItemsIndices[N.fullyVisibleItemsIndices.length-1])},mhp=function(N){N.data?N=(N=N.data)&&N.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===N.itemSizeConstraint:!1:N=!1;
return N};
_.V=w4.prototype;_.V.addScrollEventListeners=function(){var N=_.O6(this.hostElement).querySelector("#scroll-container");N.style.touchAction="pan-y";N.addEventListener("wheel",this.JSC$14654_onWheelScroll);N.addEventListener("pointerdown",this.onPointerDown);N.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.V.removeScrollEventListeners=function(){var N=_.O6(this.hostElement).querySelector("#scroll-container");N.removeEventListener("wheel",this.JSC$14654_onWheelScroll);N.removeEventListener("pointerdown",this.onPointerDown);N.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.V.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.yB(this,this.setStartIndex,[this.initialStartIndex])};
_.V.reposition_=function(){var N=_.Ro("HTML_DIR")=="rtl"?"":"-",t=_.O6(this.hostElement).querySelector("#items");t&&(t.style.transform="translateX("+N+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.V.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.yB(this,this.setButtonsState_))};
_.V.setButtonsState_=function(){this.setButtonsStateRequested=!1;var N=_.O6(this.hostElement).querySelector("#items").firstElementChild;if(N){this.minComponentWidth||(this.minComponentWidth=Eoy(this,N));N=_.O6(this.hostElement).querySelector("#scroll-container").clientWidth;var t=_.O6(this.hostElement).querySelector("#items");t=_.h("kevlar_horizontal_list_scroll_width_killswitch")?t.clientWidth:t.scrollWidth;var O=this.get(this.ytLazyListBehavior.itemsPath,this);if(O){var H=Math.round(N/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+H,O.length)-1)}this.ytLazyListBehavior.canShowMore?t+this.minComponentWidth>=this.offset+N&&(this.atEnd=!1):this.atEnd=this.offset+N>=t-20?!0:!1;this.atStart=this.offset<=20}};
_.V.setStartIndex=function(N){if(!this.minComponentWidth){var t=_.O6(this.hostElement).querySelector("#items").firstElementChild;if(!t)return;this.minComponentWidth=Eoy(this,t)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*N;Td(this);this.reposition_()};
_.V.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Yb();var N=_.O6(this.hostElement).querySelector("#scroll-container").clientWidth;_.h("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Eoy(this,_.O6(this.hostElement).querySelector("#items").firstElementChild));N=this.useFloorScrolling?Math.floor(N/this.minComponentWidth)||1:Math.round(N/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Gty(this);this.offset+=mhp(this)?
raE(this):N*this.minComponentWidth;Td(this);this.reposition_();this.scrollCount++};
_.V.prevClick_=function(){var N=_.O6(this.hostElement).querySelector("#scroll-container").clientWidth;N=this.useFloorScrolling?Math.floor(N/this.minComponentWidth)||1:Math.round(N/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=mhp(this)?raE(this):this.minComponentWidth*this.scrollCount-1):this.offset-=mhp(this)?raE(this):N*this.minComponentWidth;this.centerListItems&&Gty(this);Td(this);this.reposition_()};
_.V.onIronResize_=function(){this.resizeSupportEnabled&&_.yB(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.V.onItemsTransitionEnd_=function(N){_.E3(N)===_.O6(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.V.onChildElementFocus_=function(N){N=N.target.closest("#items > *");var t=_.O6(this.hostElement).querySelector("#scroll-container");if(t.contains(N)){if(_.h("web_horizontal_list_behavior_focus_killswitch"))if(N.offsetLeft<this.offset)this.offset=Math.abs(N.offsetLeft)<N.clientWidth?0:N.offsetLeft;else if(N.offsetLeft+N.clientWidth>this.offset+t.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Yb(),this.offset=N.offsetLeft+N.clientWidth-t.clientWidth;else return;else{var O=_.O6(this.hostElement).querySelector("#items"),
H=_.Ro("HTML_DIR")==="rtl",A=H?O.clientWidth-N.offsetLeft:N.offsetLeft;O=H?O.clientWidth-(N.offsetLeft+N.clientWidth):N.offsetLeft+N.clientWidth;var Z=H?A>this.offset+t.clientWidth:A<this.offset,U=H?O<this.offset:O>this.offset+t.clientWidth,C=H?Z:U;if(H?U:Z)t=H?O:A,this.offset=Math.abs(t)<N.clientWidth?0:t;else if(C)this.ytLazyListBehavior.fillRemainingListItems(),_.Yb(),this.offset=(H?A:O)-t.clientWidth;else return}Td(this);this.reposition_()}};
_.V.observeShownItems_=function(){this.reset()};
_.V.checkComponentWidthResize=function(){var N=_.O6(this.hostElement).querySelector("#items").firstElementChild;N&&(N=Eoy(this,N),this.centerListItems||N!==this.minComponentWidth)&&(this.minComponentWidth=N,this.offset=N*this.scrollCount,this.centerListItems&&Gty(this),Td(this),this.reposition_())};
var Eoy=function(N,t){var O=window.getComputedStyle(t).marginRight;O=Math.floor(Number(O.replace("px","")));var H=window.getComputedStyle(t).marginLeft;H=Math.floor(Number(H.replace("px","")));N.centerListItems&&!N.marginWidthRight&&(N.marginWidthRight=O,N.marginWidthLeft=H);return N.resizeSupportEnabled?t.getBoundingClientRect().width+O:t.offsetWidth+O},Td=function(N){var t=_.O6(N.hostElement).querySelector("#scroll-container").clientWidth,O=_.O6(N.hostElement).querySelector("#items").clientWidth;
N.offset<0?N.offset=0:N.offset+t>=O&&(N.offset=O-t)},Gty=function(N){N.offset-=(_.O6(N.hostElement).querySelector("#scroll-container").clientWidth+N.marginWidthRight-N.minComponentWidth)/2-N.marginWidthLeft};
_.cv.Object.defineProperties(w4.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var N=_.Ro("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(N==-1)N=this.JSC$14654_cachedViewportHeight,N=N>1320?5:N>1020?4:N>730?3:N>430?2:1;else if(N==0)return 0;_.Gm("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",N-1);N=_.Ro("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(N>-1)return N;N=this.cachedViewportWidth;N=N>1600?6:N>1400?5:N>1300?4:N>1090?5:N>870?4:N>660?3:2;_.Gm("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
N);return N},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.h("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
w4.prototype.observeShownItems_=w4.prototype.observeShownItems_;w4.prototype.onChildElementFocus_=w4.prototype.onChildElementFocus_;w4.prototype.onItemsTransitionEnd_=w4.prototype.onItemsTransitionEnd_;w4.prototype.onIronResize_=w4.prototype.onIronResize_;w4.prototype.prevClick_=w4.prototype.prevClick_;w4.prototype.nextClick_=w4.prototype.nextClick_;w4.prototype.setButtonsState_=w4.prototype.setButtonsState_;w4.prototype.requestButtonsStateUpdate_=w4.prototype.requestButtonsStateUpdate_;
w4.prototype.reposition_=w4.prototype.reposition_;w4.prototype.reset=w4.prototype.reset;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],w4.prototype,"ytLazyListBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],w4.prototype,"atStart",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],w4.prototype,"atEnd",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"startIndex",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"endIndex",void 0);_.W([_.X({value:6}),_.Q("design:type",Number)],w4.prototype,"initialCount",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"scrollCount",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"initialStartIndex",void 0);
_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"disableScrollEventListener",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"supportComponentResize",void 0);_.W([_.X({value:function(){var N=this;return function(){return N.prevClick_()}}}),
_.Q("design:type",Function)],w4.prototype,"boundPrevClick",void 0);_.W([_.X({value:function(){var N=this;return function(){return N.nextClick_()}}}),
_.Q("design:type",Function)],w4.prototype,"boundNextClick",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"useFloorScrolling",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"isSearch",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"dragging",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"dragMouseStart",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"dragOffsetStart",void 0);
_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"disableWheelScroll",void 0);_.W([_.X(),_.Q("design:type",Object)],w4.prototype,"centerListItems",void 0);_.W([_.dz("iron-resize"),_.gz("guideOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],w4.prototype,"onIronResize_",null);_.W([_.dz("transitionend"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],w4.prototype,"onItemsTransitionEnd_",null);
_.W([_.dz("focusin"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],w4.prototype,"onChildElementFocus_",null);_.W([_.gz("shownItems"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],w4.prototype,"observeShownItems_",null);_.W([_.jn()],w4);_.a2.YtdHorizontalListBehavior=[];_.a2.YtdHorizontalListBehavior.push(_.JV,_.G.YtRendererBehavior,_.Yt.YtLazyListBehavior,_.yV.YtdGuideStateAwareBehavior,w4.prototype);var Odp=["APP_STATE","PI"];var eL,PF=function(N){this.hostElement=N},X7=function(N,t){if(t&&(V1y(t.viewableCommands)||V1y(t.endOfSessionCommands))){var O=Ukt(t.viewableCommands);
t=Ukt(t.endOfSessionCommands);if(!eL){var H=_.uP("custom_active_view_tos_timeout_ms");eL=H>0&&H!==36E5?new wJQ(Dk4(),H):new wJQ(Dk4())}Phv(eL,N.hostElement);XJg(eL,N.hostElement,O,t)}},xt=function(N){eL&&Phv(eL,N.hostElement)};var RTB=_.mp(["about:blank"]),vor={pushState:window.history.pushState,replaceState:window.history.replaceState};var kt=function(N){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=N;this.internalPushState=N.pushState.bind(N);this.internalReplaceState=N.replaceState.bind(N)};
kt.prototype.init=function(){this.initialized=!0};
kt.prototype.pushState=function(N,t){this.initialized||this.init();this.internalPushState&&this.internalPushState(N,"",t)};
kt.prototype.replaceState=function(N,t){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(N,"",t)};
kt.prototype.getState=function(){return this.history&&this.history.state};var Jau=function(N){var t=function(){var O=N.apply(this,arguments)||this;O.boundHistoryPushState=!1;O.boundHistoryReplaceState=!1;O.debugInfo={};return O};
_.p(t,N);t.prototype.init=function(){var O=_.Tu("IFRAME");_.No(O,_.ju(RTB));O.sandbox="allow-same-origin";O.style.display="none";this.iframe=O;document.body.appendChild(O);this.bindHistoryStateFunctions();N.prototype.init.call(this)};
t.prototype.bindHistoryStateFunctions=function(){var O=this,H=[],A;this.iframe&&((A=this.iframe.contentWindow)==null?0:A.history)&&(A=this.iframe.contentWindow.history)&&(H.push(A),Object.getPrototypeOf(A)&&H.push(Object.getPrototypeOf(A)));window.history&&H.push(window.history);A=window.history;Object.getPrototypeOf(A)&&H.push(Object.getPrototypeOf(A));H.push(vor);A=function(U){for(var C=null,F=0;F<H.length;F++){var g=H[F][U];if(typeof g==="function"){C=g.bind(window.history);O.debugInfo[U]=F;break}}return C};
if(!this.boundHistoryReplaceState){var Z=A("replaceState");Z&&(this.internalReplaceState=Z,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(A=A("pushState"))&&(this.internalPushState=A,this.boundHistoryPushState=!0)};
return t}(kt),oo_=function(){return Jau.call(this,window.history)||this};
_.p(oo_,Jau);oo_.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var qR=function(N){this.browserHistory=N;this.initialized=!1};
qR.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
qR.prototype.pushState=function(N,t){this.initialized||this.init();this.browserHistory.pushState(N,t)};
qR.prototype.replaceState=function(N,t){this.initialized||this.init();this.browserHistory.replaceState(N,t)};
qR.prototype.handlePopstate=function(N){return N.state};_.s4R=function(N,t,O,H,A){this.endpoint=N;this.forward=t;this.historyEntry=O;this.JSC$30859_savedComponentState=H;this.legacyBorder=A===void 0?!1:A};var NRY=function(N,t){this.rootData=N;this.scrollTop=t};_.fc=new _.dk("EPHEMERAL_STORE_TOKEN");_.nc=function(N){this.data=Object.assign({},N);var t;(t=this.data.innertubeResponse)==null||delete t.frameworkUpdates};
_.nc.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.jg)()};
_.N4=function(N){return Object.assign({},N.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var t$S=function(){this.maxSize=100;this.timeToDataCache=new Map};
t$S.prototype.get=function(N){var t=this.timeToDataCache.get(N);t&&(this.timeToDataCache.delete(N),this.timeToDataCache.set(N,t));if(t&&t.rootData&&(_.h("web_use_response_store_for_history_cache")||_.h("mweb_use_new_history_manager"))){var O=_.cY().resolve(_.fc),H=OKR(t),A=!!H;if(H){if(H.content){var Z=WF(O,H.content);A&&Z?t.rootData.response=_.N4(Z):A=!1}H.player&&(Z=WF(O,H.player),A&&Z?t.rootData.playerResponse=_.N4(Z):A=!1);H.reelSequence&&(O=WF(O,H.reelSequence),A&&O?t.rootData.reelWatchSequenceResponse=
_.N4(O):A=!1)}A||(this.timeToDataCache.delete(N),t=void 0)}return t};
t$S.prototype.set=function(N,t){if(t.rootData&&(_.h("web_use_response_store_for_history_cache")||_.h("mweb_use_new_history_manager"))){var O=OKR(t),H=Object.assign({},t.rootData);O&&(O.content&&t.rootData.response&&(HKu(this,O.content,t.rootData.response),H.response=null),O.player&&t.rootData.playerResponse&&(HKu(this,O.player,t.rootData.playerResponse),H.playerResponse=null),O.reelSequence&&t.rootData.reelWatchSequenceResponse&&(HKu(this,O.reelSequence,t.rootData.reelWatchSequenceResponse),H.reelWatchSequenceResponse=
null));t=new NRY(H,t.scrollTop)}this.timeToDataCache.has(N)?this.timeToDataCache.delete(N):this.timeToDataCache.size>=this.maxSize&&(O=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(O.value));this.maxSize!==0&&this.timeToDataCache.set(N,t)};
t$S.prototype.clear=function(){this.timeToDataCache.clear()};
var OKR=function(N){var t=_.cY().resolve(_.BY(_.bl)),O;if((O=N.rootData)==null?0:O.endpoint)return t==null?void 0:a$z(t,N.rootData.endpoint);var H;_.J_(new _.fF("History snapshot response data does not contain endpoint",(H=N.rootData)==null?void 0:H.url));return null},HKu=function(N,t,O){if(N.maxSize>0){var H;
(N=(H=O.responseContext)==null?void 0:H.maxAgeSeconds)&&Number(N)>0&&(H=_.cY().resolve(_.fc),O=Ve(O,N),H.put(t,new _.nc(O)))}};var AWB=function(N,t,O){this.endpoint=t;this.JSC$30865_savedComponentState=O===void 0?null:O;this.entryTime=N};var Fkv=1;var r4=function(N){var t=function(){var O=N.apply(this,[].concat(_.W6(_.E1.apply(0,arguments))))||this;O.historyEntryTime=0;O.historySnapshotCache=O.createHistoryCache();return O};
_.p(t,N);t.prototype.createHistoryCache=function(){return new t$S};
t.prototype.saveAndReplace=function(O,H,A){var Z=window.location.href;var U=U===void 0?{}:U;var C=(C=this.browserHistory.getState())&&C.entryTime?C.entryTime:dkN();O=this.createNewHistoryEntry(O,U,C);this.saveSnapshot(C,H,A);this.replaceState(O,Z||window.location.href)};
t.prototype.saveAndPush=function(O,H,A,Z,U){U=U===void 0?{}:U;this.saveSnapshot(this.historyEntryTime,A,Z);A=this.historySnapshotCache;Z=this.historyEntryTime;var C=A.timeToDataCache.keys();C=_.D(C);for(var F=C.next();!F.done;F=C.next())F=F.value,F>Z&&A.timeToDataCache.delete(F);H=this.createNewHistoryEntry(H,U);this.pushState(H,O)};
t.prototype.saveSnapshot=function(O,H,A){this.historySnapshotCache.set(O,new NRY(H,A))};
t.prototype.createNewHistoryEntry=function(O,H,A){A=A===void 0?dkN():A;return new AWB(A,O,H)};
t.prototype.handlePopstate=function(O){var H=N.prototype.handlePopstate.call(this,O),A=null,Z=null,U=!1,C=null;H&&H.entryTime&&(C=this.historySnapshotCache.get(H.entryTime)||null,U=H.entryTime>this.historyEntryTime,this.historyEntryTime=H.entryTime,A=H.endpoint,Z=H.JSC$30865_savedComponentState);this.handleHistoryCacheLoad(new _.s4R(A,U,C,Z),O);return H};
t.prototype.pushState=function(O,H){Number(O==null?void 0:O.entryTime)>=0&&(this.historyEntryTime=O.entryTime);N.prototype.pushState.call(this,O,H)};
t.prototype.replaceState=function(O,H){Number(O==null?void 0:O.entryTime)>=0&&(this.historyEntryTime=O.entryTime);N.prototype.replaceState.call(this,O,H)};
t.prototype.handleHistoryCacheLoad=function(){};
return t}(qR),ZK0=function(){var N=r4.call(this,new oo_)||this;
N.dispatchElement=null;N.entryIndex=0;return N};
_.p(ZK0,r4);_.V=ZK0.prototype;_.V.init=function(N){N=N===void 0?!0:N;r4.prototype.init.call(this);this.initialized||(N||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.V.handlePopstate=function(N){var t=null;N.state||(t="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return r4.prototype.handlePopstate.call(this,N);var O=new CustomEvent("yt-history-pop",{cancelable:!0});_.sl(this.dispatchElement,"yt-history-pop",[O,{errorMsg:t}]);_.Np(this.dispatchElement,"yt-close-all-popups-action");if(!O.defaultPrevented){O=_.cY().resolve(_.J4);t=O.getCurrentData();var H=O.getCurrentPage();O=0;H?(H=_.sl(this.dispatchElement,"yt-get-page-offset",
[H]),H.length>0&&(O=H[0])):_.J_(new _.fF("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:t?t.page:"undefined"}));t&&(t.csn=_.z8());this.saveSnapshot(this.historyEntryTime,t,O)}return r4.prototype.handlePopstate.call(this,N)};
_.V.handleHistoryCacheLoad=function(N,t){N.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.D(_.Np(this.dispatchElement,"yt-history-will-navigate",[t])).next().value||_.sl(this.dispatchElement,"yt-history-load",[t,N]))};
_.V.pushState=function(N,t){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var O=new _.fF("history.pushState is not a function",this.getDebugString());_.R0(O)}r4.prototype.pushState.call(this,N,t)};
_.V.replaceState=function(N,t){if(!this.browserHistory.boundHistoryReplaceState){var O=new _.fF("history.replaceState is not a function",this.getDebugString());_.R0(O)}r4.prototype.replaceState.call(this,N,t)};
_.V.saveAndPush=function(N,t,O,H,A){A=A===void 0?{}:A;O&&(O.csn=_.z8());r4.prototype.saveAndPush.call(this,N,t,O,H,A)};
_.V.getDebugString=function(){var N=[];this.initialized&&N.push("i");this.browserHistory.boundHistoryReplaceState&&N.push("bhr");this.browserHistory.boundHistoryPushState&&N.push("bhs");"replaceState"in this.browserHistory.debugInfo&&N.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&N.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&N.push("ei:"+String(this.entryIndex));return N.join(",")};
_.I2=function(N,t){N.init(!0);var O=N.browserHistory.getState();N.replaceState(O,ZE(t))};
ZK0.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.lE=new _.dk("DESKTOP_HISTORY_MANAGER_TOKEN");var V$r=[10,20,30,40,50,60],QV=function(){this.currentPartitionIndex=0},DxZ=function(N){qsE({mainAppWeb:_.rY(),
survivalSli:{partitionMinute:N,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Uxr=function(N){qsE({mainAppWeb:_.rY(),
survivalSli:{partitionMinute:N,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Cz0=function(N){return N.currentPartitionIndex>=0&&N.currentPartitionIndex<V$r.length?V$r[N.currentPartitionIndex]:-1},KzQ=function(N){return N.currentPartitionIndex>0&&N.currentPartitionIndex-1<V$r.length?V$r[N.currentPartitionIndex-1]:-1};
QV.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var N=KzQ(this);N>0&&Uxr(N);N=Cz0(this);N>0&&DxZ(N);Fzf(this)}};
var Fzf=function(N){var t=Cz0(N);if(t>0){var O=KzQ(N);O<0&&(O=0);N.intervalId=_.GB.addJob(function(){var H=KzQ(N);H>0&&Uxr(H);H=Cz0(N);H>0&&DxZ(H);Fzf(N)},3,(t-O)*6E4);
N.currentPartitionIndex+=1}else N.currentPartitionIndex=-1};var dxy=function(N){bq.call(this,N,132);this.isDocument=N===document.documentElement};
_.p(dxy,bq);dxy.prototype.calculateScrollDelta=function(N,t,O){var H=0;N<t?H=N<t-100?-48:-8:N>t+O&&(H=N>t+O+100?48:8);return H};
dxy.prototype.JSC$11546_onMouseMove=function(N){this.isDocument||(N.clientX=N.event_.pageX,N.clientY=N.event_.pageY);bq.prototype.JSC$11546_onMouseMove.call(this,N)};_.g0B=function(N,t){var O=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14708_dragListGroup=null;this.onDraggerCreated=function(H){var A=H.JSC$11542_dragger;A.scrollTarget_=O.scrollElement;H=H.draggerEl;A&&H.menuOpened&&A.setEnabled(!1)};
this.onDragStart=function(H){var A=H.draggerEl;H=H.currDragItem;var Z=Object.assign({},H==null?void 0:H.data);Z.trackingParams=void 0;A.data=Z;A.style.position="absolute";A.style.width=(H==null?void 0:H.clientWidth)+"px";A.style.zIndex="2030";A.onDrag&&A.onDrag();H=_.Qs(A);(Z=H.querySelector("ytd-app"))?_.O6(Z).appendChild(A):H.body.appendChild(A);O.dragScrollSupport=new dxy(O.scrollElement);O.dragScrollSupport.horizontalScrolling_=!1;A=O.dragScrollSupport;A.constrainScroll_=!!A.margin_&&!1};
this.onDrop=function(H){O.handleDrop(H);O.dragScrollSupport&&(_.F$(O.dragScrollSupport),O.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(O.JSC$14708_dragListGroup){var H=O.JSC$14708_dragListGroup;fNX(H,H.currDragItem_)}};
this.handleDrop=t};
_.mO=function(N){N.JSC$14708_dragListGroup&&(_.PG(N.JSC$14708_dragListGroup,aN0,N.onDragStart),_.PG(N.JSC$14708_dragListGroup,PjE,N.onDragStart),N.JSC$14708_dragListGroup.dispose(),N.JSC$14708_dragListGroup=null);N.dragScrollSupport&&(_.F$(N.dragScrollSupport),N.dragScrollSupport=null);N.scrollElement.removeEventListener("scroll",N.onReorderableScroll)};
_.yWa=function(N,t,O,H){H=H===void 0?"":H;_.mO(N);O&&(N.scrollElement=O);N.JSC$14708_dragListGroup=new Hb;N.JSC$14708_dragListGroup.hysteresisDistance_=2;xef(N.JSC$14708_dragListGroup,t);N.JSC$14708_dragListGroup.draggerElClasses_=gt("dragging").split(" ");H&&kIR(N.JSC$14708_dragListGroup,function(A){var Z=A||document,U=null;Z.getElementsByClassName?U=Z.getElementsByClassName(H)[0]:U=BcY("*",H,A);return U||A});
_.SF(N.JSC$14708_dragListGroup,zwa,N.onDraggerCreated);_.SF(N.JSC$14708_dragListGroup,aN0,N.onDragStart);_.SF(N.JSC$14708_dragListGroup,PjE,N.onDrop);N.JSC$14708_dragListGroup.init();N.scrollElement.addEventListener("scroll",N.onReorderableScroll,{passive:!0})};
_.cv.Object.defineProperties(_.g0B.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var BRy=function(){this.skipNextNavigation=!1},cWr=function(N,t,O){if(!t)return!1;
if(N.skipNextNavigation)return N.skipNextNavigation=!1;if(_.M(O,_.Z3))return!1;var H,A,Z;if((H=_.M(O,_.yE))==null?0:(A=H.browseEndpointContextSupportedConfigs)==null?0:(Z=A.browseEndpointContextMainConfig)==null?0:Z.skipConfirmation)return!1;var U;return((U=_.M(t.commandMetadata,_.Da))==null?void 0:U.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
BRy.prototype.showConfirmationDialog=function(N,t){this.navigateParams=t;this.customConfirmationCommand?_.cY().resolve(_.jo).resolveCommand(this.customConfirmationCommand):(t={openPopupAction:{popup:{confirmDialogRenderer:{title:_.E_(_.CJ("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.E_(_.CJ("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.E_(_.CJ("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.E_(_.CJ("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.VM.getInstance().triggerAction("yt-open-popup-action",t,N))};
BRy.prototype.cancelPendingNavigation=function(){var N;((N=this.navigateParams)==null?void 0:N.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var $xB=function(){},iKE=function(N,t,O,H,A,Z,U){O=O===void 0?{}:O;
U=U===void 0?{}:U;var C=_.cY().resolve(_.bl),F,g=(F=_.M(t,_.Z3))==null?void 0:F.url;return g?CiM(C,g,O,window.location.href,function(B,c){jpu(N,B,c,!1,!0,O,Z,H)},function(){return!1}):nS(C,t,O,window.location.href,ci(t),function(B,c){jpu(N,B,c,!1,!0,O,Z,H)},A,U)},jpu=function(N,t,O,H,A,Z,U,C){if(!N.JSC$14723_chunkHandler)if(O.page==="learning_journey_watch"&&_.h("web_enable_canvas_on_learning_journey")){var F=!_.M(C,_.yE);
A=A||H;if(F)if(A){if(_.h("kevlar_continue_playback_without_player_response")){var g;var B=(g=_.M(C,_.rN))==null?void 0:g.videoId}H={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:H,previousVideoId:B},tempData:Z}}else H={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else H={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};N.JSC$14723_chunkHandler=new DAY(_.si,H,U,F,A)}else if(O.page==="watch"||O.page==="learning_journey_watch")if(A||H){if(_.h("kevlar_continue_playback_without_player_response")){var c;
F=(c=_.M(C,_.rN))==null?void 0:c.videoId}N.JSC$14723_chunkHandler=new KHZ(_.si,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:H,previousVideoId:F},tempData:Z},U)}else N.JSC$14723_chunkHandler=new ZuR(_.si);else O.page==="shorts"&&A&&!H?N.JSC$14723_chunkHandler=new CYu(_.si,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:Z},U):N.JSC$14723_chunkHandler=new Vwa(U);N.JSC$14723_chunkHandler.processChunk({endpoint:t,data:O});return N.JSC$14723_chunkHandler.nH.promise},
uEp=function(N,t,O,H,A){(O=_.bur(O))&&jpu(N,t,O,!1,!0,H,void 0,A)};_.SAY=new _.dk("NAVIGATION_SERVICE_TOKEN");var hFr=function(){this.pendingNavigationPromise=null};
_.V=hFr.prototype;_.V.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.V.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.V.addEventListener=function(){throw Error("yh");};
_.V.dispatchEvent=function(){throw Error("yh");};
_.V.removeEventListener=function(){throw Error("yh");};var M$0=new _.dk("APP_ROOT");var ySO=null;var bK0=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Ee=function(){_.Xm.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];pB_(this)};
_.p(Ee,_.Xm);Ee.prototype.verifyUser=function(){var N=pB_(this),t=N.logout;if(!N.sessionChange)return!0;this.dispatchEvent("ytsessionchange");t&&this.dispatchEvent("ytuserinvalid");return!1};
var pB_=function(N){var t=bK0.map(function(A){var Z;return(Z=_.PY.get(A))!=null?Z:""}),O=t.some(function(A,Z){return N.sessionCookies&&N.sessionCookies[Z]!==""&&A===""}),H=t.some(function(A,Z){return N.sessionCookies&&N.sessionCookies[Z]!==A});
N.sessionCookies=t;return{logout:O,sessionChange:H}};
Ee.prototype.clearTimeout=function(){this.scheduledJobId&&(_.GB.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var utx=new _.dk("POSTMESSAGE_TUNNEL_TOKEN");var $kM=["/parent_tools","/file_download","/artist_roster"],M1M=[JRY,owr,sdu,tVa,NGp,vwa,OUB,HUu];var Gd=new _.dk("NAVIGATION_CONFIRMATION_SERVICE");var Lzy="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),zFu=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],R2=function(N,t){this.pendingNavigationPromise=null;this.JSC$14746_clientRoot=N;this.historyManager=t;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 $xB;this.debugString=N.is;N={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.Uh(_.VM.getInstance(),N,this.JSC$14746_clientRoot)},eFE,PzZ,XBp,xxr,wB_;
_.p(R2,hFr);R2.prototype.reload=function(){_.xH(window.location.href)};
var zsY=function(N){N.currentEndpoint&&_.M(N.currentEndpoint,_.jc)?N.reload():N.currentEndpoint&&N.navigate(N.currentEndpoint,!0,void 0,{disableCache:!0})};
R2.prototype.navigate=function(N,t,O,H,A,Z,U,C){t=t===void 0?!1:t;O=O===void 0?{}:O;H=H===void 0?{}:H;var F=_.cY().resolve(Gd),g;if(!U&&cWr(F,(g=this.currentEndpoint)!=null?g:void 0,N))return F.showConfirmationDialog(this.JSC$14746_clientRoot.parentElement,{endpoint:N,reload:t,params:O,tempData:H,requestType:A,createScreenConfig:Z}),!1;var B=_.iI();_.uI(B,"eocs")||B.parkOrScheduleJob(function(){B.processSignal("eocs")},10,"eor");
BWv();U=ci(N);F=H.autonav==="1";g=_.z8();Ee.instance||(Ee.instance=new Ee);var c=Ee.instance.verifyUser(),u;if(_.h("enable_dark_theme_only_on_shorts")){var S=document.documentElement.hasAttribute("dark"),b=_.qL(!0)==="USER_INTERFACE_THEME_DARK";if(U==="shorts"){if(!S)if(_.h("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var z;_.xH((z=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?void 0:z.url,void 0,void 0,window.top)}}else{var w;_.xH(_.Uy((w=_.M(N==
null?void 0:N.commandMetadata,_.Da))==null?void 0:w.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.h("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!S){var P;_.xH(_.Uy((P=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?void 0:P.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(b!==S){var x;_.xH(_.Uy((x=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?void 0:x.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(U==="watch"){if(YAY(_.cY().resolve(_.kf),
N)&&(c||_.h("fix_miniplayer_navigation_killswitch")))return!1;_.h("block_all_player_prefetch_requests")||(u=pj0(_.oE(_.Iu),N,F))}else{var l,I=(l=_.M(this.currentEndpoint,_.rN))==null?void 0:l.videoId;I&&_.A7.getInstance().then(function(XO){XO&&XO.set("yt-miniplayer-shown-video-id",I)})}u&&(O.frags=u.missingFragments_.join(","));
z=null;var r;w=(r=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?void 0:r.ignoreNavigation;if(!w)if(_.h("kevlar_command_url")){var E;z=(E=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?void 0:E.url}else z=_.NZg(N,O);if(z&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&z==this.lastNavigationUrl)return _.bp({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.dP(PC(),"CANCELLED")}z&&(this.lastNavigationUrl=z);Ep9();_.Gm("IS_HOMEPAGE_COLD",
!1);_.Gm("IS_RESULTS_PAGE_COLD",!1);_.Gm("IS_WATCH_PAGE_COLD",!1);N.loggingUrls&&N.loggingUrls.forEach(function(XO){XO.baseUrl&&_.A_(XO.baseUrl)});
_.zyp(N,Z?Z.layer:0)&&_.h("kevlar_flush_logs_on_away_navigation")&&_.GW();if(bdv(N))return!1;Urp(U,A);if(!z)return w||_.J_(new _.fF("Can't construct url for endpoint",N)),_.dP(PC(),"FAILURE"),!1;_.cSx();r=N&&_.M(N,_.yE)&&_.M(N,_.yE).browseId.startsWith("UC");O=(E=_.h("enable_dark_theme_only_on_shorts")&&U==="shorts"?!1:_.fT()&&document.documentElement.hasAttribute("dark")!==_.kH())?{themeRefresh:1}:{};E&&!_.xv()&&_.qL()==="USER_INTERFACE_THEME_DARK"&&(O.theme="dark");r=E||aeB(z)&&!r&&!_.h("kevlar_disable_url_allowlist");
c||(r=!0);if(r||_.Ro("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var J;var CN=(J=window.top)==null?void 0:J.location.href}catch(XO){var B4;CN=(B4=XO)==null?void 0:B4.message}_.J_(new _.fF("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:CN}))}N=_.h("kevlar_redirect_on_window_killswitch")?window.top:window;Xi(z);_.xH(_.Uy(z,O),void 0,void 0,N);_.dP(PC(),"ABORTED");return!1}_.h("kevlar_early_popup_close")&&_.sl(this.JSC$14746_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14723_chunkHandler=void 0;var zM;CN=ci((zM=this.currentEndpoint)!=null?zM:void 0);(zM=U==="shorts"&&CN==="shorts")||_.Icg();_.oo(T6p)("nr",void 0);F&&_.bp({webInfo:{navigationReason:"an"}});N.clickTrackingParams&&(H.itct=N.clickTrackingParams,H.csn=g);mG4(H);H.endpoint=JSON.stringify(N);_.h("enable_unknown_lact_fix_on_html5")&&(_.cY().resolve(_.j9),H.lact=_.jO());_.WW.isEmpty(H)||_.m2(z,H);!_.h("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(Z=Object.assign({},{layer:0},Z,{parentLayer:3}));this.pendingNavigationPromise=Z=iKE(this.pageFetcher,N,H,this.currentEndpoint,this.JSC$14746_isNetworkPromiseStale.bind(this),Z,C);Z=Z.then(this.handleNavigateSuccess.bind(this,Z,N,u,H),this.handleNavigateFail.bind(this,Z,N));_.Ry().navigationFinishPromise=Z;t={endpoint:N,pageType:U,url:ZE(z),reload:!!t,noProgressBar:zM};A&&(t.type=A);var jy;A=_.gY((jy=this.currentEndpoint)!=null?jy:null);jy=_.gY(N!=null?N:null);this.fireEvent("yt-navigate-start",
t);var c4;(c4=_.cY().resolve(_.BY(_.SAY)))==null||c4.publish("navigation-start",{sourcePageSubtype:A,destinationPageSubtype:jy});u&&uEp(this.pageFetcher,N,u,H,this.currentEndpoint);return!0};
R2.prototype.JSC$14746_isNetworkPromiseStale=function(N){return N!=this.pendingNavigationPromise};
var TRR=function(N,t,O,H,A){var Z=ci(t);t={endpoint:t,pageType:Z};A&&(t.errorMessage=A);_.J_(O);t.navigationDoneMs=_.zT("nd");t.navigationErrorReason=H;N.fireEvent("yt-navigate-error",t)};
R2.prototype.handleNavigateFail=function(N,t,O){var H=void 0;O instanceof _.kg&&(H=O,oVx(O));if(this.JSC$14746_isNetworkPromiseStale(N))return _.M2(H);_.dP(PC(),"FAILURE");TRR(this,t,O,"101");return _.M2(O)};
R2.prototype.handleNavigateSuccess=function(N,t,O,H,A){if(this.JSC$14746_isNetworkPromiseStale(N))return _.Hc();this.pendingNavigationPromise=null;if(!A)return t=new _.fF("Missing data in response for navigation endpoint",t),_.M2(t);if(A.reload)return window.location.reload(!0),_.Hc();O&&(N={},_.WW.extend(N,_.bur(O),A),A=N);var Z,U;O=(Z=A)==null?void 0:(U=Z.timing)==null?void 0:U.responseStart;O!=null&&_.zT("srt",O);_.zT("pdc");var C,F;Z=(C=A)==null?void 0:(F=C.timing)==null?void 0:F.info;Z!=null&&
(C=_.oo(_.X8x)(Z),_.bp(C));_.dP(PC(),"SUCCESS");wB_(this,t,A,1,H);return _.Hc()};
var aeB=function(N){var t=N;_.h("kevlar_no_redirect_to_classic_2_ks")||(t=(new _.Ir(N)).getPath());if(t==="/"||t==="/red")return!1;var O=!0;Lzy.forEach(function(H){N.indexOf(H)===0&&(O=!1)});
zFu.forEach(function(H){var A=H.url;_.h(H.expFlag)&&N.indexOf(A)===0&&(O=!1)});
return O};
R2.prototype.publishPageData=function(N){this.fireEvent("yt-page-data-fetched",{pageData:N})};
eFE=function(N,t,O,H,A,Z){var U=null;t.page!=="watch"&&t.page!=="learning_journey_watch"||H?t.filler||_.sl(N.JSC$14746_clientRoot,"yt-stop-old-player",[t]):U=jpu(N.pageFetcher,A,t,O,!1,Z,void 0,N.currentEndpoint);if(U)return U.then(N.publishPageData.bind(N,t));N.publishPageData(t);return _.Hc()};
PzZ=function(N,t,O){var H=null;if(!O)return H=new _.fF("Empty data",N.debugString,t);var A=O.response;if(!A)return H;var Z={endpointType:ci(t)||"unknown"};A.responseContext?(A=A.responseContext.errors)&&(H=new _.fF("Errors in response context",N.debugString,t,A,Z)):H=A.error||A.errorMetadata?new _.fF("Errors in response",N.debugString,t,A.error,A.errorMetadata,Z):new _.fF("responseContext missing",N.debugString,t,Object.keys(A).sort().join(","),Z);var U,C,F,g;if(N=O==null?void 0:(U=O.response)==null?
void 0:(C=U.responseContext)==null?void 0:(F=C.webResponseContextExtensionData)==null?void 0:(g=F.webResponseContextDebugData)==null?void 0:g.debugErrorMessages)for(U=0;U<N.length;U++);return H};
XBp=function(N){var t,O,H,A;return N==null?void 0:(t=N.response)==null?void 0:(O=t.responseContext)==null?void 0:(H=O.errors)==null?void 0:(A=H.error)==null?void 0:A["0"]};
xxr=function(N,t){var O;if(O=t.url&&!t.url.startsWith("/clip"))O=t.url,O=!_.h("webfe_parse_debug_param_in_resolveurl_service")&&N.searchDebugUrlMatcher.test(O)||Up4(O)?!0:!1;if(O)Up4(t.url)&&_.D9(window.location.href).themeRefresh?(t=_.El(t.url,"themeRefresh"),_.I2(N.historyManager,t)):t.url&&!CgN(t.url)&&_.I2(N.historyManager,t.url);else if(t.endpoint){var H,A,Z;(O=(H=t.endpoint)==null?void 0:(A=H.commandMetadata)==null?void 0:(Z=A.webCommandMetadata)==null?void 0:Z.url)&&!CgN(O)&&_.I2(N.historyManager,
O);O&&t.url&&O!=t.url&&!t.url.match("playnext=1")&&new _.fF("Response url mismatch in response data",N.debugString,O,t.url)}};
_.kwp=function(N,t,O,H,A,Z,U,C){Z=Z===void 0?!1:Z;var F=_.cY().resolve(Gd),g;if(!C&&cWr(F,(g=N.currentEndpoint)!=null?g:void 0,t))return F.showConfirmationDialog(N.JSC$14746_clientRoot.parentElement,{endpoint:t,data:O,navigationType:H,tempData:A,isMiniplayer:Z,isForwardHistoryNavigation:U==null?void 0:U.forward}),_.Hc();N.pageFetcher.JSC$14723_chunkHandler=void 0;return wB_(N,t,O,H,A,Z)};
wB_=function(N,t,O,H,A,Z){Z=Z===void 0?!1:Z;N.isMiniplayerExpansion=Z;var U=H===2;N.currentEndpoint=t;N.numNavigations++;N.numNavigations&&(eWS.navigationCount=N.numNavigations);_.Gm("NUM_NAV",N.numNavigations);var C=PzZ(N,t,O);if(C)return TRR(N,t,C,"102",XBp(O)),_.M2(C);var F,g,B,c;C=O.rootVe||(O==null?void 0:(F=O.response)==null?void 0:(g=F.responseContext)==null?void 0:(B=g.webResponseContextExtensionData)==null?void 0:(c=B.ytConfigData)==null?void 0:c.rootVisualElementType);!U&&O&&xxr(N,O);var u,
S;F=O==null?void 0:(u=O.response)==null?void 0:(S=u.responseContext)==null?void 0:S.maxAgeSeconds;if(!U&&!isNaN(F)){var b;_.h("kevlar_use_response_ttl_to_invalidate_cache")?b=(0,_.jg)()+1E3*F:_.h("kevlar_always_invalidate_cache")&&(b=0);isNaN(b)||(O.expirationTime=b)}_.oE(_.Iu).prefetchCache_.clear();U||O.page!=="watch"||O.type!=="reduced"&&H!==1?H=eFE(N,O,U,!!Z,t,A):(N.publishPageData(O),H=_.Hc());A=H.then(function(){var z=ci(t);z={endpoint:t,pageType:z,fromHistory:U,response:O};z.navigationDoneMs=
_.zT("nd");N.fireEvent("yt-navigate-finish",z);var w;(w=_.cY().resolve(_.BY(_.SAY)))==null||w.publish("navigation-end")});
O.csn&&C&&O.clientSideGrafts&&H.then(N.attachClientSideGrafts.bind(N,O,_.pv()));return A};
_.V=R2.prototype;_.V.attachClientSideGrafts=function(N,t){N.clientSideGrafts&&t&&N.clientSideGrafts.forEach(function(O){if(t&&O){var H=_.ib(O);_.h("combine_ve_grafts")?_.gF().graftServerVe(O,t):_.qp(N.csn,t,H)}})};
_.V.handleSignalActionHistoryBack=function(){window.history.back()};
_.V.handleSignalActionCloseWindow=function(){window.close()};
_.V.handleSignalActionReloadPage=function(){this.reload()};
_.V.handleSignalActionSoftReloadPage=function(){zsY(this)};
_.V.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.V.fireEvent=function(N,t){N=new CustomEvent(N,{bubbles:!0,cancelable:!1,composed:!0,detail:t});this.dispatchEvent(N)};
_.V.addEventListener=function(N,t){this.JSC$14746_clientRoot.addEventListener(N,t)};
_.V.dispatchEvent=function(N){return this.JSC$14746_clientRoot.dispatchEvent(N)};
_.V.removeEventListener=function(N,t){this.JSC$14746_clientRoot.removeEventListener(N,t)};
R2[$v]=[M$0,_.lE];_.yTx=new Dd("browse","h8y2qb");_.B$Q=new Dd("search","JzFVk");_.cTx=new Dd("shorts","xwEKAe");_.$b4=new Dd("watchFixie","nmfa2d");_.jUy=new Dd("watchFlexy","CF909");_.iWG=new Dd("watchGrid","Tm0L3c");_.uzQ=new Dd("watchLearningJourney","L3n37");var qAR;var feS=function(){return _.k.apply(this,arguments)||this};
_.p(feS,_.k);_.cv.Object.defineProperties(feS,{template:{configurable:!0,enumerable:!0,get:function(){if(qAR===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);qAR=N}N=qAR;return N}}});
_.W([_.Y(fLa.YtPlayerBehavior),_.Q("design:type",Object)],feS.prototype,"ytPlayerBehavior",void 0);_.W([_.en({is:"ytd-player"})],feS);var n0_;var WzS;var rWZ;var vF=function(){var N=_.k.apply(this,arguments)||this;N.forceModernIconButton=!1;N.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return N};
_.p(vF,_.k);vF.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]]"}}}}}};
vF.prototype.handleAccountLinkingStateChangedCommand=function(N){if(N=_.M(N,B6B)){var t,O=(t=this.data)==null?void 0:t.providerKey;t=N.providerKey;O&&t&&O.id===t.id&&O.subject===t.subject&&(N=N.linked,N!==void 0&&(this.set("data.linked",N),this.notifyPath("data.linked"),_.h("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(N)))}};
vF.prototype.setPlayerAccountLinkState=function(N){var t=new wsu;eR0(t,ahX(new Yna,N));var O=_.si();O&&O.getPlayerPromise().then(function(H){H.setAccountLinkState(_.wi(t.JSC$12473_serializeBinary(),4));H.updateAccountLinkingConfig(N)})};
vF.prototype.handleShowAccountLinkDialog=function(){var N=this.get("button.buttonRenderer.command");N&&_.Za([N],this.hostElement)};
_.cv.Object.defineProperties(vF.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}}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.W([_.Y([_.Wu.YtActionHandlerBehavior]),_.Q("design:type",Object)],vF.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vF.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],vF.prototype,"overrides",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vF.prototype,"forceModernIconButton",void 0);_.W([_.X({value:"bottom"}),_.Q("design:type",String)],vF.prototype,"buttonTooltipPosition",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],vF.prototype,"forceIconButton",void 0);_.W([_.X(),_.Q("design:type",Boolean)],vF.prototype,"disableTextTransform",void 0);
_.W([_.a("data","data.linked","data.isWarning"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vF.prototype,"button",null);_.W([_.en({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],vF);
_.n(vF,"ytd-account-link-button-renderer",function(){if(rWZ!==void 0)return rWZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return rWZ=N},{mode:1});var Iep;var leZ=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Jk=function(){return _.k.apply(this,arguments)||this};
_.p(Jk,_.k);Jk.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Jk.prototype.updateButtonActiveState=function(){var N=this,t=!!leZ.find(function(O){return N.currentState===O});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.h("enable_web_delhi_icons")&&(t=!1);this.button&&(this.button.isPressed=t)};
_.cv.Object.defineProperties(Jk.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.playlistLoopStateEntity)==null?void 0:N.state)||((t=this.data)==null?void 0:t.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var N=void 0,t;if(this.currentState&&((t=this.data)==null?0:t.states)){t=_.D(this.data.states);for(var O=t.next();!O.done;O=t.next()){O=_.M(O.value,_.TAY);var H=void 0;if(((H=O)==null?void 0:H.state)===this.currentState){N=O;break}}}return N}}});
Jk.prototype.updateButtonActiveState=Jk.prototype.updateButtonActiveState;_.W([_.Y(_.Ue),_.Q("design:type",Object)],Jk.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.so.playlistLoopStateEntitySelector}),_.Q("design:type",Object)],Jk.prototype,"playlistLoopStateEntity",void 0);_.W([_.X(),_.Q("design:type",Object)],Jk.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Jk.prototype,"forceIconOnly",void 0);_.W([_.B2("ytd-button-renderer"),_.Q("design:type",_.Yn)],Jk.prototype,"button",void 0);
_.W([_.a("data","playlistLoopStateEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Jk.prototype,"currentState",null);_.W([_.gz("currentButtonStateRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jk.prototype,"updateButtonActiveState",null);_.W([_.a("currentState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Jk.prototype,"currentButtonStateRenderer",null);
_.W([_.en({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Jk);
_.n(Jk,"ytd-playlist-loop-button-renderer",function(){if(Iep!==void 0)return Iep;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Iep=N},
{mode:1});var QpE;var mxr=_.CJ("DOWNLOAD",{},"Download"),E0B=_.CJ("DOWNLOADING",{},"Downloading"),GwE=_.CJ("DOWNLOADED",{},"Downloaded"),RFa=_.CJ("RETRY",{},"Retry"),o2=function(){var N=_.k.apply(this,arguments)||this;N.forceIconButton=!1;N.forceIconOnly=!1;N.overrides=!1;N.buttonTooltipPosition=!1;N.styleActionButton=!1;N.disableTextTransform=!1;N.downloadProgress=0;N.isDownloadComplete=!1;N.isHidden=!0;N.transferState="TRANSFER_STATE_UNKNOWN";N.isVideoDeletedByUser=!1;N.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return N};
_.p(o2,_.k);_.V=o2.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var N;(N=this.data)!=null&&N.text||(N=_.Xo(_.v5().getState(),this.videoId),this.updateButtonState(N))};
_.V.computeVideoId=function(N){return N};
_.V.computePlayerStateEntityKey=function(N){return N};
_.V.showHideButton=function(){this.updateButtonVisibility()};
_.V.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var N;((N=this.playerStateEntity)==null?void 0:N.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(N){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==E0B||!_.i5(N))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(N){case "TRANSFER_STATE_UNKNOWN":N=mxr;var t="OFFLINE_DOWNLOAD";var O="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":N=RFa;t="OFFLINE_DOWNLOAD";O="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":N=GwE;t="OFFLINE_PIN";O="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":N=
E0B;t="OFFLINE_DOWNLOADING_ZERO";O="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":N=RFa;t="OFFLINE_DOWNLOAD";O="ACTION_RETRY";break;default:N=mxr,t="OFFLINE_DOWNLOAD",O="ACTION_ADD"}this.isVideoDeletedByUser&&(N=mxr,t="OFFLINE_DOWNLOAD",O="ACTION_ADD");var H=Object.assign({},this.data);H.text=_.E_(N);H.tooltip=N;H.icon={iconType:t};H.size="SIZE_DEFAULT";H.style="STYLE_DEFAULT";_.M(H.command,_.ye)&&(_.M(H.command,_.ye).action=O);this.set("data",H)}};
_.V.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var N="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?N="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?N="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?N="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?N="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?N="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(N="OFFLINE_PIN",this.isDownloadComplete=!0);var t;N!==((t=this.data.icon)==null?void 0:t.iconType)&&(t=Object.assign({},this.data),t.text=_.E_(E0B),t.tooltip=E0B,t.icon={iconType:N},_.M(t.command,_.ye)&&(_.M(t.command,_.ye).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",t))}};
o2.prototype.updateProgress=o2.prototype.updateProgress;o2.prototype.onTransferStateChanged=o2.prototype.onTransferStateChanged;o2.prototype.showHideButton=o2.prototype.showHideButton;o2.prototype.dataChanged=o2.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],o2.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],o2.prototype,"forceIconButton",void 0);
_.W([_.X(),_.Q("design:type",Object)],o2.prototype,"forceIconOnly",void 0);_.W([_.X(),_.Q("design:type",Object)],o2.prototype,"overrides",void 0);_.W([_.X(),_.Q("design:type",Object)],o2.prototype,"buttonTooltipPosition",void 0);_.W([_.X(),_.Q("design:type",Object)],o2.prototype,"styleActionButton",void 0);_.W([_.X(),_.Q("design:type",Object)],o2.prototype,"disableTextTransform",void 0);
_.W([_.X({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Q("design:type",String)],o2.prototype,"videoId",void 0);_.W([_.X({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Q("design:type",String)],o2.prototype,"playerStateEntityKey",void 0);_.W([_.X(),_.Q("design:type",Object)],o2.prototype,"data",void 0);_.W([_.X({selector:qE,selectorArgs:["videoId"]}),_.Q("design:type",Object)],o2.prototype,"downloadProgress",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],o2.prototype,"isDownloadComplete",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],o2.prototype,"isHidden",void 0);_.W([_.X({selector:_.Xo,selectorArgs:["videoId"]}),_.Q("design:type",String)],o2.prototype,"transferState",void 0);_.W([_.X({selector:_.G6x,selectorArgs:["videoId"]}),_.Q("design:type",Object)],o2.prototype,"isVideoDeletedByUser",void 0);
_.W([_.X({selector:rPO,selectorArgs:["videoId"]}),_.Q("design:type",Object)],o2.prototype,"offlineabilityState",void 0);_.W([_.X({selector:_.DN,selectorArgs:["playerStateEntityKey"]}),_.Q("design:type",Object)],o2.prototype,"playerStateEntity",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],o2.prototype,"showTooltips",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],o2.prototype,"sendCommandWhenDisabled",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],o2.prototype,"disabled",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],o2.prototype,"dataChanged",null);_.W([_.ic("offlineabilityState","playerStateEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],o2.prototype,"showHideButton",null);
_.W([_.ic("transferState","isVideoDeletedByUser"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],o2.prototype,"onTransferStateChanged",null);_.W([_.ic("downloadProgress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],o2.prototype,"updateProgress",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],o2);
_.n(o2,"ytd-download-button-renderer",function(){if(QpE!==void 0)return QpE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return QpE=N},{mode:2});var v0Y;var JWy,o0u=function(){if(JWy!==void 0)return JWy;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return JWy=N};var spE=_.h("web_button_rework")&&_.vZ("BUTTON_REWORK")||_.h("web_button_rework_with_live"),NLR=_.uP("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,se=function(){var N=_.k.apply(this,arguments)||this;N.isPressed=!1;N.forceIconButton=!1;N.forceIconOnly=!1;N.forceModernIconButton=!1;N.alignByText=!1;N.isShorts=!1;N.animatedText=!1;N.shouldAnimate=!1;N.JSC$14784_browserSupportsAnimation=_.h("web_supports_animations_api");N.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};N.onTap=function(){var t;if((t=N.data)==null||!t.defaultNavigationEndpoint){var O;t=!((O=N.data)==null?0:O.isToggled);var H;if((H=N.data)==null||!H.preventAutoToggle){N.shouldAnimate=!1;N.disableTextUpdateJobId&&_.GB.cancelJob(N.disableTextUpdateJobId);N.disableTextUpdateJobId=_.GB.addLowPriorityJob(function(){N.disableTextUpdateJobId=void 0},NLR);
var A;N.set("data.isToggled",!((A=N.data)==null?0:A.isToggled));O=N.getInnertubeIcon();H={toggled:t,actions:{}};O&&(H.actions[O.toLowerCase()]=t);_.or(N.hostElement,"yt-toggle-button",H)}}};
return N};
_.p(se,_.k);_.V=se.prototype;_.V.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.GB.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.toggle=function(N){var t;this.set("data.isToggled",N!==void 0?N:!((t=this.data)==null?0:t.isToggled))};
_.V.handleUpdateToggleButtonStateCommand=function(N){if(this.data){N=_.M(N,SbY);var t,O,H,A=(t=this.data)==null?void 0:(O=t.toggleButtonSupportedData)==null?void 0:(H=O.toggleButtonIdData)==null?void 0:H.id;A&&N&&A===(N==null?void 0:N.buttonId)&&this.set("data.isToggled",N.toggled)}};
_.V.handleUpdateToggleButtonTextAction=function(N){if(this.data){N=_.M(N,WOa);var t,O,H,A=(t=this.data)==null?void 0:(O=t.toggleButtonSupportedData)==null?void 0:(H=O.toggleButtonIdData)==null?void 0:H.id;A&&N&&A===(N==null?void 0:N.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=N.defaultNumericalValue,this.set("data.defaultText",N.defaultText),this.set("data.toggledText",N.toggledText),this.shouldAnimate=!1)}};
_.V.getInnertubeIcon=function(){var N=this.data;if(N){var t,O,H=((t=N.defaultIcon)==null?0:t.iconType)?(O=N.defaultIcon)==null?void 0:O.iconType:null,A,Z;t=((A=N.toggledIcon)==null?0:A.iconType)?(Z=N.toggledIcon)==null?void 0:Z.iconType:H;return N.isToggled?t:H}};
_.V.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.cv.Object.defineProperties(se.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$14784_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var t=N.renderer;var O=N.element;var H=N.toggled;var A=N.onTapCallback;var Z=N.commandClientArgs;var U=N.overrides;var C=N.forceIcon;var F=N.forceModernIconButton;var g=N.forceDisabled;var B=N.useAnimatedText;var c=N.animatedTextProps;N=TWx(t,H);C=!t.defaultIcon||!C&&t.defaultText?t.defaultIcon?"leading":void 0:F?"icon-only":"icon-only-40";C==="icon-only-40"&&(N.type="text");var u;F=Object;var S=F.assign,b;a:switch((b=
t.style)==null?void 0:b.styleType){case "STYLE_COMPACT_GRAY":b={size:"S"};break a;default:b={size:"M"}}var z=!!H;var w=(w=H&&t.toggledText||t.defaultText)?_.zb(w):void 0;B?(B=_.Gv(H&&t.toggledText||t.defaultText))&&c&&!isNaN(Number(c.numberValue))?(c.numberText=B,H&&(c.numberValue+=1),B=c):B=void 0:B=void 0;var P,x,l,I;var r=(c=((x=H?t.toggledAccessibilityData||((r=t.toggledText)==null?void 0:r.accessibility):t.accessibilityData||((P=t.defaultText)==null?void 0:P.accessibility))==null?void 0:(l=x.accessibilityData)==
null?void 0:l.label)||((I=t.accessibility)==null?void 0:I.label))?c:_.Gv(H&&t.toggledText||t.defaultText);g=g===void 0?t.isDisabled:g;O=a6S(t,H,A,O,Z);H=Yj4(t,H);H!=null&&H.length?(H=_.PV({innertubeCommand:gWN(H),forceNewState:!0}),H=Xr(H)?H:void 0):H=void 0;t=S.call(F,{},N,b,{iconPosition:C},U,{focused:!1,toggled:z,toggleable:!0,formattedButtonText:w,animatedTextProps:B,accessibilityLabel:r,disabled:g,onTap:O,aTagConfig:H},rot((u=t.colorData)==null?void 0:u.basicColorPaletteData));t.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(t.type="filled");return t}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var N=this.getInnertubeIcon();if(N)return _.Vt(N)}}});
se.prototype.resetAnimation=se.prototype.resetAnimation;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],se.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],se.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],se.prototype,"isPressed",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"forceIconButton",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"forceIconOnly",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"forceModernIconButton",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"alignByText",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"overrides",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],se.prototype,"disabled",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"isShorts",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"buttonTooltipPosition",void 0);_.W([_.X(),_.Q("design:type",Object)],se.prototype,"animatedText",void 0);_.W([_.X(),_.Q("design:type",String)],se.prototype,"textNumberValue",void 0);_.W([_.X({computed:"computeTooltip(data, data.isToggled)"}),_.Q("design:type",Object)],se.prototype,"tooltip",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],se.prototype,"resetAnimation",null);_.W([_.a("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],se.prototype,"computedButtonShape",null);_.W([_.a("data.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],se.prototype,"computedIcon",null);
_.W([_.en({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],se);spE&&_.n(se,"ytd-toggle-button-renderer",o0u,{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var tIR=_.q(function(N){function t(g){var B;return _.K(function(c){if(c.nextAddress==1)return(B=!eyv(g,C())||!C().enabled)?c.jumpTo(2):c.yield(qjO(),3);c.nextAddress!=2&&(B=c.yieldResult);if(B)return c.return();O();setTimeout(function(){U(!1)},1500);
_.Ty(c)})}
function O(){setTimeout(function(){U(!0);var g;(g=H.lottieEl)==null||g.goToAndPlay(0)},150)}
var H=_.dZ(),A=_.D(_.b$(!1,void 0,"UfUosc")),Z=A.next().value,U=A.next().value,C=_.Gr(N.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Q8(function(){var g,B;((g=N.settings)==null?void 0:(B=g.call(N))==null?void 0:B.uniqueId)==="this is not intended behavior"&&_.J_(new _.fF("Smartimation Settings is undefined"))});
_.rp(function(){C().experimentEnabled&&(C().enabled?PgQ(t):(U(!1),Xqx(t)),_.Ia(function(){Xqx(t)}))},"IHhVmc");
_.rp(function(){C().timings.join("");C().experimentEnabled&&(xkN(C()),_.Ia(function(){kRG(C())}))},"fsfhOe");
var F=_.aa(function(){var g=H,B=C().uniqueId+"-border",c,u;var S="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((u=(c=_.cY().resolve(_.BY(_.WV)))==null?void 0:c())!=null&&u?"dark":"light")+"_v2.json";return{animationRef:g,animationConfig:{name:B,autoplay:!1,loop:!1,path:S}}},void 0,"UWvUGe");
A={};return _.d("yt-smartimation",{class:_.V7(N.className,"smartimation",(A["smartimation--experiment-enabled"]=function(){return C().experimentEnabled},A["smartimation--active-border"]=Z,A["smartimation--enable-masking"]=f6O(),A))},_.d(_.y,{cond:function(){return C().experimentEnabled},
then:function(){return _.d("div",{class:"smartimation__border"},_.d(_.rd,{className:"smartimation__border-gradient",data:F,animationName:function(){return F().animationConfig.name}}))}}),_.d("div",{class:"smartimation__content"},N.children))},"ha");
tIR.idomCompat=!0;_.o_(tIR,"yt-smartimation",{props:{className:_.$O,settings:_.$O}});var N7=function(){var N=_.k.apply(this,arguments)||this;N.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};N.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};N.shouldEnableSmartimation=!1;return N};
_.p(N7,_.k);N7.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
N7.prototype.onDataChanged=function(){var N,t;this.shouldEnableSmartimation=(((N=this.data)==null?void 0:(t=N.timedAnimationData)==null?void 0:t.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
N7.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var N=_.M(this.data.likeButton,_.y2),t=_.M(this.data.dislikeButton,_.y2);return!!((N==null?0:N.isToggled)||(t==null?0:t.isToggled))};
N7.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]]"}}}}}};
_.cv.Object.defineProperties(N7.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var N,t,O=((N=this.data)==null?void 0:(t=N.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"like-dislike",timings:O,enabled:this.shouldEnableSmartimation,experimentEnabled:O.length>0}}}});
N7.prototype.onDataChanged=N7.prototype.onDataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],N7.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],N7.prototype,"likeButtonOverride",void 0);_.W([_.X(),_.Q("design:type",Object)],N7.prototype,"dislikeButtonOverride",void 0);
_.W([_.a("shouldEnableSmartimation"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],N7.prototype,"smartimationSettings",null);_.W([_.gz("data"),_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N7.prototype,"onDataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],N7);
_.n(N7,"ytd-segmented-like-dislike-button-renderer",function(){if(v0Y!==void 0)return v0Y;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return v0Y=N},{mode:1});var Owf;var HwS;(HwS=document.body)==null||HwS.setAttribute("rounded-container","");var AZ0={};AZ0.YtToggleButtonBehavior=[_.Wu.YtActionHandlerBehavior,G6.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var N=this.data.isToggled;if(!this.isModal_(N)){if(!this.data.preventAutoToggle){this.toggle();var t={toggled:this.data.isToggled,actions:{}};t.actions[this.buttonIcon]=this.data.isToggled;_.or(this.hostElement,"yt-toggle-button",t)}t=this.data.defaultServiceEndpoint||null;var O=this.data.toggledServiceEndpoint||null;if(t&&O||t&&this.data.preventAutoToggle)N=N?O:t,t=this.disableCommandHandlerOverride,_.h("killswitch_toggle_button_behavior_resolve_command")||t?_.tb(this.hostElement,
[N]):_.CC(N,this.hostElement),_.or(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:N})}},
stateChanged_:function(){var N=this.data;if(N){var t=N.isToggled;this._setEndpoint(this.computeEndpoint_(N));this._setServiceEndpoint(this.computeServiceEndpoint_(N));this._setButtonIcon(this.computeButtonIcon_(N,t));this._setButtonText(this.computeButtonText_(N,t));this._setButtonAccessibility(this.computeAccessibility_(N,t));this._setButtonTooltip(this.computeTooltip_(N,t));this._setButtonClass(this.computeButtonClass_(N,t));this._setIconPositionType(this.computeIconPositionType_(N));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=t):this.elements_.button.setAttribute("aria-pressed",t));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=t)}},
shouldSetIconActiveState_:function(){return _.h("kevlar_system_icons")},
toggle:function(N){this.set("data.isToggled",N!==void 0?N:!this.data.isToggled);_.h("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(N){if(N){var t,O;return!!((t=this.data)==null?0:(O=t.toggledServiceEndpoint)==null?0:O.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(N){return N&&N.defaultNavigationEndpoint||null},
computeButtonIcon_:function(N,t){var O=N&&N.defaultIcon?_.Vt(N.defaultIcon.iconType):null;N=N&&N.toggledIcon?_.Vt(N.toggledIcon.iconType):O;return t?N:O},
handleUpdateToggleButtonStateCommand_:function(N){N=N.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==N.buttonId&&this.toggle(N.toggled)},
computeButtonText_:function(N,t){return N?t&&N.toggledText||N.defaultText||null:null},
computeAccessibility_:function(N,t){return N?(t?this.get("toggledAccessibilityData.accessibilityData",N):this.get("accessibilityData.accessibilityData",N))||N.accessibility||null:null},
computeTooltip_:function(N,t){return N?t&&N.toggledTooltip||N.defaultTooltip||null:null},
computeButtonClass_:function(N,t){if(!N)return"";var O="",H=N.toggledStyle||N.style;if(t=t?H:N.style){t.styleType&&(t=t.styleType);try{O+=t.toLowerCase().replace(/_/g,"-")+" "}catch(A){_.o0(A,t,typeof t),_.J_(A)}}if(N=N.size){N.sizeType&&(N=N.sizeType);try{O+=N.toLowerCase().replace(/_/g,"-")+" "}catch(A){_.o0(A,N,typeof N),_.J_(A)}}return O.trim()},
computeIconPositionType_:function(N){return N&&N.iconPosition||null},
computeServiceEndpoint_:function(N){var t=N&&N.serviceEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:O&&N.command?N.command:null},
handleUpdateToggleButtonTextAction_:function(N){N=N.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==N.buttonId&&(this.set("data.defaultText",N.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",N.toggledText),this.notifyPath("data.toggledText"))}}];_.pE("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var ZwS=_.h("web_button_rework")&&_.vZ("BUTTON_REWORK")||_.h("web_button_rework_with_live"),t6=function(){var N=_.k.apply(this,arguments)||this;N.systemIcons=_.h("kevlar_system_icons");N.roundedContainer=!0;return N};
_.p(t6,_.k);t6.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
t6.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var N=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var t={toggled:!!this.data.isToggled,actions:{}};t.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var O,H;t.actions.playlistId=(O=this.data.defaultServiceEndpoint)==null?void 0:(H=O.playlistEditEndpoint)==null?void 0:H.playlistId;_.or(this.hostElement,"yt-toggle-button",t)}(N=N?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(N)}};
t6.prototype.onYtNavigate=function(N){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(N.detail.endpoint);t&&(N.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(t))};
_.cv.Object.defineProperties(t6,{template:{configurable:!0,enumerable:!0,get:function(){if(Owf===void 0){var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);Owf=N}N=Owf;return N}}});
t6.prototype.onYtNavigate=t6.prototype.onYtNavigate;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],t6.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],t6.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(AZ0.YtToggleButtonBehavior),_.Q("design:type",Object)],t6.prototype,"ytToggleButtonBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],t6.prototype,"data",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],t6.prototype,"showTooltips",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],t6.prototype,"systemIcons",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],t6.prototype,"roundedContainer",void 0);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],t6.prototype,"onYtNavigate",null);
_.W([_.en({is:"ytd-toggle-button-renderer",disableElementRegistration:ZwS})],t6);var VIr,DD0;_.Of=new _.dk("PANEL_CONTROLLER_TOKEN");_.HD=new _.dk("SHEET_CONTROLLER_TOKEN");_.A6=new _.dk("DIALOG_CONTROLLER_TOKEN");VIr=new _.dk("DIALOG_CONTAINER_TOKEN");DD0=new _.dk("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.ZF=new _.dk("PERSISTENT_PANEL_CONTROLLER_TOKEN");var GRl=_.CJ("DOWNLOAD",{},"Download"),Ryg=_.CJ("DOWNLOADING",{},"Downloading"),vZ9=_.CJ("DOWNLOADED",{},"Downloaded"),JSt=_.CJ("RETRY",{},"Retry");var UDX=_.q(function(N){var t=O2N,O=function(){return""},H=oZO(N.data),A=sKg(N.data),Z=NCN(N.data),U=tjy(N.data);
t=function(){var C=N.data(),F=mkO(C,H(),A(),Z(),U()),g=!!C.videoId,B=F.text;return{title:g?B:void 0,tooltip:g?void 0:B,accessibilityText:B,onTap:F.onTap,iconName:F.iconType,style:C.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:F.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:C.buttonSize}};
O={};O=_.V7("ytDownloadButtonViewModelHost",(O.ytDownloadButtonViewModelIsHidden=function(){var C=N.data(),F=U();return C.playlistId||F()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||F()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},O));
return _.d("download-button-view-model",{class:O},_.d(_.Pu,{data:t}))},"ia");
UDX.idomCompat=!0;var FMS=new _.dk("SUBMIT_API_SERVICE_TOKEN");var Uhv,Cay,dh4={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var aLG=new _.dk("RENDERER_LOGGER_TOKEN");var pQv=new _.dk("RENDERER_STAMPER_OPTIONS_TOKEN");var yav;_.jp=new u_R;yav=new Map;var LMS="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),Y54=["notificationTextRenderer","notificationMultiActionRenderer"],
zTv="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),b2g=BCp(function(N){return _.Qo(N==null?void 0:N.targetId)}).useUpdatableData;var Mj4=0;_.iF.debugName="EjJbCe";var Cou=_.q(function(N){var t=N.data;N=N.className;_.lf(function(){t().formId||_.R0(Error("Ch"))});
var O=_.DhQ(function(){return t().formId},function(){return t().beforeSubmitCommand},function(){return t().afterSubmitCommand}),H=O.submitForm,A=O.isValid,Z=O.isSubmitting,U=function(){return{state:t().isDisabled||!A()||Z()?"disabled":"active"}};
return _.d("yt-submit-button-view-model",{class:_.V7("ytSubmitButtonViewModelHost",N)},_.d(_.iF,{data:function(){return t().button}},{buttonViewModel:function(C){return _.d(_.Pu,{data:C.data,
buttonOverrides:U,onClick:H})}}))},"la");var FE0=_.q(function(N){var t=N.backgroundLottieRef;var O=N.foregroundLottieRef;var H=N.children;var A=N.wrapperClass;var Z=N.disableAnimation;N=function(){return(_.h("web_animated_actions")||_.h("web_animated_actions_v2"))&&!(Z==null?0:Z())};
return _.d("yt-animated-action",{class:_.V7("ytAnimatedActionHost",A)},_.d("div",{class:"ytAnimatedActionContentWithBackground"},_.d(_.y,{cond:N,then:function(){return _.d(KEB,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:t==null?void 0:t(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(TCt()?"dark":"light")+"_v5.json"}}}})}}),H),_.d(_.y,{cond:N,
then:function(){return _.d(KEB,{lottiePlayerProps:function(){return{animationRef:O==null?void 0:O(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(TCt()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
FE0.idomCompat=!0;var KEB=_.q(function(N){var t=N.wrapperClass;var O=N.lottieClass;var H=N.lottiePlayerProps;return _.d("div",{class:_.V7("ytAnimatedActionLottie",t),"aria-hidden":"true"},_.d(_.rd,{className:O,data:H,animationName:function(){return H().animationConfig.name}}))},"na");var wQt={isOpen:!1};var PaQ={isAllowed:!1};var xhM={errorMessage:"",title:"",privacy:"",isDisabled:!0};var q5p={isOpen:!1};var not={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var dDS={response:void 0};var ray=function(N,t){N=N===void 0?dDS:N;switch(t.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},N,{response:t.payload});default:return N}};var g$Z={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var ILz=function(N,t){N=N===void 0?g$Z:N;switch(t.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},N,{nextDisabled:t.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},N,{nextCommand:t.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},N,{footerSubmissionData:t.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},N,{isImpersonationValid:t.payload});default:return N}};var yZB={reportFormData:void 0,reportDetailsFormData:void 0};var lLO=function(N,t){N=N===void 0?yZB:N;switch(t.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},N,{reportFormData:t.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},N,{reportDetailsFormData:t.payload});default:return N}};var BL0=void 0;_.h("mweb_enable_redux_store_on_demand")||(BL0=new RJ(Q4t()));var VH=_.h("enable_web_delhi_icons");var cZZ=_.q(function(N){N=_.RH(N,{themeOverride:void 0,animationRef:{}});var t=N.animatedIconType,O=N.active,H=N.themeOverride,A=N.animationRef;N=N.staticIconFn;var Z=_.D(_.b$(void 0,void 0,"l48agc")),U=Z.next().value,C=Z.next().value,F=function(){a:{var w=t();var P=H==null?void 0:H();var x;P=(P==null?void 0:P.useDarkTheme)||((x=_.cY().resolve(_.BY(_.WV)))==null?void 0:x());switch(w){case "LIKE":BL0||(BL0=new RJ(Q4t()));w=(w=jeQ(BL0.getState()))&&w.animationLightUrl&&w.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:P?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:P?w.animationDarkUrl:w.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(w){P=w;break a}P="animated_like_icon_"+(P?"dark":"light")+"_"+(VH?"v5":"v4");P={lottiePlayerProps:{animationConfig:{name:P,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+P+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(VH?" animated-like-icon-delhi":"")}}},totalFrames:VH?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":P={lottiePlayerProps:{animationConfig:{name:P?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(P?"dark":"light")+(VH?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(VH?" animated-subscribe-icon-delhi":"")}}},totalFrames:VH?120:79,lazyLoad:!1};break a}P=
void 0}return P},g=function(){var w,P;
return(P=(w=F())==null?void 0:w.lottiePlayerProps.animationConfig.name)!=null?P:""},B=function(){if(F()){var w=F().lottiePlayerProps.animationConfig.path;
return S9.get(w)||U()}};
Z=_.D(_.b$(!1,void 0,"sDrGId"));var c=Z.next().value;Z=Z.next().value;var u=Eoz(Z),S=function(){var w=F(),P,x,l;return(l=w==null?void 0:(P=w.lottiePlayerProps.animationConfig)==null?void 0:(x=P.rendererSettings)==null?void 0:x.className)!=null?l:""},b=void 0,z=void 0;
_.rp(function(){var w=F(),P=g(),x=B(),l=c(),I=O();if(w&&(z!==P&&(z=P,b=I,P=A(),u.animationConfig=w.lottiePlayerProps.animationConfig,u.animationRef=P,x&&(u.animationConfig.animationData=x,u.animationConfig.path=void 0),P=w.lottiePlayerProps.animationConfig.path,!S9.get(P)&&w.lazyLoad&&P&&mhS(P,C)),!(l||w.lazyLoad&&!x))){if(x=!A().lottieEl)I?(l=w.totalFrames,u.animationConfig.initialSegment=[l-1,l]):u.animationConfig.initialSegment=void 0;if(b!==I&&!x)if(x=A(),I){var r;(r=x.lottieEl)==null||r.playSegments([0,
w.totalFrames],!0)}else{var E;(E=x.lottieEl)==null||E.playSegments([0,1],!0)}b=I}},"RQVZ1d");
return _.d("animated-icon",{class:"ytAnimatedIconHost"},_.d(_.y,{cond:function(){var w,P;return!((w=F())==null||!w.lottiePlayerProps.animationConfig.path||((P=F())==null?0:P.lazyLoad)&&!B()||c())},
then:function(){return _.d(_.rd,{data:u,animationName:g,className:S,animationRef:A})},
else:N}))},"pa");_.DF=_.q(function(N){var t=_.Fy("yt-subscribe-button-view-model"),O=_.Fy("div"),H=_.Fy("div"),A=_.dZ(),Z=_.dZ(),U=_.dZ(),C=_.cz(Jag,function(){return N.data().stateEntityStoreKey}),F=_.cz(ooQ,function(){var sS,$X;
return($X=(sS=N.data().notificationStateEntityStoreKeys)==null?void 0:sS.subsNotificationStateKey)!=null?$X:""}),g=function(){return!N.data().enableSubscribeButtonPostClickAnimation},B=_.D(_.b$(0,void 0,"YtsSKb")),c=B.next().value,u=B.next().value;
B=_.D(_.b$(0,void 0,"V6JxRe"));var S=B.next().value,b=B.next().value;B=_.D(_.b$(!1,void 0,"JUCSZ"));var z=B.next().value,w=B.next().value;B=_.D(_.b$(!1,void 0,"oV6jwf"));var P=B.next().value,x=B.next().value;B=_.D(_.b$(!1,void 0,"hK1Whe"));var l=B.next().value,I=B.next().value,r;B=_.D(_.b$(!1,void 0,"Asaolf"));var E=B.next().value,J=B.next().value,CN=function(){x(!0);_.MU(_.GB,function(){x(!1)},1500)};
_.rp(function(){var sS=P();_.MY(function(){sS&&!g()&&C()&&Fzt(A,Z,U)})},"Qq6Hsf");
_.rp(function(){var sS=C();_.MY(function(){if(!g()&&sS){var $X;(($X=N.animateWidth)==null?0:$X.call(N))&&Kzl(t.value,!!sS.subscribed,c(),S());var pR,wf;((pR=r)==null?0:pR.subscribed)||!sS.subscribed||sS.key!==((wf=r)==null?void 0:wf.key)||CN();r=sS}})},"hog8te");
B=_.aa(function(){var sS,$X,pR,wf=N.data(),b1=!((sS=C())==null||!sS.subscribed);sS=!(($X=N.isOverlay)==null||!$X.call(N));$X=z()?t:void 0;var $r=(pR=F())==null?void 0:pR.state;pR=E();Cz4(wf,$r);return vov({model:wf,subscribed:b1,isOverlay:sS,element:$X,notificationState:$r,disableTextEllipsis:!0,focused:pR})},void 0,"hc1PRd");
var B4=function(){var sS;if(!g()&&((sS=N.animateWidth)==null?0:sS.call(N))&&(O==null?0:O.value)&&(H==null?0:H.value)&&!l()){sS=C();var $X=_.D((sS==null?0:sS.subscribed)?[O,H]:[H,O]),pR=$X.next().value;$X=$X.next().value;pR=Math.ceil(pR.value.getBoundingClientRect().width);$X=Math.ceil($X.value.getBoundingClientRect().width);u(pR);b($X);Kzl(t.value,!(sS==null||!sS.subscribed),pR,$X);I(!0)}},zM=_.Ui(function(sS){B4();
var $X=C();$X&&(sS.detail.endpoint.subscribeEndpoint||sS.detail.endpoint.unsubscribeEndpoint)&&V$v(t.value,!$X.subscribed,$X)}),jy=function(){var sS=_.cY().resolve(_.BY(_.z6));
sS&&J(sS.isKeyBoardInUse())},c4=function(){J(!1)};
_.K9("yt-player-subscribe",function(sS){var $X=C();$X&&sS===N.data().channelId&&V$v(t.value,!0,$X)});
_.K9("yt-player-unsubscribe",function(sS){var $X=C();$X&&sS===N.data().channelId&&V$v(t.value,!1,$X)});
_.K9("yt-update-subscribe-button-action",function(sS){sS=_.M(sS,AVS);var $X=C();$X&&sS&&sS.channelId===N.data().channelId&&V$v(t.value,!!sS.subscribed,$X)});
_.Q8(function(){t.value&&(t.value.addEventListener("focusin",jy),t.value.addEventListener("focusout",c4));var sS=_.WX(_.GB,function(){B4()});
w(!0);_.Ia(function(){_.GB.cancelJob(sS);t.value&&(t.value.removeEventListener("focusin",jy),t.value.removeEventListener("focusout",c4))})});
var XO=function(){var sS,$X,pR;if(pR=!((sS=C())==null||!sS.subscribed))sS=!!N.data().disableNotificationBell,pR=($X=F())==null?void 0:$X.state,pR=!sS&&!!pR;return pR},kx=function(){var sS;
return!((sS=C())==null?0:sS.subscribed)},fN=function(){var sS,$X;
if($X=kx()){$X=!!N.data().disableNotificationBell;var pR=(sS=F())==null?void 0:sS.state;$X=!$X&&!!pR}return $X},gf={},yr={};
return _.d("yt-subscribe-button-view-model",{class:_.V7(N.className,"ytSubscribeButtonViewModelHost",(gf.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var sS,$X;return!((sS=C())==null||!sS.subscribed)&&(($X=N.animateWidth)==null?void 0:$X.call(N))&&P()},gf.ytSubscribeButtonViewModelHostHidden=function(){var sS;
return!((sS=C())==null?0:sS.subscribed)&&N.data().hideWhenUnsubscribed},gf)),
el:t,"on:yt-service-request-sent":zM},_.d(FE0,{backgroundLottieRef:A,foregroundLottieRef:Z,wrapperClass:_.V7("ytSubscribeButtonViewModelAnimatedActionWrapper",(yr.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var sS;return((sS=N.animateWidth)==null?void 0:sS.call(N))&&P()},yr.ytSubscribeButtonViewModelStaticWidth=function(){var sS;
return!((sS=N.animateWidth)==null?0:sS.call(N))},yr)),
disableAnimation:g},_.d("div",{el:O,class:"ytSubscribeButtonViewModelContainer"},_.d(_.et,{data:B,icon:function(){return _.d(_.y,{cond:XO,then:function(){var sS=function(){var $X;return ZK4(($X=F())==null?void 0:$X.state)};
return _.d(_.y,{cond:function(){return g()||sS()!=="NOTIFICATIONS_NONE"},
then:function(){return _.d(_.dq,{icon:sS})},
else:function(){return _.d(cZZ,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:U})}})}})},
secondaryIconName:function(){return XO()?"EXPAND":void 0}}))),_.d("div",{el:H,
class:"ytSubscribeButtonViewModelInvisible"},_.d(_.y,{cond:function(){var sS;return((sS=N.animateWidth)==null?void 0:sS.call(N))&&!g()&&!l()},
then:function(){return _.d(_.et,{data:_.aa(function(){var sS;return vov({model:N.data(),subscribed:kx(),isOverlay:!((sS=N.isOverlay)==null||!sS.call(N)),element:t,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var sS;return fN()?ZK4((sS=F())==null?void 0:sS.state):void 0},
secondaryIconName:function(){return fN()?"EXPAND":void 0}})}})))},"sa");
_.DF.idomCompat=!0;var $DY=_.q(function(N){var t=N.data;var O=_.cz(Jag,function(){return t().subscriptionStateEntityKey});
return _.d(_.y,{cond:function(){var H=t(),A=O();return!H.hideWhenUnsubscribed||(A==null?0:A.subscribed)?_.M(t().button,_.$9):void 0},
then:function(H){return _.d("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.d(_.Pu,{data:H,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
$DY.idomCompat=!0;var js0,Uf;js0=_.q(function(N){return _.d(_.iF,{data:function(){return N.actionRow().actions}},{buttonViewModel:function(t){var O=t.data;
return _.d(Uf,{isRow:N.isRow,isIconOnlyButton:function(){return dxz(O())},
useIntrinsicWidth:N.useIntrinsicWidth},_.d(_.Pu,{data:O}))},
subscribeButtonViewModel:function(t){return _.d(Uf,{isRow:N.isRow},_.d(_.DF,{data:t.data,isOverlay:!1,animateWidth:function(){return!N.isRow()}}))},
downloadButtonViewModel:function(t){var O=t.data;return _.d(Uf,{isRow:N.isRow,isIconOnlyButton:function(){return!!O().playlistId}},_.d(UDX,{data:O}))},
submitButtonViewModel:function(t){var O=t.data;return _.d(Uf,{isRow:N.isRow,isIconOnlyButton:function(){var H=O();return dxz(_.M(H==null?void 0:H.button,_.$9))}},_.d(Cou,{data:O}))},
toggleButtonViewModel:function(t){var O=t.data;return _.d(Uf,{isRow:N.isRow,isIconOnlyButton:function(){var H=O();return dxz(_.M(H.isToggled?H.toggledButtonViewModel:H.defaultButtonViewModel,_.$9))}},_.d(_.N3,{data:O}))},
subscribePlusButtonViewModel:function(t){return _.d(Uf,{isRow:N.isRow},_.d($DY,{data:t.data}))}})},"ua");
Uf=_.q(function(N){var t={};return _.d("div",{class:_.V7("ytFlexibleActionsViewModelAction",(t.ytFlexibleActionsViewModelActionRowAction=N.isRow,t.ytFlexibleActionsViewModelActionIntrinsicWidth=N.useIntrinsicWidth,t.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,t.ytFlexibleActionsViewModelActionIconOnlyButton=N.isIconOnlyButton,t))},N.children)},"va");
_.Co=_.q(function(N){var t=function(){var H;return((H=N.layout)==null?void 0:H.call(N))===1},O={};
return _.d("yt-flexible-actions-view-model",{class:_.V7("ytFlexibleActionsViewModelHost",N.className,(O.ytFlexibleActionsViewModelInline=function(){return!t()},O.ytFlexibleActionsViewModelScrollable=function(){return N.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},O))},_.d(_.nL,{each:function(){return N.data().actionsRows||[]}},function(H){return _.d(_.y,{cond:t,
then:function(){return _.d("div",{class:"ytFlexibleActionsViewModelActionRow"},_.d(js0,{actionRow:H,isRow:t,useIntrinsicWidth:function(){return!!N.data().respectActionIntrinsicWidth}}))},
else:function(){return _.d(js0,{actionRow:H,isRow:t})}})}))},"wa");_.o_(_.Co,"yt-flexible-actions-view-model",{props:{data:_.$O,layout:_.$O,justifyContentOverride:_.$O,className:_.$O}});_.Ko=_.q(function(N){var t=_.cz(e9,function(){var A;return(A=N.data().dislikeEntityKey)!=null?A:""}),O=_.aa(function(){var A=t();
return A?A.likeStatus==="DISLIKE":_.M(N.data().toggleButtonViewModel,_.iA).isToggled},void 0,"fNr9he"),H=_.aa(function(){return Object.assign({},_.M(N.data().toggleButtonViewModel,_.iA),{isToggled:O()})},void 0,"AezoCc");
return _.d("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.d(_.N3,{data:H,buttonShapeOverrides:N.buttonShapeOverrideables,onToggle:function(A){var Z=t();Z&&A!==(Z.likeStatus==="DISLIKE")&&Z.key&&_.E6(_.aE("likeStatusEntity",Z.key,{likeStatus:A?"DISLIKE":"INDIFFERENT",hadUserInteraction:A}))}}))},"xa");
_.Ko.idomCompat=!0;_.Fl=_.q(function(N){var t=_.h("web_supports_animations_api"),O=bPG(function(u){var S=g();if(!u){var b,z;return{numberText:(z=S==null?void 0:(b=S.likeCountIfIndifferent)==null?void 0:b.content)!=null?z:"",numberValue:Number(S==null?void 0:S.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var w;b=(S==null?void 0:(w=S.likeCountIfIndifferent)==null?void 0:w.content)!==u.numberText;if(C()||!b)return u;var P;return{numberText:(S==null?void 0:(P=S.likeCountIfIndifferent)==null?void 0:P.content)||
"",numberValue:Number(S==null?void 0:S.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!S}}),H=bPG(function(u){var S=g();
if(!u){var b,z;return{numberText:(z=S==null?void 0:(b=S.likeCountIfLiked)==null?void 0:b.content)!=null?z:"",numberValue:Number(S==null?void 0:S.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var w;b=(S==null?void 0:(w=S.likeCountIfIndifferent)==null?void 0:w.content)!==u.numberText;if(C()||!b)return u;var P;return{numberText:(S==null?void 0:(P=S.likeCountIfLiked)==null?void 0:P.content)||"",numberValue:Number(S==null?void 0:S.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!S}}),A=_.D(_.b$(void 0,
void 0,"xYSlUe")),Z=A.next().value,U=A.next().value,C=Z,F=_.cz(e9,function(){var u,S;
return(S=(u=N.data())==null?void 0:u.likeStatusEntityKey)!=null?S:""}),g=_.cz(O4l,function(){var u,S;
return((u=N.likeCountEntity)==null?void 0:(S=u.call(N))==null?void 0:S.key)||""}),B=_.aa(function(){var u;
return((u=F())==null?void 0:u.likeStatus)==="LIKE"},void 0,"DG5Osd"),c=function(){var u;
return t&&!((u=N.likeCountEntity)==null||!u.call(N))};
return _.d("like-button-view-model",{class:_.V7("ytLikeButtonViewModelHost",N.className)},_.d(_.N3,{data:function(){var u=Object,S=u.assign,b;var z=_.M((b=N.data())==null?void 0:b.toggleButtonViewModel,_.iA);return S.call(u,{},z||{},{isToggled:B()})},
buttonShapeOverrides:N.buttonShapeOverrideables,animatedTextPropsDefault:function(){return c()?O():void 0},
animatedTextPropsToggled:function(){return c()?H():void 0},
onToggle:function(u){g0O(u,F(),C(),U)},
style:function(){var u;return((u=N.disableIconAnimation)==null?0:u.call(N))?void 0:{animateIcon:"true"}}}))},"ya");
_.Fl.idomCompat=!0;var iwZ=_.q(function(N){var t=function(){return _.M(N.data().likeButtonViewModel,_.Dh)},O=function(){var A;
return((A=t())==null?void 0:A.likeStatusEntityKey)||""},H=_.aa(function(){var A,Z;
var U=(Z=_.cz(e9,O)())!=null?Z:(A=t())==null?void 0:A.likeStatusEntity;A=N.data();var C;A=(A==null?void 0:(C=A.timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:"like-dislike",timings:A,enabled:(U==null?void 0:U.likeStatus)==="INDIFFERENT"&&A.length>0,experimentEnabled:A.length>0}},void 0,"zZ3GQb");
return _.d("segmented-like-dislike-button-view-model",{class:_.V7("ytSegmentedLikeDislikeButtonViewModelHost",N.className),"button-renderer":!0},_.d(tIR,{settings:H},_.d("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.d(_.y,{cond:t,then:function(A){return _.d(_.Fl,{data:A,likeCountEntity:function(){return N.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.h("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.d(_.y,{cond:function(){return _.M(N.data().dislikeButtonViewModel,_.V2)},
then:function(A){return _.d(_.Ko,{data:A,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
iwZ.idomCompat=!0;_.o_(iwZ,"segmented-like-dislike-button-view-model",{props:{data:_.$O,className:_.$O}});var uwa=_.q(function(N){var t=N.data;var O=N.className;var H=N.setMinWidth;var A=N.forceIconOnly;var Z=_.Fy("account-link-button-view-model"),U=_.cz(_.yW9,function(){var u;return(u=t().accountLinkStatusEntityKey)!=null?u:""}),C=_.cz(_.yW9,function(){var u;
return(u=t().accountLinkStatusSecondaryEntityKey)!=null?u:""}),F=function(){if(!_.h("web_account_link_secondary_killswitch")){var u,S;
return((u=U())==null?void 0:u.linked)||((S=C())==null?void 0:S.linked)}var b;return(b=U())==null?void 0:b.linked};
_.rp(function(){var u=U();if(u){var S=eR0(new wsu,ahX(new Yna,!!u.linked));_.Kx().then(function(b){b&&(b.setAccountLinkState(_.wi(S.JSC$12473_serializeBinary(),4)),b.updateAccountLinkingConfig(!!u.linked))})}},"IvZF7");
var g=function(){return _.M(t().toggleButtonViewModel,_.iA)};
_.K9("yt-signal-action-show-account-link-dialog",function(){if(g()){var u=F()?g().toggledButtonViewModel:g().defaultButtonViewModel;u=_.M(u,_.$9);var S;if((S=U())==null?0:S.isWarning){S=_.M(t().warningButtonViewModel,_.$9);if(!S){_.HY(Error("Dh"));return}u=S}var b;(S=_.wF((b=u)==null?void 0:b.onTap))&&_.Za([S],Z.value)}else _.HY(Error("Eh"))});
var B=function(){var u=g();return Object.assign({},u,{isToggled:F()})},c=function(){return(A==null?0:A())?{iconPosition:"icon-only"}:{}};
return _.d("account-link-button-view-model",{class:_.V7("ytwAccountLinkButtonViewModelHost",O,function(){return(H==null?0:H())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:Z,"button-renderer":!0},_.d("div",null,_.d(_.y,{cond:function(){var u;if((u=U())==null?0:u.isWarning)return(u=_.M(t().warningButtonViewModel,_.$9))||_.HY(Error("Dh")),u},
then:function(u){return _.d(_.Pu,{data:u,buttonOverrides:c})},
else:function(){return _.d(_.N3,{data:B,buttonShapeOverrides:c})}})))},"Ba");_.o_(uwa,"account-link-button-view-model",{props:{data:_.$O,className:_.R_,setMinWidth:_.R_,forceIconOnly:_.R_}});_.pE("menuRenderer","menuRenderer","ytd-menu-renderer");
var SOX={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"}},
hBZ=_.h("web_fix_missing_action_buttons")?100:200,dM=function(){var N=_.k.apply(this,arguments)||this;N.safeArea=!_.h("kevlar_flex_menu_safe_area_killswitch");N.tonalOverride=!1;N.threeDotSize="M";N.isOverlay=!1;N.useOverlayDark=!1;N.topLevelIconsOnly=!1;N.JSC$14917_lastWidth=0;N.maybeUpdateFlexibleMenu=function(){_.h("web_fix_missing_action_buttons")?requestAnimationFrame(N.maybeUpdateFlexibleMenuImpl):N.maybeUpdateFlexibleMenuImpl()};
N.maybeUpdateFlexibleMenuImpl=function(){var t;if((t=N.data)!=null&&t.flexibleItems){N.maybeFlushDebouncer();t=N.hostElement.clientWidth;var O=t>N.JSC$14917_lastWidth,H,A=((H=N.topLevelButtonsContainer)==null?void 0:H.scrollHeight)||0,Z;H=((Z=N.flexibleItemButtonsContainer)==null?void 0:Z.scrollHeight)||0;Z=N.hostElement.scrollHeight>Math.max(A,H)+8;O?(N.resetFlexibleItems(),N.JSC$14917_lastWidth=N.hostElement.clientWidth,N.maybeUpdateFlexibleMenu()):Z&&(N.shrinkFlexibleMenu(),N.JSC$14917_lastWidth=
t)}};
N.computeThreeDotButtonShape=function(){if(N.tonalOverride)return Object.assign({},{onTap:function(){N.onOverflowTap()},
iconPosition:"icon-only",style:N.isOverlay?N.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:N.threeDotSize,state:"active",accessibilityLabel:N.computeAccessibilityLabel(N.data)},N.threeDotButtonOverride)};
N.onOverflowTap=function(){if(N.data.fetchMenuCommand)_.cY().resolve(_.jo).resolveCommand(N.data.fetchMenuCommand,{form:{element:N.hostElement}});else if(N.data.isDisabled&&N.data.disabledCommand)_.CC(N.data.disabledCommand,N.hostElement);else{var t=N.createMenuRendererVe(),O={items:N.items};N.data.menuPopupAccessibility&&(O.menuPopupAccessibility=N.data.menuPopupAccessibility);N.data.footer&&(O.footer=N.data.footer);t={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:O},veData:t}};
_.cY().resolve(_.HD).openSheet({openPopupActionCommand:t},N.hostElement)}};
return N};
_.p(dM,_.k);_.V=dM.prototype;_.V.updateButtonOverrides=function(){if(!_.h("menu_renderer_label_update_upkillswitch")){var N=_.O6(this.hostElement).querySelector("yt-button-view-model");N&&(N.buttonOverrides=this.buttonOverrides)}};
_.V.computeHasItems=function(){var N;return((N=this.topLevelButtonData)==null?void 0:N.length)||this.hasFlexibleItems};
_.V.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.V.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.CO(this.hostElement,{"--ytd-menu-renderer-button-color":_.aI(this.data.iconColor)}))};
_.V.onStamperFinished=function(){this.JSC$14917_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.V.setupFlexibleMenu=function(){var N=this,t;(t=this.data)!=null&&t.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.KE(this.maybeUpdateFlexibleMenu,hBZ,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){N.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.V.maybeFlushDebouncer=function(){if(_.h("web_replace_formatted_with_attributed_string")){var N;(N=this.topLevelButtons)==null||N.forEach(function(O){var H;(O=(H=O.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0])&&$Xp(O)});
var t;(t=this.flexibleItemButtons)==null||t.forEach(function(O){var H;(O=(H=O.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0])&&$Xp(O)})}};
_.V.resetFlexibleItems=function(){var N;if((N=this.data)!=null&&N.flexibleItems){_.h("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var t;this.flexAsTopLevelButtons=(t=this.data.flexibleItems)==null?void 0:t.map(function(O){return _.M(O,_.FSX).topLevelButton});
_.h("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.V.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.V.shrinkFlexibleMenu=function(){var N;(N=this.flexAsTopLevelButtons)!=null&&N.length&&(this.flexAsTopLevelButtons=[].concat(_.W6(this.flexAsTopLevelButtons.slice(0,-1))))};
_.V.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:SOX,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:SOX,events:!0}}};
_.V.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.V.detached=function(){this.icon="MORE_VERT"};
_.V.computeTopLevelButtonData=function(N){if(!N)return[];var t;N=(t=N==null?void 0:N.topLevelButtons)!=null?t:[];return _.WW.unsafeClone([].concat(_.W6(N)))};
_.V.computeItems=function(N,t){if(!N)return[];var O=[];if(t){var H=(N.flexibleItems||[]).map(function(U){return _.M(U,_.FSX)});
H=_.D(H);for(var A=H.next();!A.done;A=H.next())A=A.value,t.includes(A.topLevelButton)||(A=A.menuItem)&&O.push(A)}var Z;N=(Z=N==null?void 0:N.items)!=null?Z:[];return[].concat(_.W6(O),_.W6(N))};
_.V.computeMenuActive=function(N,t){return N||t};
_.V.onPopupOpened=function(){this.overlayOpen=!0;_.or(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.V.onPopupClosed=function(){this.overlayOpen=!1;_.or(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.onPopupCanceled=function(){this.overlayOpen=!1;_.or(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.V.computeAccessibilityLabel=function(N){return this.get("accessibility.accessibilityData.label",N)};
_.V.isHidden=function(N,t){return this.tonalOverride||!N?!0:N.fetchMenuCommand||N.isDisabled&&N.disabledCommand?!1:!(t==null?0:t.length)};
_.V.isModernOverflowHidden=function(N,t){return this.tonalOverride&&N?N.fetchMenuCommand?!1:!(t==null?0:t.length):!0};
_.V.createMenuRendererVe=function(){var N=this.data.trackingParams,t=_.z8(),O=_.pv();return N&&t&&O?(N=_.ib(N),O=_.UM(7591),_.h("combine_ve_grafts")?_.r_(_.gF(),O,N):_.qp(t,N,O),O):null};
_.cv.Object.defineProperties(dM.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.flexAsTopLevelButtons)==null||!N.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
dM.prototype.onPopupCanceled=dM.prototype.onPopupCanceled;dM.prototype.onPopupClosed=dM.prototype.onPopupClosed;dM.prototype.onPopupOpened=dM.prototype.onPopupOpened;dM.prototype.tonalOverrideChanged=dM.prototype.tonalOverrideChanged;dM.prototype.resetFlexibleItems=dM.prototype.resetFlexibleItems;dM.prototype.setupFlexibleMenu=dM.prototype.setupFlexibleMenu;dM.prototype.iconButtonColorChanged=dM.prototype.iconButtonColorChanged;dM.prototype.updateButtonOverrides=dM.prototype.updateButtonOverrides;
_.W([_.Y(_.LX),_.Q("design:type",Object)],dM.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("#button-shape"),_.Q("design:type",HTMLElement)],dM.prototype,"buttonShape",void 0);_.W([_.B2("#button"),_.Q("design:type",Object)],dM.prototype,"button",void 0);
_.W([_.X(),_.Q("design:type",Object)],dM.prototype,"data",void 0);_.W([_.X({computed:"computeTopLevelButtonData(data)"}),_.Q("design:type",Array)],dM.prototype,"topLevelButtonData",void 0);_.W([_.X(),_.Q("design:type",Array)],dM.prototype,"flexAsTopLevelButtons",void 0);_.W([_.X({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Q("design:type",Array)],dM.prototype,"items",void 0);_.W([_.X({value:"MORE_VERT"}),_.Q("design:type",String)],dM.prototype,"icon",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],dM.prototype,"safeArea",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Q("design:type",Boolean)],dM.prototype,"menuActive",void 0);_.W([_.X(),_.Q("design:type",Boolean)],dM.prototype,"menuFocused",void 0);_.W([_.X({value:"bottom"}),_.Q("design:type",String)],dM.prototype,"buttonTooltipPosition",void 0);_.W([_.X(),_.Q("design:type",Boolean)],dM.prototype,"overlayOpen",void 0);
_.W([_.X({value:!0}),_.Q("design:type",Boolean)],dM.prototype,"forceIconButton",void 0);_.W([_.X(),_.Q("design:type",Boolean)],dM.prototype,"styleActionButton",void 0);_.W([_.X(),_.Q("design:type",Boolean)],dM.prototype,"disableTextTransformOnButtons",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],dM.prototype,"tonalOverride",void 0);_.W([_.X(),_.Q("design:type",Object)],dM.prototype,"threeDotSize",void 0);
_.W([_.X(),_.Q("design:type",Object)],dM.prototype,"threeDotButtonOverride",void 0);_.W([_.X(),_.Q("design:type",Object)],dM.prototype,"isOverlay",void 0);_.W([_.X(),_.Q("design:type",Object)],dM.prototype,"useOverlayDark",void 0);_.W([_.X({computed:"computeButtonOverride(tonalOverride)"}),_.Q("design:type",Object)],dM.prototype,"buttonOverride",void 0);_.W([_.X(),_.Q("design:type",Boolean)],dM.prototype,"minimizePipBreakages",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],dM.prototype,"hasCustomIconColor",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("flexAsTopLevelButtons"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dM.prototype,"hasFlexibleItems",null);_.W([_.X({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Q("design:type",Boolean)],dM.prototype,"hasItems",void 0);_.W([_.X(),_.Q("design:type",Object)],dM.prototype,"topLevelIconsOnly",void 0);
_.W([_.gz("topLevelIconsOnly"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dM.prototype,"updateButtonOverrides",null);_.W([_.a("topLevelIconsOnly"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dM.prototype,"buttonOverrides",null);_.W([_.B2("#top-level-buttons-computed"),_.Q("design:type",HTMLElement)],dM.prototype,"topLevelButtonsContainer",void 0);_.W([_.c2(".top-level-buttons > *"),_.Q("design:type",Array)],dM.prototype,"topLevelButtons",void 0);
_.W([_.B2("#flexible-item-buttons"),_.Q("design:type",HTMLElement)],dM.prototype,"flexibleItemButtonsContainer",void 0);_.W([_.c2("#flexible-item-buttons > *"),_.Q("design:type",Array)],dM.prototype,"flexibleItemButtons",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dM.prototype,"iconButtonColorChanged",null);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dM.prototype,"setupFlexibleMenu",null);_.W([_.ic("topLevelIconsOnly"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dM.prototype,"resetFlexibleItems",null);_.W([_.gz("tonalOverride"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dM.prototype,"tonalOverrideChanged",null);
_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dM.prototype,"onPopupOpened",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dM.prototype,"onPopupClosed",null);_.W([_.dz("yt-popup-canceled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dM.prototype,"onPopupCanceled",null);
_.n(dM,"ytd-menu-renderer",function(){if(WzS===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);WzS=N}N=WzS;return N},{mode:2});var MI_;var bwQ;_.gM=_.q(function(N){var t=N.data;var O=function(){if(t().icon)a:{var A={iconName:t().icon};for(var Z=_.cY().resolve(_.D5),U=_.D([12,24]),C=U.next();!C.done;C=U.next()){var F=C.value;C=Object.assign({},A,{iconStyle:"youtube_fill",iconSize:F});F=Object.assign({},A,{iconStyle:"youtube_outline",iconSize:F});if(Z.resolveIcon(C)){A=C;break a}if(Z.resolveIcon(F)){A=F;break a}}A=void 0}else A=void 0;return A};
N={};var H={};return _.d("badge-shape",{class:_.V7("yt-badge-shape",function(){return uES(t().type)},(N["yt-badge-shape--overlay"]=function(){return t().isOverlay},N["yt-badge-shape--ads-include-dot"]=function(){return t().adsIncludeDot},N["yt-badge-shape--thumbnail-badge"]=function(){a:switch(t().type){case 17:case 18:case 19:var A=!0;
break a;default:A=!1}return A},N["yt-badge-shape--status-badge"]=function(){a:switch(t().type){case 12:case 13:case 14:case 15:case 16:var A=!0;
break a;default:A=!1}return A},N["yt-badge-shape--no-text"]=function(){return!t().text},N["yt-badge-shape--modern"]=function(){return t().modern||_.h("web_modern_badge_shape")},N)),
style:_.FM({"background-color":function(){var A;return(A=t().customColors)==null?void 0:A.backgroundColor}}),
role:function(){return t().accessibilityText?"img":void 0},
"aria-label":function(){return t().accessibilityText}},_.d(_.y,{cond:function(){return t().animation},
then:function(A){return _.d(_.rd,{className:"yt-badge-shape__icon",data:A,animationName:function(){return A().animationConfig.name||""}})}}),_.d(_.y,{cond:function(){var A;
return O()&&!((A=t())==null?0:A.animation)},
then:function(){return _.d("div",{class:"yt-badge-shape__icon"},_.d(_.h4,{data:function(){return O()}}))}}),_.d("div",{class:_.V7("yt-badge-shape__text",(H["yt-badge-shape__text--clip-text-overflow"]=function(){return t().clipTextOverflow},H["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(t().numBadgesInRow||0)>1},H))},function(){var A;
return(A=t())==null?void 0:A.text}))},"Ca");
_.gM.idomCompat=!0;_.o_(_.gM,"badge-shape",{props:{data:_.$O}});var yH=function(){var N=_.k.apply(this,arguments)||this;N.systemIcons=_.h("kevlar_system_icons");N.animated=_.h("animated_live_badge_icon");N.useBadgeShape=_.h("web_badge_shape_defrag");return N};
_.p(yH,_.k);_.V=yH.prototype;_.V.addTooltips=function(){for(var N=_.O6(this.hostElement).querySelectorAll(".badge"),t=0,O;O=N[t++];){var H=this.repeatElement.itemForElement(O);O=_.O6(O);O.lastChild&&O.lastChild.is==="tp-yt-paper-tooltip"&&O.removeChild(O.lastChild);if(H=H.metadataBadgeRenderer&&H.metadataBadgeRenderer.tooltip){var A=_.MF("tp-yt-paper-tooltip");(0,_.U6)(A).textContent=H;A.setAttribute("position","top");A.setAttribute("aria-hidden","true");O.appendChild(A)}}};
_.V.badgesChanged=function(){var N=this;_.iI().parkOrScheduleJob(function(){N.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.V.standaloneRoundedBadgeChanged=function(){var N=this.useRoundedBadge?this.useRoundedBadge:void 0;N&&(this.useRoundedBadge=N)};
_.V.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.V.computeStyle=function(N){_.h("enable_html5_teal_ad_badge")&&N==="BADGE_STYLE_TYPE_AD"&&(N="badge-style-type-ad-alternate");_.h("kevlar_ytb_live_badges")&&N==="BADGE_STYLE_TYPE_LIVE_NOW"&&(N="badge-style-type-live-now-alternate");return N?N.toLowerCase().replace(/_/g,"-"):""};
_.V.computeRole=function(N){return this.computeAriaLabel(N)?"img":"status"};
_.V.computeAriaLabel=function(N){var t;return(N==null?void 0:(t=N.accessibilityData)==null?void 0:t.label)||(N==null?void 0:N.label)};
_.V.computeBadgeShape=function(N){if(N){var t,O;var H=jpg(N.style);var A=iKy(N.style),Z=N.label,U=((t=N.accessibilityData)==null?void 0:t.label)||N.label;a:switch(N.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":t=!0;break a;default:t=!1}var C=(O=N.icon)==null?void 0:O.iconType;a:switch(N.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":N=!0;break a;default:N=!1}H={type:H,brNzRatingBadgeType:A,text:Z,accessibilityText:U,
isOverlay:t,icon:C!=="PREMIUM"?C:void 0,modern:_.h("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:N}}else H={};return H};
_.V.updateComputedBadges=function(N,t,O){var H=this;(t=t?[t]:O?[O]:void 0)?this.computedBadges=t:this.computedBadges=N==null?void 0:N.filter(function(A){var Z;if((Z=A.metadataBadgeRenderer)==null?0:Z.groups){Z=!1;A=_.D(A.metadataBadgeRenderer.groups);for(var U=A.next();!U.done;U=A.next()){U=U.value;var C=void 0;Z=Z||((C=H.hiddenBadgeGroups)==null?void 0:C.includes(U))}return!Z}return!0})};
_.V.useFilledIcons=function(N){return _.h("kevlar_system_icons")&&(N==="AUDIO_BADGE"||N==="CHECK_CIRCLE_THICK"||N==="OFFICIAL_ARTIST_BADGE"||N==="SPONSORSHIP_STAR"||N==="PERSON_RADAR_FILLED"||N==="PERSON_RADAR")};
_.V.computeBadgeShapeStyle=function(N){return this.useBadgeShape?N==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||N==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":N==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.V.computeIcon=function(N){var t,O;N=N==null?void 0:(t=N.metadataBadgeRenderer)==null?void 0:(O=t.icon)==null?void 0:O.iconType;if(N!=="PREMIUM"&&N)return _.Vt(N)};
_.V.computeStandaloneBadge=function(N){var t;N=N==null?void 0:(t=N.icon)==null?void 0:t.iconType;return N==="PREMIUM_STANDALONE"||N==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
yH.prototype.hiddenBadgeGroupsChanged=yH.prototype.hiddenBadgeGroupsChanged;yH.prototype.standaloneBadgeChanged=yH.prototype.standaloneBadgeChanged;yH.prototype.standaloneRoundedBadgeChanged=yH.prototype.standaloneRoundedBadgeChanged;yH.prototype.badgesChanged=yH.prototype.badgesChanged;_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"hidden",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],yH.prototype,"componentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Array)],yH.prototype,"badges",void 0);_.W([_.X(),_.Q("design:type",Object)],yH.prototype,"topStandaloneBadge",void 0);_.W([_.X(),_.Q("design:type",Object)],yH.prototype,"bottomStandaloneBadge",void 0);_.W([_.X(),_.Q("design:type",Object)],yH.prototype,"computedBadges",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"mediumFontAdBadge",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"useRoundedBadge",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"largeFontAdBadge",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"overlayAd",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"overlayPremium",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"noDotAdBadge",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"collectionTruncate",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"isThumbnailBadge",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yH.prototype,"wrapBadges",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Number)],yH.prototype,"numBadgesInRow",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yH.prototype,"systemIcons",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yH.prototype,"animated",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yH.prototype,"useBadgeShape",void 0);_.W([_.X({value:[]}),_.Q("design:type",Array)],yH.prototype,"hiddenBadgeGroups",void 0);_.W([_.B2("#repeat"),_.Q("design:type",zr)],yH.prototype,"repeatElement",void 0);_.W([_.ic("badges"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yH.prototype,"badgesChanged",null);
_.W([_.ic("useRoundedBadge"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yH.prototype,"standaloneRoundedBadgeChanged",null);_.W([_.ic("topStandaloneBadge","bottomStandaloneBadge"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yH.prototype,"standaloneBadgeChanged",null);_.W([_.ic("hiddenBadgeGroups"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yH.prototype,"hiddenBadgeGroupsChanged",null);
_.W([_.en({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],yH);
var p_f=_.td()(yH,"ytd-badge-supported-renderer",function(){if(bwQ===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);bwQ=N}N=bwQ;return N},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.O4("kevlar_poly_si_batch_j053")?1:2});var BD=function(){var N=_.k.apply(this,arguments)||this;N.iconType="STAR";N.plaMedium=_.h("enable_pla_resizing_for_desktop_medium");N.plaLarge=_.h("enable_pla_resizing_for_desktop_large");N.plaExtraLarge=_.h("enable_pla_resizing_for_desktop_extra_large");N.standardizeIconSize=_.h("kevlar_system_icons");N.mediaHoverOverlayInitialVisibility=_.h("enable_top_landscape_image_button_command_web");N.noBottomMargin=!1;N.thumbnailObjectFit="CONTAIN";N.thumbnailFitHeight=!0;N.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return N};
_.p(BD,_.k);_.V=BD.prototype;_.V.created=function(){this.activeView=new PF(this.hostElement)};
_.V.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",BD.JSC$14929_DEFAULT_CLICK_LOCATION_BEHAVIOR,BD.JSC$14929_CLICK_LOCATION_ID_MAP))};
_.V.onTap=function(N){this.onTapOrClick(N)};
_.V.onTapOrClick=function(N){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,N,!1)};
_.V.updateMediaBackgroundImage=function(){var N=this.get("data.image.thumbnail.thumbnails");N&&(N=_.s4(N,0))&&_.CO(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+N+")"})};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var N=0;N<this.data.impressionEndpoints.length;N++){var t=this.data.impressionEndpoints[N];t.clickTrackingParams&&delete t.clickTrackingParams;_.cY().resolve(_.jo).resolveCommand(t,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var O;((O=this.data)==null?0:O.activeView)&&X7(this.activeView,this.data.activeView)}};
_.V.handleMuteAd=function(){};
_.V.attached=function(){var N=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xt(N.activeView)})};
_.V.detached=function(){_.h("stop_av_measurement_on_detach")&&xt(this.activeView)};
_.cv.Object.defineProperties(BD.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.titleText)return"";var t;return _.CJ("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((t=this.data)==null?void 0:t.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
BD.prototype.onTap=BD.prototype.onTap;BD.prototype.dataChanged=BD.prototype.dataChanged;
BD.JSC$14929_CLICK_LOCATION_ID_MAP=_.h("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"]]);
BD.JSC$14929_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.h("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"}];_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Kc),_.Q("design:type",Object)],BD.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],BD.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],BD.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.Y([_.Wu.YtActionHandlerBehavior]),_.Q("design:type",Object)],BD.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],BD.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],BD.prototype,"clickCommand",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],BD.prototype,"miniMode",void 0);_.W([_.X(),_.Q("design:type",String)],BD.prototype,"iconType",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],BD.prototype,"plaMedium",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],BD.prototype,"plaLarge",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],BD.prototype,"plaExtraLarge",void 0);_.W([_.a("data.titleText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],BD.prototype,"titleAriaLabel",null);_.W([_.a("data.rating"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],BD.prototype,"getRating",null);_.W([_.a("data.price"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],BD.prototype,"getPrice",null);
_.W([_.a("data.thirdLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],BD.prototype,"getThirdLine",null);_.W([_.a("data.fourthLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],BD.prototype,"getFourthLine",null);_.W([_.a("data.fifthLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],BD.prototype,"getFifthLine",null);_.W([_.a("getRating"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BD.prototype,"computeRatingHidden",null);
_.W([_.a("getPrice"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BD.prototype,"computePriceHidden",null);_.W([_.a("getThirdLine"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BD.prototype,"computeThirdLineHidden",null);_.W([_.a("getFourthLine"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BD.prototype,"computeFourthLineHidden",null);_.W([_.a("getFifthLine"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BD.prototype,"computeFifthLineHidden",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.energyIcon"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BD.prototype,"hasEnergyIcon",null);_.W([_.a("computePriceHidden","computeRatingHidden"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BD.prototype,"computeSecondaryTextHidden",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],BD.prototype,"standardizeIconSize",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],BD.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],BD.prototype,"noBottomMargin",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.layout"),_.Q("design:type",String),_.Q("design:paramtypes",[])],BD.prototype,"layout",null);_.W([_.a("data.layout"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],BD.prototype,"mediaThumbnailWidth",null);
_.W([_.a("layout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],BD.prototype,"useRoundedBadge",null);_.W([_.X(),_.Q("design:type",String)],BD.prototype,"thumbnailObjectFit",void 0);_.W([_.X(),_.Q("design:type",Object)],BD.prototype,"thumbnailFitHeight",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BD.prototype,"dataChanged",null);
_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],BD.prototype,"onTap",null);_.W([_.en({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],BD);
_.n(BD,"ytd-display-ad-renderer",function(){if(MI_!==void 0)return MI_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MI_=N},{mode:1});var LEf;var zBR;var YO_;var SAp=new Map;var aSa=!1;var cD=function(){var N=_.k.apply(this,arguments)||this;N.DEFAULT_TOOLTIP_OFFSET="10";N.TOOLTIP_OFFSET_NO_BANNER="-8";N.badges=null;N.noEndpoints=!1;N.wrapText=!1;N.forceVerified=!1;N.tooltipPosition="top";N.compactStyle=!1;N.height=0;N.lineHeight=0;return N};
_.p(cD,_.k);_.V=cD.prototype;_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.V.attached=function(){var N=this;this.observer=new MutationObserver(function(t,O){N.handleResized();O.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.V.detached=function(){this.observer&&this.observer.disconnect()};
_.V.logTooltipEvent=function(){_.h("kevlar_wiz_tooltip_event_killswitch")||aSa||(_.hFv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),aSa=!0)};
_.V.handleWindowResized=function(){this.handleResized()};
_.V.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.V.onHeightChanged=function(){if(this.verified){var N=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Ro("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=N:this.textContainerEl.style.marginRight=N}};
_.V.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Ro("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.V.handleResized=function(){var N=this;this.verified&&_.GB.addLowPriorityJob(function(){N.fitBackgroundToText();var t=getComputedStyle(N.hostElement).lineHeight;t&&(t=t.match(/\d+/))&&t.length&&(N.lineHeight=Number(t[0]));N.height=N.lineHeight&&!N.wrapText?N.lineHeight:N.textEl.offsetHeight})};
_.V.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var N=document.createRange(),t=_.O6(this.textEl).children;t.length>0?N.selectNodeContents(t[0]):N.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(N.getBoundingClientRect().width)+"px"}};
_.V.computeChannelBadgeStyle=function(N){var t;if((N==null?0:(t=N.runs)==null?0:t.length)&&N.runs[0].textColor)return"--ytd-badge-icon-color:"+_.aI(N.runs[0].textColor)+";"};
_.cv.Object.defineProperties(cD.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"?_.E_(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var N=this.get("badges.0.metadataBadgeRenderer.tooltip");if(N)return N}return _.Gv(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
cD.prototype.onLineHeightChanged=cD.prototype.onLineHeightChanged;cD.prototype.onHeightChanged=cD.prototype.onHeightChanged;cD.prototype.onChannelNameChanged=cD.prototype.onChannelNameChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],cD.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cD.prototype,"badges",void 0);_.W([_.X(),_.Q("design:type",Object)],cD.prototype,"channelName",void 0);
_.W([_.X(),_.Q("design:type",Object)],cD.prototype,"noEndpoints",void 0);_.W([_.X(),_.Q("design:type",Object)],cD.prototype,"wrapText",void 0);_.W([_.X(),_.Q("design:type",Object)],cD.prototype,"forceVerified",void 0);_.W([_.X(),_.Q("design:type",Object)],cD.prototype,"tooltipPosition",void 0);_.W([_.X(),_.Q("design:type",String)],cD.prototype,"tooltip",void 0);_.W([_.X(),_.Q("design:type",Boolean)],cD.prototype,"hasChannelArt",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],cD.prototype,"compactStyle",void 0);_.W([_.B2("#text-container"),_.Q("design:type",HTMLElement)],cD.prototype,"textContainerEl",void 0);_.W([_.B2("#text"),_.Q("design:type",Object)],cD.prototype,"textEl",void 0);_.W([_.B2("#verified-tooltip"),_.Q("design:type",HTMLElement)],cD.prototype,"verifiedTooltip",void 0);_.W([_.X(),_.Q("design:type",Object)],cD.prototype,"height",void 0);
_.W([_.X(),_.Q("design:type",Object)],cD.prototype,"lineHeight",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("badges","forceVerified"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],cD.prototype,"verified",null);_.W([_.a("badges","verified"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],cD.prototype,"hideBadges",null);_.W([_.a("channelName"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],cD.prototype,"formattedName",null);
_.W([_.a("badges","verified","formattedName"),_.Q("design:type",String),_.Q("design:paramtypes",[])],cD.prototype,"tooltipText",null);_.W([_.a("hasChannelArt"),_.Q("design:type",String),_.Q("design:paramtypes",[])],cD.prototype,"tooltipOffset",null);_.W([_.gz("channelName"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cD.prototype,"onChannelNameChanged",null);
_.W([_.gz("height"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cD.prototype,"onHeightChanged",null);_.W([_.gz("lineHeight","height"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cD.prototype,"onLineHeightChanged",null);_.W([_.en({is:"ytd-channel-name",disableElementRegistration:!0})],cD);
_.n(cD,"ytd-channel-name",function(){if(YO_!==void 0)return YO_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return YO_=N},{mode:_.O4("kevlar_poly_si_batch_j036")?1:2});var $p=function(){var N=_.k.apply(this,arguments)||this;N.standardizeIconSize=_.h("kevlar_system_icons");return N};
_.p($p,_.k);$p.prototype.basicPaletteChanged=function(){var N;(N=this.data.color)!=null&&N.basicColorPaletteData&&_.Me(this.hostElement,this.data.color.basicColorPaletteData)};
$p.prototype.useFilledIcons=function(N){return _.h("kevlar_system_icons")&&(N==="CHECK_CIRCLE_THICK"||N==="OFFICIAL_ARTIST_BADGE")};
_.cv.Object.defineProperties($p.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return this.data.authorCreator||((N=this.data)==null?void 0:(t=N.color)==null?void 0:(O=t.basicColorPaletteData)==null?void 0:O.backgroundColor)}}});
$p.prototype.basicPaletteChanged=$p.prototype.basicPaletteChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$p.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],$p.prototype,"standardizeIconSize",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.authorUnifiedVerified"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],$p.prototype,"verified",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],$p.prototype,"creator",null);_.W([_.gz("data.color.basicColorPaletteData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$p.prototype,"basicPaletteChanged",null);_.W([_.en({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],$p);
_.n($p,"ytd-author-comment-badge-renderer",function(){if(zBR!==void 0)return zBR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return zBR=N},{mode:1});var TLp;var j_=function(){return _.k.apply(this,arguments)||this};
_.p(j_,_.k);j_.prototype.computeThumbnailWidth=function(N){if(N==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],j_.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],j_.prototype,"icon",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],j_.prototype,"surface",void 0);
_.W([_.X({reflectToAttribute:!0,value:_.h("enable_shrink_image_size_on_web_posts_singleton")}),_.Q("design:type",Boolean)],j_.prototype,"searchSxsUx",void 0);_.W([_.X({reflectToAttribute:!0,value:_.h("enable_community_page_on_desktop")}),_.Q("design:type",Boolean)],j_.prototype,"useSmallerPostImageAttachments",void 0);_.W([_.en({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],j_);
_.n(j_,"ytd-backstage-image-renderer",function(){if(TLp!==void 0)return TLp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return TLp=N},{mode:1});var w_a;var i2=function(){var N=_.k.apply(this,arguments)||this;N.isLoading=!1;N.selectedItemIndex=-1;return N};
_.p(i2,_.k);_.V=i2.prototype;_.V.computeIsChannelOwner=function(N){if(!N)return!0;N=N[0];return!(N&&(N.signinEndpoint||N.selectServiceEndpoint))};
_.V.computeIsImagePoll=function(N){return(N==null?void 0:N.type)==="POLL_TYPE_IMAGE"};
_.V.computeIsTotalVotesDisabled=function(N){return!(N==null?0:N.totalVotes)};
_.V.thumbnailSrc=function(N){var t,O,H,A;return(N==null?0:(t=N.thumbnails)==null?0:(O=t[0])==null?0:O.url)?_.Id((H=N.thumbnails)==null?void 0:(A=H[0])==null?void 0:A.url):void 0};
_.V.progressWidth=function(N){return"width:"+(N?N*100:0)+"%;"};
_.V.textAreaWidth=function(N){return this.isImagePoll?null:"width:"+(N?N*100:0)+"%;"};
_.V.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.V.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var N=this.data.choices,t=0;t<N.length;t++)if(N[t].selected){this.selectedItemIndex=t;break}};
_.V.onPopupClosed=function(N,t){N=Number(this.pollVotes.selected);t.confirmed&&(this.selectChoice(N,!1),_.sl(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.V.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.V.onYtCommentPollRevert=function(N,t){t&&(this.selectChoice(t.selectedChoiceIndex,!0),this.set("data.totalVotes",t.totalVotes))};
_.V.onYtServiceRequestSent=function(N,t){if(t.actions)for(N=0;N<t.actions.length;N++){var O=t.actions[N];_.M(O,Ek)&&this.set("data.totalVotes",_.M(O,Ek).totalVotes)}};
_.V.onYtServiceRequestCompleted=function(N){var t=this.get("detail.data.actionResults.0.feedback",N);N=this.get("detail.data.actionResults.0.status",N);if(t==="FEEDBACK_DESELECT"||t==="FEEDBACK_SELECT")this.isLoading=!1,N==="STATUS_FAILED"?_.or(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.V.getEndpoint=function(N,t){return t===N?this.data.choices[t].deselectServiceEndpoint||null:this.data.choices[N].selectServiceEndpoint||null};
_.V.selectChoice=function(N,t){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var O=0;O<this.data.choices.length;O++){var H;if(N===this.selectedItemIndex){var A=!1;var Z=H=null}else H=(A=O===N)?this.data.choices[O].voteRatioIfSelected:this.data.choices[O].voteRatioIfNotSelected,Z=A?this.data.choices[O].votePercentageIfSelected:this.data.choices[O].votePercentageIfNotSelected;this.set("data.choices."+O+".voteRatio",H);
this.set("data.choices."+O+".votePercentage",Z);this.set("data.choices."+O+".selected",A)}t||(this.isLoading=!0,(t=this.getEndpoint(N,this.selectedItemIndex))&&_.cY().resolve(_.jo).resolveCommand(t,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===N?-1:N};
_.cv.Object.defineProperties(i2.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
i2.prototype.onYtServiceRequestCompleted=i2.prototype.onYtServiceRequestCompleted;i2.prototype.onYtServiceRequestSent=i2.prototype.onYtServiceRequestSent;i2.prototype.onYtCommentPollRevert=i2.prototype.onYtCommentPollRevert;i2.prototype.onPopupClosed=i2.prototype.onPopupClosed;i2.prototype.dataChanged=i2.prototype.dataChanged;_.W([_.Y(_.c8),_.Q("design:type",Object)],i2.prototype,"paperItemBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],i2.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],i2.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],i2.prototype,"isLoading",void 0);_.W([_.X({computed:"computeIsChannelOwner(data.choices)"}),_.Q("design:type",Boolean)],i2.prototype,"isChannelOwner",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Q("design:type",Boolean)],i2.prototype,"isImagePoll",void 0);_.W([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.Q("design:type",Boolean)],i2.prototype,"isTotalVotesDisabled",void 0);_.W([_.X(),_.Q("design:type",Object)],i2.prototype,"previousPollInfo",void 0);_.W([_.X(),_.Q("design:type",Object)],i2.prototype,"selectedItemIndex",void 0);_.W([_.B2("#poll-votes"),_.Q("design:type",Object)],i2.prototype,"pollVotes",void 0);
_.W([_.a("isChannelOwner"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],i2.prototype,"endpointStyle",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],i2.prototype,"dataChanged",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],i2.prototype,"onPopupClosed",null);
_.W([_.dz("yt-comment-poll-revert"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],i2.prototype,"onYtCommentPollRevert",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],i2.prototype,"onYtServiceRequestSent",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],i2.prototype,"onYtServiceRequestCompleted",null);_.W([_.en({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],i2);
_.n(i2,"ytd-backstage-poll-renderer",function(){if(w_a!==void 0)return w_a;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return w_a=N},{mode:2});var eBR;var PoB={autoplay:!1,loop:!1},X_Z={simpleText:""},u2=function(){var N=_.k.apply(this,arguments)||this;N.isLoading=!1;N.usesPanelLockup=!1;N.selectedItemIndex=-1;N.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},PoB,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});N.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},PoB,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});N.correctnessAnimationProps=[];N.correctnessAnimationRefs=[];return N};
_.p(u2,_.k);_.V=u2.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.V.computeIsChannelOwner=function(N){if(!N)return!0;N=N[0];return!(N&&(N.signinEndpoint||N.selectServiceEndpoint))};
_.V.computeIsTotalVotesDisabled=function(N){return!(N==null?0:N.totalVotes)};
_.V.computeIsImageQuiz=function(N){return(N==null?void 0:N.type)==="POLL_TYPE_IMAGE"};
_.V.onExplanationChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var N=this.data.choices;if(N){this.maybeInitializeQuizLotties(N);for(var t=0;t<N.length;t++)if(N[t].isSelected||this.isChannelOwner&&N[t].isCorrect){this.selectedItemIndex=t;return}this.selectedItemIndex=-1}}};
_.V.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var N=this.selectedItemIndex,t=Number(this.quizVotes.selected);this.selectChoice(t);this.sendVoteAction(t,N);this.quizVotes.selected=-1;var O;N=!((O=this.data)==null?0:O.enableAnimation);this.maybePlayAnswerAnimations(N)}};
_.V.onYtCommentPollRevert=function(N,t){t&&(this.selectChoice(t.selectedChoiceIndex),this.set("data.totalVotes",t.totalVotes))};
_.V.onYtServiceRequestSent=function(N,t){if(t.actions)for(N=_.D(t.actions),t=N.next();!t.done;t=N.next())(t=_.M(t.value,Ek))&&this.set("data.totalVotes",t.totalVotes)};
_.V.onYtServiceRequestCompleted=function(N){var t=this.get("detail.data.actionResults.0.feedback",N);N=this.get("detail.data.actionResults.0.status",N);if(t==="FEEDBACK_DESELECT"||t==="FEEDBACK_SELECT")this.isLoading=!1,N==="STATUS_FAILED"?_.or(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.V.getAnimationPropsForChoiceIndex=function(N,t){return t[N]};
_.V.maybePlayAnswerAnimations=function(N){N=N===void 0?!1:N;var t;if((t=this.data)!=null&&t.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){t=_.D(this.correctnessAnimationRefs);for(var O=t.next();!O.done;O=t.next()){var H=void 0,A=void 0;(H=O.value)==null||(A=H.lottieEl)==null||A.stop()}if(!(this.selectedItemIndex<0)){t=0;N&&(t=this.isCorrect?37:25);var Z,U;(Z=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(U=Z.lottieEl)==null||U.goToAndPlay(N?t:0,!0);if(!(this.isCorrect||
(Z=this.data.choices.findIndex(function(B){return B.isCorrect}),Z<0))){var C,F;
(F=(C=this.correctnessAnimationRefs[Z])==null?void 0:C.lottieEl)==null||F.goToAndPlay(37,!0);var g;C=(g=this.fadeContainers)==null?void 0:g.item(Z);!N&&C&&this.fadeIn(C)}}}};
_.V.thumbnailSrc=function(N){var t,O,H,A;return(N==null?0:(t=N.thumbnails)==null?0:(O=t[0])==null?0:O.url)?_.Id((H=N.thumbnails)==null?void 0:(A=H[0])==null?void 0:A.url):void 0};
_.V.a11yVotedText=function(N,t){var O,H,A=((O=this.data)==null?void 0:(H=O.correctVotedText)==null?void 0:H.simpleText)||"",Z,U;O=((Z=this.data)==null?void 0:(U=Z.votedText)==null?void 0:U.simpleText)||"";if(!t)return"";var C,F;if((C=this.data)==null?0:(F=C.choices)==null?0:F[N].isCorrect)return A;var g,B;return((g=this.data)==null?0:(B=g.choices)==null?0:B[N].isSelected)?O:""};
_.V.getEndpoint=function(N,t){return t===N?this.data.choices[N].deselectServiceEndpoint||null:this.data.choices[N].selectServiceEndpoint||null};
_.V.sendVoteAction=function(N,t){if(N=this.getEndpoint(N,t))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(N)};
_.V.selectChoice=function(N){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var t=0;t<this.data.choices.length;t++)this.set("data.choices."+t+".isSelected",N===this.selectedItemIndex?!1:t===N);this.selectedItemIndex=this.selectedItemIndex===N?-1:N};
_.V.maybeInitializeQuizLotties=function(N){var t=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=N.map(function(O){return{animationConfig:O.isCorrect?t.baseCorrectLottiePlayerAnimationConfig:t.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){t.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(O){return O.animationRef||{}})};
_.V.fadeIn=function(N){N.classList.add("fade-in");_.HH(_.GB,function(){N.classList.remove("fade-in")},900)};
_.cv.Object.defineProperties(u2.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Gv(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:(t=N.choices)==null?void 0:t.some(function(O){return O.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null||!N.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?X_Z:this.data.choices[this.selectedItemIndex].explanation||X_Z}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null||!N.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
u2.prototype.onYtServiceRequestCompleted=u2.prototype.onYtServiceRequestCompleted;u2.prototype.onYtServiceRequestSent=u2.prototype.onYtServiceRequestSent;u2.prototype.onYtCommentPollRevert=u2.prototype.onYtCommentPollRevert;u2.prototype.dataChanged=u2.prototype.dataChanged;u2.prototype.onExplanationChanged=u2.prototype.onExplanationChanged;_.W([_.Y(_.c8),_.Q("design:type",Object)],u2.prototype,"paperItemBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],u2.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.hP.YtTaskEmitterBehavior),_.Q("design:type",Object)],u2.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],u2.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],u2.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],u2.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Object)],u2.prototype,"usesPanelLockup",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Q("design:type",Boolean)],u2.prototype,"isChannelOwner",void 0);_.W([_.X({computed:"computeIsTotalVotesDisabled(data)"}),_.Q("design:type",Boolean)],u2.prototype,"isTotalVotesDisabled",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Q("design:type",Boolean)],u2.prototype,"isImageQuiz",void 0);_.W([_.X(),_.Q("design:type",Object)],u2.prototype,"previousQuizInfo",void 0);_.W([_.X(),_.Q("design:type",Object)],u2.prototype,"selectedItemIndex",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data","usesPanelLockup"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],u2.prototype,"shouldUseModernUi",null);
_.W([_.c2(".fade-container"),_.Q("design:type",Object)],u2.prototype,"fadeContainers",void 0);_.W([_.X(),_.Q("design:type",Array)],u2.prototype,"correctnessAnimationProps",void 0);_.W([_.a("explanation","showCorrectAnswer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],u2.prototype,"showExplanation",null);_.W([_.a("isChannelOwner","isAttempted"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],u2.prototype,"showCorrectAnswer",null);
_.W([_.a("isChannelOwner","isAttempted","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],u2.prototype,"isQuizAnsweringDisabled",null);_.W([_.a("isQuizAnsweringDisabled"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],u2.prototype,"endpointStyle",null);_.W([_.a("data","selectedItemIndex"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],u2.prototype,"isAttempted",null);
_.W([_.a("data","selectedItemIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],u2.prototype,"explanation",null);_.W([_.a("data","selectedItemIndex"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],u2.prototype,"isCorrect",null);_.W([_.B2("ytd-expander"),_.Q("design:type",Object)],u2.prototype,"expander",void 0);_.W([_.B2("#quiz-votes"),_.Q("design:type",Object)],u2.prototype,"quizVotes",void 0);
_.W([_.gz("explanation"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],u2.prototype,"onExplanationChanged",null);_.W([_.gz("data","isChannelOwner"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],u2.prototype,"dataChanged",null);_.W([_.dz("yt-comment-quiz-revert"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],u2.prototype,"onYtCommentPollRevert",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],u2.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],u2.prototype,"onYtServiceRequestCompleted",null);_.W([_.en({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],u2);
_.n(u2,"ytd-backstage-quiz-renderer",function(){if(eBR!==void 0)return eBR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-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');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return eBR=N},{mode:1});var xD0;var S_=function(){return _.k.apply(this,arguments)||this};
_.p(S_,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],S_.prototype,"data",void 0);_.W([_.en({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],S_);
_.n(S_,"ytd-post-uploaded-video-renderer",function(){if(xD0!==void 0)return xD0;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return xD0=N},{mode:1});var kFp;var h6=function(){return _.k.apply(this,arguments)||this};
_.p(h6,_.k);h6.prototype.useFilledIcons=function(N){return N==="SPONSORSHIP_STAR"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],h6.prototype,"data",void 0);_.W([_.en({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],h6);
var qOy=_.td()(h6,"ytd-sponsors-only-badge-renderer",function(){if(kFp===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);kFp=N}N=kFp;return N},{allowedProps:["data"],
mode:1});var fSY;var M7=function(){return _.k.apply(this,arguments)||this};
_.p(M7,_.k);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],M7.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],M7.prototype,"data",void 0);_.W([_.en({is:"ytd-child-video-renderer",disableElementRegistration:!0})],M7);
_.n(M7,"ytd-child-video-renderer",function(){if(fSY!==void 0)return fSY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return fSY=N},{mode:1});var n$a;var WEy;var b2=function(){var N=_.k.apply(this,arguments)||this;N.size=0;N.fallbackImageSize={height:void 0,width:9999};N.webModernCollections=!1;return N};
_.p(b2,_.k);_.V=b2.prototype;_.V.computeBlurredImageSize=function(N){return N?{height:N*2,width:N*2}:this.fallbackImageSize};
_.V.computeImageSize=function(N){return N?{height:N,width:N}:this.fallbackImageSize};
_.V.computeObjectFit=function(N){return N?"FILL":"CONTAIN"};
_.V.computePreserve=function(N){return N?!0:!1};
_.V.setBackground=function(){var N,t;if((N=this.data)==null?0:(t=N.thumbnail)==null?0:t.sampledThumbnailColor)N=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+N.red+","+N.green+","+N.blue+",1)"};
b2.prototype.setBackground=b2.prototype.setBackground;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],b2.prototype,"watchFeedThumbnail",void 0);_.W([_.X(),_.Q("design:type",Object)],b2.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],b2.prototype,"size",void 0);
_.W([_.X({computed:"computeBlurredImageSize(size)"}),_.Q("design:type",Object)],b2.prototype,"blurredImageSize",void 0);_.W([_.X({computed:"computeImageSize(size)"}),_.Q("design:type",Object)],b2.prototype,"imageSize",void 0);_.W([_.X({computed:"computePreserve(size)"}),_.Q("design:type",String)],b2.prototype,"preserve",void 0);_.W([_.X({computed:"computeObjectFit(size)"}),_.Q("design:type",String)],b2.prototype,"objectFit",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],b2.prototype,"webModernCollections",void 0);_.W([_.gz("data.thumbnail.sampledThumbnailColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],b2.prototype,"setBackground",null);_.W([_.en({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],b2);
_.n(b2,"ytd-playlist-custom-thumbnail-renderer",function(){if(WEy!==void 0)return WEy;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return WEy=N},{mode:1});var rZB;var po=function(){return _.k.apply(this,arguments)||this};
_.p(po,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],po.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],po.prototype,"width",void 0);_.W([_.en({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],po);
_.n(po,"ytd-playlist-video-thumbnail-renderer",function(){if(rZB!==void 0)return rZB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rZB=N},{mode:1});var ISX;var Lo=function(){return _.k.apply(this,arguments)||this};
_.p(Lo,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Lo.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],Lo.prototype,"width",void 0);_.W([_.en({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Lo);
_.n(Lo,"ytd-show-custom-thumbnail-renderer",function(){if(ISX!==void 0)return ISX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ISX=N},{mode:1});var lSu;var zU=function(){return _.k.apply(this,arguments)||this};
_.p(zU,_.k);zU.prototype.useFilledIcons=function(N){return N==="MUSIC"||N==="COURSE"};
zU.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=wY(this.overlayColor,"0.8");else if(this.overlayColor){var N=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+N.red+","+N.green+","+N.blue+",0.8)"}};
_.cv.Object.defineProperties(zU.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)}}});
zU.prototype.overlayColorChanged=zU.prototype.overlayColorChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],zU.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],zU.prototype,"overlayColor",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.icon","data.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],zU.prototype,"overlayStyle",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.icon","data.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],zU.prototype,"overlayTextStyle",null);_.W([_.gz("overlayColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zU.prototype,"overlayColorChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],zU);
_.n(zU,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(lSu!==void 0)return lSu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return lSu=N},{mode:1});var QsZ;var Yp=function(){var N=_.k.apply(this,arguments)||this;N.active=!1;return N};
_.p(Yp,_.k);Yp.prototype.computeIsSpinnerHidden=function(N){return(N==null?void 0:N.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Yp.prototype.computeOverlayIcon=function(N){return(N==null?void 0:N.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(N==null?void 0:N.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Yp.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Yp.prototype,"active",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Yp);
_.n(Yp,"ytd-thumbnail-overlay-downloading-renderer",function(){if(QsZ!==void 0)return QsZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return QsZ=N},{mode:1});var mDB;var af=function(){return _.k.apply(this,arguments)||this};
_.p(af,_.k);_.cv.Object.defineProperties(af.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],af.prototype,"data",void 0);_.W([_.a("data.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],af.prototype,"text",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],af);
_.n(af,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(mDB!==void 0)return mDB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return mDB=N},{mode:1});var E$a,GFQ=function(){if(E$a!==void 0)return E$a;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return E$a=N};var TU=function(){return _.k.apply(this,arguments)||this};
_.p(TU,_.k);_.cv.Object.defineProperties(TU,{template:{configurable:!0,enumerable:!0,get:function(){return GFQ()}}});
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],TU.prototype,"animateEqualizer",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],TU);_.td()(TU,"ytd-thumbnail-overlay-equalizer",function(){return GFQ()},{allowedProps:["animateEqualizer"],
mode:1});var RBS;var wM=function(){var N=_.k.apply(this,arguments)||this;N.nowPlayingBadge=_.h("web_now_playing_badge");N.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return N};
_.p(wM,_.k);wM.prototype.activeChanged=function(){var N=this;_.h("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.yB(this,function(){_.or(N.hostElement,"yt-playlist-lockup-now-playing-active",N)})};
wM.prototype.onMiniplayerPlayStateChanged=function(N){var t,O=(t=_.M(_.Ry().currentEndpoint,_.rN))==null?void 0:t.videoId;this.isVideoPlaying=N&&(_.h("web_limit_now_playing_animation_killswitch")||this.videoId===O)};
wM.prototype.activeChanged=wM.prototype.activeChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],wM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wM.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],wM.prototype,"isVideoPlaying",void 0);_.W([_.X(),_.Q("design:type",String)],wM.prototype,"videoId",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wM.prototype,"equalizerOnly",void 0);_.W([_.X(),_.Q("design:type",Boolean)],wM.prototype,"isActive",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],wM.prototype,"nowPlayingBadge",void 0);_.W([_.gz("isActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wM.prototype,"activeChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],wM);
_.n(wM,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(RBS!==void 0)return RBS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return RBS=N},{mode:1});var v$B;var e_=function(){return _.k.apply(this,arguments)||this};
_.p(e_,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],e_.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],e_);
_.n(e_,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(v$B!==void 0)return v$B;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return v$B=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var JZf;var PD=function(){return _.k.apply(this,arguments)||this};
_.p(PD,_.k);PD.prototype.onDurationChanged=function(){var N,t;_.O6(this.hostElement).querySelector("#progress").style.width=((t=(N=this.data)==null?void 0:N.percentDurationWatched)!=null?t:0)+"%"};
PD.prototype.onDurationChanged=PD.prototype.onDurationChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],PD.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],PD.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],PD.prototype,"isLive",void 0);_.W([_.gz("data.percentDurationWatched"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],PD.prototype,"onDurationChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],PD);
_.n(PD,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(JZf!==void 0)return JZf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return JZf=N},{mode:1});var o$E;var Xl=function(){var N=_.k.apply(this,arguments)||this;N.bottomPanel=!1;N.richGridOverlay=!1;N.watchFeedOverlay=!1;N.isCompact=!1;return N};
_.p(Xl,_.k);Xl.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.cv.Object.defineProperties(Xl.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:(t=N.icon)==null?void 0:t.iconType)==="PLAY_ALL"&&_.h("kevlar_system_icons")}}});
Xl.prototype.widthChanged=Xl.prototype.widthChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Xl.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],Xl.prototype,"width",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Xl.prototype,"bottomPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Xl.prototype,"richGridOverlay",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Xl.prototype,"watchFeedOverlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Xl.prototype,"isCompact",void 0);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Xl.prototype,"isIconFilled",null);_.W([_.gz("width","watchFeedOverlay"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xl.prototype,"widthChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Xl);
_.n(Xl,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(o$E!==void 0)return o$E;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return o$E=N},{mode:1});var ssQ;var Ngp=["CLIP","SHORTS"],xp=function(){var N=_.k.apply(this,arguments)||this;N.animated=_.h("animated_live_badge_icon");N.hasIcon=!1;N.updateTimerIntervalId=0;N.timeSinceLive=0;return N};
_.p(xp,_.k);_.V=xp.prototype;_.V.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.V.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.V.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.V.hasIconOrText=function(){var N,t;return!!(((N=this.data)==null?0:N.icon)||((t=this.data)==null?0:t.text))};
_.V.initializeLiveBadgeTimer=function(){var N=this,t,O=(t=this.liveBadgeData)==null?void 0:t.startTimestampSec;if(O&&this.canShowLiveBadgeTimer()){var H;t=Number((H=this.liveBadgeData)==null?void 0:H.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(O);this.updateTimerIntervalId=_.LF(function(){N.canShowLiveBadgeTimer()?N.timeSinceLive++:(N.timeSinceLive=0,window.clearInterval(N.updateTimerIntervalId))},t)}else this.timeSinceLive=0};
_.V.canShowLiveBadgeTimer=function(){var N=Date.now(),t,O;return N<(Number((t=this.liveBadgeData)==null?void 0:t.endTimestampSec)-1)*1E3&&N>Number((O=this.liveBadgeData)==null?void 0:O.startTimestampSec)*1E3};
_.cv.Object.defineProperties(xp.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.M$4(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return Ngp.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
xp.prototype.initializeLiveBadgeTimer=xp.prototype.initializeLiveBadgeTimer;xp.prototype.dataChanged=xp.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],xp.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],xp.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],xp.prototype,"icon",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],xp.prototype,"animated",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Q("design:type",Boolean)],xp.prototype,"hideTimeStatus",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],xp.prototype,"hasIcon",void 0);_.W([_.X(),_.Q("design:type",Object)],xp.prototype,"timeSinceLive",void 0);_.W([_.a("data","timeSinceLive"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xp.prototype,"badgeShapeData",null);
_.W([_.a("data","overlayType"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xp.prototype,"hideBadgeShape",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xp.prototype,"dataChanged",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.style"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xp.prototype,"overlayStyle",null);
_.W([_.a("data.liveBadgeData"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xp.prototype,"liveBadgeData",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.type"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xp.prototype,"overlayType",null);_.W([_.a("overlayType","overlayStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xp.prototype,"useFilledIcon",null);
_.W([_.ic("liveBadgeData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xp.prototype,"initializeLiveBadgeTimer",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],xp);
_.n(xp,"ytd-thumbnail-overlay-time-status-renderer",function(){if(ssQ!==void 0)return ssQ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ssQ=N},{mode:_.O4("kevlar_poly_si_batch_j035")?1:2});var tHB;var kp=function(){return _.k.apply(this,arguments)||this};
_.p(kp,_.k);kp.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"}}}}};
kp.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(N){if(this.hasPlaybackProgressBar)return{percentDurationWatched:N.percentDurationWatched}};
kp.prototype.computeHasPlaybackProgressBar=function(N){return!!N.percentDurationWatched&&N.percentDurationWatched>0};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],kp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],kp.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Q("design:type",Boolean)],kp.prototype,"hasPlaybackProgressBar",void 0);
_.W([_.en({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],kp);
_.n(kp,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(tHB!==void 0)return tHB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tHB=N},{mode:1});var OkE;var HkQ=_.q(function(N){var t=N.data;var O=N.children;var H=function(){return!!t().doubleStack},A=function(){return!!t().includeStackHeight};
return _.d("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!t().experimentEnabled}},_.d(_.y,{cond:t,
then:function(){var Z={};return _.d(_.BZ,null,_.d(_.y,{cond:A,then:function(){var U={};return _.d("div",{class:_.V7("ytCollectionsStackSpacer",(U.ytCollectionsStackSpacerDoubleStack=H,U))})}}),_.d("div",{class:_.V7((Z.ytCollectionsStackRelativeStack=A,Z))},_.d(_.y,{cond:H,
then:function(){var U={};return _.d("div",{class:_.V7("ytCollectionsStackCollectionStack2",function(){return t().customClassName2ndStack},(U.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return t().enableResponsiveMode},U)),
style:_.FM({"background-color":function(){return pBQ(t())}})})}}),_.d("div",{class:_.V7("ytCollectionsStackCollectionStack1",function(){return t().customClassName1stStack},function(){return bK4(t().thumbnailSize?t().thumbnailSize:"medium")}),
style:_.FM({"background-color":function(){return pBQ(t())}})}),O))}}))},"Da");_.o_(HkQ,"yt-collections-stack",{props:{data:_.$O}});var q7=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};N.webModernCollections=!1;N.isSearch=!1;N.isDoubleStack=!1;N.thumbnailSize="medium";return N};
_.p(q7,_.k);_.V=q7.prototype;
_.V.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.V.getThumbnailDetails=function(N){if(N!=null&&N.thumbnailRenderer){var t=N.thumbnailRenderer,O;if((O=t.playlistVideoThumbnailRenderer)==null?0:O.thumbnail)return t.playlistVideoThumbnailRenderer.thumbnail;var H;if((H=t.playlistCustomThumbnailRenderer)==null?0:H.thumbnail)return t.playlistCustomThumbnailRenderer.thumbnail;N=N.thumbnailRenderer;var A;if((A=N.showCustomThumbnailRenderer)==null?0:A.thumbnail)return N.showCustomThumbnailRenderer.thumbnail}};
_.V.computeOverlayColor=function(N){var t,O;if((t=this.getThumbnailDetails(N))==null?0:(O=t.darkColorPalette)==null?0:O.section2Color)return this.getThumbnailDetails(N).darkColorPalette.section2Color;var H;return(H=this.getThumbnailDetails(N))==null?void 0:H.sampledThumbnailColor};
_.V.computeWebModernCollections=function(N){if(N==null||!N.thumbnailOverlays)return!1;N=_.D(N.thumbnailOverlays);for(var t=N.next();!t.done;t=N.next()){var O=void 0;if((O=t.value)==null?0:O.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.V.computeNavigationEndpoint=function(N){return wsg(N==null?void 0:N.navigationEndpoint)};
_.cv.Object.defineProperties(q7.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var N=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:N==null?void 0:N.sampledThumbnailColor,vibrantColorPalette:N==null?void 0:N.vibrantColorPalette,darkColorPalette:N==null?void 0:N.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],q7.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(FMp),_.Q("design:type",Object)],q7.prototype,"ytdThumbnailBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],q7.prototype,"componentBehavior",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],q7.prototype,"watchFeedThumbnail",void 0);_.W([_.X(),_.Q("design:type",Number)],q7.prototype,"customThumbnailSize",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],q7.prototype,"hideAria",void 0);_.W([_.X(),_.Q("design:type",Object)],q7.prototype,"data",void 0);_.W([_.X({computed:"computeOverlayColor(data)"}),_.Q("design:type",Object)],q7.prototype,"overlayColor",void 0);
_.W([_.X({computed:"computeWebModernCollections(data)"}),_.Q("design:type",Object)],q7.prototype,"webModernCollections",void 0);_.W([_.X({computed:"computeNavigationEndpoint(data)"}),_.Q("design:type",Object)],q7.prototype,"computedNavigationEndpoint",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],q7.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],q7.prototype,"isDoubleStack",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],q7.prototype,"thumbnailSize",void 0);_.W([_.a("data","isDoubleStack","thumbnailSize"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],q7.prototype,"collectionStack",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],q7);
_.n(q7,"ytd-playlist-thumbnail",function(){if(OkE!==void 0)return OkE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return OkE=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var AEy;_.o_(_.q(function(N){return _.d("yt-text-view-model",{class:_.V7("ytTextViewModelHost")},_.d(_.cu,{text:function(){return N.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.$O}});var fo=function(){var N=_.k.apply(this,arguments)||this;N.noEndpoints=!1;N.amsterdamPostMvp=_.h("web_amsterdam_post_mvp_playlists");N.badges=[];N.transferState="TRANSFER_STATE_UNKNOWN";return N};
_.p(fo,_.k);_.V=fo.prototype;_.V.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.V.getMetadata=function(N){if(!N)return[];var t=[],O=N.shortViewCountText||N.viewCountText;O&&t.push(_.Gv(O));N.publishedTimeText&&t.push(_.Gv(N.publishedTimeText));N.upcomingEventData&&N.upcomingEventData.upcomingEventText&&t.push(_.bF(_.Gv(N.upcomingEventData.upcomingEventText),Number(N.upcomingEventData.startTime)));return t};
_.V.observeDataForBylineSeparator=function(){this.data&&_.VQ(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.V.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.aI(this.metadataColor)};
_.V.getSimpleString=function(N){return _.Gv(N)};
_.V.isBylineHidden=function(N){return this.noByline||!((N==null?0:N.longBylineText)||(N==null?0:N.shortBylineText))};
_.V.isMetadataHidden=function(N){var t;return((t=this.getMetadata(N))==null?void 0:t.length)===0};
_.V.isBylineMetadataSeparatorHidden=function(N){return this.isMetadataHidden(N)||!this.shouldShowVideoInfo};
_.V.isLongByline=function(N,t){return t&&!(N==null||!N.longBylineText)};
_.cv.Object.defineProperties(fo.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var N;return this.amsterdamPostMvp&&!((N=this.data)==null||!N.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
fo.prototype.metadataColorChanged=fo.prototype.metadataColorChanged;fo.prototype.observeDataForBylineSeparator=fo.prototype.observeDataForBylineSeparator;_.W([_.Y(_.Ue),_.Q("design:type",Object)],fo.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fo.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],fo.prototype,"noEndpoints",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fo.prototype,"isSlimShort",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fo.prototype,"radioMeta",void 0);_.W([_.X({selector:_.wq}),_.Q("design:type",Object)],fo.prototype,"isGridViewEnabled",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fo.prototype,"richMeta",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],fo.prototype,"amsterdamPostMvp",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],fo.prototype,"noByline",void 0);_.W([_.X({computed:"isLongByline(data, radioMeta)"}),_.Q("design:type",Boolean)],fo.prototype,"longByline",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fo.prototype,"truncateMetadataLine",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fo.prototype,"miniMode",void 0);_.W([_.X(),_.Q("design:type",Number)],fo.prototype,"metadataColor",void 0);
_.W([_.X(),_.Q("design:type",Array)],fo.prototype,"badges",void 0);_.W([_.X({selector:_.Xo,selectorArgs:["data.videoId"]}),_.Q("design:type",String)],fo.prototype,"transferState",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fo.prototype,"isDownloading",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],fo.prototype,"typographyBump",void 0);_.W([_.B2("#metadata-line"),_.Q("design:type",HTMLElement)],fo.prototype,"metadataLine",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fo.prototype,"observeDataForBylineSeparator",null);_.W([_.gz("metadataColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fo.prototype,"metadataColorChanged",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fo.prototype,"shouldShowVideoInfo",null);
_.W([_.a("badges"),_.Q("design:type",String),_.Q("design:paramtypes",[])],fo.prototype,"inlineBadgeClass",null);_.W([_.a("longByline"),_.Q("design:type",String),_.Q("design:paramtypes",[])],fo.prototype,"longBylineClass",null);_.W([_.a("data","longByline"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fo.prototype,"bylineText",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fo.prototype,"hasAttributedBylineText",null);
_.W([_.a("isGridViewEnabled","data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],fo.prototype,"watchFeedBigThumbs",null);_.W([_.en({is:"ytd-video-meta-block",disableElementRegistration:!0})],fo);
_.n(fo,"ytd-video-meta-block",function(){if(AEy!==void 0)return AEy;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return AEy=N},{mode:_.O4("kevlar_poly_si_batch_j080")?1:2});_.pE("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var no=function(){var N=_.k.apply(this,arguments)||this;N.displayItemCount=2;N.isBackstagePlaylist=!1;N.isPostCompactPlaylist=!1;N.shouldShowChannelThumbnail=!1;return N};
_.p(no,_.k);_.V=no.prototype;_.V.computeFirstVideos=function(N,t){return N===void 0||t===void 0?[]:N.slice(0,t)};
_.V.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var N=this.data.thumbnailRenderer;N.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",N.playlistVideoThumbnailRenderer.thumbnail);N.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",N.playlistCustomThumbnailRenderer.thumbnail)}};
_.V.computeThumbnailHeight=function(N,t,O,H,A){return H?A==="BIG"?280:A==="MASSIVE"?337:234:O?240:t?72:N?118:138};
_.V.computeThumbnailWidth=function(N,t,O,H,A){return H?A==="MEDIUM"?450:A==="BIG"?500:A==="MASSIVE"?600:420:O?360:t?128:N?210:246};
_.V.computeUseBiggerThumbs=function(N){return N&&_.h("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelThumbnail=function(N,t){return N&&!(t==null||!t.channelThumbnail)};
_.cv.Object.defineProperties(no.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
no.prototype.dataChanged=no.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],no.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],no.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],no.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],no.prototype,"displayItemCount",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],no.prototype,"isBackstagePlaylist",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],no.prototype,"isPostCompactPlaylist",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],no.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Q("design:type",Boolean)],no.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],no.prototype,"biggerThumbsStyle",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],no.prototype,"isDownloads",void 0);_.W([_.X({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Q("design:type",Object)],no.prototype,"shouldShowChannelThumbnail",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],no.prototype,"dataChanged",null);
_.W([_.a("isSearch"),_.Q("design:type",String),_.Q("design:paramtypes",[])],no.prototype,"stackThumbnailSize",null);_.W([_.en({is:"ytd-playlist-renderer",disableElementRegistration:!0})],no);
_.n(no,"ytd-playlist-renderer",function(){if(n$a===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);n$a=N}N=n$a;return N},{mode:1});var ZkS;var VH_;var WD=function(){var N=_.k.apply(this,arguments)||this;N.startX=0;return N};
_.p(WD,_.k);WD.prototype.onEndpointMouseDown=function(N){this.startX=N.clientX};
WD.prototype.onEndpointClick=function(N){this.startX!==N.clientX&&(N.preventDefault(),N.stopPropagation())};
WD.prototype.computeObjectFit=function(N){return N==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||N==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||N==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
WD.prototype.computeCardStyle=function(N){return N?N.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.cv.Object.defineProperties(WD.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:(t=N.searchRefinementCardRendererStyle)==null?void 0:t.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],WD.prototype,"data",void 0);_.W([_.X({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Q("design:type",Number)],WD.prototype,"objectFit",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Q("design:type",String)],WD.prototype,"cardStyle",void 0);
_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],WD.prototype,"roundContainer",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WD.prototype,"isAlbumCard",null);_.W([_.a("data","isAlbumCard"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WD.prototype,"collectionStack",null);_.W([_.en({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],WD);
_.n(WD,"ytd-search-refinement-card-renderer",function(){if(VH_!==void 0)return VH_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return VH_=N},{mode:1});var D8X;var rM=function(){var N=_.k.apply(this,arguments)||this;N.isRichGrid=!1;return N};
_.p(rM,_.k);_.W([_.X(),_.Q("design:type",Object)],rM.prototype,"data",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],rM.prototype,"componentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],rM.prototype,"ytdReduxBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],rM.prototype,"isRichGrid",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],rM.prototype,"miniMode",void 0);
_.W([_.en({is:"ytd-game-details-renderer",disableElementRegistration:!0})],rM);
_.n(rM,"ytd-game-details-renderer",function(){if(D8X!==void 0)return D8X;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return D8X=N},{mode:1});var U80;var ChY;var If=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return N};
_.p(If,_.k);_.V=If.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(N){var t=N||this.data;return t&&t.states&&t.currentStateId!=null?t.states.find(function(O){return O.stateId===t.currentStateId})||null:null};
_.V.currentStateRendererData=function(N){return(N=this.currentStateData(N))&&N.state&&N.state.buttonRenderer?N.state.buttonRenderer:null};
_.V.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.V.computeButtonIcon=function(N){N=this.currentStateRendererData(N);var t;return(N==null?0:(t=N.icon)==null?0:t.iconType)?N.icon.iconType.toLowerCase():null};
_.V.computeAccessibility=function(N){return(N=this.currentStateRendererData(N))&&N.accessibilityData?N.accessibilityData.accessibilityData||null:null};
_.V.computeButtonClass=function(N){var t=this.currentStateRendererData(N);if(!t)return"";N="";var O=t.style;O&&(N+=O.toLowerCase().replace(/_/g,"-")+" ");(t=t.size)&&(N+=t.toLowerCase().replace(/_/g,"-")+" ");return N.trim()};
_.V.computeServiceEndpoint=function(N){if(!N)return null;var t=N&&N.serviceEndpoint,O=this.get("command.commandMetadata.webCommandMetadata.sendPost",N);return t?t:O&&N.command?N.command:null};
_.V.computeBellMenuItemParams=function(N){var t;N=(t=_.M(N==null?void 0:N.command,_.Ab))==null?void 0:t.commands;if(!N||N.length===0)return null;t=_.M(N[0],_.GL);var O,H;return(t==null?0:(O=t.popup)==null?0:(H=O.menuPopupRenderer)==null?0:H.items)?t.popup.menuPopupRenderer.items.map(function(A){return A.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(N){var t=N.trackingParams,O=this.computeBellMenuItemParams(this.data);this.data&&t&&O&&O.includes(t)&&this.ytRenderButtonBehavior._setButtonIcon(N.icon.iconType.toLowerCase())};
_.V.onYtServiceRequestCompleted=function(N,t){(N=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",t))&&this.set("data",N)};
_.V.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.V.resetState=function(){this.set("data.currentStateId",3)};
_.V.onYtButtonTapHandler=function(){if(this.data){var N=this.currentStateRendererData(this.data);N&&this.ytRendererBehavior.logExplicitClick(N)}};
If.prototype.onYtServiceRequestError=If.prototype.onYtServiceRequestError;If.prototype.onYtServiceRequestCompleted=If.prototype.onYtServiceRequestCompleted;If.prototype.stateChanged=If.prototype.stateChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],If.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(G6.YtRenderButtonBehavior),_.Q("design:type",Object)],If.prototype,"ytRenderButtonBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],If.prototype,"data",void 0);_.W([_.ic("data","data.currentStateId"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],If.prototype,"stateChanged",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],If.prototype,"onYtServiceRequestCompleted",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],If.prototype,"onYtServiceRequestError",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],If);
_.n(If,"ytd-subscription-notification-toggle-button-renderer",function(){if(ChY!==void 0)return ChY;var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ChY=N},{mode:1});var KrS;var l2=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};N.tapHandler=function(){if(N.data){var t=N.currentStateRendererData();t&&N.ytRendererBehavior.logExplicitClick(t)}};
return N};
_.p(l2,_.k);_.V=l2.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.currentStateData=function(){var N=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(t){return t.stateId===N.data.currentStateId})||null:null};
_.V.currentStateRendererData=function(){var N=this.currentStateData();return N&&N.state&&N.state.buttonRenderer?N.state.buttonRenderer:null};
_.V.computeAccessibilityLabel=function(){var N,t,O;return(N=this.currentStateRendererData())==null?void 0:(t=N.accessibilityData)==null?void 0:(O=t.accessibilityData)==null?void 0:O.label};
_.V.computeBellMenuItemParams=function(){var N,t,O=(t=_.M((N=this.data)==null?void 0:N.command,_.Ab))==null?void 0:t.commands;if(!O||O.length===0)return null;N=_.M(O[0],_.GL);var H,A;return(N==null?0:(H=N.popup)==null?0:(A=H.menuPopupRenderer)==null?0:A.items)?N.popup.menuPopupRenderer.items.map(function(Z){return Z.menuServiceItemRenderer.trackingParams}):null};
_.V.handleBellMenuOpenSelectedAction=function(N){var t=N.trackingParams,O=this.computeBellMenuItemParams();if(this.data&&t&&O&&O.includes(t)&&(N==null||!N.isDisabled)){var H;((H=_.M(N.serviceEndpoint,_.VZ))==null?void 0:H.signal)!=="CLIENT_SIGNAL"&&(this.icon=N.icon.iconType)}};
_.V.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.V.onYtServiceRequestCompleted=function(N,t){if(N=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",t))this.icon=void 0,this.set("data",N)};
_.V.onYtServiceRequestError=function(){this.icon=void 0};
_.cv.Object.defineProperties(l2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N=this.data,t=this.textLabel,O=this.hostElement,H=this.computeAccessibilityLabel(),A=this.tapHandler,Z=this.isOverlay?"overlay":"mono",U=(N==null?0:N.disableButton)?"disabled":"active";t=t?_.zb(t):void 0;return{style:Z,type:"tonal",state:U,size:"M",focused:!1,formattedButtonText:t,iconPosition:"leading-trailing",onTap:zFg(N,A,O),accessibilityLabel:H}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var N=this.currentStateRendererData(),t,O,H=(O=this.icon)!=null?O:N==null?void 0:(t=N.icon)==null?void 0:t.iconType;if(H)return _.Vt(H)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.data)==null?void 0:(t=N.secondaryIcon)==null?void 0:t.iconType;if(O)return _.Vt(O)}}});
l2.prototype.onYtServiceRequestError=l2.prototype.onYtServiceRequestError;l2.prototype.onYtServiceRequestCompleted=l2.prototype.onYtServiceRequestCompleted;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],l2.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],l2.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],l2.prototype,"textLabel",void 0);
_.W([_.X(),_.Q("design:type",String)],l2.prototype,"icon",void 0);_.W([_.X(),_.Q("design:type",Boolean)],l2.prototype,"isOverlay",void 0);_.W([_.a("data.*","textLabel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],l2.prototype,"computedButtonShape",null);_.W([_.a("data.*","icon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],l2.prototype,"computedIcon",null);_.W([_.a("computedIcon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],l2.prototype,"computedAnimateIcon",null);
_.W([_.a("data.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],l2.prototype,"computedSecondaryIcon",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],l2.prototype,"onYtServiceRequestCompleted",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],l2.prototype,"onYtServiceRequestError",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],l2);
_.n(l2,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(KrS!==void 0)return KrS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return KrS=N},{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var Fra;_.o_(FE0,"yt-animated-action",{props:{backgroundLottieRef:_.$O,foregroundLottieRef:_.$O,wrapperClass:_.$O,disableAnimation:_.$O},unsafeExternallySettableAttributes:new Set(["key"])});var QH=function(){var N=_.k.apply(this,arguments)||this;N.animatedActionEnabled=_.h("web_animated_actions");N.foregroundLottieRef={};N.backgroundLottieRef={};N.forceIconOnly=!1;N.showTextWhileAnimating=!1;N.keyboardFocused=!1;N.isAnimating=!1;N.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return N};
_.p(QH,_.k);_.V=QH.prototype;_.V.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.V.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onYtServiceRequestSent=function(N,t){(this.get("endpoint.subscribeEndpoint",t)||this.get("endpoint.unsubscribeEndpoint",t))&&this.updateSubscriptionState(!this.subscribed)};
_.V.onYtServiceRequestCompleted=function(N,t){(N=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",t.data))&&this.bellButton&&(this.bellButton.data=N)};
_.V.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.CO(this.hostElement)};
_.V.onPlayerSubscribe=function(N){this.isCompactRed()||N!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.V.onPlayerUnsubscribe=function(N){this.isCompactRed()||N!==this.data.channelId||this.updateSubscriptionState(!1)};
_.V.handleUpdateSubscribeButtonAction=function(N){N=_.M(N,AVS);var t;N&&N.channelId===((t=this.data)==null?void 0:t.channelId)&&this.updateSubscriptionState(!!N.subscribed)};
_.V.computeButtonStyle=function(N){return this.get("style.styleType",N)||null};
_.V.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.V.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.V.updateSubscriptionState=function(N){if(N!==this.subscribed){this.set("data.subscribed",N);var t,O=(t=this.data)==null?void 0:t.subscribedEntityKey;O&&this.ytdReduxBehavior.dispatch(_.uF("subscriptionStateEntity",O,{key:O,subscribed:N}));this.isCompactRed()||_.or(this.hostElement,"yt-subscription-changed",N);N||(_.sl(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!N),N&&this.hasBellButton&&this.startAnimation())}};
_.V.startAnimation=function(){var N=this;if(!this.isAnimating){var t=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var O;(O=this.backgroundLottieRef.lottieEl)==null||O.goToAndPlay(0);var H;(H=this.foregroundLottieRef.lottieEl)==null||H.goToAndPlay(0);_.GB.addJob(function(){N.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.GB.addJob(function(){N.updateContainerToFitContent(!!N.subscribed,!0)},2,1500);
_.GB.addJob(function(){N.isAnimating=!1},2,t)}};
_.V.maybeAnimateBellIcon=function(){var N=_.Zr(this.hostElement).querySelector("yt-animated-icon");if(N){var t;(t=N.animationRef.lottieEl)==null||t.goToAndPlay(0)}};
_.V.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.V.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.V.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var N;this.unsubscribedWidth=(N=this.subscribeButtonShape)==null?void 0:N.getBoundingClientRect().width}var t;this.subscribedWidth=(t=this.bellButton)==null?void 0:t.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.V.updateContainerToFitContent=function(N,t){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(N?(N=this.subscribedWidth,t=this.isAnimating&&!t,this.subscribedIconOnlyWidth===void 0||t||(N=this.subscribedIconOnlyWidth),this.hostElement.style.width=N+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.V.clearContainerSize=function(){this.hostElement.style.width=""};
_.V.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.V.maybeSetSubscribedButtonIconOnlyWidth=function(){var N=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var t;N.subscribedIconOnlyWidth=(t=N.bellButton)==null?void 0:t.getBoundingClientRect().width;requestAnimationFrame(function(){if(N.bellButton){var O;N.bellButton.textLabel=
(O=N.data)==null?void 0:O.subscribedButtonText}})})))};
_.cv.Object.defineProperties(QH.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var N;return(N=this.data)==null?void 0:N.subscribedButtonText}var t;return this.forceIconOnly?void 0:(t=this.data)==null?void 0:t.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var N,t,O=((N=this.data)==null?void 0:(t=N.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"subscribe",timings:O,enabled:O.length>0&&!this.subscribed,experimentEnabled:O.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var N;return!this.subscribed&&((N=this.data)==null?void 0:N.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var t=N.renderer;var O=N.element;var H=N.subscribed;var A=N.commandController;var Z=N.isOverlay;N=N.stopPropagation;var U=wBQ(t,H);Z&&(U.style="overlay");Z=Object;var C=Z.assign,F;a:switch((F=t.style)==null?void 0:F.styleType){case "COMPACT_GRAY":case "COMPACT_RED":F={size:"S"};break a;default:F={size:"M"}}var g=TRN(t,
H);var B=(B=H?t.subscribedButtonText:t.unsubscribedButtonText)?_.zb(B):void 0;return C.call(Z,{},U,F,{focused:!1,toggled:H,accessibilityLabel:g,formattedButtonText:B,onTap:aeO(t,H,O,A,N)})}}}});
QH.prototype.onMouseDown=QH.prototype.onMouseDown;QH.prototype.onDataChanged=QH.prototype.onDataChanged;QH.prototype.observedSubscribed=QH.prototype.observedSubscribed;QH.prototype.onYtServiceRequestCompleted=QH.prototype.onYtServiceRequestCompleted;QH.prototype.onYtServiceRequestSent=QH.prototype.onYtServiceRequestSent;QH.prototype.maybeUpdateBellButtonText=QH.prototype.maybeUpdateBellButtonText;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],QH.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],QH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],QH.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],QH.prototype,"data",void 0);
_.W([_.X({selectorArgs:["data.subscribedEntityKey"],selector:Jag}),_.Q("design:type",Object)],QH.prototype,"subscriptionStateEntity",void 0);_.W([_.X({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],QH.prototype,"subscribed",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],QH.prototype,"branded",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],QH.prototype,"animatedActionEnabled",void 0);
_.W([_.X(),_.Q("design:type",Object)],QH.prototype,"foregroundLottieRef",void 0);_.W([_.X(),_.Q("design:type",Object)],QH.prototype,"backgroundLottieRef",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],QH.prototype,"overlayButton",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Q("design:type",Object)],QH.prototype,"buttonStyle",void 0);_.W([_.X(),_.Q("design:type",Object)],QH.prototype,"forceIconOnly",void 0);
_.W([_.X(),_.Q("design:type",Object)],QH.prototype,"showTextWhileAnimating",void 0);_.W([_.X({value:function(){return!!_.cY().resolve(_.BY(_.z6))&&_.h("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Q("design:type",Boolean)],QH.prototype,"useKeyboardFocused",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],QH.prototype,"keyboardFocused",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],QH.prototype,"isAnimating",void 0);_.W([_.a("data.notificationPreferenceButton.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QH.prototype,"hasBellButton",null);
_.W([_.gz("subscribedButtonText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QH.prototype,"maybeUpdateBellButtonText",null);_.W([_.a("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QH.prototype,"subscribedButtonText",null);_.W([_.a("data.timedAnimationData.animationTiming","subscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QH.prototype,"smartimationSettings",null);
_.W([_.X({reflectToAttribute:!0}),_.a("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QH.prototype,"subscribeButtonHidden",null);_.W([_.X({reflectToAttribute:!0}),_.a("subscribed","hasBellButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QH.prototype,"subscribeButtonInvisible",null);
_.W([_.X({reflectToAttribute:!0}),_.a("subscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QH.prototype,"unsubscribeButtonHidden",null);_.W([_.B2("ytd-subscription-notification-toggle-button-renderer-next"),_.Q("design:type",Object)],QH.prototype,"bellButton",void 0);_.W([_.B2("#subscribe-button-shape"),_.Q("design:type",HTMLElement)],QH.prototype,"subscribeButtonShape",void 0);
_.W([_.a("overlayButton","subscribed","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],QH.prototype,"buttonShape",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],QH.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],QH.prototype,"onYtServiceRequestCompleted",null);
_.W([_.gz("subscribed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QH.prototype,"observedSubscribed",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QH.prototype,"onDataChanged",null);_.W([_.dz("mousedown"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],QH.prototype,"onMouseDown",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],QH);
_.n(QH,"ytd-subscribe-button-renderer",function(){if(Fra!==void 0)return Fra;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden$="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Fra=N},{mode:1});var m$=function(){var N=_.k.apply(this,arguments)||this;N.isRichGrid=!1;return N};
_.p(m$,_.k);m$.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],m$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],m$.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],m$.prototype,"isRichGrid",void 0);_.W([_.en({is:"ytd-game-card-renderer",disableElementRegistration:!0})],m$);
_.n(m$,"ytd-game-card-renderer",function(){if(U80!==void 0)return U80;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return U80=N},{mode:1});var Ef={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.h("defer_menus")&&!IVp?0:void 0,waitForSignal:"eocs"};var d8u;var g7_;var GU=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return N};
_.p(GU,_.k);_.V=GU.prototype;_.V.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.V.onSeriesReminderStateEntityChange=function(){var N,t,O;((N=this.eventReminderStateEntity)==null?0:N.key)&&((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((O=this.eventReminderStateEntity)==null?void 0:O.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.uF("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.V.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.V.onYtServiceRequestError=function(){var N;this.updateReminderStateEntitiesFromButtonState((N=this.data)==null?void 0:N.currentState)};
_.V.handleUpdateUpcomingEventReminderButtonStateCommand=function(N){if(N=_.M(N,OcS)){var t,O=(t=this.data)==null?void 0:t.targetId;O&&N.targetId===O&&_.nO(this.updateReminderStateEntitiesFromButtonState.bind(this,N.state))}};
_.V.getButtonStateFromReminderState=function(){var N;if(((N=this.seriesReminderStateEntity)==null?void 0:N.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var t;if(((t=this.eventReminderStateEntity)==null?void 0:t.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var O,H;if(((O=this.seriesReminderStateEntity)==null?void 0:O.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((H=this.eventReminderStateEntity)==
null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var A;return(A=this.data)==null?void 0:A.currentState};
_.V.updateReminderStateEntitiesFromButtonState=function(N){if(N){switch(N){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":N="UPCOMING_EVENT_REMINDER_STATE_NONE";var t="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":N="UPCOMING_EVENT_REMINDER_STATE_SINGLE";t="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":N="UPCOMING_EVENT_REMINDER_STATE_NONE";t="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var O;
((O=this.eventReminderStateEntity)==null?0:O.key)&&this.ytdReduxBehavior.dispatch(_.uF("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:N})));var H;((H=this.seriesReminderStateEntity)==null?0:H.key)&&this.ytdReduxBehavior.dispatch(_.uF("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:t})))}};
_.cv.Object.defineProperties(GU.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var N=this.getButtonStateFromReminderState(),t,O;if(N&&((t=this.data)==null?0:(O=t.states)==null?0:O.length))for(t=_.D(this.data.states),O=t.next();!O.done;O=t.next()){O=O.value;var H=void 0;if(((H=_.M(O,HcR))==null?void 0:H.state)===N)return _.M(O,HcR)}}}});
GU.prototype.onYtServiceRequestError=GU.prototype.onYtServiceRequestError;GU.prototype.onYtServiceRequestCompleted=GU.prototype.onYtServiceRequestCompleted;GU.prototype.onSeriesReminderStateEntityChange=GU.prototype.onSeriesReminderStateEntityChange;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],GU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],GU.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],GU.prototype,"data",void 0);_.W([_.X({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:s4N}),_.Q("design:type",Object)],GU.prototype,"eventReminderStateEntity",void 0);
_.W([_.X({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(N,t){return _.CM(N.entities,"sportsSeriesReminderStateEntity",t)}}),
_.Q("design:type",Object)],GU.prototype,"seriesReminderStateEntity",void 0);_.W([_.a("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],GU.prototype,"currentButtonStateRenderer",null);_.W([_.gz("seriesReminderStateEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GU.prototype,"onSeriesReminderStateEntityChange",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GU.prototype,"onYtServiceRequestCompleted",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GU.prototype,"onYtServiceRequestError",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],GU);
_.n(GU,"ytd-upcoming-event-reminder-button-renderer",function(){if(g7_!==void 0)return g7_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return g7_=N},{mode:1});var yEX;var Rf=function(){return _.k.apply(this,arguments)||this};
_.p(Rf,_.k);Rf.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.cv.Object.defineProperties(Rf.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(_.h("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Rf.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Rf.prototype,"shelfDismissal",void 0);_.W([_.a("data.responseText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Rf.prototype,"text",null);
_.W([_.a("data.responseText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Rf.prototype,"textAriaLabel",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Rf);
_.n(Rf,"ytd-notification-multi-action-renderer",function(){if(yEX!==void 0)return yEX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yEX=N},{mode:1});var Bgf;var vD=function(){return _.k.apply(this,arguments)||this};
_.p(vD,_.k);vD.prototype.ready=function(){var N=this;_.O6(this.hostElement).querySelector("#undo").addEventListener("tap",function(){N.onUndoTap()})};
vD.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vD.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],vD);
_.n(vD,"ytd-notification-text-renderer",function(){if(Bgf!==void 0)return Bgf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Bgf=N},{mode:1});var cEf;var J6=function(){var N=_.k.apply(this,arguments)||this;N.mouseOverDelayJobId=0;N.fadeInImageDelayJobId=0;N.startTimeMs=-1;N.loadingStartTimeMs=-1;N.loadingEndTimeMs=-1;N.hasVideoPreview=!1;return N};
_.p(J6,_.k);_.V=J6.prototype;_.V.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.V.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.V.showThumbnail=function(){var N=this;this.csn=_.z8();_.YY("fmth");_.GB.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.HH(_.GB,function(){N.loadingStartTimeMs=(0,_.jg)();var t=_.O6(N.hostElement).querySelector("#thumbnail");t.complete?N.displayMouseOverImage():t.addEventListener("load",_.Fb(N,N.displayMouseOverImage))},150):_.VQ(_.O6(this.hostElement).querySelector("#play"),"show",!0)};
_.V.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.V.onTap=function(){this.removeVideoPreview()};
_.V.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var N=this.videoId,t=this.csn,O=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,H=this.startTimeMs,A=this.hasVideoPreview,Z=_.ib(this.trackingParams),U={isMovingThumbnail:A};A&&H>0&&(O>0&&(U.movingThumbnailLoadingDurationMs=Math.round(O)),U.durationHoveredMs=Math.round((0,_.jg)()-H));N&&(U.videoId=N);_.lp(t,Z,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:U});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.V.removeVideoPreview=function(){_.GB.cancelJob(this.mouseOverDelayJobId);_.GB.cancelJob(this.fadeInImageDelayJobId);var N=_.O6(this.hostElement).querySelector("#thumbnail");_.VQ(N,"fade-in",!1);N.removeEventListener("load",_.Fb(this,this.displayMouseOverImage));N=_.O6(this.hostElement).querySelector("#play");_.VQ(N,"fade-in",!1);_.VQ(N,"show",!1)};
_.V.displayMouseOverImage=function(){var N=_.O6(this.hostElement).querySelector("#thumbnail"),t=_.O6(this.hostElement).querySelector("#play");this.isImageAvailable(N)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.jg)(),this.startTimeMs=(0,_.jg)(),this.fadeInImageDelayJobId=_.HH(_.GB,function(){_.VQ(N,"fade-in",!0)},50)):_.VQ(t,"fade-in",!0)};
_.V.computeThumbnail=function(N,t){var O;N&&N.movingThumbnailDetails&&N.movingThumbnailDetails.thumbnails&&t?O=_.s4(N.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):O=t?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(O)return _.Id(O)};
_.V.isImageAvailable=function(N){return!(!N.src||N.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||N.naturalWidth===120)};
J6.prototype.onTap=J6.prototype.onTap;J6.prototype.dataChanged=J6.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],J6.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],J6.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],J6.prototype,"csn",void 0);_.W([_.X(),_.Q("design:type",Object)],J6.prototype,"trackingParams",void 0);
_.W([_.X(),_.Q("design:type",String)],J6.prototype,"videoId",void 0);_.W([_.X(),_.Q("design:type",Boolean)],J6.prototype,"isAttachedAndDataSet",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],J6.prototype,"dataChanged",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],J6.prototype,"onTap",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],J6);
_.n(J6,"ytd-moving-thumbnail-renderer",function(){if(cEf!==void 0)return cEf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return cEf=N},{mode:1});var $8_;_.UI=function(N){this.hostElement=N;this.eventSink=null;this.eventList=[]};
_.UI.prototype.shouldForward=function(){var N,t;return(t=(N=this.eventSink)==null?void 0:N.isConnected)!=null?t:document.body.contains(this.eventSink)};
_.UI.prototype.start=function(N,t){this.eventSink&&this.stop();for(var O=0;O<N.length;O++)this.hostElement.addEventListener(N[O],_.Fb(this,this.forwardEvent));var H;this.eventSink=(H=t.hostElement)!=null?H:t;this.eventList=N};
_.UI.prototype.stop=function(){for(var N=0;N<this.eventList.length;N++)this.hostElement.removeEventListener(this.eventList[N],_.Fb(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.UI.prototype.forwardEvent=function(N,t){this.shouldForward()&&(N.stopPropagation(),this.eventSink instanceof Element?_.or(this.eventSink,N.type,t):_.J_(new _.fF("eventSink is not an element")))};_.of={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.UI(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(N,t){this.forwarder_.start(N,t)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var sf=function(){return _.k.apply(this,arguments)||this};
_.p(sf,_.k);_.V=sf.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.Ro("HTML_DIR")==="rtl"?"right":"left"};
_.V.dataChanged=function(){this.popupOpen=!1};
_.V.computeAriaLabel=function(N){return _.M(N,M8p).label};
_.V.onTap=function(N){N.stopPropagation();N.preventDefault();this.data.command&&_.cY().resolve(_.jo).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
sf.prototype.onPopupClosed=sf.prototype.onPopupClosed;sf.prototype.onPopupOpened=sf.prototype.onPopupOpened;sf.prototype.onTap=sf.prototype.onTap;sf.prototype.dataChanged=sf.prototype.dataChanged;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],sf.prototype,"eventForwardingBehavior",void 0);_.W([_.Y(_.sb),_.Q("design:type",Object)],sf.prototype,"ironButtonState",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],sf.prototype,"componentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],sf.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:-1}),_.Q("design:type",Number)],sf.prototype,"tabindex",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Q("design:type",Object)],sf.prototype,"ariaLabel",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],sf.prototype,"disableTooltips",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],sf.prototype,"popupOpen",void 0);
_.W([_.X(),_.Q("design:type",Element)],sf.prototype,"eventSink",void 0);_.W([_.B2("#tooltip"),_.Q("design:type",Object)],sf.prototype,"tooltip",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sf.prototype,"dataChanged",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],sf.prototype,"onTap",null);
_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sf.prototype,"onPopupOpened",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sf.prototype,"onPopupClosed",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],sf);
_.n(sf,"ytd-thumbnail-overlay-button-renderer",function(){if($8_!==void 0)return $8_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return $8_=N},{mode:1});var jLr;var NG=function(){return _.k.apply(this,arguments)||this};
_.p(NG,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],NG.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],NG.prototype,"disableAnimation",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],NG.prototype,"rounded",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],NG.prototype,"transparentBackground",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],NG.prototype,"noPadding",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],NG);
_.n(NG,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(jLr!==void 0)return jLr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return jLr=N},{mode:1});var ik0;var tX=function(){return _.k.apply(this,arguments)||this};
_.p(tX,_.k);tX.prototype.computeIconPosition=function(N){return this.get("iconPosition",N)||null};
tX.prototype.computeIconStyle=function(N){return this.get("iconStyle",N)||null};
tX.prototype.computeIsIconStyleFilled=function(N){if(!N)return!1;var t;return N.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((t=N.icon)==null?void 0:t.iconType)==="ERROR_BLACK"};
_.W([_.X(),_.Q("design:type",Object)],tX.prototype,"data",void 0);_.W([_.X({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],tX.prototype,"iconPosition",void 0);_.W([_.X({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],tX.prototype,"iconStyle",void 0);_.W([_.X({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],tX.prototype,"iconStyleFilled",void 0);
_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],tX);
_.n(tX,"ytd-thumbnail-overlay-icon-renderer",function(){if(ik0!==void 0)return ik0;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ik0=N},{mode:1});var uPf;var Os=function(){return _.k.apply(this,arguments)||this};
_.p(Os,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Os.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Os);
_.n(Os,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(uPf!==void 0)return uPf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return uPf=N},{mode:1});var SCE;var HK=function(){var N=_.k.apply(this,arguments)||this;N.isPreviewLoading=!1;return N};
_.p(HK,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],HK.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],HK.prototype,"isPreviewLoading",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],HK);
_.n(HK,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(SCE!==void 0)return SCE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return SCE=N},{mode:1});var hxp;var AX=function(){return _.k.apply(this,arguments)||this};
_.p(AX,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],AX.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],AX);
_.n(AX,"ytd-thumbnail-overlay-pinking-renderer",function(){if(hxp!==void 0)return hxp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return hxp=N},{mode:1});var MH0;var Zv=function(){var N=_.k.apply(this,arguments)||this;N.disableTooltips=!1;N.isLoading=!1;N.useExpandableTooltip=!1;N.toggled=!1;N.hovered=!1;N.mouseoverDelayJobId=0;N.toggleDelayJobId=0;N.expandAnimationDelayJobId=0;return N};
_.p(Zv,_.k);_.V=Zv.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.O6(this.hostElement).querySelector("#tooltip").position=_.Ro("HTML_DIR")==="rtl"?"right":"left"};
_.V.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.GB.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.GB.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.GB.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.V.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.GB.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.GB.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.GB.cancelJob(this.expandAnimationDelayJobId)};
_.V.computeIcon=function(N,t,O){return(N=O?t:N)&&N.iconType?_.Vt(N.iconType):void 0};
_.V.computeAriaLabel=function(N,t,O){return _.M(O?t:N,M8p).label};
_.V.computeTooltip=function(N,t,O){return O?t:N};
_.V.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.V.computeIconOnHover=function(N,t){if((N==null?0:N.iconType)&&!t)return _.Vt(N.iconType)};
_.V.onTap=function(N){var t=this;N.stopPropagation();N.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(N=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(N),this.useExpandableTooltip&&(this.toggleDelayJobId=_.HH(_.GB,function(){t.hovered=!1;t.data&&!t.data.toggledServiceEndpoint&&(t.expandAnimationDelayJobId=_.HH(_.GB,function(){t.set("data.isToggled",
!1)},200))},2E3))};
_.V.onMouseenter=function(){var N=this;this.mouseoverDelayJobId=_.HH(_.GB,function(){N.hovered=!0},300)};
_.V.onMouseleave=function(){_.GB.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.V.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.V.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.V.onServiceRequestCompleted=function(N,t){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(t)||this.set("data.isToggled",!this.data.isToggled)};
_.V.serviceRequestWasSuccessful=function(N){return _.M(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.CY)?N.data.status==="STATUS_SUCCEEDED":!0};
Zv.prototype.onServiceRequestCompleted=Zv.prototype.onServiceRequestCompleted;Zv.prototype.onPopupClosed=Zv.prototype.onPopupClosed;Zv.prototype.onPopupOpened=Zv.prototype.onPopupOpened;Zv.prototype.onMouseleave=Zv.prototype.onMouseleave;Zv.prototype.dataChanged=Zv.prototype.dataChanged;_.W([_.Y(_.sb),_.Q("design:type",Object)],Zv.prototype,"ironButtonState",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Zv.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],Zv.prototype,"ytEventForwardingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Zv.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Q("design:type",Object)],Zv.prototype,"ariaLabel",void 0);_.W([_.X(),_.Q("design:type",Object)],Zv.prototype,"disableTooltips",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Zv.prototype,"popupOpen",void 0);_.W([_.X(),_.Q("design:type",Object)],Zv.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Element)],Zv.prototype,"eventSink",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Zv.prototype,"useExpandableTooltip",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Q("design:type",Object)],Zv.prototype,"toggled",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Zv.prototype,"hovered",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Q("design:type",Object)],Zv.prototype,"iconOnHover",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zv.prototype,"dataChanged",null);
_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zv.prototype,"onMouseleave",null);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zv.prototype,"onPopupOpened",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zv.prototype,"onPopupClosed",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],Zv.prototype,"onServiceRequestCompleted",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Zv);
_.n(Zv,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(MH0!==void 0)return MH0;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MH0=N},{mode:_.O4("kevlar_poly_si_batch_j053")?1:2});var bku;var pJS=_.q(function(N){var t=N.data;var O=N.thumbnailSize;var H=function(){return t().enableSegmentView};
return _.d("yt-thumbnail-overlay-progress-bar-view-model",{class:_.V7("ytThumbnailOverlayProgressBarHost",function(){return eFy(O==null?void 0:O())})},_.d(_.y,{cond:H,
then:function(){return _.d("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.d("div",{class:_.Lx("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+t().startPercent+"%"}}),_.d("div",{class:_.Lx("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+t().segmentDurationPercent+"%"}},_.d("div",{class:_.Lx("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.d("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.d("div",null," ",function(){return t().segmentLabel})),_.d("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.d("div",{class:_.Lx("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.d(_.y,{cond:function(){return!H()&&t().startPercent},
then:function(){var A={};return _.d("div",{class:_.Lx("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(A.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.h("web_enable_modern_progress_bar_overlay"),A))},_.d("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+t().startPercent+"%"}}))}}))},"Fa");
pJS.idomCompat=!0;var LrY=_.q(function(N){var t=_.dZ(),O=_.cH(function(A){var Z,U,C;a:{var F=(Z=N.data())==null?void 0:Z.animationActivationTargetId;Z=((U=N.data())==null?void 0:U.animationActivationEntityKey)||"";U=(C=N.data())==null?void 0:C.animationActivationEntitySelectorType;if(Z&&F)switch(U){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":A=_.DN(A,Z);C=_.cY().resolve(_.BY(_.kf));F=!!(A&&A.videoId===F&&(C==null?0:C.isMiniplayerActive()));F={activated:F,playAnimation:F&&A.playerState==="PLAYER_STATE_PLAYING"};
break a}F=void 0}return F});
_.rp(function(){var A;if((A=O())==null?0:A.activated){var Z;if((Z=O())==null?0:Z.playAnimation){var U;(U=t.lottieEl)==null||U.goToAndPlay(0)}else{var C;(C=t.lottieEl)==null||C.goToAndStop(0)}}},"DbQiXd");
var H=function(){var A,Z=!((A=O())==null||!A.activated);if(N.data()){A=N.data();var U=void 0;A.icon&&(U=_.NsM(A.icon),U=C6y(U));var C=void 0,F;if((F=A.backgroundColor)==null?0:F.lightTheme){var g;C={backgroundColor:wY((g=A.backgroundColor)==null?void 0:g.lightTheme,"0.8")}}if(A.text||U||Z){if(Z&&A.lottieData&&t){g=A.lottieData;var B,c,u;F={animationConfig:{name:g.url,path:g.url,autoplay:(B=g.settings)==null?void 0:B.autoplay,loop:(u=(c=g.settings)==null?void 0:c.loop)!=null?u:!0},animationRef:t}}else F=
void 0;if(Z)B=17;else b:switch(A.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":B=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":B=19;break b;default:B=17}Z={type:B,text:Z&&A.animatedText?A.animatedText:A.text,icon:U,customColors:C,animation:F}}else Z=void 0}else Z=void 0;return Z};
return _.d("yt-thumbnail-badge-view-model",{class:_.V7("ytThumbnailBadgeViewModelHost",N.class)},_.d(_.y,{cond:H,then:function(){return _.d(_.gM,{data:function(){return H()}})}}))},"Ha");var zxZ=_.q(function(N){var t={},O={};return _.d("yt-thumbnail-bottom-overlay-view-model",{class:_.V7("ytThumbnailBottomOverlayViewModelHost",(t.ytThumbnailBottomOverlayViewModelHostBackground=function(){return N.data().enableGradientBackground},t))},_.d(_.iF,{data:function(){return N.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(H){return _.d(pJS,{data:H.data,
thumbnailSize:N.thumbnailSize})}}),_.d("div",{class:_.V7("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var H;
return PzG((H=N.thumbnailSize)==null?void 0:H.call(N))},(O.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var H;
return(H=N.isClip)==null?void 0:H.call(N)},O.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var H;
return!_.h("web_enable_modern_progress_bar_overlay")&&((H=N.thumbnailSize)==null?void 0:H.call(N))==="small"},O))},_.d(_.iF,{data:function(){return N.data().badge}},{thumbnailBadgeViewModel:function(H){return _.d(LrY,{data:H.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.d(_.iF,{data:function(){return N.data().badges}},{thumbnailBadgeViewModel:function(H){return _.d(LrY,{data:H.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
zxZ.idomCompat=!0;_.o_(zxZ,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.R_,thumbnailSize:_.R_,isClip:_.R_}});var leG={calledOnce:!1,state:"visible"},Qpy={calledOnce:!1,state:"hidden"};var V9=_.q(function(N){var t=N.data;var O=N.className;N=N.alwaysShow;var H=_.kwS(),A={};return _.d("thumbnail-hover-overlay-view-model",{el:_.E4(_.wZ(function(){return t().rendererContext})),
class:_.V7("ytThumbnailHoverOverlayViewModelHost",O,(A.ytThumbnailHoverOverlayViewModelHostForceHover=N,A)),"aria-label":function(){var Z;return(Z=_.M(t().rendererContext,_.ue))==null?void 0:Z.label},
role:function(){return _.a8(t().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.a8(t().rendererContext)!==void 0?0:void 0},
"on:keypress":H},_.d("div",{class:_.V7("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(t().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Z="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Z="ytThumbnailHoverOverlayViewModelStyleCover"}return Z})},_.d(_.y,{cond:function(){return t().icon},
then:function(Z){return _.d(_.Qt,{data:Z,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.d(_.y,{cond:function(){return t().text},
then:function(Z){return _.d(_.cu,{text:Z,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
V9.idomCompat=!0;var YCp=_.q(function(N){var t=N.data;return _.d(_.iF,{data:function(){return t==null?void 0:t().overlays}},{thumbnailHoverOverlayViewModel:V9})},"La");
YCp.idomCompat=!0;var aDE={};var Tgu=_.q(function(N){var t=N.data;var O=N.image;var H=N.state;var A=N.iconType;var Z=N.overlays;var U=N.isOverlay;var C=_.yM("div");N=_.D(_.b$(!0,void 0,"AA4e7b"));var F=N.next().value,g=N.next().value,B=function(){return!!t().onTap},c=_.Gr(A,"LIVE");
_.rp(function(){var S=t();requestAnimationFrame(function(){if(C.value===null)var b=!0;else{var z=C.value;b=S.badgeText;var w=E0O(S.size);b in aDE?z=aDE[b]:(z=z.clientWidth,aDE[b]=z);(b=z>w)?C.value.style.display="none":C.value.style.visibility="visible"}g(b)})},"vNdN8b");
var u=function(){var S={};return S["yt-spec-avatar-shape__image"]=!0,S["yt-spec-avatar-shape__image--ads-app"]=t().type===1,S["yt-spec-avatar-shape__image--inscribed-square"]=t().type===2,S};
return _.d("yt-avatar-shape",null,_.d("div",{el:_.E4(RF9(B,{keydown:function(S){if(S.key==="Enter"){var b;(b=S.currentTarget)==null||b.click()}},
click:function(S){var b,z;return void((z=(b=t()).onTap)==null?void 0:z.call(b,S))}})),
class:function(){var S={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},b=t();S=(S[b.clusterLayoutConfig?o0g(b.clusterLayoutConfig):spy(b.size)]=!0,S["yt-spec-avatar-shape__button--tappable"]=B(),S);(b=t().avatarButtonCustomClassName)&&(S[b]=!0);return _.Lx(S)},
"aria-label":function(){return B()?t().accessibilityText:""},
role:function(){return B()?"button":void 0},
tabindex:function(){return B()?0:void 0}},_.d("div",{class:function(){var S,b=t(),z=H==null?void 0:H(),w=U==null?void 0:U(),P=!((S=b.decorations)==null||!S.includes(2)||b.size!=="medium"&&b.size!=="large"),x=b.size==="tiny"||b.size==="extra-small",l,I,r,E,J={};
S=(J["yt-spec-avatar-shape--live-ring"]=!!(((l=b.decorations)==null?0:l.includes(0))&&tIN(b.size)),J["yt-spec-avatar-shape--stories-watched"]=P&&!(z==null||!z.storiesWatched),J["yt-spec-avatar-shape--stories-unwatched"]=P&&!(z==null?0:z.storiesWatched),J["yt-spec-avatar-shape--background-border"]=Owt(b.decorations)&&!x,J["yt-spec-avatar-shape--background-border-thin"]=Owt(b.decorations)&&x,J["yt-spec-avatar-shape__on-select-border"]=!((I=b.decorations)==null||!I.includes(4)),J["yt-spec-avatar-shape__white-border"]=
!((r=b.decorations)==null||!r.includes(5)),J["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((E=b.decorations)==null?0:E.includes(5))&&x),J["yt-spec-avatar-shape--is-overlay"]=!!w,J);return _.Lx(S)},
style:function(){a:{var S=t().clusterLayoutConfig;if(S){b:{var b=S.numAvatarsInCluster;var z=S.avatarIndex;if(z!==b-1){switch(S.clusterSize){case "small":S="32";break;case "medium":S="36";break;case "40":S="40";break;default:b=void 0;break b}b="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+S+"x"+S+"_avatars_"+b+"_index_"+z+".svg"}else b=void 0}if(b){b=_.FM({"-webkit-mask-image":"url("+b+")","mask-image":"url("+b+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}b=void 0}return b}},_.d("div",{class:function(){var S={};
var b=t();S=(S[b.clusterLayoutConfig?v0p(b.clusterLayoutConfig):JWz(b.size)]=!0,S["yt-spec-avatar-shape--no-margin"]=Owt(t().decorations),S["yt-spec-avatar-shape--square"]=t().type===2,S);return _.Lx(S)}},_.d(_.Qt,{data:O,
alt:function(){return!B()&&t().accessibilityText?t().accessibilityText:""},
targetWidth:function(){return NLN(t().size)},
targetHeight:function(){return NLN(t().size)},
className:function(){return _.Lx(u())}}),_.d(_.y,{cond:function(){var S;
return((S=t().decorations)==null?void 0:S.includes(0))&&tIN(t().size)},
then:function(){return _.d("div",{class:function(){var S={};S=(S["yt-spec-avatar-shape__live-badge"]=!0,S["yt-spec-avatar-shape__live-badge--badge-small"]=t().size==="small",S["yt-spec-avatar-shape__live-badge--badge-medium"]=t().size==="medium"||t().size==="48",S["yt-spec-avatar-shape__live-badge--badge-large"]=t().size==="large",S["yt-spec-avatar-shape__live-badge--badge-extra-large"]=t().size==="extra-large"||t().size==="extra-extra-large"||t().size==="giant",S);return _.Lx(S)}},_.d(_.y,{cond:function(){return t().badgeText},
then:function(S){return _.d("div",{class:"yt-spec-avatar-shape__badge-text",el:C},S)}}),_.d(_.y,{cond:F,
then:function(){return _.d("div",{class:"yt-spec-avatar-shape__badge-icon"},_.d(_.dq,{icon:c,size:function(){a:switch(t().size){case "extra-large":var S=16;break a;default:S=13}return S}}))}}))}}),_.d(_.y,{cond:function(){var S,b;
return((S=t().decorations)==null?void 0:S.includes(1))||((b=t().decorations)==null?void 0:b.includes(0))&&!tIN(t().size)},
then:function(){return _.d("div",{class:function(){var S=t(),b,z,w={};var P=(w["yt-spec-avatar-shape__live-dot"]=!((b=S.decorations)==null||!b.includes(0)||tIN(S.size)),w["yt-spec-avatar-shape__new-content"]=!((z=S.decorations)==null||!z.includes(1)),w);return _.Lx(P)}})}}),_.d(_.y,{cond:function(){return!!Z},
then:function(){return _.d("div",{class:function(){var S={};S=Object.assign((S["yt-spec-avatar-shape__image-overlays"]=!0,S),u());return _.Lx(S)}},Z==null?void 0:Z())}})))))},"Oa");
Tgu.idomCompat={callbacks:{overlays:!0}};_.Dv=_.q(function(N){function t(){O().endpoint&&_.xJ(O().endpoint)}
var O=N.data;var H=N.decorations;var A=N.avatarButtonCustomClassName;var Z=N.isOverlay;var U=N.clusterLayoutConfig;return _.d("avatar-view-model",null,_.d(_.y,{cond:function(){return O().image},
then:function(C){return _.d(Tgu,{data:function(){return AZ4({data:O(),onTap:O().endpoint?t:void 0,decorations:H==null?void 0:H(),badgeText:void 0,accessibilityText:O().accessibilityText,avatarButtonCustomClassName:A==null?void 0:A(),clusterLayoutConfig:U==null?void 0:U()})},
image:C,iconType:"RADAR_LIVE",overlays:function(){return _.d(YCp,{data:O})},
isOverlay:Z})}}))},"Pa");
_.Dv.idomCompat=!0;_.Us=_.q(function(N){var t=N.data;N=N.className;var O=_.yM("yt-decorated-avatar-view-model"),H=function(){return _.M(t().avatar,_.Pz)},A=_.aa(function(){var Z,U=t(),C=H(),F=_.a8(t().rendererContext),g=(Z=O.value)!=null?Z:void 0,B;
if(C){g={data:U,avatar:C,onTap:F,element:g};Z=g.data;U=g.avatar;C=g.onTap;F=g.element;g=g.commandController;C=C?UDx(C,F,g):void 0;F=[];Z.liveData&&F.push(0);var c;g=(c=Z.liveData)==null?void 0:c.liveBadgeText;c=(B=_.M(Z.rendererContext,_.ue))==null?void 0:B.label;B=AZ4({data:U,onTap:C,decorations:F,badgeText:g,accessibilityText:c?c:Z.a11yLabel})}else B={size:"medium"};return B},void 0,"c00kWd");
return _.d("yt-decorated-avatar-view-model",{class:_.V7("ytDecoratedAvatarViewModelHost",N),el:O},_.d(_.y,{cond:function(){var Z;return(Z=H())==null?void 0:Z.image},
then:function(Z){return _.d(Tgu,{data:A,image:Z,iconType:"RADAR_LIVE",overlays:function(){return _.d(YCp,{data:H})}})}}))},"Qa");
_.Us.idomCompat=!0;_.C_=_.q(function(N){var t=function(){var C;return Object.assign({},N.data(),(C=N.overrides)==null?void 0:C.call(N))},O=function(){return _.TE(t().rendererContext)},H=function(){var C=t().avatars,F,g;
return(g=(F=(C==null?0:C[0])?_.M(C[0],_.Pz):void 0)==null?void 0:F.avatarImageSize)!=null?g:"AVATAR_SIZE_UNKNOWN"},A=function(){return DD4(t())},Z=function(){if(t().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var C=void 0;
else if((C=N.decorations)==null?0:C.call(N))C=N.decorations();else{C=t();var F=0;C.avatars&&(F+=C.avatars.length);C.decoratedText&&(F+=1);C=F>1?[3]:[]}return C},U={};
return _.d("yt-avatar-stack-view-model",{el:_.E4(_.wZ(function(){return t().rendererContext})),
class:_.V7("yt-avatar-stack-view-model",N.className,(U["yt-avatar-stack-view-model--tappable"]=O,U["yt-avatar-stack-view-model--is-overlay"]=N.isOverlay,U["yt-avatar-stack-view-model--medium-text"]=N.useMediumText,U)),tabindex:function(){return O()?0:void 0},
role:function(){return O()?"link":void 0},
"aria-label":function(){var C,F;return(F=(C=_.M(t().rendererContext,_.ue))==null?void 0:C.label)!=null?F:""}},_.d(_.y,{cond:function(){var C;
return t().avatars&&!((C=N.hideAvatar)==null?0:C.call(N))},
then:function(){return _.d("div",{class:"yt-avatar-stack-view-model__avatars"},_.d(_.y,{cond:function(){return t().decoratedText},
then:function(C){var F={};return _.d("div",{class:_.V7("yt-avatar-stack-view-model__text-container",(F["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS"},F["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var g;
return((g=N.isOverlay)==null?void 0:g.call(N))&&(H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS")},F)),
style:_.FM({width:function(){return A().avatarSizeInPx+"px"},
height:function(){return A().avatarSizeInPx+"px"}})},_.d(_.cu,{text:C,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.d("div",{style:function(){return _.FM(A().avatarStackStyle)()},
class:function(){return A().avatarStackClass}},_.d(_.iF,{data:function(){return A().avatars.reverse()}},{avatarViewModel:function(C,F){return _.d("div",{style:function(){var g,B;
return _.FM((B=(g=A()).avatarStyle)==null?void 0:B.call(g,F()))()},
class:function(){return A().avatarClass}},_.d(_.Dv,{data:C.data,
decorations:Z,avatarButtonCustomClassName:function(){return A().avatarButtonCustomClassName},
isOverlay:N.isOverlay,clusterLayoutConfig:function(){var g,B;return(B=(g=A()).clusterLayoutConfig)==null?void 0:B.call(g,F())}}))},
decoratedAvatarViewModel:function(C,F){return _.d("div",{style:function(){var g,B;return _.FM((B=(g=A()).avatarStyle)==null?void 0:B.call(g,F()))()},
class:function(){return A().avatarClass}},_.d(_.Us,{data:C.data}))}})))}}),_.d(_.y,{cond:function(){return t().text},
then:function(C){return _.d(_.cu,{text:C,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.C_.idomCompat=!0;_.o_(_.q(function(N){var t=N.data;var O=N.thumbnailSize;return _.d("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.d("div",{class:_.V7("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Cog(O==null?void 0:O())})},_.d(_.iF,{data:function(){return t().avatarStack}},{avatarStackViewModel:function(H){return _.d(_.C_,{data:H.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.$O,
thumbnailSize:_.$O}});var wJ_=_.q(function(N){N=_.RH(N,{hidden:!1});var t=N.data;N=N.hidden;return _.d("yt-thumbnail-overlay-title-view-model",{class:_.V7("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(t().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var O="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:O="ytThumbnailOverlayTitleViewModelPositionTop"}return O}),
hidden:N},_.d(_.y,{cond:function(){return t().leadingContent},
then:function(O){return _.d("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.d(_.iF,{data:O},{decoratedAvatarViewModel:_.Us}))}}),_.d("div",null,_.d(_.cu,{text:function(){return t().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.d(_.y,{cond:function(){return t().subtitle},
then:function(){return _.d(_.cu,{text:function(){return t().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
wJ_.idomCompat=!0;_.o_(wJ_,"yt-thumbnail-overlay-title-view-model",{props:{data:_.$O,hidden:_.$O}});_.ex_=_.q(function(N){N=_.RH(N,{isClip:!1});var t=N.data,O=N.thumbnailSize,H={};return _.d("yt-thumbnail-overlay-badge-view-model",{class:_.V7("yt-thumbnail-overlay-badge-view-model",function(){a:switch(t().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var A="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:A="yt-thumbnail-overlay-badge-view-model--bottom-end"}return A},function(){return KEO(O==null?void 0:O())},(H["yt-thumbnail-overlay-badge-view-model--clip"]=N.isClip,
H))},_.d(_.iF,{data:function(){return t().thumbnailBadges}},{thumbnailBadgeViewModel:function(A){return _.d(LrY,{data:A.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.ex_.idomCompat=!0;_.o_(_.ex_,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.$O,thumbnailSize:_.$O,isClip:_.$O}});var Phr=_.q(function(N){var t=N.data;N=N.hidden;var O=_.aa(function(){return t().indicatorCount||0},void 0,"AbKnMc"),H={};
return _.d("yt-page-indicator-view-model",{class:_.V7("ytPageIndicatorViewModelHost",(H.ytPageIndicatorViewModelIndicatorHidden=function(){return!t().indicatorCount},H)),
hidden:N},_.d(_.nL,{each:function(){return Array(O())}},function(A,Z){var U={};
return _.d("div",{class:_.V7("ytPageIndicatorViewModelIndicator",(U.ytPageIndicatorViewModelIndicatorSelected=function(){return t().selectedIndex===Z()},U))})}))},"Va");
Phr.idomCompat=!0;_.o_(Phr,"yt-page-indicator-view-model",{props:{data:_.$O,hidden:_.$O}});var K_=function(){var N=_.k.apply(this,arguments)||this;N.eventSink=function(){return N};
N.disableInteraction=!1;N.noRoundedCorners=!1;N.isPreviewLoading=!1;N.isOriginalAspectRatio=!1;N.computedObjectFit=!1;N.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return N};
_.p(K_,_.k);_.V=K_.prototype;
_.V.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.h("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.V.onImageLoaded=function(){this.loaded=!0};
_.V.onImageUnloaded=function(){this.loaded=!1};
_.V.computeRichThumbnail=function(N,t,O,H){if(N&&t&&!H&&!_.h("disable_moving_thumbs_handling")&&!O)return t};
_.V.computeImageWidth=function(N,t){return t||9999};
_.V.computeIsOriginalAspectRatio=function(N){return N};
_.V.computeIsLive=function(N){if(N==null?0:N.badges)for(var t=0;t<N.badges.length;t++){var O=N.badges[t];if(O.metadataBadgeRenderer&&O.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(N==null?0:N.thumbnailOverlays)for(t=0;t<N.thumbnailOverlays.length;t++)if(O=N.thumbnailOverlays[t],O.thumbnailOverlayTimeStatusRenderer&&O.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.V.computeObjectFit=function(N,t){return t||(N?"CONTAIN":"")};
_.V.computeNavigationEndpoint=function(N,t,O){return N?t:O};
_.V.computeHasClip=function(N){N=_.D(N||[]);for(var t=N.next();!t.done;t=N.next())if(t.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.V.computeOverlayColor=function(N){var t;return(N==null?0:(t=N.darkColorPalette)==null?0:t.section2Color)?N.darkColorPalette.section2Color:N==null?void 0:N.sampledThumbnailColor};
_.cv.Object.defineProperties(K_.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.xWz(this.width)}}});
K_.prototype.onImageUnloaded=K_.prototype.onImageUnloaded;K_.prototype.onImageLoaded=K_.prototype.onImageLoaded;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(FMp),_.Q("design:type",Object)],K_.prototype,"ytdThumbnailBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],K_.prototype,"componentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],K_.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],K_.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],K_.prototype,"circular",void 0);
_.W([_.X({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Q("design:type",Object)],K_.prototype,"richThumbnail",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Q("design:type",Boolean)],K_.prototype,"hasClip",void 0);_.W([_.X(),_.Q("design:type",Object)],K_.prototype,"eventSink",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],K_.prototype,"queued",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],K_.prototype,"richGridThumbnail",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],K_.prototype,"useExpandableTooltip",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],K_.prototype,"useUntranslatedNavigationEndpoint",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],K_.prototype,"disableInteraction",void 0);
_.W([_.X({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Q("design:type",Object)],K_.prototype,"computedNavigationEndpoint",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],K_.prototype,"nowPlayingEqualizerOnly",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],K_.prototype,"hidePlaybackStatus",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],K_.prototype,"objectFit",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],K_.prototype,"noRoundedCorners",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],K_.prototype,"watchFeedThumbnail",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],K_.prototype,"isPreviewLoading",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Q("design:type",Object)],K_.prototype,"isOriginalAspectRatio",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Q("design:type",Object)],K_.prototype,"computedObjectFit",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Q("design:type",Boolean)],K_.prototype,"isLiveVideo",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],K_.prototype,"loaded",void 0);_.W([_.X({computed:"computeOverlayColor(data.thumbnail)"}),_.Q("design:type",Object)],K_.prototype,"overlayColor",void 0);_.W([_.X(),_.Q("design:type",Boolean)],K_.prototype,"minimizePipBreakages",void 0);_.W([_.X({selector:_.Tdv}),_.Q("design:type",Boolean)],K_.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.X(),_.Q("design:type",Number)],K_.prototype,"width",void 0);
_.W([_.a("inlinePreviewIsEnabled"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],K_.prototype,"isPreviewDisabled",null);_.W([_.a("width"),_.Q("design:type",String),_.Q("design:paramtypes",[])],K_.prototype,"thumbnailSize",null);_.W([_.dz("image-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],K_.prototype,"onImageLoaded",null);
_.W([_.dz("image-unloaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],K_.prototype,"onImageUnloaded",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-thumbnail"})],K_);
var XJu=_.td()(K_,"ytd-thumbnail",function(){if(bku===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);bku=N}N=bku;return N},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying minimizePipBreakages".split(" "),mode:2});var g$G=function(N){var t=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15189_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15189_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(O){x8r(t,O)};
this.onLockupMouseLeaveFn=function(O){O=O.relatedTarget;var H,A;((H=document.getElementsByTagName("ytd-video-preview"))==null?0:(A=H.item(0))==null?0:A.contains(O))||(t.terminateVideoPreview(),Fq(t))};
this.onThumbnailMouseDownFn=function(){t.terminateVideoPreview();Fq(t)};
this.onTouchStart=function(){t.JSC$15189_touched=!0};
this.mediaRenderer=N.mediaRenderer;this.thumbnailElement=N.thumbnailElement;this.lockupElement=N.lockupElement;this.videoPreviewOptsInput=N.videoPreviewOpts;kDy(this);dV(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)):
_.J_(Error("Fh")):_.J_(Error("Gh")):qCf(this)},RE=function(N){qCf(N);
var t;(t=N.lockupElement)==null||t.removeEventListener("mouseenter",N.onMouseMoveFn);var O;(O=N.lockupElement)==null||O.removeEventListener("mouseleave",N.onLockupMouseLeaveFn);var H;(H=N.lockupElement)==null||H.removeEventListener("touchstart",N.onTouchStart);var A;(A=N.thumbnailElement)==null||A.removeEventListener("mousedown",N.onThumbnailMouseDownFn);Fq(N)},kDy=function(N){N.inlinePreviewIsEnabledForUser=_.v5().getState().ui.inlinePreviewIsEnabled;
N.unsubscribeFromInlinePreviewIsEnabled=_.Jc(_.v5(),_.Tdv,function(t){(N.inlinePreviewIsEnabledForUser=t)||Fq(N)});
N.JSC$15189_unsubscribeFromInlinePreviewIsActive=_.Jc(_.v5(),_.aTx,function(t){(N.inlinePreviewIsActive=t)||Fq(N)})},qCf=function(N){N.unsubscribeFromInlinePreviewIsEnabled();
N.unsubscribeFromInlinePreviewIsEnabled=function(){};
N.JSC$15189_unsubscribeFromInlinePreviewIsActive();N.JSC$15189_unsubscribeFromInlinePreviewIsActive=function(){}},x8r=function(N,t){t.buttons>0||(t=_.uP("kevlar_lockup_hover_delay",-1),N.JSC$15189_touched&&t>=0?(_.GB.cancelJob(N.videoPreviewJobId),N.videoPreviewJobId=_.HH(_.GB,function(){fDp(N)},t),N.JSC$15189_touched=!1):fDp(N))},dMN=function(N){N.videoPreviewJobId=_.HH(_.GB,function(){return _.K(function(t){return t.yield(n7Z(N,{isAutoplay:!0}),0)})})},fDp=function(N){!N.previewTriggered&&dV(N)&&
(N.inlinePreviewIsActive&&N.terminateVideoPreview(),N.previewTriggered=!0,N.mediaRenderer.isInlinePreviewTriggered=!0,_.GB.cancelJob(N.videoPreviewJobId),N.videoPreviewJobId=_.HH(_.GB,function(){return _.K(function(t){return t.yield(n7Z(N),0)})}))},n7Z=function(N,t){t=t===void 0?{}:t;
var O=t.isAutoplay===void 0?!1:t.isAutoplay;var H,A,Z,U;return _.K(function(C){if(C.nextAddress==1){if(!dV(N))return C.return();H=N.getVideoPreviewOpts();if(!H)return C.return();O&&(H.isAutoplay=!0);return(Z=(A=_.Np(N.mediaRenderer.hostElement,"yt-open-video-preview-action",[H]))&&A[0])?C.yield(A[0],3):C.jumpTo(2)}C.nextAddress!=2&&(Z=C.yieldResult===1);if(Z){var F=(U=N.mediaRenderer)==null?void 0:U.data;F&&(dDM(F)?delete F.inlinePlayerData:"inlinePlaybackEndpoint"in F&&delete F.inlinePlaybackEndpoint)}_.Ty(C)})};
g$G.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var N,t;if((t=(N=this.videoPreviewOptsInput)==null?void 0:N.videoPreviewData)!=null)N=t;else if(N=this.mediaRenderer.data)if(dDM(N))N={inlinePlaybackEndpoint:_.wF(N.inlinePlayerData.onVisible),navigationEndpoint:_.wF(N.onTap),thumbnail:"image"in N?N.image:N.thumbnail,thumbnailOverlays:void 0,accessibilityText:FE4(N)};else if("multipleInlinePlaybackEndpoint"in N){var O=_.M(_.M(N.multipleInlinePlaybackEndpoint,ncr),WTB);if(O!=
null&&O.playerDescriptors){t=[];O=_.D(O.playerDescriptors);for(var H=O.next();!H.done;H=O.next())H=H.value,t.push({inlinePlaybackEndpoint:H.inlinePlaybackEndpoint,navigationEndpoint:H.navigationEndpoint,thumbnail:H.thumbnail,thumbnailOverlays:H.thumbnailOverlays,accessibilityText:FE4(N)});N=t}else N=void 0}else N={inlinePlaybackEndpoint:N.inlinePlaybackEndpoint,navigationEndpoint:N.navigationEndpoint,thumbnail:N.thumbnail,thumbnailOverlays:N.thumbnailOverlays,accessibilityText:FE4(N)};else N=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:N,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var dV=function(N){var t;if(t=N.inlinePreviewIsEnabledForUser)t=(N=N.mediaRenderer.data)?"inlinePlaybackEndpoint"in N&&N.inlinePlaybackEndpoint||dDM(N)&&N.inlinePlayerData||"multipleInlinePlaybackEndpoint"in N&&N.multipleInlinePlaybackEndpoint?!0:!1:!1;return t};
g$G.prototype.terminateVideoPreview=function(){_.sl(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Fq=function(N){_.GB.cancelJob(N.videoPreviewJobId);N.inlinePreviewIsActive=!1;N.previewTriggered=!1;N.mediaRenderer.isInlinePreviewTriggered=!1};var WrB=_.mp(["#"]),gV=function(){var N=_.k.apply(this,arguments)||this;N.isDisabled=!1;return N};
_.p(gV,_.k);_.V=gV.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":Ef,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.getMetadata=function(N){var t=[];if(N.metadataText&&Object.keys(N.metadataText).length>0){var O=this.ytRendererBehavior.getSimpleString(N.metadataText);N.upcomingEventData&&N.upcomingEventData.upcomingEventText&&(O=_.bF(O,Number(N.upcomingEventData.startTime)));t.push(O)}else N.shortViewCountText&&t.push(this.ytRendererBehavior.getSimpleString(N.shortViewCountText)),N.publishedTimeText&&t.push(this.ytRendererBehavior.getSimpleString(N.publishedTimeText)),N.upcomingEventData&&N.upcomingEventData.upcomingEventText&&
(O=this.ytRendererBehavior.getSimpleString(N.upcomingEventData.upcomingEventText),t.push(_.bF(O,Number(N.upcomingEventData.startTime))));return t};
_.V.calculateBylineText=function(N){return N.shortBylineText?N.shortBylineText:N.bylineText?N.bylineText:null};
_.V.calculateIsDisabled=function(N){return!!N.isDisabled};
_.V.computeHrefWithDefault=function(N){return this.ytComponentBehavior.computeHref_(N)||_.Uoz(WrB)};
_.V.onDetailsTap=function(N){var t=this.data&&this.data.navigationEndpoint;t&&!_.RM(_.m1(N)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.h("kevlar_grid_video_renderer_killswitch")?_.or(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t))};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15196_inlinePreviewHoverListener=XF({mediaRenderer:this,lockupElement:_.O6(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.O6(this.hostElement).querySelector("ytd-thumbnail")})};
_.V.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15196_inlinePreviewHoverListener)==null||RE(N)};
_.V.computeThumbnailWidth=function(N,t){return t&&t>0?t:N?360:210};
_.V.computeNumBadgesInRow=function(N){var t;return((t=N.badges)==null?void 0:t.length)||0};
_.V.computeShowChannelThumbnail=function(N,t){var O;return t&&!!(N==null?0:(O=N.channelThumbnailSupportedRenderers)==null?0:O.channelThumbnailWithLinkRenderer)};
_.cv.Object.defineProperties(gV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$15196_inlinePreviewHoverListener)==null?0:dV(N))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
gV.prototype.dataChanged=gV.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],gV.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],gV.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Y(_.$t),_.Q("design:type",Object)],gV.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],gV.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gV.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],gV.prototype,"noEndpoints",void 0);_.W([_.X({computed:"calculateBylineText(data)"}),_.Q("design:type",Object)],gV.prototype,"bylineText",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],gV.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],gV.prototype,"isDownloading",void 0);_.W([_.X({reflectToAttribute:!0,value:0}),_.Q("design:type",Number)],gV.prototype,"width",void 0);_.W([_.X({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Q("design:type",Object)],gV.prototype,"isDisabled",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gV.prototype,"dataChanged",null);_.W([_.a("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gV.prototype,"isHovered",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gV.prototype,"hasAttributedBylineText",null);
_.W([_.a("bylineText","hasAttributedBylineText"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gV.prototype,"showBylineText",null);_.W([_.en({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],gV);
_.n(gV,"ytd-grid-video-renderer",function(){if(d8u!==void 0)return d8u;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return d8u=N},{mode:_.O4("kevlar_poly_si_batch_j047")?1:2});var rEZ;var y9=function(){var N=_.k.apply(this,arguments)||this;N.roundedContainer=!0;N.skipRoundingTop=!1;N.disableTopPadding=!1;N.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");N.extractOverlay=!1;return N};
_.p(y9,_.k);y9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
y9.prototype.onClick=function(N){var t,O=(t=this.data)==null?void 0:t.sourceEndpoint;!_.RM(_.m1(N),this.hostElement,["A".toString()])&&O&&_.or(this.hostElement,"yt-navigate",{endpoint:O})};
_.cv.Object.defineProperties(y9.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=(N=this.data)==null?void 0:N.paragraphMaxLines)!=null?t:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],y9.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],y9.prototype,"showVerticalDividers",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],y9.prototype,"roundedContainer",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],y9.prototype,"skipRoundingTop",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],y9.prototype,"disableTopPadding",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],y9.prototype,"amsterdamEnabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],y9.prototype,"extractOverlay",void 0);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y9.prototype,"showMetadataAtTop",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y9.prototype,"showMetadataBelowTitle",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.menu"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y9.prototype,"hasMenu",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.truncateParagraphs"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y9.prototype,"truncateParagraphs",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.paragraphMaxLines"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],y9.prototype,"paragraphMaxLines",null);
_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.background"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],y9.prototype,"background",null);_.W([_.en({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],y9);
_.n(y9,"ytd-info-panel-content-renderer",function(){if(rEZ!==void 0)return rEZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rEZ=N},{mode:_.O4("kevlar_poly_si_batch_j076")?1:2});var IDB;var lD_;var QLu;var m8R;var BK=function(){return _.k.apply(this,arguments)||this};
_.p(BK,_.k);BK.prototype.computeStyle=function(N){return N};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],BK.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],BK.prototype,"style_",void 0);_.W([_.wz({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],BK);
_.n(BK,"yt-channel-thumbnail-with-link-renderer",function(){if(m8R===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;QLu===void 0&&(QLu=document.createElement("template"));var H=QLu;O.call(t,H.content.cloneNode(!0),N.content.firstChild);m8R=N}N=m8R;return N},{mode:2});var cK=function(){return _.k.apply(this,arguments)||this};
_.p(cK,_.k);cK.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"}}}};
cK.prototype.computeTitleStyle=function(N){return N||null};
cK.prototype.computeAvatarStyle=function(N){return N||null};
cK.prototype.computeShowNavigationButton=function(N,t){return!(N==null||!N.navigationButton||t)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cK.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Q("design:type",String)],cK.prototype,"titleStyle",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Q("design:type",String)],cK.prototype,"avatarStyle",void 0);_.W([_.X(),_.Q("design:type",Boolean)],cK.prototype,"hideNavigationButton",void 0);_.W([_.en({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],cK);
_.n(cK,"ytd-rich-list-header-renderer",function(){if(lD_!==void 0)return lD_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return lD_=N},{mode:_.O4("kevlar_poly_si_batch_j058")?1:2});var $e=function(){return _.k.apply(this,arguments)||this};
_.p($e,_.k);$e.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]]"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$e.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],$e.prototype,"isSearch",void 0);_.W([_.en({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],$e);
_.n($e,"ytd-preview-card-renderer",function(){if(IDB!==void 0)return IDB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return IDB=N},{mode:1});var E7Q;var j3=function(){return _.k.apply(this,arguments)||this};
_.p(j3,_.k);j3.prototype.configureRendererStamper=function(){return{"data.menu":Ef}};
j3.prototype.dataChanged=function(){var N=this.get("colorExtractionPalette.section1Color",this.data);N=_.aI(N);_.CO(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":N})};
j3.prototype.computeCardStyle=function(N){return this.get("style.value",N)||null};
j3.prototype.dataChanged=j3.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],j3.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],j3.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Q("design:type",String)],j3.prototype,"cardStyle",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j3.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],j3);
_.n(j3,"ytd-compact-channel-recommendation-card-renderer",function(){if(E7Q!==void 0)return E7Q;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return E7Q=N},{mode:1});var GDS;var Rxr;var iR=function(){var N=_.k.apply(this,arguments)||this;N.alignAuto=!1;N.collapsed=!0;N.isToggled=!1;N.alwaysCollapsed=!1;N.canToggle=!0;N.collapsedHeight=80;N.disableToggle=!1;N.alwaysToggleable=!1;N.reversed=!1;N.shouldUseNumberOfLines=!1;N.recomputeOnResize=!1;N.canToggleJobId=0;N.lastReversed=!1;return N};
_.p(iR,_.k);_.V=iR.prototype;_.V.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.V.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.V.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var N=_.O6(this.hostElement),t=N.childNodes,O=document.createDocumentFragment(),H=N.childNodes.length-1;H>=0;H--)_.O6(O).appendChild(t[H]);_.h("enable_shadydom_free_scoped_node_methods")?_.Zr(this.hostElement).appendChild(O):N.appendChild(O)}};
_.V.ready=function(){var N=this;_.nO(function(){N.initChildrenObserver()},1)};
_.V.attached=function(){var N;(N=this.resizeObserver)==null||N.observe(this.content)};
_.V.detached=function(){this.detachObserver()};
_.V.toggle=function(N,t){this.canToggle&&(this.isToggled=t,_.or(this.hostElement,"yt-refit"),N&&N.stopPropagation())};
_.V.reset=function(){this.childrenChanged()};
_.V.onIronResize=function(){this.recomputeOnResize&&!_.h("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.V.computeIsMoreVisible=function(N,t){return N&&!t};
_.V.computeShouldUseNumberOfLines=function(N){try{return!!N&&window.CSS.supports("-webkit-line-clamp","1")}catch(t){}return!1};
_.V.computeIsLessVisible=function(N,t){return N&&t};
_.V.observeCollapsedHeightAndMaxLines=function(){var N=this.collapsedHeight,t=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.CO(this.hostElement,{"--ytd-expander-max-lines":""+t,"--ytd-expander-collapsed-height":""}):_.CO(this.hostElement,{"--ytd-expander-collapsed-height":N+"px","--ytd-expander-max-lines":""})};
_.V.handleMoreTap=function(N){this.disableToggle||(_.or(this.hostElement,"yt-expander-more-tapped"),this.toggle(N,!0))};
_.V.handleLessTap=function(N){_.or(this.hostElement,"yt-expander-less-tapped");this.toggle(N,!1)};
_.V.initChildrenObserver=function(){var N=this;this.observer=new MutationObserver(function(){N.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.h("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.KE(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var t;(t=N.resizeThrottle)==null||t.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.V.childrenChanged=function(){var N=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Oi(function(){N.canToggleJobId=0;N.calculateCanCollapse()})}))};
_.V.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.V.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.V.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("collapsed-changed",this.collapsed))};
_.V.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("is-toggled-changed",this.isToggled))};
_.V.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("can-toggle-changed",this.canToggle))};
_.cv.Object.defineProperties(iR.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
iR.prototype.canToggleChangedForBinding=iR.prototype.canToggleChangedForBinding;iR.prototype.isToggledChangedForBinding=iR.prototype.isToggledChangedForBinding;iR.prototype.collapsedChangedForBinding=iR.prototype.collapsedChangedForBinding;iR.prototype.observeCollapsedHeightAndMaxLines=iR.prototype.observeCollapsedHeightAndMaxLines;iR.prototype.onIronResize=iR.prototype.onIronResize;iR.prototype.reversedChanged=iR.prototype.reversedChanged;iR.prototype.toggledChanged=iR.prototype.toggledChanged;
iR.prototype.alwaysToggleableChanged=iR.prototype.alwaysToggleableChanged;_.W([_.Y(_.JV),_.Q("design:type",Object)],iR.prototype,"ironResizableBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iR.prototype,"alignAuto",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iR.prototype,"collapsed",void 0);_.W([_.X(),_.Q("design:type",Object)],iR.prototype,"isToggled",void 0);_.W([_.X(),_.Q("design:type",Object)],iR.prototype,"alwaysCollapsed",void 0);
_.W([_.X(),_.Q("design:type",Object)],iR.prototype,"canToggle",void 0);_.W([_.X(),_.Q("design:type",Object)],iR.prototype,"collapsedHeight",void 0);_.W([_.X(),_.Q("design:type",Object)],iR.prototype,"disableToggle",void 0);_.W([_.X(),_.Q("design:type",Object)],iR.prototype,"alwaysToggleable",void 0);_.W([_.X(),_.Q("design:type",Object)],iR.prototype,"reversed",void 0);_.W([_.X(),_.Q("design:type",Number)],iR.prototype,"maxNumberOfLines",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Q("design:type",Object)],iR.prototype,"shouldUseNumberOfLines",void 0);_.W([_.X(),_.Q("design:type",Object)],iR.prototype,"recomputeOnResize",void 0);_.W([_.B2("#content"),_.Q("design:type",HTMLDivElement)],iR.prototype,"content",void 0);_.W([_.ic("alwaysToggleable"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iR.prototype,"alwaysToggleableChanged",null);
_.W([_.ic("isToggled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iR.prototype,"toggledChanged",null);_.W([_.a("canToggleJobId"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iR.prototype,"isResetting",null);_.W([_.gz("reversed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iR.prototype,"reversedChanged",null);
_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iR.prototype,"onIronResize",null);_.W([_.gz("maxNumberOfLines","collapsedHeight"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iR.prototype,"observeCollapsedHeightAndMaxLines",null);_.W([_.gz("collapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iR.prototype,"collapsedChangedForBinding",null);
_.W([_.gz("isToggled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iR.prototype,"isToggledChangedForBinding",null);_.W([_.gz("canToggle"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iR.prototype,"canToggleChangedForBinding",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-expander"})],iR);
_.n(iR,"ytd-expander",function(){if(Rxr!==void 0)return Rxr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Rxr=N},{mode:1});var uR=function(){return _.k.apply(this,arguments)||this};
_.p(uR,_.k);uR.prototype.computeIsCarousel=function(N){return!!N.isCarousel};
uR.prototype.observeLightsourcePalette=function(){var N,t=(N=this.data)==null?void 0:N.vibrantsourceColorPaletteData;t&&_.Me(this.hostElement,t)};
uR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
uR.prototype.observeLightsourcePalette=uR.prototype.observeLightsourcePalette;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],uR.prototype,"data",void 0);_.W([_.X({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],uR.prototype,"isCarousel",void 0);
_.W([_.gz("data.vibrantsourceColorPaletteData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uR.prototype,"observeLightsourcePalette",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],uR);
_.n(uR,"ytd-media-upsell-renderer",function(){if(GDS!==void 0)return GDS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return GDS=N},{mode:2});var v7E;var S3=function(){var N=_.k.apply(this,arguments)||this;N.JSC$15223_playerEvents=new Map;N.listeningToPlayer=!1;N.startX=0;N.active=!1;N.shouldShowButtons=_.h("web_buttons_hidden_killswitch");N.isHighlighted=!1;N.useHighlightStyling=_.h("web_enable_deeper_metadata_highlight_styling");N.enableProblemWalkthrough=_.h("problem_walkthrough_sd");return N};
_.p(S3,_.k);_.V=S3.prototype;
_.V.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.V.created=function(){this.JSC$15223_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Fb(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Fb(this,this.onActiveUpdate))};
_.V.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Fb(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Fb(this,this.onActiveUpdate))};
_.V.onDataChanged=function(){this.removePlayerListeners()};
_.V.onColorPaletteChange=function(){var N={},t;if(_.qL()==="USER_INTERFACE_THEME_DARK"&&((t=this.data)==null?0:t.darkColorPalette)){var O=this.data.darkColorPalette;N["--ytd-macro-markers-list-item-background-color"]=_.TV(this.get("section2Color",O))}else{var H;_.qL()==="USER_INTERFACE_THEME_LIGHT"&&((H=this.data)==null?0:H.lightColorPalette)&&(O=this.data.lightColorPalette,N["--ytd-macro-markers-list-item-background-color"]=_.TV(this.get("section3Color",O)))}O?(N["--ytd-macro-markers-list-item-title-color"]=
_.TV(this.get("primaryTitleColor",O)),N["--ytd-macro-markers-list-item-secondary-color"]=_.TV(this.get("secondaryTitleColor",O)),N["--ytd-macro-markers-list-item-timestamp-background-color"]=_.TV(this.get("section1Color",O)),this.customButtonProperties={customColors:{color:_.TV(this.get("primaryTitleColor",O))}},this.useColorSampling=!0):(N["--ytd-macro-markers-list-item-background-color"]="initial",N["--ytd-macro-markers-list-item-title-color"]="initial",N["--ytd-macro-markers-list-item-secondary-color"]=
"initial",N["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.CO(this.hostElement,N)};
_.V.onEndpointMouseDown=function(N){this.startX=N.clientX};
_.V.onEndpointClick=function(N){var t=this,O,H,A;return _.K(function(Z){if(Z.nextAddress==1){if(t.startX!==N.clientX)return N.preventDefault(),Z.return();t.data&&t.ytRendererBehavior.logExplicitClick(t.data);if(!t.seekWithAnimationOnClick)return Z.jumpTo(0);if(N.button!==0||N.shiftKey||N.altKey||N.metaKey||N.ctrlKey||_.RM(_.m1(N),t.hostElement,["BUTTON".toString()]))return Z.return();N.stopPropagation();N.preventDefault();return t.data?Z.yield(_.NU().getPlayerPromise(),3):Z.return()}O=Z.yieldResult;
A=(H=_.M(t.data.onTap,_.rN))==null?void 0:H.startTimeSeconds;A!==void 0&&O.seekToTimeWithAnimation(A*1E3,_.Gv(t.data.title));_.Ty(Z)})};
_.V.computeLayout=function(N){return N};
_.V.computeIsHighlighted=function(N){return!!N};
_.V.computeCarouselType=function(N){return N};
_.V.hideCarousel=function(N){return this.hideThumbnail(N)};
_.V.hideThumbnail=function(N){return this.enableProblemWalkthrough&&N!==null&&N==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.V.onRepeatButtonToggle=function(N){var t=this;N.detail.toggled&&_.NU().getPlayerPromise().then(function(O){t.ytPlayerListenerBehavior.listenToPlayerEvents(O,t.JSC$15223_playerEvents);t.listeningToPlayer=!0})};
_.V.onLoopRangeChange=function(N){var t=_.O6(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(t){var O=t.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",t.polymerController.data);if(O){var H=Number(O.endTimeMs);if(Number(O.startTimeMs)!==(N==null?void 0:N.startTimeMs)||H!==(N==null?void 0:N.endTimeMs))t.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.V.removePlayerListeners=function(){var N=this;this.listeningToPlayer&&_.NU().getPlayerPromise().then(function(t){N.ytPlayerListenerBehavior.unlistenFromPlayerEvents(t,N.JSC$15223_playerEvents);N.listeningToPlayer=!1})};
_.V.onActiveUpdate=function(N){this.active=N.detail.active};
S3.prototype.onColorPaletteChange=S3.prototype.onColorPaletteChange;S3.prototype.onDataChanged=S3.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],S3.prototype,"ytPlayerListenerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],S3.prototype,"data",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],S3.prototype,"useCustomColors",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],S3.prototype,"active",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],S3.prototype,"shouldShowButtons",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Q("design:type",String)],S3.prototype,"layout",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Q("design:type",Object)],S3.prototype,"isHighlighted",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],S3.prototype,"useHighlightStyling",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],S3.prototype,"enableProblemWalkthrough",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Q("design:type",String)],S3.prototype,"carouselType",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],S3.prototype,"useColorSampling",void 0);_.W([_.X(),_.Q("design:type",Boolean)],S3.prototype,"seekWithAnimationOnClick",void 0);_.W([_.X(),_.Q("design:type",Object)],S3.prototype,"customButtonProperties",void 0);
_.W([_.B2("#repeat-button"),_.Q("design:type",HTMLElement)],S3.prototype,"repeatButton",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],S3.prototype,"onDataChanged",null);_.W([_.gz("data.lightColorPalette","data.darkColorPalette"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],S3.prototype,"onColorPaletteChange",null);
_.W([_.en({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],S3);
_.n(S3,"ytd-macro-markers-list-item-renderer",function(){if(v7E!==void 0)return v7E;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return v7E=N},{mode:1});var JES;var o7B;var hX=function(){return _.k.apply(this,arguments)||this};
_.p(hX,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hX.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],hX);
_.n(hX,"ytd-title-and-button-list-header-renderer",function(){if(o7B!==void 0)return o7B;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return o7B=N},{mode:1});var sLS;var NhY=new _.dk("BUTTON_RENDERER_TOKEN");_.MG=_.q(function(N){var t=_.cY().resolve(NhY);return _.d(t,Object.assign({},N,{overrides:N.buttonOverrides}))},"Wa");var tPE=_.q(function(N){var t=N.data,O=_.Gr(N.useSquareAspectRatio,!1);return _.d("dismissed-mini-game-card-view-model",null,_.d(_.y,{cond:function(){var H,A;return(H=t().responseText)==null?void 0:(A=H.runs)==null?void 0:A.length},
then:function(){var H={};return _.d("div",{class:_.V7("yt-mini-game-card-view-model__dismissed-card",(H["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!O()},H["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.h("web_game_card_force_2_by_3")},H["yt-mini-game-card-view-model--dismissed-square-card"]=O,H))},_.d("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.d(_.y,{cond:function(){return t().responseText.runs[0].text},
then:function(A){return _.d("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:A},A)}}),_.d(_.iF,{data:function(){return t().buttons}},{buttonRenderer:_.MG,
buttonViewModel:_.Pu})))}}))},"Xa");var Oy0=_.q(function(N){var t=N.data;return _.d("br-nz-badge-shape",{class:_.V7(function(){return yZO(t().brNzRatingBadgeType)}),
role:function(){return t().accessibilityText?"img":void 0},
"aria-label":function(){return t().accessibilityText}},function(){var O;
return(O=t())==null?void 0:O.text})},"Ya");_.L_=_.q(function(N){var t=function(){var O=N.data(),H,A,Z,U;if(O){var C=!((H=N.workaroundShortsIsThumbnailBadge)==null||!H.call(N));H=(A=N.modern)==null?void 0:A.call(N);A=(Z=N.numBadgesInRow)==null?void 0:Z.call(N);Z=(U=N.clipTextOverflow)==null?void 0:U.call(N);var F;a:switch(O.badgeStyle){case "BADGE_OVERLAY":U=!0;break a;default:U=!1}O={type:C?17:BL4(O.badgeStyle),brNzRatingBadgeType:cZG(O.badgeStyle),text:O.badgeText,icon:O.iconName,isOverlay:U,modern:H||_.h("web_modern_badge_view_model"),accessibilityText:O.accessibilityLabel||
((F=_.M(O.rendererContext,_.ue))==null?void 0:F.label),numBadgesInRow:A,clipTextOverflow:Z}}else O=void 0;return O};
return _.d("yt-badge-view-model",{class:_.V7("ytBadgeViewModelHost",N.class)},_.d(_.WZ,null,_.d(_.qC,{when:function(){var O;return!((O=t())==null||!O.brNzRatingBadgeType)}},function(){return _.d(Oy0,{data:function(){return t()}})}),_.d(_.qC,{when:function(){return!!t()&&!t().brNzRatingBadgeType}},function(){return _.d(_.gM,{data:function(){return t()}})})))},"Za");
_.L_.idomCompat=!0;var K6B=_.q(function(N){N=_.RH(N,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var t=N.data,O=N.useFullWidth,H=N.isDesktopWeb,A=N.addSearchResultTopMargin,Z=function(){return t().layout},U=function(){return t().title},C=function(){return t().metadataText?t().metadataText:t().genre},F=function(){return t().channelName},g=function(){return t().image},B=function(){return t().colorPalette},c=function(){return t().actionButton},u=function(){return t().overflowButton},
S=function(){return t().avatar},b=function(){return t().ageRating},z=function(){var l={};
l=_.V7("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(l["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return H()},l));
return _.d("div",{class:l},_.d(HyE,{imageData:g,colorPalette:B}),_.d(Apr,{onTap:function(){return t().onTap},
imageData:g,accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.d(_.y,{cond:function(){return!H()},
then:function(){return _.d(_.BZ,null,_.d(ZyZ,{layout:Z,colorPalette:B,isDesktopWeb:H,overflowButton:u,avatar:S,onTap:function(){return t().onTap},
genre:C,title:U,channelName:F}),_.d(VPE,{actionButton:c}))}}))},w=function(){var l={};
l=_.V7((l["yt-mini-game-card-view-model--search-result-desktop"]=function(){return H()},l["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!H()},l["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return A()},l));
return _.d("div",{class:l},z(),_.d(D9p,{description:function(){return t().description},
isDesktopWeb:H,title:U,genre:C,onTap:function(){return t().onTap},
actionButton:c,overflowButton:u,avatar:S,channelName:F}))},P=function(){var l={};
l=_.V7("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(l["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return H()},l["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return H()&&t().width===135},l["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return H()},l["yt-mini-game-card-view-model--big-metadata-font"]=function(){return t().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},l["yt-mini-game-card-view-model--use-full-width"]=
function(){return O()},l["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.h("web_game_card_force_2_by_3")},l));
return _.d("div",{class:l},_.d(U9Z,{colorPalette:B,isDesktopWeb:H,onTap:function(){return t().onTap},
accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
actionButton:c,imageData:g}),_.d(ZyZ,{layout:Z,colorPalette:B,isDesktopWeb:H,overflowButton:u,avatar:S,onTap:function(){return t().onTap},
genre:C,title:U,channelName:F}),_.d(_.y,{cond:b,then:function(I){return _.d(CGS,{ageRating:I})}}))},x=function(){var l={};
l=_.V7("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(l["yt-mini-game-card-view-model--square-card-desktop"]=function(){return H()},l["yt-mini-game-card-view-model--use-full-width"]=function(){return O()},l));
return _.d("div",{class:l},_.d(Apr,{onTap:function(){return t().onTap},
imageData:g,accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
isDesktopWeb:H}),_.d(ZyZ,{layout:Z,colorPalette:B,isDesktopWeb:H,overflowButton:u,avatar:S,onTap:function(){return t().onTap},
genre:C,title:U,channelName:F}),_.d(_.y,{cond:b,then:function(I){return _.d(CGS,{ageRating:I})}}))};
return _.d("mini-game-card-view-model",{class:N.className},_.d(_.WZ,null,_.d(_.qC,{when:function(){return Z()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return P()}),_.d(_.qC,{when:function(){return Z()==="MINI_APP_LAYOUT_SQUARE"}},function(){return x()}),_.d(_.qC,{when:function(){return Z()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return w()})))},"$a");
K6B.idomCompat=!0;var VPE=_.q(function(N){var t=_.Gr(N.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.d(_.iF,{data:N.actionButton},{buttonViewModel:function(O){return _.d("div",{class:t},_.d(_.Pu,{data:O.data}))}})},"ab"),Apr=_.q(function(N){var t=N.onTap;
var O=N.imageData;var H=N.accessibilityText;var A=N.overlayBadgeText;var Z=N.iconName;var U=N.unplayableInlinePlaybackIconName;N=N.isDesktopWeb;return _.d(_.YO,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:t},_.d(_.Qt,{data:O,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(H==null?void 0:H())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.d(F6B,{overlayBadgeText:A,iconName:Z,unplayableInlinePlaybackIconName:U,isDesktopWeb:N}))},"bb"),F6B=_.q(function(N){var t=N.overlayBadgeText;
var O=N.iconName;var H=N.unplayableInlinePlaybackIconName;var A=N.isDesktopWeb;return _.d("div",{class:"yt-mini-game-card-view-model__badge-container"},_.d(_.y,{cond:O,then:function(Z){return _.d("div",{class:"yt-mini-game-card-view-model__badge"},_.d("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.d(_.dq,{icon:Z,className:"yt-mini-game-card-view-model__icon",size:12}),_.d("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},t)))}}),_.d(_.y,{cond:function(){return!O()&&
t()},
then:function(){return _.d("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},t)}}),_.d(_.y,{cond:function(){return H()&&A()},
then:function(){return _.d("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.d(_.dq,{icon:H,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),HyE=_.q(function(N){var t=N.colorPalette;
var O=N.imageData;var H=function(){return t().vibrantColorPalette?t().vibrantColorPalette.section2Color:t().sectionTwoColor};
return _.d(_.BZ,null,_.d("div",{class:"yt-mini-game-card-view-model__background-base",style:_.FM({"background-color":function(){return wY(H(),"1")}})}),_.d("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.FM({"background-image":function(){return"url("+O().sources[0].url+")"}})}),_.d("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.FM({background:function(){return"linear-gradient(180deg,\n    "+wY(H(),".8")+" 0%,\n    "+wY(H(),".4")+" 25%,\n    "+wY(t().vibrantColorPalette?t().vibrantColorPalette.section4Color:t().sectionFourColor,".8")+" 100%)"}})}))},"db"),ZyZ=_.q(function(N){var t=N.layout;
var O=N.colorPalette;var H=N.overflowButton;var A=N.avatar;var Z=N.onTap;var U=N.title;var C=N.channelName;var F=N.genre;var g=function(){var B;return t()!=="MINI_APP_LAYOUT_SQUARE"&&((B=O())==null?0:B.textPrimaryColor)?"color: "+wY(O().textPrimaryColor,".7"):""};
return _.d("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.d(_.y,{cond:A,then:function(){return _.d("div",{class:"yt-mini-game-card-view-model__avatar"},_.d(_.iF,{data:A},{avatarViewModel:_.Dv}))}}),_.d(_.YO,{command:Z,
className:"yt-mini-game-card-view-model__metadata-details"},_.d("h3",{class:"yt-mini-game-card-view-model__title",title:U},U),_.d(_.y,{cond:A,then:function(){return _.d("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.d("span",{class:"yt-mini-game-card-view-model__genre",title:C,style:g},C),_.d("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:g},F))},
else:function(){return _.d("span",{class:"yt-mini-game-card-view-model__genre",title:F},F)}})),_.d("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.d(_.iF,{data:H},{buttonViewModel:function(B){var c=B.data;
return _.d(_.Pu,{data:function(){return Object.assign({},c(),{customFontColor:t()==="MINI_APP_LAYOUT_SINGLETON"?c().customFontColor:void 0})}})}})))},"eb"),U9Z=_.q(function(N){var t=N.colorPalette;
var O=N.isDesktopWeb;var H=N.onTap;var A=N.accessibilityText;var Z=N.overlayBadgeText;var U=N.iconName;var C=N.unplayableInlinePlaybackIconName;var F=N.actionButton;N=N.imageData;return _.d("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.d(HyE,{imageData:N,colorPalette:t}),_.d(Apr,{onTap:H,imageData:N,accessibilityText:A,overlayBadgeText:Z,iconName:U,unplayableInlinePlaybackIconName:C,isDesktopWeb:O}),_.d(_.y,{cond:function(){return F==null?void 0:F()},
then:function(){return _.d(VPE,{actionButton:F})}}))},"fb"),D9p=_.q(function(N){var t=N.description;
var O=N.isDesktopWeb;var H=N.title;var A=N.genre;var Z=N.onTap;var U=N.actionButton;var C=N.overflowButton;var F=N.avatar;N=N.channelName;var g={};g=_.V7("yt-mini-game-card-view-model--search-result-metadata-wrapper",(g["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=O,g["yt-mini-game-card-view-model--show-unplayable-on-hover"]=O,g["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!O()},g));
var B={};B=_.V7("yt-mini-game-card-view-model__search-result-info-row",(B["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!O()},B));
return _.d("div",{class:g},_.d("div",{class:B},_.d(_.YO,{command:Z,className:"yt-mini-game-card-view-model__metadata-details"},_.d("h3",{class:"yt-mini-game-card-view-model__title",title:H},H),_.d("span",{class:"yt-mini-game-card-view-model__genre",title:A},A)),_.d(VPE,{actionButton:U,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.d("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.d(_.iF,{data:C},{buttonViewModel:_.Pu}))),_.d("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.d("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.d("div",{class:"yt-mini-game-card-view-model__avatar"},_.d(_.iF,{data:F},{avatarViewModel:function(c){var u=c.data;return _.d(_.Dv,{data:function(){return Object.assign({},u(),{avatarImageSize:O()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.d(_.YO,{command:Z,
className:"yt-mini-game-card-view-model__description"},_.d("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},N)),_.d(_.YO,{command:Z,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.d("div",null)))),_.d(_.y,{cond:O,then:function(){return _.d(_.YO,{command:Z,className:"yt-mini-game-card-view-model__description"},t)}}))},"gb"),CGS=_.q(function(N){var t=N.ageRating;
return _.d("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.d(_.Qt,{data:function(){return{sources:[{url:t().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.d(_.L_,{data:function(){return{badgeText:t().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.o_(K6B,"mini-game-card-view-model",{props:{data:_.$O,className:_.$O,useFullWidth:_.$O,isDesktopWeb:_.$O,addSearchResultTopMargin:_.$O}});_.o_(tPE,"dismissed-mini-game-card-view-model",{props:{data:_.$O,useSquareAspectRatio:_.$O}});var zH=function(){var N=_.k.apply(this,arguments)||this;N.isSearch=!1;N.isRichGrid=!1;return N};
_.p(zH,_.k);_.V=zH.prototype;_.V.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.V.dismissibleItemOnYtServiceRequestSent=function(N,t){t.actions&&this.dismissibleItemProcessActions(N,t.actions)};
_.V.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.V.dataChanged=function(){this.dismissibleItemReset()};
_.V.dismissibleItemProcessActions=function(N,t){for(var O=0;O<t.length;O++){var H=t[O];_.M(H,_.lK)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.M(H,_.lK)),N.stopPropagation())}};
_.V.dismissibleItemHandleReplaceEnclosingAction=function(N){this.dismissedRenderer=N.item;this.isDismissed=!0};
_.cv.Object.defineProperties(zH.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var N;return!!this.data&&!((N=this.dismissedRenderer)==null?0:N.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.dismissedRenderer)==null||!N.notificationMultiActionRenderer)}}});
zH.prototype.dataChanged=zH.prototype.dataChanged;zH.prototype.dismissibleItemOnRequestSent=zH.prototype.dismissibleItemOnRequestSent;zH.prototype.dismissibleItemOnYtServiceRequestSent=zH.prototype.dismissibleItemOnYtServiceRequestSent;_.W([_.X(),_.Q("design:type",Object)],zH.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],zH.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],zH.prototype,"isDismissed",void 0);
_.W([_.X(),_.Q("design:type",Object)],zH.prototype,"dismissedRenderer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],zH.prototype,"isRichGrid",void 0);_.W([_.a("data.layout"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],zH.prototype,"useSquareAspectRatio",null);_.W([_.a("data","dismissedRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],zH.prototype,"showCard",null);
_.W([_.a("data","dismissedRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],zH.prototype,"showDismissed",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],zH.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.W([_.dz("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],zH.prototype,"dismissibleItemOnRequestSent",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zH.prototype,"dataChanged",null);_.W([_.wz({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],zH);
_.n(zH,"ytd-mini-game-card-view-model",function(){if(sLS!==void 0)return sLS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return sLS=N},{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var d9R;var gaX;var Ye=function(){return _.$I.apply(this,arguments)||this};
_.p(Ye,_.$I);Ye.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Ye.prototype.getContinuationUrl=function(N){var t={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(t.itct=this.data.clickTrackingParams);return _.CF(N,t)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ye.prototype,"data",void 0);_.W([_.wz({is:"yt-reload-continuation",noInjection:!0})],Ye);var ypS;var BhB;var aR=function(){var N=_.k.apply(this,arguments)||this;N.notificationData={};return N};
_.p(aR,_.k);_.V=aR.prototype;_.V.isMenuExpanded=function(N){return N&&N.length<=1?"undefined":"false"};
_.V.dataChanged_=function(){this.selected=void 0;var N=this.computeSelectedIndex_(this.data);N>=0&&(this.selected=N);N=this.data&&this.data.length>1;_.VQ(this.hostElement,"has-items",N);_.O6(this.hostElement).querySelector("#label").tabIndex=N?0:-1};
_.V.onDropdownOpen=function(){var N=_.z8();if(this.parentTrackingParams&&this.data){var t=_.ib(this.parentTrackingParams);this.data.forEach(function(O){N&&t&&O.trackingParams&&(O=_.ib(O.trackingParams),_.qp(N,t,O),_.Wc(N,[O]))})}else this.parentTrackingParams||_.J_(new _.fF("No parent tracking params passed in for yt-dropdown-menu."))};
_.V.hasNotification=function(N){var t;if(N.targetId&&((t=this.notificationData)==null?0:t.targetId)){var O;return N.targetId===((O=this.notificationData)==null?void 0:O.targetId)}};
_.V.computeSelectedIndex_=function(N){if(N)for(var t=0,O=N.length;t<O;t++)if(N[t].selected)return t;return-1};
_.V.computeLabel_=function(N){return this.data&&N!=void 0?this.data[N].title:""};
_.V.computeShowIcon_=function(N,t){return!t&&!!N};
_.V.computeVerticalOffset_=function(N){return N?36:0};
_.V.computeEndpoint_=function(N){return N.endpoint||N.navigationEndpoint};
_.V.onLabelClick_=function(N){this.data&&this.data.length<=1?N.stopPropagation():this.menuExpanded="true"};
_.V.onIronActivate_=function(N){N=N.detail.item;var t=_.O6(this.hostElement).querySelector("#repeat").itemForElement(N);if(t&&t.trackingParams){var O=_.z8(),H=_.ib(t.trackingParams);O&&_.IX(O,H)}if(t&&t.serviceEndpoint)_.h("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(t.serviceEndpoint):_.tb(this.hostElement,[t.serviceEndpoint]),_.or(this.hostElement,"yt-playlist-reloading");else a:{if((t=N.querySelector("yt-supported-renderers"))&&
(t=t.rendererElement)&&t.is=="yt-reload-continuation"){t.trigger();break a}(N=N.querySelector("yt-reload-continuation"))&&N.trigger()}};
_.V.onTap_=function(N){N.preventDefault()};
_.V.onItemTap_=function(N){this.ytEndpointBehavior.onEndpointTap_(N)};
_.V.onLinkFocus_=function(N){try{var t=N.target}catch(H){}if(t){var O=t.querySelector("tp-yt-paper-item");O&&_.W2(this,"focus",function(){O.focus()})}};
_.V.onMenuClose_=function(){this.menuExpanded="false"};
_.V.isLabelIconActive_=function(N){return N==="true"};
_.V.computeHasSubtitle_=function(N){return!!N};
_.V.computeHrefForItem_=function(N){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(N))};
_.V.updateSelectedFromBinding=function(N){this.selected=N.detail.value};
_.cv.Object.defineProperties(aR.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
aR.prototype.onMenuClose_=aR.prototype.onMenuClose_;aR.prototype.onTap_=aR.prototype.onTap_;aR.prototype.onIronActivate_=aR.prototype.onIronActivate_;aR.prototype.onDropdownOpen=aR.prototype.onDropdownOpen;aR.prototype.dataChanged_=aR.prototype.dataChanged_;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],aR.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.nD.YtEndpointBehavior),_.Q("design:type",Object)],aR.prototype,"ytEndpointBehavior",void 0);
_.W([_.X(),_.Q("design:type",Array)],aR.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],aR.prototype,"parentTrackingParams",void 0);_.W([_.X(),_.Q("design:type",Object)],aR.prototype,"selected",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],aR.prototype,"useLabel",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],aR.prototype,"useComputedAriaLabel",void 0);_.W([_.X(),_.Q("design:type",String)],aR.prototype,"icon",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],aR.prototype,"iconLabel",void 0);_.W([_.X(),_.Q("design:type",String)],aR.prototype,"ariaLabel",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],aR.prototype,"disabled",void 0);_.W([_.X({computed:"isMenuExpanded(data)"}),_.Q("design:type",String)],aR.prototype,"menuExpanded",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],aR.prototype,"closeOnActivate",void 0);
_.W([_.X({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.Q("design:type",Boolean)],aR.prototype,"modernButtons",void 0);_.W([_.X(),_.Q("design:type",Object)],aR.prototype,"notificationData",void 0);_.W([_.a("ariaLabel, selected"),_.X(),_.Q("design:type",String),_.Q("design:paramtypes",[])],aR.prototype,"computedAriaLabel",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aR.prototype,"dataChanged_",null);
_.W([_.dz("paper-dropdown-open"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],aR.prototype,"onDropdownOpen",null);_.W([_.dz("iron-activate"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],aR.prototype,"onIronActivate_",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],aR.prototype,"onTap_",null);
_.W([_.dz("iron-overlay-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],aR.prototype,"onMenuClose_",null);_.W([_.wz({is:"yt-dropdown-menu",disableElementRegistration:!0})],aR);
_.n(aR,"yt-dropdown-menu",function(){if(BhB===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;ypS===void 0&&(ypS=document.createElement("template"));var H=ypS;O.call(t,H.content.cloneNode(!0),N.content.firstChild);BhB=N}N=BhB;return N},{mode:2});var TH=function(){var N=_.k.apply(this,arguments)||this;N.hasNotification=!1;return N};
_.p(TH,_.k);TH.prototype.computeId=function(N){return N};
TH.prototype.computeHorizontalAlign=function(N){return N?"right":"left"};
TH.prototype.computeAccessibilityLabel=function(N){var t,O;return((t=N.accessibility)==null?void 0:(O=t.accessibilityData)==null?void 0:O.label)||null};
TH.prototype.notificationDataChanged=function(){var N;this.hasNotification=!!this.notificationData&&!((N=this.data)==null?0:N.icon)};
TH.prototype.notificationDataChanged=TH.prototype.notificationDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Uo.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],TH.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],TH.prototype,"data",void 0);_.W([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Q("design:type",String)],TH.prototype,"id",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],TH.prototype,"isRightAligned",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],TH.prototype,"disabled",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],TH.prototype,"closeOnActivate",void 0);_.W([_.X(),_.Q("design:type",Object)],TH.prototype,"notificationData",void 0);_.W([_.X(),_.Q("design:type",Object)],TH.prototype,"hasNotification",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],TH.prototype,"useComputedAriaLabel",void 0);_.W([_.gz("notificationData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TH.prototype,"notificationDataChanged",null);_.W([_.wz({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],TH);
_.n(TH,"yt-sort-filter-sub-menu-renderer",function(){if(gaX===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;d9R===void 0&&(d9R=document.createElement("template"));var H=d9R;O.call(t,H.content.cloneNode(!0),N.content.firstChild);gaX=N}N=gaX;return N},{mode:2});var cpR=_.q(function(N){var t=N.data;var O=_.Ui(function(){var Z=t().onTap;(Z=_.M(Z,_.Tb))&&_.cY().resolve(_.jo).resolveCommand(Z);return!1}),H=function(){return{sources:[{url:t().thumbnailUrl,
width:120,height:90}]}},A=function(){return t().rating&&t().ratingA11yLabel&&t().reviewsCount&&t().reviewsCountA11yLabel};
return _.d("place-data-view-model",null,_.d(_.y,{cond:function(){return t().placeName&&t().placeCategory},
then:function(){return _.d("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":O},_.d(_.Qt,{data:H,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.d(_.YO,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return t().onTap}},_.d("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return t().placeName}},function(){return t().placeName})),_.d("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.d(_.y,{cond:A,
then:function(){return _.d("div",{class:_.V7("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.d("span",{class:"score",title:function(){return t().ratingA11yLabel}},function(){return t().rating}),_.d("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.d(_.dq,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.d("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return t().reviewsCountA11yLabel}},function(){return t().reviewsCount}))},
else:function(){return _.d("div",{class:_.V7("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.d("div",{class:_.V7("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.d("span",{class:"category",
title:function(){return t().placeCategory}},function(){return t().placeCategory}))))}}))},"ib");
cpR.idomCompat=!0;_.o_(cpR,"place-data-view-model",{props:{data:_.$O}});var $9r=new _.dk("INLINE_PLAYBACK_HOOK_TOKEN");var jWZ=zI({sharedUi:EAQ});_.Wz=YV(jWZ)(jWZ.sharedUi,{animatedThumbnailEnabledSelector:function(N){return N.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(N){return N.inlinePreviewEnabled},
currentPageTypeSelector:function(N){return N.currentPageType},
currentPageSubTypeSelector:function(N){return N.currentPageSubType},
persistentPanelVisibleSelector:function(N){return N.persistentPanelVisible}});var iyy=function(N){this.setActiveSlideIndex=N;this.jobIds=[];this.isSlideshowPlaying=!1},hC_=function(N,t){N.isSlideshowPlaying||(N.isSlideshowPlaying=!0,u20(N),SQa(N,t,0))},u20=function(N){_.HH(_.GB,function(){N.setActiveSlideIndex(0)},1)},SQa=function(N,t,O){N.jobIds.push(_.HH(_.GB,function(){var H=O<t-1?O+1:0;
N.setActiveSlideIndex(H);SQa(N,t,H)},1800))};var MPp;MPp=new _.dk("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.by0=new _.dk("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");var prE=new _.dk("IMAGE_ON_LOAD_HANDLER_TOKEN");var L6a=_.q(function(N){return _.d("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.d(_.y,{cond:function(){var t;return(t=N.data())==null?void 0:t.thumbnail},
then:function(t){return _.d(_.Qt,{data:t,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.zCp=_.q(function(N){var t=N.data;var O=N.lockupExperiments;N={};return _.d("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.d("div",{class:_.V7("ytThumbnailOverlayButtonViewModelButton",(N.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var H;return O&&((H=O())==null?void 0:H.useLegacySizedIconButton)},N))},_.d(_.iF,{data:function(){return t().overlayButton}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
buttonOverrides:function(){var A;return O&&((A=O())==null?0:A.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.zCp.idomCompat=!0;var YQr=_.q(function(N){return _.d("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Ui(function(t){t.preventDefault();return!1})},_.d(_.iF,{data:function(){return N.data().buttons}},{toggleButtonViewModel:function(t){return _.d("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.d(_.N3,{data:t.data}))}}))},"lb");
YQr.idomCompat=!0;var aRZ=_.q(function(N){var t=function(){var O;return((O=_.M(N.data().rendererContext,_.ue))==null?void 0:O.label)||""};
return _.d("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.d(_.y,{cond:function(){return N.data().image},
then:function(){return _.d("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.d(_.Qt,{data:function(){return N.data().image},
alt:t}))}}),_.d(_.y,{cond:function(){return N.data().text},
then:function(){return _.d("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return N.data().text})}}))},"mb");var Thu;Thu=_.Wz.animatedThumbnailEnabledSelector;_.wV=_.q(function(N){var t=[],O=function(){var u,S;return _.xWz((u=N.width)==null?void 0:u.call(N),(S=N.height)==null?void 0:S.call(N))},H=_.cY().resolve(_.BY(prE)),A=_.Fy("yt-thumbnail-view-model",function(){t.push("elRef.value set");
var u;(u=N.playbackRef)==null||u.call(N,{thumbnailElRef:A,thumbnail:N.data().image,thumbnailOverlays:N.data().overlays,thumbnailSize:O()})});
_.Q8(function(){t.push("onInit");_.Ia(function(){t.push("onCleanup")})});
var Z=_.cH(Thu),U=function(){var u,S;return(S=(u=N.aspectRatio)==null?void 0:u.call(N))!=null?S:0},C=function(){return(N.data().image?_.stQ(N.data().image):U())<=1&&U()===0},F=function(){return C()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},g=function(){A.value||_.J_(new _.fF("Thumbnail elRef.value is null",t.join("\n")));
H&&A.value&&H(A.value)},B=function(){var u,S;
return((u=N.hovered)==null?void 0:u.call(N))&&O()!=="large"&&((S=N.data().overlays)==null?void 0:S.some(function(b){return _.M(b,bcZ)}))},c={};
return _.d("yt-thumbnail-view-model",{class:_.V7("ytThumbnailViewModelHost",N.className,function(){return js4(U())},function(){var u,S;
a:{var b=O(),z=(u=N.disableRounding)==null?void 0:u.call(N);u=(S=N.isClip)==null?void 0:S.call(N);if(!z&&!u)switch(b){case "large":S="ytThumbnailViewModelLarge";break a;case "small":S="ytThumbnailViewModelSmall";break a;default:S="ytThumbnailViewModelMedium";break a}S=void 0}return S},(c.ytThumbnailViewModelCinematic=C,c)),
style:_.FM({"background-color":function(){var u,S=C()?(u=N.data().backgroundColor)==null?void 0:u.lightTheme:void 0;return S?wY(S,"1"):void 0}}),
el:A},_.d(_.y,{cond:C,then:function(){return _.d("div",{class:"ytThumbnailViewModelBlurredImage"},_.d(_.Qt,{data:function(){return N.data().image},
alt:"",contentMode:F,targetWidth:N.width,onload:g}))}}),_.d("div",{class:"ytThumbnailViewModelImage"},_.d(_.Qt,{data:function(){return N.data().image},
alt:"",contentMode:F,targetWidth:N.width,onload:g}),null),_.d(_.iF,{data:function(){return B()?void 0:N.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:wJ_,thumbnailOverlayBadgeViewModel:function(u){return _.d(_.ex_,{data:u.data,thumbnailSize:O,isClip:N.isClip})},
thumbnailBottomOverlayViewModel:function(u){return _.d(zxZ,{data:u.data,thumbnailSize:O,isClip:N.isClip})},
thumbnailOverlayFullViewModel:aRZ,thumbnailOverlayButtonViewModel:function(u){return _.d(_.zCp,{data:u.data,lockupExperiments:N.lockupExperiments})},
channelDisclosureViewModel:function(u){u=u.data;var S;return _.d("div",null,(S=_.cY().resolve(_.BY(MPp)))==null?void 0:S({data:u}))}}),_.d(_.iF,{data:function(){var u;
return((u=N.hovered)==null?0:u.call(N))?N.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(u){return _.d(V9,{data:u.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:YQr}),_.d(_.iF,{data:function(){var u;return((u=N.hovered)==null?0:u.call(N))&&Z()?N.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:L6a}),_.d(_.y,{cond:N.isClip,then:function(){return _.d("div",{class:"ytPinkingNsHost"},_.d("svg",{class:"ytPinkingNsPinkingLeft"},_.d("defs",null,_.d("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.d("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.d("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.d("svg",{class:"ytPinkingNsPinkingRight"},_.d("defs",null,_.d("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.d("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.d("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.wV.idomCompat={callbacks:{playbackRef:!0}};var wrZ=_.q(function(N){var t=_.D(_.b$(-1,void 0,"RW2Ole")),O=t.next().value,H=t.next().value;_.Q8(function(){var A=new iyy(H);hC_(A,N.data().thumbnails.length);_.Ia(function(){if(A.isSlideshowPlaying){A.isSlideshowPlaying=!1;for(var Z=A.jobIds,U=0,C=Z.length;U<C;U++)_.GB.cancelJob(Z[U]);A.jobIds.length=0}})});
return _.d("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.d(_.iF,{data:function(){return N.data().thumbnails}},{thumbnailViewModel:function(A,Z){return _.d("div",{class:function(){var U=!N.data().primaryThumbnail,C=Z(),F=O(),g=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
U&&C===0&&g.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");C<=F&&g.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return g.join(" ")}},_.d(_.wV,{data:A.data,
disableRounding:N.disableRounding}))}}))},"ob");
wrZ.idomCompat=!0;var iwG=new _.dk("DWELL_DETECTOR_REGISTRY_TOKEN");var PG_=_.q(function(N){var t=uw9(N.triggeringElement),O=function(){return!!N.data().primaryThumbnail},H=function(){var Z,U=(Z=N.data())==null?void 0:Z.maxHeight,C;
Z=(C=N.maxHeight)==null?void 0:C.call(N);return U!=null&&Z!=null?Math.min(U,Z):Z!=null?Z:U},A=function(){var Z=H();
if(Z){var U;if(O()&&(U=N.includeStackHeight)!=null&&U.call(N)){var C;U=((C=N.doubleStack)==null?0:C.call(N))?8:4}else U=0;Z=Z-U-1;if(!(Z<0)){C=Math;U=C.ceil;var F,g;var B=XNg((g=(F=N.aspectRatio)==null?void 0:F.call(N))!=null?g:0);return U.call(C,Z*B)}}};
return _.d("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.FM({height:function(){return H()?H()+"px":void 0},
width:function(){return A()?A()+"px":void 0}})},_.d(eCE,{stackEnabled:O,
thumbnailSize:function(){var Z,U;return _.xWz((Z=N.width)==null?void 0:Z.call(N),(U=N.height)==null?void 0:U.call(N))},
doubleStack:N.doubleStack,stackColor:function(){return N.data().stackColor},
includeStackHeight:N.includeStackHeight},_.d(_.iF,{data:function(){return N.data().primaryThumbnail}},{thumbnailViewModel:function(Z){var U={};
return _.d(_.wV,{data:Z.data,width:N.width,height:N.height,aspectRatio:N.aspectRatio,disableRounding:N.disableRounding,className:_.V7((U.ytCollectionThumbnailViewModelHostHasStacks=O,U)),hovered:N.hovered,playbackRef:N.playbackRef})}}),_.d(_.y,{cond:function(){var Z;
return t()&&((Z=N.data().thumbnails)==null?void 0:Z.length)},
then:function(){return _.d("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.d(wrZ,{data:N.data,disableRounding:function(){return!O()}}))}})))},"pb");
PG_.idomCompat={callbacks:{playbackRef:!0}};
var eCE=_.q(function(N){var t=N.children;var O=N.stackEnabled;var H=N.thumbnailSize;var A=N.doubleStack;var Z=N.stackColor;var U=N.includeStackHeight;var C,F=(C=_.cY().resolve(_.BY(_.WV)))==null?void 0:C();return _.d(_.y,{cond:O,then:function(){return _.d(HkQ,{data:function(){var g,B;return{experimentEnabled:!0,thumbnailSize:H(),doubleStack:A==null?void 0:A(),color:F?Z==null?void 0:(g=Z())==null?void 0:g.darkTheme:Z==null?void 0:(B=Z())==null?void 0:B.lightTheme,enableResponsiveMode:!1,includeStackHeight:U==
null?void 0:U()}}},t)},
else:function(){return t}})},"qb");var XrQ=new _.dk("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var PK;_.e3={calledOnce:!0,state:"visible"};PK={calledOnce:!0,state:"hidden"};_.Xq=_.q(function(N){var t=N.data;var O=N.customCommandResolver;var H=N.className;var A=N.delayedClassName;var Z=N.animationEntityKey;var U=N.isCompactWidth;var C=N.isContentWidth;N=_.D(_.b$(!1,void 0,"pC3tUb"));var F=N.next().value,g=N.next().value,B=_.Gr(Z,""),c=_.cz(cUM,B),u=function(){var jy,c4;return(c4=(jy=c())==null?void 0:jy.value)!=null?c4:!1},S=function(){_.E6(_.uF("booleanEntity",B(),{key:B(),
value:!0}));r=void 0};
Z=_.D(_.Gb(u));var b=Z.next().value,z=Z.next().value;Z=_.D(_.Gb(u));var w=Z.next().value,P=Z.next().value;Z=_.D(_.Gb(function(){var jy;return u()?(jy=t().styleTransitionConfig)==null?void 0:jy.destinationStyle:void 0}));
var x=Z.next().value,l=Z.next().value,I=function(){var jy=Object.assign({},t(),x()&&{style:x()});var c4,XO,kx=jy.label,fN=(c4=jy.interaction)==null?void 0:(XO=c4.accessibility)==null?void 0:XO.label;c4=jy.iconImage?jy.label&&jy.label.content?jy.iconLeading?"leading":"trailing":"icon-only":void 0;jy={formattedButtonText:kx,accessibilityLabel:fN,style:bwl(jy.style),type:p_t(jy.style),state:"active",size:MIQ(jy.size),iconPosition:c4,disabled:!1,aTagConfig:hBG(jy,O)};_.h("enable_desktop_vdcbg_components")&&
(jy.focused=F());return jy},r;
Z=_.iU({visibilityCallback:function(jy){var c4,XO=(c4=t().interaction)==null?void 0:c4.onFirstVisible;jy&&XO&&_.xJ(XO)},
showOption:_.e3});var E=function(){return l8N(I(),!!t().iconImage)};
N={};var J={};H=_.V7(function(){return"ytwAdButtonViewModelHost"},function(){return t().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var jy=!!t().delayedAppearanceConfig,c4=b();
return jy?c4?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var jy=!!t().delayedAppearanceConfig,c4=w();
return jy?c4?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!t().delayedAppearanceConfig||b()?A==null?void 0:A():""},(N.ytwAdButtonViewModelHostCompactWidth=function(){return U==null?void 0:U()},N),(J.ytwAdButtonViewModelHostContentWidth=function(){return C==null?void 0:C()},J),H!=null?H:"");
var CN=function(){var jy,c4=(jy=t().delayedAppearanceConfig)==null?void 0:jy.delayedInvisibleSeconds;c4&&(r=_.MU(_.GB,function(){z(!0);B4()},c4*1E3))},B4=function(){var jy,c4=(jy=t().delayedAppearanceConfig)==null?void 0:jy.delayedVisibleSeconds;
c4&&(r=_.MU(_.GB,function(){P(!0);zM()},c4*1E3))},zM=function(){var jy,c4=(jy=t().styleTransitionConfig)==null?void 0:jy.styleTransitionSeconds,XO,kx=(XO=t().styleTransitionConfig)==null?void 0:XO.destinationStyle;
c4&&kx?r=_.MU(_.GB,function(){l(kx);S()},c4*1E3):S()};
_.Q8(function(){CN()});
_.Ia(function(){r&&_.GB.cancelJob(r)});
return _.d("ad-button-view-model",{"on:focusin":_.Ui(_.h("enable_desktop_vdcbg_components")?function(){var jy=_.cY().resolve(_.BY(_.z6));jy&&g(jy.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Ui(_.h("enable_desktop_vdcbg_components")?function(){g(!1);return!1}:void 0),
class:H,el:_.E4(Z),style:_.FM({"transition-duration":"0.3s"})},_.d(_.y,{cond:I,then:function(){return _.d(_.et,{data:I,icon:function(){return _.d(_.y,{cond:function(){return t().iconImage},
then:function(jy){return _.d(_.Qt,{data:jy,alt:"",targetWidth:E,targetHeight:E,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var x9r=_.q(function(N){var t=N.data;N=function(){return t().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var O=_.iU({visibilityCallback:function(Z){var U,C=(U=t().interaction)==null?void 0:U.onFirstVisible;Z&&C&&_.xJ(C)},
showOption:_.e3}),H={},A={};return _.d("ad-button-group-view-model",{class:_.V7("ytwAdButtonGroupViewModelHost",(H.ytwAdButtonGroupViewModelHostCompactWidth=N,H)),el:_.E4(O)},_.d("div",{class:_.V7("ytwAdButtonGroupViewModelHostSecondaryButton",(A.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=N,A))},_.d(_.iF,{data:function(){return t().secondaryAdButton}},{adButtonViewModel:function(Z){return _.d(_.Xq,{data:Z.data})}})),_.d("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.d(_.iF,
{data:function(){return t().primaryAdButton}},{adButtonViewModel:function(Z){return _.d(_.Xq,{data:Z.data})}})))},"tb");var ke_=_.q(function(N){var t=function(){var O;return((O=N.data())==null?void 0:O.answers)||[]};
return _.d("yt-survey-icons",{class:"ytSurveyIconsHost"},_.d("div",{class:"ytSurveyIconsHeader"},_.d("div",{class:"ytSurveyIconsTitle"},function(){var O;return(O=N.data())==null?void 0:O.text}),_.d("div",null,_.d(_.et,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var O;(O=N.onDismiss)==null||O.call(N)}}},
iconName:"DISMISSAL"}))),_.d("div",null,_.d("div",{class:"ytSurveyIconsAnswers"},_.d(_.nL,{each:function(){return t()},
keyBy:"INDEX"},function(O,H){return _.d("div",null,_.d(_.et,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var A;(A=N.onSelect)==null||A.call(N,O(),H)}}},
icon:function(){return _.d(_.dq,{icon:function(){var A,Z;return(A=O())==null?void 0:(Z=A.icon)==null?void 0:Z.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.d("div",{class:"ytSurveyIconsAnswersText"},_.d("div",null,function(){return t().length?t()[0].text:""}),_.d("div",null,function(){return t().length?t()[t().length-1].text:""}))))},"ub");var qQr=_.q(function(N){var t=_.E4(_.wZ(function(){var F;return(F=N.data())==null?void 0:F.rendererContext},void 0,void 0,void 0,!0)),O=_.D(_.b$(!1,void 0,"GW0yjf")),H=O.next().value,A=O.next().value,Z=_.cz(BRz,function(){var F;
return(F=N.data().keys)==null?void 0:F.surveyEntityKey}),U=_.cz(cWv,function(){var F;
return(F=N.data().keys)==null?void 0:F.surveyStateEntityKey});
_.K9("ytd-slimline-survey-show-action",function(){A(!1)});
var C=function(){var F,g;var B=(F=U())==null?void 0:(g=F.questionStack)==null?void 0:g[0];if(B!==void 0){var c,u;return(c=Z())==null?void 0:(u=c.questions)==null?void 0:u[B]}};
O={};return _.d("yt-slimline-survey-view-model",{el:t,class:_.V7("ytSlimlineSurveyViewModelHost",(O.ytSlimlineSurveyViewModelCollapsed=function(){return H()},O))},_.d("div",{class:"ytSlimlineSurveyViewModelContainer"},_.d(_.y,{cond:function(){var F;
return((F=C())==null?void 0:F.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.d(ke_,{data:function(){return C()},
onSelect:function(F,g){var B,c;return _.K(function(u){A(!0);if(c=(B=N.data())==null?void 0:B.onSelectRating)_.xJ(c),_.E6(VZu(g));_.Ty(u)})},
onDismiss:function(){A(!0);var F;var g=(F=Z())==null?void 0:F.dismissalFeedbackToken;F=g?{feedbackEndpoint:{feedbackToken:g}}:void 0;F&&_.eF(F,{form:{element:t.value}})}})}})))},"vb");var fRX=_.q(function(N){return _.d("yt-table-view-model",{class:_.V7("ytTableViewModelHost",N.className)},_.d(_.nL,{each:function(){return N.data().rows||[]}},function(t){var O={};
return _.d("div",{class:_.V7("ytTableViewModelRow",(O.ytTableViewModelRowBottomBorder=function(){return N.data().showSeparators},O))},_.d(_.nL,{each:function(){return(t==null?void 0:t.cells)||[]}},function(H,A){var Z,U={};
return _.d("span",{class:_.V7((U.ytTableViewModelRowLabel=function(){return A()===0&&N.data().showHorizontalHeaders},U.ytTableViewModelCell=function(){return!N.data().showHorizontalHeaders||A()>0},U))},(Z=H.text)==null?void 0:Z.content)}))}))},"wb");var nar=_.q(function(N){return _.d("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.d(_.iF,{data:function(){var t;return(t=N.data())==null?void 0:t.attachments}},{flexibleActionsViewModel:function(t){return _.d("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.d(_.Co,{data:t.data,
layout:function(){var O;return((O=N.lockupStyle())==null?void 0:O.arrangement)===1?0:1},
justifyContentOverride:function(){var O;return((O=N.lockupStyle())==null?void 0:O.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(t){return _.d("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.d(qQr,{data:t.data}))},
expandableMetadataViewModel:function(t){t=t.data;var O;return _.d("div",{class:_.V7("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(O=_.cY().resolve(_.BY(XrQ)))==null?void 0:O({data:t}))},
adButtonGroupViewModel:function(t){return _.d("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.d(x9r,{data:t.data}))},
adButtonViewModel:function(t){return _.d("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.d(_.Xq,{data:t.data,isCompactWidth:!0}))},
tableViewModel:function(t){return _.d("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.d(fRX,{data:t.data}))},
aiCompanionAttachmentViewModel:function(t){t=t.data;var O;return _.d("div",{class:"ytLockupAttachmentsViewModelAttachment"},(O=_.cY().resolve(_.BY(_.by0)))==null?void 0:O({data:t}))}}))},"xb");var w_9=_.uP("rich_grid_min_item_width",310),aS9=_.uP("rich_grid_max_item_width",500);var WEz,n$9;WEz=16/9;n$9=2/3;_.xe=_.q(function(N){var t=N.data;var O=N.className;var H=N.imageSizeConfig;var A=N.notifyOnLoaded;var Z=function(){return t().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},U=function(){var u;
return _.TE((u=t())==null?void 0:u.rendererContext)};
N={};N=(N.ytContentPreviewImageViewModelHost=!0,N.ytContentPreviewImageViewModelCircleImage=function(){return Z()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},N.ytContentPreviewImageViewModelTappable=function(){return U()},N);
var C=function(){var u,S;return(S=(u=_.M(t().rendererContext,_.ue))==null?void 0:u.label)!=null?S:""},F=function(){return ISx(t())},g=function(){var u=rZO(Z(),t().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",H==null?void 0:H(),lSg(F()),t().layoutWidth,t().layoutHeight),S=Object.assign({},u);
u.width&&(S.width=Math.round(u.width));u.height&&(S.height=Math.round(u.height));u.maxWidth&&(S.maxWidth=Math.round(u.maxWidth));u.maxHeight&&(S.maxHeight=Math.round(u.maxHeight));return S},B=_.aa(function(){return g().height},void 0,"CxFlJb"),c=_.aa(function(){return g().width},void 0,"lb8Jhd");
return _.d("yt-content-preview-image-view-model",{el:_.E4(_.wZ(function(){var u;return(u=t())==null?void 0:u.rendererContext})),
role:function(){return U()?"link":void 0},
tabindex:function(){return U()?0:void 0},
class:_.V7(O,N,function(){var u=Z();var S=H==null?void 0:H();u=u==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||u==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||u==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||u==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(S==null?void 0:S.size)!=null&&S.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(S==null?void 0:S.size)!=null&&S.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return u}),
style:function(){var u=g(),S=[];u.width&&S.push("width: "+u.width+"px");u.height&&S.push("height: "+u.height+"px");u.maxWidth&&S.push("max-width: "+u.maxWidth+"px");u.maxHeight&&S.push("max-height: "+u.maxHeight+"px");u.fullWidth&&S.push("width: 100%");return S.join(";")}},_.d(_.y,{cond:F,
then:function(u){return _.d(_.Qt,{data:u,alt:C,"data-disabled$":function(){return!C()},
notifyOnLoaded:A,targetWidth:c,targetHeight:B,preserveWidth:function(){return!!c()},
preserveHeight:function(){return!!B()}})}}),_.d(_.iF,{data:function(){var u;
return(u=t())==null?void 0:u.overlays}},{thumbnailHoverOverlayViewModel:V9,
thumbnailOverlayButtonViewModel:_.zCp}))},"yb");
_.xe.idomCompat=!0;var ke=_.q(function(N){var t=N.data;var O=N.className;var H=N.useSmallLayout;var A=N.useMediumText;N=N.useHeavyText;var Z={};return _.d("yt-attribution-view-model",{el:_.E4(_.wZ(function(){var U;return(U=t())==null?void 0:U.rendererContext})),
class:_.V7(O,(Z.ytAttributionViewModelHost=!0,Z.ytAttributionViewModelMediumText=A,Z.ytAttributionViewModelHeavyText=N,Z))},_.d(_.y,{cond:function(){return _.TE(t().rendererContext)},
then:function(){return _.d("button",{class:"ytAttributionViewModelTappable"},_.d(W6R,{data:t,useSmallLayout:H}))},
else:function(){return _.d(W6R,{data:t,useSmallLayout:H})}}))},"zb"),W6R=_.q(function(N){var t=N.data;
var O=N.useSmallLayout;var H=function(){return{size:(O==null?0:O())?16:24}};
return _.d(_.BZ,null,_.d(_.iF,{data:function(){return t().contentPreviewImage}},{contentPreviewImageViewModel:function(A){return _.d(_.xe,{data:A.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:H})}}),_.d(_.iF,{data:function(){return t().badge}},{badgeViewModel:function(A){return _.d(_.L_,{data:A.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.d(_.y,{cond:function(){return t().text},
then:function(){return _.d(_.cu,{text:function(){return t().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.d(_.y,{cond:function(){return t().suffix},
then:function(){return _.d(_.cu,{text:function(){return t().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
ke.idomCompat=!0;var rpR,IRY,lRQ,QWa,m9_;rpR=_.q(function(N){var t=N.delimiter;var O=N.max;var H=N.index;var A=N.isStandalone;return _.d(_.y,{cond:function(){return O()-1>H()},
then:function(){var Z={};return _.d("span",{class:_.V7("yt-content-metadata-view-model__delimiter",(Z["yt-content-metadata-view-model__delimiter--standalone"]=A,Z)),"aria-hidden":!0},t)}})},"Bb");
IRY=_.q(function(N){var t=N.metadataPart;var O=N.maxLines;return _.d(_.cu,{text:function(){return t().text},
linkInheritColor:!0,className:function(){return QsG(O())},
userInput:!0})},"Cb");
lRQ=_.q(function(N){var t=N.metadataPart;var O=N.maxLines;return _.d(_.y,{cond:function(){return t().tooltip},
then:function(H){return _.d("span",{title:H,role:"tooltip"},_.d(IRY,{metadataPart:t,maxLines:O}))},
else:function(){return _.d(IRY,{metadataPart:t,maxLines:O})}})},"Db");
QWa=_.q(function(N){var t=N.metadataPart;var O=N.isOverlay;var H=N.useMediumText;var A=N.hideAvatar;var Z=function(){return t().maxLines!==void 0?t().maxLines:1};
return _.d(_.BZ,null,_.d(_.iF,{data:function(){return t().avatarStack}},{avatarStackViewModel:function(U){return _.d(_.C_,{data:U.data,
isOverlay:O,useMediumText:H,hideAvatar:A})},
badgeViewModel:_.L_}),_.d(_.y,{cond:function(){return t().leadingIcon},
then:function(U){return _.d(_.dq,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return U().name},
size:function(){return U().width}})}}),_.d(_.y,{cond:function(){return t().text},
then:function(){return _.d(lRQ,{metadataPart:t,maxLines:Z})}}),_.d(_.y,{cond:function(){return t().icon},
then:function(U){return _.d(_.dq,{className:"yt-content-metadata-view-model__icon",icon:function(){return U().name},
size:function(){return U().width}})}}))},"Eb");
m9_=_.q(function(N){var t=N.metadataRow;var O=N.isInline;var H=N.delimiter;var A=N.isOverlay;var Z=N.useMediumText;var U=N.extensions;var C=function(){var g,B=U==null?void 0:(g=U())==null?void 0:g.lockupMetadata;g=t();var c,u;return!!((B==null?0:(c=B.byline)==null?0:c.hideAvatar)&&((u=_.M(g,ckr))==null?void 0:u.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},F=function(){return t().metadataParts||[]};
N={};return _.d("div",{class:_.V7("yt-content-metadata-view-model__metadata-row",(N["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=O,N["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var g,B=U==null?void 0:(g=U())==null?void 0:g.lockupMetadata;g=t();var c,u;return!!((B==null?0:(c=B.byline)==null?0:c.addPadding)&&((u=_.M(g,ckr))==null?void 0:u.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},N["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var g;
return!!(U==null?0:(g=U())==null?0:g.lockupMetadata)&&t().badges&&!t().metadataParts},N))},_.d(_.iF,{data:function(){return t().badges}},{badgeViewModel:function(g){return _.d("div",{class:"yt-content-metadata-view-model__badge"},_.d(_.L_,{data:g.data,
numBadgesInRow:function(){var B,c;return((B=t())==null?void 0:(c=B.badges)==null?void 0:c.length)||0}}))}}),_.d(_.nL,{each:F},function(g,B){return _.d(_.BZ,null,_.d(QWa,{metadataPart:g,
isOverlay:A,useMediumText:Z,hideAvatar:C}),_.d(rpR,{delimiter:H,max:function(){return F().length},
index:B,isStandalone:!1}))}),_.d(_.y,{cond:function(){return t().isSpacerRow&&!O()},
then:function(){return _.d("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.qG=_.q(function(N){N=_.RH(N,{layout:0,isOverlay:!1});var t=N.data,O=N.layout,H=N.isOverlay,A=N.useMediumText,Z=N.extensions,U=function(){return O()===0},C=function(){var g;
return((g=t().metadataRows)==null?void 0:g.filter(function(B){var c,u=Z==null?void 0:(c=Z())==null?void 0:c.lockupMetadata,S,b;c=!!((u==null?0:(S=u.description)==null?0:S.hideDescription)&&((b=_.M(B,ckr))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var z,w;return!((u==null?0:(z=u.spacer)==null?0:z.hideSpacer)&&((w=_.M(B,ckr))==null?void 0:w.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||c)}))||[]},F={};
return _.d("yt-content-metadata-view-model",{class:_.V7(N.className,"yt-content-metadata-view-model",(F["yt-content-metadata-view-model--inline"]=U,F["yt-content-metadata-view-model--tappable"]=function(){return _.TE(t().rendererContext)},F["yt-content-metadata-view-model--medium-text"]=A,F)),
el:_.E4(_.wZ(function(){return t().rendererContext}))},_.d(_.nL,{each:C},function(g,B){return _.d(_.BZ,null,_.d(m9_,{metadataRow:g,
isInline:U,delimiter:function(){return t().delimiter},
isOverlay:H,useMediumText:A,extensions:Z}),_.d(_.y,{cond:function(){return U()&&!g.isSpacerRow},
then:function(){return _.d(rpR,{delimiter:function(){return t().delimiter},
max:function(){return C().length},
index:B,isStandalone:!0})}}))}))},"Gb");
_.qG.idomCompat=!0;var EaR=_.q(function(N){var t=_.cY().resolve(_.BY(_.WV)),O={};return _.d("yt-lockup-metadata-view-model",{class:_.V7("yt-lockup-metadata-view-model",function(){a:{var H=N.lockupStyle();if(H==null?0:H.isOverlay)H="yt-lockup-metadata-view-model--overlay";else switch(H==null?void 0:H.arrangement){case 1:H="yt-lockup-metadata-view-model--horizontal";break a;default:H="yt-lockup-metadata-view-model--vertical"}}return H},function(){a:{var H=N.lockupStyle();
switch(H==null?void 0:H.titleMaxLines){case 1:H="yt-lockup-metadata-view-model--title-max-lines-1";break a}H=void 0}return H},function(){a:{var H=N.lockupStyle();
if(H==null?0:H.isTiny)H="yt-lockup-metadata-view-model--tiny";else switch(H==null?void 0:H.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":H="yt-lockup-metadata-view-model--compact";break a;default:H="yt-lockup-metadata-view-model--standard"}}return H},(O["yt-lockup-metadata-view-model--overlay"]=function(){var H;
return(H=N.lockupStyle())==null?void 0:H.isOverlay},O["yt-lockup-metadata-view-model--card"]=function(){var H;
return(H=N.lockupStyle())==null?void 0:H.isCard},O["yt-lockup-metadata-view-model--centered"]=function(){var H;
return(H=N.lockupStyle())==null?void 0:H.isCentered},O["yt-lockup-metadata-view-model--typography-bump"]=function(){var H;
return(H=N.lockupStyle())==null?void 0:H.typographyBump},O["yt-lockup-metadata-view-model--legacy-typography"]=function(){var H;
return(H=N.lockupStyle())==null?void 0:H.useLegacyTypography},O["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var H;
return(H=N.lockupStyle())==null?void 0:H.useRichGridLegacyTypography},O))},_.d(_.iF,{data:function(){return N.data().image}},{avatarStackViewModel:function(H){return _.d("div",{class:"yt-lockup-metadata-view-model__avatar"},_.d(_.C_,{data:H.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(H){return _.d("div",{class:"yt-lockup-metadata-view-model__avatar"},_.d(_.Dv,{data:H.data}))},
decoratedAvatarViewModel:function(H){return _.d("div",{class:"yt-lockup-metadata-view-model__avatar"},_.d(_.Us,{data:H.data}))}}),_.d("div",{class:"yt-lockup-metadata-view-model__text-container"},_.d("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var H;return(H=N.data().title)==null?void 0:H.content}},_.d(_.y,{cond:function(){return N.data().title},
then:function(H){return _.d(_.YO,{command:N.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.FM({color:function(){var A;a:{var Z=N.lockupStyle();var U=(A=N.hovered)==null?void 0:A.call(N);A=!(t==null||!t());var C;if((Z==null?0:(C=Z.onFocusEffect)==null?0:C.textPrimaryColor)&&U&&(Z=A?Z.onFocusEffect.textPrimaryColor.darkTheme:Z.onFocusEffect.textPrimaryColor.lightTheme)){Z=ec(Z);break a}Z=void 0}return Z}}),
ariaLabel:N.lockupAccessibilityLabel},_.d(_.cu,{text:H,userInput:!0}))}})),_.d("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.FM({color:function(){var H;a:{var A=N.lockupStyle();var Z=(H=N.hovered)==null?void 0:H.call(N);H=!(t==null||!t());var U;if((A==null?0:(U=A.onFocusEffect)==null?0:U.textSecondaryColor)&&Z&&(A=H?A.onFocusEffect.textSecondaryColor.darkTheme:A.onFocusEffect.textSecondaryColor.lightTheme)){A=ec(A);break a}A=void 0}return A}})},_.d(_.iF,{data:function(){return N.data().metadata}},{contentMetadataViewModel:function(H){return _.d(_.qG,{data:H.data,
layout:function(){var A,Z;return(Z=(A=N.layout)==null?void 0:A.call(N))!=null?Z:1},
useMediumText:function(){var A,Z;return((A=N.lockupStyle())==null?void 0:A.typographyBump)||((Z=N.lockupStyle())==null?void 0:Z.useRichGridLegacyTypography)},
extensions:function(){var A,Z,U,C;return{lockupMetadata:{byline:{hideAvatar:((A=N.lockupStyle())==null?void 0:A.arrangement)===0,addPadding:((Z=N.lockupStyle())==null?void 0:Z.arrangement)===1},description:{hideDescription:!((U=N.lockupStyle())==null||!U.compactMetadata)},spacer:{hideSpacer:!((C=N.lockupStyle())==null||!C.compactMetadata)}}}}})}})),_.d(_.iF,{data:function(){return N.data().attribution}},{attributionViewModel:function(H){return _.d("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.d(ke,{data:H.data,
useSmallLayout:!0}))}})),_.d("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.d(_.iF,{data:function(){return N.data().menuButton}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
buttonOverrides:function(){var A;return((A=N.lockupStyle())==null?0:A.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
EaR.idomCompat=!0;var GeX=_.q(function(N){var t=_.Fy("notification-multi-action-renderer");_.lf(function(){requestAnimationFrame(function(){_.Kb(t.value)})});
var O={},H={},A={};return _.d("notification-multi-action-renderer",{class:_.V7("ytNotificationMultiActionRendererHost",(O.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var Z;return(Z=N.useLegacyShelfStyle)==null?void 0:Z.call(N)},O)),
el:t},_.d("span",{"aria-live":"polite",class:_.V7("ytNotificationMultiActionRendererTextContainer",(H.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var Z;return(Z=N.useLegacyShelfStyle)==null?void 0:Z.call(N)},H))},_.d(_.cu,{text:function(){return N.data().responseText}})),_.d("div",{class:_.V7("ytNotificationMultiActionRendererButtonContainer",(A.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var Z;
return(Z=N.useLegacyShelfStyle)==null?void 0:Z.call(N)},A))},_.d(_.iF,{data:function(){var Z;
return(Z=N.data().buttons)==null?void 0:Z.map(function(U){if(U=U.buttonRenderer){var C,F=Object,g=F.assign,B=(C=U.icon)==null?void 0:C.iconType;C=(C=U.command||U.serviceEndpoint||U.navigationEndpoint)?{innertubeCommand:C}:void 0;U={buttonViewModel:g.call(F,{},{iconName:B,onTap:C,trackingParams:U.trackingParams,titleFormatted:U.text?_.zb(U.text):void 0},E$9(U))}}else U=void 0;return U}).filter(function(U){return!!U})}},{buttonViewModel:function(Z,U){return _.d("div",null,_.d(_.Pu,{data:Z.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var C;return((C=N.useModernStyles)==null?0:C.call(N))?{type:U()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var RCE=_.q(function(N){var t=_.Fy("notification-text-renderer");_.lf(function(){requestAnimationFrame(function(){_.Kb(t.value)})});
return _.d("notification-text-renderer",{el:t,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.d(_.cu,{text:function(){return N.data().successResponseText}}))},"Lb");_.f_=_.q(function(N){var t=_.cz(AWO,function(){var H;return GFl((H=N.contentId)==null?void 0:H.call(N))}),O=function(){var H;
return _.M((H=t())==null?void 0:H.command,_.lK)};
return _.d(_.y,{cond:function(){var H;if(!(H=O())){var A;H=_.M((A=t())==null?void 0:A.command,wSE)}return H},
then:function(){return _.d(_.y,{cond:O,then:function(){var H={};return _.d("div",{class:_.V7("ytDismissibleItemReplacedContent",function(){var A;return RBM((A=N.aspectRatio)==null?void 0:A.call(N))})},_.d("div",{class:_.V7((H.ytDismissibleItemAspectRatioContainer=function(){var A;
return((A=N.aspectRatio)==null?void 0:A.call(N))!==void 0},H))},_.d(_.iF,{data:function(){var A;
return(A=O())==null?void 0:A.item}},{notificationMultiActionRenderer:function(A){return _.d(GeX,{data:A.data,
useModernStyles:N.useModernStyle,useLegacyShelfStyle:N.useLegacyShelfStyle})},
notificationTextRenderer:RCE})))}})},
else:N.children})},"Mb");_.vaX=_.q(function(N){var t=N.data;var O=N.customCommandResolver;N=_.E4(_.iU({visibilityCallback:function(Z){var U,C=(U=t().interaction)==null?void 0:U.onFirstVisible;Z&&C&&_.xJ(C)},
showOption:_.e3}));var H=function(){var Z;return((Z=t().interaction)==null?0:Z.onTap)?function(U){var C;SOx(U,(C=t().interaction)==null?void 0:C.onTap,O)}:void 0},A=function(){var Z,U=t(),C=H(),F=(Z=_.M(t().rendererContext,_.ue))==null?void 0:Z.label;
a:switch(U.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":Z=1;break a;default:Z=0}return{size:o$y(U.size),type:Z,onTap:C,accessibilityText:F}};
return _.d("ad-avatar-view-model",{class:function(){var Z;return((Z=t().interaction)==null?0:Z.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:N},_.d(_.y,{cond:function(){return t().image},
then:function(Z){return _.d(Tgu,{data:A,image:Z})}}))},"Nb");_.n_=_.q(function(N){var t=_.RH(N,{hasDot:!1,usedInMasthead:!1}),O=Object.assign({},t),H=t.data,A=t.hasDot;N=t.customCommandResolver;var Z=t.usedInMasthead,U=(delete O.data,delete O.hasDot,delete O.customCommandResolver,delete O.usedInMasthead,O);t=function(){return H().style};
t!==void 0&&t!==null||_.HY(Error("Hh"));N=_.kS(function(){return H().interaction},N);
return _.d("ad-badge-view-model",{class:_.V7(function(){var C;return((C=H().interaction)==null?0:C.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var C=U.adRenderingContextType(),F=Z();
H();return C!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||F?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.E4(N)},_.d(_.gM,{data:function(){var C;H();return{type:2,text:(C=H().label)==null?void 0:C.content,adsIncludeDot:A(),isOverlay:H().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var JpE;_.WK=_.q(function(N){var t=N.data;var O=N.customCommandResolver;var H=N.adRenderingContextType;return _.d("ad-details-line-view-model",{class:function(){var A;return((A=t().interaction)==null?0:A.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.E4(_.iU({visibilityCallback:function(A){var Z,U=(Z=t().interaction)==null?void 0:Z.onFirstVisible;A&&U&&_.xJ(U)},
showOption:_.e3}),_.kS(function(){return t().interaction},O))},_.d(_.y,{cond:function(){return t().style},
then:function(A){return _.d(_.nL,{each:function(){var Z;return((Z=t())==null?void 0:Z.attributes)||[]},
keyBy:"INDEX"},function(Z){return _.d(JpE,{attribute:Z,style:A,adRenderingContextType:function(){return H()}})})}}))},"Pb");
JpE=_.q(function(N){var t=N.attribute;var O=N.style;var H=N.adRenderingContextType;return _.d(_.y,{cond:function(){return t().text},
then:function(A){return _.d(_.cu,{text:A,className:function(){var Z=H();O();return Z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var oaR=_.q(function(N){var t=N.data;var O=N.typographyBump;var H=function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},A=function(){return{size:"M"}};
N={};return _.d(_.BZ,null,_.d("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.d(_.cu,{text:function(){return t().headline},
className:_.V7("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(N.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return H==null?void 0:H()},N.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(O==null?void 0:O())&&!(H==null?0:H())},N)),
linkInheritColor:!0}),_.d(_.y,{cond:function(){return t().description},
then:function(Z){var U={};return _.d(_.cu,{text:Z,className:_.V7("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(U.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return H==null?void 0:H()},U.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(O==null?void 0:O())&&!(H==null?0:H())},U)),
linkInheritColor:!0})}}),_.d(_.y,{cond:function(){return t().secondaryDescription},
then:function(Z){var U={};return _.d(_.cu,{text:Z,className:_.V7("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(U.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return O==null?void 0:O()},U)),
linkInheritColor:!0})}}),_.d("div",{class:function(){return H()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.d(_.y,{cond:function(){return t().adAvatar},
then:function(){return _.d("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.d(_.iF,{data:function(){return t().adAvatar}},{adAvatarViewModel:_.vaX}))}}),_.d(_.iF,{data:function(){return t().adBadge}},{adBadgeViewModel:function(Z){return _.d(_.n_,{data:Z.data,
hasDot:function(){return!!t().adDetailsLine},
adRenderingContextType:function(){return t().adRenderingContextType}})}}),_.d(_.iF,{data:function(){return t().adDetailsLine}},{adDetailsLineViewModel:function(Z){return _.d(_.WK,{data:Z.data,
adRenderingContextType:function(){return t().adRenderingContextType}})}}))),_.d("div",{class:function(){return _.h("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":H()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.d(_.iF,{data:function(){return t().menu}},{buttonViewModel:function(Z){return _.d(_.Pu,{data:Z.data,
buttonOverrides:_.h("enable_desktop_vdc_components")?A:function(){a:switch(t().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var U="S";break a;default:U="M"}return{size:U}}})}})))},"Rb"),sWS=_.q(function(N){var t=N.data;
var O=N.noBottomMargin;var H=N.useVideoLockupTopPadding;var A=N.typographyBump;N={};N=_.V7("ytwFeedAdMetadataViewModelHostMetadata",(N.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return O==null?void 0:O()},N.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return H==null?void 0:H()},N));
var Z=function(){return t().adBadge};
Z!==void 0&&Z!==null||_.HY(Error("Ih"));Z={};var U={};return _.d(_.BZ,null,_.d(_.y,{cond:function(){return t().adAvatar},
then:function(){return _.d("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.d(_.iF,{data:function(){return t().adAvatar}},{adAvatarViewModel:function(C){return _.d(_.vaX,{data:C.data})}}))}}),_.d("div",{class:N},_.d("div",{class:_.V7("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(Z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return A==null?void 0:A()},Z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(A==
null?void 0:A())&&_.h("web_enable_typography_bump_v2")},Z))},_.d(_.cu,{text:function(){return t().headline},
linkInheritColor:!0})),_.d(_.y,{cond:function(){return t().description},
then:function(C){return _.d(_.cu,{text:C,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.d("div",{class:function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.h("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.d(_.iF,{data:function(){return t().adBadge}},
{adBadgeViewModel:function(C){return _.d(_.n_,{data:C.data,
hasDot:function(){return!!t().adDetailsLine},
adRenderingContextType:function(){return t().adRenderingContextType}})}}),_.d(_.iF,{data:function(){return t().adDetailsLine}},{adDetailsLineViewModel:function(C){return _.d(_.WK,{data:C.data,
adRenderingContextType:function(){return t().adRenderingContextType}})}})),_.d(_.y,{cond:function(){return t().secondaryDescription},
then:function(C){return _.d(_.cu,{text:C,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.d("div",{class:_.V7("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(U.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return H==null?void 0:H()},U))},_.d(_.iF,{data:function(){return t().menu}},{buttonViewModel:_.Pu})))},"Sb"),rV=_.q(function(N){var t=N.data;
var O=N.noBottomMargin;var H=N.listenToTapEvent;var A=N.setTouchEndHandler;var Z=N.useVideoLockupTopPadding;var U=N.typographyBump;N=_.iU({visibilityCallback:function(c){var u,S=(u=t().interaction)==null?void 0:u.onFirstVisible;c&&S&&_.xJ(S)},
showOption:_.e3});var C=_.kS(function(){return t().interaction},void 0,function(){return H==null?void 0:H()}),F=_.D(_.b$(!1,void 0,"N3Oquc")),g=F.next().value,B=F.next().value;
F=_.Ui(function(c){(A==null?0:A())&&!g()&&(c.currentTarget.click(),B(!0),setTimeout(function(){B(!1)},100));
return!1});
return _.d("feed-ad-metadata-view-model",{class:function(){var c;return((c=t().interaction)==null?0:c.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.E4(N,C),"on:touchend":F},_.d(_.WZ,null,_.d(_.qC,{when:function(){return t().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.d(oaR,{data:t,
typographyBump:U})}),_.d(_.qC,{when:function(){return t().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.d(sWS,{data:t,
noBottomMargin:O,useVideoLockupTopPadding:Z,typographyBump:U})})))},"Tb");var Nwr,tvu;Nwr=_.Wz.inlinePreviewEnabledSelector;_.IR=_.q(function(N){return _.d("yt-lockup-view-model",{class:_.V7(N.className,"yt-lockup-view-model--wrapper")},_.d(_.f_,{contentId:function(){return N.data().contentId},
useModernStyle:!0,aspectRatio:function(){var t,O;return((t=N.containerType)==null?void 0:t.call(N))!==3?qOz(N.data().contentType,(O=N.force16By9ThumbnailAspectRatio)==null?void 0:O.call(N)):void 0}},function(){return _.d(tvu,Object.assign({},N))}))},"Ub");
tvu=_.q(function(N){N=_.RH(N,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var t=N.data,O=N.containerLayoutConfig,H=N.containerType,A=N.sizing,Z=N.protectBackground,U=N.typographyBump,C=N.force16By9ThumbnailAspectRatio,F=N.thumbnailFixedWidth,g=N.thumbnailTargetWidth,B=N.lockupExperiments,
c=N.elementsPerRow,u=N.useOverlayStyling,S=_.cY().resolve(_.BY(_.WV));N=_.E4(_.wZ(function(){var fN;return(fN=t())==null?void 0:fN.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 b=_.cH(Nwr),z=_.cY().resolve(_.BY($9r)),w=z?{}:void 0,P=function(){var fN,gf,yr;return(yr=(gf=_.M((fN=t())==null?void 0:fN.rendererContext,_.ue))==null?void 0:gf.label)!=null?yr:void 0},x=function(){var fN;
return(fN=_.M(t().metadata,_.$Ru))==null?void 0:fN.endorsement},l=function(){var fN=O==null?void 0:O(),gf;
if(fN==null?0:fN.containerType){var yr=(gf=t())==null?void 0:gf.contentType;gf=B();var sS=U(),$X=g(),pR=Z();fN=Object.assign({},fSp(PoO(fN),fx(fN.responsiveSize),sS,yr,fN.force16By9ThumbnailAspectRatio,$X,pR,void 0,gf),{thumbnailFixedWidth:fN.contentPreviewWidth})}else fN=fSp(H(),A(),U(),(yr=t())==null?void 0:yr.contentType,C(),g(),Z(),u(),B());return fN};
z&&w&&z({enabled:function(){return b()},
itemPlaybackModel:function(){return t().itemPlayback},
thumbnailElRef:function(){return w.thumbnailElRef},
containerElRef:N,options:function(){var fN=w.thumbnailOverlays||[],gf=x(),yr;!gf||((yr=B())==null?0:yr.onFocusEffect)||fN.push(gf);var sS,$X;return{thumbnail:w.thumbnail,thumbnailOverlays:fN,accessibilityText:P(),thumbnailSize:w.thumbnailSize,enableRounding:l().isCollection,containPlayerWithinThumbnail:l().isCollection,mouseleaveCallback:function(){E(!1)},
trackingParams:(sS=_.M(t().rendererContext,_.BV))==null?void 0:($X=sS.loggingDirectives)==null?void 0:$X.trackingParams}}});
var I=0;z=_.D(_.b$(!1,void 0,"v0iGab"));var r=z.next().value,E=z.next().value;z=_.D(_.b$(!1,void 0,"PVKcBd"));var J=z.next().value,CN=z.next().value;z=_.Ui(function(){J()?(_.GB.cancelJob(I),I=_.GB.addJob(function(){E(!0)},8,32)):E(!0);
return!0});
var B4=_.Ui(function(fN){fN=fN.relatedTarget;var gf=document.querySelector("ytd-video-preview");fN&&gf&&gf.contains(fN)||(I&&(_.GB.cancelJob(I),I=0),E(!1))});
_.Ia(function(){I&&(_.GB.cancelJob(I),I=0)});
var zM=JZt(function(){CN(!0)}),jy=zM.touchFeedbackEvents,c4=zM.touchFeedbackOnPointerUp,XO=zM.touchFeedbackOnPointerDown;
zM=zM.touchFeedbackOnPointerLeave;var kx={};return _.d(_.BZ,null,_.d("div",{el:N,class:_.V7("yt-lockup-view-model",function(){a:{var fN=l();if(fN.metadataOnThumbnail)fN="yt-lockup-view-model--metadata-on-thumbnail";else switch(fN.arrangement){case 1:fN="yt-lockup-view-model--horizontal";break a;default:fN="yt-lockup-view-model--vertical"}}return fN},function(){a:{var fN=l();
if(fN.metadataOnThumbnail)fN="yt-lockup-view-model--metadata-on-thumbnail";else{switch(fN.collectionStackNumber){case 1:fN="yt-lockup-view-model--collection-stack-1";break a;case 2:fN="yt-lockup-view-model--collection-stack-2";break a}fN=void 0}}return fN},function(){var fN;
return _.mDO((fN=t())==null?void 0:fN.contentId)},(kx["yt-lockup-view-model--card"]=function(){return l().isCard},kx["yt-lockup-view-model--compact"]=function(){return l().isTiny||l().sizing!=="STANDARD"},kx["yt-lockup-view-model--protect-background"]=Z,kx["yt-lockup-view-model--add-margins"]=function(){return l().addMarginForFullbleed},kx["yt-lockup-view-model--centered"]=function(){return l().isCentered},kx["yt-lockup-view-model--fullbleed"]=function(){return l().fullbleed},kx["yt-lockup-view-model--single-column-grid"]=
function(){return c()===1&&H()===2},kx["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var fN;
return(fN=B())==null?void 0:fN.useRichGridLegacyMargin},kx["yt-lockup-view-model--flex-none"]=function(){return!_.h("lockup_flex_none_killswitch")},kx)),
"on:mousedown":XO,"on:mouseleave":B4,"on:mouseup":c4,"on:mouseover":z,"on:touchstart":XO,"on:touchend":c4,"on:pointerleave":zM},_.d(_.aw,{model:function(){var fN,gf,yr=Object,sS=yr.assign,$X=(w==null?void 0:w.thumbnailSize)||"small";a:{var pR=l();var wf=!!(x()&&((fN=B())==null?0:fN.onFocusEffect));switch((w==null?void 0:w.thumbnailSize)||"small"){case "small":fN=4;break;case "large":fN=12;break;default:fN=8}if(wf)pR=fN+12;else{switch(pR.collectionStackNumber){case 1:pR=fN+8;break a;case 2:pR=fN+12;
break a}pR=void 0}}$X={thumbnailSize:$X,triggerEvents:!0,customTopExtend:pR};var b1;pR=(gf=B())==null?void 0:gf.onFocusEffect;wf=!(S==null||!S());if(pR){var $r,US;gf=wf?($r=pR.onFocusColor)==null?void 0:$r.darkTheme:(US=pR.onFocusColor)==null?void 0:US.lightTheme;var H0,SE;$r=wf?(H0=pR.keyLightColor)==null?void 0:H0.darkTheme:(SE=pR.keyLightColor)==null?void 0:SE.lightTheme;var v0;H0=wf?(b1=pR.touchResponseColor)==null?void 0:b1.darkTheme:(v0=pR.touchResponseColor)==null?void 0:v0.lightTheme;b1={background:gf!==
void 0?ec(gf):void 0,keyLight:$r!==void 0?ec($r):void 0};v0=[];SE=_.D(pR.lightingTechniques||[]);for($r=SE.next();!$r.done;$r=SE.next())switch($r.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":v0.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":v0.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":v0.push(3)}b1={hoverEffect:{palette:b1,lightingTechniques:v0},touchEffect:{palette:{background:H0!==void 0?ec(H0):void 0}}}}else b1={};return sS.call(yr,{},$X,b1)},
hovered:function(){return r()},
pointerDownEvent:jy.pointerDownEvent,pointerUpEvent:jy.pointerUpEvent,pointerLeaveEvent:jy.pointerLeaveEvent}),_.d(_.y,{cond:function(){var fN;return x()&&r()&&((fN=B())==null?void 0:fN.onFocusEffect)},
then:function(){return _.d("div",{class:"yt-lockup-view-model__endorsement"},_.d(_.iF,{data:function(){return x()}},{attributionViewModel:function(fN){return _.d(ke,{data:fN.data,
useHeavyText:!0})}}))}}),_.d(_.YO,{command:function(){var fN;
return _.a8((fN=t())==null?void 0:fN.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(F()||l().thumbnailFixedWidth)&&l().arrangement===1?"width: "+(F()||l().thumbnailFixedWidth):""}},_.d(_.iF,{data:function(){var fN;
return(fN=t())==null?void 0:fN.contentImage}},{thumbnailViewModel:function(fN){return _.d(_.wV,{data:fN.data,
aspectRatio:function(){return l().aspectRatio},
disableRounding:function(){return l().disableRounding},
width:g,hovered:function(){return r()&&!(b()&&t().itemPlayback)},
isClip:function(){var gf;return((gf=t())==null?void 0:gf.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:$Dp(w),lockupExperiments:function(){return B()}})},
collectionThumbnailViewModel:function(fN){return _.d(PG_,{data:fN.data,aspectRatio:function(){return l().aspectRatio},
disableRounding:function(){return l().disableRounding},
width:g,doubleStack:function(){return l().collectionStackNumber===2},
hovered:function(){return r()&&!(b()&&t().itemPlayback)},
playbackRef:$Dp(w)})},
decoratedAvatarViewModel:_.Us})),_.d("div",{class:"yt-lockup-view-model__metadata"},_.d(_.iF,{data:function(){var fN;return(fN=t())==null?void 0:fN.metadata}},{lockupMetadataViewModel:function(fN){return _.d(EaR,{data:fN.data,
hovered:r,lockupStyle:l,lockupCommand:function(){var gf;return _.a8((gf=t())==null?void 0:gf.rendererContext)},
lockupAccessibilityLabel:function(){return P()},
layout:function(){var gf;return((gf=B())==null?0:gf.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(fN){return _.d(rV,{data:fN.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:U})}}),_.d(_.iF,{data:function(){var fN;
return(fN=t())==null?void 0:fN.attachmentSlot}},{lockupAttachmentsViewModel:function(fN){return _.d(nar,{data:fN.data,
lockupStyle:l})}}))),_.d(_.iF,{data:function(){var fN;
return(fN=t())==null?void 0:fN.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(fN){return _.d(nar,{data:fN.data,
lockupStyle:l})}}))},"Vb");
_.IR.idomCompat=!0;_.o_(_.IR,"yt-lockup-view-model",{props:{data:_.$O,containerLayoutConfig:_.$O,containerType:_.$O,sizing:_.$O,protectBackground:_.$O,typographyBump:_.$O,thumbnailFixedWidth:_.$O,thumbnailTargetWidth:_.$O,force16By9ThumbnailAspectRatio:_.$O,className:_.$O,lockupExperiments:_.$O,elementsPerRow:_.$O,useOverlayStyling:_.$O}});var Oky,OQQ=_.q(function(N){var t=_.RH(N,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),O=t.text,H=t.alwaysShowTruncationText;N=t.truncationText;var A=t.onTextClick,Z=t.maxLines,U=t.disableTextMask,C=t.textStyle,F=t.accessibilityLabel,g=t.textSize,B=t.alwaysTruncateAtMaxLines,c=t.expandOnClick;t=_.D(_.b$(!1,void 0,"EzA1q"));var u=t.next().value,S=t.next().value;t=_.Ui(function(){c()&&S(!u());A==null||A()});
var b=function(){a:switch(g()){case "medium":var J=2;break a;case "large":J=2.2;break a;default:J=1.8}return J},z=ZkM(O,function(){return u()?Infinity:Z()},b,U,B,u),w=z.isTruncated;
O=z.displayText;B=z.contentRef;var P=z.hiddenRef,x=z.placeholderTruncationTextRef,l=z.hiddenTruncationTextRef;z=z.truncationTextRef;var I={},r={},E={};return _.d("truncated-text",{class:_.V7((I["yt-truncated-text"]=!0,I["yt-truncated-text--overlay"]=function(){return C()==="overlay"},I["yt-truncated-text--medium-text"]=function(){return g()==="medium"},I["yt-truncated-text--large-text"]=function(){return g()==="large"},I["yt-truncated-text--primary-text"]=function(){return C()==="primary-text"},I)),
"on:click":t,style:function(){return"line-height: "+b()+"rem;"}},_.d("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:B,style:function(){return u()?"":"max-height: "+Z()*b()+"rem;"}},_.d(_.cu,{text:O}),_.d("button",{"aria-disabled":!0,
disabled:!0,class:_.V7((r["yt-truncated-text__inline-button"]=!0,r["yt-truncated-text--hidden"]=function(){return!(!u()&&(H!=null&&H()||w()))},r)),
el:x,style:function(){return"line-height: "+b()+"rem;"}},_.d(_.cu,{text:N}))),_.d("truncated-text-content",{class:_.V7("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:P,style:function(){return u()?"":"max-height: "+Z()*b()+"rem;"},
"aria-hidden":"true"},_.d(_.cu,{text:O}),_.d("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:l,style:function(){return"line-height: "+b()+"rem;"}},_.d(_.cu,{text:N}))),_.d("button",{"aria-label":F,
class:_.V7((E["yt-truncated-text__absolute-button"]=function(){return!U()},E["yt-truncated-text__bottom-button"]=function(){return U()},E["yt-truncated-text--hidden"]=function(){return!(!u()&&(H!=null&&H()||w()))},E)),
el:z,style:function(){return"line-height: "+b()+"rem;"}},_.d(_.cu,{text:N})))},"Xb");
OQQ.idomCompat={callbacks:{onTextClick:!0}};var ZQR=_.q(function(N){var t=N.data;N=N.className;var O=_.aa(function(){return D8x(t())},void 0,"uDhDke"),H=_.d(_.BZ,null,_.d(_.y,{cond:function(){return t().heroText||t().image},
then:function(){return _.d(HQp,{data:t})}}),_.d(AM_,{data:t,
sizeSmall:function(){return t().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.d("yt-video-attribute-view-model",{class:N},_.d("div",{class:function(){var A=t();a:switch(A.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var Z="yt-video-attribute-view-model--vertical";break a;default:Z="yt-video-attribute-view-model--horizontal"}a:switch(A.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var U="yt-video-attribute-view-model--image-small";break a;default:U="yt-video-attribute-view-model--image-large"}a:switch(A.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var C=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":C="yt-video-attribute-view-model--image-avatar";break a;default:C=""}a:switch(A.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var F="yt-video-attribute-view-model--metadata-header";break a;default:F=""}a:switch(A.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var g="yt-video-attribute-view-model--container-card";break a;default:g=""}return["yt-video-attribute-view-model",Z,U,
C,F,g,D8x(A)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.FM({"background-color":function(){var A=t();if(A.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var Z="";else{Z=A.lightColorPalette;A=A.darkColorPalette;var U,C=((U=_.cY().resolve(_.BY(_.WV)))==null?0:U())&&A?A:Z;Z=(Z=C==null?void 0:C.section2Color)?_.TV(Z):""}return Z}})},_.d(_.y,{cond:O,
then:function(){return _.d(_.YO,{className:"yt-video-attribute-view-model__content-container",command:O,role:"group",ariaLabel:function(){return t().title}},H)},
else:function(){return _.d("div",{class:"yt-video-attribute-view-model__content-container"},H)}})))},"Yb");
ZQR.idomCompat=!0;var HQp=_.q(function(N){var t=N.data;var O,H=(O=_.cY().resolve(_.BY(_.WV)))==null?void 0:O(),A=function(){return H&&t().darkThemeImage?t().darkThemeImage:t().image},Z=_.aa(function(){return U84(t())},void 0,"UDqj0b");
return _.d("div",{class:"yt-video-attribute-view-model__hero-section"},_.d(_.WZ,null,_.d(_.qC,{when:A},function(){return _.d(_.Qt,{data:function(){return A()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.d(_.qC,{when:function(){return t().heroText}},function(){return _.d("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.d("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return t().heroText}))})),_.d(_.y,{cond:function(){return t().overflowMenuOnTap},
then:function(){return _.d("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.d(_.et,{data:Z,iconName:"MORE_VERT"}))}}))},"Zb");
HQp.idomCompat=!0;var AM_=_.q(function(N){var t=N.data;N=N.sizeSmall;var O=function(){return t().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},H=_.aa(function(){return Xr(_.PV({innertubeCommand:D8x(t())}))?"link":D8x(t())?"button":"group"},void 0,"e2MmYe"),A={};
return _.d("div",{class:_.V7("yt-video-attribute-view-model__metadata",(A["yt-video-attribute-view-model--small-font"]=N,A)),role:H},_.d("h1",{class:"yt-video-attribute-view-model__title"},function(){return t().title}),_.d(_.y,{cond:function(){return t().subtitle},
then:function(){return _.d("h4",{class:"yt-video-attribute-view-model__subtitle"},_.d(_.y,{cond:O,then:function(){return _.d(OQQ,{text:function(){return VHQ(t().subtitle)},
truncationText:function(){return VHQ(t().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.d("span",null,function(){return t().subtitle})}}))}}),_.d(_.y,{cond:function(){return t().secondarySubtitle},
then:function(Z){return _.d("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.d(_.cu,{text:function(){var U=Z();if(U!=null&&U.attachmentRuns){for(var C=[],F=_.D(U.attachmentRuns),g=F.next();!g.done;g=F.next())g=g.value,g.element&&C.push(Object.assign({},g,{element:Object.assign({},g.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));U=Object.assign({},U,{attachmentRuns:C})}return U}}))}}),_.d(_.iF,
{data:function(){return t().buttonViewModel}},{buttonViewModel:function(Z){return _.d(_.Pu,{data:Z.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
AM_.idomCompat=!0;_.o_(ZQR,"yt-video-attribute-view-model",{props:{data:_.$O,className:_.$O}});var lR=function(){var N=_.k.apply(this,arguments)||this;N.useHighlightStyling=_.h("web_enable_deeper_metadata_highlight_styling");N.isSearch=!1;N.JSC$15439_lastScrollContainerWidth=NaN;N.pageLoadingFromNavigation=!1;N.currentIndex=0;N.supportComponentResize=!1;return N};
_.p(lR,_.k);_.V=lR.prototype;
_.V.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.Fb(this,this.onPageChange))};
_.V.detached=function(){document.removeEventListener("yt-page-type-changed",_.Fb(this,this.onPageChange))};
_.V.getItemsPath=function(){return"data.cards"};
_.V.onIronResize=function(){this.updateListStyles()};
_.V.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var N;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(N=this.data)==null?void 0:N.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.h("problem_walkthrough_sd")&&!!this.centerItems};
_.V.computeCardListStyle=function(N){return N||null};
_.V.computeEmpty=function(N){return!this.get("cards.length",N)};
_.V.computeThumbnailStyle=function(N){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",N)||null};
_.V.computeHasSubtitle=function(N){return!!this.get("header.richListHeaderRenderer.subtitle",N)};
_.V.computeInitialCountNumber=function(N){return this.hasSquareMiniApp&&N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.V.computeUseFloorScrolling=function(N){return N==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.V.computeHasGameCard=function(N){return(N=this.get("cards",N))?N.some(function(t){return t.gameCardRenderer}):!1};
_.V.computeCenterHeaderTitle=function(N){return!(N==null||!N.centerHeaderTitle)};
_.V.computeHasPortraitMiniApp=function(N){return(N=N==null?void 0:N.cards)?N.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.V.computeHasSquareMiniApp=function(N){return(N=N==null?void 0:N.cards)?N.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.V.computeHasSkinnyWidthPortraitMiniApp=function(N){return(N=N==null?void 0:N.cards)?N.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.width===135}):!1};
_.V.computeCenterItems=function(N){return!!N};
_.V.computeHasInfoPanel=function(N){var t;return N==null?void 0:(t=N.cards)==null?void 0:t.some(function(O){return O.infoPanelContentRenderer})};
_.V.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.V.getItemByIndex=function(N){var t=this.items.children;return t&&t.length>N?t[N]:void 0};
_.V.onPageChange=function(){var N=this;this.pageLoadingFromNavigation=!0;_.GB.addJob(function(){N.pageLoadingFromNavigation=!1;_.Np(N.hostElement,"yt-terminate-video-preview-action")},8)};
_.V.updateListStyles=function(){if(_.h("problem_walkthrough_sd")&&this.JSC$15439_scrollContainer!==void 0){var N=this.JSC$15439_scrollContainer.clientWidth;N!==this.JSC$15439_lastScrollContainerWidth&&(this.JSC$15439_lastScrollContainerWidth=N,_.CO(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(N*.8,415)+"px"}),_.or(this.hostElement,"iron-resize"))}};
_.cv.Object.defineProperties(lR.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.h("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!!((N=this.data)==null?0:(t=N.cards)==null?0:(O=t[0])==null?0:O.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!!((N=this.data)==null?0:(t=N.cards)==null?0:(O=t[0])==null?0:O.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return _.h("enable_desktop_amsterdam_info_panels")&&!!((N=this.data)==null?0:(t=N.cards)==null?0:(O=t[0])==null?0:O.infoPanelContentRenderer)}}});
lR.prototype.dataChanged=lR.prototype.dataChanged;lR.prototype.onIronResize=lR.prototype.onIronResize;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.a2.YtdHorizontalListBehavior),_.Q("design:type",Object)],lR.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.Y(_.Kc),_.Q("design:type",Object)],lR.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lR.prototype,"data",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],lR.prototype,"useCustomColors",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],lR.prototype,"useHighlightStyling",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Q("design:type",Object)],lR.prototype,"cardListStyle",void 0);_.W([_.X({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Q("design:type",Boolean)],lR.prototype,"empty",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Q("design:type",Boolean)],lR.prototype,"hasSubtitle",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Q("design:type",Boolean)],lR.prototype,"thumbnailStyle",void 0);_.W([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Q("design:type",Boolean)],lR.prototype,"hasGameCard",void 0);_.W([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Q("design:type",Boolean)],lR.prototype,"centerHeaderTitle",void 0);
_.W([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Q("design:type",Boolean)],lR.prototype,"hasPortraitMiniApp",void 0);_.W([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Q("design:type",Boolean)],lR.prototype,"hasSquareMiniApp",void 0);_.W([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Q("design:type",Boolean)],lR.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.W([_.X({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Q("design:type",Boolean)],lR.prototype,"hasInfoPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],lR.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lR.prototype,"inlineStructuredDescription",void 0);_.W([_.B2("#scroll-container"),_.Q("design:type",HTMLDivElement)],lR.prototype,"JSC$15439_scrollContainer",void 0);
_.W([_.X({computed:"computeInitialCountNumber(data.style.type)"}),_.Q("design:type",Number)],lR.prototype,"initialCount",void 0);_.W([_.X({computed:"computeUseFloorScrolling(data.style.type)"}),_.Q("design:type",Boolean)],lR.prototype,"useFloorScrolling",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Q("design:type",Boolean)],lR.prototype,"centerItems",void 0);_.W([_.X(),_.Q("design:type",Object)],lR.prototype,"pageLoadingFromNavigation",void 0);
_.W([_.X(),_.Q("design:type",Object)],lR.prototype,"currentIndex",void 0);_.W([_.X(),_.Q("design:type",Number)],lR.prototype,"scrollCount",void 0);_.W([_.X(),_.Q("design:type",Object)],lR.prototype,"supportComponentResize",void 0);_.W([_.B2("#items"),_.Q("design:type",HTMLDivElement)],lR.prototype,"items",void 0);_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lR.prototype,"onIronResize",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lR.prototype,"dataChanged",null);_.W([_.X({reflectToAttribute:!0}),_.a("inlineStructuredDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lR.prototype,"hideNavigationButton",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lR.prototype,"modernChapters",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lR.prototype,"hasVideoAttributeViewModels",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],lR.prototype,"modernInfoPanels",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],lR);
_.n(lR,"ytd-horizontal-card-list-renderer",function(){if(JES!==void 0)return JES;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return JES=N},{mode:_.O4("kevlar_poly_si_batch_j072")?1:2});var VvR=_.q(function(N){var t=N.data;var O={};return _.d("video-summary-content-view-model",{class:_.V7("videoSummaryContentViewModelHost",N.className,(O.videoSummaryContentViewModelHostIsSearch=N.isSearch,O))},_.d(_.nL,{each:function(){var H=[],A=t().paragraphs;if(A==null||!A.length)return[];for(var Z=0;Z<A.length;Z++){var U=_.M(A[Z],u9E),C=void 0;Z>0&&(C=_.M(A[Z-1],u9E));C&&!!C.marker===!!U.marker?H[H.length-1].paragraphs.push(U):H.push({isList:!!U.marker,paragraphs:[U]})}return H},
keyBy:"INDEX"},function(H){return _.d(_.y,{cond:function(){return H().isList},
then:function(){return _.d("ul",{class:"videoSummaryContentViewModelList"},_.d(_.nL,{each:function(){return H().paragraphs},
keyBy:"INDEX"},function(A){return _.d("li",{class:"videoSummaryContentViewModelListItem"},_.d(_.cu,{text:function(){return A().text}}))}))},
else:function(){return _.d("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.d(_.nL,{each:function(){return H().paragraphs},
keyBy:"INDEX"},function(A){return _.d("p",{class:"videoSummaryContentViewModelParagraph"},_.d(_.cu,{text:function(){return A().text}}))}))}})}),_.d(_.y,{cond:function(){return!!_.M(t().likeButtonViewModel,_.Dh)&&!!_.M(t().dislikeButtonViewModel,_.V2)},
then:function(){return _.d("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.d("div",{class:"videoSummaryContentViewModelLikeButton"},_.d(_.Fl,{data:function(){return _.M(t().likeButtonViewModel,_.Dh)},
disableIconAnimation:!0})),_.d(_.Ko,{data:function(){return _.M(t().dislikeButtonViewModel,_.V2)}}))}}))},"ac");
VvR.idomCompat=!0;_.o_(VvR,"video-summary-content-view-model",{props:{data:_.$O,isSearch:_.$O,className:_.$O}});var Q9=function(){var N=_.k.apply(this,arguments)||this;var t,O;N.isExpanded=(O=(t=N.data)==null?void 0:t.isExpanded)!=null?O:!1;N.disableExpand=!1;N.showProminentLabel=!1;N.showRightSideLabel=!0;N.toggleExpandableContent=function(H){N.disableExpand||(H.stopPropagation(),_.vH(_.m1(H),N.hostElement,["info","expanded-subtitle"])||(N.isExpanded=!N.isExpanded,N.ytRendererBehavior.logExplicitClick(N.data),N.JSC$15450_cardList&&!_.h("expandable_metadata_a11y_fix_ks")&&_.yB(N,function(){_.Cb(N.hostElement)})))};
N.useSquareThumbnail=!1;N.startX=0;return N};
_.p(Q9,_.k);_.V=Q9.prototype;_.V.computeUseSquareThumbnail=function(){var N;return(N=this.data)==null?void 0:N.useSquareThumbnail};
_.V.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.V.dataChanged=function(){if(this.data){var N,t;this.isExpanded=(t=(N=this.data)==null?void 0:N.isExpanded)!=null?t:!1;var O,H,A,Z;if(N=this.isDarkTheme()?(O=this.data)==null?void 0:(H=O.colorData)==null?void 0:H.darkColorPalette:(A=this.data)==null?void 0:(Z=A.colorData)==null?void 0:Z.lightColorPalette){var U,C;if((U=this.data)==null?0:(C=U.colorData)==null?0:C.vibrantColorPalette)N.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Me(this.hostElement,N)}}};
_.V.isExpandedChanged=function(){this.isExpanded&&this.JSC$15450_cardList&&_.or(this.JSC$15450_cardList,"iron-resize")};
_.V.computeIsExpanded=function(N){return!!N.isExpanded};
_.V.computeShowProminentLabel=function(N,t){var O;return!!(N==null?0:(O=N.header)==null?0:O.showLeadingCollapsedLabel)&&!t};
_.V.computeShowRightSideLabel=function(N,t){var O;return!(N==null?0:(O=N.header)==null?0:O.showLeadingCollapsedLabel)&&!t};
_.V.captureContentClick=function(N){if(!this.disableExpand)if(_.h("expandable_metadata_fix_killswitch")){var t=N.target;_.nmB(t,"ytd-macro-markers-list-item-renderer")||N.stopPropagation();(t==null?void 0:t.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.vH(_.m1(N),this.hostElement,["items"])||_.RM(_.m1(N),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.V.timestampClick=function(N){N.stopPropagation();var t,O;(N=(t=this.data)==null?void 0:(O=t.header)==null?void 0:O.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(N)};
_.V.onDown=function(N){N.stopPropagation();this.startX=N.detail?N.detail.x:0};
_.V.onUp=function(N){this.skipKeyInteraction(N)&&N.stopPropagation()};
_.V.skipKeyInteraction=function(N){var t=N.target;if((t==null?void 0:t.id)==="scroll-container"||(t==null?void 0:t.id)==="items"||N.detail&&N.detail.x!==this.startX)return!0;N=_.m1(N);N=_.D(N);for(t=N.next();!t.done;t=N.next()){t=t.value;if(t===this.hostElement)break;if(t.hasAttribute&&t.hasAttribute("skip-key-interaction"))return!0}return!1};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.cv.Object.defineProperties(Q9.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.M((N=this.data)==null?void 0:N.expandedContent,iZ_)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.M((N=this.data)==null?void 0:N.expandedContent,_.j20)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.useCustomColors)&&!((t=this.data)==null||!t.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var N,t;return!!((N=this.data)==null?0:(t=N.header)==null?0:t.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var N,t;return!!((N=this.data)==null?0:(t=N.header)==null?0:t.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var N,t;return!!((N=this.data)==null?0:(t=N.header)==null?0:t.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Q9.prototype.onUp=Q9.prototype.onUp;Q9.prototype.onDown=Q9.prototype.onDown;Q9.prototype.isExpandedChanged=Q9.prototype.isExpandedChanged;Q9.prototype.dataChanged=Q9.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Q9.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Q9.prototype,"isExpanded",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Q9.prototype,"disableExpand",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Q9.prototype,"isSearch",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Q9.prototype,"isWatch",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Q("design:type",Object)],Q9.prototype,"showProminentLabel",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Q("design:type",Object)],Q9.prototype,"showRightSideLabel",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Q9.prototype,"hasVideoSummary",null);_.W([_.X({value:!1,reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Q9.prototype,"hasLockupViewModel",null);_.W([_.X({reflectToAttribute:!0}),_.a("data","isWatch"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Q9.prototype,"useCustomColors",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Q9.prototype,"showInfoButton",null);_.W([_.a("data","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Q9.prototype,"showTimestamp",null);_.W([_.a("data","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Q9.prototype,"showExpandedSubtitle",null);
_.W([_.a("data","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Q9.prototype,"showThumbnail",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Q9.prototype,"useVppShoppingDestinationStyle",null);_.W([_.X(),_.Q("design:type",Object)],Q9.prototype,"toggleExpandableContent",void 0);_.W([_.B2("ytd-horizontal-card-list-renderer"),_.Q("design:type",Object)],Q9.prototype,"JSC$15450_cardList",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Q("design:type",Object)],Q9.prototype,"useSquareThumbnail",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Q9.prototype,"dataChanged",null);_.W([_.gz("isExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Q9.prototype,"isExpandedChanged",null);
_.W([_.dz("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Q9.prototype,"onDown",null);_.W([_.dz("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Q9.prototype,"onUp",null);_.W([_.en({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Q9);
_.n(Q9,"ytd-expandable-metadata-renderer",function(){if(ZkS!==void 0)return ZkS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ZkS=N},{mode:1});var Di_,Uip=function(){if(Di_!==void 0)return Di_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Di_=N};_.o_(_.C_,"yt-avatar-stack-view-model",{props:{className:_.$O,data:_.$O,overrides:_.$O,isOverlay:_.$O,useMediumText:_.$O,decorations:_.$O,hideAvatar:_.$O}});_.pE("itemSectionRenderer","videoRenderer","ytd-video-renderer");var mu=function(){var N=_.k.apply(this,arguments)||this;N.disableExpand=!1;N.shouldShowChannelInfo=!1;N.hasAttributedBylineText=!1;N.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return N};
_.p(mu,_.k);_.V=mu.prototype;_.V.computeUseSearchUi=function(){var N,t;return this.isSearch||((N=this.data)==null?void 0:(t=N.style)==null?void 0:t.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.computeUseThreeLineTitle=function(){var N;return((N=this.data)==null?void 0:N.maxTitleLines)===3};
_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.h("polymer_video_renderer_defer_menu")&&!IVp?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.V.attached=function(){_.VQ(this.hostElement,"blue-links",_.h("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Dr(_.O6(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var N=this.get("data.buttons.buttonRenderer.serviceEndpoint"),t;N&&((t=_.M(N.commandMetadata,_.R$))==null?0:t.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(N);this.updateInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15455_inlinePreviewHoverListener=XF({mediaRenderer:this,lockupElement:this.JSC$15455_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.V.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15455_inlinePreviewHoverListener)==null||RE(N)};
_.V.onTextWrapperClick=function(N){var t,O,H=this.hideTranslation?(t=this.data)==null?void 0:t.untranslatedNavigationEndpoint:(O=this.data)==null?void 0:O.navigationEndpoint;t=_.vH(_.m1(N),this.hostElement,["expandable-metadata"]);!H||t&&!_.h("expandable_metadata_fix_killswitch")||_.RM(_.m1(N),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.or(this.hostElement,"yt-navigate",{endpoint:H})};
_.V.computeThumbnailWidth=function(N,t,O,H,A){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:H?A==="MASSIVE"?600:A==="BIG"?500:A==="MEDIUM"?450:420:O?360:t?128:N?210:246};
_.V.computeUseBiggerThumbs=function(N){return N&&_.h("enable_desktop_search_bigger_thumbs")};
_.V.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.V.computeHasAttributedBylineText=function(){var N;return!((N=this.data)==null||!N.attributedBylineText)};
_.V.computeVideoStyle=function(){if(_.h("enable_video_style")){var N,t;return(N=this.data)==null?void 0:(t=N.style)==null?void 0:t.value}};
_.V.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.V.handleHideItemSectionVideosByIdCommand=function(N){var t;N=(t=_.M(N,rcX))==null?void 0:t.videoId;this.data&&this.data.videoId===N&&(this.isHidden=!0)};
_.V.getMetadataSnippetContainerClass=function(N){return N?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.V.computeTitleText=function(N,t,O){return N?O:t};
_.V.computeDescriptionSnippet=function(N,t,O){return N?O:t};
_.V.computeSnippetText=function(N,t,O){return N?O:t};
_.V.computeNavigationEndpoint=function(N,t){return N?t==null?void 0:t.untranslatedNavigationEndpoint:t==null?void 0:t.navigationEndpoint};
_.V.hideInlineTitleIcon=function(N,t){return N||!t};
_.cv.Object.defineProperties(mu.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var N;return(N=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?N:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!!(this==null?0:(N=this.data)==null?0:(t=N.channelThumbnailSupportedRenderers)==null?0:(O=t.channelThumbnailWithLinkRenderer)==null?0:O.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.M((N=this.data)==null?void 0:N.avatar,icf)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$15455_inlinePreviewHoverListener)==null?0:dV(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.cv.Object.defineProperties(mu,{template:{configurable:!0,enumerable:!0,get:function(){return Uip()}}});
mu.prototype.dataChanged=mu.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],mu.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],mu.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Y(_.$t),_.Q("design:type",Object)],mu.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],mu.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],mu.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],mu.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],mu.prototype,"isBackstageVideo",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],mu.prototype,"isPostCompactVideo",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],mu.prototype,"isHistory",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],mu.prototype,"isRichGridVideoPost",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],mu.prototype,"isHidden",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],mu.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Q("design:type",Boolean)],mu.prototype,"useSearchUi",void 0);_.W([_.X({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Q("design:type",Boolean)],mu.prototype,"useThreeLineTitle",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Q("design:type",Boolean)],mu.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Q("design:type",Object)],mu.prototype,"videoStyle",void 0);_.W([_.X({computed:"computeDisableExpand(videoStyle)"}),_.Q("design:type",Object)],mu.prototype,"disableExpand",void 0);
_.W([_.X({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Q("design:type",Object)],mu.prototype,"shouldShowChannelInfo",void 0);_.W([_.X({computed:"computeHasAttributedBylineText(data)"}),_.Q("design:type",Object)],mu.prototype,"hasAttributedBylineText",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],mu.prototype,"biggerThumbsStyle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Q("design:type",String)],mu.prototype,"inlineTitleIcon",void 0);_.W([_.X({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Q("design:type",Object)],mu.prototype,"computedNavigationEndpoint",void 0);_.W([_.X({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(N,t){return _.CM(N.entities,"searchVideoResultEntity",t)}}),
_.Q("design:type",Object)],mu.prototype,"searchVideoResultEntity",void 0);_.W([_.B2("ytd-thumbnail"),_.Q("design:type",HTMLElement)],mu.prototype,"thumbnail",void 0);_.W([_.B2("#dismissible"),_.Q("design:type",HTMLElement)],mu.prototype,"JSC$15455_dismissibleMedia",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mu.prototype,"dataChanged",null);
_.W([_.a("searchVideoResultEntity"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mu.prototype,"hideTranslation",null);_.W([_.a("searchVideoResultEntity"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],mu.prototype,"hiddenBadgeGroups",null);_.W([_.a("data","useAvatar"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mu.prototype,"shouldShowChannelThumbnail",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mu.prototype,"useAvatar",null);
_.W([_.a("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mu.prototype,"isHovered",null);_.W([_.en({is:"ytd-video-renderer",disableElementRegistration:!0})],mu);_.n(mu,"ytd-video-renderer",function(){return Uip()},{mode:_.O4("kevlar_poly_si_batch_j047")?1:2});var Es=function(){var N=_.k.apply(this,arguments)||this;N.editDialog=null;N.roundedContainer=!0;N.isLoading=!1;N.isRichGrid=!1;N.isRichGridRepost=!1;N.reduceSidePaddings=_.h("reduce_side_paddings_in_shelf");N.JSC$15462_spinnerEl=null;return N};
_.p(Es,_.k);_.V=Es.prototype;
_.V.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){var N=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var t=0,O=this.data.actions&&this.data.actions.length;t<O;t++)this.openEditDialog(_.M(this.data.actions[t],bpa));if((t=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(t=this.get("buttonRenderer.hint.hintRenderer.hintId",t))&&t.startsWith("share-post-hint")){var H=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(H){_.nZ.getInstance();var A=WT(_.E_(_.CJ("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.GB.addLowPriorityJob(function(){_.OK(N.hostElement,A,H)})}}}};
_.V.updatePoll=function(N){N>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15462_spinnerEl||(this.JSC$15462_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.O6(this.hostElement).appendChild(this.JSC$15462_spinnerEl));this.JSC$15462_spinnerEl&&(this.JSC$15462_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(N){var t=this.get("updateCommentDialogEndpoint",N.detail.endpoint);t&&(this.openEditDialog(t),N.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(N,t){t&&this.updatePoll(t.selectedChoiceIndex)};
_.V.onYtServiceRequestSent=function(N,t){var O;t.endpoint&&(_.M(t.endpoint,PWY)||_.M(t.endpoint,eHB)&&((O=_.M(t.endpoint,eHB))==null||!O.clientActions))&&(this.isLoading=!0);if(t.actions)for(N=0;N<t.actions.length;N++)O=t.actions[N],_.M(O,Ek)&&(O=this.get("updateBackstagePollAction.selectedChoiceIndex",O),O==void 0&&(O=-1),this.updatePoll(O))};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(N){N&&N.dialog&&(this.editDialog=N.dialog,N=this.editDialogEl.firstElementChild)&&(N.focus(),N.openDialog&&N.openDialog())};
_.V.computeIsPostHidden=function(N,t){return!!N||t};
_.V.computeSurfaceType=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.V.computeUsesCompactLockup=function(N){return N==="BACKSTAGE_SURFACE_TYPE_HOME"||N==="BACKSTAGE_SURFACE_TYPE_SEARCH"||N==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||N==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||N==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||N==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeShowWithoutToolbar=function(N){return!N.actionButtons&&!N.actionMenu};
_.V.computePostAttachment=function(N){if(N.backstageAttachment){if(_.M(N.backstageAttachment,d3r))return"poll";if(_.M(N.backstageAttachment,JPa))return"quiz";if(_.M(N.backstageAttachment,_.Bs))return"video";if(_.M(N.backstageAttachment,oO_))return"uploaded-videos";if(_.M(N.backstageAttachment,vkp))return N.contentText?"image":"image-only";if(_.M(N.backstageAttachment,EOB))return"playlist"}return"none"};
_.V.computePostTabIndex=function(N){return N?0:-1};
_.V.computeButtonTooltipPosition=function(N){return this.computeUsesCompactLockup(N)?"top":"bottom"};
_.V.computeHasText=function(N){return!(N==null||!N.contentText)};
_.V.onTap=function(N){var t,O;if(((t=this.data)==null?0:t.navigationEndpoint)&&((O=this.data)==null?void 0:O.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var H;((H=this.data)==null?0:H.navigationEndpoint)&&!_.RM(_.m1(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.cv.Object.defineProperties(Es.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.voteCount)||_.E_("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,d3r))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,oO_))}}});
Es.prototype.onYtServiceRequestCompleted=Es.prototype.onYtServiceRequestCompleted;Es.prototype.onYtServiceRequestSent=Es.prototype.onYtServiceRequestSent;Es.prototype.onYtCommentPollRevert=Es.prototype.onYtCommentPollRevert;Es.prototype.onYtCommentboxDismiss=Es.prototype.onYtCommentboxDismiss;Es.prototype.onYtNavigate=Es.prototype.onYtNavigate;Es.prototype.isLoadingChanged=Es.prototype.isLoadingChanged;Es.prototype.dataChanged=Es.prototype.dataChanged;Es.prototype.contentTextChanged=Es.prototype.contentTextChanged;
_.W([_.Y(_.Kc),_.Q("design:type",Object)],Es.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Es.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Es.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],Es.prototype,"editDialog",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Es.prototype,"roundedContainer",void 0);_.W([_.X(),_.Q("design:type",Object)],Es.prototype,"isLoading",void 0);_.W([_.X({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Q("design:type",String)],Es.prototype,"surface",void 0);
_.W([_.X({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Es.prototype,"usesCompactLockup",void 0);_.W([_.X({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Es.prototype,"showWithoutToolbar",void 0);_.W([_.X({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Q("design:type",String)],Es.prototype,"attachment",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Es.prototype,"isRichGrid",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Es.prototype,"isRichGridRepost",void 0);_.W([_.X({reflectToAttribute:!0,value:_.h("use_better_post_dismissals")}),_.Q("design:type",Boolean)],Es.prototype,"useBetterPostDismissals",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Es.prototype,"reduceSidePaddings",void 0);
_.W([_.X({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Es.prototype,"hasText",void 0);_.W([_.B2("#expander"),_.Q("design:type",Object)],Es.prototype,"expander",void 0);_.W([_.B2("#action-buttons"),_.Q("design:type",Object)],Es.prototype,"actionButtons",void 0);_.W([_.B2("#edit-dialog"),_.Q("design:type",HTMLElement)],Es.prototype,"editDialogEl",void 0);
_.W([_.gz("data.contentText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Es.prototype,"contentTextChanged",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Es.prototype,"dataChanged",null);_.W([_.gz("isLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Es.prototype,"isLoadingChanged",null);
_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Es.prototype,"onYtNavigate",null);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Es.prototype,"onYtCommentboxDismiss",null);_.W([_.dz("yt-comment-poll-revert"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Es.prototype,"onYtCommentPollRevert",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],Es.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],Es.prototype,"onYtServiceRequestCompleted",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Es.prototype,"voteCount",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Es.prototype,"commentCount",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Es.prototype,"hasPoll",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Es.prototype,"hasUploadedVideo",null);_.W([_.en({is:"ytd-post-renderer",disableElementRegistration:!0})],Es);
_.n(Es,"ytd-post-renderer",function(){if(LEf!==void 0)return LEf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return LEf=N},{mode:1});var CHB;var KaX;var GH=function(){return _.k.apply(this,arguments)||this};
_.p(GH,_.k);GH.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.a2.YtdHorizontalListBehavior),_.Q("design:type",Object)],GH.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],GH.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],GH.prototype,"data",void 0);
_.W([_.X({value:"$.items.children"}),_.Q("design:type",String)],GH.prototype,"itemsPath",void 0);_.W([_.X({value:1}),_.Q("design:type",Number)],GH.prototype,"initialCount",void 0);_.W([_.X({reflectToAttribute:!0,value:_.h("enable_community_page_on_desktop")}),_.Q("design:type",Boolean)],GH.prototype,"useSmallerPostImageAttachments",void 0);_.W([_.X(),_.Q("design:type",String)],GH.prototype,"surface",void 0);_.W([_.en({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],GH);
_.n(GH,"ytd-post-multi-image-renderer",function(){if(KaX!==void 0)return KaX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return KaX=N},{mode:_.O4("kevlar_poly_si_batch_j079")?1:2});var Faa={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
RR=function(){var N=_.k.apply(this,arguments)||this;N.hasInlineCommentSection=!1;N.editDialog=null;N.isLoading=!1;N.shouldHideAuthor=!1;N.shouldShowVideoTime=!1;N.isInEngagementPanel=!1;N.hideBorder=!1;N.usesFullLockup=!1;N.shouldShowMenuInCompactView=!1;N.JSC$15477_spinnerEl=null;N.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return N};
_.p(RR,_.k);_.V=RR.prototype;_.V.configureRendererStamper=function(){return Faa};
_.V.computeIsPollHeaderEnabled=function(N){return(N==null?void 0:N.pollMetadataIcon)!=null};
_.V.getPublishTimeStampString=function(N,t){t=new Date((Number(t)-60*((new Date).getTimezoneOffset()-(new Date(Number(t)*1E3)).getTimezoneOffset()))*1E3);t=(new md(10)).format(t);if(N&&N.runs&&N.runs.length)for(var O=0;O<N.runs.length;O++)N.runs[O].text&&(N.runs[O].text=N.runs[O].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",t));return N};
_.V.created=function(){this.JSC$15477_spinnerEl=null};
_.V.contentTextChanged=function(){this.expander.reset()};
_.V.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var N;if((N=this.data)==null?0:N.actions){N=_.D(this.data.actions);for(var t=N.next();!t.done;t=N.next())this.openEditDialog(_.M(t.value,bpa))}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){_.O6(this.hostElement).querySelector("#action-buttons").reply()};
_.V.updatePoll=function(N,t){t&&this.set("data.pollMetadataVoteCountText",t);this.hasInlineCommentSection&&(N=N>=0,t=_.O6(this.hostElement).querySelector("#action-buttons"),N?t.reply():t.hideReplyDialog())};
_.V.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15477_spinnerEl||(this.JSC$15477_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.O6(this.hostElement).appendChild(this.JSC$15477_spinnerEl));this.JSC$15477_spinnerEl&&(this.JSC$15477_spinnerEl.active=this.isLoading)};
_.V.onYtNavigate=function(N){var t=this.get("updateCommentDialogEndpoint",N.detail.endpoint);t&&(this.openEditDialog(t),N.stopPropagation())};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.onYtCommentPollRevert=function(N,t){t&&this.updatePoll(t.selectedChoiceIndex,t.totalVotes)};
_.V.onYtServiceRequestSent=function(N,t){N.stopPropagation();N=_.M(t.endpoint,eHB);if(_.M(t.endpoint,PWY)||N&&!N.clientActions)this.isLoading=!0;if(t.actions)for(N=0;N<t.actions.length;N++){var O=t.actions[N],H=_.M(O,Ek);H&&(O=this.get("updateBackstagePollAction.selectedChoiceIndex",O),O===void 0&&(O=-1),this.updatePoll(O,H.totalVotes))}};
_.V.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.V.openEditDialog=function(N){N&&N.dialog&&(this.editDialog=N.dialog,N=this.editDialogElement.firstElementChild)&&(N.focus(),N.openDialog&&N.openDialog())};
_.V.computeIsBodyHidden=function(N,t){return!!N||t};
_.cv.Object.defineProperties(RR.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var N=this.data,t=N.showPostAuthorBackgroundHighlight,O=N.postAuthorBadgeType,H=N.authorEndpoint;if(!t&&O!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&O!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var A,Z,U;N=_.E_(((A=N.authorText)==null?void 0:(Z=A.runs)==null?void 0:(U=Z[0])==null?void 0:U.text)||"");A=void 0;switch(O){case "POST_AUTHOR_BADGE_TYPE_ARTIST":A={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":A={iconType:t?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:N,authorEndpoint:H,authorCreator:t,icon:A}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var N,t;if((N=this.data)==null?0:(t=N.pollMetadataIcon)==null?0:t.iconType)return _.Vt(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.voteCount)||_.E_("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,d3r))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,JPa))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.M(this.data.backstageAttachment,oO_))}}});
RR.prototype.onYtServiceRequestCompleted=RR.prototype.onYtServiceRequestCompleted;RR.prototype.onYtServiceRequestSent=RR.prototype.onYtServiceRequestSent;RR.prototype.onYtCommentPollRevert=RR.prototype.onYtCommentPollRevert;RR.prototype.onYtCommentboxDismiss=RR.prototype.onYtCommentboxDismiss;RR.prototype.onYtNavigate=RR.prototype.onYtNavigate;RR.prototype.isLoadingChanged=RR.prototype.isLoadingChanged;RR.prototype.dataChanged=RR.prototype.dataChanged;RR.prototype.contentTextChanged=RR.prototype.contentTextChanged;
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],RR.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],RR.prototype,"rendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],RR.prototype,"rendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],RR.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.B2("#contentTextExpander"),_.Q("design:type",Object)],RR.prototype,"expander",void 0);_.W([_.B2("#edit-dialog"),_.Q("design:type",Element)],RR.prototype,"editDialogElement",void 0);_.W([_.X(),_.Q("design:type",Object)],RR.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],RR.prototype,"hasInlineCommentSection",void 0);_.W([_.X(),_.Q("design:type",Object)],RR.prototype,"editDialog",void 0);_.W([_.X(),_.Q("design:type",Object)],RR.prototype,"isLoading",void 0);
_.W([_.X({computed:"computeIsPollHeaderEnabled(data)"}),_.Q("design:type",Boolean)],RR.prototype,"isPollHeaderEnabled",void 0);_.W([_.X(),_.Q("design:type",Object)],RR.prototype,"shouldHideAuthor",void 0);_.W([_.X(),_.Q("design:type",Object)],RR.prototype,"shouldShowVideoTime",void 0);_.W([_.X(),_.Q("design:type",Object)],RR.prototype,"isInEngagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],RR.prototype,"hideBorder",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],RR.prototype,"usesFullLockup",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],RR.prototype,"shouldShowMenuInCompactView",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],RR.prototype,"authorCommentBadge",null);_.W([_.a("isInEngagementPanel"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],RR.prototype,"postTextMaxLines",null);
_.W([_.a("data.icon.iconType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],RR.prototype,"pollIcon",null);_.W([_.gz("data.contentText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RR.prototype,"contentTextChanged",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RR.prototype,"dataChanged",null);
_.W([_.gz("isLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RR.prototype,"isLoadingChanged",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],RR.prototype,"onYtNavigate",null);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RR.prototype,"onYtCommentboxDismiss",null);
_.W([_.dz("yt-comment-poll-revert"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],RR.prototype,"onYtCommentPollRevert",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],RR.prototype,"onYtServiceRequestSent",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],RR.prototype,"onYtServiceRequestCompleted",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],RR.prototype,"voteCount",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],RR.prototype,"commentCount",null);
_.W([_.a("data.backstageAttachment"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RR.prototype,"hasPoll",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RR.prototype,"hasQuiz",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RR.prototype,"hasUploadedVideo",null);_.W([_.en({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],RR);
_.n(RR,"ytd-backstage-post-renderer",function(){if(CHB!==void 0)return CHB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return CHB=N},{mode:1});var diE;var vK=function(){var N=_.k.apply(this,arguments)||this;N.editDialog=null;N.showExpandButton=!1;N.isRichGrid=!1;N.usesFullLockup=!1;return N};
_.p(vK,_.k);_.V=vK.prototype;_.V.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.V.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.V.computeShowExpandButton=function(N){return this.usesCompactLockup||N&&N.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.V.computeUsesCompactLockup=function(N){return!!N.condensedContent};
_.V.computeShowFullContentText=function(N){return!N};
_.V.onYtNavigate=function(N){N=this.get("updateCommentDialogEndpoint",N.detail.endpoint);this.openEditDialog(N)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null};
_.V.openEditDialog=function(N){N&&N.dialog&&(this.editDialog=N.dialog,N=this.repostEditDialogEl.firstElementChild)&&(N.focus(),N.openDialog&&N.openDialog())};
_.V.onTap=function(N){if(this.data){var t=null;this.usesCompactLockup&&!_.RM(_.m1(N)||[],this.hostElement,["YT-IMG-SHADOW"])?t=this.get("navigationEndpoint",this.data):N.target===this.moreButtonEl&&(t=this.get("navigationEndpoint",N.target.data));t&&_.or(this.hostElement,"yt-navigate",{endpoint:t})}};
vK.prototype.onYtCommentboxDismiss=vK.prototype.onYtCommentboxDismiss;vK.prototype.onYtNavigate=vK.prototype.onYtNavigate;vK.prototype.dataChanged=vK.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vK.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],vK.prototype,"editDialog",void 0);_.W([_.X({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],vK.prototype,"usesCompactLockup",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vK.prototype,"showExpandButton",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vK.prototype,"isRichGrid",void 0);
_.W([_.X({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],vK.prototype,"showFullContentText",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vK.prototype,"usesFullLockup",void 0);_.W([_.B2("#more"),_.Q("design:type",Object)],vK.prototype,"moreButtonEl",void 0);_.W([_.B2("#repost-content-text"),_.Q("design:type",HTMLElement)],vK.prototype,"repostContentTextEl",void 0);
_.W([_.B2("#repost-edit-dialog"),_.Q("design:type",HTMLElement)],vK.prototype,"repostEditDialogEl",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vK.prototype,"dataChanged",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],vK.prototype,"onYtNavigate",null);
_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vK.prototype,"onYtCommentboxDismiss",null);_.W([_.en({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],vK);
_.n(vK,"ytd-shared-post-renderer",function(){if(diE!==void 0)return diE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return diE=N},{mode:1});var g5B;var yMZ;var JX=function(){return _.k.apply(this,arguments)||this};
_.p(JX,_.k);JX.prototype.attached=function(){var N=this;this.networkStatusManager||(this.networkStatusManager=new _.VN,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){N.onlineHandler()}))};
JX.prototype.detached=function(){var N=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){N.onlineHandler()}),delete this.networkStatusManager)};
JX.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],JX.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],JX.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],JX);
_.n(JX,"ytd-reload-page-button-renderer",function(){if(yMZ!==void 0)return yMZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return yMZ=N},{mode:1});var BwQ={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"},oR=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(oR,_.k);_.V=oR.prototype;_.V.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.V.computeHasBodyText=function(N){return!!N.bodyText};
_.V.computeButtons=function(N){var t=[];N.ctaButton&&t.push(N.ctaButton);N.secondaryButton&&t.push(N.secondaryButton);return t};
_.V.computeRendererStyle=function(N){return N.style?N.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():N.icon?"":"no-icon"};
_.V.getIconName=function(N,t){t=t===void 0?!1:t;if(N===void 0)return"";N=this.get("icon.iconType",N);var O;_.h("enable_hlp_client_icon_pick")?O=this.getThemedIcon(N,t):O=N;(t=BwQ[O])||(t="yt-icons");return[t,O].join(":")};
_.V.getThemedIcon=function(N,t){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(N)?t?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(N)?t?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":N};
_.V.isThumbnail=function(N){return!!N.thumbnail};
_.V.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],oR.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oR.prototype,"data",void 0);
_.W([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Q("design:type",String)],oR.prototype,"rendererStyle",void 0);_.W([_.X({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Q("design:type",String)],oR.prototype,"iconName",void 0);_.W([_.X({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],oR.prototype,"thumbnail",void 0);_.W([_.X({computed:"computeButtons(data)"}),_.Q("design:type",Array)],oR.prototype,"buttons",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],oR.prototype,"isDarkTheme",void 0);_.W([_.X({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],oR.prototype,"hasBodyText",void 0);_.W([_.en({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],oR);
_.td()(oR,"ytd-background-promo-renderer",function(){if(g5B===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);g5B=N}N=g5B;return N},{allowedProps:["data"],
mode:1});var cMY;var ss=function(){return _.k.apply(this,arguments)||this};
_.p(ss,_.k);_.cv.Object.defineProperties(ss.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A,Z;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(N=this.data)==null?void 0:(t=N.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(H=O.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(A=this.data)==null?void 0:(Z=A.thumbnail)==null?void 0:Z.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ss.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ss.prototype,"collectionStack",null);_.W([_.en({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],ss);
_.n(ss,"ytd-compact-station-renderer",function(){if(cMY!==void 0)return cMY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return cMY=N},{mode:1});var $i_;var NP=function(){var N=_.k.apply(this,arguments)||this;N.isRichGrid=!1;return N};
_.p(NP,_.k);NP.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]]"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],NP.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],NP.prototype,"isRichGrid",void 0);_.W([_.en({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],NP);
_.n(NP,"ytd-grid-channel-renderer",function(){if($i_!==void 0)return $i_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return $i_=N},{mode:1});var jAZ;var t3=function(){return _.k.apply(this,arguments)||this};
_.p(t3,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],t3.prototype,"data",void 0);_.W([_.en({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],t3);
_.n(t3,"ytd-grid-movie-playlist-renderer",function(){if(jAZ!==void 0)return jAZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return jAZ=N},{mode:1});var iQX;var OX=function(){var N=_.k.apply(this,arguments)||this;N.downloadProgress=0;N.transferState="TRANSFER_STATE_UNKNOWN";N.modernButtons=_.h("web_modern_buttons");return N};
_.p(OX,_.k);OX.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
OX.prototype.configureRendererStamper=function(){return{"data.menu":Ef}};
OX.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
OX.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.h("woffle_playlist_renderer_killswitch")){var N,t=zHg(this.entityInfo,this.transferState,this.downloadProgress,(N=this.data)==null?void 0:N.playlistId,this.isOnline);N=t.viewPlaylistText;var O=t.badges;t=t.thumbnailOverlays;this.isDownloads=!!N||!!O;this.set("data.viewPlaylistText",N);O&&O.length>0&&this.set("data.badges",O);t&&t.length>0&&this.set("data.thumbnailOverlays",
t)}};
_.cv.Object.defineProperties(OX.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.menu)}}});
OX.prototype.transferStateChanged=OX.prototype.transferStateChanged;OX.prototype.dataChanged=OX.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],OX.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],OX.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X({selector:_.fTN,selectorArgs:["data.playlistId"]}),_.Q("design:type",Object)],OX.prototype,"downloadProgress",void 0);_.W([_.X({selector:_.xj,selectorArgs:["data.playlistId"]}),_.Q("design:type",Object)],OX.prototype,"transferState",void 0);_.W([_.X({selector:qox,selectorArgs:["data.playlistId"]}),_.Q("design:type",Object)],OX.prototype,"entityInfo",void 0);_.W([_.X({selector:_.P5}),_.Q("design:type",Boolean)],OX.prototype,"isOnline",void 0);
_.W([_.X(),_.Q("design:type",Object)],OX.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],OX.prototype,"downloadRenderData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],OX.prototype,"modernButtons",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],OX.prototype,"isDownloads",void 0);_.W([_.a("transferState"),_.X({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],OX.prototype,"downloadState",null);
_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],OX.prototype,"menuHidden",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],OX.prototype,"dataChanged",null);_.W([_.ic("transferState","downloadProgress","isOnline"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],OX.prototype,"transferStateChanged",null);
_.W([_.en({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],OX);
_.n(OX,"ytd-grid-playlist-renderer",function(){if(iQX!==void 0)return iQX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return iQX=N},{mode:1});var uRf;var Hf=function(){return _.k.apply(this,arguments)||this};
_.p(Hf,_.k);Hf.prototype.configureRendererStamper=function(){return{"data.menu":Ef,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.cv.Object.defineProperties(Hf.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A,Z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(N=this.data)==null?void 0:(t=N.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(H=O.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(A=this.data)==null?void 0:(Z=A.thumbnail)==null?void 0:Z.darkColorPalette,experimentEnabled:!0}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],Hf.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],Hf.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Hf.prototype,"data",void 0);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Hf.prototype,"collectionStack",null);_.W([_.en({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Hf);
_.n(Hf,"ytd-grid-radio-renderer",function(){if(uRf!==void 0)return uRf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return uRf=N},{mode:1});var Sza;var A3=function(){return _.k.apply(this,arguments)||this};
_.p(A3,_.k);A3.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
A3.prototype.computeNavigationEndpoint=function(N){return wsg(N==null?void 0:N.navigationEndpoint)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],A3.prototype,"ytdLockupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],A3.prototype,"data",void 0);_.W([_.X({computed:"computeNavigationEndpoint(data)"}),_.Q("design:type",Object)],A3.prototype,"computedNavigationEndpoint",void 0);
_.W([_.en({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],A3);
_.n(A3,"ytd-grid-show-renderer",function(){if(Sza!==void 0)return Sza;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Sza=N},{mode:1});var hjR;_.ZH=function(N){this.playerClient=N};
_.MvZ=function(N,t,O){O=O===void 0?{}:O;return N.playerClient.setOption("ad",t,O)};
_.ZH.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.ZH.prototype.executeCommand=function(N,t){this.getOptions().includes("executeCommand")?_.MvZ(this,"executeCommand",{command:N,layoutId:t}):_.rZ("Calling executeCommand when adModule is not loaded")};var VL=function(){return _.k.apply(this,arguments)||this};
_.p(VL,_.k);VL.prototype.getLayoutId=function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.layoutId:null};
VL.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var N=_.si(),t=this.getLayoutId(),O=this.data.clickthroughEndpoint;N&&t&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?N.getPlayerPromise().then(function(H){(new _.ZH(H)).executeCommand(O,t)}):_.or(this.hostElement,"yt-navigate",{endpoint:O})}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VL.prototype,"data",void 0);_.W([_.en({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],VL);
_.n(VL,"ytd-shopping-companion-item-renderer",function(){if(hjR!==void 0)return hjR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return hjR=N},{mode:1});var bQy;var DH=function(){var N=_.k.apply(this,arguments)||this;N.isExpandableContent=!1;return N};
_.p(DH,_.k);_.cv.Object.defineProperties(DH.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.data)==null?void 0:N.price)||((t=this.data)==null?void 0:(O=t.dealsData)==null?void 0:O.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var N,t;if((N=this.data)!=null&&N.dealsData&&((t=this.data)==null||!t.priceReplacementText)){N=this.data.dealsData;var O,H,A;return((O=N.salesData)==null?void 0:O.originalPrice)||((H=N.priceDropData)==null?void 0:H.referencePrice)||((A=N.promotionData)==null?void 0:A.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var N,t;return(N=this.data)==null?void 0:(t=N.dealsData)==null?void 0:t.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],DH.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DH.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],DH.prototype,"isExpandableContent",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"showCta",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"ctaText",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"hasPriceTopPosition",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"hasPriceBottomPosition",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"useNewStyle",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"showPriceReplacementText",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"priceValue",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"showDeal",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"showAffiliateDisclaimer",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"useSaleStyle",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"useFromBrandCtaStyle",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"useFromVendorCtaStyle",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DH.prototype,"useShoppingCollectionCtaStyle",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],DH);
_.n(DH,"ytd-vertical-product-card-renderer",function(){if(bQy!==void 0)return bQy;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return bQy=N},{mode:1});var ppZ;var UX=function(){return _.k.apply(this,arguments)||this};
_.p(UX,_.k);UX.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],UX.prototype,"ytdLockupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UX.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],UX);
_.n(UX,"ytd-grid-movie-renderer",function(){if(ppZ!==void 0)return ppZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ppZ=N},{mode:1});var La_;var Cq=function(){var N=_.k.apply(this,arguments)||this;N.roundedFix=_.h("web_enable_merch_item_rounding_fix");N.itemStyle="small-item";return N};
_.p(Cq,_.k);Cq.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var N,t,O,H,A=(t=_.M((N=this.data)==null?void 0:N.buttonCommand,_.Tkp))==null?void 0:(O=t.item)==null?void 0:(H=O.notificationTextRenderer)==null?void 0:H.successResponseText;A&&_.Chp(this.hostElement,A)}};
_.cv.Object.defineProperties(Cq.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:N.isProductPlaceholder)!==void 0&&((t=this.data)==null?void 0:t.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Cq.prototype,"roundedFix",void 0);_.W([_.X(),_.Q("design:type",Object)],Cq.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],Cq.prototype,"itemStyle",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Cq.prototype,"hasPrice",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Cq.prototype,"hasPriceReplacementText",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Cq.prototype,"hasAdditionalFeesText",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Cq.prototype,"hasAffiliateDisclaimer",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Cq.prototype,"isProductPlaceholder",null);
_.W([_.X(),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Cq.prototype,"hideOpenInNewIcon",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Cq.prototype,"ariaLabel",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Cq);
_.n(Cq,"ytd-merch-shelf-item-renderer",function(){if(La_!==void 0)return La_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return La_=N},{mode:1});_.o_(_.q(function(N){return _.d("button-card-view-model",{el:_.E4(_.wZ(function(){return N.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return N.data().title},
role:"button"},_.d(_.aw,{model:{}}),_.d("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.d("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.d(_.y,{cond:function(){return N.data().image},
then:function(t){return _.d(_.Qt,{data:t,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.d("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return N.data().title})))},"bc"),"button-card-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){N=_.RH(N,{className:void 0});var t=N.data;N=N.className;var O=_.aa(function(){return t().onTapCommand},void 0,"SXkP9e");
return _.d("ytd-shopping-item-card",{class:_.V7("ytdShoppingItemCardHost",N)},_.d(_.YO,{command:O,className:"ytdShoppingItemCardHostLink"},_.d("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.d(_.iF,{data:function(){return t().thumbnailViewModel}},{thumbnailViewModel:function(H){return _.d(_.wV,{data:H.data,
aspectRatio:3})}})),_.d("div",null,_.d("p",{class:"ytdShoppingItemCardHostItemTitle"},_.d(_.cu,{text:function(){return t().itemTitle}})),_.d("p",{class:"ytdShoppingItemCardHostPrice"},_.d(_.cu,{text:function(){return t().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.$O,
className:_.$O}});var zjY={isAdsVideo:!0},Yzy={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},as0={showPlayerControls:!1,videoPreviewDurationMs:15E3},Twy={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},wpY={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var lF=null,KrM={};var g7Q="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(" "),Kq={},yEx=(Kq.FEwhat_to_watch="home",Kq.FEhashtag="hashtag",Kq.FEtrending="trending",Kq.FEhistory="history",Kq.SPunlimited="premium",Kq.FEmemberships_and_purchases="paid_memberships",Kq.SPredeem_code="redeem",Kq.SPverify_location="locate",Kq.SPminor_moment="minor_moment",
Kq.FEmini_app_container="mini_app",Kq.FEnews_destination="news",Kq.SPopen_in_app="open_in_app",Kq.FEexplore="explore",Kq.FEsubscriptions="subscriptions",Kq.FEsfv_audio_pivot="sfv_audio_pivot",Kq.FEplaylist_aggregation="playlist_aggregation",Kq);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");_.Hc("init");var ejp=function(){},kQp=_.q(function(N){var t=N.data;
var O=N.inlineMetadata;var H=N.aspectRatio;var A=N.scrimStyle;var Z=N.className;var U=N.useDefaultStyle;var C=N.titleStyle;var F=new ejp,g=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",B=_.aa(function(){return(U==null?0:U())?g==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),c=_.aa(function(){return _.Qo(O)||B()||!1},void 0,"SEL6Qd"),u=function(){return(A==null?void 0:A())!==void 0?A==null?void 0:A():1},
S=_.aa(function(){return t().belowThumbnailMetadata||!c()},void 0,"KAqk1b");
N=_.iU({visibilityCallback:function(CN){var B4=t().onFirstVisible;CN&&B4&&_.xJ(B4)},
showOption:{calledOnce:!0,state:"visible"}});var b=_.E4(),z={},w=_.V7(function(){return B(),"shortsLockupViewModelHostThumbnailContainer"},(z.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Qo(H)===1},z.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Qo(H)===2},z.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.h("web_shorts_2_by_3_lockups_study")&&!_.h("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
z)),P=_.aa(function(){if(_.Qo(H)===1)return 1;
_.Qo(H);return 2},void 0,"Bg5Es"),x,l=function(){if(F){var CN;
(CN=x)==null||RE(CN);var B4;if(F.hostElement&&((B4=F.data)==null?0:B4.inlinePlayerData)){var zM,jy;CN=((zM=F.data)==null?0:(jy=zM.inlinePlayerData)==null?0:jy.enableAudioControl)?Object.assign({},wpY):Object.assign({},Twy);var c4,XO;((c4=F.data)==null?void 0:(XO=c4.inlinePlayerData)==null?void 0:XO.maxPlaybackLengthSec)!==void 0&&(CN.videoPreviewDurationMs=F.data.inlinePlayerData.maxPlaybackLengthSec*1E3);x=XF({mediaRenderer:F,lockupElement:F.hostElement,thumbnailElement:b.value,videoPreviewOpts:CN})}}};
_.rp(function(){F&&(F.data=t(),l())},"wo9C7e");
var I=_.aa(function(){return t().thumbnail},void 0,"haijYd");
z=_.aa(function(){return t().badge},void 0,"RpDeSe");
var r=_.aa(function(){return t().onTap},void 0,"hOfuOb"),E={},J={};
return _.d("ytm-shorts-lockup-view-model",{el:_.E4(function(CN){F&&(F.hostElement=CN)},l,N),
class:_.V7("shortsLockupViewModelHost",Z)},_.d(_.BZ,null,_.d(_.YO,{command:r,className:_.V7("shortsLockupViewModelHostEndpoint",(E.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!S()},E),"reel-item-endpoint",""),
ariaHidden:function(){return!c()},
tabIndex:function(){return c()?0:-1}},_.d("div",{el:b,
class:_.V7("shortsLockupViewModelHostThumbnailParentContainer",(J.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!B()},J))},_.d(_.y,{cond:I,
then:function(){return _.d("div",{class:w},_.d(_.Qt,{data:function(){var CN;return(CN=I==null?void 0:I())!=null?CN:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.d(_.iF,{data:function(){return t().thumbnailViewModel}},{thumbnailViewModel:function(CN){return _.d(_.wV,{data:CN.data,
aspectRatio:function(){return P()},
disableRounding:function(){return B()}})}}),null),_.d(_.y,{cond:c,
then:function(){return _.d(PHr,{data:t,scrimStyle:u,useDefaultStyle:U,titleStyle:C})}}),_.d(_.iF,{data:z},{badgeViewModel:function(CN){return _.d(_.L_,{data:CN.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.d(_.y,{cond:function(){return c()&&t().menuOnTap},
then:function(){return _.d(XpB,{data:t,inlineMetadata:!0})}}),_.d(_.y,{cond:S,
then:function(){return _.d(xia,{data:t,useDefaultStyle:U,inlineMetadata:c})}})))},"ec"),PHr=_.q(function(N){var t=N.data;
var O=N.scrimStyle;var H=N.useDefaultStyle;var A=N.titleStyle;var Z=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",U=H&&_.h("web_hide_primary_text_for_pivot_panel"),C=_.aa(function(){return(H==null?0:H())?Z==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
N={};N=_.V7("shortsLockupViewModelHostInlineMetadata",(N.shortsLockupViewModelHostMetadataRounded=function(){return!C()},N.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(O==null?void 0:O())===3&&!_.h("enable_shorts_lockup_new_scrim")},N.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(O==null?void 0:O())===3&&_.h("enable_shorts_lockup_new_scrim")},N.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(O==null?void 0:O())===2||(O==null?void 0:
O())===4},N.shortsLockupViewModelHostShowOverPlayer=function(){return!0},N),"image-overlay-text");
var F={};return _.d("div",{class:N},_.d("h3",{class:_.V7("shortsLockupViewModelHostMetadataTitle",(F.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(O==null?void 0:O())===4},F.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return t().belowThumbnailMetadata},F.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(A==null?void 0:A())===1},F.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(A==null?void 0:A())===2},F)),
"aria-label":function(){return t().accessibilityText}},_.d(_.y,{cond:function(){var g;
return!((g=t().overlayMetadata)==null||!g.primaryText)&&!U},
then:function(){return _.d(_.cu,{text:function(){var g;return(g=t().overlayMetadata)==null?void 0:g.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.d(_.y,{cond:function(){var g;
return(g=t().overlayMetadata)==null?void 0:g.secondaryText},
then:function(){return _.d(qzB,{data:t,scrimStyle:O,className:void 0})}}))},"fc"),xia=_.q(function(N){var t=N.data;
var O=N.useDefaultStyle;var H=N.inlineMetadata;var A=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Z=_.aa(function(){return(O==null?0:O())?A==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),U=_.E4(),C;
N=_.Ui(function(S){if(_.YS(_.zE(S),U.value,["AVATAR-VIEW-MODEL"]))return!1;var b;(b=C)==null||b.click();return!1});
var F=_.aa(function(){return t().belowThumbnailMetadata||t().overlayMetadata},void 0,"GwezKf"),g=function(){return t().menuOnTap&&!H()},B=function(){var S;
return(S=F())==null?void 0:S.avatar},c={},u={};
return _.d("div",{class:_.V7(function(){return Z()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(c.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!B()},c.shortsLockupViewModelHostOutsideMetadataHasMenu=g,c)),
"on:click":N,el:U,role:"presentation"},_.d(_.iF,{data:B},{avatarViewModel:function(S){return _.d(_.Dv,{data:S.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.d("div",null,_.d("h3",{class:_.V7("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(u.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var S,b;
return!((S=F())==null?0:(b=S.primaryText)==null?0:b.content)},u.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=H,u)),
role:"presentation"},_.d(_.YO,{ref:function(S){return void(C=S)},
command:function(){return t().onTap},
className:_.V7("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var S,b;return(S=F())==null?void 0:(b=S.primaryText)==null?void 0:b.content},
"aria-label":function(){return t().accessibilityText}},_.d(_.y,{cond:function(){var S;
return(S=F())==null?void 0:S.primaryText},
then:function(S){return _.d(_.cu,{text:S,noEndpoints:!0,noStyleRuns:!0})}}))),_.d(_.y,{cond:function(){var S;
return(S=F())==null?void 0:S.secondaryText},
then:function(S){return _.d("div",{class:_.V7("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.d(_.cu,{text:S,noStyleRuns:!0}))}})),_.d(_.y,{cond:g,
then:function(){return _.d(XpB,{data:t,inlineMetadata:!1})}}))},"gc"),qzB=_.q(function(N){var t=N.data;
var O=N.scrimStyle;N=N.className;var H={};return _.d("div",{class:_.V7((H.shortsLockupViewModelHostMetadataSubhead=function(){return(O==null?void 0:O())!==4},H.shortsLockupViewModelHostMetadataSubheadNew=_.h("enable_shorts_lockup_new_scrim"),H.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(O==null?void 0:O())===4},H),N),
"aria-hidden":"true"},_.d(_.cu,{text:function(){var A;return(A=t().overlayMetadata)==null?void 0:A.secondaryText},
noStyleRuns:!0}))},"hc"),XpB=_.q(function(N){var t=N.data;
var O=N.inlineMetadata;N={};N=_.V7((N.shortsLockupViewModelHostInlineMetadataMenu=function(){return O()},N.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!O()},N.shortsLockupViewModelHostShowOverPlayer=function(){return!0},N),"image-overlay-text");
return _.d("div",{class:N},_.d(_.et,{data:function(){return{style:O()?"overlay":"mono",accessibilityLabel:t().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(H){H.preventDefault();H.stopPropagation();var A=_.PV({elementsCommand:t().menuOnTap,forceNewState:!0});if(A==null?0:A.onclick)A.onclick(H)}}},
iconName:"MORE_VERT"}))},"ic");var fsp=_.q(function(N){var t=N.data;var O=N.inlineMetadata;var H=N.aspectRatio;var A=N.scrimStyle;var Z=N.className;var U=N.useDefaultStyle;N=_.aa(function(){var C=t().entityId;return C?C.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.d("ytm-shorts-lockup-view-model-v2",{class:_.V7("shortsLockupViewModelHost",Z)},_.d(_.f_,{contentId:N,aspectRatio:function(){return(H==null?void 0:H())===1?1:(H==null?void 0:H())===2?2:4}},function(){return _.d(kQp,{data:t,
inlineMetadata:O,aspectRatio:H,scrimStyle:A,className:Z,useDefaultStyle:U})}))},"jc");_.o_(fsp,"ytm-shorts-lockup-view-model-v2",{props:{data:_.R_,inlineMetadata:_.R_,aspectRatio:_.R_,scrimStyle:_.R_,className:_.R_,useDefaultStyle:_.R_,titleStyle:_.R_}});var n5r=16/9*210,F3=function(){var N=_.k.apply(this,arguments)||this;N.isExpandableContent=!1;N.hideShelfHeader=!1;N.engagementPanel=!1;N.buttonClasses=["arrow"];N.isSearch=!1;N.disableScrollEventListener=!1;N.containsLockup=!1;N.overrideArrowPositionForProductCard=!1;N.overrideArrowPositionForShoppingItemCard=!1;N.overrideArrowPositionForReelItems=!1;N.overrideArrowPositionForGridMovie=!1;N.overrideArrowPositionToCenter=!1;N.isSearchPostShelf=!1;N.overrideArrowPositionForMixedShelf=!1;N.overrideArrowPositionForMixedShelfShortsOnly=
!1;N.hasBigThumbsReelItems=!1;N.shouldUseMixedListHeight=!1;N.shouldUseShortsListHeight=!1;N.gridVideoWidth=0;N.isSearchVodShelf=!1;N.disableWheelScroll=!1;N.sizing="COMPACT";N.shortsLockupAspectRatio=0;return N};
_.p(F3,_.k);_.V=F3.prototype;
_.V.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.h("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.V.computeInitialCountNumber=function(N){if(!N)return 6;var t=N.items.some(function(Z){return!!Z.topicRecommendationsChipRenderer}),O=N.items.some(function(Z){return!!Z.displayAdRenderer}),H=this.computeShouldListItemsHaveEqualHeight(N),A=N.items.some(function(Z){return!!Z.gridPlaylistRenderer});
N=N.items.some(function(Z){return!!Z.shoppingItemCardViewModel});
return t?9:O?8:A||H?10:N?7:6};
_.V.computeContainsPost=function(N){return!!N&&!!N.items&&N.items.some(function(t){return!!t.postRenderer})};
_.V.computeContainsLockup=function(){if(_.h("web_horizontal_list_lockup_arrow_killswitch"))return!1;var N,t;return(N=this.data)==null?void 0:(t=N.items)==null?void 0:t.some(function(O){return!!O.lockupViewModel})};
_.V.maybeUpdateLockupAspectRatio=function(){var N,t;if(this.computeContainsLockup()&&((N=this.data)==null?0:(t=N.items)==null?0:t.length)){var O;N=qOz((O=this.data.items[0].lockupViewModel)==null?void 0:O.contentType,this.data.force16By9ThumbnailAspectRatio);O=kKQ(N);O=this.computeLockupWidth()/O;_.CO(this.hostElement,{"--yt-horizontal-list-content-height":O+"px"})}};
_.V.computeOverrideArrowPositionForProductCard=function(N){if(this.isExpandableContent)return!1;var t;return!!(N==null?0:(t=N.items)==null?0:t.some(function(O){return!!O.verticalProductCardRenderer}))};
_.V.computeOverrideArrowPositionForShoppingItemCard=function(N){var t;return!!(N==null?0:(t=N.items)==null?0:t.some(function(O){return!!O.shoppingItemCardViewModel}))};
_.V.computeOverrideArrowPositionForReelItemRenderer=function(N){return this.containsReelItemRenderer(N)};
_.V.computeHasBigThumbsReelItems=function(N,t){return N&&this.containsReelItemRenderer(t)};
_.V.computeShouldListItemsHaveEqualHeight=function(N){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(N==null?void 0:N.itemSizeConstraint)};
_.V.computeShouldListItemsHaveShortsHeight=function(N){return this.computeShouldListItemsHaveEqualHeight(N)&&!this.containsGridVideoRenderer(N)};
_.V.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.V.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.V.containsReelItemRenderer=function(N){var t;return!!(N==null?0:(t=N.items)==null?0:t.some(function(O){return!(!O.reelItemRenderer&&!O.shortsLockupViewModel)}))};
_.V.containsGridVideoRenderer=function(N){var t;return!!(N==null?0:(t=N.items)==null?0:t.some(function(O){return!!O.gridVideoRenderer||!!O.lockupViewModel}))};
_.V.computeContainsGridMovieRenderer=function(N){var t;return!!(N==null?0:(t=N.items)==null?0:t.some(function(O){return!!O.gridMovieRenderer}))};
_.V.computeOverrideArrowPositionToCenter=function(N){return this.computeIsSearchPostShelf(N)};
_.V.computeIsSearchPostShelf=function(N){var t;return!!(N==null?0:(t=N.items)==null?0:t.some(function(O){var H,A;return((A=(H=O.postRenderer)==null?void 0:H.surface)!=null?A:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.V.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(N){var t;return!!(N==null?0:(t=N.items)==null?0:t.some(function(O){var H,A,Z;return((Z=(H=O.backgroundPromoRenderer)==null?void 0:(A=H.style)==null?void 0:A.value)!=null?Z:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.V.computeIsSearchVodShelf=function(N,t){return N&&this.containsGridVideoRenderer(t)};
_.V.computeDisableWheelScroll=function(N,t){return this.computeIsSearchVodShelf(N,t)};
_.V.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.V.computeShortsLockupAspectRatio=function(){return 1};
_.V.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.CO(this.hostElement,{"--ytd-reel-item-thumbnail-height":n5r+"px"})};
F3.prototype.dataChanged=F3.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.a2.YtdHorizontalListBehavior),_.Q("design:type",Object)],F3.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],F3.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],F3.prototype,"isExpandableContent",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"hideShelfHeader",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"engagementPanel",void 0);_.W([_.X(),_.Q("design:type",Array)],F3.prototype,"buttonClasses",void 0);_.W([_.X(),_.Q("design:type",Object)],F3.prototype,"isSearch",void 0);
_.W([_.X(),_.Q("design:type",Object)],F3.prototype,"disableScrollEventListener",void 0);_.W([_.X({computed:"computeInitialCountNumber(data)"}),_.Q("design:type",Number)],F3.prototype,"initialCount",void 0);_.W([_.X({computed:"computeContainsPost(data)"}),_.Q("design:type",Boolean)],F3.prototype,"supportComponentResize",void 0);_.W([_.X({computed:"computeContainsPost(data)"}),_.Q("design:type",Boolean)],F3.prototype,"containsPost",void 0);
_.W([_.X({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"containsLockup",void 0);_.W([_.X({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],F3.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.W([_.X({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"overrideArrowPositionForProductCard",void 0);_.W([_.X({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.W([_.X({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"overrideArrowPositionForReelItems",void 0);_.W([_.X({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"overrideArrowPositionForGridMovie",void 0);
_.W([_.X({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"overrideArrowPositionToCenter",void 0);_.W([_.X({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"isSearchPostShelf",void 0);_.W([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.W([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.W([_.X({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"hasBigThumbsReelItems",void 0);
_.W([_.X({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"shouldUseMixedListHeight",void 0);_.W([_.X({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"shouldUseShortsListHeight",void 0);_.W([_.X({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"gridVideoWidth",void 0);
_.W([_.X({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"isSearchVodShelf",void 0);_.W([_.X({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Q("design:type",Object)],F3.prototype,"disableWheelScroll",void 0);_.W([_.X({computed:"computeSizing(isSearch)"}),_.Q("design:type",Object)],F3.prototype,"sizing",void 0);
_.W([_.X({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Q("design:type",Object)],F3.prototype,"shortsLockupAspectRatio",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],F3.prototype,"dataChanged",null);
_.n(F3,"yt-horizontal-list-renderer",function(){if(n0_===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);n0_=N}N=n0_;return N},{mode:1});var Wap=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
Wap.prototype.subscribe=function(N,t){var O=this.subscriptions.get(N);if(!O)return function(){};
O.add(t);return function(){O.delete(t)}};
Wap.prototype.unsubscribe=function(N,t){(N=this.subscriptions.get(N))&&N.delete(t)};
Wap.prototype.publish=function(N,t){t=t===void 0?{}:t;(N=this.subscriptions.get(N))&&N.forEach(function(O){O(t)})};var rMY;var Isf=[10,12,14,16,18,20,24,28,32,36],lsR=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],dn=function(){var N=_.k.apply(this,arguments)||this;N.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";N.hideOverflow=!1;N.useRoboto=!1;N.fontClass="";N.overflown=!1;N.actionMap={"yt-window-resized":"resize"};return N};
_.p(dn,_.k);_.V=dn.prototype;
_.V.attached=function(){var N=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.yB(this,function(){N.resize()});
if(!_.V_){var t,O,H;(t=document)==null||(O=t.fonts)==null||(H=O.ready)==null||H.then(function(){N.resize()})}};
_.V.dataChanged=function(){this.resize()};
_.V.guideIsExpandedChanged=function(){this.resize()};
_.V.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var N=this.getMaxNumLines(),t=this.getMinFont(),O=this.getMaxFont(),H=this.useRoboto?Isf:lsR;for(H=H.filter(function(Z){return Z<=O&&Z>=t});H.length>1;){var A=Math.floor(H.length/2);
this.updateFontSize(H[A]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=N)H=H.slice(A,H.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>N)H=H.slice(0,A);else break}this.updateFontSize(H[H.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(N)}};
_.V.handleOverflow=function(N){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>N&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",N.toString()))};
_.V.updateFontSize=function(N){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+N;this.textNode.classList.add(this.fontClass)};
_.V.getMaxFont=function(){var N=this.useRoboto?Isf:lsR;N=N[N.length-1];return this.maxFontSize&&this.maxFontSize<=N?this.maxFontSize:N};
_.V.getMinFont=function(){var N=(this.useRoboto?Isf:lsR)[0];return this.minFontSize&&this.minFontSize>=N?this.minFontSize:N};
_.V.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.V.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.V.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Gv(this.text).split("\n").length-1:Infinity};
_.V.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
dn.prototype.guideIsExpandedChanged=dn.prototype.guideIsExpandedChanged;dn.prototype.dataChanged=dn.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],dn.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],dn.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dn.prototype,"text",void 0);
_.W([_.X(),_.Q("design:type",String)],dn.prototype,"fontFamily",void 0);_.W([_.X(),_.Q("design:type",Number)],dn.prototype,"maxWidth",void 0);_.W([_.X(),_.Q("design:type",Number)],dn.prototype,"maxHeight",void 0);_.W([_.X(),_.Q("design:type",Number)],dn.prototype,"maxFontSize",void 0);_.W([_.X(),_.Q("design:type",Number)],dn.prototype,"minFontSize",void 0);_.W([_.X(),_.Q("design:type",Number)],dn.prototype,"maxLines",void 0);_.W([_.X(),_.Q("design:type",Object)],dn.prototype,"hideOverflow",void 0);
_.W([_.X({selector:_.puv}),_.Q("design:type",Boolean)],dn.prototype,"guideIsExpanded",void 0);_.W([_.B2("#container"),_.Q("design:type",HTMLElement)],dn.prototype,"containerNode",void 0);_.W([_.B2("#text"),_.Q("design:type",HTMLElement)],dn.prototype,"textNode",void 0);_.W([_.ic("text"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dn.prototype,"dataChanged",null);
_.W([_.ic("guideIsExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dn.prototype,"guideIsExpandedChanged",null);_.W([_.en({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],dn);
_.n(dn,"yt-dynamic-sizing-formatted-string",function(){if(rMY!==void 0)return rMY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rMY=N},{mode:1});var QAE;_.miY=function(N){_.Nz.call(this,N)};
_.p(_.miY,_.Nz);var E5E=function(N){_.Nz.call(this,N)};
_.p(E5E,_.miY);var gn=function(){return _.k.apply(this,arguments)||this};
_.p(gn,_.k);gn.prototype.onTapSuspendedChannel=function(){var N;if((N=this.data)!=null&&N.serviceEndpoint){var t,O;(N=(O=_.M((t=this.data)==null?void 0:t.serviceEndpoint,_.Z3))==null?void 0:O.url)?_.xH(N,void 0,void 0,window.top):(t=new E5E("Did not handle suspended account tap. No appealUrl."),_.R0(t))}else t=new E5E("Did not handle suspended account tap. No serviceEndpoint."),_.R0(t)};
gn.prototype.onTap=function(){var N=this,t=_.gF(),O,H=(O=_.dF(t,{veType:7116}))!=null?O:void 0;_.fE(t,{visualElement:H});_.Pi();this.saveRoleText();var A;if((A=this.data)==null?0:A.youtubeSuspended)this.onTapSuspendedChannel();else{var Z=!1,U,C;(t=(C=_.M((U=this.data)==null?void 0:U.serviceEndpoint,_.nnY))==null?void 0:C.supportedTokens)&&t.forEach(function(F){if(F.accountSigninToken)if(Z=!0,N.onAccountItemTap)N.onAccountItemTap(F.accountSigninToken.signinUrl);else _.xH(F.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!Z){if(U=this.get("serviceEndpoint",this.data))Z=!0,this.ytComponentBehavior.resolveCommand(U);Z||_.vX(new E5E("Did not handle account switch tap. No token."))}}};
gn.prototype.saveRoleText=function(){if(this.data){var N=this.data,t=N.channelDelegationRole;if(t){var O,H=(O=_.M(N==null?void 0:N.serviceEndpoint,_.nnY))==null?void 0:O.supportedTokens;if(!H){var A,Z,U,C;H=(A=_.M(N==null?void 0:N.serviceEndpoint,_.GL))==null?void 0:(Z=A.popup)==null?void 0:(U=Z.confirmDialogRenderer)==null?void 0:(C=U.confirmButton)==null?void 0:C.buttonRenderer;var F;H=(F=_.M(H==null?void 0:H.command,_.Ab))==null?void 0:F.commands;if(!H)return;var g;H=(g=_.M(H[1],_.nnY))==null?
void 0:g.supportedTokens}if(H){F=void 0;g=_.D(H);for(H=g.next();!H.done;H=g.next())if(H=H.value,H.datasyncIdToken){F=H.datasyncIdToken.datasyncIdToken;break}if(F){var B;a:{if(_.fvg()&&(g=_.lP(F+"::pom"))){g=new Er(g);break a}g=void 0}(B=g)==null||B.set("role_text",t);if((oeN?oeN:window.location).href.indexOf("studio")!==-1&&(B=neG())){g=B.src?(new URL(B.src)).origin:"*";var c;(c=B.contentWindow)==null||c.postMessage({action:"save_pom_role",datasyncId:F,roleText:t},g)}}}}}};
_.cv.Object.defineProperties(gn.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.data)==null?void 0:(t=N.accountPhoto)==null?void 0:t.thumbnails;return O&&O.length>0&&(O[0].height===36||O[0].height===48)?O[0].height:40}}});
gn.prototype.onTap=gn.prototype.onTap;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],gn.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gn.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!1}),_.Q("design:type",Function)],gn.prototype,"onAccountItemTap",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],gn.prototype,"enableRingForActiveAccount",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],gn.prototype,"thumbnailSize",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gn.prototype,"onTap",null);_.W([_.en({is:"ytd-account-item-renderer",disableElementRegistration:!0})],gn);
_.n(gn,"ytd-account-item-renderer",function(){if(QAE!==void 0)return QAE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return QAE=N},{mode:1});var GQS;var yL=function(){return _.k.apply(this,arguments)||this};
_.p(yL,_.k);yL.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.cY().resolve(_.jo).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yL.prototype,"data",void 0);_.W([_.en({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],yL);
_.n(yL,"ytd-identity-chip-renderer",function(){if(GQS!==void 0)return GQS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return GQS=N},{mode:1});var RjE;var v5y;var JMX;var o5p;var Bf=function(){var N=_.k.apply(this,arguments)||this;N.richItemMinWidth=_.uP("wn_grid_min_item_width",310);N.isShorts=!1;N.isWatchNext=!1;N.isExploreHub=!1;return N};
_.p(Bf,_.k);_.cv.Object.defineProperties(Bf.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var N=[],t=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.CO(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var O;if(((O=this.data)==null?0:O.rows)&&t)for(t*=this.data.rows,O=0;O<t;O++)N.push({});return N}}});
_.W([_.Y(_.Ue),_.Q("design:type",Object)],Bf.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Bf.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.Tv,value:3}),_.Q("design:type",Number)],Bf.prototype,"itemsPerRow",void 0);_.W([_.X({selector:_.bDl,value:6}),_.Q("design:type",Number)],Bf.prototype,"slimItemsPerRow",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Number)],Bf.prototype,"richItemMinWidth",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],Bf.prototype,"miniMode",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bf.prototype,"isShorts",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bf.prototype,"isWatchNext",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bf.prototype,"isExploreHub",void 0);
_.W([_.a("isExploreHub"),_.X({reflectToAttribute:!0}),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bf.prototype,"shimmerAnimation",null);_.W([_.a("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],Bf.prototype,"cardItems",null);_.W([_.en({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Bf);
_.sAY=_.td()(Bf,"ytd-ghost-grid-renderer",function(){if(o5p===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);o5p=N}N=o5p;return N},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.o_(_.q(function(N){var t=_.RH(N,{numberOfComments:3}).numberOfComments,O=_.RH(N,{isInitialLoad:!1}).isInitialLoad,H=_.RH(N,{engagementPanel:!1}).engagementPanel,A=function(){return Math.min(Number(t==null?void 0:t())||20,20)};
return _.d("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.d(_.y,{cond:function(){return!(H==null?0:H())&&(O==null?void 0:O())},
then:function(){return _.d("div",{class:"ytGhostCommentsComments"},_.d("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.d("div",{class:_.V7("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.d("div",{class:_.V7("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.d("div",{class:"ytGhostCommentsGhostCard"},_.d("div",{class:"ytGhostCommentsAvatar"},_.d("div",{class:"ytGhostCommentsCircle"})),_.d("div",{class:"ytGhostCommentsComments"},_.d("div",{class:"ytGhostCommentsMeta"},
_.d("div",{class:_.V7("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.d("div",{class:_.V7("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.d("div",{class:"ytGhostCommentsComments"},_.d(_.nL,{each:function(){return Array((A==null?void 0:A())||3)}},function(){return _.d("div",{class:"ytGhostCommentsGhostCard"},_.d("div",{class:"ytGhostCommentsAvatar"},_.d("div",{class:"ytGhostCommentsCircle"})),_.d("div",{class:"ytGhostCommentsHost"},_.d("div",{class:"ytGhostCommentsMeta"},
_.d("div",{class:_.V7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.d("div",{class:_.V7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.d("div",{class:_.V7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.d("div",{class:"ytGhostCommentsGhostLikeDislike"},_.d("div",{class:_.V7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.d("div",{class:_.V7("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.$O,
isInitialLoad:_.$O,engagementPanel:_.$O},unsafeExternallySettableAttributes:new Set(["hidden"])});_.pE("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var cf=function(){var N=_.k.apply(this,arguments)||this;N.isOverridable=!1;N.spinnerActive=!1;N.showButton=!1;N.isCommentsSection=!1;N.engagementPanel=!0;N.isShortsGrid=!1;N.isShortsPage=!1;N.isWatchPage=!1;N.originalShowButton=!1;N.endOfList=!1;return N};
_.p(cf,_.k);_.V=cf.prototype;_.V.resetIntersectionObserver=function(){var N;(N=this.observer)==null||N.disconnect();this.observer=void 0};
_.V.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var N,t;((N=this.data)==null?void 0:N.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((t=this.data)==null?0:t.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.V.initializeIntersectionObserver=function(){var N=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(t){t=_.D(t);for(var O=t.next();!O.done;O=t.next())O.value.isIntersecting&&(N.triggerContinuation(),N.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.V.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var N;((N=this.data)==null?0:N.continuationEndpoint)&&(N=_.M(this.data.continuationEndpoint,_.PH))&&this.ytdReduxBehavior.dispatch(_.H5({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:N}}))};
_.V.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.V.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.V.onServiceRequestCompleted=function(N,t){if(!_.h("kevlar_hide_spinner_on_empty_continuation_killswitch")){var O;(O=t.actions)!=null&&O.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.V.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.V.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.V.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.V.numberOfGhostCommentsChanged=function(){var N=3;if(this.engagementPanel){var t,O,H;N=Math.floor(((((t=this.hostElement)==null?void 0:(O=t.parentElement)==null?void 0:(H=O.parentElement)==null?void 0:H.scrollHeight)||108)-108)/108);N=this.isInitialLoad?Math.max(N,3):3}t=[].concat(_.W6(this.hostElement.querySelectorAll("yt-ghost-comments")));t=_.D(t);for(O=t.next();!O.done;O=t.next())O=O.value,O.numberOfComments=N,O.isInitialLoad=this.isInitialLoad,O.engagementPanel=this.engagementPanel};
_.V.detached=function(){this.resetIntersectionObserver()};
_.cv.Object.defineProperties(cf.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
cf.prototype.numberOfGhostCommentsChanged=cf.prototype.numberOfGhostCommentsChanged;cf.prototype.continuationTriggerOffsetChanged=cf.prototype.continuationTriggerOffsetChanged;cf.prototype.showButtonChanged=cf.prototype.showButtonChanged;cf.prototype.onYtServiceRequestCompletedForButtonRenderer=cf.prototype.onYtServiceRequestCompletedForButtonRenderer;cf.prototype.onServiceRequestCompleted=cf.prototype.onServiceRequestCompleted;cf.prototype.onYtServiceRequestSentForButtonRenderer=cf.prototype.onYtServiceRequestSentForButtonRenderer;
cf.prototype.observeData=cf.prototype.observeData;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.dd.YtVisibilityBehavior),_.Q("design:type",Object)],cf.prototype,"ytVisibilityBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],cf.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],cf.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cf.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],cf.prototype,"isOverridable",void 0);_.W([_.X(),_.Q("design:type",Object)],cf.prototype,"spinnerActive",void 0);_.W([_.X(),_.Q("design:type",Object)],cf.prototype,"showButton",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],cf.prototype,"isCommentsSection",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],cf.prototype,"engagementPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],cf.prototype,"isShortsGrid",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.Yol}),_.Q("design:type",Object)],cf.prototype,"isShortsPage",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.ztQ}),_.Q("design:type",Object)],cf.prototype,"isWatchPage",void 0);_.W([_.X(),_.Q("design:type",Number)],cf.prototype,"continuationTriggerOffset",void 0);
_.W([_.X(),_.Q("design:type",Object)],cf.prototype,"endOfList",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],cf.prototype,"isInitialLoad",void 0);_.W([_.B2("ytd-button-renderer"),_.Q("design:type",_.Yn)],cf.prototype,"buttonRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],cf.prototype,"buttonOverrides",void 0);
_.W([_.X(),_.a("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],cf.prototype,"showGhostCardComments",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cf.prototype,"observeData",null);
_.W([_.dz("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cf.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],cf.prototype,"onServiceRequestCompleted",null);
_.W([_.dz("yt-service-request-completed-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cf.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.W([_.ic("showButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cf.prototype,"showButtonChanged",null);
_.W([_.ic("continuationTriggerOffset"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cf.prototype,"continuationTriggerOffsetChanged",null);_.W([_.gz("isInitialLoad","engagementPanel"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cf.prototype,"numberOfGhostCommentsChanged",null);_.W([_.en({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],cf);
_.n(cf,"ytd-continuation-item-renderer",function(){if(JMX!==void 0)return JMX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return JMX=N},{mode:1});var NSa;var $T=function(){var N=_.k.apply(this,arguments)||this;N.downloadProgress=0;N.transferState="TRANSFER_STATE_UNKNOWN";N.downloadState="DOWNLOAD_STATE_UNKNOWN";N.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";N.offlineVideoPolicyExpirationTimestamp=0;N.downloadedVideoPlaybackPosition=0;return N};
_.p($T,_.k);$T.prototype.dataChanged=function(){var N;this.videoData=_.M((N=this.data)==null?void 0:N.renderer,$3_);this.transferStateChanged()};
$T.prototype.downloadProgressChanged=function(){if(this.entityInfo){var N=Object.assign({},this.videoData),t=Yay(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),O=t.publishedTimeText,H=t.badges;N.shortViewCountText=t.shortViewCountText;N.publishedTimeText=O;N.badges=H;this.set("videoData",N)}};
$T.prototype.transferStateChanged=function(){if(this.entityInfo){var N=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",t=_.i5(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!jD(this.entityInfo.policyEntity),O=Object.assign({},this.videoData),H=Yay(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),A=H.publishedTimeText,Z=H.badges;O.shortViewCountText=
H.shortViewCountText;O.publishedTimeText=A;O.badges=Z;O.isDisabled=t;O.isWatched=this.downloadedVideoPlaybackPosition>0;O.navigationEndpoint=t?void 0:ahx(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var U;N&&((U=this.videoData)==null?0:U.videoId)&&!_.h("dl_resume_click_killswitch")&&(O.isDisabled=!1,O.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});O.thumbnailOverlays=LSp(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",O)}};
$T.prototype.transferStateChanged=$T.prototype.transferStateChanged;$T.prototype.downloadProgressChanged=$T.prototype.downloadProgressChanged;$T.prototype.dataChanged=$T.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],$T.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$T.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],$T.prototype,"videoData",void 0);_.W([_.X({selector:qE,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],$T.prototype,"downloadProgress",void 0);_.W([_.X(),_.Q("design:type",Number)],$T.prototype,"relativeDateReference",void 0);_.W([_.X({selector:_.Xo,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],$T.prototype,"transferState",void 0);
_.W([_.X({selector:RtO,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],$T.prototype,"downloadState",void 0);_.W([_.X({selector:PLt,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],$T.prototype,"offlinePolicyAction",void 0);_.W([_.X({selector:Xuv,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],$T.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.W([_.X({selector:fM,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],$T.prototype,"downloadedVideoPlaybackPosition",void 0);_.W([_.X({selector:k6S,selectorArgs:["videoData.videoId"]}),_.Q("design:type",Object)],$T.prototype,"entityInfo",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],$T.prototype,"isDownloading",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$T.prototype,"dataChanged",null);
_.W([_.ic("downloadProgress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$T.prototype,"downloadProgressChanged",null);_.W([_.ic("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$T.prototype,"transferStateChanged",null);
_.W([_.en({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],$T);
_.n($T,"ytd-downloaded-video-grid-video-renderer",function(){if(NSa!==void 0)return NSa;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return NSa=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var tCB;var jQ=function(){};
jQ.prototype.resolve=function(N,t){var O=this;return _.K(function(H){return H.yield(O.resolveCommand(N,t),0)})};var OIr,iX;OIr=BCp(function(N){return N.targetId},{shouldPersist:!1});
iX=OIr.updateData;_.HIZ=OIr.useUpdatableData;var A2f,ZI0;A2f=BCp(function(N){return N.targetId});
ZI0=A2f.updateData;_.VCX=A2f.useUpdatableData;var DIY=$8Q.bind(null,iX),UI0=$8Q.bind(null,ZI0);(function(N,t,O){var H=_.M(O==null?void 0:O.updatedRenderer,_.G6X);return H?N({targetId:t},function(){return H}):!1}).bind(null,iX);var uX=function(){};
_.p(uX,jQ);uX.prototype.resolveCommand=function(N){var t;return _.K(function(O){t=_.M(N,_.Lxz);if(!t)return O.return();DIY(t.targetId,t);_.Ty(O)})};var SQ=function(){var N=_.$q.apply(this,arguments)||this;N.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return N};
_.p(SQ,_.$q);_.V=SQ.prototype;_.V.configureContinuationPathMap=function(){return{}};
_.V.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.V.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.V.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.V.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.V.handleAppendContinuationItemsAction=function(N){var t=_.M(N,_.nb_);if(this.data&&this.data.targetId&&t&&this.continuationPathMap&&t.targetId===this.data.targetId){var O=A5Q(N),H=O&&this.continuationPathMap[O];if(H&&O)if(N=this.get(H,this.data)){a:{for(O=0;O<N.length;O++){var A=N[O],Z=void 0,U=!!_.M((Z=_.M(A,LTS))==null?void 0:Z.content,_.gn0);if(_.M(A,_.vy)||U)break a}O=N.length}H="data."+H;t.continuationItems?O===N.length-1?(this.pop(H),this.push.apply(this,[H].concat(_.W6(t.continuationItems)))):
O===N.length?this.push.apply(this,[H].concat(_.W6(t.continuationItems))):this.splice.apply(this,[H,O,1].concat(_.W6(t.continuationItems))):this.splice(H,O,1);(_.h("web_enable_voting_animation")||_.h("enable_music_web_cairo_voting_animation"))&&_.or(this.hostElement,"yt-append-continuation-items-action-finished");_.or(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.J_(new _.fF("append continuation items does not exist",O));else _.J_(new _.fF("append continuation path does not exist",
O))}};
_.V.handleReloadContinuationItemsCommand=function(N){var t=_.M(N,_.Lxz);if(this.data&&t){if(_.h("web_client_explore_hub")||_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))try{_.cY().resolve(uX).resolveCommand(N)}catch(Z){}if(this.data.targetId&&this.continuationPathMap&&t.targetId===this.data.targetId&&(!_.h("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||t.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var O,H=(O=t.slot)==null?void 0:
O.replace("RELOAD_CONTINUATION_SLOT_","");O=(N=A5Q(N)+"-"+(H==null?void 0:H.toLowerCase()))&&this.continuationPathMap[N];if(!O||!N||!H)_.J_(new _.fF("reload continuation path does not exist",N));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(t)){if(t.replaceWithFirstItem){var A;this.set("data."+O,((A=t.continuationItems)==null?0:A.length)?t.continuationItems[0]:{})}else this.set("data."+O,t.continuationItems?t.continuationItems:[]);this.continuationIsReloading=
!1;_.or(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.V.handleShowReloadUiCommand=function(N){N=_.M(N,t6Q);var t;((t=this.data)==null?0:t.targetId)&&(N==null?0:N.targetId)&&N.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
SQ.prototype.observeData=SQ.prototype.observeData;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],SQ.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],SQ.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],SQ.prototype,"data",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],SQ.prototype,"continuationIsReloading",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],SQ.prototype,"observeData",null);_.W([_.jn()],SQ);_.h3=[_.CD.YtComponentBehavior,_.Wu.YtActionHandlerBehavior,SQ.prototype];_.MP={};_.MP.YtNextContinuationBehavior=[_.hP.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",_.Fb(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Fb(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(N,t){N.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,t,{}):(N={locationRetrieved:function(O){this.makeNextContinuationRequest_(O,t,{})}.bind(this)},_.or(this.hostElement,"yt-retrieve-location",N))},
makeNextContinuationRequest_:function(N,t,O){_.YY("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();N=t(N);var H;this.canUseContextualNetworkManager_()&&(H=this.getNetworkManager());H||(H=_.cY().resolve(_.u8));t=_.nE.instance;if(_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&t){H=_.JB([N.startsWith("/")?N.substr(1):N]);var A,Z;O=_.cT(t,{},H,O==null?void 0:(A=O.context)==null?void 0:(Z=A.clickTracking)==null?void 0:Z.clickTrackingParams).then(function(U){return{response:U}})}else O=
this.nextContinuation.usePost?H.postData(N,O):H.fetchData(N);
O.then(this.updateNextContinuationData_.bind(this,N));this.pendingContinuationRequest_=O;this.startListeningForNavigate_()},
updateNextContinuationData_:function(N,t){var O=this;_.YY("ncl");this.pendingContinuationRequest_=void 0;if(t){var H={};this.nextContinuation&&(H=this.nextContinuation);if(t.response&&t.response.continuationContents&&t.response.continuationContents[H.continuationType]){N=t.response.continuationContents[H.continuationType];var A=H.header||"data.header",Z=N[H.responseHeaderKey||"header"];Z&&this.set(A,Z);A=H.contentsArray||"data.contents";Z=this.getContents_(N,H.responseContentsKey||"contents")||[];
this.pathExists_(A)?(Z.unshift(A),this.push.apply(this,Z)):this.set(A,Z);Z&&(jLv(_.gF(),t.response,this.hostElement,function(U){_.sl(O.hostElement,"yt-store-grafted-ve-action",[U])}),_.or(this.hostElement,"yt-next-continuation-data-updated",{continuationData:t,
page:this,contentsArray:A}));this.set(H.continuationsArray||"data.continuations",N[H.responseContinuationsKey||"continuations"]||[])}else t.reload?_.J_(new _.fF("Reloading from continuation is unsupported")):t.responseContext&&t.responseContext.errors||(delete t.xsrf_token,delete t.timing,delete t.endpoint,delete t.csn,t.responseContext&&delete t.responseContext.serviceTrackingParams,A={request:_.Uy(N,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(t).sort()},t.response&&(A.responseContentKeys=
Object.keys(t.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(A.continuationType=this.nextContinuation.continuationType.substr(0,256)),t=new _.fF("Malformed continuation",A),N.indexOf("/comment_service_ajax")==0?_.J_(t):_.R0(t)),this.set(H.continuationsArray||"data.continuations",[])}else _.vX(new _.fF("Missing continuation response",N))},
getContents_:function(N,t){t=t.split(".");return _.WW.getValueByKeys(N,t)},
pathExists_:function(N){var t=this;N=N.toString().split(".");for(var O=0;O<N.length;O++)if(t=t[N[O]],t===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var CN_;var KWE;var bX=function(){var N=_.k.apply(this,arguments)||this;N.triggered_=!1;return N};
_.p(bX,_.k);_.V=bX.prototype;_.V.attached=function(){this.maybeTriggerAutoload()};
_.V.detached=function(){this.hasBeenTriggered_=!1};
_.V.onPrescanVisible=function(){this.onShow()};
_.V.onShow=function(){this.showButton||this.trigger()};
_.V.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.or(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.V.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.V.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.V.computeLabel_=function(N,t){return N===void 0?null:N.label||!t?N.label:this.showMoreText_};
_.V.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.V.getContinuationUrl=function(N){var t={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(t.itct=this.data.clickTrackingParams);return _.CF(N,t)};
_.V.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
bX.prototype.showButtonChanged_=bX.prototype.showButtonChanged_;bX.prototype.observeData_=bX.prototype.observeData_;_.W([_.Y(_.dd.YtVisibilityBehavior),_.Q("design:type",Object)],bX.prototype,"ytVisibilityBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bX.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],bX.prototype,"showButton",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],bX.prototype,"showIcon",void 0);_.W([_.X({computed:"computeLabel_(data, showButton)"}),_.Q("design:type",Object)],bX.prototype,"label",void 0);_.W([_.X({value:_.E_(_.CJ("SHOW_MORE",void 0,"Show More"))}),_.Q("design:type",Object)],bX.prototype,"showMoreText_",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],bX.prototype,"spinnerActive_",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],bX.prototype,"hasBeenTriggered_",void 0);
_.W([_.X({value:void 0}),_.Q("design:type",String)],bX.prototype,"observeVisibleOption",void 0);_.W([_.X({value:void 0}),_.Q("design:type",String)],bX.prototype,"observeHiddenOption",void 0);_.W([_.X({value:"observe_once"}),_.Q("design:type",Object)],bX.prototype,"observePrescanOption",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bX.prototype,"observeData_",null);
_.W([_.gz("showButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bX.prototype,"showButtonChanged_",null);_.W([_.wz({is:"yt-next-continuation",disableElementRegistration:!0})],bX);
_.n(bX,"yt-next-continuation",function(){if(KWE===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;CN_===void 0&&(CN_=document.createElement("template"));var H=CN_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);KWE=N}N=KWE;return N},{mode:2});var FW0;var dI_;var pq=function(){return _.k.apply(this,arguments)||this};
_.p(pq,_.k);pq.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],pq.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],pq.prototype,"data",void 0);_.W([_.wz({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],pq);
_.n(pq,"yt-music-pass-small-feature-info-renderer",function(){if(dI_===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;FW0===void 0&&(FW0=document.createElement("template"));var H=FW0;O.call(t,H.content.cloneNode(!0),N.content.firstChild);dI_=N}N=dI_;return N},{mode:2});_.pE("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Lq=function(){var N=_.k.apply(this,arguments)||this;N.isCollapsible=!1;N.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return N};
_.p(Lq,_.k);_.V=Lq.prototype;_.V.computeIsCollapsible=function(N){return!!(((N==null?0:N.showMoreText)||(N==null?0:N.visibleRowCount))&&(N==null?0:N.isCollapsible))};
_.V.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.V.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.V.onIronResize=function(){var N=this;_.W2(this,"updateGridInitItems",function(){N.maybeUpdateInitialItemsDisplayed()})};
_.V.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var N=this.getVisibleWidth();N!==0&&(N=Math.floor(N/214)*(this.data.visibleRowCount||2),N!==this.initialCount&&(this.initialCount=N,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.V.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.V.computeExpandVisible=function(N,t,O,H){return N&&t&&O&&!!H&&!!H.showMoreText};
_.V.computeShowMoreButton=function(N){return{text:N,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.V.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.V.initCollapsed=function(){var N=this;this.ytLazyListBehavior.canShowMore=!1;var t;(this.collapsed=!((t=this.data)==null||!t.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.yB(this,function(){_.Np(N.hostElement,"yt-refit-popups-action")})};
_.V.fillRestIfNotCollapsible=function(){var N=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!N||this.ytLazyListBehavior.fillRemainingListItems()};
_.V.computeViewAllHidden=function(N,t){return N||!t.viewAllEndpoint};
Lq.prototype.fillRestIfNotCollapsible=Lq.prototype.fillRestIfNotCollapsible;Lq.prototype.initCollapsed=Lq.prototype.initCollapsed;Lq.prototype.onIronResize=Lq.prototype.onIronResize;Lq.prototype.persistentGuideChanged=Lq.prototype.persistentGuideChanged;_.W([_.Y(_.JV),_.Q("design:type",Object)],Lq.prototype,"ironResizableBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],Lq.prototype,"ytLazyListBehavior",void 0);_.W([_.Y(_.MP.YtNextContinuationBehavior),_.Q("design:type",Object)],Lq.prototype,"ytNextContinuationBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Lq.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.Y(_.h3),_.Q("design:type",Object)],Lq.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Lq.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Lq.prototype,"collapsed",void 0);_.W([_.X(),_.Q("design:type",Number)],Lq.prototype,"initialCount",void 0);_.W([_.X({computed:"computeShowMoreButton(data.showMoreText)"}),_.Q("design:type",Object)],Lq.prototype,"showMoreButton",void 0);
_.W([_.X({computed:"computeIsCollapsible(data)"}),_.Q("design:type",Object)],Lq.prototype,"isCollapsible",void 0);_.W([_.B2("#items"),_.Q("design:type",HTMLElement)],Lq.prototype,"items",void 0);_.W([_.ic("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lq.prototype,"persistentGuideChanged",null);_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lq.prototype,"onIronResize",null);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lq.prototype,"initCollapsed",null);_.W([_.ic("canShowMore"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lq.prototype,"fillRestIfNotCollapsible",null);_.W([_.en({is:"ytd-grid-renderer",disableElementRegistration:!0})],Lq);
_.n(Lq,"ytd-grid-renderer",function(){if(tCB!==void 0)return tCB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tCB=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var zO=function(){return _.k.apply(this,arguments)||this};
_.p(zO,_.k);
zO.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"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],zO.prototype,"data",void 0);_.W([_.en({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],zO);
_.n(zO,"ytd-carousel-ad-renderer",function(){if(v5y!==void 0)return v5y;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return v5y=N},{mode:1});var gQp;var aO=function(){return _.k.apply(this,arguments)||this};
_.p(aO,_.k);_.V=aO.prototype;_.V.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,aO.JSC$15660_CLICK_LOCATION_ID_MAP))};
_.V.onSitelinkTap=function(N){N.stopPropagation();var t,O,H=N==null?void 0:(t=N.model)==null?void 0:(O=t.item)==null?void 0:O.onTap;H&&this.ytSparklesClickLocationBehavior.handleClick(H,N,!1)};
_.V.onTap=function(N){var t=this.data&&this.data.content&&this.data.content.navigationEndpoint;t&&this.ytSparklesClickLocationBehavior.handleClick(t,N,!1)};
_.V.sendImpression=function(){if(this.data&&this.data.content)for(var N=_.D(this.data.content.impressionEndpoints||[]),t=N.next();!t.done;t=N.next()){t=_.D(t.value.loggingUrls||[]);for(var O=t.next();!O.done;O=t.next())O=O.value,O.baseUrl&&Z4(O.baseUrl,O.attributionSrcMode)}};
aO.prototype.onTap=aO.prototype.onTap;aO.prototype.dataChanged=aO.prototype.dataChanged;aO.JSC$15660_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"]]);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],aO.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],aO.prototype,"data",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aO.prototype,"dataChanged",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],aO.prototype,"onTap",null);_.W([_.en({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],aO);
_.n(aO,"ytd-promoted-sparkles-text-search-renderer",function(){if(gQp!==void 0)return gQp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return gQp=N},{mode:1});var y2S;var TO=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-mute-ad-action":"handleMuteAd"};return N};
_.p(TO,_.k);_.V=TO.prototype;_.V.created=function(){this.activeView=new PF(this.hostElement)};
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.h("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.V.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.V.computeHasAdBadge=function(N){return!(N==null||!N.adBadge)};
_.V.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",TO.JSC$15669_DEFAULT_AD_BADGE_RENDERER),_.VQ(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&X7(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,TO.JSC$15669_CLICK_LOCATION_ID_MAP))};
_.V.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var N;(((N=this.data)==null?void 0:N.impressionCommands)||[]).forEach(function(t){t=_.D(t.loggingUrls||[]);for(var O=t.next();!O.done;O=t.next())O=O.value,O.baseUrl&&Z4(O.baseUrl,O.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.V.onTap=function(N){var t,O=(t=this.data)==null?void 0:t.navigationEndpoint,H;(t=(H=this.data)==null?void 0:H.thumbnailNavigationEndpoint)&&_.vH(_.m1(N),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(t,N,!1):O&&this.ytSparklesClickLocationBehavior.handleClick(O,N,!1)};
_.V.handleMuteAd=function(){this.collapsed=!0};
_.V.attached=function(){var N=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xt(N.activeView)})};
_.V.detached=function(){_.h("stop_av_measurement_on_detach")&&xt(this.activeView)};
_.cv.Object.defineProperties(TO.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var N;return!(((N=this.data)==null?void 0:N.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var N;return!(((N=this.data)==null?void 0:N.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
TO.prototype.dataChanged=TO.prototype.dataChanged;
TO.JSC$15669_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"]]);
TO.JSC$15669_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CJ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],TO.prototype,"actionHandlerBehavior",void 0);
_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],TO.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],TO.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],TO.prototype,"collapsed",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],TO.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],TO.prototype,"biggerThumbsStyle",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Q("design:type",Boolean)],TO.prototype,"fixAlignmentSmallScreens",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs_square")}}),
_.Q("design:type",Boolean)],TO.prototype,"useBiggerThumbsSquare",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.mediaHoverOverlay"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TO.prototype,"hideHoverOverlay",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TO.prototype,"webSearchLayout",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TO.prototype,"webSearchLayoutLandscape",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TO.prototype,"webSearchLayoutSquare",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.promotedSparklesWebStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TO.prototype,"sparklesCtaNoBackground",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.actionButton"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TO.prototype,"hideActionButton",null);_.W([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.Q("design:type",Object)],TO.prototype,"buttonOverride",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Q("design:type",Boolean)],TO.prototype,"hasNewAdBadge",void 0);_.W([_.a("data.promotedSparklesWebStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],TO.prototype,"useRoundedBadge",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],TO.prototype,"dataChanged",null);_.W([_.en({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],TO);
_.n(TO,"ytd-promoted-sparkles-web-renderer",function(){if(y2S!==void 0)return y2S;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return y2S=N},{mode:1});var BSY;var wn=function(){var N=_.k.apply(this,arguments)||this;N.isInlinePreviewTriggered=!1;N.enableMonoStyle=_.h("enable_default_mono_cta_migration_web_client");return N};
_.p(wn,_.k);_.V=wn.prototype;_.V.created=function(){this.activeView=new PF(this.hostElement)};
_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.V.computeShowCta=function(N){return!(N==null||!N.ctaRenderer)};
_.V.onCtaClick=function(){var N,t,O,H=(N=this.data)==null?void 0:(t=N.ctaRenderer)==null?void 0:(O=t.buttonRenderer)==null?void 0:O.command;H&&this.ytComponentBehavior.resolveCommand(H)};
_.V.onWatchButtonClick=function(){var N,t,O,H=(N=this.data)==null?void 0:(t=N.watchButtonRenderer)==null?void 0:(O=t.buttonRenderer)==null?void 0:O.command;H&&this.ytComponentBehavior.resolveCommand(H)};
_.V.onTap=function(){};
_.V.dataChanged=function(){if(this.data){var N;_.h("enable_inline_muted_playback_on_web_search")&&((N=this.data)==null?0:N.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",wn.JSC$15673_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&X7(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",wn.JSC$15673_DEFAULT_CLICK_LOCATION_BEHAVIOR,wn.JSC$15673_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(N=this.thumbnail.getElementsByTagName("a"),N.length>0&&(N=N.namedItem("thumbnail"))&&N.removeAttribute("href"));var t;if(((t=this.data)==null?0:t.forceImpAutoplay)&&_.h("enable_force_imp_autoplay_on_desktop_search")){var O;(O=this.JSC$15674_inlinePreviewHoverListener)==null||dMN(O)}}};
_.V.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var N=_.D(this.data.impressionUrls),t=N.next();!t.done;t=N.next())t=t.value,IrM(t,QHO(t));this.data.impressionsFired=!0}};
_.V.maybeComputeHref=function(){return null};
_.V.computeIsShortDR=function(N){return!(N==null||!N.watchButtonRenderer)&&!(N==null||!N.ctaRenderer)&&!!this.enableShortDR};
_.V.computeIsNewUiOrShortDr=function(N){return!!this.enableUiUpdate||this.computeIsShortDR(N)};
_.V.computeIsNewUiAndNotShortDr=function(N){return!!this.enableUiUpdate&&!this.computeIsShortDR(N)};
_.V.computeHideAvatar=function(N){return!((N==null?0:N.channelThumbnail)&&this.computeIsNewUiOrShortDr(N))};
_.V.onClick=function(N){var t,O=(t=this.data)==null?void 0:t.navigationEndpoint;if(this.enableShortDR&&O&&(_.M(O,_.rN)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(O,N,!!_.M(O,_.rN)),N.stopPropagation();else if(O&&_.M(O,_.rN))this.ytSparklesClickLocationBehavior.handleClick(O,N,!0),N.stopPropagation();else if(O){var H,A;((H=this.data)==null?0:H.navigationEndpoint)&&((A=this.data)==null?0:A.adPlaybackContextParams)&&(t=this.data.navigationEndpoint,N=this.data.adPlaybackContextParams,
t.commandMetadata&&_.M(t.commandMetadata,_.Da)&&_.M(t.commandMetadata,_.Da).url&&(t=_.D9(_.M(t.commandMetadata,_.Da).url).adurl)&&_.m09(t)&&_.m2(_.kL(t),{encoded_ad_playback_context:N}));this.ytComponentBehavior.resolveCommand(O)}};
_.V.computeButtonOverride=function(N){if(this.computeIsNewUiOrShortDr(N))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.V.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.V.onThumbnailContainerClick=function(N){this.onClick(N)};
_.V.computeThumbnailWidth=function(N,t){return N?t==="MASSIVE"?600:t==="BIG"?500:t==="MEDIUM"?450:420:360};
_.V.attached=function(){var N=this,t;_.h("enable_inline_muted_playback_on_web_search")&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xt(N.activeView)})};
_.V.detached=function(){var N;_.h("enable_inline_muted_playback_on_web_search")&&((N=this.data)==null?0:N.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&xt(this.activeView)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15674_inlinePreviewHoverListener=XF({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:zjY})};
_.V.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15674_inlinePreviewHoverListener)==null||RE(N)};
wn.prototype.dataChanged=wn.prototype.dataChanged;wn.prototype.onTap=wn.prototype.onTap;wn.JSC$15673_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CJ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};wn.JSC$15673_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
wn.JSC$15673_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"}];_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],wn.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],wn.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.B2("#main-container"),_.Q("design:type",HTMLElement)],wn.prototype,"mainContainer",void 0);
_.W([_.X(),_.Q("design:type",Object)],wn.prototype,"isInlinePreviewTriggered",void 0);_.W([_.X(),_.Q("design:type",Object)],wn.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],wn.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Q("design:type",Boolean)],wn.prototype,"enableShortDR",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_vac_ui_update_for_desktop_search")}}),
_.Q("design:type",Boolean)],wn.prototype,"enableUiUpdate",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],wn.prototype,"biggerThumbsStyle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Q("design:type",Boolean)],wn.prototype,"showCta",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Q("design:type",Boolean)],wn.prototype,"isShortDr",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Q("design:type",Boolean)],wn.prototype,"isShortDrOrNewUi",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Q("design:type",Boolean)],wn.prototype,"isNewUiAndNotShortDr",void 0);_.W([_.X({computed:"computeButtonOverride(data)"}),_.Q("design:type",Object)],wn.prototype,"buttonOverride",void 0);_.W([_.X({computed:"computeSecondaryButtonOverride(data)"}),_.Q("design:type",Object)],wn.prototype,"secondaryButtonOverride",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],wn.prototype,"enableMonoStyle",void 0);
_.W([_.B2("ytd-thumbnail"),_.Q("design:type",HTMLElement)],wn.prototype,"thumbnail",void 0);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wn.prototype,"onTap",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wn.prototype,"dataChanged",null);_.W([_.en({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],wn);
_.n(wn,"ytd-promoted-video-renderer",function(){if(BSY!==void 0)return BSY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return BSY=N},{mode:1});var c2E;var eQ=function(){var N=_.k.apply(this,arguments)||this;N.useRoundedBadge=!0;N.sitelinkIds=[];return N};
_.p(eQ,_.k);_.V=eQ.prototype;
_.V.configureRendererStamper=function(){return{"data.menu":{id:_.h("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.V.dataChanged=function(){var N;(N=this.data)!=null&&N.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,eQ.JSC$15679_CLICK_LOCATION_ID_MAP)};
_.V.onTap=function(N){var t,O=(t=this.data)==null?void 0:t.navigationCommand;O&&!_.vH(_.m1(N),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(O,N,!1)};
_.V.onSitelinkTap=function(N){var t,O,H=N==null?void 0:(t=N.model)==null?void 0:(O=t.item)==null?void 0:O.onTap;H&&this.ytSparklesClickLocationBehavior.handleClick(H,N,!1)};
_.V.configureSitelinkClickTargets=function(){var N=this,t,O,H=(t=this.data)==null?void 0:(O=t.clickLocationTargets)==null?void 0:O.find(function(A){return A.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
H&&_.O6(this.hostElement).querySelectorAll(".sitelink").forEach(function(A){_.VQ(A,"yt-simple-endpoint",!0);N.sitelinkIds.push(A.id);var Z,U;(Z=N.ytSparklesClickLocationBehavior)==null||(U=Z.clickTargetMap)==null||U.set(A.id,H)})};
_.V.sendImpression=function(){var N,t,O=((N=this.data)==null?void 0:(t=N.impressionCommand)==null?void 0:t.loggingUrls)||[];N=_.D(O);for(t=N.next();!t.done;t=N.next())t=t.value,t.baseUrl&&Z4(t.baseUrl,t.attributionSrcMode)};
_.V.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.cv.Object.defineProperties(eQ.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
eQ.prototype.onTap=eQ.prototype.onTap;eQ.prototype.dataChanged=eQ.prototype.dataChanged;eQ.JSC$15679_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"]]);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],eQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],eQ.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],eQ.prototype,"showFavicon",null);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],eQ.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],eQ.prototype,"biggerThumbsStyle",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Q("design:type",Boolean)],eQ.prototype,"enableThumbnailScalingFix",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eQ.prototype,"dataChanged",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],eQ.prototype,"onTap",null);_.W([_.en({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],eQ);
_.n(eQ,"ytd-text-image-no-button-layout-renderer",function(){if(c2E!==void 0)return c2E;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return c2E=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var $Ia;var Pf=function(){var N=_.k.apply(this,arguments)||this;N.isInlinePlaybackState=!1;N.uiUpdate=_.h("web_modern_buttons");N.hideCta=_.h("hide_cta_for_home_web_video_ads");N.noBottomMargin=!1;N.animateInTimeStamp=_.uP("hide_cta_for_home_web_video_ads_animate_in_time");N.animateInCta=!1;N.isHovered=!1;N.enableMonoStyle=_.h("enable_default_mono_cta_migration_web_client");N.player=null;N.JSC$15686_playerEvents=new Map;N.JSC$15686_preventProgressSaveTimer=null;N.delayedCtaJobId=null;return N};
_.p(Pf,_.k);_.V=Pf.prototype;_.V.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.V.attached=function(){this.JSC$15686_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15686_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.h("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.V.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15686_playerEvents)};
_.V.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Pf.JSC$15685_DEFAULT_CLICK_LOCATION_BEHAVIOR,Pf.JSC$15685_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.V.hoverChanged=function(){var N=this;this.delayedCtaJobId&&(_.GB.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.h("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.MU(_.GB,function(){N.buttonContainer.classList.add("show-delayed-buttons")},_.uP("delayed_cta_on_web_delay_milliseconds")))};
_.V.setPlayer=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return(t=_.Np(N.hostElement,"yt-get-inline-preview-player-action"))&&t[0]?O.yield(t[0].getPlayerPromise(),3):O.jumpTo(0);N.player=O.yieldResult;N.ytPlayerListenerBehavior.listenToPlayerEvents(N.player,N.JSC$15686_playerEvents);_.Ty(O)})};
_.V.onPlaybackStart=function(){var N=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15686_preventProgressSaveTimer=_.HH(_.GB,function(){N.JSC$15686_preventProgressSaveTimer=null},1E4))};
_.V.onVideoProgress=function(N){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&N>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.V.resetPreventProgressSaveTimer=function(){_.GB.cancelJob(this.JSC$15686_preventProgressSaveTimer);this.JSC$15686_preventProgressSaveTimer=null};
_.V.getSimpleString=function(N){return _.Gv(N)};
_.V.onClick=function(N){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var t,O=(t=this.data)==null?void 0:t.navigationEndpoint,H;t=(H=this.data)==null?void 0:H.channelEndpoint;var A,Z;((Z=_.M((A=this.data)==null?void 0:A.adCtaButton,_.g_))==null?0:Z.command)&&_.vH(_.m1(N),this.hostElement,["call-to-action"])||(t&&_.vH(_.m1(N),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(t,N,!1):!_.vH(_.m1(N),this.hostElement,
["secondary-button"])&&O&&(_.h("enable_short_dr_for_desktop_launchable")?(H=!!_.M(O,_.rN),this.isInlinePlaybackState&&H&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(O,N,H)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(O,N,!0))))}};
_.V.updateWatchEndpointStartTime=function(){var N,t;this.player&&((N=this.data)==null?0:N.inlinePlaybackEndpoint)&&((t=this.data)==null?0:t.navigationEndpoint)&&!this.JSC$15686_preventProgressSaveTimer&&(N=Math.floor(this.player.getCurrentTime()),_.M(this.data.navigationEndpoint,_.rN).startTimeSeconds=N,_.M(this.data.inlinePlaybackEndpoint,_.rN).startTimeSeconds=N)};
_.V.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.V.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.cv.Object.defineProperties(Pf.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.h("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.watchButton)&&!((t=this.data)==null||!t.adCtaButton)}}});
Pf.prototype.hoverChanged=Pf.prototype.hoverChanged;Pf.prototype.dataChanged=Pf.prototype.dataChanged;
Pf.JSC$15685_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"]]);
Pf.JSC$15685_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"}];
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Pf.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],Pf.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],Pf.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Pf.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Pf.prototype,"isInlinePlaybackState",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Pf.prototype,"miniMode",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Pf.prototype,"uiUpdate",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Pf.prototype,"hideCta",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Pf.prototype,"noBottomMargin",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Pf.prototype,"animateInCta",void 0);_.W([_.X({computed:"computeButtonOverride(uiUpdate)"}),_.Q("design:type",Object)],Pf.prototype,"buttonOverride",void 0);
_.W([_.X({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Q("design:type",Object)],Pf.prototype,"secondaryButtonOverride",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Pf.prototype,"isHovered",void 0);_.W([_.B2("#button-container"),_.Q("design:type",HTMLElement)],Pf.prototype,"buttonContainer",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Pf.prototype,"typographyBump",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("typographyBump"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Pf.prototype,"typographyBumpV2",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Pf.prototype,"enableMonoStyle",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Pf.prototype,"dataChanged",null);
_.W([_.gz("isHovered"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Pf.prototype,"hoverChanged",null);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Pf.prototype,"isButtonGroup",null);_.W([_.en({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Pf);
_.n(Pf,"ytd-ad-inline-playback-meta-block",function(){if($Ia!==void 0)return $Ia;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $Ia=N},{mode:_.O4("kevlar_poly_si_batch_j065")?1:2});var jiE;var X3=function(){var N=_.k.apply(this,arguments)||this;N.noBottomMargin=!1;N.isInlinePreviewTriggered=!1;N.JSC$15691_activeViewMeasurementDataResolver=_.lj();return N};
_.p(X3,_.k);_.V=X3.prototype;_.V.created=function(){this.activeView=new PF(this.hostElement)};
_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var N=this;this.updateInlinePreviewHoverListeners();this.JSC$15691_activeViewMeasurementDataResolver.promise.then(function(t){X7(N.activeView,t)});
_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xt(N.activeView)})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&xt(this.activeView)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15691_inlinePreviewHoverListener=XF({mediaRenderer:this,lockupElement:this.JSC$15691_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:zjY})};
_.V.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15691_inlinePreviewHoverListener)==null||RE(N)};
_.V.onDataChanged=function(){var N;((N=this.data)==null?0:N.activeView)&&this.JSC$15691_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",X3.JSC$15690_DEFAULT_CLICK_LOCATION_BEHAVIOR,X3.JSC$15690_CLICK_LOCATION_ID_MAP);this.thumbnail&&(N=this.thumbnail.getElementsByTagName("a"),N.length>0&&(N=N.namedItem("thumbnail"))&&N.removeAttribute("href"));var t;if((t=this.data)==
null?0:t.forceImpAutoplay){var O;(O=this.JSC$15691_inlinePreviewHoverListener)==null||dMN(O)}};
_.V.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.V.onThumbnailContainerClick=function(N){if(this.data&&this.data.navigationEndpoint){var t,O=(t=this.data)==null?void 0:t.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(O,N,!!_.M(O,_.rN));N.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var N=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var t,O,H=(O=_.M((t=this.data)==null?void 0:t.onImpression,_.Ab))==null?void 0:O.commands;H&&(H.forEach(function(A){A.clickTrackingParams&&delete A.clickTrackingParams;N.ytComponentBehavior.resolveCommand(A)}),this.data.impressionsFired=!0)}};
_.cv.Object.defineProperties(X3.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$15691_inlinePreviewHoverListener)==null?0:dV(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
X3.prototype.onTypographyBumpChanged=X3.prototype.onTypographyBumpChanged;X3.prototype.onDataChanged=X3.prototype.onDataChanged;X3.JSC$15690_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);X3.JSC$15690_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"}];
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],X3.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],X3.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],X3.prototype,"ytdLockupBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],X3.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],X3.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],X3.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],X3.prototype,"noBottomMargin",void 0);_.W([_.X(),_.Q("design:type",Object)],X3.prototype,"isInlinePreviewTriggered",void 0);
_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],X3.prototype,"miniMode",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],X3.prototype,"typographyBump",void 0);_.W([_.B2("ytd-thumbnail"),_.Q("design:type",HTMLElement)],X3.prototype,"thumbnail",void 0);_.W([_.B2("#dismissible"),_.Q("design:type",HTMLElement)],X3.prototype,"JSC$15691_dismissibleMedia",void 0);
_.W([_.B2("ytd-ad-inline-playback-meta-block"),_.Q("design:type",HTMLElement)],X3.prototype,"adInlinePlaybackMetaBlock",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X3.prototype,"onDataChanged",null);_.W([_.ic("typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X3.prototype,"onTypographyBumpChanged",null);
_.W([_.a("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],X3.prototype,"isHovered",null);_.W([_.en({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],X3);
_.n(X3,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(jiE!==void 0)return jiE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return jiE=N},{mode:1});var iIR;var xT=function(){var N=_.k.apply(this,arguments)||this;N.isInlinePreviewTriggered=!1;N.JSC$15694_activeViewMeasurementDataResolver=_.lj();return N};
_.p(xT,_.k);_.V=xT.prototype;_.V.created=function(){this.activeView=new PF(this.hostElement)};
_.V.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.attached=function(){var N=this;this.updateInlinePreviewHoverListeners();this.JSC$15694_activeViewMeasurementDataResolver.promise.then(function(t){X7(N.activeView,t)})};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15694_inlinePreviewHoverListener=XF({mediaRenderer:this,lockupElement:this.JSC$15694_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:zjY})};
_.V.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$15694_inlinePreviewHoverListener)==null||RE(N)};
_.V.onDataChanged=function(){var N;((N=this.data)==null?0:N.activeView)&&this.JSC$15694_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",xT.JSC$15693_DEFAULT_CLICK_LOCATION_BEHAVIOR,xT.JSC$15693_CLICK_LOCATION_ID_MAP);this.thumbnail&&(N=this.thumbnail.getElementsByTagName("a"),N.length>0&&(N=N.namedItem("thumbnail"))&&N.removeAttribute("href"))};
_.V.onThumbnailContainerClick=function(N){if(this.data&&this.data.navigationEndpoint){var t,O=(t=this.data)==null?void 0:t.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(O,N,!0);N.stopPropagation()}};
_.V.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.V.impressionLog=function(){var N=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var t,O,H=(O=_.M((t=this.data)==null?void 0:t.onImpression,_.Ab))==null?void 0:O.commands;H&&(H.forEach(function(A){A.clickTrackingParams&&delete A.clickTrackingParams;_.cY().resolve(_.jo).resolveCommand(A,{form:{element:N.hostElement}})}),this.data.impressionsFired=!0)}};
_.cv.Object.defineProperties(xT.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$15694_inlinePreviewHoverListener)==null?0:dV(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
xT.prototype.onDataChanged=xT.prototype.onDataChanged;xT.JSC$15693_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);xT.JSC$15693_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"}];_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],xT.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],xT.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],xT.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],xT.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],xT.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],xT.prototype,"isInlinePreviewTriggered",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],xT.prototype,"miniMode",void 0);_.W([_.B2("ytd-thumbnail"),_.Q("design:type",HTMLElement)],xT.prototype,"thumbnail",void 0);_.W([_.B2("#dismissible"),_.Q("design:type",HTMLElement)],xT.prototype,"JSC$15694_dismissibleMedia",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xT.prototype,"onDataChanged",null);_.W([_.a("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],xT.prototype,"isHovered",null);_.W([_.en({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],xT);
_.n(xT,"ytd-video-display-full-buttoned-renderer",function(){if(iIR!==void 0)return iIR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return iIR=N},{mode:1});var o8=function(N,t,O,H){H=H===void 0?!1:H;_.Nz.call(this,N);this.adsClientErrorMessage=O;this.aggressivelySample=H;this.args=[];t&&this.args.push(t)};
_.p(o8,_.Nz);var vz=function(N,t,O,H){H=H===void 0?!1:H;_.Nz.call(this,N);this.adsClientErrorMessage=O;this.aggressivelySample=H;this.args=[];t&&this.args.push(t)};
_.p(vz,_.Nz);var uZS=function(N){_.k1.call(this);var t=this;this.initializationFunction=N;this.instance=null;this.addOnDisposeCallback(function(){_.F$(t.instance);t.instance=null})};
_.p(uZS,_.k1);uZS.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.rZ("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Lrp=function(){var N=new Map;[].forEach(function(t){N.set(t.JSC$31172_getType(),t)});
this.getters=N};new Promise(function(){});var SCy=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"]]),ik4=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"}]]),S0p=function(N){this.experimentApiProvider=N;N=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=N<.1};var kT=function(N,t,O,H){_.k1.call(this);this.adsControlFlowEventListeners=t;this.adEventLogger=O;this.experimentApiProvider=H;this.adsControlFlowManagerHelper=N(this,this,this,this,this);_.L1(this,this.adsControlFlowManagerHelper);N=_.D(t);for(t=N.next();!t.done;t=N.next())_.L1(this,t.value)};
_.p(kT,_.k1);var hif=function(N,t,O,H){qP(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",t,O,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H);N=_.D(N.adsControlFlowEventListeners);for(H=N.next();!H.done;H=N.next())hif(H.value,t,O)};
_.V=kT.prototype;_.V.onOpportunityProcessedExternallyManaged=function(N,t,O,H){qP(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",N,O,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)};
_.V.onSlotReceivedExternallyManaged=function(N,t){fq(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",N,t)};
_.V.onSlotEntered=function(N){if(nq(this.adsControlFlowManagerHelper,N)!=null){fq(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",N);this.adsControlFlowManagerHelper.onSlotEntered(N);for(var t=_.D(this.adsControlFlowEventListeners),O=t.next();!O.done;O=t.next())O.value.onSlotEntered(N);if(nq(this.adsControlFlowManagerHelper,N)!=null&&nq(this.adsControlFlowManagerHelper,N).isOccupyingSlotType()&&Wf(this.adsControlFlowManagerHelper,N)&&!MCS(this.adsControlFlowManagerHelper,N)){var H;rn(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",N,(H=Wf(this.adsControlFlowManagerHelper,N))!=null?H:void 0);N=nq(this.adsControlFlowManagerHelper,N);N.slotLifecycleStage!=="entered"&&IO(N.slot,N.slotLifecycleStage,"enterLayoutForSlot");N.slotLifecycleStage="rendering";N.registeredLayoutRenderingAdapter.startRendering(N.layout)}}};
_.V.onSlotExited=function(N){if(nq(this.adsControlFlowManagerHelper,N)!=null){fq(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",N);this.adsControlFlowManagerHelper.onSlotExited(N);for(var t=_.D(this.adsControlFlowEventListeners),O=t.next();!O.done;O=t.next())O.value.onSlotExited(N);nq(this.adsControlFlowManagerHelper,N)!=null&&nq(this.adsControlFlowManagerHelper,N).markedForUnscheduleAfterOutboundAdapterRequests&&bIE(this,N)}};
_.V.onLayoutReceivedExternallyManaged=function(N,t,O){N.managerLayer!=="core"&&rn(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",N,t,O)};
var pgQ=function(N,t,O){if(nq(N.adsControlFlowManagerHelper,t)!=null){rn(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",t,O);N=_.D(N.adsControlFlowEventListeners);for(var H=N.next();!H.done;H=N.next())pgQ(H.value,t,O)}};
kT.prototype.onLayoutExited=function(N,t,O){if(nq(this.adsControlFlowManagerHelper,N)!=null){rn(this.adEventLogger,uPt(O),N,t);this.adsControlFlowManagerHelper.onLayoutExited(N,t);for(var H=_.D(this.adsControlFlowEventListeners),A=H.next();!A.done;A=H.next())A.value.onLayoutExited(N,t,O);(O=Wf(this.adsControlFlowManagerHelper,N))&&t.layoutId===O.layoutId&&LWX(this,N)}};
kT.prototype.disposeInternal=function(){var N=ziQ(this.adsControlFlowManagerHelper);N=_.D(N);for(var t=N.next();!t.done;t=N.next())bIE(this,t.value);_.k1.prototype.disposeInternal.call(this)};
var bIE=function(N,t){if(nq(N.adsControlFlowManagerHelper,t)!=null)if(nq(N.adsControlFlowManagerHelper,t).JSC$31202_isSlotExitRequested()||nq(N.adsControlFlowManagerHelper,t).JSC$31202_isLayoutExitRequested())nq(N.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(nq(N.adsControlFlowManagerHelper,t).isOccupyingSlotType())nq(N.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests=!0,LWX(N,t);else if(nq(N.adsControlFlowManagerHelper,t).JSC$31202_isSlotFillRequested())nq(N.adsControlFlowManagerHelper,
t).markedForUnscheduleAfterOutboundAdapterRequests=!0,nq(N.adsControlFlowManagerHelper,t)!=null&&(fq(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",t),t=nq(N.adsControlFlowManagerHelper,t),t.fulfillmentLifecycleStage="fill_cancel_requested",t.registeredFulfillmentAdapter.cancelSlotFilling());else{var O=Wf(N.adsControlFlowManagerHelper,t),H;N.experimentApiProvider.get();(H=_.h("h5_enable_layout_unscheduling_events"))&&(O?Y0E(N,t,O):_.rZ(Error("Lh"),t,O,void 0,!1));fq(N.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",t);var A=nq(N.adsControlFlowManagerHelper,t),Z=t.slotEntryTrigger,U=A.registeredSlotEntryTriggerAdapters.get(Z.triggerId);U&&(U.unregisterTrigger(Z),A.registeredSlotEntryTriggerAdapters.delete(Z.triggerId));Z=_.D(t.slotFulfillmentTriggers);for(U=Z.next();!U.done;U=Z.next()){U=U.value;var C=A.registeredFulfillmentTriggerAdapters.get(U.triggerId);C&&(C.unregisterTrigger(U),A.registeredFulfillmentTriggerAdapters.delete(U.triggerId))}Z=_.D(t.slotExpirationTriggers);
for(U=Z.next();!U.done;U=Z.next())if(U=U.value,C=A.registeredExpirationTriggerAdapters.get(U.triggerId))C.unregisterTrigger(U),A.registeredExpirationTriggerAdapters.delete(U.triggerId);A.hasLayout()&&(Z=A.layout,lX(A,Z.layoutExitNormalTriggers),lX(A,Z.layoutExitSkipTriggers),lX(A,Z.layoutExitMuteTriggers),lX(A,Z.layoutExitUserInputSubmittedTriggers),lX(A,Z.layoutExitUserCancelledTriggers));A.registeredFulfillmentAdapter=void 0;A.registeredSlotAdapter!=null&&(A.registeredSlotAdapter.release(),A.registeredSlotAdapter=
void 0);A.registeredLayoutRenderingAdapter!=null&&(A.registeredLayoutRenderingAdapter.release(),A.registeredLayoutRenderingAdapter=void 0);A=N.adsControlFlowManagerHelper;nq(A,t)&&(A=aKE(A,t.slotType+"_"+t.slotPhysicalPosition))&&A.delete(t.slotId);fq(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",t);N=_.D(N.adsControlFlowEventListeners);for(A=N.next();!A.done;A=N.next())A=A.value,A.onSlotUnscheduled(t),O&&!H&&Y0E(A,t,O)}},Y0E=function(N,t,O){rn(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
t,O);
rn(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",t,O);N=_.D(N.adsControlFlowEventListeners);for(var H=N.next();!H.done;H=N.next())H=H.value,O&&Y0E(H,t,O)},LWX=function(N,t){if(nq(N.adsControlFlowManagerHelper,t)!=null&&nq(N.adsControlFlowManagerHelper,t).isOccupyingSlotType()){var O=Wf(N.adsControlFlowManagerHelper,t);
if(O&&MCS(N.adsControlFlowManagerHelper,t)){if(nq(N.adsControlFlowManagerHelper,t)!=null){var H=N.adEventLogger,A;var Z=((A=ik4.get("abandoned"))==null?void 0:A.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";rn(H,Z,t,O);N=nq(N.adsControlFlowManagerHelper,t);N.slotLifecycleStage!=="rendering"&&IO(N.slot,N.slotLifecycleStage,"exitLayout");N.slotLifecycleStage="rendering_stop_requested";N.registeredLayoutRenderingAdapter.stopRendering(O,"abandoned")}}else{fq(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
t);try{H=nq(N.adsControlFlowManagerHelper,t);if(!H)throw new vz("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");H.slotLifecycleStage!=="enter_requested"&&H.slotLifecycleStage!=="entered"&&H.slotLifecycleStage!=="rendering"&&IO(H.slot,H.slotLifecycleStage,"exitSlot");H.slotLifecycleStage="exit_requested";if(H.registeredSlotAdapter===void 0)throw H.slotLifecycleStage="scheduled",new vz("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
H.registeredSlotAdapter.exit()}catch(U){U instanceof vz&&U.adsClientErrorMessage?(TSp(N.adEventLogger,U.adsClientErrorMessage,t),_.rZ(U,t,void 0,void 0,U.aggressivelySample)):(TSp(N.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",t),_.rZ(U,t))}}}};var QL=function(N,t,O,H,A,Z){_.k1.call(this);this.registry=N;this.experimentApiProvider=Z;this.slotMap=new Map};
_.p(QL,_.k1);var aKE=function(N,t){return(N=N.slotMap.get(t))?N:new Map},nq=function(N,t){return aKE(N,t.slotType+"_"+t.slotPhysicalPosition).get(t.slotId)},ziQ=function(N){var t=[];
N.slotMap.forEach(function(O){O=_.D(O.values());for(var H=O.next();!H.done;H=O.next())t.push(H.value.slot)});
return t};
QL.prototype.onSlotEntered=function(N){N=nq(this,N);N.slotLifecycleStage!=="enter_requested"&&IO(N.slot,N.slotLifecycleStage,"onSlotEntered");N.slotLifecycleStage="entered"};
var MCS=function(N,t){N=nq(N,t);return N.hasLayout()&&N.isRendering()},Wf=function(N,t){(N=nq(N,t))?N.hasLayout()&&!N.layout&&_.rZ("Unexpected empty layout",t):_.rZ("Unexpected undefined slotState",t);
return(N==null?void 0:N.layout)||null};
QL.prototype.onSlotExited=function(N){N=nq(this,N);N.slotLifecycleStage!=="exit_requested"&&IO(N.slot,N.slotLifecycleStage,"onSlotExited");N.slotLifecycleStage="scheduled"};
QL.prototype.onLayoutExited=function(N,t){N=nq(this,N);N.isPrimaryLayout(t)&&(N.slotLifecycleStage!=="rendering_stop_requested"&&IO(N.slot,N.slotLifecycleStage,"onLayoutExited"),N.slotLifecycleStage="entered")};
var lX=function(N,t){t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;var H=N.registeredLayoutExitTriggerAdapters.get(O.triggerId);H&&(H.unregisterTrigger(O),N.registeredLayoutExitTriggerAdapters.delete(O.triggerId))}},IO=function(N,t,O){_.rZ("Slot stage was "+t+" when calling method "+O,N)};var eiR=function(N){_.k1.call(this);this.deps=N;this.JSC$15747_adsControlFlowManager=wga(this)};
_.p(eiR,_.k1);var wga=function(N){var t=new kT(function(O,H,A,Z){return new QL(N.deps.registry,O,H,A,Z,N.deps.experimentApiProvider)},new Set(pJM(N.deps.registry).concat(N.deps.listeners)),N.deps.adEventLogger,N.deps.experimentApiProvider);
_.L1(N,t);return t};var JHt=function(){};var PNE=function(N,t){_.k1.call(this);this.experimentApiProvider=N;this.eventLoggingSettingsProvider=t;this.eventCount=0;this.premiumAdSeenEventLogger=oLl()()};
_.p(PNE,_.k1);PNE.prototype.logEvent=function(N){qP(this,N)};
var fq=function(N,t,O,H){qP(N,t,void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData,void 0,void 0,H)},rn=function(N,t,O,H,A){qP(N,t,void 0,void 0,void 0,O,H?H:void 0,void 0,void 0,O.adSlotLoggingData,H?H.adLayoutLoggingData:void 0,void 0,A);
O=_.cY().resolve(_.BY(ra))==null?void 0:I0();t=O==null?void 0:O.adsSeenHotConfig;O=O==null?void 0:O.adsHotConfig;(t==null?0:t.logOnAdsSeen)&&(O==null?0:O.webEnablePremiumAdsSeenLogging)&&XgB(N,H?H:void 0,A)},TSp=function(N,t,O){qP(N,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:t})},qP=function(N,t,O,H,A,Z,U,C,F,g,B,c,u){u=u===void 0?0:u;
xI0(N.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+t,"slot:",Z,"layout:",U,"ping:",C,"Opportunity:",{opportunityType:O,associatedSlotId:H,slotsFromOpportunity:A,triggerBundle:F,adSlotLoggingData:g,adLayoutLoggingData:B});try{var S=function(){N.experimentApiProvider.get();if(t!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){t||_.rZ("Empty PACF event type",Z,U);var b=N.eventLoggingSettingsProvider.get();var z;(z=b.alwaysIncludeDebugData)||(b.experimentApiProvider.get(),z=
!1);b=z;z={eventType:t,eventOrder:++N.eventCount};var w={};Z&&(w.slotData=MH4(b,Z));if(U){var P={type:U.layoutType,controlFlowManagerLayer:SCy.get(U.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b&&(P.debugData={layoutId:U.layoutId});w.layoutData=P}C&&(w.pingData={pingDispatchStatus:C.dispatchStatus,serializedAdPingMetadata:C.ping.serializedAdPingMetadata,pingIndex:C.index});F&&(w.triggerData=hxS(F.trigger,F.category));O&&(w.opportunityData=bkg(b,O,H,A));z.adClientData=w;g&&(z.serializedSlotAdServingData=
g.serializedSlotAdServingDataEntry);B&&(z.serializedAdServingData=B.serializedAdServingDataEntry);c&&(z.errorInfo=c);_.E7("adsClientStateChange",{adsClientEvent:z})}};
u&&u>0?_.WX(_.zh(),function(){return S()},u):S()}catch(b){xI0(N.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.WX(_.zh(),function(){_.rZ(b instanceof Error?b:String(b),Z,U,{pacf_message:"exception during pacf logging"})})}},XgB=function(N,t,O){if(t){var H=t.adLayoutLoggingData;
_.WX(_.zh(),function(){N.premiumAdSeenEventLogger!=null&&H&&_.E7("adsSeenClientLogging",{serializedAdServingDataEntry:H.serializedAdServingDataEntry})},O!=null?O:0)}};var kxB=function(N,t){PNE.call(this,N,t)};
_.p(kxB,PNE);var q0S=function(){},xI0=function(N,t){return _.h(t)};var nQp=function(){var N=new fKy;this.JSC$15772_adsControlFlowManager=(new eiR(N)).JSC$15747_adsControlFlowManager},fKy=function(){_.k1.call(this);
var N=this;this.experimentApiProvider=new uZS(function(){return new q0S});
var t=new uZS(function(){return new S0p(N.experimentApiProvider)});
this.adEventLogger=new kxB(this.experimentApiProvider,t);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.p(fKy,_.k1);var WWf=function(){},r2_,mR=function(){r2_||(r2_=new WWf);
return r2_},EX=function(N){if(!N.JSC$15783_externallyManagedSlotAdapterCallback){var t=(new nQp).JSC$15772_adsControlFlowManager;
N.JSC$15783_externallyManagedSlotAdapterCallback=t}return N.JSC$15783_externallyManagedSlotAdapterCallback},IKX=function(N,t,O){var H=t.opportunityType,A=Error("Mh");
if(H!==void 0){var Z=EX(N);hif(Z,H,void 0,O)}else _.rZ(A,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});Z=[];if(t.adSlotAndLayoutMetadata!==void 0){t=_.D(t.adSlotAndLayoutMetadata);for(var U=t.next();!U.done;U=t.next()){var C=U.value;if(U=C.adSlotMetadata)if(Z.push(U),N.onSlotReceivedExternallyManaged(U,O),C.adLayoutMetadata){C=_.D(C.adLayoutMetadata);for(var F=C.next();!F.done;F=C.next())N.onLayoutReceivedExternallyManaged(U,F.value,O)}else O>0&&_.rZ("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else O>0&&_.rZ("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else O>0&&_.rZ("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(H!==void 0)N.onOpportunityProcessedExternallyManaged(H,Z,void 0,O);else _.rZ(A,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
WWf.prototype.onSlotReceivedExternallyManaged=function(N,t){N=J5(N);if(N instanceof vz)_.rZ(N,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else EX(this).onSlotReceivedExternallyManaged(N,t)};
WWf.prototype.onLayoutReceivedExternallyManaged=function(N,t,O){N=J5(N);t=zxG(t);if(N instanceof vz)_.rZ(N,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(t instanceof o8)_.rZ(t,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else EX(this).onLayoutReceivedExternallyManaged(N,t,O)};
WWf.prototype.onOpportunityProcessedExternallyManaged=function(N,t,O,H){var A=[];t=_.D(t);for(var Z=t.next();!Z.done;Z=t.next())Z=J5(Z.value),Z instanceof vz?_.rZ(Z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):A.push(Z);EX(this).onOpportunityProcessedExternallyManaged(N,A,O,H)};
var lKf=function(N,t){t=J5(t);if(t instanceof vz)_.rZ(t,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var O=EX(N);fq(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",t);O=_.D(O.adsControlFlowEventListeners);for(var H=O.next();!H.done;H=O.next())H=nq(H.value,t),H.slotLifecycleStage!=="not_scheduled"&&IO(H.slot,H.slotLifecycleStage,"onSlotScheduled"),H.slotLifecycleStage="scheduled";N=EX(N);fq(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",t);N=_.D(N.adsControlFlowEventListeners);
for(O=N.next();!O.done;O=N.next())O.value.onSlotEntered(t)}},QiX=function(N,t){t=J5(t);
if(t instanceof vz)_.rZ(t,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var O=EX(N);fq(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",t);O=_.D(O.adsControlFlowEventListeners);for(var H=O.next();!H.done;H=O.next())H.value.onSlotExited(t);N=EX(N);fq(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",t);N=_.D(N.adsControlFlowEventListeners);for(O=N.next();!O.done;O=N.next())O.value.onSlotUnscheduled(t)}},mIS=function(N,t,O){t=J5(t);
O=zxG(O);if(t instanceof vz)_.rZ(t,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(O instanceof o8)_.rZ(O,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var H=EX(N);rn(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",t,O);H=_.D(H.adsControlFlowEventListeners);for(var A=H.next();!A.done;A=H.next())A.value.onLayoutScheduled(t,O);N=EX(N);rn(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",t,O);N=_.D(N.adsControlFlowEventListeners);
for(H=N.next();!H.done;H=N.next())pgQ(H.value,t,O)}},GO=function(N,t,O){t=J5(t);
O=zxG(O);if(t instanceof vz)_.rZ(t,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(O instanceof o8)_.rZ(O,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var H=EX(N);rn(H.adEventLogger,uPt("normal"),t,O);H=_.D(H.adsControlFlowEventListeners);for(var A=H.next();!A.done;A=H.next())A.value.onLayoutExited(t,O,"normal");N=EX(N);N=_.D(N.adsControlFlowEventListeners);for(H=N.next();!H.done;H=N.next())Y0E(H.value,t,O)}};_.RO=_.q(function(N){var t=_.RH(N,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});N=Object.assign({},t);var O=t.data;t=t.customCommandResolver;var H=(delete N.data,delete N.customCommandResolver,N);N=_.iU({visibilityCallback:function(C,F){var g,B=(g=O().interaction)==null?void 0:g.onFirstVisible;C&&(B&&_.xJ(B),H.setOnErrorHandler()&&YCS(F))},
showOption:_.e3});t=_.kS(function(){return O().interaction},t,function(){var C;
return(C=H.listenToTapEvent)==null?void 0:C.call(H)});
var A=_.D(_.b$(!1,void 0,"wAC0Lc")),Z=A.next().value,U=A.next().value;A=_.Ui(function(C){var F;((F=H.setTouchEndHandler)==null?0:F.call(H))&&!Z()&&(C.currentTarget.click(),U(!0),setTimeout(function(){U(!1)},100));
return!1});
return _.d("ad-image-view-model",{class:function(){var C,F=[((C=O().interaction)==null?0:C.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],g;((g=H.isGridViewEnabled)==null?0:g.call(H))&&F.push("ytwAdImageViewModelHostInGridView");return F.join(" ")},
el:_.E4(N,t),"on:touchend":A},_.d("div",{class:"ytwAdImageViewModelHostImageContainer"},_.d(_.Qt,{data:function(){var C;return{sources:O().imageSources,contentMode:(C=O().imageProperties)==null?void 0:C.contentMode}},
alt:function(){var C,F;return((C=O().interaction)==null?void 0:(F=C.accessibility)==null?void 0:F.label)||""},
targetHeight:H.targetHeight,targetWidth:H.targetWidth,preserveHeight:H.preserveHeight,preserveWidth:H.preserveWidth,useWidth:H.useWidth,style:function(){var C,F;return"vertical-align: bottom;"+(((C=O().background)==null?0:C.color)?"background-color:"+_.aI((F=O().background)==null?void 0:F.color)+";":"")},
className:function(){return H.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var C,F;return(F=(C=H.setDraggable)==null?void 0:C.call(H))!=null?F:void 0}})))},"lc");var EQa=_.q(function(N){var t=N.data,O=N.listenToTapEvent,H=function(){};
return _.d("ad-button-hover-overlay-view-model",{"on:click":_.Ui(function(A){if(_.h("enable_web_home_top_landscape_image_layout_legacy_click_command")){var Z,U=(Z=t().interaction)==null?void 0:Z.onTap;U&&_.or(A.currentTarget,"yt-navigate",{endpoint:_.wF(U)})}}),
class:function(){var A;return((A=t().interaction)==null?0:A.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.E4(_.iU({visibilityCallback:function(A){var Z,U=(Z=t().interaction)==null?void 0:Z.onFirstVisible;A&&U&&_.xJ(U)},
showOption:_.e3}),_.kS(function(){return t().interaction},void 0,function(){return!_.h("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(O==null?void 0:O())}))},function(){return _.h("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.d(_.iF,{data:function(){return t().button}},{adButtonViewModel:function(A){return _.d(_.Xq,{data:A.data,
customCommandResolver:H})}}):_.d(_.iF,{data:function(){return t().button}},{adButtonViewModel:_.Xq})}())},"mc");var sM;_.o_(_.q(function(N){var t=N.data;N=_.iU({visibilityCallback:function(C,F){if(C){var g;(C=(g=t().interaction)==null?void 0:g.onFirstVisible)&&_.xJ(C);var B;if(g=(B=t().adLayoutData)==null?void 0:B.activeViewData)Nu(F,g),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tq(F)})}else _.h("stop_av_measurement_on_detach")&&tq(F)},
showOption:_.e3,hideOption:PK});var O=_.kS(function(){return t().interaction},void 0,function(){return!0}),H=_.D(_.b$(!1,void 0,"VNDDT")),A=H.next().value,Z=H.next().value;
H=_.Ui(function(){Z(!0)});
var U=_.Ui(function(){Z(!1)});
return _.d("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.E4(N,x8v,O),"on:mouseenter":H,"on:mouseleave":U},_.d("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.FM({"max-width":function(){return _.h("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.d("div",{class:function(){var C;
a:{var F;switch((C=_.M(t().thumbnailImage,lXf))==null?void 0:(F=C.imageProperties)==null?void 0:F.renderingAspect){case "RENDERING_ASPECT_SQUARE":C="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":C="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}C=void 0}return C}},_.d(_.iF,{data:function(){return t().thumbnailImage}},{adImageViewModel:function(C){return _.d(_.RO,
{data:C.data,
listenToTapEvent:!0,setTouchEndHandler:_.h("enable_top_landscape_image_experiment_dom_id_web")})}})),_.d("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.d(_.y,{cond:function(){var C,F,g;
return(C=_.M(t().thumbnailImage,lXf))==null?void 0:(F=C.imageProperties)==null?void 0:(g=F.overlayIcon)==null?void 0:g.iconImage},
then:function(C){return _.d(_.Qt,{data:C,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.d("div",{class:function(){return A()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.d(_.iF,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(C){return _.d(EQa,
{data:C.data,
listenToTapEvent:!0})}}))),_.d("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.d(_.iF,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(C){return _.d(rV,{data:C.data,
listenToTapEvent:!0,setTouchEndHandler:_.h("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;N=_.iU({visibilityCallback:function(C,F){if(C){var g;(C=(g=t().interaction)==null?void 0:g.onFirstVisible)&&_.xJ(C);var B;if(g=(B=t().adLayoutData)==null?void 0:B.activeViewData)Nu(F,g),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tq(F)})}else _.h("stop_av_measurement_on_detach")&&tq(F)},
showOption:_.e3,hideOption:PK});var O=_.cH(_.wq),H=_.kS(function(){return t().interaction}),A={},Z={},U={};
return _.d("square-image-layout-view-model",{class:_.V7("ytwSquareImageLayoutViewModelHost",(A.ytwSquareImageLayoutViewModelHostColumn=O,A)),el:_.E4(N,kDz,H)},_.d("div",{class:_.V7("ytwSquareImageLayoutViewModelHostImage",(Z.ytwSquareImageLayoutViewModelHostColumnImage=O,Z))},function(){return _.d(_.iF,{data:function(){return t().adImage}},{adImageViewModel:function(C){return _.d(_.RO,{data:C.data,
isGridViewEnabled:O,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.d("div",{class:_.V7("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(U.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=O,U))},_.d(_.iF,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:rV}),function(){return _.d(_.iF,{data:function(){return t().adButton}},{adButtonViewModel:function(C){var F={};
return _.d(_.Xq,{data:C.data,className:_.V7((F.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,F.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=O,F))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=N.noBottomMargin;var H=N.typographyBump;N=_.iU({visibilityCallback:function(c,u){if(c){var S;(c=(S=t().interaction)==null?void 0:S.onFirstVisible)&&_.xJ(c);var b;if(S=(b=t().adLayoutData)==null?void 0:b.activeViewData)Nu(u,S),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tq(u)})}else _.h("stop_av_measurement_on_detach")&&tq(u)},
showOption:_.e3,hideOption:PK});var A=_.kS(function(){return t().interaction},void 0,function(){return _.h("enable_web_home_top_landscape_image_layout_level_click")}),Z=function(){return t().interaction};
Z!==void 0&&Z!==null||_.HY(Error("Nh"));var U=function(){var c,u,S;return(c=_.M(t().thumbnailImage,lXf))==null?void 0:(u=c.background)==null?void 0:(S=u.backgroundImageSource)==null?void 0:S.imageSources};
Z=_.D(_.b$(!1,void 0,"NFjwje"));var C=Z.next().value,F=Z.next().value;Z=_.Ui(function(){F(!0)});
var g=_.Ui(function(){F(!1)}),B=function(){return C()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.d("top-landscape-image-layout-view-model",{class:function(){var c;return((c=t().interaction)==null?0:c.onTap)&&_.h("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.E4(N,qCt,A),"on:mouseenter":Z,"on:mouseleave":g},_.d("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.d(_.y,{cond:function(){return U()&&U().length>0},
then:function(){return _.d("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.FM({top:"0","background-image":function(){return"url("+String(U()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.d(_.y,{cond:function(){return!!t().adButtonHoverOverlay},
then:function(){return _.d("div",{class:B},_.d(_.iF,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:EQa}))}}),_.d("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.d(_.iF,{data:function(){return t().thumbnailImage}},{adImageViewModel:function(c){return _.d(_.RO,{data:c.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.h("enable_web_home_top_landscape_image_layout_level_click")})}})),_.d("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.d(_.Qt,{data:{sources:[{clientResource:{imageName:_.h("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.d("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.d(_.iF,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(c){return _.d(rV,{data:c.data,
noBottomMargin:function(){return O==null?void 0:O()},
listenToTapEvent:function(){return _.h("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return H==null?void 0:H()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.$O,
noBottomMargin:_.$O,typographyBump:_.$O}});var GxR=_.q(function(N){var t=N.data,O=_.iU({visibilityCallback:function(A){var Z,U=(Z=t().interaction)==null?void 0:Z.onFirstVisible;A&&U&&_.xJ(U)},
showOption:_.e3});N=_.kS(function(){return t().interaction},N.customCommandResolver);
var H={};return _.d("ad-text-image-view-model",{class:_.V7("ytwAdTextImageViewModelHost",(H.ytwAdTextImageViewModelHostDarkBackground=function(){return t().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},H)),
el:_.E4(O,N),"aria-label":function(){var A,Z;return(A=t().interaction)==null?void 0:(Z=A.accessibility)==null?void 0:Z.label}},_.d("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.d(_.cu,{text:function(){return t().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.d(_.y,{cond:function(){return t().overlayIcon},
then:function(A){return _.d("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.d(_.Qt,{data:A,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var RiE=_.q(function(N){var t=N.data;return _.d("feed-ad-sitelink-view-model",{class:function(){var O;return((O=t().interaction)==null?0:O.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.E4(_.kS(function(){return t().interaction},N.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var O,H;return(O=t().interaction)==null?void 0:(H=O.accessibility)==null?void 0:H.label},
role:"link",tabindex:0},_.d(_.cu,{text:function(){return t().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var vQQ=_.q(function(N){var t=N.data;N={};return _.d("feed-ad-sitelinks-carousel-view-model",{el:_.E4(_.iU({visibilityCallback:function(O){var H,A=(H=t().interaction)==null?void 0:H.onFirstVisible;O&&A&&_.xJ(A)},
showOption:_.e3})),class:_.V7("ytwFeedAdSitelinksCarouselViewModelHost",(N.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return t().style==="FEED_AD_SITELINKS_STYLE_NONE"},N))},_.d(_.iF,{data:function(){return t().sitelinks}},{feedAdSitelinkViewModel:RiE}))},"sc");_.o_(_.q(function(N){var t=N.data;N=_.iU({visibilityCallback:function(U,C){if(U){var F;(U=(F=t().interaction)==null?void 0:F.onFirstVisible)&&_.xJ(U);var g;(F=(g=t().adLayoutData)==null?void 0:g.activeViewData)&&Nu(C,F)}},
showOption:_.e3});var O=_.D(_.b$(!1,void 0,"BzPhl")),H=O.next().value,A=O.next().value;O=_.Ui(function(){A(!0)});
var Z=_.Ui(function(){A(!1)});
return _.d("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.E4(N),"on:mouseenter":O,"on:mouseleave":Z},_.d("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.d("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.d(_.iF,{data:function(){return t().textImage}},{adTextImageViewModel:GxR})),_.d("div",{class:function(){return H()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.d(_.iF,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(U){return _.d(EQa,{data:U.data,
listenToTapEvent:!0})}}))),_.d("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.d(_.iF,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(U){return _.d(rV,{data:U.data,
listenToTapEvent:!0})}}),_.d(_.iF,{data:function(){return t().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:vQQ})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=N.typographyBump;return _.d("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.E4(_.iU({visibilityCallback:function(H,A){if(H){var Z;(H=(Z=t().interaction)==null?void 0:Z.onFirstVisible)&&_.xJ(H);var U;(Z=(U=t().adLayoutData)==null?void 0:U.activeViewData)&&Nu(A,Z)}},
showOption:_.e3,hideOption:PK}))},_.d("div",null,_.d(_.iF,{data:function(){return t().videoLockup}},{lockupViewModel:function(H){return _.d(_.IR,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:O})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.$O,
noBottomMargin:_.$O,typographyBump:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=N.className;var H=N.typographyBump;return _.d("video-display-compact-button-group-layout-view-model",{el:_.E4(_.iU({visibilityCallback:function(A,Z){if(A){var U;(A=(U=t().interaction)==null?void 0:U.onFirstVisible)&&_.xJ(A);var C;(U=(C=t().adLayoutData)==null?void 0:C.activeViewData)&&Nu(Z,U)}},
showOption:_.e3})),class:_.V7("videoDisplayCompactButtonGroupLayoutViewModelHost",O)},_.d(_.iF,{data:function(){return t().videoLockup}},{lockupViewModel:function(A){return _.d(_.IR,{data:A.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:H})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.$O,
className:_.$O,typographyBump:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=N.className;var H=N.typographyBump;return _.d("video-display-compact-buttoned-layout-view-model",{el:_.E4(_.iU({visibilityCallback:function(A,Z){if(A){var U;(A=(U=t().interaction)==null?void 0:U.onFirstVisible)&&_.xJ(A);var C;(U=(C=t().adLayoutData)==null?void 0:C.activeViewData)&&Nu(Z,U)}},
showOption:_.e3})),class:_.V7("videoDisplayCompactButtonedLayoutViewModelHost",O)},_.d(_.iF,{data:function(){return t().videoLockup}},{lockupViewModel:function(A){return _.d(_.IR,{data:A.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:H})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.$O,
className:_.$O,typographyBump:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=N.className;var H=N.typographyBump;var A=function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},Z=_.cH(_.wq);
N=_.iU({visibilityCallback:function(g,B){if(g){var c=t();g=c.adLayoutData;var u;(c=(u=c.interaction)==null?void 0:u.onFirstVisible)&&_.xJ(c);(u=g==null?void 0:g.activeViewData)&&Nu(B,u)}},
showOption:_.e3});var U=_.aa(function(){return{containerType:A()&&Z()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:A()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),C=_.aa(function(){return A()&&Z()?"":A()?"168px":"50%"},void 0,"Om6kNe"),F=_.aa(function(){return A()&&Z()?9999:void 0},void 0,"S71lKd");
return _.d("video-display-compact-layout-view-model",{el:_.E4(N),class:_.V7("videoDisplayCompactLayoutViewModelHost",O)},_.d(_.iF,{data:function(){return t().videoLockup}},{lockupViewModel:function(g){return _.d(_.IR,{data:g.data,
containerLayoutConfig:U,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:C,thumbnailTargetWidth:F,typographyBump:H})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.$O,
className:_.$O,typographyBump:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=N.typographyBump;return _.d("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.E4(_.iU({visibilityCallback:function(H,A){if(H){var Z;(H=(Z=t().interaction)==null?void 0:Z.onFirstVisible)&&_.xJ(H);var U;(Z=(U=t().adLayoutData)==null?void 0:U.activeViewData)&&Nu(A,Z)}},
showOption:_.e3,hideOption:PK}))},_.d("div",null,_.d(_.iF,{data:function(){return t().videoLockup}},{lockupViewModel:function(H){return _.d(_.IR,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:O})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.$O,
noBottomMargin:_.$O,typographyBump:_.$O}});_.J2p=_.q(function(N){var t=N.data;N=_.Fy("ad-card-badge-view-model");return _.d("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:N},_.d(_.y,{cond:function(){return t().imageBadge},
then:function(O){return _.d(_.Qt,{data:O,alt:""})}}))},"zc");var oQX=_.q(function(N){var t=N.data;var O=N.customCommandResolver;return _.d("carousel-ad-card-image-view-model",{class:function(){var H;return((H=t().interaction)==null?0:H.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.E4(_.iU({visibilityCallback:function(H){var A,Z=(A=t().interaction)==null?void 0:A.onFirstVisible;H&&Z&&_.xJ(Z)},
showOption:_.e3}),_.kS(function(){return t().interaction},O)),
"aria-label":function(){var H,A;return(H=t().interaction)==null?void 0:(A=H.accessibility)==null?void 0:A.label}},_.d(_.iF,{data:function(){return t().adImage}},{adImageViewModel:function(H){return _.d(_.RO,{data:H.data,
customCommandResolver:O})}}),_.d("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.d(_.iF,{data:function(){return t().badge}},{adCardBadgeViewModel:_.J2p})),_.d(_.aw,{model:{color:4}}))},"Ac");var sif=_.q(function(N){var t=_.D(_.b$(0,void 0,"JJ0QQc")),O=t.next().value;t.next();var H=t.next().value,A=_.D(_.b$(!1,void 0,"f6YICe"));t=A.next().value;var Z=A.next().value,U;_.Ia(function(){clearTimeout(U)});
A=_.Ui(function(){var g;((g=N.animate)==null?0:g.call(N))?(Z(!0),U=setTimeout(function(){Z(!1);C()},200)):C();
return!1});
var C=function(){H(function(g){return(g+N.numShownItems())%N.data().length})},F={};
return _.d("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.d("div",{class:_.V7("ytwHorizontalCarouselCarouselWrapper")},_.d("div",{class:_.V7("ytwHorizontalCarouselCarouselInnerWrapper",(F.ytwHorizontalCarouselAnimating=t,F))},_.d(_.nL,{each:N.data,keyBy:"INDEX"},function(g,B){return _.d("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.FM({"flex-basis":function(){return"calc((100% - (8px * "+(N.numShownItems()-1)+")) / "+N.numShownItems()+")"},
order:function(){var c=B-O();c<0&&(c+=N.data().length);return c}})},N.children(g,B))}))),_.d("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":A},N.nextButton()))},"Bc");var NoQ=_.q(function(N){var t=N.data;var O=N.customCommandResolver;var H=N.expansive;return _.d("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.E4(_.iU({visibilityCallback:function(A){var Z,U=(Z=t().interaction)==null?void 0:Z.onFirstVisible;A&&U&&_.xJ(U)},
showOption:_.e3}))},_.d(sif,{data:function(){var A;return((A=t())==null?void 0:A.carouselAdCards)||[]},
nextButton:function(){return _.d(_.iF,{data:function(){return t().nextButton}},{buttonViewModel:function(A){var Z=A.data;
return _.d(_.Pu,{data:function(){return(H==null?0:H())?Object.assign({},Z(),{style:"mono"}):Z()},
className:_.h("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(A){return _.d(_.iF,{data:A},{carouselAdCardImageViewModel:function(Z){return _.d(oQX,{data:Z.data,customCommandResolver:O})}})}))},"Cc");var taQ=_.q(function(N){var t=N.data;var O=N.customCommandResolver;var H=N.className;var A=N.buttonClassName;var Z=N.animationEntityKey;var U=N.expansive;return _.d("carousel-button-view-model",{class:_.V7("ytwCarouselButtonViewModelHost",H)},_.d(_.iF,{data:function(){return t().carousel}},{carouselAdCardCollectionViewModel:function(C){return _.d(NoQ,{data:C.data,
customCommandResolver:O,expansive:U})}}),_.d(_.iF,{data:function(){return t().button}},{adButtonViewModel:function(C){var F=C.data;
return _.d(_.Xq,{data:function(){return(U==null?0:U())?Object.assign({},F(),{style:"AD_BUTTON_STYLE_TONAL"}):F()},
className:A,customCommandResolver:O,animationEntityKey:Z})}}))},"Dc");_.Or_=_.q(function(N){var t=N.data;N=N.className;var O=_.Fy("pivot-button-view-model");_.Q8(function(){var H;((H=t())==null?0:H.backgroundColor)&&O.value.setAttribute("data-background-color",String(t().backgroundColor))});
return _.d("pivot-button-view-model",{el:O,class:_.V7("ytwPivotButtonViewModelHost",N)},_.d(_.YO,{command:function(){var H=t();H=H.onClickCommand?_.wF(H.onClickCommand):H.contentDescription?_.s_(H.contentDescription):void 0;return H},
ariaLabel:function(){return t().contentDescription}},_.d(_.y,{cond:function(){return t().thumbnail},
then:function(H){return _.d(_.Qt,{data:H,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.d(_.y,{cond:function(){return t().icon},
then:function(H){return _.d(_.dq,{icon:function(){return H().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.Hrr=_.q(function(N){var t=N.data;var O=N.buttonShapeOverrideables;return _.d("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.d(_.iF,{data:function(){return t().buttonViewModels}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
buttonOverrides:O})},
likeButtonViewModel:function(H){return _.d(_.Fl,{data:H.data,buttonShapeOverrideables:O})},
dislikeButtonViewModel:function(H){return _.d(_.Ko,{data:H.data,buttonShapeOverrideables:O})},
toggleButtonViewModel:function(H){return _.d(_.N3,{data:H.data,buttonShapeOverrides:O})}}))},"Fc");var Aja=_.q(function(N){var t=N.avatar;var O=N.headline;var H=N.badge;var A=N.description;var Z=N.expansive;N={};return _.d("yt-ad-metadata-shape",{class:_.V7("ytAdMetadataShapeHost",(N.ytAdMetadataShapeHostLarge=Z,N))},_.d("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.d(_.y,{cond:t,then:function(U){return _.d(_.vaX,{data:function(){return(Z==null?0:Z())?Object.assign({},U(),{size:"AD_AVATAR_SIZE_M"}):U()}})}}),_.d("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.d(_.cu,{text:O,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.d(_.y,{cond:H,then:function(U){return _.d(_.n_,{data:function(){return(Z==null?0:Z())?Object.assign({},U(),{style:"AD_BADGE_STYLE_STARK"}):U()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.d("h2",{class:"ytAdMetadataShapeHostDescription"},_.d(_.cu,{text:A,
linkInheritColor:!0,isHeadline:function(){return Z==null?void 0:Z()}})))},"Gc");var ZrZ=_.q(function(N){var t=N.data;var O=N.onShow;var H=N.expansive;N=_.kS(function(){return t().interaction});
_.Q8(function(){var Z,U=(Z=t().animatedRenderingConfig)==null?void 0:Z.delayedSecondsToVisible;if(U){var C=setTimeout(O,U*1E3);_.Ia(function(){clearTimeout(C)})}});
var A={};return _.d("reels-ad-card-buttoned-view-model",{class:_.V7(function(){var Z;return((Z=t().interaction)==null?0:Z.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(A.ytwReelsAdCardButtonedViewModelHostExpansive=H,A)),
el:_.E4(N)},_.d(Aja,{avatar:function(){return _.M(t().avatar,Wj0)},
headline:function(){return t().headline},
badge:function(){return _.M(t().adBadge,rLp)},
description:function(){return t().description},
expansive:H}),_.d(_.iF,{data:function(){return t().ctaButton}},{adButtonViewModel:function(Z){var U=Z.data;
return _.d(_.Xq,{data:function(){return(H==null?0:H())?Object.assign({},U(),{style:"AD_BUTTON_STYLE_FILLED"}):U()}})}}))},"Hc");var Va_=_.q(function(N){var t=N.data;N=N.expansive;var O=_.h("web_ad_metadata_clickable")?_.kS(function(){return t().interaction},void 0,function(){return _.h("web_ad_metadata_clickable")}):void 0,H={};
H=_.Lx("ytwReelsAdMetadataViewModelHost",(H.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.h("web_ad_metadata_clickable"),H));return _.d("reels-ad-metadata-view-model",{class:H,el:_.E4(O)},_.d(Aja,{avatar:function(){return _.M(t().avatar,Wj0)},
headline:function(){return t().headline},
badge:function(){return _.M(t().adBadge,rLp)},
description:function(){return t().description},
expansive:N}))},"Ic");var D6_={iconPosition:"icon-with-label",size:"L"},U6Q=_.q(function(N){var t=N.data;var O=N.overlayDensity;var H=N.extractOverlay;var A=N.extractActionBar;N=_.Fy("reels-player-overlay-layout-view-model");var Z=_.Gr(O,0),U=function(){var S;return(S=t().reelsAdCardButtonedEntityKey)!=null?S:""},C=function(){return U()+"/ad_button"},F=_.cz(cUM,U),g=function(){var S,b;
return(b=(S=F())==null?void 0:S.value)!=null?b:!1},B=_.cH(fDS),c=function(){var S;
return Object.assign({},D6_,(B()||!((S=A==null?void 0:A())!=null&&S))&&{style:"overlay-dark"})};
O={};var u={};return _.d("reels-player-overlay-layout-view-model",{class:_.V7("ytwReelsPlayerOverlayLayoutViewModelHost",(O.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!t().extension},O.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},O.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return Z()===1&&!(H==null?0:H())},O.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var S;
return(S=H==null?void 0:H())!=null?S:!1},O.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var S;
return(S=A==null?void 0:A())!=null?S:!1},O)),
"overlay-density":function(){return String(Z())},
el:N},_.d("div",{class:_.V7("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(u.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},u))},_.d("div",{"aria-hidden":function(){return g()},
class:_.V7("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return g()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.FM({"transition-duration":function(){return IDO(t())}})},_.d(_.iF,{data:function(){return t().adMetadata}},{reelsAdMetadataViewModel:function(S){return _.d(Va_,{data:S.data,
expansive:function(){return Z()===1}})}}),_.d(_.y,{cond:function(){return t().extension},
then:function(S){return _.d("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.d(_.iF,{data:S},{adButtonViewModel:function(b){return _.d(_.Xq,{data:b.data,animationEntityKey:C,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(b){return _.d(taQ,{data:b.data,animationEntityKey:C,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return Z()===1}})}}))}})),_.d("div",{"aria-hidden":function(){return!g()},
class:_.V7("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return g()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.FM({"transition-duration":function(){return IDO(t())}})},_.d(_.iF,{data:function(){return t().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(S){return _.d(ZrZ,{data:S.data,
onShow:function(){_.E6(_.uF("booleanEntity",U(),{key:U(),value:!0}))},
expansive:function(){return Z()===1}})}}))),_.d("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.d(_.iF,{data:function(){return t().actions}},{reelActionBarViewModel:function(S){return _.d(_.Hrr,{data:S.data,
buttonShapeOverrideables:c})}}),_.d(_.iF,{data:function(){return t().menu}},{buttonViewModel:function(S){return _.d(_.Pu,{data:S.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},c(),{type:"tonal"})}})}}),_.d(_.iF,{data:function(){return t().pivotButton}},{pivotButtonViewModel:function(S){return _.d(_.Or_,{data:S.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.o_(U6Q,"reels-player-overlay-layout-view-model",{props:{data:_.$O,overlayDensity:_.$O,extractOverlay:_.$O,extractActionBar:_.$O}});var Nl=function(){var N=_.k.apply(this,arguments)||this;N.noBottomMargin=!1;N.overlayDensity=0;N.extractOverlay=!1;N.extractActionBar=!1;return N};
_.p(Nl,_.k);_.V=Nl.prototype;
_.V.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.h("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.V.ready=function(){var N=this;NWO(function(){N.isAttached&&GE(N.JSC$15829_storedAdSlotMetadata,N.JSC$15829_storedAdLayoutMetadata,N.adSlotMetadata,N.adLayoutMetadata)&&GO(mR(),N.JSC$15829_storedAdSlotMetadata,N.JSC$15829_storedAdLayoutMetadata)})};
_.V.attached=function(){GE(this.JSC$15829_storedAdSlotMetadata,this.JSC$15829_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&mIS(mR(),this.JSC$15829_storedAdSlotMetadata,this.JSC$15829_storedAdLayoutMetadata)};
_.V.detached=function(){GE(this.JSC$15829_storedAdSlotMetadata,this.JSC$15829_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&GO(mR(),this.JSC$15829_storedAdSlotMetadata,this.JSC$15829_storedAdLayoutMetadata)};
_.V.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15829_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15829_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15829_storedAdLayoutMetadata!==void 0&&this.JSC$15829_storedAdSlotMetadata!==void 0&&GO(mR(),this.JSC$15829_storedAdSlotMetadata,this.JSC$15829_storedAdLayoutMetadata),mIS(mR(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15829_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15829_storedAdSlotMetadata=this.adSlotMetadata)};
_.cv.Object.defineProperties(Nl.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.adLayoutMetadata}}});
Nl.prototype.onAdMetadataChanged=Nl.prototype.onAdMetadataChanged;Nl.prototype.onTypographyBumpChanged=Nl.prototype.onTypographyBumpChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Nl.prototype,"rendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Nl.prototype,"ytComponentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Nl.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Nl.prototype,"noBottomMargin",void 0);_.W([_.X(),_.Q("design:type",Object)],Nl.prototype,"overlayDensity",void 0);_.W([_.X(),_.Q("design:type",Object)],Nl.prototype,"extractOverlay",void 0);_.W([_.X(),_.Q("design:type",Object)],Nl.prototype,"extractActionBar",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Nl.prototype,"typographyBump",void 0);
_.W([_.a("data.adLayoutMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Nl.prototype,"adLayoutMetadata",null);_.W([_.X(),_.Q("design:type",Object)],Nl.prototype,"adSlotMetadata",void 0);_.W([_.B2("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Q("design:type",HTMLElement)],Nl.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.W([_.gz("typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nl.prototype,"onTypographyBumpChanged",null);_.W([_.gz("adLayoutMetadata","adSlotMetadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nl.prototype,"onAdMetadataChanged",null);_.W([_.en({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Nl);
_.n(Nl,"ytd-in-feed-ad-layout-renderer",function(){if(RjE!==void 0)return RjE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return RjE=N},
{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var CJu;var Klu;_.o_(_.n_,"ad-badge-view-model",{props:{data:_.$O,hasDot:_.$O,customCommandResolver:_.R_,adRenderingContextType:_.R_,usedInMasthead:_.R_}});_.o_(_.Xq,"ad-button-view-model",{props:{data:_.$O,customCommandResolver:_.R_,className:_.R_,delayedClassName:_.R_,animationEntityKey:_.R_,isCompactWidth:_.R_,isContentWidth:_.R_}});var tf=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return N};
_.p(tf,_.k);_.V=tf.prototype;_.V.computeHasLiveDescription=function(N){return!(N==null||!N.liveDescription)};
_.V.computeHasByline=function(N){return!(N==null||!N.byline)};
_.V.computeUsesAdButtonViewModel=function(N){return!!_.M(N==null?void 0:N.cta,IXY)};
_.V.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.V.onYtToggleButton=function(N){var t,O=(t=this.data)==null?void 0:t.videoReminderEntityKey;O&&this.ytdReduxBehavior.dispatch(_.uF("upcomingEventReminderStateEntity",O,{key:O,state:N.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.V.attached=function(){this.updateChannelBanner()};
_.V.dataChanged=function(){this.updateChannelBanner()};
_.V.videoReminderStateChanged=function(){var N;this.videoReminderState&&_.M((N=this.data)==null?void 0:N.cta,_.y2)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.V.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var N=_.s4(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);N&&(N.startsWith("//")&&(N="https:"+N),this.hostElement.classList.add("channel-banner"),_.CO(this.hostElement,{"--ytvmh-channel-banner":"url("+N+")"}))}else _.h("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.V.onPlayerReady=function(){this.onIronResize()};
_.V.maybeFlushDebouncer=function(){_.h("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(N){var t;N=(t=N.getElementsByTagName("yt-attributed-string"))==null?void 0:t[0];$Xp(N==null?void 0:N.polymerController)})};
_.V.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var N=_.O6(this.hostElement).querySelector("#live-description"),t;N&&((t=this.data)==null?0:t.shortLiveDescription)&&N.clientWidth<N.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
tf.prototype.onIronResize=tf.prototype.onIronResize;tf.prototype.videoReminderStateChanged=tf.prototype.videoReminderStateChanged;tf.prototype.dataChanged=tf.prototype.dataChanged;tf.prototype.onYtToggleButton=tf.prototype.onYtToggleButton;_.W([_.Y(_.JV),_.Q("design:type",Object)],tf.prototype,"ironResizableBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],tf.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],tf.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tf.prototype,"data",void 0);_.W([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:s4N}),_.Q("design:type",Object)],tf.prototype,"videoReminderState",void 0);
_.W([_.X({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.Q("design:type",Boolean)],tf.prototype,"rounded",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Q("design:type",Boolean)],tf.prototype,"hasLiveDescription",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.Q("design:type",Boolean)],tf.prototype,"hasByline",void 0);
_.W([_.X({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.Q("design:type",String)],tf.prototype,"adRenderingContextType",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],tf.prototype,"isMasthead",void 0);_.W([_.X({computed:"computeUsesAdButtonViewModel(data)"}),_.Q("design:type",Boolean)],tf.prototype,"usesAdButtonViewModel",void 0);
_.W([_.X({reflectToAttribute:!0,value:_.h("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Q("design:type",Boolean)],tf.prototype,"resizableAdBannerSafariFix",void 0);_.W([_.c2("yt-formatted-string"),_.Q("design:type",Array)],tf.prototype,"formattedStrings",void 0);_.W([_.B2("#cta-button"),_.Q("design:type",HTMLElement)],tf.prototype,"ctaButton",void 0);
_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],tf.prototype,"onYtToggleButton",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tf.prototype,"dataChanged",null);_.W([_.gz("videoReminderState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tf.prototype,"videoReminderStateChanged",null);
_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tf.prototype,"onIronResize",null);_.W([_.en({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],tf);
_.n(tf,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Klu!==void 0)return Klu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Klu=N},{mode:1});var Fl_;var Ou=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};N.isLocked=!1;return N};
_.p(Ou,_.k);_.V=Ou.prototype;_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded&&_.Np(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(N){N!==this&&(this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(N){this.isLocked=!0;N!==this&&(this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
Ou.prototype.onTap=Ou.prototype.onTap;Ou.prototype.onMouseOver=Ou.prototype.onMouseOver;Ou.prototype.onExpandedChanged=Ou.prototype.onExpandedChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Ou.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ou.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Ou.prototype,"expanded",void 0);_.W([_.ic("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ou.prototype,"onExpandedChanged",null);_.W([_.dz("mouseover"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ou.prototype,"onMouseOver",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ou.prototype,"onTap",null);
_.W([_.en({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Ou);
_.n(Ou,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Fl_!==void 0)return Fl_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Fl_=N},{mode:1});var d6f;var HI=function(){var N=_.k.apply(this,arguments)||this;N.buttonOverrides={style:"overlay"};N.useYtdPlayer=_.h("use_ytd_player_for_desktop_masthead");N.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};N.playbackFinished=!1;N.JSC$15843_playerManager=null;N.JSC$15843_mastheadCounter=new C0_;return N};
_.p(HI,_.k);_.V=HI.prototype;_.V.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.V.created=function(){this.JSC$15843_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15843_playerManager=new GP)};
_.V.ready=function(){var N=this;this.JSC$15843_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var t=_.O6(this.hostElement).querySelector("#player");this.useYtdPlayer?t.style.display="none":(this.ytdPlayer.style.display="none",O5R(this.JSC$15843_playerManager,t,function(){N.onPlaybackEnded()}),_.O6(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var O;
((O=N.data)==null?0:O.navigationEndpoint)&&_.or(N.hostElement,"yt-navigate",{endpoint:N.data.navigationEndpoint})}))};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15843_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.V.attached=function(){var N=this;_.nO(function(){N.maybePlayVideo()})};
_.V.maybePlayVideo=function(){var N=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$15843_playerManager.playVideo(),this.getPlayerPromise().then(function(){N.JSC$15843_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.V.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15843_playerManager.stopVideo()};
_.V.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var N,t={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((N=this.data.playbackStartMs)!=null?N:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(t);this.setupYtdPlayer()}else A0r(this.JSC$15843_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(H5_(this.JSC$15843_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.V.getPlayerPromise=function(){return this.JSC$15843_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(N){this.useYtdPlayer?this.toggleMute(N.detail.toggled):N.detail.toggled?this.JSC$15843_playerManager.mute():this.JSC$15843_playerManager.unMute()};
_.V.onYtNavigate=function(N){var t=Nng(N.detail.endpoint),O=tQg(this.data.clickthroughReportingData);t&&O&&(N.detail.endpoint.watchEndpoint?N.detail.tempData=O:_.m2(t,O,30))};
_.V.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.V.onExpandedChanged=function(){this.expanded?(_.Np(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.V.onMouseOver=function(){this.maybeExpand()};
_.V.onTap=function(){this.maybeExpand()};
_.V.onExpandableTileExpanding=function(N){N!==this&&(this.stopVideo(),this.expanded=!1)};
_.V.onExpandableTileLockAndCollapse=function(N){N!==this&&(this.isLocked=!0,this.expanded=!1)};
_.V.onExpandableTileUnlock=function(){this.isLocked=!1};
_.V.lockAndCollapseExpandableTiles=function(){_.sl(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.V.unlockExpandableTiles=function(){_.sl(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.V.setupYtdPlayer=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return O.yield(N.ytdPlayer.getPlayerPromise(),2);t=O.yieldResult;t.addEventListener("onStateChange",function(H){N.onPlayerStateChange(H)});
t.addEventListener("onCueRangeExit",function(H){N.onCueRangeExit(H)});
_.Ty(O)})};
_.V.onPlayerStateChange=function(N){if(N===1&&(N=this.ytdPlayer.getPlayer())){var t=N.getCurrentTime(),O,H,A=t+((H=(O=this.data)==null?void 0:O.playbackDurationMs)!=null?H:0)/1E3;N.addCueRange("playback",t,A);this.JSC$15843_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.V.onCueRangeExit=function(N){N==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(t.ytdPlayer.getPlayerPromise(),2);O=H.yieldResult;N?O.mute():O.unMute();_.Ty(H)})};
HI.prototype.onTap=HI.prototype.onTap;HI.prototype.onMouseOver=HI.prototype.onMouseOver;HI.prototype.onExpandedChanged=HI.prototype.onExpandedChanged;HI.prototype.onYtNavigate=HI.prototype.onYtNavigate;HI.prototype.onYtToggleButton=HI.prototype.onYtToggleButton;HI.prototype.dataChanged=HI.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],HI.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],HI.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],HI.prototype,"expanded",void 0);_.W([_.X(),_.Q("design:type",Object)],HI.prototype,"buttonOverrides",void 0);
_.W([_.X(),_.Q("design:type",Object)],HI.prototype,"useYtdPlayer",void 0);_.W([_.B2("#ytd-player"),_.Q("design:type",Object)],HI.prototype,"ytdPlayer",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HI.prototype,"dataChanged",null);_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],HI.prototype,"onYtToggleButton",null);
_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],HI.prototype,"onYtNavigate",null);_.W([_.ic("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HI.prototype,"onExpandedChanged",null);_.W([_.dz("mouseover"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HI.prototype,"onMouseOver",null);
_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HI.prototype,"onTap",null);_.W([_.en({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],HI);
_.n(HI,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(d6f!==void 0)return d6f;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return d6f=N},{mode:1});var gRS;var Af=function(){return _.k.apply(this,arguments)||this};
_.p(Af,_.k);Af.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Af.prototype.onShow=function(){var N=_.O6(this.hostElement).querySelector("#live-description"),t;N&&((t=this.data)==null?0:t.shortLiveDescription)&&N.clientWidth<N.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Af.prototype.onYtToggleButton=function(N){var t,O=(t=this.data)==null?void 0:t.videoReminderEntityKey;O&&this.ytdReduxBehavior.dispatch(_.uF("upcomingEventReminderStateEntity",O,{key:O,state:N.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Af.prototype.videoReminderStateChanged=function(){var N;this.videoReminderState&&_.M((N=this.data)==null?void 0:N.cta,_.y2)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Af.prototype.videoReminderStateChanged=Af.prototype.videoReminderStateChanged;Af.prototype.onYtToggleButton=Af.prototype.onYtToggleButton;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Af.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Af.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Af.prototype,"data",void 0);
_.W([_.X({selectorArgs:["data.videoReminderEntityKey"],selector:s4N}),_.Q("design:type",Object)],Af.prototype,"videoReminderState",void 0);_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Af.prototype,"onYtToggleButton",null);_.W([_.gz("videoReminderState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Af.prototype,"videoReminderStateChanged",null);
_.W([_.en({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Af);
_.n(Af,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(gRS!==void 0)return gRS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return gRS=N},{mode:_.O4("kevlar_poly_si_batch_j065")?1:2});var yjr;var ZQ=function(){var N=_.k.apply(this,arguments)||this;N.useYtdPlayer=_.h("use_ytd_player_for_desktop_masthead");N.buttonOverrides={style:"overlay"};N.JSC$15851_playerManager=null;N.JSC$15851_mastheadCounter=new C0_;N.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return N};
_.p(ZQ,_.k);_.V=ZQ.prototype;_.V.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.V.created=function(){this.JSC$15851_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15851_playerManager=new GP)};
_.V.ready=function(){var N=this;this.JSC$15851_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var t;(t=this.embeddedPlayer)==null||t.remove()}else{var O;(O=this.ytdPlayer)==null||O.remove();O5R(this.JSC$15851_playerManager,this.embeddedPlayer,function(){N.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){N.data&&N.data.navigationEndpoint&&_.or(N.hostElement,"yt-navigate",{endpoint:N.data.navigationEndpoint})})}};
_.V.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15851_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.V.dataChanged=function(){var N=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var t=!this.data.disableAutoPlayback,O,H={autoplay:t,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((O=this.data.playbackStartMs)!=null?O:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(t?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else A0r(this.JSC$15851_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(H5_(this.JSC$15851_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15851_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.sl(N.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");N.JSC$15851_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.V.getPlayerPromise=function(){return this.JSC$15851_playerManager.getPlayerPromise()};
_.V.onYtToggleButton=function(N){this.useYtdPlayer?this.toggleMute(N.detail.toggled):N.detail.toggled?this.JSC$15851_playerManager.mute():this.JSC$15851_playerManager.unMute()};
_.V.onYtNavigate=function(N){var t=Nng(N.detail.endpoint),O=tQg(this.data.clickthroughReportingData);t&&O&&(N.detail.endpoint.watchEndpoint?N.detail.tempData=O:_.m2(t,O,30))};
_.V.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15851_playerManager.stopVideo()};
_.V.setupYtdPlayer=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return O.yield(N.ytdPlayer.getPlayerPromise(),2);t=O.yieldResult;t.addEventListener("onStateChange",function(H){N.onPlayerStateChange(H)});
t.addEventListener("onCueRangeExit",function(H){N.onCueRangeExit(H)});
_.Ty(O)})};
_.V.onPlayerStateChange=function(N){if(N===1&&(N=this.ytdPlayer.getPlayer())){var t=N.getCurrentTime(),O,H,A=t+((H=(O=this.data)==null?void 0:O.playbackDurationMs)!=null?H:0)/1E3;N.addCueRange("playback",t,A);_.sl(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15851_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.V.onCueRangeExit=function(N){N==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.V.toggleMute=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(t.ytdPlayer.getPlayerPromise(),2);O=H.yieldResult;N?O.mute():O.unMute();_.Ty(H)})};
_.cv.Object.defineProperties(ZQ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var N,t;if(!((N=this.data)==null?0:(t=N.accessibilityData)==null?0:t.label))return"Ad primary link";var O,H;return _.CJ("AD_TITLE",{title:(O=this.data)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label})}}});
ZQ.prototype.onYtMastheadHidden=ZQ.prototype.onYtMastheadHidden;ZQ.prototype.onYtNavigate=ZQ.prototype.onYtNavigate;ZQ.prototype.onYtToggleButton=ZQ.prototype.onYtToggleButton;ZQ.prototype.dataChanged=ZQ.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ZQ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ZQ.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],ZQ.prototype,"useYtdPlayer",void 0);_.W([_.B2("ytd-toggle-button-renderer"),_.Q("design:type",Object)],ZQ.prototype,"muteButton",void 0);_.W([_.X(),_.Q("design:type",Object)],ZQ.prototype,"buttonOverrides",void 0);
_.W([_.a("data.accessibilityData.label"),_.Q("design:type",String),_.Q("design:paramtypes",[])],ZQ.prototype,"titleAriaLabel",null);_.W([_.B2("#replay-button"),_.Q("design:type",Object)],ZQ.prototype,"replayButton",void 0);_.W([_.B2("#player-container"),_.Q("design:type",Object)],ZQ.prototype,"playerContainer",void 0);_.W([_.B2("#player"),_.Q("design:type",Object)],ZQ.prototype,"embeddedPlayer",void 0);_.W([_.B2("#ytd-player"),_.Q("design:type",Object)],ZQ.prototype,"ytdPlayer",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZQ.prototype,"dataChanged",null);_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ZQ.prototype,"onYtToggleButton",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ZQ.prototype,"onYtNavigate",null);
_.W([_.dz("yt-masthead-hidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZQ.prototype,"onYtMastheadHidden",null);_.W([_.en({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],ZQ);
_.n(ZQ,"ytd-video-masthead-ad-primary-video-renderer",function(){if(yjr!==void 0)return yjr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yjr=N},{mode:2});var BoR;var Vb=function(){var N=_.k.apply(this,arguments)||this;N.collapsed=!1;N.impressionResolver=_.lj();N.JSC$15855_activeViewMeasurementDataResolver=_.lj();N.actionMap={"yt-mute-ad-action":"handleMuteAd"};return N};
_.p(Vb,_.k);_.V=Vb.prototype;_.V.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.created=function(){this.activeView=new PF(this.hostElement)};
_.V.ready=function(){var N=this;_.O6(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){N.expandAd()});
this.hostElement.addEventListener("yt-action",function(t){if(t.detail.actionName==="yt-service-request"){var O=t.detail.args[1];O.videoMastheadAdMuteCommand&&(N.collapseAd(O.videoMastheadAdMuteCommand.encryptedMastheadId),t.stopPropagation())}})};
_.V.attached=function(){var N=this;_.nO(function(){N.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(t){if(!N.collapsed){t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=O.value,Z4(O.baseUrl,O.attributionSrcMode);N.data.impressionCommand=void 0}});
this.JSC$15855_activeViewMeasurementDataResolver.promise.then(function(t){X7(N.activeView,t)});
_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xt(N.activeView)})};
_.V.dataChanged=function(){var N;((N=this.data.impressionCommand)==null?0:N.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var t;((t=this.data)==null?0:t.activeView)&&this.JSC$15855_activeViewMeasurementDataResolver.resolve(this.data.activeView);(N=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(N.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.V.computeWidescreen=function(N){var t;return!!(N&&((t=_.M(N,xBB))==null?0:t.isWidescreen))};
_.V.computeExpandable=function(N){return!!(N&&N.length>0)};
_.V.onIronResize=function(){if(this.expandable){var N=_.O6(this.hostElement).querySelector("#expandable-tile-container :first-child");N&&!N.expanded&&(N.expanded=!0)}};
_.V.handleMuteAd=function(){this.collapseAd(null)};
_.V.restoreCollapsedState=function(N){this.collapsed=_.d0().get("HIDDEN_MASTHEAD_ID")===N};
_.V.collapseAd=function(N){if(N){var t=_.d0();t.set("HIDDEN_MASTHEAD_ID",N);t.save()}(N=_.O6(this.hostElement).querySelector("#video"))&&_.or(N,"yt-masthead-hidden");this.collapsed=!0};
_.V.expandAd=function(){var N=_.d0();N.set("HIDDEN_MASTHEAD_ID",!1);N.save();location.reload()};
_.V.detached=function(){_.h("stop_av_measurement_on_detach")&&xt(this.activeView)};
Vb.prototype.onIronResize=Vb.prototype.onIronResize;Vb.prototype.dataChanged=Vb.prototype.dataChanged;_.W([_.Y(_.JV),_.Q("design:type",Object)],Vb.prototype,"ironResizableBehavior",void 0);_.W([_.Y(_.d4),_.Q("design:type",Object)],Vb.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Vb.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Vb.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Vb.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Q("design:type",Boolean)],Vb.prototype,"widescreen",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Q("design:type",Boolean)],Vb.prototype,"expandable",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Vb.prototype,"collapsed",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vb.prototype,"dataChanged",null);_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vb.prototype,"onIronResize",null);_.W([_.en({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Vb);
_.n(Vb,"ytd-video-masthead-ad-v3-renderer",function(){if(BoR!==void 0)return BoR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return BoR=N},{mode:2});var DQ=function(){return _.k.apply(this,arguments)||this};
_.p(DQ,_.k);_.V=DQ.prototype;_.V.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.V.ready=function(){var N=this;NWO(function(){N.isAttached&&GE(N.JSC$15860_storedAdSlotMetadata,N.JSC$15860_storedAdLayoutMetadata,N.adSlotMetadata,N.adLayoutMetadata)&&GO(mR(),N.JSC$15860_storedAdSlotMetadata,N.JSC$15860_storedAdLayoutMetadata)})};
_.V.attached=function(){GE(this.JSC$15860_storedAdSlotMetadata,this.JSC$15860_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&mIS(mR(),this.JSC$15860_storedAdSlotMetadata,this.JSC$15860_storedAdLayoutMetadata)};
_.V.detached=function(){GE(this.JSC$15860_storedAdSlotMetadata,this.JSC$15860_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&GO(mR(),this.JSC$15860_storedAdSlotMetadata,this.JSC$15860_storedAdLayoutMetadata)};
_.V.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15860_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15860_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15860_storedAdLayoutMetadata!==void 0&&this.JSC$15860_storedAdSlotMetadata!==void 0&&GO(mR(),this.JSC$15860_storedAdSlotMetadata,this.JSC$15860_storedAdLayoutMetadata),mIS(mR(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15860_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15860_storedAdSlotMetadata=this.adSlotMetadata)};
_.cv.Object.defineProperties(DQ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.adLayoutMetadata}}});
DQ.prototype.onAdMetadataChanged=DQ.prototype.onAdMetadataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],DQ.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DQ.prototype,"data",void 0);_.W([_.a("data.adLayoutMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DQ.prototype,"adLayoutMetadata",null);
_.W([_.X(),_.Q("design:type",Object)],DQ.prototype,"adSlotMetadata",void 0);_.W([_.gz("adLayoutMetadata","adSlotMetadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DQ.prototype,"onAdMetadataChanged",null);_.W([_.en({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],DQ);
_.n(DQ,"ytd-page-top-ad-layout-renderer",function(){if(CJu!==void 0)return CJu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return CJu=
N},{mode:_.O4("kevlar_poly_si_batch_j070")?1:2});var cj_;var Uu=function(){var N=_.k.apply(this,arguments)||this;N.noBottomMargin=!1;N.overlayDensity=0;N.typographyBump=!1;N.extractOverlay=!1;N.extractActionBar=!1;return N};
_.p(Uu,_.k);_.V=Uu.prototype;
_.V.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.V.ready=function(){var N=this;NWO(function(){N.isAttached&&N.adSlotMetadata&&QiX(mR(),N.adSlotMetadata)})};
_.V.attached=function(){if(this.adSlotMetadata){var N;if(this.adSlotMetadata===((N=this.data)==null?void 0:N.adSlotMetadata))lKf(mR(),this.adSlotMetadata);else{var t;_.J_(Error("Oh`"+this.adSlotMetadata+"`"+((t=this.data)==null?void 0:t.adSlotMetadata)))}}};
_.V.detached=function(){this.adSlotMetadata&&QiX(mR(),this.adSlotMetadata)};
_.V.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.V.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&QiX(mR(),this.adSlotMetadata),lKf(mR(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.cv.Object.defineProperties(Uu.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var N,t,O=_.M((N=this.data)==null?void 0:(t=N.fulfillmentContent)==null?void 0:t.fulfilledLayout,_.qtS),H;return(N=(H=_.M(O==null?void 0:O.renderingContent,k4X))==null?void 0:H.layout)?N.toLowerCase().replace(/_/g,"-"):""}}});
Uu.prototype.onAdSlotMetadataChanged=Uu.prototype.onAdSlotMetadataChanged;Uu.prototype.onTypographyBumpChanged=Uu.prototype.onTypographyBumpChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Uu.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Uu.prototype,"rendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Uu.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Uu.prototype,"noBottomMargin",void 0);_.W([_.X(),_.Q("design:type",Object)],Uu.prototype,"overlayDensity",void 0);_.W([_.X(),_.Q("design:type",Object)],Uu.prototype,"typographyBump",void 0);_.W([_.X(),_.Q("design:type",Object)],Uu.prototype,"extractOverlay",void 0);_.W([_.X(),_.Q("design:type",Object)],Uu.prototype,"extractActionBar",void 0);
_.W([_.B2("ytd-in-feed-ad-layout-renderer"),_.Q("design:type",HTMLElement)],Uu.prototype,"inFeedAdLayoutRenderer",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Uu.prototype,"layout",null);_.W([_.gz("typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uu.prototype,"onTypographyBumpChanged",null);
_.W([_.gz("data.adSlotMetadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uu.prototype,"onAdSlotMetadataChanged",null);_.W([_.en({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Uu);
_.n(Uu,"ytd-ad-slot-renderer",function(){if(cj_!==void 0)return cj_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return cj_=N},{mode:_.O4("kevlar_poly_si_batch_j077")?
1:2});var $6B;var C6=function(){return _.k.apply(this,arguments)||this};
_.p(C6,_.k);_.V=C6.prototype;_.V.created=function(){this.activeView=new PF(this.hostElement)};
_.V.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V.maybeComputeHref=function(){return null};
_.V.onTap=function(){};
_.V.onThumbnailContainerClick=function(N){this.onClick(N)};
_.V.onClick=function(N){var t,O=(t=this.data)==null?void 0:t.navigationEndpoint;O&&_.M(O,_.rN)&&(this.ytSparklesClickLocationBehavior.handleClick(O,N,!1),N.stopPropagation())};
_.V.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var N=_.D(this.data.impressionUrls),t=N.next();!t.done;t=N.next())t=t.value,IrM(t,QHO(t));this.data.activeView&&X7(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",C6.JSC$15868_DEFAULT_CLICK_LOCATION_BEHAVIOR,C6.JSC$15868_CLICK_LOCATION_ID_MAP);this.thumbnail&&(N=this.thumbnail.getElementsByTagName("a"),N.length>0&&(N=N.namedItem("thumbnail"))&&N.removeAttribute("href"))}};
_.V.attached=function(){var N=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&xt(N.activeView)})};
_.V.detached=function(){_.h("stop_av_measurement_on_detach")&&xt(this.activeView)};
_.cv.Object.defineProperties(C6.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
C6.prototype.dataChanged=C6.prototype.dataChanged;C6.prototype.onTap=C6.prototype.onTap;C6.JSC$15868_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
C6.JSC$15868_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"}];_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],C6.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],C6.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],C6.prototype,"ytSparklesClickLocationBehavior",void 0);
_.W([_.X({selector:_.wq}),_.Q("design:type",Object)],C6.prototype,"isGridViewEnabled",void 0);_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],C6.prototype,"watchFeedBigThumbs",null);_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],C6.prototype,"thumbnailWidth",null);_.W([_.X(),_.Q("design:type",Object)],C6.prototype,"data",void 0);
_.W([_.B2("ytd-thumbnail"),_.Q("design:type",HTMLElement)],C6.prototype,"thumbnail",void 0);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],C6.prototype,"onTap",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],C6.prototype,"dataChanged",null);_.W([_.en({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],C6);
_.n(C6,"ytd-compact-promoted-video-renderer",function(){if($6B!==void 0)return $6B;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return $6B=N},{mode:1});var jmB;_.pE("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var K6=function(){return _.k.apply(this,arguments)||this};
_.p(K6,_.k);K6.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],K6.prototype,"data",void 0);_.W([_.en({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],K6);
_.n(K6,"ytd-search-pyv-renderer",function(){if(jmB!==void 0)return jmB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return jmB=N},{mode:1});var irE;_.pE("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var F4=function(){var N=_.k.apply(this,arguments)||this;N.roundedContainer=!0;N.JSC$15876_handleOpenPostCommentDialogActionAfterStamp=!1;N.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return N};
_.p(F4,_.k);_.V=F4.prototype;
_.V.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.V.onStampFinished=function(){this.JSC$15876_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var N=_.O6(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");N?N.openDialog():this.JSC$15876_handleOpenPostCommentDialogActionAfterStamp=!0};
_.V.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.V.computeHideBorder=function(){return this.isInEngagementPanel};
_.V.computeIsCompact=function(){return this.isInEngagementPanel};
_.V.computeUsesCompactLockup=function(N){return N==="BACKSTAGE_SURFACE_TYPE_HOME"||N==="BACKSTAGE_SURFACE_TYPE_SEARCH"||N==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||N==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||N==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||N==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.V.computeUsesFullLockup=function(){var N,t=(N=this.data)==null?void 0:N.post,O;N=(O=_.M(t,JLp))==null?void 0:O.surface;var H;O=(H=_.M(t,NHQ))==null?void 0:H.originalPost;var A;if(H=N||((A=_.M(O,JLp))==null?void 0:A.surface))return!this.computeUsesCompactLockup(H)&&this.useUpdatedRepostUi;var Z;return((Z=_.M(t,NHQ))==null?void 0:Z.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.cv.Object.defineProperties(F4.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var N,t;return((t=_.M((N=this.data)==null?void 0:N.post,JLp))==null?void 0:t.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.useUpdatedRepostUi}}});
F4.prototype.onYtCommentModerationPanelEmpty=F4.prototype.onYtCommentModerationPanelEmpty;F4.prototype.onStampFinished=F4.prototype.onStampFinished;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],F4.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],F4.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],F4.prototype,"roundedContainer",void 0);_.W([_.X({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],F4.prototype,"hideBorder",void 0);_.W([_.X({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],F4.prototype,"isCompact",void 0);
_.W([_.X({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],F4.prototype,"usesFullLockup",void 0);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],F4.prototype,"onStampFinished",null);
_.W([_.dz("ytd-comment-moderation-panel-empty"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],F4.prototype,"onYtCommentModerationPanelEmpty",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],F4.prototype,"isInEngagementPanel",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],F4.prototype,"useUpdatedRepostUi",null);
_.W([_.en({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],F4);
_.n(F4,"ytd-backstage-post-thread-renderer",function(){if(irE!==void 0)return irE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return irE=N},{mode:1});var uKu;var dX=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(dX,_.k);dX.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
dX.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var N=this.data.thumbnail.thumbnails;this.isDarkTheme&&(N=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(N=_.s4(N,24,void 0,"height"))?N:void 0}};
dX.prototype.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
dX.prototype.computeHasText=function(){var N;return!((N=this.data)==null||!N.text)};
_.cv.Object.defineProperties(dX.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Id(this.bannerImageUrl))+'");'}}});
dX.prototype.computeHasText=dX.prototype.computeHasText;dX.prototype.computeBannerImageUrl=dX.prototype.computeBannerImageUrl;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],dX.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],dX.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],dX.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],dX.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",String)],dX.prototype,"bannerImageUrl",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Q("design:type",Boolean)],dX.prototype,"hasText",void 0);_.W([_.gz("data","isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dX.prototype,"computeBannerImageUrl",null);
_.W([_.gz("data.text"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dX.prototype,"computeHasText",null);_.W([_.a("bannerImageUrl"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],dX.prototype,"bannerStyle",null);_.W([_.en({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],dX);
_.n(dX,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(uKu!==void 0)return uKu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return uKu=N},{mode:1});var SBX;var gX=function(){return _.k.apply(this,arguments)||this};
_.p(gX,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gX.prototype,"data",void 0);_.W([_.en({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],gX);
_.n(gX,"ytd-backstage-zero-state-renderer",function(){if(SBX!==void 0)return SBX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return SBX=N},{mode:1});var h00;var yb=function(){return _.k.apply(this,arguments)||this};
_.p(yb,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yb.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],yb.prototype,"icon",void 0);_.W([_.en({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],yb);
_.n(yb,"ytd-post-filter-zero-state-renderer",function(){if(h00!==void 0)return h00;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return h00=N},{mode:1});var bra;var peE={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},BI=function(){return _.k.apply(this,arguments)||this};
_.p(BI,_.k);BI.prototype.configureRendererStamper=function(){return peE};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],BI.prototype,"rendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],BI.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],BI.prototype,"icon",void 0);_.W([_.en({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],BI);
_.n(BI,"ytd-post-scheduling-zero-state-renderer",function(){if(bra!==void 0)return bra;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return bra=N},{mode:1});var LlX;var cI=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return N};
_.p(cI,_.k);cI.prototype.onTabsActivate=function(N){this.data&&this.data.tabs&&_.or(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[N.detail.selected].navigationEndpoint})};
cI.prototype.shouldShowTotalCount=function(N){return N&&N.totalCount!==void 0};
cI.prototype.handleUpdatePostsTotalCountAction=function(N){var t=this.get(["data.tabs",1,"totalCount"]),O=this.get("updatePostsTotalCountAction.updateType",N);N=this.get("updatePostsTotalCountAction.number",N);t!==void 0&&O!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&N&&(O==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(t)+N):O==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(t)-N))};
_.cv.Object.defineProperties(cI.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var N=0,t=this.data.tabs.length;N<t;N++)if(this.data.tabs[N].selected)return N;return 0}}});
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],cI.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cI.prototype,"rendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cI.prototype,"data",void 0);_.W([_.a("data.tabs"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],cI.prototype,"selected",null);_.W([_.en({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],cI);
_.n(cI,"ytd-post-stream-filter-renderer",function(){if(LlX!==void 0)return LlX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return LlX=N},{mode:1});var z0y;var $u=function(){return _.k.apply(this,arguments)||this};
_.p($u,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$u.prototype,"kevlarBehaviors",void 0);_.W([_.X(),_.Q("design:type",Object)],$u.prototype,"data",void 0);_.W([_.en({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],$u);
_.n($u,"ytd-channel-age-gate-renderer",function(){if(z0y!==void 0)return z0y;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return z0y=N},{mode:1});var YBy;_.pE("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var jd=function(){var N=_.k.apply(this,arguments)||this;N.data=null;return N};
_.p(jd,_.k);jd.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.cv.Object.defineProperties(jd.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.data)==null?0:(t=N.title)==null?0:(O=t.runs)==null?0:O.length)?147:160}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jd.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],jd.prototype,"imageSizePx",null);_.W([_.en({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],jd);
_.n(jd,"ytd-channel-owner-empty-state-renderer",function(){if(YBy!==void 0)return YBy;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return YBy=N},{mode:1});var aME;var Tou;var is=function(){var N=_.k.apply(this,arguments)||this;N.boundSubmitSearch=function(){N.submitSearch()};
N.boundClearSearch=function(){N.clearSearch()};
return N};
_.p(is,_.k);_.V=is.prototype;_.V.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.V.toggleClearButton=function(){this.hideClearButton=Exu||!this.input.value};
_.V.submitOnEnterKeyUp=function(N){N.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.V.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.V.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.V.submit=function(){_.or(this.hostElement,"search-query-changed",this.input.value)};
is.prototype.toggleClearButton=is.prototype.toggleClearButton;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],is.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],is.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],is.prototype,"hideClearButton",void 0);_.W([_.X(),_.Q("design:type",Object)],is.prototype,"boundSubmitSearch",void 0);_.W([_.X(),_.Q("design:type",Object)],is.prototype,"boundClearSearch",void 0);_.W([_.B2("#input"),_.Q("design:type",Object)],is.prototype,"input",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],is.prototype,"toggleClearButton",null);
_.W([_.en({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],is);
_.n(is,"ytd-channel-switcher-search-box-renderer",function(){if(Tou!==void 0)return Tou;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Tou=N},{mode:1});var weE;var us=function(){var N=_.k.apply(this,arguments)||this;N.boundSubmit=function(){N.submit()};
return N};
_.p(us,_.k);_.V=us.prototype;_.V.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V.ready=function(){var N=this;this.form.addEventListener("submit",function(t){return N.onSubmit(t)})};
_.V.onSubmit=function(N){N.preventDefault();return!1};
_.V.toggleClearButton=function(){this.hideClearButton=Exu||!this.input.value};
_.V.submitOnEnterKeyUp=function(N){N.keyCode===13&&this.submit()};
_.V.submit=function(){var N=this.data.endpoint,t=(0,_.WW.unsafeClone)(N);_.M(t,_.yE)?_.M(t,_.yE).query=this.input.value:_.M(t,_.Bi)&&(_.M(t,_.Bi).query=this.input.value);var O=_.M(t.commandMetadata,_.Da);(O==null?0:O.url)?(O.url=_.ty(O.url,"query",this.input.value),_.or(this.hostElement,"yt-navigate",{endpoint:t})):_.M(t,aXQ)?(_.M(t,aXQ).channelSwitcherQuery=this.input.value,_.cY().resolve(_.jo).resolveCommand(t,{form:{element:this.hostElement}})):(N=Error("Ph`"+JSON.stringify(N)),_.R0(N))};
_.V.getUrl=function(N){return this.get("commandMetadata.webCommandMetadata.url",N)};
us.prototype.toggleClearButton=us.prototype.toggleClearButton;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],us.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],us.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],us.prototype,"hideClearButton",void 0);
_.W([_.X(),_.Q("design:type",Object)],us.prototype,"boundSubmit",void 0);_.W([_.B2("#form"),_.Q("design:type",HTMLFormElement)],us.prototype,"form",void 0);_.W([_.B2("#input"),_.Q("design:type",Object)],us.prototype,"input",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],us.prototype,"toggleClearButton",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],us);
_.n(us,"ytd-search-box-renderer",function(){if(weE!==void 0)return weE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return weE=N},{mode:2});var Sd=function(){var N=_.k.apply(this,arguments)||this;N.showSearchBox=!0;return N};
_.p(Sd,_.k);Sd.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Sd.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Sd.prototype,"showSearchBox",void 0);_.W([_.en({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Sd);
_.n(Sd,"ytd-channel-switcher-header-renderer",function(){if(aME!==void 0)return aME;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return aME=N},{mode:1});var e0Q;var PJa;var hf=function(){var N=_.k.apply(this,arguments)||this;N.isDisplayed=!0;return N};
_.p(hf,_.k);_.V=hf.prototype;_.V.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.isDisplayed=!0};
_.V.computeType=function(N){return N||"UNKNOWN"};
_.V.onYtServiceRequestCompleted=function(N){N.stopPropagation();this.isDisplayed=!1};
_.V.onClose=function(){this.isDisplayed=!1};
hf.prototype.onYtServiceRequestCompleted=hf.prototype.onYtServiceRequestCompleted;hf.prototype.dataChanged=hf.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hf.prototype,"data",void 0);
_.W([_.X({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Q("design:type",String)],hf.prototype,"type",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],hf.prototype,"isDisplayed",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hf.prototype,"dataChanged",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],hf.prototype,"onYtServiceRequestCompleted",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],hf);
_.n(hf,"ytd-alert-with-button-renderer",function(){if(PJa!==void 0)return PJa;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return PJa=N},{mode:1});var Ml=function(){var N=_.k.apply(this,arguments)||this;N.noResult=!1;N.enableAlertBanner=!1;N.dismissedAlertBanner=!1;N.hideCreateChannelButton=!1;N.boundDismissAlertBanner=function(){N.dismissAlertBanner()};
N.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return N};
_.p(Ml,_.k);_.V=Ml.prototype;_.V.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.V.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.V.updateChannelSwitcherAction=function(N){var t;N=(t=_.M(N,pba))==null?void 0:t.page;_.M(N,b7y)!==void 0&&(this.data=_.M(N,b7y))};
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.searchQueryChanged=function(N,t){if(this.data&&this.data.contents&&this.data.contents.length){N=[];var O=[];this.hideCreateChannelButton=this.noResult=!1;for(var H=document.querySelectorAll("ytd-account-item-renderer"),A=_.D(H),Z=A.next();!Z.done;Z=A.next())Z=Z.value,O.push(Z),Z.style.display="block";this.resetRightBorder(O);if(t){this.hideCreateChannelButton=!0;for(O=1;O<this.data.contents.length;O++)if(Z=this.data.contents[O],_.M(Z,LjE)){var U=void 0,C=void 0;A=(U=_.M(Z,LjE))==null?void 0:(C=
U.accountName)==null?void 0:C.simpleText;C=U=void 0;Z=(U=_.M(Z,LjE))==null?void 0:(C=U.channelHandle)==null?void 0:C.simpleText;(U=H[O-1])&&A&&_.dt(A,t)?N.push(U):_.h("enable_handle_search_on_channel_switcher")&&U&&Z&&_.dt(Z.toString(),t.toString())?N.push(U):U.style.display="none"}N.length===0&&(this.noResult=!0);this.resetRightBorder(N)}}};
_.V.resetRightBorder=function(N){for(var t=0;t<N.length;t++)N[t].style.borderRight=!this.hideCreateChannelButton&&(t+2)%3===0||this.hideCreateChannelButton&&(t+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.V.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.V.setShowSearchBox=function(N){if(N&&N.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var t=0;t<N.contents.length;t++)_.M(N.contents[t],_.vy)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.V.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.cv.Object.defineProperties(Ml.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.contents)}}});
Ml.prototype.onContinuationItemsUpdated=Ml.prototype.onContinuationItemsUpdated;Ml.prototype.searchQueryChanged=Ml.prototype.searchQueryChanged;Ml.prototype.onDataChanged=Ml.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ml.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Ml.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],Ml.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ml.prototype,"data",void 0);_.W([_.B2("ytd-channel-switcher-header-renderer"),_.Q("design:type",Object)],Ml.prototype,"channelSwitcherHeaderRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],Ml.prototype,"noResult",void 0);
_.W([_.X(),_.Q("design:type",Object)],Ml.prototype,"enableAlertBanner",void 0);_.W([_.X(),_.Q("design:type",Object)],Ml.prototype,"dismissedAlertBanner",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ml.prototype,"hideCreateChannelButton",void 0);_.W([_.a("data.contents"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ml.prototype,"isLoading",null);_.W([_.X(),_.Q("design:type",Object)],Ml.prototype,"boundDismissAlertBanner",void 0);
_.W([_.X({computed:"computeButtonOverride()"}),_.Q("design:type",Object)],Ml.prototype,"buttonOverride",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ml.prototype,"onDataChanged",null);_.W([_.dz("search-query-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,String]),_.Q("design:returntype")],Ml.prototype,"searchQueryChanged",null);
_.W([_.dz("yt-next-continuation-data-updated"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ml.prototype,"onContinuationItemsUpdated",null);_.W([_.en({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Ml);
_.n(Ml,"ytd-channel-switcher-page-renderer",function(){if(e0Q!==void 0)return e0Q;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return e0Q=N},{mode:1});var Xer;var x6p;var bs=function(){var N=_.k.apply(this,arguments)||this;N.images=[];N.selectedImageIndex=0;return N};
_.p(bs,_.k);_.V=bs.prototype;
_.V.ready=function(){_.SF(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.SF(this.JSC$15921_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.SF(this.JSC$15921_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.SF(this.JSC$15921_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.V.onThumbnailClick=function(N){if(N=N.event_.detail)this.selectedImageIndex=this.images.indexOf(N)};
_.V.updateImageThumbnails=function(N){N=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:N.event_.detail});this.images.splice(this.selectedImageIndex,1,N);this.images=[].concat(_.W6(this.images))};
_.V.cancelImageRepositions=function(){this.selectedImageIndex=0;_.or(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.V.saveImageRepositions=function(){this.selectedImageIndex=0;_.or(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.cv.Object.defineProperties(bs.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var N=this;return(this.images||[]).map(function(t,O){return{image:t,selected:O===N.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("ytd-backstage-image-preview-renderer"),_.Q("design:type",Object)],bs.prototype,"JSC$15921_imagePreviewContainer",void 0);_.W([_.B2(".thumbnail-images-container"),_.Q("design:type",HTMLElement)],bs.prototype,"thumbnailImagesContainer",void 0);_.W([_.X(),_.Q("design:type",Array)],bs.prototype,"images",void 0);
_.W([_.X(),_.Q("design:type",Object)],bs.prototype,"repositionInstructions",void 0);_.W([_.X(),_.Q("design:type",Object)],bs.prototype,"selectedImageIndex",void 0);_.W([_.a("images","selectedImageIndex"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],bs.prototype,"thumbnailRendererDatas",null);_.W([_.a("images","selectedImageIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bs.prototype,"selectedImageData",null);
_.W([_.en({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],bs);
_.n(bs,"ytd-backstage-multi-image-reposition-renderer",function(){if(x6p!==void 0)return x6p;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return x6p=N},{mode:1});var p6=function(N,t){_.Xm.call(this);this.uploadUrl=N;this.channelId=t;this.imagesUploadData=[]};
_.p(p6,_.Xm);p6.prototype.getAllUploadStatuses=function(){var N=this,t,O,H;return _.K(function(A){if(A.nextAddress==1)return A.yield(kfp(N),2);t=A.yieldResult;O=t.get("succeed");H=t.get("failed");return A.return(O.concat(H))})};
var fMY=function(N){var t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(kfp(N),2);t=H.yieldResult;O=t.get("failed");O.length>0&&qBu(N,O);return H.return(N.getAllUploadStatuses())})},kfp=function(N){var t,O,H,A,Z,U,C;
return _.K(function(F){if(F.nextAddress==1)return t=new Map,F.yield(Promise.allSettled(N.imagesUploadData.map(function(g){return g.uploadPromise})),2);
O=F.yieldResult;H=[];A=_.D(O);for(Z=A.next();!Z.done;Z=A.next())U=Z.value,U.status==="fulfilled"&&H.push(U.value);C=N.imagesUploadData.map(function(g){return g.image}).filter(function(g){return H.every(function(B){return B.id!==g.id})});
t.set("succeed",H);t.set("failed",C);return F.return(t)})},qBu=function(N,t){t=_.D(t);
for(var O=t.next();!O.done;O=t.next()){var H=N;O=O.value;nRR(H,O.id)>=0&&H.cancel(O.id);var A=new WlR(O),Z=_.Bkp(H.uploadUrl,{"X-YouTube-ChannelId":H.channelId},O.imageBlob);A.transfer=Z;A.uploadPromise=rjr(Z,O);H.imagesUploadData.push(A);Z.run()}};
p6.prototype.cancel=function(N){var t=nRR(this,N);t!==-1&&((t=this.imagesUploadData[t].transfer)&&t.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(O){return O.image.id!==N}))};
var nRR=function(N,t){return N.imagesUploadData.findIndex(function(O){return O.image.id===t})},rjr=function(N,t){return new Promise(function(O,H){N.listen("l",function(){var A=N.getResponseText();
A?(A=JSON.parse(A).encryptedBlobId,t.encryptedBlobId=A,O(t)):H("upload failed")});
N.listen("n",function(){H("upload failed")})})},WlR=function(N){this.image=N};var lDQ=function(N,t,O,H,A){this.id=N;this.imageBlob=t;this.localImageSrc=O;this.naturalWidth=H;this.naturalHeight=A;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 IMX=[".jpeg",".jpg",".png"],L6=function(){var N=_.k.apply(this,arguments)||this;N.showImagesPreview=!1;N.pollOptions=[];N.errorMessage="";N.optionPlaceholderText="";N.optionDefaultText="";N.JSC$15932_imageId=0;N.maxFileSizeMb=0;N.maxAspectRatio=0;N.invalidFileSizeError="";N.invalidAspectRatioError="";N.invalidFileTypeError="";N.imageSelector=new X6(null,"single_file",IMX);return N};
_.p(L6,_.k);_.V=L6.prototype;_.V.ready=function(){_.SF(this.imageSelector,"j",this.onImageSelect,!1,this);_.SF(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.SF(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.V.dataChanged=function(){var N,t,O=_.M((N=this.data)==null?void 0:(t=N.cellTemplate)==null?void 0:t.onEmptyCellTap,Vty);if(O&&O.uploadUrl&&O.channelId){var H;this.maxFileSizeMb=((H=O.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0;var A;this.maxAspectRatio=((A=O.imageValidationInfo)==null?void 0:A.allowedMaxAspectRatio)||0;var Z;this.invalidFileSizeError=this.getSimpleString((Z=this.data)==null?void 0:Z.invalidFileSizeError);var U;this.invalidAspectRatioError=this.getSimpleString((U=this.data)==
null?void 0:U.invalidAspectRatioError);var C;this.invalidFileTypeError=this.getSimpleString((C=this.data)==null?void 0:C.invalidFileTypeError);this.uploadManager=new p6(O.uploadUrl,O.channelId)}};
_.V.onEditorInfoChange=function(){this.optionPlaceholderText=_.Gv(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Gv(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.V.observeAddImageError=function(){this.errorMessage!==""&&_.or(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.V.onPollOptionsChange=function(){for(var N=!1,t=[],O=0;O<this.pollOptions.length;O++){var H=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(O+1);this.pollOptions[O].placeholderText!==H?(N=!0,t.push(Object.assign({},this.pollOptions[O],{placeholderText:H}))):t.push(this.pollOptions[O])}N&&(this.pollOptions=t);this.isValid()?_.or(this.hostElement,"yt-commentbox-post-enable"):_.or(this.hostElement,"yt-commentbox-post-disable")};
_.V.createPollOptions=function(N){var t=[],O;N=(O=N==null?void 0:N.minPollOptions)!=null?O:0;for(O=0;O<N;O++)t.push(this.createPollOption());return t};
_.V.onImageSelect=function(N){var t=this,O,H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1){if(t.selectedImageIndex===void 0)return F.jumpTo(0);O=N.files[0];t.errorMessage="";H=t.validateImage(O);if(H!=="")return t.errorMessage=H,F.return();A=new pY(t.maxAspectRatio,!1,!0);return F.yield(A.transform(O),3)}if(F.nextAddress!=4)return Z=F.yieldResult,Z.transformedData?Z.invalidAspectRatio?(t.errorMessage=t.invalidAspectRatioError,F.return()):F.yield(QLg(t.JSC$15932_imageId,N.files[0],Z.transformedData),
4):(t.errorMessage=t.invalidFileTypeError,F.return());U=F.yieldResult;t.JSC$15932_imageId++;qBu(t.uploadManager,[U]);C=Object.assign({},t.pollOptions[t.selectedImageIndex],{image:U});t.pollOptions.splice(t.selectedImageIndex,1,C);t.refreshPollOptions();_.or(t.hostElement,"yt-backstage-poll-image-select");_.Ty(F)})};
_.V.validateImage=function(N){return N.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.V.refreshPollOptions=function(){this.pollOptions=[].concat(_.W6(this.pollOptions))};
_.V.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.W6(this.pollOptions),[this.createPollOption()]))};
_.V.onRemovePollOption=function(N){var t=this.pollOptions[N.model.index];t&&t.image&&this.uploadManager.cancel(t.image.id);this.pollOptions.splice(N.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.or(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.V.onTextInput=function(){this.refreshPollOptions()};
_.V.onImageButtonClick=function(N){this.selectedImageIndex=N.model.index;this.imageSelector.click()};
_.V.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.V.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.V.saveImageRepositions=function(N){N=N.event_.detail;for(var t=0,O=[],H=_.D(this.pollOptions),A=H.next();!A.done;A=H.next())A=A.value,A.image!==void 0?(A=Object.assign({},A,{image:N[t]}),O.push(A),t++):O.push(A);this.showImagesPreview=!1;this.pollOptions=[].concat(_.W6(O))};
_.V.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var N=0,t=_.D(this.pollOptions),O=t.next();!O.done;O=t.next())if(O=O.value,O.optionText.trim()!==""||O.image!==void 0){if(!O.image||this.hasCustomOptionText&&O.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;N++}return N>=Number(this.editorInfo.minPollOptions)};
_.V.getAllUploadStatuses=function(){var N=this,t,O,H,A;return _.K(function(Z){if(Z.nextAddress==1)return Z.yield(N.uploadManager.getAllUploadStatuses(),2);t=Z.yieldResult;O=_.D(t);for(H=O.next();!H.done;H=O.next())if(A=H.value,A.encryptedBlobId===void 0)return Z.return(fMY(N.uploadManager));return Z.return(t)})};
_.V.getPostCreateOptions=function(){for(var N=[],t=_.D(this.pollOptions),O=t.next();!O.done;O=t.next())O=O.value,O.image!==void 0&&N.push({text:this.hasCustomOptionText?O.optionText:O.placeholderText,image:O.image});return N};
_.V.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.V.createButtonRenderer=function(N,t){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:N,accessibilityData:{accessibilityData:{label:this.getSimpleString(N)}},isDisabled:t}};
_.V.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.V.computeThumbnailRendererData=function(N){return N?{image:N,selected:!1}:void 0};
_.V.getSimpleString=function(N){return _.Gv(N)};
_.V.updateOptionTextFromBinding=function(N){if(N.target){var t=Array.from(_.O6(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(N.target);if(t>=0){var O;this.pollOptions[t].optionText=(O=N.detail.value)!=null?O:""}}};
_.cv.Object.defineProperties(L6.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var N,t;return this.pollOptions.length<((t=(N=this.editorInfo)==null?void 0:N.maxPollOptions)!=null?t:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(N){return N.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(N){return N.image}).map(function(N){return N.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(N){return N.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.data)==null?void 0:N.addOptionButtonText;return t?this.createButtonRenderer(t,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.data)==null?void 0:N.repositionImagesButtonLabel;return t?this.createButtonRenderer(t,!this.hasImages):void 0}}});
L6.prototype.onPollOptionsChange=L6.prototype.onPollOptionsChange;L6.prototype.observeAddImageError=L6.prototype.observeAddImageError;L6.prototype.onEditorInfoChange=L6.prototype.onEditorInfoChange;L6.prototype.dataChanged=L6.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("ytd-backstage-multi-image-reposition-renderer"),_.Q("design:type",Object)],L6.prototype,"imageRepositionContainer",void 0);
_.W([_.X(),_.Q("design:type",Object)],L6.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],L6.prototype,"editorInfo",void 0);_.W([_.X(),_.Q("design:type",p6)],L6.prototype,"uploadManager",void 0);_.W([_.X(),_.Q("design:type",Object)],L6.prototype,"showImagesPreview",void 0);_.W([_.X(),_.Q("design:type",Array)],L6.prototype,"pollOptions",void 0);_.W([_.X(),_.Q("design:type",Object)],L6.prototype,"errorMessage",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L6.prototype,"dataChanged",null);_.W([_.ic("editorInfo"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L6.prototype,"onEditorInfoChange",null);_.W([_.gz("errorMessage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L6.prototype,"observeAddImageError",null);
_.W([_.ic("pollOptions"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],L6.prototype,"onPollOptionsChange",null);_.W([_.a("pollOptions","editorInfo"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],L6.prototype,"isAllowedToAddOption",null);_.W([_.a("pollOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],L6.prototype,"hasImages",null);
_.W([_.a("pollOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],L6.prototype,"imagesToReposition",null);_.W([_.a("pollOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],L6.prototype,"hasCustomOptionText",null);_.W([_.a("data","isAllowedToAddOption"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],L6.prototype,"addOptionButton",null);_.W([_.a("data","hasImages"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],L6.prototype,"repositionImagesButton",null);
_.W([_.en({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],L6);
_.n(L6,"ytd-backstage-image-poll-editor-renderer",function(){if(Xer!==void 0)return Xer;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Xer=N},{mode:2});var lME={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 Qma;var z9=function(){var N=_.k.apply(this,arguments)||this;N.a11yConfig=lME;N.imageDisplayOffsetTop=0;N.imageDisplayOffsetLeft=0;N.pickerDisplayOffsetTop=0;N.pickerDisplayOffsetLeft=0;N.showPreviewContainer=!0;N.startPicker=!1;N.repositionOptional=!1;N.editOnlyMode=!1;N.savedImageDisplayOffsetTop=0;N.savedImageDisplayOffsetLeft=0;return N};
_.p(z9,_.k);_.V=z9.prototype;_.V.created=function(){_.Uk.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(N){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){N.detail.keyboardEvent.preventDefault();var t=0,O=0,H="";switch(N.detail.keyboardEvent.key){case "ArrowUp":m8N(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?H=this.a11yConfig.reachBottomOfImage:t=this.imageHeight*.05*-1;break;case "ArrowDown":m8N(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?H=this.a11yConfig.reachTopOfImage:
t=this.imageHeight*.05;break;case "ArrowLeft":m8N(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?H=this.a11yConfig.reachRightOfImage:O=this.imageWidth*.05*-1;break;case "ArrowRight":m8N(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?H=this.a11yConfig.reachLeftOfImage:O=this.imageWidth*.05}H&&_.CJ(H)&&_.or(this.hostElement,"iron-announce",{text:_.CJ(H)});if(O||t)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+t)),N=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),N=_.CJ(this.a11yConfig.imageVerticalPosition,{x_percent:""+N,y_percent:""+(100-N)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+O)),N=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),N=_.CJ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+N,y_percent:""+(100-N)})),N&&_.or(this.hostElement,"iron-announce",{text:N})}};
_.V.getPreviewPosition=function(N,t,O,H){return Math.round(100*(N+t*.5-O)/H)};
_.V.calculateDisplayPosition=function(){var N=this.imageData.naturalWidth,t=this.imageData.naturalHeight;this.displayScale=Math.max(200/N,200/t);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var O=N*this.displayScale*this.imageData.previewCoordinates.left,H=t*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=t>N?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-O;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=N>t?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-H;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=N*this.displayScale;this.imageHeight=t*this.displayScale};
_.V.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.V.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.V.getSignedPosition=function(N,t,O){return t==="X"&&_.Ro("HTML_DIR")==="rtl"?O==="-"?N+"px":N*-1+"px":O==="-"?N*-1+"px":N+"px"};
_.V.pickerMove=function(N){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var t=this.pickerOffsetX-N.clientX,O=this.pickerOffsetY-N.clientY;this.pickerOffsetX=N.clientX;this.pickerOffsetY=N.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
O)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-t))}};
_.V.pickerMoveStart=function(N){this.startPicker=!0;this.pickerOffsetX=N.clientX;this.pickerOffsetY=N.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var N=this.generateCropPreview();N&&_.or(this.hostElement,"ytd-backstage-image-preview-coordinates-update",N)};
_.V.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.or(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.V.deleteImage=function(){_.or(this.hostElement,"ytd-backstage-image-preview-delete")};
_.V.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.V.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var N=this.generateCropPreview();N&&_.or(this.hostElement,"ytd-backstage-image-preview-coordinates-save",N)};
_.V.getPreviewOffset=function(N,t,O){return t&&N?(O==="X"&&_.Ro("HTML_DIR")==="rtl"?300/t*N:300/t*N*-1)+"px":"0px"};
_.V.getSimpleText=function(N){return N?_.Gv(N):""};
_.V.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.cv.Object.defineProperties(z9.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var N=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.CJ(this.a11yConfig.imageVerticalPosition,{x_percent:""+N,y_percent:""+(100-N)})+"\n"+_.CJ(this.a11yConfig.verticalRepositionInstruction)}N=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.CJ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+N,y_percent:""+(100-N)})+"\n"+_.CJ(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.instruction)==null?void 0:(t=N.previewInstruction)==null?void 0:t.editButtonLabel;return O?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A=this.editOnlyMode?(N=this.instruction)==null?void 0:(t=N.editInstruction)==null?void 0:t.saveImagesButtonLabel:(O=this.instruction)==null?void 0:(H=O.editInstruction)==null?void 0:H.saveButtonLabel;return A?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleText(A)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.instruction)==null?void 0:(t=N.previewInstruction)==null?void 0:t.deleteButtonLabel;return O?{size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.instruction)==null?void 0:(t=N.editInstruction)==null?void 0:t.cancelButtonLabel;N=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return O?{style:N,size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}: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"}}});
z9.prototype.onEditOnlyModeUpdate=z9.prototype.onEditOnlyModeUpdate;z9.prototype.onImageChange=z9.prototype.onImageChange;_.W([_.X(),_.Q("design:type",lDQ)],z9.prototype,"imageData",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"instruction",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"a11yConfig",void 0);_.W([_.X(),_.Q("design:type",Number)],z9.prototype,"imageWidth",void 0);_.W([_.X(),_.Q("design:type",Number)],z9.prototype,"imageHeight",void 0);
_.W([_.X(),_.Q("design:type",Number)],z9.prototype,"displayScale",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"imageDisplayOffsetTop",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"imageDisplayOffsetLeft",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"pickerDisplayOffsetTop",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"pickerDisplayOffsetLeft",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"showPreviewContainer",void 0);
_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"startPicker",void 0);_.W([_.X(),_.Q("design:type",Number)],z9.prototype,"pickerOffsetX",void 0);_.W([_.X(),_.Q("design:type",Number)],z9.prototype,"pickerOffsetY",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"repositionOptional",void 0);_.W([_.X(),_.Q("design:type",Object)],z9.prototype,"editOnlyMode",void 0);_.W([_.B2("#picker-container"),_.Q("design:type",HTMLElement)],z9.prototype,"JSC$15945_pickerContainer",void 0);
_.W([_.B2("#picker"),_.Q("design:type",HTMLElement)],z9.prototype,"picker",void 0);_.W([_.B2("#preview-clipper"),_.Q("design:type",HTMLElement)],z9.prototype,"previewClipper",void 0);_.W([_.B2("#image-in-picker-background"),_.Q("design:type",HTMLImageElement)],z9.prototype,"JSC$15945_imageInBackground",void 0);_.W([_.B2("#image-in-picker"),_.Q("design:type",HTMLImageElement)],z9.prototype,"JSC$15945_imageInPicker",void 0);
_.W([_.B2("#image-in-preview-clipper"),_.Q("design:type",HTMLImageElement)],z9.prototype,"JSC$15945_imageInPreviewClipper",void 0);_.W([_.a("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],z9.prototype,"altLabelForImage",null);_.W([_.a("imageHeight","imageWidth"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],z9.prototype,"pickerSize",null);
_.W([_.a("imageHeight","imageWidth"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"imageOrientationStyle",null);_.W([_.a("instruction"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"editButton",null);_.W([_.a("instruction","editOnlyMode"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"saveButton",null);_.W([_.a("instruction"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"deleteButton",null);
_.W([_.a("instruction","editOnlyMode"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z9.prototype,"cancelButton",null);_.W([_.a("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],z9.prototype,"cropOffsetTop",null);_.W([_.a("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],z9.prototype,"cropOffsetLeft",null);
_.W([_.a("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],z9.prototype,"pickerBackgroundStyle",null);_.W([_.a("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],z9.prototype,"pickerDisplayStyle",null);_.W([_.a("cropOffsetLeft","cropOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],z9.prototype,"imageInPickerStyle",null);
_.W([_.a("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Q("design:type",String),_.Q("design:paramtypes",[])],z9.prototype,"previewClipperStyle",null);_.W([_.ic("imageData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z9.prototype,"onImageChange",null);_.W([_.ic("editOnlyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z9.prototype,"onEditOnlyModeUpdate",null);
_.W([_.a("showPreviewContainer"),_.Q("design:type",String),_.Q("design:paramtypes",[])],z9.prototype,"pickerModeStyle",null);_.W([_.en({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],z9);
_.n(z9,"ytd-backstage-image-preview-renderer",function(){if(Qma!==void 0)return Qma;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Qma=N},{mode:1});var m6p;var ERZ={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 GfE;var R0y;var Yu=function(){var N=_.k.apply(this,arguments)||this;N.a11yConfig=ERZ;N.imageDisplayOffsetTop=0;N.imageDisplayOffsetLeft=0;N.pickerDisplayOffsetTop=0;N.pickerDisplayOffsetLeft=0;N.cropCoordinatesSaved=!1;N.previewSize=0;N.startPicker=!1;N.repositionOptional=!1;return N};
_.p(Yu,_.k);_.V=Yu.prototype;_.V.created=function(){_.Uk.requestAvailability()};
_.V.ready=function(){};
_.V.onArrowKeysDown=function(N){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){N.detail.keyboardEvent.preventDefault();var t=0,O=0,H="";switch(N.detail.keyboardEvent.key){case "ArrowUp":E7l(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?H=this.a11yConfig.reachBottomOfImage:t=this.imageHeight*.05*-1;break;case "ArrowDown":E7l(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?H=this.a11yConfig.reachTopOfImage:
t=this.imageHeight*.05;break;case "ArrowLeft":E7l(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?H=this.a11yConfig.reachRightOfImage:O=this.imageWidth*.05*-1;break;case "ArrowRight":E7l(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?H=this.a11yConfig.reachLeftOfImage:O=this.imageWidth*.05}H&&_.CJ(H)&&_.or(this.hostElement,"iron-announce",{text:_.CJ(H)});if(O||t)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+t)),N=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),N=_.CJ(this.a11yConfig.imageVerticalPosition,{x_percent:""+N,y_percent:""+(100-N)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+O)),N=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),N=_.CJ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+N,y_percent:""+(100-N)})),N&&_.or(this.hostElement,"iron-announce",{text:N})}};
_.V.getPreviewPosition=function(N,t,O,H){return Math.round(100*(N+t*.5-O)/H)};
_.V.displayImage=function(){var N=this.JSC$15956_pickerContainer.getBoundingClientRect().width,t=this.JSC$15956_pickerContainer.getBoundingClientRect().height,O=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),H=this.JSC$15956_imageInBackground.naturalWidth,A=this.JSC$15956_imageInBackground.naturalHeight;this.displayScale=Math.max(O/H,O/A);this.imageWidth=H*this.displayScale;this.imageHeight=A*this.displayScale;this.pickerDisplayOffsetLeft=(N-O)/2;this.pickerDisplayOffsetTop=
(t-O)/2;this.imageDisplayOffsetLeft=A>H?this.pickerDisplayOffsetLeft:(N-this.imageWidth)/2;this.imageDisplayOffsetTop=H>A?this.pickerDisplayOffsetTop:(t-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.V.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15956_imageInBackground.src=this.imageData.toString(),this.JSC$15956_imageInPicker.src=this.imageData.toString(),this.JSC$15956_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.V.getSignedPosition=function(N,t,O){return t==="X"&&_.Ro("HTML_DIR")==="rtl"?O==="-"?N+"px":N*-1+"px":O==="-"?N*-1+"px":N+"px"};
_.V.pickerMove=function(N){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var t=this.pickerOffsetX-N.clientX,O=this.pickerOffsetY-N.clientY;this.pickerOffsetX=N.clientX;this.pickerOffsetY=N.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
O)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-t))}};
_.V.pickerMoveStart=function(N){this.startPicker=!0;this.pickerOffsetX=N.clientX;this.pickerOffsetY=N.clientY};
_.V.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.V.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.or(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.V.getPreviewOffset=function(N,t,O,H){return t&&N&&O?(H==="X"&&_.Ro("HTML_DIR")==="rtl"?O/t*N:O/t*N*-1)+"px":"0px"};
_.V.getSimpleText=function(N){return N?_.Gv(N):""};
_.V.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var N=this.cropOffsetTop/this.imageHeight,t=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,O=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,H=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.O6(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.or(this.hostElement,"yt-img-crop-coordinates-update",{top:N,right:t,bottom:O,left:H})}};
_.cv.Object.defineProperties(Yu.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var N=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.CJ(this.a11yConfig.imageVerticalPosition,{x_percent:""+N,y_percent:""+(100-N)})+"\n"+_.CJ(this.a11yConfig.verticalRepositionInstruction)}N=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.CJ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+N,y_percent:""+(100-N)})+"\n"+_.CJ(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var N,t=(N=this.learnMore.runs[0])==null?void 0:N.navigationEndpoint,O;return((O=_.M(t,_.Z3))==null?void 0:O.url)||void 0}}}});
Yu.prototype.onImageDataChange=Yu.prototype.onImageDataChange;_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"imageData",void 0);_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"instruction",void 0);_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"a11yConfig",void 0);_.W([_.X(),_.Q("design:type",Number)],Yu.prototype,"imageWidth",void 0);_.W([_.X(),_.Q("design:type",Number)],Yu.prototype,"imageHeight",void 0);_.W([_.X(),_.Q("design:type",Number)],Yu.prototype,"displayScale",void 0);
_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"imageDisplayOffsetTop",void 0);_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"imageDisplayOffsetLeft",void 0);_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"pickerDisplayOffsetTop",void 0);_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"pickerDisplayOffsetLeft",void 0);_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"cropCoordinatesSaved",void 0);_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"previewSize",void 0);
_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"startPicker",void 0);_.W([_.X(),_.Q("design:type",Number)],Yu.prototype,"pickerOffsetX",void 0);_.W([_.X(),_.Q("design:type",Number)],Yu.prototype,"pickerOffsetY",void 0);_.W([_.X(),_.Q("design:type",Object)],Yu.prototype,"repositionOptional",void 0);_.W([_.B2("#picker-container"),_.Q("design:type",HTMLElement)],Yu.prototype,"JSC$15956_pickerContainer",void 0);_.W([_.B2("#picker"),_.Q("design:type",HTMLElement)],Yu.prototype,"picker",void 0);
_.W([_.B2("#image-in-picker-background"),_.Q("design:type",HTMLImageElement)],Yu.prototype,"JSC$15956_imageInBackground",void 0);_.W([_.B2("#image-in-picker"),_.Q("design:type",HTMLImageElement)],Yu.prototype,"JSC$15956_imageInPicker",void 0);_.W([_.B2("#image-in-preview-clipper"),_.Q("design:type",HTMLImageElement)],Yu.prototype,"JSC$15956_imageInPreviewClipper",void 0);_.W([_.B2("#full-image-as-preview"),_.Q("design:type",HTMLImageElement)],Yu.prototype,"imageAsPreview",void 0);
_.W([_.a("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Yu.prototype,"altLabelForImage",null);_.W([_.a("imageHeight","imageWidth"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Yu.prototype,"pickerSize",null);_.W([_.a("imageHeight","imageWidth"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yu.prototype,"imageOrientationStyle",null);
_.W([_.a("instruction.previewInstruction.editButtonLabel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yu.prototype,"editButton",null);_.W([_.a("instruction.editInstruction.saveButtonLabel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yu.prototype,"saveButton",null);_.W([_.a("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Yu.prototype,"cropOffsetTop",null);
_.W([_.a("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Yu.prototype,"cropOffsetLeft",null);_.W([_.a("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Yu.prototype,"pickerBackgroundStyle",null);_.W([_.a("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Yu.prototype,"pickerDisplayStyle",null);
_.W([_.a("cropOffsetLeft","cropOffsetTop"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Yu.prototype,"imageInPickerStyle",null);_.W([_.a("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Yu.prototype,"previewClipperStyle",null);_.W([_.gz("imageData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yu.prototype,"onImageDataChange",null);
_.W([_.a("cropCoordinatesSaved"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Yu.prototype,"pickerModeStyle",null);_.W([_.a("instruction.editInstruction.learnMore"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yu.prototype,"learnMore",null);_.W([_.a("learnMore"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yu.prototype,"learnMoreUrl",null);_.W([_.wz({is:"yt-img-crop-picker",disableElementRegistration:!0})],Yu);
_.n(Yu,"yt-img-crop-picker",function(){if(R0y===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;GfE===void 0&&(GfE=document.createElement("template"));var H=GfE;O.call(t,H.content.cloneNode(!0),N.content.firstChild);R0y=N}N=R0y;return N},{mode:2});var aq=function(){var N=_.k.apply(this,arguments)||this;N.errorMessage="";N.hasPreview=!1;N.isBackstagePost=!1;N.dismissButtonOverrides={size:"XS"};return N};
_.p(aq,_.k);_.V=aq.prototype;_.V.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.detached=function(){this.removeOverlay()};
_.V.setPreview=function(N){_.O6(this.hostElement).querySelector("#preview-picker").imageData=N;this.hasPreview=!0;_.or(this.hostElement,"yt-backstage-image-select-preview")};
_.V.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var N=_.O6(this.hostElement).querySelector("#dropzone");N.classList.remove("dragover");N.classList.remove("error");_.or(this.hostElement,"yt-backstage-image-select-cancel")};
_.V.setupOverlay=function(){var N=this.imageUploadEndpoint;this.removeOverlay();if(N&&N.imageValidationInfo){var t=_.O6(this.hostElement).querySelector("#dropzone"),O=_.O6(this.hostElement).querySelector("#select");this.overlay=new za(N.uploadUrl,N.channelId,N.imageValidationInfo.maxFileSizeMb,N.imageValidationInfo.allowedMaxAspectRatio,t,O,!0);_.SF(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.SF(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.SF(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.SF(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.SF(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.V.removeOverlay=function(){this.overlay&&(_.PG(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.PG(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.PG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.PG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.PG(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.V.onDragOver=function(N){var t=_.O6(this.hostElement).querySelector("#dropzone");_.VQ(t,"dragover",N.value)};
_.V.onPreview=function(N){this.setPreview(N.value)};
_.V.onImageError=function(N){if(N.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var t;N=(t=this.data)==null?void 0:t.fileSizeError}else if(N.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var O;N=(O=this.data)==null?void 0:O.invalidError}else if(N.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var H;N=(H=this.data)==null?void 0:H.invalidAspectRatioError}else return;this.errorMessage=_.Gv(N);_.O6(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.V.onImageAlert=function(N){this.onImageError(N)};
_.V.uploadPromise=function(){var N=this,t=this.overlay&&this.overlay.uploadPromise();if(t)return t.catch(function(){throw Error(N.data?_.Gv(N.data.uploadFailureError):"");})};
_.cv.Object.defineProperties(aq.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var N,t;if((N=this.data)==null?0:(t=N.icon)==null?0:t.iconType)return _.Vt(this.data.icon.iconType)}}});
aq.prototype.setupOverlay=aq.prototype.setupOverlay;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],aq.prototype,"rendererStamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],aq.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],aq.prototype,"imageUploadEndpoint",void 0);_.W([_.X(),_.Q("design:type",Object)],aq.prototype,"errorMessage",void 0);
_.W([_.X(),_.Q("design:type",za)],aq.prototype,"overlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aq.prototype,"hasPreview",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aq.prototype,"isBackstagePost",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aq.prototype,"selectionCancel",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aq.prototype,"previewCancel",null);
_.W([_.a("data.icon.iconType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aq.prototype,"icon",null);_.W([_.X(),_.Q("design:type",Object)],aq.prototype,"dismissButtonOverrides",void 0);_.W([_.gz("imageUploadEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aq.prototype,"setupOverlay",null);_.W([_.en({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],aq);
_.n(aq,"ytd-backstage-image-select-renderer",function(){if(m6p!==void 0)return m6p;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return m6p=N},{mode:1});var vRp;var JjX;var T9=function(){var N=_.k.apply(this,arguments)||this;N.selected=!1;return N};
_.p(T9,_.k);_.V=T9.prototype;_.V.computeSelected=function(N){return N==null?void 0:N.selected};
_.V.computeTransform=function(N,t,O){var H,A,Z=(A=(H=this.imageContainer)==null?void 0:H.getBoundingClientRect())!=null?A:{width:0,height:0};H=Math.max(Z.width/t,Z.height/O);O=O*H*N.top;return"translateX("+this.getSignedPosition(t*H*N.left,"X","-")+") translateY("+this.getSignedPosition(O,"Y","-")+")"};
_.V.getSignedPosition=function(N,t,O){return t==="X"&&_.Ro("HTML_DIR")==="rtl"?O==="-"?N+"px":N*-1+"px":O==="-"?N*-1+"px":N+"px"};
_.V.onClick=function(){var N;_.or(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(N=this.data)==null?void 0:N.image)};
_.V.onKeyPress=function(N){if(N.keyCode===13)this.onClick()};
_.cv.Object.defineProperties(T9.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:(t=N.image)==null?void 0:t.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)!=null&&N.image){var t;N=(t=this.data)==null?void 0:t.image;return N.previewCoordinates.top!==0||N.previewCoordinates.left!==0?(t=this.computeTransform(N.previewCoordinates,N.naturalWidth,N.naturalHeight),N.naturalHeight>=N.naturalWidth?"width:inherit;transform:"+t+";":"height:inherit;transform:"+t+";"):N.naturalHeight>=N.naturalWidth?"width:inherit;":"height:inherit;"}}}});
T9.prototype.onKeyPress=T9.prototype.onKeyPress;_.W([_.B2(".image-container"),_.Q("design:type",HTMLElement)],T9.prototype,"imageContainer",void 0);_.W([_.X(),_.Q("design:type",Object)],T9.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Q("design:type",Object)],T9.prototype,"selected",void 0);_.W([_.a("data.image"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],T9.prototype,"thumbnailUrl",null);
_.W([_.a("data.image","data.image.previewCoordinates"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],T9.prototype,"thumbnailStyle",null);_.W([_.dz("keypress"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],T9.prototype,"onKeyPress",null);_.W([_.en({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],T9);
_.n(T9,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(JjX!==void 0)return JjX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return JjX=N},{mode:2});var wX=function(N,t,O){O=O===void 0?!1:O;_.Xm.call(this);var H=this;this.dropZoneOverlay=new P8(N);this.selectOverlay=O?new X6(t,"multiple_file",["image/*"]):new X6(t,"single_file",["image/*"]);this.handler=new _.MT(this);_.L1(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(t,"click",function(){H.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.p(wX,_.Xm);wX.prototype.onChange=function(N){var t;(t=N.files)!=null&&t.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:N.files}))};var ed=function(){var N=_.k.apply(this,arguments)||this;N.addImageErrorMessage="";N.errorMessage="";N.images=[];N.selectedImageIndex=0;N.modern=_.h("web_modern_buttons");N.maxNumImagesPerPost=_.uP("max_num_images_per_post_web_ui");N.JSC$15971_imageId=0;return N};
_.p(ed,_.k);_.V=ed.prototype;_.V.created=function(){var N=this;this.JSC$15971_ytReorderableController=new _.g0B(100,function(t){N.handleDrop(t)})};
_.V.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.or(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.V.observeDragToReorder=function(){var N=this;if(this.showImagesPreview){var t,O=iuS(_.nZ.getInstance(),(t=this.data)==null?void 0:t.dragToReorderTooltip);_.GB.addLowPriorityJob(function(){_.OK(N.hostElement,O,N.thumbnailDragDropArea)})}};
_.V.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.V.computeThumbnail=function(N){return(N==null?void 0:N.localImageSrc)||void 0};
_.V.onRendererstamperFinished=function(){_.yWa(this.JSC$15971_ytReorderableController,_.O6(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.O6(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.V.handleDrop=function(N){var t=N.currDragItem;if(t!=null&&t.data){N=this.images[this.selectedImageIndex];var O=t.data.image,H=this.images.indexOf(O)||0;t=_.qz(t.parentNode.children,t);this.images.splice(H,1);this.images.splice(t,0,O);this.images=[].concat(_.W6(this.images));this.selectedImageIndex=this.images.indexOf(N)}};
_.V.setUpImagePicker=function(){var N=this.imageUploadEndpoint;N&&N.imageValidationInfo&&(this.uploadManager=new p6(N.uploadUrl,N.channelId),this.initialPicker||(this.initialPicker=new wX(this.dropzone,this.selectLink,!0),_.SF(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new wX(this.addImageButtonContainer,this.addImageSelectButton),_.SF(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.SF(this.JSC$15971_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.SF(this.JSC$15971_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.SF(_.O6(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.V.detached=function(){this.initialPicker&&(_.PG(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.PG(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.mO(this.JSC$15971_ytReorderableController)};
_.V.onInitialSelectImages=function(N){var t=this;return _.K(function(O){return O.yield(t.onSelectImages(N,!1),0)})};
_.V.onAddImage=function(N){var t=this;return _.K(function(O){return O.yield(t.onSelectImages(N,!0),0)})};
_.V.onSelectImages=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E;return _.K(function(J){switch(J.nextAddress){case 1:t?O.addImageErrorMessage="":(O.images=[],O.errorMessage="");H=N.detail;A=O.validateImages([].concat(_.W6(H)));if(A!=="")return t?O.addImageErrorMessage=A:O.errorMessage=A,J.return();Z=[].concat(_.W6(H)).map(function(CN){return(new pY(O.maxAspectRatio,!1,!0)).transform(CN)});
return J.yield(Promise.allSettled(Z),2);case 2:U=J.yieldResult,C=_.D(U.entries()),F=C.next();case 3:if(F.done){J.jumpTo(5);break}g=F.value;B=_.D(g);c=B.next().value;u=B.next().value;S=c;b=u;if(b.status!=="fulfilled"){P=w=z=void 0;t?O.addImageErrorMessage=_.Gv((z=O.data)==null?void 0:z.invalidError):O.errorMessage=O.errorMessage===""?_.Gv((w=O.data)==null?void 0:w.invalidError):_.Gv((P=O.data)==null?void 0:P.multiFileError);J.jumpTo(4);break}x=b.value;x.cropped&&_.or(O.hostElement,"yt-backstage-multi-image-cropped");
if(x.invalidAspectRatio){r=I=l=void 0;t?O.addImageErrorMessage=_.Gv((l=O.data)==null?void 0:l.invalidAspectRatioError):O.errorMessage=O.errorMessage===""?_.Gv((I=O.data)==null?void 0:I.invalidAspectRatioError):_.Gv((r=O.data)==null?void 0:r.multiFileError);J.jumpTo(4);break}return J.yield(QLg(O.JSC$15971_imageId,N.detail[S],x.transformedData),8);case 8:E=J.yieldResult,O.images.push(E),O.JSC$15971_imageId++;case 4:F=C.next();J.jumpTo(3);break;case 5:if(O.errorMessage!==""||O.addImageErrorMessage!==
"")return J.return();t?qBu(O.uploadManager,[O.images[O.images.length-1]]):qBu(O.uploadManager,O.images);O.images=[].concat(_.W6(O.images));O.selectedImageIndex=t?Math.max(O.images.length-1,0):0;_.or(O.hostElement,"yt-backstage-multi-image-select");_.Ty(J)}})};
_.V.onThumbnailClick=function(N){if(N=N.event_.detail)this.selectedImageIndex=this.images.indexOf(N)};
_.V.validateImages=function(N){if(N.length>this.maxNumImagesPerPost){var t;return _.Gv((t=this.data)==null?void 0:t.multiImageExceedMaxImageCountError)}var O=1048576*this.maxFileSizeMb;N=N.filter(function(Z){return Z.size>O}).length;
if(N===0)return"";var H,A;N=N>1?(H=this.data)==null?void 0:H.multiFileError:(A=this.data)==null?void 0:A.fileSizeError;return _.Gv(N)};
_.V.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.W6(this.images));this.selectedImageIndex=0};
_.V.repositionImage=function(N){this.images[this.selectedImageIndex].previewCoordinates=N.event_.detail;this.images=[].concat(_.W6(this.images))};
_.V.getAllUploadStatuses=function(){var N=this,t,O,H,A;return _.K(function(Z){if(Z.nextAddress==1)return Z.yield(N.uploadManager.getAllUploadStatuses(),2);t=Z.yieldResult;O=_.D(t);for(H=O.next();!H.done;H=O.next())if(A=H.value,A.encryptedBlobId===void 0)return Z.return(fMY(N.uploadManager));return Z.return(t)})};
_.V.hasImages=function(){return this.images.length>0};
_.V.cancel=function(){for(var N=this.uploadManager,t=_.D(N.imagesUploadData),O=t.next();!O.done;O=t.next())N.cancel(O.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.or(this.hostElement,"yt-backstage-multi-image-cancel")};
_.cv.Object.defineProperties(ed.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.imageUploadEndpoint)==null?void 0:(t=N.imageValidationInfo)==null?void 0:t.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.imageUploadEndpoint)==null?void 0:(t=N.imageValidationInfo)==null?void 0:t.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var N,t;if((N=this.data)==null?0:(t=N.icon)==null?0:t.iconType)return _.Vt(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var N=this;return(this.images||[]).map(function(t,O){return{renderer:{image:t,selected:O===N.selectedImageIndex}}})}}});
ed.prototype.setUpImagePicker=ed.prototype.setUpImagePicker;ed.prototype.onRendererstamperFinished=ed.prototype.onRendererstamperFinished;ed.prototype.observeDragToReorder=ed.prototype.observeDragToReorder;ed.prototype.observeAddImageError=ed.prototype.observeAddImageError;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ed.prototype,"rendererStamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);
_.W([_.B2("#dropzone"),_.Q("design:type",HTMLElement)],ed.prototype,"dropzone",void 0);_.W([_.B2("#select-link"),_.Q("design:type",HTMLElement)],ed.prototype,"selectLink",void 0);_.W([_.B2("#thumbnail-drag-drop-area"),_.Q("design:type",HTMLElement)],ed.prototype,"thumbnailDragDropArea",void 0);_.W([_.B2("#add-image-button-container"),_.Q("design:type",HTMLElement)],ed.prototype,"addImageButtonContainer",void 0);
_.W([_.B2("#add-image-button"),_.Q("design:type",HTMLElement)],ed.prototype,"addImageSelectButton",void 0);_.W([_.B2("#image-preview-container"),_.Q("design:type",Object)],ed.prototype,"JSC$15971_imagePreviewContainer",void 0);_.W([_.X(),_.Q("design:type",Object)],ed.prototype,"addImageErrorMessage",void 0);_.W([_.X(),_.Q("design:type",Object)],ed.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],ed.prototype,"errorMessage",void 0);
_.W([_.X(),_.Q("design:type",Object)],ed.prototype,"imageUploadEndpoint",void 0);_.W([_.X(),_.Q("design:type",Array)],ed.prototype,"images",void 0);_.W([_.X(),_.Q("design:type",wX)],ed.prototype,"initialPicker",void 0);_.W([_.X(),_.Q("design:type",wX)],ed.prototype,"addImagePicker",void 0);_.W([_.X(),_.Q("design:type",p6)],ed.prototype,"uploadManager",void 0);_.W([_.X(),_.Q("design:type",Object)],ed.prototype,"selectedImageIndex",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ed.prototype,"modern",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ed.prototype,"maxNumImagesPerPost",void 0);_.W([_.a("imageUploadEndpoint"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],ed.prototype,"maxAspectRatio",null);_.W([_.a("imageUploadEndpoint"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],ed.prototype,"maxFileSizeMb",null);
_.W([_.a("data.icon.iconType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ed.prototype,"dropIcon",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ed.prototype,"selectionCancel",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ed.prototype,"previewCancel",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ed.prototype,"dataForAddImageButton",null);
_.W([_.a("errorMessage"),_.Q("design:type",String),_.Q("design:paramtypes",[])],ed.prototype,"dropzoneClass",null);_.W([_.a("images"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ed.prototype,"showImagesPreview",null);_.W([_.a("images"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ed.prototype,"containMaxImages",null);_.W([_.gz("addImageErrorMessage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ed.prototype,"observeAddImageError",null);
_.W([_.gz("showImagesPreview"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ed.prototype,"observeDragToReorder",null);_.W([_.a("images","selectedImageIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ed.prototype,"selectedImageData",null);_.W([_.a("images","selectedImageIndex"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],ed.prototype,"thumbnailRenderers",null);
_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ed.prototype,"onRendererstamperFinished",null);_.W([_.gz("imageUploadEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ed.prototype,"setUpImagePicker",null);_.W([_.en({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],ed);
_.n(ed,"ytd-backstage-multi-image-select-renderer",function(){if(vRp!==void 0)return vRp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return vRp=N},{mode:1});var oRR;var sm_;var NTR;var PI=function(){var N=_.k.apply(this,arguments)||this;N.boundCaptureFocus=function(t){N.onCaptureFocus(t)};
return N};
_.p(PI,_.k);_.V=PI.prototype;_.V.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.V.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.V.onCaptureFocus=function(N){_.m1(N).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.V.getIconType=function(N){return N?"yt-icons:"+N.toLowerCase():null};
_.V.onSelect=function(){var N;if((N=this.data)==null?0:N.onSelectCommand)if(_.h("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var t;((t=_.M(this.data.onSelectCommand.commandMetadata,_.Da))==null?0:t.url)?_.or(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.cY().resolve(_.jo).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.cv.Object.defineProperties(PI.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Gv(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}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],PI.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],PI.prototype,"data",void 0);_.W([_.B2("#item"),_.Q("design:type",HTMLElement)],PI.prototype,"item",void 0);_.W([_.a("data.label"),_.Q("design:type",String),_.Q("design:paramtypes",[])],PI.prototype,"label",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],PI.prototype,"value",null);_.W([_.en({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],PI);
_.n(PI,"ytd-privacy-dropdown-item-renderer",function(){if(NTR!==void 0)return NTR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return NTR=N},{mode:1});var X4=function(){var N=_.k.apply(this,arguments)||this;N.value="";N.label="";N.disabled=!1;return N};
_.p(X4,_.k);_.V=X4.prototype;_.V.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.V.dataChanged=function(){this.reset()};
_.V.valueChanged=function(){var N;if(this.value&&(N=this.data)!=null&&N.entries){N=_.D(this.data.entries);for(var t=N.next();!t.done;t=N.next())if((t=this.getRendererForEntry(t.value))&&this.getItemRendererValue(t)===this.value){this.label=this.ytComponentBehavior.getSimpleString(t.label);break}}};
_.V.setInitialLabel=function(){if(this.data&&this.data.entries)for(var N=_.D(this.data.entries),t=N.next();!t.done;t=N.next())if(t=this.getRendererForEntry(t.value)){if(t.isSelected){this.label=this.ytComponentBehavior.getSimpleString(t.label);break}this.data.label&&(this.label=this.data.label)}};
_.V.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var N=_.D(this.data.entries),t=N.next();!t.done;t=N.next()){t=this.getRendererForEntry(t.value);var O=void 0;if((O=t)==null?0:O.isSelected)return this.getItemRendererValue(t)||-1}return-1};
_.V.getItemRendererValue=function(N){return"stringValue"in N||"int32Value"in N?N.stringValue||N.int32Value||null:null};
_.V.getRendererForEntry=function(N){return N.dropdownItemRenderer||N.privacyDropdownItemRenderer||N.navigationDropdownItemRenderer||null};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("value-changed",this.value))};
_.V.updateValueFromBinding=function(N){this.value=N.detail.value};
X4.prototype.valueChangedForBinding=X4.prototype.valueChangedForBinding;X4.prototype.valueChanged=X4.prototype.valueChanged;X4.prototype.dataChanged=X4.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],X4.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],X4.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],X4.prototype,"value",void 0);_.W([_.X(),_.Q("design:type",Object)],X4.prototype,"label",void 0);_.W([_.B2("#entries"),_.Q("design:type",Object)],X4.prototype,"entries",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],X4.prototype,"disabled",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X4.prototype,"dataChanged",null);
_.W([_.ic("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X4.prototype,"valueChanged",null);_.W([_.gz("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X4.prototype,"valueChangedForBinding",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],X4);
_.n(X4,"ytd-flat-dropdown-renderer",function(){if(sm_!==void 0)return sm_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return sm_=N},{mode:1});var tYu;var xu=function(){var N=_.k.apply(this,arguments)||this;N.quizOptions=[];N.explanationPlaceholderText="";N.optionPlaceholderText="";N.correctAnswerIndex=-1;N.isMarkAnswerTooltipShown=!1;N.timer=0;return N};
_.p(xu,_.k);_.V=xu.prototype;_.V.dataChanged=function(){this.optionPlaceholderText=_.Gv(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Gv(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.V.onMarkCorrectAnswer=function(N){var t,O=((t=this.quizOptions[this.correctAnswerIndex])==null?void 0:t.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[N.model.index]=Object.assign({},this.quizOptions[N.model.index],{explanationText:O,isCorrect:!0});this.correctAnswerIndex=N.model.index;this.quizOptions=[].concat(_.W6(this.quizOptions))};
_.V.updatePlaceholderTexts=function(){for(var N=!1,t=[],O=0;O<this.quizOptions.length;O++){var H=this.optionPlaceholderText+" "+(O+1),A=void 0;((A=this.quizOptions[O])==null?void 0:A.placeholderText)!==H?(N=!0,t.push(Object.assign({},this.quizOptions[O],{placeholderText:H}))):t.push(this.quizOptions[O])}N&&(this.quizOptions=t);this.isValid()?_.or(this.hostElement,"yt-commentbox-post-enable"):_.or(this.hostElement,"yt-commentbox-post-disable")};
_.V.getSimpleString=function(N){return _.Gv(N)};
_.V.createQuizOptions=function(N){var t=[],O;N=(O=N==null?void 0:N.minQuizOptions)!=null?O:0;for(O=0;O<N;O++)t.push(this.createQuizOption());return t};
_.V.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.W6(this.quizOptions),[this.createQuizOption()]))};
_.V.onInput=function(){this.quizOptions=[].concat(_.W6(this.quizOptions))};
_.V.onExplanationInput=function(){_.or(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.V.onRemoveQuizOption=function(N){this.quizOptions.splice(N.model.index,1);N.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:N.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.W6(this.quizOptions));this.quizOptions.length===0&&_.or(this.hostElement,"yt-quiz-attachment-dismiss")};
_.V.updateHintRenderer=function(){var N=this;clearTimeout(this.timer);this.timer=setTimeout(function(){N.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.V.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var N=0,t=0,O=_.D(this.quizOptions),H=O.next();!H.done;H=O.next()){H=H.value;var A=void 0;if(((A=H.optionText)==null?void 0:A.trim())!==""||H.isCorrect){H.isCorrect&&t++;A=void 0;if(this.hasCustomOptionText&&((A=H.optionText)==null?void 0:A.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;N++}}return N>=
Number(this.editorInfo.minQuizOptions)&&t===1};
_.V.getPostCreateOptions=function(){for(var N=[],t=_.D(this.quizOptions),O=t.next();!O.done;O=t.next()){O=O.value;var H=void 0;((H=O.optionText)==null?void 0:H.trim())!==""&&N.push({pollOption:{text:O.optionText,explanation:O.explanationText},isCorrect:O.isCorrect})}return N};
_.V.getExplanationText=function(){var N;return((N=this.quizOptions[this.correctAnswerIndex])==null?void 0:N.explanationText)||""};
_.V.maybeDisplayMarkAnswerEduToolTip=function(){var N,t,O,H,A,Z,U;this.shouldShowMarkAnswerTooltip()&&((N=this.editorInfo)==null?0:(t=N.markAnswerButton)==null?0:(O=t.buttonRenderer)==null?0:(H=O.hint)==null?0:(A=H.hintRenderer)==null?0:(Z=A.content)==null?0:(U=Z.bubbleHintRenderer)==null?0:U.text)&&(_.nZ.getInstance(),N=WT(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(N==null?void 0:N.length)>0&&this.optionSelectors&&_.CC(N[0],this.optionSelectors[0]))};
_.V.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var N=0,t=_.D(this.quizOptions),O=t.next();!O.done;O=t.next()){O=O.value;var H=void 0;((H=O.optionText)==null?void 0:H.trim())!==""&&N++;if(O.isCorrect)return!1}return N<2?!1:!0};
_.V.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.V.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.V.updateOptionTextFromBinding=function(N){if(N.target){var t=Array.from(_.O6(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(N.target);if(t>=0){var O;this.quizOptions[t].optionText=(O=N.detail.value)!=null?O:""}}};
_.cv.Object.defineProperties(xu.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.editorInfo)==null?void 0:(t=N.addOptionButton)==null?void 0:t.buttonRenderer;O&&(O.style="STYLE_SUGGESTIVE",O.size="SIZE_SMALL",O.isDisabled=!this.isAllowedToAddOption);return(O==null?0:O.text)?O:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var N,t;return this.quizOptions.length<((t=(N=this.editorInfo)==null?void 0:N.maxQuizOptions)!=null?t:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(N){var t;return(t=N.optionText)==null?void 0:t.trim()})}}});
xu.prototype.updatePlaceholderTexts=xu.prototype.updatePlaceholderTexts;xu.prototype.dataChanged=xu.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],xu.prototype,"editorInfo",void 0);_.W([_.X(),_.Q("design:type",Array)],xu.prototype,"quizOptions",void 0);_.W([_.X(),_.Q("design:type",Object)],xu.prototype,"explanationPlaceholderText",void 0);_.W([_.c2(".option-selector-button"),_.Q("design:type",Array)],xu.prototype,"optionSelectors",void 0);
_.W([_.ic("editorInfo"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xu.prototype,"dataChanged",null);_.W([_.a("editorInfo","isAllowedToAddOption","quizOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"addAnswerButton",null);_.W([_.a("editorInfo","quizOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"isAllowedToAddOption",null);
_.W([_.ic("quizOptions"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xu.prototype,"updatePlaceholderTexts",null);_.W([_.a("quizOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xu.prototype,"hasCustomOptionText",null);_.W([_.en({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],xu);
_.n(xu,"ytd-backstage-quiz-editor-renderer",function(){if(tYu!==void 0)return tYu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tYu=N},{mode:2});var OG_;var HGR=(dv.FIRSTDAYOFWEEK+1)%7;var AF0;var ZG0=[],VY_=0,DMf=0;VY_=0;DMf=24;if(.25*(DMf-VY_)<0)AF0=[];else{for(var UMp=VY_;UMp<DMf;UMp+=.25)ZG0.push(UMp);AF0=ZG0}var C4p=AF0.map(function(N){N=N*60*60;return{secondsSinceMidnight:N,text:(new md(7)).format(new Date(0,0,0,0,0,N))}});var K9f;var ku=function(){var N=_.k.apply(this,arguments)||this;N.skipNextOpenDialog=!1;N.errorMessage="";N.previousMonthLabel=_.CJ("PREVIOUS_MONTH_LABEL");N.nextMonthLabel=_.CJ("NEXT_MONTH_LABEL");return N};
_.p(ku,_.k);_.V=ku.prototype;_.V.attached=function(){var N=this,t=new MutationObserver(function(){N.JSC$16013_calendarMain.scrollHeight>0&&(t.disconnect(),N.calendarConfig&&N.calendarConfig.selectedDate&&N.scrollToDate())});
t.observe(this.JSC$16013_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){t.disconnect()},1E3)};
_.V.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.V.onDateTextChange=function(){if(this.calendarConfig){var N=this.validateDateText();N.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(N.details)):this.textbox.setAttribute("invalid","")}};
_.V.handleDayClick=function(N){N.model.day.date&&(this.commitDate(N.model.day.date),this.dialog.close())};
_.V.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var N=Oy4(this.calendarConfig.selectedDate,this.renderData);N!==void 0&&this.JSC$16013_calendarMain.scrollToIndex(N)}};
_.V.scrollToNextMonth=function(){this.JSC$16013_calendarMain.scrollToIndex(this.JSC$16013_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$16013_calendarMain.firstVisibleIndex===0&&this.JSC$16013_calendarMain.scrollTo(0,0);this.JSC$16013_calendarMain.scrollToIndex(this.JSC$16013_calendarMain.firstVisibleIndex-1)};
_.V.onFormSubmit=function(N){N.preventDefault();this.calendarConfig&&(N=this.validateDateText(),N.isValid&&(this.commitDate(N.details),this.dialog.close()))};
_.V.onEscOrClickingOutside=function(N){N=N.detail.path&&!!N.detail.path.length&&N.detail.path[0];if(N.classList.contains("ytd-calendar-date-picker")){N===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var t=0;t<this.dropdownButton.children.length;t++)this.dropdownButton.children[t]===N&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}N=this.textbox.value!==this.dateText;t=this.validateDateText();N&&t.isValid&&this.commitDate(t.details);this.dialog.close();this.textbox.value=
this.dateText};
_.V.commitDate=function(N){this.calendarConfig&&(this.set("calendarConfig.selectedDate",N),_.or(this.hostElement,"ytd-calendar-date-selected",N))};
_.V.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var N=this.textbox.value;var t=new Date;N=(new SQ9(2)).parse(N,t,{validate:!0})===N.length?Nhp(t):void 0;if(!N)return this.errorMessage=_.CJ("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};t=this.calendarConfig.start;var O=this.calendarConfig.end;if(Rxv(N,t))return this.errorMessage=_.CJ("ENTER_DATE_OR_LATER",{allowed_date:sLM(t)}),{isValid:!1,details:void 0};if(Rxv(O,N))return this.errorMessage=
_.CJ("ENTER_DATE_OR_EARLIER",{allowed_date:sLM(O)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:N}};
_.cv.Object.defineProperties(ku.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?sLM(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var N=this.calendarConfig,t=[],O=0;O<7;O++)t.push(dv.NARROWWEEKDAYS[(O+HGR)%7]);O=[];for(var H=new Date(N.start.year,N.start.month);H.getFullYear()<N.end.year||H.getFullYear()===N.end.year&&H.getMonth()<=N.end.month;){var A=O,Z=A.push,U=H.getFullYear(),C=H.getMonth(),F=N,g=void 0,B=[],c=Object.freeze({extraCssClass:"invisible",debugClass:""}),u=new Date(U,C),S=Nhp(u);u=u.getDay();for(var b=Nhp(new Date);S.month===
C;){u!==HGR&&g||(g=Array.from({length:7}).fill(c),B.push(g));var z={date:{year:U,month:C,day:S.day},extraCssClass:"",debugClass:""};F.selectedDate&&z.date&&GDM(z.date,F.selectedDate)&&(z.extraCssClass+=" selected");if(Rxv(S,F.start)||Rxv(F.end,S))z.extraCssClass+=" disabled";GDM(S,b)&&(z.extraCssClass+=" today");z.extraCssClass=z.extraCssClass.trim();g[(u-HGR+7)%7]=z;S=JEM(S);u=(u+1)%7}Z.call(A,{weeks:B,monthLabel:dv.SHORTMONTHS[C]+" "+U,year:U,month:C,monthLabelExtraCssClass:B[0][2]===c?"shift-down-label":
""});H.setMonth(H.getMonth()+1)}return{months:O,daysOfWeekLabel:t}}}}});
ku.prototype.onEscOrClickingOutside=ku.prototype.onEscOrClickingOutside;ku.prototype.scrollToDate=ku.prototype.scrollToDate;_.W([_.X(),_.Q("design:type",Object)],ku.prototype,"calendarConfig",void 0);_.W([_.X(),_.Q("design:type",Object)],ku.prototype,"skipNextOpenDialog",void 0);_.W([_.X(),_.Q("design:type",Object)],ku.prototype,"errorMessage",void 0);_.W([_.X(),_.Q("design:type",Object)],ku.prototype,"previousMonthLabel",void 0);
_.W([_.X(),_.Q("design:type",Object)],ku.prototype,"nextMonthLabel",void 0);_.W([_.B2("#textbox"),_.Q("design:type",HTMLInputElement)],ku.prototype,"textbox",void 0);_.W([_.B2("#calendar-dialog"),_.Q("design:type",Object)],ku.prototype,"dialog",void 0);_.W([_.B2("#calendar-main"),_.Q("design:type",Object)],ku.prototype,"JSC$16013_calendarMain",void 0);_.W([_.B2("#date-picker"),_.Q("design:type",HTMLElement)],ku.prototype,"dropdownButton",void 0);
_.W([_.a("calendarConfig.selectedDate"),_.Q("design:type",String),_.Q("design:paramtypes",[])],ku.prototype,"dateText",null);_.W([_.a("calendarConfig","calendarConfig.selectedDate"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ku.prototype,"renderData",null);_.W([_.gz("renderData","calendarConfig.selectedDate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ku.prototype,"scrollToDate",null);
_.W([_.dz("iron-overlay-canceled"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ku.prototype,"onEscOrClickingOutside",null);_.W([_.wz({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ku);
_.n(ku,"ytd-calendar-date-picker",function(){if(K9f!==void 0)return K9f;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return K9f=N},{mode:2});var F9E=_.CJ("UTC_OFFSET_FORMAT",{utc_offset:(new md("Z")).format(new Date)}),dMR=(new Date).getTimezoneOffset()*-60,gh0=new Date,yF0,BTR=QP(gh0.getTimezoneOffset());yF0=vVX(oVX(BTR,gh0));var cF0=_.CJ("LOCAL_TIME_GMT_LABEL",{gmt_text:yF0.replace("+0","+").replace("-0","-").replace(":00","")}),ql=function(){var N=_.k.apply(this,arguments)||this;N.selectedTimeIndex=0;N.selectedTimezoneIndex=0;N.timeOfDayOptions=C4p;return N};
_.p(ql,_.k);_.V=ql.prototype;_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var N=o7O();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=N,this.selectedTimeIndex=0;else{var t=tPy(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},N,{selectedDate:t.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(O){return O.secondsSinceMidnight===t.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.V.onDatePicked=function(N){this.selectedDate=N.detail};
_.V.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.or(this.hostElement,"ytd-date-time-selection-cancelled")};
_.V.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var N=this.selectedDate;N=new Date(N.year,N.month,N.day);_.or(this.hostElement,"ytd-date-time-selection-update",Math.floor(N.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+N.getTimezoneOffset()*60))}};
_.V.getTimezoneFormat=function(N){return N.localizedDisplayText?N.localizedDisplayText:_.CJ("TIMEZONE_FORMAT",{utc_offset_text:""+N.localizedUtcOffset,city_name:""+N.localizedName})};
_.V.updateSelectedTimeIndexFromBinding=function(N){this.selectedTimeIndex=N.detail.value};
_.V.updateSelectedTimezoneIndexFromBinding=function(N){this.selectedTimezoneIndex=N.detail.value};
_.cv.Object.defineProperties(ql.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N=this.data.timezoneOptions;var t={name:"Etc/Unknown",localizedName:_.CJ("LOCAL_TIME_LABEL"),localizedUtcOffset:F9E,utcOffsetSec:""+dMR,localizedDisplayText:cF0};N?N.length&&N[0].name!==t.name&&(N[0].localizedDisplayText||(t.localizedDisplayText=""),N.unshift(t)):N=[t];return N}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
ql.prototype.onDateTimeTimezoneChange=ql.prototype.onDateTimeTimezoneChange;ql.prototype.onDatePicked=ql.prototype.onDatePicked;ql.prototype.updateDefaultSelectedValue=ql.prototype.updateDefaultSelectedValue;_.W([_.X(),_.Q("design:type",Object)],ql.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],ql.prototype,"calendarConfig",void 0);_.W([_.X(),_.Q("design:type",Object)],ql.prototype,"selectedDate",void 0);_.W([_.X(),_.Q("design:type",Object)],ql.prototype,"selectedTimeIndex",void 0);
_.W([_.X(),_.Q("design:type",Object)],ql.prototype,"selectedTimezoneIndex",void 0);_.W([_.B2("#time-listbox"),_.Q("design:type",Object)],ql.prototype,"timeListBox",void 0);_.W([_.B2("#timezone-listbox"),_.Q("design:type",Object)],ql.prototype,"timezoneListBox",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ql.prototype,"rendererStamperBehavior",void 0);_.W([_.a("data.timezoneOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ql.prototype,"timeZones",null);
_.W([_.ic("data","timeZones"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ql.prototype,"updateDefaultSelectedValue",null);_.W([_.a("selectedTimezoneIndex","timeZones"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ql.prototype,"selectedTimezone",null);_.W([_.a("selectedTimeIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ql.prototype,"selectedTime",null);
_.W([_.dz("ytd-calendar-date-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ql.prototype,"onDatePicked",null);_.W([_.gz("selectedTimezone","selectedTime","selectedDate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ql.prototype,"onDateTimeTimezoneChange",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],ql);
_.n(ql,"ytd-date-time-picker-renderer",function(){if(OG_!==void 0)return OG_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return OG_=N},{mode:1});var $MS;var f6=function(){var N=_.k.apply(this,arguments)||this;N.boundOnTapDismissButton=function(){N.dismissTapHandler()};
N.dismissButtonOverrides={size:"XS"};return N};
_.p(f6,_.k);f6.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}}}}}};
f6.prototype.dismissTapHandler=function(){_.or(this.hostElement,"yt-backstage-attachment-dismissed")};
f6.prototype.computeAttachmentType=function(N){return N?N.backstageImageRenderer?"image":N.videoRenderer?"video":"none":"none"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],f6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],f6.prototype,"attachmentPreview",void 0);_.W([_.X(),_.Q("design:type",Object)],f6.prototype,"dismissButton",void 0);_.W([_.X(),_.Q("design:type",Object)],f6.prototype,"boundOnTapDismissButton",void 0);
_.W([_.X(),_.Q("design:type",Object)],f6.prototype,"dismissButtonOverrides",void 0);_.W([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Q("design:type",String)],f6.prototype,"attachmentType",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],f6);
_.n(f6,"ytd-backstage-dismissable-attachment",function(){if($MS!==void 0)return $MS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $MS=N},{mode:1});var jha;var n6=function(){var N=_.k.apply(this,arguments)||this;N.selectedVideoId=void 0;N.picker=void 0;N.dismissButtonOverrides={size:"XS"};N.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return N};
_.p(n6,_.k);_.V=n6.prototype;_.V.onServiceRequestCompleted=function(N){N.stopPropagation()};
_.V.handleAddVideoPreviewAction=function(N){N=this.get("addVideoPreviewAction",N);this.onGetVideoPreviewSuccess(N)};
_.V.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.V.onLaunchVideoPicker=function(N){var t=this,O=_.Gv(this.get("addVideoLinkAction.title",N)),H=this.get("addVideoLinkAction.onePickHostId",N);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",N);H&&(this.picker||(O=_.ryQ(_.AXQ(H).setTitle(O).addView(qhZ()).addView(kC_()),function(A){t.onPickVideo(A)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",N)||O.addView("youtube"),this.picker=O.build()),this.picker.setVisible(!0))};
_.V.onPickVideo=function(N){if(N)if(N.action==="cancel")_.or(this.hostElement,"yt-video-link-button-cancel");else if(N.action==="picked"){N=N.docs;if(!N||N.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(N=(N==null?0:N.length)?N[0]:void 0)?N.id:void 0;this.setVideoPreview()}};
_.V.setVideoPreview=function(){var N=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){N.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.V.onGetVideoPreviewSuccess=function(N){if(N&&N.videoPreview&&N.cancelButton)this.videoPreview=N.videoPreview,this.cancelButton=N.cancelButton,_.or(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.V.onGetVideoPreviewError=function(){this.cancel()};
_.V.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.or(this.hostElement,"yt-video-link-cancel")};
_.V.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
n6.prototype.onServiceRequestCompleted=n6.prototype.onServiceRequestCompleted;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],n6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],n6.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],n6.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],n6.prototype,"videoPreview",void 0);_.W([_.X(),_.Q("design:type",Object)],n6.prototype,"cancelButton",void 0);_.W([_.X(),_.Q("design:type",Object)],n6.prototype,"getVideoPreviewCommand",void 0);_.W([_.X(),_.Q("design:type",Object)],n6.prototype,"dismissButtonOverrides",void 0);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],n6.prototype,"onServiceRequestCompleted",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],n6);
_.n(n6,"ytd-backstage-video-link-attachment",function(){if(jha!==void 0)return jha;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return jha=N},{mode:1});var iGr;var uY_;var SLr;var WI=function(){return _.k.apply(this,arguments)||this};
_.p(WI,_.k);WI.prototype.dataChanged=function(){this.active=!1};
WI.prototype.onTap=function(){_.or(this.hostElement,"yt-select-emoji-suggestion",this.data)};
WI.prototype.identity=function(N){return N};
_.cv.Object.defineProperties(WI.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H;if((N=this.data)==null?0:(t=N.image)==null?0:(O=t.thumbnails)==null?0:(H=O[0])==null?0:H.url)return N=this.data.image.thumbnails[0].url,N.startsWith("data:image/svg+xml")?xw(N):_.Id(N)}}});
WI.prototype.dataChanged=WI.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],WI.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],WI.prototype,"active",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],WI.prototype,"dataChanged",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],WI.prototype,"imageSrc",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],WI);
_.n(WI,"ytd-emoji-suggestion",function(){if(SLr!==void 0)return SLr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return SLr=N},{mode:1});var hY0=/.*([:@#].*?)$/,rX=function(){var N=_.k.apply(this,arguments)||this;N.suggestions=[];N.suggestionIndex=-1;N.JSC$16041_lastSuggestionRange=null;return N};
_.p(rX,_.k);_.V=rX.prototype;_.V.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.V.getSuggestions=function(N){var t=[],O=mvr(this.emojiManager,N.substr(0,3));if(O)for(var H in O)if(H.toLocaleLowerCase().indexOf(N)===0){var A=O[H];if(A&&A.emojiId){A=BR(this.emojiManager,A.emojiId);var Z=void 0,U=void 0,C=void 0,F=void 0,g=((Z=A)==null?0:Z.isCustomEmoji)?(U=A)==null?void 0:(C=U.shortcuts)==null?void 0:C[0]:(F=A)==null?void 0:F.emojiId;Z=void 0;t.push({suggestion:{image:(Z=A)==null?void 0:Z.image,alt:g,text:H}});if(t.length>=64)break}}return t?t.sort(function(B,c){return c.suggestion.text<
B.suggestion.text?-1:c.suggestion.text===B.suggestion.text?0:1}):null};
_.V.insertSuggestion=function(N){_.or(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16041_lastSuggestionRange,text:N.alt});this.dropdown.opened=!1};
_.V.updateSuggestionsAtCaret=function(N){this.updateSuggestions(N,this.retrieveTextBeforeRange(N))};
_.V.offsetStartOfRangeBy=function(N,t){N.startOffset>=t&&N.setStart(N.startContainer,N.startOffset-t)};
_.V.updateSuggestions=function(N,t){var O=this;this.JSC$16041_lastSuggestionRange&&(this.JSC$16041_lastSuggestionRange.detach(),this.JSC$16041_lastSuggestionRange=null);if((t=hY0.exec(t))&&t.length&&(t=t[t.length-1].toLocaleLowerCase(),t.length>2||t===":_")&&(this.offsetStartOfRangeBy(N,t.length),this.JSC$16041_lastSuggestionRange=N,(N=this.getSuggestions(t))&&N.length)){this.suggestions=N;_.yB(this,function(){O.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(N.length-1);return}this.dropdown.opened=!1};
_.V.onKeyDown=function(N){if(this.dropdown.opened)switch(N.key){case "Escape":this.dropdown.opened=!1;N.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);N.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);N.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),N.preventDefault()}};
_.V.onKeyUp=function(N,t){switch(N.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(t);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(t)}};
_.V.onKeyPress=function(N){N.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),N.preventDefault())};
_.V.changeSuggestionIndex=function(N){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(N+this.suggestions.length)%this.suggestions.length,N=this.dropdownContent.children[this.suggestionIndex],N.active=!0,this.dropdownContent.scrollTop=N.offsetTop)};
_.V.retrieveTextBeforeRange=function(N){var t=N.startContainer;return t&&t.nodeType===Node.TEXT_NODE?t.textContent.substr(0,N.startOffset):""};
rX.prototype.onKeyPress=rX.prototype.onKeyPress;rX.prototype.onKeyUp=rX.prototype.onKeyUp;rX.prototype.onKeyDown=rX.prototype.onKeyDown;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Array)],rX.prototype,"suggestions",void 0);_.W([_.X(),_.Q("design:type",_.gO)],rX.prototype,"emojiManager",void 0);_.W([_.X(),_.Q("design:type",Number)],rX.prototype,"verticalSuggestionsOffset",void 0);
_.W([_.B2("#dropdown"),_.Q("design:type",Object)],rX.prototype,"dropdown",void 0);_.W([_.B2("#dropdown-content"),_.Q("design:type",HTMLDivElement)],rX.prototype,"dropdownContent",void 0);_.W([_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],rX.prototype,"onKeyDown",null);_.W([_.dz("keyup"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent,Range]),_.Q("design:returntype")],rX.prototype,"onKeyUp",null);
_.W([_.dz("keypress"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],rX.prototype,"onKeyPress",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-emoji-input"})],rX);
_.n(rX,"ytd-emoji-input",function(){if(uY_!==void 0)return uY_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return uY_=N},{mode:2});var MYa;var Iq=function(){var N=_.k.apply(this,arguments)||this;N.hasMaxOptions=!1;return N};
_.p(Iq,_.k);_.V=Iq.prototype;_.V.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.V.setPrefilledChoices=function(N){var t=this;this.set("pollOptions",[]);var O;for(O=0;O<Math.min(N.length,this.data.maxPollOptions);O++)this.push("pollOptions",N[O].substring(0,this.data.maxPollOptionChars));for(;O<this.data.minPollOptions;O++)this.push("pollOptions","");this.hasMaxOptions=O>=this.data.maxPollOptions;_.yB(this,function(){for(var H=t.pollOptions,A=_.O6(t.hostElement).querySelectorAll(".poll-option-input"),Z=0;Z<A.length;Z++)A[Z].value=H[Z]})};
_.V.focusChanged=function(){_.CO(this.hostElement)};
_.V.onInput=function(){var N=this;_.W2(this,"onInput",function(){N.isValid()?_.or(N.hostElement,"yt-commentbox-post-enable"):_.or(N.hostElement,"yt-commentbox-post-disable")},300)};
_.V.setPollOptions=function(){var N=[],t,O=((t=this.data)==null?0:t.minPollOptions)?this.data.minPollOptions:0;for(t=0;t<O;t++)N.push("");return N};
_.V.addPollOption=function(){var N=this;_.or(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.GB.addLowPriorityJob(function(){var t;(t=_.O6(N.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||t.focus()})};
_.V.onRemovePollOption=function(N){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.or(this.hostElement,"yt-poll-attachment-dismiss")):(N=this.repeat.indexForElement(N.target.parentNode),N!==null&&(this.splice("pollOptions",N,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.or(this.hostElement,"yt-commentbox-post-enable"))))};
_.V.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.V.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var N=0,t=this.pollOptions.length;N<t;N++)if(this.pollOptions[N].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.V.getPollOptions=function(){return this.pollOptions};
_.V.setPollOptionsFromInputs=function(){for(var N=_.O6(this.hostElement).querySelectorAll(".poll-option-input"),t=0;t<N.length;t++)this.pollOptions[t]=N[t].value.trim()};
_.V.clearPollOptions=function(){var N=_.O6(this.hostElement).querySelectorAll(".poll-option-input");N=_.D(N);for(var t=N.next();!t.done;t=N.next())t.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.V.getSimpleString=function(N){return _.Gv(N)};
_.V.updateValueFromBinding=function(N){if(N.target&&this.pollOptions){var t=Array.from(_.O6(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(N.target);if(t>=0){var O;this.pollOptions[t]=(O=N.detail.value)!=null?O:"";this.notifyPath("pollOptions."+t)}}};
Iq.prototype.dataChanged=Iq.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Iq.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Array)],Iq.prototype,"pollOptions",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Iq.prototype,"hasMaxOptions",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Iq.prototype,"enableCreationBox",void 0);
_.W([_.B2("#repeat"),_.Q("design:type",zr)],Iq.prototype,"repeat",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Iq.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Iq);
_.n(Iq,"ytd-poll-attachment",function(){if(MYa!==void 0)return MYa;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MYa=N},{mode:2});var bGQ;var p$E;var L9_;var zYu;var ls=function(){return _.k.apply(this,arguments)||this};
_.p(ls,_.k);_.cv.Object.defineProperties(ls.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ls.prototype,"rendererBehaviors",void 0);_.W([_.X(),_.Q("design:type",Object)],ls.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ls.prototype,"focused",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("focused"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ls.prototype,"ariaSelected",null);_.W([_.wz({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],ls);
_.n(ls,"yt-user-mention-suggestion-renderer",function(){if(zYu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;L9_===void 0&&(L9_=document.createElement("template"));var H=L9_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);zYu=N}N=zYu;return N},{mode:2});var YLr;var aJp;var Qb=function(){var N=_.k.apply(this,arguments)||this;N.focusedSuggestionIndex=-1;return N};
_.p(Qb,_.k);_.V=Qb.prototype;_.V.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.V.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.V.setFocusedSuggestionIndex=function(N){!this.data||!this.data.suggestions||N<0||N>=this.data.suggestions.length||(this.focusedSuggestionIndex=N,N=this.getSuggestionId(N),this._setFocusedSuggestionId(N))};
_.V.advanceSuggestion=function(N){this.focusedSuggestionIndex===-1||N!==-1&&N!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+N),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.V.ensureSuggestionVisible=function(N){N=this.getSuggestionId(N);N=_.O6(this.hostElement).querySelector("[id="+N+"]");N!=null&&(N.offsetTop<this.hostElement.scrollTop?N.scrollIntoView(!0):N.offsetTop+N.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&N.scrollIntoView(!1))};
_.V.getSuggestionId=function(N){return"user-mention-suggestion-"+N};
_.V.onSuggestionTap=function(N){var t=_.M(N.model.item,onf);this.ytRendererBehavior.logExplicitClick(t);_.or(this.hostElement,"yt-user-mention-suggestion-selected",{data:t,index:N.model.index})};
_.V.onSuggestionMouseMove=function(N){N.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(N.model.index)};
_.V.isSuggestionFocused=function(N,t){return N===t};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("focused-suggestion-id-changed",this.focusedSuggestionId))};
Qb.prototype.focusedSuggestionIdChangedForBinding=Qb.prototype.focusedSuggestionIdChangedForBinding;Qb.prototype.onDomChange=Qb.prototype.onDomChange;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Qb.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Qb.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Qb.prototype,"focusedSuggestionIndex",void 0);_.W([_.X({readOnly:!0}),_.Q("design:type",String)],Qb.prototype,"focusedSuggestionId",void 0);
_.W([_.dz("dom-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Qb.prototype,"onDomChange",null);_.W([_.gz("focusedSuggestionId"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qb.prototype,"focusedSuggestionIdChangedForBinding",null);_.W([_.wz({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Qb);
_.n(Qb,"yt-user-mention-suggestions-dropdown",function(){if(aJp===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;YLr===void 0&&(YLr=document.createElement("template"));var H=YLr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);aJp=N}N=aJp;return N},{mode:2});var mQ=function(){var N=_.k.apply(this,arguments)||this;N.suggestionsResponse=null;N.activeMention=null;N.selectionChangeListener=N.onSelectionChange.bind(N);N.handlesEnabled=_.h("enable_handles_in_mention_suggest_posts");N.handlesInMentionSuggestionsEnabled=_.h("handles_in_mention_suggest_posts");N.zeroPrefixMentionSuggestionEnabled=_.h("enable_zero_prefix_mention_suggestion_web");N.pendingQuery=null;N.flowNonce=null;return N};
_.p(mQ,_.k);_.V=mQ.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.V.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.V.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.V.hasSuggestions=function(N){return!!(N&&N.suggestions&&N.suggestions.length>0)};
_.V.onInput=function(){var N=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var t=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),O=this.activeMention.JSC$11498_getText().slice(-1)===" ",H=this.activeMention.JSC$11498_getText().slice(-2,-1)===" ",A="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11498_getText().slice(-2,
-1))>=0;A=this.zeroPrefixMentionSuggestionEnabled&&A;if(this.activeMention.isCollapsed()||(t||H||A)&&O)this.cancelActiveMention();else{var Z=this.activeMention.JSC$11498_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.W2(this,"requestSuggestions",function(){N.requestSuggestions(Z)},100)}}}};
_.V.onServiceRequestSent=function(N){N.stopPropagation()};
_.V.onServiceRequestCompleted=function(N){N.stopPropagation();N=N.detail.data;N.query&&(!this.pendingQuery||this.pendingQuery!==N.query)||!this.zeroPrefixMentionSuggestionEnabled&&N.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=N,this.hasSuggestions(N)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.V.onServiceRequestError=function(N){N.stopPropagation()};
_.V.onUserMentionSuggestionSelected=function(N){this.selectSuggestion(N.detail.data,N.detail.index)};
_.V.onSelectionChange=function(){if(this.activeMention){var N=_.D_(),t=this.activeMention.JSC$11498_containsRange(N);N=N&&this.containsHelper(this.dropdown,N.getContainer());t||N||this.cancelActiveMention()}};
_.V.containsHelper=function(N,t){var O;if(((O=window.ShadyDOM)==null?void 0:O.noPatch)===!0)return N.contains(t);for(;t;){if(t===N)return!0;t=t instanceof ShadowRoot?t.host:t.parentNode}return!1};
_.V.maybeStartSuggest=function(){var N=_.D_();if(N&&N.isCollapsed()){var t=N.JSC$11498_getStartNode(),O=N.JSC$11498_getStartOffset();if(t instanceof Text&&!(O<1)){var H=t.textContent;!(H=H&&H.charAt(O-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(H)<0||(this.activeMention=_.tV(t,O-1,N.JSC$11498_getEndNode(),N.JSC$11498_getEndOffset()),this.flowNonce=M0(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.V.updateActiveMention=function(){if(this.activeMention){var N=_.D_();N&&N.isCollapsed()&&(this.activeMention=_.tV(this.activeMention.JSC$11498_getStartNode(),this.activeMention.JSC$11498_getStartOffset(),N.JSC$11498_getEndNode(),N.JSC$11498_getEndOffset()))}};
_.V.requestSuggestions=function(N){if(this.activeMention){var t={suggestions_query:N};this.pendingQuery=N;_.tb(this.hostElement,[this.suggestionsEndpoint,t])}};
_.V.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.V.focusPreviousSuggestion=function(N){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),N.preventDefault())};
_.V.focusNextSuggestion=function(N){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),N.preventDefault())};
_.V.selectFocusedSuggestion=function(N){if(this.hasSuggestions(this.suggestionsResponse)){var t=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.M(t,onf)&&(this.selectSuggestion(_.M(t,onf),this.dropdown.focusedSuggestionIndex),N.preventDefault())}};
_.V.selectSuggestion=function(N,t){if(N){var O=this.activeMention;if(O){var H=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&N.handle?_.lt(H,"\u00a0\u2068@"+N.handle+"\u2069\u00a0"):this.handlesEnabled?_.lt(H,"\u00a0"+N.displayName+"\u00a0"):_.lt(H,"\u00a0@"+N.displayName+"\u00a0");Rd(H,"/channel/"+N.channelId);H.classList.add("yt-formatted-string","yt-simple-endpoint");H.setAttribute("spellcheck","false");O.isCollapsed()||O.JSC$11498_removeContents();O.insertNode(H,!0);N=document.createTextNode(" ");
H.parentNode.insertBefore(N,H.nextSibling);window.getSelection().collapse(N,1);t={suggestionSelected:{suggestionIndex:t}};if(this.zeroPrefixMentionSuggestionEnabled){var A;t.suggestionSelected.isZeroPrefix=((A=this.suggestionsResponse)==null?void 0:A.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",t);this.cancelActiveMention();_.or(this.hostElement,"yt-mention-inserted")}}};
_.V.getPositionTarget=function(N){return N&&N.getBrowserRangeObject()};
_.V.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.V.onFocusedSuggestionIdChanged=function(N){var t=_.$lv(this.hostElement)[0];t&&(N.detail.value?t.setAttribute("aria-activedescendant",N.detail.value):t.removeAttribute("aria-activedescendant"))};
_.V.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.V.logGELEvent=function(N,t){N={eventType:N,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};t&&(N=Object.assign(N,t));_.E7("userMentionAutoCompleteBoxEvent",N)};
mQ.prototype.onDomChange=mQ.prototype.onDomChange;mQ.prototype.onUserMentionSuggestionSelected=mQ.prototype.onUserMentionSuggestionSelected;mQ.prototype.onServiceRequestError=mQ.prototype.onServiceRequestError;mQ.prototype.onServiceRequestCompleted=mQ.prototype.onServiceRequestCompleted;mQ.prototype.onServiceRequestSent=mQ.prototype.onServiceRequestSent;mQ.prototype.onInput=mQ.prototype.onInput;_.W([_.Y(_.rA),_.Q("design:type",Object)],mQ.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],mQ.prototype,"suggestionsEndpoint",void 0);_.W([_.X(),_.Q("design:type",Object)],mQ.prototype,"suggestionsResponse",void 0);_.W([_.X(),_.Q("design:type",Object)],mQ.prototype,"activeMention",void 0);_.W([_.B2("#dropdown"),_.Q("design:type",Object)],mQ.prototype,"dropdown",void 0);_.W([_.B2("#iron-dropdown"),_.Q("design:type",Object)],mQ.prototype,"ironDropdown",void 0);
_.W([_.dz("input"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],mQ.prototype,"onInput",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],mQ.prototype,"onServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],mQ.prototype,"onServiceRequestCompleted",null);
_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],mQ.prototype,"onServiceRequestError",null);_.W([_.dz("yt-user-mention-suggestion-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],mQ.prototype,"onUserMentionSuggestionSelected",null);
_.W([_.dz("dom-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],mQ.prototype,"onDomChange",null);_.W([_.wz({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],mQ);
_.n(mQ,"yt-user-mention-autosuggest-input",function(){if(p$E===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;bGQ===void 0&&(bGQ=document.createElement("template"));var H=bGQ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);p$E=N}N=p$E;return N},{mode:2});var Eu=null;
_.LO({is:"ytd-commentbox",_template:function(){if(iGr!==void 0)return iGr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return iGr=N},
behaviors:[_.ROp.YtHostElementBehavior,_.rA,_.Wu.YtActionHandlerBehavior,_.CD.YtComponentBehavior,_.LD.YtRendererstamperBehavior,_.KMp.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(N,t){return _.CM(N.entities,"aadcGuidelinesStateEntityPayload",t)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(N,t){return _.CM(N.entities,"commentboxStateEntity",t)},
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 _.cR}},
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:_.h("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.h("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",_.Fb(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(N){this.fire(N?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(N){this.set("submitButtonDisabled",void 0);this.clear();N&&this.computeIsEmojiButtonDisplayed_(N)&&(N=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&N.updateEmojiCategories()},
observePrefilledImage_:function(N,t,O){this.isValidPrefilledImage_(N,t,O)&&(this.prefilledAttachment_="image",this.prefilledImageData_=t,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(N,t){this.isValidPrefilledVideo_(N,t)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(N){N&&N.pollData&&N.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(N.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Yb();this.focus()},
detached:function(){document.removeEventListener("tap",_.Fb(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(N){N=N.detail;N=N.isCustomEmoji?N.shortcuts[0]:N.emojiId;var t=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(t,N);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var N=_.D_();if(N){N=N.getBrowserRangeObject();for(var t=N.commonAncestorContainer;t;){if(t===this.getEditableTextArea_())return N;t=t.parentNode}}N=this.getEditableTextArea_();N=_.Nj(N,N.childNodes.length);N.select();return N.getBrowserRangeObject()},
insertTextWithEmojis_:function(N,t,O){(t=this.emojiManager.createDocumentFragment(t,!0,!1,O===void 0?!0:O))&&t.childNodes.length!==0&&(N.collapsed||N.deleteContents(),O=t.lastChild,N.insertNode(t),_.$eE(O).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var N=_.D_();if(N){var t=N.JSC$11498_getStartNode(),O=N.JSC$11498_getEndNode();if(Hyy(t)&&Hyy(O)){var H=N.JSC$11498_getStartOffset(),A;if(_.Kl&&t.nodeType===Node.ELEMENT_NODE&&(A=_.cDp(t)))_.Nj(A,0).select();else{A=Aq(t)?t:_.EW(t,Aq);var Z=Aq(O)?O:_.EW(O,Aq);if(A||Z)if(N.isCollapsed()){if(t.nodeType===Node.TEXT_NODE){N=!0;H===t.length&&(N=!1);if(Eu==="end"||Eu==="right")N=!1;t=t.parentNode;N=[].concat(_.W6(t.parentNode.childNodes)).indexOf(t)+(N?0:1);_.Nj(t.parentNode,
N).select()}}else A?A.previousSibling&&A.previousSibling.length>0?_.tV(O,N.JSC$11498_getEndOffset(),A.previousSibling,A.previousSibling.length-1).select():(t=document.createTextNode("\u200b"),A.parentNode.insertBefore(t,A),_.tV(O,N.JSC$11498_getEndOffset(),t,0).select()):Z&&(Z.nextSibling&&Z.nextSibling.length>0?_.tV(t,N.JSC$11498_getStartOffset(),Z.nextSibling,1).select():(O=document.createTextNode("\u200b"),Z.parentNode.insertBefore(O,Z.nextSibling),_.tV(t,N.JSC$11498_getStartOffset(),O,O.length).select()));
Eu=null}}else Eu=null}else Eu=null},
leftKeyPressed_:function(){Eu="left"},
rightKeyPressed_:function(){Eu="right"},
endKeyPressed_:function(){Eu="end"},
maybeDeleteChip_:function(){var N=CGM(!0);if(N){var t=_.D_(),O=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();_.R3(O,t,N,N.childNodes.length).select()}},
maybeBackspaceChip_:function(){var N=CGM(!1);if(N){var t=_.D_(),O=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();_.R3(O,t,N,0).select()}},
maybeBackspaceChipWordMode_:function(N){var t=_.D_();if(t.isCollapsed()){var O=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();var H=K6O(O,t,!0);H&&(_.R3(O,t,H,0).select(),document.execCommand("delete"),N.preventDefault(),N.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(N){var t=_.D_();if(t.isCollapsed()){var O=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();var H=K6O(O,t,!1);H&&(_.R3(O,t,H,H.childNodes.length).select(),document.execCommand("delete"),N.preventDefault(),N.stopImmediatePropagation())}},
onTap_:function(N){if(!N.defaultPrevented&&(N.currentTarget.tagName==="YTD-COMMENTBOX"&&Aq(N.target)&&N.preventDefault(),this.isEmojiPickerDisplayed)){var t=this.$$("#emojis"),O=this.$$("#emoji-button"),H=this.getEditableTextArea_();if((N=N.path?N.path:N.composedPath&&N.composedPath())&&!N.includes(t)&&!N.includes(H)&&!N.includes(O))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(N,t,O){return N==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&t!==void 0&&t.encryptedBlobId!==null&&t.sourceExternalVideoId!==null&&O!==void 0&&O.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(N,t){return N==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!t&&!!t.videoRenderer&&!!t.videoRenderer.videoId},
isValidPrefilledAttachment_:function(N,t,O){return this.isValidPrefilledImage_(N,t,O)||this.isValidPrefilledVideo_(N,O)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.h("enable_multi_image_post_creation")){var N=this.$$("ytd-backstage-multi-image-select-renderer");N&&N.hasImages()&&N.cancel()}else(N=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&N.cancel();(N=this.$["poll-attachment"])&&this.hasPoll_&&N.clearPollOptions();(N=this.$["image-poll-attachment"])&&this.hasImagePoll_&&N.resetPollOptions();(N=this.$["quiz-attachment"])&&this.hasQuiz_&&N.resetQuizOptions();
(N=this.$["video-link-attachment"])&&this.hasVideo_&&N.cancel();(N=this.$["access-restrictions-selector"].firstElementChild)&&N.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.O6(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.O6(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(N,t){N=ZyG(N,this.emojiManager,t).cloneNode(!0);for(t=N.firstChild;t;)if(t.nodeType!==1)t=t.nextSibling;else switch(t.tagName){case "BR":var O=_.qO();_.bmB(O,t);t=O.nextSibling;break;case "DIV":(O=t.lastChild)&&t.nextSibling&&_.rI(_.qO(),O);t.previousSibling&&(t.previousSibling.nodeType===1||t.previousSibling.nodeType===3&&!t.previousSibling.textContent.endsWith("\n"))&&_.W1(_.qO(),t);O&&O.nodeName==="BR"&&_.wb(O);O=t;t.hasChildNodes()?(t=t.firstChild,
_.pWa(O)):(t=t.nextSibling,_.wb(O));break;default:t=t.nextSibling}return F6O(N)},
onAddImageError_:function(N){N.stopPropagation();this.errorMessage_=_.E_(N.detail)},
setTextAreaValue_:function(N){N||(N="");var t=this.getEditableFormattedString_();t.text="";this.getEditableTextArea_().innerText="";typeof N==="string"&&(N={runs:[{text:N}]});t.text=N},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Eu=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var N=this.getEditableTextArea_();N&&(_.Nj(N,N.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ro("HTML_DIR")==="rtl"){var N=this.getEditableTextArea_(),t=this.getTextAreaValue()!==""?"auto":"rtl";N.setAttribute("dir",t)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var N;return obQ((N=this.$["quiz-attachment"])==null?void 0:N.getExplanationText())||obQ(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var N=null;if(this.isEmojiButtonDisplayed){var t=this.getInputRange_();t&&(N=this.emojiInput.retrieveTextBeforeRange(t))}this.insertText_(N,!0);this.updateCharCount_();this.setSubmitButton_();N=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=N.scrollHeight>N.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var N=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:N})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(N){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(N)},
onPasteEmoji_:function(N){N.preventDefault();N.stopImmediatePropagation();N=N.clipboardData.getData("text/plain");this.insertText_(N,!1,!1)},
insertText_:function(N,t,O){t=t===void 0?!1:t;O=O===void 0?!0:O;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&N){var H=this.getInputRange_().cloneRange();this.emojiManager&&H&&(t&&this.emojiInput.offsetStartOfRangeBy(H,N.length),this.insertTextWithEmojis_(H,N,O),Apv(this.getEditableTextArea_().lastChild)||(H=this.getInputRange_().cloneRange()),H&&(this.emojiInput.updateSuggestions(H,N),this.updateSuggestionOffset_(H)))}},
setSubmitButton_:function(){if(this.data){var N=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",t=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(N||t){var O=this.getTextAreaValue().trim();t=O===this.previousText_;O=!O||this.aboveCharLimit_;N&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(O=this.aboveCharLimit_);this.submitButtonDisabled=
t||O||!this.getTextLength();N&&_.h("enable_post_scheduling")&&(this.submitButtonDisabled=t&&!this.scheduledPublishTimeSec_||O)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Gv,computeCreationBoxClass_:function(N){return N?"focused":"not-focused"},
computeFooterMessageClass_:function(N,t){return t?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(N,t){return t?t:N},
computeFooterMessageHidden_:function(N,t){return!t&&!N},
computePlaceholderText_:function(N,t,O){return(O==="video"||O==="image")&&(N==null?0:N.prefilledPlaceholderText)?N==null?void 0:N.prefilledPlaceholderText:t==="poll"||t==="image-poll"?N==null?void 0:N.pollPostPlaceholderText:t==="quiz"?N==null?void 0:N.quizPostPlaceholderText:t==="image"?N==null?void 0:N.imagePostPlaceholderText:N==null?void 0:N.placeholderText},
computeHideAttachmentButtons_:function(N,t,O,H){return N===void 0?!1:H&&this.getSimpleString(H)===this.getSimpleString(N.rateLimitErrorMessage)?!0:t!=="none"||O!=="none"||!N.videoLinkButton&&!N.pollButton&&!N.imagePollButton&&!N.quizButton&&!N.imageButton},
computeHideDismissableAttachment_:function(N){return N!=="image"&&N!=="video"},
computeHasVideo_:function(N){return N==="video"},
computeHasImage_:function(N){return N==="image"},
computeHasPoll_:function(N){return N==="poll"},
computeHasImagePoll_:function(N){return N==="image-poll"},
computeHasQuiz_:function(N){return N==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(N){return N&&N.backstageAttachment?N.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!N.backstageAttachment.quizRenderer&&!N.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(N){if(this.isValidPrefilledAttachment_(N.purpose,N.prefilledImageData,N.backstageAttachment))return N.backstageAttachment},
computeEditAttachment_:function(N){if(this.computePrefilledContent_(N)===void 0)return N.backstageAttachment},
computeAuthorThumbnailDimension_:function(N,t){return N&&!t?24:40},
computeImageUploadEndpoint_:function(N){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",N)},
computeRateLimitErrorCommands_:function(N){var t,O;return N==null?void 0:(t=N.advancedTierFeatures)==null?void 0:(O=t.rateLimit)==null?void 0:O.rateLimitCommands},
computeIsBackstageComment_:function(N){return!(!N||N!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(N){return this.get("submitButton.buttonRenderer.serviceEndpoint",N)||this.get("replyButton.buttonRenderer.serviceEndpoint",N)||this.get("postButton.buttonRenderer.serviceEndpoint",N)},
computeSubmitButtonOverride:function(){if(_.h("web_modern_buttons")){var N,t;return{segmentedPosition:this.dropdownSchedulePanel_||!((N=this.data)==null?0:(t=N.postOptionsMenu)==null?0:t.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.h("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(N,t){N=this.get("submitButton.buttonRenderer",N)||this.get("replyButton.buttonRenderer",N)||this.get("postButton.buttonRenderer",N);t&&(N=t);N&&(N=Object.assign({},N),N.serviceEndpoint=void 0,N.isDisabled=this.submitButtonDisabled);return N},
computeHasExternalLinksAccess_:function(N){if(_.h("enable_rfa_external_links")){var t,O,H;return(H=N==null?void 0:(t=N.advancedTierFeatures)==null?void 0:(O=t.externalLinks)==null?void 0:O.allowExternalLinks)!=null?H:!0}return!0},
computeIsEmojiButtonDisplayed_:function(N){return N.emojiButton&&N.emojiPicker&&N.emojiPicker.emojiPickerRenderer&&N.emojiPicker.emojiPickerRenderer.categories?N.emojiPicker.emojiPickerRenderer.categories.find(function(t){return t.emojiPickerCategoryRenderer?t.emojiPickerCategoryRenderer.emojiIds&&t.emojiPickerCategoryRenderer.emojiIds.length>0:t.emojiPickerUpsellCategoryRenderer?t.emojiPickerUpsellCategoryRenderer.emojis&&t.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(N){return N.charLimit?N.charLimit:null},
computeDropdownSchedulingPanel_:function(N,t){if(N==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&t)return t},
computeInlineSchedulingPanel_:function(N,t){if(N==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&t)return t},
computeHideAuthorThumbnail_:function(N,t){return N||this.computeUseIdentityChip_(t)},
computeHideIdentityChipRenderer_:function(N,t){return N||!this.computeUseIdentityChip_(t)},
computeUseIdentityChip_:function(N){return!!N&&!!N.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(N){var t,O,H,A;(N==null?0:(t=N.detail)==null?0:(O=t.endpoint)==null?0:O.ypcGetOffersEndpoint)||(N==null?0:(H=N.detail)==null?0:(A=H.endpoint)==null?0:A.ypcOffersEndpoint)?(N.stopPropagation(),_.tb(this,[N.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",N)&&(N.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(N){this.addedAttachment="video";this.selectedVideoId_=N.detail.videoId},
commentboxStateEntityChanged_:function(N){var t=this;(N==null?void 0:N.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(N==null?void 0:N.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){t.focus()})},
onYtServiceRequestSent_:function(N,t){if(t.actions)for(N=_.D(t.actions),t=N.next();!t.done;t=N.next())t.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(N){this.isLoading=!1;var t=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",N),O,H,A,Z=N==null?void 0:(O=N.detail)==null?void 0:(H=O.data)==null?void 0:(A=H.actionResult)==null?void 0:A.commentboxStateEntityKey;if(t)this.errorMessage_=t;else if(Z){var U;this.dismissData_=N==null?void 0:(U=N.detail)==null?void 0:U.data;this.commentboxStateKey_=Z}else{this.clear();var C;this.fire("yt-commentbox-dismiss",N==null?void 0:(C=N.detail)==
null?void 0:C.data)}},
onYtServiceRequestError_:function(N){N.stopPropagation();this.isLoading=!1;var t,O;if(((t=this.data)==null?void 0:t.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((O=this.data)==null?void 0:O.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(t=this.get("detail.error.args",N)||[],t.length>1&&t[1].message){this.handlePostsServiceRequestError_(t[1].message);return}(N=this.get("detail.error.message",N))?this.errorMessage_=this.data.errorMessage||_.E_(N):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(N){if(_.h("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var t=_.D(this.rateLimitErrorCommands),O=t.next();!O.done;O=t.next())if(O=O.value,O.errorLabel===N){_.CC(O.command,this.hostElement);return}this.errorMessage_=_.E_(N)},
submitIfNotBackstagePost_:function(N){if(!this.isBackstagePost)this.onSubmit_(N)},
onSubmit_:function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w;return _.K(function(P){switch(P.nextAddress){case 1:N.stopPropagation();if(!t.serviceEndpoint||!t.isValidInput_())return P.return();if(t.shouldShowPostAadcNotice_())return t.showPostAadcNotice_(),P.return();if(t.shouldShowCommentAadcNotice_())return t.showCommentAadcNotice_(),P.return();if(!(t.$$("ytd-backstage-multi-image-select-renderer")&&t.hasImage_&&_.h("enable_multi_image_post_creation"))){P.jumpTo(2);break}O=t.$$("ytd-backstage-multi-image-select-renderer");
return P.yield(O.getAllUploadStatuses(),3);case 3:H=P.yieldResult;if(!H)return P.return();A=_.D(H);for(Z=A.next();!Z.done;Z=A.next())if(U=Z.value,U.encryptedBlobId===void 0)return t.isLoading=!1,F=C=void 0,t.errorMessage_=(F=(C=t.imageUploadEndpoint_)==null?void 0:C.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?F:null,P.return();return P.return(t.submitForm_(void 0,void 0,void 0,void 0,O.images,t.taggedVideoId_));case 2:if(!t.hasImagePoll_||!t.$["image-poll-attachment"]){P.jumpTo(4);
break}return P.yield(t.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:g=P.yieldResult;if(!g)return P.return();B=_.D(g);for(c=B.next();!c.done;c=B.next())if(u=c.value,!u.encryptedBlobId)return t.isLoading=!1,S=void 0,t.errorMessage_=(S=t.data.errorMessage)!=null?S:null,P.return();case 4:z=(b=t.$$("ytd-backstage-image-select-renderer"))&&b.uploadPromise(),w=t.getSharedPostId_(),z?z.then(function(){t.submitForm_.apply(t,_.W6(_.E1.apply(0,arguments)))}).catch(function(x){t.isLoading=!1;
t.errorMessage_=_.E_(x.message)}):t.selectedVideoId_?t.submitForm_(void 0,t.selectedVideoId_):t.prefilledAttachment_==="image"?t.submitForm_(t.prefilledImageData_.encryptedBlobId,void 0,void 0,t.prefilledImageData_.sourceExternalVideoId,void 0,t.taggedVideoId_):t.prefilledAttachment_==="video"?t.submitForm_(void 0,t.data.backstageAttachment.videoRenderer.videoId):w?t.submitForm_(void 0,void 0,w):t.taggedVideoId_!==void 0?t.submitForm_(void 0,void 0,void 0,void 0,void 0,t.taggedVideoId_):t.submitForm_(),
_.Ty(P)}})},
openSchedulingPanel:function(N){N&&N.scheduleButton&&N.scheduleButton.buttonRenderer&&(this.scheduleButton_=N.scheduleButton.buttonRenderer);N&&N.dateTimePicker&&this.set("data.schedulingDateTimePicker",N.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(N){N.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(N){N.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(N){N.stopPropagation();N.detail.alertMessage&&(this.alertMessage_=N.detail.alertMessage)},
onImageSelected_:function(N){N.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(N){N.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(N){N.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(N.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(N){N.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(N){var t=this.$["video-link-attachment"];t&&t.onLaunchVideoPicker(N)},
onAttachmentDismiss_:function(N){N.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.h("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.h("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var N;if(this.addedAttachment==="image-poll"&&((N=this.$["image-poll-attachment"])==null||!N.isValid()))return!1;var t;if(this.addedAttachment==="quiz"&&((t=this.$["quiz-attachment"])==null||!t.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;N=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(N=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")N=!0;return N||!!this.getTextAreaValue().trim()},
submitForm_:function(N,t,O,H,A,Z){var U=this.getTextAreaValue().trim(),C={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&U===this.previousText_&&(U=void 0);U!==void 0&&(C.comment_text=U);this.isLoading=!0;Z!=void 0&&(C.tagged_video_id=Z);N?(C.image_blob_id=N,this.imagePreviewCoordinates_&&(C.image_preview_coordinates=this.imagePreviewCoordinates_)):t?C.attached_video_id=t:O?C.shared_post_id=O:A&&A.length>0&&(C.images_data=A.map(function(F){return{encryptedBlobId:F.encryptedBlobId,
previewCoordinates:F.previewCoordinates}}));
H&&(C.source_video_id=H);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(C.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(C.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(C.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(C.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.h("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(C.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.tb(this,[this.serviceEndpoint,C])},
onIsInputFocusChanged_:function(N,t){N?this.fire("yt-autonav-pause-focus"):t!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(N){var t=this.getEditableTextArea_();[].concat(_.W6(N.dataTransfer.items)).forEach(function(O){O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(H){t.appendChild(document.createTextNode(H))})});
N.preventDefault()},
preventDefault_:function(N){N.preventDefault()},
onSuggestionInsert_:function(N){this.insertTextWithEmojis_(N.detail.range,N.detail.text)},
onEmojiSuggestionClick_:function(N){this.emojiInput.insertSuggestion(N.detail)},
computeSubmitButtonClass_:function(N,t){return!t||N?"":"with-options"},
updateSuggestionOffset_:function(N){if(this.emojiInput&&_.O6(this.emojiInput).querySelector("#dropdown")){var t=this.getEditableTextArea_().getBoundingClientRect().bottom,O=N.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(t-O)+5;t=this.getEditableTextArea_().getBoundingClientRect().left;N=N.getBoundingClientRect().left-t;_.O6(this.emojiInput).querySelector("#dropdown").style.marginLeft=N+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(N){if(_.h("enable_post_scheduling")&&this.data&&this.data.purpose){N=N.detail;if(Math.floor(Date.now()/1E3)>=N)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var t=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(t)||t!==N?this.scheduledPublishTimeSec_=N:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=N;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var N=["image-button","image-poll-button","poll-button","quiz-button"];_.h("auto_convert_posts_video_tag")||N.push("video-link-button");return N},
getButtonRenderer:function(N,t){if(N)switch(t){case "video-link-button":var O;return((O=N.videoLinkButton)==null?void 0:O.buttonRenderer)||void 0;case "image-button":var H;return((H=N.imageButton)==null?void 0:H.buttonRenderer)||void 0;case "poll-button":var A;return((A=N.pollButton)==null?void 0:A.buttonRenderer)||void 0;case "image-poll-button":var Z;return((Z=N.imagePollButton)==null?void 0:Z.buttonRenderer)||void 0;case "quiz-button":var U;return((U=N.quizButton)==null?void 0:U.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var N;return(N=this.data)==null||!N.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var N,t;return!((N=this.data)==null||!N.openAadcDialog)&&!((t=this.aadcGuidelinesState_)==null||!t.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Ro("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var N;((N=this.data)==null?0:N.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.sv("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(N){N.clickTrackingParams&&_.gF().clickCommand(N);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.sl(this,"yt-close-popup-action")},
onHideIdentityChip:function(N){var t;this.set("data.placeholderText",(t=N.hideIdentityChipAction)==null?void 0:t.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var G9=function(){var N=_.k.apply(this,arguments)||this;N.isOpen=!1;N.modern=_.h("web_modern_buttons");N.roundedContainer=!0;N.dropdownButtonOverride=_.h("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;N.inPopupContainer=!1;N.isCommentboxLoading=!1;var t=["image-button","image-poll-button","poll-button"];_.h("enable_quiz_creation")&&t.push("quiz-button");_.h("auto_convert_posts_video_tag")||t.push("video-link-button");N.attachmentButtonIds=t;N.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return N};
_.p(G9,_.k);_.V=G9.prototype;_.V.computeButtonOverride=function(){var N;return((N=this.data)==null?0:N.postOptionsMenu)&&_.h("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.V.configureRendererStamper=function(){var N={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.h("auto_convert_posts_video_tag")||(N["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return N};
_.V.ready=function(){var N=this,t=_.O6(this.hostElement).querySelector("#placeholder-area"),O=function(H){N.onOpen(H)};
t.addEventListener("tap",O);t.addEventListener("keypress",O)};
_.V.showButtonEduTooltip=function(){var N,t,O,H,A,Z,U;if(_.h("enable_quiz_creation")&&((N=this.data)==null?0:(t=N.quizButton)==null?0:(O=t.buttonRenderer)==null?0:(H=O.hint)==null?0:(A=H.hintRenderer)==null?0:(Z=A.content)==null?0:(U=Z.bubbleHintRenderer)==null?0:U.text)&&(_.nZ.getInstance(),N=WT(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(N==null?void 0:
N.length)>0)){this.ytComponentBehavior.resolveCommand(N[0],{form:{element:this.quizButton}});return}var C;if((C=this.data)==null?0:C.imagePollButtonTooltip)if(_.nZ.getInstance(),C=WT(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(C==null?void 0:C.length)>0){this.ytComponentBehavior.resolveCommand(C[0],{form:{element:this.imagePollButton}});return}var F;_.h("enable_multi_image_post_creation")&&
((F=this.data)==null?0:F.multiImageButtonTooltip)&&(_.nZ.getInstance(),F=WT(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(F==null?void 0:F.length)>0&&this.ytComponentBehavior.resolveCommand(F[0],{form:{element:this.imageButton}}))};
_.V.onCreatePollAction=function(N){_.M(N,hpZ)&&(this.JSC$16096_commentbox.addedAttachment="poll",this.openDialog())};
_.V.onAddVideoLinkAction=function(N){if(_.M(N,j3f))this.JSC$16096_commentbox.onAddVideoLink(N)};
_.V.onShowSchedulingPanelCommand=function(N){(N=_.M(N,G4Z))&&this.openSchedulingPanel(N)};
_.V.onCreateImagePollCommand=function(N){_.M(N,RtB)&&(this.JSC$16096_commentbox.openImagePollComponent(),this.openDialog())};
_.V.onCreateQuizCommand=function(N){_.M(N,vOX)&&(this.JSC$16096_commentbox.openQuizComponent(),this.openDialog())};
_.V.openSchedulingPanel=function(N){_.h("enable_post_scheduling")&&(this.openDialog(),this.JSC$16096_commentbox.openSchedulingPanel(N))};
_.V.onCreateCommentAction=function(N){this.get("createCommentAction.contents",N)&&(this.JSC$16096_commentbox.clear(),this.closeDialog())};
_.V.onOpen=function(N){N instanceof KeyboardEvent&&N.type==="keypress"&&N.keyCode!==13&&N.keyCode!==32||(this.data.prepareAccountEndpoint?_.or(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.closeDialog()};
_.V.onYtCommentboxLoadingStart=function(N){N.stopPropagation();this.isCommentboxLoading=!0};
_.V.onYtCommentboxLoadingEnd=function(N){N.stopPropagation();this.isCommentboxLoading=!1};
_.V.onYtVideoLinkButtonCancel=function(N){N.stopPropagation();this.onOpen(N)};
_.V.onYtVideoLinkSelected=function(N){N.stopPropagation();this.onOpen(N)};
_.V.onIronSelect=function(N){N.stopPropagation();N.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=N.detail.item.value&&(this.accessRestriction?(this.accessRestriction=N.detail.item.value,this.onOpen(N)):this.accessRestriction=N.detail.item.value)};
_.V.onYtNavigate=function(N){this.get("detail.endpoint.backstageImageUploadEndpoint",N)&&(this.JSC$16096_commentbox.addedAttachment="image",this.JSC$16096_commentbox.submitButtonDisabled=!0,this.onOpen(N))};
_.V.onRequestSent=function(N){for(var t=_.D(N.detail),O=t.next();!O.done;O=t.next())_.M(O.value,Vty)&&(this.JSC$16096_commentbox.addedAttachment="image",this.JSC$16096_commentbox.submitButtonDisabled=!0,this.onOpen(N))};
_.V.openDialog=function(){var N;(N=this.data)!=null&&N.isIneligibleForCommunityPagePostCreation||(this.JSC$16096_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16096_commentbox.focus())};
_.V.onPopupClosed=function(){_.nZ.getInstance()};
_.V.computeCreationDisabled=function(N){return!!N};
_.V.computeIsCreationDialog=function(N){return!!N&&N==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.V.computeDisabledPostButton=function(N){if(!N)return null;N.isDisabled=!0;return N};
_.V.computeIsCreationDialogWithHeader=function(N){return!this.inPopupContainer&&!!N&&!!N.authorText&&N.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.V.computeIsHeaderHidden=function(N,t){return!N||t};
_.V.computeDropdownRendererClasses=function(N){return N?["text-secondary-style"]:[]};
_.V.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var N=_.O6(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;N&&N.reset()};
G9.prototype.onPopupClosed=G9.prototype.onPopupClosed;G9.prototype.onRequestSent=G9.prototype.onRequestSent;G9.prototype.onYtNavigate=G9.prototype.onYtNavigate;G9.prototype.onIronSelect=G9.prototype.onIronSelect;G9.prototype.onYtVideoLinkSelected=G9.prototype.onYtVideoLinkSelected;G9.prototype.onYtVideoLinkButtonCancel=G9.prototype.onYtVideoLinkButtonCancel;G9.prototype.onYtCommentboxLoadingEnd=G9.prototype.onYtCommentboxLoadingEnd;G9.prototype.onYtCommentboxLoadingStart=G9.prototype.onYtCommentboxLoadingStart;
G9.prototype.onYtCommentboxDismiss=G9.prototype.onYtCommentboxDismiss;G9.prototype.showButtonEduTooltip=G9.prototype.showButtonEduTooltip;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],G9.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],G9.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],G9.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G9.prototype,"isOpen",void 0);_.W([_.X({computed:"computeButtonOverride(data)"}),_.Q("design:type",Object)],G9.prototype,"buttonOverride",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G9.prototype,"modern",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G9.prototype,"roundedContainer",void 0);_.W([_.X(),_.Q("design:type",Object)],G9.prototype,"dropdownButtonOverride",void 0);_.W([_.X({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Q("design:type",Boolean)],G9.prototype,"creationDisabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],G9.prototype,"enableCreationBox",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Q("design:type",Boolean)],G9.prototype,"isCreationDialog",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G9.prototype,"inPopupContainer",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Q("design:type",Boolean)],G9.prototype,"isCreationDialogWithHeader",void 0);_.W([_.X(),_.Q("design:type",Object)],G9.prototype,"accessRestriction",void 0);
_.W([_.X({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Q("design:type",Array)],G9.prototype,"dropdownRendererClasses",void 0);_.W([_.X(),_.Q("design:type",Object)],G9.prototype,"isCommentboxLoading",void 0);_.W([_.X(),_.Q("design:type",Array)],G9.prototype,"attachmentButtonIds",void 0);_.W([_.B2("#image-button"),_.Q("design:type",HTMLElement)],G9.prototype,"imageButton",void 0);
_.W([_.B2("#image-poll-button"),_.Q("design:type",HTMLElement)],G9.prototype,"imagePollButton",void 0);_.W([_.B2("#quiz-button"),_.Q("design:type",HTMLElement)],G9.prototype,"quizButton",void 0);_.W([_.B2("#commentbox"),_.Q("design:type",Object)],G9.prototype,"JSC$16096_commentbox",void 0);_.W([_.gz("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G9.prototype,"showButtonEduTooltip",null);
_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G9.prototype,"onYtCommentboxDismiss",null);_.W([_.dz("yt-commentbox-loading-start"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G9.prototype,"onYtCommentboxLoadingStart",null);
_.W([_.dz("yt-commentbox-loading-end"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G9.prototype,"onYtCommentboxLoadingEnd",null);_.W([_.dz("yt-video-link-button-cancel"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G9.prototype,"onYtVideoLinkButtonCancel",null);
_.W([_.dz("yt-video-link-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G9.prototype,"onYtVideoLinkSelected",null);_.W([_.dz("iron-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G9.prototype,"onIronSelect",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G9.prototype,"onYtNavigate",null);
_.W([_.dz("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G9.prototype,"onRequestSent",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G9.prototype,"onPopupClosed",null);_.W([_.en({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],G9);
_.n(G9,"ytd-backstage-post-dialog-renderer",function(){if(oRR!==void 0)return oRR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return oRR=N},{mode:1});var TTf;var w$S;var Rq=function(){return _.k.apply(this,arguments)||this};
_.p(Rq,_.k);_.V=Rq.prototype;_.V.computeHeartButtonStyle=function(N){return(N==null?0:N.styleType)?N.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onYtButtonTap=function(){if(this.data.isEnabled){var N=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(N=this.getEndpoint(N))&&_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}})}else(N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(N)};
_.V.toggle=function(N){this.set("data.isHearted",N!==void 0?N:!this.data.isHearted)};
_.V.getEndpoint=function(N){var t,O=(t=this.data)==null?void 0:t.heartEndpoint,H;t=(H=this.data)==null?void 0:H.unheartEndpoint;if(O&&t)return N?t:O};
_.V.computeButtonAccessibility=function(N,t){var O,H,A=N==null?void 0:(O=N.heartedAccessibility)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label,Z,U;N=N==null?void 0:(Z=N.unheartedAccessibility)==null?void 0:(U=Z.accessibilityData)==null?void 0:U.label;return t?A:N};
_.cv.Object.defineProperties(Rq.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var N;return _.h("kevlar_system_icons")&&!((N=this.data)==null||!N.isHearted)}}});
Rq.prototype.onYtButtonTap=Rq.prototype.onYtButtonTap;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],Rq.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Rq.prototype,"data",void 0);_.W([_.a("data.isHearted"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Rq.prototype,"heartTooltip",null);
_.W([_.a("data.isHearted"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Rq.prototype,"iconFilled",null);_.W([_.X({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Q("design:type",String)],Rq.prototype,"buttonAccessibility",void 0);_.W([_.X({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Q("design:type",String)],Rq.prototype,"heartButtonStyle",void 0);
_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rq.prototype,"onYtButtonTap",null);_.W([_.en({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Rq);
_.n(Rq,"ytd-creator-heart-renderer",function(){if(w$S!==void 0)return w$S;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return w$S=N},{mode:1});var vI=function(){var N=_.k.apply(this,arguments)||this;N.hasCreatorReply=!1;N.buttonOverrides={size:"S",iconPosition:"icon-only"};N.replyButtonOverrides={size:"S",type:"text"};N.forceIconButton=!_.h("web_modern_buttons");N.modern=_.h("web_modern_buttons");N.buttonTooltipPosition="bottom";N.systemIcons=_.h("kevlar_system_icons");N.replyDialog=null;return N};
_.p(vI,_.k);_.V=vI.prototype;
_.V.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.V.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.V.dataChange=function(){this.replyDialog&&_.O6(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var N,t,O;this.isLiked=this.systemIcons&&!!((N=this.data)==null?0:(t=N.likeButton)==null?0:(O=t.toggleButtonRenderer)==null?0:O.isToggled)};
_.V.computeShowVoteCountBeginning=function(N,t){return N===void 0||t===void 0?!0:N.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.V.computeShowVoteCountEnd=function(N,t){return N===void 0||t===void 0?!0:N.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.V.computeShowCommentCount=function(N,t){return N===void 0||t===void 0?!0:N.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.V.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.V.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.V.showReplyDialog=function(N){N&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.O6(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=N,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.V.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.V.onRequestSent=function(N){N=_.D(N.detail);for(var t=N.next();!t.done;t=N.next())(t=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",t.value))&&this.showReplyDialog(t)};
_.V.onYtNavigate=function(N){var t,O;(N=(t=_.M(N.detail.endpoint,_.UFB))==null?void 0:(O=t.dialog)==null?void 0:O.commentReplyDialogRenderer)&&this.showReplyDialog(N)};
_.V.onYtServiceRequestSent=function(N,t){N.stopPropagation();if(t.actions)for(N=0;N<t.actions.length;N++){var O=_.M(t.actions[N],YTE);O&&this.handleUpdateCommentVoteAction(O)}};
_.V.handleUpdateCommentVoteAction=function(N){this.voteCount=N.voteCount||_.E_("0");N.voteStatus==="LIKE"?this.JSC$16108_ytdDislikeToggleButtonRenderer.toggle(!1):N.voteStatus==="DISLIKE"?this.JSC$16108_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16108_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16108_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.V.computeReplyButtonHidden=function(N){return N};
_.V.computeReplyButtonBeginning=function(N){return(N==null?0:N.replyButton)&&N.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?N.replyButton:void 0};
_.V.computeReplyButtonEnd=function(N){return(N==null?0:N.replyButton)&&N.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?N.replyButton:void 0};
_.V.computeActionButtonStyle=function(N){return(N==null?0:N.style)?N.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.V.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.V.onYtToggleButton=function(N){var t,O;this.isLiked=this.systemIcons&&!!((t=N.detail)==null?0:(O=t.actions)==null?0:O.like)};
vI.prototype.onYtToggleButton=vI.prototype.onYtToggleButton;vI.prototype.onButtonTooltipPositionChanged=vI.prototype.onButtonTooltipPositionChanged;vI.prototype.onYtServiceRequestSent=vI.prototype.onYtServiceRequestSent;vI.prototype.onYtNavigate=vI.prototype.onYtNavigate;vI.prototype.onRequestSent=vI.prototype.onRequestSent;vI.prototype.onYtCommentboxDismiss=vI.prototype.onYtCommentboxDismiss;vI.prototype.dataChange=vI.prototype.dataChange;
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"voteCount",void 0);_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"commentCount",void 0);_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"replyThumbnail",void 0);
_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"hasCreatorReply",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],vI.prototype,"enableCreationBox",void 0);_.W([_.X({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Q("design:type",String)],vI.prototype,"actionButtonsStyle",void 0);_.W([_.X({computed:"computeReplyButtonBeginning(data)"}),_.Q("design:type",Object)],vI.prototype,"replyButtonBeginning",void 0);
_.W([_.X({computed:"computeReplyButtonEnd(data)"}),_.Q("design:type",Object)],vI.prototype,"replyButtonEnd",void 0);_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"buttonOverrides",void 0);_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"replyButtonOverrides",void 0);_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"forceIconButton",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],vI.prototype,"useCommentIcon",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vI.prototype,"modern",void 0);_.W([_.X(),_.Q("design:type",Object)],vI.prototype,"buttonTooltipPosition",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vI.prototype,"systemIcons",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],vI.prototype,"isLiked",void 0);_.W([_.B2("ytd-button-renderer"),_.Q("design:type",Object)],vI.prototype,"ytdReplyButtonRenderer",void 0);
_.W([_.B2("#like-button"),_.Q("design:type",Object)],vI.prototype,"JSC$16108_ytdLikeToggleButtonRenderer",void 0);_.W([_.B2("#dislike-button"),_.Q("design:type",Object)],vI.prototype,"JSC$16108_ytdDislikeToggleButtonRenderer",void 0);_.W([_.B2("#reply-dialog"),_.Q("design:type",HTMLElement)],vI.prototype,"replyDialogElement",void 0);_.W([_.B2("#reply-button"),_.Q("design:type",HTMLElement)],vI.prototype,"replyButtonElement",void 0);
_.W([_.B2("#reply-button-end"),_.Q("design:type",HTMLElement)],vI.prototype,"replyButtonEndElement",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vI.prototype,"dataChange",null);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],vI.prototype,"onYtCommentboxDismiss",null);
_.W([_.dz("yt-service-request-sent-button-renderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],vI.prototype,"onRequestSent",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],vI.prototype,"onYtNavigate",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],vI.prototype,"onYtServiceRequestSent",null);_.W([_.gz("buttonTooltipPosition"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vI.prototype,"onButtonTooltipPositionChanged",null);
_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],vI.prototype,"onYtToggleButton",null);_.W([_.en({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],vI);
_.n(vI,"ytd-comment-action-buttons-renderer",function(){if(TTf!==void 0)return TTf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return TTf=N},{mode:1});var eYy;var Jf=function(){return _.k.apply(this,arguments)||this};
_.p(Jf,_.k);Jf.prototype.focus=function(){_.O6(this.hostElement).querySelector("#commentbox").focus()};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Jf.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Jf.prototype,"zeroStepChannelCreationRenderer",void 0);_.W([_.en({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Jf);
_.n(Jf,"ytd-comment-dialog-renderer",function(){if(eYy!==void 0)return eYy;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return eYy=N},{mode:1});var P4a;var oq=function(){var N=_.k.apply(this,arguments)||this;N.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.h("enable_web_delhi_icons")};N.replyButtonOverrides={size:"S",type:"text"};return N};
_.p(oq,_.k);_.V=oq.prototype;_.V.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.V.detached=function(){this.replyBox&&this.replyBox.remove()};
_.V.showReplyDialog=function(N){if(N){var t=this.replyBox;t||(t=document.createElement("ytd-comment-reply-dialog-renderer"),t.id="replybox",_.O6(this.replyDialogDiv).appendChild(t));t.data=N;this.replyDialogDiv.hidden=!1;t.openDialog()}};
_.V.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.V.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var N,t=_.M((N=this.toolbarSurface)==null?void 0:N.subscribersOnlyDisclaimerSnackbarCommand,_.Tb);t&&_.or(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:t})}};
_.V.onYtServiceRequestSent=function(N,t){N.stopPropagation();if(t.actions)for(var O=0;O<t.actions.length;O++){var H=_.M(t.actions[O],YTE);H?this.handleUpdateCommentVoteAction(H):N.target===this.heartButton&&this.toggleHeartState()}};
_.V.handleUpdateCommentVoteAction=function(N){var t;(t=this.toolbarState)!=null&&t.key&&this.ytdReduxBehavior.dispatch(_.aE("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:N.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":N.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.V.toggleHeartState=function(){var N;(N=this.toolbarState)!=null&&N.key&&this.ytdReduxBehavior.dispatch(_.aE("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.cv.Object.defineProperties(oq.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return(((N=this.toolbarState)==null?void 0:N.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(t=this.toolbarData)==null?void 0:t.likeCountLiked:(O=this.toolbarData)==null?void 0:O.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.toolbarSurface)==null?void 0:N.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.toolbarSurface)==null?void 0:N.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.toolbarSurface)==null?void 0:N.prepareAccountCommand)!==void 0&&!_.h("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N,t=_.M((N=this.toolbarSurface)==null?void 0:N.prepareAccountCommand,_.Tb),O,H,A,Z,U,C,F,g,B;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((O=this.toolbarSharedData)==null||!O.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:t!=null?t:_.M((A=this.toolbarSurface)==null?void 0:A.likeCommand,_.Tb),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.M((Z=this.toolbarSurface)==null?void 0:Z.unlikeCommand,_.Tb),defaultCommand:this.isVisiblyDisabled?_.M((U=this.toolbarSurface)==null?void 0:U.commentDisabledActionCommand,_.Tb):void 0,defaultTooltip:(C=this.toolbarData)==null?void 0:C.likeInactiveTooltip,toggledTooltip:(F=this.toolbarData)==null?void 0:F.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(g=this.toolbarData)==null?void 0:g.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(B=this.toolbarSharedData)==null?void 0:B.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N,t=_.M((N=this.toolbarSurface)==null?void 0:N.prepareAccountCommand,_.Tb),O,H,A,Z,U,C,F,g,B,c;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((O=this.toolbarSharedData)==null||!O.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((H=this.toolbarState)==null?void 0:H.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.M((A=this.toolbarSurface)==null?void 0:A.dislikeCommand,_.Tb),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.M((Z=this.toolbarSurface)==null?void 0:Z.undislikeCommand,_.Tb),defaultCommand:this.isVisiblyDisabled?_.M((U=this.toolbarSurface)==null?void 0:U.commentDisabledActionCommand,_.Tb):void 0,defaultTooltip:(C=this.toolbarData)==null?void 0:C.dislikeInactiveTooltip,toggledTooltip:(F=this.toolbarData)==null?void 0:
F.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(g=this.toolbarSharedData)==null?void 0:g.dislikeReplyButtonA11y:(B=this.toolbarSharedData)==null?void 0:B.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(c=this.toolbarSharedData)==null?void 0:c.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var N,t,O;if(((N=this.toolbarState)==null?void 0:N.heartState)!==void 0&&((t=this.toolbarState)==null?void 0:t.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((O=this.toolbarState)==null?void 0:O.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var H,A,Z,U,C,F,g,B,c,u,S,b,z,w;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(H=this.toolbarData)==null?void 0:H.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((A=this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((Z=this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((U=this.toolbarState)==null?void 0:U.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((C=this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.M((F=this.toolbarSurface)==null?void 0:F.heartCommand,
_.Tb),unheartEndpoint:this.isVisiblyDisabled?void 0:_.M((g=this.toolbarSurface)==null?void 0:g.unheartCommand,_.Tb),disabledEndpoint:this.isVisiblyDisabled?_.M((B=this.toolbarSurface)==null?void 0:B.commentDisabledActionCommand,_.Tb):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(c=this.toolbarData)==null?void 0:c.heartActiveTooltip,unheartedTooltip:(u=this.toolbarData)==null?void 0:u.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((S=
this.toolbarState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(b=this.toolbarSharedData)==null?void 0:b.unheartButtonA11y:(z=this.toolbarSharedData)==null?void 0:z.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.toolbarSurface)==null||!N.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.commentStrings)!=null&&N.replyButtonText){var t,O,H,A;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(t=this.commentStrings)==null?void 0:t.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.M((O=this.toolbarSurface)==null?void 0:O.replyCommand,_.Tb),command:this.isVisiblyDisabled?
_.M((H=this.toolbarSurface)==null?void 0:H.commentDisabledActionCommand,_.Tb):this.isSubsOnlyCommentsIneligibleUser?_.M((A=this.toolbarSurface)==null?void 0:A.subscribersOnlySnackbarCommand,_.Tb):void 0}}}}});
oq.prototype.onYtServiceRequestSent=oq.prototype.onYtServiceRequestSent;oq.prototype.hideReplyDialogDiv=oq.prototype.hideReplyDialogDiv;_.W([_.X(),_.Q("design:type",Object)],oq.prototype,"commentStrings",void 0);_.W([_.X(),_.Q("design:type",Boolean)],oq.prototype,"isReply",void 0);_.W([_.X(),_.Q("design:type",Object)],oq.prototype,"toolbarData",void 0);_.W([_.X(),_.Q("design:type",Object)],oq.prototype,"toolbarSharedData",void 0);
_.W([_.X(),_.Q("design:type",String)],oq.prototype,"toolbarStateKey",void 0);_.W([_.X(),_.Q("design:type",String)],oq.prototype,"toolbarSurfaceKey",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],oq.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],oq.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.LX),_.Q("design:type",Object)],oq.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.B2("#reply-dialog"),_.Q("design:type",HTMLElement)],oq.prototype,"replyDialogDiv",void 0);_.W([_.B2("#replybox"),_.Q("design:type",Object)],oq.prototype,"replyBox",void 0);_.W([_.B2("ytd-creator-heart-renderer"),_.Q("design:type",Object)],oq.prototype,"heartButton",void 0);_.W([_.X({selector:function(N,t){return _.CM(N.entities,"engagementToolbarStateEntityPayload",t)},
selectorArgs:["toolbarStateKey"]}),_.Q("design:type",Object)],oq.prototype,"toolbarState",void 0);_.W([_.X({selector:t$M,selectorArgs:["toolbarSurfaceKey"]}),_.Q("design:type",Object)],oq.prototype,"toolbarSurface",void 0);_.W([_.X(),_.Q("design:type",Object)],oq.prototype,"buttonOverrides",void 0);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oq.prototype,"hideReplyDialogDiv",null);
_.W([_.a("toolbarData","toolbarState"),_.Q("design:type",String),_.Q("design:paramtypes",[])],oq.prototype,"likeCount",null);_.W([_.a("likeCount"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],oq.prototype,"showLikeCount",null);_.W([_.a("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],oq.prototype,"isVisiblyDisabled",null);_.W([_.a("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],oq.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.W([_.a("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],oq.prototype,"isSubsOnlyCommentsEligibleUser",null);_.W([_.a("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],oq.prototype,"hasPrepareAccountCommand",null);_.W([_.a("toolbarData","toolbarState","toolbarSurface"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],oq.prototype,"likeToggleButtonRenderer",null);
_.W([_.a("isReply","toolbarData","toolbarState","toolbarSurface"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],oq.prototype,"dislikeToggleButtonRenderer",null);_.W([_.a("toolbarData","toolbarState","toolbarSurface"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],oq.prototype,"creatorHeartSupportedRenderer",null);_.W([_.a("toolbarSurface"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],oq.prototype,"hasReplyCommand",null);
_.W([_.a("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],oq.prototype,"replyButtonRenderer",null);_.W([_.X(),_.Q("design:type",Object)],oq.prototype,"replyButtonOverrides",void 0);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],oq.prototype,"onYtServiceRequestSent",null);_.W([_.en({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],oq);
_.n(oq,"ytd-comment-engagement-bar",function(){if(P4a!==void 0)return P4a;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return P4a=N},{mode:1});var X$X;var su=function(){return _.k.apply(this,arguments)||this};
_.p(su,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],su.prototype,"data",void 0);_.W([_.en({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],su);
_.n(su,"ytd-comment-inline-thumbnail-renderer",function(){if(X$X!==void 0)return X$X;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return X$X=N},{mode:1});var xME;var NN=function(){return _.k.apply(this,arguments)||this};
_.p(NN,_.k);NN.prototype.onMessageTap=function(){if(this.onTapCommand){var N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);N&&this.ytdOpenPopupBehavior.openPopup(N)}};
_.cv.Object.defineProperties(NN.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return(N=this.data)==null?void 0:(t=N.button)==null?void 0:(O=t.buttonRenderer)==null?void 0:O.command}}});
_.W([_.Y(_.LX),_.Q("design:type",Object)],NN.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],NN.prototype,"data",void 0);_.W([_.a("data.button.buttonRenderer.command"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],NN.prototype,"onTapCommand",null);_.W([_.en({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],NN);
_.n(NN,"ytd-comment-pause-composer-renderer",function(){if(xME!==void 0)return xME;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return xME=N},{mode:1});var k3f;var qLp;var tN=function(){var N=_.k.apply(this,arguments)||this;N.isOpen=!1;return N};
_.p(tN,_.k);_.V=tN.prototype;_.V.dataChanged=function(){this.isOpen=!1};
_.V.onTap=function(){this.data&&(this.data.navigationEndpoint?_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.V.focus=function(){this.JSC$16137_commentbox.focus()};
_.V.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.V.openDialog=function(){this.isOpen=!0;this.JSC$16137_commentbox.focus();this.JSC$16137_commentbox.maybeHeightChanged()};
tN.prototype.onYtCommentboxDismiss=tN.prototype.onYtCommentboxDismiss;tN.prototype.dataChanged=tN.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tN.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],tN.prototype,"isOpen",void 0);_.W([_.B2("#commentbox"),_.Q("design:type",Object)],tN.prototype,"JSC$16137_commentbox",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tN.prototype,"dataChanged",null);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],tN.prototype,"onYtCommentboxDismiss",null);_.W([_.en({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],tN);
_.n(tN,"ytd-comment-reply-dialog-renderer",function(){if(qLp!==void 0)return qLp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return qLp=N},{mode:1});var fJE;var OJ=function(){return _.k.apply(this,arguments)||this};
_.p(OJ,_.k);_.cv.Object.defineProperties(OJ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.data)==null?void 0:(t=N.icon)==null?void 0:t.iconType;return O?"yt-icons:"+O.toLowerCase():null}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],OJ.prototype,"data",void 0);_.W([_.X(),_.a("data.icon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],OJ.prototype,"icon",null);_.W([_.en({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],OJ);
_.n(OJ,"ytd-pinned-comment-badge-renderer",function(){if(fJE!==void 0)return fJE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return fJE=N},{mode:1});var nhE;var W90={},rFR={input:!0,meta:!0,br:!0,link:!0,img:!0},Hk=null;W90.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(){Hk==null&&(Hk=document.createElement("tp-yt-paper-tooltip"),Hk.offset=8,Hk.fitToVisibleBounds=!0)},
onMouseOver_:function(N){if(N=_.EW(N.target,function(A){return A==this||A.getAttribute&&A.getAttribute("shared-tooltip-text")}.bind(this),!0)){var t=N.getAttribute("shared-tooltip-text");
if(t){var O=this,H=null;N!=this&&(N.tagName.toLowerCase()in rFR?O=N.parentElement:O=N,N.id&&(H=N.id));this.polymerController.createTooltipIfRequired_();if(Hk.parentElement!=O||Hk.for!=H)(0,_.U6)(Hk).textContent=t,_.O6(O).appendChild(Hk),Hk.for=H,Hk.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Hk.position=this.polymerController.sharedTooltipPosition}}}};var AN=function(){return _.k.apply(this,arguments)||this};
_.p(AN,_.k);AN.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]]"}}}}}};
AN.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var N;((N=this.data)==null?0:N.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var t;((t=this.data)==null?0:t.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
AN.prototype.colorChanged=function(){var N,t,O,H=(N=this.data)==null?void 0:(t=N.color)==null?void 0:(O=t.basicColorPaletteData)==null?void 0:O.foregroundBodyColor;H&&(this.rgbBadgeColor=_.aI(H));_.O6(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
AN.prototype.tooltipChanged=function(){var N;((N=this.data)==null?0:N.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
AN.prototype.tooltipChanged=AN.prototype.tooltipChanged;AN.prototype.colorChanged=AN.prototype.colorChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(W90.YtSharedTooltipBehavior),_.Q("design:type",Object)],AN.prototype,"ytSharedTooltipBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],AN.prototype,"data",void 0);
_.W([_.X({value:"#4285F4"}),_.Q("design:type",String)],AN.prototype,"rgbBadgeColor",void 0);_.W([_.gz("data.color"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AN.prototype,"colorChanged",null);_.W([_.gz("data.tooltip"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AN.prototype,"tooltipChanged",null);_.W([_.en({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],AN);
_.n(AN,"ytd-sponsor-comment-badge-renderer",function(){if(nhE!==void 0)return nhE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return nhE=N},{mode:1});var IJE;var lJX;var Z1=function(){return _.k.apply(this,arguments)||this};
_.p(Z1,_.k);Z1.prototype.computeState=function(N){switch(N==null?void 0:N.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
Z1.prototype.updateStateIdentifier=function(N){if(this.viewModel.triStateKey){var t=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.aE("triStateButtonStateEntityPayload",t,{key:t,stateIdentifier:N}))}};
Z1.prototype.onClick=function(){var N=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){N.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){N.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.cv.Object.defineProperties(Z1.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.buttonText)||""}}});
_.W([_.X(),_.Q("design:type",Object)],Z1.prototype,"viewModel",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Z1.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Z1.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.W([_.X({selector:OKN,selectorArgs:["viewModel.triStateKey"]}),_.Q("design:type",Object)],Z1.prototype,"triStateButtonStateEntity",void 0);
_.W([_.X({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Q("design:type",String)],Z1.prototype,"state",void 0);_.W([_.a("viewModel","state"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Z1.prototype,"data",null);_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Z1.prototype,"buttonText",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Z1);
_.n(Z1,"ytd-tri-state-button-view-model",function(){if(lJX!==void 0)return lJX;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return lJX=N},{mode:1});var Qhp;var mMu;var VJ=function(){var N=_.k.apply(this,arguments)||this;N.defaultIconToFilled=!_.h("kevlar_fill_comment_chip_icon_killswitch");return N};
_.p(VJ,_.k);VJ.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
VJ.prototype.dataChanged=function(){if(this.data){var N,t;((N=this.data.chipColorPalette)==null?0:N.backgroundColor)&&((t=this.data.chipColorPalette)==null?0:t.foregroundTitleColor)&&_.CO(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.TV(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.TV(this.data.chipColorPalette.foregroundTitleColor)});var O;((O=this.data)==null?0:O.command)?(_.CO(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.CO(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}};
VJ.prototype.onTap=function(){var N;if(this.data&&(N=this.data)!=null&&N.command){var t;this.ytComponentBehavior.resolveCommand((t=this.data)==null?void 0:t.command)}};
VJ.prototype.getIconSize=function(){return _.h("kevlar_fill_comment_chip_icon_killswitch")?24:12};
VJ.prototype.onTap=VJ.prototype.onTap;VJ.prototype.dataChanged=VJ.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],VJ.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.rA),_.Q("design:type",Object)],VJ.prototype,"ironA11yKeysBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VJ.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],VJ.prototype,"basePriceText",void 0);_.W([_.X(),_.Q("design:type",Object)],VJ.prototype,"chipIcon",void 0);_.W([_.X(),_.Q("design:type",Object)],VJ.prototype,"defaultIconToFilled",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VJ.prototype,"dataChanged",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VJ.prototype,"onTap",null);
_.W([_.wz({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],VJ);
_.n(VJ,"yt-pdg-comment-chip-renderer",function(){if(mMu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Qhp===void 0&&(Qhp=document.createElement("template"));var H=Qhp;O.call(t,H.content.cloneNode(!0),N.content.firstChild);mMu=N}N=mMu;return N},{mode:2});var D1=function(){var N=_.k.apply(this,arguments)||this;N.useSmallAvatars=_.h("small_avatars_for_comments");N.commentThreadingEnabled=_.h("web_delhi_comment_threads");N.webWatchCompactComments=_.h("web_watch_compact_comments");N.editDialog=null;return N};
_.p(D1,_.k);_.V=D1.prototype;_.V.onShow=function(){_.YY("cmv",void 0,"wn_comments")};
_.V.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.V.detached=function(){this.editDialog=null;this.expander.reset()};
_.V.updateBackgroundColor=function(){if(this.backgroundColor){var N={"--ytd-comment-paid-background-color":_.TV(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.CO(this.hostElement,N)}else _.CO(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.V.resetExpander=function(){var N;(N=this.expander)==null||N.reset()};
_.V.openEditDialog=function(N){N.dialog&&(this.editDialog=N.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.V.onYtNavigate=function(N){var t=N.detail.endpoint;if(t=_.M(t,_.CLy)||_.M(t,_.KJ_))N.stopPropagation(),this.openEditDialog(t)};
_.V.onYtCommentboxDismiss=function(){this.editDialog=null;_.CO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.V.onAuthorThumbnailClicked=function(){_.h("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.V.onYtCommentboxResize=function(N){var t;(N==null?0:(t=N.detail)==null?0:t.height)&&_.CO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":N.detail.height+"px"})};
_.cv.Object.defineProperties(D1.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.commentEntity)==null?void 0:N.author;return t&&(t.isCreator||t.isVerified||t.isArtist)?{renderer:{authorEndpoint:t.channelPageEndpoint?_.M(t.channelPageEndpoint,_.Tb):_.M(t.channelCommand,_.Tb),authorText:{runs:[{text:t.displayName}]},color:t.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:t.isArtist?{iconType:"AUDIO_BADGE"}:
t.isVerified?{iconType:t.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:t.isArtist||t.isVerified?t.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.commentEntity)==null?void 0:N.author;return t!=null&&t.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:t.sponsorBadgeUrl}]},tooltip:t.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return _.M((N=this.commentSurfaceEntity)==null?void 0:N.pdgCommentChip,_.fTR)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var N;return this.voiceReplyContainerViewModel&&((N=this.voiceReplyContainerViewModel)==null?void 0:N.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var N;return _.M((N=this.commentSurfaceEntity)==null?void 0:N.voiceReplyContainerViewModel,qTZ)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var N;return this.voiceReplyContainerViewModel&&(N=this.voiceReplyContainerViewModel)!=null&&N.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=(N=this.commentSurfaceEntity)==null?void 0:N.commentBackgroundColor)!=null?t:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var N,t;return(((N=this.commentEntity)==null?void 0:(t=N.properties)==null?void 0:t.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var N,t;if(_.h("enable_profile_cards_on_comments")&&((N=this.commentEntity)==null?0:(t=N.author)==null?0:t.profileCardEndpoint)&&this.viewModel.allowProfileCard){var O,H;return _.M((O=this.commentEntity)==null?void 0:(H=O.author)==null?void 0:H.profileCardEndpoint,_.Tb)}var A,Z;return _.M((A=this.commentEntity)==null?void 0:(Z=A.avatar)==null?void 0:Z.endpoint,_.Tb)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var N,t;if(_.h("enable_profile_cards_on_comments")&&((N=this.commentEntity)==null?0:(t=N.author)==null?0:t.channelPageEndpoint)){var O,H;return _.M((O=this.commentEntity)==null?void 0:(H=O.author)==null?void 0:H.channelPageEndpoint,_.Tb)}var A,Z;return _.M((A=this.commentEntity)==null?void 0:(Z=A.avatar)==null?void 0:Z.endpoint,_.Tb)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A=(N=this.commentEntity)==null?void 0:(t=N.avatar)==null?void 0:(O=t.image)==null?void 0:(H=O.sources)==null?void 0:H[0];return A?{thumbnails:[{url:A.url,width:A.width,height:A.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.commentEntity)==null?0:(t=N.author)==null?0:t.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.commentEntity)==null?void 0:(t=N.author)==null?void 0:t.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.commentEntity)==null?void 0:(t=N.properties)==null?void 0:t.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var N;return _.M((N=this.commentSurfaceEntity)==null?void 0:N.publishedTimeCommand,_.Tb)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var N,t;if(((N=this.commentEntity)==null?0:N.translatedContent)&&((t=this.translateButtonState)==null?void 0:t.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var O;if((O=this.voiceReplyContainerViewModel)==null?0:O.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var H,A;return((H=this.commentEntity)==null?void 0:(A=H.properties)==null?void 0:A.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.commentSharedEntity)==null?void 0:(t=N.strings)==null?void 0:t.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.commentSharedEntity)==null?void 0:(t=N.strings)==null?void 0:t.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.commentEntity)==null||!N.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var N,t,O=(t=_.M((N=this.viewModel)==null?void 0:N.translateButton,kcB))!=null?t:{},H,A,Z,U,C,F,g,B,c,u,S;return Object.assign({},O,{untoggledStateData:Object.assign({},O.untoggledStateData,{buttonText:(H=this.commentEntity)==null?void 0:(A=H.translateData)==null?void 0:A.text}),togglingStateData:Object.assign({},O.togglingStateData,{buttonText:(Z=this.commentSharedEntity)==null?
void 0:(U=Z.strings)==null?void 0:U.translatingText}),toggledStateData:Object.assign({},O.toggledStateData,{buttonText:(C=this.commentSharedEntity)==null?void 0:(F=C.strings)==null?void 0:F.seeOriginalText}),transitionCommand:((g=this.commentEntity)==null?0:g.translatedContent)?void 0:_.M((B=this.commentEntity)==null?void 0:(c=B.translateData)==null?void 0:c.translateComment,_.Tb),triStateKey:(u=this.commentEntity)==null?void 0:(S=u.properties)==null?void 0:S.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((t=_.M(_.M((N=this.toolbarSurface)==null?void 0:N.menuCommand,_.Tb),FJp))==null?void 0:(O=t.menu)==null?void 0:O.menuRenderer)||null}}});
D1.prototype.onYtCommentboxResize=D1.prototype.onYtCommentboxResize;D1.prototype.onYtCommentboxDismiss=D1.prototype.onYtCommentboxDismiss;D1.prototype.onYtNavigate=D1.prototype.onYtNavigate;D1.prototype.resetExpander=D1.prototype.resetExpander;D1.prototype.updateBackgroundColor=D1.prototype.updateBackgroundColor;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],D1.prototype,"ytdReduxBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],D1.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("#author-thumbnail > button"),_.Q("design:type",HTMLElement)],D1.prototype,"authorThumbnailAnchor",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("viewModel"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],D1.prototype,"linked",null);
_.W([_.a("viewModel","linked"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"linkedCommentBadge",null);_.W([_.X({reflectToAttribute:!0}),_.a("viewModel"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],D1.prototype,"pinned",null);_.W([_.a("viewModel","pinned"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"pinnedCommentBadge",null);
_.W([_.a("commentEntity","commentSharedEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"authorCommentBadge",null);_.W([_.X({reflectToAttribute:!0}),_.a("authorCommentBadge"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"hasAuthorBadge",null);_.W([_.a("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"sponsorCommentBadge",null);
_.W([_.X({reflectToAttribute:!0}),_.a("sponsorCommentBadge"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"hasSponsorBadge",null);_.W([_.a("commentSurfaceEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"pdgCommentChipRenderer",null);_.W([_.X({reflectToAttribute:!0}),_.a("voiceReplyContainerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"hasVoiceReply",null);
_.W([_.a("commentSurfaceEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"voiceReplyContainerViewModel",null);_.W([_.a("voiceReplyContainerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"voiceReplyUnavailableText",null);_.W([_.X(),_.Q("design:type",Object)],D1.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"viewModel",null);
_.W([_.X({selector:function(N,t){return _.CM(N.entities,"commentSharedEntityPayload",t)},
selectorArgs:["viewModel.sharedKey"]}),_.Q("design:type",Object)],D1.prototype,"commentSharedEntity",void 0);_.W([_.X({selector:NRp,selectorArgs:["viewModel.commentKey"]}),_.Q("design:type",Object)],D1.prototype,"commentEntity",void 0);_.W([_.X({selector:function(N,t){return _.CM(N.entities,"commentSurfaceEntityPayload",t)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Q("design:type",Object)],D1.prototype,"commentSurfaceEntity",void 0);_.W([_.X({selector:t$M,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Q("design:type",Object)],D1.prototype,"toolbarSurface",void 0);_.W([_.X({selector:OKN,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Q("design:type",Object)],D1.prototype,"translateButtonState",void 0);
_.W([_.a("commentSurfaceEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"backgroundColor",null);_.W([_.X({reflectToAttribute:!0}),_.a("viewModel"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],D1.prototype,"optimalReadingWidthComments",null);_.W([_.B2("ytd-expander"),_.Q("design:type",Object)],D1.prototype,"expander",void 0);
_.W([_.gz("backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],D1.prototype,"updateBackgroundColor",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],D1.prototype,"useSmallAvatars",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],D1.prototype,"engagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],D1.prototype,"commentThreadingEnabled",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],D1.prototype,"webWatchCompactComments",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"isReply",null);_.W([_.a("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"authorThumbnailEndpoint",null);_.W([_.a("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"authorNameEndpoint",null);
_.W([_.a("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"authorThumbnail",null);_.W([_.a("commentEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],D1.prototype,"authorTextClass",null);_.W([_.a("commentEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],D1.prototype,"authorChannelName",null);_.W([_.a("commentEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"publishedTime",null);
_.W([_.a("commentSurfaceEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"publishedTimeCommand",null);_.W([_.a("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"contentText",null);_.W([_.gz("contentText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],D1.prototype,"resetExpander",null);
_.W([_.a("commentEntity"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],D1.prototype,"shouldShowReadMoreInitially",null);_.W([_.a("commentSharedEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],D1.prototype,"expandText",null);_.W([_.a("commentSharedEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],D1.prototype,"collapseText",null);_.W([_.a("commentEntity"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],D1.prototype,"shouldShowTranslateButton",null);
_.W([_.a("commentEntity","commentSharedEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"translateButton",null);_.W([_.a("toolbarSurface"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],D1.prototype,"overflowMenuRenderer",null);_.W([_.X(),_.Q("design:type",Object)],D1.prototype,"editDialog",void 0);_.W([_.B2("ytd-comment-dialog-renderer"),_.Q("design:type",Object)],D1.prototype,"editCommentDialogContainer",void 0);
_.W([_.B2("ytd-comment-reply-dialog-renderer"),_.Q("design:type",Object)],D1.prototype,"editReplyDialogContainer",void 0);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],D1.prototype,"onYtNavigate",null);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],D1.prototype,"onYtCommentboxDismiss",null);
_.W([_.dz("yt-commentbox-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],D1.prototype,"onYtCommentboxResize",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-comment-view-model"})],D1);
_.n(D1,"ytd-comment-view-model",function(){if(IJE!==void 0)return IJE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return IJE=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});_.o_(_.q(function(N){var t={};return _.d("yt-sub-thread",{class:_.V7("ytSubThreadHost",(t.ytSubThreadHasButton=N.isButton,t.ytSubThreadHovered=N.hovered,t.ytSubThreadTopLevelThread=function(){var O,H;return((O=N.topLevelThread)==null?void 0:O.call(N))&&!(_.h("small_avatars_for_comments")&&((H=N.engagementPanel)==null?0:H.call(N)))},t))},_.d("div",{class:"ytSubThreadThreadline"},_.d(_.y,{cond:function(){var O;
return!((O=N.isTeaser)==null?0:O.call(N))},
then:function(){return _.d("div",{class:"ytSubThreadConnection"})}}),_.d("div",{class:"ytSubThreadContinuation"}),_.d("div",{class:"ytSubThreadShadow"})),_.d("div",{class:"ytSubThreadSubThreadContent"},N.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.$O,
isTeaser:_.$O,hovered:_.$O,topLevelThread:_.$O,engagementPanel:_.$O}});var UJ=function(){var N=_.k.apply(this,arguments)||this;N.modern=_.h("web_modern_buttons");N.commentThreadingEnabled=_.h("web_delhi_comment_threads");N.isWatchGrid=_.h("kevlar_watch_grid");N.buttonOverrides=N.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};N.JSC$16183_spinnerEl=null;return N};
_.p(UJ,_.k);_.V=UJ.prototype;_.V.configureContinuationPathMap=function(){return _.h("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.shouldShowLegacyTeasers=function(N,t){return N&&!t};
_.V.shouldShowExpandedThreads=function(N,t){return this.commentThreadingEnabled&&t&&(N==null?void 0:N.length)>0};
_.V.shouldShowCollapsedThreads=function(N,t){return this.commentThreadingEnabled&&!t&&N};
_.V.computeCommentViewModel=function(N){return _.M(N,x_Q)};
_.V.computeThreadRenderer=function(N){return _.M(N,agX)};
_.V.computeIsContinuationItem=function(N){return!!this.computeContinuationItemRenderer(N)};
_.V.computeButtonRenderer=function(N){return _.M(N,_.g_)};
_.V.computeContinuationItemRenderer=function(N){return _.M(N,_.vy)};
_.V.computeShowButton=function(N){var t;return!((t=this.computeContinuationItemRenderer(N))==null||!t.button)};
_.V.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.V.attached=function(){this.isShowRepliesVisible=!0};
_.V.dataChanged=function(){var N=this.expanderContents;N&&(N.hidden=!0);this.isLoading=!1};
_.V.endsInContinuation=function(N){return!!N&&N.length>0&&!!this.computeContinuationItemRenderer(N[N.length-1])};
_.V.computeShouldShowHideRepliesButton=function(N,t){return!N&&t};
_.V.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.V.isLoadingChanged=function(){this.isLoading&&!this.JSC$16183_spinnerEl&&(this.JSC$16183_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.O6(this.expanderContents).appendChild(this.JSC$16183_spinnerEl));this.JSC$16183_spinnerEl&&(this.JSC$16183_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var N;(N=this.contents)==null||N.classList.remove("reloading")}};
_.V.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var N=_.M(this.data.viewReplies,_.g_);N&&this.ytRendererBehavior.logExplicitClick(N);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.V.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var N=_.M(this.data.hideReplies,_.g_);N&&this.ytRendererBehavior.logExplicitClick(N);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.V.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var N=_.O6(this.hostElement).querySelector("#expander-contents");N&&(N.hidden=this.isShowRepliesVisible)}};
_.V.computeAlign=function(){if(this.modern){var N;return!((N=this.data)==null?0:N.viewRepliesCreatorThumbnail)}};
_.cv.Object.defineProperties(UJ.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var N,t;return this.endsInContinuation((N=this.data)==null?void 0:N.contents)||this.commentThreadingEnabled&&this.endsInContinuation((t=this.data)==null?void 0:t.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var N;return(N=this.data)==null?void 0:N.teaserContents}}});
UJ.prototype.isShowMoreChanged=UJ.prototype.isShowMoreChanged;UJ.prototype.isLoadingChanged=UJ.prototype.isLoadingChanged;UJ.prototype.triggerFirstContinuation=UJ.prototype.triggerFirstContinuation;UJ.prototype.dataChanged=UJ.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.h3),_.Q("design:type",Object)],UJ.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UJ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UJ.prototype,"modern",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UJ.prototype,"commentThreadingEnabled",void 0);_.W([_.X(),_.Q("design:type",Boolean)],UJ.prototype,"expanded",void 0);
_.W([_.X(),_.Q("design:type",Function)],UJ.prototype,"toggleExpanded",void 0);_.W([_.X(),_.Q("design:type",Array)],UJ.prototype,"addedReplies",void 0);_.W([_.X(),_.Q("design:type",Boolean)],UJ.prototype,"hovered",void 0);_.W([_.X(),_.Q("design:type",Boolean)],UJ.prototype,"topLevelThread",void 0);_.W([_.X(),_.Q("design:type",Boolean)],UJ.prototype,"isLoading",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],UJ.prototype,"isShowRepliesVisible",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],UJ.prototype,"useNewFormatting",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],UJ.prototype,"engagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UJ.prototype,"isWatchGrid",void 0);_.W([_.X(),_.Q("design:type",Object)],UJ.prototype,"buttonOverrides",void 0);_.W([_.B2("#expander-contents"),_.Q("design:type",HTMLElement)],UJ.prototype,"expanderContents",void 0);
_.W([_.B2("ytd-continuation-item-renderer"),_.Q("design:type",Object)],UJ.prototype,"continuationItemRenderer",void 0);_.W([_.B2("#contents"),_.Q("design:type",HTMLElement)],UJ.prototype,"contents",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UJ.prototype,"dataChanged",null);_.W([_.a("data.contents","data.subThreads.*"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UJ.prototype,"hasContinuation",null);
_.W([_.a("data.teaserContents"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UJ.prototype,"subThreadTeasers",null);_.W([_.dz("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UJ.prototype,"triggerFirstContinuation",null);_.W([_.gz("isLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UJ.prototype,"isLoadingChanged",null);
_.W([_.gz("isShowRepliesVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UJ.prototype,"isShowMoreChanged",null);_.W([_.en({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],UJ);
_.n(UJ,"ytd-comment-replies-renderer",function(){if(k3f!==void 0)return k3f;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return k3f=N},{mode:1});var Eha;var Cs=function(){var N=_.k.apply(this,arguments)||this;N.isOpen=!1;N.commentDialog=null;N.useSmallAvatars=_.h("small_avatars_for_comments");N.useSmallAvatarsEngagementPanelOnly=_.h("small_avatars_for_comments_ep");N.placeholderFocusListener=null;N.hasOpenedDialog=!1;N.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return N};
_.p(Cs,_.k);_.V=Cs.prototype;_.V.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.V.ready=function(){var N=this,t=_.O6(this.hostElement).querySelector("#placeholder-area"),O=_.O6(this.hostElement).querySelector("#simplebox-placeholder"),H=function(A){A.stopPropagation();A instanceof KeyboardEvent&&A.type==="keypress"&&A.keyCode!==13&&A.keyCode!==32||N.openDialog()};
this.placeholderFocusListener=H;O.addEventListener("focus",this.placeholderFocusListener);t.addEventListener("tap",H);t.addEventListener("keypress",H)};
_.V.maybeRemoveFocusEventListener=function(){var N;(N=this.data)!=null&&N.prepareAccountEndpoint&&!_.h("web_comments_simplebox_modal_focus_on_tap_ks")&&(N=_.O6(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(N.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.V.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.V.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.h("web_comment_simplebox_resolve_polymer_command_ks")?_.U4.instance.resolveCommand(this.data.prepareAccountEndpoint):_.CC(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);N&&this.ytdOpenPopupBehavior.openPopup(N);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.O6(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.V.onYtCommentboxDismiss=function(N){N.stopPropagation();this.isOpen=!1};
_.V.onCreateCommentAction=function(N){this.get("createCommentAction.contents",N)&&(this.isOpen=!1)};
_.V.computeCommentDialog=function(N){return{placeholderText:N.placeholderText,authorThumbnail:N.authorThumbnail,submitButton:N.submitButton,imageButton:N.imageButton,cancelButton:N.cancelButton,emojiButton:N.emojiButton,emojis:N.emojis,emojiPicker:N.emojiPicker,aadcGuidelinesStateEntityKey:N.aadcGuidelinesStateEntityKey,openAadcDialog:N.openAadcDialog,unicodeEmojisUrl:N.unicodeEmojisUrl}};
_.V.onHideIdentityChip=function(N){_.M(N,MeE)&&this.set("data.placeholderText",_.M(N,MeE).placeholderText)};
Cs.prototype.onYtCommentboxDismiss=Cs.prototype.onYtCommentboxDismiss;Cs.prototype.dataChanged=Cs.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Cs.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],Cs.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Cs.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Cs.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Cs.prototype,"isOpen",void 0);_.W([_.X(),_.Q("design:type",Object)],Cs.prototype,"commentDialog",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Cs.prototype,"engagementPanel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Cs.prototype,"useSmallAvatars",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Cs.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Cs.prototype,"enableCreationBox",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Cs.prototype,"showCreateDialog",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Cs.prototype,"dataChanged",null);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Cs.prototype,"onYtCommentboxDismiss",null);_.W([_.en({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Cs);
_.n(Cs,"ytd-comment-simplebox-renderer",function(){if(Eha!==void 0)return Eha;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Eha=N},{mode:1});var G3Q;_.pE("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Ks=function(){var N=_.k.apply(this,arguments)||this;N.addHoverEffect=_.h("swatcheroo_comments_hover_effect");N.useSmallAvatars=_.h("small_avatars_for_comments");N.scrollingEnabled=_.h("web_comment_threading_scroll_on_collapse");N.isSubThread=!1;N.threadHovered=!1;N.expanded=!1;N.removed=!1;N.addedReplies=[];N.actionMap=N.configureActionMap();N.toggleExpanded=function(){N.expanded=!N.expanded;!N.expanded&&N.scrollingEnabled&&_.sl(N.hostElement,"yt-scroll-to-comment-element",[N.commentElement])};
return N};
_.p(Ks,_.k);_.V=Ks.prototype;_.V.configureActionMap=function(){return _.h("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.V.createCommentReplyAction=function(N){N=_.M(N,STf);if(N!=null&&N.contents){var t=N.replyToCommentId,O=N.parentCommentId,H,A=(H=this.commentViewModel)==null?void 0:H.commentId;(A===t||A===O&&!t)&&this.maybeAttachReply(N.contents)}};
_.V.maybeAttachReply=function(N){var t,O;(((t=this.commentEntity)==null?void 0:(O=t.properties)==null?void 0:O.replyLevel)||0)>=3?_.or(this.hostElement,"yt-pushed-create-comment-reply",N):this.attachReply(N)};
_.V.onPushedCreateCommentReply=function(N){var t,O;(((t=this.commentEntity)==null?void 0:(O=t.properties)==null?void 0:O.replyLevel)||0)>=3||(this.attachReply(N.detail),N.stopPropagation())};
_.V.attachReply=function(N){var t;((t=this.data)==null?0:t.replies)?(t=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+t+".continuationItemRenderer")?t===0?this.push("addedReplies",N):this.splice("data.replies.commentRepliesRenderer.subThreads",t,0,N):this.push("data.replies.commentRepliesRenderer.subThreads",N)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[N],viewReplies:{buttonRenderer:{text:_.NE(_.CJ("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.V.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.W6(this.addedReplies))),this.set("addedReplies",[]))};
_.V.removeCommentAction=function(N){N=_.M(N,LCp);var t=N==null?void 0:N.commentId,O;t&&((O=this.commentViewModel)==null?void 0:O.commentId)===t&&this.maybeRemoveComment(N.actionResult)};
_.V.banAuthorAction=function(N){N=_.M(N,ipf);var t=N==null?void 0:N.commentId,O;t&&((O=this.commentViewModel)==null?void 0:O.commentId)===t&&this.maybeRemoveComment(N.actionResult)};
_.V.hideReportedCommentAction=function(N){N=_.M(N,rAS);var t=N==null?void 0:N.commentId,O;t&&((O=this.commentViewModel)==null?void 0:O.commentId)===t&&this.maybeRemoveComment(N.actionResult)};
_.V.maybeRemoveComment=function(N){N&&N.status==="STATUS_SUCCEEDED"&&(this.feedbackText=N.feedbackText||_.NE("Reply removed"),this.removed=!0)};
_.V.onTap=function(N){if(this.addHoverEffect&&!this.engagementPanel&&!_.RM(_.m1(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||_.CC({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.V.attached=function(){var N=this;this.isSubThread&&(this.expanded=!0);var t;(t=this.commentThreadHitbox)==null||t.addEventListener("mouseover",function(){N.threadHovered=!0});
var O;(O=this.commentThreadHitbox)==null||O.addEventListener("mouseout",function(){N.threadHovered=!1});
var H;(H=this.commentThreadHitbox)==null||H.addEventListener("click",function(){N.maybeToggleExpanded()})};
_.V.onDataChanged=function(){var N=_.h("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(N)&&this.set(N,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.V.maybeToggleExpanded=function(){var N,t,O,H=(N=this.data)==null?void 0:(t=N.replies)==null?void 0:(O=t.commentRepliesRenderer)==null?void 0:O.subThreads,A;(H==null?void 0:H.length)===1&&((A=_.M(H[0],_.vy))==null?0:A.button)&&this.expanded||this.toggleExpanded()};
_.cv.Object.defineProperties(Ks.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var N;return _.M((N=this.data)==null?void 0:N.commentViewModel,x_Q)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return _.h("web_delhi_comment_threads")&&!!((N=this.data)==null?0:(t=N.replies)==null?0:(O=t.commentRepliesRenderer)==null?0:O.subThreads)}}});
Ks.prototype.onDataChanged=Ks.prototype.onDataChanged;Ks.prototype.onTap=Ks.prototype.onTap;Ks.prototype.onAppendContinuationItemsActionFinished=Ks.prototype.onAppendContinuationItemsActionFinished;Ks.prototype.onPushedCreateCommentReply=Ks.prototype.onPushedCreateCommentReply;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Ks.prototype,"ytdReduxBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Ks.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ks.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ks.prototype,"addHoverEffect",void 0);_.W([_.X(),_.Q("design:type",Object)],Ks.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ks.prototype,"useSmallAvatars",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ks.prototype,"scrollingEnabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ks.prototype,"isSubThread",void 0);_.W([_.B2(".thread-hitbox"),_.Q("design:type",HTMLElement)],Ks.prototype,"commentThreadHitbox",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ks.prototype,"threadHovered",void 0);_.W([_.B2("#comment"),_.Q("design:type",HTMLElement)],Ks.prototype,"commentElement",void 0);
_.W([_.X(),_.Q("design:type",Object)],Ks.prototype,"expanded",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ks.prototype,"removed",void 0);_.W([_.X(),_.Q("design:type",Object)],Ks.prototype,"feedbackText",void 0);_.W([_.X(),_.Q("design:type",Array)],Ks.prototype,"addedReplies",void 0);_.W([_.X({selector:NRp,selectorArgs:["commentViewModel.commentKey"]}),_.Q("design:type",Object)],Ks.prototype,"commentEntity",void 0);
_.W([_.dz("yt-pushed-create-comment-reply"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ks.prototype,"onPushedCreateCommentReply",null);_.W([_.dz("yt-append-continuation-items-action-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ks.prototype,"onAppendContinuationItemsActionFinished",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ks.prototype,"commentViewModel",null);
_.W([_.a("data.replies.commentRepliesRenderer.subThreads"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ks.prototype,"hasSubThreading",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Ks.prototype,"engagementPanel",void 0);_.W([_.dz("tap"),_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Ks.prototype,"onTap",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ks.prototype,"onDataChanged",null);_.W([_.en({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Ks);
_.n(Ks,"ytd-comment-thread-renderer",function(){if(G3Q!==void 0)return G3Q;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return G3Q=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var RYp;var FH=function(){var N=_.k.apply(this,arguments)||this;N.compactHeader=_.h("web_watch_compact_comments_header");N.hidePanelButton=!1;N.isPostSchedulingEnabled=_.h("enable_post_scheduling");N.hasFinishedStamping=!1;N.JSC$16206_handleOpenPostCommentDialogActionAfterStamp=!1;N.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return N};
_.p(FH,_.k);_.V=FH.prototype;
_.V.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.V.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.V.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16206_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.V.onYtServiceRequestSent=function(N,t){if(!_.h("kevlar_command_handler")&&t.actions)for(N=0;N<t.actions.length;N++){var O=t.actions[N];_.M(O,G4Z)&&_.O6(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.M(O,G4Z))}};
_.V.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var N;if(this.getPrefilledBackstagePostDialog((N=this.data)==null?void 0:N.actions)){_.O6(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var t=_.O6(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;t&&_.yB(this,function(){t.focus();t.openDialog&&t.openDialog()})}}else this.hasActionsChange=!0};
_.V.computeIsBackstage=function(N){return N};
_.V.onYtCommentboxDismiss=function(){_.O6(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.V.removePrefilledDialog=function(N){if(N==null?0:N.actions){for(var t=N.actions.length-1;t>=0;t--){var O=void 0;((O=_.M(N.actions[t],DF_))==null?0:O.dialog)&&delete N.actions[t]}this.set("data",void 0);this.set("data",N)}};
_.V.getPrefilledBackstagePostDialog=function(N){if(N)for(var t=0;t<N.length;t++){var O=N[t],H=void 0;if((H=_.M(O,DF_))==null?0:H.dialog)return _.M(O,DF_).dialog}return null};
_.V.computeBackstagePostDialog=function(N){return N&&(this.getPrefilledBackstagePostDialog(N.actions)||N.createRenderer)};
_.V.dataChanged=function(){if(this.data){var N=this.data.customEmojis,t=this.data.unicodeEmojisUrl;_.cR.clear();t&&_.Wcf(_.cR,t);N&&_.cR.load(N)}};
_.V.handleSignalActionOpenPostCommentDialogAction=function(){var N=_.O6(this.hostElement).querySelector("ytd-comment-simplebox-renderer");N?N.openDialog():this.JSC$16206_handleOpenPostCommentDialogActionAfterStamp=!0};
_.V.onPostHeaderTap=function(){var N;((N=this.data)==null?0:N.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.cv.Object.defineProperties(FH.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.h("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A,Z,U;return!this.hidePanelButton&&_.h("kevlar_watch_comments_panel_button")&&((U=_.M((N=this.data)==null?void 0:(t=N.sortMenu)==null?void 0:(O=t.sortFilterSubMenuRenderer)==null?void 0:(H=O.subMenuItems)==null?void 0:(A=H[0])==null?void 0:(Z=A.serviceEndpoint)==null?void 0:Z.commandMetadata,_.Da))==null?void 0:U.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.CJ("MINIPLAYER_EXPAND_LABEL"),text:_.E_(_.CJ("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
FH.prototype.dataChanged=FH.prototype.dataChanged;FH.prototype.onYtCommentboxDismiss=FH.prototype.onYtCommentboxDismiss;FH.prototype.observePrefilledBackstagePostDialog=FH.prototype.observePrefilledBackstagePostDialog;FH.prototype.onYtServiceRequestSent=FH.prototype.onYtServiceRequestSent;FH.prototype.onStampFinished=FH.prototype.onStampFinished;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],FH.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],FH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],FH.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],FH.prototype,"compactHeader",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],FH.prototype,"engagementPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],FH.prototype,"hidePanelButton",void 0);_.W([_.X({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],FH.prototype,"isBackstage",void 0);_.W([_.X({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Q("design:type",Object)],FH.prototype,"backstagePostDialog",void 0);
_.W([_.X(),_.Q("design:type",Object)],FH.prototype,"isPostSchedulingEnabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data","showCommentsPanelButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],FH.prototype,"useSpaceBetween",null);_.W([_.X({reflectToAttribute:!0}),_.a("data","hidePanelButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],FH.prototype,"showCommentsPanelButton",null);
_.W([_.a("data","showCommentsPanelButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],FH.prototype,"commentsPanelButtonData",null);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FH.prototype,"onStampFinished",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],FH.prototype,"onYtServiceRequestSent",null);
_.W([_.gz("data.actions"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FH.prototype,"observePrefilledBackstagePostDialog",null);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],FH.prototype,"onYtCommentboxDismiss",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FH.prototype,"dataChanged",null);
_.W([_.en({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],FH);
_.n(FH,"ytd-comments-header-renderer",function(){if(RYp!==void 0)return RYp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return RYp=N},{mode:1});var vhS;var dJ=function(){return _.k.apply(this,arguments)||this};
_.p(dJ,_.k);_.W([_.X(),_.Q("design:type",Object)],dJ.prototype,"data",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.W([_.en({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],dJ);
_.n(dJ,"ytd-destination-button-renderer",function(){if(vhS!==void 0)return vhS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return vhS=N},{mode:1});var JF0;var gJ=function(){var N=_.k.apply(this,arguments)||this;N.isRichGrid=!1;N.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return N};
_.p(gJ,_.k);_.V=gJ.prototype;_.V.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.V.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.V.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.V.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var N;if((N=this.data)==null||!N.isExpanded){N=this.hostElement.clientWidth;var t;if(N&&(t=this.data)!=null&&t.destinationButtons){t=Math.floor((N+4)/214);N=this.data.destinationButtons.length;var O=Math.ceil(N/t);this.fullyVisibleRows=N%t===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}}}};
_.V.updateRichGridDestinationButtonsVisibility=function(){var N,t;if(this.isRichGrid&&((N=this.data)==null||!N.isExpanded)&&(t=this.data)!=null&&t.destinationButtons){N=this.richGridItemsPerRow+1;t=this.data.destinationButtons.length;var O=Math.ceil(t/N);this.fullyVisibleRows=t%N===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}};
_.V.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
gJ.prototype.updateRichGridDestinationButtonsVisibility=gJ.prototype.updateRichGridDestinationButtonsVisibility;_.W([_.X(),_.Q("design:type",Object)],gJ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Number)],gJ.prototype,"fullyVisibleRows",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],gJ.prototype,"isShowMoreVisible",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],gJ.prototype,"isRichGrid",void 0);
_.W([_.X({selector:_.Tv,value:0}),_.Q("design:type",Number)],gJ.prototype,"richGridItemsPerRow",void 0);_.W([_.X(),_.Q("design:type",Object)],gJ.prototype,"gridStateActionMap",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],gJ.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],gJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],gJ.prototype,"ytdReduxBehavior",void 0);_.W([_.gz("data","richGridItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gJ.prototype,"updateRichGridDestinationButtonsVisibility",null);_.W([_.en({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],gJ);
_.n(gJ,"ytd-destination-shelf-renderer",function(){if(JF0!==void 0)return JF0;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return JF0=N},{mode:1});var ohS;var yJ=function(){return _.k.apply(this,arguments)||this};
_.p(yJ,_.k);yJ.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yJ.prototype,"data",void 0);_.W([_.en({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],yJ);
_.n(yJ,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(ohS!==void 0)return ohS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ohS=N},{mode:1});var sh0;var Bk=function(){var N=_.k.apply(this,arguments)||this;N.disableAnimation=!1;N.isSlimlineSurvey=!1;N.isSlimlineSurveyFollowUp=!1;N.isShortsStyle=!1;return N};
_.p(Bk,_.k);Bk.prototype.onTap=function(N){N.preventDefault();this.data&&_.or(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.cv.Object.defineProperties(Bk.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A;return((N=this.data)==null?0:N.checked)?(t=this.data)==null?void 0:(O=t.onStateIcon)==null?void 0:O.iconType:(H=this.data)==null?void 0:(A=H.defaultStateIcon)==null?void 0:A.iconType}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Bk.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Bk.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Bk.prototype,"disableAnimation",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bk.prototype,"isSlimlineSurvey",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bk.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bk.prototype,"isShortsStyle",void 0);_.W([_.a("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Bk.prototype,"isAnimatedIcon",null);
_.W([_.a("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Bk.prototype,"iconSize",null);_.W([_.a("isShortsStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Bk.prototype,"isDarkTheme",null);_.W([_.a("data.checked"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bk.prototype,"icon",null);_.W([_.en({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Bk);
_.n(Bk,"ytd-rating-survey-option-renderer",function(){if(sh0!==void 0)return sh0;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return sh0=N},{mode:2});var NlB;var ck=function(){var N=_.k.apply(this,arguments)||this;N.firstResponseText=null;N.lastResponseText=null;N.selectedNonStarOption=null;N.hideOptions=!1;N.hideUndoButton=!0;N.disableAnimation=!1;N.showResponseRangeText=!1;N.selectedRatingIndex=-1;N.isSlimlineSurvey=!1;N.isSlimlineSurveyFollowUp=!1;N.isShortsStyle=!1;N.slimlineSurveyRatingSelectedIndex=-1;return N};
_.p(ck,_.k);_.V=ck.prototype;_.V.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.V.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.V.onOptionChange=function(N,t){var O=this;N=t.onStateIcon&&t.defaultStateIcon&&t.onStateIcon.iconType===t.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(U,C){U.responseText===t.responseText?O.isSlimlineSurvey?(O.selectedRatingIndex=C,O.ytdReduxBehavior.dispatch(VZu(C))):(O.setSurveyOptionValue(C,!0,"checked"),O.setSurveyOptionValue(C,!0,"selected")):(O.setSurveyOptionValue(C,!1,"checked"),O.setSurveyOptionValue(C,
!1,"selected"))});
else if(N)this.selectedNonStarOption=t,this.hideOptions=!0;else{var H=this.ytRendererBehavior.getSimpleString(t.responseText),A=!0;this.getOptionRenderers().forEach(function(U,C){O.setSurveyOptionValue(C,A,"checked");O.setSurveyOptionValue(C,!1,"selected");O.ytRendererBehavior.getSimpleString(U.responseText)===H&&(A=!1,O.setSurveyOptionValue(C,!0,"selected"))})}N=t.responseEndpoint;
var Z;t.followUpCommand&&(Z=_.M(t.followUpCommand,svX));this.isSlimlineSurvey?(this.resetComponent(),_.sl(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.sl(this.hostElement,"ytd-inline-survey-rating-select-action",[N,Z])};
_.V.showSelectedOption=function(){var N=this;_.GB.addJob(function(){var t=N.getOptionRenderers()[N.slimlineSurveyRatingSelectedIndex];N.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),t)},8,100)};
_.V.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(N){var t;return(t=_.M(N,tfy))!=null?t:{}}):[]};
_.V.onUndoClick=function(){this.resetComponent();_.sl(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.V.setSurveyOptionValue=function(N,t,O){this.notifyPath("data.ratings."+N+".ratingSurveyOptionRenderer."+O);this.set("data.ratings."+N+".ratingSurveyOptionRenderer."+O,t)};
_.V.resetComponent=function(){var N=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var t=this.getOptionRenderers(),O,H;this.firstResponseText=(H=(O=t[0])==null?void 0:O.responseText)!=null?H:null;var A,Z;this.lastResponseText=(Z=(A=t[t.length-1])==null?void 0:A.responseText)!=null?Z:null;t.forEach(function(U,C){N.setSurveyOptionValue(C,!1,"checked");N.setSurveyOptionValue(C,!1,"selected")})};
_.cv.Object.defineProperties(ck.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
ck.prototype.onOptionChange=ck.prototype.onOptionChange;ck.prototype.dataChanged=ck.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],ck.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"firstResponseText",void 0);_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"lastResponseText",void 0);_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"selectedNonStarOption",void 0);_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"hideOptions",void 0);_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"hideUndoButton",void 0);_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"disableAnimation",void 0);
_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"showResponseRangeText",void 0);_.W([_.X(),_.Q("design:type",Object)],ck.prototype,"selectedRatingIndex",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ck.prototype,"isSlimlineSurvey",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ck.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ck.prototype,"isShortsStyle",void 0);_.W([_.X({selector:function(N){return N.ui.slimlineSurveyRatingSelectedIndex}}),
_.Q("design:type",Object)],ck.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.W([_.a("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ck.prototype,"isSingleSelect",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ck.prototype,"dataChanged",null);
_.W([_.dz("ytd-rating-survey-option-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],ck.prototype,"onOptionChange",null);_.W([_.en({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],ck);
_.n(ck,"ytd-rating-survey-renderer",function(){if(NlB!==void 0)return NlB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return NlB=N},{mode:1});var tlY;var Ohf;var Hhp;var jWG=(dv.FIRSTDAYOFWEEK+1)%7,AsE=function(N,t,O,H){var A="";if(H.selection&&ypM(H.selection))Ci(N,H.selection)&&(A+=" selected");else if(H.selection&&BhO(H.selection)){var Z=H.selection.selectionState||"START_DATE";Ci(N,H.selection.start)&&(A+=" period-start ",Z==="START_DATE"&&(A+="selected"));Ci(N,H.selection.end)&&(A+=" period-end ",Z==="END_DATE"&&(A+="selected"));Ki(N,H.selection.start)||Ki(H.selection.end,N)||(A+=" highlighted")}if(Ki(t,H.start)||Ki(H.end,t))A+=" disabled";H.circleToday&&
Ci(t,O)&&(A+=" today");return A};var $A=function(){return _.k.apply(this,arguments)||this};
_.p($A,_.k);_.V=$A.prototype;_.V.attached=function(){var N=this;_.yB(this,function(){N.JSC$16240_calendarMain.scrollHeight>0&&(N.calendarConfig.selection?N.scrollToDate(cpN(N.calendarConfig.selection)):N.scrollToDate(N.calendarConfig.end))})};
_.V.updateSelection=function(N){N=iyz(Object.assign({},this.calendarConfig,{selection:N}),AsE);this.splice.apply(this,["renderData.months",0,N.length].concat(_.W6(N)))};
_.V.scrollToDate=function(N){this.renderData&&(N=u24(N,this.renderData),N!==void 0&&this.JSC$16240_calendarMain.scrollToIndex(N))};
_.V.scrollToNextMonth=function(){this.JSC$16240_calendarMain.scrollToIndex(this.JSC$16240_calendarMain.firstVisibleIndex+1)};
_.V.scrollToPrevMonth=function(){this.JSC$16240_calendarMain.firstVisibleIndex===0&&this.JSC$16240_calendarMain.scrollTo(0,0);this.JSC$16240_calendarMain.scrollToIndex(this.JSC$16240_calendarMain.firstVisibleIndex-1)};
_.V.handleDayClick=function(N){_.sl(this.hostElement,"ytd-calendar-date-clicked",[N.model.day.date])};
_.V.handleDayMouseDown=function(N){N.preventDefault();_.sl(this.hostElement,"ytd-calendar-date-mousedown",[N.model.day.date])};
_.V.handleDayMouseUp=function(N){_.sl(this.hostElement,"ytd-calendar-date-mouseup",[N.model.day.date])};
_.V.handleDayMouseEnter=function(N){N.preventDefault();_.sl(this.hostElement,"ytd-calendar-date-mouseenter",[N.model.day.date])};
_.V.handleDayMouseLeave=function(N){_.sl(this.hostElement,"ytd-calendar-date-mouseleave",[N.model.day.date])};
_.cv.Object.defineProperties($A.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var N=this.calendarConfig,t=AsE;t=t===void 0?AsE:t;for(var O=[],H=0;H<7;H++)O.push(dv.NARROWWEEKDAYS[(H+jWG)%7]);return{months:iyz(N,t),daysOfWeekLabel:O}}}});
_.W([_.X(),_.Q("design:type",Object)],$A.prototype,"calendarConfig",void 0);_.W([_.B2("#calendar-main"),_.Q("design:type",Object)],$A.prototype,"JSC$16240_calendarMain",void 0);_.W([_.a("calendarConfig"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],$A.prototype,"renderData",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],$A);
_.n($A,"ytd-scrollable-calendar",function(){if(Hhp!==void 0)return Hhp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Hhp=N},{mode:2});var ZhR;var VlE;var jA=function(){var N=_.k.apply(this,arguments)||this;N.hideCharCounter=!1;N.hideLabel=!1;N.noLabelFloat=!1;N.autoValidate=!0;N.invalid=!1;N.disabled=!1;N.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return N};
_.p(jA,_.k);_.V=jA.prototype;_.V.reset=function(N){this.value=N&&this.data?this.data.value=N:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.V.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.V.focusTextInput=function(){this.input.focus()};
_.V.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.V.valueChanged=function(){var N,t;if(((N=this.data)==null?0:N.value)||((t=this.data)==null?void 0:t.value)==="")this.value=this.data.value;else{var O;((O=this.data)==null?void 0:O.value)!==void 0||this.value||(this.value="")}};
_.V.computeLabel=function(N,t){return t?"":_.Gv(N)};
_.V.computeAriaLabel=function(N,t){return t?_.Gv(N):""};
_.V.computeErrorMessage=function(N,t,O,H){!N&&t?N=O||this.strings.REQUIRED_LABEL:(N=_.Gv(H),N=_.KN(N,"&")?"document"in _.H4?KnR(N):Fn0(N):N);return N};
_.V.computeType=function(N){return N==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.V.onTextValueChanged=function(N){this.value=N.detail.value;var t;(t=this.onValueChanged)==null||t.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.V.handleUpdateTextInputFormFieldRendererCommand=function(N){(N=_.M(N,unE))&&this.data&&this.data.id===N.id&&(N.invalid!==void 0&&(this.invalid=N.invalid),N.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",N.invalidValueErrorMessage))};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("value-changed",this.value))};
_.V.updateInvalidFromBinding=function(N){this.invalid=N.detail.value};
_.cv.Object.defineProperties(jA.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var N;return!((N=this.data)==null||!N.isMultiline)}}});
jA.prototype.valueChangedForBinding=jA.prototype.valueChangedForBinding;jA.prototype.valueChanged=jA.prototype.valueChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],jA.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],jA.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],jA.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],jA.prototype,"value",void 0);_.W([_.X(),_.Q("design:type",String)],jA.prototype,"pattern",void 0);_.W([_.X(),_.Q("design:type",String)],jA.prototype,"errorMessage",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],jA.prototype,"componentStyle",void 0);_.W([_.X(),_.Q("design:type",Object)],jA.prototype,"hideCharCounter",void 0);
_.W([_.X(),_.Q("design:type",Object)],jA.prototype,"hideLabel",void 0);_.W([_.X(),_.Q("design:type",Object)],jA.prototype,"noLabelFloat",void 0);_.W([_.X(),_.Q("design:type",Function)],jA.prototype,"onValueChanged",void 0);_.W([_.X(),_.Q("design:type",Boolean)],jA.prototype,"isMultilineOverride",void 0);_.W([_.X(),_.Q("design:type",Object)],jA.prototype,"autoValidate",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jA.prototype,"invalid",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jA.prototype,"disabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],jA.prototype,"enableOverlayTheme",void 0);_.W([_.X({value:{REQUIRED_LABEL:_.CJ("REQUIRED_LABEL",void 0,"Required")}}),_.Q("design:type",Object)],jA.prototype,"strings",void 0);_.W([_.B2("#input"),_.Q("design:type",Object)],jA.prototype,"input",void 0);
_.W([_.a("data","isMultilineOverride"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jA.prototype,"isMultiline",null);_.W([_.ic("data.value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jA.prototype,"valueChanged",null);_.W([_.gz("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jA.prototype,"valueChangedForBinding",null);_.W([_.wz({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],jA);
_.n(jA,"yt-text-input-form-field-renderer",function(){if(VlE===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;ZhR===void 0&&(ZhR=document.createElement("template"));var H=ZhR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);VlE=N}N=VlE;return N},{mode:2});var iy=function(){var N=_.k.apply(this,arguments)||this;N.data=void 0;N.selectionState="START_DATE";N.isStartDateInvalid=!1;N.isEndDateInvalid=!1;N.autoapply=!1;N.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return N};
_.p(iy,_.k);_.V=iy.prototype;_.V.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.V.focus=function(){this.startDateInput.focus()};
_.V.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:F_(this.data.selection.start),end:F_(this.data.selection.end)})};
_.V.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Ep(this.selectionState)}};
_.V.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.V.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.V.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.V.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var N=this.calendar.calendarConfig,t=N.end;N=hCQ({start:N.start,end:this.endDate||t},this.startDateInput.value||"");this.isStartDateInvalid=!N.isValid;N.isValid&&(N=N.value,this.selection=this.endDate?{start:N,end:this.endDate}:N,this.calendar.scrollToDate(N));this.updateInvalidState()}};
_.V.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var N=this.calendar.calendarConfig,t=N.start;N=hCQ({start:this.startDate||t,end:N.end},this.endDateInput.value||"");this.isEndDateInvalid=!N.isValid;N.isValid&&(N=N.value,this.selection={start:this.startDate,end:N},this.calendar.scrollToDate(N));this.updateInvalidState()}};
_.V.handleCalendarDateClicked=function(N){var t=this.selection&&cpN(this.selection),O=this.selection&&$9v(this.selection);t&&!Ki(N,t)&&this.selectionState==="END_DATE"?(this.selection={start:t,end:N},this.selectionState="START_DATE"):(O&&!Ki(O,N)?this.selection={start:N,end:O}:this.selection=N,this.selectionState="END_DATE")};
_.V.handleCalendarDateMouseDown=function(N){this.selection&&!ypM(this.selection)&&(this.dragPivot=Ci(N,this.selection.start)?this.selection.end:Ci(N,this.selection.end)?this.selection.start:N)};
_.V.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.V.handleCalendarDateMouseEnter=function(N){this.dragPivot&&(this.selection={start:function(t,O){return Ki(t,O)?t:O}(this.dragPivot,N),
end:function(t,O){return Ki(t,O)?O:t}(this.dragPivot,N)},this.dragPivot||(this.selectionState="START_DATE"))};
_.V.handleCalendarDateMouseLeave=function(){};
_.V.handleCalendarSubmitDateRange=function(){this.selection&&!ypM(this.selection)&&_.sl(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.V.updateInvalidState=function(){var N=function(t,O){O?t.setAttribute("invalid",""):t.removeAttribute("invalid")};
N(this.startDateInput,this.isStartDateInvalid);N(this.endDateInput,this.isEndDateInvalid)};
_.V.updateDateStrings=function(){this.selection&&(ypM(this.selection)?gax(this.selection):(gax(this.selection.start),gax(this.selection.end)))};
_.V.updateCalendarSelection=function(N){this.calendar.updateSelection(Object.assign({},N,{selectionState:this.selectionState}))};
_.V.updateIsStartDateInvalidFromBinding=function(N){this.isStartDateInvalid=N.detail.value};
_.V.updateIsEndDateInvalidFromBinding=function(N){this.isEndDateInvalid=N.detail.value};
_.V.updateStartDateStringFromBinding=function(){};
_.V.updateEndDateStringFromBinding=function(){};
_.cv.Object.defineProperties(iy.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:F_(this.data.dateRangeStart),end:F_(this.data.dateRangeEnd),selection:{start:F_(this.data.selection.start),end:F_(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&cpN(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&$9v(this.selection)}}});
iy.prototype.resetTextboxes=iy.prototype.resetTextboxes;iy.prototype.observeSelection=iy.prototype.observeSelection;iy.prototype.dataChanged=iy.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],iy.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("#calendar"),_.Q("design:type",Object)],iy.prototype,"calendar",void 0);
_.W([_.B2("#start-date"),_.Q("design:type",Object)],iy.prototype,"startDateInput",void 0);_.W([_.B2("#end-date"),_.Q("design:type",Object)],iy.prototype,"endDateInput",void 0);_.W([_.X(),_.Q("design:type",Object)],iy.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],iy.prototype,"selection",void 0);_.W([_.X(),_.Q("design:type",String)],iy.prototype,"selectionState",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iy.prototype,"calendarConfig",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iy.prototype,"errorMessage",null);_.W([_.a("selection"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iy.prototype,"startDate",null);_.W([_.a("selection"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iy.prototype,"endDate",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iy.prototype,"dataChanged",null);
_.W([_.gz("selection","selectionState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iy.prototype,"observeSelection",null);_.W([_.gz("selectionState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iy.prototype,"resetTextboxes",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],iy);
_.n(iy,"ytd-date-period-picker-renderer",function(){if(Ohf!==void 0)return Ohf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Ohf=N},{mode:1});var uy=function(){var N=_.k.apply(this,arguments)||this;var t={};N.actionMap=(t["ytd-date-period-picker-apply"]="handleDateRangeUpdated",t);return N};
_.p(uy,_.k);uy.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
uy.prototype.handleDateRangeUpdated=function(){};
_.W([_.X(),_.Q("design:type",Object)],uy.prototype,"data",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],uy.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],uy.prototype,"rendererstamperBehavior",void 0);_.W([_.en({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],uy);
_.n(uy,"ytd-report-history-section-header-renderer",function(){if(tlY!==void 0)return tlY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return tlY=N},{mode:1});var DJp;var UJy;var C3f;var SA=function(){return _.k.apply(this,arguments)||this};
_.p(SA,_.k);_.cv.Object.defineProperties(SA.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?0:(t=N.icon)==null?0:t.iconType)?_.Vt(this.data.icon.iconType):""}}});
_.W([_.X(),_.Q("design:type",Object)],SA.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],SA.prototype,"icon",null);_.W([_.en({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],SA);
_.n(SA,"ytd-report-history-table-text-cell-renderer",function(){if(C3f!==void 0)return C3f;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return C3f=N},{mode:1});var hN=function(){return _.k.apply(this,arguments)||this};
_.p(hN,_.k);hN.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],hN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hN.prototype,"data",void 0);_.W([_.en({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],hN);
_.n(hN,"ytd-report-history-table-reason-cell-renderer",function(){if(UJy!==void 0)return UJy;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return UJy=N},{mode:1});var MN=function(){return _.k.apply(this,arguments)||this};
_.p(MN,_.k);MN.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"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],MN.prototype,"rendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],MN.prototype,"data",void 0);_.W([_.en({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],MN);
_.n(MN,"ytd-report-history-table-cell-renderer",function(){if(DJp!==void 0)return DJp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return DJp=N},{mode:1});var Kfa;var by=function(){var N=_.k.apply(this,arguments)||this;N.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return N};
_.p(by,_.k);by.prototype.onDataChanged=function(){var N;if((N=this.data)==null?0:N.style)this.componentStyle=this.getStyleName(this.data.style)};
by.prototype.getCellForColumn=function(N){return this.cells.find(function(t){var O;return((O=_.M(t==null?void 0:t.cell,AxE)||_.M(t==null?void 0:t.cell,HeE))==null?void 0:O.columnId)===N.type})};
by.prototype.getClassForColumn=function(N){switch(N){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
by.prototype.getStyleName=function(N){switch(N){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.cv.Object.defineProperties(by.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.cells)||[]).map(function(t){return _.M(t,Oey)})}}});
by.prototype.onDataChanged=by.prototype.onDataChanged;_.W([_.X(),_.Q("design:type",Object)],by.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Array)],by.prototype,"columnRenderData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],by.prototype,"componentStyle",void 0);_.W([_.a("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],by.prototype,"cells",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],by.prototype,"onDataChanged",null);_.W([_.en({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],by);
_.n(by,"ytd-report-history-table-row-renderer",function(){if(Kfa!==void 0)return Kfa;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Kfa=N},{mode:1});var FfQ;var dJE;var MPS={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},by4={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var ps=function(){return _.k.apply(this,arguments)||this};
_.p(ps,_.k);ps.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"}}}}}};
ps.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.cv.Object.defineProperties(ps.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.columns)?aRG(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return zCS(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var N=this.tableSpec,t=MPS;t=t===void 0?by4:t;t=YQv(N.columnDimensions,N.columnsToShow||[],t);N=0;t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=O.value,N+=O.minWidth+O.paddingLeft+O.paddingRight;return N}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.W([_.Y(_.h3),_.Q("design:type",Object)],ps.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ps.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ps.prototype,"tableSpec",null);_.W([_.a("tableSpec"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],ps.prototype,"columnRenderData",null);
_.W([_.a("tableSpec"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],ps.prototype,"totalMinWidth",null);_.W([_.a("totalMinWidth"),_.Q("design:type",String),_.Q("design:paramtypes",[])],ps.prototype,"tableWidthStyle",null);_.W([_.en({is:"ytd-table-renderer",disableElementRegistration:!0})],ps);
_.n(ps,"ytd-table-renderer",function(){if(dJE!==void 0)return dJE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return dJE=N},{mode:1});var Ls=function(){return _.k.apply(this,arguments)||this};
_.p(Ls,_.k);Ls.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}}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ls.prototype,"data",void 0);_.W([_.en({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Ls);
_.n(Ls,"ytd-report-reason-history-modal-renderer",function(){if(FfQ!==void 0)return FfQ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return FfQ=N},{mode:1});var gUf;var ys_;var BlY;var zA=function(){return _.k.apply(this,arguments)||this};
_.p(zA,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],zA.prototype,"data",void 0);_.W([_.en({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],zA);
_.n(zA,"ytd-profile-column-stats-entry-renderer",function(){if(BlY!==void 0)return BlY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return BlY=N},{mode:1});var csf;var YA=function(){return _.k.apply(this,arguments)||this};
_.p(YA,_.k);YA.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],YA.prototype,"data",void 0);_.W([_.en({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],YA);
_.n(YA,"ytd-profile-column-stats-renderer",function(){if(csf!==void 0)return csf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return csf=N},{mode:1});var $Ju;var aS=function(){return _.k.apply(this,arguments)||this};
_.p(aS,_.k);_.cv.Object.defineProperties(aS.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.useThumbnailSize)return 80;var t,O;N=(t=this.data)==null?void 0:(O=t.thumbnail)==null?void 0:O.thumbnails;var H;return N&&((H=N[0])==null?void 0:H.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.useThumbnailSize)return 80;var t,O;N=(t=this.data)==null?void 0:(O=t.thumbnail)==null?void 0:O.thumbnails;var H;return N&&((H=N[0])==null?void 0:H.height)||80}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],aS.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],aS.prototype,"componentStyle",void 0);_.W([_.a("data.useThumbnailSize"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aS.prototype,"thumbnailWidth",null);
_.W([_.a("data.useThumbnailSize"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aS.prototype,"thumbnailHeight",null);_.W([_.en({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],aS);
_.n(aS,"ytd-profile-column-user-info-renderer",function(){if($Ju!==void 0)return $Ju;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $Ju=N},{mode:1});var TA=function(){return _.k.apply(this,arguments)||this};
_.p(TA,_.k);TA.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]]"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],TA.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],TA.prototype,"componentStyle",void 0);_.W([_.en({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],TA);
_.n(TA,"ytd-profile-column-renderer",function(){if(ys_!==void 0)return ys_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ys_=N},{mode:1});var wJ=function(){var N=_.k.apply(this,arguments)||this;N.componentStyle="NON_CENTERED_PROFILE";return N};
_.p(wJ,_.k);wJ.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
wJ.prototype.getIcon=function(N){return N?"settings:"+N.toLowerCase():null};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wJ.prototype,"data",void 0);_.W([_.en({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],wJ);
_.n(wJ,"ytd-page-introduction-renderer",function(){if(gUf!==void 0)return gUf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return gUf=N},{mode:1});var jz0;var eA=function(){return _.k.apply(this,arguments)||this};
_.p(eA,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],eA.prototype,"data",void 0);_.W([_.en({is:"ytd-report-description-renderer",disableElementRegistration:!0})],eA);
_.n(eA,"ytd-report-description-renderer",function(){if(jz0!==void 0)return jz0;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return jz0=N},{mode:1});var ihQ;var u0R;var Pk=function(){return _.k.apply(this,arguments)||this};
_.p(Pk,_.k);Pk.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Pk.prototype,"data",void 0);_.W([_.en({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Pk);
_.n(Pk,"ytd-video-report-renderer",function(){if(u0R!==void 0)return u0R;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return u0R=N},{mode:1});var ScR;_.pE("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.pE("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var XH=function(){return _.k.apply(this,arguments)||this};
_.p(XH,_.k);XH.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]]"}}}}}};
XH.prototype.computeMessageStyle=function(N){return N};
XH.prototype.computeButtonOverride=function(N){var t;if((N==null?0:(t=N.style)==null?0:t.value)&&N.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],XH.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],XH.prototype,"shelf",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],XH.prototype,"panel",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Q("design:type",Boolean)],XH.prototype,"componentStyle",void 0);_.W([_.X({computed:"computeButtonOverride(data)"}),_.Q("design:type",Object)],XH.prototype,"buttonOverride",void 0);_.W([_.en({is:"ytd-message-renderer",disableElementRegistration:!0})],XH);
_.n(XH,"ytd-message-renderer",function(){if(ScR!==void 0)return ScR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ScR=N},{mode:1});var xA=function(){return _.k.apply(this,arguments)||this};
_.p(xA,_.k);xA.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"}}}};
xA.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
xA.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.cv.Object.defineProperties(xA.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var N,t;return!!(((N=this.data)==null?0:N.header)&&((t=this.data)==null?0:t.table))}}});
xA.prototype.onRequestError=xA.prototype.onRequestError;_.W([_.Y(_.h3),_.Q("design:type",Object)],xA.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],xA.prototype,"data",void 0);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xA.prototype,"isUnifiedReportHistory",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xA.prototype,"onRequestError",null);_.W([_.en({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],xA);
_.n(xA,"ytd-report-history-section-renderer",function(){if(ihQ!==void 0)return ihQ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ihQ=N},{mode:1});var hup;var kA=function(){var N=_.k.apply(this,arguments)||this;N.answerExpanded=!1;return N};
_.p(kA,_.k);kA.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],kA.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],kA.prototype,"answerExpanded",void 0);_.W([_.en({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],kA);
_.n(kA,"ytd-handles-claiming-faq-renderer",function(){if(hup!==void 0)return hup;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return hup=N},{mode:1});var MlB;var bhY=function(){return _.k.apply(this,arguments)||this};
_.p(bhY,_.k);_.W([_.X(),_.Q("design:type",Object)],bhY.prototype,"data",void 0);_.W([_.en({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],bhY);
_.n(bhY,"ytd-handles-claiming-faq-section-renderer",function(){if(MlB!==void 0)return MlB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MlB=N},{mode:1});var pM_;var qN=function(){var N=_.k.apply(this,arguments)||this;N.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";N.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";N.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";N.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";N.leftSquiggly=N.leftSquigglyLight;N.rightSquiggly=N.rightSquigglyLight;
N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};N.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return N};
_.p(qN,_.k);_.V=qN.prototype;_.V.updateLeftSquigglyStyle=function(){_.CO(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.V.updateRightSquigglyStyle=function(){_.CO(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.V.ready=function(){var N=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(N)};
_.V.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.set("isDarkTheme",N),N?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
qN.prototype.updateRightSquigglyStyle=qN.prototype.updateRightSquigglyStyle;qN.prototype.updateLeftSquigglyStyle=qN.prototype.updateLeftSquigglyStyle;_.W([_.X(),_.Q("design:type",Object)],qN.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],qN.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",String)],qN.prototype,"leftSquiggly",void 0);_.W([_.X(),_.Q("design:type",String)],qN.prototype,"rightSquiggly",void 0);
_.W([_.gz("leftSquiggly"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qN.prototype,"updateLeftSquigglyStyle",null);_.W([_.gz("rightSquiggly"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qN.prototype,"updateRightSquigglyStyle",null);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],qN.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],qN.prototype,"actionButtonOverride",void 0);_.W([_.en({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],qN);
_.n(qN,"ytd-handles-claiming-header-renderer",function(){if(pM_!==void 0)return pM_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return pM_=N},{mode:1});var Lf_;var ns=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};N.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";N.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";N.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";N.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
N.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";N.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";N.image0SquigglyBackground=N.image0LightSquigglyBackground;N.image1SquigglyBackground=N.image1LightSquigglyBackground;N.image3SquigglyBackground=N.image3LightSquigglyBackground;return N};
_.p(ns,_.k);_.V=ns.prototype;_.V.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.V.onDataChanged=function(){this.updateTitleAndImages()};
_.V.onThemeChanged=function(){this.updateTitleAndImages()};
_.V.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.isDarkTheme=N)};
_.V.updateImage0SquigglyBackground=function(){_.CO(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.V.updateImage1SquigglyBackground=function(){_.CO(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.V.updateImage3SquigglyBackground=function(){_.CO(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.V.updateTitleAndImages=function(){var N,t;((N=this.data)==null?void 0:(t=N.titleImages)==null?void 0:t.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))};
ns.prototype.updateImage3SquigglyBackground=ns.prototype.updateImage3SquigglyBackground;ns.prototype.updateImage1SquigglyBackground=ns.prototype.updateImage1SquigglyBackground;ns.prototype.updateImage0SquigglyBackground=ns.prototype.updateImage0SquigglyBackground;ns.prototype.onThemeChanged=ns.prototype.onThemeChanged;ns.prototype.onDataChanged=ns.prototype.onDataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],ns.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"title0",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"title1",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"title2",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"title3",void 0);
_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"title4",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"image0",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"image1",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"image2",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"image3",void 0);_.W([_.X(),_.Q("design:type",Object)],ns.prototype,"image4",void 0);_.W([_.X(),_.Q("design:type",String)],ns.prototype,"image0SquigglyBackground",void 0);
_.W([_.X(),_.Q("design:type",String)],ns.prototype,"image1SquigglyBackground",void 0);_.W([_.X(),_.Q("design:type",String)],ns.prototype,"image3SquigglyBackground",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ns.prototype,"onDataChanged",null);_.W([_.gz("isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ns.prototype,"onThemeChanged",null);
_.W([_.gz("image0SquigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ns.prototype,"updateImage0SquigglyBackground",null);_.W([_.gz("image1SquigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ns.prototype,"updateImage1SquigglyBackground",null);
_.W([_.gz("image3SquigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ns.prototype,"updateImage3SquigglyBackground",null);_.W([_.en({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],ns);
_.n(ns,"ytd-handles-claiming-title-images-section-renderer",function(){if(Lf_!==void 0)return Lf_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Lf_=N},{mode:1});var zu_;var Wk=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(Wk,_.k);Wk.prototype.ready=function(){var N=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(N)};
Wk.prototype.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&this.set("isDarkTheme",N)};
Wk.prototype.onCopyButtonClick=function(){var N=this,t,O,H;return _.K(function(A){return(t=N.data)!=null&&t.primaryChannelUrl?A.yield(navigator.clipboard.writeText(((O=N.data)==null?0:O.encodedChannelUrl)?N.data.encodedChannelUrl:"https://"+_.Gv((H=N.data)==null?void 0:H.primaryChannelUrl)),0):A.jumpTo(0)})};
_.W([_.X(),_.Q("design:type",Object)],Wk.prototype,"data",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Wk.prototype,"ytComponentBehavior",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Wk.prototype,"isDarkTheme",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Wk.prototype,"ytActionHandlerBehavior",void 0);_.W([_.en({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Wk);
_.n(Wk,"ytd-handles-claiming-update-social-renderer",function(){if(zu_!==void 0)return zu_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return zu_=N},{mode:1});var YcY;var rJ=function(){var N=_.k.apply(this,arguments)||this;N.JSC$16334_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";N.JSC$16334_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};N.squigglyBackground=N.JSC$16334_squigglyBackgroundLight;return N};
_.p(rJ,_.k);rJ.prototype.updateSquigglyBackgroundStyle=function(){_.CO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
rJ.prototype.ready=function(){var N=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",N);this.squigglyBackground=N?this.JSC$16334_squigglyBackgroundDark:this.JSC$16334_squigglyBackgroundLight};
rJ.prototype.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.set("isDarkTheme",N),this.squigglyBackground=N?this.JSC$16334_squigglyBackgroundDark:this.JSC$16334_squigglyBackgroundLight)};
rJ.prototype.updateSquigglyBackgroundStyle=rJ.prototype.updateSquigglyBackgroundStyle;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],rJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],rJ.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],rJ.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",String)],rJ.prototype,"squigglyBackground",void 0);_.W([_.gz("squigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rJ.prototype,"updateSquigglyBackgroundStyle",null);_.W([_.en({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],rJ);
_.n(rJ,"ytd-handles-claiming-vanity-info-renderer",function(){if(YcY!==void 0)return YcY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return YcY=N},{mode:1});var aWf;var IS=function(){var N=_.k.apply(this,arguments)||this;N.JSC$16337_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";N.JSC$16337_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";N.squigglyBackground=N.JSC$16337_squigglyBackgroundLight;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(IS,_.k);_.V=IS.prototype;_.V.ready=function(){var N=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(N)};
_.V.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.set("isDarkTheme",N),this.squigglyBackground=N?this.JSC$16337_squigglyBackgroundDark:this.JSC$16337_squigglyBackgroundLight)};
_.V.updateSquigglyBackgroundStyle=function(){_.CO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.V.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.V.detached=function(){this.stop()};
_.V.stop=function(){this.playerElement.stop()};
_.V.setupVideoPlayer=function(){var N=this,t,O;return _.K(function(H){t=N.data.videoId;O="http://i1.ytimg.com/vi/"+t+"/maxresdefault.jpg";N.playerElement.loadVideoWithPlayerVars({video_id:t,iurlhq:O});_.Ty(H)})};
IS.prototype.onDataChanged=IS.prototype.onDataChanged;IS.prototype.updateSquigglyBackgroundStyle=IS.prototype.updateSquigglyBackgroundStyle;_.W([_.X({value:!1}),_.Q("design:type",Boolean)],IS.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",String)],IS.prototype,"squigglyBackground",void 0);_.W([_.B2("#player"),_.Q("design:type",Object)],IS.prototype,"playerElement",void 0);_.W([_.X(),_.Q("design:type",Object)],IS.prototype,"data",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],IS.prototype,"ytActionHandlerBehavior",void 0);_.W([_.gz("squigglyBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],IS.prototype,"updateSquigglyBackgroundStyle",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],IS.prototype,"onDataChanged",null);
_.W([_.en({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],IS);
_.n(IS,"ytd-handles-claiming-video-item-renderer",function(){if(aWf!==void 0)return aWf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return aWf=N},{mode:1});var Tlu;var QJ=function(){var N=_.$q.apply(this,arguments)||this;N.dragging=!1;N.dragMouseStart=0;N.dragOffsetStart=0;N.containerWidthDiff=0;N.boundPrevClick=function(){N.set("offset",ly(N,N.offset-(N.scrollDistance||320)))};
N.boundNextClick=function(){N.set("offset",ly(N,N.offset+(N.scrollDistance||320)))};
N.boundScrollContainerMouseDown=function(t){N.dragMouseStart=t.clientX;N.dragOffsetStart=N.offset;N.dragging=!0};
N.boundScrollContainerDrag=function(t){N.dragging&&N.set("offset",ly(N,N.dragOffsetStart-(t.clientX-N.dragMouseStart)))};
N.boundMouseUp=function(){N.onMouseUp()};
N.boundWheelScroll=function(t){var O=0;Math.abs(t.deltaX)>=Math.abs(t.deltaY)?O=t.deltaX:t.shiftKey&&(O=t.deltaY);O!==0&&(N.offset+=O,t.stopPropagation(),t.preventDefault())};
N.boundChipCloudChipScrollIntoView=function(t){(t=t.detail)&&N.scrollChipIntoView(t)};
return N};
_.p(QJ,_.$q);QJ.prototype.attached=function(){var N=_.O6(this.hostElement).querySelector("#scroll-container");N.addEventListener("wheel",this.boundWheelScroll);N.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);N.style.touchAction="pan-y";N.addEventListener("pointerdown",this.boundScrollContainerMouseDown);N.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
QJ.prototype.detached=function(){var N=_.O6(this.hostElement).querySelector("#scroll-container");N.removeEventListener("wheel",this.boundWheelScroll);N.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);N.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);N.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
QJ.prototype.reset=function(){this.set("offset",0);_.yB(this,this.setContainerWidthDiff);_.yB(this,this.setButtonsState)};
var ly=function(N,t){return Math.min(Math.max(t,0),N.containerWidthDiff)};
_.V=QJ.prototype;_.V.onMouseUp=function(){this.dragging=!1};
_.V.transformContainer=function(){this.offset=ly(this,this.offset);var N=_.Ro("HTML_DIR")==="rtl"?"":"-";_.O6(this.hostElement).querySelector("#chips").style.transform="translateX("+N+this.offset+"px)";_.yB(this,this.setButtonsState)};
_.V.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=ly(this,this.offset));this.atStart=this.offset<=0};
_.V.setContainerWidthDiff=function(){var N=_.O6(this.hostElement).querySelector("#scroll-container"),t=_.O6(this.hostElement).querySelector("#chips");N&&t&&(this.containerWidthDiff=t.clientWidth-N.clientWidth)};
_.V.scrollChipIntoView=function(N){var t=_.O6(this.hostElement).querySelector("#scroll-container");if(t){var O=this.atStart?0:106,H=this.atEnd?0:106;N.offsetLeft<this.offset+O?this.offset=ly(this,N.offsetLeft-O):N.offsetLeft+N.clientWidth>this.offset+t.clientWidth-H&&(this.offset=ly(this,N.offsetLeft+N.clientWidth+H-t.clientWidth))}};
QJ.prototype.transformContainer=QJ.prototype.transformContainer;_.W([_.X({value:0}),_.Q("design:type",Number)],QJ.prototype,"offset",void 0);_.W([_.X({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],QJ.prototype,"atStart",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],QJ.prototype,"atEnd",void 0);_.W([_.X(),_.Q("design:type",Number)],QJ.prototype,"scrollDistance",void 0);
_.W([_.gz("offset"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QJ.prototype,"transformContainer",null);_.W([_.jn()],QJ);var wMZ;var euX;_.m_=_.q(function(N){var t=N.data;N=_.D(_.b$(!1,void 0,"bob3J"));var O=N.next().value,H=N.next().value;N=function(Z){if((t==null?void 0:t().state)!==1){var U,C;(C=(U=t()).onTap)==null||C.call(U,Z)}};
var A={};return _.d("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Ui(function(){var Z=_.cY().resolve(_.BY(_.z6));if(Z){H(Z.isKeyBoardInUse());var U,C;(C=(U=t()).onFocusIn)==null||C.call(U)}return!1}),
"on:focusout":_.Ui(function(){H(!1);return!1})},_.d(P3Y,{shouldWrapInButton:function(){return t().type!==2},
selected:function(){return t().state===0},
onClick:N,isDropdown:function(){return t().type===1},
accessibilityLabel:function(){return t().type===1?void 0:t().accessibilityLabel}},_.d("div",{class:_.V7("ytChipShapeChip",function(){a:switch(t==null?void 0:t().state){case 0:var Z="ytChipShapeActive";
break a;case 1:Z="ytChipShapeDisabled";break a;default:Z="ytChipShapeInactive"}return Z},function(){var Z=t().type===1||t().type===2,U=t();
return Z||U!=null&&U.startIcon?U==null||!U.startIcon||U!=null&&U.text?Z?"ytChipShapeEndIconPadding":(U==null?0:U.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var Z=t();
if((Z==null?void 0:Z.style)===0&&(Z==null?void 0:Z.state)===0){var U;Z=((U=_.cY().resolve(_.BY(_.WV)))==null?0:U())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else Z="";return Z},(A.ytChipShapeFocused=function(){var Z;
return O()&&((Z=t())==null?void 0:Z.state)!==1},A))},_.d(_.y,{cond:function(){return t().startIcon},
then:function(){return _.d(_.dq,{icon:function(){var Z;return(Z=t())==null?void 0:Z.startIcon},
className:_.V7(function(){return t().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var Z=t(),U,C=(U=_.cY().resolve(_.BY(_.WV)))==null?void 0:U();
return(Z==null?void 0:Z.style)===0&&(Z==null?void 0:Z.state)===0&&C?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return t().text},_.d(XMu,{shape:t,
onClick:N}),_.d(_.aw,{model:{borderRadius:"8px"}}))))},"Lc");
_.m_.idomCompat=!0;var P3Y=_.q(function(N){var t=_.Ui(function(O){N.onClick(O);return!1});
return _.d(_.y,{cond:N.shouldWrapInButton,then:function(){return _.d("button",{class:"ytChipShapeButtonReset","on:click":t,role:function(){return N.isDropdown()?"combobox":"tab"},
"aria-label":N.accessibilityLabel,"aria-selected":N.selected},N.children)},
else:function(){return N.children}})},"Mc"),XMu=_.q(function(N){var t=N.shape;
var O=N.onClick;var H=_.Ui(function(A){O(A);return!1});
return _.d(_.WZ,null,_.d(_.qC,{when:function(){return t().type===1}},function(){return _.d(_.dq,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.d(_.qC,{when:function(){return t().type===2}},function(){return _.d("button",{class:"ytChipShapeButtonReset",
"on:click":H},_.d(_.dq,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.d(_.qC,{when:function(){return t().type===0}},function(){return _.d(_.BZ,null)}))},"Nc");_.o_(_.m_,"chip-shape",{props:{data:_.$O}});var EJ=function(){var N=_.k.apply(this,arguments)||this;N.disableDeselectEvent=!1;N.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return N};
_.p(EJ,_.k);_.V=EJ.prototype;_.V.onSelectChipCommand=function(N){if(!this.selected&&this.data&&(N=_.M(N,KTy),N.targetId&&N.targetId===this.data.targetId))this.onTap()};
_.V.onFilterChipTransformCommand=function(N){if(!this.selected&&this.data){var t;(N=(t=_.M(N,AAZ))==null?void 0:t.chipUniqueId)&&N===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.V.dataChanged=function(){var N=this;_.yB(this,function(){N.data&&N.data.isSelected&&!N.selected&&(N.scrollChipIntoView(),N.onTap())})};
_.V.computeChipStyle=function(N){return N!=null?N:"STYLE_DEFAULT"};
_.V.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.sl(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.sl(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.V.onFocus=function(){var N=_.cY().resolve(_.BY(_.z6));N&&N.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.V.scrollChipIntoView=function(){_.or(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.cv.Object.defineProperties(EJ.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return keQ({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
EJ.prototype.onFocus=EJ.prototype.onFocus;EJ.prototype.onTap=EJ.prototype.onTap;EJ.prototype.dataChanged=EJ.prototype.dataChanged;_.W([_.Y(_.Qy),_.Q("design:type",Object)],EJ.prototype,"ironButtonState",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.rA),_.Q("design:type",Object)],EJ.prototype,"ironA11yKeysBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],EJ.prototype,"disableDeselectEvent",void 0);_.W([_.X(),_.Q("design:type",Object)],EJ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.icon"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],EJ.prototype,"hasIcon",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.uniqueId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],EJ.prototype,"isGnomeChip",null);_.W([_.X({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Q("design:type",String)],EJ.prototype,"chipStyle",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],EJ.prototype,"selected",void 0);
_.W([_.a("data","selected"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],EJ.prototype,"chipShapeData",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EJ.prototype,"dataChanged",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EJ.prototype,"onTap",null);
_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EJ.prototype,"onFocus",null);_.W([_.wz({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],EJ);
_.n(EJ,"yt-chip-cloud-chip-renderer",function(){if(euX===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;wMZ===void 0&&(wMZ=document.createElement("template"));var H=wMZ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);euX=N}N=euX;return N},{mode:2});var nav=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.xJS=_.q(function(N){function t(){if(nav.has(N.data().displayType)){var g=!H(),B;if((B=N.disableDeselection)==null||!B.call(N)||g){N.data().selected=g;B=Object.assign({},U(),{selected:g});C(B);var c;(c=N.callback)==null||c.call(N,B,g)}}}
var O=_.Fy("chip-view-model"),H=function(){var g,B;return!!(((g=N.selected)==null?void 0:g.call(N))!==void 0?(B=N.selected)==null?0:B.call(N):U().selected)},A=_.D(_.Gb(N.data)),Z=A.next().value;
A=A.next().value;var U=Z,C=A,F=_.cz(fRx,function(){return N.data().chipEntityKey||""});
return _.d("chip-view-model",{class:"ytChipViewModelHost",el:O},_.d(_.m_,{data:function(){var g,B=Object.assign({},U(),{selected:H()}),c=F(),u=(g=N.disableDeselection)==null?void 0:g.call(N);a:switch(B.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":g=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":g=3;break a;default:g=0}return{text:(c==null?void 0:c.text)||B.text,state:B.disabled?1:B.selected?0:2,type:g,onTap:W6N(B,O,t,
u),accessibilityLabel:B.accessibilityLabel||B.text}}}))},"Oc");
_.xJS.idomCompat={callbacks:{callback:!0}};_.GA=_.q(function(N){var t=N.data;var O=N.callback;var H=N.selectionBehavior;var A=N.disableChipsScrollAnimation;var Z=_.yM("div");N=_.D(_.b$(!0,void 0,"aUEsOc"));var U=N.next().value,C=N.next().value;N=_.D(_.b$(!1,void 0,"V0aKld"));var F=N.next().value,g=N.next().value,B=!1,c=0;_.lf(function(){C(b());g(z())});
N=_.D(_.Gb(function(){var J={};return t().autoselectedChipIndex!=null?(J[t().autoselectedChipIndex]=!0,J):{}}));
var u=N.next().value,S=N.next().value,b=function(){var J=Z.value;return J==null||J.scrollLeft-1<=0},z=function(){var J=Z.value;
return J==null?!1:J.scrollLeft+1>=(J==null?NaN:J.scrollWidth)-(J==null?NaN:J.clientWidth)},w=function(){return t().isHorizontallyScrollable},P=function(J){Z.value!=null&&(_.Ro("HTML_DIR")==="rtl"&&(J=-J),Z.value.scrollBy({left:J,
behavior:(A==null?0:A())?"instant":"smooth"}))},x=function(){P(-320)},l=function(){P(320)},I=_.Ui(function(J){B=!0;
c=J.clientX}),r=_.Ui(function(J){if(B){J=J.clientX;
var CN=J-c;c=J;var B4;(B4=Z.value)==null||B4.scrollBy({left:-CN})}}),E=_.Ui(function(){var J=b(),CN=z();
J!==U()&&C(J);CN!==F()&&g(CN)});
_.$6("pointerup",function(){B&&(B=!1)});
return _.d("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.d(_.f_,{contentId:function(){return t().contentId},
useModernStyle:!0},function(){var J={},CN={};return _.d("div",null,_.d(_.y,{cond:function(){return t().title},
then:function(){return _.d("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.d("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return t().title}),_.d(_.iF,{data:function(){return t().overflowButton}},{buttonViewModel:_.Pu}))}}),_.d("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.d(_.y,{cond:function(){return t().previousButton},
then:function(){var B4={};return _.d("div",{class:_.V7("ytChipsShelfViewModelLeftArrowContainer",(B4.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return U()},B4))},_.d(_.iF,{data:function(){return t().previousButton}},{buttonViewModel:function(zM){return _.d(_.Pu,{data:zM.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:x})}}))}}),_.d("div",{el:Z,
"on:pointerdown":I,"on:pointermove":r,"on:scroll":E,class:_.V7("ytChipsShelfViewModelChipsScrollContainer",(J.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=w,J))},_.d("div",{class:_.V7("ytChipsShelfViewModelChipsContainer",(CN.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=w,CN.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,CN)),role:"tablist"},_.d(_.iF,{data:function(){return t().contents}},{chipViewModel:function(B4,zM){return _.d("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.d(_.xJS,{data:B4.data,
callback:function(jy,c4){var XO=zM(),kx,fN=(kx=H==null?void 0:H())!=null?kx:0;fN===1||fN===2?(kx={},S((kx[XO]=c4,kx))):(kx={},S(Object.assign({},u(),(kx[XO]=c4,kx))));O==null||O(jy,c4,XO)},
disableDeselection:function(){return(H==null?void 0:H())===1},
selected:function(){return!!u()[zM()]}}))}}))),_.d(_.y,{cond:function(){return t().nextButton},
then:function(){var B4={};return _.d("div",{class:_.V7("ytChipsShelfViewModelRightArrowContainer",(B4.ytChipsShelfViewModelRightArrowContainerIsHidden=F,B4))},_.d(_.iF,{data:function(){return t().nextButton}},{buttonViewModel:function(zM){return _.d(_.Pu,{data:zM.data,
className:"ytChipsShelfViewModelRightArrow",onClick:l})}}))}})))}))},"Qc");
_.GA.idomCompat={callbacks:{callback:!0}};var k_u=_.q(function(N){var t=N.data;var O=N.showChips;var H=N.isUpdateInProgress;var A=function(){return O()&&!H()};
N={};return _.d("ytd-ai-response-box-view-model",{class:_.V7("ytdAiResponseBoxViewModelHost")},_.d("div",{class:_.V7("ytdAiResponseBoxViewModelResponseMessageContainer",(N.ytdAiResponseBoxViewModelResponseMessageContainerHidden=A,N))},_.d(_.y,{cond:H,then:function(){return _.d("div",null,_.d(_.cu,{text:function(){return t().responsePendingMessage}}))},
else:function(){return _.d(_.BZ,null,_.d(_.y,{cond:function(){var Z;return(Z=t().responseMessageIcon)==null?void 0:Z.iconType},
then:function(Z){return _.d("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.d(_.dq,{icon:Z}))}}),_.d("div",null,_.d(_.cu,{text:function(){return t().responseMessage}})))}})),_.d(_.iF,{data:function(){return t().chipsShelf}},{chipsShelfViewModel:function(Z){Z=Z.data;
var U={};return _.d("div",{class:_.V7("ytdAiResponseBoxViewModelChipsShelfContainer",(U.ytdAiResponseBoxViewModelChipsShelfContainerShown=A,U))},_.d(_.GA,{data:Z}))}}))},"Rc");var qcE;qcE=Object.assign({},{continuation:RdS,download:rN_,canvas:PWp,reportChannelAbuse:tZa,ui:x3M,share:Oju,talkToRecs:ZjB,watch:F9,ypc:Fir,radioButtonGroup:wR9,collabInviteLink:adp},GAZ,{voiceSearch:fdM,shorts:KZ});_.RS=zI(qcE);_.fWa=YV(_.RS);_.nUp=(0,_.fWa)(_.RS.talkToRecs,{talkToRecsStateSelector:function(N){return N}});_.o_(_.q(function(N){var t=_.D((0,_.HIZ)(N.data)).next().value,O=_.D(qQv()),H=O.next().value;O=O.next().value;var A=_.cH(_.nUp.talkToRecsStateSelector),Z=_.D(_.Gb(function(){var l,I,r;return(r=(I=IRp(t(),A()))!=null?I:(l=t().textInputValue)==null?void 0:l.content)!=null?r:""})),U=Z.next().value,C=Z.next().value;
Z=_.D(_.b$(!1,void 0,"c7rlLe"));var F=Z.next().value,g=Z.next().value;Z=_.D(_.b$(!1,void 0,"jmnkf"));var B=Z.next().value,c=Z.next().value;_.Q8(function(){var l=t().onVisible;l&&_.xJ(l,{})});
var u=_.Ui(function(){g(!0)});
_.rp(function(){t()&&(g(!1),c(!1))},"Aq2H4e");
var S=function(l){var I=t().onUpdateText;I&&_.xJ(I,{form:{userQuery:l}})},b=_.Tj(function(l){S(l)},150),z=_.Ui(function(l){l=l.target.value.trim();
C(l);b(l);return!1});
_.rp(function(){var l=IRp(t(),A());l&&l!==U()&&C(l)},"jerE");
var w=function(){c(!0)},P=_.Ui(function(l){if(l.key==="Enter"){S(l.target.value.trim());
var I=_.M(t().submitButton,_.$9);l=void 0;var r;if(I==null?0:(r=I.loggingDirectives)==null?0:r.trackingParams)l=_.ib(I.loggingDirectives.trackingParams);if(r=I==null?void 0:I.onTap)_.xJ(r,{clickedVisualElement:l}),w()}return!1}),x=_.Ui(function(){H("yt-feed-customization-scroll-up")});
return _.d("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost",el:_.E4(O)},_.d(_.y,{cond:function(){var l,I;return!((I=(l=N.isCollapsed)==null?void 0:l.call(N))!=null&&I)},
then:function(){return _.d("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.d("div",{class:"ytdFeedCustomizationFormViewModelInputContainer"},_.d("input",{class:"ytdFeedCustomizationFormViewModelInput",type:"text",placeholder:function(){var l;return(l=t().textInputPlaceholder)==null?void 0:l.content},
"prop:value":U,"on:focus":u,"on:input":z,"on:keyup":P,maxlength:250}),_.d(_.y,{cond:function(){return!!U()},
then:function(){return _.d(_.iF,{data:function(){return t().clearButton}},{buttonViewModel:function(l){return _.d("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.d(_.Pu,{data:l.data}))}})}}),_.d(_.y,{cond:function(){return B()},
then:function(){return _.d(_.iF,{data:function(){return t().inProgressButton}},{buttonViewModel:function(l){return _.d("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.d(_.Pu,{data:l.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.d(_.iF,{data:function(){return t().submitButton}},{buttonViewModel:function(l){return _.d("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.d(_.Pu,{data:l.data,
onClick:w}))}})}}),_.d(_.iF,{data:function(){return t().menuButton}},{buttonViewModel:function(l){return _.d("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.d(_.Pu,{data:l.data}))}})),_.d(_.iF,{data:function(){return t().contents}},{aiResponseBoxViewModel:function(l){return _.d("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.d(k_u,{data:l.data,
showChips:F,isUpdateInProgress:B}))}}))},
else:function(){return _.d("div",{class:"ytdFeedCustomizationFormViewModelCollapsedBodyContainer","on:click":x},_.d("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var l;return U()||((l=t().textInputPlaceholder)==null?void 0:l.content)}))}}))},"Uc"),"ytd-feed-customization-form-view-model",{props:{data:_.$O,
isCollapsed:_.$O}});var WfZ=_.Wz.persistentPanelVisibleSelector,vk=function(){var N=_.k.apply(this,arguments)||this;N.isDarkTheme=!1;N.notSticky=!1;N.transparentBackground=!1;N.shouldHide=!1;N.disableSticky=!1;N.fluidWidth=!1;N.isClipList=!1;N.defaultChipIndex=0;N.hasSelectedChipContent=!1;N.collapseFeedCustomizationForm=!1;N.isPlaylist=!1;N.playlistVotingAnimationEnabled=_.h("web_enable_voting_animation");N.toolbarHeight=0;N.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(vk,_.k);_.V=vk.prototype;
_.V.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model",properties:{isCollapsed:"[[collapseFeedCustomizationForm]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.V.attached=function(){var N=this;document.addEventListener("scroll",_.Fb(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var t;this.toolbarHeight=((t=document.querySelector("ytd-masthead"))==null?void 0:t.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(O){N.handleIntersect(O)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){N.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.V.detached=function(){var N;(N=this.intersectionObserver)==null||N.disconnect();var t;(t=this.resizeObserver)==null||t.disconnect();document.removeEventListener("scroll",_.Fb(this,this.updateChipBarWidthAndTop))};
_.V.dataChanged=function(){var N=this,t,O,H;((H=_.M((t=this.data)==null?void 0:(O=t.contents)==null?void 0:O[0],BOf))==null?void 0:H.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var A=this.findSelectedChipIndex();this.selectedIndex!==A&&(this.selectedIndex=-1);_.yB(this,function(){N.selectedIndex=A;N.updateSelectedChipContent(N.selectedIndex);N.updating=!1;N.ytScrollableChipCloudBehavior.reset()})};
_.V.findSelectedChipIndex=function(){var N;if((N=this.data)==null||!N.contents)return 0;N=this.data.contents;for(var t=0;t<N.length;t++){var O=void 0;if((O=_.M(N[t],BOf))==null?0:O.isSelected)return t}return 0};
_.V.computeStyle=function(N){return N};
_.V.handleChipCloudChipSelectAction=function(N){N=this.JSC$16377_chipsSelector.indexOf(N);N>-1&&(this.JSC$16377_chipsSelector.selectIndex(N),this.updateSelectedChipContent(N))};
_.V.updateSelectedChipContent=function(N){var t;if((t=this.data)==null||!t.contents||N<0||N>=this.data.contents.length)this.selectedChipContent=void 0;else{var O;this.selectedChipContent=(O=_.M(this.data.contents[N],BOf))==null?void 0:O.content}};
_.V.handleChipCloudChipDeselectAction=function(){if(_.h("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var N,t,O,H=(O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],BOf))==null?void 0:O.navigationEndpoint;H&&_.sl(this.hostElement,"yt-browse-section-list-reload-endpoint",[H]);this.JSC$16377_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.V.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.V.updateDynamicHeight=function(){var N=this;this.hasSelectedChipContent&&!this.notSticky?_.yB(this,function(){var t=_.O6(N.hostElement).querySelector("#chips-wrapper");t&&_.CO(N.hostElement,{"--ytd-chips-bar-dynamic-height":t.clientHeight+"px"})}):_.CO(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.V.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.V.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.V.onResize=function(){this.updateLayout()};
_.V.updateLayout=function(){var N=this.ytScrollableChipCloudBehavior;_.yB(N,N.setContainerWidthDiff);N=this.ytScrollableChipCloudBehavior;_.yB(N,N.setButtonsState)};
_.V.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.V.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.V.handleIntersect=function(N){this.notSticky=this.isChannelPageGrid||this.disableSticky||N[0].intersectionRatio===1};
_.V.updateDimensions=function(){var N=this.ytRendererBehavior.parentComponent;if(N){var t,O=(t=N.headerElement)!=null?t:N;_.CO(this.hostElement,{"--ytd-rich-grid-chips-bar-width":O.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.V.updateSelectedIndexFromBinding=function(N){this.selectedIndex=N.detail.value};
_.V.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var N;(N=this.sortFilterHeaderRendererElement)==null||N.setAttribute("is-playlist-page-with-filters","")}};
_.V.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Cmy(!this.notSticky))};
_.cv.Object.defineProperties(vk.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.data)==null?void 0:(t=N.contents)==null?void 0:t.find(function(H){return _.M(H,usZ)});
return{sortFilterHeaderRenderer:_.M(O,usZ)}}}});
vk.prototype.dispatchChipBarIsSticky=vk.prototype.dispatchChipBarIsSticky;vk.prototype.isPlaylistPageChanged=vk.prototype.isPlaylistPageChanged;vk.prototype.updateChipBarWidthAndTop=vk.prototype.updateChipBarWidthAndTop;vk.prototype.onResize=vk.prototype.onResize;vk.prototype.onPersistentPanelVisibleChanged=vk.prototype.onPersistentPanelVisibleChanged;vk.prototype.onGuideIsExpandedChanged=vk.prototype.onGuideIsExpandedChanged;vk.prototype.updateDynamicHeight=vk.prototype.updateDynamicHeight;
vk.prototype.onSelectedChipContentChanged=vk.prototype.onSelectedChipContentChanged;vk.prototype.dataChanged=vk.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],vk.prototype,"actionHandlerBehavior",void 0);
_.W([_.Y(_.JV),_.Q("design:type",Object)],vk.prototype,"ironResizableBehavior",void 0);_.W([_.Y(),_.Q("design:type",QJ)],vk.prototype,"ytScrollableChipCloudBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],vk.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vk.prototype,"data",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],vk.prototype,"selectedIndex",void 0);_.W([_.X({value:320}),_.Q("design:type",Number)],vk.prototype,"scrollDistance",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"isDarkTheme",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"notSticky",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"transparentBackground",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Q("design:type",String)],vk.prototype,"componentStyle",void 0);
_.W([_.X({selector:_.puv}),_.Q("design:type",Boolean)],vk.prototype,"guideIsExpanded",void 0);_.W([_.X({selector:WfZ}),_.Q("design:type",Boolean)],vk.prototype,"persistentPanelVisible",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"shouldHide",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"disableSticky",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"fluidWidth",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"isClipList",void 0);_.W([_.X(),_.Q("design:type",Object)],vk.prototype,"defaultChipIndex",void 0);_.W([_.X(),_.Q("design:type",Object)],vk.prototype,"selectedChipContent",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"hasSelectedChipContent",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"collapseFeedCustomizationForm",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vk.prototype,"isPlaylist",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],vk.prototype,"playlistVotingAnimationEnabled",void 0);_.W([_.B2("#chips"),_.Q("design:type",Object)],vk.prototype,"JSC$16377_chipsSelector",void 0);_.W([_.B2("ytd-sort-filter-header-renderer"),_.Q("design:type",HTMLElement)],vk.prototype,"sortFilterHeaderRendererElement",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],vk.prototype,"updating",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"dataChanged",null);_.W([_.gz("selectedChipContent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"onSelectedChipContentChanged",null);
_.W([_.gz("hasSelectedChipContent","notSticky"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"updateDynamicHeight",null);_.W([_.gz("guideIsExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"onGuideIsExpandedChanged",null);_.W([_.gz("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"onPersistentPanelVisibleChanged",null);
_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"onResize",null);_.W([_.ic("isChannelPageGrid","disableSticky","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"updateChipBarWidthAndTop",null);_.W([_.a("componentStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],vk.prototype,"isChannelPageGrid",null);
_.W([_.a("componentStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],vk.prototype,"isHashtagLandingPage",null);_.W([_.gz("isPlaylistPage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"isPlaylistPageChanged",null);_.W([_.a("componentStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],vk.prototype,"isPlaylistPage",null);
_.W([_.a("componentStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],vk.prototype,"isDisableDeselectEvent",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],vk.prototype,"sortFilterHeaderRendererData",null);_.W([_.X({reflectToAttribute:!0,selector:_.etx}),_.Q("design:type",String)],vk.prototype,"frostedGlassMode",void 0);
_.W([_.gz("notSticky"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vk.prototype,"dispatchChipBarIsSticky",null);_.W([_.en({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],vk);
_.n(vk,"ytd-feed-filter-chip-bar-renderer",function(){if(Tlu!==void 0)return Tlu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Tlu=N},{mode:1});var rsp;var IWY=_.q(function(N){var t=N.data;var O=N.buttonIndex;var H=N.selectedIndex;var A=N.onSelect;var Z=function(){return O()===H()},U=function(){var C,F;
return(F=(C=t().text)==null?void 0:C.content)!=null?F:""};
N=_.xxv();return _.d("yt-toggleable-image-button-view-model",{class:function(){var C={};C=(C.toggleableImageButtonViewModelHost=!0,C[""]=!0,C.toggleableImageButtonViewModelSemiTransparent=H()!==-1&&!Z(),C);return _.Lx(C)},
tabindex:0,"aria-label":U,"aria-pressed":Z,role:"button","on:keydown":N,"on:click":_.Ui(function(){A(t().onSubmitCommand);return!1})},_.d(_.y,{cond:function(){return t().logo},
then:function(C){return _.d(_.Qt,{data:C,className:function(){var F={};F=(F.toggleableImageButtonViewModelImage=!0,F.toggleableImageButtonViewModelCircularRadius=!(!t().backgroundColor||!t().backgroundColorDarkMode),F.toggleableImageButtonViewModelGradientRing=!!(Z()&&t().backgroundColor&&t().backgroundColorDarkMode),F);return _.Lx(F)},
alt:U,useWidth:!1,style:function(){if(Z()&&t().backgroundColor&&t().backgroundColorDarkMode){var F=wY(Number(t().backgroundColorDarkMode),"1");var g=wY(Number(t().backgroundColor),"1");F="background: linear-gradient(180deg,"+F+","+g+") border-box;"}else F="";return F}})}}),_.d(_.aw,{model:{borderRadius:"16px"}}),_.d("p",{class:function(){var C={};
C=(C.toggleableImageButtonViewModelLabel=!0,C.toggleableImageButtonViewModelBoldText=Z(),C);return _.Lx(C)}},_.d(_.cu,{text:function(){return t().text}})))},"Vc");
IWY.idomCompat=!0;var QzY=_.q(function(N){var t=N.data;N=_.D(_.b$({index:-1,command:{}},void 0,"GM3umb"));var O=N.next().value,H=N.next().value;return _.d("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.d("div",{class:"nudgeFormViewModelFormOptions"},_.d(_.iF,{data:function(){return t().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(A,Z){return _.d(IWY,{data:A.data,buttonIndex:Z,selectedIndex:function(){return O().index},
onSelect:function(U){H({index:Z(),command:U})}})}})),_.d(_.cu,{text:function(){return t().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.d("div",{class:"nudgeFormViewModelSubmit"},_.d(_.iF,{data:function(){return t().submitButton}},{buttonViewModel:function(A){return _.d(lWR,{data:A.data,
isDisabled:function(){return O().index===-1},
onClick:function(){_.xJ(O().command)}})}})))},"Wc");
QzY.idomCompat=!0;var lWR=_.q(function(N){var t=_.aa(function(){return Object.assign({},N.data(),{state:N.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.d(_.Pu,{data:t,onClick:N.onClick})},"Xc");_.o_(QzY,"yt-nudge-form-view-model",{props:{data:_.$O}});var JN=function(){var N=_.k.apply(this,arguments)||this;N.roundedContainer=!0;N.buttonUpdate=_.h("web_modern_buttons");N.isDarkMode=!1;N.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return N};
_.p(JN,_.k);_.V=JN.prototype;_.V.computeNudgeStyle=function(N){return N?"modernized-nudge":""};
_.V.handleDarkModeToggledAction=function(N){this.isDarkMode=N};
_.V.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.V.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.V.computeIsHorizontalButtons=function(N){return N?!!N.applyModernizedStyle&&!!N.enableHorizontalButtons&&!!N.secondaryButton:!1};
_.cv.Object.defineProperties(JN.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=(N=this.data)==null?void 0:N.backgroundStyle)!=null?t:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=(N=this.data)==null?void 0:N.contentsLocation)!=null?t:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.lightIconImage)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],JN.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],JN.prototype,"actionHandlerBehavior",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("isHideEnclosingAction"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],JN.prototype,"isHidden",null);_.W([_.X(),_.Q("design:type",Object)],JN.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JN.prototype,"roundedContainer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JN.prototype,"buttonUpdate",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Q("design:type",String)],JN.prototype,"nudgeStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.trimStyle"),_.Q("design:type",String),_.Q("design:paramtypes",[])],JN.prototype,"trimStyle",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.backgroundStyle"),_.Q("design:type",String),_.Q("design:paramtypes",[])],JN.prototype,"backgroundStyle",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.contentsLocation"),_.Q("design:type",String),_.Q("design:paramtypes",[])],JN.prototype,"contentsLocation",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.disableDropShadow"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],JN.prototype,"noShadow",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.lightIconImage"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],JN.prototype,"noIcon",null);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Q("design:type",Boolean)],JN.prototype,"isHorizontalButtons",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Object)],JN.prototype,"isDarkMode",void 0);_.W([_.en({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],JN);
_.n(JN,"ytd-feed-nudge-renderer",function(){if(rsp!==void 0)return rsp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rsp=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var mJS;var EUZ;var oS=function(){var N=_.k.apply(this,arguments)||this;N.collapsed=!1;N.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return N};
_.p(oS,_.k);oS.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"}}}};
oS.prototype.handleRatingSelect=function(){var N;((N=this.data)==null?0:N.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
oS.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],oS.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],oS.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Kc),_.Q("design:type",Object)],oS.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oS.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],oS.prototype,"collapsed",void 0);_.W([_.en({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],oS);
_.n(oS,"ytd-slimline-survey-renderer",function(){if(EUZ!==void 0)return EUZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return EUZ=N},{mode:1});var G_f;var sJ=function(){return _.k.apply(this,arguments)||this};
_.p(sJ,_.k);sJ.prototype.maybeGetBackgroundColor=function(N){return this.isDarkMode?N.section2Color:N.section3Color};
sJ.prototype.colorPaletteChanged=function(){var N=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;N&&(N==null?0:N.secondaryTitleColor)&&this.maybeGetBackgroundColor(N)?(this.hostElement.style.backgroundColor=_.aI(this.maybeGetBackgroundColor(N)),this.hostElement.style.color=_.aI(N.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
sJ.prototype.colorPaletteChanged=sJ.prototype.colorPaletteChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],sJ.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sJ.prototype,"data",void 0);_.W([_.X({selector:function(N){return N.ui.darkModeIsEnabled}}),
_.Q("design:type",Boolean)],sJ.prototype,"isDarkMode",void 0);_.W([_.X(),_.Q("design:type",Object)],sJ.prototype,"lightColorPalette",void 0);_.W([_.X(),_.Q("design:type",Object)],sJ.prototype,"darkColorPalette",void 0);_.W([_.gz("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sJ.prototype,"colorPaletteChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],sJ);
_.n(sJ,"ytd-endorsement-header-renderer",function(){if(G_f!==void 0)return G_f;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return G_f=N},{mode:1});_.o_(_.Us,"yt-decorated-avatar-view-model",{props:{data:_.$O,className:_.$O}});_.NX=new _.dk("VIEW_TRANSITION_MANAGER_TOKEN");var t9=function(){var N=_.k.apply(this,arguments)||this;N.fullHeight=_.h("web_rich_grid_media_full_height");N.showChannelAvatar=!0;N.hasPlaylistThumbnail=!1;N.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};N.registerThumbnailForPageTransition=function(){_.h("web_thumbnail_to_watch_transition")&&_.RuR(_.cY().resolve(_.NX),N.thumbnail)};
return N};
_.p(t9,_.k);_.V=t9.prototype;
_.V.configureRendererStamper=function(){return{lazyLoadMenu:Ef,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.shouldLazyLoadMenu=function(){var N=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.h("kevlar_modern_downloads_page")||!N};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16401_inlinePreviewHoverListener=XF({mediaRenderer:this,lockupElement:this.JSC$16401_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.V.getVideoPreviewOpts=function(){var N={},t;if((t=this.data)==null?0:t.multipleInlinePlaybackEndpoint)N=as0;this.isRadio&&(N=Yzy);return N};
_.V.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$16401_inlinePreviewHoverListener)==null||RE(N)};
_.V.getOwner=function(){var N,t,O;return((N=this.data)==null?void 0:(t=N.channelThumbnailSupportedRenderers)==null?void 0:t.channelThumbnailWithLinkRenderer)||_.M((O=this.data)==null?void 0:O.showProviderChannelThumbnail,yAY)};
_.V.updateLockupSize=function(){var N;((N=this.getOwner())==null?0:N.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.V.getFeedbackEndpoint=function(N){if(_.M(N,_.wP))return N;var t,O;N=(O=(t=_.M(N,_.Ab))==null?void 0:t.commands)!=null?O:[];t=_.D(N);for(O=t.next();!O.done;O=t.next())if(O=this.getFeedbackEndpoint(O.value))return O;return null};
_.V.computeNavigationEndpoint=function(N){return wsg(N==null?void 0:N.navigationEndpoint)};
_.V.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var N=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(N)!==JSON.stringify(this.data)&&this.set("data",N)}};
_.V.onDataChanged=function(){var N=this,t=this.getOwner();if(t){this.set("data.owner",t);var O,H,A,Z,U,C=((O=this.data)==null?void 0:(H=O.shortBylineText)==null?void 0:(A=H.runs)==null?void 0:(Z=A[0])==null?void 0:Z.text)||((U=t.name)==null?void 0:U.simpleText);this.set("data.owner.title",C)}var F,g,B,c,u,S;t=((F=this.data)==null?void 0:(g=F.thumbnailRenderer)==null?void 0:g.playlistVideoThumbnailRenderer)||((B=this.data)==null?void 0:(c=B.thumbnailRenderer)==null?void 0:c.playlistCustomThumbnailRenderer)||
((u=this.data)==null?void 0:(S=u.thumbnailRenderer)==null?void 0:S.showCustomThumbnailRenderer);var b;((b=this.data)==null?0:b.thumbnail)||!t||this.set("data.thumbnail",t.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){N.updateLockupSize()});
var z;if(F=((z=this.data)==null?void 0:z.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(F);var w;((w=this.dismissActionToReplayEntity)==null?0:w.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.V.onHiddenChanged=function(){this.updateLockupSize()};
_.V.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.sl(this.hostElement,"yt-terminate-video-preview-action");else{var N;(N=this.videoTitleLink)==null||N.focus()}};
_.V.metadataColorChanged=function(){var N;if(this.metadataColor&&((N=this.videoTitle)==null?0:N.style))this.videoTitle.style.color=_.aI(this.metadataColor);else{var t,O;!this.metadataColor&&((t=this.videoTitle)==null?0:(O=t.style)==null?0:O.color)&&(this.videoTitle.style.color="")}};
_.V.onDetailsClick=function(N){var t=this.computedNavigationEndpoint;t&&(_.RM(_.m1(N),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.or(this.hostElement,"yt-navigate",{endpoint:t}))};
_.V.onRendererTap=function(){this.registerThumbnailForPageTransition();var N,t,O=((N=this.data)==null?void 0:N.serviceEndpoint)||this.getFeedbackEndpoint((t=this.data)==null?void 0:t.navigationEndpoint);O&&_.M(O,_.wP)&&this.ytComponentBehavior.resolveCommand(O)};
_.V.onMouseDown=function(N){var t=N.target,O=this.computedNavigationEndpoint,H;N=t.href||((H=_.M(O==null?void 0:O.commandMetadata,_.Da))==null?void 0:H.url);H=t.data||O;N&&H&&b39(N,H)};
_.V.computeVideoTitleText=function(){var N;if((N=this.data)==null?0:N.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.V.computeHasPlaylistThumbnail=function(N){var t,O,H,A,Z;if((((t=N.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((O=N.thumbnailRenderer)==null?0:O.playlistCustomThumbnailRenderer)||((H=N.thumbnailRenderer)==null?0:H.showCustomThumbnailRenderer)||((A=N.thumbnailRenderer)==null?0:A.playlistVideoThumbnailRenderer)||((Z=N.thumbnailRenderer)==null?0:Z.playlistCustomThumbnailRenderer))&&N.thumbnailOverlays)for(t=0;t<N.thumbnailOverlays.length;t++)if(O=void 0,(O=N.thumbnailOverlays[t])==
null?0:O.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.cv.Object.defineProperties(t9.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.h("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var N;return(N=this.data)==null?void 0:N.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var N;return(N=this.data)==null?void 0:N.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$16401_inlinePreviewHoverListener)==null?0:dV(N))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.opy(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:N.videoId)||((t=this.data)==null?void 0:t.playlistId)||""}}});
t9.prototype.onMouseDown=t9.prototype.onMouseDown;t9.prototype.metadataColorChanged=t9.prototype.metadataColorChanged;t9.prototype.onIsDismissedChanged=t9.prototype.onIsDismissedChanged;t9.prototype.onHiddenChanged=t9.prototype.onHiddenChanged;t9.prototype.onDataChanged=t9.prototype.onDataChanged;t9.prototype.handleReloadDownloadsInfo=t9.prototype.handleReloadDownloadsInfo;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],t9.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],t9.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],t9.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],t9.prototype,"ytdReduxBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],t9.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],t9.prototype,"entitySelectorType",void 0);_.W([_.X(),_.Q("design:type",Boolean)],t9.prototype,"noEndpoints",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],t9.prototype,"isRadio",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],t9.prototype,"miniMode",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],t9.prototype,"fullHeight",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],t9.prototype,"showDarkVideoMetadata",void 0);_.W([_.X(),_.Q("design:type",Boolean)],t9.prototype,"showLightVideoMetadata",void 0);_.W([_.X(),_.Q("design:type",Number)],t9.prototype,"metadataColor",void 0);_.W([_.X(),_.Q("design:type",Object)],t9.prototype,"showChannelAvatar",void 0);_.W([_.X(),_.Q("design:type",Boolean)],t9.prototype,"hidden",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],t9.prototype,"showYtInteraction",void 0);
_.W([_.X(),_.Q("design:type",String)],t9.prototype,"dismissedContentId",void 0);_.W([_.X({selectorArgs:["dismissedContentId"],selector:AWO}),_.Q("design:type",Object)],t9.prototype,"dismissActionToReplayEntity",void 0);
_.W([_.X({selectorArgs:["entitySelectorType","mediaId"],selector:function(N,t,O){if(_.h("kevlar_modern_downloads_page")&&O&&t&&t!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(t){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var H=k6S(N,O);if(H){t=_.Xo(N,O);var A=qE(N,O),Z=RtO(N,O);N=fM(N,O);var U=Yay(H,t,A,Z);A=U.shortViewCountText;var C=U.publishedTimeText;U=U.badges;var F=N>0;Z=LSp(H,t,Z,N);H=_.i5(t)||t==="TRANSFER_STATE_FAILED"||t==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!jD(H.policyEntity)?
void 0:ahx(O,N,H.videoEntity.lengthSeconds);t==="TRANSFER_STATE_PAUSED_BY_USER"&&O&&!_.h("dl_resume_click_killswitch")&&(H={offlineVideoEndpoint:{videoId:O,action:"ACTION_RESUME"}});O={shortViewCountText:A,publishedTimeText:C,badges:U,isWatched:F,navigationEndpoint:H,thumbnailOverlays:Z}}else O=void 0;return O;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(t=qox(N,O))if(H=_.xj(N,O),Z=_.fTN(N,O),H!=="TRANSFER_STATE_UNKNOWN"){O=zHg(t,H,Z,O,_.P5(N));break a}O=void 0}return O;default:_.J_(new _.fF("Error: entitySelectorType defined but not matched in selector.",
N,t))}}}),
_.Q("design:type",Object)],t9.prototype,"entityDrivenState",void 0);_.W([_.X({computed:"computeVideoTitleText(data)"}),_.Q("design:type",Object)],t9.prototype,"videoTitleText",void 0);_.W([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.Q("design:type",Object)],t9.prototype,"hasPlaylistThumbnail",void 0);_.W([_.X({computed:"computeNavigationEndpoint(data)"}),_.Q("design:type",Object)],t9.prototype,"computedNavigationEndpoint",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],t9.prototype,"typographyBump",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("typographyBump"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t9.prototype,"typographyBumpV2",null);_.W([_.B2("#video-title"),_.Q("design:type",HTMLElement)],t9.prototype,"videoTitle",void 0);_.W([_.B2("#video-title-link"),_.Q("design:type",HTMLElement)],t9.prototype,"videoTitleLink",void 0);
_.W([_.B2("#thumbnail"),_.Q("design:type",HTMLElement)],t9.prototype,"thumbnail",void 0);_.W([_.B2("#dismissible"),_.Q("design:type",HTMLElement)],t9.prototype,"JSC$16401_dismissibleMedia",void 0);_.W([_.a("data.menu"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],t9.prototype,"lazyLoadMenu",null);_.W([_.a("data.menu"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],t9.prototype,"immediateLoadMenu",null);
_.W([_.ic("entityDrivenState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t9.prototype,"handleReloadDownloadsInfo",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t9.prototype,"onDataChanged",null);_.W([_.ic("hidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t9.prototype,"onHiddenChanged",null);
_.W([_.gz("isDismissed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t9.prototype,"onIsDismissedChanged",null);_.W([_.gz("metadataColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],t9.prototype,"metadataColorChanged",null);_.W([_.dz("mousedown"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],t9.prototype,"onMouseDown",null);
_.W([_.a("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t9.prototype,"isHovered",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],t9.prototype,"useAvatar",null);_.W([_.a("data","entitySelectorType"),_.Q("design:type",String),_.Q("design:paramtypes",[])],t9.prototype,"mediaId",null);_.W([_.en({is:"ytd-rich-grid-media",disableElementRegistration:!0})],t9);
var vUY=_.td()(t9,"ytd-rich-grid-media",function(){if(mJS!==void 0)return mJS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return mJS=N},{mode:_.O4("kevlar_poly_si_batch_j072")?1:2});var Jsr;var OR=function(){var N=_.k.apply(this,arguments)||this;N.removeMaxWidth=!0;N.insetMetadata=!1;return N};
_.p(OR,_.k);_.V=OR.prototype;_.V.configureRendererStamper=function(){return{innerMenu:Ef,outerMenu:Object.assign({},Ef,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onDataChanged=function(){var N,t=((N=this.data)==null?void 0:N.trackingParams)||"";t&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(t));var O;((O=this.dismissActionToReplayEntity)==null?0:O.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16406_inlinePreviewHoverListener=XF({mediaRenderer:this,lockupElement:this.JSC$16406_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Twy})};
_.V.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$16406_inlinePreviewHoverListener)==null||RE(N)};
_.V.onRendererTap=function(){var N,t,O=(N=this.data)==null?void 0:(t=N.serviceEndpoints)==null?void 0:t[0];_.M(O,_.wP)&&this.componentBehavior.resolveCommand(O)};
_.V.onDetailsClick=function(N){var t,O=(t=this.data)==null?void 0:t.navigationEndpoint;O&&(_.RM(_.m1(N),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(O))};
_.V.onShow=function(){var N=this.data;N.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(N.onFirstVisibleCommand),delete N.onFirstVisibleCommand)};
_.cv.Object.defineProperties(OR.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var N;return this.insetMetadata?void 0:(N=this.data)==null?void 0:N.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var N;return this.insetMetadata?(N=this.data)==null?void 0:N.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var N=this.data;if(N!=null&&N.badge&&(N=_.M(N.badge,U3R))){var t,O,H;return[{metadataBadgeRenderer:{label:((t=N.label)==null?void 0:(O=t.runs)==null?void 0:O[0].text)||((H=N.label)==null?void 0:H.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var N=this.data;return Object.assign({},N.headline,{accessibility:N.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return this.isSlimShort?(N=this.computedTitle)==null?void 0:(t=N.accessibility)==null?void 0:(O=t.accessibilityData)==null?void 0:O.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.h("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$16406_inlinePreviewHoverListener)==null?0:dV(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
OR.prototype.onDataChanged=OR.prototype.onDataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],OR.prototype,"componentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],OR.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Kc),_.Q("design:type",Object)],OR.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],OR.prototype,"ytdReduxBehavior",void 0);_.W([_.B2("ytd-thumbnail"),_.Q("design:type",HTMLElement)],OR.prototype,"thumbnail",void 0);_.W([_.B2("#dismissible"),_.Q("design:type",HTMLElement)],OR.prototype,"JSC$16406_dismissibleMedia",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],OR.prototype,"removeMaxWidth",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],OR.prototype,"insetMetadata",void 0);_.W([_.X(),_.Q("design:type",String)],OR.prototype,"dismissedContentId",void 0);_.W([_.X({selectorArgs:["dismissedContentId"],selector:AWO}),_.Q("design:type",Object)],OR.prototype,"dismissActionToReplayEntity",void 0);_.W([_.a("insetMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],OR.prototype,"thumbnailObjectFit",null);
_.W([_.a("data","insetMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],OR.prototype,"innerMenu",null);_.W([_.a("data","insetMetadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],OR.prototype,"outerMenu",null);_.W([_.X(),_.Q("design:type",Object)],OR.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],OR.prototype,"miniMode",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],OR.prototype,"onDataChanged",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],OR.prototype,"shortsBadges",null);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],OR.prototype,"isShort",null);
_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],OR.prototype,"isSlimShort",null);_.W([_.a("data","isShort"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],OR.prototype,"computedTitle",null);_.W([_.a("isSlimShort","computedTitle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],OR.prototype,"computedAccessibilityLabel",null);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],OR.prototype,"shouldForce2By3",null);_.W([_.a("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],OR.prototype,"isHovered",null);_.W([_.en({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],OR);
_.n(OR,"ytd-rich-grid-slim-media",function(){if(Jsr!==void 0)return Jsr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Jsr=N},{mode:_.O4("kevlar_poly_si_batch_j063")?1:2});var oUr;var szZ;var Hh=function(){return _.k.apply(this,arguments)||this};
_.p(Hh,_.k);Hh.prototype.computeIcon=function(N){return N&&N.iconType?"yt-sys-icons:"+N.iconType.toLowerCase():""};
Hh.prototype.onMouseEnter=function(){this.isHovered=!0};
Hh.prototype.onMouseLeave=function(){this.isHovered=!1};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Hh.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Hh.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Hh.prototype,"isHovered",void 0);
_.W([_.en({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Hh);
_.n(Hh,"ytd-expand-on-hover-card-renderer",function(){if(szZ!==void 0)return szZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return szZ=N},{mode:1});var NmR,t2B=function(){if(NmR!==void 0)return NmR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return NmR=N};_.pE("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var A9=function(){var N=_.k.apply(this,arguments)||this;N.compactStyle=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(A9,_.k);_.V=A9.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.computeHideDot=function(N){return!(N&&N.subscriberCountText&&N.videoCountText)||this.compactStyle};
_.V.hasDualButtons=function(N){return N&&N.purchaseButton&&N.subscribeButton};
_.V.backgroundColorChanged=function(){if(this.data!==void 0){var N=this.data.backgroundColor;this.isDarkTheme&&(N=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=N!=null?_.aI(N):"transparent"}};
_.V.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.V.onTap=function(N){var t,O,H=((t=this.data)==null?void 0:t.navigationEndpoint)||((O=this.data)==null?void 0:O.serviceEndpoint);_.M(H,_.mb)&&(H&&_.cY().resolve(_.jo).resolveCommand(H,{form:{element:this.hostElement}}),N.preventDefault())};
_.V.computeChannelEndpoint=function(N){return _.M(N,_.mb)?null:N};
_.V.computeHrefEndpoint=function(N){return _.M(N,_.mb)?null:this.componentBehavior.computeHref_(N)};
_.V.computeChannelRendererStyle=function(N){return N};
_.V.computeIconSize=function(N){return N?108:136};
_.cv.Object.defineProperties(A9,{template:{configurable:!0,enumerable:!0,get:function(){return t2B()}}});
A9.prototype.backgroundColorChanged=A9.prototype.backgroundColorChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],A9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],A9.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],A9.prototype,"componentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],A9.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],A9.prototype,"isDarkTheme",void 0);_.W([_.X({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Q("design:type",String)],A9.prototype,"channelRendererStyle",void 0);_.W([_.X({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],A9.prototype,"dualButtons",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],A9.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],A9.prototype,"biggerThumbStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],A9.prototype,"compactStyle",void 0);_.W([_.gz("data","isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],A9.prototype,"backgroundColorChanged",null);_.W([_.en({is:"ytd-channel-renderer",disableElementRegistration:!0})],A9);_.n(A9,"ytd-channel-renderer",function(){return t2B()},{mode:1});var OHp;var HHS;_.pE("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Zk=function(){var N=_.k.apply(this,arguments)||this;N.displayItemCount=2;N.hasPlaylistThumbnail=!1;N.stackThumbnailSize="large";return N};
_.p(Zk,_.k);_.V=Zk.prototype;_.V.attached=function(){this.updateInlinePreviewHoverListeners()};
_.V.detached=function(){this.clearInlinePreviewHoverListeners()};
_.V.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.V.computeFirstVideos=function(N,t){return N&&t?N.slice(0,t):[]};
_.V.computeThumbnailWidth=function(N,t){return N?t==="BIG"?500:t==="MASSIVE"?600:t==="MEDIUM"?450:420:360};
_.V.computeThumbnailHeight=function(N,t){return N?t==="BIG"?280:t==="MASSIVE"?337:234:202};
_.V.clearInlinePreviewHoverListeners=function(){var N;(N=this.JSC$16419_inlinePreviewHoverListener)==null||RE(N)};
_.V.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16419_inlinePreviewHoverListener=XF({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:as0,thumbnailElement:this.thumbnail})};
_.V.computeHasPlaylistThumbnail=function(N){var t,O;if((((t=N.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((O=N.thumbnailRenderer)==null?0:O.playlistCustomThumbnailRenderer))&&N.thumbnailOverlays)for(t=0;t<N.thumbnailOverlays.length;t++)if(O=void 0,(O=N.thumbnailOverlays[t])==null?0:O.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.cv.Object.defineProperties(Zk.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.JSC$16419_inlinePreviewHoverListener)==null?0:dV(N))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Zk.prototype.dataChanged=Zk.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],Zk.prototype,"ytdLockupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Zk.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Zk.prototype,"displayItemCount",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],Zk.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],Zk.prototype,"biggerThumbsStyle",void 0);_.W([_.X({computed:"computeHasPlaylistThumbnail(data)"}),_.Q("design:type",Object)],Zk.prototype,"hasPlaylistThumbnail",void 0);_.W([_.X(),_.Q("design:type",String)],Zk.prototype,"stackThumbnailSize",void 0);_.W([_.B2("ytd-thumbnail"),_.Q("design:type",HTMLElement)],Zk.prototype,"thumbnail",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zk.prototype,"dataChanged",null);
_.W([_.a("lockupIsHovered"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Zk.prototype,"isHovered",null);_.W([_.en({is:"ytd-radio-renderer",disableElementRegistration:!0})],Zk);
_.n(Zk,"ytd-radio-renderer",function(){if(HHS!==void 0)return HHS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return HHS=N},{mode:_.O4("kevlar_poly_si_batch_j058")?1:2});var AzZ;_.pE("itemSectionRenderer","showRenderer","ytd-show-renderer");var Vj=function(){return _.k.apply(this,arguments)||this};
_.p(Vj,_.k);Vj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Vj.prototype.computeThumbnailWidth=function(N){return N?360:246};
Vj.prototype.computeUseProminentThumbs=function(N){return N};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Vj.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Vj.prototype,"isSearch",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Q("design:type",Boolean)],Vj.prototype,"useProminentThumbs",void 0);_.W([_.en({is:"ytd-show-renderer",disableElementRegistration:!0})],Vj);
_.n(Vj,"ytd-show-renderer",function(){if(AzZ!==void 0)return AzZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return AzZ=N},{mode:1});_.pE("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Dk=function(){var N=_.k.apply(this,arguments)||this;N.isRichGrid=!1;return N};
_.p(Dk,_.k);Dk.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"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Dk.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Dk.prototype,"isRichGrid",void 0);_.W([_.en({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Dk);
_.n(Dk,"ytd-feed-entry-renderer",function(){if(OHp!==void 0)return OHp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return OHp=N},{mode:1});var ZHS;var UR=function(){return _.k.apply(this,arguments)||this};
_.p(UR,_.k);UR.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.W([_.Y(_.Ue),_.Q("design:type",Object)],UR.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],UR.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UR.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.Tv,value:3}),_.Q("design:type",Number)],UR.prototype,"itemsPerRow",void 0);
_.W([_.en({is:"ytd-link-card-renderer",disableElementRegistration:!0})],UR);
_.n(UR,"ytd-link-card-renderer",function(){if(ZHS!==void 0)return ZHS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ZHS=N},{mode:1});var V2_;var Cj=function(){return _.k.apply(this,arguments)||this};
_.p(Cj,_.k);_.V=Cj.prototype;_.V.configureRendererStamper=function(){return{"data.menu":Ef,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.V.onRendererTap=function(N){if(!this.ytdDismissibleItemBehavior.isDismissed){var t,O=(t=this.data)==null?void 0:t.navigationEndpoint;O&&!_.RM(_.m1(N),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(O)?_.RM(_.m1(N),this.hostElement,["A"])||_.or(this.hostElement,"yt-navigate",{endpoint:O}):this.ytComponentBehavior.resolveCommand(O,{}))}};
_.V.maybeComputeHref=function(N){return this.ytComponentBehavior.computeHref_(N,!0)};
_.V.getNavigationCommand=function(N){return this.isNavigationCommand(N)?N:null};
_.V.isNavigationCommand=function(N){return N?_.M(N,_.yE)||_.M(N,_.rN)||_.M(N,_.Z3)?!0:!1:!1};
Cj.prototype.onRendererTap=Cj.prototype.onRendererTap;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],Cj.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Cj.prototype,"ytComponentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Cj.prototype,"data",void 0);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Cj.prototype,"onRendererTap",null);_.W([_.en({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Cj);
_.n(Cj,"ytd-lumiere-promo-item-image-renderer",function(){if(V2_!==void 0)return V2_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return V2_=N},{mode:1});var DtQ;var Kj=function(){return _.k.apply(this,arguments)||this};
_.p(Kj,_.k);Kj.prototype.computeLandscapeThumbnail=function(){var N;return((N=this.data)==null?void 0:N.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Kj.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Kj.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],Kj.prototype,"miniMode",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.Tv}),_.Q("design:type",Number)],Kj.prototype,"itemsPerRow",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Q("design:type",Boolean)],Kj.prototype,"landscapeThumbnail",void 0);_.W([_.en({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Kj);
_.n(Kj,"ytd-lumiere-shelf-details-renderer",function(){if(DtQ!==void 0)return DtQ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return DtQ=N},{mode:_.O4("kevlar_poly_si_batch_j076")?1:2});var Uta;var Fv=function(){return _.k.apply(this,arguments)||this};
_.p(Fv,_.k);Fv.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Fv.prototype,"data",void 0);_.W([_.en({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Fv);
_.n(Fv,"ytd-primetime-promo-details-renderer",function(){if(Uta!==void 0)return Uta;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Uta=N},{mode:1});var Cxa;var d7=function(){return _.k.apply(this,arguments)||this};
_.p(d7,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],d7.prototype,"data",void 0);_.W([_.en({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],d7);
_.n(d7,"ytd-panel-show-style-metadata-renderer",function(){if(Cxa!==void 0)return Cxa;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Cxa=N},{mode:1});var Kt_;var g7=function(){return _.k.apply(this,arguments)||this};
_.p(g7,_.k);_.V=g7.prototype;_.V.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.V.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.V.computeThumbnail=function(N){if(N)return N.smallFormFactorBackgroundThumbnail||N.largeFormFactorBackgroundThumbnail};
_.V.maybeComputeHref=function(N){return this.ytComponentBehavior.computeHref_(N,!0)};
_.V.isNavigationCommand=function(N){return N?_.M(N,_.yE)||_.M(N,_.rN)||_.M(N,_.Z3)?!0:!1:!1};
_.V.getNavigationCommand=function(N){return this.isNavigationCommand(N)?N:null};
g7.prototype.onPanelTap=g7.prototype.onPanelTap;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],g7.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],g7.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],g7.prototype,"roundedContainer",void 0);_.W([_.X({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.Q("design:type",Boolean)],g7.prototype,"modernButtons",void 0);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],g7.prototype,"onPanelTap",null);_.W([_.en({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],g7);
_.n(g7,"ytd-primetime-promo-panel-renderer",function(){if(Kt_!==void 0)return Kt_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Kt_=N},{mode:1});_.o_(_.q(function(N){N=_.RH(N,{data:{},useFullWidth:!1});var t=N.data,O=N.useFullWidth;N={};return _.d("teaser-card-view-model",{class:_.V7("ytTeaserCardViewModelHost",(N.ytTeaserCardViewModelUseFullWidth=function(){return O()},N))},_.d(_.y,{cond:function(){return t().onTap},
then:function(H){return _.d(_.YO,{className:"ytTeaserCardViewModelLink",command:H},_.d("div",{class:"ytTeaserCardViewModelImageContainer"},_.d(_.y,{cond:function(){return t().image},
then:function(A){return _.d(_.Qt,{data:A,className:"ytTeaserCardViewModelImage",alt:""})}})),_.d("p",{class:"ytTeaserCardViewModelCaption"},function(){return t().caption}))}}))},"Yc"),"teaser-card-view-model",{props:{data:_.$O,
useFullWidth:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=function(){var H;return _.nx((H=t())==null?void 0:H.iconThemedImage)};
return _.d("yt-edu-card-view-model",null,_.d(_.f_,{contentId:function(){return t().nudgeId}},function(){return _.d("div",{class:_.V7("ytEduCardViewModelHost",function(){return t().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.d("div",{class:"ytEduCardViewModelTopCornerButton"},_.d(_.iF,{data:function(){return t().dismissButton}},{buttonViewModel:_.Pu})),_.d("div",{class:"ytEduCardViewModelContentWrapper"},_.d("div",{class:"ytEduCardViewModelHeaderImage"},_.d(_.y,
{cond:O,
then:function(H){return _.d(_.Qt,{data:H,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.d("div",{class:"ytEduCardViewModelTextContainer"},_.d("div",{class:"ytEduCardViewModelTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d("div",{class:"ytEduCardViewModelSubtitle"},_.d(_.cu,{text:function(){return t().subtitle}}))),_.d("div",{class:"ytEduCardViewModelContent"},_.d(_.iF,{data:function(){return t().form}},{nudgeFormViewModel:QzY}))),_.d("div",{class:_.V7("ytEduCardViewModelButtonWrapper",
function(){return t().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.d(_.iF,{data:function(){return t().primaryButton}},{buttonViewModel:function(H){return _.d("div",{class:"ytEduCardViewModelPrimaryButton"},_.d(_.Pu,{data:H.data}))}}),_.d(_.iF,{data:function(){return t().secondaryButton}},{buttonViewModel:function(H){return _.d("div",{class:"ytEduCardViewModelSecondaryButton"},_.d(_.Pu,{data:H.data}))}})))}))},"Zc"),"yt-edu-card-view-model",{props:{data:_.$O}});var FtB=new _.dk("RICH_GRID_VIDEO_RENDERER_TOKEN");_.o_(_.q(function(N){var t=N.data;var O=N.showYtInteractionInContent;var H=function(){return!!t().selectableFeedback};
N=_.D(_.b$(!1,void 0,"qxtgaf"));var A=N.next().value,Z=N.next().value;_.Q8(function(){var u=_.M(t().primaryButton,_.iA);(u==null?0:u.isToggled)&&Z(u.isToggled)});
N=_.Ui(function(u){if(!H())return!1;if(A()){var S;var b=(S=t().selectableFeedback)==null?void 0:S.onDeselect}else{var z;b=(z=t().selectableFeedback)==null?void 0:z.onSelect}b&&_.xJ(b,{form:{element:u.target}});Z(!A());if(u=_.M(t().primaryButton,_.iA))u.isToggled=A();return!1});
var U=function(){if(!H()){var u,S=(u=t().loggingDirectives)==null?void 0:u.trackingParams;S&&_.Q2(_.cY().resolve(_.ow),S)}},C=_.kwS(),F=function(){var u;
return H()?(u=t().selectableFeedback)==null?void 0:u.a11yLabel:void 0},g=function(){return H()?{toggled:A()}:{}},B=_.cY().resolve(_.BY(FtB)),c={};
return _.d("yt-feedback-item-renderer",{class:_.V7("ytFeedbackItemRendererHost",(c.ytFeedbackItemRendererSelectableFeedback=H,c)),"on:click":N,"on:keydown":C,title:F,"aria-label":F,"aria-pressed":function(){return H()?A():void 0},
tabindex:function(){return H()?0:void 0},
role:function(){return H()?"button":void 0}},_.d("div",{class:"ytFeedbackItemRendererContentContainer"},_.d(_.iF,{data:function(){return t().content}},{videoRenderer:function(u){return _.d(B,{data:u.data,
showYtInteraction:O})},
lockupViewModel:function(u){return _.d(_.IR,{data:u.data,containerType:2})}})),_.d("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.d(_.iF,{data:function(){return t().primaryButton}},{toggleButtonViewModel:function(u){return _.d(_.N3,{data:u.data,
buttonShapeOverrides:g,disableExplicitClickLogging:!0,onToggle:U})}})))},"$c"),"yt-feedback-item-renderer",{props:{data:_.$O,
showYtInteractionInContent:_.$O}});var yj=function(){var N=_.k.apply(this,arguments)||this;N.isShortsGrid=!1;N.isCompactGrid=!1;N.isShortsPanelGrid=!1;N.renderedFromRichGrid=!1;N.isInFirstColumn=!1;N.noGutterMargins=!1;N.noBottomMargin=!1;N.halfBottomMargin=!1;N.isInlineGroupItem=!1;N.insetMetadata=!1;N.noBottomMarginInAds=!0;N.force16By9ThumbnailAspectRatio=!1;N.useCompactList=!1;N.containerType=2;N.thumbnailTargetWidth=9999;N.isResponsiveGrid=!1;N.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};N.hoverListener=
N.hover.bind(N);N.leaveListener=N.leave.bind(N);N.highlighted=!1;N.JSC$16455_unsubscribeFromInlinePreviewIsActive=function(){};
return N};
_.p(yj,_.k);_.V=yj.prototype;_.V.computeContainerType=function(){return this.useCompactList?3:2};
_.V.itemWidthChanged=function(){var N;this.thumbnailTargetWidth=(N=this.itemWidth)!=null?N:9999};
_.V.updateIsInFirstColumn=function(){var N;this.isInFirstColumn=((N=this.data)==null?void 0:N.colIndex)===0};
_.V.observerContainerType=function(){if(this.lockup){var N=this.lockup;N.containerType=this.containerType;N.sizing=this.sizing;N.typographyBump=this.typographyBump;N.itemWidth=this.itemWidth}this.richGridMedia&&_.h("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.h("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.V.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.V.leave=function(N){N=N.relatedTarget;var t=document.querySelector("ytd-video-preview");N&&t&&_.Zr(t).contains(N)||this.removeAndCleanupHighlight()};
_.V.hover=function(){var N;!this.highlighted&&(N=this.data)!=null&&N.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(N=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:N,boxShadow:"0 0 0 10px "+N})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.V.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.V.registerHoverHighlightListeners=function(){var N=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16455_unsubscribeFromInlinePreviewIsActive=_.Jc(_.v5(),_.aTx,function(t){N.highlighted&&!t&&N.removeAndCleanupHighlight()})};
_.V.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16455_unsubscribeFromInlinePreviewIsActive()};
_.V.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.V.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.V.getBackgroundColor=function(){var N,t,O=(N=this.data)==null?void 0:(t=N.onFocusEffect)==null?void 0:t.onFocusColor;if(O){if(document.documentElement.hasAttribute("dark")&&(O==null?0:O.darkTheme))return ec(O==null?void 0:O.darkTheme);if(O==null?0:O.lightTheme)return ec(O==null?void 0:O.lightTheme)}};
_.V.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var N=_.z8(),t,O,H;N&&((t=this.data)==null?0:t.trackingParams)&&((O=this.data)==null?void 0:O.colIndex)!=null&&((H=this.data)==null?void 0:H.rowIndex)!=null&&_.QZ(N,_.ib(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.V.isSlimMediaRenderer=function(N){return!!_.M(N==null?void 0:N.content,_.kPf)||!!_.M(N==null?void 0:N.content,xau)||!!_.M(N==null?void 0:N.content,_.FL)||!!_.M(N==null?void 0:N.content,ZXB)};
_.V.isPostRenderer=function(){var N,t;return!!_.M((N=this.data)==null?void 0:N.content,sB_)||!!_.M((t=this.data)==null?void 0:t.content,NHQ)};
_.V.computeIsGameCardShelf=function(){var N;return!!_.M((N=this.data)==null?void 0:N.content,yxB)};
_.V.computeIsMiniGameCardShelf=function(){var N,t;return!!_.M((N=this.data)==null?void 0:N.content,YkZ)||!!_.M((t=this.data)==null?void 0:t.content,acQ)};
_.V.computeIsTeaserCard=function(){var N;return!!_.M((N=this.data)==null?void 0:N.content,acQ)};
_.V.computeIsSelectableFeedbackItem=function(){var N,t;return!((t=_.M((N=this.data)==null?void 0:N.content,w8Q))==null||!t.selectableFeedback)};
_.V.computeContainsLumierePosters=function(){var N,t;return((t=_.M((N=this.data)==null?void 0:N.content,CrS))==null?void 0:t.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.computeIsExpandOnHoverCardShelf=function(){var N;return!!_.M((N=this.data)==null?void 0:N.content,U__)};
_.V.computeIsLinkCardShelf=function(){var N;return!!_.M((N=this.data)==null?void 0:N.content,i_S)};
_.V.computeIsReelItemStyleAvatarCircle=function(N){var t;return((t=_.M(N==null?void 0:N.content,_.FL))==null?void 0:t.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.V.computeIsLinkCardFullWidth=function(N,t){var O;return((O=_.M(N==null?void 0:N.content,i_S))==null?void 0:O.useFullWidth)||t<=2};
_.cv.Object.defineProperties(yj.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var N;return _.h("web_hover_effect_refactor")&&_.M((N=this.data)==null?void 0:N.content,_.j20)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.h("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var N;if(_.h("web_hover_effect_refactor")&&_.M((N=this.data)==null?void 0:N.content,_.j20))return!1;var t;return!((t=this.data)==null||!t.onFocusEffect)||_.h("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var N;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.h("web_hover_effect_refactor")?(N=this.data)==null?void 0:N.onFocusEffect:void 0}}}});
yj.prototype.richGridHoverHighlightChanged=yj.prototype.richGridHoverHighlightChanged;yj.prototype.observerContainerType=yj.prototype.observerContainerType;yj.prototype.updateIsInFirstColumn=yj.prototype.updateIsInFirstColumn;yj.prototype.itemWidthChanged=yj.prototype.itemWidthChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],yj.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],yj.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],yj.prototype,"ytdLockupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yj.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isPost",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Q("design:type",Boolean)],yj.prototype,"containsLumierePosters",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isSlimMedia",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isGameCardShelf",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isMiniGameCardShelf",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isTeaserCard",void 0);_.W([_.X({computed:"computeIsSelectableFeedbackItem(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isSelectableFeedbackItem",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"isShortsGrid",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yj.prototype,"isSlimGrid",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"isCompactGrid",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"isShortsPanelGrid",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isExpandOnHoverCardShelf",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isLinkCardShelf",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.Tv,value:3}),_.Q("design:type",Number)],yj.prototype,"itemsPerRow",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"renderedFromRichGrid",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"isInFirstColumn",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"noGutterMargins",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"noBottomMargin",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"halfBottomMargin",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"isInlineGroupItem",void 0);_.W([_.X(),_.Q("design:type",Object)],yj.prototype,"insetMetadata",void 0);_.W([_.X(),_.Q("design:type",Object)],yj.prototype,"noBottomMarginInAds",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],yj.prototype,"isShelfItem",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Q("design:type",Boolean)],yj.prototype,"isReelItemStyleAvatarCircle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Q("design:type",Boolean)],yj.prototype,"isLinkCardFullWidth",void 0);_.W([_.X(),_.Q("design:type",Object)],yj.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"useCompactList",void 0);_.W([_.X(),_.Q("design:type",String)],yj.prototype,"sizing",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],yj.prototype,"typographyBump",void 0);_.W([_.X(),_.Q("design:type",Number)],yj.prototype,"itemWidth",void 0);_.W([_.X(),_.Q("design:type",Boolean)],yj.prototype,"isHomeShelf",void 0);_.W([_.X(),_.Q("design:type",Boolean)],yj.prototype,"isHomeGrid",void 0);
_.W([_.B2("yt-lockup-view-model"),_.Q("design:type",HTMLElement)],yj.prototype,"lockup",void 0);_.W([_.B2("ytd-rich-grid-media"),_.Q("design:type",HTMLElement)],yj.prototype,"richGridMedia",void 0);_.W([_.B2("ytd-ad-slot-renderer"),_.Q("design:type",HTMLElement)],yj.prototype,"adSlotRenderer",void 0);_.W([_.X({computed:"computeContainerType(useCompactList)"}),_.Q("design:type",Object)],yj.prototype,"containerType",void 0);_.W([_.X(),_.Q("design:type",Object)],yj.prototype,"thumbnailTargetWidth",void 0);
_.W([_.a("showYtInteractionOnRichItem"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yj.prototype,"showYtInteractionOnRichGridMedia",null);_.W([_.a("isSelectableFeedbackItem","richGridHoverHighlight"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yj.prototype,"showYtInteractionOnRichItem",null);_.W([_.a("typographyBump","isHomeGrid"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yj.prototype,"richTypographyBump",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data","isShortsGrid","isCompactGrid"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yj.prototype,"richGridHoverHighlight",null);_.W([_.a("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],yj.prototype,"shortsLockupViewModelAspectRatio",null);_.W([_.a("isInlineGroupItem"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],yj.prototype,"shortsLockupViewModelScrimStyle",null);
_.W([_.gz("itemWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yj.prototype,"itemWidthChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yj.prototype,"updateIsInFirstColumn",null);_.W([_.gz("containerType","sizing","typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yj.prototype,"observerContainerType",null);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],yj.prototype,"isResponsiveGrid",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yj.prototype,"lockupExperiments",null);_.W([_.gz("richGridHoverHighlight"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yj.prototype,"richGridHoverHighlightChanged",null);_.W([_.en({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],yj);
_.dtY=_.td()(yj,"ytd-rich-item-renderer",function(){if(oUr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);oUr=N}N=oUr;return N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var Jpy={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Kax=_.E_(_.CJ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var sWM={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},tvg={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},OQl={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var gyY;var Bh=function(){var N=_.k.apply(this,arguments)||this;N.useResponsiveGrid=!1;N.hidden=!1;N.isShowMoreHidden=!1;N.isShowLessHidden=!0;N.hasExpansionButton=!1;N.isInnerShelf=!1;N.allVideosCount=0;N.allPlaylistCount=0;N.haveSmartDownloadsCompleted=!1;N.restrictContentsOverflow=!1;N.firstShownIndex=0;N.horizontalOffset=0;N.atEnd=!0;N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
N.nextClick=function(){var t;(t=N.data)!=null&&t.contents&&(N.firstShownIndex+=N.currentElementsPerRow,N.updateHorizontalOffset(),N.updateHorizontalItemVisibility())};
N.previousClick=function(){var t;(t=N.data)!=null&&t.contents&&(N.firstShownIndex-=N.currentElementsPerRow,N.updateHorizontalOffset(),N.updateHorizontalItemVisibility())};
return N};
_.p(Bh,_.k);_.V=Bh.prototype;
_.V.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.Ro("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.V.attached=function(){this.requestElementsPerRow()};
_.V.refreshGridLayoutNew=function(){var N;if((N=this.data)!=null&&N.contents&&this.containerWidth){var t;((t=this.data.responsiveContainerConfiguration)==null?0:t.responsiveSize)?(N=_.g5O(this.data.responsiveContainerConfiguration,this.containerWidth,2),N=_.qU(Object.assign({},N,{standardUnitMinWidth:this.standardUnitMinWidth}))):N=_.qU({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=N.typographyBump;if(this.elementsPerRow!==
N.numItems||this.gutter!==N.gutter)this.elementsPerRow=N.numItems,this.gutter=N.gutter,this.itemWidth=N.itemWidth,_.CO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":N.gutter+"px"})}};
_.V.computeSizing=function(){if(!this.isLumiere){var N=_.eBN(this.data);return N?N:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.V.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.V.computeButton=function(N){var t=_.M(N,_.g_);N=Object.assign({},_.M(N,_.g_));return t?(N.text||(N.text={simpleText:N.tooltip}),N.style="STYLE_MONO_OUTLINE",N.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",N):t};
_.V.onRowIndexChange=function(){var N=_.z8(),t,O;((t=this.data)==null?0:t.trackingParams)&&((O=this.data)==null?void 0:O.rowIndex)!=null&&N&&_.QZ(N,_.ib(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.V.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var N,t=((N=this.getRichItemRenderers()[0])==null?void 0:N.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*t;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.V.requestElementsPerRow=function(){_.or(this.hostElement,"yt-request-elements-per-row")};
_.V.onUpdateElementsPerRowAction=function(N,t,O,H,A,Z){if(this.containerWidth!==Z&&(this.containerWidth=Z,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&N&&t&&O&&H&&A&&(this.elementsPerRow!==N||this.postsPerRow!==t||this.slimItemsPerRow!==O||this.gameCardsPerRow!==H||this.miniGameCardsPerRow!==A)&&(this.elementsPerRow=N,this.postsPerRow=t,this.slimItemsPerRow=O,this.gameCardsPerRow=H,this.miniGameCardsPerRow=A,this.updateItemVisibility())};
_.V.isExpandedChanged=function(){var N=this.getRichItemRenderers(),t=this.isExpanded;N.forEach(function(O){O.halfBottomMargin=t})};
_.V.isCollapsedChanged=function(){var N=this.getRichItemRenderers(),t=this.isCollapsed;N.forEach(function(O){O.noBottomMargin=t})};
_.V.getRichItemRenderers=function(){return _.O6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.V.updateItemVisibility=function(){var N=this;if(this.data&&this.data.contents){var t=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(H,A){var Z;((Z=N.data)==null?0:Z.isExpanded)?(H.hidden=A>t-1,H.ytRendererBehavior.markDirty()):H.hidden=A>N.currentElementsPerRow-1||A>t-1});
var O=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||O||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||O||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.V.setHeightToSingleRow=function(){var N=this.getRichItemRenderers(),t=Number.parseInt(getComputedStyle(N[0]).marginBottom,10)||0;N=N.slice(0,this.currentElementsPerRow).reduce(function(O,H){return Math.max(O,H.getBoundingClientRect().height+t)},0);
this.contents.style.height=N+"px"};
_.V.focusNextExpandedItem=function(){var N;((N=this.data)==null?0:N.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.V.focusItem=function(N,t){var O=this.getRichItemRenderers();if(O[N]&&(N=O[N].querySelector(".focus-on-expand"))){if(t){var H;(H=O[this.currentElementsPerRow])==null||H.scrollIntoView({behavior:"smooth",block:"center"})}N.focus({preventScroll:!0})}};
_.V.onDataChange=function(){var N=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var t;if((t=this.data)==null?0:t.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.yB(this,function(){N.updateItemVisibility()});
var O;if((O=this.data)==null?0:O.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.CO(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),t=0;t<this.data.contents.length;t++)O=_.M(this.data.contents[t],_.Jx)||{},O.colIndex=t,O.rowIndex=this.data.rowIndex};
_.V.handleRerenderDownloadsData=function(){_.h("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.V.blockInlinePreview=function(N){var t=this,O;return _.K(function(H){(O=t.inlinePreviewIsEnabled)&&t.ytdReduxBehavior.dispatch(_.UX0(!1));return H.return(new Promise(function(A){N(function(){O&&t.ytdReduxBehavior.dispatch(_.UX0(!0));A()})}))})};
_.V.expandShelf=function(){var N=this;if(this.data){var t,O=(t=_.M(this.data.showMoreButton,_.g_))==null?void 0:t.trackingParams;O&&_.Q2(_.gF(),O);this.set("data.isExpanded",!0);this.blockInlinePreview(function(H){N.setHeightToSingleRow();N.updateItemVisibility();N.contents.style.height=N.contents.scrollHeight+"px";_.GB.addJob(function(){N.contents.style.height="auto";N.focusNextExpandedItem();H()},2,200)})}};
_.V.collapseShelf=function(){var N=this;return _.K(function(t){if(t.nextAddress==1){if(!N.data)return t.return();N.set("data.isExpanded",!1);return t.yield(N.blockInlinePreview(function(O){N.contents.style.height=N.contents.scrollHeight+"px";N.setHeightToSingleRow();_.GB.addJob(function(){N.updateItemVisibility();N.contents.style.height="auto";O()},2,200)}),2)}_.or(N.hostElement,"yt-rich-shelf-renderer-collapse",N.data.trackingParams);
N.focusItem(0,!1);_.Ty(t)})};
_.V.updateArrowButtonStatus=function(){this.getRichItemRenderers();var N,t;var O=((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=O};
_.V.onChildElementFocus=function(N){this.hasChevronButtons&&(N=N.target.closest("#contents > *"),this.contents.contains(N)&&(N.offsetLeft<this.horizontalOffset?this.previousClick():N.offsetLeft+N.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.V.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Ro("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.V.updateHorizontalOffset=function(){var N=this.getRichItemRenderers(),t,O;var H=((t=this.data)==null?void 0:(O=t.contents)==null?void 0:O.length)||0;var A;N=((A=N[0])==null?void 0:A.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>H?this.firstShownIndex=H-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*N};
_.V.isSlimMediaShelfRenderer=function(){var N,t,O,H=(O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],_.Jx))==null?void 0:O.content;return!!(_.M(H,_.kPf)||_.M(H,xau)||_.M(H,_.FL)||_.M(H,ZXB))};
_.V.isGameCardShelf=function(){var N,t,O,H=(O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],_.Jx))==null?void 0:O.content;return!!_.M(H,yxB)};
_.V.isMiniGameCardShelf=function(){var N,t,O,H=(O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],_.Jx))==null?void 0:O.content;return!!_.M(H,YkZ)||!!_.M(H,acQ)};
_.V.hasGameBoxArtAvatarStyle=function(){var N;return((N=this.data)==null?void 0:N.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.V.hasRoundedGameBoxArtAvatarStyle=function(){var N;return((N=this.data)==null?void 0:N.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.V.isShortsShelf=function(){var N,t,O,H=(O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],_.Jx))==null?void 0:O.content;return!!_.M(H,_.FL)||!!_.M(H,ZXB)};
_.V.isPostShelfRenderer=function(){var N,t,O,H=(O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],_.Jx))==null?void 0:O.content;return!(!_.M(H,sB_)&&!_.M(H,NHQ))};
_.V.isLumiereShelf=function(){var N,t,O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],_.Jx);return!!_.M(O==null?void 0:O.content,CrS)};
_.V.isLumiereShelfWithPosters=function(){var N,t,O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],_.Jx),H;return((H=_.M(O==null?void 0:O.content,CrS))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.V.isExpandOnHoverCardShelf=function(){var N,t,O,H=(O=_.M((N=this.data)==null?void 0:(t=N.contents)==null?void 0:t[0],_.Jx))==null?void 0:O.content;return!!_.M(H,U__)};
_.V.computeHasFeaturedBadge=function(){var N,t,O=_.M((N=this.data)==null?void 0:(t=N.badges)==null?void 0:t[0],_.YbX);return O?O.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHasPaygatedFeaturedBadge=function(){var N,t,O=_.M((N=this.data)==null?void 0:(t=N.badges)==null?void 0:t[0],_.YbX);return O?(O==null?void 0:O.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.V.computeHeaderHidden=function(){var N,t,O,H,A,Z;return!((N=this.data)==null?0:N.icon)&&!((t=this.data)==null?0:t.title)&&!((O=this.data)==null?0:O.subtitle)&&!((H=this.data)==null?0:H.thumbnail)&&!((A=this.data)==null?0:A.badges)&&!((Z=this.data)==null?0:Z.menu)};
_.V.showCtaButton=function(){var N;return!((N=this.data)==null||!N.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.V.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.V.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.V.computeForce16By9ThumbnailAspectRatio=function(){var N,t;return((N=this.data)==null?void 0:(t=N.responsiveContainerConfiguration)==null?void 0:t.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.V.onSectionReactiveDismissal=function(N,t,O){var H,A;var Z=(H=this.data)==null?void 0:(A=H.targetingContext)==null?void 0:A.targetGroupId;this&&Z&&t.targetGroupId&&Z.includes(t.targetGroupId)?(H=this.rowIndex,N=H===void 0?!1:!(t.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&H<=N)):N=!1;N&&(this.hidden=O)};
_.cv.Object.defineProperties(Bh.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var N=this.elementsPerRow;this.isPostShelfRenderer()?N=this.postsPerRow:this.isSlimMediaShelfRenderer()?N=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?N=this.slimItemsPerRow-1:this.isGameCardShelf()?N=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(N=this.miniGameCardsPerRow);return N}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.previousButton)&&!((t=this.data)==null||!t.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var N;return((N=_.cY().resolve(_.J4).getCurrentPage())==null?void 0:N.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H;return!((N=this.data)==null?0:(t=N.thumbnail)==null?0:(O=t.accessibility)==null?0:(H=O.accessibilityData)==null?0:H.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Bh.prototype.onChildElementFocus=Bh.prototype.onChildElementFocus;Bh.prototype.handleRerenderDownloadsData=Bh.prototype.handleRerenderDownloadsData;Bh.prototype.onDataChange=Bh.prototype.onDataChange;Bh.prototype.isCollapsedChanged=Bh.prototype.isCollapsedChanged;Bh.prototype.isExpandedChanged=Bh.prototype.isExpandedChanged;Bh.prototype.onRowIndexChange=Bh.prototype.onRowIndexChange;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],Bh.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Bh.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Bh.prototype,"ytdReduxBehavior",void 0);
_.W([_.X({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Q("design:type",Object)],Bh.prototype,"useResponsiveGrid",void 0);_.W([_.X(),_.Q("design:type",Object)],Bh.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],Bh.prototype,"standardUnitMinWidth",void 0);_.W([_.X({reflectToAttribute:!0,value:3}),_.Q("design:type",Number)],Bh.prototype,"elementsPerRow",void 0);_.W([_.X({value:3}),_.Q("design:type",Number)],Bh.prototype,"postsPerRow",void 0);
_.W([_.X({value:6}),_.Q("design:type",Number)],Bh.prototype,"slimItemsPerRow",void 0);_.W([_.X({value:6}),_.Q("design:type",Number)],Bh.prototype,"gameCardsPerRow",void 0);_.W([_.X({value:6}),_.Q("design:type",Number)],Bh.prototype,"miniGameCardsPerRow",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bh.prototype,"hidden",void 0);_.W([_.X(),_.Q("design:type",Object)],Bh.prototype,"isShowMoreHidden",void 0);
_.W([_.X(),_.Q("design:type",Object)],Bh.prototype,"isShowLessHidden",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bh.prototype,"hasExpansionButton",void 0);_.W([_.a("data.isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Bh.prototype,"isExpanded",null);_.W([_.a("data.isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Bh.prototype,"isCollapsed",null);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bh.prototype,"isInnerShelf",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Q("design:type",Boolean)],Bh.prototype,"isShorts",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Q("design:type",Boolean)],Bh.prototype,"isLumiere",void 0);_.W([_.X({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Q("design:type",Boolean)],Bh.prototype,"hasBoxArtThumbnailStyle",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Q("design:type",Boolean)],Bh.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Q("design:type",Boolean)],Bh.prototype,"hasFeaturedBadge",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Q("design:type",Boolean)],Bh.prototype,"hasPaygatedFeaturedBadge",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Q("design:type",Boolean)],Bh.prototype,"isHeaderHidden",void 0);_.W([_.X({selector:_.xFQ}),_.Q("design:type",Object)],Bh.prototype,"allVideosCount",void 0);_.W([_.X({selector:diy}),_.Q("design:type",Object)],Bh.prototype,"allPlaylistCount",void 0);_.W([_.X({selector:mFt}),_.Q("design:type",Object)],Bh.prototype,"haveSmartDownloadsCompleted",void 0);
_.W([_.X({selectorArgs:["entitySelectorType"],selector:function(N,t){if(_.h("kevlar_modern_downloads_page")&&t&&t!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var O=N.entities;switch(t){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":t=_.LM(O);N=yx(t);var H=_.u5(t);O=_.Yj(O);O=_.NE(AMQ(H,O,t.length));return{contents:N,subtitle:O};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return O=_.LM(O),{contents:yx(O)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return O=
_.zv(O),{contents:yx(O)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return O=_.dFv(O),{contents:yx(O)};default:_.J_(new _.fF("Error: entitySelectorType defined but not matched in selector.",N,t))}}}}),
_.Q("design:type",Object)],Bh.prototype,"entityDrivenRichShelfData",void 0);_.W([_.X({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Q("design:type",Boolean)],Bh.prototype,"hasTopCtaButton",void 0);_.W([_.X({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Q("design:type",Boolean)],Bh.prototype,"hasBottomCtaButton",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Q("design:type",Boolean)],Bh.prototype,"force16By9ThumbnailAspectRatio",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bh.prototype,"restrictContentsOverflow",void 0);_.W([_.X({selector:_.Tdv}),_.Q("design:type",Boolean)],Bh.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.X({computed:"computeSizing(data)"}),_.Q("design:type",String)],Bh.prototype,"sizing",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],Bh.prototype,"typographyBump",void 0);_.W([_.X(),_.Q("design:type",Number)],Bh.prototype,"itemWidth",void 0);_.W([_.X(),_.Q("design:type",Object)],Bh.prototype,"firstShownIndex",void 0);_.W([_.X(),_.Q("design:type",Object)],Bh.prototype,"horizontalOffset",void 0);_.W([_.X(),_.Q("design:type",Object)],Bh.prototype,"atEnd",void 0);_.W([_.B2("#contents"),_.Q("design:type",HTMLElement)],Bh.prototype,"contents",void 0);
_.W([_.gz("data.rowIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bh.prototype,"onRowIndexChange",null);_.W([_.gz("isExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bh.prototype,"isExpandedChanged",null);_.W([_.gz("isCollapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bh.prototype,"isCollapsedChanged",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bh.prototype,"onDataChange",null);_.W([_.gz("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bh.prototype,"handleRerenderDownloadsData",null);_.W([_.dz("focusin"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Bh.prototype,"onChildElementFocus",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data","isHomePage"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Bh.prototype,"isTruncated",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Bh.prototype,"showBottomDivider",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bh.prototype,"hasChevronButtons",null);
_.W([_.a("firstShownIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bh.prototype,"previousButtonOverride",null);_.W([_.a("atEnd"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bh.prototype,"nextButtonOverride",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Bh.prototype,"isHomePage",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Bh.prototype,"thumbnailAriaHidden",null);
_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Bh.prototype,"entitySelectorType",null);_.W([_.en({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Bh);
_.yzS=_.td()(Bh,"ytd-rich-shelf-renderer",function(){if(gyY===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);gyY=N}N=gyY;return N},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var Bmr;_.o_(_.L_,"yt-badge-view-model",{props:{data:_.$O,class:_.$O,workaroundShortsIsThumbnailBadge:_.$O,modern:_.$O,numBadgesInRow:_.$O,clipTextOverflow:_.$O}});_.o_(qQr,"yt-slimline-survey-view-model",{props:{data:_.$O}});var ch=function(){var N=_.k.apply(this,arguments)||this;N.tileLottieAnimationRef={};N.backgroundLottieAnimationRef={};N.isOnHoverBehaviorForLottieEnabled=!0;N.useBiggerShowcaseImage=_.h("enable_desktop_search_bigger_thumbs");N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return N};
_.p(ch,_.k);_.V=ch.prototype;_.V.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.V.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.V.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var N=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);N!==this.hasTile&&this.set("hasTile",N);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.V.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.V.currentColorChanged=function(){this.updateButtonPalette()};
_.V.computeBackgroundStyle=function(N){if(N&&this.data){var t=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var O=_.Ne((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);O&&t.push('background-image: url("'+O+'");')}var H;((H=N.basicColorData)==null?void 0:H.backgroundColor)!==void 0&&t.push("background-color: "+_.TV(N.basicColorData.backgroundColor)+";");return t.join("")}};
_.V.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&this.set("isDarkTheme",N)};
_.V.getCurrentLogo=function(N,t){if(N)return t?N.darkLogoImage:N.lightLogoImage};
_.V.getCurrentStaticTileImage=function(N,t){if(this.hasStaticTile(N))return N.darkTileImage?t?N.darkTileImage:N.tileImage:N.tileImage};
_.V.computeTitleStyle=function(N){if(this.data&&this.data.title&&N&&N.basicColorData&&N.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.aI(N.basicColorData.foregroundTitleColor)+";"};
_.V.computeSubtitleStyle=function(N){if(this.data&&this.data.subtitle&&N&&N.basicColorData&&N.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.aI(N.basicColorData.foregroundBodyColor)+";"};
_.V.computeSupplementalStyle=function(N){if(this.data&&this.data.supplementalText&&N&&N.supplementalTextColor!==void 0)return N=_.aI(N.supplementalTextColor),"color:"+N+";--yt-endpoint-color:"+N+";--yt-endpoint-hover-color:"+N+";--yt-endpoint-visited-color:"+N+";--yt-formatted-string-bold-font-weight:700;"};
_.V.computeDismissIconStyle=function(N){var t,O;if((N==null?0:(t=N.dismissButtonColorData)==null?0:t.foregroundTitleColor)&&(N==null?0:(O=N.dismissButtonColorData)==null?0:O.backgroundColor))return"--yt-button-color:"+_.TV(N.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.TV(N.dismissButtonColorData.backgroundColor)+";"};
_.V.computeOverflowIconStyle=function(N){var t,O;if((N==null?0:(t=N.dismissButtonColorData)==null?0:t.foregroundTitleColor)&&(N==null?0:(O=N.dismissButtonColorData)==null?0:O.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.TV(N.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.TV(N.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.TV(N.dismissButtonColorData.foregroundTitleColor)+";"};
_.V.computeBannerStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.V.computeLocation=function(N){switch(N==null?void 0:N.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.V.shouldShowTileSection=function(N,t,O){return!this.shouldExpandLogo(N,t,O)&&t};
_.V.shouldShowExpandedLogoSection=function(N,t,O){return this.shouldExpandLogo(N,t,O)&&N!==void 0&&this.hasLogo(N)};
_.V.shouldExpandLogo=function(N,t,O){return N&&t?!1:O>=2};
_.V.hasStaticTile=function(N){return!(N==null||!N.tileImage)};
_.V.hasTileLottie=function(N){var t;return!!(N==null?0:(t=N.tileLottie)==null?0:t.url)};
_.V.hasLogo=function(N){return this.getCurrentLogo(N,this.isDarkTheme)!==void 0};
_.V.getLogoHeight=function(N){return this.logoWithPadding(N)?"26":"20"};
_.V.getExpandedLogoHeight=function(N){return this.logoWithPadding(N)?"31":"24"};
_.V.getLogoImageId=function(N){return this.logoWithPadding(N)?"logo-image-with-padding":"logo-image"};
_.V.getMaxTitleFontSize=function(N){return N.overrideTitleMaxFontSize?String(N.overrideTitleMaxFontSize):"36"};
_.V.hasBackgroundLottie=function(N){var t;return!!(N==null?0:(t=N.backgroundLottie)==null?0:t.url)};
_.V.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var N,t;(N=this.tileLottieAnimationRef)==null||(t=N.lottieEl)==null||t.play();var O,H;(O=this.backgroundLottieAnimationRef)==null||(H=O.lottieEl)==null||H.play()}};
_.V.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var N,t;(N=this.tileLottieAnimationRef)==null||(t=N.lottieEl)==null||t.pause();var O,H;(O=this.backgroundLottieAnimationRef)==null||(H=O.lottieEl)==null||H.pause()}};
_.V.pauseLottie=function(){var N,t;(N=this.tileLottieAnimationRef)==null||(t=N.lottieEl)==null||t.pause();var O,H;(O=this.backgroundLottieAnimationRef)==null||(H=O.lottieEl)==null||H.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.V.performPrimaryButtonAction=function(){var N,t,O;((N=this.data)==null?0:(t=N.primaryButton)==null?0:(O=t.buttonRenderer)==null?0:O.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.V.requestElementsPerRow=function(){_.or(this.hostElement,"yt-request-elements-per-row")};
_.V.updateButtonPalette=function(){if(this.data&&this.currentColorData){var N;((N=this.data.dismissButton)==null?0:N.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var t;if((t=this.data.primaryButton)==null?0:t.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 O;if((O=this.data.secondaryButton)==
null?0:O.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 H;((H=this.data.primaryButton)==null?0:H.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var A;((A=this.data.primaryButton)==null?0:A.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var Z;((Z=this.data.secondaryButton)==null?0:Z.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var U;((U=this.data.primaryButton)==null?0:U.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.V.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var N=this.getTileLottieDataBasedOnTheme(),t,O;if(N.url!==((t=this.tileLottiePlayerProps)==null?void 0:(O=t.animationConfig)==null?void 0:O.path)){var H,A;(H=this.tileLottieAnimationRef)==null||(A=H.lottieEl)==null||A.destroy();var Z;this.isOnHoverBehaviorForLottieEnabled=!((Z=N.settings)==null?0:Z.autoplay);var U,C;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(C=(U=N.settings)==null?void 0:U.autoplay)!=null?C:!1,loop:this.getLottieLoopValue(N.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof N.url==="string"?this.tileLottiePlayerProps.animationConfig.path=N.url:this.tileLottiePlayerProps.animationConfig.animationData=N.url}}};
_.V.getOverflowButton=function(N){return _.M(N.overflowButton,KSY)};
_.V.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var N=this.getBackgroundLottieDataBasedOnTheme(),t,O;if(N.url!==((t=this.backgroundLottiePlayerProps)==null?void 0:(O=t.animationConfig)==null?void 0:O.path)){var H,A;(H=this.backgroundLottieAnimationRef)==null||(A=H.lottieEl)==null||A.destroy();var Z;this.isOnHoverBehaviorForLottieEnabled=!((Z=N.settings)==null?0:Z.autoplay);var U,C;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(C=(U=N.settings)==null?void 0:U.autoplay)!=null?C:!1,loop:this.getLottieLoopValue(N.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof N.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=N.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
N.url}}};
_.V.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var N;((N=this.tileLottieAnimationRef)==null?void 0:N.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var t;((t=this.backgroundLottieAnimationRef)==null?void 0:t.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.V.getTileLottieDataBasedOnTheme=function(){var N;if(this.isDarkTheme&&((N=this.data)==null?0:N.darkThemeTileLottie))return this.data.darkThemeTileLottie;var t;return((t=this.data)==null?0:t.tileLottie)?this.data.tileLottie:{}};
_.V.getBackgroundLottieDataBasedOnTheme=function(){var N;if(this.isDarkTheme&&((N=this.data)==null?0:N.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var t;return((t=this.data)==null?0:t.backgroundLottie)?this.data.backgroundLottie:{}};
_.V.onUpdateElementsPerRowAction=function(N){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N)};
_.V.getLottieLoopValue=function(N){return N?N.loop!==void 0?N.loop:N.loopCount?N.loopCount-1:!0:!0};
_.V.logoWithPadding=function(N){var t,O,H;return(N=(t=this.getCurrentLogo(N,this.isDarkTheme))==null?void 0:(O=t.thumbnails)==null?void 0:(H=O[0])==null?void 0:H.height)&&N%31===0?!0:!1};
ch.prototype.currentColorChanged=ch.prototype.currentColorChanged;ch.prototype.themeChanged=ch.prototype.themeChanged;ch.prototype.dataChanged=ch.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],ch.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ch.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ch.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ch.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],ch.prototype,"primaryButton",void 0);_.W([_.X(),_.Q("design:type",Object)],ch.prototype,"secondaryButton",void 0);
_.W([_.X({reflectToAttribute:!0,value:3}),_.Q("design:type",Number)],ch.prototype,"elementsPerRow",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],ch.prototype,"isDarkTheme",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],ch.prototype,"hasTile",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],ch.prototype,"hasMetadata",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],ch.prototype,"showLogoImage",void 0);_.W([_.X(),_.Q("design:type",Object)],ch.prototype,"currentColorData",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Q("design:type",String)],ch.prototype,"bannerStyle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Q("design:type",String)],ch.prototype,"location",void 0);
_.W([_.X(),_.Q("design:type",Object)],ch.prototype,"tileLottiePlayerProps",void 0);_.W([_.X(),_.Q("design:type",Object)],ch.prototype,"tileLottieAnimationRef",void 0);_.W([_.X(),_.Q("design:type",Object)],ch.prototype,"backgroundLottiePlayerProps",void 0);_.W([_.X(),_.Q("design:type",Object)],ch.prototype,"backgroundLottieAnimationRef",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ch.prototype,"useBiggerShowcaseImage",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ch.prototype,"isHideEnclosingAction",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ch.prototype,"dataChanged",null);_.W([_.ic("isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ch.prototype,"themeChanged",null);
_.W([_.ic("currentColorData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ch.prototype,"currentColorChanged",null);_.W([_.en({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],ch);
_.n(ch,"ytd-statement-banner-renderer",function(){if(Bmr!==void 0)return Bmr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Bmr=N},{mode:1});var cz_;var $4=function(){var N=_.k.apply(this,arguments)||this;N.isSearch=!1;N.hideShelfHeader=!1;N.engagementPanel=!1;N.disableMouseScroll=!0;N.useFloorScrolling=!0;return N};
_.p($4,_.k);$4.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.CJ("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.CJ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
$4.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$4.prototype.onDataChanged=$4.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$4.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],$4.prototype,"hideShelfHeader",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],$4.prototype,"engagementPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],$4.prototype,"disableMouseScroll",void 0);_.W([_.X(),_.Q("design:type",Object)],$4.prototype,"useFloorScrolling",void 0);_.W([_.X(),_.Q("design:type",Object)],$4.prototype,"data",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$4.prototype,"onDataChanged",null);
_.W([_.en({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],$4);
_.n($4,"ytd-reel-shelf-renderer",function(){if(cz_!==void 0)return cz_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return cz_=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var $ta;var jVY;jVY=_.mp(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.iHu=_.ju(jVY);var uhB=_.q(function(N){var t=N.data;N=N.useSmallFont;var O={},H={};return _.d("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.d(_.y,{cond:function(){return t().favicon},
then:function(A){return _.d(_.Qt,{data:A,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.d("div",{class:"ytChannelExternalLinkViewModelContainer"},_.d(_.cu,{text:function(){return t().title},
className:_.V7("ytChannelExternalLinkViewModelTitle",(O.ytChannelExternalLinkViewModelTitleSmallFont=N,O)),ellipsisTruncate:!0,userInput:!0}),_.d(_.cu,{text:function(){return t().link},
className:_.V7("ytChannelExternalLinkViewModelLink",(H.ytChannelExternalLinkViewModelLinkSmallFont=N,H)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ad");
uhB.idomCompat=!0;_.o_(uhB,"yt-channel-external-link-view-model",{props:{data:_.$O,useSmallFont:_.$O}});_.pE("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var jZ=function(){var N=_.k.apply(this,arguments)||this;N.revealButtonClass="button";N.businessEmailDisplayState="HIDE_SECTION";return N};
_.p(jZ,_.k);_.V=jZ.prototype;_.V.refit=function(){var N=this;_.nO(function(){_.Np(N.hostElement,"yt-refit-popups-action")});
_.yB(this,function(){_.Np(N.hostElement,"yt-refit-popups-action")})};
_.V.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.XU(_.iHu),this.businessEmailDisplayState="CAPTCHA")};
_.V.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.V.computeEmailHref=function(N){return"mailto:"+N};
_.V.computeSafeUrl=function(N){if(N)return _.Id(N)};
_.V.linkEndpoint=function(N){return _.M(N.onTap,_.Tb)};
_.V.linkEndpointToHref=function(N){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(N))};
_.V.onYtServiceRequestCompleted=function(N){var t;if((t=N.detail.data)==null?0:t.businessEmail)this.businessEmail=N.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var O;if((O=N.detail.data)==null?0:O.errorMessage)this.businessEmailErrorMessage=N.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var N=this.JSC$16569_captchaTextarea.value;if(N){N={recaptcha_response_token:N,channel_id:this.metadata.channelId};var t=_.M(this.metadata.onBusinessEmailRevealClickCommand,_.Tb);t&&this.ytComponentBehavior.resolveCommand(t,{form:N})}}};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.cv.Object.defineProperties(jZ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var N;return _.M((N=this.data)==null?void 0:N.metadata,gbE)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.M(this.metadata.businessEmailRevealButton,_.$9)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var N=new URL(this.metadata.canonicalChannelUrl);return N.host+N.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.M(this.metadata.learnMoreOnTap,_.Tb)}}});
jZ.prototype.onYtServiceRequestCompleted=jZ.prototype.onYtServiceRequestCompleted;jZ.prototype.businessEmailMetadataChanged=jZ.prototype.businessEmailMetadataChanged;jZ.prototype.refit=jZ.prototype.refit;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],jZ.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("#g-recaptcha-response"),_.Q("design:type",HTMLTextAreaElement)],jZ.prototype,"JSC$16569_captchaTextarea",void 0);_.W([_.X(),_.Q("design:type",Object)],jZ.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],jZ.prototype,"revealButtonClass",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jZ.prototype,"metadata",null);
_.W([_.a("metadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jZ.prototype,"revealButton",null);_.W([_.a("metadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jZ.prototype,"channelDisplayUrl",null);_.W([_.ic("metadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jZ.prototype,"refit",null);_.W([_.a("metadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jZ.prototype,"formattedDescription",null);
_.W([_.a("metadata","learnMoreCommand"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],jZ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.W([_.a("metadata"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jZ.prototype,"learnMoreCommand",null);_.W([_.X(),_.Q("design:type",String)],jZ.prototype,"businessEmailDisplayState",void 0);_.W([_.X(),_.Q("design:type",String)],jZ.prototype,"businessEmail",void 0);
_.W([_.X(),_.Q("design:type",String)],jZ.prototype,"businessEmailErrorMessage",void 0);_.W([_.ic("metadata"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jZ.prototype,"businessEmailMetadataChanged",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],jZ.prototype,"onYtServiceRequestCompleted",null);
_.W([_.en({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],jZ);
_.n(jZ,"ytd-about-channel-renderer",function(){if($ta!==void 0)return $ta;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank" aria-label$="[[metadata.learnMoreA11yLabel]]">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $ta=N},{mode:1});var SEp;var im=function(){return _.k.apply(this,arguments)||this};
_.p(im,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],im.prototype,"data",void 0);_.W([_.en({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],im);
_.n(im,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(SEp!==void 0)return SEp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return SEp=N},{mode:1});var hlu;var um=function(){return _.k.apply(this,arguments)||this};
_.p(um,_.k);um.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],um.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],um.prototype,"aligment",void 0);_.W([_.en({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],um);
_.n(um,"ytd-channel-list-sub-menu-renderer",function(){if(hlu!==void 0)return hlu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return hlu=
N},{mode:1});var M2Z;var SZ=function(){return _.k.apply(this,arguments)||this};
_.p(SZ,_.k);SZ.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}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],SZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],SZ.prototype,"data",void 0);_.W([_.en({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],SZ);
_.n(SZ,"ytd-channel-sub-menu-renderer",function(){if(M2Z!==void 0)return M2Z;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return M2Z=N},{mode:1});var bHu;var p3a;var h9=function(){var N=_.k.apply(this,arguments)||this;N.isCompact=!1;return N};
_.p(h9,_.k);_.cv.Object.defineProperties(h9.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var N,t;return((t=_.M((N=this.data)==null?void 0:N.endpoint,_.Z3))==null?void 0:t.target)==="TARGET_NEW_WINDOW"}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],h9.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],h9.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],h9.prototype,"isCompact",void 0);_.W([_.a("isCompact"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],h9.prototype,"thumbnailWidth",null);
_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],h9.prototype,"openNewWindow",null);_.W([_.en({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],h9);
_.n(h9,"ytd-media-lockup-renderer",function(){if(p3a!==void 0)return p3a;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return p3a=N},{mode:1});var Ltp;var MX=function(){return _.k.apply(this,arguments)||this};
_.p(MX,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],MX.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],MX.prototype,"data",void 0);_.W([_.en({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],MX);
_.n(MX,"ytd-structured-description-channel-lockup-renderer",function(){if(Ltp!==void 0)return Ltp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Ltp=N},{mode:1});var zlf;var bm=function(){var N=_.k.apply(this,arguments)||this;N.isCompact=!1;N.collectionsStackColor=_.h("modernize_structured_description_playlist_lockups_v2");return N};
_.p(bm,_.k);bm.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:_.h("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.cv.Object.defineProperties(bm.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A,Z;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(N=this.data)==null?void 0:(t=N.thumbnail)==null?void 0:t.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(O=this.data)==null?void 0:(H=O.thumbnail)==null?void 0:H.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(A=this.data)==null?void 0:(Z=A.thumbnail)==null?
void 0:Z.vibrantColorPalette:void 0}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],bm.prototype,"componentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],bm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bm.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],bm.prototype,"showSidePanelThumbnailOverlay",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bm.prototype,"isCompact",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bm.prototype,"collectionsStackColor",void 0);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],bm.prototype,"twoLineTitle",null);_.W([_.a("data","collectionsStackColor"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bm.prototype,"collectionStack",null);
_.W([_.en({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],bm);
_.n(bm,"ytd-structured-description-playlist-lockup-renderer",function(){if(zlf!==void 0)return zlf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return zlf=N},{mode:1});var YEr;var pj=function(){return _.k.apply(this,arguments)||this};
_.p(pj,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],pj.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],pj.prototype,"data",void 0);_.W([_.en({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],pj);
_.n(pj,"ytd-structured-description-video-lockup-renderer",function(){if(YEr!==void 0)return YEr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return YEr=N},{mode:2});var Lj=function(){return _.k.apply(this,arguments)||this};
_.p(Lj,_.k);
Lj.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}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Lj.prototype,"data",void 0);_.W([_.en({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Lj);
_.n(Lj,"ytd-compact-infocard-renderer",function(){if(bHu!==void 0)return bHu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return bHu=N},{mode:1});var afR;var zX=function(){return _.k.apply(this,arguments)||this};
_.p(zX,_.k);zX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.cv.Object.defineProperties(zX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],zX.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],zX.prototype,"ytdReduxBehavior",void 0);_.W([_.X({selector:_.wq}),_.Q("design:type",Object)],zX.prototype,"isGridViewEnabled",void 0);
_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],zX.prototype,"watchFeedBigThumbs",null);_.W([_.a("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"168"}),_.Q("design:type",String),_.Q("design:paramtypes",[])],zX.prototype,"thumbnailWidth",null);_.W([_.a("isGridViewEnabled","data"),_.X({reflectToAttribute:!0,value:"94"}),_.Q("design:type",String),_.Q("design:paramtypes",[])],zX.prototype,"customThumbnailSize",null);
_.W([_.X(),_.Q("design:type",Object)],zX.prototype,"data",void 0);_.W([_.en({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],zX);
_.n(zX,"ytd-compact-playlist-renderer",function(){if(afR!==void 0)return afR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return afR=N},{mode:1});var Tmf;var Y4=function(){var N=_.k.apply(this,arguments)||this;N.roundedContainer=!0;N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return N};
_.p(Y4,_.k);_.V=Y4.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.V.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.V.computeViewStyle=function(N){return N.style?N.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.V.onUpdateElementsPerRowAction=function(N){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&N===1};
_.V.requestElementsPerRow=function(){_.or(this.hostElement,"yt-request-elements-per-row")};
Y4.prototype.dataChanged=Y4.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],Y4.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Y4.prototype,"actionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Y4.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Y4.prototype,"hideThumbnail",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Q("design:type",String)],Y4.prototype,"viewStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Y4.prototype,"roundedContainer",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Y4.prototype,"dataChanged",null);_.W([_.en({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Y4);
_.n(Y4,"ytd-compact-promoted-item-renderer",function(){if(Tmf!==void 0)return Tmf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Tmf=N},{mode:1});var w3y;var aF=function(){return _.k.apply(this,arguments)||this};
_.p(aF,_.k);aF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
aF.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
aF.prototype.onYtNavigate=function(N,t){var O=this;if(t.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",t)){var H=this.get("watchEndpoint.videoId",t.endpoint),A=_.Np(this.hostElement,"yt-get-current-video-id-action")[0];_.h("kevlar_mix_handle_first_endpoint_different")&&H&&A&&H!==A||(N.stopPropagation(),_.NU().getPlayerPromise().then(function(Z){if(Z.getPlayerState()===0&&O.data.secondaryNavigationEndpoint)var U=O.data.secondaryNavigationEndpoint;else{U=
Object.assign({},t.endpoint);var C=_.M(U.commandMetadata,_.Da);C&&(Z=Math.floor(Z.getCurrentTime()),C.url=_.CF(C.url,{t:Z}),!_.h("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(C=_.M(U,_.rN)))&&(C.startTimeSeconds=Z)}_.or(O.hostElement,"yt-navigate",{endpoint:U})}))}};
_.cv.Object.defineProperties(aF.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A,Z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(N=this.data)==null?void 0:(t=N.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(H=O.thumbnail)==null?void 0:H.vibrantColorPalette,darkColorPalette:(A=this.data)==null?void 0:(Z=A.thumbnail)==null?void 0:Z.darkColorPalette,experimentEnabled:!0}}}});
aF.prototype.onYtNavigate=aF.prototype.onYtNavigate;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.nD.YtEndpointBehavior),_.Q("design:type",Object)],aF.prototype,"ytEndpointBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],aF.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Y(_.$t),_.Q("design:type",Object)],aF.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],aF.prototype,"ytdReduxBehavior",void 0);_.W([_.X({selector:_.wq}),_.Q("design:type",Object)],aF.prototype,"isGridViewEnabled",void 0);_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],aF.prototype,"watchFeedBigThumbs",null);
_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],aF.prototype,"thumbnailWidth",null);_.W([_.X(),_.Q("design:type",Object)],aF.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aF.prototype,"collectionStack",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],aF.prototype,"onYtNavigate",null);
_.W([_.en({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],aF);
_.n(aF,"ytd-compact-radio-renderer",function(){if(w3y!==void 0)return w3y;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return w3y=N},{mode:1});var elr;var TX=function(){return _.k.apply(this,arguments)||this};
_.p(TX,_.k);TX.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
TX.prototype.computeRendererStyle=function(N){return N.style?N.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.W([_.X(),_.Q("design:type",Object)],TX.prototype,"data",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],TX.prototype,"rendererBehavior",void 0);_.W([_.X({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Q("design:type",String)],TX.prototype,"rendererStyle",void 0);_.W([_.en({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],TX);
_.n(TX,"ytd-compact-text-promo-renderer",function(){if(elr!==void 0)return elr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return elr=N},{mode:1});var PxZ;var w7=function(){var N=_.k.apply(this,arguments)||this;N.isShortsStyle=!1;return N};
_.p(w7,_.k);_.V=w7.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.V.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.or(this.hostElement,"yt-disable-lockup-interaction"):_.or(this.hostElement,"yt-enable-lockup-interaction"))};
_.V.isMetaBlockEmpty=function(N){return!N||!N.longBylineText&&!N.shortBylineText&&!N.shortViewCountText&&!N.viewCountText};
_.V.computeHasOneLineTitle=function(N){return this.forceOneLineTitle||!(N==null||!N.buttons)};
_.V.computeDisableInteraction=function(){var N;return!((N=this.data)==null?0:N.navigationEndpoint)};
_.V.hasSingularTopStandaloneBadge=function(){var N;return!((N=this.data)==null||!N.topStandaloneBadge)};
_.cv.Object.defineProperties(w7.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var N;return this.hasSingularTopStandaloneBadge()?[(N=this.data)==null?void 0:N.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var N;return this.shouldShowTopBadges?((N=this.data)==null?void 0:N.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
w7.prototype.disableInteractionChanged=w7.prototype.disableInteractionChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],w7.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],w7.prototype,"ytdLockupBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],w7.prototype,"ytdReduxBehavior",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Q("design:type",Boolean)],w7.prototype,"metaBlockEmpty",void 0);_.W([_.X({selector:_.wq}),_.Q("design:type",Object)],w7.prototype,"isGridViewEnabled",void 0);_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],w7.prototype,"watchFeedBigThumbs",null);
_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],w7.prototype,"thumbnailWidth",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],w7.prototype,"isShortsStyle",void 0);_.W([_.X(),_.Q("design:type",Object)],w7.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Q("design:type",Boolean)],w7.prototype,"hasOneLineTitle",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],w7.prototype,"hideThumbnail",void 0);_.W([_.X(),_.Q("design:type",Boolean)],w7.prototype,"forceOneLineTitle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Q("design:type",Boolean)],w7.prototype,"disableInteraction",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],w7.prototype,"musicMetadataVideoLockup",void 0);
_.W([_.gz("disableInteraction"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],w7.prototype,"disableInteractionChanged",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],w7.prototype,"shouldShowTopBadges",null);_.W([_.a("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],w7.prototype,"topBadges",null);
_.W([_.a("shouldShowTopBadges","data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],w7.prototype,"inlineMetadataBadges",null);_.W([_.a("shouldShowTopBadges"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],w7.prototype,"shouldShowBadgesBelowMetadata",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],w7.prototype,"compactTitleClass",null);_.W([_.en({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],w7);
_.n(w7,"ytd-compact-video-renderer",function(){if(PxZ!==void 0)return PxZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return PxZ=N},{mode:_.O4("kevlar_poly_si_batch_j067")?1:2});var X3Z;_.pE("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var eZ=function(){return _.k.apply(this,arguments)||this};
_.p(eZ,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],eZ.prototype,"data",void 0);_.W([_.en({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],eZ);
_.n(eZ,"ytd-counterfactual-renderer",function(){if(X3Z!==void 0)return X3Z;var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return X3Z=N},{mode:1});var xta;var Ph=function(){var N=_.k.apply(this,arguments)||this;N.hidden=!1;return N};
_.p(Ph,_.k);Ph.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.cY().resolve(_.jo).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Ph.prototype.computeHidden=function(N){return!!N};
_.cv.Object.defineProperties(Ph.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}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ph.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Q("design:type",Object)],Ph.prototype,"hidden",void 0);_.W([_.a("data.label"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Ph.prototype,"label",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ph.prototype,"value",null);
_.W([_.en({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Ph);
_.n(Ph,"ytd-dropdown-item-renderer",function(){if(xta!==void 0)return xta;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return xta=N},{mode:1});var k0r;var qE_;var Xv=function(){return _.k.apply(this,arguments)||this};
_.p(Xv,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Xv.prototype,"data",void 0);_.W([_.X({computed:"getSimpleString(data.label)"}),_.Q("design:type",String)],Xv.prototype,"label",void 0);_.W([_.en({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Xv);
_.n(Xv,"ytd-navigation-dropdown-item-renderer",function(){if(qE_!==void 0)return qE_;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return qE_=N},{mode:1});var x4=function(){var N=_.k.apply(this,arguments)||this;N.disabled=!1;N.value="";N.noLabelFloat=!1;N.noUnderline=!1;N.usePrimaryColor=!1;N.hasBackground=!1;N.verticalAlign="top";N.autosize=!1;N.minAutosizeWidth=100;N.autosizeFont="14px Roboto";return N};
_.p(x4,_.k);_.V=x4.prototype;_.V.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.V.open=function(){this.inputEl.open()};
_.V.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.V.dataChanged=function(){this.reset()};
_.V.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("value-changed",this.value))};
_.V.stopPropagation=function(N){N.stopPropagation()};
_.V.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var N=this.canvas.getContext("2d");N&&(N.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(N.measureText(this.inputEl.value).width)+24)+"px")}};
_.V.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var N=0,t=this.data.entries.length;N<t;N++){var O=this.data.entries[N],H;for(H in O)if(O.hasOwnProperty(H)){var A=O[H];if("isSelected"in A&&A.isSelected)return"stringValue"in A?A.stringValue||"":"int32Value"in A?A.int32Value||0:0}}return null};
_.V.updateValueFromBinding=function(N){this.value=N.detail.value};
_.cv.Object.defineProperties(x4.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var N=0,t=this.data.entries.length;N<t;N++){var O=this.data.entries[N],H;for(H in O)if(O.hasOwnProperty(H)){var A=O[H];if("isSelected"in A&&A.isSelected&&"label"in A)return this.ytRendererBehavior.getSimpleString(A.label)}}return null}}});
x4.prototype.autoSizeLabel=x4.prototype.autoSizeLabel;x4.prototype.stopPropagation=x4.prototype.stopPropagation;x4.prototype.valueChangedForBinding=x4.prototype.valueChangedForBinding;x4.prototype.dataChanged=x4.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],x4.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],x4.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],x4.prototype,"disabled",void 0);_.W([_.X(),_.Q("design:type",Object)],x4.prototype,"value",void 0);_.W([_.X(),_.Q("design:type",Object)],x4.prototype,"noLabelFloat",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],x4.prototype,"noUnderline",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],x4.prototype,"theme",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],x4.prototype,"usePrimaryColor",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],x4.prototype,"hasBackground",void 0);_.W([_.X(),_.Q("design:type",Object)],x4.prototype,"verticalAlign",void 0);_.W([_.X(),_.Q("design:type",Object)],x4.prototype,"autosize",void 0);_.W([_.X(),_.Q("design:type",Object)],x4.prototype,"minAutosizeWidth",void 0);_.W([_.X(),_.Q("design:type",Object)],x4.prototype,"autosizeFont",void 0);
_.W([_.B2("#entries"),_.Q("design:type",Object)],x4.prototype,"entries",void 0);_.W([_.B2("#input"),_.Q("design:type",Object)],x4.prototype,"inputEl",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],x4.prototype,"dataChanged",null);_.W([_.ic("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],x4.prototype,"valueChangedForBinding",null);
_.W([_.dz("iron-overlay-opened"),_.dz("iron-overlay-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],x4.prototype,"stopPropagation",null);_.W([_.dz("iron-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],x4.prototype,"autoSizeLabel",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],x4.prototype,"label",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],x4);
_.n(x4,"ytd-dropdown-renderer",function(){if(k0r!==void 0)return k0r;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return k0r=N},{mode:1});var ffE;var k4=function(){var N=_.k.apply(this,arguments)||this;N.isConstrainedList=!1;return N};
_.p(k4,_.k);k4.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"}}}};
k4.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
k4.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
k4.prototype.computeViewAllHidden=function(N,t){return N||!t.viewAllEndpoint};
k4.prototype.fillRestIfNoShowMore=k4.prototype.fillRestIfNoShowMore;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],k4.prototype,"ytLazyListBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],k4.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],k4.prototype,"isConstrainedList",void 0);_.W([_.ic("data","canShowMore"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k4.prototype,"fillRestIfNoShowMore",null);_.W([_.en({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],k4);
_.n(k4,"ytd-expanded-shelf-contents-renderer",function(){if(ffE!==void 0)return ffE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ffE=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var nyp;var qX=function(){return _.k.apply(this,arguments)||this};
_.p(qX,_.k);qX.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}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],qX.prototype,"data",void 0);_.W([_.en({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],qX);
_.n(qX,"ytd-feed-channel-filter-header-renderer",function(){if(nyp!==void 0)return nyp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return nyp=N},{mode:1});var Wtf;var rzp;var IfE;var fj=function(){return _.k.apply(this,arguments)||this};
_.p(fj,_.k);_.V=fj.prototype;_.V.onClick=function(N){var t,O=(t=this.data)==null?void 0:t.sectionEndpoint;!_.RM(_.m1(N),this.hostElement,["A".toString()])&&O&&_.or(this.hostElement,"yt-navigate",{endpoint:O})};
_.V.computeHasSectionEndpoint=function(N){return(N==null?void 0:N.sectionEndpoint)!==void 0};
_.V.computeShowHeaderAsLink=function(N){return(N==null?void 0:N.header)!==void 0&&(N==null?void 0:N.sectionEndpoint)!==void 0};
_.V.computeShowSubheaderAsLink=function(N){return(N==null?void 0:N.subheader)!==void 0&&(N==null?void 0:N.sectionEndpoint)!==void 0&&(N==null?void 0:N.header)===void 0};
_.V.getHeaderAsLinkClass=function(N){var t=[],O;(N==null?0:(O=N.headerIcon)==null?0:O.iconType)&&t.push("header-link-active");return t.join(" ")};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],fj.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fj.prototype,"data",void 0);
_.W([_.X({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],fj.prototype,"hasSectionEndpoint",void 0);_.W([_.X({computed:"computeShowHeaderAsLink(data)"}),_.Q("design:type",Boolean)],fj.prototype,"showHeaderAsLink",void 0);_.W([_.X({computed:"computeShowSubheaderAsLink(data)"}),_.Q("design:type",Boolean)],fj.prototype,"showSubheaderAsLink",void 0);_.W([_.en({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],fj);
_.n(fj,"ytd-medical-panel-section-renderer",function(){if(IfE!==void 0)return IfE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return IfE=N},{mode:1});var nj=function(){var N=_.k.apply(this,arguments)||this;N.isExpanded=!1;N.roundedContainer=!0;N.skipRoundingTop=!1;N.toggleExpandableSection=function(){N.isExpanded=!N.isExpanded};
return N};
_.p(nj,_.k);
nj.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]]"}}}}}};
nj.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
nj.prototype.dataChanged=nj.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nj.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],nj.prototype,"isExpanded",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],nj.prototype,"roundedContainer",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],nj.prototype,"skipRoundingTop",void 0);_.W([_.X(),_.Q("design:type",Object)],nj.prototype,"toggleExpandableSection",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nj.prototype,"dataChanged",null);_.W([_.en({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],nj);
_.n(nj,"ytd-medical-panel-content-renderer",function(){if(rzp!==void 0)return rzp;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return rzp=N},{mode:1});_.pE("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Wh=function(){var N=_.k.apply(this,arguments)||this;N.roundedContainer=!0;N.extractOverlay=!1;N.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");N.hasTitle=!1;N.linkIcon="OPEN_IN_NEW";N.isDismissed=!1;return N};
_.p(Wh,_.k);Wh.prototype.onOverlayConditionsChange=function(){var N=_.O6(this.hostElement).querySelector("ytd-info-panel-content-renderer");N&&(N.set("extractOverlay",this.extractOverlay),N.set("roundedContainer",this.roundedContainer))};
Wh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Wh.prototype.computeHasTitle=function(N){return!(N==null||!N.title)};
Wh.prototype.onClick=function(N){var t,O=(t=this.data)==null?void 0:t.headerEndpoint;!_.RM(_.m1(N),this.hostElement,["BUTTON".toString()])&&O&&this.ytComponentBehavior.resolveCommand(O)};
_.cv.Object.defineProperties(Wh.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:N.disableBottomDivider)||!((t=this.data)==null?0:t.title)}}});
Wh.prototype.onOverlayConditionsChange=Wh.prototype.onOverlayConditionsChange;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Wh.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Wh.prototype,"ytdReduxBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Wh.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Wh.prototype,"roundedContainer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Wh.prototype,"extractOverlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Wh.prototype,"amsterdamEnabled",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Q("design:type",Object)],Wh.prototype,"hasTitle",void 0);
_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.background"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Wh.prototype,"background",null);_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.titleStyle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Wh.prototype,"titleStyle",null);
_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.a("data.titleStyle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Wh.prototype,"showLinkIcon",null);_.W([_.X(),_.Q("design:type",String)],Wh.prototype,"linkIcon",void 0);_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Wh.prototype,"hideDivider",null);
_.W([_.X({selectorArgs:["data.dismissStateEntityKey"],selector:function(N,t){N=_.CM(N.entities,"dismissState",t);return(N==null?void 0:N.isDismissed)||(N==null?void 0:N.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(N==null?void 0:N.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Q("design:type",Object)],Wh.prototype,"isDismissed",void 0);_.W([_.gz("roundedContainer","extractOverlay"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Wh.prototype,"onOverlayConditionsChange",null);_.W([_.en({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Wh);
_.n(Wh,"ytd-info-panel-container-renderer",function(){if(Wtf!==void 0)return Wtf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Wtf=N},{mode:1});var lfX;_.pE("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var r7=function(){return _.k.apply(this,arguments)||this};
_.p(r7,_.k);r7.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
r7.prototype.computeStyle=function(N){return N?N:""};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],r7.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Q("design:type",String)],r7.prototype,"titleStyle",void 0);
_.W([_.en({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],r7);
_.td()(r7,"ytd-item-section-header-renderer",function(){if(lfX===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);lfX=N}N=lfX;return N},{allowedProps:["data"],
mode:1});var QVB;var mt_,EyX=function(){return mt_!==void 0?mt_:mt_=document.createElement("template")};
document.head.appendChild(EyX().content);var G0r;_.IF=new _.dk("VOTING_ANIMATION_CONTROLLER_TOKEN");var vya=_.q(function(N){var t=N.data;var O=_.Fy("div"),H=_.Fy("div");N=_.D(_.b$("VOTE_STATUS_NONE",void 0,"YPH5mf"));var A=N.next().value,Z=N.next().value,U=_.cz(yMG,function(){var u;return(u=t())==null?void 0:u.entityKey}),C=_.h("web_enable_voting_animation")||_.h("enable_music_web_cairo_voting_animation");
_.Q8(function(){var u;((u=t().initialState)==null?0:u.status)&&Z(t().initialState.status)});
var F=function(){var u,S,b=(S=(u=t().initialState)==null?void 0:u.votes)!=null?S:0,z;u=(z=t().initialState)==null?void 0:z.status;return u==="VOTE_STATUS_UPVOTED"?b-1:u==="VOTE_STATUS_DOWNVOTED"?b+1:b},g=function(){return A()==="VOTE_STATUS_UPVOTED"?F()+1:A()==="VOTE_STATUS_DOWNVOTED"?F()-1:F()},B=function(u){var S=u?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
Z(S);var b=g(),z=_.cY().resolve(_.BY(_.IF)),w=U();w&&(u&&(w==null?0:w.upvoteDefaultButtonOnTap)?_.xJ(w.upvoteDefaultButtonOnTap,{form:{element:O.value},disableClickTracking:!0}):(w==null?0:w.upvoteToggledButtonOnTap)&&_.xJ(w.upvoteToggledButtonOnTap,{form:{element:O.value},disableClickTracking:!0}));var P;u=(P=w==null?void 0:w.enableOptimisticReordering)!=null?P:t().enableOptimisticReordering;C&&z&&t().itemId&&u&&Rlu(z,t().itemId,b,S)},c=function(u){var S=u?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
Z(S);var b=g(),z=_.cY().resolve(_.BY(_.IF)),w=U();w&&(u&&(w==null?0:w.downvoteDefaultButtonOnTap)?_.xJ(w.downvoteDefaultButtonOnTap,{form:{element:H.value},disableClickTracking:!0}):(w==null?0:w.downvoteToggledButtonOnTap)&&_.xJ(w.downvoteToggledButtonOnTap,{form:{element:H.value},disableClickTracking:!0}));var P;u=(P=w==null?void 0:w.enableOptimisticReordering)!=null?P:t().enableOptimisticReordering;C&&z&&t().itemId&&u&&Rlu(z,t().itemId,b,S)};
N={};N=_.V7("ytVotingViewModelVoteCount",(N.ytVotingViewModelVoteCountDisabled=function(){return t().isDisabled},N));
return _.d("voting-view-model",{class:"ytVotingViewModelHost"},_.d("div",{el:O},_.d(_.iF,{data:function(){var u=_.M(t().upvoteButton,_.iA);return{toggleButtonViewModel:Object.assign({},u,{isToggled:A()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(u){return _.d(_.N3,{data:u.data,
onToggle:B})}})),_.d("div",{class:N},function(){var u,S,b;
return A()==="VOTE_STATUS_UPVOTED"?(u=t().initialState)==null?void 0:u.compactVotesUpvoted:A()==="VOTE_STATUS_DOWNVOTED"?(S=t().initialState)==null?void 0:S.compactVotesDownvoted:(b=t().initialState)==null?void 0:b.compactVotes}),_.d("div",{el:H},_.d(_.iF,{data:function(){var u=_.M(t().downvoteButton,_.iA);
return{toggleButtonViewModel:Object.assign({},u,{isToggled:A()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(u){return _.d(_.N3,{data:u.data,
onToggle:c})}})))},"bd");_.o_(_.q(function(N){var t=N.data;return _.d("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.d("div",{class:_.V7("ytEngagementBarViewModelEngagementBarWrapper",N.className)},_.d(_.iF,{data:function(){return t().actions}},{votingViewModel:vya})))},"cd"),"engagement-bar-view-model",{props:{data:_.$O,
className:_.$O}});var lm=function(){var N=_.k.apply(this,arguments)||this;N.playlistVotingAnimationEnabled=_.h("web_enable_voting_animation");N.downloadProgress=0;N.transferState="TRANSFER_STATE_UNKNOWN";N.downloadState="DOWNLOAD_STATE_UNKNOWN";N.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";N.offlineVideoPolicyExpirationTimestamp=0;return N};
_.p(lm,_.k);_.V=lm.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.V.canReorderChanged=function(){this.persistentDragHandle=_.h("kevlar_playlist_drag_handles")&&this.canReorder};
_.V.onDrag=function(){if(this.thumbnail){var N=_.O6(this.thumbnail).querySelector("yt-image");N&&(N.shouldRenderLazy=!1)}};
_.V.onMenuOverlayChanged=function(N,t){this.menuOpened=t};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.V.onContentsTap=function(N){var t,O=(t=this.data)==null?void 0:t.serviceEndpoints;if(O&&O.length===1&&_.M(O[0],Bgt)&&!_.RM(_.m1(N),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(O[0]);else{var H;(t=(H=this.data)==null?void 0:H.navigationEndpoint)&&_.h("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?JzQ(_.cY().resolve(_.kf),t):(_.Ry().playlistSuggestionsShelfActivation=
!0,_.oyB(_.cY().resolve(_.kf),t)):t&&!_.RM(_.m1(N),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.h("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.or(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t))}};
_.V.computeStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(N){return N==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.V.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=Yay(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.V.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.V.dataChanged=function(){if(this.data){var N,t,O,H=((N=this.downloadRenderData)==null?void 0:N.badges)&&((t=this.downloadRenderData)==null?void 0:t.badges)!==((O=this.data)==null?void 0:O.badges),A,Z,U;N=((A=this.downloadRenderData)==null?void 0:A.thumbnailOverlays)&&((Z=this.downloadRenderData)==null?void 0:Z.thumbnailOverlays)!==((U=this.data)==null?void 0:U.thumbnailOverlays);(!this.downloadRenderData||H||N)&&this.downloadStateChanged()}};
_.V.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var N,t,O=(N=this.data.menu)==null?void 0:(t=N.menuRenderer)==null?void 0:t.items;if(O)for(N=_.D(O),t=N.next();!t.done;t=N.next())if(t=t.value,O=void 0,_.M((O=t.menuServiceItemRenderer)==null?void 0:O.serviceEndpoint,_.CY)){var H=O=void 0,A=void 0;t=(O=t)==null?void 0:(H=O.menuServiceItemRenderer)==null?void 0:(A=H.serviceEndpoint)==null?void 0:A.playlistEditEndpoint;A=H=void 0;if(O=(H=t)==null?void 0:(A=H.actions)==null?void 0:
A[0])H=void 0,O.setVideoId=(H=this.data)==null?void 0:H.setVideoId;A=H=O=void 0;if(t=(O=t)==null?void 0:(H=O.clientActions)==null?void 0:(A=H[0])==null?void 0:A.playlistRemoveVideosAction)O=void 0,t.setVideoIds=[(O=this.data)==null?void 0:O.setVideoId]}}};
_.cv.Object.defineProperties(lm.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
lm.prototype.setVideoIdChanged=lm.prototype.setVideoIdChanged;lm.prototype.dataChanged=lm.prototype.dataChanged;lm.prototype.downloadStateChanged=lm.prototype.downloadStateChanged;lm.prototype.onMenuOverlayChanged=lm.prototype.onMenuOverlayChanged;lm.prototype.canReorderChanged=lm.prototype.canReorderChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],lm.prototype,"ytdReduxBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],lm.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],lm.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],lm.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lm.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lm.prototype,"canReorder",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lm.prototype,"menuOpened",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lm.prototype,"handleIsHovered",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lm.prototype,"persistentDragHandle",void 0);_.W([_.X(),_.Q("design:type",Object)],lm.prototype,"downloadRenderData",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],lm.prototype,"styleType",void 0);_.W([_.X({computed:"computeThumbnailWidth(data.style)"}),_.Q("design:type",Number)],lm.prototype,"thumbnailWidth",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],lm.prototype,"isDownloads",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lm.prototype,"playlistVotingAnimationEnabled",void 0);
_.W([_.X({selector:qE,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],lm.prototype,"downloadProgress",void 0);_.W([_.X(),_.Q("design:type",Number)],lm.prototype,"relativeDateReference",void 0);_.W([_.X({selector:_.Xo,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],lm.prototype,"transferState",void 0);_.W([_.X({selector:RtO,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],lm.prototype,"downloadState",void 0);
_.W([_.X({selector:PLt,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],lm.prototype,"offlinePolicyAction",void 0);_.W([_.X({selector:Xuv,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],lm.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.W([_.X({selector:k6S,selectorArgs:["data.videoId"]}),_.Q("design:type",Object)],lm.prototype,"entityInfo",void 0);_.W([_.X({selector:_.w8}),_.Q("design:type",Boolean)],lm.prototype,"miniplayerIsActive",void 0);
_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],lm.prototype,"playlistVideoId",null);_.W([_.B2("#thumbnail"),_.Q("design:type",Object)],lm.prototype,"thumbnail",void 0);_.W([_.ic("canReorder"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lm.prototype,"canReorderChanged",null);
_.W([_.dz("yt-menu-overlay-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Boolean]),_.Q("design:returntype")],lm.prototype,"onMenuOverlayChanged",null);_.W([_.ic("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lm.prototype,"downloadStateChanged",null);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lm.prototype,"dataChanged",null);_.W([_.ic("data.setVideoId"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lm.prototype,"setVideoIdChanged",null);_.W([_.en({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],lm);
_.n(lm,"ytd-playlist-video-renderer",function(){if(G0r!==void 0)return G0r;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);N.content.insertBefore(EyX().content.cloneNode(!0),N.content.firstChild);return G0r=N},{mode:1});var sV0;var Qj=function(){return _.k.apply(this,arguments)||this};
_.p(Qj,_.k);_.W([_.X(),_.Q("design:type",Object)],Qj.prototype,"data",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Qj.prototype,"rendererBehavior",void 0);_.W([_.en({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Qj);
_.n(Qj,"ytd-premium-browse-footer-renderer",function(){if(sV0!==void 0)return sV0;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return sV0=N},{mode:1});var NjR;var mi=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return N};
_.p(mi,_.k);_.V=mi.prototype;_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.handleDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.V.computeHeaderLogoThumbnail=function(N,t){if(N)return t?N.darkLogo:N.lightLogo};
_.V.computeHeaderLogoHeight=function(N,t){var O,H,A;return(N=(O=this.computeHeaderLogoThumbnail(N,t))==null?void 0:(H=O.thumbnails)==null?void 0:(A=H[0])==null?void 0:A.height)&&N%31===0?"31":"24"};
_.V.computeHeaderLogoMarginBottom=function(N,t){return this.computeHeaderLogoHeight(N,t)==="24"?"0":"-7"};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],mi.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],mi.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],mi.prototype,"isDarkTheme",void 0);_.W([_.X({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Q("design:type",Object)],mi.prototype,"themeLogo",void 0);
_.W([_.X({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Q("design:type",String)],mi.prototype,"logoHeight",void 0);_.W([_.X({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Q("design:type",String)],mi.prototype,"logoMarginBottom",void 0);_.W([_.en({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],mi);
_.n(mi,"ytd-primetime-promo-header-renderer",function(){if(NjR!==void 0)return NjR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return NjR=N},{mode:1});var tMB;_.ER=_.q(function(N){var t=N.className;var O=N.data;var H=N.isOverlay;var A=N.maxLinesOverride;var Z=N.useMediumText;var U=function(){return O().alwaysShowTruncationText},C=function(){return O().truncationText},F=function(){return Z!==void 0&&Z()?"medium":"small"},g=function(){return H!==void 0&&H()?"overlay":"default"},B=function(){var b,z;
return(z=(b=_.M(O().rendererContext,_.ue))==null?void 0:b.label)!=null?z:""};
N=_.D(_.b$(!1,void 0,"llBUm"));var c=N.next().value,u=N.next().value;N=_.Ui(function(){O().expandOnTap&&u(!c());return!1});
var S={};return _.d("yt-description-preview-view-model",{el:_.E4(_.wZ(function(){return O().rendererContext})),
class:_.V7("ytDescriptionPreviewViewModelHost",t,(S.ytDescriptionPreviewViewModelClickable=function(){var b;return!((b=_.M(O().rendererContext,_.ep))==null||!b.onTap)},S.ytDescriptionPreviewViewModelIsOverlay=H,S)),
"on:click":N},_.d(_.y,{cond:function(){return O().description},
then:function(b){return _.d(_.y,{cond:c,then:function(){var z={};return _.d("div",{class:_.V7("ytDescriptionPreviewViewModelDescription",(z.ytDescriptionPreviewViewModelDescriptionMediumText=Z,z))},_.d(_.cu,{text:b}))},
else:function(){return _.d(OQQ,{text:b,alwaysShowTruncationText:U,truncationText:C,maxLines:function(){var z;return(z=A==null?void 0:A())!=null?z:O().maxLines},
textStyle:g,accessibilityLabel:B,textSize:F})}})}}))},"dd");
_.ER.idomCompat=!0;var HBp=_.q(function(N){var t=_.Ui(function(A){var Z;(Z=N.onClick)==null||Z.call(N,A)}),O={},H={};
return _.d("yt-shelf-header-layout",{class:_.V7("yt-shelf-header-layout",(O["yt-shelf-header-layout--disable-horizontal-padding"]=N.disableHorizontalPadding,O["yt-shelf-header-layout--disable-vertical-padding"]=N.disableVerticalPadding,O["yt-shelf-header-layout--responsive"]=N.useResponsiveLayout,O["yt-shelf-header-layout--narrow"]=function(){var A,Z;return((A=N.useResponsiveLayout)==null?void 0:A.call(N))&&((Z=N.forceSmallLayout)==null?void 0:Z.call(N))},O["yt-shelf-header-layout--is-overlay"]=N.isOverlay,
O["yt-shelf-header-layout--tappable"]=N.isInteractive,O["yt-shelf-header-layout--optional-medium-layout-padding"]=N.useUpdatedPadding,O)),
"on:click":t,tabindex:function(){var A;return((A=N.isInteractive)==null?0:A.call(N))?0:void 0}},_.d("div",{class:"yt-shelf-header-layout__header-row"},_.d(_.y,{cond:N.leadingIcon,
then:function(A){return _.d("div",{class:"yt-shelf-header-layout__leading-icon"},_.d(_.dq,{icon:A}))},
else:function(){return _.d(_.y,{cond:N.hasLeadingImage,then:function(){var A,Z={};return _.d("div",{class:_.V7("yt-shelf-header-layout__leading-image",(Z["yt-shelf-header-layout__leading-image--circular-image"]=N.circularImage,Z))},(A=N.leadingImage)==null?void 0:A.call(N))}})}}),_.d("div",{class:"yt-shelf-header-layout__label-container"},_.d(_.y,{cond:N.hasSuperlabel,
then:function(){var A;return _.d("div",{class:"yt-shelf-header-layout__superlabel"},(A=N.superlabel)==null?void 0:A.call(N))}}),_.d("div",{class:"yt-shelf-header-layout__title-row"},_.d(OBa,{text:N.title,
className:_.V7("yt-shelf-header-layout__title",(H["yt-shelf-header-layout__title--small-title"]=N.forceSmallLayout,H)),tagLevel:N.tagLevel}),_.d(_.y,{cond:N.hasDetail,then:function(){var A;return _.d("div",{class:"yt-shelf-header-layout__detail"},(A=N.detail)==null?void 0:A.call(N))}})),_.d(_.y,{cond:N.hasSublabel,
then:function(){var A;return _.d("div",{class:"yt-shelf-header-layout__sublabel"},(A=N.sublabel)==null?void 0:A.call(N))}})),_.d(_.y,{cond:N.hasTrailingActions,
then:function(){var A;return _.d("div",{class:"yt-shelf-header-layout__trailing-actions"},(A=N.trailingActions)==null?void 0:A.call(N))}})),_.d(_.y,{cond:N.hasBottomAccessory,
then:function(){var A;return _.d("div",{class:"yt-shelf-header-layout__bottom-accessory"},(A=N.bottomAccessory)==null?void 0:A.call(N))}}))},"ed");
HBp.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var OBa=_.q(function(N){var t=N.text;var O=N.className;var H=N.tagLevel;return _.d(_.WZ,null,_.d(_.qC,{when:function(){return(H==null?void 0:H())===0}},function(){return _.d("h2",{class:O},t())}),_.d(_.qC,{when:function(){return(H==null?void 0:H())===1}},function(){return _.d("h3",{class:O},t())}),_.d(_.qC,{when:function(){return(H==null?void 0:H())===2}},function(){return _.d("h4",{class:O},t())}),_.d(_.fL,null,function(){return _.d("h2",{class:O},t())}))},"fd");var VM_,AQu,ZBr;_.GX=_.q(function(N){var t=N.className;var O=N.data;var H=N.disableHorizontalPadding;var A=N.disableVerticalPadding;var Z=N.forceSmallLayout;var U=N.useResponsiveLayout;var C=N.isOverlay;N=N.useUpdatedPadding;return _.d("yt-section-header-view-model",{class:_.V7("ytSectionHeaderViewModelHost",t),style:_.FM({"background-color":function(){return By(O().backgroundColor)?_.TV(By(O().backgroundColor)):void 0}})},_.d(HBp,{hasDetail:!1,
title:function(){return _.d(_.cu,{text:function(){return O().headline}})},
hasTitle:!0,sublabel:function(){return _.d(AQu,{data:O})},
hasSublabel:function(){return!!O().sublabel||!!O().bottomBadge},
superlabel:function(){return _.d(ZBr,{data:O})},
hasSuperlabel:function(){return!!O().superlabel||!!O().topBadge},
leadingImage:function(){return _.d(VM_,{leadingAccessory:function(){return O().leadingAccessory}})},
hasLeadingImage:function(){return!!O().leadingAccessory},
trailingActions:function(){return _.d(_.iF,{data:function(){return O().trailingActions}},{flexibleActionsViewModel:_.Co})},
hasTrailingActions:function(){return!!O().trailingActions},
disableHorizontalPadding:function(){return(H==null?void 0:H())||O().disableHorizontalPadding},
disableVerticalPadding:A,forceSmallLayout:Z,useResponsiveLayout:U,isOverlay:C,isInteractive:function(){return!!_.a8(O().rendererContext)},
onClick:function(F){if(_.TE(O().rendererContext)){var g=_.a8(O().rendererContext);g&&_.eF(g,{form:{element:F.target,event:F}})}},
bottomAccessory:function(){return _.d(_.iF,{data:function(){return O().bottomAccessory}},{descriptionPreviewViewModel:function(F){return _.d(_.ER,{data:F.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!O().bottomAccessory},
useUpdatedPadding:N}))},"gd");
VM_=_.q(function(N){var t=N.leadingAccessory;return _.d(_.BZ,null,_.d(_.y,{cond:function(){var O;return(O=t().image)!=null?O:_.nx(t().themedImage)},
then:function(O){return _.d(_.Qt,{data:O,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.d(_.y,{cond:function(){return _.M(t().avatar,_.Pz)},
then:function(O){return _.d(_.Dv,{data:O})}}))},"hd");
AQu=_.q(function(N){var t=N.data;return _.d(_.BZ,null,_.d(_.y,{cond:function(){return _.M(t().bottomBadge,dRr)},
then:function(O){var H={};return _.d(_.L_,{data:O,class:_.V7((H.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!O()&&!!t().sublabel},H))})}}),_.d(_.y,{cond:function(){return t().sublabel},
then:function(O){return _.d(_.cu,{text:O})}}))},"id");
ZBr=_.q(function(N){var t=N.data;return _.d(_.BZ,null,_.d(_.y,{cond:function(){return _.M(t().topBadge,dRr)},
then:function(O){var H={};return _.d(_.L_,{data:O,class:_.V7((H.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!O()&&!!t().superlabel},H))})}}),_.d(_.y,{cond:function(){return t().superlabel},
then:function(O){return _.d(_.cu,{text:O})}}))},"jd");_.o_(_.GX,"yt-section-header-view-model",{props:{data:_.$O,className:_.$O,disableHorizontalPadding:_.$O,disableVerticalPadding:_.$O,forceSmallLayout:_.$O,useResponsiveLayout:_.$O,isOverlay:_.$O,useUpdatedPadding:_.$O}});_.pE("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var RF=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return N};
_.p(RF,_.k);_.V=RF.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.V.onDataChange=function(){var N=this;_.yB(this,function(){N.updateItemVisibility()})};
_.V.onUpdateElementsPerRowAction=function(N){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N,this.updateItemVisibility())};
_.V.updateItemVisibility=function(){var N=this;this.data&&this.data.panels&&_.O6(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(t,O){t.hidden=O>N.elementsPerRow-1})};
_.V.requestElementsPerRow=function(){_.or(this.hostElement,"yt-request-elements-per-row")};
RF.prototype.onDataChange=RF.prototype.onDataChange;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],RF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],RF.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],RF.prototype,"actionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],RF.prototype,"data",void 0);_.W([_.X({value:3}),_.Q("design:type",Number)],RF.prototype,"elementsPerRow",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RF.prototype,"onDataChange",null);_.W([_.en({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],RF);
_.n(RF,"ytd-primetime-promo-renderer",function(){if(tMB!==void 0)return tMB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tMB=N},{mode:1});var D5E;var vh=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return N};
_.p(vh,_.k);vh.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
vh.prototype.handleButtonRefreshAction=function(N){if(N=_.M(N,e2_))this.set("data.button",N.membershipButton),this.notifyPath("data.button")};
_.cv.Object.defineProperties(vh.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:(t=N.avatars)==null?void 0:t.slice(0,8))||[]}}});
_.W([_.X(),_.Q("design:type",Object)],vh.prototype,"data",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],vh.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vh.prototype,"rendererBehavior",void 0);_.W([_.a("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],vh.prototype,"avatars",null);
_.W([_.en({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],vh);
_.n(vh,"ytd-recognition-shelf-renderer",function(){if(D5E!==void 0)return D5E;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return D5E=N},{mode:1});var U50;var CiS;var J9=function(){var N=_.k.apply(this,arguments)||this;N.modernButtons=_.h("web_modern_buttons");return N};
_.p(J9,_.k);_.V=J9.prototype;
_.V.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.V.dataChanged=function(){this.collapsed=!0};
_.V.computeVisibleItems=function(N,t){return N!==void 0&&N.items?t?N.items.slice(0,this.data.collapsedItemCount):N.items:[]};
_.V.computeHideShowMore=function(N,t,O){return N>=t||!O};
_.V.computeHideShowAll=function(N,t,O){return!(N&&t)||O};
_.V.onMoreClick=function(){this.collapsed=!1};
_.cv.Object.defineProperties(J9.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.h("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.So("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.h("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
J9.prototype.dataChanged=J9.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],J9.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],J9.prototype,"isSearch",void 0);
_.W([_.X({computed:"computeVisibleItems(data,collapsed)"}),_.Q("design:type",Array)],J9.prototype,"visibleItems",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],J9.prototype,"collapsed",void 0);_.W([_.X({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Q("design:type",Boolean)],J9.prototype,"hideShowMore",void 0);
_.W([_.X({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Q("design:type",Boolean)],J9.prototype,"hideShowAll",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],J9.prototype,"modernButtons",void 0);_.W([_.a("isSearch"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],J9.prototype,"typographyBump",null);
_.W([_.a("isSearch"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],J9.prototype,"lockupExperiments",null);_.W([_.a("isSearch"),_.Q("design:type",String),_.Q("design:paramtypes",[])],J9.prototype,"thumbnailWidth",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],J9.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],J9);
_.n(J9,"ytd-vertical-list-renderer",function(){if(CiS!==void 0)return CiS;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return CiS=N},{mode:1});var K4u=_.mp(["#"]);_.pE("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var oF=function(){var N=_.k.apply(this,arguments)||this;N.isConstrainedList=!1;return N};
_.p(oF,_.k);_.V=oF.prototype;
_.V.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.V.computeThumbnailStyle=function(N){return N||""};
_.V.computePlaceAnnotationUnderTitle=function(){var N;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((N=this.data)==null?void 0:N.thumbnailStyle)||"")};
_.V.computeHrefWithDefault=function(N){return this.ytComponentBehavior.computeHref_(N)||_.Uoz(K4u)};
_.V.computeIsPromoShelf=function(N){var t;return(N=N==null?void 0:(t=N[0])==null?void 0:t.metadataBadgeRenderer)?N.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.V.computePlaceBadgeBesideTitle=function(N){var t;return(N==null?0:(t=N[0])==null?0:t.metadataBadgeRenderer)?!this.computeIsPromoShelf(N):!1};
_.V.computeMenuIcon=function(N){return this.computeIsPromoShelf(N)?"yt-icons:more_vert":"yt-icons:more"};
_.V.onDataChange=function(){var N,t;((N=this.data)==null?0:(t=N.content)==null?0:t.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.V.onLockupRequested=function(N){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&N.detail&&N.detail.videoIds){for(var t=this.data.content.gridRenderer.items,O=new Set,H=_.D(N.detail.videoIds),A=H.next();!A.done;A=H.next())O.add(A.value);N.detail.returnValue=t.filter(function(Z){return Z.gridVideoRenderer&&Z.gridVideoRenderer.videoId&&O.has(Z.gridVideoRenderer.videoId)}).map(function(Z){return Z.gridVideoRenderer})}};
_.V.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
oF.prototype.onLockupRequested=oF.prototype.onLockupRequested;oF.prototype.onDataChange=oF.prototype.onDataChange;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],oF.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],oF.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.JV),_.Q("design:type",Object)],oF.prototype,"ironResizableBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oF.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],oF.prototype,"isSearch",void 0);_.W([_.X(),_.Q("design:type",Object)],oF.prototype,"isConstrainedList",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("kevlar_fluid_dismiss")}}),
_.Q("design:type",Boolean)],oF.prototype,"enableFluidDismiss",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Q("design:type",String)],oF.prototype,"thumbnailStyle",void 0);_.W([_.X({computed:"computeMenuIcon(data.badges)"}),_.Q("design:type",String)],oF.prototype,"menuIcon",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.Q("design:type",Boolean)],oF.prototype,"featuredPromo",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oF.prototype,"onDataChange",null);_.W([_.dz("yt-lockup-requested"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],oF.prototype,"onLockupRequested",null);_.W([_.en({is:"ytd-shelf-renderer",disableElementRegistration:!0})],oF);
_.n(oF,"ytd-shelf-renderer",function(){if(U50!==void 0)return U50;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return U50=N},{mode:1});var F4S;var sR=function(){return _.k.apply(this,arguments)||this};
_.p(sR,_.k);sR.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.cv.Object.defineProperties(sR.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sR.prototype,"data",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],sR.prototype,"isPlaylist",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],sR.prototype,"isClipList",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],sR.prototype,"isPlaylistPageWithFilters",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],sR.prototype,"hasTitle",null);_.W([_.X(),_.a("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],sR.prototype,"isRightAligned",null);
_.W([_.en({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],sR);
_.n(sR,"ytd-sort-filter-header-renderer",function(){if(F4S!==void 0)return F4S;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return F4S=N},{mode:1});var d5p;var NA=function(){var N=_.k.apply(this,arguments)||this;N.enableRightArrowHidden=_.h("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return N};
_.p(NA,_.k);NA.prototype.attached=function(){var N=this;this.enableRightArrowHidden&&(this.JSC$16698_throttledOnResize=new _.KE(function(){var t;(t=N.ytdHorizontalListBehavior)==null||t.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var t;
(t=N.JSC$16698_throttledOnResize)==null||t.fire()}),this.resizeObserver.observe(this.hostElement))};
NA.prototype.detached=function(){if(this.enableRightArrowHidden){var N;(N=this.resizeObserver)==null||N.disconnect();var t;(t=this.JSC$16698_throttledOnResize)==null||t.dispose()}};
NA.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]]"}}}}}};
NA.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.cv.Object.defineProperties(NA.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.h("enable_creator_details_shelf_m2")){var N=[],t;((t=this.data)==null?0:t.creatorVideosButton)&&N.push(this.data.creatorVideosButton);var O;((O=this.data)==null?0:O.creatorAboutButton)&&N.push(this.data.creatorAboutButton);t=_.D(this.data.creatorCustomUrlButtons||[]);for(O=t.next();!O.done;O=t.next())N.push(O.value);return N}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.h("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.a2.YtdHorizontalListBehavior),_.Q("design:type",Object)],NA.prototype,"ytdHorizontalListBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],NA.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],NA.prototype,"engagementPanel",void 0);
_.W([_.X(),_.Q("design:type",Object)],NA.prototype,"enableRightArrowHidden",void 0);_.W([_.a("enableRightArrowHidden","atEnd"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],NA.prototype,"hideRightArrow",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],NA.prototype,"creatorCustomUrlButtons",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data","creatorCustomUrlButtons"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],NA.prototype,"showCreatorCustomUrlButtons",null);_.W([_.a("showCreatorCustomUrlButtons"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],NA.prototype,"channelAvatarSize",null);_.W([_.en({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],NA);
_.n(NA,"ytd-video-description-infocards-section-renderer",function(){if(d5p!==void 0)return d5p;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return d5p=N},{mode:_.O4("kevlar_poly_si_batch_j067")?1:2});var g_B;var t1=function(){return _.k.apply(this,arguments)||this};
_.p(t1,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],t1.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.infoIcon)"}),_.Q("design:type",Object)],t1.prototype,"infoIcon",void 0);_.W([_.en({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],t1);
_.n(t1,"ytd-eom-settings-disclaimer-renderer",function(){if(g_B!==void 0)return g_B;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return g_B=N},{mode:1});var yQY;var OD=function(){return _.k.apply(this,arguments)||this};
_.p(OD,_.k);_.cv.Object.defineProperties(OD.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.suppressPaddingDisclaimer)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],OD.prototype,"componentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],OD.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],OD.prototype,"suppressPaddingDisclaimer",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],OD);
_.n(OD,"ytd-product-list-header-renderer",function(){if(yQY!==void 0)return yQY;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yQY=N},{mode:1});var BjE;var Hj=function(){return _.k.apply(this,arguments)||this};
_.p(Hj,_.k);Hj.prototype.computeThumbnailStyle=function(N){if(N&&(N=_.aI(N)))return"background-color:"+N+";"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Hj.prototype,"rendererBehaviors",void 0);_.W([_.X(),_.Q("design:type",Object)],Hj.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Hj);
_.n(Hj,"ytd-hashtag-tile-renderer",function(){if(BjE!==void 0)return BjE;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return BjE=N},{mode:1});var cQB;var A1=function(){return _.k.apply(this,arguments)||this};
_.p(A1,_.k);A1.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}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],A1.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],A1);
_.n(A1,"ytd-sponsorships-alert-renderer",function(){if(cQB!==void 0)return cQB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return cQB=N},{mode:1});var $5f;var ZV=function(){return _.k.apply(this,arguments)||this};
_.p(ZV,_.k);ZV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.cv.Object.defineProperties(ZV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.W([_.Y(_.Kc),_.Q("design:type",Object)],ZV.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],ZV.prototype,"ytdLockupBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.W([_.X({selector:_.wq}),_.Q("design:type",Object)],ZV.prototype,"isGridViewEnabled",void 0);
_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ZV.prototype,"watchFeedBigThumbs",null);_.W([_.a("isGridViewEnabled"),_.X({reflectToAttribute:!0}),_.Q("design:type",String),_.Q("design:paramtypes",[])],ZV.prototype,"thumbnailWidth",null);_.W([_.X(),_.Q("design:type",Object)],ZV.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],ZV);
_.n(ZV,"ytd-compact-movie-renderer",function(){if($5f!==void 0)return $5f;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return $5f=N},{mode:1});var jTZ;var iBZ;var uCZ=_.Ro("HTML_DIR")==="rtl",Vg=function(){var N=_.k.apply(this,arguments)||this;N.engagementPanel=!1;N.maxLines=2;N.expandButtonOffset=0;N.showExpandButton=!1;N.isTruncated=!1;N.isExpanded=!1;N.currentSnippetType=2;N.alwaysShowExpandButton=!1;N.JSC$16715_lastWidth=NaN;N.observer=null;N.left=0;N.right=0;N.mid=0;N.longestSnippetLength=0;N.isFinalSnippet=!1;N.isFirstMutation=!1;N.isResetMutation=!1;N.OVERFLOW_THRESHOLD=5;return N};
_.p(Vg,_.k);_.V=Vg.prototype;_.V.onClick=function(N){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.RM(_.m1(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;if((t=window.getSelection())==null||!t.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.V.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.V.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.V.updateTextOnSnippetTypeChange=function(){_.h("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.V.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.V.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.J_(new _.fF("AttributedSnippet is empty when the description is not empty",this.text))};
_.V.mutationCallback=function(){if(this.observer!=null){var N=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var t=Math.floor(N*this.maxLines/8);this.setSnippetText(this.text,t);t!==0||this.attributedTextIsEmpty()||_.J_(new _.fF("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;N=N*this.maxLines/8;this.left=0;var O;this.right=Math.min(N*2,(O=(t=this.simpleText)==null?void 0:t.length)!=null?O:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.V.mutationObserve=function(N){var t=this;this.observer||(this.observer=new MutationObserver(function(){t.mutationCallback()}));
this.observer.observe(N,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.V.attached=function(){var N=this;_.yB(this,function(){N.resize()})};
_.V.isExpandedChanged=function(){_.or(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.V.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.V.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var N="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((uCZ?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",N);this.snippetContainer.style.setProperty("mask-image",
N)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(uCZ?"right":"left",this.expandButtonOffset+"px")};
_.V.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.V.setSnippetText=function(N,t){N||(N={});if(_.rF(N)){var O=nC(N,t);O.attachmentRuns||O.commandRuns||O.decorationRuns||O.styleRuns||O.alignment||O.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:nC(N,t),headerRuns:Yml(t,this.headerRuns)},this.currentSnippetType=0):_.J_(new _.fF("Tried to set snippet text when HTML element was null",N)):(this.plainSnippetText.textContent=q2(N.content||"",t),this.currentSnippetType=2)}else{a:{O=Bwl(N,t);if(O.runs){O=_.D(O.runs);for(var H=
O.next();!H.done;H=O.next())if(H=H.value,H.bold||H.deemphasize||H.italics||H.strikethrough||H.textColor||H.navigationEndpoint||_.M(H,YJ)){O=!0;break a}}O=!1}O?this.formattedSnippetText?(this.formattedSnippetText.text=Bwl(N,t),this.currentSnippetType=1):_.J_(new _.fF("Tried to set snippet text when HTML element was null",N)):(this.plainSnippetText.textContent=q2(_.Gv(N),t),this.currentSnippetType=2)}};
_.V.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.V.attributedTextIsEmpty=function(){var N=this.text;if(!_.rF(N))return!0;var t;return((t=N.content)==null?void 0:t.length)===0?!0:!1};
_.V.resize=function(N){if(this.snippetText){if(N===void 0?0:N)this.JSC$16715_lastWidth=NaN;var t=this.hostElement.offsetWidth;if(t!==this.JSC$16715_lastWidth&&!this.isExpanded)if(this.JSC$16715_lastWidth=t,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;N=0;var O,H;t=Math.min(t*this.maxLines/8*2,(H=(O=this.simpleText)==null?void 0:O.length)!=null?H:0)-1;for(O=0;N<=t;)H=Math.floor(N+(t-N)/2),this.setSnippetText(this.text,H),this.isOverflowing()?t=H-1:(N=H+1,O=H);this.setSnippetText(this.text,O);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.V.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.V.onExpandClick=function(){var N=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.h("inline_expander_reset_focus_killswitch")||_.yB(this,function(){var t;((t=_.cY().resolve(_.BY(_.z6)))==null?0:t.isKeyBoardInUse())&&_.Cb(N.hostElement)});
_.or(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.V.onCollapseClick=function(){this.collapse();_.or(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.V.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.V.computeExpandButtonOffset=function(){var N=this.expandSizer;return N?uCZ?N.offsetParent?N.offsetParent.offsetWidth-N.offsetWidth-N.offsetLeft:0:N.offsetLeft:0};
_.cv.Object.defineProperties(Vg.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.rF(this.text)?this.text.content||"":_.Gv(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 _.rF(this.text)?!0:this.text&&_.h("web_replace_formatted_with_attributed_string")&&NBO(this.text)?(this.text=_.zb(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}}});
Vg.prototype.onTextChanged=Vg.prototype.onTextChanged;Vg.prototype.updateMaskAndExpandButtonOffset=Vg.prototype.updateMaskAndExpandButtonOffset;Vg.prototype.updateSnippetContainerMaxHeight=Vg.prototype.updateSnippetContainerMaxHeight;Vg.prototype.isExpandedChanged=Vg.prototype.isExpandedChanged;Vg.prototype.updateTextOnSnippetTypeChange=Vg.prototype.updateTextOnSnippetTypeChange;Vg.prototype.updateIsFormattedExpanded=Vg.prototype.updateIsFormattedExpanded;Vg.prototype.updateIsAttributedExpanded=Vg.prototype.updateIsAttributedExpanded;
Vg.prototype.onClick=Vg.prototype.onClick;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Vg.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Vg.prototype,"text",void 0);_.W([_.X(),_.Q("design:type",Array)],Vg.prototype,"headerRuns",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Vg.prototype,"engagementPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],Vg.prototype,"maxLines",void 0);
_.W([_.X(),_.Q("design:type",String)],Vg.prototype,"expandLabel",void 0);_.W([_.X(),_.Q("design:type",String)],Vg.prototype,"collapseLabel",void 0);_.W([_.X(),_.Q("design:type",Object)],Vg.prototype,"expandCommand",void 0);_.W([_.X(),_.Q("design:type",Object)],Vg.prototype,"expandButtonOffset",void 0);_.W([_.a("text"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Vg.prototype,"simpleText",null);
_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Vg.prototype,"onClick",null);_.W([_.a("text","isExpanded"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vg.prototype,"expandedText",null);_.W([_.a("headerRuns","isExpanded"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vg.prototype,"expandedHeaderRuns",null);
_.W([_.a("text"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Vg.prototype,"hasAttributedStringText",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Vg.prototype,"showExpandButton",void 0);_.W([_.a("collapseLabel","isExpanded"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vg.prototype,"showCollapseButton",null);_.W([_.X(),_.Q("design:type",Object)],Vg.prototype,"isTruncated",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Vg.prototype,"isExpanded",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Vg.prototype,"isAttributedExpanded",void 0);_.W([_.gz("isExpanded","hasAttributedStringText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"updateIsAttributedExpanded",null);_.W([_.X(),_.Q("design:type",Boolean)],Vg.prototype,"isFormattedExpanded",void 0);
_.W([_.gz("isExpanded","hasAttributedStringText"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"updateIsFormattedExpanded",null);_.W([_.X(),_.Q("design:type",Number)],Vg.prototype,"currentSnippetType",void 0);_.W([_.a("currentSnippetType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vg.prototype,"useAttributedSnippet",null);
_.W([_.a("currentSnippetType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vg.prototype,"useFormattedSnippet",null);_.W([_.a("currentSnippetType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Vg.prototype,"usePlainSnippet",null);_.W([_.X(),_.Q("design:type",Object)],Vg.prototype,"alwaysShowExpandButton",void 0);_.W([_.gz("currentSnippetType"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"updateTextOnSnippetTypeChange",null);
_.W([_.X(),_.Q("design:type",Object)],Vg.prototype,"attributedSnippetText",void 0);_.W([_.B2("#snippet"),_.Q("design:type",HTMLElement)],Vg.prototype,"snippetContainer",void 0);_.W([_.B2("#snippet-text"),_.Q("design:type",HTMLElement)],Vg.prototype,"snippetText",void 0);_.W([_.B2("#plain-snippet-text"),_.Q("design:type",HTMLElement)],Vg.prototype,"plainSnippetText",void 0);_.W([_.B2("#formatted-snippet-text"),_.Q("design:type",Object)],Vg.prototype,"formattedSnippetText",void 0);
_.W([_.B2("#attributed-snippet-text"),_.Q("design:type",Object)],Vg.prototype,"attributedSnippetTextEl",void 0);_.W([_.B2("#expand"),_.Q("design:type",HTMLElement)],Vg.prototype,"expandButton",void 0);_.W([_.B2("#expand-sizer"),_.Q("design:type",HTMLElement)],Vg.prototype,"expandSizer",void 0);_.W([_.ic("isExpanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"isExpandedChanged",null);
_.W([_.gz("isExpanded","maxLines"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"updateSnippetContainerMaxHeight",null);_.W([_.gz("isTruncated","showExpandButton","expandButtonOffset"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"updateMaskAndExpandButtonOffset",null);
_.W([_.ic("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vg.prototype,"onTextChanged",null);_.W([_.en({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Vg);
_.n(Vg,"ytd-text-inline-expander",function(){if(iBZ===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);iBZ=N}N=iBZ;return N},{mode:2});var DV=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return N};
_.p(DV,_.k);DV.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
DV.prototype.handleUpdateDescriptionAction=function(N){if(N=_.M(N,_.ntX))if(N.attributedDescription)this.set("data.attributedDescriptionBodyText",N.attributedDescription);else if(N.description){var t;((t=this.data)==null?0:t.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.zb(N.description)):this.set("data.descriptionBodyText",N.description)}};
_.cv.Object.defineProperties(DV.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.attributedDescriptionBodyText)||!((t=this.data)==null||!t.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null?0:N.collapsedLineCount){var t;return(t=this.data)==null?void 0:t.collapsedLineCount}N=_.uP("web_watch_description_collapsed_default_lines",12);if(_.h("ww_desc_line_page_size_ks"))return N;t=Math.round(_.$H().height*_.uP("web_watch_description_screen_height_percentage",.5)/20);return Math.max(t,N)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return(O=(N=this.data)==null?void 0:N.descriptionBodyText)!=null?O:(t=this.data)==null?void 0:t.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.sourceAttributions}}});
DV.prototype.panelContentVisibleChanged=DV.prototype.panelContentVisibleChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],DV.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],DV.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DV.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],DV.prototype,"panelContentVisible",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DV.prototype,"engagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],DV.prototype,"shortsPanel",void 0);_.W([_.B2("#inline-expander"),_.Q("design:type",Object)],DV.prototype,"inlineExpander",void 0);
_.W([_.gz("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DV.prototype,"panelContentVisibleChanged",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],DV.prototype,"hasDescriptionText",null);_.W([_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],DV.prototype,"collapsedLines",null);
_.W([_.a("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DV.prototype,"descriptionText",null);_.W([_.a("data","data.headerRuns"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DV.prototype,"headerRuns",null);_.W([_.a("data","data.sourceAttributions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],DV.prototype,"sourceAttributions",null);
_.W([_.en({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],DV);
_.n(DV,"ytd-expandable-video-description-body-renderer",function(){if(jTZ!==void 0)return jTZ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return jTZ=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var Sqa;var h__=_.q(function(N){var t=N.data;return _.d("factoid-renderer",{class:"ytwFactoidRendererHost"},_.d("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return t().accessibilityText}},_.d("span",{class:"ytwFactoidRendererValue"},_.d(_.cu,{text:function(){return t().value}})),_.d("span",{class:"ytwFactoidRendererLabel"},_.d(_.cu,{text:function(){return t().label}}))))},"kd");_.o_(h__,"factoid-renderer",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;return _.d("upload-time-factoid-renderer",null,_.d(_.iF,{data:function(){return t().factoid}},{factoidRenderer:h__}))},"ld"),"upload-time-factoid-renderer",{props:{data:_.R_}});_.o_(_.q(function(N){var t=N.data;return _.d("view-count-factoid-renderer",null,_.d(_.iF,{data:function(){return t().factoid}},{factoidRenderer:h__}))},"md"),"view-count-factoid-renderer",{props:{data:_.R_}});var UD=function(){var N=_.k.apply(this,arguments)||this;N.shortsPanel=!1;N.engagementPanel=!1;N.watchWhileSdp=_.h("shorts_desktop_watch_while_sdp");return N};
_.p(UD,_.k);UD.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"}}}}};
_.cv.Object.defineProperties(UD.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var N;return(N=this.data)==null?void 0:N.channel}}});
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],UD.prototype,"componentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UD.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"shortsPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"engagementPanel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UD.prototype,"watchWhileSdp",void 0);_.W([_.a("shortsPanel","engagementPanel","data.channel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UD.prototype,"showChannelInfo",null);_.W([_.en({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],UD);
_.n(UD,"ytd-video-description-header-renderer",function(){if(Sqa!==void 0)return Sqa;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Sqa=N},{mode:1});var MMf;var Cu=function(){return _.k.apply(this,arguments)||this};
_.p(Cu,_.k);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Cu.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Cu.prototype,"noPadding",void 0);_.W([_.X(),_.Q("design:type",Object)],Cu.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Cu);
_.n(Cu,"ytd-list-item-view-model",function(){if(MMf!==void 0)return MMf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return MMf=N},{mode:1});var bB_;var p9_;var L40;var z_R;var Ku=function(){var N=_.k.apply(this,arguments)||this;N.adaptiveFullWidth=!1;N.modernButtons=_.h("web_modern_buttons");N.buttonOverrides={style:"call-to-action",type:"filled"};N.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return N};
_.p(Ku,_.k);Ku.prototype.handleSetTimestamp_=function(N){this.data&&this.data.shortUrl&&(_.O6(this.hostElement).querySelector("#share-url").value=N.isSet?_.o5(this.data.shortUrl,"t",N.timestamp):this.data.shortUrl)};
Ku.prototype.handleSignalActionCopyShareUrl_=function(N,t){(_.h("killswitch_copy_link_target_check")||_.O6(this.hostElement).querySelector("#copy-button")===t)&&this.copyUrlToClipboard()};
Ku.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.O6(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Ku.prototype.computeStyle_=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Ku.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ku.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Q("design:type",String)],Ku.prototype,"rendererStyle",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ku.prototype,"adaptiveFullWidth",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ku.prototype,"modernButtons",void 0);_.W([_.X(),_.Q("design:type",Object)],Ku.prototype,"buttonOverrides",void 0);_.W([_.wz({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Ku);
_.n(Ku,"yt-copy-link-renderer",function(){if(z_R===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;L40===void 0&&(L40=document.createElement("template"));var H=L40;O.call(t,H.content.cloneNode(!0),N.content.firstChild);z_R=N}N=z_R;return N},{mode:2});_.pE("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var FT=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return N};
_.p(FT,_.k);_.V=FT.prototype;_.V.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.V.attached=function(){this.keyboardFocused=!1};
_.V.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var N=_.cY().resolve(_.BY(_.z6));N&&(this.keyboardFocused=N.isKeyBoardInUse())}};
_.V.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.V.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.V.onChange_=function(){if(this.data){var N=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;N&&this.ytComponentBehavior.resolveCommand(N);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.V.handleUpdateToggleAction_=function(N){(N=_.M(N,Z7E))&&this.data&&N.targetId==this.data.targetId&&this.set("data.toggled",N.toggled)};
_.V.toBoolean_=function(N){return!!N};
_.V.reset=function(){};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("data-changed",this.data))};
_.V.updateDataToggledFromBinding=function(N){this.set("data.toggled",N.detail.value)};
FT.prototype.dataChangedForBinding=FT.prototype.dataChangedForBinding;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],FT.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],FT.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],FT.prototype,"data",void 0);_.W([_.X({computed:"computeDescription_(data.*)"}),_.Q("design:type",Object)],FT.prototype,"description_",void 0);_.W([_.X({value:function(){return!!_.cY().resolve(_.BY(_.z6))&&_.h("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Q("design:type",Boolean)],FT.prototype,"useKeyboardFocused",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],FT.prototype,"keyboardFocused",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FT.prototype,"dataChangedForBinding",null);_.W([_.wz({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],FT);
_.n(FT,"yt-toggle-form-field-renderer",function(){if(p9_===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;bB_===void 0&&(bB_=document.createElement("template"));var H=bB_;O.call(t,H.content.cloneNode(!0),N.content.firstChild);p9_=N}N=p9_;return N},{mode:2});var Yqr;var aBZ;var dx=function(){var N=_.k.apply(this,arguments)||this;N.isDarkTheme=!1;N.isSearch=!1;N.noTopMargin=_.h("kevlar_watch_no_top_margin");N.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(dx,_.k);_.V=dx.prototype;_.V.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.V.dataChanged=function(){var N=this.getSelectedIndex();if(N>0)this.selected=N;else{this.selected=0;var t,O;(t=this.ytScrollableChipCloudBehavior)==null||(O=t.reset)==null||O.call(t)}};
_.V.getSelectedIndex=function(){var N;if((N=this.data)==null||!N.chips)return-1;N=-1;for(var t,O=0;O<((t=this.data)==null?void 0:t.chips.length);O++){var H=void 0,A=void 0;if((H=this.data)==null?0:(A=H.chips[O].chipCloudChipRenderer)==null?0:A.isSelected){N=O;break}}return N};
_.V.onResize=function(){var N=this.ytScrollableChipCloudBehavior;_.yB(N,N.setContainerWidthDiff);N=this.ytScrollableChipCloudBehavior;_.yB(N,N.setButtonsState)};
_.V.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.V.handleRelatedChipCommand=function(N,t){N=this.JSC$16742_chipsSelector.indexOf(t);N!==-1&&this.JSC$16742_chipsSelector.selectIndex(N)};
_.V.handleChipCloudChipSelectAction=function(N){N=this.JSC$16742_chipsSelector.indexOf(N);N>-1&&this.JSC$16742_chipsSelector.selectIndex(N)};
_.V.handleChipCloudChipDeselectAction=function(){var N=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16742_chipsSelector&&((N==null?0:N.continuationCommand)?_.tb(this.hostElement,[N]):(N==null?0:N.searchEndpoint)?this.ytComponentBehavior.resolveCommand(N):N&&_.OK(this.hostElement,[N],this.hostElement),this.JSC$16742_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.V.updateSelectedFromBinding=function(N){this.selected=N.detail.value};
dx.prototype.onResize=dx.prototype.onResize;dx.prototype.dataChanged=dx.prototype.dataChanged;dx.prototype.isSearchChanged=dx.prototype.isSearchChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],dx.prototype,"actionHandlerBehavior",void 0);
_.W([_.Y(_.JV),_.Q("design:type",Object)],dx.prototype,"ironResizableBehavior",void 0);_.W([_.Y(),_.Q("design:type",QJ)],dx.prototype,"ytScrollableChipCloudBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],dx.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dx.prototype,"data",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],dx.prototype,"selected",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],dx.prototype,"isDarkTheme",void 0);_.W([_.X({value:160}),_.Q("design:type",Number)],dx.prototype,"scrollDistance",void 0);_.W([_.X(),_.Q("design:type",Object)],dx.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],dx.prototype,"noTopMargin",void 0);_.W([_.B2("#chips"),_.Q("design:type",Object)],dx.prototype,"JSC$16742_chipsSelector",void 0);
_.W([_.gz("isSearch"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dx.prototype,"isSearchChanged",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dx.prototype,"dataChanged",null);_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dx.prototype,"onResize",null);_.W([_.wz({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],dx);
_.n(dx,"yt-chip-cloud-renderer",function(){if(aBZ===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;Yqr===void 0&&(Yqr=document.createElement("template"));var H=Yqr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);aBZ=N}N=aBZ;return N},{mode:2});var TjQ,w9r=function(){return TjQ!==void 0?TjQ:TjQ=document.createElement("template")};
document.head.appendChild(w9r().content);var e_p;var PiY=document.head,X9E=PiY.appendChild,x5f;if(e_p===void 0){var kqa=document.createElement("template");_.L(kqa,"");kqa.content.insertBefore(w9r().content.cloneNode(!0),kqa.content.firstChild);e_p=kqa}x5f=e_p;X9E.call(PiY,x5f.content);var qq0=_.q(function(N){var t=N.data;return _.d("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.d("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.d("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.d(_.y,{cond:function(){return _.nx(t().image)},
then:function(O){return _.d("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.d(_.Qt,{data:O,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.d("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.d(_.cu,{text:function(){return t().title}})),_.d("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.d(_.cu,{text:function(){return t().subtitle}})))),_.d(_.y,{cond:function(){var O;
return(O=t())==null?void 0:O.hasBottomDivider},
then:function(){return _.d("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"nd");var fBE=_.q(function(N){var t=N.data;return _.d("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.d("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.d(_.iF,{data:function(){var O;return(O=t().offerPlanDetailsItem)!=null?O:[]}},{offerPlanDetailsItemViewModel:function(O){return _.d("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.d(qq0,{data:O.data}))}})),_.d("div",null,_.d(_.y,{cond:function(){return t().hasBottomDivider},
then:function(){return _.d("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.d("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.d("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.d("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.d("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"od");var n_r=_.q(function(N){var t=N.data;N=_.D(_.b$(!1,void 0,"MrXxy"));var O=N.next().value,H=N.next().value,A=_.Ui(function(){H(!O());return!1}),Z=function(){var U;
return(U=t().offerPlanDetailsContainer)!=null?U:[]};
return _.d("lp-complex-offer-card-details-view-model",null,_.d("div",null,_.d(_.y,{cond:function(){return O()},
then:function(){return _.d("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.d("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":A,"aria-expanded":O},_.d(_.cu,{text:function(){return t().expandedTitle}})),_.d("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.d(_.iF,{data:Z},{offerPlanDetailsContainerViewModel:function(U){return _.d("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.d(fBE,{data:U.data}))}})),_.d("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.d(_.cu,{text:function(){return t().legalText}})))},
else:function(){return _.d("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":A,"aria-expanded":O},_.d(_.cu,{text:function(){return t().collapsedTitle}}),_.d("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.d(_.dq,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"pd");var W4E=_.q(function(N){var t=N.data;return _.d("lp-complex-offer-card-option-view-model",null,_.d("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.d(_.y,{cond:function(){return t().topDividerText},
then:function(){return _.d("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.d("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.d("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.d("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.d(_.cu,{text:function(){return t().topDividerText}}))))}}),_.d(_.y,{cond:function(){return t().description},
then:function(){return _.d("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.d(_.cu,{text:function(){return t().description}}))}}),_.d(_.y,{cond:function(){return t().planPricingPrimary},
then:function(){return _.d("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.d(_.cu,{text:function(){return t().planPricingPrimary}}))}}),_.d(_.y,{cond:function(){return t().planPricingSecondary},
then:function(){return _.d("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.d(_.cu,{text:function(){return t().planPricingSecondary}}))}}),_.d(_.y,{cond:function(){return t().primaryButton},
then:function(){return _.d("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.d(_.iF,{data:function(){return t().primaryButton}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"qd");var rQE=_.q(function(N){var t=N.data;var O=function(){var Z;return((Z=t())==null?void 0:Z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
N={};var H={},A={};return _.d("ytm-lp-complex-offer-card-view-model",null,_.d("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.d("div",{class:_.V7((N.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=O,N),"ytmLpComplexOfferCardViewModelCardContainer")},_.d(_.y,{cond:function(){var Z;return(Z=t())==null?void 0:Z.bannerText},
then:function(){return _.d("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.d("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.d(_.cu,{text:function(){return t().bannerText}})))}}),_.d(_.y,{cond:function(){return _.nx(t().logo)},
then:function(Z){var U={};return _.d("div",{class:_.V7((U.ytmLpComplexOfferCardViewModelLogoAlignLeft=O,U),"ytmLpComplexOfferCardViewModelLogo")},_.d(_.Qt,{data:Z,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.d("div",{class:_.V7((H.ytmLpComplexOfferCardViewModelTitleAlignLeft=O,H),"ytmLpComplexOfferCardViewModelTitle")},_.d(_.cu,{text:function(){return t().title}})),_.d(_.y,{cond:function(){var Z;
return(Z=t())==null?void 0:Z.subtitle},
then:function(){var Z={};return _.d("div",{class:_.V7((Z.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=O,Z),"ytmLpComplexOfferCardViewModelSubtitle")},_.d(_.cu,{text:function(){return t().subtitle}}))}}),_.d(_.y,{cond:function(){return t().planPricingPrimary},
then:function(){return _.d("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.d(_.cu,{text:function(){return t().planPricingPrimary}}))}}),_.d(_.y,{cond:function(){return t().planPricingSecondary},
then:function(){return _.d("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.d(_.cu,{text:function(){return t().planPricingSecondary}}))}}),_.d(_.y,{cond:function(){return t().purchaseButton},
then:function(){return _.d("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.d(_.iF,{data:function(){return t().purchaseButton}},{buttonViewModel:function(Z){return _.d(_.Pu,{data:Z.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.d(_.y,{cond:function(){var Z;
return(Z=t())==null?void 0:Z.offerOptions},
then:function(){return _.d("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.d(_.iF,{data:function(){return t().offerOptions}},{lpComplexOfferCardOptionViewModel:W4E}))}}),_.d("div",{class:_.V7((A.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=O,A),"ytmLpComplexOfferCardViewModelLegalText")},_.d(_.cu,{text:function(){return t().legalText}})),_.d(_.y,{cond:function(){var Z;
return(Z=t())==null?void 0:Z.offerCardDetails},
then:function(){return _.d("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.d(_.iF,{data:function(){return t().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:n_r}))}}))))},"rd");var IBy=_.q(function(N){var t=N.data;var O=function(){var U;return((U=t())==null?void 0:U.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
N={};var H={},A={},Z={};return _.d("ytm-lp-complex-offer-card-section-view-model",null,_.d("div",{class:_.V7("ytmLpComplexOfferCardSectionViewModelHost")},_.d("div",{class:_.V7((N.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=O,N),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.d("div",{class:_.V7((H.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=O,H),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.d("h2",{class:_.V7((A.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
O,A),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.d(_.cu,{text:function(){return t().title}}))),_.d(_.y,{cond:function(){var U;
return(U=t())==null?void 0:U.subtitle},
then:function(){var U={},C={};return _.d("div",{class:_.V7((U.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=O,U),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.d("div",{class:_.V7((C.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=O,C),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.d(_.cu,{text:function(){return t().subtitle}})))}}),_.d("div",{class:_.V7((Z.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=O,Z),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.d(_.iF,{data:function(){var U;
return(U=t().offerPlans)!=null?U:[]}},{lpComplexOfferCardViewModel:function(U){return _.d("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.d(rQE,{data:U.data}))}})))))},"sd");var lBf=_.q(function(N){return _.d("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.d("div",{class:"ytLpCouponBannerViewModelIcon"},_.d(_.dq,{icon:function(){return"price_tag"}})),_.d("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.d("div",{class:"ytLpCouponBannerViewModelContent"},_.d("div",{class:"ytLpCouponBannerViewModelHeading"},_.d(_.cu,{text:function(){var t;
return(t=N.data())==null?void 0:t.title}})),_.d("div",{class:"ytLpCouponBannerViewModelBody"},_.d(_.cu,{text:function(){var t;
return(t=N.data())==null?void 0:t.subtitle}})))))},"td");
lBf.idomCompat=!0;_.gx=TeS.getInstance();var QTB;QTB=_.q(function(N){return _.d("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":N.shouldAriaHideContent},_.d("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:N.questionId},_.d(_.cu,{text:N.question})))},"ud");
_.m5r=_.q(function(N){var t=N.data;var O=N.themeOverride;N=_.D(_.b$(!1,void 0,"pNli2b"));var H=N.next().value,A=N.next().value;N=_.Ui(function(){A(!H());return!1});
var Z=function(){return H()?"EXPAND_LESS":"EXPAND_MORE"},U=("faq-container"+_.Q1(_.gx)).toString(),C="faq-question-and-answers-section-question"+_.Q1(_.gx),F={},g={};
return _.d("faq-entry-view-model",null,_.d("div",{class:_.V7("ytLpFaqEntryViewModelHost",(F.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return O==null?void 0:O().useDarkTheme},F))},_.d("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":N,role:"button","aria-expanded":H,"aria-labelledby":C.toString(),"tab-index":"0"},_.d(QTB,{question:function(){return t().question},
questionId:C,shouldAriaHideContent:!0}),_.d(_.y,{cond:function(){return H()!==void 0},
then:function(){return _.d("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.d(_.dq,{icon:Z,ariaHidden:!0}),_.d("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.d("div",{class:_.V7("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(g.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!H()},g))},_.d("div",{id:U},_.d(_.nL,{each:function(){return t().answers||[]}},function(B){return _.d("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.d(_.cu,
{text:B}))})))))},"vd");
_.m5r.idomCompat=!0;var E_E=_.q(function(N){var t=N.data;var O=N.themeOverride;N={};return _.d("lp-faq-section-view-model",null,_.d("div",{class:_.V7("yt-lp-faq-section-view-model",(N["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},N["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(O==null||!O().useDarkTheme)},N))},_.d("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.d(_.y,{cond:function(){return t().header},
then:function(H){return _.d("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.d(_.cu,{text:H}))}}),_.d("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.d(_.iF,{data:function(){return t().faqs}},{faqEntryViewModel:function(H){return _.d(_.m5r,{data:H.data,
themeOverride:O})}})),_.d("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.d(_.nL,{each:function(){return t().footers||[]}},function(H){return _.d(_.cu,{text:H})})),_.d(_.y,{cond:function(){return t().legal},
then:function(H){return _.d("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.d(_.cu,{text:H}))}}))))},"wd");
E_E.idomCompat=!0;var Gqa=_.q(function(N){var t=N.data;var O=N.themeOverride;_.Q8(function(){var U=t().gtmId;U&&_.J7(U,_.Ro("GL",""))});
var H={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var U,C,F;return(F=(U=t().logo)==null?void 0:(C=U.accessibilityData)==null?void 0:C.label)!=null?F:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},A=_.cY().resolve(_.BY(_.WV)),Z=function(){return A&&A()||(O==null?void 0:O().useDarkTheme)};
return _.d("lp-header-section-view-model",null,_.d("div",{class:function(){var U=t().layoutType,C=t().marginType==="LP_SECTION_MARGIN_TYPE_TOP",F=O==null?void 0:O().useDarkTheme,g=["lp-header-section-view-model"];switch(U){case "LP_MODULE_LAYOUT_TYPE_PTC":g.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":g.push("lp-header-section-view-model--narrow-header-layout-type")}C&&g.push("lp-header-section-view-model__lp-header-section-margin");F&&g.push("lp-header-section-view-model--premium-force-dark-mode");
return g.join(" ")}},_.d(_.y,{cond:function(){return t().logo},
then:function(){return _.d("div",null,_.d(_.y,{cond:Z,then:function(){return _.d(_.y,{cond:function(){var U;return(U=t().logo)==null?void 0:U.imageDark},
then:function(U){return _.d(_.Qt,Object.assign({},{data:U},H))}})},
else:function(){return _.d(_.y,{cond:function(){var U;return(U=t().logo)==null?void 0:U.imageLight},
then:function(U){return _.d(_.Qt,Object.assign({},{data:U},H))}})}}))}}),_.d(_.y,{cond:function(){return t().title},
then:function(U){return _.d("div",{class:"lp-header-section-view-model__lp-header-title"},_.d(_.cu,{text:U}))}}),_.d("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.d(_.y,{cond:function(){return t().subtitles},
then:function(U){return _.d(_.nL,{each:U},function(C){return _.d("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.d(_.cu,{text:C}))})}})),_.d(_.y,{cond:function(){return t().additionalInfo},
then:function(U){return _.d("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.d(_.cu,{text:U}))}}),_.d("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.d(_.y,{cond:function(){return t().primaryButton},
then:function(U){return _.d("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.d(_.iF,{data:U},{buttonViewModel:_.Pu}))}}),_.d(_.y,{cond:function(){return t().secondaryButton},
then:function(U){return _.d("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.d(_.iF,{data:U},{buttonViewModel:_.Pu}))}})),_.d(_.y,{cond:function(){return t().otherOffersInfo},
then:function(U){return _.d("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.d(_.cu,{text:U}))}}),_.d("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.d(_.y,{cond:function(){return t().billingInfo},
then:function(U){return _.d(_.nL,{each:U},function(C){return _.d("div",null,_.d(_.cu,{text:C}))})}}))))},"xd");
Gqa.idomCompat=!0;var R_a=_.q(function(N){return _.d("lp-header-upsell-banner-view-model",{class:_.V7("lpHeaderUpsellBannerViewModelHost",N.className,{})},_.d("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.d(_.dq,{icon:function(){return"CAMPAIGN"}})),_.d("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.d("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.d("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.d("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.d(_.cu,{text:function(){var t;
return(t=N.data())==null?void 0:t.description}})))),_.d(_.iF,{data:function(){var t;
return(t=N.data())==null?void 0:t.purchaseButton}},{buttonViewModel:function(t){return _.d(_.Pu,{data:t.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"yd");var v_Y=_.q(function(N){var t=N.data;var O=_.Gr(N.themeOverride,{useDarkTheme:!1});N={};N=_.V7("ytmLpHeadlineSectionViewModelHost",(N.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return O().useDarkTheme},N));
return _.d("lp-headline-section-view-model",null,_.d("div",{class:N},_.d(_.y,{cond:function(){return t().title},
then:function(H){return _.d("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.d(_.cu,{text:H}))}}),_.d(_.y,{cond:function(){return t().subtitle},
then:function(H){return _.d("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.d(_.cu,{text:H}))}})))},"zd");var JQY=_.q(function(N){var t=N.data;var O=N.themeOverride;var H=_.cY().resolve(_.BY(_.WV)),A=function(){return H&&H()||(O==null?void 0:O().useDarkTheme)},Z=function(){var g,B;
var c=A()?(g=t().textBackgroundImage)==null?void 0:g.imageDark:(B=t().textBackgroundImage)==null?void 0:B.imageLight;return oWx((c==null?void 0:c.sources)||[])},U=function(){var g,B;
return A()?(g=t().featureImage)==null?void 0:g.imageDark:(B=t().featureImage)==null?void 0:B.imageLight},C=function(){return t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},F=function(){var g,B;
return A()?(g=t().logo)==null?void 0:g.imageDark:(B=t().logo)==null?void 0:B.imageLight};
return _.d("ytm-lp-large-feature-section-view-model",null,_.d("div",{class:function(){var g=t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",B=t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",c=(t().index||0)%2===1,u=O==null?void 0:O().useDarkTheme,S=["yt-lp-large-feature-section-view-model"];g?S.push("yt-lp-large-feature-section-view-model--music-feature-type"):B?S.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):c||S.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
u&&S.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return S.join(" ")}},_.d("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.d(_.y,{cond:U,
then:function(){return _.d(_.Qt,{data:function(){return U()},
alt:function(){var g,B,c;return(c=(g=t().featureImage)==null?void 0:(B=g.accessibilityData)==null?void 0:B.label)!=null?c:""},
contentMode:C})}})),_.d("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var g;return((g=Z())==null?0:g.url)?"background-image: url("+_.Id(Z().url)+");":""}},_.d("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.d(_.y,{cond:F,
then:function(){return _.d(_.Qt,{data:function(){return F()},
alt:function(){var g,B,c;return(c=(g=t().logo)==null?void 0:(B=g.accessibilityData)==null?void 0:B.label)!=null?c:""},
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"})}}),_.d(_.y,{cond:function(){return t().eyebrowText},
then:function(){return _.d("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.d(_.cu,{text:function(){return t().eyebrowText}}))}}),_.d(_.y,{cond:function(){return t().title},
then:function(){return _.d("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.d(_.cu,{text:function(){return t().title}}))}}),_.d(_.y,{cond:function(){return t().subtitles},
then:function(){return _.d("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.d(_.nL,{each:function(){return t().subtitles||[]}},function(g){return _.d(_.cu,{text:g})}))}})))))},"Ad");
JQY.idomCompat=!0;var o_B=_.q(function(N){return _.d("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.d("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.d(_.dq,{icon:function(){var t;return(t=N.data())==null?void 0:t.iconType},
className:function(){var t;switch((t=N.data())==null?void 0:t.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 t;return((t=N.data())==null?void 0:t.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.d("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.d(_.cu,{text:function(){var t;
return(t=N.data())==null?void 0:t.text},
className:function(){var t;return((t=N.data())==null?void 0:t.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Bd");var sTS=_.q(function(N){N=_.RH(N,{config:void 0,themeOverride:void 0});var t=N.data,O=N.config,H=N.themeOverride;N={};N=_.V7("ytmLpOfferCardOptionViewModelHost",(N.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var C;return(C=H())==null?void 0:C.useDarkTheme},N));
var A=_.Ui(function(){var C,F;(C=O())==null||(F=C.handleRadioButtonClick)==null||F.call(C,t());return!1}),Z=function(){var C;
return(C=O())==null?void 0:C.shouldDisplayRadioButton},U=function(){var C;
return(C=t().featureListItems)!=null?C:[]};
return _.d("ytm-lp-offer-card-option-view-model",null,_.d("div",{class:N,"on:click":_.Ui(function(){if(Z()){var C,F;(C=O())==null||(F=C.handleRadioButtonClick)==null||F.call(C,t())}return!1})},_.d(_.y,{cond:Z,
then:function(){return _.d("div",null,_.d("input",{type:"radio","on:click":A,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var C;return!((C=O())==null||!C.isOptionSelected)}}))}}),_.d("div",null,_.d("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.d(_.cu,{text:function(){return t().eyebrowText}})),_.d("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.d(_.cu,
{text:function(){return t().subtitle}})),_.d(_.y,{cond:function(){return U().length>0},
then:function(){return _.d("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.d(_.iF,{data:U},{lpFeatureListItemViewModel:o_B}))}}),_.d("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.d(_.cu,{text:function(){return t().description}})))))},"Cd");
sTS.idomCompat=!0;var N$p=_.q(function(N){var t=N.data;var O=N.themeOverride;N=_.D(_.Gb(function(){var Z,U=(Z=t().offerOptions)==null?void 0:Z[0];return _.M(U,NOX)||{}}));
var H=N.next().value,A=N.next().value;N={};return _.d("ytm-lp-offer-card-view-model",null,_.d("div",{class:_.V7("ytmLpOfferCardViewModelHost",(N.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(O==null||!O().useDarkTheme)},N))},_.d("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.d(_.y,{cond:function(){return t().titleIconType},
then:function(){return _.d("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.d(_.dq,{icon:function(){var Z;return((Z=t().titleIconType)==null?void 0:Z.toString())||""}}))}}),_.d("div",{class:"ytmLpOfferCardViewModelTitleText"},_.d(_.cu,{text:function(){return t().title}})),_.d(_.iF,{data:function(){return t().titleBadge}},{badgeViewModel:function(Z){return _.d("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.d(_.L_,{data:Z.data}))}})),_.d("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.d(_.iF,{data:function(){return t().offerOptions}},{lpOfferCardOptionViewModel:function(Z){var U=Z.data;
return _.d(_.BZ,null,_.d("div",{class:"ytmLpOfferCardViewModelDivider"}),_.d(sTS,{data:U,config:function(){var C;return{shouldDisplayRadioButton:(t().offerOptions||[]).length>1,isOptionSelected:U().id===((C=H())==null?void 0:C.id),handleRadioButtonClick:function(F){return void A(F)}}},
themeOverride:O}))}})),_.d("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.d(_.iF,{data:function(){var Z;
return(Z=H())==null?void 0:Z.purchaseButtonOverride}},{buttonViewModel:_.Pu}))))},"Dd");
N$p.idomCompat=!0;var tkY=_.q(function(N){var t=N.data;var O=N.themeOverride;N={};N=_.V7("ytmLpOfferCardSectionViewModelHost",(N.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var H;return O==null?void 0:(H=O())==null?void 0:H.useDarkTheme},N));
return _.d("ytm-lp-offer-card-section-view-model",null,_.d("div",{class:N},_.d(_.y,{cond:function(){return t().title!==void 0},
then:function(){return _.d("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.d("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.d(_.cu,{text:function(){return t().title}})),_.d(_.y,{cond:function(){return t().subtitle},
then:function(){return _.d("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.d(_.cu,{text:function(){return t().subtitle}}))}}))}}),_.d("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.d(_.iF,{data:function(){return t().offerCards}},{lpOfferCardViewModel:function(H){return _.d("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.d(N$p,{data:H.data,
themeOverride:O}))}})),_.d(_.y,{cond:function(){return t().footer},
then:function(){return _.d("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.d(_.cu,{text:function(){return t().footer}}))}})))},"Ed");var OWR=_.q(function(N){var t=N.data;return _.d("lp-offer-table-cell-content-view-model",null,_.d("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.d(_.WZ,null,_.d(_.qC,{when:function(){return t().title}},function(){return _.d(_.cu,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return t().title}})}),_.d(_.qC,{when:function(){return t().subTitle}},function(){return _.d(_.cu,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return t().subTitle}})}),_.d(_.qC,{when:function(){return t().featureDescription}},function(){return _.d(_.cu,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return t().featureDescription}})}),_.d(_.qC,{when:function(){return t().description}},function(){return _.d(_.cu,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return t().description}})}),_.d(_.qC,{when:function(){return t().iconType}},function(){return _.d("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.d(_.dq,{icon:function(){return t().iconType.toString()}}))}),_.d(_.qC,{when:function(){return t().purchaseButton}},function(){return _.d(_.iF,{data:function(){return t().purchaseButton}},{buttonViewModel:function(O){return _.d("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.d(_.Pu,
{data:O.data}))}})}),_.d(_.qC,{when:function(){return t().note}},function(){return _.d(_.cu,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return t().note}})}),_.d(_.qC,{when:function(){return t().featureDetail}},function(){return _.d(_.cu,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return t().featureDetail}})}),_.d(_.qC,{when:function(){return t().badge}},function(){return _.d(_.iF,{data:function(){return t().badge}},{badgeViewModel:_.L_})}))))},"Fd");
OWR.idomCompat=!0;var HWR=_.q(function(N){var t=N.data;return _.d("lp-offer-table-cell-view-model",null,_.d("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(t().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;"}}},_.d(_.iF,{data:function(){return t().contents}},{lpOfferTableCellContentViewModel:OWR})))},
"Gd");
HWR.idomCompat=!0;var AT0=_.q(function(N){var t=N.data;var O=N.lpTableIsFirstRow;var H=N.lpTableIsLastRow;var A=function(){return(O==null?0:O())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},Z=function(){return(O==null?0:O())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(H==null?0:H())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.d("ytm-lp-offer-table-row-view-model",null,_.d("div",{class:"ytLpOfferTableRowViewModelHost"},_.d(_.iF,{data:function(){return t().rowHeaderCell}},{lpOfferTableCellViewModel:function(U){return _.d("div",{class:A},_.d(HWR,{data:U.data}))}}),_.d(_.iF,{data:function(){return t().contentCells}},{lpOfferTableCellViewModel:function(U){return _.d("div",{class:Z},_.d(HWR,{data:U.data}))}})))},"Hd");
AT0.idomCompat=!0;var ZWZ=_.q(function(N){var t=N.data;var O=N.themeOverride;var H=_.cY().resolve(_.BY(_.WV)),A=function(){return _.M(t().logo,Ss0)||{}};
N={};return _.d("ytm-lp-offer-table-section-view-model",null,_.d("div",{class:"ytLpOfferTableViewModelHost"},_.d(_.y,{cond:function(){var Z,U;return H&&H()||(O==null?0:O().useDarkTheme)?(Z=A())==null?void 0:Z.imageDark:(U=A())==null?void 0:U.imageLight},
then:function(Z){return _.d(_.Qt,{data:Z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var U,C,F;return(F=(U=A())==null?void 0:(C=U.accessibilityData)==null?void 0:C.label)!=null?F:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.d("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.d(_.cu,{text:function(){return t().subtitle}})),_.d(_.y,{cond:function(){return t().disclaimers},
then:function(Z){return _.d("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.d(_.nL,{each:Z},function(U){return _.d("div",null,_.d(_.cu,{text:U}))}))}}),_.d("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.d(_.iF,{data:function(){return t().rows}},{lpOfferTableRowViewModel:function(Z,U){return _.d(AT0,{data:Z.data,
lpTableIsFirstRow:function(){return U()===0},
lpTableIsLastRow:function(){return U()===t().rows.length-1}})}})),_.d("div",{class:_.V7((N.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return t().hasFooterBackground},N))},_.d(_.y,{cond:function(){return t().footer},
then:function(){return _.d("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.d(_.cu,{text:function(){return t().footer}}))}}),_.d(_.y,{cond:function(){return t().footerTitle},
then:function(){return _.d("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.d(_.cu,{text:function(){return t().footerTitle}}))}}),_.d(_.y,{cond:function(){return t().footerDescription},
then:function(){return _.d("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.d(_.cu,{text:function(){return t().footerDescription}}))}}),_.d(_.y,{cond:function(){return t().footerDescriptions},
then:function(Z){return _.d("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.d(_.nL,{each:Z},function(U){return _.d("div",null,_.d(_.cu,{text:U}))}))}}))))},"Id");
ZWZ.idomCompat=!0;var Vkp=_.q(function(N){var t=N.data;var O=N.themeOverride;var H=_.cY().resolve(_.BY(_.WV)),A=function(){var C;return O==null?void 0:(C=O())==null?void 0:C.useDarkTheme},Z=function(){var C,F;
return H&&H()||A()?(C=t().image)==null?void 0:C.imageDark:(F=t().image)==null?void 0:F.imageLight};
N={};N=_.V7("ytmLpSmallFeatureSectionViewModelHost",(N.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=A,N));var U=function(){var C,F,g;return(g=(C=t().image)==null?void 0:(F=C.accessibilityData)==null?void 0:F.label)!=null?g:""};
return _.d("ytm-lp-small-feature-section-view-model",{class:N},_.d(_.y,{cond:function(){return Z()&&!tHO},
then:function(){return _.d("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.d(_.Qt,{data:function(){return Z()},
alt:U,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.d("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.d("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.d(_.y,{cond:function(){return t().title},
then:function(C){return _.d(_.cu,{text:C})}})),_.d("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.d(_.cu,{text:function(){return t().description}}))))},"Jd");
Vkp.idomCompat=!0;var Dbr=_.q(function(N){var t=N.data;var O=N.themeOverride;N={};return _.d("ytm-lp-small-feature-section-group-view-model",null,_.d("div",{class:_.V7("ytmLpSmallFeatureSectionGroupViewModelHost",(N.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(O==null||!O().useDarkTheme)},N))},_.d("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.d(_.iF,{data:function(){return t().smallFeatures}},{lpSmallFeatureSectionViewModel:function(H){return _.d("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.d(Vkp,{data:H.data,
themeOverride:O}))}}))))},"Kd");
Dbr.idomCompat=!0;_.o_(_.q(function(N){var t=N.data;var O=function(){return t().forcedTheme==="USER_INTERFACE_THEME_DARK"},H=function(){return t().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},A=function(){var U="",C,F;
var g=_.cY().resolve(_.BY(_.WV));g=O()||(g==null?0:g())?(C=t().themedImageViewModel)==null?void 0:C.imageDark:(F=t().themedImageViewModel)==null?void 0:F.imageLight;(C=oWx((g==null?void 0:g.sources)||[]))&&C.url&&(U=H()?"background-image: linear-gradient(to bottom, transparent, "+(t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.Id(C.url)+");":"background-image: url("+_.Id(C.url)+");");return U},Z=function(){return{useDarkTheme:O()}};
N={};return _.d("yt-section-group-view-model",null,_.d("div",{class:_.V7("yt-lp-section-group-view-model",(N["yt-lp-section-group-view-model--premium-force-dark-mode"]=O,N["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},N))},_.d(_.y,{cond:function(){return A().length},
then:function(){var U={};return _.d("div",{class:_.V7("yt-lp-section-group-view-model__bg-image",(U["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=H,U)),style:A})}}),_.d("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.d(_.iF,{data:function(){return t().sections}},{lpHeaderUpsellBannerViewModel:function(U){return _.d(R_a,{data:U.data})},
lpFaqSectionViewModel:function(U){return _.d(E_E,{data:U.data,themeOverride:Z})},
lpHeaderSectionViewModel:function(U){return _.d(Gqa,{data:U.data,themeOverride:Z})},
lpHeadlineSectionViewModel:function(U){return _.d(v_Y,{data:U.data,themeOverride:Z})},
lpLargeFeatureSectionViewModel:function(U){return _.d(JQY,{data:U.data,themeOverride:Z})},
lpOfferCardSectionViewModel:function(U){return _.d(tkY,{data:U.data,themeOverride:Z})},
lpComplexOfferCardSectionViewModel:function(U){return _.d(IBy,{data:U.data})},
lpOfferTableSectionViewModel:function(U){return _.d(ZWZ,{data:U.data,themeOverride:Z})},
lpSmallFeatureSectionGroupViewModel:function(U){return _.d(Dbr,{data:U.data,themeOverride:Z})},
lpCouponBannerViewModel:function(U){return _.d(lBf,{data:U.data})}}))))},"Ld"),"yt-section-group-view-model",{props:{data:_.$O}});_.UbZ=_.q(function(N){var t=_.cz(cMp,function(){var U;return(U=N.data())==null?void 0:U.chipBarStateEntityKey}),O=function(){return N.data().disableDeselection},H=_.D(_.Gb(function(){var U;
if(((U=t())==null?void 0:U.selectedIndex)!=void 0)return t().selectedIndex;var C,F;U=_.D(((C=N.data())==null?void 0:(F=C.chips)==null?void 0:F.entries())||[]);for(C=U.next();!C.done;C=U.next()){C=_.D(C.value);F=C.next().value;C=C.next().value;var g=void 0;if((g=_.M(C,_.j7))==null?0:g.selected)return F}return-1})),A=H.next().value,Z=H.next().value;
return _.d("chip-bar-view-model",{class:_.V7("ytChipBarViewModelHost",N.className),role:"tablist"},_.d(_.iF,{data:function(){return N.data().chips}},{chipViewModel:function(U,C){return _.d("div",{class:"ytChipBarViewModelChipWrapper"},_.d(_.xJS,{data:U.data,
selected:function(){return C()===A()},
callback:function(F,g){F=!!g;g=C();Z(F?g:-1);var B,c=(B=N.data())==null?void 0:B.chipBarStateEntityKey;c&&F&&_.E6(_.uF("chipBarStateEntity",c,{key:c,selectedIndex:g}))},
disableDeselection:N.disableDeselection||O}))}}))},"Md");_.o_(_.UbZ,"chip-bar-view-model",{props:{data:_.R_,className:_.R_,disableDeselection:_.R_}});_.CSr=_.q(function(N){var t=N.data;N={};return _.d("divider-view-model",{class:_.V7("dividerViewModelHost",(N.dividerViewModelInsetThinPadding=function(){return t().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},N))},_.d("div",{class:_.V7("dividerViewModelBaseDivider",function(){return $iQ(t().dividerStyle)})}))},"Nd");
_.CSr.idomCompat=!0;_.o_(_.CSr,"divider-view-model",{props:{data:_.$O}});var cy=new Map,$g=new Map,uRt=0,jq;var LaQ=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],as4={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var KmY,FmZ;KmY=function(N){return function(t){return function(){return(t==null?void 0:t())!==void 0?String(t())+N:void 0}}};
_.yg=KmY("px");FmZ=KmY("s");var dbZ=BCp(function(N){return N.targetGroupId}).useUpdatableData;_.Bj=_.q(function(N){function t(CN){return function(){var B4=w().numItemsPerGridRow,zM=CN()*B4;B4=zM+B4;var jy,c4;return(c4=(jy=H().contents)==null?void 0:jy.slice(zM,B4))!=null?c4:[]}}
var O=_.RH(N,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),H=O.data,A=O.layoutContainerWidth,Z=O.shouldUseOwnContainerSize,U=O.marginSettings,C=O.useUpdatedMargin,F=sep(),g=_.D(dbZ(function(){var CN,B4;return{targetGroupId:(CN=H().targetingContext)==null?void 0:(B4=CN.targetGroupId)==null?void 0:B4[0]}})).next().value;
O=_.D(_.b$(!0,void 0,"lKny6d"));var B=O.next().value,c=O.next().value,u=function(){var CN,B4=(CN=_.M(H().showMoreButton,_.$9))==null?void 0:CN.trackingParams;B4&&_.Q2(_.gF(),B4);c(!1)},S=function(){var CN,B4=(CN=_.M(H().showLessButton,_.$9))==null?void 0:CN.trackingParams;
B4&&_.Q2(_.gF(),B4);c(!0)};
O=_.D(_.ie({canHaveZeroSize:!1}));var b=O.next().value;O=O.next().value;var z=function(){var CN;return(CN=H().contentAspectRatio)!=null?CN:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},w=_.aa(function(){var CN=Z()&&b.width()>0?b.width()||A():A(),B4,zM=(B4=N.data())==null?void 0:B4.responsiveContainerConfiguration;
CN=_.qU({containerWidth:CN,sizing:zM?fx(zM==null?void 0:zM.responsiveSize):"EXTRA_COMPACT",marginSettings:U(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:CN.maxContainerWidth,numItemsPerGridRow:CN.numItems,contentPadding:Z()?CN.margin:CN.contentMargin,itemWidth:CN.itemWidth,itemMargin:CN.gutter/2}},void 0,"XYkF9e"),P=function(){if(H().enableVerticalExpansion){if(B())return x();
var CN,B4,zM=(B4=(CN=H().contents)==null?void 0:CN.length)!=null?B4:0;return Math.ceil(zM/w().numItemsPerGridRow)}return w().numItemsPerGridRow<=2?2:1},x=function(){var CN;
return Math.ceil(((CN=H().minCollapsedItemCount)!=null?CN:1)/w().numItemsPerGridRow)},l=function(){return H().enableVerticalExpansion&&H().showLessButton&&!B()&&P()>x()},I=function(){var CN,B4;
return H().enableVerticalExpansion&&H().showMoreButton&&B()&&((B4=(CN=H().contents)==null?void 0:CN.length)!=null?B4:0)>w().numItemsPerGridRow*x()},r=function(){return!l()},E=function(){return!I()},J={};
return _.d("grid-shelf-view-model",{class:_.V7("ytGridShelfViewModelHost",N.className,(J.ytGridShelfViewModelHostHasBottomButton=function(){return l()||I()},J.ytGridShelfViewModelHostIsDismissed=function(){var CN,B4=(CN=g())!=null?CN:{};
CN=B4.behavior;var zM=B4.isDismissed,jy=B4.stamperContextTargetId;B4=B4.stamperIndex;if(!(_.h("mweb_see_fewer_shorts_group_dismissal")&&zM&&CN&&jy))return!1;var c4;zM=F;for(var XO,kx,fN=((XO=zM)==null?0:XO.targetId)?_.Qo((kx=zM)==null?void 0:kx.targetId):void 0;((c4=zM)==null?0:c4.parent)&&fN!==jy;)zM=zM.parent,kx=XO=void 0,fN=((XO=zM)==null?0:XO.targetId)?_.Qo((kx=zM)==null?void 0:kx.targetId):void 0;c4=fN===jy?zM:void 0;if(!c4)return!1;var gf;jy=c4==null?void 0:(gf=c4.stamperIndex)==null?void 0:
gf.call(c4);return CN==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||CN==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&jy!=null&&B4!=null&&jy>B4},J.ytGridShelfViewModelHostOptionalMediumLayoutMargin=C,J)),
el:_.E4(O),style:_.FM({"margin-left":(0,_.yg)(function(){return w().contentPadding}),
"margin-right":(0,_.yg)(function(){return w().contentPadding})})},_.d(_.y,{cond:function(){return _.M(H().header,LOE)},
then:function(CN){return _.d(_.GX,{data:CN,useUpdatedPadding:C,disableHorizontalPadding:!0})}}),_.d("div",null,_.d(_.nL,{each:function(){return Array(P())}},function(CN,B4){return _.d(gKR,{className:N.className,
items:t(B4),responsiveGridShelfLayout:w,contentAspectRatio:z})})),_.d("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.d(_.iF,{data:function(){return H().showMoreButton}},{buttonViewModel:function(CN){return _.d("div",{hidden:E},_.d(_.Pu,{data:CN.data,
onClick:u}))}}),_.d(_.iF,{data:function(){return H().showLessButton}},{buttonViewModel:function(CN){return _.d("div",{hidden:r},_.d(_.Pu,{data:CN.data,
onClick:S}))}})))},"Pd");
_.Bj.idomCompat=!0;var gKR=_.q(function(N){var t=N.items;var O=N.responsiveGridShelfLayout;var H=N.contentAspectRatio;N=N.className;var A=_.Fy("div");iQx(A,function(){a:{var U=A.value;for(var C=t(),F=[],g=0;g<C.length;g++){var B=_.M(C[g],ZXB);if(!B||B==null||!B.inlinePlayerData){U=null;break a}var c=U.children.item(g);if(!c){U=null;break a}F.push({thumbnailElement:c,videoData:B})}U={gridVideoPreviewData:{gridItems:F}}}return U});
var Z=(0,_.yg)(function(){return-O().itemMargin});
return _.d("div",{el:A,class:_.V7("ytGridShelfViewModelGridShelfRow",N),style:_.FM({"margin-left":Z,"margin-right":Z})},_.d(_.iF,{data:t,replacementWrapper:function(U){return _.d(yTX,{responsiveGridShelfLayout:O},U)}},{shortsLockupViewModel:function(U){return _.d(yTX,{responsiveGridShelfLayout:O},_.d(fsp,{data:U.data,
aspectRatio:function(){return H()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.h("mweb_enable_one_line_title_on_shorts")?1:_.h("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(U){return _.d(yTX,{responsiveGridShelfLayout:O},_.d(_.IR,{data:U.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Qd"),yTX=_.q(function(N){return _.d("div",{style:_.FM({width:(0,_.yg)(function(){return N.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+N.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},N.children)},"Rd");
_.Bj.idomCompat=!0;_.o_(_.Bj,"grid-shelf-view-model",{props:{data:_.$O,layoutContainerWidth:_.$O,shouldUseOwnContainerSize:_.$O,marginSettings:_.$O,useUpdatedMargin:_.$O,className:_.$O}});_.B$_=_.q(function(N){var t=_.D(_.b$(!1,void 0,"FVl30c")),O=t.next().value,H=t.next().value;t={};return _.d("yt-alert-banner-view-model",{class:_.V7("ytAlertBannerViewModelHost",N.className,function(){var A;a:switch((A=N.data())==null?void 0:A.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":A="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":A="ytAlertBannerViewModelWarning";break a;default:A="ytAlertBannerViewModelInformational"}return A},(t.ytAlertBannerViewModelDismissed=
O,t.ytAlertBannerViewModelFullbleed=N.fullbleed,t.ytAlertBannerViewModelNarrow=N.narrow,t.ytAlertBannerViewModelIsInRichGrid=N.isInRichGrid,t))},_.d(_.y,{cond:function(){var A;
return!((A=N.data())==null?0:A.hideIcon)},
then:function(){return _.d("div",{class:"ytAlertBannerViewModelIcon"},_.d(_.dq,{icon:function(){return"info_circle"}}))}}),_.d("div",{class:"ytAlertBannerViewModelOuterContainer"},_.d("div",{class:"ytAlertBannerViewModelContainer"},_.d("div",{class:"ytAlertBannerViewModelContent"},_.d("div",{class:"ytAlertBannerViewModelHeading"},_.d(_.cu,{text:function(){var A;
return(A=N.data())==null?void 0:A.heading}})),_.d("div",{class:"ytAlertBannerViewModelBody"},_.d(_.cu,{text:function(){var A;
return(A=N.data())==null?void 0:A.body}})))),_.d(_.iF,{data:function(){var A;
return(A=N.data())==null?void 0:A.actionButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.d(_.iF,{data:function(){var A;
return(A=N.data())==null?void 0:A.dismissButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var Z;((Z=N.data())==null?0:Z.disableLocalDismissBehavior)||H(!0)}})}}))},"Sd");_.o_(_.B$_,"yt-alert-banner-view-model",{props:{data:_.$O,fullbleed:_.$O,narrow:_.$O,isInRichGrid:_.$O,className:_.$O}});var cTX;_.$b0=_.q(function(N){return _.d("basic-content-view-model",{class:_.V7("ytBasicContentViewModelHost",_.Gr(N.className))},_.d(_.y,{cond:function(){return N.data().headline},
then:function(t){return _.d("div",{class:"ytBasicContentViewModelHeadline"},_.d(_.cu,{text:t}))}}),_.d(_.nL,{each:function(){return N.data().paragraphs||[]},
keyBy:"INDEX"},function(t){return _.d("div",{class:"ytBasicContentViewModelParagraph"},_.d(_.y,{cond:function(){var O=t();return!!(O.header||O.customHeader||O.headline)},
then:function(){return _.d(cTX,{paragraph:t})}}),_.d(_.y,{cond:function(){return t().asset||t().text},
then:function(){return _.d("div",{class:"ytBasicContentViewModelParagraphContent"},_.d(_.y,{cond:function(){return t().asset},
then:function(O){return _.d("div",{class:"ytBasicContentViewModelParagraphAsset"},_.d(_.iF,{data:O},{contentPreviewImageViewModel:_.xe}))}}),_.d(_.y,{cond:function(){return t().text},
then:function(O){return _.d("div",{class:"ytBasicContentViewModelParagraphText"},_.d(_.cu,{text:O}))}}))}}))}))},"Td");
cTX=_.q(function(N){var t=N.paragraph;return _.d(_.BZ,null,_.d(_.y,{cond:function(){return t().headline},
then:function(O){return _.d(_.cu,{text:O,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.d(_.iF,{data:function(){return t().header||t().customHeader}},{sectionHeaderViewModel:function(O){return _.d(_.GX,{data:O.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ud");_.jUE=_.q(function(N){function t(){var S,b;F((b=(S=A)==null?void 0:S.isKeyBoardInUse())!=null?b:!1)}
function O(){F(!1)}
function H(){var S;return C()?(S=N.focusedClassName)==null?void 0:S.call(N):""}
var A=_.cY().resolve(_.BY(_.z6)),Z=_.D(_.b$(!1,void 0,"SgkTXc")),U=Z.next().value;Z=Z.next().value;var C=U,F=Z,g=function(){var S,b;return((S=N.toggleable)==null?0:S.call(N))?(b=N.toggled)==null?void 0:b.call(N):void 0},B=_.Ui(function(S){var b,z=(b=N.command)==null?void 0:b.call(N);
z&&_.cY().resolve(_.jo).resolveCommand(z);var w;(w=N.onClick)==null||w.call(N,S)}),c=_.Ui(t),u=_.Ui(O);
return _.d(_.y,{cond:function(){var S;if(S=N.command){S=N.command();S=UQz(S);var b=S.href;S=!(!S.navigatingCommand||!b)}return S},
then:function(){return _.d(_.YO,Object.assign({},{command:N.command,style:N.style,ariaDescribedby:N.ariaDescribedby,ariaHidden:N.ariaHidden,ariaLabel:N.ariaLabel,ariaLabelledby:N.ariaLabelledby,ariaSelected:N.ariaSelected,disabled:N.disabled,dir:N.dir,tabIndex:N.tabIndex,target:N.target,title:N.title,onClick:N.onClick},{className:_.V7("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",N.className,function(){return H()}),
onFocusin:t,onFocusout:O,ariaCurrent:function(){var S,b;return(b=(S=N.ariaCurrent)==null?void 0:S.call(N))!=null?b:g()}}),N.children)},
else:function(){return _.d("button",{"on:click":B,"on:focusin":c,"on:focusout":u,class:_.V7("ytButtonOrAnchorHost","ytButtonOrAnchorButton",N.className,function(){return H()}),
style:N.style,"aria-describedby":N.ariaDescribedby,"aria-hidden":N.ariaHidden,"aria-label":N.ariaLabel,"aria-labelledby":N.ariaLabelledby,"aria-pressed":g,dir:N.dir,disabled:N.disabled,tabindex:N.tabIndex,title:N.title},N.children)}})},"Vd");var iWZ=_.q(function(N){N=_.RH(N,{disabled:!1});var t=N.active,O=N.disabled;N={};N=_.V7("ytSwitchShapeTrack",(N.ytSwitchShapeTrackActive=function(){return t()},N.ytSwitchShapeTrackDisabled=function(){return O()},N));
var H={};H=_.V7("ytSwitchShapeKnob",(H.ytSwitchShapeKnobActive=function(){return t()},H));
return _.d("switch-shape",{class:"ytSwitchShapeHost"},_.d("div",{class:N}),_.d("div",{class:H}))},"Wd");var uz_=_.q(function(N){var t=_.RH(N,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),O=t.data;N=t.className;var H=t.handleOnTapEventInParent,A=t.parentActive,Z=t.onTap;t=_.D(_.Gb(function(){var u;return(u=A())!=null?u:O().switchedOnByDefault||!1}));
var U=t.next().value,C=t.next().value,F=function(){return O().isDisabled},g=_.Fy("button");
t=_.Ui(function(u){return u.key==="Enter"?(u.preventDefault(),g.value.click(),!1):!0});
var B=_.Ui(function(u){if(O().handleOnTapEventInParent||H())return!0;if(F())return!1;if(Z)return Z(u),!0;ejS(O(),U(),u);C(!U());return!1}),c={};
c=_.V7("ytSwitchButtonViewModelButton",(c.ytSwitchButtonViewModelTappable=function(){return!F()},c));
return _.d("switch-button-view-model",{class:_.V7("ytSwitchButtonViewModelHost",N)},_.d("button",{el:g,class:c,"on:click":B,"on:keydown":t,"aria-label":function(){return U()?O().a11yLabelSwitchedOn:O().a11yLabelSwitchedOff},
"aria-checked":U,"aria-disabled":F,role:"switch"},_.d(iWZ,{active:U,disabled:F})))},"Xd");var SFY=_.q(function(N){var t=N.data;var O=N.isLeading;var H=N.hideSelectionTextChevron;var A=N.isToggled;var Z=N.shouldNotFillIcon;var U=function(){if(O())var c=t().leadingImage;else{var u;c=(u=t().trailingImage)!=null?u:_.nx(t().themedTrailingImage)}return c},C=function(){a:switch(t().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var c="expand_more";
break a;default:c="chevron_right"}return c};
N={};var F=_.V7("yt-list-item-view-model__image-container",(N["yt-list-item-view-model__leading"]=O,N["yt-list-item-view-model__trailing"]=function(){return!O()},N)),g=_.V7("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
N={};var B=_.V7("yt-list-item-view-model__accessory",(N["yt-list-item-view-model__leading"]=O,N["yt-list-item-view-model__trailing"]=function(){return!O()},N));
return _.d(_.y,{cond:function(){var c=t(),u=O();return!!(u&&(c.leadingImage||c.leadingAccessory)||!u&&(c.trailingImage||c.trailingButton||c.trailingButtons||c.selectionText||c.themedTrailingImage||c.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.d(_.BZ,null,_.d(_.y,{cond:U,then:function(c){return _.d("div",{class:F,"aria-hidden":"true"},_.d(_.Qt,{data:c,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var u=(O()?t().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":t().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?O()?xi9(t().leadingIconAccessorySize):xi9(t().trailingIconAccessorySize):void 0;return u},
className:g,isToggled:function(){return!(Z==null?0:Z())&&(A==null?void 0:A())}}))}}),_.d(_.y,{cond:function(){return O()&&t().leadingAccessory},
then:function(){return _.d("div",{class:F},_.d(_.iF,{data:function(){return t().leadingAccessory}},{avatarViewModel:function(c){return _.d(_.Dv,{data:c.data,
avatarButtonCustomClassName:g})},
collectionThumbnailViewModel:function(c){return _.d(PG_,{data:c.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.d(_.y,{cond:function(){return!O()&&t().trailingButton},
then:function(){return _.d("div",{class:"yt-list-item-view-model__button-container"},_.d(_.iF,{data:function(){return t().trailingButton}},{buttonViewModel:function(c){return _.d(_.Pu,{data:c.data,
className:B})}}))}}),_.d(_.y,{cond:function(){var c;
return!O()&&((c=t().trailingButtons)==null?void 0:c.buttons)},
then:function(){return _.d("div",{class:"yt-list-item-view-model__button-container"},_.d(_.iF,{data:function(){var c;return(c=t().trailingButtons)==null?void 0:c.buttons}},{buttonViewModel:function(c){return _.d(_.Pu,{data:c.data,
className:B})},
accountLinkButtonViewModel:function(c){return _.d(uwa,{data:c.data,className:B})},
switchButtonViewModel:function(c){return _.d(uz_,{data:c.data,className:B})},
subscribeButtonViewModel:function(c){return _.d(_.DF,{data:c.data,isOverlay:!1,animateWidth:!1,className:B})},
toggleButtonViewModel:function(c){return _.d(_.N3,{data:c.data,className:B})}}))}}),_.d(_.y,{cond:function(){return!O()&&!!t().selectionText},
then:function(){return _.d(_.BZ,null,_.d(_.cu,{text:function(){return t().selectionText},
className:_.V7("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.d(_.y,{cond:function(){return!(H==null?0:H())},
then:function(){return _.d(_.dq,{icon:C,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.d(_.y,{cond:function(){return!O()&&t().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.d("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"Yd");var hbr=_.q(function(N){var t=N.data;return _.d(_.y,{cond:function(){return t().title||t().subtitle},
then:function(){return _.d("div",{class:"yt-list-item-view-model__text-wrapper"},_.d(_.y,{cond:function(){return t().title},
then:function(O){return _.d("div",{class:"yt-list-item-view-model__title-wrapper"},_.d(_.cu,{text:O,className:"yt-list-item-view-model__title"}))}}),_.d(_.y,{cond:function(){return t().subtitle},
then:function(O){return _.d(_.cu,{text:O,className:"yt-list-item-view-model__subtitle"})}}))}})},"Zd");var Mka=_.q(function(N){var t=N.data;var O=N.hideSelectionTextChevron;var H=N.TrailingAccessory;var A=N.isToggled;var Z=N.disabled;var U=N.isSelectItem;var C=N.isCompact;var F=N.inPopup;var g=N.disableHorizontalPadding;var B=N.isTappableWithoutSelect;var c=N.useButtonOrAnchor;var u=N.onTap;var S=N.shouldNotFillIcon;var b=function(){return _.d(hbr,{data:t,onTap:u,useButtonOrAnchor:c,isTappableWithoutSelect:B,isToggled:A})};
N={};return _.d("div",{class:_.V7("yt-list-item-view-model__label",(N["yt-list-item-view-model__container"]=function(){return!(U==null?0:U())},N["yt-list-item-view-model__container--disabled"]=function(){return!!t().isDisabled||!(Z==null||!Z())},N["yt-list-item-view-model__container--has-subtitle"]=function(){return!!t().subtitle},N["yt-list-item-view-model__container--compact"]=C,N["yt-list-item-view-model__container--tappable"]=B,N["yt-list-item-view-model__container--in-popup"]=F,N["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(g==null?void 0:g())&&!(U==null?0:U())},N))},_.d(SFY,{data:t,
isLeading:!0,hideSelectionTextChevron:O,isToggled:A,shouldNotFillIcon:S}),_.d(_.y,{cond:function(){return(c==null?void 0:c())&&(B==null?void 0:B())},
then:function(){return _.d(_.jUE,{command:function(){return _.a8(t().rendererContext)},
onClick:u,className:"yt-list-item-view-model__button-or-anchor",toggleable:A!==void 0,toggled:A},_.d(b,null))},
else:function(){return _.d(b,null)}}),_.d(_.y,{cond:function(){return!!H},
then:function(){return _.d("div",{class:"yt-list-item-view-model__trailing"},H&&_.d(H,null))},
else:function(){return _.d(SFY,{data:t,isLeading:!1,hideSelectionTextChevron:O,isToggled:A,shouldNotFillIcon:S})}}))},"$d");var pxy=_.q(function(N){var t=_.RH(N,{checked:!1});N=t.name;var O=t.onChange,H=t.onClick,A=t.checked,Z=t.labelRenderable,U=t.hasLeadingLabel,C=t.labelClass,F=t.isCompact,g=t.selectElementClass;t=t.disableHorizontalPadding;var B="checkbox"+_.Q1(_.gx),c=_.Ui(function(b){H==null||H(b);return!1}),u=_.Ui(function(b){O==null||O(b);
return!1}),S={};
return _.d("checkbox-shape",null,_.d("label",{class:_.V7("ytCheckboxShapeHost",C,(S.ytCheckboxShapeHostCompact=F,S.ytCheckboxShapeDisableHorizontalPadding=t,S))},_.d("input",{class:"ytCheckboxShapeInput",id:B,checked:A,name:N,type:"checkbox","prop:checked":A,"on:change":u,"on:click":c}),_.d(_.y,{cond:function(){return!(U==null?0:U())},
then:function(){return _.d(bW0,{isLeading:!0,selectElementClass:g})}}),_.d(_.y,{cond:function(){return!!Z},
then:function(){return _.d("div",{class:"ytCheckboxShapeLabel"},Z==null?void 0:Z())}}),_.d(_.y,{cond:U,
then:function(){return _.d(bW0,{isLeading:!1,selectElementClass:g})}})))},"ae");
pxy.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var bW0=_.q(function(N){var t=N.selectElementClass;N={};return _.d("div",{class:_.V7("ytCheckboxShapeCheckbox",t,(N.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(t==null?0:t())},N)),
"aria-hidden":"true"},_.d(_.dq,{icon:_.h("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.d(_.dq,{icon:_.h("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"be");_.cj=_.q(function(N){var t=N.name;var O=N.onChange;var H=N.onClick;var A=N.checked;var Z=N.labelRenderable;var U=N.useCheckIcon;var C=N.hasLeadingLabel;var F=N.labelClass;var g=N.isCompact;var B=N.selectElementClass;var c=N.ariaLabel;N=N.className;var u="radio"+_.Q1(_.gx),S=_.Fy("input"),b=_.Ui(function(E){S.value.checked=!(A==null||!A());O==null||O(E);return!1}),z=_.Ui(function(E){H==null||H(E);
return!1}),w=_.Ui(function(E){_.h("enable_ios_webview_radio_button_responsiveness")&&(E.preventDefault(),S.value.click())}),P=_.D(_.b$(!1,void 0,"TcCZlf")),x=P.next().value,l=P.next().value;
P=_.Ui(function(){var E;((E=_.cY().resolve(_.BY(_.z6)))==null?0:E.isKeyBoardInUse())&&l(!0)});
var I=_.Ui(function(){l(!1)}),r={};
return _.d("radio-shape",{class:_.V7("yt-radio-shape",N)},_.d("input",{el:S,class:"yt-radio-shape__input",id:u,"prop:checked":A,name:t,type:"radio","on:change":b,"on:click":z,"aria-label":c,"on:focusin":P,"on:focusout":I}),_.d("label",{class:_.V7("yt-radio-shape__label-container",F,(r["yt-radio-shape--compact"]=g,r["yt-radio-shape__label-container--keyboard-focused"]=x,r)),for:u,"on:click":w},_.d(_.y,{cond:function(){return!(C==null?0:C())},
then:function(){return _.d(Lma,{checked:A,useCheckIcon:U,isLeading:!0,selectElementClass:B})}}),_.d(_.y,{cond:function(){return!!Z},
then:function(){return _.d("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(c==null?0:c())?"true":"false"}},Z==null?void 0:Z())}}),_.d(_.y,{cond:C,
then:function(){return _.d(Lma,{checked:A,useCheckIcon:U,isLeading:!1,selectElementClass:B})}})))},"ce");
_.cj.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Lma=_.q(function(N){var t=N.useCheckIcon;var O=N.selectElementClass;N=function(){return(t==null?0:t())?"CHECK":_.h("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var H={};return _.d("div",{class:_.V7("yt-radio-shape__radio",O,(H["yt-radio-shape__radio--check-icon"]=t,H["yt-radio-shape__radio--radio-default-style"]=function(){return!(O==null?0:O())},H)),
"aria-hidden":"true"},_.d(_.dq,{icon:N}),_.d(_.dq,{icon:N,active:function(){return!(t==null?0:t())}}))},"de");_.$P=_.q(function(N){var t=N.data;var O=N.isMenuItem;var H=N.isCompact;var A=N.onTap;var Z=N.trailingAccessory;var U=N.hideSelectionTextChevron;var C=N.disabled;var F=N.inPopup;var g=N.disableHorizontalPadding;var B=N.isOverlay;var c=N.isToggled;var u=N.ariaLabel;var S=N.ariaPressed;var b=N.shouldNotFillIcon;var z=!_.h("web_enable_killswitch_for_selectable_list_item_on_tap_fix");N=!_.h("web_enable_killswitch_for_skip_child_tags");var w=_.cH(function(gf){return kQS(t(),gf)}),P=function(){return(g==
null?void 0:g())||t().disableHorizontalPadding},x=function(){return _.h("enable_web_shorts_captions_language_command")||_.h("web_shorts_audio_track_picker")||t().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},l=function(){return x()?Object.assign({},t(),w().data):t()},I=_.fsS(function(){return l().rendererContext}),r=function(){return!(l().isSelected===void 0||!l().selectionStyle||l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},E=function(){return(_.TE(l().rendererContext)||
A)&&!r()},J={},CN=_.V7("yt-list-item-view-model__container",(J["yt-list-item-view-model__container--tappable"]=function(){return _.TE(l().rendererContext)||r()},J["yt-list-item-view-model__container--compact"]=H,J["yt-list-item-view-model__container--in-popup"]=F,J["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(P==null?void 0:P())&&r()},J)),B4=function(){return l().leadingImage||l().leadingAccessory},zM=_.V7("yt-list-item-view-model__image-container",function(){return B4()?
"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
J=_.xxv();var jy=_.D(_.b$(!1,void 0,"w9yOLe")),c4=jy.next().value,XO=jy.next().value,kx=function(){return _.d(Mka,{data:l,hideSelectionTextChevron:U,TrailingAccessory:Z,isToggled:c,disabled:C,isSelectItem:r,isCompact:H,inPopup:F,disableHorizontalPadding:P,isTappableWithoutSelect:E,useButtonOrAnchor:fN,onTap:A,shouldNotFillIcon:b})},fN=_.h("web_button_or_anchor_list_item");
jy={};return _.d("yt-list-item-view-model",{el:_.E4(_.wZ(function(){return l().rendererContext},void 0,void 0,fN?["A".toString(),
"BUTTON".toString()]:[]),qzO(function(gf){var yr;if(yr=z)yr=l().selectionStyle,yr=yr==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||yr==="LIST_ITEM_SELECTION_STYLE_RADIO"||yr==="LIST_ITEM_SELECTION_STYLE_DEFAULT";yr||A==null||A(gf)},N?["A".toString(),
"BUTTON".toString()]:[]),RF9(function(){return E==null?void 0:E()},{focusin:function(){var gf;
((gf=_.cY().resolve(_.BY(_.z6)))==null?0:gf.isKeyBoardInUse())&&XO(!0)},
focusout:function(){XO(!1)}})),
class:_.V7("yt-list-item-view-model",(jy["yt-list-item-view-model--is-overlay"]=B,jy["yt-list-item-view-model--keyboard-focused"]=c4,jy["yt-list-item-view-model--hidden"]=function(){return x()?w().isHidden:!1},jy)),
role:function(){return(O==null?0:O())?"menuitem":"listitem"},
tabindex:function(){var gf=E();gf=fN?void 0:A||gf?0:void 0;return gf},
"on:keydown":J,"aria-label":function(){var gf;return(u==null?void 0:u())||((gf=I())==null?void 0:gf.label)},
"aria-pressed":S},_.d(_.y,{cond:r,then:function(){return _.d(_.WZ,null,_.d(_.qC,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.d(pxy,{labelRenderable:kx,
isCompact:H,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!B4()},
labelClass:CN,selectElementClass:zM,disableHorizontalPadding:P,onClick:z?A:void 0})}),_.d(_.qC,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.d(_.cj,{labelRenderable:kx,
isCompact:H,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!B4()},
labelClass:CN,selectElementClass:zM,onClick:z?A:void 0})}),_.d(_.qC,{when:function(){return l().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.d(_.cj,{labelRenderable:kx,
isCompact:H,checked:function(){return l().isSelected},
hasLeadingLabel:function(){return!!B4()},
labelClass:CN,selectElementClass:zM,useCheckIcon:!0,onClick:z?A:void 0})}),_.d(_.fL,null,kx))},
else:kx}))},"ee");
_.$P.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.jw=_.q(function(N){var t=_.D(_.ie({canHaveZeroSize:!1})),O=t.next().value;t=t.next().value;var H=function(){return JMx(O.width(),N.data().responsiveContainerConfiguration)||mip(O.width(),N.data().linearLayoutContainerConfiguration)};
return _.d("yt-linear-layout-view-model",{el:_.E4(t),class:"ytLinearLayoutViewModelHost"},_.d("div",{class:_.V7("ytLinearLayoutViewModelContainer",function(){a:switch(N.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var A="ytLinearLayoutViewModelHorizontal";break a;default:A="ytLinearLayoutViewModelVertical"}return A},function(){var A=N.data().linearLayoutContainerConfiguration;
return A?[Ist(A.flexDirection),lsN(A.justifyContent),QAy(A.alignItems)].join(" "):""}),
style:function(){var A;var Z=((A=H())==null?void 0:A.containerStyles)||{};return _.FM(Z)()}},_.d(_.iF,{data:function(){return N.data().items},
wrapper:function(A,Z,U){return _.d("div",{style:function(){var C=U(),F;if((F=H())==null)C=void 0;else{var g=F.itemStyles,B=C===0,c,u;var S=(u=(c=N.data().items)==null?void 0:c.length)!=null?u:0;C=g.call(F,B,C===S-1)}return _.FM(C||{})()}},A())}},{lockupViewModel:function(A){return _.d(_.IR,{data:A.data,
containerLayoutConfig:function(){var Z;return(Z=H())==null?void 0:Z.containerLayoutConfig}})},
basicContentViewModel:_.$b0,linearLayoutViewModel:_.jw,thumbnailViewModel:_.wV,descriptionPreviewViewModel:_.ER,listItemViewModel:_.$P,sectionHeaderViewModel:_.GX})))},"fe");_.o_(_.jw,"yt-linear-layout-view-model",{props:{data:_.$O}});_.o_(_.GA,"chips-shelf-view-model",{props:{data:_.$O,callback:_.R_,selectionBehavior:_.$O,disableChipsScrollAnimation:_.$O}});_.o_(_.q(function(N){return _.d("yt-comment-filter-context-view-model",{class:_.V7("ytCommentFilterContextHost",N.className)},_.d(_.cu,{text:function(){return N.data().text}}))},"ge"),"yt-comment-filter-context-view-model",{props:{data:_.$O,
className:_.R_}});_.zbf=_.q(function(N){var t=N.data;var O=N.onTap;var H=N.onSwitch;var A=N.overrideDisabled;N=N.disableHorizontalPadding;var Z=_.D(_.Gb(function(){var u;return((u=XpO(B()))==null?void 0:u.switchedOnByDefault)||!1})),U=Z.next().value,C=Z.next().value;
Z=_.D(_.b$(!1,void 0,"V0hCrd"));var F=Z.next().value,g=Z.next().value,B=function(){var u;if(!(u=t().switchButton)){var S=t();u=A==null?void 0:A();S={switchOnCommand:S.switchOnCommand,switchOffCommand:S.switchOffCommand,switchedOnByDefault:S.switchedOnByDefault,isDisabled:S.isDisabled,a11yLabelSwitchedOn:S.a11yLabelSwitchedOn,a11yLabelSwitchedOff:S.a11yLabelSwitchedOff};u!==void 0&&(S.isDisabled=u);u={switchButtonViewModel:S}}return u},c=function(u){var S=XpO(B());
!S||S.isDisabled||t().ignoreTapUntilCommandCompletes&&F()||(O==null||O(u),ejS(S,U(),u,t().ignoreTapUntilCommandCompletes,g),C(!U()),H==null||H(U()))};
return _.d("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.d(_.$P,{data:function(){return{title:t().title,subtitle:t().attributedSubtitle,leadingImage:t().leadingImage,leadingAccessory:t().leadingAccessory,isDisabled:t().isDisabled}},
onTap:c,isToggled:U,shouldNotFillIcon:!0,trailingAccessory:function(){return _.d(_.iF,{data:B},{switchButtonViewModel:function(u){return _.d(uz_,{data:u.data,parentActive:U,onTap:c})}})},
disableHorizontalPadding:N}))},"he");var YFE=_.q(function(N){var t=_.D(_.Gb(function(){var A,Z;return!!((A=N.data())==null?0:(Z=A.initialState)==null?0:Z.isToggled)})),O=t.next().value,H=t.next().value;
return _.d("toggleable-list-item-view-model",{el:_.E4(_.wZ(function(){return N.data().rendererContext},{onTap:function(A,Z){Z();
H(!O())}})),
class:_.V7("toggleableListItemViewModelHost",N.className)},_.d(_.y,{cond:function(){if(O()){var A=N.data().toggledListItem;A=_.M(A,_.h5)}else A=N.data().defaultListItem,A=_.M(A,_.h5);return A},
then:function(A){return _.d(_.$P,{data:A,isToggled:O,ariaLabel:function(){var Z=O()?N.data().toggledListItem:N.data().defaultListItem,U;Z=(U=_.M(Z,_.h5))==null?void 0:U.rendererContext;var C;return(C=_.M(Z,_.ue))==null?void 0:C.label},
ariaPressed:function(){return O()}})}}))},"ie");var a$y=_.CJ("DOWNLOAD",{},"Download"),T$S=_.CJ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),wx0=_.CJ("RETRY",{},"Retry"),ebf=_.CJ("PAUSE_DOWNLOADING",{},"Pause downloading"),PSX=_.CJ("RESUME_DOWNLOAD",{},"Resume download"),o5S={text:a$y,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Sq={text:T$S,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},tCO={text:wx0,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
sAp={text:ebf,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},NS9={text:PSX,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var XxR=_.q(function(N){var t=function(){var C=N.data();C=_.a8(C.rendererContext);var F;return(F=_.M(C,_.ye))==null?void 0:F.videoId},O=_.cH(function(C){var F=t(),g=A2t(N.data());
return F?_.Xo(C,F):g?_.xj(C,g):"TRANSFER_STATE_UNKNOWN"}),H=_.cz(_.G6x,t),A=_.cH(function(C){return _.WJG(C,t(),A2t(N.data()))}),Z=function(){return HIG(O(),H(),_.a8(N.data().rendererContext),!!A2t(N.data()))},U=function(){return A()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.d("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:U},_.d(_.y,{cond:function(){return!U()},
then:function(){return _.d(_.y,{cond:Z,then:function(C){return _.d(_.nL,{each:C},function(F){return _.d(_.$P,{data:F,isCompact:N.isCompact,isMenuItem:N.isMenuItem,inPopup:N.inPopup,disableHorizontalPadding:N.disableHorizontalPadding})})}})}}))},"je");
XxR.idomCompat=!0;_.xbr=_.q(function(N){var t=N.data;var O=N.isCompact;var H=N.hideSelectionTextChevron;var A=N.inPopup;var Z=N.isOverlay;var U=N.disableHorizontalPadding;var C=function(){return ZI4(t())&&(A==null?void 0:A())},F=_.h("web_list_view_model_listbox_killswitch")?"menu":"listbox";
N=_.Ui(function(B){if(A!=null&&A()&&_.h("web_enable_arrow_key_navigation_in_dropdown")){var c=_.Dzp(B.currentTarget),u=c.length;if(u!==0){var S=Array.prototype.indexOf.call(c,document.activeElement);switch(B.key){case "ArrowDown":B.preventDefault();var b;(b=c[(S+1)%u])==null||b.focus();break;case "ArrowUp":B.preventDefault();var z;(z=c[S===-1?u-1:(S-1+u)%u])==null||z.focus()}}}});
var g={};return _.d("yt-list-view-model",{class:_.V7("ytListViewModelHost",(g.ytListViewModelHostKaiosSpatNav=tHO&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",g.ytListViewModelCollectionThumbnailClass=function(){return UI4(t())},g)),
role:function(){return C()?F:"list"},
style:_.FM({"max-height":function(){var B,c=(B=t())==null?void 0:B.visibleElementCount;if(c)return UI4(t())?(c+.5)*48+"px":(c+.5)*40+"px"}}),
"on:keydown":N},_.d(_.iF,{data:function(){return t().listItems}},{listItemViewModel:function(B){return _.d(_.$P,{data:B.data,
isMenuItem:C,isCompact:O,hideSelectionTextChevron:H,inPopup:A,isOverlay:Z,disableHorizontalPadding:U})},
toggleableListItemViewModel:function(B){return _.d(YFE,{data:B.data})},
downloadListItemViewModel:function(B){return _.d(XxR,{data:B.data,isMenuItem:C,isCompact:O,inPopup:A,disableHorizontalPadding:U})},
switchListItemViewModel:function(B){return _.d(_.zbf,{data:B.data,disableHorizontalPadding:U})}}))},"ke");
_.xbr.idomCompat=!0;var k1u=_.q(function(N){var t=N.data;var O=N.isOverlay;N={};return _.d("yt-course-perks-view-model",{class:_.V7("ytwCoursePerksViewModelHost",(N.ytwCoursePerksViewModelHostOverlay=O,N))},_.d("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d("div",null,_.d(_.y,{cond:function(){return t().perks},
then:function(H){return _.d(_.xbr,{data:function(){return{listItems:H()}},
isCompact:!0,isOverlay:O})}})))},"le");_.o_(k1u,"yt-course-perks-view-model",{props:{data:_.R_,isOverlay:_.R_}});_.o_(_.q(function(N){var t=N.data;return _.d("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.d("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.d(_.cu,{text:function(){return t().progressSummary}})),_.d("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.d("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.FM({width:function(){return t().progressPercentage*100+"%"}})})))},"me"),"yt-course-progress-view-model",{props:{data:_.$O}});var qFy=_.q(function(N){var t={};return _.d("yt-progress-view-model",{class:_.V7("ytwProgressViewModelHost",(t.ytwProgressViewModelHostOverlay=_.Gr(N.isOverlay,!1),t))},_.d(_.y,{cond:function(){return N.data().progressSummary},
then:function(O){return _.d("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.d(_.cu,{text:O}))}}),_.d("div",{class:"ytwProgressViewModelHostProgressContainer"},_.d(_.y,{cond:function(){return N.data().leadingLabel},
then:function(O){return _.d("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.d(_.cu,{text:O}))}}),_.d("div",{class:"ytwProgressViewModelHostProgressBar"},_.d("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(N.data().progressPercentage||0)*100+"%"}}))))},"ne");var iY=_.q(function(N){var t=N.starNumber;var O=N.data;var H=function(){var A;return((A=O())==null?void 0:A.rating)||0};
return _.d(_.y,{cond:function(){return t()},
then:function(A){return _.d(_.WZ,null,_.d(_.qC,{when:function(){return H()>=A()-.25}},function(){return _.d("div",{class:"ytStarRatingViewModelHostStar"},_.d(_.dq,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.d(_.qC,{when:function(){return H()>=A()-.75}},function(){return _.d("div",{class:"ytStarRatingViewModelHostStar"},_.d(_.dq,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.d(_.fL,null,function(){return _.d("div",{class:"ytStarRatingViewModelHostStar"},_.d(_.dq,{icon:"STAR",
size:function(){return 24}}))}))}})},"oe"),f$f=_.q(function(N){N=N.data;
return _.d("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.d(iY,{starNumber:1,data:N}),_.d(iY,{starNumber:2,data:N}),_.d(iY,{starNumber:3,data:N}),_.d(iY,{starNumber:4,data:N}),_.d(iY,{starNumber:5,data:N}))},"pe");_.o_(_.q(function(N){var t=_.RH(N,{}).data;return _.d("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.d("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.d(_.cu,{text:function(){var O;return(O=t())==null?void 0:O.title}})),_.d("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.d(_.y,{cond:function(){return t().starProgressViewModels},
then:function(O){return _.d("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.d(_.iF,{data:O},{progressViewModel:qFy}))}}),_.d("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.d("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.d(_.cu,{text:function(){var O;
return(O=t())==null?void 0:O.averageRatingLabel}})),_.d(_.y,{cond:function(){return t().zeroStateText},
then:function(O){return _.d("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.d(_.cu,{text:O}))}}),_.d(_.y,{cond:function(){return t().starRatingViewModel},
then:function(O){return _.d("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.d(_.iF,{data:O},{starRatingViewModel:f$f}))}}),_.d("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.d(_.cu,{text:function(){var O;
return(O=t())==null?void 0:O.totalRatingsCountLabel}})))))},"qe"),"yt-course-ratings-view-model",{props:{data:_.R_}});var nKy;nKy={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"}};_.WmZ=_.q(function(N){var t=_.Fy("yt-learning-journey-loader-view-model"),O=_.dZ();_.lf(function(){requestAnimationFrame(function(){var A;(A=O.lottieEl)==null||A.addEventListener("DOMLoaded",function(){var Z;(Z=N.onLottieLoaded)==null||Z.call(N)})});
var H=N.data().browseEndpoint;H&&_.xJ(H)});
return _.d("yt-learning-journey-loader-view-model",{class:_.V7("learningJourneyLoaderViewModelHost",N.className),"data-target-id":function(){return N.data().targetId||""},
el:t},_.d(_.rd,{className:_.V7("learningJourneyLoaderViewModelLoader",N.className),animationName:function(){return nKy.animationConfig.name},
data:nKy,animationRef:O}))},"se");_.o_(_.WmZ,"yt-learning-journey-loader-view-model",{props:{data:_.$O,className:_.R_,onLottieLoaded:_.R_}});var KWy=new Set,CNQ=null;var rTr=_.q(function(N){var t=void 0,O=function(){return N.data()},H=function(){return!!_.be(_.hq(O())).optionColor},A=_.D(_.b$(-1,void 0,"eTdwcb")),Z=A.next().value,U=A.next().value,C=function(u){return Z()===u},F=function(u){return O().correctAnswerIndex===u},g=function(){return Z()!==-1};
A=_.D(_.b$("",void 0,"QwJs6"));var B=A.next().value,c=A.next().value;return _.d("learning-journey-quiz-view-model",{class:_.V7("learningQuizComponentHost","learningJourneyQuizYoututorHost",N.className),style:_.FM({background:function(){return _.be(_.hq(O())).backgroundColor}})},_.d("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},B),_.d("div",{class:"learningQuizComponentQuizContainer"},_.d("div",{class:"learningQuizComponentQuiz"},_.d("div",{class:"learningQuizComponentQuizContent"},_.d(_.y,{cond:function(){return!!O().aiGeneratedQuizLabel},
then:function(){return _.d("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.d(_.cu,{text:function(){return O().aiGeneratedQuizLabel}}))}}),_.d("div",{class:"learningQuizComponentQuizHeader",
style:_.FM({"align-items":function(){return O().overflowMenu?"start":"center"}})},_.d("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.FM({"min-height":function(){return O().overflowMenu?"48px":"26px"}})},_.d("div",{class:"learningJourneyQuizYoututorText",
style:_.FM({color:function(){return _.be(_.hq(O())).primaryTextColor}})},_.d(_.cu,{text:function(){return O().questionHeaderText}})))),_.d("div",{class:"learningQuizComponentQuizSubheader",
style:_.FM({color:function(){return _.be(_.hq(O())).secondaryTextColor}})},_.d(_.cu,{text:function(){var u=O();
return g()?u.explanationText:u.questionSubheaderText}}))),_.d("div",{role:"group",
class:_.V7("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.d(_.nL,{each:function(){return O().optionsData||[]}},function(u,S){var b={};
return _.d("button",{class:_.V7("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(b.learningQuizComponentQuizHover=function(){return!g()},b.learningQuizComponentQuizOptionWithCustomColor=H,b.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return g()&&F(S())},b.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return Z()!==O().correctAnswerIndex&&C(S())},b.learningQuizComponentQuizIncorrectShake=
function(){return Z()!==O().correctAnswerIndex&&C(S())},b)),
"on:click":_.Ui(function(){if(g())return!1;U(S());var z,w;c(F(S())?((z=O().successTitle)==null?void 0:z.content)||"":((w=O().failureTitle)==null?void 0:w.content)||"");return!1}),
style:_.FM({background:"transparent"}),"aria-description":function(){var z,w;return g()?F(S())?(z=O().successTitle)==null?void 0:z.content:(w=O().failureTitle)==null?void 0:w.content:""},
"aria-disabled":g,el:_.E4(function(z){_.pi(271905,z,t,function(w){t=w})}),
"client-ve-type":271905},_.d("div",{class:"learningQuizComponentQuizOptionContainer"},_.d(_.cu,{text:u.optionText}),_.d(_.y,{cond:function(){var z=S();return g()&&(C(z)||F(z))},
then:function(){var z={};return _.d(_.dq,{className:_.V7("learningJourneyQuizYoututorOptionIcon",(z.learningQuizComponentQuizPulse=function(){return Z()===O().correctAnswerIndex&&F(S())},z)),
size:24,icon:function(){return F(S())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.d(_.y,{cond:g,
then:function(){return _.d("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.d("div",{class:"learningJourneyQuizYoututorExplanationText"},_.d(_.cu,{text:function(){return O().explanationHeaderText}})),_.d(_.cu,{text:function(){return O().optionsData[Z()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"te");
rTr.idomCompat=!0;var I$p;_.l$E=_.q(function(N){var t=null,O=null,H=null,A=function(){return N.data()},Z=function(){return _.be(_.hq(A()))},U=function(){return!!Z().optionColor},C=_.D(_.b$(-1,void 0,"gXauJb")),F=C.next().value,g=C.next().value,B=function(I){return F()===I},c=function(I){return A().correctAnswerIndex===I},u=function(){return F()!==-1},S=function(){return F()===A().correctAnswerIndex},b=function(){var I=A(),r=u(),E=S();
return r?E?I.successTitle:I.failureTitle:I.questionHeaderText},z=function(){var I=u(),r=S();
return I?r?264685:264684:264683},w=function(){var I=A();
return u()?I.explanationText:I.questionSubheaderText},P=function(){return!!A().video},x=function(I){return S()&&c(I)},l=_.Ui(function(){g(-1);
return!1});
return _.d(_.y,{cond:function(){return A().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.d(rTr,{data:function(){return A()}})},
else:function(){return _.d("learning-journey-quiz-view-model",{class:_.V7("learningQuizComponentHost",N.className),style:_.FM({background:function(){return Z().backgroundColor}})},_.d(_.y,{cond:P,
then:function(){return _.d("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.FM({background:function(){return Z().videoBackgroundColor}})},_.d(_.iF,{data:function(){return A().video}},{lockupViewModel:function(I){return _.d(_.IR,{data:I.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.d("div",{class:"learningQuizComponentQuizContainer"},_.d("div",{class:"learningQuizComponentQuiz"},_.d("div",{class:"learningQuizComponentQuizContent"},_.d(_.y,{cond:function(){return!!A().aiGeneratedQuizLabel},
then:function(){return _.d("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.d(_.cu,{text:function(){return A().aiGeneratedQuizLabel}}))}}),_.d("div",{class:"learningQuizComponentQuizHeader",
style:_.FM({"align-items":function(){return A().overflowMenu?"start":"center"}})},_.d("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.FM({"min-height":function(){return A().overflowMenu?"48px":"26px"}})},_.d("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.E4(function(I){_.pi(z(),I,t,function(r){t=r})}),
style:_.FM({color:function(){return Z().primaryTextColor}}),
"client-ve-type":z},_.d(_.cu,{text:b}))),_.d("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.d(_.y,{cond:u,then:function(){return _.d("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.E4(function(I){_.pi(264687,I,O,function(r){O=r})}),
"on:click":l,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.FM({fill:function(){return Z().primaryTextColor}})},_.d("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"})))}}),
_.d(_.iF,{data:function(){return A().overflowMenu}},{buttonViewModel:function(I){return _.d(_.Pu,{data:I.data})}}))),_.d("div",{class:"learningQuizComponentQuizSubheader",
el:_.E4(function(I){_.pi(264688,I,H,function(r){H=r})}),
style:_.FM({color:function(){return Z().secondaryTextColor}}),
"client-ve-type":264688},_.d(_.cu,{text:w}))),_.d("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.d(_.nL,{each:function(){return A().optionsData||[]}},function(I,r){var E={};
return _.d("button",{class:_.V7("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(E.learningQuizComponentQuizHover=function(){return!u()},E.learningQuizComponentQuizOptionWithCustomColor=U,E.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return x(r())},E.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!S()&&B(r())},E.learningQuizComponentQuizIncorrectShake=function(){return!S()&&
B(r())},E.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return u()&&!B(r())},E)),
"on:click":_.Ui(function(){if(u())return!1;g(r());return!1}),
style:_.FM({background:function(){var J=r();return u()&&B(J)?"":U()?Z().optionColor:"transparent"}}),
"aria-disabled":u,"client-ve-type":264686},_.d("div",{class:"learningQuizComponentQuizOptionContainer"},_.d(_.y,{cond:u,then:function(){return _.d(I$p,{isOptionCorrect:c,optionIndex:r,isOptionSelectedAndCorrect:x,colors:Z})}}),_.d(_.cu,{text:I.optionText})))})))))}})},"ue");
I$p=_.q(function(N){var t={};return _.d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var O=N.optionIndex();return N.isOptionCorrect(O)?"0 0 24 24":"0 -960 960 960"},
class:_.V7("learningJourneyQuizViewModelQuizOptionIconLeading",(t.learningQuizComponentQuizPulse=function(){return N.isOptionSelectedAndCorrect(N.optionIndex())},t)),
style:_.FM({fill:function(){return N.colors().primaryTextColor}})},_.d("path",{d:function(){var O=N.optionIndex();
return N.isOptionCorrect(O)?"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"}}))},"ve");
_.l$E.idomCompat=!0;_.o_(_.l$E,"learning-journey-quiz-view-model",{props:{data:_.$O,className:_.$O}});var QU0=_.q(function(N){var t=_.D((0,_.HIZ)(function(){var U;return{targetId:(U=N.data().config)==null?void 0:U.suspenseKey,contents:[N.data()]}})).next().value,O=_.cY().resolve(_.jo),H=function(){var U=t().contents.length>0?t().contents[0]:void 0;
return U==null?void 0:U.config},A=function(){var U;
return(U=H())==null?void 0:U.entityTriggerConfig},Z=_.cz(Ahv,function(){var U,C;
return(C=(U=A())==null?void 0:U.entityKey)!=null?C:""});
_.rp(function(){var U,C,F,g=(F=Number((U=A())==null?void 0:(C=U.invalidationTimestamp)==null?void 0:C.seconds))!=null?F:0,B,c,u;if(((u=Number((B=Z())==null?void 0:(c=B.lastUpdated)==null?void 0:c.seconds))!=null?u:0)>g){var S;(U=(S=H())==null?void 0:S.continuationCommand)&&O.resolveCommand(U)}},"tC8nKe");
return _.d("yt-suspense-view-model",{class:_.V7("ytSuspenseViewModelHost")},_.d(_.iF,{data:function(){var U;return(U=H())==null?void 0:U.contents}},{lockupViewModel:_.IR}))},"xe");var mba=_.q(function(N){var t=_.RH(N,{palette:void 0,isLastItem:!1}),O=t.palette,H=t.isLastItem,A=function(){return N.data().isHighlighted},Z=function(){var F;
return dIQ((F=O())==null?void 0:F.iconDisabledColor)},U=function(){var F;
return dIQ((F=O())==null?void 0:F.primaryTitleColor)},C=function(){var F;
return dIQ((F=O())==null?void 0:F.secondaryTitleColor)};
t={};return _.d("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.E4(_.wZ(function(){return N.data().rendererContext}))},_.d(_.iF,{data:function(){return N.data().thumbnail}},{thumbnailViewModel:_.wV}),_.d("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.d("div",{class:_.V7("ytMacroMarkerListItemViewModelTimeDescription",(t.ytMacroMarkerListItemViewModelHighlighted=A,t)),
style:_.FM({"background-color":function(){return A()?U():Z()},
color:function(){return A()?"":C()}})},_.d(_.cu,{text:function(){return N.data().timestamp}})),_.d("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.FM({"background-color":function(){return H()?"transparent":Z()}})}),_.d("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(A()?U():C())}},_.d(_.cu,{text:function(){return N.data().title}}))))},"ye");_.uY=_.q(function(N){function t(US){x("transform:translateX("+(_.Ro("HTML_DIR")==="rtl"?"":"-")+US+"px)")}
function O(US){return Math.min(Math.max(US,0),P()-J())}
function H(){var US=r()+jy();return A()?(Math.round(J()/US)||1)*US:0}
var A=function(){return N.data().items||[]},Z=function(){return N.data().previousButton},U=function(){return N.data().nextButton},C=function(){var US,H0;
return(H0=(US=N.disableArrows)==null?void 0:US.call(N))!=null?H0:!1},F=function(){var US;
return!((US=N.forceNarrowLayout)==null||!US.call(N))},g=_.aa(function(){var US;
return!((US=N.centerAlignItems)==null||!US.call(N))&&P()<=J()},void 0,"Uto0kc"),B=_.Fy("horizontal-shelf-view-model"),c=_.Fy("div"),u=_.D(_.b$(0,void 0,"G0xZB")),S=u.next().value,b=u.next().value;
u=_.D(_.b$(0,void 0,"kqCYFf"));var z=u.next().value,w=u.next().value,P=z;z=_.D(_.b$("",void 0,"Hh6Uye"));u=z.next().value;var x=z.next().value;z=_.D(_.b$(0,void 0,"yMGBKb"));var l=z.next().value,I=z.next().value,r=l;z=_.D(_.b$(0,void 0,"VChthd"));l=z.next().value;var E=z.next().value,J=l;z=_.D(_.b$(!1,void 0,"qJlhhe"));var CN=z.next().value,B4=z.next().value;z=_.D(_.b$(0,void 0,"x7H94"));l=z.next().value;var zM=z.next().value,jy=l;z=_.D(_.b$(0,void 0,"ksuUee"));var c4=z.next().value,XO=z.next().value;
z=_.D(_.b$("50%",void 0,"uxCxde"));var kx=z.next().value,fN=z.next().value,gf=function(){var US,H0=(US=N.data())==null?void 0:US.responsiveContainerConfiguration,SE,v0;return H0?fx(H0==null?void 0:H0.responsiveSize):(v0=(SE=N.sizing)==null?void 0:SE.call(N))!=null?v0:"STANDARD"};
z=_.aa(function(){return!C()&&S()>0},void 0,"XK60w");
l=_.aa(function(){return!C()&&S()<P()-J()},void 0,"D22LVd");
var yr=function(){b(O(S()-H()));t(S())},sS=function(){b(O(S()+H()));
t(S())},$X=function(){B.value!==null&&wf()},pR;
_.Q8(function(){wf();window.ResizeObserver?(pR=new ResizeObserver(_.Tj($X,0)),pR.observe(B.value)):window.addEventListener("resize",$X)});
_.Ia(function(){if(window.ResizeObserver){var US;(US=pR)==null||US.disconnect()}else window.removeEventListener("resize",$X)});
var wf=function(){var US=B.value.clientWidth,H0=N.includeMargin!==void 0?N.includeMargin():!1,SE;var v0=N.hasPeek!==void 0?N.hasPeek():!((SE=N.data())==null||!SE.hasPeek);US=_.qU({containerWidth:US,hasPeek:v0,sizing:gf(),marginSettings:H0?F()?4:1:0});zM(US.gutter);XO(US.margin);I(US.itemWidth);B4(US.maxContainerWidth<528||F());E(US.maxContainerWidth);A()&&w((US.itemWidth+US.gutter)*A().length-US.gutter);if(A()){var hu;if(((hu=N.thumbnailAspectRatio)==null?void 0:hu.call(N))!==void 0){var sp;fN(r()/
XNg((sp=N.thumbnailAspectRatio)==null?void 0:sp.call(N))/2+"px")}else fN("50%")}},b1={},$r={};
return _.d("horizontal-shelf-view-model",{class:_.V7("ytwHorizontalShelfViewModelHost",N.className),el:B},_.d(_.y,{cond:function(){var US;return N.data().header&&!((US=N.horizontalShelfExperiments)==null?0:US.call(N).hideHeader)},
then:function(){return _.d("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.FM({width:function(){return J()+"px"},
padding:function(){return"0 "+c4()+"px"}})},_.d(_.iF,{data:function(){return N.data().header}},{sectionHeaderViewModel:function(US){return _.d(_.GX,{data:US.data,
disableHorizontalPadding:!0,forceSmallLayout:CN,useResponsiveLayout:!0})}}))}}),_.d("div",{class:_.V7("ytwHorizontalShelfViewModelOuterContainer",(b1.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return g()},b1)),
style:_.FM({"margin-top":function(){var US,H0=N.data().header&&!((US=N.horizontalShelfExperiments)==null?0:US.call(N).hideHeader),SE;return(((SE=N.ensureMarginTop)==null?0:SE.call(N))&&!H0?12:0)+"px"}})},_.d("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.FM({width:function(){return J()+"px"},
padding:function(){return"0 "+c4()+"px"},
overflow:function(){return C()?"auto":"hidden"}})},_.d("div",{class:_.V7("ytwHorizontalShelfViewModelItems",($r.ytwHorizontalShelfViewModelCenterAlignItems=function(){return g()},$r)),
el:c,style:u},_.d(_.iF,{data:A},{macroMarkerListItemViewModel:function(US,H0){return _.d("div",{style:_.FM({width:function(){return r()+"px"},
"margin-right":function(){return(H0()===A().length-1?0:jy())+"px"}})},_.d(mba,{data:US.data,
palette:_.Gr(N.palette),isLastItem:function(){return H0()===A().length-1}}))},
lockupViewModel:function(US,H0){var SE=US.data;return _.d("div",{style:_.FM({width:function(){return r()+"px"},
"margin-right":function(){return(H0()===A().length-1?0:jy())+"px"}})},_.d(_.IR,{data:SE,
containerType:4,sizing:gf,protectBackground:N.protectBackground,thumbnailFixedWidth:function(){return gQS(SE())+"px"},
thumbnailTargetWidth:function(){return gQS(SE())}}))},
suspenseViewModel:function(US,H0){return _.d("div",{style:_.FM({width:function(){return r()+"px"},
"margin-right":function(){return(H0()===A().length-1?0:jy())+"px"}})},_.d(QU0,{data:US.data}))}}))),_.d(_.y,{cond:z,
then:function(){return _.d("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.FM({top:function(){return kx()}})},_.d(_.iF,{data:Z},{buttonViewModel:function(US){return _.d(_.Pu,{data:US.data,
onClick:yr})}}))}}),_.d(_.y,{cond:l,
then:function(){return _.d("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.FM({top:function(){return kx()}})},_.d(_.iF,{data:U},{buttonViewModel:function(US){return _.d(_.Pu,{data:US.data,
onClick:sS})}}))}})))},"ze");
_.uY.idomCompat=!0;var EKQ=_.q(function(N){var t=function(){return N.data().targetId||""},O=function(){var z;
return((z=N.data())==null?void 0:z.expansionEntityKey)||""},H=_.cz(_.H4N,O),A=!0,Z=function(){var z;
return((z=H())==null?void 0:z.value)===t()},U=function(z){_.E6(_.uF("stringEntity",O(),{key:O(),
value:z?t():""}))};
_.lf(function(){A=!1;N.data().isExpanded&&U(!0)});
var C=function(){if(Z()){var z=!0;N.onCollapse!==void 0&&(z=N.onCollapse());z&&U(!1)}else U(!0)},F=_.Ui(C),g=function(){var z;
return(((z=N.accordionStyle)==null?void 0:z.call(N))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},B=_.Fy("div"),c=function(){var z,w;
return(w=(z=_.M(N.data().rendererContext,_.ue))==null?void 0:z.label)!=null?w:""},u=function(){var z,w;
return{disabled:(z=N.hideIfNotExpanded)==null?void 0:z.call(N),ariaHidden:(w=N.hideIfNotExpanded)==null?void 0:w.call(N)}},S={},b={};
return _.d("yt-accordion-item-view-model",{class:_.V7("ytAccordionItemViewModelHost",N.className,(S.ytAccordionItemViewModelExpanded=function(){return Z()},S.ytAccordionItemViewModelHidden=function(){var z;
return(z=N.hideIfNotExpanded)==null?void 0:z.call(N)},S.ytAccordionItemViewModelMini=g,S)),
"data-target-id":t},_.d("div",{class:"ytAccordionItemViewModelContainer"},_.d("div",{class:"ytAccordionItemViewModelLeftSection","on:click":F,title:c,"aria-hidden":function(){var z;return(z=N.hideIfNotExpanded)==null?void 0:z.call(N)}},_.d(_.cu,{text:function(){return N.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:c})),_.d("div",{class:"ytAccordionItemViewModelRightSection"},_.d(_.iF,{data:function(){return Z()?N.data().expandButton:N.data().collapseButton}},{buttonViewModel:function(z){return _.d(_.Pu,{data:z.data,
className:"ytAccordionItemViewModelToggleButton",onClick:C,buttonOverrides:u})}}))),_.d("div",{class:"ytAccordionItemViewModelContainer"},_.d("div",{class:_.V7("ytAccordionItemViewModelContent",(b.ytAccordionItemViewModelExpandedSubtitle=function(){return Z()},b)),
el:B,style:_.FM({"max-height":function(){return A?"auto":Z()?B.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!Z()}},_.d(_.y,{cond:function(){return!g()},
then:function(){return _.d(_.cu,{text:function(){return N.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.d(_.iF,{data:function(){return N.data().content}},{horizontalShelfViewModel:function(z){return _.d(_.uY,{data:z.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Be");_.G1Z=_.q(function(N){var t=_.D((0,_.HIZ)(N.data)).next().value,O=function(){return N.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},H=function(){return O()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},A=_.D(_.b$(!0,void 0,"VFpYAb")),Z=A.next().value,U=A.next().value,C=function(){return H()&&Z()},F=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){U(!Z())}}},g=_.Ui(function(){t().onTitleTap&&_.xJ(t().onTitleTap||{})});
A={};return _.d("yt-accordion-view-model",{class:_.V7("ytAccordionViewModelHost",(A.ytAccordionViewModelMinimized=function(){return C()},A)),
"data-target-id":function(){return N.data().targetId||""}},_.d(_.y,{cond:function(){return H()||!!t().title},
then:function(){return _.d("div",{class:"ytAccordionViewModelHeader"},_.d("div",{class:"ytAccordionViewModelTitleSection"},_.d("div",{class:"ytAccordionViewModelTitleWrapper"},_.d(_.y,{cond:function(){return!!N.data().headerIcon},
then:function(){return _.d(_.dq,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var B;return(B=N.data().headerIcon)==null?void 0:B.iconType}})}}),_.d("div",{class:"ytAccordionViewModelTitle",
"on:click":g},_.d(_.cu,{className:"ytAccordionViewModelTitleText",text:function(){return t().title}})))),_.d("div",{class:"ytAccordionViewModelButtonSection"},_.d(_.y,{cond:H,
then:function(){return _.d(_.et,{data:F,iconName:function(){return C()?"chevron_down":"chevron_collapse"}})}})))}}),_.d("div",{class:"ytAccordionViewModelContent"},_.d(_.iF,{data:function(){return t().contents}},{accordionItemViewModel:function(B){return _.d(EKQ,{data:B.data,
className:"ytAccordionViewModelRow",accordionStyle:O,hideIfNotExpanded:C,onCollapse:function(){return H()?(U(!0),!1):!0}})}})),_.d("div",null,_.d(_.y,{cond:function(){return!H()&&(!!t().disclaimerFooter||!!t().footer)},
then:function(){return _.d("div",{class:"ytAccordionViewModelFooter"},_.d(_.cu,{text:function(){return t().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.d(_.iF,{data:function(){return N.data().footer}},{flexibleActionsViewModel:function(B){return _.d(_.Co,{data:B.data,
layout:0})}}))}})))},"Ce");_.o_(_.G1Z,"yt-accordion-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=null,O=null,H,A=(H=_.cY().resolve(_.BY(_.WV)))==null?void 0:H(),Z=_.D(_.b$(!1,void 0,"CmEVtc"));H=Z.next().value;var U=Z.next().value;Z=_.D(_.b$(!0,void 0,"yo9dR"));var C=Z.next().value,F=Z.next().value,g=_.Fy("textarea",function(w){_.pi(264503,w,t,function(P){t=P})}),B=function(w){U(!0);
w={learningJourneyFormData:{query:w}};_.xJ(N.data().searchEndpoint||{},{form:{formData:w}});return!1},c=_.Ui(function(w){w.target.closest("button-view-model")&&U(!0)});
Z=_.Ui(function(){F(g.value.value.length===0)});
var u=_.Ui(function(w){if(w.key==="Enter"&&!w.shiftKey&&!C()){var P=w.target;w.preventDefault();B(P.value)}}),S={},b={},z={};
return _.d("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.d("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.d(_.Qt,{data:function(){return N.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.d("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.d("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.d("div",{class:_.V7("ytLearningJourneyZeroStateSearchBar",(S.ytLearningJourneyZeroStateSearchBarDark=A,S))},_.d("textarea",{class:_.V7("ytLearningJourneyZeroStateTextInput",(b.ytLearningJourneyZeroStateTextInputDark=A,b)),el:g,"on:keyup":Z,"on:keydown":u,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.d("div",{class:_.V7("ytLearningJourneyZeroStateSearchButtonContainer",(z.ytLearningJourneyZeroStateSearchButtonContainerDark=A,z))},_.d(_.Pu,{data:function(){return _.M(N.data().searchButton,_.$9)},
className:"search-button",onClick:function(){return B(g.value.value)},
buttonOverrides:function(){return{disabled:C(),style:A?"mono-inverse":"mono",size:"XL"}}}))),_.d(_.y,{cond:function(){return!!N.data().errorBanner},
then:function(){return _.d("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.E4(function(w){_.pi(264617,w,O,function(P){O=P})})},_.d(_.iF,{data:function(){return N.data().errorBanner}},{alertBannerViewModel:function(w){return _.d(_.B$_,{data:w.data,
"client-ve-type":264617})}}))}})),_.d(_.y,{cond:H,
then:function(){return _.d("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.d(_.iF,{data:function(){return N.data().loader}},{learningJourneyLoaderViewModel:function(w){return _.d(_.WmZ,{data:w.data})}}))},
else:function(){return _.d("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.d(_.y,{cond:function(){return!!N.data().learningJourneyShelf},
then:function(){return _.d("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.d("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return N.data().learningJourneySectionTitle}),_.d(_.iF,{data:function(){return N.data().learningJourneyShelf}},{horizontalShelfViewModel:function(w){return _.d(_.uY,{data:w.data,
centerAlignItems:!0})}}))}}),_.d("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.d("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return N.data().suggestedJourneySectionTitle}),_.d("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":c},_.d(_.iF,{data:function(){return N.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(w){return _.d(_.Co,{data:w.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"De"),"yt-learning-journey-zero-state",{props:{data:_.$O}});var Rb_=_.q(function(N){var t=N.data;return _.d("ytvl-live-leaderboard-item-action-content-view-model",{class:_.V7("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.d(_.cu,{text:function(){var O;return(O=t())==null?void 0:O.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.d(_.iF,{data:function(){return t().actionButton}},{buttonViewModel:function(O){return _.d(_.Pu,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:O.data})}}))},"Ee");var vKS=_.q(function(N){var t=N.data;return _.d("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.V7("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.d(_.cu,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var O;return(O=t())==null?void 0:O.displayName},
ellipsisTruncate:!0}),_.d(_.iF,{data:function(){return t().badge}},{buttonViewModel:function(O){return _.d(_.Pu,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:O.data})}}))},"Fe");_.o_(_.q(function(N){var t=N.data;return _.d("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.d("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.d(_.cu,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var O;return(O=t())==null?void 0:O.rank}})),_.d("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.d(_.iF,{data:function(){return t().avatar}},{avatarViewModel:_.Dv})),_.d("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.d(_.iF,{data:function(){return t().content}},{liveLeaderboardItemChannelContentViewModel:vKS,
liveLeaderboardItemActionContentViewModel:Rb_})),_.d(_.cu,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var O;return(O=t())==null?void 0:O.points}}))},"Ge"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;return _.d("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.d(_.cu,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var O,H;return(O=t())==null?void 0:(H=O.ranking)==null?void 0:H.rank}}),_.d("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.d(_.iF,{data:function(){return t().avatar}},{avatarViewModel:_.Dv})),_.d(_.cu,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var O,H;return(O=t())==null?void 0:(H=O.channelContent)==null?void 0:H.channelName}}),_.d(_.cu,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var O;return(O=t())==null?void 0:O.points}}))},"He"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.$O}});var JT_=_.q(function(N){N=_.RH(N,{wrapper:!1}).wrapper;return _.d(_.y,{cond:N,then:function(){return _.d("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.d("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.d("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ie");
JT_.idomCompat=!0;var oKy=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],sUZ=_.q(function(N){var t=N.data;var O=_.E4(),H=_.aa(function(){return t().command},void 0,"fyYsT");
_.rp(function(){H()&&_.eF(H(),{form:{element:O.value}})},"B0nxdb");
return _.d("div",{el:O,class:"YtQrCodeRendererHostContainer"},_.d(_.y,{cond:function(){return t().qrCodeImage},
then:function(A){return _.d(_.Qt,{data:A,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.d(_.y,{cond:function(){return t().spinner},
then:function(){return _.d(JT_,null)}})}}),_.d(_.y,{cond:function(){return t().label},
then:function(A){return _.d(_.cu,{text:A,className:"YtQrCodeRendererHostLabel"})}}),_.d(_.y,{cond:function(){return t().labels},
then:function(A){return _.d("div",{class:"YtQrCodeRendererHostLabels"},_.d(_.nL,{each:A},function(Z){return _.d(_.cu,{text:Z})}))}}))},"Le");_.o_(_.q(function(N){var t=N.data;var O=_.aa(function(){return t().qrEntityKey},void 0,"LmZ2xf"),H=_.aa(function(){return t().deleteEntityOnDismiss},void 0,"my0Tzb"),A=_.aa(function(){return t().command},void 0,"hzECIb"),Z=_.cz($Wp,O);
N=_.aa(function(){return t().qrCodeImage},void 0,"AnD9rc");
var U=_.aa(function(){return t().style&&oKy.includes(t().style)},void 0,"f5fZv"),C=_.iU({visibilityCallback:function(F){F&&A()&&_.eF(A())},
showOption:{calledOnce:!0,state:"visible"}});_.Q8(function(){_.Ia(function(){H()&&O()&&_.mN().dispatch(_.uF("qrCodeEntity",O()))})});
return _.d("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.E4(C)},_.d(_.y,{cond:U,then:function(){return _.d(_.y,{cond:Z,then:function(F){return _.d(sUZ,{data:F})}})}}),_.d(_.y,{cond:N,
then:function(F){return _.d(_.Qt,{data:F,alt:""})}}))},"Je"),"yt-qr-code-renderer",{props:{data:_.$O}});var tyr=_.q(function(N){var t=function(){return _.TV(1728053247&(N.barColor!==void 0?By(N.barColor()):4278190080))};
return _.d("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.d("div",{class:"ytVideoOverviewGhostCardDetails"},_.d(Nt5,{animationDelay:0,percentWidth:100,barColor:function(){return t()}}),_.d(Nt5,{animationDelay:600,
percentWidth:60,barColor:function(){return t()}})))},"Me"),Nt5=_.q(function(N){return _.d("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+N.percentWidth()+"%"}},_.d("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var t=N.animationDelay(),O=N.barColor();return"animation-delay:"+t+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+O+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ne");var ONJ;_.HNm=_.q(function(N){function t(P){U(P)}
var O=N.data;var H=_.Fy("yt-video-overview-view-model"),A=_.yM("div");N=_.D(_.b$(-1,void 0,"dW11He"));var Z=N.next().value,U=N.next().value;N=_.D(_.b$(0,void 0,"LqrsK"));var C=N.next().value,F=N.next().value,g={},B=_.cz(y2M,function(){return O().asyncDataEntityKey}),c=function(){var P;
if((P=B())==null?0:P.videoOverviewViewModel){var x;return _.M((x=B())==null?void 0:x.videoOverviewViewModel,pRR)}return O()};
_.Q8(function(){F(Math.min((H.value.clientWidth-24)/4-8,72))});
var u=function(P){U(P);(A==null?0:A.value)&&A.value.children[P]&&A.value.children[P].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
iQx(H,function(){var P;if((P=c())==null||!P.inlinePlaybackEndpoint)return null;var x;P=g==null?void 0:(x=g.thumbnailElRef)==null?void 0:x.value;if(!P)return null;var l;x=(l=c())==null?void 0:l.inlinePlaybackEndpoint;l=_.M(x,WTB);return{multipleVideoPreviewData:{data:(l==null?0:l.playerDescriptors)&&(l==null?0:l.playerDescriptors.length)?l.playerDescriptors:[],thumbnailElement:P,trackingParams:"test",callbacks:{onPlaybackStarted:u},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var S=function(){var P;return((P=c())==null?void 0:P.headerSubtext)!==void 0?!0:!1},b=function(){var P,x=By((P=c())==null?void 0:P.titleColor);
return x?"color: "+_.TV(x)+";":void 0},z=function(){var P,x=By((P=c())==null?void 0:P.subtextColor);
return x?"color: "+_.TV(x)+";":void 0},w=function(){return _.d("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.d("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return b()}},_.d(_.cu,{text:function(){var P;
return(P=c())==null?void 0:P.headerText}})),_.d(_.y,{cond:S,
then:function(){return _.d("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.d("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return z()}},_.d(_.dq,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.d("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return z()}},_.d(_.cu,{text:function(){var P;
return(P=c())==null?void 0:P.headerSubtext}})))}}))};
N={};return _.d("yt-video-overview-view-model",{class:_.V7("ytGenAiVideoOverviewViewModelHost",(N.ytGenAiVideoOverviewViewModelMweb=!1,N.ytGenAiVideoOverviewViewModelDesktop=!0,N)),el:H,style:function(){var P,x=By((P=c())==null?void 0:P.backgroundColor);return x?"background-color: "+_.TV(x)+";":void 0}},_.d(_.y,{cond:function(){var P;
return(P=c())==null?void 0:P.isLoading},
then:function(){return _.d(tyr,{barColor:function(){var P;return(P=c())==null?void 0:P.titleColor}})},
else:function(){return _.d(_.BZ,null,null,_.d("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.d(_.iF,{data:function(){var P;return(P=c())==null?void 0:P.thumbnail}},{thumbnailViewModel:function(P){return _.d(_.wV,{data:P.data,
aspectRatio:0,playbackRef:$Dp(g)})}})),_.d("div",{class:"ytGenAiVideoOverviewViewModelDetails"},w(),_.d(_.y,{cond:function(){var P,x,l,I;
return((P=c())==null?void 0:(x=P.listItems)==null?void 0:x.length)!==void 0&&((l=c())==null?void 0:(I=l.listItems)==null?void 0:I.length)>0?!0:!1},
then:function(){return _.d("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:A},_.d(_.nL,{each:function(){var P;return(P=c())==null?void 0:P.listItems}},function(P,x){return _.d(ONJ,{image:P.image,
index:x,isSelected:function(){return x()===Z()},
onClick:t,itemWidth:C})}))}}),_.d("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.d("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return b()}},_.d(_.cu,{text:function(){var P,x,l,I,r,E,J;
return(J=(P=c())==null?void 0:(x=P.listItems)==null?void 0:(l=x[Z()])==null?void 0:l.headline)!=null?J:(I=c())==null?void 0:(r=I.listItems)==null?void 0:(E=r[0])==null?void 0:E.headline}})),_.d("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return z()}},_.d(_.cu,{text:function(){var P,x,l,I,r,E,J;
return(J=(P=c())==null?void 0:(x=P.listItems)==null?void 0:(l=x[Z()])==null?void 0:l.subtext)!=null?J:(I=c())==null?void 0:(r=I.listItems)==null?void 0:(E=r[0])==null?void 0:E.subtext}})))))}}))},"Oe");
ONJ=_.q(function(N){var t=N.image;var O=N.itemWidth;var H=N.index;var A=N.isSelected;var Z=N.onClick;N=_.Ui(function(){H!==void 0&&Z!==void 0&&Z(H());return!1});
var U={};return _.d("div",{class:_.V7("ytGenAiVideoOverviewViewModelCarouselItem",(U.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return A==null?void 0:A()},U)),
style:function(){return"width: "+O()+"px;"},
"on:click":N},_.d(_.Qt,{data:t,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.d(_.y,{cond:function(){return A==null?void 0:A()},
then:function(){return _.d("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.d("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Pe");
_.HNm.idomCompat=!0;_.o_(_.HNm,"yt-video-overview-view-model",{props:{data:_.$O}});_.Ag1=_.q(function(N){var t=N.data;var O=N.topbarOffset;var H,A=((H=_.cY().resolve(_.BY(_.WV)))==null?void 0:H())||!1;return _.d("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var Z=t();var U,C,F=A?(U=Z.config)==null?void 0:U.darkThemeBackgroundColor:(C=Z.config)==null?void 0:C.lightThemeBackgroundColor;Z=F?_.aI(F):void 0;Z="background-color: "+Z+";";O!==void 0&&(Z+="top: -"+O()+"px;");return Z},
"aria-hidden":!0},_.d(_.y,{cond:function(){var Z,U,C;return!!((Z=t().backgroundImageConfig)==null?0:(U=Z.image)==null?0:(C=U.sources)==null?0:C.length)},
then:function(){return _.d(_.Qt,{data:function(){var Z;return(Z=t().backgroundImageConfig)==null?void 0:Z.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.d("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+BSp(A,t().gradientColorConfig)+";"}}))},"Qe");
_.Ag1.idomCompat=!0;var ZNJ=_.q(function(N){var t=N.data;var O=N.isOverlay;return _.d("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.d("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.d(_.iF,{data:function(){return t().header}},{sectionHeaderViewModel:function(H){return _.d(_.GX,{data:H.data,
isOverlay:O})}})),_.d("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.d(_.iF,{data:function(){return t().channelInfoButtons}},{flexibleActionsViewModel:_.Co})),_.d("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.d(_.iF,{data:function(){return t().description}},{descriptionPreviewViewModel:function(H){return _.d(_.ER,{data:H.data,
isOverlay:O})}})))},"Re");
ZNJ.idomCompat=!0;var VyJ=_.q(function(N){var t=N.data;var O={};return _.d("factoid-view-model",{class:_.V7("ytwFactoidViewModelHost",(O.ytwFactoidViewModelHostOverlay=N.isOverlay,O))},_.d(_.cu,{text:function(){return t().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.d(_.cu,{text:function(){return t().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Se");
VyJ.idomCompat=!0;var Dzz=_.q(function(N){var t=N.data;var O=N.isOverlay;return _.d("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.d(_.iF,{data:function(){return t().factoids}},{factoidViewModel:function(H){return _.d(VyJ,{data:H.data,
isOverlay:O})}}))},"Te");
Dzz.idomCompat=!0;_.Uz1=_.q(function(N){var t=N.data;var O=N.isOverlay;return _.d("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.d(_.iF,{data:function(){return t().items}},{channelInfoViewModel:function(H){return _.d("div",{class:"ytwCourseMetadataViewModelHostItem"},_.d(ZNJ,{data:H.data,
isOverlay:O}))},
coursePerksViewModel:function(H){return _.d("div",{class:"ytwCourseMetadataViewModelHostItem"},_.d(k1u,{data:H.data,isOverlay:O}))},
descriptionPreviewViewModel:function(H){return _.d("div",{class:"ytwCourseMetadataViewModelHostItem"},_.d(_.ER,{data:H.data,isOverlay:O}))},
factoidsRowViewModel:function(H){return _.d("div",{class:"ytwCourseMetadataViewModelHostItem"},_.d(Dzz,{data:H.data,isOverlay:O}))},
progressViewModel:function(H){return _.d("div",{class:"ytwCourseMetadataViewModelHostItem"},_.d(qFy,{data:H.data,isOverlay:O}))}}))},"Ue");var CQ1=_.q(function(N){return _.d("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.d(_.iF,{data:function(){return N.data().content}},{courseMetadataViewModel:function(t){return _.d(_.Uz1,{data:t.data,
isOverlay:N.isOverlay})},
progressViewModel:function(t){return _.d(qFy,{data:t.data})}}))},"Ve");var KGn=_.q(function(N){var t=N.data;N=N.className;var O=function(){var A;return _.TE((A=t())==null?void 0:A.rendererContext)},H={};
H=(H.dynamicTextViewModelHost=!0,H.dynamicTextViewModelHostTappable=function(){return O()},H);
return _.d("yt-dynamic-text-view-model",{el:_.E4(_.wZ(function(){var A;return(A=t())==null?void 0:A.rendererContext})),
role:function(){return O()?"link":void 0},
tabindex:function(){return O()?0:void 0},
class:_.V7(N,H)},_.d("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var A,Z,U;return(U=(Z=_.M((A=t())==null?void 0:A.rendererContext,_.ue))==null?void 0:Z.label)!=null?U:""}},_.d(_.cu,{text:function(){return t().text},
userInput:!0})))},"We");
KGn.idomCompat=!0;_.Sw=_.q(function(N){var t=N.data;var O=N.isPositionRelative;var H=_.$I9("(max-width: 527.9px)"),A=function(){var Z,U;return(U=(Z=t())==null?void 0:Z.style)!=null?U:"IMAGE_BANNER_STYLE_FULL_BLEED"};
N={};return _.d("yt-image-banner-view-model",{el:_.E4(_.wZ(function(){var Z;return(Z=t())==null?void 0:Z.rendererContext})),
class:_.V7((N.ytImageBannerViewModelHost=!0,N.ytImageBannerViewModelInset=function(){return jiy(A())},N.ytImageBannerViewModelPositionAbsolute=function(){return _.Qo(!0)&&!(O==null?0:O())},N.ytImageBannerViewModelSmallInset=function(){return jiy(A())&&H()},N.ytImageBannerViewModelTappable=function(){var Z;
return _.TE((Z=t())==null?void 0:Z.rendererContext)},N))},_.d(_.y,{cond:function(){var Z;
return(Z=t())==null?void 0:Z.image},
then:function(){return _.d(_.Qt,{data:function(){return t().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.d(_.iF,{data:function(){var Z;
return(Z=t())==null?void 0:Z.overlays}},{thumbnailHoverOverlayViewModel:V9}))},"Xe");
_.Sw.idomCompat=!0;var FG1;FG1=_.q(function(N){var t=N.condition;var O=N.content;return _.d(_.y,{cond:t,then:function(){return _.d("div",{class:"yt-page-header-view-model__scroll-container"},O())},
else:function(){return O()}})},"Ye");
_.dzm=_.q(function(N){var t=N.data;var O=N.noPadding;var H=N.enableBanner;var A=N.cinematicContainerTopbarOffset;var Z=N.allowCinematicContainerOverflow;var U=N.displayAsSidebar;var C=N.displayAsPanel;var F=N.alwaysUseMediumTextDescription;var g=iIN(),B=function(){return!!t().image||!!t().animatedImage},c=function(){return!!t().background},u=function(){return(U==null?0:U())||(C==null?0:C())?1:g()},S=function(){return u()===1},b=function(){return S()||u()===2},z=function(){return u()===4},w=function(){var c4=
t();
var XO=!!t().heroImage;var kx=u(),fN=uZM(t()),gf=U==null?void 0:U(),yr=!c4.metadata,sS;if(sS=XO?_.M(c4.heroImage,gtr):_.M(c4.animatedImage||c4.image,gtr)){c4=sS.style;var $X=sS.layoutMode;if($X!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(sS=lSg(ISx(sS)),XO)XO=c2y(kx,c4,$X,sS,gf);else b:if(yr)XO=kx===1?{size:48}:{size:72};else switch(kx){case 1:XO={size:72};break b;case 2:XO={size:120};break b;default:XO=fN<4?{size:120}:{size:160}}else XO=void 0}else XO={size:0};return XO};
N={};N=_.V7((N["yt-page-header-view-model"]=!0,N["yt-page-header-view-model--no-padding"]=function(){return!(O==null||!O())},N["yt-page-header-view-model--small-top-padding"]=function(){return S()&&!t().actions&&!(C==null?0:C())||u()===2&&!(B()||t().heroImage)},N["yt-page-header-view-model--small-bottom-padding"]=function(){return b()&&!t().actions&&!(C==null?0:C())},N["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(Z==null?0:Z())},N["yt-page-header-view-model--display-as-sidebar"]=
U,N));
var P={},x=_.V7((P["yt-page-header-view-model__page-header-headline"]=!0,P["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var c4;return(c4=w())==null?void 0:c4.allowFullWidth},P)),l=function(){var c4;
return b()&&!((c4=w())==null?0:c4.allowFullWidth)},I=function(){return S()&&(!!t().heroImage||B())&&uZM(t())>0},r=function(){return I()&&(C==null?void 0:C())};
P={};var E=_.V7((P["yt-page-header-view-model__page-header-title"]=!0,P["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!I()},P["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return I()&&!r()},P["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=r,P["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=c,P));
P={};var J=_.V7((P["yt-page-header-view-model__page-header-headline-image"]=!0,P["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!t().heroImage&&b()},P));
P={};var CN=_.V7((P["yt-page-header-view-model__page-header-banner-container"]=H,P["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var c4;return(H==null?void 0:H())&&((c4=_.M(t().banner,_.B4E))==null?void 0:c4.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},P));
P={};var B4=_.V7((P["yt-page-header-view-model__page-header-content-metadata"]=!0,P["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=c,P));P={};var zM=_.V7((P["yt-page-header-view-model__page-header-flexible-actions"]=!0,P["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!t().metadata||b()},P["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!b()},P));
P={};var jy=_.V7((P["yt-page-header-view-model__page-header-attribution"]=!0,P["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=c,P));return _.d("yt-page-header-view-model",{class:N},_.d(_.y,{cond:c,then:function(){return _.d("div",{class:"yt-page-header-view-model__page-header-background"},_.d(_.iF,{data:function(){return t().background}},{cinematicContainerViewModel:function(c4){return _.d(_.Ag1,{data:c4.data,
topbarOffset:A})}}))}}),_.d(FG1,{condition:function(){return!(U==null||!U())},
content:function(){return _.d("div",{class:"yt-page-header-view-model__page-header-content"},_.d(_.y,{cond:function(){return(H==null?void 0:H())&&t().banner},
then:function(){return _.d("div",{class:CN},_.d(_.iF,{data:function(){return t().banner}},{imageBannerViewModel:_.Sw}))}}),_.d("div",{class:x},_.d(_.y,{cond:B,
then:function(){return _.d(_.iF,{data:function(){var c4;if(!(c4=t().animatedImage)){c4=t();if(B()){var XO=c4=Object.assign({},c4),kx=u(),fN=uZM(t()),gf=XO.image,yr=_.M(gf,ykf),sS=yr==null?void 0:yr.avatar,$X=_.M(sS,_.Pz);if(gf&&sS&&$X){switch(kx){case 1:$X.avatarImageSize="AVATAR_SIZE_XL";break;case 2:$X.avatarImageSize="AVATAR_SIZE_XXL";break;default:fN<4?$X.avatarImageSize="AVATAR_SIZE_XXL":$X.avatarImageSize="AVATAR_SIZE_XXXL"}_.LC(sS,_.Pz,Object.assign({},$X));yr.avatar=Object.assign({},sS);_.LC(gf,
ykf,Object.assign({},yr));XO.image=Object.assign({},gf)}}c4=c4.image}return c4}},{contentPreviewImageViewModel:function(c4){return _.d(_.xe,{data:c4.data,
className:J,imageSizeConfig:w})},
decoratedAvatarViewModel:function(c4){return _.d(_.Us,{data:c4.data,className:J})}})}}),_.d(_.y,{cond:function(){return!!t().heroImage&&!l()},
then:function(){return _.d(_.iF,{data:function(){return t().heroImage}},{contentPreviewImageViewModel:function(c4){return _.d(_.xe,{data:c4.data,
className:J,imageSizeConfig:w})}})}}),_.d("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.d(_.y,{cond:function(){return!!t().heroImage&&l()},
then:function(){return _.d("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.d(_.iF,{data:function(){return t().heroImage}},{contentPreviewImageViewModel:function(c4){return _.d(_.xe,{data:c4.data,
className:J,imageSizeConfig:w})}}))}}),_.d(_.iF,{data:function(){return t().title}},{dynamicTextViewModel:function(c4){return _.d(KGn,{data:c4.data,
className:E})}}),_.d(_.iF,{data:function(){return t().metadata}},{contentMetadataViewModel:function(c4){return _.d(_.qG,{data:c4.data,
layout:function(){return S()?1:0},
className:B4,isOverlay:c,useMediumText:z})}}),_.d(_.y,{cond:function(){return t().description&&!S()},
then:function(){return _.d(_.iF,{data:function(){return t().description}},{descriptionPreviewViewModel:function(c4){return _.d(_.ER,{data:c4.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:c,maxLinesOverride:function(){return S()?void 0:1},
useMediumText:function(){return(F==null?void 0:F())||z()}})}})}}),_.d(_.y,{cond:function(){return t().attribution&&!b()},
then:function(){return _.d(_.iF,{data:function(){return t().attribution}},{attributionViewModel:function(c4){return _.d(ke,{data:c4.data,
className:jy,useMediumText:z})}})}}),_.d(_.y,{cond:function(){return t().actions&&!b()},
then:function(){return _.d(_.iF,{data:function(){return t().actions}},{flexibleActionsViewModel:function(c4){return _.d(_.Co,{data:c4.data,
layout:function(){return S0S(u())},
className:zM})}})}}))),_.d("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.d(_.y,{cond:function(){return t().description&&S()},
then:function(){return _.d(_.iF,{data:function(){return t().description}},{descriptionPreviewViewModel:function(c4){return _.d(_.ER,{data:c4.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:c,maxLinesOverride:function(){return S()?void 0:1},
useMediumText:function(){return(F==null?void 0:F())||z()}})}})}}),_.d(_.y,{cond:function(){return t().attribution&&b()},
then:function(){return _.d(_.iF,{data:function(){return t().attribution}},{attributionViewModel:function(c4){return _.d(ke,{data:c4.data,
className:jy,useMediumText:z})}})}}),_.d(_.y,{cond:function(){return t().actions&&b()},
then:function(){return _.d(_.iF,{data:function(){return t().actions}},{flexibleActionsViewModel:function(c4){return _.d(_.Co,{data:c4.data,
layout:function(){return S0S(u())},
className:zM})}})}})),_.d("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.d(_.iF,{data:function(){return t().bottomMetadataFlexibleContainer}},{flexibleContainer:function(c4){return _.d(CQ1,{data:c4.data,
isOverlay:c})}})))}}))},"Ze");
_.dzm.idomCompat=!0;_.o_(_.q(function(N){var t=_.D(_.b$(!1,void 0,"qvRy4d")),O=t.next().value,H=t.next().value;return _.d("yt-official-card-view-model",{class:_.V7("ytOfficialCardViewModelHost",N.className),style:_.FM({"background-color":function(){var A,Z=By((A=N.data())==null?void 0:A.backgroundColor);return Z?_.TV(Z):void 0}})},_.d(_.iF,{data:function(){return N.data().header}},{pageHeaderViewModel:function(A){return _.d(_.dzm,{data:A.data,
noPadding:!0})}}),_.d(_.iF,{data:function(){return N.data().contents}},{horizontalShelfViewModel:function(A){return _.d(_.uY,{data:A.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.d(_.y,{cond:O,
then:function(){return _.d("div",{class:"ytOfficialCardViewModelExpandedContent"},_.d(_.iF,{data:function(){return N.data().expandedContents}},{horizontalShelfViewModel:function(A){return _.d(_.uY,{data:A.data,
sizing:"MINI"})}}),_.d("div",{class:"ytOfficialCardViewModelCollapseButton"},_.d(_.iF,{data:function(){return N.data().collapseButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
onClick:function(){H(!O())}})}})))},
else:function(){return _.d("div",{class:"ytOfficialCardViewModelExpandButton"},_.d(_.iF,{data:function(){return N.data().expandButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
onClick:function(){H(!O())}})}}))}}))},"$e"),"yt-official-card-view-model",{props:{data:_.$O,
className:_.$O}});var gxn=_.q(function(N){var t,O=(t=_.cY().resolve(_.BY(_.WV)))==null?void 0:t();return _.d("ytw-search-friction-view-model",{class:_.V7("ytwSearchFrictionViewModelHost",N.className)},_.d("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.d("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.d(_.y,{cond:function(){return O&&N.data().darkThemeImage?N.data().darkThemeImage:N.data().image},
then:function(H){return _.d(_.Qt,{data:H,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.d(_.iF,{data:function(){return N.data().overflowMenuButton}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.d(_.cu,{text:function(){return N.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.d(_.nL,{each:function(){return N.data().bodyText||[]}},function(H){return _.d(_.cu,{text:H,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.d(_.iF,{data:function(){return N.data().actions}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.d(_.cu,{text:function(){return N.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.d(_.cu,{text:function(){return N.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"af");
gxn.idomCompat=!0;_.o_(gxn,"ytw-search-friction-view-model",{props:{data:_.$O,className:_.$O}});_.h1=_.q(function(N){var t=_.Fy("markdown-div"),O,H=(O=_.cY().resolve(_.BY(_.WV)))==null?void 0:O();_.rp(function(){var A=t.value;var Z=new DwE,U=new Map(Z.JSC$9453_sanitizerTable.globalAttributePolicies);U.set("style",{policyAction:4});Z.JSC$9453_sanitizerTable=new wI(Z.JSC$9453_sanitizerTable.allowedElements,Z.JSC$9453_sanitizerTable.elementPolicies,Z.JSC$9453_sanitizerTable.allowedGlobalAttributes,U,Z.JSC$9453_sanitizerTable.globallyAllowedAttributePrefixes);var C=["data-time"];if(C===void 0)U=
new Set(Z.JSC$9453_sanitizerTable.globallyAllowedAttributePrefixes),U.add("data-"),Z.JSC$9453_sanitizerTable=new wI(Z.JSC$9453_sanitizerTable.allowedElements,Z.JSC$9453_sanitizerTable.elementPolicies,Z.JSC$9453_sanitizerTable.allowedGlobalAttributes,Z.JSC$9453_sanitizerTable.globalAttributePolicies,U);else{U=new Set(Z.JSC$9453_sanitizerTable.allowedGlobalAttributes);C=_.D(C);for(var F=C.next();!F.done;F=C.next()){F=F.value;if(F.indexOf("data-")!==0)throw Error("ka`"+F);U.add(F)}Z.JSC$9453_sanitizerTable=
new wI(Z.JSC$9453_sanitizerTable.allowedElements,Z.JSC$9453_sanitizerTable.elementPolicies,U,Z.JSC$9453_sanitizerTable.globalAttributePolicies,Z.JSC$9453_sanitizerTable.globallyAllowedAttributePrefixes)}U=new Set(Z.JSC$9453_sanitizerTable.allowedGlobalAttributes);U.add("class");Z.JSC$9453_sanitizerTable=new wI(Z.JSC$9453_sanitizerTable.allowedElements,Z.JSC$9453_sanitizerTable.elementPolicies,U,Z.JSC$9453_sanitizerTable.globalAttributePolicies,Z.JSC$9453_sanitizerTable.globallyAllowedAttributePrefixes);
_.CU(A,_.OmX(Z.build(),MCM(N.text())));bIy(t.value)},"OZ439c");
O={};return _.d("div",null,_.d("markdown-div",{class:_.V7("ytwMarkdownDivHost",(O.ytwMarkdownDivDark=H,O.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var A;return((A=N.isSmallText)==null?void 0:A.call(N))||!1},O.ytwMarkdownDivHostWrapCodeBlocks=function(){var A;
return((A=N.wrapCodeBlocks)==null?void 0:A.call(N))||!1},O.ytwMarkdownDivHostEnableDefaultStyling=function(){var A;
return!((A=N.disableDefaultStyling)==null?0:A.call(N))},O)),
el:t}))},"cf");
_.h1.idomCompat=!0;var ygx=_.q(function(N){var t=N.imageData;var O=_.Gr(N.isInList,!1),H=function(){return O()?{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 _.d("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.d(_.y,{cond:function(){return t().image},
then:function(A){return _.d(_.Qt,{data:A,alt:function(){return H().alt},
contentMode:function(){return H().contentMode},
targetWidth:function(){return H().targetWidth},
targetHeight:function(){return H().targetHeight},
className:function(){return H().className}})}}),_.d("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.d("div",{class:_.V7("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.d(_.cu,{text:function(){return t().title}})),_.d(_.nL,{each:function(){var A;
return(A=t().description)!=null?A:[]}},function(A){return _.d("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.d(MA,{content:A}))})))},"df"),Btq=_.q(function(N){var t=N.list;
var O=function(){var H;return(H=t().items)!=null?H:[]};
return _.d("div",{class:"ytwGenAiRichTextViewModelListContent"},_.d(_.y,{cond:function(){return t().title},
then:function(H){return _.d("div",{class:_.V7("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.d(_.cu,{text:H}))}}),_.d(_.y,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.d("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.d(_.nL,{each:O},function(H){return _.d("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.d(MA,{content:H,isInList:!0}))}))}}),_.d(_.y,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.d("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.d(_.nL,{each:O},function(H){return _.d("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.d(MA,{content:H,isInList:!0}))}))}}),_.d(_.y,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.d("div",{class:"ytwGenAiRichTextViewModelImageList"},_.d(_.nL,{each:O},function(H){return _.d("div",{class:"ytwGenAiRichTextViewModelListItem"},_.d(MA,{content:H,isInList:!0}))}))}}))},"ef"),cgf=_.q(function(N){var t=N.table;
return _.d("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.d("thead",null,_.d("tr",null,_.d(_.nL,{each:function(){var O,H;return(H=(O=t().header)==null?void 0:O.cells)!=null?H:[]}},function(O){return _.d("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.d(_.nL,{each:function(){return O.contents}},function(H){return _.d(MA,{content:H})}))}))),_.d("tbody",null,_.d(_.nL,{each:function(){var O;
return(O=t().rows)!=null?O:[]}},function(O){return _.d("tr",null,_.d(_.nL,{each:function(){return O.cells}},function(H){return _.d("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.d(_.nL,{each:function(){return H.contents}},function(A){return _.d(MA,{content:A})}))}))})))},"ff"),MA=_.q(function(N){var t=N.content;
var O=_.Gr(N.isInList,!1),H=function(){var A,Z;return(Z=(A=t().contentBlock)==null?void 0:A.contents)!=null?Z:[]};
return _.d("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.d(_.y,{cond:function(){return t().text},
then:function(A){return _.d(_.cu,{className:"ytwGenAiRichTextViewModelText",text:A})}}),_.d(_.y,{cond:function(){return t().image},
then:function(A){return _.d(ygx,{imageData:A,isInList:O})}}),_.d(_.y,{cond:function(){return t().list},
then:function(A){return _.d(Btq,{list:A})}}),_.d(_.y,{cond:function(){return t().contentBlock},
then:function(){return _.d("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.d(_.nL,{each:H},function(A){return _.d(MA,{content:A,isInList:!1})}))}}),_.d(_.y,{cond:function(){return t().table},
then:function(A){return _.d(cgf,{table:A})}}))},"gf"),$zr=_.q(function(N){var t={};
t=_.Lx("ytwGenAiRichTextViewModelHost",(t.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.So("search_overview_link_style")),t));return _.d("gen-ai-rich-text-view-model",{class:t},_.d(MA,{content:function(){return N.data().content}}))},"hf");_.jln=_.q(function(N){var t=N.data;var O=function(){var z;return((z=t().loadingUi)!=null?z:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},H=function(){return t().isLoading&&(O()==="UNSPECIFIED"||O()==="GHOST_CARD")},A=function(){return!t().isLoading},Z=function(){return!!t().content&&!t().contents},U=function(){return!!t().contents},C=function(){return!!t().nextQueryButtons},F=function(){return t().isLoading&&O()==="INVISIBLE"},g=function(){var z,w;
return(w=(z=t().headerIcon)==null?void 0:z.iconType)!=null?w:""},B=function(){var z;
return(z=t().content)!=null?z:""},c=function(){return!!t().sourcesSection},u,S=!((u=_.cY().resolve(_.BY(_.WV)))==null||!u()),b=_.aa(function(){var z=[],w=t().contents;
if(w)for(var P=0;P<w.length;P++){var x=_.M(w&&w[P],bXR);x&&z.push(x)}return z},void 0,"gcCsZb");
_.Q8(function(){t().isLoading||_.zT("so_re",void 0,"search_overview_answer")});
return _.d("ytd-overview-answer-view-model",{class:function(){var z={};z=(z.ytdOverviewAnswerViewModelHost=!0,z.ytdOverviewAnswerViewModelDarkBackground=S&&!F(),z.ytdOverviewAnswerViewModelLightBackground=!S&&!F(),z);return _.Lx(z)}},_.d(_.y,{cond:function(){return!F()},
then:function(){return _.d(_.BZ,null,_.d("h2",null,_.d("div",{class:"ytdOverviewAnswerViewModelHeader"},_.d(_.y,{cond:g,then:function(z){return _.d("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.d(_.dq,{icon:z}))}}),_.d("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.d("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return t().headerText}),_.d("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.d(_.cu,{text:function(){return t().headerSubtext}}))))),_.d(_.y,{cond:H,
then:function(){return _.d(pgl,null)}}),_.d(_.y,{cond:A,
then:function(){return _.d(_.BZ,null,_.d(_.y,{cond:Z,then:function(){return _.d("div",{class:"ytdOverviewAnswerViewModelText"},_.d(_.h1,{text:B,isSmallText:!0}))}}),_.d(_.y,{cond:U,
then:function(){return _.d("div",{class:"ytdOverviewAnswerViewModelRichText"},_.d(_.nL,{each:b},function(z){return _.d($zr,{data:z})}))}}),_.d(_.y,{cond:C,
then:function(){return _.d("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.d(_.iF,{data:function(){return t().nextQueryButtons}},{buttonViewModel:function(z){return _.d(_.Pu,{data:z.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.uY}))}}),_.d("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.d("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.d(_.y,{cond:function(){return!!_.M(t().likeButtonViewModel,_.Dh)&&!!_.M(t().dislikeButtonViewModel,_.V2)},
then:function(){return _.d("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.d(_.Fl,{data:function(){return _.M(t().likeButtonViewModel,_.Dh)},
disableIconAnimation:!0}),_.d(_.Ko,{data:function(){return _.M(t().dislikeButtonViewModel,_.V2)}}))}})),_.d(_.y,{cond:function(){var z;
return(z=t().sourcesSection)==null?void 0:z.headerText},
then:function(z){return _.d("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.d(_.cu,{text:z}))}})),_.d(_.y,{cond:c,
then:function(){return _.d("div",{class:"ytdOverviewAnswerViewModelSources"},_.d(_.iF,{data:function(){var z;return(z=t().sourcesSection)==null?void 0:z.sourcesShelf}},{buttonViewModel:_.Pu,
horizontalShelfViewModel:function(z){return _.d(_.uY,{data:z.data,includeMargin:!0,hasPeek:!0})}}))}}),_.d(_.y,{cond:function(){return t().disclaimerText},
then:function(){return _.d("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.d(_.cu,{text:function(){return t().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"jf");var iN1=_.q(function(N){var t=_.RH(N,{}).data;return _.d("yt-shopping-content-line-item-view-model",{class:_.V7("ytShoppingContentLineItemViewModelHost")},_.d(_.cu,{text:function(){var O;return(O=t().text)==null?void 0:O.attributedString}}))},"kf");_.bY=_.q(function(N){N=_.RH(N,{});var t=N.data,O={};return _.d("yt-shopping-content-line-view-model",{class:_.V7("ytShoppingContentLineViewModelHost",N.className,(O.ytShoppingContentLineViewModelTruncateText=function(){return!t().wrapContent},O)),
style:_.FM({"--shopping-content-line-gap":function(){return t().itemGap?t().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return t().lineHeight?t().lineHeight+"px":void 0}})},_.d(_.nL,{each:function(){return(t().items||[]).map(function(H){return _.M(H,XTX)}).filter(function(H){return!!H})}},function(H){return _.d(iN1,{data:H})}))},"lf");var uOr=_.q(function(N){var t=N.data;var O=function(){var Z;return((Z=t().image)==null?void 0:Z.height)||48},H=function(){var Z;
return((Z=t().image)==null?void 0:Z.width)||48},A=function(){return"width: "+H()+"px; height: "+O()+"px;"};
return _.d("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var Z,U,C,F=((Z=_.cY().resolve(_.BY(_.WV)))==null?0:Z())?(U=t())==null?void 0:U.darkThemeBackgroundColor:(C=t())==null?void 0:C.lightThemeBackgroundColor;return"background-color: "+(F?_.TV(F):"")+";"},
el:_.E4(_.wZ(function(){var Z;return(Z=t())==null?void 0:Z.rendererContext}))},_.d(_.y,{cond:function(){var Z,U;
return(U=(Z=t().image)==null?void 0:Z.image)!=null?U:t().thumbnail},
then:function(Z){return _.d("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var U;return"background-color: "+(((U=t().image)==null?0:U.backgroundColor)?_.TV(t().image.backgroundColor):"")+";"+A()}},_.d(_.Qt,{data:Z,
height:O,width:H,style:A,alt:""}))}}),_.d("div",{class:"ytShoppingDescriptionItemViewModelText"},_.d(_.iF,{data:function(){return t().line1}},{shoppingContentLineViewModel:function(Z){return _.d(_.bY,{data:Z.data})}}),_.d(_.iF,{data:function(){return t().line2}},{shoppingContentLineViewModel:function(Z){return _.d(_.bY,{data:Z.data})}}),_.d(_.iF,{data:function(){return t().line3}},{shoppingContentLineViewModel:function(Z){return _.d(_.bY,{data:Z.data})}})))},"mf");var SSf=_.q(function(N){var t=N.data;var O=N.active;var H=_.Fy("transcript-segment-view-model");_.rp(function(){var A,Z,U,C=((A=_.cY().resolve(_.BY(_.WV)))==null?0:A())?(Z=t())==null?void 0:Z.darkThemeColorPalette:(U=t())==null?void 0:U.lightThemeColorPalette;C&&(C.additiveBackground&&H.value.style.setProperty("--timestamp-active-background-color",_.TV(C.additiveBackground)),C.textSecondary&&H.value.style.setProperty("--timestamp-active-color",_.aI(C.textSecondary)))},"TnVCnb");
N={};return _.d("transcript-segment-view-model",{class:_.V7("ytwTranscriptSegmentViewModelHost",(N.ytwTranscriptSegmentViewModelHostActive=O,N.ytwTranscriptSegmentViewModelHostModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),N)),el:H},_.d(_.y,{cond:function(){var A;return(A=t())==null?void 0:A.timestamp},
then:function(A){var Z={};return _.d(_.BZ,null,_.d("div",{class:_.V7("ytwTranscriptSegmentViewModelTimestamp",(Z.ytwTranscriptSegmentViewModelTimestampActive=O,Z)),"aria-hidden":!0},A),_.d("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var U=A().split(":").map(Number),C=_.D(U.reverse());U=C.next().value;var F=C.next().value;C=C.next().value;return _.tNv({hours:C,minutes:F,seconds:U})}))}}),_.d(_.cu,{text:function(){var A,Z,U;
return(U=(A=t())==null?void 0:A.attributedText)!=null?U:{content:(Z=t())==null?void 0:Z.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"of");var h9r=_.q(function(N){var t=N.data;return _.d("div",{class:"videoAttributesSectionViewModelHeader"},_.d("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.d("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return t().headerTitle}),_.d(_.y,{cond:function(){return t().headerInfoButton},
then:function(){return _.d(_.iF,{data:function(){return t().headerInfoButton}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.d(_.y,{cond:function(){return t().headerSubtitle},
then:function(){return _.d("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return t().headerSubtitle})}}))},"pf"),My1=_.q(function(N){function t(z){return Math.max(Math.min(z,0),g()-C())}
var O=N.data;var H;N=_.Fy("div",function(z){var w=function(){B(z.clientWidth)};
w();window.ResizeObserver&&(H=new ResizeObserver(w),H.observe(z))});
var A=_.Fy("div",function(z){F(z.scrollWidth)}),Z=_.D(_.b$(0,void 0,"C3XQAe")),U=Z.next().value;
Z=Z.next().value;var C=U,F=Z;Z=_.D(_.b$(0,void 0,"db7y3"));U=Z.next().value;Z=Z.next().value;var g=U,B=Z;U=_.D(_.b$(0,void 0,"RchC7"));var c=U.next().value,u=U.next().value;_.Ia(function(){var z;(z=H)==null||z.disconnect()});
var S=function(){u(t(c()+g()))},b=function(){u(t(c()-g()))};
return _.d("yt-video-attributes-section-view-model",null,_.d("div",{class:"videoAttributesSectionViewModelHost"},_.d(_.y,{cond:function(){return O().headerTitle},
then:function(){return _.d(h9r,{data:O})}}),_.d("div",{class:_.V7("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:N},_.d("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.FM({transform:function(){var z=c();_.Ro("HTML_DIR")==="rtl"&&(z*=-1);return"translateX("+z+"px)"}}),
el:A},_.d(_.iF,{data:function(){return O().videoAttributeViewModels}},{videoAttributeViewModel:ZQR}))),_.d(_.iF,{data:function(){return O().footerButton}},{buttonViewModel:function(z){return _.d(_.Pu,{data:z.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.d(_.y,{cond:function(){return c()<0&&O().previousButton},
then:function(){return _.d("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.d(_.iF,{data:function(){return O().previousButton}},{buttonViewModel:function(z){return _.d(_.Pu,{data:z.data,
onClick:S})}}))}}),_.d(_.y,{cond:function(){return c()>g()-C()&&O().nextButton},
then:function(){return _.d("div",{class:"videoAttributesSectionViewModelRightArrow"},_.d(_.iF,{data:function(){return O().nextButton}},{buttonViewModel:function(z){return _.d(_.Pu,{data:z.data,
onClick:b})}}))}})))},"qf");
My1.idomCompat=!0;var bNJ=_.q(function(N){var t=N.data;var O=N.active;var H={},A={};return _.d("timeline-item-view-model",{class:_.V7("ytwTimelineItemViewModelHost",(H.ytwTimelineItemViewModelHostChapterChild=N.chapterChild,H.ytwTimelineItemViewModelModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),H))},_.d("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.d("div",{class:_.V7("ytwTimelineItemViewModelTimestamp",(A.ytwTimelineItemViewModelTimestampActive=
O,A))},function(){return t().timestamp})),_.d("div",{class:"ytwTimelineItemViewModelContentItems"},_.d(_.iF,{data:function(){return t().contentItems}},{transcriptSegmentViewModel:function(Z){return _.d(SSf,{data:Z.data,
active:O})},
videoAttributesSectionViewModel:My1})))},"rf");var p4m=_.q(function(N){var t=N.data;N={};return _.d("timeline-chapter-view-model",{class:_.V7("ytwTimelineChapterViewModelHost")},_.d("div",{class:_.V7("ytwTimelineChapterViewModelTitle",(N.ytwTimelineChapterViewModelModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),N))},function(){return t().title}),_.d(_.iF,{data:function(){return t().contents}},{timelineItemViewModel:function(O){return _.d(bNJ,{data:O.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(O){return _.d(My1,{data:O.data})}}))},"sf");var LGz=_.q(function(N){var t=N.data;var O=_.Fy("macro-markers-panel-item-view-model"),H=_.cz(_.dW9,function(){var Z;return(Z=t().markersEngagementPanelSyncEntityKey)!=null?Z:""}),A=function(){var Z;
return((Z=H())==null?void 0:Z.activeItemIndex)===t().index};
N=_.Ui(function(Z){var U,C,F,g,B;return _.K(function(c){if(c.nextAddress==1)return Z.stopPropagation(),_.YS(_.zE(Z),O.value,["A".toString(),"BUTTON".toString()])?c.return():(U=_.wF(t().onTap))?c.yield(_.Kx(),2):c.return();C=c.yieldResult;g=(F=_.M(U,_.rN))==null?void 0:F.startTimeSeconds;g===void 0||(B=C)!=null&&B.seekTo(g,!0);_.Ty(c)})});
return _.d("macro-markers-panel-item-view-model",{class:_.V7("ytwMacroMarkersPanelItemViewModelHost",{"is-active":A}),el:O,"on:click":N,tabindex:0,role:"button"},_.d(_.iF,{data:function(){var Z;return(Z=t())==null?void 0:Z.item}},{timelineChapterViewModel:function(Z){return _.d(p4m,{data:Z.data,
active:A})},
timelineItemViewModel:function(Z){return _.d(bNJ,{data:Z.data,active:A})},
videoAttributeViewModel:ZQR,shoppingDescriptionItemViewModel:uOr}))},"tf");
LGz.idomCompat=!0;_.o_(LGz,"macro-markers-panel-item-view-model",{props:{data:_.$O}});_.o_(My1,"yt-video-attributes-section-view-model",{props:{data:_.$O}});var z9f=_.q(function(N){var t=function(){var O,H,A;return(A=(O=N.data().leadingLogoAccessibility)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label)!=null?A:""};
return _.d("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.d(_.y,{cond:function(){return N.data().leadingLogo},
then:function(O){return _.d(_.Qt,{className:"ytwFantasySectionHeaderViewModelLogo",data:O,alt:t})}}),_.d("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.d(_.cu,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return N.data().title}}),_.d(_.cu,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return N.data().subtitle}})),_.d(_.iF,{data:function(){return N.data().trailingButton}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"uf");var YS5=_.q(function(N){var t={};t=_.V7("ytwFantasyTeamViewModelHost",(t.ytwFantasyTeamViewModelCompact=function(){var A;return!((A=N.compact)==null||!A.call(N))},t.ytwFantasyTeamViewModelUser=function(){return N.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},t.ytwFantasyTeamViewModelOpponent=function(){return N.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},t));
var O=function(){var A,Z,U;return(U=(A=N.data().teamLogoAccessibility)==null?void 0:(Z=A.accessibilityData)==null?void 0:Z.label)!=null?U:""},H=_.cz(yUM,function(){return N.data().teamEntityKey});
return _.d("ytw-fantasy-team-view-model",{class:t},_.d(_.y,{cond:function(){return N.data().teamLogo},
then:function(A){return _.d(_.Qt,{className:"ytwFantasyTeamViewModelLogo",data:A,alt:O})}}),_.d("div",{class:"ytwFantasyTeamViewModelMetadata"},_.d("div",{class:"ytwFantasyTeamViewModelHeader"},_.d(_.cu,{className:"ytwFantasyTeamViewModelScore",
text:function(){var A;return(A=H())==null?void 0:A.score}}),_.d(_.dq,{icon:function(){var A;
return(A=H())==null?void 0:A.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.d(_.cu,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var A;return(A=H())==null?void 0:A.projectedScore}})),_.d(_.cu,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return N.data().primaryText}}),_.d(_.cu,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return N.data().secondaryText}}),_.d(_.cu,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return N.data().tertiaryText}})),_.d(_.cu,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var A;return(A=H())==null?void 0:A.score}}))},"vf");_.o_(_.q(function(N){return _.d("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.d("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.d(_.iF,{data:function(){return N.data().summaryHeader}},{fantasySectionHeaderViewModel:z9f})),_.d(_.iF,{data:function(){return N.data().userTeam}},{fantasyTeamViewModel:YS5}),_.d(_.iF,{data:function(){return N.data().opponentTeam}},{fantasyTeamViewModel:YS5}))},"wf"),"fantasy-league-summary-view-model",{props:{data:_.$O}});var ap1=_.q(function(N){var t=_.RH(N,{shape:{},useCustomTabRenderable:!1}),O=t.shape;t=t.useCustomTabRenderable;var H=N.customTabRenderable,A=function(){return O().disabled},Z=function(){return O().selected},U=function(){return O().title},C=function(){return O().icon},F=_.Fy("yt-tab-shape");
N=_.Ui(function(c){var u;if(!A()&&((u=O().aTagConfig)==null?0:u.onclick))O().aTagConfig.onclick(c);return!1});
var g=_.Ui(function(c){if(c.key==="Enter"||c.key==="ArrowUp"||c.key==="ArrowDown")c.preventDefault(),F.value.click();return!1}),B={};
return _.d("yt-tab-shape",{class:_.V7("yt-tab-shape",function(){return O().className},(B["yt-tab-shape__tab--last-tab"]=function(){return O().isLastTab},B["yt-tab-shape--host-disabled"]=A,B["yt-tab-shape--host-clickable"]=!H,B)),
role:H?void 0:"tab","aria-selected":Z!=null?Z:!1,"aria-disabled":A,tabindex:H?void 0:0,"on:click":N,"on:keydown":g,el:F,"tab-identifier":function(){return O().identifier},
"tab-title":U},_.d(_.y,{cond:t,then:function(){return H()},
else:function(){var c={},u={};return _.d(_.BZ,null,_.d("div",{class:_.V7("yt-tab-shape__tab",(c["yt-tab-shape__tab--tab-selected"]=Z,c))},_.d(_.y,{cond:C,then:function(S){return _.d(_.dq,{className:"yt-tab-shape__tab-icon",icon:function(){return S().iconType}})}}),U),_.d("div",{class:_.V7("yt-tab-shape__tab-bar",(u["yt-tab-shape__tab-bar--tab-bar-selected"]=Z,u))}))}}))},"xf");
ap1.idomCompat={callbacks:{customTabRenderable:!0}};_.w4i=_.q(function(N){var t=N.shape;N=_.D(_.b$(48,void 0,"nDAx4"));var O=N.next().value,H=N.next().value;N=_.D(_.b$(0,void 0,"GCgjqb"));var A=N.next().value,Z=N.next().value,U=function(){return t().tabs},C=_.Fy("yt-tab-group-shape"),F=function(){var u,S;
return(S=(u=U())==null?void 0:u.findIndex(function(b){return b.selected}))!=null?S:-1};
N=_.D(_.b$(!1,void 0,"SU01tf"));var g=N.next().value,B=N.next().value,c=function(){g()||_.GB.addJob(function(){B(!0)},0)};
_.rp(function(){var u=F(),S=_.GB.addJob(function(){var b,z=((b=C.value)==null?void 0:b.querySelectorAll("yt-tab-shape"))||[],w;H(((w=u>-1?z[u]:void 0)==null?void 0:w.getBoundingClientRect().width)||0);for(w=b=0;w<u;w++)b+=z[w].offsetWidth+24;_.Ro("HTML_DIR")==="rtl"&&(b=-b);Z(b);c()},8,0);
_.Ia(function(){_.GB.cancelJob(S)})},"PMwgb");
N={};return _.d("yt-tab-group-shape",{class:_.V7("tabGroupShapeHost",(N.tabGroupShapeOverflowHidden=function(){return t().isOverflowHidden},N)),
el:C},_.d(_.y,{cond:U,then:function(u){return _.d(_.BZ,null,_.d("div",{class:"tabGroupShapeTabs",role:"tablist"},_.d(_.nL,{each:u},function(S,b){return _.d(ap1,{shape:function(){return Object.assign({},S,{isLastTab:b()===u().length-1})},
customTabRenderable:S.customTabRenderable,useCustomTabRenderable:!!S.customTabRenderable})})),_.d(Ttm,{width:O,
sliderOffset:A,enableTransition:g}))}}))},"zf");
_.w4i.idomCompat=!0;var Ttm=_.q(function(N){var t=_.Gr(N.sliderOffset,0),O=N.width,H=N.enableTransition;N={};return _.d("div",{class:_.V7("tabGroupShapeSlider",(N.tabGroupShapeSliderTransition=function(){return H()},N)),
style:_.FM({width:function(){return O()+"px"},
transform:function(){return"translateX("+t()+"px)"}})})},"Af");var e9n=_.q(function(N){var t=function(){var Z,U,C;return(C=(Z=N.data().playerLogoAccessibility)==null?void 0:(U=Z.accessibilityData)==null?void 0:U.label)!=null?C:""},O=_.cz(BUt,function(){return N.data().playerEntityKey}),H={};
H=_.V7("ytwFantasyPlayerViewModelHost",(H.ytwFantasyPlayerViewModelPlaying=function(){var Z;return!((Z=O())==null||!Z.isPlayerPlaying)},H.ytwFantasyPlayerViewModelOnField=function(){var Z;
return((Z=O())==null?void 0:Z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},H.ytwFantasyPlayerViewModelRedZone=function(){var Z;
return((Z=O())==null?void 0:Z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},H));
var A=function(){var Z,U,C,F=((Z=_.cY().resolve(_.BY(_.WV)))==null?0:Z())?(U=N.data().playerLogoBackgroundColor)==null?void 0:U.darkTheme:(C=N.data().playerLogoBackgroundColor)==null?void 0:C.lightTheme;return F===void 0?"":_.TV(F)};
return _.d("ytw-fantasy-player-view-model",{class:H},_.d(_.y,{cond:function(){return N.data().playerLogo},
then:function(Z){return _.d("div",{class:"ytwFantasyPlayerViewModelLogo"},_.d("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.d(_.Qt,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.FM({"background-color":A}),data:Z,alt:t})),_.d("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.d(_.dq,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.d("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.d("div",{class:"ytwFantasyPlayerViewModelHeader"},_.d(_.cu,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var Z;return(Z=N.data())==null?void 0:Z.playerNameText}}),_.d(_.cu,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var Z;return(Z=N.data())==null?void 0:Z.playerDescriptionText}})),_.d("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.d(_.cu,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Z;return(Z=O())==null?void 0:Z.gamePeriodText}}),_.d(_.cu,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Z;return(Z=N.data())==null?void 0:Z.opponentTeamText}}),_.d(_.cu,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var Z;return(Z=O())==null?void 0:Z.gameStatusText}}),_.d(_.cu,{className:_.V7("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var Z;return(Z=O())==null?void 0:Z.playerStatusText}})),_.d("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.d(_.cu,{text:function(){var Z;
return(Z=O())==null?void 0:Z.playerStatsText}}))),_.d(_.cu,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var Z;return(Z=O())==null?void 0:Z.fantasyScore}}))},"Bf");var PQi=_.q(function(N){return _.d("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.d(_.y,{cond:function(){return N.data().players},
then:function(t){return _.d(_.iF,{data:t},{fantasyPlayerViewModel:e9n})}}))},"Cf");var X4m=_.q(function(N){var t=_.D(_.Gb(function(){var A;return(A=N.data().selectedTabIdentifierKey)!=null?A:""})),O=t.next().value,H=t.next().value;
_.lf(function(){var A;(A=N.setSelectedTabSignal)==null||A.call(N,O)});
return _.d("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.d("div",{class:"ytTabbedViewModelTabGroup"},_.d(_.w4i,{shape:function(){var A=N.data(),Z=[],U={tabs:Z};if(!A.tabs)return U;A=_.D(A.tabs);for(var C=A.next(),F={};!C.done;F={tabViewModel:void 0},C=A.next())if(F.tabViewModel=_.M(C.value,kdE),F.tabViewModel){var g=C=void 0;Z.push({aTagConfig:{onclick:function(B){return function(){var c;H((c=B.tabViewModel.tabIdentifier)!=null?c:"")}}(F)},
identifier:F.tabViewModel.tabIdentifier,selected:O()===F.tabViewModel.tabIdentifier,title:(g=(C=F.tabViewModel.title)==null?void 0:C.content)!=null?g:""})}return U}})),_.d(_.iF,{data:function(){var A,Z=_.D((A=N.data().tabs)!=null?A:[]);
for(A=Z.next();!A.done;A=Z.next())if((A=_.M(A.value,kdE))&&A.tabIdentifier===O())return A.content}},{fantasyRosterViewModel:PQi}))},"Ef");_.o_(_.q(function(N){var t=_.D(LWx()),O=t.next().value,H=t.next().value;return _.d("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.d(_.cu,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return N.data().title}}),_.d(_.y,{cond:function(){return N.data().tabbedViewModel},
then:function(A){return _.d(_.iF,{data:A},{tabbedViewModel:function(Z){return _.d(X4m,{data:Z.data,setSelectedTabSignal:H})}})}}),_.d(_.y,{cond:function(){var A,Z=(A=_.M(N.data().tabbedViewModel,qey))==null?void 0:A.tabs;
A=_.M(Z==null?void 0:Z[0],kdE);Z=_.M(Z==null?void 0:Z[1],kdE);var U=A==null?void 0:A.tabIdentifier;if(O()===U){var C,F;if(!((C=_.M(A==null?void 0:A.content,ocE))==null?0:(F=C.players)==null?0:F.length))return N.data().noUserTeamPlayersText}else{var g,B;if(!((g=_.M(Z==null?void 0:Z.content,ocE))==null?0:(B=g.players)==null?0:B.length))return N.data().noOpponentTeamPlayersText}},
then:function(A){return _.d(_.cu,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:A})}}))},"Ff"),"ytw-fantasy-matchup-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){return _.d("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.d(_.cu,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return N.data().title}}),_.d(_.y,{cond:function(){return N.data().matchupTeamPairs},
then:function(t){return _.d(_.nL,{each:t,keyBy:"INDEX"},function(O){return _.d("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.d(_.iF,{data:function(){return[O().firstTeam,O().secondTeam]}},{fantasyTeamViewModel:function(H){return _.d(YS5,{data:H.data,
compact:!0})}}))})}}))},"Gf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=function(){var A,Z,U;return(U=(A=N.data().userLogoAccessibility)==null?void 0:(Z=A.accessibilityData)==null?void 0:Z.label)!=null?U:""},O=function(){var A,Z,U;
return(U=(A=N.data().opponentLogoAccessibility)==null?void 0:(Z=A.accessibilityData)==null?void 0:Z.label)!=null?U:""},H=_.cz(gz9,function(){return N.data().entityKey});
return _.d("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.d("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.d(_.y,{cond:function(){return N.data().userLogo},
then:function(A){return _.d(_.Qt,{className:"ytwFantasyWinProbabilityViewModelLogo",data:A,alt:t})}}),_.d("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.d(_.cu,{text:function(){return N.data().title}})),_.d(_.y,{cond:function(){return N.data().opponentLogo},
then:function(A){return _.d(_.Qt,{className:"ytwFantasyWinProbabilityViewModelLogo",data:A,alt:O})}})),_.d("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.d("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.d(_.cu,{text:function(){var A;
return(A=H())==null?void 0:A.userWinNumberLabel}})),_.d("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.d("div",{class:_.V7("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.FM({flex:function(){var A,Z;return(Z=(A=H())==null?void 0:A.userWinNumber)!=null?Z:50}})}),_.d("div",{class:_.V7("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.FM({flex:function(){var A,Z;return(Z=(A=H())==null?void 0:A.opponentWinNumber)!=null?Z:50}})})),_.d("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.d(_.cu,{text:function(){var A;
return(A=H())==null?void 0:A.opponentWinNumberLabel}}))))},"Hf"),"fantasy-win-probability-view-model",{props:{data:_.$O}});var xzi={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},kM5=_.q(function(N){return _.d(_.iF,{data:N.button},{buttonViewModel:function(t){return _.d(_.Pu,{data:t.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"If"),qSx=_.q(function(N){return _.d("ytd-backstage-locked-post-view-model",{class:_.V7("ytdBackstageLockedPostViewModelHost",N.className)},_.d("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.d("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.d(_.iF,
{data:function(){return N.data().authorAvatar}},{decoratedAvatarViewModel:_.Us})),_.d("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.d("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.d(_.cu,{text:function(){return N.data().authorText}})),_.d("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.d(_.cu,{text:function(){return N.data().publishedTimeText}}),_.d(_.iF,{data:function(){return N.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(t){return _.d(qOy,
{data:t.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.d("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.d(_.cu,{text:function(){return N.data().contentText}})),_.d(_.WZ,null,_.d(_.qC,{when:function(){return N.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.d("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.d(_.Qt,{data:xzi,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.d(_.cu,{text:function(){return N.data().lockedText}}))}),_.d(_.qC,{when:function(){return N.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.d("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.d("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.d(_.Qt,{data:xzi,
alt:""})),_.d(_.cu,{text:function(){return N.data().lockedText}}))})),_.d("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.d(kM5,{button:function(){return N.data().likeButton}}),_.d("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return N.data().voteCountA11y}},_.d(_.cu,{text:function(){return N.data().voteCount}})),_.d(kM5,{button:function(){return N.data().dislikeButton}}),_.d(kM5,{button:function(){return N.data().commentButton}}),_.d("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return N.data().commentCountA11y}},_.d(_.cu,{text:function(){return N.data().commentCount}}))))},"Jf");
qSx.idomCompat=!0;_.o_(qSx,"ytd-backstage-locked-post-view-model",{props:{data:_.$O,className:_.$O}});_.pE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var pu=function(){var N=_.k.apply(this,arguments)||this;N.darkerPanels=_.h("web_watch_darker_panels");N.commentsHidePanelButton=!1;N.isWatchGrid=!1;N.continuationShowButton=!1;N.isSearch=!1;N.isConstrainedList=!1;N.isWatch=!1;N.eligibleToSwitchToGrid=!1;N.useBigThumbs=!1;N.notSticky=!1;N.epRestyle=!1;N.isCarouselInFeed=!0;N.topSpacingZero=!1;N.continuationIsInitialLoad=!0;N.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");N.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");
N.mastheadHeight=0;N.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};N.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return N};
_.p(pu,_.k);_.V=pu.prototype;_.V.updateLockupContainerTypes=function(N){if(this.eligibleToSwitchToGrid){var t;(t=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||t.forEach(function(O){O.containerType=N})}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.h("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.h("kevlar_low_priority_continuation")}}};
_.V.created=function(){};
_.V.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.V.handleIntersect=function(N){this.notSticky=N[0].intersectionRatio===1};
_.V.attached=function(){var N=this;if(_.h("web_fix_sticky_playlist_header_v2")){var t=_.h("web_item_section_sticky_header_use_scroll_as_fallback");t||document.addEventListener("scroll",_.Fb(this,this.updateHeaderState));var O;this.mastheadHeight=((O=document.querySelector("ytd-masthead"))==null?void 0:O.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(H){N.handleIntersect(H)},{rootMargin:"-"+
(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):t&&document.addEventListener("scroll",_.Fb(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){N.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))}};
_.V.detached=function(){if(_.h("web_fix_sticky_playlist_header_v2")){document.removeEventListener("scroll",_.Fb(this,this.updateHeaderState));var N;(N=this.intersectionObserver)==null||N.disconnect();var t;(t=this.resizeObserver)==null||t.disconnect()}};
_.V.updated=function(N){N.has("data")&&_.h("web_fix_sticky_playlist_header_v2")&&this.updateHeaderState()};
_.V.dispatchChipBarIsSticky=function(){_.h("web_fix_sticky_playlist_header_v2")&&this.ytdReduxBehavior.dispatch(Cmy(!this.notSticky))};
_.V.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var N=_.O6(this.hostElement).querySelector("ytd-comments-header-renderer");N&&(N.hidePanelButton=this.commentsHidePanelButton)}};
_.V.onRetrieveLocation=function(N,t){this.containsComments()&&(this.firstCommentsLoaded=t.hasComments=!0)};
_.V.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.V.onLoadReloadContinuation=function(N,t){var O=this;N.stopPropagation();this.isReloading=!0;_.or(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(H){var A=_.cY().resolve(_.u8);H=t(H);A.postData(H).then(function(Z){O.onReloadContinuationData(Z)})}})};
_.V.onReloadContinuationData=function(N){if(N=this.get("response.continuationContents.itemSectionContinuation",N)||this.get("response.contents.itemSectionRenderer",N)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",N)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",N))this.set("data.contents",N.contents||N.results),N.header&&this.set("data.header",N.header),this.set("data.continuations",
N.continuations||[]);this.isReloading=!1};
_.V.computeContentsClass=function(N){return N?"reloading":""};
_.V.computeSectionIdentifier=function(N){return N==null?void 0:N.sectionIdentifier};
_.V.computeFitContainer=function(N){return(N==null?void 0:N.sectionIdentifier)==="youchat-item-section"};
_.V.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.h("kevlar_disable_comments_auto_load")};
_.V.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.V.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeHasDestinationShelfRenderer=function(N){var t,O;return!!(N==null?0:(t=N.contents)==null?0:(O=t[0])==null?0:O.destinationShelfRenderer)};
_.V.computeHasSectionGroupViewModel=function(N){var t,O;return!!(N==null?0:(t=N.contents)==null?0:(O=t[0])==null?0:O.sectionGroupViewModel)};
_.V.computeHasQrCodeRenderer=function(N){var t,O;return!!(N==null?0:(t=N.contents)==null?0:(O=t[0])==null?0:O.qrCodeRenderer)};
_.V.computeStaticCommentsHeader=function(N){return N&&this.containsComments()};
_.V.computeEpRestyle=function(N){return _.h("web_ep_restyling")&&N&&this.containsComments()};
_.V.computeIsContinuationCommentSection=function(N){return(N==null?void 0:N.targetId)==="shorts-engagement-panel-comments-section"||(N==null?void 0:N.targetId)==="comments-section"||(N==null?void 0:N.targetId)==="engagement-panel-comments-section"};
_.V.computeSuppressPaddingDisclaimer=function(){var N,t,O,H;return!!((N=this.data)==null?0:(t=N.contents)==null?0:(O=t[0])==null?0:(H=O.productListHeaderRenderer)==null?0:H.suppressPaddingDisclaimer)};
_.V.computeHeaderStyle=function(N){switch(N==null?void 0:N.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.V.dataChanged=function(){this.firstCommentsLoaded=!1};
_.V.observeDataContentsLength=function(){var N,t;((N=this.data)==null?0:(t=N.contents)==null?0:t.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.V.onYtDismissibleItemDismissedChange=function(N){this._setItemDismissed(N.type==="yt-dismissible-item-dismissed")};
_.V.triggerContinuations=function(){for(var N=_.O6(this.hostElement).querySelector("#continuations").children,t=0;t<N.length;t++)N[t].trigger()};
_.V.triggerInitialContinuations=function(){for(var N=_.O6(this.hostElement).querySelector("#continuations").children,t=0;t<N.length;t++)N[t].triggerIfNotPreviouslyTriggered()};
_.V.handleYtItemSectionContinuation=function(N,t){var O;t&&((O=this.data)==null?void 0:O.sectionIdentifier)!==t||(this.set("data.continuations",[N]),this.triggerContinuations())};
_.V.handleYtItemSectionReplace=function(N,t){var O;t&&((O=this.data)==null?void 0:O.sectionIdentifier)!==t||(this.set("data.contents",N),this.set("data.continuations",[]))};
_.V.computeUseHeightHack=function(N){return N&&!_.h("kevlar_disable_height_hack")};
_.V.computeTopSpacingZero=function(N){return N};
_.V.continuationShowButtonChanged=function(){var N=_.O6(this.hostElement).querySelector("ytd-continuation-item-renderer");N&&(N.showButton=this.continuationShowButton)};
_.V.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("data-changed",this.data))};
_.cv.Object.defineProperties(pu.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.h("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.h("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.h("web_fix_sticky_playlist_header_v2")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!!((N=this.data)==null?0:(t=N.contents)==null?0:(O=t[0])==null?0:O.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H,A,Z,U;return!!((N=this.data)==null?0:(t=N.contents)==null?0:(O=t[0])==null?0:(H=O.shelfRenderer)==null?0:(A=H.content)==null?0:(Z=A.gridRenderer)==null?0:(U=Z.targetId)==null?0:U.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!!((N=this.data)==null?0:(t=N.contents)==null?0:(O=t[0])==null?0:O.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!!((N=this.data)==null?0:(t=N.contents)==null?0:(O=t[0])==null?0:O.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.So("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.h("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.h("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
pu.prototype.dataChangedForBinding=pu.prototype.dataChangedForBinding;pu.prototype.continuationShowButtonChanged=pu.prototype.continuationShowButtonChanged;pu.prototype.onYtDismissibleItemDismissedChange=pu.prototype.onYtDismissibleItemDismissedChange;pu.prototype.observeDataContentsLength=pu.prototype.observeDataContentsLength;pu.prototype.dataChanged=pu.prototype.dataChanged;pu.prototype.onServiceRequestCompleted=pu.prototype.onServiceRequestCompleted;pu.prototype.onLoadReloadContinuation=pu.prototype.onLoadReloadContinuation;
pu.prototype.onRetrieveLocation=pu.prototype.onRetrieveLocation;pu.prototype.commentsHidePanelButtonChanged=pu.prototype.commentsHidePanelButtonChanged;pu.prototype.dispatchChipBarIsSticky=pu.prototype.dispatchChipBarIsSticky;pu.prototype.updateLockupContainerTypes=pu.prototype.updateLockupContainerTypes;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],pu.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],pu.prototype,"ytLazyListBehavior",void 0);_.W([_.Y(_.MP.YtNextContinuationBehavior),_.Q("design:type",Object)],pu.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.Y(_.h3),_.Q("design:type",Object)],pu.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],pu.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],pu.prototype,"ytdReduxBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],pu.prototype,"darkerPanels",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],pu.prototype,"engagementPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"commentsHidePanelButton",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"isWatchGrid",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"continuationShowButton",void 0);_.W([_.X({computed:"computeIsContinuationCommentSection(data)"}),_.Q("design:type",Boolean)],pu.prototype,"continuationIsCommentsSection",void 0);
_.W([_.X({value:!0}),_.Q("design:type",Boolean)],pu.prototype,"autoFill",void 0);_.W([_.X(),_.Q("design:type",Boolean)],pu.prototype,"continuationDisablePrescanVisibility",void 0);_.W([_.X(),_.Q("design:type",Boolean)],pu.prototype,"isReloading",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"isSearch",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"isConstrainedList",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"isWatch",void 0);
_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"eligibleToSwitchToGrid",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"useBigThumbs",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],pu.prototype,"notSticky",void 0);_.W([_.X({selector:_.wq,reflectToAttribute:!0}),_.Q("design:type",Object)],pu.prototype,"isGridViewEnabled",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Q("design:type",Object)],pu.prototype,"epRestyle",void 0);_.W([_.a("isWatch"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"hideShortsShelfHeader",null);_.W([_.a("isSearch","isWatch"),_.Q("design:type",String),_.Q("design:paramtypes",[])],pu.prototype,"thumbnailWidth",null);
_.W([_.a("isSearch","containerWidth"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pu.prototype,"thumbnailTargetWidth",null);_.W([_.a("isSearch","isWatch","useBigThumbs"),_.Q("design:type",String),_.Q("design:paramtypes",[])],pu.prototype,"sizing",null);_.W([_.a("isWatch","isGridViewEnabled","useBigThumbs","data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],pu.prototype,"lockupContainerType",null);
_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"hasHeader",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"expFixPlaylistHeader",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"expFixPlaylistHeaderV2",null);
_.W([_.gz("lockupContainerType","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[Number]),_.Q("design:returntype")],pu.prototype,"updateLockupContainerTypes",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],pu.prototype,"pageSubtype",void 0);_.W([_.X(),_.Q("design:type",Number)],pu.prototype,"containerWidth",void 0);_.W([_.X(),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"isPlaylist",null);
_.W([_.X(),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"isClipList",null);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"isCarouselInFeed",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"isPlaylistVideoContainer",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"isSearchFrictionPage",null);
_.W([_.X({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Q("design:type",Boolean)],pu.prototype,"useHeightHack",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Q("design:type",Object)],pu.prototype,"topSpacingZero",void 0);_.W([_.X({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Q("design:type",Boolean)],pu.prototype,"showButton",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],pu.prototype,"firstCommentsLoaded",void 0);_.W([_.X(),_.Q("design:type",Object)],pu.prototype,"continuationIsInitialLoad",void 0);_.W([_.X({reflectToAttribute:!0,readOnly:!0}),_.Q("design:type",Boolean)],pu.prototype,"itemDismissed",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Q("design:type",String)],pu.prototype,"sectionIdentifier",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Q("design:type",String)],pu.prototype,"fitContainer",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Q("design:type",Boolean)],pu.prototype,"hasDestinationShelfRenderer",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Q("design:type",Boolean)],pu.prototype,"staticCommentsHeader",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],pu.prototype,"enableSqueezebackPanels",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],pu.prototype,"enableAnchoredPanel",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Q("design:type",Boolean)],pu.prototype,"hasSectionGroupViewModel",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.Q("design:type",Boolean)],pu.prototype,"hasQrCodeRenderer",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Q("design:type",Boolean)],pu.prototype,"suppressDisclaimerSeparator",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Q("design:type",String)],pu.prototype,"headerStyle",void 0);
_.W([_.a("isSearch","isWatch","useBigThumbs"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pu.prototype,"lockupExperiments",null);_.W([_.a("isSearch"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pu.prototype,"typographyBump",null);_.W([_.B2("#header"),_.Q("design:type",HTMLElement)],pu.prototype,"header",void 0);_.W([_.gz("notSticky"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pu.prototype,"dispatchChipBarIsSticky",null);
_.W([_.gz("commentsHidePanelButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pu.prototype,"commentsHidePanelButtonChanged",null);_.W([_.dz("yt-retrieve-location"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],pu.prototype,"onRetrieveLocation",null);
_.W([_.dz("yt-load-reload-continuation"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Function]),_.Q("design:returntype")],pu.prototype,"onLoadReloadContinuation",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pu.prototype,"onServiceRequestCompleted",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pu.prototype,"dataChanged",null);
_.W([_.ic("data.contents.length"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pu.prototype,"observeDataContentsLength",null);_.W([_.dz("yt-dismissible-item-dismissed"),_.dz("yt-dismissible-item-undismissed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],pu.prototype,"onYtDismissibleItemDismissedChange",null);
_.W([_.gz("continuationShowButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pu.prototype,"continuationShowButtonChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pu.prototype,"dataChangedForBinding",null);_.W([_.en({is:"ytd-item-section-renderer",disableElementRegistration:!0})],pu);
_.n(pu,"ytd-item-section-renderer",function(){if(QVB!==void 0)return QVB;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return QVB=N},{mode:1});var fpm;var aKy=_.E_(_.CJ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var nxq={},Y0y=(nxq[0]={title:_.NE(_.CJ("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.NE(_.CJ("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.oX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},nxq[1]={title:_.NE(_.CJ("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.oX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},nxq);_.pE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Lu=function(){var N=_.k.apply(this,arguments)||this;N.allVideosCount=0;N.allPlaylistCount=0;N.isOnline=!1;N.shouldRenderDownloadsBanner=!1;N.shouldRenderDownloadsBannerUpsell=!1;N.hasOptedIntoSmartDownloads=!1;N.areAllSmartDownloadsDeleted=!1;N.smartDownloadsCompleted=!1;return N};
_.p(Lu,_.k);Lu.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Lu.prototype.attached=function(){this.downloadsToRenderChanged()};
Lu.prototype.detached=function(){this.set("renderableData",{})};
Lu.prototype.downloadsToRenderChanged=function(){var N=_.v5().getState().entities,t=_.LM(N),O=_.h("kevlar_playlist_dl_page_killswitch")?htg(N):_.zv(N),H=_.BdN(N),A=_.iDG(N),Z=_.u5(t);N=_.Yj(N);this.set("renderableData",wg9(O,t,H,A,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,Z,N))};
Lu.prototype.downloadsToRenderChanged=Lu.prototype.downloadsToRenderChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],Lu.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Lu.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Lu.prototype,"renderableData",void 0);_.W([_.X({selector:_.xFQ}),_.Q("design:type",Object)],Lu.prototype,"allVideosCount",void 0);_.W([_.X({selector:diy}),_.Q("design:type",Object)],Lu.prototype,"allPlaylistCount",void 0);_.W([_.X({selector:_.P5}),_.Q("design:type",Object)],Lu.prototype,"isOnline",void 0);_.W([_.X({selector:_.ITN}),_.Q("design:type",Object)],Lu.prototype,"shouldRenderDownloadsBanner",void 0);
_.W([_.X({selector:_.EOO}),_.Q("design:type",Object)],Lu.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.W([_.X({selector:_.lTv}),_.Q("design:type",Object)],Lu.prototype,"hasOptedIntoSmartDownloads",void 0);_.W([_.X({selector:_.Qwz}),_.Q("design:type",Object)],Lu.prototype,"areAllSmartDownloadsDeleted",void 0);_.W([_.X({selector:mFt}),_.Q("design:type",Object)],Lu.prototype,"smartDownloadsCompleted",void 0);
_.W([_.ic("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Lu.prototype,"downloadsToRenderChanged",null);_.W([_.en({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Lu);
_.n(Lu,"ytd-offline-item-section-renderer",function(){if(fpm!==void 0)return fpm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return fpm=N},
{mode:1});var WGm;var rgJ;var zJ=function(){return _.k.apply(this,arguments)||this};
_.p(zJ,_.k);
zJ.prototype.onDataChanged=function(){if(this.JSC$17007_lastData){var N=this.getFilterClass(this.JSC$17007_lastData.status);N&&this.hostElement.classList.remove(N)}var t;(N=this.getFilterClass((t=this.data)==null?void 0:t.status))&&this.hostElement.classList.add(N);N==="selected"?_.O6(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.O6(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");N==="disabled"?_.O6(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.O6(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17007_lastData=this.data};
zJ.prototype.getFilterClass=function(N){switch(N){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
zJ.prototype.onDataChanged=zJ.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],zJ.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zJ.prototype,"onDataChanged",null);_.W([_.en({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],zJ);
_.n(zJ,"ytd-search-filter-renderer",function(){if(rgJ!==void 0)return rgJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return rgJ=N},{mode:_.O4("kevlar_poly_si_batch_j075")?1:2});var YP=function(){return _.k.apply(this,arguments)||this};
_.p(YP,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],YP.prototype,"data",void 0);_.W([_.en({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],YP);
_.n(YP,"ytd-search-filter-group-renderer",function(){if(WGm!==void 0)return WGm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return WGm=N},{mode:_.O4("kevlar_poly_si_batch_j075")?1:2});var Ip1;var a6=function(){return _.k.apply(this,arguments)||this};
_.p(a6,_.k);a6.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Yb());this.isCollapsed=!this.isCollapsed};
a6.prototype.navigateToAboutTheseResultsPage=function(){var N=_.Wl("https://www.youtube.com/howyoutubeworks/product-features/search/");N?_.OG(window,N,"_blank"):_.JO(Error("Uh"))};
a6.prototype.dataChanged=function(){this.isCollapsed=!0};
a6.prototype.computeShowBottomBorder=function(){var N,t,O;return!!((N=this.data)==null?0:(t=N.button)==null?0:t.toggleButtonRenderer)||!((O=this.data)==null||!O.aboutTheseResultsButton)};
a6.prototype.dataChanged=a6.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],a6.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Q("design:type",Boolean)],a6.prototype,"showBottomBorder",void 0);_.W([_.X(),_.Q("design:type",Boolean)],a6.prototype,"renderCollapsibleMenu",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],a6.prototype,"isCollapsed",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],a6.prototype,"dataChanged",null);_.W([_.en({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],a6);
_.n(a6,"ytd-search-sub-menu-renderer",function(){if(Ip1!==void 0)return Ip1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Ip1=N},{mode:1});var lpr;var Qlx=new _.dk("SECTION_LIST_RENDERER_TOKEN");var mz5;var TJ=function(){return _.k.apply(this,arguments)||this};
_.p(TJ,_.k);TJ.prototype.computeStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],TJ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],TJ.prototype,"headerStyle",void 0);_.W([_.en({is:"ytd-text-header-renderer",disableElementRegistration:!0})],TJ);
_.n(TJ,"ytd-text-header-renderer",function(){if(mz5!==void 0)return mz5;var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return mz5=N},{mode:1});var Exm;var wx=function(){return _.k.apply(this,arguments)||this};
_.p(wx,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wx.prototype,"data",void 0);_.W([_.en({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],wx);
_.n(wx,"ytd-minor-moment-header-renderer",function(){if(Exm!==void 0)return Exm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Exm=N},{mode:1});var GMn;var ew=function(){return _.k.apply(this,arguments)||this};
_.p(ew,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ew.prototype,"data",void 0);_.W([_.en({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],ew);
_.n(ew,"ytd-minor-moment-setting-alert-renderer",function(){if(GMn!==void 0)return GMn;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return GMn=N},{mode:1});var R9n;var vx1;var Pj=function(){var N=_.k.apply(this,arguments)||this;N.booleanSettingById=!1;N.smartDownloadsEnabledVE=_.UM(128287);N.smartDownloadsDisabledVE=_.UM(128286);N.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return N};
_.p(Pj,_.k);_.V=Pj.prototype;_.V.attachSmartDownloadsSettingVes=function(){var N;this.activeVeForLogging||((N=this.data)==null?void 0:N.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.r_(_.gF(),this.smartDownloadsEnabledVE),_.r_(_.gF(),this.smartDownloadsDisabledVE))};
_.V.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.or(this.hostElement,"yt-settings-switch-ready")};
_.V.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.V.onSwitchChange=function(N){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(N=_.E3(N).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.h("kevlar_settings_switch_resolve_command_killswitch")?_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(N)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.V.handleUpdateSettingsSwitch=function(N){(N=_.M(N,$j0))&&this.data&&this.data.id===N.id&&this.set("data.enabled",!!N.enabled)};
_.V.onToggleSettingsSwitch=function(N,t){this.data&&this.data.id===N&&this.set("data.enabled",t!=null?t:!this.data.enabled)};
_.V.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Ta.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.V.maybeLogSmartDownloadsSettingVisibility=function(){var N=_.z8(),t;N&&((t=this.data)==null?void 0:t.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Wc(N,[this.smartDownloadsEnabledVE]),_.r0(N,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Wc(N,[this.smartDownloadsDisabledVE]),_.r0(N,[this.smartDownloadsEnabledVE])))};
_.V.maybeLogSmartDownloadsSettingClick=function(){var N;((N=this.data)==null?void 0:N.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.lA(_.gF(),this.activeVeForLogging)};
_.V.updateDataEnabledFromBinding=function(N){this.set("data.enabled",N.detail.value)};
_.cv.Object.defineProperties(Pj.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var N=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!N&&(N=this.ytRendererBehavior.getSimpleString(this.data.title));return N}}});
Pj.prototype.dataChanged=Pj.prototype.dataChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],Pj.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Pj.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Pj.prototype,"ytComponentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Pj.prototype,"data",void 0);_.W([_.X({selector:function(N,t){if(Object.keys(N==null?void 0:N.entities).length)switch(t){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Mtp(N.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Q("design:type",Object)],Pj.prototype,"booleanSettingById",void 0);_.W([_.X(),_.Q("design:type",bO)],Pj.prototype,"activeVeForLogging",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Pj.prototype,"toggleAriaLabel",null);_.W([_.ic("data"),_.ic("booleanSettingById"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Pj.prototype,"dataChanged",null);
_.W([_.en({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Pj);
_.n(Pj,"ytd-settings-switch-renderer",function(){if(vx1!==void 0)return vx1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return vx1=N},{mode:1});var XT=function(){return _.k.apply(this,arguments)||this};
_.p(XT,_.k);XT.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}}}}};
_.cv.Object.defineProperties(XT.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var N=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(N+=" remove-left-margin");this.data.extraBottomSpace&&(N+=" extra-bottom-space");return N}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],XT.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],XT.prototype,"contentsClassName",null);_.W([_.en({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],XT);
_.n(XT,"ytd-minor-moment-setting-section-renderer",function(){if(R9n!==void 0)return R9n;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return R9n=N},{mode:1});var Jgx;var xP=function(){return _.k.apply(this,arguments)||this};
_.p(xP,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],xP.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],xP.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],xP);
_.n(xP,"ytd-empty-product-details-renderer",function(){if(Jgx!==void 0)return Jgx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Jgx=N},{mode:1});var oxf;var slr;var kP=function(){var N=_.k.apply(this,arguments)||this;N.expanded=!0;return N};
_.p(kP,_.k);kP.prototype.getBadgeRowClass=function(N,t,O){for(var H=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),A=H.next();!A.done;A=H.next())A.value.onShow();N=N.selected;return O?N!==-1?N===t?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(N!==void 0?N:0)===t?"badge-line":"badge-hidden"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],kP.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],kP.prototype,"expanded",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],kP);
_.n(kP,"ytd-sponsorships-loyalty-badges-renderer",function(){if(slr!==void 0)return slr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return slr=N},{mode:1});var Nfm;var qA=function(){var N=_.k.apply(this,arguments)||this;N.expanded=!0;return N};
_.p(qA,_.k);qA.prototype.getContainerClasses=function(N,t){N=N?"expanded":"collapsed";t&&(N+=" item");return N};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],qA.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],qA.prototype,"expanded",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],qA);
_.n(qA,"ytd-sponsorships-perk-renderer",function(){if(Nfm!==void 0)return Nfm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Nfm=N},{mode:1});var tE1;var fu=function(){var N=_.k.apply(this,arguments)||this;N.expanded=!0;return N};
_.p(fu,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fu.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],fu.prototype,"expanded",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],fu);
_.n(fu,"ytd-sponsorships-perks-renderer",function(){if(tE1!==void 0)return tE1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tE1=N},{mode:1});var nu=function(){var N=_.k.apply(this,arguments)||this;N.isCollapsed=!1;return N};
_.p(nu,_.k);nu.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
nu.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
nu.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var N;this.expandCollapseButton=_.M((N=this.data)==null?void 0:N.expandButton,_.g_)}else{var t;this.expandCollapseButton=_.M((t=this.data)==null?void 0:t.collapseButton,_.g_)}};
nu.prototype.updateExpandCollapseButton=nu.prototype.updateExpandCollapseButton;nu.prototype.onDataChanged=nu.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nu.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],nu.prototype,"isCollapsed",void 0);_.W([_.X(),_.Q("design:type",Object)],nu.prototype,"expandCollapseButton",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nu.prototype,"onDataChanged",null);_.W([_.ic("data","isCollapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nu.prototype,"updateExpandCollapseButton",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],nu);
_.n(nu,"ytd-sponsorships-expandable-perks-renderer",function(){if(oxf!==void 0)return oxf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return oxf=N},{mode:1});var ORJ;var Wj=function(){return _.k.apply(this,arguments)||this};
_.p(Wj,_.k);Wj.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Wj.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Wj.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Wj);
_.n(Wj,"ytd-sponsorships-actionable-message-renderer",function(){if(ORJ!==void 0)return ORJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ORJ=N},{mode:1});var HRi;var rx=function(){return _.k.apply(this,arguments)||this};
_.p(rx,_.k);_.V=rx.prototype;_.V.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.V.getExpansionIcon=function(N){return N?"COLLAPSE":"EXPAND"};
_.V.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.computeMessageContainerStyle=function(N){var t=N.expandableItems?" style-clickable":"";return N.messageContainerStyle?N.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+t:"style-unspecified"+t};
_.V.isSinglePerk=function(N){return!!N.messageContainerStyle&&(N.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||N.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.V.onExpandedChanged=function(){var N=this;if(this.expanded)for(var t=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),O=t.next();!O.done;O=t.next())O.value.onShow();_.yB(this,function(){_.or(N.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
rx.prototype.onDataChanged=rx.prototype.onDataChanged;rx.prototype.onExpandedChanged=rx.prototype.onExpandedChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],rx.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],rx.prototype,"expanded",void 0);
_.W([_.gz("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rx.prototype,"onExpandedChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rx.prototype,"onDataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],rx);
_.n(rx,"ytd-sponsorships-expandable-message-renderer",function(){if(HRi!==void 0)return HRi;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return HRi=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var Au5;var I6=function(){return _.k.apply(this,arguments)||this};
_.p(I6,_.k);I6.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"}}}}};
I6.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.M(this.data.endButton,_.g_).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
I6.prototype.onDataChanged=I6.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],I6.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],I6.prototype,"onDataChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],I6);
_.n(I6,"ytd-sponsorships-heading-renderer",function(){if(Au5!==void 0)return Au5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Au5=N},{mode:1});var ZR1;var lY=function(){return _.k.apply(this,arguments)||this};
_.p(lY,_.k);_.W([_.X(),_.Q("design:type",Object)],lY.prototype,"data",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],lY);
_.n(lY,"ytd-sponsorships-links-renderer",function(){if(ZR1!==void 0)return ZR1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ZR1=N},{mode:1});var VEr;var Qg=function(){return _.k.apply(this,arguments)||this};
_.p(Qg,_.k);_.V=Qg.prototype;_.V.onDataChanged=function(){if(this.data&&this.data.expandableItems){var N;(N=_.O6(this.hostElement).querySelector("tp-yt-paper-button"))==null||N.setAttribute("role","button")}else{var t;(t=_.O6(this.hostElement).querySelector("tp-yt-paper-button"))==null||t.removeAttribute("role")}};
_.V.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.V.getExpansionIcon=function(N){return N?"COLLAPSE":"EXPAND"};
_.V.getTileClasses=function(N){return N?"tile expandable-tile":"tile"};
_.V.getButtonDisabled=function(N){return N?void 0:""};
Qg.prototype.onDataChanged=Qg.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Qg.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Qg.prototype,"expanded",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qg.prototype,"onDataChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Qg);
_.n(Qg,"ytd-sponsorships-list-tile-renderer",function(){if(VEr!==void 0)return VEr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return VEr=N},{mode:1});var Dym;var Uy5;var mH=function(){return _.k.apply(this,arguments)||this};
_.p(mH,_.k);mH.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],mH.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],mH);
_.n(mH,"ytd-sponsorships-promotion-renderer",function(){if(Uy5!==void 0)return Uy5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Uy5=N},{mode:1});var C_z;var ED=function(){return _.k.apply(this,arguments)||this};
_.p(ED,_.k);ED.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ED.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],ED);
_.n(ED,"ytd-sponsorships-purchase-option-renderer",function(){if(C_z!==void 0)return C_z;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return C_z=N},{mode:1});var KZx;var FZz;var dyq=function(){return _.k.apply(this,arguments)||this};
_.p(dyq,_.k);_.W([_.X(),_.Q("design:type",Object)],dyq.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],dyq);
_.n(dyq,"ytd-ypc-offer-promo-renderer",function(){if(FZz!==void 0)return FZz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return FZz=N},{mode:1});var GJ=function(){return _.k.apply(this,arguments)||this};
_.p(GJ,_.k);_.V=GJ.prototype;
_.V.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.V.expansionCTA=function(N,t){return N&&(t?N.collapseCallToAction:N.expansionCallToAction)};
_.V.getExpansionIcon=function(N){return N?"COLLAPSE":"EXPAND"};
_.V.expansionCallToActionTap=function(){var N=this;this.expanded=!this.expanded;_.yB(this,function(){_.or(N.hostElement,"yt-refit")})};
_.V.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var N,t=(N=this.data)==null?void 0:N.onVisible;t&&this.ytComponentBehavior.resolveCommand(t)};
_.V.computeDisplayTitle=function(N){return!(!N||this.titledisplaystatus!=="show")};
_.V.computeDisplaySeparator=function(){return!1};
_.V.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
GJ.prototype.onDataChanged=GJ.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],GJ.prototype,"data",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],GJ.prototype,"expanded",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],GJ.prototype,"purchaseButtonClicked",void 0);_.W([_.X({reflectToAttribute:!0,value:"show"}),_.Q("design:type",String)],GJ.prototype,"titledisplaystatus",void 0);_.W([_.X({computed:"computeDisplayTitle(data.title)"}),_.Q("design:type",Boolean)],GJ.prototype,"displayTitle",void 0);
_.W([_.X({computed:"computeDisplaySeparator(data)"}),_.Q("design:type",Boolean)],GJ.prototype,"displaySeparator",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],GJ.prototype,"onDataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],GJ);
_.n(GJ,"ytd-sponsorships-tier-renderer",function(){if(KZx!==void 0)return KZx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return KZx=N},{mode:2});var R6=function(){return _.k.apply(this,arguments)||this};
_.p(R6,_.k);
R6.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"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],R6.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],R6);
_.n(R6,"ytd-sponsorships-management-renderer",function(){if(Dym!==void 0)return Dym;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Dym=N},{mode:1});var gXJ;var vj=function(){return _.k.apply(this,arguments)||this};
_.p(vj,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vj.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],vj);
_.n(vj,"ytd-open-in-native-app-view-model",function(){if(gXJ!==void 0)return gXJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return gXJ=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var yum;var Bfr;var cu1=_.mp(["top-"]),$y5=_.mp(["bottom-"]),jQ5=_.mp(["left-"]),iRm=_.mp(["right-"]),uBm={},SpO=function(N,t,O){N.removeAttribute("top-"+O);N.removeAttribute("bottom-"+O);N.removeAttribute("left-"+O);N.removeAttribute("right-"+O);t&&(t.top&&_.KU([_.BW(cu1)],N,"top-"+O,t.top),t.bottom&&_.KU([_.BW($y5)],N,"bottom-"+O,t.bottom),t.left&&_.KU([_.BW(jQ5)],N,"left-"+O,t.left),t.right&&_.KU([_.BW(iRm)],N,"right-"+O,t.right))};
uBm.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(N){var t,O=_.O6((t=this.hostElement)!=null?t:this),H;t=this.cardItemBoxBehaviorMarginTargetId&&O?O.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(H=this.hostElement)!=null?H:this;SpO(t,N,"margin")},
cardItemContainerPaddingChanged_:function(N){var t,O=_.O6((t=this.hostElement)!=null?t:this),H;t=this.cardItemBoxBehaviorPaddingTargetId&&O?O.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(H=this.hostElement)!=null?H:this;SpO(t,N,"padding")}}];var J1={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 hax;var MEx;var o6=function(){return _.k.apply(this,arguments)||this};
_.p(o6,_.k);o6.prototype.textColorChanged_=function(){this.hostElement.style.color=J1[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
o6.prototype.textColorChanged_=o6.prototype.textColorChanged_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(uBm.YtCardItemBoxBehavior),_.Q("design:type",Object)],o6.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],o6.prototype,"data",void 0);_.W([_.gz("data.textColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],o6.prototype,"textColorChanged_",null);
_.W([_.wz({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],o6);
_.n(o6,"yt-card-item-text-renderer",function(){if(MEx===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;hax===void 0&&(hax=document.createElement("template"));var H=hax;O.call(t,H.content.cloneNode(!0),N.content.firstChild);MEx=N}N=MEx;return N},{mode:2});var bRx;var p05;var sD=function(){return _.k.apply(this,arguments)||this};
_.p(sD,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sD.prototype,"data",void 0);_.W([_.wz({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],sD);
_.n(sD,"yt-card-item-badge-renderer",function(){if(p05===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;bRx===void 0&&(bRx=document.createElement("template"));var H=bRx;O.call(t,H.content.cloneNode(!0),N.content.firstChild);p05=N}N=p05;return N},{mode:2});var LZ5;var zam;var Nr=function(){return _.k.apply(this,arguments)||this};
_.p(Nr,_.k);Nr.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Nr.prototype,"data",void 0);_.W([_.wz({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Nr);
_.n(Nr,"yt-card-item-text-collection-renderer",function(){if(zam===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;LZ5===void 0&&(LZ5=document.createElement("template"));var H=LZ5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);zam=N}N=zam;return N},{mode:2});var Ypx;var aY1;var t0=function(){return _.k.apply(this,arguments)||this};
_.p(t0,_.k);t0.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]]"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],t0.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Number)],t0.prototype,"iconSize",void 0);_.W([_.wz({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],t0);
_.n(t0,"yt-card-item-text-with-button-renderer",function(){if(aY1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;Ypx===void 0&&(Ypx=document.createElement("template"));var H=Ypx;O.call(t,H.content.cloneNode(!0),N.content.firstChild);aY1=N}N=aY1;return N},{mode:2});var OZ=function(){return _.k.apply(this,arguments)||this};
_.p(OZ,_.k);OZ.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],OZ.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],OZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],OZ.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],OZ);
_.n(OZ,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Bfr!==void 0)return Bfr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Bfr=N},{mode:1});_.pE("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Hw=function(){var N=_.k.apply(this,arguments)||this;N.hidden=!1;return N};
_.p(Hw,_.k);_.V=Hw.prototype;_.V.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.V.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.V.updateSummary=function(){var N=this.commerceCartCheckoutButtonEntity,t;if(((t=this.data)==null?0:t.cartButton)&&N.checkoutSummaryText){var O,H=zn((O=this.data)==null?void 0:O.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",Yg(N.checkoutSummaryText));if(N.checkoutDetailText){var A;O=zn((A=this.data)==null?void 0:A.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",Yg(N.checkoutDetailText))}if(N.checkoutAdditionalMetadataText){var Z;
A=zn((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+A+".cardItemTextRenderer.text",Yg(N.checkoutAdditionalMetadataText))}}else N.estimatedTotalPrice&&(Z=zn((H=this.data)==null?void 0:H.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",Yg(N.estimatedTotalPrice)))};
_.V.updateIsHidden=function(){var N,t=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.isHidden;t!==void 0&&(this.hidden=t)};
_.V.updateCheckoutButton=function(){var N,t=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.isDisabled;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",t);var O;N=(O=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:O.innertubeCommand;N!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",N);var H;O=(H=this.commerceCartCheckoutButtonEntity)==null?void 0:H.checkoutButtonText;O!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:O})};
Hw.prototype.entityChanged=Hw.prototype.entityChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],Hw.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Hw.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Hw.prototype,"fullWidth",void 0);_.W([_.X(),_.Q("design:type",Object)],Hw.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Hw.prototype,"compact",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Hw.prototype,"hidden",void 0);
_.W([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:HKg}),_.Q("design:type",Object)],Hw.prototype,"commerceCartCheckoutButtonEntity",void 0);_.W([_.gz("commerceCartCheckoutButtonEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hw.prototype,"entityChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Hw);
_.n(Hw,"ytd-commerce-cart-checkout-button-renderer",function(){if(yum!==void 0)return yum;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return yum=N},{mode:2});var Tf1;_.w05={};
_.w05.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",_.Fb(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Fb(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(N){!this.tappableItemBehaviorTapEnabled||N.keyCode!==13&&N.keyCode!==32||N.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var N=this.data.onTap;N.ypcGetCartEndpoint?(_.tb(this.hostElement,[N]),this.tappableItemBehaviorTapEnabled=!1):N.ypcOffersEndpoint?_.tb(this.hostElement,[N]):_.OK(this.hostElement,[N],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(N){this.tappableItemBehaviorTapEnabled=!!N},
tappableItemBehaviorOnTapEnabledChanged_:function(){var N=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(N.setAttribute("tabIndex",0),N.setAttribute("role","button")):(N.removeAttribute("tabIndex"),N.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(N){N.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var eaJ;var P_m;var A0=function(){return _.k.apply(this,arguments)||this};
_.p(A0,_.k);A0.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.LE("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.LE("sharingToggleButtonAndDefaultButton")}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],A0.prototype,"data",void 0);_.W([_.wz({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],A0);
_.n(A0,"yt-card-item-actions-renderer",function(){if(P_m===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;eaJ===void 0&&(eaJ=document.createElement("template"));var H=eaJ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);P_m=N}N=P_m;return N},{mode:2});var X0n;var xy1;var kSO;var qp1;var fYf;var nX1;var ZO=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return N};
_.p(ZO,_.k);ZO.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
ZO.prototype.handleDarkModeToggledAction_=function(N){this.isDarkTheme_=N};
ZO.prototype.computeThemeImage_=function(N,t){if(!N||!N.imageLight)return!1;this.isCircular_=N.isCircular;N.imageWidth&&(this.hostElement.style.width=N.imageWidth+"px");N.imageHeight&&(this.hostElement.style.height=N.imageHeight+"px");N.borderWidth&&(this.image.style.borderWidth=N.borderWidth+"px",this.image.style.borderStyle="solid");N.borderColor&&(this.image.style.borderColor=_.TV(N.borderColor));return t&&N.imageDark?N.imageDark:N.imageLight};
ZO.prototype.computeThemeIcon_=function(N){var t,O;if(!(N==null?0:(t=N.themedIcon)==null?0:(O=t.icon)==null?0:O.iconType))return!1;this.icon.style.color=J1[N.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(N.imageWidth||18)+"px";this.icon.style.height=(N.imageHeight||18)+"px";return _.Vt(N.themedIcon.icon.iconType)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(uBm.YtCardItemBoxBehavior),_.Q("design:type",Object)],ZO.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ZO.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ZO.prototype,"data",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],ZO.prototype,"fit",void 0);_.W([_.X(),_.Q("design:type",Boolean)],ZO.prototype,"isDarkTheme_",void 0);_.W([_.X({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Q("design:type",Object)],ZO.prototype,"themeImage_",void 0);_.W([_.X({computed:"computeThemeIcon_(data)"}),_.Q("design:type",Object)],ZO.prototype,"themeIcon_",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Object)],ZO.prototype,"isCircular_",void 0);
_.W([_.B2("#image"),_.Q("design:type",Object)],ZO.prototype,"image",void 0);_.W([_.B2("#icon"),_.Q("design:type",Object)],ZO.prototype,"icon",void 0);_.W([_.wz({is:"yt-themed-image-renderer",disableElementRegistration:!0})],ZO);
_.n(ZO,"yt-themed-image-renderer",function(){if(nX1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;fYf===void 0&&(fYf=document.createElement("template"));var H=fYf;O.call(t,H.content.cloneNode(!0),N.content.firstChild);nX1=N}N=nX1;return N},{mode:2});var Vd=function(){return _.k.apply(this,arguments)||this};
_.p(Vd,_.k);Vd.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"}}}}};
Vd.prototype.computeImagePlacement_=function(N){return N||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Vd.prototype,"data",void 0);_.W([_.X({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Q("design:type",String)],Vd.prototype,"imagePlacement",void 0);
_.W([_.wz({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Vd);
_.n(Vd,"yt-card-item-text-with-image-renderer",function(){if(qp1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;kSO===void 0&&(kSO=document.createElement("template"));var H=kSO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);qp1=N}N=qp1;return N},{mode:2});var DO=function(){return _.k.apply(this,arguments)||this};
_.p(DO,_.k);DO.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"}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DO.prototype,"data",void 0);_.W([_.wz({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],DO);
_.n(DO,"yt-card-item-error-renderer",function(){if(xy1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;X0n===void 0&&(X0n=document.createElement("template"));var H=X0n;O.call(t,H.content.cloneNode(!0),N.content.firstChild);xy1=N}N=xy1;return N},{mode:2});var WZ5;var ruq;_.pE("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var UZ=function(){return _.k.apply(this,arguments)||this};
_.p(UZ,_.k);_.V=UZ.prototype;
_.V.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.V.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.V.backgroundColorChanged_=function(){var N,t=(N=this.data)==null?void 0:N.backgroundColor;N=J1[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.O6(this.hostElement).querySelector("#main-content").style.backgroundColor=N};
_.V.headerPromoBackgroundColorChanged_=function(){var N,t=(N=this.data)==null?void 0:N.headerPromoBackgroundColor;N=J1[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.O6(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=N};
_.V.errorRendererVisibilityChanged_=function(){var N=this.isExpanded_,t;this.isErrorRendererVisible_=!((t=this.data)==null||!t.errorRenderer)&&!N};
_.V.onYtToggleButton_=function(N,t){this.isExpanded_=t.toggled};
UZ.prototype.onYtToggleButton_=UZ.prototype.onYtToggleButton_;UZ.prototype.errorRendererVisibilityChanged_=UZ.prototype.errorRendererVisibilityChanged_;UZ.prototype.headerPromoBackgroundColorChanged_=UZ.prototype.headerPromoBackgroundColorChanged_;UZ.prototype.backgroundColorChanged_=UZ.prototype.backgroundColorChanged_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(uBm.YtCardItemBoxBehavior),_.Q("design:type",Object)],UZ.prototype,"ytCardItemBoxBehavior",void 0);_.W([_.Y(_.w05.YtTappableItemBehavior),_.Q("design:type",Object)],UZ.prototype,"ytTappableItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UZ.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],UZ.prototype,"isExpanded_",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],UZ.prototype,"isErrorRendererVisible_",void 0);_.W([_.gz("data.backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UZ.prototype,"backgroundColorChanged_",null);_.W([_.gz("data.headerPromoBackgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UZ.prototype,"headerPromoBackgroundColorChanged_",null);
_.W([_.gz("data.errorRenderer","isExpanded_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UZ.prototype,"errorRendererVisibilityChanged_",null);_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,Object]),_.Q("design:returntype")],UZ.prototype,"onYtToggleButton_",null);_.W([_.wz({is:"yt-card-item-renderer",disableElementRegistration:!0})],UZ);
_.n(UZ,"yt-card-item-renderer",function(){if(ruq===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;WZ5===void 0&&(WZ5=document.createElement("template"));var H=WZ5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);ruq=N}N=ruq;return N},{mode:2});_.pE("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var C5=function(){var N=_.k.apply(this,arguments)||this;N.hidden=!1;return N};
_.p(C5,_.k);_.V=C5.prototype;_.V.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.V.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var N,t=(N=this.commerceCartHeaderEntity)==null?void 0:N.isHidden;t!==void 0&&(this.hidden=t)}};
_.V.updateTitle=function(){var N=this.commerceCartHeaderEntity.isDisabled,t,O,H=(O=_.M((t=this.data)==null?void 0:t.item,cXQ))==null?void 0:O.headingRenderer;H&&(t=zn(H,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+t+".0.cardItemTextRenderer.textColor",N?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.V.updateSummaryText=function(){var N=this.commerceCartHeaderEntity;if(this.compact){var t,O,H=(O=_.M((t=this.data)==null?void 0:t.item,cXQ))==null?void 0:O.headingRenderer;H&&(t=zn(H,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+t+".1.cardItemTextRenderer.text",N.shortHeaderSummaryText?Yg(N.shortHeaderSummaryText):N.headerSummaryText?Yg(N.headerSummaryText):""))}else{var A;if(t=(A=_.M((H=this.data)==null?void 0:H.item,cXQ))==null?void 0:A.additionalInfoRenderer)t=zn(t,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".text",N.headerSummaryText?Yg(N.headerSummaryText):"")}};
_.V.updateCheckoutButton=function(){var N=this.commerceCartHeaderEntity,t,O,H=(O=_.M((t=this.data)==null?void 0:t.item,cXQ))==null?void 0:O.additionalInfoRenderer;t=zn(H,"buttonRenderer");var A;O=(A=this.commerceCartHeaderEntity)==null?void 0:A.isButtonDisabled;var Z;A=(Z=this.commerceCartHeaderEntity)==null?void 0:Z.isButtonHidden;O!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".buttonRenderer.isDisabled",O);A!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
A);var U;N=(U=N.checkoutButtonCommand)==null?void 0:U.innertubeCommand;N!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".buttonRenderer.command",N)};
C5.prototype.entityChanged=C5.prototype.entityChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],C5.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],C5.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],C5.prototype,"compact",void 0);_.W([_.X({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(N,t){return _.CM(N.entities,"commerceCartHeaderEntity",t)}}),
_.Q("design:type",Object)],C5.prototype,"commerceCartHeaderEntity",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],C5.prototype,"hidden",void 0);_.W([_.gz("commerceCartHeaderEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],C5.prototype,"entityChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],C5);
_.n(C5,"ytd-commerce-cart-header-renderer",function(){if(Tf1!==void 0)return Tf1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Tf1=N},{mode:1});var IYm;var lYf=_.Tj(function(N,t){var O;return(O=N.onChangeCallback)==null?void 0:O.call(N,t)},1E3),QQm=_.q(function(N){var t=N.data;
var O=N.iconMinus;N=N.iconPlus;var H=function(){return!!t().disabled},A=_.D(_.b$(0,void 0,"mKh0af")),Z=A.next().value,U=A.next().value;
A=_.Ui(function(){if(Z()===1){var c,u;(u=(c=t()).onRemoveCommand)==null||u.call(c)}c=Z()>t().maxValue?t().maxValue:Z()-1;U(c);lYf(t(),c);return!1});
var C=_.Ui(function(){if(Z()===t().maxValue)return!1;var c=Z()+1;U(c);lYf(t(),c);return!1});
_.lf(function(){U(t().value)});
var F={},g={},B={};return _.d("quantity-incrementer-shape",null,_.d("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.d("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return Z()===(t().onRemoveCommand?0:1)||H()},
"aria-label":function(){return Z()!==1?t().minusLabel:t().minimumReachedLabel},
"on:click":A},_.d(_.aw,{model:{circular:!0}}),_.d("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.d("div",{class:_.V7("ytSpecQuantityIncrementerShapeIcon",(F.ytSpecQuantityIncrementerShapeIconDisabled=function(){return H()||Z()===(t().onRemoveCommand?0:1)},F))},O()))),_.d("div",{class:_.V7("ytSpecQuantityIncrementerShapeText",(g.ytSpecQuantityIncrementerShapeTextInvalid=function(){return Z()>t().maxValue},g.ytSpecQuantityIncrementerShapeTextDisabled=H,g))},Z),_.d("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return Z()>=t().maxValue||H()},
"aria-label":function(){return Z()!==t().maxValue?t().plusLabel:t().maximumReachedLabel},
"on:click":C},_.d(_.aw,{model:{circular:!0}}),_.d("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.d("div",{class:_.V7("ytSpecQuantityIncrementerShapeIcon",(B.ytSpecQuantityIncrementerShapeIconDisabled=function(){return Z()>=t().maxValue||H()},B))},N())))))},"Lf");_.o_(_.q(function(N){function t(){O().onRemoveCommand&&_.xJ(O().onRemoveCommand)}
var O=N.data;var H=_.cz($xO,function(){return O().quantityIncrementerEntityKey});
return _.d("yt-quantity-incrementer-view-model",null,_.d(QQm,{data:function(){var A=O(),Z;var U=H()?!((Z=H())==null||!Z.disabled):!1;var C;Z=H()?(C=H())==null?void 0:C.quantity:O().quantity;return XgO(A,U,t,Z)},
iconMinus:function(){return _.d(_.dq,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.d(_.dq,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Mf"),"yt-quantity-incrementer-view-model",{props:{data:_.$O}});var K5=function(){var N=_.k.apply(this,arguments)||this;N.compact=!1;N.hasQuantityIncrementer=!1;return N};
_.p(K5,_.k);K5.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"}}}};
K5.prototype.computeHasQuantityIncrementer=function(){var N;return!!_.M((N=this.data)==null?void 0:N.picker,uqR)};
K5.prototype.onLabelClick=function(){var N;(N=this.dropdownEl)==null||N.open()};
_.W([_.B2("ytd-dropdown-renderer"),_.Q("design:type",Object)],K5.prototype,"dropdownEl",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],K5.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],K5.prototype,"quantityColor",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],K5.prototype,"compact",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Q("design:type",Object)],K5.prototype,"hasQuantityIncrementer",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],K5);
_.n(K5,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(IYm!==void 0)return IYm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return IYm=N},{mode:1});var my5;var EXf;var Fk=function(){return _.k.apply(this,arguments)||this};
_.p(Fk,_.k);Fk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Fk.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Fk.prototype.updateTitle=function(){var N=this.disabledCartItemEntity;N.disableActionName&&this.set("data.title",Yg(N.disableActionName))};
Fk.prototype.updateButton=function(){var N,t=(N=this.disabledCartItemEntity.undoCommand)==null?void 0:N.innertubeCommand;t!==void 0&&(this.set("data.actionButton.buttonRenderer.command",t),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Fk.prototype.entityChanged=Fk.prototype.entityChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],Fk.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Fk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(N,t){return _.CM(N.entities,"disabledCartItemEntity",t)}}),
_.Q("design:type",Object)],Fk.prototype,"disabledCartItemEntity",void 0);_.W([_.X(),_.Q("design:type",Object)],Fk.prototype,"data",void 0);_.W([_.gz("disabledCartItemEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fk.prototype,"entityChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Fk);
_.n(Fk,"ytd-disabled-cart-item-renderer",function(){if(EXf!==void 0)return EXf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return EXf=N},{mode:1});_.pE("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var d1=function(){var N=_.k.apply(this,arguments)||this;N.compact=!1;N.hidden=!1;N.errorHidden=!1;N.noOnTap=!1;return N};
_.p(d1,_.k);_.V=d1.prototype;
_.V.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.V.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.V.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var N=this.firstButtonElement;N.alignByText=!0;N.iconAlignByText=!0}};
_.V.computeNoOnTap=function(N){return!N};
_.V.updateQuantityColor=function(){if(this.pickerElement){var N,t=(N=this.commerceCartItemEntity)==null?void 0:N.quantityColor;this.pickerElement.quantityColor=t}};
_.V.updateTotalPriceColor=function(){var N,t=(N=this.commerceCartItemEntity)==null?void 0:N.totalPriceColor;if(t){var O;N=_.M((O=this.data)==null?void 0:O.quantityPicker,jR0);if(O=_.M(N==null?void 0:N.price,$GY))O.textColor=t}};
_.V.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var N,t=(N=this.commerceCartItemEntity)==null?void 0:N.isHidden;t!==void 0&&(this.hidden=t)}};
_.V.updateHideErrorMessage=function(){var N,t=(N=this.commerceCartItemEntity)==null?void 0:N.hideErrorMessage;t!==void 0&&(this.errorHidden=t)};
_.V.updateQuantity=function(){var N=this,t,O=(t=this.commerceCartItemEntity)==null?void 0:t.quantity,H;t=(H=this.commerceCartItemEntity)==null?void 0:H.totalPrice;if(O){this.updateTotalPriceColor();this.updateQuantityColor();var A;H=_.M((A=this.data)==null?void 0:A.quantityPicker,jR0);if(A=_.M(H==null?void 0:H.price,$GY))A.text=t?{simpleText:t.content}:void 0;if(t=_.M(H==null?void 0:H.picker,uqR))t.quantity=O;var Z;if(A=(Z=_.M(H==null?void 0:H.picker,ciE))==null?void 0:Z.entries){Z=!1;t=void 0;A=
_.D(A);for(H=A.next();!H.done;H=A.next())H=H.value,H.dropdownItemRenderer&&(t||(t=H.dropdownItemRenderer),H.dropdownItemRenderer.isSelected=!1,O===H.dropdownItemRenderer.int32Value&&(Z=!0,H.dropdownItemRenderer.isSelected=!0));!Z&&t&&(t.isSelected=!0)}_.yB(this,function(){var U;N.set("data.quantityPicker",_.WW.unsafeClone((U=N.data)==null?void 0:U.quantityPicker))})}};
d1.prototype.onYtRendererstamperFinished=d1.prototype.onYtRendererstamperFinished;d1.prototype.entityChanged=d1.prototype.entityChanged;_.W([_.X(),_.Q("design:type",Object)],d1.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],d1.prototype,"compact",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],d1.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],d1.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(N,t){return _.CM(N.entities,"commerceCartItemEntity",t)}}),
_.Q("design:type",Object)],d1.prototype,"commerceCartItemEntity",void 0);_.W([_.X(),_.Q("design:type",Object)],d1.prototype,"quantityPicker",void 0);_.W([_.X(),_.Q("design:type",Object)],d1.prototype,"compactQuantityPicker",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],d1.prototype,"hidden",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],d1.prototype,"errorHidden",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Q("design:type",Object)],d1.prototype,"noOnTap",void 0);_.W([_.B2("ytd-commerce-cart-item-quantity-picker-renderer"),_.Q("design:type",Object)],d1.prototype,"pickerElement",void 0);_.W([_.B2("yt-button-renderer"),_.Q("design:type",Element)],d1.prototype,"firstButtonElement",void 0);
_.W([_.gz("commerceCartItemEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],d1.prototype,"entityChanged",null);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],d1.prototype,"onYtRendererstamperFinished",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],d1);
_.n(d1,"ytd-commerce-cart-item-renderer",function(){if(my5!==void 0)return my5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return my5=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var GSx;var Ra5;var g1=function(){return _.k.apply(this,arguments)||this};
_.p(g1,_.k);g1.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}}}}}};
g1.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
g1.prototype.updateCheckoutLineItems=function(){var N,t=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.checkoutLineItems;t&&(N=t.map(function(O){a:{var H=O.price,A=O.description;switch(O.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":O={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Yg(A),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:Yg(H),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:O={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Yg(A),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:Yg(H),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 O}),this.set("data.summaryLineItems",N))};
g1.prototype.updateIsHidden=function(){var N,t=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.isHidden;t!==void 0&&(this.hostElement.hidden=t)};
g1.prototype.entityChanged=g1.prototype.entityChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],g1.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],g1.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],g1.prototype,"data",void 0);_.W([_.X({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:HKg}),_.Q("design:type",Object)],g1.prototype,"commerceCartCheckoutButtonEntity",void 0);_.W([_.gz("commerceCartCheckoutButtonEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],g1.prototype,"entityChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],g1);
_.n(g1,"ytd-commerce-cart-summary-renderer",function(){if(Ra5!==void 0)return Ra5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Ra5=N},{mode:1});var vXO={};vXO.InjectBehavior=[mlz.InjectBehavior];var Ju1;var oXf;var yd=function(){return _.k.apply(this,arguments)||this};
_.p(yd,_.k);
yd.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:_.LE("menuRenderer")}}};
yd.prototype.onMenuTap=function(N){N.stopPropagation()};
_.cv.Object.defineProperties(yd.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var N,t;return!(((N=this.data)==null||!N.sectionHeading)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var N,t;return!(((N=this.data)==null||!N.image)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var N,t;return!(((N=this.data)==null||!N.menu)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.w05.YtTappableItemBehavior),_.Q("design:type",Object)],yd.prototype,"ytTappableItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yd.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data.accessibilityData"),_.Q("design:type",String),_.Q("design:paramtypes",[])],yd.prototype,"ariaLabel",null);_.W([_.a("data.sectionHeading","data.layout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yd.prototype,"sectionHeadingVisible",null);_.W([_.a("data.image","data.layout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yd.prototype,"imageVisible",null);
_.W([_.a("data.menu","data.layout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],yd.prototype,"menuVisible",null);_.W([_.wz({is:"yt-activity-item-renderer",disableElementRegistration:!0})],yd);
_.n(yd,"yt-activity-item-renderer",function(){if(oXf===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Ju1===void 0&&(Ju1=document.createElement("template"));var H=Ju1;O.call(t,H.content.cloneNode(!0),N.content.firstChild);oXf=N}N=oXf;return N},{mode:2});var sQ5;var Ni5;var tJ5;var Onn;var Bw=function(){return _.k.apply(this,arguments)||this};
_.p(Bw,_.k);
Bw.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"}}}}};
Bw.prototype.backgroundColorChanged_=function(){var N,t=(N=this.data)==null?void 0:N.backgroundColor;this.hostElement.style.backgroundColor=J1[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Bw.prototype.backgroundColorChanged_=Bw.prototype.backgroundColorChanged_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Bw.prototype,"data",void 0);
_.W([_.gz("data.backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bw.prototype,"backgroundColorChanged_",null);_.W([_.wz({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Bw);
_.n(Bw,"yt-offer-item-upsell-renderer",function(){if(Onn===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;tJ5===void 0&&(tJ5=document.createElement("template"));var H=tJ5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Onn=N}N=Onn;return N},{mode:2});_.pE("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var cw=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};N.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return N};
_.p(cw,_.k);_.V=cw.prototype;
_.V.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.LE("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.V.computeContainerStyle_=function(N){return N};
_.V.computeContainerIsHidden_=function(N){return N&&!!N.isHidden};
_.V.computeShowSpinner_=function(N,t){return N&&t==="in-progress"};
_.V.computeShowMoreContentsButton_=function(N,t,O,H,A){return!(!(H&&H.length||A&&A.length&&O)||!N||t)};
_.V.onToggleButton_=function(N){var t=this;N.stopPropagation();this.isExpanded_=N.detail&&N.detail.toggled;var O,H;this.isExpanded_&&!this.data.continuationSection.length&&((O=this.data)==null?0:(H=O.continuation)==null?0:H.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.or(this.hostElement,"yt-load-next-continuation",function(A){return t.getContinuationUrl_(t.data.continuation.onClickContinuationData,A)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.tb(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.V.onShowMoreContentsButtonClicked_=function(N){var t=this;N.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.or(this.hostElement,"yt-load-next-continuation",function(O){return t.getContinuationUrl_(t.data.continuations[0].nextContinuationData,O)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.tb(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.V.getContinuationUrl_=function(N,t){var O=N.continuation;N=N.clickTrackingParams;var H=_.z8();N&&H&&_.IX(H,_.ib(N));return _.CF(t,{continuation:O})};
_.V.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var N=_.O6(this.hostElement).querySelector("#continuation-section");N&&(N=N.querySelectorAll("ytmusic-item-section-renderer"))&&N.forEach(function(t){return t.classList.add("memberships-and-purchases")})};
_.V.dataChanged_=function(){var N;this.isExpanded_=!((N=this.data)==null||!N.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.V.updateCardOnClickCommand_=function(N){N=_.M(N,UGQ);var t,O;this.data&&((t=this.data)==null?0:t.targetId)&&N&&N.targetId===((O=this.data)==null?void 0:O.targetId)&&N.onClickCommand&&(this.data.onClickCommand=N.onClickCommand,this.isOnClickCommand_=!0)};
_.V.backgroundColorChanged_=function(){var N,t=(N=this.data)==null?void 0:N.backgroundColor;this.hostElement.style.backgroundColor=J1[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
cw.prototype.backgroundColorChanged_=cw.prototype.backgroundColorChanged_;cw.prototype.dataChanged_=cw.prototype.dataChanged_;cw.prototype.nextContinuationDataUpdated_=cw.prototype.nextContinuationDataUpdated_;cw.prototype.onToggleButton_=cw.prototype.onToggleButton_;_.W([_.Y(_.h3),_.Q("design:type",Object)],cw.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],cw.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.MP.YtNextContinuationBehavior),_.Q("design:type",Object)],cw.prototype,"ytNextContinuationBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.W([_.Y(vXO.InjectBehavior),_.Q("design:type",Object)],cw.prototype,"injectBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cw.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],cw.prototype,"compact",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],cw.prototype,"isExpanded_",void 0);_.W([_.X({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Q("design:type",String)],cw.prototype,"containerStyle_",void 0);_.W([_.X({value:"not-started"}),_.Q("design:type",String)],cw.prototype,"continuationStatus_",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Q("design:type",Boolean)],cw.prototype,"showSpinner_",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],cw.prototype,"isOnClickCommand_",void 0);_.W([_.X({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Q("design:type",Boolean)],cw.prototype,"showMoreContentsButton_",void 0);
_.W([_.X({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(N,t){return!t||N.entities?null:_.CM(N.entities,"cardItemContainerEntity",t)}}),
_.Q("design:type",Object)],cw.prototype,"cardItemContainerEntity_",void 0);_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],cw.prototype,"onToggleButton_",null);_.W([_.dz("yt-next-continuation-data-updated"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cw.prototype,"nextContinuationDataUpdated_",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cw.prototype,"dataChanged_",null);_.W([_.gz("data.backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cw.prototype,"backgroundColorChanged_",null);_.W([_.wz({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],cw);
_.n(cw,"yt-card-item-container-renderer",function(){if(Ni5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;sQ5===void 0&&(sQ5=document.createElement("template"));var H=sQ5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Ni5=N}N=Ni5;return N},{mode:2});var $N=function(){return _.k.apply(this,arguments)||this};
_.p($N,_.k);$N.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"}}}};
$N.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
$N.prototype.computeLoadingHidden=function(){var N;return!((N=this.commerceCartPageStateEntity)==null?0:N.cartActionInProgress)};
$N.prototype.updateNotification=function(){var N,t=(N=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:N.summaryText;t&&this.set("data.cartNotification",Yg(t))};
$N.prototype.notificationEntityChanged=$N.prototype.notificationEntityChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],$N.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],$N.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],$N.prototype,"data",void 0);_.W([_.X({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(N,t){return _.CM(N.entities,"commerceCartExpandableNotificationEntity",t)}}),
_.Q("design:type",Object)],$N.prototype,"commerceCartExpandableNotificationEntity",void 0);_.W([_.X({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(N,t){return _.CM(N.entities,"commerceCartPageStateEntity",t)}}),
_.Q("design:type",Object)],$N.prototype,"commerceCartPageStateEntity",void 0);_.W([_.B2("#spinner"),_.Q("design:type",HTMLElement)],$N.prototype,"spinner",void 0);_.W([_.gz("commerceCartExpandableNotificationEntity","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$N.prototype,"notificationEntityChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],$N);
_.n($N,"ytd-commerce-cart-renderer",function(){if(GSx!==void 0)return GSx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return GSx=N},{mode:1});var Hni;var j5=function(){var N=_.k.apply(this,arguments)||this;N.bigImage=!1;return N};
_.p(j5,_.k);_.cv.Object.defineProperties(j5.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.placeholderImageUrl}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],j5.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],j5.prototype,"bigImage",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],j5.prototype,"placeholderImageUrl",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],j5);
_.n(j5,"ytd-empty-product-shelf-renderer",function(){if(Hni!==void 0)return Hni;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Hni=N},{mode:1});var Amn;var iV=function(){var N=_.k.apply(this,arguments)||this;N.itemStyle="link-item";N.watchMetadataRefresh=!1;N.skinnyMode=!1;N.metaPanel=!1;N.inStructuredDescription=!1;N.detailedDescriptionOverride=!1;N.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};N.updateOnResizeDebouncer=null;return N};
_.p(iV,_.k);_.V=iV.prototype;_.V.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.V.attachVEs=function(N){N.trackingParams&&_.gF().graftServerVe(N.trackingParams)};
_.V.handleUpdateMerchShelfAction=function(N){var t=this,O=_.M(N.updateMerchandiseShelfAction.merchandiseShelf,_.PIQ);O&&(O.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){t.attachVEs(O);t.data=O},Number(O.renderDelayMs))):(this.attachVEs(O),this.data=O))};
_.V.updateOnResize=function(){if(this.JSC$17175_scrollContainer!==void 0&&this.JSC$17175_scrollContainer.clientWidth!==0&&this.items!==void 0){var N=this.JSC$17175_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-N));this.ytdHorizontalListBehavior.reposition_();var t;switch((t=this.data)==null?void 0:t.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var O,
H;((O=this.data)==null?void 0:(H=O.items)==null?void 0:H.length)===1?this.itemStyle="cta-item":this.itemStyle=N>=740?"large-item":"small-item"}}};
_.V.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.M_(this.updateOnResizeDebouncer,_.FI.after(100),this.updateOnResize)};
iV.prototype.debouncedUpdateOnResize=iV.prototype.debouncedUpdateOnResize;iV.prototype.dataChanged=iV.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.a2.YtdHorizontalListBehavior),_.Q("design:type",Object)],iV.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],iV.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],iV.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],iV.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iV.prototype,"itemStyle",void 0);_.W([_.X({value:6}),_.Q("design:type",Number)],iV.prototype,"initialCount",void 0);
_.W([_.X({value:"data.items"}),_.Q("design:type",String)],iV.prototype,"itemsPath",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iV.prototype,"watchMetadataRefresh",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iV.prototype,"skinnyMode",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iV.prototype,"metaPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iV.prototype,"inStructuredDescription",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iV.prototype,"detailedDescriptionOverride",void 0);_.W([_.B2("#items"),_.Q("design:type",HTMLDivElement)],iV.prototype,"items",void 0);_.W([_.B2("#scroll-container"),_.Q("design:type",HTMLDivElement)],iV.prototype,"JSC$17175_scrollContainer",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iV.prototype,"dataChanged",null);
_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iV.prototype,"debouncedUpdateOnResize",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],iV);
_.n(iV,"ytd-merch-shelf-renderer",function(){if(Amn!==void 0)return Amn;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Amn=N},{mode:2});var Znq;var uV=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return N};
_.p(uV,_.k);_.V=uV.prototype;
_.V.addBackstagePostAction=function(N){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(N=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",N))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:N}):this.set("data.contents",[{backstagePostThreadRenderer:N}]))};
_.V.addBackstageCommentAction=function(N){var t=this.get("addBackstageCommentAction.parentId",N);N=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",N);if(t&&N){t=this.postIdToIndices(t);for(var O=0;O<t.length;O++){var H=t[O];if(H<0)break;H="data.contents."+H+".backstagePostThreadRenderer.comments";this.get(H)&&(this.get(H+".backstageCommentsRenderer.contents")&&this.push(H+".backstageCommentsRenderer.contents",{commentThreadRenderer:N}),this.get(H+".backstageCommentsRenderer.teaserContents")?
this.push(H+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:N}):this.set(H+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:N}]))}}};
_.V.addBackstageReplyAction=function(N){var t=this.get("addBackstageReplyAction.parentId",N);N=this.get("addBackstageReplyAction.renderer.commentRenderer",N);t&&N&&this.setCreatorReply(t,N)};
_.V.banAuthorAction=function(N){var t=this.get("banAuthorAction.commentId",N);t&&(N=this.get("banAuthorAction.parentCommentId",N)||this.getParentPostId(t),this.removeFromStream(t,N))};
_.V.hideReportedCommentAction=function(N){var t=this.get("hideReportedCommentAction.commentId",N);t&&((N=this.get("hideReportedCommentAction.parentCommentId",N))||(N=this.getParentPostId(t)),this.removeFromStream(t,N))};
_.V.replaceBackstageCommentAction=function(N){var t=this.get("replaceBackstageCommentAction.commentId",N),O=this.get("replaceBackstageCommentAction.parentId",N);N=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",N);if(t&&O&&N){O=this.postIdToIndices(O);for(var H=0;H<O.length;H++){var A=O[H];if(A<0)break;var Z=this.commentIdToIndex(t,A,!1);if(Z>=0){var U=this.get("data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+Z+".commentThreadRenderer.replies.commentRepliesRenderer");
U&&(N.replies={commentRepliesRenderer:U});this.splice("data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Z,1,{commentThreadRenderer:N})}Z=this.commentIdToIndex(t,A,!0);if(Z>=0){if(U=this.get("data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(Z+".commentThreadRenderer.replies.commentRepliesRenderer")))N.replies={commentRepliesRenderer:U};this.splice("data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
Z,1,{commentThreadRenderer:N})}}}};
_.V.replaceBackstagePostAction=function(N){var t=this.get("replaceBackstagePostAction.itemId",N);if(t){t=this.postIdToIndices(t);for(var O=0;O<t.length;O++){var H=t[O];if(H<0)break;var A=this.getPostRendererType(H),Z=this.get("replaceBackstagePostAction.renderer."+A,N);if(!Z&&A!=="sharedPostRenderer")break;var U=!1;Z||(U=!0,Z=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",N));if(!Z)break;var C={};U?(_.LC(C,JLp,Z),this.set("data.contents."+H+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
C)):(_.LC(C,new _.Fp(A),Z),this.set("data.contents."+H+".backstagePostThreadRenderer.post",C))}}};
_.V.replaceBackstageReplyAction=function(N){var t=this.get("replaceBackstageReplyAction.replyId",N),O=this.get("replaceBackstageReplyAction.parentId",N);N=this.get("replaceBackstageReplyAction.renderer.commentRenderer",N);t&&N&&O&&this.setCreatorReply(O,N)};
_.V.removeCommentAction=function(N){var t=this.get("removeCommentAction.commentId",N);if(t){var O=this.get("removeCommentAction.parentCommentId",N);O&&this.get("removeCommentAction.isCreatorReply",N)?this.setCreatorReply(O,void 0):(O||(O=this.getParentPostId(t)),this.removeFromStream(t,O))}};
_.V.setCreatorReply=function(N,t){var O=this.getParentPostId(N);if(O){O=this.postIdToIndices(O);for(var H=0;H<O.length;H++){var A=O[H];if(A<0)break;var Z=this.commentIdToIndex(N,A,!1);if(Z>=0){var U="data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+Z;Z=U+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";U+=".commentThreadRenderer.replies";t==void 0?(this.set(U,{}),this.set(Z,!1)):(this.set(U,{commentRepliesRenderer:{teaserContents:[{commentRenderer:t}]}}),
this.set(U+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(Z,!0))}Z=this.commentIdToIndex(N,A,!0);Z>=0&&(Z="data.contents."+A+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+Z,A=Z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",Z+=".commentThreadRenderer.replies",t==void 0?(this.set(Z,{}),this.set(A,!1)):(this.set(Z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:t}]}}),this.set(A,!0)))}}};
_.V.removeFromStream=function(N,t){if(t){t=this.postIdToIndices(t);for(var O=0;O<t.length;O++){var H=t[O];if(H<0)break;var A=this.commentIdToIndex(N,H,!1);A>=0&&this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",A,1);A=this.commentIdToIndex(N,H,!0);A>=0&&this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",A,1);H="data.contents."+H+".backstagePostThreadRenderer.post.backstagePostRenderer";
A=H+".backstageAttachment.pollRenderer.votedCommentId";this.get(A)===N&&(this.set(A,null),this.set(H+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(t=this.postIdToIndices(N).reverse(),O=0;O<t.length;O++){H=t[O];if(H<0)break;A=this.getPostRendererType(H);var Z=this.get("backstagePostThreadRenderer.post."+A,this.data.contents[H]);Z.postId===N?this.splice("data.contents",H,1):A==="sharedPostRenderer"&&this.set("data.contents."+H+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);Z.scheduledPublishTimeSec&&_.sl(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.V.postIdToIndices=function(N){for(var t=[],O=0;O<this.data.contents.length;O++){var H=this.getPostRendererType(O);this.get("backstagePostThreadRenderer.post."+H+".postId",this.data.contents[O])===N&&t.push(O);if(H==="sharedPostRenderer"){var A=this.get("backstagePostThreadRenderer.post."+H+".originalPost.backstagePostRenderer.postId",this.data.contents[O]);H=this.get("backstagePostThreadRenderer.post."+H+".originalPost.postRenderer.postId",this.data.contents[O]);A!==N&&H!==N||t.push(O)}}return t};
_.V.commentIdToIndex=function(N,t,O){if(t<0)return-1;var H,A,Z,U,C=_.M((H=this.data)==null?void 0:(A=H.contents)==null?void 0:(Z=A[t])==null?void 0:(U=Z.backstagePostThreadRenderer)==null?void 0:U.comments,R2p);return(t=O?C==null?void 0:C.teaserContents:C==null?void 0:C.contents)&&t.length?t.findIndex(function(F){return _.M(F,agX).comment.commentRenderer.commentId===N}):-1};
_.V.getParentPostId=function(N){N=N.split(".");if(N[1])return N[0]};
_.V.getPostRendererType=function(N){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[N])?"sharedPostRenderer":"backstagePostRenderer"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],uV.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],uV.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:_.h("enable_community_page_on_desktop")}),_.Q("design:type",Boolean)],uV.prototype,"useSmallerPostContainer",void 0);
_.W([_.en({disableElementRegistration:!0,is:"ytd-backstage-items"})],uV);
_.n(uV,"ytd-backstage-items",function(){if(Znq!==void 0)return Znq;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Znq=
N},{mode:1});var VJq;var Dq1={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},S5=function(){var N=_.k.apply(this,arguments)||this;N.disablePrescanVisibility=!0;N.canScheduleJobs=!0;N.engagementPanel=!1;N.hidePanelButton=!1;N.isWatchGrid=
!1;N.hasShownSubscribersOnlyDisclaimer=!1;N.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};N.TEST_ONLY=void 0;return N};
_.p(S5,_.k);_.V=S5.prototype;_.V.created=function(){this.initCommentsCsi_();_.h("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.h("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.V.contentsChanged_=function(){var N;(N=this.data)!=null&&N.contents&&this.tickForCommentsTimer_("cml")};
_.V.headerChanged_=function(){var N;(N=this.data)!=null&&N.header&&this.tickForCommentsTimer_("cmhl")};
_.V.initCommentsCsi_=function(){_.LJ("wn_comments");var N=_.z8();N&&_.bp({clientScreenNonce:N},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.V.createCommentAction_=function(N){N=_.WW.unsafeClone(N);var t,O;if(N=(t=_.M(N,uIB))==null?void 0:(O=t.contents)==null?void 0:O.commentThreadRenderer){var H,A,Z,U,C,F;!this.isBackstage&&((H=this.data)==null?0:(A=H.header)==null?0:(Z=A.commentsHeaderRenderer)==null?0:(U=Z.createRenderer)==null?0:(C=U.commentSimpleboxRenderer)==null?0:(F=C.zeroStep)==null?0:F.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var g,
B,c;this.isBackstage&&_.M((g=this.data)==null?void 0:(B=g.header)==null?void 0:(c=B.commentsHeaderRenderer)==null?void 0:c.zeroStateMessage,okX)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(N)}};
_.V.doReplyInsert_=function(N,t,O,H){H?this.splice(N,H,0,t):this.push(N,t)};
_.V.getRepliesPath_=function(N){return"data.contents."+N+".commentThreadRenderer.replies"};
_.V.getRepliesContentsPath_=function(N,t){N=this.getRepliesPath_(N);return t?N+".commentRepliesRenderer.teaserContents":N+".commentRepliesRenderer.contents"};
_.V.showSubscribersOnlyDisclaimer_=function(N){(N=N.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(N=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(N))&&(_.sl(this.hostElement,"yt-open-popup-action",[N,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.V.createCommentReplyAction_=function(N){N=_.WW.unsafeClone(N);var t=_.M(N,STf);if(N=t==null?void 0:t.contents){var O=this.commentIdToIndex_(t==null?void 0:t.parentCommentId);if(!(O<0)){var H=this.getRepliesPath_(O);if(this.get(H)){t=t.replyToCommentId;H=this.getRepliesContentsPath_(O,!1);if(this.get(H)){var A=this.get(H).length,Z=H+"."+(A-1)+".continuationItemRenderer";this.get(Z+".button")?(Z=this.replyIdToIndex_(t,O,!1),this.doReplyInsert_(H,N,Z,A-1)):this.get(Z)||(A=this.replyIdToIndex_(t,O,
!1),this.doReplyInsert_(H,N,A,null))}H=this.getRepliesContentsPath_(O,!0);this.get(H)?(O=this.replyIdToIndex_(t,O,!0),(!t||O>=0)&&this.doReplyInsert_(H,N,O,null)):this.set(H,[N])}else this.set(H,{commentRepliesRenderer:{teaserContents:[N]}})}}};
_.V.hideReportedCommentAction_=function(N){var t=_.M(N,rAS);if(N=t==null?void 0:t.commentId)(t=this.get("parentCommentId",t))||(t=this.getParentCommentId_(N)),this.remove_(N,t)};
_.V.getParentCommentId_=function(N){N=N.split(".");if(N[1])return N[0]};
_.V.removeCommentAction_=function(N){var t=_.M(N,LCp);if(N=t==null?void 0:t.commentId)t=(t==null?void 0:t.parentCommentId)||this.getParentCommentId_(N),this.remove_(N,t)};
_.V.pinCommentAction_=function(N){N=_.WW.unsafeClone(N);var t=_.M(N,pn_);t!=null&&t.commentId&&(N=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",N))&&(this.remove_(t.commentId),this.insert_(N,!0))};
_.V.unpinCommentAction_=function(N){N=_.WW.unsafeClone(N);N=_.M(N,zpu);if(N!=null&&N.commentId){var t,O,H=(t=N.actionResult)==null?void 0:(O=t.update)==null?void 0:O.commentThreadRenderer;H&&(this.remove_(N.commentId),this.insert_(H))}};
_.V.banAuthorAction_=function(N){var t=_.M(N,ipf);t!=null&&t.commentId&&(N=t.commentId,t=t.parentCommentId||this.getParentCommentId_(N),this.remove_(N,t))};
_.V.handleScrollToCommentElement_=function(N){this.hostElement.contains(N)&&(this.nearestScrollParent||(this.nearestScrollParent=xI4(N)),this.isCommentVisibleInScrollParent(N)||N.scrollIntoView({behavior:"smooth",block:"start"}))};
_.V.isCommentVisibleInScrollParent=function(N){if(!this.nearestScrollParent)return!1;N=N.getBoundingClientRect();var t=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return N.top>=t.top&&N.bottom<=t.bottom};
_.V.commentIdToIndex_=function(N){var t;return N&&(t=this.data)!=null&&t.contents?this.data.contents.findIndex(function(O){O=O.commentThreadRenderer;var H;return N===((O==null?void 0:O.commentViewModel)&&((H=_.M(O.commentViewModel,x_Q))==null?void 0:H.commentId))}):-1};
_.V.insert_=function(N,t){t=t===void 0?!1:t;var O,H;if((O=this.data)==null?0:(H=O.contents)==null?0:H.some(function(Z){return!!Z.commentThreadRenderer}))for(O=0,H=this.data.contents.length;O<H;O++){var A=this.data.contents[O].commentThreadRenderer;
if(Dq1[N.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=Dq1[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){t&&Dq1[N.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===Dq1[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",O,1,{commentThreadRenderer:N}):this.splice("data.contents",O,0,{commentThreadRenderer:N});break}}else this.set("data.contents",[{commentThreadRenderer:N}])};
_.V.doReplyRemove_=function(N,t,O){N=this.replyIdToIndex_(N,t,O);N<0||(t=this.getRepliesContentsPath_(t,O),this.splice(t,N,1))};
_.V.remove_=function(N,t){t=this.commentIdToIndex_(t);t<0?(t=this.commentIdToIndex_(N),t<0||this.splice("data.contents",t,1)):_.h("web_delhi_comment_threads")||(this.doReplyRemove_(N,t,!1),this.doReplyRemove_(N,t,!0))};
_.V.replyIdToIndex_=function(N,t,O){if(t<0)return-1;t=this.getRepliesContentsPath_(t,O);t=this.get(t);if(!t||!t.length)return-1;O=0;for(var H=t.length;O<H;O++){var A=void 0,Z=void 0;if(((A=t[O])==null?void 0:(Z=A.commentViewModel)==null?void 0:Z.commentId)===N)return O}return-1};
_.V.tickForCommentsTimer_=function(N){_.YY(N,void 0,"wn_comments")};
_.V.reloadComments_=function(N){N=_.M(N,Pru);_.M(N==null?void 0:N.command,_.PH)&&_.tb(this.hostElement,[N==null?void 0:N.command])};
_.cv.Object.defineProperties(S5.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!!((N=this.data)==null?0:(t=N.header)==null?0:(O=t.commentsHeaderRenderer)==null?0:O.isBackstageContent)}}});
_.cv.Object.defineProperties(S5,{template:{configurable:!0,enumerable:!0,get:function(){if(VJq===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);VJq=N}N=VJq;return N}}});
S5.prototype.showSubscribersOnlyDisclaimer_=S5.prototype.showSubscribersOnlyDisclaimer_;S5.prototype.headerChanged_=S5.prototype.headerChanged_;S5.prototype.contentsChanged_=S5.prototype.contentsChanged_;_.W([_.Y(_.LX),_.Q("design:type",Object)],S5.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",Function)],S5.prototype,"ytPlayerListenerBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],S5.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],S5.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.header.commentsHeaderRenderer.isBackstageContent"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],S5.prototype,"isBackstage",null);
_.W([_.X(),_.Q("design:type",Object)],S5.prototype,"disablePrescanVisibility",void 0);_.W([_.X(),_.Q("design:type",Object)],S5.prototype,"canScheduleJobs",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],S5.prototype,"engagementPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],S5.prototype,"hidePanelButton",void 0);_.W([_.X(),_.Q("design:type",Object)],S5.prototype,"isWatchGrid",void 0);_.W([_.X(),_.Q("design:type",Object)],S5.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.W([_.gz("data.contents"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],S5.prototype,"contentsChanged_",null);_.W([_.gz("data.header"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],S5.prototype,"headerChanged_",null);_.W([_.dz("yt-show-subscribers-only-disclaimer"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],S5.prototype,"showSubscribersOnlyDisclaimer_",null);
_.W([_.en({is:"ytd-comments"})],S5);var h0=function(){return _.$q.apply(this,arguments)||this};
_.p(h0,_.$q);_.V=h0.prototype;_.V.bindIf=function(N,t,O){return N?t:O};
_.V.bindIfDefined=function(N,t){return N!==void 0?N:t};
_.V.booleanString=function(N){return(!!N).toString()};
_.V.equals=function(){for(var N=_.E1.apply(0,arguments),t=N[0],O=1;O<N.length;O++)if(t!=N[O])return!1;return!0};
_.V.isGreaterThan=function(N,t){return N>t};
_.V.isLessThan=function(N,t){return N<t};
_.V.logicalAND=function(){for(var N=_.E1.apply(0,arguments),t=!!N[0],O=1;O<N.length;O++)t=t&&!!N[O];return t};
_.V.logicalOR=function(){for(var N=_.E1.apply(0,arguments),t=!!N[0],O=1;O<N.length;O++)t=t||!!N[O];return t};
_.V.toBool=function(N){return!!N};
h0.prototype.toBool=h0.prototype.toBool;h0.prototype.logicalOR=h0.prototype.logicalOR;h0.prototype.logicalAND=h0.prototype.logicalAND;h0.prototype.isLessThan=h0.prototype.isLessThan;h0.prototype.isGreaterThan=h0.prototype.isGreaterThan;h0.prototype.equals=h0.prototype.equals;h0.prototype.booleanString=h0.prototype.booleanString;h0.prototype.bindIfDefined=h0.prototype.bindIfDefined;h0.prototype.bindIf=h0.prototype.bindIf;_.W([_.jn()],h0);_.Uqm=[h0.prototype];var C1m;var K5J;var Mr=function(){return _.k.apply(this,arguments)||this};
_.p(Mr,_.k);Mr.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Mr.prototype.onBackIconTap_=function(){window.history.back()};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Mr.prototype,"data",void 0);_.W([_.wz({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Mr);
_.n(Mr,"yt-header-with-back-renderer",function(){if(K5J===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;C1m===void 0&&(C1m=document.createElement("template"));var H=C1m;O.call(t,H.content.cloneNode(!0),N.content.firstChild);K5J=N}N=K5J;return N},{mode:2});var F5m;var dqn;var bV=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(bV,_.k);_.V=bV.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&(this.isDarkTheme=N,this.setUrl())};
_.V.dataChanged=function(){var N=this;if(this.data){var t=this.setUrl();t&&_.CA({destination:window,iframe:this.iframe,origin:_.K7y(t.toString()),channelName:"yt-iframe",onMessage:function(O){(O=N.getCommunicationCommand(O.data))&&N.ytComponentBehavior.resolveCommand(O)},
onEstablished:function(){}})}};
_.V.setUrl=function(){if(this.data&&this.data.iframeUrl){var N=_.Rk(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(N)return _.No(this.iframe,N),N}};
_.V.getCommunicationCommand=function(N){var t;if((t=this.data)!=null&&t.onCommunicationCommandsMap){t=this.data.onCommunicationCommandsMap.find(function(A){return A.key===N});
if(t==null?0:t.value)return t==null?void 0:t.value;try{var O=sfX(_.Jg(N)),H=this.data.onCommunicationCommandsMap.find(function(A){return A.key===(O==null?void 0:O.getMethodName())});
if(H==null?0:H.value)return H==null?void 0:H.value}catch(A){}}};
bV.prototype.dataChanged=bV.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],bV.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],bV.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bV.prototype,"data",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],bV.prototype,"isDarkTheme",void 0);_.W([_.B2("#iframe"),_.Q("design:type",HTMLIFrameElement)],bV.prototype,"iframe",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bV.prototype,"dataChanged",null);_.W([_.wz({is:"yt-iframe-renderer",disableElementRegistration:!0})],bV);
_.n(bV,"yt-iframe-renderer",function(){if(dqn===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;F5m===void 0&&(F5m=document.createElement("template"));var H=F5m;O.call(t,H.content.cloneNode(!0),N.content.firstChild);dqn=N}N=dqn;return N},{mode:2});_.p5=function(N){_.k1.call(this);this.callback=N;this.bezier=new DuB(0,0,.4,0,.2,1,1,1);this.delay=new _.iq(this.next,window,this);this.JSC$17216_animating=!1;_.L1(this,this.delay)};
_.p(_.p5,_.k1);_.p5.prototype.isAnimating=function(){return this.JSC$17216_animating};
_.p5.prototype.start=function(N,t,O){this.config={from:N,to:t,duration:O,startTime:(0,_.jg)()};this.JSC$17216_animating=!0;this.next()};
_.p5.prototype.stop=function(){this.delay.stop();this.JSC$17216_animating=!1;this.config=void 0};
_.p5.prototype.next=function(){if(this.config){var N=this.config,t=N.from,O=N.to,H=N.duration;N=N.startTime;var A=(0,_.jg)()-N;N=this.bezier;H=CeE(N,A/H);if(H==0)N=N.y0;else if(H==1)N=N.y3;else{A=eW(N.y0,N.y1,H);var Z=eW(N.y1,N.y2,H);N=eW(N.y2,N.y3,H);A=eW(A,Z,H);Z=eW(Z,N,H);N=eW(A,Z,H)}N=_.eS(N,0,1);this.callback(t+(O-t)*N);N<1?this.delay.start():this.JSC$17216_animating=!1}};_.L5=new _.dk("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var gr1={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Bii=function(N,t,O,H){_.k1.call(this);this.JSC$17227_miniAppId=N;this.localReleaseId=t;this.derivedDeviceInterface=O;this.isForeground=H;this.JSC$17227_playNonceResolver=new _.CT;this.playPingTimerId=NaN;this.playPingIntervalMs=_.uP("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.uP("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.h("enable_displaying_ppn");this.JSC$17227_miniAppClientDataProvider=_.cY().resolve(_.L5);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;ymq(this);var A=setTimeout(function(){_.J_(new _.fF("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17227_playNonceResolver.promise.then(function(){clearTimeout(A)})};
_.p(Bii,_.k1);var $qJ=function(N,t){N.JSC$17227_playNonceResolver.resolve(t!=null?t:M0(8));N.enableDisplayingPpn&&cm5(N).then(function(O){N.JSC$17227_miniAppClientDataProvider.clientData.set("post_play_nonce",O)})},cm5=function(N){return _.K(function(t){return t.nextAddress==1?t.yield(N.JSC$17227_playNonceResolver.promise,2):t.return(t.yieldResult)})},ymq=function(N){var t,O;
_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$17227_playNonceResolver.promise,2);t=H.yieldResult;O={miniAppInfo:{externalPostId:N.JSC$17227_miniAppId,localReleaseId:N.localReleaseId,postPlayNonce:t,derivedDeviceInterface:N.derivedDeviceInterface}};_.bp(O);_.Ty(H)})},inx=function(N){N.state!==0?_.J_(new _.fF("[MiniAppPlayLogger] recordPlayStart failed with state "+gr1[N.state])):(N.state=1,zs(N,"ma_cl"),YN(N,"PLAY_EVENT_TYPE_PLAY_START"),j1m(N))},uf5=function(N){N.isForeground=!1;
YN(N,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Sxq=function(N){N.state!==1&&N.state!==2?_.J_(new _.fF("[MiniAppPlayLogger] recordPlayEnd failed with state "+gr1[N.state])):(N.state=3,window.clearInterval(N.playPingTimerId),N.playPingTimerId=NaN,lct(),YN(N,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},h5O=function(N,t){N.state===2&&N.gameReady&&(N.firstClickRecorded?Date.now()-N.clickRecordedMs<N.playClickIntervalMs||(N.clickRecordedMs=Date.now(),YN(N,"PLAY_EVENT_TYPE_PLAY_CLICK")):t&&(zs(N,"ma_fua"),YN(N,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),N.firstClickRecorded=!0,N.clickRecordedMs=Date.now()))};
Bii.prototype.logError=function(N){var t=this,O;_.K(function(H){if(H.nextAddress==1)return N.metadata.externalPostId=t.JSC$17227_miniAppId,O=N.metadata,H.yield(Promise.race([t.JSC$17227_playNonceResolver.promise,new Promise(function(A){setTimeout(function(){A("")},3E4)})]),2);
O.postPlayNonce=H.yieldResult;N.metadata.localReleaseId=t.localReleaseId;N.loggingError.level="WARNING";_.R0(N.loggingError,N.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:N.metadata});_.Ty(H)})};
var MJq=function(N,t,O,H){var A,Z,U,C,F,g;_.K(function(B){if(B.nextAddress==1)return B.yield(N.JSC$17227_playNonceResolver.promise,2);A=B.yieldResult;Z={externalPostId:N.JSC$17227_miniAppId,localReleaseId:N.localReleaseId,postPlayNonce:A,sdkVersion:O,api:t};H!==void 0&&(Z.networkRequestsMeasurement={networkRequests:_.$1(H,1),cachedRequests:_.$1(H,2),transferredBytes:_.$1(H,3)},(U=H)==null?0:_.$D(U,iK,6))&&(Z.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((C=_.Sg(H,
iK,6))==null?void 0:Tl(C,1))||"0",cacheHits:((F=_.Sg(H,iK,6))==null?void 0:Tl(F,2))||"0",cachedBytes:((g=_.Sg(H,iK,6))==null?void 0:Tl(g,3))||"0"});_.E7("miniAppSdkUsage",Z);_.Ty(B)})},pmf=function(N,t,O){var H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x;
_.K(function(l){if(l.nextAddress==1)return l.yield(N.JSC$17227_playNonceResolver.promise,2);H=l.yieldResult;A={externalPostId:N.JSC$17227_miniAppId,localReleaseId:N.localReleaseId,postPlayNonce:H,sdkVersion:O,measurementWindow:{startTimestampMs:String(Ll(t,1)),endTimestampMs:String(Ll(t,2))},frameRate:{averageFrameTimeDeltaMs:zl(t,3),averageFrameIdleTimeMs:zl(t,4)}};_.$D(t,uK,5)&&(A.networkRequests={networkRequests:(Z=zL(t))==null?void 0:_.$1(Z,1),cachedRequests:(U=zL(t))==null?void 0:_.$1(U,2),transferredBytes:(C=
zL(t))==null?void 0:_.$1(C,3),sameOriginStatusCodeToCounts:bnr((F=zL(t))==null?void 0:_.XmN(F,4,void 0,IYg,IYg)),crossOriginStatusCodeToCounts:bnr((g=zL(t))==null?void 0:_.XmN(g,5,void 0,IYg,IYg))},(B=zL(t))==null?0:_.$D(B,iK,6))&&(A.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((c=zL(t))==null?void 0:(u=_.Sg(c,iK,6))==null?void 0:Tl(u,1))||"0",cacheHits:((S=zL(t))==null?void 0:(b=_.Sg(S,iK,6))==null?void 0:Tl(b,2))||"0",cachedBytes:((z=zL(t))==null?void 0:(w=_.Sg(z,iK,6))==
null?void 0:Tl(w,3))||"0"});_.$D(t,Iju,7)&&(A.gameCapture={averageFrameTimeDeltaMs:(P=_.Sg(t,Iju,7))==null?void 0:zl(P,1),averageFrameIdleTimeMs:(x=_.Sg(t,Iju,7))==null?void 0:zl(x,2)});_.E7("miniAppPerformanceMetrics",A);_.Ty(l)})},L55=function(N,t){var O,H;
return _.K(function(A){if(A.nextAddress==1)return A.yield(N.JSC$17227_playNonceResolver.promise,2);O=A.yieldResult;H={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:N.JSC$17227_miniAppId,postPlayNonce:O,miniAppReleaseId:N.localReleaseId},derivedDeviceInterface:N.derivedDeviceInterface,adTriggerType:t,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.E7("miniAppAdEvent",H);_.Ty(A)})};
Bii.prototype.disposeInternal=function(){_.k1.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var YN=function(N,t,O,H){O=O===void 0?{}:O;H=H===void 0?!1:H;var A,Z,U,C;_.K(function(F){if(F.nextAddress==1)return A=N.isForeground,Z=N.beforeReady,F.yield(N.JSC$17227_playNonceResolver.promise,2);U=F.yieldResult;C={externalPostId:N.JSC$17227_miniAppId,localReleaseId:N.localReleaseId,derivedDeviceInterface:N.derivedDeviceInterface,postPlayNonce:U,type:t};O.sequenceGroup=U;C.playState=Z?"PLAY_STATE_NOT_READY":A?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.E7("miniAppPlayEvent",C,
O);H&&_.GW();_.Ty(F)})},zs=function(N,t){var O;
_.K(function(H){if(H.nextAddress==1)return O=(0,_.jg)(),H.yield(N.JSC$17227_playNonceResolver.promise,2);_.zT(t,O);_.Ty(H)})},j1m=function(N){isNaN(N.playPingTimerId)&&(N.playPingTimerId=_.LF(function(){N.state!==1&&N.state!==2?_.J_(new _.fF("[MiniAppPlayLogger] reportPlayPing failed with state "+gr1[N.state])):YN(N,"PLAY_EVENT_TYPE_PLAY_PING")},N.playPingIntervalMs))},bnr=function(N){return Array.from(N.entries()).map(function(t){var O=_.D(t);
t=O.next().value;O=O.next().value;return{key:t,value:O}})};var z5r=function(){},Yxi=function(N,t){N.showMiniAppAdCommand=t.showMiniAppAdCommand;
N.isEmbeddedInWebview=t.isEmbeddedInWebview;N.playLogger=t.playLogger},Tir=function(N,t){var O;
return _.K(function(H){if(H.nextAddress==1){if(!N.showMiniAppAdCommand||!N.isEmbeddedInWebview)return H.return(az1(N,t));N.adResolver=new _.CT;var A=new Nc;O=_.hr(A,3,t);eq(N.showMiniAppAdCommand,LVB(O));return H.yield(N.adResolver.promise,2)}return H.return(H.yieldResult)})};
z5r.prototype.onAdFinished=function(N){N=uxQ(N);var t;(t=this.adResolver)==null||t.resolve(N)};
var az1=function(N,t){var O;return _.K(function(H){if(H.nextAddress==1)H=H.yield((O=N.playLogger)==null?void 0:L55(O,lKt(t)),2);else{var A=H.return;var Z=new ifQ;Z=_.hr(Z,1,2);H=A.call(H,Z)}return H})};var wmi=new _.dk("INNERTUBE_MANAGER_TOKEN");var e51=function(){this.callbacks={}};
e51.prototype.initialize=function(N){var t=this;this.callbacks=N;window.youtubewebview?window.youtubewebview.onmessage=function(O){P11(t,O)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(O){P11(t,O)})};
var P11=function(N,t){if(t.data)try{var O=sfX(t.data);if(_.SJ(_.cU(O,1))!=null){var H=u6Z(_.YD(O,2));switch(O.getMethodName()){case "yt-mini-app-load-audio-state":var A,Z;(Z=(A=N.callbacks).onAudioStateLoaded)==null||Z.call(A,_.pl(H,k3(H,sk,1)));break;case "yt-mute-mini-app":var U,C;(C=(U=N.callbacks).onMuteMiniApp)==null||C.call(U);break;case "yt-unmute-mini-app":var F,g;(g=(F=N.callbacks).onUnmuteMiniApp)==null||g.call(F);break;case "yt-playable-exit":var B,c;(c=(B=N.callbacks).onExit)==null||c.call(B);
break;case "yt-post-play-nonce":var u,S;(S=(u=N.callbacks).onPostPlayNonceReceived)==null||S.call(u,wQ(H,2,sk));break;case "yt-confirm-exit-mini-app":var b,z;(z=(b=N.callbacks).confirmExitMiniApp)==null||z.call(b);break;case "yt-confirm-exit-mini-app-edu":var w,P;(P=(w=N.callbacks).confirmExitMiniAppEdu)==null||P.call(w);break;case "yt-benchmarking-response":var x,l;(l=(x=N.callbacks).onNativeBenchmarkingMessageReceived)==null||l.call(x,wQ(H,2,sk));break;case "yt-mini-app-load-3p-consent-state":var I,
r;(r=(I=N.callbacks).multiplayer3pAckStateLoaded)==null||r.call(I,_.pl(H,k3(H,sk,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var E,J;(J=(E=N.callbacks).exitMiniAppSeenStateLoaded)==null||J.call(E,_.pl(H,k3(H,sk,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var CN,B4;(B4=(CN=N.callbacks).onNavigateToNewMiniApp)==null||B4.call(CN);break;case "yt-game-data-available":var zM,jy;(jy=(zM=N.callbacks).onGameDataAvailable)==null||jy.call(zM,wQ(H,2,sk));break;case "yt-pause-mini-app":var c4,
XO;(XO=(c4=N.callbacks).onPauseMiniApp)==null||XO.call(c4);break;case "yt-resume-mini-app":var kx,fN;(fN=(kx=N.callbacks).onResumeMiniApp)==null||fN.call(kx);break;case "yt-playable-ad-finished":var gf,yr;(yr=(gf=N.callbacks).onAdFinished)==null||yr.call(gf,wQ(H,2,sk))}}else _.J_(Error("Vh"))}catch(sS){_.R0(Error("Wh"))}else _.J_(Error("Xh"))};var mIM=function(N){this.rpcErrorCode=N};var a9=function(N,t,O){this.intervalMs=N;this.apiFunc=t;this.type=O;this.schedulerReady=!0};
a9.prototype.call=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1){if(t.type!==1&&N===t.cachedValue)return H.return();t.pendingApiRequestResolver||(t.pendingApiRequestResolver=new _.CT);O=t.pendingApiRequestResolver.promise;t.cachedValue=N;return H.yield(Xmn(t),2)}return H.return(O)})};
a9.prototype.flush=function(N){N=N===void 0?!1:N;var t=this;return _.K(function(O){return t.cachedValue===void 0?O.return():O.yield(t.apiFunc(t.cachedValue,N),0)})};
var Xmn=function(N){var t,O,H;return _.K(function(A){switch(A.nextAddress){case 1:if(!N.schedulerReady||!N.pendingApiRequestResolver)return A.return();N.schedulerReady=!1;t=N.pendingApiRequestResolver;N.pendingApiRequestResolver=void 0;_.Mo(A,2);if(N.cachedValue===void 0){A.jumpTo(4);break}return A.yield(N.apiFunc(N.cachedValue),5);case 5:O=A.yieldResult,t.resolve(O);case 4:_.Do(A,3);break;case 2:H=_.ax(A),t.reject(H);case 3:setTimeout(function(){return _.K(function(Z){N.schedulerReady=!0;return Z.yield(Xmn(N),
0)})},N.intervalMs),_.Ty(A)}})};var Riy=window.location.origin+"/miniapp_cloudsaves",EQ9=[400,401],xqm=_.uP("cloud_save_game_data_rate_limit_ms",3E3),fz1=function(N){var t=this;this.JSC$17271_miniAppId=N;this.loadAttempts=0;this.cloudSaveIntervalMs=xqm;this.initialDownloadDataSucceeded=!1;this.JSC$17271_playNonceResolver=new _.CT;this.scottyUploadRateLimiter=new a9(this.cloudSaveIntervalMs,function(O,H){return k5m(t,O,H)},2);
this.downloadDataPromise=qxf(this);this.downloadDataPromise.then(function(){t.initialDownloadDataSucceeded=!0}).catch(function(){})},nr1=function(N,t){t.then(function(O){return N.JSC$17271_playNonceResolver.resolve(O)})},W5z=function(N){return _.K(function(t){return N.cachedData===void 0?t.return(N.downloadDataPromise):t.return(N.cachedData)})},rm5=function(N,t){return _.K(function(O){N.cachedData=t;
if(!N.initialDownloadDataSucceeded)throw Error("Yh");return O.yield(N.scottyUploadRateLimiter.call(t),0)})},Iz5=function(){return new Promise(function(N){setTimeout(N,1E3,"")})},lz5=function(N,t){var O,H;
return _.K(function(A){if(A.nextAddress==1)return O=N.JSC$17271_miniAppId,A.yield(Promise.race([N.JSC$17271_playNonceResolver.promise,Iz5()]),2);H={"X-YouTube-MiniAppId":O,"X-YouTube-PostPlayNonce":A.yieldResult};"DELEGATED_SESSION_ID"in _.E2&&KIp(t,H);return A.return(H)})},k5m=function(N,t,O){O=O===void 0?!1:O;
return _.K(function(H){return Qix()?_.h("enable_cloud_save_error_popup_after_retry")?H.return(new Promise(function(A,Z){var U,C,F,g,B;return _.K(function(c){switch(c.nextAddress){case 1:U=0,C=!0,g=F=null;case 2:if(!(C&&U++<2)){c.jumpTo(4);break}_.Mo(c,5);return c.yield(Q1x(N,t,O),7);case 7:F=c.yieldResult;C=F.ok?!1:!EQ9.includes(F.status);_.Do(c,2);break;case 5:g=B=_.ax(c);C=GxN(g);c.jumpTo(2);break;case 4:F?F.ok?(Ts(N,xqm),A()):(Ts(N,N.cloudSaveIntervalMs*2),Z(Error("Zh`"+String(F.status),{cause:{rpcErrorCode:F.status}}))):
(Ts(N,N.cloudSaveIntervalMs*2),Z(g||Error("$h"))),_.Ty(c)}})})):H.return(new Promise(function(A,Z){var U,C;
return _.K(function(F){if(F.nextAddress==1){if(N.JSC$17271_miniAppId==="")return Z(Error("ai")),F.return();_.Mo(F,2);return F.yield(Q1x(N,t,O),4)}if(F.nextAddress!=2)return U=F.yieldResult,U.ok?(Ts(N,xqm),A()):(Ts(N,N.cloudSaveIntervalMs*2),Z(Error("Zh`"+String(U.status),{cause:{rpcErrorCode:U.status}}))),_.Do(F,0);C=_.ax(F);Ts(N,N.cloudSaveIntervalMs*2);Z(C);_.Ty(F)})})):H.return()})},Q1x=function(N,t,O){O=O===void 0?!1:O;
var H,A,Z;return _.K(function(U){if(U.nextAddress==1)return H=_.wi((new TextEncoder).encode(t)),A=vQl(),U.yield(lz5(N,A),2);Z=U.yieldResult;return U.return(fetch(A,{method:"POST",body:new Blob([H]),headers:Z,keepalive:O}))})},qxf=function(N){var t,O;
return _.K(function(H){if(H.nextAddress==1){if(!Qix())return H.return("");if(N.JSC$17271_miniAppId==="")throw Error("ai");if(N.loadAttempts>2)return H.return(N.downloadDataPromise);_.Mo(H,2);return H.yield(mqr(N),4)}if(H.nextAddress!=2)return t=H.yieldResult,H.return(t);O=_.ax(H);if(GxN(O)&&++N.loadAttempts<2)return H.return(qxf(N));throw O;})},mqr=function(N){var t,O,H,A,Z;
return _.K(function(U){switch(U.nextAddress){case 1:return _.Mo(U,2),t=vQl(),U.yield(lz5(N,t),4);case 4:return O=U.yieldResult,U.yield(fetch(t,{method:"GET",headers:O}),5);case 5:return H=U.yieldResult,H.ok?U.yield(H.text(),6):U.return(Promise.reject(Error("bi`"+String(H.status),{cause:new mIM(H.status)})));case 6:return A=U.yieldResult,U.return((new TextDecoder).decode(_.Jg(A)));case 2:return Z=_.ax(U),U.return(Promise.reject(Z))}})},Ts=function(N,t){N.cloudSaveIntervalMs=t;
N.scottyUploadRateLimiter.intervalMs=N.cloudSaveIntervalMs};
fz1.prototype.flush=function(){var N=this;return _.K(function(t){return N.initialDownloadDataSucceeded?t.yield(N.scottyUploadRateLimiter.flush(!0),0):t.return()})};var Erm=pe(bK(1),hx(1)),G5f=pe(bK(1),hx(3)),w1=function(N){this.callbacks=N};
_.V=w1.prototype;_.V.onAudioToggled=function(N,t){(t===void 0||t)&&_.ML("yt-mini-app-is-audio-enabled",N,2592E3)};
_.V.onPause=function(){this.onAudioToggled(!1,!1)};
_.V.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.V.returnNativeBenchmarkingMessage=function(){};
_.V.sendGameData=function(){};
_.V.sendStartGameFrameCapture=function(){};
var J2S=function(N,t,O){this.callbacks=N;var H=this;this.sdkVersion=new _.CT;this.channel=new cRS(_.CA({destination:window,iframe:t,origin:(new URL(O.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var A=e5;var Z=bK(5);var U=new aja;U=_.PU(U,1,1E4);Z=_.zN(Z,4,qN0,U);A(H,Z);H.onAudioToggled(H.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){H.sdkVersion.resolve("")},1E4)};
_.p(J2S,w1);_.V=J2S.prototype;_.V.onAudioToggled=function(N,t){w1.prototype.onAudioToggled.call(this,N,t===void 0?!0:t);t=e5;var O=bK(2),H=new zfu;N=_.SR(H,1,N);N=_.zN(O,3,qN0,N);t(this,N)};
_.V.onPause=function(){w1.prototype.onPause.call(this);e5(this,bK(3))};
_.V.onResume=function(){w1.prototype.onResume.call(this);e5(this,bK(4))};
_.V.returnNativeBenchmarkingMessage=function(N){var t=e5,O=bK(6);var H=hx(_.$D(N,OP,1)?1:2);N=_.$D(N,OP,1)?N:null;H=_.zN(H,5,MS,N);t(this,pe(O,H))};
_.V.sendGameData=function(N){var t=e5,O=bK(7);N=_.zN(O,5,qN0,N);t(this,N)};
_.V.sendStartGameFrameCapture=function(){e5(this,bK(9))};
var Pw=function(N,t,O){var H,A,Z;return _.K(function(U){if(U.nextAddress==1)return H=N.callbacks,A=H.onSdkCalled,Z=t,U.yield(N.sdkVersion.promise,2);A.call(H,Z,U.yieldResult,O);_.Ty(U)})};
J2S.prototype.onMessage=function(){var N=this;return i8E(Ys,function(t){var O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E,J,CN,B4,zM,jy,c4,XO,kx,fN,gf,yr,sS,$X,pR,wf,b1,$r,US,H0,SE,v0,hu,sp,LU,Qr;return _.K(function(B0){switch(B0.nextAddress){case 1:if(!EE0(t.data))return _.J_(Error("ci")),B0.return();O=_.aG(t.data,1);_.h("enable_iframe_message_get_type_via_fields")&&(H=t.data,O=A=_.aG(H,1));switch(O){case 8:if(t.data.hasMetadata()){var c0=N.sdkVersion,Am=c0.resolve;var Rl=t.data.getMetadata();Rl=_.YD(Rl,
1);Am.call(c0,Rl);clearTimeout(N.sdkVersionTimeoutId)}break;case 6:return B0.jumpTo(2);case 16:if(!_.j0(t.data,WgX,14,a$))return B0.return();Z=_.e0(t.data,WgX,14,a$);(C=(U=N.callbacks).onGameFrameReceived)==null||C.call(U,Z);return B0.return();case 17:if(!_.j0(t.data,nEp,15,a$))return B0.return();(g=(F=N.callbacks).onGameAudioReceived)==null||g.call(F,_.e0(t.data,nEp,15,a$));return B0.return();case 1:if(c0=_.e0(t.data,efu,2,a$))switch(_.aG(c0,1)){case 1:N.callbacks.onFirstFrameReady();if(_.h("enable_network_request_logging_on_game_events")&&
_.$D(c0,uK,4)){Pw(N,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Sg(c0,uK,4));break}Pw(N,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Rl=(Am=N.callbacks).onGameReady)==null||Rl.call(Am);if(_.h("enable_network_request_logging_on_game_events")&&_.$D(c0,uK,4)){Pw(N,"MINI_APP_SDK_API_GAME_READY",_.Sg(c0,uK,4));break}Pw(N,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.j0(c0,Sf,3,Pva))N.callbacks.onResourceLoaded(_.e0(c0,Sf,3,Pva))}return B0.return();case 3:return B0.jumpTo(3);case 4:return B0.jumpTo(4);
case 2:return B0.jumpTo(5);case 9:return B0.jumpTo(6);case 10:return N.callbacks.onClick(),B0.return();case 5:return B0.jumpTo(7);case 11:if(!_.j0(t.data,$s,9,a$))return B0.return();B=_.e0(t.data,$s,9,a$);(u=(c=N.callbacks).onBenchmarkingMessageReceived)==null||u.call(c,B);c0=t.reply;Am=bK(1);Rl=hx(1);var Ox=new $s;var cl=new Uint8Array(X0R(B,k3(B,hfQ,6))|0);Ox=wa(Ox,5,hfQ,_.eE(cl,!1));Rl=_.zN(Rl,5,MS,Ox);c0.call(t,pe(Am,Rl));return B0.return();case 12:return B0.jumpTo(8);case 13:return B0.jumpTo(9);
case 15:if(!_.h("enable_open_yt_content"))return t.reply(G5f),B0.return();if(!_.j0(t.data,fjB,12,a$))return t.reply(pe(bK(1),hx(2))),B0.return();c0=_.e0(t.data,fjB,12,a$);S=_.YD(c0,1);N.callbacks.onOpenYTContent(S);t.reply(Erm);return B0.return();case 14:return B0.jumpTo(10);default:return B0.return()}B0.jumpTo(0);break;case 2:if(!_.j0(t.data,Le,5,a$))return B0.return();Am=t.data;c0=k3(Am,a$,5);Am=Am.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=fzl(Am,Am[_.ZY]|0,Le,c0)||Le[nXl]||(Le[nXl]=
WZ9(Le));c0=_.y5(b,jf,1,_.cA());z=_.D(c0);w=z.next();case 12:if(w.done){B0.jumpTo(14);break}P=w.value;x=new _.fF;x.level=_.aG(P,2)===1?"WARNING":"ERROR";l=sit(P.getSource());return B0.yield(N.sdkVersion.promise,15);case 15:I={source:l,sdkVersion:B0.yieldResult};_.Zz(_.cU(P,6))!=null?(x.message=P.getMessage(),x.stack=_.YD(P,5),I.sdkErrorType=Nol(_.aG(P,6)),_.Zz(_.cU(P,7))!=null&&(I.sdkApi=tal(_.aG(P,7)))):x.stack=void 0;E=r=void 0;(E=(r=N.callbacks).onError)==null||E.call(r,{loggingError:x,metadata:I});
w=z.next();B0.jumpTo(12);break;case 14:return B0.return();case 3:return _.Mo(B0,16),c0=B0.yield,Am=N.callbacks,Rl=Am.onSave,Ox=_.e0(t.data,YN0,4,a$),Ox=_.YD(Ox,1),c0.call(B0,Rl.call(Am,Ox),18);case 18:t.reply(Erm);_.Do(B0,17);break;case 16:return J=_.ax(B0),CN=Py,B4=J,zM=N.callbacks,jy="MINI_APP_SDK_API_SAVE_DATA",B0.yield(N.sdkVersion.promise,19);case 19:CN(B4,zM,jy,B0.yieldResult),t.reply(G5f);case 17:return B0.yield(Pw(N,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return B0.return();case 4:return _.Mo(B0,
21),B0.yield(N.callbacks.onLoad(),23);case 23:c4=B0.yieldResult;c0=t.reply;Am=bK(1);Rl=hx(1);Ox=new YN0;Ox=_.Xa(Ox,1,c4);Rl=_.zN(Rl,3,MS,Ox);c0.call(t,pe(Am,Rl));_.Do(B0,22);break;case 21:return XO=_.ax(B0),kx=Py,fN=XO,gf=N.callbacks,yr="MINI_APP_SDK_API_LOAD_DATA",B0.yield(N.sdkVersion.promise,24);case 24:kx(fN,gf,yr,B0.yieldResult),t.reply(G5f);case 22:return B0.yield(Pw(N,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return B0.return();case 5:_.Mo(B0,26);N.callbacks.onSendHighScore(E$(_.e0(t.data,
Qj0,3,a$).getValue()));t.reply(pe(bK(1),hx(1)));_.Do(B0,27);break;case 26:return sS=_.ax(B0),$X=Py,pR=sS,wf=N.callbacks,b1="MINI_APP_SDK_API_SEND_SCORE",B0.yield(N.sdkVersion.promise,28);case 28:$X(pR,wf,b1,B0.yieldResult),t.reply(G5f);case 27:return B0.yield(Pw(N,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return B0.return();case 6:if(!_.j0(t.data,mKa,8,a$)){B0.jumpTo(30);break}c0=B0.yield;Am=_.e0(t.data,mKa,8,a$);Am=_.aG(Am,1);return c0.call(B0,Pw(N,tal(Am)),30);case 30:return B0.return();case 7:return c0=
t.reply,Am=bK(1),Rl=hx(1),Ox=N.callbacks.getLanguage(),Rl=wa(Rl,4,MS,i1(Ox)),c0.call(t,pe(Am,Rl)),B0.yield(Pw(N,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return B0.return();case 8:if(!_.j0(t.data,ljB,10,a$))return B0.return();$r=_.e0(t.data,ljB,10,a$);US=N.callbacks;H0=US.onSdkPerformanceUpdate;return B0.yield(N.sdkVersion.promise,33);case 33:return H0.call(US,$r,B0.yieldResult),B0.return();case 9:c0=t.data;Am=k3(c0,a$,11);if(_.SJ(_.cU(c0,Am))==null)return t.reply(pe(bK(1),hx(2))),B0.return();
SE=wQ(t.data,11,a$);N.callbacks.onShareInviteCode(SE);t.reply(Erm);return B0.yield(Pw(N,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return B0.return();case 10:if(_.j0(t.data,Lgp,13,a$)){B0.jumpTo(35);break}return B0.yield(N.callbacks.onShowMiniAppAd(2),36);case 36:return v0=B0.yieldResult,t.reply(pe(bK(1),xKY(v0))),B0.yield(Pw(N,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return B0.return();case 35:c0=_.e0(t.data,Lgp,13,a$);a:switch(_.aG(c0,1)){case 1:c0={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:c0={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:c0={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}hu=c0;sp=hu.adType;LU=hu.sdkApi;c0=B0.yield;Am=N.callbacks;Rl=Am.onShowMiniAppAd;Ox=_.e0(t.data,Lgp,13,a$);Ox=_.YD(Ox,2);return c0.call(B0,Rl.call(Am,sp,Ox||void 0),38);case 38:return Qr=B0.yieldResult,t.reply(pe(bK(1),xKY(Qr))),B0.yield(Pw(N,LU),39);case 39:return B0.return()}})})};
var e5=function(N,t){_.K(function(O){N.channel.send(t);_.Ty(O)})},X_=function(N,t,O){this.callbacks=N;
var H=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;N=sdg(t,(new URL(O.toString())).origin);this.gameSnacks=new erY(N);this.gameSnacks.page.onReady(function(){H.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){H.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var A,Z;(Z=(A=H.callbacks).onGameReady)==null||Z.call(A)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(A,Z){try{H.callbacks.onSendHighScore(Z)}catch(U){Py(U,H.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(A,Z){var U;return _.K(function(C){if(C.nextAddress==1)return _.Mo(C,2),C.yield(H.callbacks.onSave(H.decoder.decode(Z)),4);if(C.nextAddress!=2)return _.Do(C,0);U=_.ax(C);Py(U,H.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return C.return()})});
this.gameSnacks.storage.onLoad(function(){var A,Z;return _.K(function(U){if(U.nextAddress==1)return _.Mo(U,2),U.yield(H.callbacks.onLoad(),4);if(U.nextAddress!=2)return A=U.yieldResult,U.return(H.encoder.encode(A));Z=_.ax(U);Py(Z,H.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return U.return(H.encoder.encode(""))})});
this.gameSnacks.init()};
_.p(X_,w1);X_.prototype.onAudioToggled=function(N,t){w1.prototype.onAudioToggled.call(this,N,t===void 0?!0:t);var O;(O=this.gameSnacks)==null||O.audio.update(N)};
X_.prototype.onPause=function(){w1.prototype.onPause.call(this);var N;(N=this.gameSnacks)==null||N.game.pause()};
X_.prototype.onResume=function(){w1.prototype.onResume.call(this);var N;(N=this.gameSnacks)==null||N.game.resume()};var R5O=OrQ,vr5=_.q(function(N){var t=N.data;var O=N.loadingProgress;var H=N.forPaused;N=_.D(_.b$("",void 0,"LYYTdd"));var A=N.next().value,Z=N.next().value;N=_.D(_.b$(!1,void 0,"K0waae"));var U=N.next().value,C=N.next().value,F=[],g=function(){return"transform: scaleX("+(_.Qo(O)||0)+")"},B=null,c=function(){return t()&&B!==null&&B!==void 0?B:B=t().showAnniversaryAnimation?6:R5O()};
_.rp(function(){var z;if(t().timeOutMessages&&((z=t().timeOutMessages)==null?0:z.length)){B=null;z=_.D(F);for(var w=z.next();!w.done;w=z.next())clearTimeout(w.value);F.length=0;Hrv(t().timeOutMessages,F,Z,C)}},"BNu9j");
var u=function(){return!!t().persistentErrorMessageTitle},S=function(){return O!==void 0},b=function(){return t().title};
return _.d("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.d("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.d("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.d("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var z,w=(z=t().backgroundImage)==null?void 0:z.sources,P;return(w==null?0:w.length)?"background-image: url("+((P=w[0])==null?void 0:P.url)+")":""}}),_.d("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.d(_.y,{cond:function(){return!u()&&!(H==null?0:H())},
then:function(){var z={};return _.d("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.d("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.d(_.rd,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+c()},
data:function(){var w="loading_animation_"+c();return{animationConfig:{name:w,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+w+".json",loop:!0,autoplay:!0}}}})),_.d("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.d(_.y,{cond:b,
then:function(){return _.d("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},b)}}),_.d("p",{class:_.V7("miniAppSplashScreenViewModelTimeoutMessage",(z.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return U()},z)),
"aria-live":"polite"},A),_.d(_.y,{cond:S,then:function(){return _.d("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.d("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:g}))}})))}}),_.d(_.y,{cond:u,
then:function(){return _.d("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.d("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return t().persistentErrorMessageTitle}),_.d(_.y,{cond:function(){return!!t().persistentErrorMessageDescription},
then:function(){return _.d("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return t().persistentErrorMessageDescription})}}))}}),_.d(_.y,{cond:H,
then:function(){return _.d("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.d("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.d("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},b))}})))},"Of");var Jm1=new _.dk("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var ori=CL;CL=function(N){function t(O){if(O){var H,A;(H=O.__spec)==null||(A=H.didUnmount)==null||A.call(H);for(H=0;H<O.childNodes.length;H++)t(O.childNodes[H])}}
ori==null||ori(N);bb(function(){for(var O=0;O<N.length;O++)t(N[O])})};var s1i=_.q(function(N){var t=N.data;var O=N.score;var H=N.formattedScore;var A=N.onScoreChanged;var Z=N.isEmbeddedInWebview;var U=_.yM("yt-mini-app-score-button-view-model"),C=function(){var S;return _.M(t==null?void 0:(S=t())==null?void 0:S.buttonViewModel,_.$9)},F=function(){var S;
return(O==null?void 0:O())||Number(t==null?void 0:(S=t())==null?void 0:S.lastScore)||0},g=function(){var S;
return(H==null?void 0:H())||((S=C())==null?void 0:S.title)||""},B,c=1;
if(N=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))N=Number(N),c=isNaN(N)?1:N/100;_.rp(function(){A==null||A(F());var S;var b=_.wF((S=C())==null?void 0:S.onTap);if(b){S=_.M(b,UR0);var z,w,P;S=_.M(S==null?void 0:(z=S.panelLoadingStrategy)==null?void 0:(w=z.inlineContent)==null?void 0:(P=w.dialogViewModel)==null?void 0:P.customContent,z$Z)}else S=void 0;if(z=S)z.score=g()},"Aekez");
N=_.Ui(function(){var S,b,z=t==null?void 0:(S=t())==null?void 0:(b=S.loggingDirectives)==null?void 0:b.trackingParams;z&&_.Q2(_.cY().resolve(_.ow),z);return!1});
_.Q8(function(){if(U.value){var S=U.value.querySelector("button"),b=C();S&&b&&Aj9(S,b);_.$6("yt-share-playable-with-high-score",function(){var z=F().toString(),w=t==null?void 0:t().onShareHighScoreCommand,P=t==null?void 0:t().highScoreShareClientParamIdentifier,x=Z==null?void 0:Z();w&&(x?(P=new RHu,z=_.Xa(P,2,z),eq(w,z.JSC$12680_serializeBinary())):P&&(_.cY().resolve(Jm1).clientParams.set(P,{miniAppClientParams:{highScore:z}}),fKz(w,!1)))})}});
var u=function(){var S=C();S&&(O==null?0:O())&&S.accessibilityText&&(S.accessibilityText=S.accessibilityText.replace(B,g()));B=g();return{numberValue:F(),numberText:g(),heightPx:36,fontSizeMultiplier:c,shouldAnimate:!(O==null||!O())&&!0}};
return _.d("yt-mini-app-score-button-view-model",{class:function(){var S={};return _.Lx("miniAppScoreButtonViewModelHost",(S.miniAppScoreButtonViewModelIsVisible=F()!==0,S))},
el:U,"on:click":N},BrO(!1,function(){return _.d("span",{style:"display:none;"},F)}),_.d(_.iF,{data:function(){var S;
return t==null?void 0:(S=t())==null?void 0:S.buttonViewModel}},{buttonViewModel:function(S){return _.d(_.Pu,{data:S.data,
animatedTextProps:u})}}))},"Qf");var AR5=_.q(function(N){var t,O=(t=_.b8("yt-mini-app-is-theater-mode-enabled"))!=null?t:!1,H=_.h("enable_playable_container_save_button"),A=_.h("enable_play_next_destination_page_in_toolbar");t={};return _.d("ytm-mini-app-top-bar-view-model",null,_.d("div",{class:_.V7("yt-mini-app-top-bar-view-model",(t["yt-mini-app-top-bar-view-model--mobile"]=!1,t["yt-mini-app-top-bar-view-model--desktop"]=!0,t))},_.d("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.d(_.y,{cond:function(){var Z;return!!N.data().backButtonEdu&&
!((Z=N.isExitMiniAppSeen)==null?0:Z.call(N))},
then:function(){return _.d(_.iF,{data:function(){return N.data().backButtonEdu}},{buttonViewModel:_.Pu})},
else:function(){return _.d(_.iF,{data:function(){return N.data().backButton}},{buttonViewModel:_.Pu})}}),_.d(_.y,{cond:function(){return N.data().viewAllButton&&!0},
then:function(){return _.d(_.iF,{data:function(){return N.data().viewAllButton}},{buttonViewModel:_.Pu})}}),_.d(_.y,{cond:function(){return N.data().title&&!0},
then:function(){return _.d("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return N.data().title})}})),_.d("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.d(_.y,{cond:function(){var Z;
return(Z=N.isDesktopPlayPage)==null?void 0:Z.call(N)},
then:function(){return _.d(_.BZ,null,_.d(ND5,{highScoreButton:function(){return N.data().highScoreButton},
score:N.score,formattedScore:N.formattedScore,onScoreChanged:N.onScoreChanged,isEmbeddedInWebview:N.isEmbeddedInWebview}),_.d(ts5,{enableSaveButton:function(){return _.Qo(H)},
saveButton:function(){return N.data().saveButton},
isSaved:N.isSaved,onSaveToggled:function(){return N.onSaveToggled}}),_.d(O85,{menuButton:function(){return N.data().menuButton}}))},
else:function(){return _.d(_.y,{cond:function(){return!1},
then:function(){return _.d(_.iF,{data:function(){return N.data().playPageButton}},{buttonViewModel:function(Z){return _.d(_.Pu,{data:Z.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.d(ND5,{highScoreButton:function(){return N.data().highScoreButton},
score:N.score,formattedScore:N.formattedScore,onScoreChanged:N.onScoreChanged,isEmbeddedInWebview:N.isEmbeddedInWebview})}})}})),_.d("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.d(_.iF,{data:function(){return N.data().muteButton}},{toggleButtonViewModel:function(Z){var U=Z.data;
return _.d(_.N3,{data:function(){var C,F;return Object.assign({},U(),{isToggled:(F=(C=N.isAudioEnabled)==null?void 0:C.call(N))!=null?F:!0})},
onToggle:N.onAudioToggled,useOutlinedIcon:!0})}}),_.d(_.iF,{data:function(){return N.data().theatreModeButton}},{toggleButtonViewModel:function(Z){var U=Z.data;
return _.d("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.d(_.N3,{data:function(){return Object.assign({},U(),{isToggled:O})},
useOutlinedIcon:!0}))}}),_.d(H8i,{fullscreenButton:function(){return N.data().fullscreenButton}}),_.d(_.y,{cond:function(){return _.Qo(A)&&N.data().viewAllButton&&!1},
then:function(){return _.d(_.iF,{data:function(){return N.data().viewAllButton}},{buttonViewModel:_.Pu})}}),_.d(_.y,{cond:function(){var Z;
return!((Z=N.isDesktopPlayPage)==null?0:Z.call(N))},
then:function(){return _.d(_.BZ,null,_.d(ts5,{enableSaveButton:function(){return _.Qo(H)},
saveButton:function(){return N.data().saveButton},
isSaved:N.isSaved,onSaveToggled:function(){return N.onSaveToggled}}),_.d(O85,{menuButton:function(){return N.data().menuButton}}))}}))))},"Rf");
AR5.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var O85=_.q(function(N){return _.d(_.iF,{data:N.menuButton},{buttonViewModel:_.Pu})},"Sf"),ts5=_.q(function(N){var t=N.enableSaveButton;
var O=N.saveButton;var H=N.isSaved;var A=N.onSaveToggled;return _.d(_.y,{cond:function(){return t()&&!(O==null||!O())},
then:function(){return _.d(_.iF,{data:function(){var Z=_.M(O==null?void 0:O(),_.iA),U;return{toggleButtonViewModel:Object.assign({},Z,{isToggled:(U=H==null?void 0:H())!=null?U:!(Z==null||!Z.isToggled)})}}},{toggleButtonViewModel:function(Z){return _.d(_.N3,{data:Z.data,
onToggle:A})}})}})},"Tf"),ND5=_.q(function(N){var t=N.highScoreButton;
var O=N.score;var H=N.formattedScore;var A=N.onScoreChanged;var Z=N.isEmbeddedInWebview;return _.d(_.iF,{data:t},{miniAppScoreButtonViewModel:function(U){return _.d(s1i,{data:U.data,score:O,formattedScore:H,onScoreChanged:A,isEmbeddedInWebview:Z})}})},"Uf"),H8i=_.q(function(N){N=N.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.d(_.BZ,null):_.d(_.iF,{data:N},{buttonViewModel:_.Pu})},"Vf");_.Z8z=_.q(function(N){var t=N.data;var O=N.extractOverlay;N={};return _.d("player-disclosure-view-model",{class:_.V7("ytwPlayerDisclosureViewModelHost",(N.ytwPlayerDisclosureViewModelExtractOverlay=function(){return O==null?void 0:O()},N))},_.d(_.YO,{command:function(){return t().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.d(_.y,{cond:function(){return t().iconName},
then:function(H){return _.d(_.dq,{icon:H})}}),_.d(_.y,{cond:function(){return t().iconName?void 0:t().image},
then:function(H){return _.d(_.Qt,{data:H,alt:function(){return t().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.d(_.y,{cond:function(){return t().title||t().secondaryText},
then:function(){return _.d("div",null,_.d("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return t().title}),_.d("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return t().text}),_.d(_.y,{cond:function(){return t().secondaryText},
then:function(H){return _.d(_.BZ,null,_.d("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.d("div",{class:"ytwPlayerDisclosureViewModelText"},H))}}))},
else:function(){return _.d("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return t().text})}}),_.d(_.y,{cond:function(){return t().showEndChevron},
then:function(){return _.d(_.dq,{icon:"CHEVRON_RIGHT"})}})))},"Wf");_.Vs1=new _.dk("DESKTOP_CURRENT_PAGE");var dmf=_.q(function(N){var t=N.data;var O=_.h("force_active_time_logging_webview"),H=!1,A=new e51,Z=void 0,U=void 0,C=_.cY().resolve(wmi),F=new z5r,g=void 0,B=void 0,c=[],u=void 0,S=void 0,b=!1,z=!1,w=!1,P=!1,x=new _.CT,l=_.cY().resolve(Jm1),I=_.cY().resolve(_.L5),r=_.cY().resolve(_.BY(Gd)),E,J=(E=_.cY().resolve(_.BY(_.Vs1)))==null?void 0:E.getCurrentPage(),CN=!1,B4=0,zM=function(Au){Au.preventDefault();return Au.returnValue=""},jy,c4=_.D(_.b$(!((jy=_.b8("yt-mini-app-is-audio-enabled"))!=null&&!jy),
void 0,"wBOrKf")),XO=c4.next().value,kx=c4.next().value,fN,gf=_.D(_.b$(!((fN=_.b8("exit-mini-app-seen-state"))==null||!fN),void 0,"a2xYg")),yr=gf.next().value,sS=gf.next().value,$X=_.D(_.b$(!1,void 0,"i8BH4")),pR=$X.next().value,wf=$X.next().value,b1=_.D(_.b$(void 0,void 0,"UGqFqe")),$r=b1.next().value,US=b1.next().value,H0=_.D(_.b$(void 0,void 0,"jrV5Ob")),SE=H0.next().value,v0=H0.next().value,hu=_.D(_.b$(!0,void 0,"u5JS3d")),sp=hu.next().value,LU=hu.next().value,Qr=_.D(_.b$(!1,void 0,"MjPdB")),
B0=Qr.next().value,c0=Qr.next().value,Am=_.D(_.b$(!1,void 0,"nT6Yxf")),Rl=Am.next().value,Ox=Am.next().value,cl=_.D(_.b$(void 0,void 0,"nkG6")),Hl=cl.next().value,jJ=cl.next().value,QO=_.D(_.b$(0,void 0,"KH4u0b")),BA=QO.next().value,Su=QO.next().value,mZ=_.Fy("mini-app-container-view-model"),Ln=_.D(_.b$(!1,void 0,"NsE4qb")),VO=Ln.next().value,vW=Ln.next().value,PW=function(){return t().isEmbeddedInWebview},Zl=function(){return t().hasPlayNextShelf};
_.lf(function(){var Au,u1=(Au=_.M(t().contentDisclosure,lTr))==null?void 0:Au.animationParams;if((u1==null?0:u1.shouldHide)&&(u1==null?0:u1.hideDelaySecs)){var qq=setTimeout(function(){vW(!0)},u1.hideDelaySecs*1E3);
_.Ia(function(){clearTimeout(qq)})}});
_.$6("yt-page-type-changed",function(Au){if(_.h("enable_is_mini_app_page_active_bugfix"))Au.detail.newPageSubtype==="mini_app"&&Au.detail.newPageType==="ytd-browse"||!sp()||Sb();else if(Au=_.EM()==="mini_app",Au!==sp())if(LU(Au),Au){var u1;Au=(u1=t().playableId)==null?void 0:u1.toString();Au!==void 0&&window.location.href.includes(Au)&&!z&&(P=!0,JD(),vY.value&&pV(vY.value))}else Au||Sb()});
_.$6("yt-action",function(Au){Au.detail.actionName==="yt-engagement-panel-visible-changed"&&Au.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Au.detail.args[2]==="PAmini_app_panel"&&Sb();_.h("enable_is_mini_app_page_active_bugfix")?Au.detail.actionName==="yt-history-load"&&!sp()&&(J==null?0:J.active)?(LU(!0),JD(),vY.value&&pV(vY.value)):Au.detail.actionName==="yt-history-load"&&sp()&&!t().isEmbeddedInWebview&&My():sp()&&Au.detail.actionName==="yt-history-load"&&(P?P=!1:t().isEmbeddedInWebview||
My())});
_.Ia(function(){nU()});
_.rp(function(){JD()},"bzUf2c");
var JD=function(){var Au=t().playableId,u1=t().localReleaseId,qq=t().derivedDeviceInterface;if(z)_.J_(new _.fF("[MiniAppContainerViewModel] onEnter was called more than once"));else{z=!0;Z=new Bii(Au,u1,qq,document.visibilityState==="visible");inx(Z);U=new fz1(Au);Dm1(C,Au);Yxi(F,{showMiniAppAdCommand:t().showMiniAppAdCommand,isEmbeddedInWebview:t().isEmbeddedInWebview,playLogger:Z});R7y()&&(S=document.body.style.backgroundColor,_.ms(document.body,"background-color","black"));fp();wy();x=new _.CT;
if(t().isEmbeddedInWebview){if(Au=(new URLSearchParams(window.location.search)).get("postPlayNonce"))$qJ(Z,Au),CN=!0;A.initialize({onAudioStateLoaded:function(U1){ES(U1)},
onMuteMiniApp:function(){ES(!1)},
onUnmuteMiniApp:function(){ES(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(U1){CN||($qJ(Z,U1),CN=!0)},
confirmExitMiniApp:function(){var U1,rG,WA;return _.K(function(NH){if(NH.nextAddress==1)return t().confirmExitMiniAppCommand?NH.yield(Promise.race([x.promise,Promise.resolve(!1)]),2):NH.return();(U1=NH.yieldResult)?!t().confirmExitMiniAppCommandEdu||(WA=(rG=yr)==null?void 0:rG())!=null&&WA?zZ(t().confirmExitMiniAppCommand):(zZ(t().confirmExitMiniAppCommandEdu),_.ML("exit-mini-app-seen-state","true",2592E6)):zZ(t().closeMiniAppCommand);_.Ty(NH)})},
onNativeBenchmarkingMessageReceived:function(U1){U1=bf_(_.qBg(U1));if(_.j0(U1,_.Tn,3,SN_)){var rG=_.e0(U1,_.Tn,3,SN_),WA=nQS();var NH=E$(WA.getSeconds())-E$(rG.getSeconds());rG=_.$1(WA,2)-_.$1(rG,2);NH<0&&rG>0?(NH+=1,rG-=1E9):NH>0&&rG<0&&(--NH,rG+=1E9);NH=(new OP).setSeconds(NH);NH=_.Nm(NH,2,_.Dz(rG),0);_.L8(U1,1,NH)}var Q_;(Q_=B)==null||Q_.returnNativeBenchmarkingMessage(U1)},
multiplayer3pAckStateLoaded:function(U1){My(U1)},
exitMiniAppSeenStateLoaded:function(U1){t().confirmExitMiniAppCommandEdu&&sS(U1)},
onNavigateToNewMiniApp:function(){zZ(t().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(U1){U1=new URLSearchParams(U1);var rG=void 0;U1.has("invite_code")&&(rG=new wLE,U1=U1.get("invite_code"),rG=_.Xa(rG,1,U1));if(U1=rG){var WA;(WA=B)==null||WA.sendGameData(U1)}},
onPauseMiniApp:function(){H=!0;al()},
onResumeMiniApp:function(){H=!0;nN()},
onAdFinished:function(U1){F.onAdFinished(U1)}});
t().showMultiplayer3pConsentDialogCommand||x.resolve(!0);zZ(t().onContainerReadyCommand)}else $qJ(Z),x.resolve(!0);nr1(U,cm5(Z));cm5(Z).then(function(U1){U1={miniAppPlayData:{postPlayNonce:U1}};var rG,WA=(rG=t().loggingDirectives)==null?void 0:rG.trackingParams;WA&&_.gF().stateChanged(WA,U1)});
Au=t().showSignInDialogCommand;!Qix()&&Au&&(_.ML("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),zZ(Au));t().confirmExitMiniAppCommand&&r&&(Au=kxO(t().confirmExitMiniAppCommand))&&(r.customConfirmationCommand=Au)}},nU=function(){S&&_.ms(document.body,"background-color",S);
b=!1;u&&u.release();U.flush().catch(function(Au){_.J_(Au)});
C.flush().catch(function(Au){_.J_(Au)});
Sxq(Z);p_();B=void 0;Um1(l)},Sb=function(){LU(!1);
nU();wf(!1);jJ(void 0);US(void 0);v0(void 0);B4=0;Su(0);z=!1},al=function(){var Au;
(Au=B)==null||Au.onPause();u&&u.release();U.flush().catch(function(u1){_.J_(u1)});
C.flush().catch(function(u1){_.J_(u1)});
uf5(Z);c0(!0)},nN=function(){var Au;
(Au=B)==null||Au.onResume();wy();Au=Z;Au.isForeground=!0;YN(Au,"PLAY_EVENT_TYPE_PLAY_RESUME");c0(!1)},ES=function(Au){var u1;
(u1=B)==null||u1.onAudioToggled(Au);kx(Au)},My=function(Au){t().showMultiplayer3pConsentDialogCommand&&(t().isEmbeddedInWebview&&Au!==void 0&&x.resolve(Au),!Au&&_.EM()==="mini_app"&&zZ(t().showMultiplayer3pConsentDialogCommand))},Mq=function(){var Au,u1,qq,U1;
return _.K(function(rG){if(rG.nextAddress==1){!t().isLivestream||t().disableVideoCapture||(Au=B)!=null&&Au.sendStartGameFrameCapture();u1=(new URL(window.location.href)).searchParams;if(u1.has("invite_code")){var WA=new wLE,NH=u1.get("invite_code");qq=_.Xa(WA,1,NH);(U1=B)==null||U1.sendGameData(qq)}pR()||(wf(!0),WA=Z,WA.state!==1?_.J_(new _.fF("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+gr1[WA.state])):(_.MH("mini_app_ids_without_game_ready").includes(WA.JSC$17227_miniAppId)&&(WA.gameReady=
!0),WA.state=2,WA.beforeReady=!1,zs(WA,"ma_ffr"),YN(WA,"PLAY_EVENT_TYPE_PLAY_READY")));return rG.yield(x.promise,2)}zZ(t().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();t().isEmbeddedInWebview||My();_.Ty(rG)})},kw=function(){var Au=Z;
Au.gameReady=!0;zs(Au,"ma_gr")},T5=function(Au){var u1;
return _.K(function(qq){if(qq.nextAddress==1)return _.Mo(qq,2),qq.yield(rm5(U,Au),4);if(qq.nextAddress!=2)return _.Do(qq,0);u1=_.ax(qq);zZ(t().showSavingErrorPopupCommand);throw u1;})},aQ=function(){var Au,u1;
return _.K(function(qq){if(qq.nextAddress==1)return _.Mo(qq,2),qq.yield(W5z(U),4);if(qq.nextAddress!=2)return Au=qq.yieldResult,qq.return(Au);u1=_.ax(qq);zZ(t().showLoadingErrorDialogCommand);throw u1;})},LR=function(Au){Z.logError(Au)},ri=function(Au,u1,qq){MJq(Z,Au,u1,qq)},Q$=function(Au,u1){pmf(Z,Au,u1)},u_=function(){!O&&t().isEmbeddedInWebview||_.$3();
h5O(Z,!0);b||(window.addEventListener("beforeunload",zM,{capture:!0}),b=!0)},oN=function(Au){var u1,qq,U1,rG,WA,NH,Q_;
return _.K(function(e6){if(e6.nextAddress==1)return C&&(!g||g<Au)&&Au>0?e6.yield(C91(C,Au),3):e6.jumpTo(0);u1=e6.yieldResult;qq=_.D(u1);U1=qq.next().value;rG=qq.next().value;WA=U1;NH=rG;((Q_=WA)==null?0:Q_.displayString)&&NH&&(US(NH),v0(WA.displayString));_.Ty(e6)})},ST=function(Au){var u1=t().onBenchmarkingMessageReceivedCommand;
if(u1){var qq=nQS();_.zN(Au,3,SN_,qq);eq(u1,pLr(Au))}},mA=function(Au){var u1=t().onGameFrameReceivedCommand;
if(u1){var qq=new Nc;var U1=new h$Z;var rG=Ll(Au,1);U1=_.fb(U1,1,rG);Au=_.YD(Au,2);Au=_.Xa(U1,2,Au);qq=_.L8(qq,2,Au);eq(u1,LVB(qq))}},Ra=function(Au){var u1=t().onGameAudioDataReceivedCommand;
if(u1){var qq=new Nc;var U1=new bef;Au=_.YD(Au,1);U1=_.Xa(U1,1,Au);qq=_.L8(qq,4,U1);eq(u1,LVB(qq))}},D3=function(){var Au=new URLSearchParams(window.location.search);
if(t().isEmbeddedInWebview&&Au&&Au.get("override_hl")==="true"&&Au.get("hl"))return Au.get("hl");Au=document.documentElement.lang;return Au!==""?Au:nM},bM=function(Au){var u1=t().onShareInviteCodeCommand;
if(u1)if(t().isEmbeddedInWebview){var qq=new RHu;Au=_.Xa(qq,1,Au);eq(u1,Ji0(Au))}else qq=t().inviteCodeShareClientParamIdentifier,l.clientParams.set(qq,{miniAppClientParams:{inviteCode:Au}}),zZ(u1)},hO=function(Au){var u1,qq,U1;
return _.K(function(rG){if(rG.nextAddress==1)return u1=t().onMiniAppOpenYtContentRequested,C&&_.h("enable_open_yt_content")&&u1?rG.yield(KAq(C,Au),3):rG.jumpTo(0);qq=rG.yieldResult;if(qq==="OK")if(t().isEmbeddedInWebview){var WA=new j$_;U1=wa(WA,2,sk,i1(Au));eq(u1,SkR(U1))}else I.clientData.set("video_id",Au),zZ(u1);_.Ty(rG)})},IM=function(Au){B4+=_.$1(Au,3);
Au=Math.min(Math.log(1+B4/15E6*9)/Math.log(10),.99);Su(Au);FR(Au)},FR=_.Tj(function(Au){var u1=t().updateLoadingProgressCommand;
if(u1){var qq=new j$_;Au=wa(qq,3,sk,_.GS(Au));eq(u1,SkR(Au))}},100),ud=function(Au){return Tir(F,Au)},wy=function(){var Au,u1;
((Au=_.huS())==null?void 0:(u1=Au.wakeLock)==null?void 0:u1.request)!=null&&_.huS().wakeLock.request("screen").then(function(qq){u=qq}).catch(function(){})},vY=_.yM("iframe");
_.rp(function(){t().isSupportedCountry&&(Qix()||_.h("enable_sign_in_promo")||!t().showSignInDialogCommand?vY.value&&pV(vY.value):zZ(t().onMiniAppReadyCommand))},"VjCqQ");
var Ym=function(){return _.d("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return pR()?0:-1},
el:vY})},pV=function(Au,u1){u1=u1===void 0?!1:u1;
var qq=bR();if(qq&&(u1||qq.toString()!==Au.getAttribute("src"))){B=oQx(t().source,{isAudioEnabled:XO,onFirstFrameReady:Mq,onGameReady:kw,onSave:T5,onLoad:aQ,onError:LR,onSdkCalled:ri,onSdkPerformanceUpdate:Q$,onClick:u_,onSendHighScore:oN,onBenchmarkingMessageReceived:ST,getLanguage:D3,onShareInviteCode:bM,onResourceLoaded:IM,onOpenYTContent:hO,onShowMiniAppAd:ud,onGameFrameReceived:mA,onGameAudioReceived:Ra},Au,qq);$J(Au,"load",function(){zs(Z,"ma_il");$J(Au,"load",function(){pV(Au,!0)})});
var U1=_.uP("mini_app_container_iframe_src_update_delay_ms");t().isEmbeddedInWebview&&!u1&&U1>0?IKx(Au,qq,U1):_.No(Au,qq)}},bR=function(){var Au=t().url;
if(Au&&(Au=_.Rk(Au),Au!==null)){if(t().source&&t().source==="MINI_APP_SOURCE_GAMESNACKS")Au=_.iw(Au,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.h("enable_origin_query_parameter_bugfix")){var u1=_.LS(_.Kkg(Au.toString()));u1=new URLSearchParams(u1||"");u1.set("origin",window.location.origin);u1=u1.toString();Au=_.es(Au).toString();Au=_.wD(UwS.exec(Au)[0]+(u1.trim()?"#"+u1:""))}return Au}},q_=function(){var Au={};
Au=_.V7("yt-mini-app-container-view-model__loading-screen",(Au["yt-mini-app-container-view-model__loading-screen--fade-out"]=pR,Au));var u1=function(){return pR()?1:BA()};
return _.d("div",{class:Au},_.d(_.iF,{data:function(){return t().splashScreen}},{miniAppSplashScreenViewModel:function(qq){return _.d(vr5,{data:qq.data,
loadingProgress:u1})}}))},bB=function(){var Au={};
return _.d("div",{class:_.V7("yt-mini-app-container-view-model__pause-interstitial",(Au["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!B0()},Au["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=B0,Au))},_.d(_.iF,{data:function(){return t().splashScreen}},{miniAppSplashScreenViewModel:function(u1){return _.d(vr5,{data:u1.data,
forPaused:!0})}}))},fp=function(){c=[];
c.push(_.SF(window,"visibilitychange",function(){w||H&&PW()||(document.visibilityState==="visible"?nN():al())}));
c.push(_.SF(window,"pagehide",function(){nU()}));
c.push(_.SF(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&mZ.value.dispatchEvent(new Event("tap"))},0)}));
c.push(_.SF(mZ.value,"pointerdown",function(){h5O(Z,!1)},!0));
c.push(_.SF(mZ.value,"pause",function(){w=!0;al()}));
c.push(_.SF(mZ.value,"play",function(){w=!1;nN()}));
c.push(_.SF(mZ.value,"exit",function(){nU()}));
var Au=navigator.keyboard,u1=Au&&Au.lock;c.push(_.SF(window,uM0,function(){Ox(hwp());hwp()?(t().hasPlayNextShelf&&ei("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),p$("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),u1&&Au.lock(["Escape"])):(t().hasPlayNextShelf&&p$("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),ei("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),u1&&Au.unlock())}));
t().showMultiplayer3pConsentDialogCommand&&c.push(_.SF(window,"yt-playables-ack-3p-data-usage",function(){FAx(C)}));
t().confirmExitMiniAppCommandEdu&&c.push(_.SF(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.ML("exit-mini-app-seen-state","true",2592E6)}));
t().onGameAudioDataReceivedCommand&&c.push(_.SF(window,"message",function(qq){qq=qq.event_;var U1,rG=(U1=vY.value)==null?void 0:U1.src;if(rG&&qq.origin===(new URL(rG)).origin&&qq.data&&qq.data.type==="GAME_AUDIO"&&qq.data.audio&&qq.data.audio.length>0)if(_.h("enable_sending_unwrapped_game_audio_as_serialized_metadata"))r2Q(t().onGameAudioDataReceivedCommand,qq.data.audio);else{var WA=new FileReader;WA.onload=function(){var NH=new Nc;var Q_=new bef;Q_=_.Xa(Q_,1,WA.result);NH=_.L8(NH,4,Q_);eq(t().onGameAudioDataReceivedCommand,
LVB(NH))};
WA.readAsDataURL(new Blob([qq.data.audio]))}}))},p_=function(){c.forEach(function(Au){jF(Au)});
window.removeEventListener("beforeunload",zM,{capture:!0})},zZ=function(Au){Au&&fKz(Au,t().isEmbeddedInWebview||!1)},p$=function(Au,u1){Au=_.D(mZ.value.getElementsByClassName(Au));
for(var qq=Au.next();!qq.done;qq=Au.next())qq.value.classList.add(u1)},ei=function(Au,u1){Au=_.D(mZ.value.getElementsByClassName(Au));
for(var qq=Au.next();!qq.done;qq=Au.next())qq.value.classList.remove(u1)};
return function(){var Au={};Au=_.V7("yt-mini-app-container-view-model",(Au["yt-mini-app-container-view-model--desktop"]=!0,Au["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return t().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Au["yt-mini-app-container-view-model--ios-web-view"]=R7y(),Au["yt-mini-app-container-view-model--no-top-bar"]=function(){return!t().topBar},Au["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return t().hasPlayNextShelf},Au["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return t().hasPlayNextShelf},Au["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Rl()&&t().hasPlayNextShelf},Au));
var u1={};u1=_.V7("yt-mini-app-container-view-model__content",(u1["yt-mini-app-container-view-model__content--desktop-content"]=!0,u1["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return t().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},u1["yt-mini-app-container-view-model--desktop-play-page"]=function(){return t().hasPlayNextShelf},u1));
return _.d("mini-app-container-view-model",{el:mZ},_.d("div",{class:Au},_.d(_.y,{cond:function(){return t().topBar&&!Rl()},
then:function(){return _.d(_.iF,{data:function(){return t().topBar}},{miniAppTopBarViewModel:function(qq){return _.d(AR5,{data:qq.data,
isAudioEnabled:XO,onAudioToggled:function(U1){ES(U1)},
score:$r,formattedScore:SE,onScoreChanged:function(U1){g=U1},
isEmbeddedInWebview:PW,isSaved:Hl,onSaveToggled:function(U1){jJ(U1)},
isExitMiniAppSeen:yr,isDesktopPlayPage:Zl})}})}}),_.d("div",{class:u1},_.d(_.y,{cond:sp,
then:function(){return Ym()}}),_.d(_.y,{cond:function(){return t().isLivestream},
then:function(){return bB()}}),_.d(_.y,{cond:function(){return!t().isEmbeddedInWebview},
then:function(){return q_()}}),_.d(_.iF,{data:function(){return t().contentDisclosure}},{playerDisclosureViewModel:function(qq){qq=qq.data;
var U1={};return _.d("div",{class:_.V7("yt-mini-app-container-view-model__content-disclosure-overlay",(U1["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=VO,U1))},_.d(_.Z8z,{data:qq}))}}))))}()},"$f");
dmf.idomCompat=!0;_.o_(dmf,"mini-app-container-view-model",{props:{data:_.$O}});var gwJ=_.q(function(N){var t=N.data;return _.d("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.d("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Ui(function(){var O=t().onTap;O&&_.xJ(O)})},_.d(_.y,{cond:function(){return t().icon},
then:function(O){return _.d(_.dq,{icon:function(){return O().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.d("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return t().title})))},"ag");
gwJ.idomCompat=!0;var yRz=_.q(function(N){var t=_.Fy("div"),O=_.D(_.b$(void 0,void 0,"dg3xff")),H=O.next().value,A=O.next().value;O=_.D(_.b$(void 0,void 0,"AgHNfc"));var Z=O.next().value,U=O.next().value;O=_.D(_.b$(void 0,void 0,"fuTKCc"));var C=O.next().value,F=O.next().value,g=function(){var P=H();return P!==void 0?Math.abs(P):void 0},B=function(){var P=g();
return P===void 0||P<=3},c=function(){var P=g();
var x=Z(),l=C();P=P!==void 0&&x!==void 0&&l!==void 0?x-l-P:void 0;return P===void 0||P<=3},u=function(P){t.value&&t.value.scrollBy({top:0,
left:(_.Ro("HTML_DIR")==="rtl"?-1:1)*P*t.value.clientWidth,behavior:"smooth"})},S=function(){var P;
A((P=t.value)==null?void 0:P.scrollLeft);var x;U((x=t.value)==null?void 0:x.scrollWidth);var l;F((l=t.value)==null?void 0:l.clientWidth)},b=function(){u(-.5)},z=function(){u(.5)};
O=_.Ui(function(){S()});
_.lf(function(){S();if(t.value&&window.ResizeObserver){var P=new ResizeObserver(S);P.observe(t.value);_.Ia(function(){P.disconnect()})}});
var w={};return _.d("yt-sponsorships-scrollable-shelf",{class:_.V7("ytdSponsorshipsScrollableShelfHost",N.className)},_.d("div",{class:_.V7("ytdSponsorshipsScrollableShelfContent",(w.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return N.data().previousButton&&N.data().nextButton&&!B()&&!c()},w.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return N.data().previousButton&&!B()&&c()},w.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return N.data().nextButton&&
B()&&!c()},w)),
el:t,"on:scroll":O},N.children),_.d(_.y,{cond:function(){return!B()},
then:function(){return _.d(_.iF,{data:function(){return N.data().previousButton}},{buttonViewModel:function(P){return _.d(_.Pu,{data:P.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:b})}})}}),_.d(_.y,{cond:function(){return!c()},
then:function(){return _.d(_.iF,{data:function(){return N.data().nextButton}},{buttonViewModel:function(P){return _.d(_.Pu,{data:P.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:z})}})}}))},"cg");
yRz.idomCompat=!0;var cR5=_.q(function(N){var t=N.data;N={};return _.d("yt-sponsorships-hub",{class:_.V7("ytdSponsorshipsHubHost",(N.ytdSponsorshipsHubHostIndented=function(){return t().indented},N))},_.d("div",{class:"ytdSponsorshipsHubHeader"},_.d("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.d("div",{class:"ytdSponsorshipsHubAvatar"},_.d(_.iF,{data:function(){return t().avatar}},{avatarViewModel:_.Dv})),_.d(_.y,{cond:function(){return t().badgeImage},
then:function(O){return _.d("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.d("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.d("div",{class:"ytdSponsorshipsHubBadge"},_.d(_.Qt,{data:O,targetWidth:24,targetHeight:24,alt:""}))))}})),_.d("div",{class:"ytdSponsorshipsHubDetails"},_.d("div",{class:"ytdSponsorshipsHubTierName"},function(){return t().tierName}),_.d("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return t().membershipType}),_.d("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return t().membershipDurationOrExpiry})),_.d("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.d(_.iF,{data:function(){return t().manageButton}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.d(_.iF,{data:function(){return t().actionMenuButton}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.d("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return t().perksTitle}),_.d(yRz,{data:function(){return{previousButton:t().previousPerkButton,
nextButton:t().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.d("div",{class:"ytdSponsorshipsHubPerkCards"},_.d(_.iF,{data:function(){return t().perkCards}},{sponsorshipsHubPerkCardViewModel:gwJ}),_.d(_.y,{cond:function(){return t().viewAllPerksButton},
then:function(O){return _.d(BDO,{data:O})}}))))},"dg");
cR5.idomCompat=!0;var BDO=_.q(function(N){var t=N.data;return _.d("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.d(_.iF,{data:function(){return t().button}},{buttonViewModel:_.Pu}),_.d("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.d("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return t().title}),_.d("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return t().subtitle})))},"eg");
BDO.idomCompat=!0;_.o_(cR5,"yt-sponsorships-hub",{props:{data:_.$O}});_.$mz=_.q(function(N){var t=N.data;return _.d("yt-dual-avatar-view-model",{class:_.V7("ytDualAvatarViewModelHost",N.className),style:_.FM({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var O;return((O=t().badgeCutoutRadius)!=null?O:14)+"px"}})},_.d("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.d(_.iF,{data:function(){return t().startAvatar}},{avatarViewModel:_.Dv}),_.d(_.iF,{data:function(){return t().endAvatar}},{avatarViewModel:_.Dv})),_.d(_.iF,{data:function(){return t().badge}},
{contentPreviewImageViewModel:function(O){return _.d("div",{class:"ytDualAvatarViewModelBadge"},_.d(_.xe,{data:O.data}))}}))},"fg");
_.$mz.idomCompat=!0;var i8J=_.q(function(N){var t=N.data;var O,H=!((O=_.cY().resolve(_.BY(_.WV)))==null||!O());N=_.aa(function(){var B,c,u=H?(B=t().header)==null?void 0:B.backgroundColorDarkMode:(c=t().header)==null?void 0:c.backgroundColorLightMode;if(u!==void 0)return _.TV(u)},void 0,"TDdh7d");
O=_.aa(function(){var B,c;return H?(B=t().header)==null?void 0:B.backgroundImagePart1Dark:(c=t().header)==null?void 0:c.backgroundImagePart1Light},void 0,"X0peMe");
var A=_.aa(function(){var B,c;return H?(B=t().header)==null?void 0:B.backgroundImagePart2Dark:(c=t().header)==null?void 0:c.backgroundImagePart2Light},void 0,"an0Hzd"),Z=_.aa(function(){return _.Ro("HTML_DIR")==="rtl"},void 0,"BltEgb"),U=_.Fy("yt-sponsorships-perks-list"),C=!1,F=function(){var B=U.value;
if(B&&!C){var c,u=(c=B.parentElement)==null?void 0:c.parentElement;if(u)for(B=B.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),c=0;c<B.length;++c){var S=B[c];if(S instanceof HTMLElement){u.scrollTo({top:S.offsetTop+S.clientHeight/2-u.clientHeight/2,behavior:"smooth"});C=!0;break}}}};
_.Q8(function(){var B=U.value;if(B&&window.ResizeObserver){var c=new ResizeObserver(F);c.observe(B);_.Ia(function(){c.disconnect()})}});
var g={};return _.d("yt-sponsorships-perks-list",{el:U,class:_.V7("ytdSponsorshipsPerksListHost",(g.ytdSponsorshipsPerksListHorizontalPadding=function(){return t().horizontalPaddingEnabled},g))},_.d("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.d("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.FM({"background-color":N})},_.d("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.d(_.y,{cond:O,then:function(B){var c={};return _.d("div",{class:_.V7((c.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=H,c.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!H,c.ytdSponsorshipsPerksListFlipped=Z,c))},_.d(_.Qt,{data:B,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.d("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.d(_.y,{cond:A,
then:function(B){var c={};return _.d("div",{class:_.V7((c.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=H,c.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!H,c.ytdSponsorshipsPerksListFlipped=Z,c))},_.d(_.Qt,{data:B,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.d("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.d(_.iF,{data:function(){var B;
return(B=t().header)==null?void 0:B.dualAvatar}},{dualAvatarViewModel:_.$mz})))),_.d("div",{class:"ytdSponsorshipsPerksListBody"},_.d("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return t().title}),_.d(_.y,{cond:function(){return t().perks},
then:function(B){return _.d(_.nL,{each:B},function(c,u){var S={};return _.d("div",{class:_.V7("ytdSponsorshipsPerksListPerkContainer",(S.ytdSponsorshipsPerksListSelectedPerk=function(){var b=u(),z=t().selectedPerkIndex;return b===z},S))},_.d(_.y,{cond:function(){return u()>0},
then:function(){return _.d("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.d("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.d(_.y,{cond:function(){return c.icon},
then:function(b){return _.d(_.dq,{icon:function(){return b().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.d("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.d("div",{class:"ytdSponsorshipsPerksListPerkTitle"},c.title),_.d("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.d(_.cu,{text:c.description})),_.d(_.y,{cond:function(){return c.instructions},
then:function(){var b,z;return _.d("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.d("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(b=c.instructions)==null?void 0:b.title),_.d("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.d(_.cu,{text:(z=c.instructions)==null?void 0:z.text})))}}))),_.d(_.y,{cond:function(){return c.emoji},
then:function(b){return _.d("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.d(_.nL,{each:function(){return b()}},function(z){return _.d(_.Qt,{data:z,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.d(jd1,{data:c}))})}})))},"gg");
i8J.idomCompat=!0;var jd1=_.q(function(N){var t=N.data;var O=function(U,C){return U===C},H=function(){var U=t();
U=_.M(U==null?void 0:U.badgesShelf,tL_);return U!==void 0&&U!==null?U:{previousButton:{},nextButton:{}}},A=_.yM("div"),Z=function(){var U=A.value;
if(U){var C=U.parentElement;if(C){U=U.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var F=0;F<U.length;++F){var g=U[F];if(g instanceof HTMLElement){C.scrollTo({left:g.offsetLeft+g.clientWidth/2-C.clientWidth/2,behavior:"instant"});break}}}}};
_.Q8(function(){var U=A.value;if(U){var C=new ResizeObserver(Z);C.observe(U);_.Ia(function(){C.disconnect()})}});
return _.d("div",null,_.d(_.y,{cond:function(){return t().badges},
then:function(U){return _.d(yRz,{data:H},_.d("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:A},_.d(_.nL,{each:function(){return U()}},function(C,F){var g={},B={},c={};
return _.d("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.d(_.y,{cond:function(){return F()>0},
then:function(){return _.d("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.d("div",{class:_.V7("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(g.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return O(F(),t().currentBadgeIndex)},g.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!O(F(),t().currentBadgeIndex)},g))},_.d("div",{class:_.V7("ytdSponsorshipsPerksListLoyaltyBadge",(B.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return O(F(),
t().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!O(F(),t().currentBadgeIndex)},B))},_.d(_.y,{cond:function(){return C.image},
then:function(u){var S={};return _.d("div",{class:_.V7((S.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return O(F(),t().currentBadgeIndex)},S.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!O(F(),t().currentBadgeIndex)},S))},_.d(_.Qt,{data:u,
alt:""}))}})),_.d("div",{class:_.V7("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(c.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return O(F(),t().currentBadgeIndex)},c))},C.title)))})))}}))},"hg");
jd1.idomCompat=!0;_.o_(i8J,"yt-sponsorships-perks-list",{props:{data:_.$O}});_.o_(_.q(function(N){return _.d("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.d(_.y,{cond:function(){return N.data().image},
then:function(t){return _.d(_.Qt,{className:"ytwFantasyEmptyStateViewModelImage",data:t,ariaHidden:!0,alt:""})}}),_.d(_.cu,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return N.data().title}}),_.d(_.cu,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return N.data().subtitle}}),_.d(_.iF,{data:function(){return N.data().primaryButton}},{buttonViewModel:function(t){return _.d(_.Pu,{data:t.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ig"),"ytw-fantasy-empty-state-view-model",{props:{data:_.$O}});var uVi;var S15=_.q(function(N){var t=N.data;var O=N.uniqueId;var H=N.overrides;N=_.aa(function(){var A,Z=((A=t().timedAnimationData)==null?void 0:A.animationTiming)||[];return{uniqueId:O(),timings:Z,experimentEnabled:Z.length>0,enabled:Z.length>0}},void 0,"hiuXI");
return _.d("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.d(tIR,{settings:N},_.d(_.iF,{data:function(){return t().buttonRenderer}},{buttonRenderer:function(A){return _.d(_.MG,{data:A.data,
buttonOverrides:H})}})))},"jg");
S15.idomCompat=!0;_.o_(S15,"timed-animation-button-renderer",{props:{data:_.$O,uniqueId:_.$O,overrides:_.$O}});var Xk=function(){var N=_.k.apply(this,arguments)||this;N.hideJoinButtonBeforeSubscribed=_.h("hide_join_button_before_subscribed");N.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return N};
_.p(Xk,_.k);_.V=Xk.prototype;_.V.hasShowDialogCommand=function(N){return!!_.M(N,UR0)};
_.V.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.updateJoinButtonOverrides=function(){var N,t;(N=_.O6(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(t=N.polymerController)==null||t.set("overrides",this.joinButtonOverrides);if(N=_.O6(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))N.overrides=this.joinButtonOverrides};
_.V.handleButtonRefreshAction=function(N){if(N=_.M(N,e2_))this.set("data.membershipButton",N.membershipButton),this.notifyPath("data.membershipButton")};
_.V.onYtServiceRequestError=function(N){_.I8(this.hostElement,N.detail.error.message)};
_.V.onKeydown=function(N){if(N.key==="Enter"){var t;(t=this.data)!=null&&t.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.V.handleUnsubscribeAction=function(){var N,t,O;((N=this.data)==null?void 0:(t=N.membershipButton)==null?void 0:(O=t.buttonRenderer)==null?void 0:O.style)==="STYLE_PRIMARY"&&_.O6(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.cv.Object.defineProperties(Xk.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.subscriptionStateEntity)==null||!N.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.data)==null?void 0:N.membershipButton,O;N=(t==null?void 0:t.buttonRenderer)||_.M(t==null?void 0:(O=t.timedAnimationButtonRenderer)==null?void 0:O.buttonRenderer,_.g_);return(N==null?void 0:N.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(N==null?void 0:N.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(N==null?void 0:N.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var N;if(this.hasShowDialogCommand((N=this.data)==null?void 0:N.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var N;if(this.hasShowDialogCommand((N=this.data)==null?void 0:N.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.attributedTitle)}}});
Xk.prototype.onYtServiceRequestError=Xk.prototype.onYtServiceRequestError;Xk.prototype.updateJoinButtonOverrides=Xk.prototype.updateJoinButtonOverrides;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Xk.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],Xk.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Xk.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.sb),_.Q("design:type",Object)],Xk.prototype,"ironButtonState",void 0);_.W([_.X(),_.Q("design:type",Object)],Xk.prototype,"data",void 0);_.W([_.a("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xk.prototype,"hideJoin",null);
_.W([_.X(),_.Q("design:type",String)],Xk.prototype,"subscribeKey",void 0);_.W([_.X({selectorArgs:["subscribeKey"],selector:Jag}),_.Q("design:type",Object)],Xk.prototype,"subscriptionStateEntity",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Xk.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.W([_.a("subscriptionStateEntity"),_.X({reflectToAttribute:!0}),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xk.prototype,"subscribed",null);
_.W([_.a("subscribed","data.membershipButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xk.prototype,"joinButtonOverrides",null);_.W([_.a("data.navigationEndpoint"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xk.prototype,"channelNameTabIndex",null);_.W([_.a("data.navigationEndpoint"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xk.prototype,"channelNameRole",null);
_.W([_.a("data.attributedTitle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Xk.prototype,"hasAttributedTitle",null);_.W([_.gz("joinButtonOverrides"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Xk.prototype,"updateJoinButtonOverrides",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Xk.prototype,"onYtServiceRequestError",null);
_.W([_.en({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Xk);
var hrr=_.td()(Xk,"ytd-video-owner-renderer",function(){if(uVi===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);uVi=N}N=uVi;return N},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.o_(_.q(function(N){var t=N.data;var O;N=_.D(_.b$(!((O=_.b8("yt-mini-app-is-theater-mode-enabled"))==null||!O),void 0,"i2pjVd"));var H=N.next().value,A=N.next().value;O=_.D(_.b$(!1,void 0,"ga7V5c"));var Z=O.next().value,U=O.next().value;_.Q8(function(){var g=_.SF(window,uM0,function(){U(hwp())});
_.Ia(function(){jF(g)})});
var C;O=(C=_.cY().resolve(_.BY(Qlx)))!=null?C:function(){return _.d("div",null)};
_.K9("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){A(!0);_.ML("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.K9("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){A(!1);_.ML("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
C={};N={};var F={};return _.d("mini-app-play-page-renderer",{class:_.V7("miniAppPlayPageRendererHost",(C.miniAppPlayPageRendererHostDetailsView=function(){return!H()},C))},_.d("div",{class:_.V7("miniAppPlayPageRendererGameContainer",(N.miniAppPlayPageRendererGameContainerDetailsView=function(){return!H()},N))},_.d(_.iF,{data:function(){return t().containerViewModel}},{miniAppContainerViewModel:dmf}),_.d(_.y,{cond:function(){return t().channel&&t().subscribeButton},
then:function(){var g={};return _.d("div",{class:_.V7("miniAppPlayPageRendererChannelContainer",(g.miniAppPlayPageRendererHideVisibility=function(){return Z()},g))},_.d(_.iF,{data:function(){return t().channel}},{videoOwnerRenderer:function(B){return _.d(hrr,{data:B.data})}}),_.d(_.iF,{data:function(){return t().subscribeButton}},{subscribeButtonViewModel:function(B){return _.d(_.DF,{data:B.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.d(_.y,{cond:function(){return!H()&&t().description},
then:function(){var g={};return _.d("div",{class:_.V7("miniAppPlayPageRendererMiniAppDescriptionWrapper",(g.miniAppPlayPageRendererHideVisibility=function(){return Z()},g))},_.d("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return t().description}))}})),_.d("div",{class:_.V7("miniAppPlayPageRendererPlayNextContainer",(F.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!H()},F.miniAppPlayPageRendererHideVisibility=function(){return Z()},F))},_.d(_.iF,{data:function(){return t().sectionList}},
{sectionListRenderer:O})))},"kg"),"mini-app-play-page-renderer",{props:{data:_.$O}});var xN=function(){var N=_.k.apply(this,arguments)||this;N.isSearch=!1;N.isConstrainedList=!1;N.hasChipsBar=!1;N.inReplyPanel=!1;N.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};N.monitorScroll=!0;N.SCROLL_ANIMATION_DURATION_MS=300;N.nextContinuation={continuationType:"sectionListContinuation"};return N};
_.p(xN,_.k);_.V=xN.prototype;
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(N){switch(N.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.h("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.h("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.V.created=function(){var N=this;this.JSC$17367_scrollAnimation=new _.p5(function(t){N.hostElement.scrollTop=t})};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.V.getItemsPath=function(){return"data.contents"};
_.V.replacePrimaryContent=function(N){this.set("data.contents",N)};
_.V.computeHasSortFilter=function(N){return!!N&&!!N.sortFilterSubMenuRenderer};
_.V.computeShouldScrollInPanel=function(N){var t;return!!(N==null?0:(t=N.scrollPaneStyle)==null?0:t.scrollable)};
_.V.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.VQ(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.V.scrollToTop=function(){this.hostElement.scrollTop=0};
_.V.scrollToItemSection=function(N){if(N=this.getItemByIdentifier(N))N=this.getScrollPositionForItem(N),this.hostElement.scrollTop!==N&&this.JSC$17367_scrollAnimation.start(this.hostElement.scrollTop,N,this.SCROLL_ANIMATION_DURATION_MS)};
_.V.getItemByIdentifier=function(N){var t=this.contents.querySelectorAll("ytd-item-section-renderer");if(t&&t.length!==0){var O=Array.from(t).findIndex(function(H){return H.sectionIdentifier===N});
return t[O===-1?0:O]}};
_.V.getScrollPositionForItem=function(N){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===N)return 0;N=_.mq(N).y+this.hostElement.scrollTop-_.mq(this.hostElement).y;return Math.min(N,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.cv.Object.defineProperties(xN.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.targetId)==="browse-feedFEclips"}}});
xN.prototype.onScroll=xN.prototype.onScroll;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],xN.prototype,"ytLazyListBehavior",void 0);_.W([_.Y(_.MP.YtNextContinuationBehavior),_.Q("design:type",Object)],xN.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.Y(_.Uqm),_.Q("design:type",Object)],xN.prototype,"ytBooleanLogicBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],xN.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],xN.prototype,"data",void 0);_.W([_.X({value:2}),_.Q("design:type",Number)],xN.prototype,"initialCount",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],xN.prototype,"autoFill",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Q("design:type",Boolean)],xN.prototype,"hasSortFilter",void 0);_.W([_.X({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Q("design:type",Boolean)],xN.prototype,"hideBottomSeparator",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Q("design:type",Boolean)],xN.prototype,"shouldScrollInPanel",void 0);
_.W([_.X(),_.Q("design:type",Object)],xN.prototype,"isSearch",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],xN.prototype,"isConstrainedList",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],xN.prototype,"responsiveSizing",void 0);_.W([_.X(),_.Q("design:type",Object)],xN.prototype,"hasChipsBar",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],xN.prototype,"pageSubtype",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],xN.prototype,"engagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],xN.prototype,"liveChatEngagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],xN.prototype,"inReplyPanel",void 0);_.W([_.B2("#action-button"),_.Q("design:type",HTMLElement)],xN.prototype,"actionButton",void 0);_.W([_.X(),_.Q("design:type",Object)],xN.prototype,"scrollUpButtonData",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],xN.prototype,"engagementPanelDropdown",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],xN.prototype,"engagementPanelDialog",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xN.prototype,"isClipList",null);_.W([_.B2("#contents"),_.Q("design:type",HTMLElement)],xN.prototype,"monitorScrollElement",void 0);_.W([_.B2("#contents"),_.Q("design:type",HTMLElement)],xN.prototype,"contents",void 0);
_.W([_.dz("scroll"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xN.prototype,"onScroll",null);_.W([_.en({is:"ytd-section-list-renderer",disableElementRegistration:!0})],xN);
var Ms1=_.td()(xN,"ytd-section-list-renderer",function(){if(lpr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);lpr=N}N=lpr;return N},{mode:1});var b85;var plq;var LAm;var zrf;var kN=function(){return _.k.apply(this,arguments)||this};
_.p(kN,_.k);kN.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
kN.prototype.onLikeButtonClick=function(N){N.stopPropagation();N.preventDefault()};
_.cv.Object.defineProperties(kN.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)!=null&&N.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],kN.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],kN.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],kN.prototype,"ytRendererStamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],kN.prototype,"data",void 0);
_.W([_.X({selectorArgs:["data.likeStatusEntityKey"],selector:e9}),_.Q("design:type",Object)],kN.prototype,"likeStatusEntity",void 0);_.W([_.a("data","likeStatusEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],kN.prototype,"likeButtonRenderer",null);_.W([_.en({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],kN);
_.n(kN,"ytd-slim-metadata-toggle-button-renderer",function(){if(zrf!==void 0)return zrf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return zrf=N},{mode:1});var qr=function(){var N=_.k.apply(this,arguments)||this;N.showEqualizer=_.h("web_enable_playlist_video_lockup_equalizer");N.watchColorUpdate=_.h("kevlar_watch_color_update");N.actionMap={};return N};
_.p(qr,_.k);_.V=qr.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.V.computeEditableClass=function(N){return N&&N.menu?"editable":""};
_.V.computeSelected=function(N){return!(N==null||!N.selected)};
_.V.computeUseColorPalette=function(N){return!!((N==null?0:N.lightColorPalette)&&(N==null?0:N.darkColorPalette))};
_.V.computeLargerPlaylistThumbs=function(N,t){return _.h("web_enable_playlist_bigger_thumbnails")&&!t};
_.V.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.V.onYtServiceRequestSent=function(N,t){t.endpoint&&this.isHideEnclosingAction(t.endpoint)&&!this.selected&&n4R(_.h7(),this.data.videoId)};
_.V.isHideEnclosingAction=function(N){var t=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",N);N=this.get("likeEndpoint.status",N)==="INDIFFERENT";return t||N};
_.V.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.V.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.cv.Object.defineProperties(qr.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.h("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var N;return!!(this.withinMiniplayer&&((N=this.data)==null?0:N.actionButtons))}}});
qr.prototype.onYtServiceRequestSent=qr.prototype.onYtServiceRequestSent;qr.prototype.canReorderChanged=qr.prototype.canReorderChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],qr.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.$t),_.Q("design:type",Object)],qr.prototype,"ytdLockupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],qr.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],qr.prototype,"withinMiniplayer",void 0);_.W([_.X({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],qr.prototype,"selected",void 0);
_.W([_.X({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],qr.prototype,"useColorPalette",void 0);_.W([_.X({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],qr.prototype,"largerPlaylistThumbs",void 0);_.W([_.X(),_.Q("design:type",Object)],qr.prototype,"showEqualizer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],qr.prototype,"canReorder",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],qr.prototype,"touchPersistentDragHandle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],qr.prototype,"handleIsHovered",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],qr.prototype,"watchColorUpdate",void 0);_.W([_.X(),_.Q("design:type",String),_.Q("design:paramtypes",[])],qr.prototype,"reorderIcon",null);
_.W([_.X(),_.Q("design:type",String),_.Q("design:paramtypes",[])],qr.prototype,"playIcon",null);_.W([_.X({reflectToAttribute:!0}),_.a("withinMiniplayer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],qr.prototype,"minimizePipBreakages",null);_.W([_.a("largerPlaylistThumbs"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],qr.prototype,"thumbnailWidth",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],qr.prototype,"showActionButtons",null);_.W([_.ic("canReorder"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],qr.prototype,"canReorderChanged",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],qr.prototype,"onYtServiceRequestSent",null);
_.W([_.en({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],qr);
_.n(qr,"ytd-playlist-panel-video-renderer",function(){if(LAm!==void 0)return LAm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return LAm=N},{mode:2});var f5=function(){return _.k.apply(this,arguments)||this};
_.p(f5,_.k);f5.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],f5.prototype,"data",void 0);_.W([_.en({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],f5);
_.n(f5,"ytd-playlist-panel-supported-items",function(){if(plq!==void 0)return plq;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return plq=
N},{mode:1});bxZ=!0;Ctr("\\P{N}");var VaQ;var Y1J=_.CJ("END_OF_PLAYLIST",void 0,"End of playlist"),auJ=_.CJ("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),n5=function(){var N=_.k.apply(this,arguments)||this;N.minimizePipBreakages=_.h("web_pip_minimize_breakages");N.hideHeaderText=!1;N.useColorPalette=!1;N.collapsed=!1;N.collapsedPreServerOverride="not_tracked";N.isHovered=!1;N.expandLabel=_.CJ("MINIPLAYER_EXPAND_LABEL");N.collapseLabel=_.CJ("MINIPLAYER_COLLAPSE_LABEL");N.isFloating=!1;N.metaPanel=
!1;N.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};N.currentIndex=void 0;return N};
_.p(n5,_.k);_.V=n5.prototype;
_.V.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.created=function(){var N=this;this.scrollThrottle=new _.KE(this.onThrottledScroll,1E3,this);this.JSC$17389_ytReorderableController=new _.g0B(56,function(t){N.handleDrop(t)})};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.computeOverflowMenuData=function(N){return N&&N.menu?N.menu:null};
_.V.computeCollapsible=function(N){return!N};
_.V.computeHasPlaylistButtons=function(N){return!(!N||!N.playlistButtons)};
_.V.computeHasSeparateSaveButton=function(N){return!(!N||!N.saveButton)};
_.V.computeHasToolbarButton=function(N,t){return!(!N||!(t||N.saveButton||N.menu))};
_.V.computePlaylistType=function(N){if(N&&N.playlistId)return N.playlistId.substring(0,4)};
_.V.computeCanReorder=function(N){return N?N.playlistId&&N.playlistId.startsWith("TLPQ")?!0:!!N.isEditable&&!N.isInfinite:!1};
_.V.attached=function(){var N=this;try{_.cY().resolve(_.$8).setPlaylistComponent(this.hostElement)}catch(t){if(_.h("kevlar_park_on_playlist_token_killswitch"))throw t;_.iI().parkOrScheduleJob(function(){_.cY().resolve(_.$8).setPlaylistComponent(N.hostElement)},2,"ci")}_.vC(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.V.detached=function(){_.JH(this.hostElement);_.mO(this.JSC$17389_ytReorderableController)};
_.V.computeTrailingIcon=function(N,t,O){return O?t?"yt-icons:collapse":"yt-icons:close":t?"yt-icons:expand":_.h("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.V.computeIndexMessage=function(N,t){return CJg(N+1)+" / "+CJg(t)};
_.V.onRenderStamperFinished=function(){if(this.scrollForStampDom){var N=!0;this.isHovered&&(N=!1);if(this.collapsed||this.hidden)N=!1;N&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.V.collapseChanged=function(){var N=this;this.collapsed||(_.yD(this.ytTaskEmitterBehavior.getTaskManager(),function(){N.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.V.hiddenChanged=function(){var N=this;this.hidden||_.yD(this.ytTaskEmitterBehavior.getTaskManager(),function(){N.scrollToCurrentVideo()})};
_.V.setupReordering=function(){var N=_.O6(this.hostElement).querySelector("#items");IVp?_.yWa(this.JSC$17389_ytReorderableController,N,N,"playlist-drag-handle"):_.yWa(this.JSC$17389_ytReorderableController,N,N)};
_.V.scrollToCurrentVideo=function(){var N=this;_.GB.addJob(function(){var t=_.O6(N.hostElement).querySelector("#items");if(t){t.style.setProperty("padding-bottom","");var O=_.O6(N.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(O){t=O.parentElement||_.xG(document);var H=t||_.xG(document);var A=_.mq(O),Z=_.mq(H),U=_.JDE(H);if(H==_.xG(document)){var C=A.x-H.scrollLeft;A=A.y-H.scrollTop}else C=A.x-Z.x-U.left,A=A.y-Z.y-U.top;O=Em_(O);Z=H.clientHeight-
O.height;U=H.scrollLeft;var F=H.scrollTop;U+=C-(H.clientWidth-O.width)/2;H=new _.IN(U,F+(A-Z/2));t.scrollLeft=H.x;t.scrollTop=H.y}}},8)};
_.V.dataChanged=function(){var N=this;_.mO(this.JSC$17389_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.yB(this,function(){_.WX(N.ytTaskEmitterBehavior.getTaskManager(),function(){N.ytRendererBehavior.markDirty();N.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.V.onFullBleedPlayerChanged=function(){_.h("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.V.onFullscreenChanged=function(){_.h("web_watch_imax_theater_mode")||_.h("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.V.updateNowPlayingOverlay=function(){_.h("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.V.onPlaylistLockupNowPlaying=function(N,t){t&&(this.activeNowPlayingRenderer=t);this.updateNowPlayingOverlay()};
_.V.onScroll=function(){this.scrollThrottle.fire()};
_.V.onThrottledScroll=function(){var N=this;_.WX(this.ytTaskEmitterBehavior.getTaskManager(),function(){N.ytRendererBehavior.markDirty()})};
_.V.onToggleExpanded=function(N){!this.collapsible||N&&(_.E3(N).tagName==="A"||_.RM(_.m1(N),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.V.setCollapsed=function(N){this.collapsible&&(this.collapsed=N,_.Np(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.V.handleCollapsedFromData=function(N){if(N){var t=N.playlistPanelCollapseState;t==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||t==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),t=t==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==t&&this.setCollapsed(t)):this.currentPlaylistId!==N.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(t=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==t&&this.setCollapsed(t),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=N.playlistId}};
_.V.handleDrop=function(N){var t=N.currDragItem;N=t.data.playlistSetVideoId;var O=_.qz(t.parentNode.childNodes,t),H=void 0;O>0&&(H=t.parentNode.childNodes[O-1].data.playlistSetVideoId);t=_.h7();if(t.responsePlaylistData&&t.responsePlaylistData.contents){var A=Q2g(N,t.responsePlaylistData);t.responsePlaylistData=(0,_.WW.unsafeClone)(t.responsePlaylistData);fpg(t.responsePlaylistData.contents,A,O);t.queueProxy?B7S(t.queueProxy,A,O,N,H):t.playlistProxy&&B7S(t.playlistProxy,A,O,N,H);_.Ma(t,_.bI(t,t.response?
t.response.autoplayRenderer:void 0))}};
_.V.handleDarkModeChange=function(N){N!==this.isDarkTheme&&(this.isDarkTheme=N)};
_.V.colorPaletteChanged=function(){var N,t=((N=this.data)==null?void 0:N.contents)||[],O;N=_.D(t);for(t=N.next();!t.done;t=N.next()){t=t.value;var H=void 0;if((H=t.playlistPanelVideoRenderer)==null?0:H.selected){N=t.playlistPanelVideoRenderer;H=t=void 0;(O=this.isDarkTheme?(t=N)==null?void 0:t.darkColorPalette:(H=N)==null?void 0:H.lightColorPalette)&&_.Me(this.hostElement,O);break}}this.useColorPalette=!!O};
_.cv.Object.defineProperties(n5.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.moveThreeDotsMenuToMainHeader)&&_.h("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var N=_.cY().resolve(_.BY(_.$8)),t;if(((t=this.data)==null?0:t.contents)&&(N==null?0:N.hasAutoplayData())){var O;if(((O=this.playlistLoopStateEntity)==null?void 0:O.state)==="PLAYLIST_LOOP_STATE_ONE"){if(N=this.data.currentIndex,N!==void 0){var H,A;var Z=(H=this.data.contents[N])==null?void 0:(A=H.playlistPanelVideoRenderer)==null?void 0:A.title}}else{var U,C=(U=_.M(N.getAutoplayEndpoint(),_.rN))==null?void 0:U.videoId,F,g;Z=(F=this.data.contents.find(function(B){var c;
return((c=B.playlistPanelVideoRenderer)==null?void 0:c.videoId)===C}))==null?void 0:(g=F.playlistPanelVideoRenderer)==null?void 0:g.title}return Z}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)!=null&&N.nextVideoLabel?this.nextVideoTitle?_.Gv(this.data.nextVideoLabel)+":":Y1J:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var N;if(((N=this.data)==null?0:N.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.h("web_mix_long_byline_from_data"))return _.E_(auJ);var t;return(t=this.data)==null?void 0:t.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H=(N=this.data)==null?void 0:(t=N.playlistButtons)==null?void 0:(O=t.menuRenderer)==null?void 0:O.topLevelButtons;if(H)for(N=_.D(H),t=N.next();!t.done;t=N.next())if(t=t.value,t.playlistLoopButtonRenderer)return t.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var N;return!!(this.collapsed&&((N=this.data)==null?0:N.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
n5.prototype.colorPaletteChanged=n5.prototype.colorPaletteChanged;n5.prototype.onPlaylistLockupNowPlaying=n5.prototype.onPlaylistLockupNowPlaying;n5.prototype.updateNowPlayingOverlay=n5.prototype.updateNowPlayingOverlay;n5.prototype.onFullscreenChanged=n5.prototype.onFullscreenChanged;n5.prototype.onFullBleedPlayerChanged=n5.prototype.onFullBleedPlayerChanged;n5.prototype.dataChanged=n5.prototype.dataChanged;n5.prototype.hiddenChanged=n5.prototype.hiddenChanged;n5.prototype.collapseChanged=n5.prototype.collapseChanged;
n5.prototype.onRenderStamperFinished=n5.prototype.onRenderStamperFinished;n5.prototype.onMouseLeave=n5.prototype.onMouseLeave;n5.prototype.onMouseEnter=n5.prototype.onMouseEnter;_.W([_.Y(_.JV),_.Q("design:type",Object)],n5.prototype,"ironResizableBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(nof.YtPlaylistPanelBehavior),_.Q("design:type",Object)],n5.prototype,"ytPlaylistPanelBehavior",void 0);_.W([_.Y(_.hP.YtTaskEmitterBehavior),_.Q("design:type",Object)],n5.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],n5.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],n5.prototype,"ytdReduxBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],n5.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],n5.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],n5.prototype,"autoplayData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],n5.prototype,"withinMiniplayer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],n5.prototype,"minimizePipBreakages",void 0);
_.W([_.X({computed:"setMenuData_(data)"}),_.Q("design:type",Object)],n5.prototype,"menuRendererData",void 0);_.W([_.X({computed:"computeOverflowMenuData(data)"}),_.Q("design:type",Object)],n5.prototype,"overflowMenuDataTopRow",void 0);_.W([_.X({computed:"computeOverflowMenuData(data)"}),_.Q("design:type",Object)],n5.prototype,"overflowMenuData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],n5.prototype,"hideHeaderText",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],n5.prototype,"useColorPalette",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Q("design:type",Boolean)],n5.prototype,"collapsible",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],n5.prototype,"collapsed",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],n5.prototype,"hidden",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Q("design:type",Boolean)],n5.prototype,"hasPlaylistButtons",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Q("design:type",Boolean)],n5.prototype,"hasSeparateSaveButton",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Q("design:type",Boolean)],n5.prototype,"hasToolbar",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Q("design:type",String)],n5.prototype,"playlistType",void 0);_.W([_.X(),_.Q("design:type",Object)],n5.prototype,"isHovered",void 0);_.W([_.X({selectorArgs:["playlistLoopStateEntityKey"],selector:_.so.playlistLoopStateEntitySelector}),_.Q("design:type",Object)],n5.prototype,"playlistLoopStateEntity",void 0);_.W([_.X({computed:"computeCanReorder(data)"}),_.Q("design:type",Boolean)],n5.prototype,"canReorder",void 0);
_.W([_.X(),_.Q("design:type",Object)],n5.prototype,"expandLabel",void 0);_.W([_.X(),_.Q("design:type",Object)],n5.prototype,"collapseLabel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],n5.prototype,"isFloating",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],n5.prototype,"metaPanel",void 0);_.W([_.X({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Q("design:type",String)],n5.prototype,"trailingIcon",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],n5.prototype,"isDarkTheme",void 0);_.W([_.X({selector:_.w8}),_.Q("design:type",Boolean)],n5.prototype,"miniplayerIsActive",void 0);_.W([_.X({selector:function(N){return N.watch.playerState}}),
_.Q("design:type",Number)],n5.prototype,"playerState",void 0);_.W([_.X({selector:_.TI}),_.Q("design:type",Boolean)],n5.prototype,"isFullscreen",void 0);_.W([_.X({selector:_.aM}),_.Q("design:type",Boolean)],n5.prototype,"isTheaterMode",void 0);_.W([_.X(),_.Q("design:type",Object)],n5.prototype,"activeNowPlayingRenderer",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],n5.prototype,"moveThreeDotMenuToTopRow",null);
_.W([_.a("data","autoplayData","playlistLoopStateEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],n5.prototype,"nextVideoTitle",null);_.W([_.a("data","nextVideoTitle"),_.Q("design:type",String),_.Q("design:paramtypes",[])],n5.prototype,"nextVideoLabel",null);_.W([_.a("collapsed"),_.Q("design:type",String),_.Q("design:paramtypes",[])],n5.prototype,"buttonAriaLabel",null);
_.W([_.a("data","playlistId","longBylineText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],n5.prototype,"mixLongByLine",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],n5.prototype,"playlistLoopStateEntityKey",null);_.W([_.dz("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"onMouseEnter",null);
_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"onMouseLeave",null);_.W([_.X({reflectToAttribute:!0}),_.a("data","collapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],n5.prototype,"showNextVideoHeader",null);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"onRenderStamperFinished",null);
_.W([_.gz("collapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"collapseChanged",null);_.W([_.gz("hidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"hiddenChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"dataChanged",null);
_.W([_.a("isTheaterMode","isFullscreen"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],n5.prototype,"isFullBleedPlayer",null);_.W([_.gz("isTheaterMode","isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"onFullBleedPlayerChanged",null);_.W([_.gz("isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"onFullscreenChanged",null);
_.W([_.gz("playerState","miniplayerIsActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"updateNowPlayingOverlay",null);_.W([_.dz("yt-playlist-lockup-now-playing-active"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],n5.prototype,"onPlaylistLockupNowPlaying",null);
_.W([_.gz("data","isDarkTheme"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],n5.prototype,"colorPaletteChanged",null);_.W([_.en({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],n5);
_.TDz=_.td()(n5,"ytd-playlist-panel-renderer",function(){if(b85===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);b85=N}N=b85;return N},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var wl5;var Ww=function(){return _.k.apply(this,arguments)||this};
_.p(Ww,_.k);Ww.prototype.computeShouldButtonBeVertical=function(N,t){return N||t};
Ww.prototype.onYtServiceRequestSent=function(N,t){(N=_.M(t.endpoint,_.xg))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.uF("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:N.status})):this.handleLikeEndpoint(N))};
Ww.prototype.computelikeStatusEntityKey=function(N){return N==null?void 0:N.likeStatusEntityKey};
Ww.prototype.handleLikeEndpoint=function(N){N.status==="LIKE"?this.JSC$17395_ytdDislikeToggleButtonRenderer.toggle(!1):N.status==="DISLIKE"?this.JSC$17395_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17395_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17395_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.cv.Object.defineProperties(Ww.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var N;return d6t(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(N=this.likeStatusEntity)==null?void 0:N.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var N;if(this.data&&((N=this.data)==null||!N.hideDislikeButton)){var t;return d6t(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(t=this.likeStatusEntity)==null?void 0:t.likeStatus)}}}});
Ww.prototype.onYtServiceRequestSent=Ww.prototype.onYtServiceRequestSent;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Ww.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ww.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Ww.prototype,"vertical",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],Ww.prototype,"textTransform",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Ww.prototype,"useShortsIcon",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Ww.prototype,"underIconLabel",void 0);_.W([_.X({value:"left"}),_.Q("design:type",String)],Ww.prototype,"buttonTooltipPosition",void 0);_.W([_.X(),_.Q("design:type",Object)],Ww.prototype,"overrides",void 0);
_.W([_.B2("#like-button"),_.Q("design:type",Object)],Ww.prototype,"JSC$17395_ytdLikeToggleButtonRenderer",void 0);_.W([_.B2("#dislike-button"),_.Q("design:type",Object)],Ww.prototype,"JSC$17395_ytdDislikeToggleButtonRenderer",void 0);_.W([_.a("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ww.prototype,"likeButton",null);
_.W([_.a("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ww.prototype,"dislikeButton",null);_.W([_.X({computed:"computelikeStatusEntityKey(data)"}),_.Q("design:type",String)],Ww.prototype,"likeStatusEntityKey",void 0);_.W([_.X({selectorArgs:["likeStatusEntityKey"],selector:e9}),_.Q("design:type",Object)],Ww.prototype,"likeStatusEntity",void 0);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],Ww.prototype,"onYtServiceRequestSent",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Ww);
var erz=_.td()(Ww,"ytd-like-button-renderer",function(){if(wl5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);wl5=N}N=wl5;return N},{mode:1});_.P9J={};
_.P9J.YtConditionalRendererBehavior=[_.G.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(N,t){var O=this,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:if(!t)return O.hidden=!0,O.showSpinner=!1,Z.return();if((H=N)==null?0:(A=H.visibilityCondition)==null?0:A.mode)switch(N.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return Z.jumpTo(5);default:return Z.jumpTo(6)}O.showSpinner=
!1;O.hidden=!0;return Z.yield(O.shouldShow_(N),4);case 4:O.hidden=!Z.yieldResult;Z.jumpTo(0);break;case 5:return Z.yield(O.shouldShow_(N),8);case 8:O.showSpinner=Z.yieldResult;O.hidden=!1;Z.jumpTo(0);break;case 6:return O.showSpinner=!1,Z.yield(O.shouldShow_(N),9);case 9:O.hidden=!Z.yieldResult,_.Ty(Z)}})},
shouldShow_:function(N){return N&&N.supportedDatas&&N.supportedDatas.rendererVisibilityConditionData&&N.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(N.supportedDatas.rendererVisibilityConditionData.showIf):N&&N.visibilityCondition&&N.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(N.visibilityCondition.showIf):N&&N.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(N.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(N){switch(N){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(N){switch(N){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var N=_.sl(this.hostElement,"yt-get-mdx-status");return N.length==1&&N[0].connected},
isLocationPermissionGranted_:function(){var N;return _.K(function(t){return t.nextAddress==1?navigator.permissions?t.yield(navigator.permissions.query({name:"geolocation"}),3):t.jumpTo(2):t.nextAddress!=2?(N=t.yieldResult,t.return(Promise.resolve(N.state==="granted"))):t.return(Promise.resolve(!1))})}}];var Xlx=kJz("yt-icon",{callbackProps:["onKeydown"]}),xmr=_.h("kevlar_use_wil_icons")?_.q(function(N){var t=N.icon;var O=N.active;var H=N.className;var A=N.style;var Z=N.title;var U=N.size;var C=N.dataSelected;var F=N.dataDisabled;var g=N.role;var B=N.themeOverride;var c=N.animateIcon;var u=N.ariaHidden;var S=N.ariaExpanded;var b=N.ariaLabel;var z=N.tabindex;var w=N.id;var P=N.iconFilter;var x=N.gradientColor;var l=N.onKeydown;var I=function(){var J=t==null?void 0:t(),CN=null,B4=void 0;J&&(J=BUf(J),
J=dr9(J),J.length&&(CN=J[1],B4=J[0]));return{iconName:CN,iconSetName:B4}},r=function(){return cUS(I().iconName,O==null?void 0:O(),void 0,U==null?void 0:U(),I().iconSetName,_.cY().resolve(_.D5))},E=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:P==null?void 0:P(),iconColor:x==null?void 0:x()}};
return _.d(_.y,{cond:c,then:function(){return _.d(Xlx,{icon:t,active:O,className:H,style:A,title:Z,dataSelected:C,dataDisabled:F,role:g,themeOverride:B,ariaHidden:u,ariaExpanded:S,ariaLabel:b,tabindex:z,id:w,iconFilter:P,gradientColor:x,onKeydown:l})},
else:function(){return _.d(_.y,{cond:r,then:function(J){return _.d("span",{class:_.V7("ytIconWrapperHost",H),role:g,"aria-label":b,"aria-hidden":u,tabindex:function(){return isNaN(Number(z==null?void 0:z()))?void 0:Number(z==null?void 0:z())},
id:w,style:A,title:Z,"on:keydown":_.Ui(function(CN){return void(l==null?void 0:l(CN))})},_.d(_.h4,{data:J,
options:E}))}})}})},"lg"):Xlx;var kNO=function(N){var t=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];$2g();_.Ba("ytglobal.ytUtilActivityCallback_",function(){_.Np(N,"yt-user-activity")});
new cX(function(){return t.JSC$17412_onMouseMove});
document.addEventListener("scroll",function(){return t.onScroll});
window.addEventListener("resize",function(){return t.onResize})},q1J=function(N,t,O){t in N.eventJobIds||(O=_.zh().addLowPriorityJob(function(){_.$3();
delete N.eventJobIds[t]},O),N.eventJobIds[t]=O)};
kNO.prototype.onScroll=function(N){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):N.target===document&&q1J(this,"scroll",200)};
kNO.prototype.onResize=function(){q1J(this,"resize",200)};
kNO.prototype.JSC$17412_onMouseMove=function(){q1J(this,"mousemove",100)};
_.Lc=function(N){N.scrollEventsToIgnore+=1;N.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){N.scrollEventsToIgnore--},500))};var fur=function(N){this.element=N;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
fur.prototype.showFeedbackDialog=function(N,t,O,H){var A=nwi();if(!A)return!1;var Z=MaS();Z.productId=A;t&&(Z.flow="submit",Z.report={description:t});O&&(nwi()==="59"?Z.callback=_.oo(function(){_.E7("userFeedbackEvent",{});O()}):Z.callback=_.oo(O));
Z.bucket=H||_.Ro("GOOGLE_FEEDBACK_BUCKET","Other");WA5(Z);N=rRm(this,"GFEEDBACK",N);try{_.upX(Z,N)}catch(U){return _.JO(U),!1}return!0};
fur.prototype.showHelpDialog=function(N,t,O){var H=this,A=nwi();if(!A)return!1;var Z={helpCenterPath:"/youtube",productData:rRm(this,"GUIDED_HELP",O)};WA5(Z);var U=MaS();U.context=N||Z.productData.context||"default";U.defaultHelpArticleId=t;U.enableSendFeedback=!0;(_.s2("gapi.load")||function(C,F){return F()})("client",function(){try{var C=paa(A,Z);
if(_.h("web_always_load_chat_support")&&!H.chatSupportLoaded)try{C.JSC$10130_loadChatSupport(U),H.chatSupportLoaded=!0}catch(F){}C.startHelp(U)}catch(F){_.JO(F)}})};
var nwi=function(){var N=_.Ro("GOOGLE_FEEDBACK_PRODUCT_ID");N||_.JO(Error("gi"));return N},WA5=function(N){N&&(N.locale=_.h("kevlar_help_use_locale")?_.Ro("INNERTUBE_CONTEXT_HL","en"):_.Ro("HTML_LANG","en"))},rRm=function(N,t,O){var H=N.productData;
delete H.origin;H.device=_.$x();var A;a:{if(A=document.createElement("canvas")){var Z=A.getContext("experimental-webgl",{stencil:!0});if(Z){var U=Z.getExtension("WEBGL_debug_renderer_info");if(U){A=Z.getParameter(U.UNMASKED_RENDERER_WEBGL);break a}}if(Z=A.getContext("webgl")){A=Z.getParameter(Z.RENDERER);break a}}A=null}H.gpu=A;H.isSDC=!!_.Ro("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(A=_.Ro("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.WW.extend(H,A);_.SBx(t,H);_.h04(H);(N=_.Np(N.element,"yt-get-autonav-pause-debug-state"))&&
N.length&&(H.autonav_pause_state=N[0]);N=_.Ti();H.browser_resolution=N.width+"\u00d7"+N.height+"@"+(window.devicePixelRatio||1)+"x";O&&_.WW.extend(H,O);return H};
fur.prototype.resetProductData=function(){this.productData={}};var Iu1=function(N){this.feedbackManager=new fur(N)};
Iu1.prototype.showFeedbackDialog=function(N,t,O,H){return this.feedbackManager.showFeedbackDialog(N,t,O,H)};
Iu1.prototype.showHelpDialog=function(N,t,O){return this.feedbackManager.showHelpDialog(N,t,O)};var luz=function(){this.baseUrl="";this.aTag=document.createElement("a")},G7E=function(N,t,O){O=O===void 0?{}:O;
O.pbj||(O.pbj=1);O=_.NZg(t,O);N.baseUrl&&O&&!_.KF(O)[1]&&!_.Fe(O)&&(t=N.baseUrl,Vv(t,"/")&&(t=t.slice(0,-1)),_.Zp(O,"/")&&(O=O.slice(1)),O=t+"/"+O);Rd(N.aTag,_.Wl(O||""));return N.aTag.href};
luz.prototype.fetchData=function(N){return _.BoN(N)};
luz.prototype.postData=function(N,t){var O={method:"POST"};if(t){for(var H=_.D(Object.keys(t)),A=H.next();!A.done;A=H.next()){A=A.value;var Z=t[A];_.mG(Z)&&(t[A]=JSON.stringify(Z))}O.postParams=t}return _.BoN(N,O)};
_.R6_=function(N,t,O,H,A){N=G7E(N,t,O);if(!N)throw H=Error("hi"),Object.assign(H,{params:t}),H;return _.BoN(N,A,H)};
luz.prototype.requestDataForServiceEndpoint=function(N,t){if(_.M(N,_.uDQ))return this.fetchData("/getAccountSwitcherEndpoint");t=t||{};var O=_.M(N,adY);O?t.se=O.base64EncodedServiceEndpoint:t.sej=JSON.stringify(N);(O=_.z8())&&_.h("enable_service_ajax_csn")&&(t.csn=O);t.theme=_.qL();_.M(N,jYp)&&_.Ro("DELEGATION_CONTEXT")&&(t.delegation_context=JSON.stringify(_.Ro("DELEGATION_CONTEXT")));O=null;for(var H in N)if(Vv(H,"Endpoint")||Vv(H,"Command")){O=H;break}if(!O){var A=Error("ii");Object.assign(A,{params:N});
_.J4t(A,"WARNING");return new _.TW(function(U,C){C(A)})}H={name:O};
var Z;(O=(Z=_.M(N,_.VZ))==null?void 0:Z.signal)&&(H.signal=O);(Z=_.D9(window.location.href))&&Z.internalcountrycode&&(H.internalcountrycode=Z.internalcountrycode);Z="/service_ajax";_.h("debug_forward_web_query_parameters")&&(Z=_.ybS(Z,window.location.search));Z=_.CF(Z,H);N.clickTrackingParams&&_.m2(Z,{itct:N.clickTrackingParams});return this.postData(Z,t)};_.Qd5=new _.dk("GFEEDBACK_TOKEN");var mmJ;var Ew5;var GNf;var Rrm;var r1=function(){var N=_.k.apply(this,arguments)||this;N.compact=!1;N.dismissButtonDisabled=!1;N.shouldRenderReasonAsFormattedString=!_.h("web_player_error_message_reason_as_formatted_string_killswitch");return N};
_.p(r1,_.k);r1.prototype.computeHasIcon_=function(N){return!!N};
r1.prototype.isSignInIcon_=function(N){return N=="yt-icons:prompted_sign_in"};
r1.prototype.onDismissButtonClick=function(){var N=this,t=this.data.disableOnClick,O,H=(O=this.data.dismissButton)==null?void 0:O.buttonRenderer;t&&!this.dismissButtonDisabled&&H&&setTimeout(function(){N.dismissButtonDisabled=!0},0)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.P9J.YtConditionalRendererBehavior),_.Q("design:type",Object)],r1.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],r1.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.icon)"}),_.Q("design:type",Object)],r1.prototype,"icon_",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Q("design:type",Boolean)],r1.prototype,"hasIcon_",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Q("design:type",Boolean)],r1.prototype,"signInIcon_",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],r1.prototype,"compact",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],r1.prototype,"dismissButtonDisabled",void 0);
_.W([_.X({type:Boolean}),_.Q("design:type",Object)],r1.prototype,"shouldRenderReasonAsFormattedString",void 0);_.W([_.wz({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],r1);
_.n(r1,"yt-player-error-message-renderer",function(){if(Rrm===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;GNf===void 0&&(GNf=document.createElement("template"));var H=GNf;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Rrm=N}N=Rrm;return N},{mode:2});var vw5;var JRz;var I9=function(){return _.k.apply(this,arguments)||this};
_.p(I9,_.k);I9.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
I9.prototype.computeIcon_=function(N){return N?"yt-icons:"+N.iconType.toLowerCase():"error_outline"};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],I9.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.icon)"}),_.Q("design:type",Object)],I9.prototype,"icon_",void 0);_.W([_.wz({is:"yt-player-kav-renderer",disableElementRegistration:!0})],I9);
_.n(I9,"yt-player-kav-renderer",function(){if(JRz===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;vw5===void 0&&(vw5=document.createElement("template"));var H=vw5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);JRz=N}N=JRz;return N},{mode:2});var Llx=_.mp(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.o_(_.q(function(N){var t=_.Fy("div"),O=_.D(_.b$(0,void 0,"jxh75d")),H=O.next().value,A=O.next().value;O=_.D(_.b$(null,void 0,"F5Zm8"));var Z=O.next().value,U=O.next().value;_.Q8(function(){z0z(t.value,A,U);t.value.scrollIntoView()});
O=YBz.bind(null,N.data,H);_.$6("resize",function(){var C=Z();if(H()===1&&C!==null){var F;(F=window.grecaptcha)==null||F.reset(C)}});
return _.d("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.d("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.d("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var C,F;return(C=N.data().accessibility)==null?void 0:(F=C.accessibilityData)==null?void 0:F.label}),_.d(_.cu,{text:O,
className:_.V7("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.d("div",{el:t,class:"ytwPlayerCaptchaViewModelGridItem"})))},"mg"),"yt-player-captcha-view-model",{props:{data:_.R_}});var aMy=!1;_.owO=_.q(function(N){var t=N.data;return _.d("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.d(_.y,{cond:function(){return t().icon},
then:function(O){return _.d("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.d(_.Qt,{data:O,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.d(_.y,{cond:function(){return t().title},
then:function(O){return _.d("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.d(_.cu,{text:O}))}}),_.d(_.y,{cond:function(){return t().description},
then:function(O){return _.d("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.d(_.cu,{text:O}))}}),_.d(_.iF,{data:function(){return t().primaryButton}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
className:"interstitialViewModelFlexItem"})}}),_.d(_.iF,{data:function(){return t().secondaryButton}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
className:"interstitialViewModelFlexItem"})}}))},"ng");
_.owO.idomCompat=!0;var sdm=_.q(function(N){var t=N.data;_.ni();return _.d("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.d("div",{class:"playerInterstitialRendererScrim"},_.d(_.iF,{data:function(){return t().content}},{interstitialViewModel:_.owO})))},"og");
sdm.idomCompat=!0;_.o_(sdm,"yt-player-interstitial-renderer",{props:{data:_.$O}});var lV=function(){var N=_.k.apply(this,arguments)||this;N.noBackground=!1;N.compact=!1;N.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return N};
_.p(lV,_.k);lV.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"}}}};
lV.prototype.onUpdatePlayerErrorMessageCommand_=function(N){if(_.M(N,ITR)){var t;if(N=(t=_.M(N,ITR))==null?void 0:t.newPlayerErrorMessageRenderer)this.data=N}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],lV.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lV.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],lV.prototype,"status",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],lV.prototype,"noBackground",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],lV.prototype,"compact",void 0);_.W([_.wz({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],lV);
var NGx=_.td()(lV,"yt-playability-error-supported-renderers",function(){if(Ew5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;mmJ===void 0&&(mmJ=document.createElement("template"));var H=mmJ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Ew5=N}N=Ew5;return N},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var tV5=kJz("ytd-button-renderer");var Tog=void 0,e0l=void 0;var x6S=new K8p;var ZZ=new _.dk("ENTITY_STATE_TOKEN"),Qd=new _.dk("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var OUf=function(N){this.store=N;this.c6W=new _.g2r},PSx=function(N,t,O){var H,A;
if(!(A=((H=t.playabilityStatus)==null?void 0:H.status)!=="OK")){N=N.store;var Z;A=t.offlineState&&((Z=t.videoDetails)==null?0:Z.videoId)?_.h("enable_pl_r_c_cd")?n8x(N.getState().entities,t.videoDetails.videoId):!!gOl(N.getState().entities,t.videoDetails.videoId):!1}if(A)return!0;A=WlN(t);if(A===1){if(_.h("ab_v_vid_sig")){var U,C=(U=t.videoDetails)==null?void 0:U.videoId;if(!C||!O||C!==O){var F;t=new _.fF("282054944_vid",{x7e:O,oSY:(F=t.videoDetails)==null?void 0:F.videoId});_.R0(t)}}return!0}zvx=
0;var g,B;F=(C=t.auxiliaryUi)==null?void 0:(g=C.messageRenderers)==null?void 0:(B=g.bkaEnforcementMessageViewModel)==null?void 0:B.displayType;if(A!==3&&(F==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||F==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;F={reason:_.NE(_.CJ("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.h("ks_something_wrong_learn_more")?EaN("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.NE(_.CJ("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:_.NE("282054944")};HUm(t,{playerErrorMessageRenderer:F});return!1},XxN=function(N,t){if(Qfp(t)){_.dY(1,!0);
var O=(O=Qfp(t))&&_.wey()?O:void 0;O?(HUm(t,{enforcementMessageViewModel:O}),N.c6W.increment("IN_PLAYER"),_.dY(5)):(N.c6W.increment("SKIP_DISPLAY"),_.dY(2))}},HUm=function(N,t){N.playabilityStatus=Object.assign({},N.playabilityStatus,{status:"ERROR",
errorScreen:t});N.videoDetails=void 0};
OUf.prototype.handleResponse=function(N,t){if(N.playabilityStatus){var O,H,A,Z=(t==null?void 0:(O=t.innerTubeRequest)==null?void 0:O.videoId)||(t==null?void 0:(H=t.innerTubeRequest)==null?void 0:(A=H.playerRequest)==null?void 0:A.videoId);PSx(this,N,Z)&&XxN(this,N)}};
OUf[$v]=[ZZ];var wx4=new _.dk("ADBLOCK_DETECTION_SERVICE_TOKEN");var Qx=function(N){this.ypN=N};
Qx.prototype.bindInnertubeChallengeFetcher=function(N){this.ypN.bicf(N)};
Qx.prototype.registerChallengeFetchedCallback=function(N){this.ypN.bcr(N)};
Qx.prototype.getLatestChallengeResponse=function(){return this.ypN.blc()};var AY1;AY1=_.mp(["https://static.doubleclick.net/instream/ad_status.js"]);_.ZUi=_.ju(AY1);var Ck1;_.my=function(N,t,O){var H=this;this.network=N;this.options=t;this.networkStatusManager=O;this.pX=null;if(t.useBotguardEverywhere){var A=new _.CT;this.pX=A.promise;_.H4.ytAtRC&&_.MU(_.GB,function(){var Z,U;return _.K(function(C){if(C.nextAddress==1){if(!_.H4.ytAtRC)return C.return();Z=VVf(null);return C.yield(H.g6(Z),2)}U=C.yieldResult;_.H4.ytAtRC&&_.H4.ytAtRC(JSON.stringify(U));_.Ty(C)})});
m6S().then(function(Z){var U,C,F,g;return _.K(function(B){if(B.nextAddress==1)return Z.bindInnertubeChallengeFetcher(function(c){return H.g6(VVf(c))}),B.yield(ltM(),2);
U=B.yieldResult;C=Z.getLatestChallengeResponse();F=C.challenge;if(!F)throw Error("ji");g={challenge:F,tw:IE(F),vm:U,bgChallenge:new Wy};A.resolve(g);Z.registerChallengeFetchedCallback(function(c){c=c.challenge;if(!c)throw Error("ki");c={challenge:c,tw:IE(c),vm:U,bgChallenge:new Wy};H.pX=Promise.resolve(c)});
_.Ty(B)})})}else t.preload&&Dor(this,new Promise(function(Z){_.WX(_.GB,function(){Z(Uoq(H))},0)}))};
Ck1=function(N){var t={preload:!0,useBotguardEverywhere:!0},O=!1;if(typeof t==="boolean")var H={preload:t};else typeof t==="undefined"?H={preload:!0}:(H=t,O=!!t.wrW);t=O?void 0:new _.VN;_.my.instance=new _.my(N,H,t);return _.my.instance};
_.my.prototype.idR=function(){var N=this;return _.K(function(t){return t.nextAddress==1?t.yield(Promise.race([N.pX,null]),2):t.return(!!t.yieldResult)})};
_.my.prototype.fF2=function(N,t,O){var H=this,A,Z,U;return _.K(function(C){H.pX===null&&Dor(H,Uoq(H));A=!1;Z={};U=function(){var F,g,B;return _.K(function(c){switch(c.nextAddress){case 1:return c.yield(H.pX,2);case 2:F=c.yieldResult;Z.challenge=F.challenge;if(!F.vm){"c1a"in F.tw&&(Z.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");c.jumpTo(3);break}g=Object.assign({},{c:F.challenge,e:N},t);_.Mo(c,4);A=!0;return c.yield(F.vm.snapshot({iF:g}),6);case 6:(B=c.yieldResult)?Z.webResponse=B:Z.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Do(c,3);break;case 4:_.ax(c),Z.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(N==="ENGAGEMENT_TYPE_PLAYBACK"){var u=F.tw,S={};if(u.c6a){var b=Number(_.Ro("DCLKSTAT",0));S.reportingStatus=String(Number(u.c)^(isNaN(b)?0:b))}u.c6b&&(S.broadSpectrumDetectionResult=String(Number(u.c)^Number(_.Ro("CATSTAT",0))));Z.adblockReporting=S}return c.return(Z)}})};
return C.return(Promise.race([U(),Knn(O,function(){var F=Object.assign({},Z);A&&(F.error="ATTESTATION_ERROR_VM_TIMEOUT");return F})]))})};
var VVf=function(N){var t={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};N&&(t.interpreterHash=N);return t},Uoq=function(N,t){t=t===void 0?0:t;
var O,H,A,Z,U,C,F,g,B,c,u,S;return _.K(function(b){switch(b.nextAddress){case 1:O=VVf(yeu().wFW);if(_.h("att_fet_ks"))return _.Mo(b,7),b.yield(N.g6(O),9);_.Mo(b,4);return b.yield(Fnm(N,O),6);case 6:U=b.yieldResult;A=U.pFg;Z=U.blT;H=U;_.Do(b,3);break;case 4:return _.ax(b),_.J_(Error("li`"+t)),do5(N,864E5),b.return({challenge:"",tw:{},vm:void 0,bgChallenge:void 0});case 9:H=b.yieldResult;if(!H)throw Error("mi");if(!H.challenge)throw Error("ni");A=H.challenge;Z=IE(A);if("c1a"in Z&&(!H.bgChallenge||!H.bgChallenge.program))throw Error("oi");
_.Do(b,3);break;case 7:C=_.ax(b);_.J_(C);t++;if(t>=5)return _.J_(Error("li`"+t)),do5(N,864E5),b.return({challenge:"",tw:{},vm:void 0,bgChallenge:void 0});F=1E3*Math.pow(2,t-1)+Math.random()*1E3;return b.return(new Promise(function(z){_.WX(_.GB,function(){z(Uoq(N,t))},F)}));
case 3:g=Qm9(Z);do5(N,g*1E3);B=void 0;if(!("c1a"in Z&&H.bgChallenge)){b.jumpTo(10);break}c=lMy(H.bgChallenge);_.Mo(b,11);return b.yield(ceS(yeu(),c),13);case 13:_.Do(b,12);break;case 11:return u=_.ax(b),_.J_(u),b.return({challenge:A,tw:Z,vm:B,bgChallenge:c});case 12:return _.Mo(b,14),B=new _.EP({challenge:c,eOu:{so:"aGIf"}}),b.yield(B.rCc,16);case 16:_.Do(b,10);break;case 14:S=_.ax(b),_.J_(S),B=void 0;case 10:return b.return({challenge:A,tw:Z,vm:B,bgChallenge:c})}})},gCm=function(N,t){var O;
return _.K(function(H){if(H.nextAddress==1)return le(2),_.Mo(H,2),H.yield(N.network.g6(t),4);if(H.nextAddress!=2)return(O=H.yieldResult)?O.challenge&&!O.bgChallenge?le(1):le(4):le(3),H.return(O);_.ax(H);le(3);return H.return(void 0)})};
_.my.prototype.g6=function(N){var t=this,O;return _.K(function(H){O=t.networkStatusManager;if(!O||O.isNetworkAvailable())return H.return(gCm(t,N));_.aX("att_pna",void 0,"attestation_challenge_fetch");return H.return(new Promise(function(A){O.listenOnce("publicytnetworkstatus-online",function(){gCm(t,N).then(A)})}))})};
var yYz=function(N){if(!N)throw Error("mi");if(!N.challenge)throw Error("ni");var t=N.challenge,O=IE(t);if("c1a"in O&&(!N.bgChallenge||!N.bgChallenge.program))throw Error("oi");return Object.assign({},N,{pFg:t,blT:O})},Fnm=function(N,t){var O,H,A,Z,U;
return _.K(function(C){switch(C.nextAddress){case 1:O=void 0,H=0,A={};case 2:if(!(H<5)){C.jumpTo(4);break}if(!(H>0)){C.jumpTo(5);break}A.mbO=1E3*Math.pow(2,H-1)+Math.random()*1E3;return C.yield(new Promise(function(F){return function(g){_.WX(_.GB,function(){g(void 0)},F.mbO)}}(A)),5);
case 5:return _.Mo(C,7),C.yield(N.g6(t),9);case 9:return Z=C.yieldResult,C.return(yYz(Z));case 7:O=U=_.ax(C),U instanceof Error&&_.J_(U);case 8:H++;A={mbO:void 0};C.jumpTo(2);break;case 4:throw O;}})},Dor=function(N,t){N.pX=t},BG5=function(N){var t,O,H;
return _.K(function(A){if(A.nextAddress==1)return A.yield(Promise.race([N.pX,null]),2);t=A.yieldResult;var Z=Uoq(N);N.pX=Z;(O=t)==null||(H=O.vm)==null||H.dispose();_.Ty(A)})},do5=function(N,t){var O=Date.now()+t,H=function(){var A;
return _.K(function(Z){A=O-Date.now();return A<1E3?Z.yield(BG5(N),0):(_.WX(_.GB,H,Math.min(A,6E4)),Z.jumpTo(0))})};
H()},Knn=function(N,t){return new Promise(function(O){_.WX(_.GB,function(){O(t())},N)})};var cYq=function(){};
cYq.prototype.processContext=function(N){var t=_.my.instance;if(!t)return _.bA();var O=oRN(N);return O?new Mc(t.fF2(O,R0z(N),500).then(function(H){var A;(N==null?0:(A=N.innerTubeRequest)==null?0:A.context)||(N.innerTubeRequest.context={});A=N.innerTubeRequest.context;A.request||(A.request={});A.request.attestationResponseData=H})):_.bA()};var $on=function(N){this.innertubeTransportService=N};
$on.prototype.g6=function(N){_.aX("att_fsr",void 0,"attestation_challenge_fetch");return _.cT(this.innertubeTransportService,N,_.JB(_.RWf)).then(function(t){_.aX("att_frr",void 0,"attestation_challenge_fetch");return t})};_.jx5=function(N){this.innertubeTransportService=N};var iUn=new _.dk("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var u1i=function(){},hUq=function(N,t,O,H,A){var Z=_.Ro("YPC_MB_URL");
_.k3t(Z).then(function(){SGz(Z,N,t,O,H,A)})},SGz=function(N,t,O,H,A,Z){try{var U=_.Jq.payments.business.integration,C=_.Jq.payments.business.integration.Style.create().withMaterialDesignStyle(),F=U.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.h("enable_window_constrained_buy_flow_dialog")&&(F=F.usingPopupStyle("windowConstrained"));Z&&(F=F.usingCloseCallback(Z));var g=O?O:_.Ro("YPC_GB_LANGUAGE"),B=_.Ro("SESSION_INDEX");U.bootstrap.fromPaymentsUrl(N);U.bootstrap.asMashupMode(F).usingGaiaIndex(B).usingLocale(g).usingStyle(C).usingDefaultActivityStatusChangeHandler().inStandaloneContext(U.standaloneContextAuthId.forGaia()).purchaseManager(t,function(c){H&&H(c)}).load(void 0,A)}catch(c){throw A&&A(c),_.R0(c),c;
}};var MVf=new _.dk("PURCHASE_MANAGER_TOKEN");var bUJ=function(){var N=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return N.videos},
getContinuationsPresent:function(){return N.continuationsPresent},
setVideos:function(t){N.videos=t},
getRecommendedVideos:function(){return N.recommendedVideos},
setRecommendedVideos:function(t){N.recommendedVideos=t}}};
bUJ.prototype.addVideos=function(N){N&&(this.videos=N.filter(function(t){return!!_.NTN(t)}).map(function(t){var O=_.NTN(t);
a:{var H;if(t.playlistVideoRenderer&&((H=t.playlistVideoRenderer)==null?0:H.voteSortTiebreaker))var A=t.playlistVideoRenderer.voteSortTiebreaker;else{if(_.M(t,E9)){var Z;if(H=(A=_.M(t,E9))==null?void 0:(Z=A.playlistItemData)==null?void 0:Z.voteSortTiebreaker){A=H;break a}}A=""}}return{itemId:O,videoId:_.HGN(t),voteCount:_.AF4(t),voteSortTiebreaker:A}}),this.continuationsPresent=!!_.M(N[N.length-1],_.vy))};
var p65=function(N,t){return N.videos.findIndex(function(O){return O.itemId===t})},Lnq=function(N,t){return N.recommendedVideos.findIndex(function(O){return O.itemId===t})},zUf=function(N){N={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:N}}}}};_.cY().resolve(_.jo).resolveCommand(N)};var YGr=function(){bUJ.apply(this,arguments)};
_.p(YGr,bUJ);
var Rlu=function(N,t,O,H){if(!N.parentElem)throw Error("ti");var A=p65(N,t);A===-1&&(A=Lnq(N,t),A=A!==-1?A+N.videos.length:-1);if(A===-1)throw Error("ui");var Z=A>=N.videos.length?N.recommendedVideos[A-N.videos.length]:N.videos[A];Z.voteCount=O;Z.voteSortTiebreaker=Date.now().toString();A>=N.videos.length?N.recommendedVideos.splice(A-N.videos.length,1):N.videos.splice(A,1);var U=N.videos;for(var C=0,F=U.length-1;C<=F;){var g=Math.floor((C+F)/2);if(U[g].voteCount<Z.voteCount)F=g-1;else if(U[g].voteCount>Z.voteCount)C=
g+1;else{a:{var B=Z.voteSortTiebreaker;var c=U[g].voteSortTiebreaker;if(B.length!==c.length)B=B.length>c.length;else{for(var u=0;u<B.length;u++){var S=B.charCodeAt(u),b=c.charCodeAt(u);if(S>b){B=!0;break a}if(S<b)break}B=!1}}B?F=g-1:C=g+1}}U=C;if(U===-1)throw Error("vi");N.videos.splice(U,0,Z);A!==U&&axO(N,A,U,t,O,H)},axO=function(N,t,O,H,A,Z){var U,C=(U=N.parentElem)==null?void 0:U.children,F=Math.min(t,O),g=Math.max(t,O);
if(C)for(U=F;U<=g;U++)C[U].style.viewTransitionName="item-"+String(U);document.startViewTransition(function(){if(N.parentElem){var B=N.parentElem.children;if(!(!B||t<0||t>=B.length||O<0||O>=B.length)){var c=B[t];if(c){c.remove();N.showRefreshPill=O>=N.videos.length-1&&N.continuationsPresent;if(!N.showRefreshPill){B=B[O]||null;var u;(u=N.parentElem)==null||u.insertBefore(c,B)}_.or(N.parentElem,"yt-update-video-data-voting-animation",{toIdx:O,itemId:H,newVoteCount:A,voteStatus:Z,hideItem:N.showRefreshPill})}}}}).finished.then(function(){if(C)for(var B=
F;B<=g;B++)C[B].style.viewTransitionName="";
if(N.showRefreshPill)zUf(_.CJ("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var c;if(c=B=(c=N.parentElem)==null?void 0:c.children[O])c=B.getBoundingClientRect(),B=c.bottom,c=!(c.top>=0&&B<=N.clientHeight);c&&(c=_.KJ(t>O?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(t-O)),zUf(c))}})};var eUJ=function(N,t){var O=this;N?this.innertubeTransportServicePromise=Promise.resolve(N):t&&(this.innertubeTransportServicePromise=t(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new a9(3E3,function(H){return TGf(O,H)},0);
this.validateMiniAppVideoIdRateLimiter=new a9(3E3,function(H){return w6n(O,H)},1)},Dm1=function(N,t){N.JSC$17526_miniAppId=t;
N.reportMiniAppValueRateLimiter=new a9(3E3,function(O){return TGf(N,O)},0);
N.validateMiniAppVideoIdRateLimiter=new a9(3E3,function(O){return w6n(N,O)},1)},C91=function(N,t){var O;
return _.K(function(H){if(H.nextAddress==1)return H.yield(N.reportMiniAppValueRateLimiter.call(t),2);O=H.yieldResult;return H.return([O,t])})},TGf=function(N,t){var O,H,A,Z,U,C,F;
return _.K(function(g){switch(g.nextAddress){case 1:return g.yield(N.innertubeTransportServicePromise,2);case 2:return O=g.yieldResult,H=_.JB(tdr),A=Date.now(),Z={externalPostId:N.JSC$17526_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(A/1E3),nanos:Math.round(A%1E3*1E6)},intValue:""+t}},_.Mo(g,3),g.yield(_.cT(O,Z,H),5);case 5:U=g.yieldResult;_.Do(g,4);break;case 3:throw C=_.ax(g),C;case 4:if(U){if("error"in U&&U.error)throw U.error;if(U.errorMetadata)throw Error("wi`"+
U.errorMetadata.status);if(F=U.userStatResult)return g.return(F);throw Error("xi");}throw Error("yi");}})},FAx=function(N){var t,O,H,A,Z;
_.K(function(U){switch(U.nextAddress){case 1:return U.yield(N.innertubeTransportServicePromise,2);case 2:return t=U.yieldResult,O=_.JB(tdr),H={externalPostId:N.JSC$17526_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Mo(U,3),U.yield(_.cT(t,H,O),5);case 5:A=U.yieldResult;_.Do(U,4);break;case 3:throw Z=_.ax(U),Z;case 4:if(A==null)throw Error("yi");if("error"in A&&A.error)throw A.error;if(A.errorMetadata)throw Error("wi`"+A.errorMetadata.status);_.Ty(U)}})};
eUJ.prototype.flush=function(){var N=this;return _.K(function(t){return t.nextAddress==1?t.yield(N.reportMiniAppValueRateLimiter.flush(),2):t.yield(N.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var KAq=function(N,t){return _.K(function(O){return O.nextAddress==1?O.yield(N.validateMiniAppVideoIdRateLimiter.call(t),2):O.return(O.yieldResult)})},w6n=function(N,t){var O,H,A,Z,U,C;
return _.K(function(F){switch(F.nextAddress){case 1:return F.yield(N.innertubeTransportServicePromise,2);case 2:return O=F.yieldResult,H=_.JB(ETr),A={videoId:t},_.Mo(F,3),F.yield(_.cT(O,A,H),5);case 5:Z=F.yieldResult;_.Do(F,4);break;case 3:throw U=_.ax(F),U;case 4:if(Z){if("error"in Z&&Z.error)throw Z.error;if(Z.errorMetadata)throw Error("wi`"+Z.errorMetadata.status);if(C=Z.playabilityStatus)return F.return(C.status);throw Error("zi");}throw Error("yi");}})};
eUJ[$v]=[_.BY(_.Sc),_.BY(T7S)];var Pk1=function(){this.clientData=new Map};
Pk1.prototype.getData=function(N){return this.clientData.get(N)};var X65=function(N){this.store=N};
X65.prototype.handleResponse=function(N){(N=_.M(N.frameworkUpdates,mB))&&_.yP(N,this.store)};
X65[$v]=[_.VT];var xo5=new _.dk("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var kyJ,qGJ,fxf;_.EZ=new _.dk("FLOW_STATE_MANAGER_TOKEN");kyJ=function(){this.flowStates=new Map};
qGJ=function(N,t){N=_.D(N.flowStates.values());for(var O=N.next();!O.done;O=N.next())if(O=O.value,O.flowRenderer.targetId===t)return O};
fxf=function(N,t){var O,H=((O=N.flowRenderer.steps)!=null?O:[]).filter(function(A){return!t.includes(_.M(A,_.o$).stepId)});
N.flowRenderer.steps=H};var nCx=function(N){this.JSC$17550_flowStateManager=N};
_.p(nCx,jQ);nCx.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C;return _.K(function(F){O=_.M(N,Vfu);A=(H=O)==null?void 0:H.stepIds;U=(Z=O)==null?void 0:Z.targetId;if(!A||!U)return F.return();C=qGJ(t.JSC$17550_flowStateManager,U);if(!C)return F.return();fxf(C,A);_.Ty(F)})};
var Gs=function(){nCx.apply(this,arguments)};
_.p(Gs,nCx);Gs[$v]=[_.EZ];var Wnx=function(N,t){this.JSC$17556_reduxStore=N;this.JSC$17556_flowStateManager=t};
_.p(Wnx,jQ);
Wnx.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u,S,b;return _.K(function(z){O=_.M(N,_.DSy);H=O.stepId;A=O.targetId;Z=qGJ(t.JSC$17556_flowStateManager,A);C=(U=Z)==null?void 0:U.flowRenderer;F=C.flowStateEntityKey;g=_.Gn(t.JSC$17556_reduxStore.getState(),F);if(!g)return z.return();B=g.currentStepId;S=(u=(c=g)==null?void 0:c.stepIdStack)!=null?u:[];b=B===S[S.length-1]?H:B;t.JSC$17556_reduxStore.dispatch(_.aE("flowStateEntity",F,{currentStepId:H,stepIdStack:[b]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Ty(z)})};
var R9=function(){Wnx.apply(this,arguments)};
_.p(R9,Wnx);R9[$v]=[_.VT,_.EZ];var rYi=function(N,t,O){this.JSC$17563_reduxStore=N;this.JSC$17563_flowStateManager=t;this.JSC$17563_commandHandler=O};
_.p(rYi,jQ);
rYi.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u,S,b,z;return _.K(function(w){H=_.M(N,_.USB);A=H.targetId;Z=qGJ(O.JSC$17563_flowStateManager,A);C=(U=Z)==null?void 0:U.flowRenderer;F=C.flowStateEntityKey;g=_.Gn(O.JSC$17563_reduxStore.getState(),F);u=[].concat(_.W6((c=(B=g)==null?void 0:B.stepIdStack)!=null?c:[]));S=u.pop();((b=g)==null?void 0:b.currentStepId)===S&&(S=u[u.length-1]);if(!S)return(z=H.onFirstStepCommand)&&O.JSC$17563_commandHandler.resolveCommand(z,t),w.return();
O.JSC$17563_reduxStore.dispatch(_.aE("flowStateEntity",F,{currentStepId:S,stepIdStack:u}));_.Ty(w)})};
var vw=function(){rYi.apply(this,arguments)};
_.p(vw,rYi);vw[$v]=[_.VT,_.EZ,_.jo];var Ixr=function(N,t){this.innertubeTransportService=N;this.JSC$17568_commandHandler=t};
_.p(Ixr,jQ);Ixr.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1){H=_.M(N,CKE);if(!H)return F.return();_.Mo(F,2);return F.yield(_.rq(O.innertubeTransportService,N),4)}if(F.nextAddress!=2){A=F.yieldResult;if(!A)return F.return();(Z=A.updateFlowCommand)&&O.JSC$17568_commandHandler.resolveCommand(Z,t);return _.Do(F,0)}_.ax(F);(C=(U=H)==null?void 0:U.onFailureCommand)&&O.JSC$17568_commandHandler.resolveCommand(C,t);_.Ty(F)})};
var J0=function(){Ixr.apply(this,arguments)};
_.p(J0,Ixr);J0[$v]=[_.Sc,_.jo];var lxO=function(N,t){this.JSC$17574_flowStateManager=N;this.JSC$17574_commandHandler=t};
_.p(lxO,jQ);
lxO.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U;return _.K(function(C){H=_.M(N,_.FVE);A=H.targetId;Z=qGJ(O.JSC$17574_flowStateManager,A);if(!Z)return C.return(Promise.resolve());var F=Z,g=(U=H.steps)!=null?U:[],B,c=(B=F.flowRenderer.steps)!=null?B:[];g=[].concat(_.W6(c),_.W6(g));F.flowRenderer.steps=g;H.flowContinuationCommand&&(Z.flowRenderer.flowContinuationCommand=H.flowContinuationCommand);H.entityUpdateCommand&&O.JSC$17574_commandHandler.resolveCommand(H.entityUpdateCommand,t);
return C.return(Promise.resolve())})};
var o9=function(){lxO.apply(this,arguments)};
_.p(o9,lxO);o9[$v]=[_.EZ,_.jo];var Qx5={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]],google_messages:[[0,1,192]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var mo1=new _.dk("ICON_SET_TOKEN"),EC1=new _.dk("ICON_URL_PROVIDER_TOKEN"),Gyn=new _.dk("PREFETCH_ICONS_TOKEN"),RUm=new _.dk("ICON_MAP_FN_TOKEN");var sZ={},vC5=(sZ.ACCESS_TIME="clock",sZ.ACCOUNT_BOX=_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",sZ.ACCOUNT_BOX_CAIRO="person_account_cairo",sZ.ACCOUNT_CIRCLE="person_circle",sZ.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",sZ.ACCOUNT_LINKED="account_link_success",sZ.ACCOUNT_UNLINKED="account_link",sZ.ADD_FRIEND="people",sZ.ADD_MODERATOR="shield_add",sZ.ADD_TO_LIBRARY="bookmark",sZ.ADD_TO_PLAYLIST="add",sZ.ADD_TO_QUEUE_TAIL="list_queue",sZ.ADD_TO_REMOTE_QUEUE="list_music",
sZ.ADD_TO_WATCH_LATER="clock",sZ.ADD_VIDEO_LINK="film_strip_add",sZ.ALERT_WARN_RED="alert_triangle",sZ.ARROW_BACK="arrow_left",sZ.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",sZ.ARROW_DROP_DOWN="chevron_down",sZ.ARROW_DROP_UP="chevron_up",sZ.ARROW_FORWARD="arrow_right",sZ.ARTIST="person_music",sZ.AUDIOTRACK="audio",sZ.AUTO_AWESOME="sparkle",sZ.AVATAR_ANONYMOUS="person_circle",sZ.AVATAR_LOGGED_OUT="person_circle",sZ.BACK="arrow_left",sZ.BAR_CHART="bar_graph",sZ.BLOCK="slash_circle_left",
sZ.BLOCK_USER="slash_circle_left",sZ.BOOKMARK_BORDER="bookmark",sZ.BREAKING_NEWS_ALT_1="article_alert",sZ.BROADCAST_CAIRO="podcast_cairo",sZ.BUG_REPORT="bug",sZ.CAMERA_ALT="camera",sZ.CAMPAIGN="megaphone",sZ.CANCEL="x_circle",sZ.CAPTIONS="closed_caption",sZ.CAST_OUTLINE="chromecast",sZ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",sZ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",sZ.CHAT="message_bubble_left",sZ.CHAT_BUBBLE="message_bubble_empty",sZ.CHAT_SPARK="spark_message_bubble_left",sZ.CHECK_BOX_OUTLINE_BLANK=
"box_empty",sZ.CHECK_CIRCLE_OUTLINE="check_circle",sZ.CHECK_CIRCLE_THICK="check_circle",sZ.CLARIFY="article_clarify",sZ.CLOSED_CAPTION_SELECTED="closed_caption",sZ.CLOSE="x_mark",sZ.CLOUD_UPLOAD="cloud_arrow_up",sZ.COLLAPSE="chevron_up",sZ.COLLAPSE_CAIRO="chevron_up_cairo",sZ.COLLECTION="layers",sZ.COLOR_LENS="palette",sZ.COMMENT="message_bubble_right",sZ.CONSENT_SHIELD="person_shield",sZ.CONTENT_CUT="scissors",sZ.CONTENT_CUT_CAIRO="scissors_cairo",sZ.COURSE=_.h("web_enable_course_icon_update")?"creator_academy":
"lightbulb",sZ.COURSE_CAIRO=_.h("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",sZ.CREATION_LIVE="radar_live",sZ.CREATION_POST="box_pencil",sZ.CREATION_UPLOAD="my_videos",sZ.CREATION_UPLOAD_RED="upload",sZ.CREATOR_METADATA_MONETIZATION="dollar_sign",sZ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",sZ.CREATOR_STUDIO="youtube_studio",sZ.DASHBOARD="grid_asymmetrical",sZ.DELETE="trash_can",sZ.DELETE_SWEEP="trash_can",sZ.DESKTOP="laptop",sZ.DISLIKE="thumb_down",sZ.DISLIKE_SELECTED=
"thumb_down",sZ.DISMISSAL="x_mark",sZ.DISMISS_QUEUE="list_remove",sZ.DONE_ALL="check_double",sZ.DOWN_ARROW="arrow_down",sZ.DO_NOT_DISTURB="slash_circle_left",sZ.DRAFT="paper_corner_folded",sZ.DRAG_HANDLE="bars_2",sZ.EDIT="pencil",sZ.EMOJI="face_very_happy",sZ.EMOJI_FLAGS="flag",sZ.EMOJI_OBJECTS="lightbulb",sZ.EMOJI_PEOPLE="face_very_happy",sZ.EMOJI_RECENT="clock",sZ.EMPTY_HEART="heart",sZ.EMPTY_LIKE="thumb_up",sZ.ERROR_BLACK="alert_circle",sZ.ERROR_OUTLINE="alert_circle",sZ.EXIT_APP="arrow_in",sZ.EXIT_TO_APP=
"arrow_in",sZ.EXPAND="chevron_down",sZ.EXPAND_ALL="chevron_expand",sZ.EXPAND_CAIRO="chevron_down_cairo",sZ.EXPAND_LESS="chevron_up",sZ.EXPAND_MORE="chevron_down",sZ.EXPLORE="compass",sZ.EXPLORE_DESTINATION="compass",sZ.EXTERNAL_LINK="open_new",sZ.FAB_UPLOAD="upload",sZ.FACE_HAPPY_OUTLINE="face_happy",sZ.FACT_CHECK="article_check",sZ.FASHION_LOGO="fashion",sZ.FASHION_LOGO_CAIRO="fashion_cairo",sZ.FAVORITE="heart",sZ.FEEDBACK="message_bubble_alert",sZ.FEEDBACK_CAIRO="message_bubble_alert_cairo",sZ.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",sZ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",sZ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",sZ.FILTER="menu_filter",sZ.FIRST_PAGE="chevron_first",sZ.FLAG="flag",sZ.FULL_HEART="heart",sZ.GAME_CONSOLE_DPAD="game_console_dpad",sZ.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",sZ.GAMING_LOGO="gaming",sZ.GAMING_LOGO_CAIRO="gaming_cairo",sZ.GO_TO_PAGE="arrow_right",sZ.GROUPS="people_group",sZ.HAPPY="face_happy",sZ.HEALTH_AND_SAFETY="shield_plus",sZ.HELP="question_circle",sZ.HELP_CAIRO=
"question_circle_cairo",sZ.HELP_OUTLINE="question_circle",sZ.HIDE="slash_circle_left",sZ.IMAGE="image",sZ.INFINITY_ICON="infinity",sZ.INFO="info_circle",sZ.INFO_OUTLINE="info_circle",sZ.INSERT_CHART="bar_graph_box_vertical",sZ.INSERT_CHART_OUTLINED="bar_graph_box_vertical",sZ.INSERT_PHOTO="image",sZ.KEEP="pin",sZ.KEEP_OFF="pin_off",sZ.KEYBOARD="keyboard",sZ.KEYBOARD_ARROW_DOWN="chevron_down",sZ.KEYBOARD_ARROW_UP="chevron_up",sZ.KIDS_BLOCK="slash_circle_left",sZ.LANGUAGE="globe",sZ.LAST_PAGE="chevron_last",
sZ.LAUNCH="open_new",sZ.LEARNING="lightbulb",sZ.LEARNING_CAIRO="lightbulb_cairo",sZ.LIBRARY_ADD=UMS("library_add"),sZ.LIBRARY_OUTLINE="library",sZ.LIBRARY_REMOVE=UMS(),sZ.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",sZ.LIKES_PLAYLIST="thumb_up",sZ.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",sZ.LIKE="thumb_up",sZ.LIKE_SELECTED="thumb_up",sZ.LIVE="radar_live",sZ.LIVE_CAIRO="radar_live_cairo",sZ.LIVE_UNLISTED="link",sZ.LOCATION_ON="location_point",sZ.LOCATION_PIN="location_point",sZ.LOOP="arrow_repeat",sZ.LOOP_ACTIVE=
"arrow_repeat",sZ.LOOP_ONE="arrow_repeat_1",sZ.LOOP_ONE_ACTIVE="arrow_repeat_1",sZ.MEH="face_meh",sZ.MEMBERS_ONLY_MODE_OFF="message_bubble_left",sZ.MESSAGE="message_bubble_left",sZ.MICROPHONE_ON="mic",sZ.MIX="youtube_mix",sZ.MONETIZATION_ON="dollar_sign_circle",sZ.MONEY_FILL="dollar_sign_container",sZ.MONEY_FILL_JPY="yen_sign_container",sZ.MONEY_HEART="dollar_sign_heart",sZ.MORE_HORIZ="overflow_horizontal",sZ.MORE_VERT="overflow_vertical",sZ.MUSIC="audio",sZ.MUSIC_CAIRO="audio_cairo",sZ.MUSIC_NOTE_SYMBOL=
"music",sZ.MUSIC_SHUFFLE="arrow_shuffle",sZ.MY_CHANNEL="person_circle",sZ.MY_LOCATION="location_point",sZ.NEWS_STORY="news",sZ.NEXT="chevron_right",sZ.NOTIFICATIONS="bell",sZ.NOTIFICATIONS_ACTIVE="bell_on",sZ.NOTIFICATIONS_CAIRO="bell_cairo",sZ.NOTIFICATIONS_DONE_CHECKMARK="check",sZ.NOTIFICATIONS_INBOX="bell",sZ.NOTIFICATIONS_NONE="bell",sZ.NOTIFICATIONS_OFF="bell_off",sZ.NOT_INTERESTED="slash_circle_left",sZ.OFFICIAL_ARTIST_BADGE="audio",sZ.OFFLINE_CLOUD="cloud_off",sZ.OFFLINE_DOWNLOAD="download",
sZ.OFFLINE_DOWNLOAD_CAIRO="download_cairo",sZ.OFFLINE_PAUSE="pause",sZ.OPEN_IN_NEW="open_new",sZ.OUTLINE_ADJUST="adjust",sZ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",sZ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",sZ.OUTLINE_BAG="bag",sZ.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",sZ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",sZ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",sZ.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",sZ.PAID="dollar_sign",sZ.PAUSE_OUTLINED="pause",sZ.PAYMENT=
"credit_card",sZ.PERSON_RADAR_FILLED="person_radar",sZ.PHONE_DOWNLOAD="mobile_download",sZ.PLAYABLES_LOGO="tic_tac_toe",sZ.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",sZ.PLAYLISTS="list_play_arrow",sZ.PLAYLISTS_CAIRO="list_play_arrow_cairo",sZ.PLAYLIST_ADD=UMS("list_add"),sZ.PLAYLIST_ADD_CHECK=UMS("list_check"),sZ.PLAYLIST_PLAY="list_play_arrow",sZ.PLAY_ALL="play_arrow",sZ.PLAY_CIRCLE="play_arrow_circle",sZ.PLAY_OUTLINED="play_arrow_circle",sZ.PRIVACY_INFO="shield",sZ.PRIVACY_PRIVATE="lock",sZ.PRIVACY_PUBLIC=
"earth",sZ.PRIVACY_UNLISTED="link",sZ.PROMOTE="megaphone",sZ.PURCHASES="price_tag",sZ.PURCHASE_SUPER_CHAT="super_chat",sZ.PURCHASE_SUPER_STICKER="super_sticker",sZ.QUESTION_ANSWER="message_bubble_question",sZ.QUEUE_PLAY_LAST="list_queue_last",sZ.QUEUE_PLAY_NEXT="list_play_arrow",sZ.REMIX_FILLED="youtube_shorts_remix",sZ.REMOVE="bar_circle",sZ.REMOVE_CIRCLE="bar_circle",sZ.REMOVE_CIRCLE_OUTLINE="bar_circle",sZ.REMOVE_DONE="check_double_off",sZ.REMOVE_FROM_HISTORY="bar_circle",sZ.REMOVE_FROM_PLAYLIST=
"bar_circle",sZ.REMOVE_MODERATOR="shield_off",sZ.REPLAY="arrow_circle",sZ.REPLAY_10="skip_back_10",sZ.REPORT_PROBLEM="alert_triangle",sZ.SAD="face_sad",sZ.SAVE_PLAYLIST="bookmark",sZ.SCHEDULE="clock",sZ.SCHOOL="creator_academy",sZ.SCREEN_FULLSCREEN="screen_full",sZ.SEARCH_HISTORY="arrow_time",sZ.SELL="price_tag",sZ.SETTINGS="gear",sZ.SETTINGS_CAIRO="gear_cairo",sZ.SETTINGS_LIGHT="gear",sZ.SETTINGS_MATERIAL="gear",sZ.SHARE_ARROW="share",sZ.SHIELD_WITH_AVATAR="person_shield",sZ.SHOPPING_BAG="bag",sZ.SHOPPING_BAG_CAIRO=
"bag_cairo",sZ.SHOPPING_CART="cart",sZ.SHORTS_COMMENT="youtube_shorts_message_bubble_right",sZ.SHORTS_DISLIKE="youtube_shorts_thumb_down",sZ.SHORTS_LIKE="youtube_shorts_thumb_up",sZ.SHORTS_SHARE="youtube_shorts_share",sZ.SHUFFLE="arrow_shuffle",sZ.SLOW_MODE_OFF="message_bubble_left",sZ.SOCIAL="people",sZ.SORT="menu_sort",sZ.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",sZ.SPEED_1X="1x",sZ.SPEED_1_POINT_2X="1_point_2x",sZ.SPEED_1_POINT_5X="1_point_5x",sZ.SPEED_1_POINT_8X="1_point_8x",sZ.SPEED_2X="2x",
sZ.SPEED_POINT_2X="point_2x",sZ.SPEED_POINT_8X="point_8x",sZ.SPONSORSHIP_STAR="star_circle",sZ.STAFF_PICK="spotlight",sZ.START_DVR="add",sZ.STAR_BORDER="star",sZ.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",sZ.STICKER_EMOTICON="face_happy",sZ.STOP_DVR="stop",sZ.SUBSCRIBE="youtube_logo_icon",sZ.SUBSCRIBE_PLUS="add_cairo",sZ.SUBSCRIPTION_MANAGER="gear",sZ.SUPERVISOR_ACCOUNT="people",sZ.SUPER_CHAT_FOR_GOOD="hands_heart",sZ.SWAP_HORIZ="arrow_swap_horizontal",sZ.SWITCH_ACCOUNTS="person_account",sZ.TAB_ACCOUNT=
"person",sZ.TAB_ACTIVITY="bell",sZ.TAB_BOOKMARK="bookmark",sZ.TAB_EXPLORE="compass",sZ.TAB_HOME="home",sZ.TAB_HOME_CAIRO="home_cairo",sZ.TAB_INBOX="mail",sZ.TAB_LIKED="thumb_up",sZ.TAB_MUSIC_PREMIUM="youtube_music",sZ.TAB_SHORTS="youtube_shorts",sZ.TAB_SHORTS_CAIRO="youtube_shorts_cairo",sZ.TAB_SUBSCRIPTIONS="subscriptions",sZ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",sZ.TAB_TRENDING="fire",sZ.TIMER="stopwatch",sZ.TRAILER="youtube_originals",sZ.TRENDING="fire",sZ.TRENDING_CAIRO="fire_cairo",sZ.TRENDING_DOWN=
"rating_down",sZ.TRENDING_UP="rating_up",sZ.TROPHY="trophy",sZ.TROPHY_CELEBRATIONS="fireworks",sZ.TUNE="adjust",sZ.UNBLOCK_USER="bar_circle",sZ.UNLIMITED="youtube_logo_icon",sZ.UNPLUGGED_LIVE_GUIDE="radar_live",sZ.UNPLUGGED_SPORTS="eye_off",sZ.UPLOADS="library",sZ.UP_ARROW="arrow_up",sZ.VERTICAL_ALIGN_BOTTOM="download",sZ.VERY_HAPPY="face_very_happy",sZ.VERY_SAD="face_very_sad",sZ.VIDEOGAME_ASSET="gaming",sZ.VIDEOS="play_arrow_circle",sZ.VIDEO_CALL="video_camera_add",sZ.VIDEO_LIBRARY_WHITE="library",
sZ.VIDEO_YOUTUBE="youtube_logo_icon",sZ.VIEW_LIST="list_view",sZ.VIEW_LIST_CAIRO="list_view_cairo",sZ.VISIBILITY="eye",sZ.VISIBILITY_OFF="eye_off",sZ.VOLUME_MUTE="volume_off",sZ.VOLUME_UP="volume_on",sZ.WALLPAPER="image",sZ.WARNING="alert_triangle",sZ.WATCH_HISTORY="arrow_time",sZ.WATCH_HISTORY_CAIRO="arrow_time_cairo",sZ.WATCH_LATER="clock",sZ.WATCH_LATER_CAIRO="clock_cairo",sZ.WATCH_RELATED_MIX="youtube_mix",sZ.WHAT_TO_WATCH="home",sZ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",sZ.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",sZ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",sZ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",sZ.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",sZ.YT_OUTLINE_MUSIC_24="music",sZ);var NQ={},JY5=(NQ.ACCESS_TIME="clock",NQ.ACCOUNT_BOX="person_square",NQ.ACCOUNT_BOX_CAIRO="person_square",NQ.ACCOUNT_CIRCLE="person_circle",NQ.ACCOUNT_CIRCLE_CAIRO="person_circle",NQ.ACCOUNT_LINKED="account_link",NQ.ACCOUNT_UNLINKED="account_link",NQ.ADD_CIRCLE="add_circle",NQ.ADD_CIRCLE_OUTLINE="add_circle",NQ.ADD_FRIEND="person_child",NQ.ADD_MODERATOR="shield_add",NQ.ADD_TO_LIBRARY="bookmark",NQ.ADD_TO_PLAYLIST="add",NQ.ADD_TO_QUEUE_TAIL="queue",NQ.ADD_TO_REMOTE_QUEUE="playlist_audio",NQ.ADD_TO_WATCH_LATER=
"clock",NQ.ADD_VIDEO_LINK="film_strip_add",NQ.ADMIN_PANEL_SETTINGS="person_gear",NQ.ALERT_WARN_RED="alert_triangle",NQ.ALIGN_LEFT="text_align_left",NQ.ARROWS_ALERT="arrow_split_alert",NQ.ARROW_BACK="arrow_left",NQ.ARROW_CIRCLE="arrow_counterclockwise",NQ.ARROW_CIRCLE_PLAY="replay",NQ.ARROW_CIRCLE_RIGHT="arrow_clockwise",NQ.ARROW_DIAGONAL="arrow_up_left",NQ.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",NQ.ARROW_DROP_DOWN="triangle_down",NQ.ARROW_DROP_UP="triangle_up",NQ.ARROW_FORWARD="arrow_right",NQ.ARROW_PAUSE=
"pause_history",NQ.ARROW_UNDO="undo",NQ.ARTICLE="text_page",NQ.ARTICLE_ALERT="text_page_alert",NQ.ARTICLE_CHECK="text_page_check",NQ.ARTICLE_CLARIFY="text_page_info",NQ.ARTIST="person_audio",NQ.AUDIOTRACK="audio",NQ.AUDIO_BADGE="audio_badge",NQ.AUDIO_SURROUND="surround_sound",NQ.AUTO_AWESOME="sparkles",NQ.AVATAR_ANONYMOUS="person_circle",NQ.AVATAR_LOGGED_OUT="person_circle",NQ.BACK="arrow_left",NQ.BAR_CHART="chart_bar",NQ.BAR_CIRCLE="minus_circle",NQ.BAR_HORIZONTAL="minus",NQ.BLOCK="circle_slash",
NQ.BLOCK_USER="circle_slash",NQ.BOOKMARK_BORDER="bookmark",NQ.BOX_OPEN_CHECK="quiz",NQ.BOX_PENCIL="square_pencil",NQ.BOX_STACK_3="square3_stack",NQ.BREAKING_NEWS_ALT_1="text_page_alert",NQ.BROADCAST="podcast",NQ.BROADCAST_CAIRO="podcast",NQ.BUG_REPORT="bug",NQ.CAMERA_ALT="camera",NQ.CAMPAIGN="megaphone",NQ.CANCEL="x_circle",NQ.CAPTIONS="closed_captions",NQ.CAST_ICON="chromecast",NQ.CAST_OUTLINE="chromecast",NQ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",NQ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
NQ.CHAT="text_bubble",NQ.CHAT_BUBBLE="bubble",NQ.CHECK_BOX="check_square",NQ.CHECK_BOX_OUTLINE_BLANK="square",NQ.CHECK_CIRCLE_FILLED="check_circle",NQ.CHECK_CIRCLE_OUTLINE="check_circle",NQ.CHECK_CIRCLE_THICK="check_circle",NQ.CHECK_DOUBLE="check_done",NQ.CHECK_DOUBLE_OFF="check_done_slash",NQ.CHEVRON_LEFT="chevron_left",NQ.CHEVRON_RIGHT="chevron_right",NQ.CHEVRON_RIGHT_CAIRO="chevron_right",NQ.CIRCLES_OVERLAP="account_link",NQ.CLAPPERBOARD_CAIRO="clapperboard",NQ.CLARIFY="text_page_info",NQ.CLOCK_ARROWS=
"clock_split",NQ.CLOCK_ARROWS_ALERT="clock_split_alert",NQ.CLOSED_CAPTION="closed_captions",NQ.CLOSED_CAPTION_SELECTED="closed_captions",NQ.CLOSE="x",NQ.CLOUD_UPLOAD="cloud_arrow_up",NQ.COLLAPSE="chevron_up",NQ.COLLAPSE_CAIRO="chevron_up",NQ.COLLECTION="square3d_stack",NQ.COLOR_LENS="paint_palette",NQ.COMMENT="text_bubble",NQ.CONSENT_SHIELD="person_shield",NQ.CONTENT_CUT="scissors",NQ.CONTENT_CUT_CAIRO="scissors",NQ.COURSE="graduation_cap",NQ.COURSE_CAIRO="graduation_cap",NQ.CREATION_LIVE="live",
NQ.CREATION_POST="square_pencil",NQ.CREATION_UPLOAD="video",NQ.CREATION_UPLOAD_RED="upload",NQ.CREATOR_ACADEMY="graduation_cap",NQ.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",NQ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",NQ.CREATOR_STUDIO="youtube_studio",NQ.DARK_THEME="theme",NQ.DELETE="trash_can",NQ.DELETE_SWEEP="trash_can",NQ.DESKTOP="laptop",NQ.DISLIKE="thumb_down",NQ.DISLIKE_SELECTED="thumb_down",NQ.DISMISSAL="x",NQ.DISMISS_QUEUE="playlist_x",NQ.DOGFOOD="pawprint",NQ.DOLLAR_SIGN=
"dollar_sign_circle",NQ.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",NQ.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",NQ.DOWN_ARROW="arrow_down",NQ.DO_NOT_DISTURB="circle_slash",NQ.DRAFT="document",NQ.DRAG_HANDLE="equal",NQ.EARTH="globe",NQ.EDIT="pencil",NQ.EMOJI="face_very_happy",NQ.EMOJI_FLAGS="flag",NQ.EMOJI_OBJECTS="lightbulb",NQ.EMOJI_PEOPLE="face_very_happy",NQ.EMOJI_RECENT="clock",NQ.EMPTY_HEART="heart",NQ.EMPTY_LIKE="thumb_up",NQ.ERROR_BLACK="alert_circle",NQ.ERROR_OUTLINE="alert_circle",NQ.ERROR_WHITE=
"alert_circle",NQ.EXIT_APP="arrow_in",NQ.EXIT_TO_APP="arrow_in",NQ.EXPAND="chevron_down",NQ.EXPAND_ALL="chevron_expand",NQ.EXPAND_CAIRO="chevron_down",NQ.EXPAND_LESS="chevron_up",NQ.EXPAND_MORE="chevron_down",NQ.EXPLORE="compass",NQ.EXPLORE_DESTINATION="compass",NQ.EXTERNAL_LINK="arrow_up_right",NQ.EYE_OFF="eye_slash",NQ.FAB_UPLOAD="upload",NQ.FACE_HAPPY_OUTLINE="face_happy",NQ.FACE_MEH="face_neutral",NQ.FACT_CHECK="text_page_check",NQ.FASHION_LOGO="fashion",NQ.FASHION_LOGO_CAIRO="fashion",NQ.FAVORITE=
"thumb_up",NQ.FEEDBACK="alert_bubble",NQ.FEEDBACK_CAIRO="alert_bubble",NQ.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",NQ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",NQ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",NQ.FIRST_PAGE="chevron_left_end",NQ.FLAG_CAIRO="flag",NQ.FLASH_OFF="flash_slash",NQ.FLASH_ON="flash",NQ.FULL_HEART="heart",NQ.GAMING_LOGO="gaming",NQ.GAMING_LOGO_CAIRO="gaming",NQ.GO_TO_PAGE="arrow_right",NQ.GRID_ASYMMETRICAL="dashboard",NQ.GROUPS="person3",NQ.HAND_SWIPE_LEFT="gesture_swipe_left",
NQ.HAND_SWIPE_RIGHT="gesture_swipe_right",NQ.HAPPY="face_happy",NQ.HEALTH_AND_SAFETY="shield_health",NQ.HEART_BOX="heart_cube",NQ.HELP="help_circle",NQ.HELP_CAIRO="help_circle",NQ.HELP_OUTLINE="help_circle",NQ.HIDE="circle_slash",NQ.INCOGNITO_CAIRO="incognito",NQ.INFINITY_ICON="infinity",NQ.INFO="info_circle",NQ.INFO_OUTLINE="info_circle",NQ.INSERT_CHART="chart_bar_square",NQ.INSERT_CHART_OUTLINED="chart_bar_square",NQ.INSERT_PHOTO="image",NQ.KEEP="pin",NQ.KEEP_OFF="pin_slash",NQ.KEYBOARD="keyboard",
NQ.KEYBOARD_ARROW_DOWN="chevron_down",NQ.KEYBOARD_ARROW_UP="chevron_up",NQ.KIDS_BLOCK="circle_slash",NQ.LANGUAGE="globe",NQ.LAST_PAGE="chevron_right_end",NQ.LAUNCH="arrow_up_right",NQ.LEARNING="lightbulb",NQ.LEARNING_CAIRO="lightbulb",NQ.LIBRARY_ADD="bookmark",NQ.LIBRARY_IMAGE="image_stack",NQ.LIBRARY_MUSIC="audio_square_stack",NQ.LIBRARY_OUTLINE="play_square_stack",NQ.LIBRARY_REMOVE="bookmark",NQ.LIBRARY_SAVED="check_square_stack",NQ.LIKES_PLAYLIST="thumb_up",NQ.LIKES_PLAYLIST_CAIRO="thumb_up",NQ.LIKE=
"thumb_up",NQ.LIKE_SELECTED="thumb_up",NQ.LIST_QUEUE="queue",NQ.LIVE_CAIRO="live",NQ.LIVE_UNLISTED="link",NQ.LOCATION_ON="location_pin",NQ.LOCATION_PIN="location_pin",NQ.LOCATION_POINT="location_pin",NQ.LOOP="repeat",NQ.LOOP_ACTIVE="repeat",NQ.LOOP_ONE="repeat1",NQ.LOOP_ONE_ACTIVE="repeat1",NQ.MEET="google_meet",NQ.MEH="face_neutral",NQ.MEMBERSHIPS="memberships",NQ.MEMBERS_ONLY_MODE_OFF="text_bubble",NQ.MENU_FILTER="filter",NQ.MESSAGE="text_bubble",NQ.MESSAGE_BUBBLE_GEAR="bubble_gear",NQ.MESSAGE_BUBBLE_LEFT=
"text_bubble",NQ.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",NQ.MESSAGE_BUBBLE_OVERLAP="bubble_stack",NQ.MESSAGE_BUBBLE_QUESTION="help_bubble",NQ.MICROPHONE_ON="mic",NQ.MONETIZATION_ON="dollar_sign_circle",NQ.MONEY_FILL="dollar_sign_rectangle",NQ.MONEY_FILL_JPY="yen_sign_rectangle",NQ.MONEY_HAND="dollar_sign_circle_hand",NQ.MONEY_HEART="dollar_sign_heart",NQ.MOON_Z="sleep_timer",NQ.MORE_HORIZ="overflow_horizontal",NQ.MORE_VERT="overflow_vertical",NQ.MUSIC="audio",NQ.MUSIC_CAIRO="audio",NQ.MUSIC_EXPLICIT_BADGE=
"explicit",NQ.MUSIC_NEW_RELEASE="audio_badge",NQ.MUSIC_NOTE_SYMBOL="audio",NQ.MUSIC_SCISSORS="audio_scissors",NQ.MUSIC_SHUFFLE="shuffle",NQ.MY_CHANNEL="person_circle",NQ.MY_LOCATION="location_pin",NQ.MY_VIDEOS="video",NQ.MY_VIDEOS_CAIRO="video",NQ.NEWS_CAIRO="news",NQ.NEWS_STORY="news",NQ.NEXT="chevron_right",NQ.NOTE_ADD="bubble_pencil",NQ.NOTIFICATIONS="bell",NQ.NOTIFICATIONS_ACTIVE="bell_waves",NQ.NOTIFICATIONS_CAIRO="bell",NQ.NOTIFICATIONS_DONE_CHECKMARK="check",NQ.NOTIFICATIONS_INBOX="bell",NQ.NOTIFICATIONS_NONE=
"bell",NQ.NOTIFICATIONS_OFF="bell_slash",NQ.NOT_INTERESTED="circle_slash",NQ.OFFICIAL_ARTIST_BADGE="audio",NQ.OFFLINE_CLOUD="cloud_slash",NQ.OFFLINE_DOWNLOAD="download",NQ.OFFLINE_DOWNLOAD_CAIRO="download",NQ.OFFLINE_PAUSE="pause",NQ.OPEN_IN_NEW="arrow_up_right",NQ.OUTLINE_ADJUST="adjust",NQ.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",NQ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",NQ.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",NQ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",NQ.OUTLINE_BAG="bag",NQ.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",NQ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",NQ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",NQ.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",NQ.PAID="dollar_sign_circle",NQ.PAUSE_OUTLINED="pause",NQ.PAYMENT="credit_card",NQ.PEOPLE="person_child",NQ.PEOPLE_2="person2_rectangle",NQ.PEOPLE_GROUP="person3",NQ.PEOPLE_NOTE="bubble_asterisk",NQ.PERSON_2="person2",NQ.PERSON_ACCOUNT="person_square_stack",NQ.PERSON_MINUS="person_x",NQ.PERSON_MUSIC="person_audio",NQ.PERSON_RADAR="person_waves",
NQ.PERSON_RADAR_FILLED="person_waves",NQ.PERSON_SETTING="person_gear",NQ.PHONE="phone",NQ.PHONE_DOWNLOAD="mobile_arrow_down",NQ.PICTURE_IN_PICTURE="picture_in_picture",NQ.PLAYABLES_LOGO="playables",NQ.PLAYABLES_LOGO_CAIRO="playables",NQ.PLAYLISTS="playlist",NQ.PLAYLISTS_CAIRO="playlist",NQ.PLAYLIST_ADD_CHECK="bookmark",NQ.PLAY_ALL="play",NQ.PLAY_ARROW="play",NQ.PLAY_ARROW_CIRCLE="play_circle",NQ.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",NQ.PLAY_CIRCLE="play_circle",NQ.PLAY_OUTLINED="play_circle",
NQ.PODCAST_ADD="podcast_add",NQ.PODCAST_CHECK="podcast_check",NQ.PRIVACY_INFO="shield_x",NQ.PRIVACY_PRIVATE="lock",NQ.PRIVACY_PUBLIC="globe",NQ.PRIVACY_UNLISTED="link",NQ.PROMOTE="megaphone",NQ.PURCHASES="price_tag",NQ.PURCHASE_SUPER_CHAT="super_chat",NQ.PURCHASE_SUPER_STICKER="super_sticker",NQ.QUESTION_ANSWER="help_bubble",NQ.QUESTION_CIRCLE="help_circle",NQ.QUEUE_PLAY_LAST="queue_last",NQ.QUEUE_PLAY_NEXT="queue_next",NQ.QUOTATION_MARK="quote",NQ.RADAR_LIVE="live",NQ.REMOVE="minus_circle",NQ.REMOVE_CIRCLE=
"minus_circle",NQ.REMOVE_CIRCLE_OUTLINE="minus_circle",NQ.REMOVE_FROM_HISTORY="minus_circle",NQ.REMOVE_FROM_PLAYLIST="minus_circle",NQ.REMOVE_MODERATOR="shield_slash",NQ.REPLAY="arrow_counterclockwise",NQ.REPLAY_10="skip10_back",NQ.REPLAY_ARROW="replay",NQ.REPORT_PROBLEM="alert_triangle",NQ.RSS_OFF="rss_slash",NQ.SAD="face_sad",NQ.SAVE_PLAYLIST="bookmark",NQ.SCHEDULE="clock",NQ.SCHOOL="graduation_cap",NQ.SCREEN_DEFAULT="player_default",NQ.SCREEN_FULLSCREEN="player_full_enter",NQ.SCREEN_LIGHT="ambient_mode",
NQ.SCREEN_ROTATION="rotate_portrait",NQ.SCREEN_SWITCH="player_switch",NQ.SCREEN_THEATRE="player_theater",NQ.SEARCH_CAIRO="search",NQ.SEARCH_HISTORY="history",NQ.SELL="price_tag",NQ.SETTINGS="gear",NQ.SETTINGS_CAIRO="gear",NQ.SETTINGS_LIGHT="gear",NQ.SETTINGS_MATERIAL="gear",NQ.SETTINGS_REMOTE="remote_waves",NQ.SHARE="share",NQ.SHARE_ARROW="share",NQ.SHARE_CAIRO="share",NQ.SHIELD="shield_x",NQ.SHIELD_EMPTY="shield",NQ.SHIELD_OFF="shield_slash",NQ.SHIELD_WITH_AVATAR="person_shield",NQ.SHOPPING_BAG=
"bag",NQ.SHOPPING_BAG_CAIRO="bag",NQ.SHOPPING_CART="cart",NQ.SHORTS_COMMENT="text_bubble",NQ.SHORTS_DISLIKE="thumb_down",NQ.SHORTS_LIKE="thumb_up",NQ.SHORTS_SHARE="share",NQ.SKIP_FORWARD_30="skip30_forward",NQ.SLASH_CIRCLE_LEFT="circle_slash",NQ.SLASH_CIRCLE_RIGHT="circle_slash",NQ.SLOW_MODE="bubble_slow",NQ.SLOW_MODE_OFF="text_bubble",NQ.SOCIAL="person_child",NQ.SPARKLE="sparkles",NQ.SPARK_IMAGE="image_spark",NQ.SPARK_PENCIL="pencil_spark",NQ.SPARK_RADAR="spark_waves",NQ.SPARK_VIDEO="video_spark",
NQ.SPEAKER_GROUP="speaker_stack",NQ.SPEAKER_OFF="speaker_slash",NQ.SPEED_1X="n1x",NQ.SPEED_1_POINT_2X="n1point2x",NQ.SPEED_1_POINT_5X="n1point5x",NQ.SPEED_1_POINT_8X="n1point8x",NQ.SPEED_2X="n2x",NQ.SPONSORSHIP_STAR="star_circle",NQ.SPORTS="basketball",NQ.SPOTLIGHT="spotlight",NQ.STAFF_PICK="spotlight",NQ.START_DVR="add",NQ.STAR_BORDER="star",NQ.STAR_CIRCLE_RIBBON="memberships_gift",NQ.STAR_HALF="star_full_half",NQ.STAR_SHOOTING="hype",NQ.STICKER="sticker",NQ.STICKER_EMOTICON="face_happy",NQ.STOP_DVR=
"stop",NQ.SUBSCRIBE="youtube",NQ.SUBSCRIBE_PLUS="add",NQ.SUBSCRIPTION_MANAGER="gear",NQ.SUPERSTAR="super_star",NQ.SUPERVISOR_ACCOUNT="person_child",NQ.SUPER_CHAT_FOR_GOOD="hands_heart",NQ.SWAP_HORIZ="arrow_swap_horizontal",NQ.SWITCH_ACCOUNTS="person_square_stack",NQ.TAB_ACCOUNT="person",NQ.TAB_ACTIVITY="bell",NQ.TAB_BOOKMARK="bookmark",NQ.TAB_EXPLORE="compass",NQ.TAB_HOME="home",NQ.TAB_HOME_CAIRO="home",NQ.TAB_INBOX="mail",NQ.TAB_LIKED="thumb_up",NQ.TAB_MUSIC_PREMIUM="youtube_music",NQ.TAB_SHORTS=
"shorts",NQ.TAB_SHORTS_CAIRO="shorts",NQ.TAB_SUBSCRIPTIONS="subscriptions",NQ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",NQ.TAB_TRENDING="trending",NQ.TARGET="target",NQ.TARGET_ADD="target_add",NQ.TEMPLATE_ADD="template_add",NQ.TEXT="font",NQ.TICKET_STAR="star_ticket",NQ.TIMER="stopwatch",NQ.TRENDING_CAIRO="trending",NQ.TRENDING_DOWN="arrow_trend_down",NQ.TRENDING_UP="arrow_trend_up",NQ.TROPHY_CAIRO="trophy",NQ.TROPHY_CELEBRATIONS="fireworks",NQ.TROPHY_STAR="star_trophy",NQ.TUNE="adjust",NQ.TV_OFF="tv_slash",
NQ.UNBLOCK_USER="minus_circle",NQ.UNFAVORITE="thumb_down",NQ.UNLIMITED="youtube",NQ.UNPLUGGED_LIVE_GUIDE="live",NQ.UNPLUGGED_SPORTS="eye_slash",NQ.UPLOADS="play_square_stack",NQ.UP_ARROW="arrow_up",NQ.VERTICAL_ALIGN_BOTTOM="chevron_down_end",NQ.VERTICAL_ALIGN_TOP="chevron_up_end",NQ.VERY_HAPPY="face_very_happy",NQ.VERY_SAD="face_very_sad",NQ.VIDEOS="play_circle",NQ.VIDEO_CALL="video_camera_add",NQ.VIDEO_LIBRARY_WHITE="play_square_stack",NQ.VIDEO_QUALITY_4K="n4k",NQ.VIDEO_QUALITY_8K="n8k",NQ.VIDEO_YOUTUBE=
"youtube",NQ.VIEW_LIST_CAIRO="view_list",NQ.VIEW_MODULE="view_column3_row2",NQ.VISIBILITY="eye",NQ.VISIBILITY_OFF="eye_slash",NQ.VOLUME_DOWN="volume_min",NQ.VOLUME_MUTE="volume_mute",NQ.VOLUME_OFF="volume_mute",NQ.VOLUME_STABLE="stable_volume",NQ.VOLUME_UP="volume_max",NQ.WALLPAPER="image",NQ.WARNING="alert_triangle",NQ.WATCH_HISTORY="history",NQ.WATCH_HISTORY_CAIRO="history",NQ.WATCH_LATER="clock",NQ.WATCH_LATER_CAIRO="clock",NQ.WATCH_RELATED_MIX="mix",NQ.WHAT_TO_WATCH="home",NQ.YOUTUBE_LINKED_TV=
"tv_mobile",NQ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",NQ.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",NQ.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",NQ.YOUTUBE_SHORTS_ARROW_UP="arrow_up",NQ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",NQ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",NQ.YOUTUBE_SHORTS_OUTLINE_24="shorts",NQ.YT_OUTLINE_MUSIC_24="audio",NQ);var oCr={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var sxi={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,
10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,
18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],
[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,5,24,!0],[1,5,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,
24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,5,24],[0,5,36],[1,5,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,
1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var Nc5={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},tK=function(N){this.iconUrlProvider=N};
tK.prototype.resolveIcon=function(N,t){var O=Nc5[N.iconName.toUpperCase()];O&&(N.iconName=O);var H=N.iconName;H=H.replace(/-/g,"_");N=Object.assign({},N,{iconName:this.mapIconTypeToStandardName(H,!!O)||H.toLowerCase()});if(_.h("enable_web_delhi_icons")||O){var A;return VYQ(sxi,N,((A=this.iconUrlProvider)==null?void 0:A.getYtStandardUrl)||K9t,t)}var Z;return VYQ(oCr,N,((Z=this.iconUrlProvider)==null?void 0:Z.getYtStandardUrl)||C4S,t)};
tK.prototype.mapIconTypeToStandardName=function(N,t){return _.h("enable_web_delhi_icons")||t?JY5[N.toUpperCase()]:vC5[N.toUpperCase()]};
tK[$v]=[_.BY(EC1)];var tuz=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),Omr=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Hm5=function(N){this.urlProvider=this.iconUrlProvider=N};
_.p(Hm5,tK);
Hm5.prototype.resolveIcon=function(N,t){N.iconName==="youtube_logo"&&(N.iconName="yt-logo-updated");if(N.iconName==="youtube_premium_logo"||N.iconName==="youtube_red_logo")N.iconName="yt-logo-red-updated";var O=Object.assign({},N);N.iconName==="menu"&&(_.h("enable_web_delhi_icons")||(O.iconName="bars_3"),O.iconStyle="youtube_outline");N.iconSetName==="socialNetworksRound"&&(N.iconName==="mail"&&(O.iconName="email"),N.iconName==="embed"&&(O.iconSize=60));N.iconName==="more"&&(O.iconName="overflow_horizontal");
N.iconName==="fullscreen"&&(O.iconName="screen_full");N.iconName==="premium_standalone"&&(O.iconName="premium_standalone_cairo");_.h("enable_connect_icon_update_web")&&N.iconName==="account_linked"&&(O.iconName="circles_overlap_check",O.iconStyle="youtube_fill");_.h("enable_connect_icon_update_web")&&N.iconName==="account_unlinked"&&(O.iconName="circles_overlap",O.iconStyle="youtube_outline");tuz.has(N.iconName)&&(O.iconStyle="youtube_fill");if(_.h("enable_web_delhi_icons")){N.iconName==="playlist_add"&&
(O.iconName="bookmark");N.iconName==="offline_pin"&&(O.iconName="arrow_down_circle",O.iconStyle="youtube_fill");if(N.iconName==="circles_overlap_check"||O.iconName==="circles_overlap_check")O.iconName="account_link",O.iconStyle="youtube_fill";Omr.has(N.iconName)&&(O.iconName+="_updated")}N=Object.assign({},O,{iconName:(tK.prototype.mapIconTypeToStandardName.call(this,O.iconName)||O.iconName).toLowerCase()});var H;return(N=VYQ(Qx5,N,((H=this.urlProvider)==null?void 0:H.getUrl)||F9y,t))?N:tK.prototype.resolveIcon.call(this,
O,t)};
Hm5[$v]=[_.BY(EC1)];_.AD1=1;var Om=function(N,t){this.JSC$17595_commandHandler=N;this.innertubeTransportService=t};
_.p(Om,jQ);Om.prototype.resolveCommand=function(N,t){var O=this,H,A,Z;return _.K(function(U){return(H=_.M(N,bgy))?U.return(Zmf(O,H,(A=t)==null?void 0:(Z=A.form)==null?void 0:Z.element)):U.return()})};
var Zmf=function(N,t,O){t={profileCardContext:t.profileCardContext,profileOwnerExternalChannelId:t.profileOwnerExternalChannelId};var H=_.JB(Tny);return _.cT(N.innertubeTransportService,t,H).then(function(A){if(!A)throw new _.fF("GetProfileCard failed");if(A=A.popupCommand){N.JSC$17595_commandHandler.resolveCommand(A,{form:{element:O}});_.Ws(_.gF(),66557);A=A==null?void 0:A.clickTrackingParams;var Z=_.pv();A&&Z&&_.gF().graftServerVe(A,Z)}})};
Om[$v]=[_.jo,_.Sc];var HP=function(){};
_.p(HP,jQ);HP.prototype.resolveCommand=function(N){var t,O;return _.K(function(H){t=_.M(N,PnY);if(!t)return H.return();O=Number(t.enableDelayedPacfLoggingTvMs);if(isNaN(O)){var A=mR();IKX(A,t,0)}else IKX(mR(),t,O);_.Ty(H)})};_.AK=function(){};
_.p(_.AK,jQ);
_.AK.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g;return _.K(function(B){H=_.M(N,XSB);Z=(A=t.form)==null?void 0:A.element;C=(U=Z)==null?void 0:U.closest("ytd-enforcement-message-view-model");if(!H||!C)return B.return();O.allowAdsAction||(F=H.fundingChoiceInstructionPageUrl,O.allowAdsAction=new a4r(window,_.Rk(F)));var c=O.allowAdsAction;c.wallElement=C;c.allowAdsPopup.style.setProperty("display","flex","important");var u=c.scrollManager;u.isScrollingEnabled&&(u.originalBodyOverflow=u.JSC$10155_domHelper.JSC$9481_document_.body.style.overflow,
u.JSC$10155_domHelper.JSC$9481_document_.body.style.overflow="hidden",u.isScrollingEnabled=!1);c.wallElement.style.setProperty("display","none","important");W8f(c.accessibilityManager,c.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((g=O.allowAdsAction.allowAdsPopup)&&g instanceof HTMLElement)for(c=_.D(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),u=c.next();!u.done;u=c.next()){var S=_.D(u.value);u=S.next().value;S=S.next().value;
g.style.setProperty(u,S)}_.Ty(B)})};
_.AK.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var ZG=function(){};
_.p(ZG,jQ);ZG.prototype.resolveCommand=function(N){var t;return _.K(function(O){t=_.M(N,fdS);if(!t)return O.return();$QQ(N);_.Ty(O)})};_.VY=new _.dk("AI_CHAT_CONTROLLER_TOKEN");var DG=function(N,t,O,H){this.JSC$17610_commandHandler=N;this.store=t;this.getPlayerCb=O;this.aiChatController=H};
_.p(DG,jQ);DG.prototype.pageContext=function(){var N=_.Wz.currentPageSubTypeSelector(this.store.getState()),t;return(t=this.aiChatController)==null?void 0:_.Vu5(t,N)};
DG.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U;return _.K(function(C){O=_.M(N,mBS);A=(H=O)==null?void 0:H.command;if(!A)return C.return();switch((U=O)==null?void 0:U.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var F="youchat-"+Date.now(),g;var B=String(Math.floor(((g=t.getPlayerCb())==null?void 0:g.getCurrentTime())||0)*1E3);Z={inputComposerFormData:{clientMessageId:F,playerOffsetMs:B,pageContext:t.pageContext()}}}if(!Z)return C.return();t.JSC$17610_commandHandler.resolveCommand(A,
{form:{formData:Z}});_.Ty(C)})};
DG[$v]=[_.jo,_.VT,wqQ,_.BY(_.VY)];var DwJ=new _.dk("SESSION_STORAGE");var Um=function(N){this.sessionStorage=N("conversations")};
_.p(Um,jQ);Um.prototype.resolveCommand=function(N){var t=this,O;return _.K(function(H){O=_.M(N,EkR);if(!O)return H.return();O.conversationId?t.sessionStorage.set("conversation_id",O.conversationId):t.sessionStorage.remove("conversation_id");_.Ty(H)})};
Um[$v]=[DwJ];var C$=function(N){this.JSC$17622_commandHandler=N};
_.p(C$,jQ);
C$.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g;return _.K(function(B){if(B.nextAddress==1){O=_.M(N,gOQ);if((H=O)==null||!H.text||!navigator.clipboard)return B.return();_.Mo(B,2);return B.yield(navigator.clipboard.writeText(O.text),4)}if(B.nextAddress!=2){if(!O.successActions||O.successActions.length===0)return B.return();A=_.D(O.successActions);for(Z=A.next();!Z.done;Z=A.next())U=Z.value,t.JSC$17622_commandHandler.resolveCommand(U);return _.Do(B,0)}_.ax(B);if(!O.failureActions||O.failureActions.length===
0)return B.return();C=_.D(O.failureActions);for(F=C.next();!F.done;F=C.next())g=F.value,t.JSC$17622_commandHandler.resolveCommand(g);_.Ty(B)})};
C$[$v]=[_.jo];var K$=function(N){this.JSC$17626_commandHandler=N};
_.p(K$,jQ);
K$.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u;return _.K(function(S){switch(S.nextAddress){case 1:H=_.M(N,m3p);if(!H)return S.return();_.Mo(S,2);if(!H.imageBytes&&!H.imageUrl)throw Error("Ai");if(!H.imageUrl){if(H.imageBytes){Z=H.imageBytes;U=Z.replace(/-/g,"+").replace(/_/g,"/");var b=yF4(U);A=_.l9(b)}S.jumpTo(4);break}return S.yield(fetch(H.imageUrl),5);case 5:return C=S.yieldResult,S.yield(C.blob(),6);case 6:F=S.yieldResult,A=_.l9(F);case 4:c=(g=t)==null?void 0:(B=g.form)==
null?void 0:B.element;u=document.createElement("a");Rd(u,A);c.appendChild(u);u.download="";u.click();c.removeChild(u);URL.revokeObjectURL(_.f8(A));H.successCommand&&O.JSC$17626_commandHandler.resolveCommand(H.successCommand);_.Do(S,0);break;case 2:_.ax(S),H.errorCommand&&O.JSC$17626_commandHandler.resolveCommand(H.errorCommand),_.Ty(S)}})};
K$[$v]=[_.jo];var F8=function(N){this.store=N};
_.p(F8,jQ);F8.prototype.resolveCommand=function(N){var t=this,O,H,A;return _.K(function(Z){H=(O=_.M(N,_.Qvu))==null?void 0:O.entityBatchUpdate;if(!H)return Z.jumpTo(0);A=Object.assign({},H,{mutations:[].concat(_.W6(H.mutations||[]))});return Z.yield(_.yP(A,t.store),0)})};var Uw5=function(N){this.JSC$17633_commandHandler=N;this.feedbackDialogMap=new Map};
Uw5.prototype.openDialog=function(N,t){(N=this.feedbackDialogMap.get(N))&&this.JSC$17633_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:N}},t)};
Uw5[$v]=[_.jo];var dB=new _.dk("FEEDBACK_CONTROLLER_TOKEN");var gB=new _.dk("APP_STORE_TOKEN");var yY=function(N,t,O){this.store=N;this.controller=t;this.JSC$17636_commandHandler=O};
_.p(yY,jQ);yY.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E;return _.K(function(J){if(J.nextAddress==1){H=_.M(N,_.wP);if(Z=(A=H)==null?void 0:A.contentId)for(C=_.D(((U=H)==null?void 0:U.actions)||[]),F=C.next();!F.done;F=C.next())g=F.value,CwJ(O,g,Z);u=(B=t)==null?void 0:(c=B.form)==null?void 0:c.element;return J.yield(_.tb(u,[N,{impression:(S=t)==null?void 0:S.disableClickTracking}]).catch(function(){}),2)}b=J.yieldResult;
if((z=b)==null?0:(w=z.data)==null?0:(P=w.feedbackResponses)==null?0:P.length)(l=(x=b.data.feedbackResponses[0])==null?void 0:x.followUpDialog)&&Z&&(I=O.controller)!=null&&I.feedbackDialogMap.set(Z,l),(E=(r=b.data.feedbackResponses[0])==null?void 0:r.isThumbnailReporting)&&O.JSC$17636_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.Ty(J)})};
var CwJ=function(N,t,O){var H=_.M(t,_.Ab);if(H){H=_.D(H.commands||[]);for(var A=H.next();!A.done;A=H.next())CwJ(N,A.value,O)}_.M(t,_.lK)&&N.store.dispatch(_.uF("commandEntity",GFl(O),{key:O,command:t}));_.M(t,wSE)&&N.store.dispatch(_.uF("commandEntity",GFl(O),{key:O,command:t}))};
yY[$v]=[gB,dB,_.jo];var BP=function(N){this.controller=N};
_.p(BP,jQ);BP.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U;return _.K(function(C){H=_.M(N,_.Hd);Z=(A=H)==null?void 0:A.targetId;if(((U=H)==null?void 0:U.signal)!=="TELL_US_WHY"||!Z)return C.return();O.controller.openDialog(Z,t);_.Ty(C)})};
BP[$v]=[dB];var cP=function(N){this.store=N};
_.p(cP,jQ);cP.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g;return _.K(function(B){H=_.M(N,jTG);Z=(A=H)==null?void 0:A.contentId;F=(U=t)==null?void 0:(C=U.form)==null?void 0:C.element;g=_.tb(F,[N]);Z&&O.undo(Z);return B.yield(g,0)})};
cP.prototype.undo=function(N){this.store.dispatch(_.uF("commandEntity",GFl(N),{key:N,command:void 0}))};
cP[$v]=[gB];var $W=function(N){this.JSC$17648_commandHandler=N};
_.p($W,jQ);$W.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g;return _.K(function(B){O=_.M(N,KVr);H=O.flowStateKey;A=O.validationFailureCommand;Z=O.submitValidFormCommand;U=Rqx(_.Gn,[H||""]);C=_.M(U,gsZ);((F=C)==null?0:F.isValid)&&Z&&t.JSC$17648_commandHandler.resolveCommand(Z);((g=C)==null?0:g.isValid)||!A||t.JSC$17648_commandHandler.resolveCommand(A);_.Ty(B)})};
$W[$v]=[_.jo];var jh=function(N){this.innertubeTransportService=N};
_.p(jh,jQ);jh.prototype.resolveCommand=function(N,t){var O=this,H;return _.K(function(A){return A.yield(_.rq(O.innertubeTransportService,N,(H=t)==null?void 0:H.form).then(function(Z){var U,C;t==null||(U=t.commandController)==null||(C=U.onSuccess)==null||C.call(U,N,Z)},function(Z){var U,C;
t==null||(U=t.commandController)==null||(C=U.onServerError)==null||C.call(U,N,Z)}),0)})};
jh[$v]=[_.Sc];var iB=function(){};
_.p(iB,jQ);iB.prototype.resolveCommand=function(N){var t,O,H,A;return _.K(function(Z){if(t=_.M(N,_.DGZ)){if(O=t.gtmId)H=_.Ro("GL",""),_.J7(O,H);(A=t.gtmData)&&_.ou(A)}_.Ty(Z)})};var uB=function(N,t,O){this.innertubeTransportService=N;this.JSC$17659_actionRouter=t;this.JSC$17659_screenManager=O};
_.p(uB,jQ);uB.prototype.resolveCommand=function(N){var t=this,O,H;return _.K(function(A){O=_.M(N,ZpR);if(!O)return A.return();H=O.command;if(!H)return A.return();t.JSC$17659_actionRouter.triggerAction("yt-insert-rich-section-action",O);return A.yield(_.rq(t.innertubeTransportService,H,{disableCache:!0}).then(function(Z){N.clickTrackingParams&&(Z==null?0:Z.trackingParams)&&t.JSC$17659_screenManager.graftServerVe(Z.trackingParams,_.ib(N.clickTrackingParams))}),0)})};
uB[$v]=[_.Sc,ay,_.ow];cF4.bind(null,iX);var Kqi=cF4.bind(null,ZI0);jh9.bind(null,iX);var Fq5=jh9.bind(null,ZI0);uYQ.bind(null,iX);var dwn=uYQ.bind(null,ZI0);var Sh=function(){};
_.p(Sh,jQ);
Sh.prototype.resolveCommand=function(N){var t,O,H,A,Z,U,C,F,g,B;return _.K(function(c){t=_.M(N,IgY);if(!t)return c.return();H=((O=t.operations)==null?void 0:O.operations)||[];A=_.D(H);for(Z=A.next();!Z.done;Z=A.next())if(U=Z.value,U.insertItemSectionContent){var u=U.insertItemSectionContent,S=u.contents||[];u.insertByPositionInSection?Kqi(u.insertByPositionInSection.sectionTargetId,S,u.insertByPositionInSection.position):u.insertByRelativePositionInSection&&u.insertByRelativePositionInSection.sectionTargetId&&u.insertByRelativePositionInSection.itemTargetId&&
Fq5(u.insertByRelativePositionInSection.sectionTargetId,u.insertByRelativePositionInSection.itemTargetId,S,u.insertByRelativePositionInSection.relativePosition)}else U.replaceSection?(u=U.replaceSection,S={},u.replaceByTargetId?S=u.replaceByTargetId:u.replaceByGroupId&&(S={targetId:u.replaceByGroupId.groupId,newContent:u.replaceByGroupId.newContent,undoKey:""}),S.newContent&&UI0(S.targetId,{continuationItems:[S.newContent]})):U.removeItem?(u=U.removeItem,u.removeByTargetId&&u.sectionTargetId&&dwn(u.sectionTargetId,
u.removeByTargetId.targetIds||[])):U.removeSection&&(U.removeSection.removeByTargetId?(C=void 0,gmr(((C=U.removeSection)==null?void 0:C.removeByTargetId.targetIds)||[])):U.removeSection.removeByGroupId&&(F=void 0,gmr(((F=U.removeSection)==null?void 0:F.removeByGroupId.groupIds)||[])));B=((g=t.operations)==null?void 0:g.scrollConfig)||{};yDn(B);_.Ty(c)})};
var gmr=function(N){N=_.D(N);for(var t=N.next();!t.done;t=N.next())UI0(t.value,{continuationItems:[]})},yDn=function(N){if(N.scrollToItem){var t=N.scrollToItem.item||{},O=t.itemTargetId;
t=t.sectionTargetId;if(O&&t){var H=document.querySelector("[data-target-id="+t+"]"),A=H==null?void 0:H.querySelector("[data-target-id="+O+"]");H&&A&&setTimeout(function(){var Z=A.offsetTop-H.offsetTop,U;if(((U=N.scrollToItem)==null?void 0:U.scrollPosition)==="SCROLL_POSITION_CENTER")Z-=H.offsetHeight/2,Z+=A.offsetHeight/2;else{var C;((C=N.scrollToItem)==null?void 0:C.scrollPosition)==="SCROLL_POSITION_END"&&(Z-=H.offsetHeight,Z+=A.offsetHeight)}H.scroll({top:Z,behavior:"smooth"})},100)}}};var hK=new _.dk("CLIENT_NAME_TOKEN");var Bcz=new _.dk("DEFAULT_STORE_EXPIRATION_TOKEN");var ebt=new _.dk("CLIENT_LOCATION_SERVICE_TOKEN");var MQ=function(N,t,O){this.clientName=N||_.Ro("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=t||_.Wi.getInstance();this.JSC$17687_commandHandler=O||_.U4.instance};
_.p(MQ,jQ);MQ.prototype.resolveCommand=function(N){var t=this,O,H;return _.K(function(A){H=(O=_.M(N,psf))==null?void 0:O.onComplete;t.clientLocationService.clearLocationPlayabilityToken(t.clientName);H&&t.JSC$17687_commandHandler.resolveCommand(H);_.Ty(A)})};
MQ[$v]=[hK,ebt,_.jo];var L$=function(N){this.innertubeTransportService=N};
_.p(L$,jQ);L$.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U;return _.K(function(C){Z=(H=t)==null?void 0:(A=H.form)==null?void 0:A.element;return C.yield(_.rq(O.innertubeTransportService,N,(U=t)==null?void 0:U.form).then(function(F){BKl(Z,new CustomEvent("yt-service-request-completed"),{data:F},_.Ro("openPopupConfig"))}),0)})};
L$[$v]=[_.Sc];var zo=function(){};
_.p(zo,jQ);zo.prototype.resolveCommand=function(N){var t,O;return _.K(function(H){t=_.M(N,$SQ);O=document.querySelector("mini-app-container-view-model");if(!t||!O)return H.return();t.isPlaying?O.dispatchEvent(new Event("play")):O.dispatchEvent(new Event("pause"));_.Ty(H)})};var YW=function(){};
_.p(YW,jQ);YW.prototype.resolveCommand=function(N){var t,O,H,A,Z,U,C;return _.K(function(F){t=_.M(N,t3Q);if((O=t)==null||!O.paramKeys)return F.return();H=t.paramKeys;A=_.tJ(window.location.href);Z=_.D(H);for(U=Z.next();!U.done;U=Z.next())C=U.value,A.JSC$10187_queryData_.remove(C);window.history.replaceState(window.history.state,document.title,A.toString());_.Ty(F)})};var cDx=function(){this.dropdownMap=new Map};_.$wO=new _.dk("DROPDOWN_CONTROLLER_TOKEN");var at=function(N){this.controller=N};
_.p(at,jQ);at.prototype.resolveCommand=function(N){var t=this,O,H,A,Z;return _.K(function(U){O=_.M(N,zMX);if(!O)return U.return();H=O;A=H.dropdownId;Z=H.selectedOptionIndex;if(A===void 0||Z===void 0)return U.return();var C=t.controller.dropdownMap.get(A);C&&C(Z);_.Ty(U)})};
at[$v]=[_.$wO];var To=function(N){this.controller=N};
_.p(To,jQ);To.prototype.resolveCommand=function(N){var t=this,O;return _.K(function(H){return(O=_.M(N,n9p))?H.yield(t.controller.closeDialog(),0):H.return()})};
To[$v]=[_.A6];var wB=function(N){this.controller=N};
_.p(wB,jQ);wB.prototype.resolveCommand=function(N){var t=this,O,H;return _.K(function(A){O=_.M(N,hJR);if(!O)return A.return();var Z,U=O.panelIdentifier||((Z=O.identifier)==null?void 0:Z.tag);if(!U)throw Error("Bi");return(H=U)?A.yield(t.controller.hidePanel({identifier:H}),0):A.jumpTo(0)})};
wB[$v]=[_.Of];var eh=function(N){this.controller=N};
_.p(eh,jQ);eh.prototype.resolveCommand=function(N){var t=this,O;return _.K(function(H){return(O=_.M(N,VLa))?H.yield(t.controller.closeSheet(),0):H.return()})};
eh[$v]=[_.HD];var PP=function(N,t){this.innertubeTransportService=N;this.controller=t};
_.p(PP,jQ);PP.prototype.resolveCommand=function(N){var t=this,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return O=_.M(N,Miy),(H=O)!=null&&H.panelId?U.yield(t.controller.getReloadContinuation(O.panelId),2):U.return();if(U.nextAddress!=3)return(A=U.yieldResult)?U.yield(_.rq(t.innertubeTransportService,N,{continuation:A}),3):U.return();Z=U.yieldResult;return U.yield(t.controller.updatePanel({identifier:O.panelId,panelContents:Z.content,shouldFocus:!1}),0)})};
PP[$v]=[_.Sc,_.Of];var X8=function(N,t,O){this.innertubeTransportService=N;this.JSC$17729_screenManager=t;this.JSC$17729_commandHandler=O};
_.p(X8,jQ);
X8.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1){O=_.M(N,_.cPS);if(!O)return F.return();if(O.commands)for(H=_.D(O.commands),A=H.next();!A.done;A=H.next())Z=A.value,t.JSC$17729_commandHandler.resolveCommand(Z,{disableClickTracking:!0});U=_.ib(N.clickTrackingParams);_.Ws(t.JSC$17729_screenManager,21760,U,{layer:7,parentLayer:0});return F.yield(_.rq(t.innertubeTransportService,N),2)}C=F.yieldResult;if(!C)return F.return();t.JSC$17729_screenManager.graftServerVe(C.trackingParams,U,
7);_.Ty(F)})};
X8[$v]=[_.Sc,_.ow,_.jo];var xW=new _.dk("PANEL_LOADING_STRATEGY_TOKEN");var kW=function(N,t){this.controller=N;this.panelLoadingStrategy=t};
_.p(kW,jQ);
kW.prototype.resolveCommand=function(N,t){var O=this,H,A,Z;return _.K(function(U){H=_.M(N,UR0);if((A=H)==null||!A.panelLoadingStrategy)return U.return();Z=function(C){var F,g,B,c,u,S,b,z,w,P;return _.K(function(x){g=_.M((F=C.dialogViewModel)==null?void 0:F.header,Yeu);B={viewModel:C.dialogViewModel};c={};if(b=_.h("web_enable_dialog_header_label")?(u=g)==null?void 0:(S=u.headline)==null?void 0:S.content:void 0)c.ariaLabel=b;H.dismissOnBackgroundTap===!1&&(c.isModal=!0);return C.dialogViewModel?x.yield(O.controller.openDialog(B,
(P=(z=t)==null?void 0:(w=z.form)==null?void 0:w.element)!=null?P:document.body,c),0):x.return()})};
return U.yield(O.panelLoadingStrategy.execute({command:N,data:H.panelLoadingStrategy,renderFn:Z,createScreenConfig:{layer:4}}),0)})};
kW[$v]=[_.A6,xW];var qQ=function(N,t,O){this.innertubeTransportService=N;this.controller=t;this.JSC$17749_screenManager=O};
_.p(qQ,jQ);
qQ.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P;return _.K(function(x){switch(x.nextAddress){case 1:H=_.M(N,_.Th);if(!H)return x.return();var l,I=H.panelIdentifier||((l=H.identifier)==null?void 0:l.tag);if(!I)throw Error("Bi");A=I;return x.yield(O.controller.isVisible(A,!0),2);case 2:if((Z=x.yieldResult)&&H.blockIfPanelOpen)return x.return();F=(C=(U=O.controller).getPanelContent)==null?void 0:C.call(U,A);if(!(l=F))if(H){var r;l=((r=H.globalConfiguration)==null?void 0:
r.initialState)||H.engagementPanel;if(r=!l)r=!!(H==null?0:(I=H.engagementPanelPresentationConfigs)==null?0:I.engagementPanelPopupPresentationConfig);r&&(l=_.SLv(H.panelIdentifier,H.identifier))}else l=void 0;g=l;B=H.engagementPanelPresentationConfigs;c=H.engagementPanelExtras;return x.yield(O.controller.showPanel({identifier:A,panelContents:g,config:B,extras:c,target:(u=t)==null?void 0:(S=u.form)==null?void 0:S.element}),3);case 3:if(!H.globalConfiguration){x.jumpTo(0);break}if(H.globalConfiguration.reuseModelAndState&&
_.h("enable_ai_companion")&&(w=(z=(b=O.controller).getPanelContent)==null?void 0:z.call(b,A)))return x.return();_.Ws(O.JSC$17749_screenManager,32633);return x.yield(_.rq(O.innertubeTransportService,N),5);case 5:return P=x.yieldResult,O.JSC$17749_screenManager.graftServerVe(P.trackingParams),x.yield(O.controller.updatePanel({identifier:A,panelContents:P.content,shouldFocus:!0,extras:c,updatePanelContinuationData:P.updatePanelContinuationData}),0)}})};
qQ[$v]=[_.Sc,_.Of,_.ow];var f$=function(N,t){this.controller=N;this.panelLoadingStrategy=t};
_.p(f$,jQ);
f$.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u,S,b;return _.K(function(z){H=_.M(N,_.Sp);if((A=H)==null||!A.panelLoadingStrategy)return z.return();C=jNO(O.controller,(Z=t)==null?void 0:(U=Z.form)==null?void 0:U.element);g=(F=H.contextualSheetPresentationConfig)==null?void 0:F.position;c=(B=H.contextualSheetPresentationConfig)==null?void 0:B.hoverConfig;S=(u=H.contextualSheetPresentationConfig)==null?void 0:u.expandToFullWidth;b=function(w){return _.K(function(P){if(!w.sheetViewModel)return P.return();if(c){var x=
O.controller;x.shouldPreventClosingWhileHovered=!!c.preventCloseWhileHovered;var l;x.hideDelayMs=(l=c.hideDelayMs)!=null?l:0}return P.yield(O.controller.openSheet({viewModel:w.sheetViewModel,sheetPosition:g,expandToFullWidth:S},C),0)})};
return z.yield(O.panelLoadingStrategy.execute({command:N,data:H.panelLoadingStrategy,renderFn:b,createScreenConfig:{layer:0}}),0)})};
f$[$v]=[_.HD,xW];var n$=function(N,t){this.controller=N;this.JSC$17760_commandHandler=t};
_.p(n$,jQ);n$.prototype.resolveCommand=function(N,t){var O=this,H,A,Z;return _.K(function(U){if(U.nextAddress==1){H=_.M(N,zJS);var C=_.M(H.showCommand,_.Th),F,g,B=(g=C==null?void 0:C.panelIdentifier)!=null?g:C==null?void 0:(F=C.identifier)==null?void 0:F.tag;if(!B)throw Error("Ci");A=B;return U.yield(O.controller.isVisible(A),2)}return(Z=U.yieldResult)?U.yield(O.controller.hidePanel({identifier:A}),0):U.yield(O.JSC$17760_commandHandler.resolveCommand(H.showCommand,t),0)})};
n$[$v]=[_.Of,_.jo];var WP=function(N,t,O){this.innertubeTransportService=N;this.controller=t;this.JSC$17763_screenManager=O};
_.p(WP,jQ);
WP.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E,J;return _.K(function(CN){switch(CN.nextAddress){case 1:return H=O=_.M(N,wu_),A=H.targetPanelIdentifier,Z=H.contentSourcePanelIdentifier,U=H.globalConfiguration,((C=A)==null?0:C.tag)&&((F=Z)==null?0:F.tag)?U?CN.yield(t.controller.showPanel({identifier:A.tag,panelContents:_.SLv(A.tag,A)}),5):CN.yield((u=(c=t.controller).getPanel)==null?void 0:u.call(c,Z.tag),4):CN.return();case 4:S=CN.yieldResult;g=(b=S)==
null?void 0:(w=(z=b).getPanelContent)==null?void 0:w.call(z);CN.jumpTo(3);break;case 5:return CN.yield(_.rq(t.innertubeTransportService,N),6);case 6:P=CN.yieldResult,((x=P)==null?0:x.trackingParams)&&t.JSC$17763_screenManager.graftServerVe(P.trackingParams),g=(l=P)==null?void 0:l.content,B=(I=P)==null?void 0:I.updatePanelContinuationData;case 3:if(E=(r=g)==null?void 0:r.engagementPanelSectionListRenderer)return CN.yield(t.controller.showPanel({identifier:A.tag,panelUpdatableFields:{content:E.content,
secondaryHeaderContent:(J=E.header)!=null?J:{},targetId:E.targetId,loggingDirectives:E.loggingDirectives},updatePanelContinuationData:B}),0);CN.jumpTo(0)}})};
WP[$v]=[_.Sc,_.Of,_.ow];var rB=function(){};
_.p(rB,jQ);rB.prototype.resolveCommand=function(N){var t,O,H;return _.K(function(A){if(A.nextAddress==1)return(t=_.M(N,xcS))?A.yield(_.Kx(),2):A.return();O=A.yieldResult;if(!O)return A.return();var Z=O,U=(H=t)==null?void 0:H.languageCode,C;(Z==null?0:(C=Z.isReady)==null?0:C.call(Z))&&(U=hY4(Z,U))&&Z.setAudioTrack(U);_.Ty(A)})};var It=function(){};
_.p(It,KX);_.V=It.prototype;_.V.getApiPaths=function(){return b60};
_.V.getExtension=function(N){return _.M(N,_.rN)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$14332_getStoreKey=function(N){if((N=this.getExtension(N))&&N.videoId){var t={videoId:N.videoId};N.playlistId&&(t.playlistId=N.playlistId);N.index&&(t.index=N.index);N.params&&(t.params=N.params);return _.WC("next",t)}};
_.V.JSC$14325_getClientScreen=function(N){var t;return((t=N.contentPlaybackContext)==null?void 0:t.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$14325_buildRequest=function(N,t,O){t.videoId&&(N.videoId=t.videoId);t.playlistId&&(N.playlistId=t.playlistId);t.params&&(N.params=t.params);t.index!==void 0&&(N.playlistIndex=t.index);N.racyCheckOk=!(!O.racyCheckOk&&!t.racyCheckOk);N.contentCheckOk=!!t.contentCheckOk;O.contentPlaybackContext&&(N.autonavState=O.contentPlaybackContext.autonavState,N.playbackContext={vis:O.contentPlaybackContext.vis,lactMilliseconds:O.contentPlaybackContext.lactMilliseconds});O.prefetchPlaybackContext&&(N.context.request||
(N.context.request={}),N.context.request.isPrefetch=!0);_.h("captions_hats_killswitch")||(t=_.d0().getFlag(65),t=t!=null?!t:!1,O=!!_.b8("yt-player-sticky-caption"),N.captionsRequested=t&&O)};
_.V.getRequestConfig=function(N){N=this.JSC$14332_getStoreKey(N);var t;N&&(t={storeStrategy:{storeKey:N}});_.h("web_log_player_watch_next_ticks")&&(t=t||{},t.requestTick="wn_s",t.responseTick="wn_r");return t};
var lB=function(){};
_.p(lB,KX);lB.prototype.getApiPaths=function(){return b60};
lB.prototype.getExtension=function(N){return _.M(N,_.PH)};
lB.prototype.JSC$14325_buildRequest=function(N,t){t.token&&(N.continuation=t.token)};var QY=function(){this.innerTubeTransport=_.cY().resolve(_.Sc);this.miniplayerService=_.cY().resolve(_.kf)};
_.p(QY,jQ);var imi=function(N){var t;return _.K(function(O){t=_.Ro("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;N.JSC$17788_mainAppPlayer=new SL(t);document.addEventListener("yt-page-data-updated",N.JSC$17788_pauseOnNavigation.bind(N));_.Ty(O)})},uaJ=function(N,t){var O,H,A,Z;
return _.K(function(U){if(U.nextAddress==1){O=new It;H=O.JSC$14325_getRequest(t);if(!H)return U.return(void 0);A=H.innerTubeRequest;return U.yield(_.cT(N.innerTubeTransport,A,"/youtubei/v1/next"),2)}Z=U.yieldResult;var C;var F,g,B=(C=Z.contents)==null?void 0:(F=C.twoColumnWatchNextResults)==null?void 0:(g=F.playlist)==null?void 0:g.playlist,c;C=(B==null?0:(c=B.contents)==null?0:c.length)?B:void 0;return U.return(C)})},SWf=function(N,t){var O,H,A,Z,U;
return _.K(function(C){if(C.nextAddress==1)return O=N.JSC$17788_mainAppPlayer,C.yield(O.api,2);if(C.nextAddress!=3)return H=C.yieldResult,t.watchCommand?C.yield(uaJ(N,t.watchCommand),3):C.return();A=C.yieldResult;if((Z=A)==null||!Z.contents)return C.return();U=A.contents.map(function(F){var g;return(g=F.playlistPanelVideoRenderer)==null?void 0:g.videoId}).filter(function(F){return!!F}).map(function(F){return{encrypted_id:F}});
H.updatePlaylist({video:U});_.Ty(C)})},ho5=function(N,t){var O,H,A;
return _.K(function(Z){return Z.nextAddress==1?(O=N.JSC$17788_mainAppPlayer,A=(H=t.playerParams)!=null?H:"",t.externalVideoId?Z.yield(O.loadVideoWithPlayerVars({videoId:t.externalVideoId,audio_only:"1",player_params:A}),2):Z.jumpTo(2)):t.watchCommand?Z.yield(SWf(N,t),0):Z.jumpTo(0)})};
QY.prototype.JSC$17788_pauseOnNavigation=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1)return t=N.JSC$17788_mainAppPlayer,H.yield(t.api,2);O=H.yieldResult;O.pauseVideo();_.Ty(H)})};
QY.prototype.pauseVideo=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1)return t=N.JSC$17788_mainAppPlayer,H.yield(t.api,2);O=H.yieldResult;O.pauseVideo();_.Ty(H)})};
QY.prototype.playVideo=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1)return t=N.JSC$17788_mainAppPlayer,H.yield(t.api,2);O=H.yieldResult;O.playVideo();_.Ty(H)})};
var Mu1=function(N){var t,O;return _.K(function(H){if(H.nextAddress==1)return t=N.JSC$17788_mainAppPlayer,H.yield(t.api,2);O=H.yieldResult;O.mute();_.Ty(H)})},bmf=function(N){var t,O;
return _.K(function(H){if(H.nextAddress==1)return t=N.JSC$17788_mainAppPlayer,H.yield(t.api,2);O=H.yieldResult;O.unMute();_.Ty(H)})};
QY.prototype.stopVideo=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1)return t=N.JSC$17788_mainAppPlayer,H.yield(t.api,2);O=H.yieldResult;O.stopVideo();_.Ty(H)})};
var pW5=function(N,t){return _.K(function(O){switch(O.nextAddress){case 1:switch(t){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return O.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return O.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return O.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return O.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return O.jumpTo(6)}O.jumpTo(0);break;case 2:return O.yield(N.playVideo(),8);case 8:O.jumpTo(0);break;case 3:return O.yield(N.pauseVideo(),
9);case 9:O.jumpTo(0);break;case 4:return O.yield(N.stopVideo(),10);case 10:O.jumpTo(0);break;case 5:return O.yield(Mu1(N),11);case 11:O.jumpTo(0);break;case 6:return O.yield(bmf(N),12);case 12:O.jumpTo(0)}})};
QY.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C;return _.K(function(F){return F.nextAddress==1?(O=_.M(N,DjX),((H=O)==null?0:H.newPlaybackParams)||((A=O)==null?0:A.controlAction)?t.JSC$17788_mainAppPlayer?F.jumpTo(2):F.yield(imi(t),2):F.return()):((Z=O)==null?0:Z.newPlaybackParams)?(t.miniplayerService.isMiniplayerActive()&&((U=t.miniplayerService.getPlayerElement())==null||U.pause()),C=O.newPlaybackParams,C.externalVideoId||C.externalPlaylistId?F.yield(ho5(t,C),0):F.return()):F.yield(pW5(t,
O.controlAction),0)})};var mL=function(N){this.JSC$17794_commandHandler=N};
_.p(mL,jQ);
mL.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1)return(O=_.M(N,kau))?F.yield(_.Kx(),2):F.return();H=F.yieldResult;if(!H)return F.return();var g=H,B=(A=O)==null?void 0:A.languageCode,c=(Z=O)==null?void 0:Z.isAutoTranslated;g.getVideoData&&_.bGl(g).length&&((B=L9Q(g,B,c))?g.setOption("captions","track",B):(g.setOption("captions","stickyLoading",{}),g.setOption("captions","track",{})));U=H.isSubtitlesOn()?_.CJ("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.CJ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");C=_.s_(U,5E3);t.JSC$17794_commandHandler.resolveCommand(C);_.Ty(F)})};
mL[$v]=[_.jo];var Em=function(N,t){this.shortsPlayerPromise=N;this.JSC$17798_commandHandler=t};
_.p(Em,jQ);
Em.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g;return _.K(function(B){if(B.nextAddress==1)return(O=_.M(N,APX))?B.yield(t.shortsPlayerPromise,2):B.return();H=B.yieldResult;var c=zYg(H);c!=null&&c.length||(H.loadModule("captions"),c=zYg(H));A=c;if((Z=A)==null||!Z.length)return U=_.CJ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),C=_.s_(U),t.JSC$17798_commandHandler.resolveCommand(C),B.return();H.toggleSubtitles();F=H.isSubtitlesOn()?_.CJ("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.CJ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");g=_.s_(F);t.JSC$17798_commandHandler.resolveCommand(g);_.Ty(B)})};
Em[$v]=[_.N7Z,_.jo];var Go=function(N){this.JSC$17801_actionRouter=N;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(t,O){t.triggerAction("yt-dismiss-shopping-timely-shelf-action",O);(t=_.cY().resolve(_.BY(_.dh0)))&&t.dismissFeaturedProductOverlay()}]])};
_.p(Go,jQ);Go.prototype.resolveCommand=function(N){var t=this,O,H,A;return _.K(function(Z){O=_.M(N,WXB);if((H=O)==null||!H.overlayId)return Z.return();A=t.dismissPlayerOverlayActions.get(O.overlayId);if(!A)throw Error("Di`"+O.overlayId);A(t.JSC$17801_actionRouter,O);_.Ty(Z)})};
Go[$v]=[ay];var Rt=function(N){this.JSC$17805_playerPromise=N};
_.p(Rt,jQ);Rt.prototype.resolveCommand=function(N){var t=this,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return(O=_.M(N,pTB))?U.yield(t.JSC$17805_playerPromise,2):U.return();H=U.yieldResult;A=H.getVideoData().video_id;O.videoId===A&&(Z=Number(O.offsetFromVideoStartMilliseconds),Z>=0&&H.seekTo(Z/1E3));_.Ty(U)})};
Rt[$v]=[_.A5];var Lq1=_.U_("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),vP=function(N){this.store=N};
_.p(vP,jQ);
var zoJ=function(N){var t,O,H,A;return _.K(function(Z){if(Z.nextAddress==1)return t=_.Ro("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,O=_.Ro("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,H=t||O,N.JSC$17809_mainAppPlayer=new SL(H),Z.yield(N.JSC$17809_mainAppPlayer.api,2);A=Z.yieldResult;A.addEventListener("onStateChange",N.JSC$17809_playerStateChangeListener.bind(N));document.addEventListener("yt-page-data-updated",N.JSC$17809_pauseOnNavigation.bind(N));window.addEventListener("state-navigatestart",
N.JSC$17809_pauseOnNavigation.bind(N));_.Ty(Z)})};
vP.prototype.JSC$17809_playerStateChangeListener=function(N){switch(N){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}YW1(this)};
var YW1=function(N){N.store.dispatch(_.uF("sfvAudioItemCurrentlyPlayingEntity",Lq1,{key:Lq1,externalVideoId:N.externalVideoId,sfvAudioItemPlaybackState:N.playbackState,nowPlayingEntityValue:N.nowPlayingEntityValue}))};
vP.prototype.JSC$17809_pauseOnNavigation=function(){var N=this,t,O,H,A;return _.K(function(Z){if(Z.nextAddress==1){if(!N.JSC$17809_mainAppPlayer){var U=new _.fF("Error: mainAppPlayer is unavailable",N.JSC$17809_mainAppPlayer);_.R0(U);return Z.return()}return Z.yield(N.JSC$17809_mainAppPlayer.api,2)}t=Z.yieldResult;H=(O=t)==null?void 0:O.getPlayerState();H!==1||(A=t)!=null&&A.pauseVideo();_.Ty(Z)})};
vP.prototype.playVideo=function(N,t,O){var H=this,A,Z;return _.K(function(U){if(U.nextAddress==1)return U.yield((A=H.JSC$17809_mainAppPlayer)==null?void 0:A.api,2);Z=U.yieldResult;if(!H.JSC$17809_mainAppPlayer||!Z){var C=new _.fF("Error: mainAppPlayer is unavailable",H.JSC$17809_mainAppPlayer);_.R0(C);return U.return()}return U.yield(H.JSC$17809_mainAppPlayer.loadVideoWithPlayerVars({videoId:H.externalVideoId,audio_only:"1",start:N/1E3,end:N/1E3+t,player_params:O}),0)})};
vP.prototype.pauseVideo=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1){if(!N.JSC$17809_mainAppPlayer){var A=new _.fF("Error: mainAppPlayer is unavailable",N.JSC$17809_mainAppPlayer);_.R0(A);return H.return()}return H.yield(N.JSC$17809_mainAppPlayer.api,2)}t=H.yieldResult;(O=t)==null||O.pauseVideo();_.Ty(H)})};
vP.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I;return _.K(function(r){if(r.nextAddress==1)return O=_.M(N,tNr),A=(H=O)==null?void 0:H.nowPlayingEntityValue,U=(Z=O)==null?void 0:Z.externalVideoId,c=Number((B=(C=O)==null?void 0:(F=C.defaultStartPoints)==null?void 0:(g=F[0])==null?void 0:g.offsetMs)!=null?B:"0"),P=Number((w=(u=O)==null?void 0:(S=u.defaultStartPoints)==null?void 0:(b=S[0])==null?void 0:(z=b.duration)==null?void 0:z.seconds)!=null?w:"15"),I=(l=
(x=O)==null?void 0:x.playerParams)!=null?l:"",A&&U?t.JSC$17809_mainAppPlayer?r.jumpTo(2):r.yield(zoJ(t),2):r.return();if(r.nextAddress!=6){if(t.nowPlayingEntityValue&&A===t.nowPlayingEntityValue)return t.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?r.yield(t.pauseVideo(),0):r.yield(t.playVideo(c,P,I),0);t.externalVideoId=U;t.nowPlayingEntityValue=A;t.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return r.yield(t.playVideo(c,P,I),6)}YW1(t);return r.jumpTo(0)})};
vP[$v]=[ZZ];var JK=function(N){this.JSC$17827_commandHandler=N};
_.p(JK,jQ);JK.prototype.resolveCommand=function(N,t){var O=this,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return(H=_.M(N,qnu))?U.yield(_.Kx(),2):U.return();A=U.yieldResult;if(!A)return U.return();(Z=YLv(A))&&O.JSC$17827_commandHandler.resolveCommand(Z,t);_.Ty(U)})};
JK[$v]=[_.jo];var ot=function(N){this.JSC$17833_commandHandler=N};
_.p(ot,jQ);ot.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1)return(H=_.M(N,fh0))?F.yield(_.Kx(),2):F.return();A=F.yieldResult;if(!A)return F.return();(Z=P49(A))?O.JSC$17833_commandHandler.resolveCommand(Z,t):(U=_.CJ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),C=_.s_(U),O.JSC$17833_commandHandler.resolveCommand(C));_.Ty(F)})};
ot[$v]=[_.jo];var sm=function(N){this.JSC$17836_playerPromise=N};
_.p(sm,jQ);sm.prototype.resolveCommand=function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1)return(O=_.M(N,QfY))?A.yield(t.JSC$17836_playerPromise,2):A.return();H=A.yieldResult;H.isFullscreen()&&H.wakeUpControls();_.Ty(A)})};
sm[$v]=[_.A5];var NZ=function(N){this.JSC$17839_playerPromise=N};
_.p(NZ,jQ);NZ.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U;return _.K(function(C){if(C.nextAddress==1){O=_.M(N,L3_);if(!O)return C.return();H=O.overlayRenderer;return H?(A=_.M(H,vpr))?C.yield(t.JSC$17839_playerPromise,3):C.jumpTo(0):C.return()}Z=C.yieldResult;Z.renderChapterSeekingAnimation(1,_.Gv(A.text),(U=A.icon)==null?void 0:U.iconType);_.Ty(C)})};
NZ[$v]=[_.A5];var tt=function(N){this.store=N};
_.p(tt,jQ);
tt.prototype.resolveCommand=function(N){var t=this,O,H,A;return _.K(function(Z){if(Z.nextAddress==1){O=_.M(N,Ujp);if(!O)return Z.return();H="";(A=t.store.getState().collabInviteLink)&&O.id===A.playlistId?H=A.inviteLinkURL:O.shortUrl&&(H=O.shortUrl);return H?Z.yield(navigator.clipboard.writeText(H),3):Z.jumpTo(0)}var U={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.CJ("COPY_LINK_SUCCESS_TOAST")}}}}};_.cY().resolve(_.jo).resolveCommand(U);_.Ty(Z)})};
tt[$v]=[gB];var OV=function(N,t){this.innertubeTransportService=N;this.JSC$17849_commandHandler=t};
_.p(OV,jQ);OV.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u;return _.K(function(S){if(S.nextAddress==1)return(H=_.M(N,_.cs))?S.yield(_.rq(O.innertubeTransportService,N,(A=t)==null?void 0:A.form),2):S.return();(Z=S.yieldResult)&&Z.errorMetadata&&(U=Z,C=_.s_(U.error.message),O.JSC$17849_commandHandler.resolveCommand(C));F=Z;if((g=F)==null?0:g.actions)for(B=_.D(F.actions),c=B.next();!c.done;c=B.next())u=c.value,O.JSC$17849_commandHandler.resolveCommand(u);_.Ty(S)})};
OV[$v]=[_.Sc,_.jo];var Ht=function(){};
_.p(Ht,jQ);Ht.prototype.resolveCommand=function(N){var t;return _.K(function(O){t=_.M(N,ob_);if(!t)return O.return();(new LHf(t)).show();_.Ty(O)})};_.At=new _.dk("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Z2=function(N,t,O,H){this.store=N;this.innertubeTransportService=t;this.controller=O;this.JSC$17857_commandHandler=H};
_.p(Z2,jQ);
Z2.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E,J,CN,B4,zM,jy,c4;return _.K(function(XO){if(XO.nextAddress==1){H=_.M(N,_.CY);if(!H)return XO.return();if(H.clientActions){A=_.D(H.clientActions);for(Z=A.next();!Z.done;Z=A.next())U=Z.value,O.JSC$17857_commandHandler.resolveCommand(U,t);var kx,fN=t==null?void 0:(kx=t.form)==null?void 0:kx.element;fN&&_.or(fN,"yt-dismissible-item-action",H.clientActions)}return XO.yield(_.rq(O.innertubeTransportService,N,(C=
t)==null?void 0:C.form),2)}if(F=XO.yieldResult)F.errorMetadata?(g=F,B=_.s_(g.error.message),O.JSC$17857_commandHandler.resolveCommand(B),"error"in F&&((c=t)==null?0:(u=c.commandController)==null?0:u.onServerError)&&((S=t)==null||(b=S.commandController)==null||b.onServerError(N,F))):(z=t)==null||(w=z.commandController)==null||(x=(P=w).onSuccess)==null||x.call(P,N,F);l=F;((I=l)==null?0:I.collaborationInviteLink)&&H.playlistId&&(_.h("web_enable_invite_collaborators_link")||_.h("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
O.store.dispatch(_.H5({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:H.playlistId,inviteLinkUrl:l.collaborationInviteLink}}));((r=l)==null?0:r.redirectEndpoint)&&O.JSC$17857_commandHandler.resolveCommand(l.redirectEndpoint);((E=l)==null?0:(J=E.newHeader)==null?0:J.playlistHeaderRenderer)?aCO(O.controller,l.newHeader.playlistHeaderRenderer):((CN=l)==null?0:(B4=CN.newHeader)==null?0:B4.musicEditablePlaylistDetailHeaderRenderer)&&aCO(O.controller,l.newHeader.musicEditablePlaylistDetailHeaderRenderer);
O.controller.playlistVideoListElement&&((zM=l)==null?0:(jy=zM.playlistEditResults)==null?0:(c4=jy[0])==null?0:c4.playlistEditVideoAddedResultData)&&((fN=O.controller.playlistVideoListElement)==null||fN.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:l.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Ty(XO)})};
Z2[$v]=[_.VT,_.Sc,_.At,_.jo];var V4=function(N,t){this.controller=N;this.JSC$17867_commandHandler=t};
_.p(V4,jQ);V4.prototype.resolveCommand=function(N,t){var O=this,H,A,Z;return _.K(function(U){H=_.M(N,CDf);O.controller.showRefreshPill&&((A=H)==null?0:A.command)&&(O.JSC$17867_commandHandler.resolveCommand((Z=H)==null?void 0:Z.command,t),O.controller.showRefreshPill=!1);_.Ty(U)})};
V4[$v]=[_.IF,_.jo];var D2=function(N,t){this.store=N;this.JSC$17871_commandHandler=t||_.U4.instance};
_.p(D2,jQ);D2.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u;return _.K(function(S){H=_.M(N,M6E);A=O.store.getState().radioButtonGroup;if((Z=H)==null?0:Z.command)O.JSC$17871_commandHandler.resolveCommand((U=H)==null?void 0:U.command,t);else if(A&&((C=H)==null?void 0:C.formId)===A.currentFormId)for(F=Object.values(A.commandsMap),g=_.D(F),B=g.next();!B.done;B=g.next())c=B.value,(u=_.wF(c))&&O.JSC$17871_commandHandler.resolveCommand(u,t);_.Ty(S)})};
D2[$v]=[_.VT];var UV=new _.dk("USER_PREFS");var CP=function(N){this.JSC$17876_prefCookie=N};
_.p(CP,jQ);CP.prototype.resolveCommand=function(N){var t=this,O;return _.K(function(H){(O=_.M(N,lgS))&&typeof O.useListView==="boolean"&&(_.g0(0,155,O.useListView),t.JSC$17876_prefCookie.save());_.Ty(H)})};
CP[$v]=[UV];var KP=function(N){this.JSC$17880_prefCookie=N};
_.p(KP,jQ);KP.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U;return _.K(function(C){O=_.M(N,NAX);if((H=O)==null||!H.gl)return C.return();A=O.gl;Z={persist_gl:"1",gl:A};t.JSC$17880_prefCookie.set("gl",A);t.JSC$17880_prefCookie.save();U=$nS(Z);_.xH(U);_.Ty(C)})};
KP[$v]=[UV];var FX=function(N){this.JSC$17884_prefCookie=N};
_.p(FX,jQ);FX.prototype.resolveCommand=function(N){var t=this,O,H;return _.K(function(A){O=_.M(N,FTR);if(!O)return A.return();H=!1;O.flagNum&&typeof O.value==="boolean"?(_.g0(0,O.flagNum,O.value),H=!0):O.key&&typeof O.stringValue==="string"&&(t.JSC$17884_prefCookie.set(O.key,O.stringValue),H=!0);H&&t.JSC$17884_prefCookie.save();_.Ty(A)})};
FX[$v]=[UV];var ds=new _.dk("PREF_STORAGE_PROMISE_TOKEN");var gs=function(N){this.JSC$17888_prefStoragePromise=N};
_.p(gs,jQ);gs.prototype.resolveCommand=function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1)return(O=_.M(N,gcR))?A.yield(t.JSC$17888_prefStoragePromise,2):A.return();H=A.yieldResult;return H===void 0||O.key===void 0||O.value===void 0?A.return():A.yield(H.set(O.key,O.value),0)})};
gs[$v]=[ds];var y4=function(N){this.innertubeTransportService=N};
_.p(y4,jQ);y4.prototype.resolveCommand=function(N,t){var O=this,H,A;return _.K(function(Z){(H=_.M(N,_.MNy))&&H&&H.isFirstRequest&&(_.LJ("search_overview_answer"),_.zT("so_rq",void 0,"search_overview_answer"));return Z.yield(_.rq(O.innertubeTransportService,N,(A=t)==null?void 0:A.form),0)})};
y4[$v]=[_.Sc];var Tcm=function(){};
_.p(Tcm,jQ);
Tcm.prototype.resolveCommand=function(N){var t,O,H,A,Z,U,C,F,g;return _.K(function(B){t=_.M(N,bZp);if((O=t)==null?0:O.sectionIdentifier){if(t.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(A=(H=document.getElementsByTagName(t.sectionIdentifier))==null?void 0:H.item(0))A.scrollIntoView({behavior:"smooth"}),(Z=U2z(A))&&Z.focus({preventScroll:!0});return B.return()}U=document.querySelector("[section-identifier="+t.sectionIdentifier+"]");C=document.querySelector("[section-identifier="+t.referenceSectionIdentifier+
"]");if(!U)return B.return();F=t.verticalScrollOffsetDp?t.verticalScrollOffsetDp:0;C&&(F-=C.offsetTop);window.scrollTo({top:U.offsetTop+F,behavior:"smooth"});(g=U2z(U))&&g.focus({preventScroll:!0})}_.Ty(B)})};var Bt=function(N){this.JSC$17900_commandHandler=N};
_.p(Bt,jQ);
Bt.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F;return _.K(function(g){if(g.nextAddress==1){O=_.M(N,EnX);if(!O||!O.imageBytes||!navigator.clipboard)return g.return();if(O.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.R0(Error("Fi")),g.return();_.Mo(g,2);A=(H=O)==null?void 0:H.imageBytes;Z=A.replace(/-/g,"+").replace(/_/g,"/");U=yF4(Z);C={};F=[new ClipboardItem((C[U.type]=U,C))];return g.yield(navigator.clipboard.write(F),4)}if(g.nextAddress!=2)return O.successCommand&&
t.JSC$17900_commandHandler.resolveCommand(O.successCommand),_.Do(g,0);_.ax(g);O.errorCommand&&t.JSC$17900_commandHandler.resolveCommand(O.errorCommand);_.Ty(g)})};
Bt[$v]=[_.jo];var ct=function(N,t){this.innertubeTransportService=N;this.JSC$17904_commandHandler=t};
_.p(ct,jQ);ct.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1)return(H=_.M(N,GzB))?F.yield(_.rq(O.innertubeTransportService,N,(A=t)==null?void 0:A.form),2):F.return();(Z=F.yieldResult)&&Z.errorMetadata&&H.onFailureCommand&&O.JSC$17904_commandHandler.resolveCommand(H.onFailureCommand);U=Z;((C=U)==null?0:C.shareCommand)&&O.JSC$17904_commandHandler.resolveCommand(U.shareCommand,t);_.Ty(F)})};
ct[$v]=[_.Sc,_.jo];var $d=function(){};
_.p($d,jQ);$d.prototype.resolveCommand=function(N){var t,O;return _.K(function(H){t=_.M(N,V6f);if(!t||!navigator.share)return H.return();O={url:t.url};try{return H.return(navigator.share(O))}catch(A){}_.Ty(H)})};var jU=function(){};
_.p(jU,jQ);jU.prototype.resolveCommand=function(){return _.K(function(N){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Ty(N)})};var i6=function(N){this.JSC$17914_navigationConfirmationService=N};
_.p(i6,jQ);i6.prototype.resolveCommand=function(){var N=this;return _.K(function(t){N.JSC$17914_navigationConfirmationService.cancelPendingNavigation();_.Ty(t)})};
i6[$v]=[Gd];var u6=function(N){this.JSC$17917_screenManager=N};
_.p(u6,jQ);u6.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g;return _.K(function(B){A=(H=t.form)==null?void 0:H.event;U=(Z=t.form)==null?void 0:Z.element;if(!A)throw new _.fF("Event not passed in when resolving command");C=_.D(A.composedPath());for(F=C.next();!F.done;F=C.next())if(g=F.value,g.tagName==="YT-COPY-LINK-RENDERER")return g.copyUrlToClipboard(),U&&_.fE(O.JSC$17917_screenManager,U),B.return();_.Ty(B)})};
u6[$v]=[_.ow];var SU=function(){this.JSC$17921_miniAppClientDataProvider=_.cY().resolve(_.L5)};
_.p(SU,jQ);SU.prototype.resolveCommand=function(){var N=this,t,O;return _.K(function(H){if(N.JSC$17921_miniAppClientDataProvider.clientData.has("video_id")){var A=N.JSC$17921_miniAppClientDataProvider,Z=A.clientData.get("video_id");Z&&A.clientData.delete("video_id");t="https://youtube.com/watch?v="+Z;O=_.Wl(t);if(O===void 0)throw Error("Gi`"+t);_.OG(window,O)}_.Ty(H)})};var ht=function(){};
_.p(ht,jQ);ht.prototype.resolveCommand=function(){return _.K(function(N){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Ty(N)})};var MZ=function(){};
_.p(MZ,jQ);MZ.prototype.resolveCommand=function(){var N;return _.K(function(t){if(t.nextAddress==1)return t.yield(_.JVS(window.document.documentElement),2);(N=document.querySelector("mini-app-container-view-model iframe"))&&N.focus();_.Ty(t)})};var b6=function(N){this.JSC$17928_navigationConfirmationService=N};
_.p(b6,jQ);
b6.prototype.resolveCommand=function(){var N=this;return _.K(function(t){var O=N.JSC$17928_navigationConfirmationService,H=_.cY().resolve(_.lI),A;if(((A=O.navigateParams)==null?void 0:A.data)!==void 0){var Z;_.kwp(H,O.navigateParams.endpoint,O.navigateParams.data,(Z=O.navigateParams.navigationType)!=null?Z:1,O.navigateParams.tempData,O.navigateParams.isMiniplayer,void 0,!0);O.navigateParams=void 0;O.customConfirmationCommand=void 0}else O.navigateParams&&(H.navigate(O.navigateParams.endpoint,O.navigateParams.reload,
O.navigateParams.params,O.navigateParams.tempData,O.navigateParams.requestType,O.navigateParams.createScreenConfig,!0),O.navigateParams=void 0,O.customConfirmationCommand=void 0);_.Ty(t)})};
b6[$v]=[Gd];var pP=function(){};
_.p(pP,jQ);pP.prototype.resolveCommand=function(){return _.K(function(N){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Ty(N)})};var LP=function(N){this.JSC$17933_prefStorage=N};
_.p(LP,jQ);LP.prototype.resolveCommand=function(){var N=this,t,O;return _.K(function(H){switch(H.nextAddress){case 1:return H.yield(N.JSC$17933_prefStorage,2);case 2:return(t=H.yieldResult)?H.yield(t.set("sfvle",!1),3):H.return();case 3:return H.yield(t.set("sfvles",!0),4);case 4:O=_.d0(),_.g0(0,203,!1),_.g0(0,204,!0),O.save(),_.Ty(H)}})};
LP[$v]=[ds];var zY=function(N){this.JSC$17936_prefStorage=N};
_.p(zY,jQ);zY.prototype.resolveCommand=function(){var N=this,t,O;return _.K(function(H){switch(H.nextAddress){case 1:return H.yield(N.JSC$17936_prefStorage,2);case 2:return(t=H.yieldResult)?H.yield(t.set("sfvle",!0),3):H.return();case 3:return H.yield(t.set("sfvles",!0),4);case 4:O=_.d0(),_.g0(0,203,!0),_.g0(0,204,!0),O.save(),_.Ty(H)}})};
zY[$v]=[ds];_.wWO=new _.dk("SNACKBAR_CONTROLLER_TOKEN");_.eoz=new _.dk("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Yd=function(N){this.controller=N};
_.p(Yd,jQ);Yd.prototype.resolveCommand=function(N){var t=this,O;return _.K(function(H){O=_.M(N,DR0);if(!O)return H.return();var A=t.controller;A.closeSnackbarFn&&A.closeSnackbarFn();_.Ty(H)})};
Yd[$v]=[_.wWO];var aZ=function(N,t){this.controller=N;this.JSC$17943_sheetController=t};
_.p(aZ,jQ);aZ.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F;return _.K(function(g){H=_.M(N,CEa);if(!H)return g.return();U=jNO(O.JSC$17943_sheetController,(A=t)==null?void 0:(Z=A.form)==null?void 0:Z.element);C=_.M(H.content,MLS);if(!C)return g.return();var B=O.controller,c=C,u=(F=H.animationStyle)!=null?F:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(B.showSnackbarFn)B.showSnackbarFn({snackbarViewModel:c,animationStyle:u,durationMs:H.durationSeconds*1E3,target:U});else throw Error("zj");_.Ty(g)})};
aZ[$v]=[_.wWO,_.HD];var TY=function(){};
_.p(TY,jQ);TY.prototype.resolveCommand=function(N){var t;return _.K(function(O){t=_.M(N,djf);if(!t||typeof t.key!=="string"||typeof t.value!=="string")return O.return();window.localStorage.setItem(t.key,t.value);_.Ty(O)})};var ws=function(N){this.store=N};
_.p(ws,jQ);ws.prototype.resolveCommand=function(N){var t=this,O;return _.K(function(H){O=_.M(N,$5t);if(!O||!O.stepId||!O.token)return H.return();t.store.dispatch(Hju({stepId:O.stepId,token:O.token,isSelected:!1}));_.Ty(H)})};
ws[$v]=[gB];var eU=function(N,t,O){this.innertubeTransportService=N;this.store=t;this.JSC$17955_screenManager=O};
_.p(eU,jQ);
eU.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E,J,CN,B4;return _.K(function(zM){O=_.M(N,Vep);if(!O||(H=O.stepIds)==null||!H.length)return zM.return();A=t.store.getState().talkToRecs;Z=[];U=[];C=_.D(O.stepIds);for(F=C.next();!F.done;F=C.next())for(g=F.value,B=void 0,(c=(B=A.stepStates[g])==null?void 0:B.userQuery)&&U.push({userQuery:O.submitEmptyUserQuery?"":c.userQuery,userQueryToken:c.token}),S=u=void 0,b=(S=(u=A.stepStates[g])==null?void 0:u.selectionStates)!=
null?S:{},z=_.D(Object.entries(b)),w=z.next();!w.done;w=z.next())P=w.value,x=_.D(P),l=x.next().value,I=x.next().value,r=l,E=I,E.isSelected&&Z.push(r);J={selectedChipTokens:Z,userQueries:U,submittedStepIds:O.stepIds};CN={browseTalk2recsFormData:J};O.browseEndpoint?(B4=N,_.LC(B4,_.yE,O.browseEndpoint)):O.command&&(B4=O.command);return B4?zM.yield(_.rq(t.innertubeTransportService,B4,{formData:CN,disableCache:!0}).then(function(jy){(jy==null?0:jy.trackingParams)&&t.JSC$17955_screenManager.graftServerVe(jy==
null?void 0:jy.trackingParams)}),0):zM.return()})};
eU[$v]=[_.Sc,gB,_.ow];var Pt=function(N){this.store=N};
_.p(Pt,jQ);
Pt.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g;return _.K(function(B){O=_.M(N,cQO);if(!O||!O.stepId||!O.token)return B.return();O.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY"?(U=(Z=(H=t.store.getState().talkToRecs.stepStates[O.stepId])==null?void 0:(A=H.userQuery)==null?void 0:A.userQuery)!=null?Z:"",C=U.length>0?". ":"",F=U+C+O.selectedText,t.store.dispatch(A9Z({stepId:O.stepId,userQueryToken:O.token,userQuery:F}))):O.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY"?t.store.dispatch(A9Z({stepId:O.stepId,
userQueryToken:O.token,userQuery:(g=O.selectedText)!=null?g:""})):t.store.dispatch(Hju({stepId:O.stepId,token:O.token,isSelected:!0}));_.Ty(B)})};
Pt[$v]=[gB];var XX=function(N){this.store=N};
_.p(XX,jQ);XX.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C;return _.K(function(F){H=_.M(N,rpN);if(!H||!H.stepId||!H.userQueryToken)return F.return();C=(U=(A=t)==null?void 0:(Z=A.form)==null?void 0:Z.userQuery)!=null?U:"";O.store.dispatch(A9Z({stepId:H.stepId,userQueryToken:H.userQueryToken,userQuery:C}));_.Ty(F)})};
XX[$v]=[gB];_.Pw1=new _.dk("TIMELY_ACTIONS_CONTROLLER_TOKEN");var xd=function(N){this.controller=N};
_.p(xd,jQ);xd.prototype.resolveCommand=function(N){var t=this,O,H,A,Z;return _.K(function(U){O=_.M(N,SrZ);if(!O)return U.return();H=O;A=H.id;Z=H.isVisible;if(A===void 0||Z===void 0)return U.return();var C;(C=t.controller.timelyActionsMap.get(A))==null||C(A,Z);_.Ty(U)})};
xd[$v]=[_.Pw1];var XWO=function(){this.timelyActionsMap=new Map};var kd=function(N){this.JSC$17981_commandHandler=N};
_.p(kd,jQ);kd.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U;return _.K(function(C){O=_.M(N,_.Tkp);if(!O)return C.return();Z=(H=O.item)==null?void 0:(A=H.notificationTextRenderer)==null?void 0:A.successResponseText;if(!Z)return C.return();U=_.oJ(Z);t.JSC$17981_commandHandler.resolveCommand(U);_.Ty(C)})};
kd[$v]=[_.jo];var qZ=function(N,t){this.innertubeTransportService=N;this.JSC$17986_playerApiPromise=t};
_.p(qZ,jQ);
qZ.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B;return _.K(function(c){if(c.nextAddress==1)return c.yield(t.JSC$17986_playerApiPromise,2);O=c.yieldResult;H=O.getOption("captions","track");A=Object.assign({},_.M(N,_.XbB));(U=(Z=O.getVideoData())==null?void 0:Z.video_id)?A.externalVideoId=U:_.HY(Error("Hi"));if((C=H)==null?0:C.languageCode)A.languageCode=H.languageCode;if((F=H)==null?0:F.kind)A.kind=H.kind;if((g=H)==null?0:g.name)A.name=H.name;B=Object.assign({},N,{getTranscriptEndpoint:A});return c.yield(_.rq(t.innertubeTransportService,
B),0)})};
qZ[$v]=[_.Sc,_.A5];var fP=function(){};
_.p(fP,jQ);fP.prototype.resolveCommand=function(N){var t,O,H,A,Z,U,C,F;return _.K(function(g){t=_.M(N,h8a);if((O=t)==null||!O.paramKeyValuePairs)return g.return();H=window.location.href;A=_.D(t.paramKeyValuePairs);for(Z=A.next();!Z.done;Z=A.next())U=Z.value,U.key&&U.value&&(C={},H=_.Uy(H,(C[U.key]=U.value,C)));F=_.cY().resolve(_.lE);_.I2(F,H);_.Ty(g)})};_.nP=new _.dk("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Wt=function(N,t,O,H){this.controller=N;this.JSC$17993_playerApiPromise=t;this.innertubeTransportService=O;this.JSC$17993_commandHandler=H};
_.p(Wt,jQ);
Wt.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l;return _.K(function(I){if(I.nextAddress==1){O=_.M(N,m7Q);if((H=O)==null||!H.watchEndpoint)return I.return();A=new It;Z=A.JSC$14325_getRequest(O.watchEndpoint);if(!Z)return I.return();U=O.watchEndpoint.clickTrackingParams;return I.yield(_.cT(t.innertubeTransportService,Z.innerTubeRequest,Z.input,U,Z.config),2)}if(I.nextAddress!=3)return C=I.yieldResult,I.yield(t.JSC$17993_playerApiPromise,3);F=I.yieldResult;F.updateVideoData({raw_watch_next_response:C});
if(b=(g=C)==null?void 0:(B=g.contents)==null?void 0:(c=B.twoColumnWatchNextResults)==null?void 0:(u=c.results)==null?void 0:(S=u.results)==null?void 0:S.contents)w=(z=b.find(function(r){return r.videoPrimaryInfoRenderer}))==null?void 0:z.videoPrimaryInfoRenderer,((P=w)==null?0:P.subtitle)&&xwr(t.controller,w.subtitle);
(l=(x=C)==null?void 0:x.onUiReady)&&t.JSC$17993_commandHandler.resolveCommand(l);_.Ty(I)})};
Wt[$v]=[_.nP,_.A5,_.Sc,_.jo];var kix=function(){this.subtitleChangeCallbackMap=new Map},xwr=function(N,t){N=_.D(N.subtitleChangeCallbackMap.values());
for(var O=N.next();!O.done;O=N.next())O=O.value,O(t)};var rs=function(N,t){this.JSC$18003_commandHandler=N;this.innertubeTransportService=t};
_.p(rs,jQ);
rs.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l;return _.K(function(I){switch(I.nextAddress){case 1:return(Z=(H=t)==null?void 0:(A=H.form)==null?void 0:A.element)&&_.qu(Z),U=_.d0().get("hl"),C="",_.Mo(I,2),I.yield(qLS(U),4);case 4:C=I.yieldResult;_.Do(I,3);break;case 2:return _.ax(I),Z&&_.fi(Z),_.R0(Error("Ji"),"ERROR"),I.return();case 3:F=_.M(N,AX_);if(!F)return Z&&_.fi(Z),I.return();(c=(g=F.commerceActionConfig)==null?void 0:(B=g.commandLifeCycleConfig)==null?
void 0:B.onStartCommand)&&O.JSC$18003_commandHandler.resolveCommand(c);return I.yield(_.rq(O.innertubeTransportService,N,{client_data:{paymentsClientToken:{token:C}}}),5);case 5:(u=I.yieldResult)?(Z&&_.fi(Z),((w=u)==null?0:w.command)&&O.JSC$18003_commandHandler.resolveCommand(u.command),(l=(P=F.commerceActionConfig)==null?void 0:(x=P.commandLifeCycleConfig)==null?void 0:x.onSuccessCommand)&&O.JSC$18003_commandHandler.resolveCommand(l)):(Z&&_.fi(Z),_.R0(Error("Ki")),(z=(S=F.commerceActionConfig)==
null?void 0:(b=S.commandLifeCycleConfig)==null?void 0:b.onFailureCommand)&&O.JSC$18003_commandHandler.resolveCommand(z)),_.Ty(I)}})};
rs[$v]=[_.jo,_.Sc];var IZ=function(N,t,O){this.store=N;this.JSC$18019_commandHandler=t;this.innertubeTransportService=O};
_.p(IZ,jQ);
IZ.prototype.resolveCommand=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c;return _.K(function(u){H=_.M(N,Z_Q);A=H.googlePaymentPayload;H.onStartCommand&&O.JSC$18019_commandHandler.resolveCommand(H.onStartCommand);Z=A.encryptedPurchaseParams;U=A.ypcLogWalletAnalyticDataEndpoint;C=H.serializedTransactionFlowLoggingParams;F=A.serializedPaymentsClientParams;g=H.ypcCujContext;c=W94(O.innertubeTransportService,(B=t)==null?void 0:B.form,Z,U,C,F,g);return u.return(c.then(function(S){fJy(t==null?void 0:t.form,
!1);var b=O.store,z=O.JSC$18019_commandHandler,w=S.integratorData;w==null||w===""||S.error!=null?(String(S.error)==="-1"&&H.onDismissCommand?z.resolveCommand(H.onDismissCommand):String(S.error)!=="-1"&&H.onFailureCommand&&z.resolveCommand(H.onFailureCommand),String(S.error)!=="-1"&&String(S.error)!=="132"&&_.R0(Error("Li"),"ERROR")):(H.googlePaymentEntityKey&&b.dispatch(_.uF("commerceAcquisitionClientPayloadEntity",H.googlePaymentEntityKey,{key:H.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:w,
fundsGuaranteeCallbackClientData:S.integratorClientCallbackData}}})),H.onSuccessCommand&&z.resolveCommand(H.onSuccessCommand));_.Hc()},function(S){fJy(t==null?void 0:t.form,!1);
_.R0(S,"ERROR");H.onFailureCommand&&O.JSC$18019_commandHandler.resolveCommand(H.onFailureCommand)}))})};
IZ[$v]=[ZZ,_.jo,_.Sc];var l6=function(N,t){this.JSC$18023_commandHandler=N;this.purchaseManager=t};
_.p(l6,jQ);
l6.prototype.resolveCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B;return _.K(function(c){O=_.M(N,V3r);((H=O)==null?0:(A=H.commandLifeCycleConfig)==null?0:A.onStartCommand)&&t.JSC$18023_commandHandler.resolveCommand(O.commandLifeCycleConfig.onStartCommand);if(!((Z=O)==null?0:(U=Z.googlePaymentPurchaseManagerPayload)==null?0:U.securePayloadBytes))return _.R0(Error("Mi"),"ERROR"),c.return();C=EJa(_.Jg(O.googlePaymentPurchaseManagerPayload.securePayloadBytes));F=_.d0().get("hl");g=_.lj();hUq(C.serialize(),
F,function(u){g.resolve(u)},function(u){g.reject(u)},g.resolve);
B=g.promise;return c.return(B.then(function(u){if(u)if(u==null?0:u.errorCode){_.R0(Error("Ni`"+u.errorCode),"ERROR");var S,b;((S=O)==null?0:(b=S.commandLifeCycleConfig)==null?0:b.onFailureCommand)&&t.JSC$18023_commandHandler.resolveCommand(O.commandLifeCycleConfig.onFailureCommand)}else if(u==null?0:u.isCancelled){var z,w;((z=O)==null?0:(w=z.commandLifeCycleConfig)==null?0:w.onCancelCommand)&&t.JSC$18023_commandHandler.resolveCommand(O.commandLifeCycleConfig.onCancelCommand)}else{var P,x;((P=O)==
null?0:(x=P.commandLifeCycleConfig)==null?0:x.onSuccessCommand)&&t.JSC$18023_commandHandler.resolveCommand(O.commandLifeCycleConfig.onSuccessCommand)}},function(u){_.R0(u,"ERROR");
var S,b;((S=O)==null?0:(b=S.commandLifeCycleConfig)==null?0:b.onFailureCommand)&&t.JSC$18023_commandHandler.resolveCommand(O.commandLifeCycleConfig.onFailureCommand)}))})};
l6[$v]=[_.jo,MVf];var qWJ=function(N,t){this.JSC$18031_commandHandler=N;this.commandAllowlistOverride=t;var O;this.commandAllowlist=(O=this.commandAllowlistOverride)!=null?O:Q7};
qWJ.prototype.handleResponse=function(N,t,O){var H,A=t==null?void 0:(H=t.config)==null?void 0:H.command;if(!A||this.commandAllowlist.some(function(Z){return!!_.M(A,Z)})){t=void 0;
O!==void 0&&(t={form:{element:O}});N.onResponseReceivedCommand&&this.JSC$18031_commandHandler.resolveCommand(N.onResponseReceivedCommand,t);N.onResponseReceivedAction&&this.JSC$18031_commandHandler.resolveCommand(N.onResponseReceivedAction,t);N.onResponseReceivedEndpoint&&this.JSC$18031_commandHandler.resolveCommand(N.onResponseReceivedEndpoint,t);N.command&&this.JSC$18031_commandHandler.resolveCommand(N.command,t);if(N.onResponseReceivedCommands)for(O=_.D(N.onResponseReceivedCommands),H=O.next();!H.done;H=
O.next())this.JSC$18031_commandHandler.resolveCommand(H.value,t);if(N.onResponseReceivedActions)for(O=_.D(N.onResponseReceivedActions),H=O.next();!H.done;H=O.next())this.JSC$18031_commandHandler.resolveCommand(H.value,t);if(N.onResponseReceivedEndpoints)for(O=_.D(N.onResponseReceivedEndpoints),H=O.next();!H.done;H=O.next())this.JSC$18031_commandHandler.resolveCommand(H.value,t);if(N.actions)for(N=_.D(N.actions),O=N.next();!O.done;O=N.next())this.JSC$18031_commandHandler.resolveCommand(O.value,t)}};
qWJ[$v]=[_.jo,_.BY(b4N)];var fCx=new _.dk("INNERTUBE_TOKEN_SERVICE");var nmf=new _.dk("SCHEDULER_TOKEN");var Wq1=function(N){this.scheduler=N;N={};this.tokenMap=(N.app={},N.user={},N)};
Wq1.prototype.handleResponse=function(N,t){if(!t)throw Error("Oi");var O;if(N=(O=N.responseContext)==null?void 0:O.innertubeTokenJar){if(N.appTokens){var H,A,Z;O=(H=t.innerTubeRequest.context)==null?void 0:(A=H.request)==null?void 0:(Z=A.innertubeTokenJar)==null?void 0:Z.appTokens;rDm(this,N.appTokens,this.tokenMap.app,O)}if(N.userTokens){var U,C,F;t=(U=t.innerTubeRequest.context)==null?void 0:(C=U.request)==null?void 0:(F=C.innertubeTokenJar)==null?void 0:F.userTokens;rDm(this,N.userTokens,this.tokenMap.user,
t)}}};
Wq1.prototype.processContext=function(N){N.request||(N.request={});var t=Object.keys(this.tokenMap.app).length,O=Object.keys(this.tokenMap.user).length;if(t||O)N.request.innertubeTokenJar={},t&&(N.request.innertubeTokenJar.appTokens=[].concat(_.W6(Object.values(this.tokenMap.app).flat()))),O&&(N.request.innertubeTokenJar.userTokens=[].concat(_.W6(Object.values(this.tokenMap.user).flat())))};
var rDm=function(N,t,O,H){t=_.D(t);for(var A=t.next(),Z={};!A.done;Z={token$jscomp$139:void 0},A=t.next()){Z.token$jscomp$139=A.value;if(Z.token$jscomp$139.type===void 0)throw new _.fF("InnerTube token has no type",Z.token$jscomp$139);if(Z.token$jscomp$139.clearTokens)O[Z.token$jscomp$139.type]=[];else if(Z.token$jscomp$139.value!==void 0){O[Z.token$jscomp$139.type]||(O[Z.token$jscomp$139.type]=[]);if(H!==void 0&&H.length){A=_.D(H);for(var U=A.next(),C={};!U.done;C={requestToken:void 0},U=A.next())C.requestToken=
U.value,U=O[Z.token$jscomp$139.type].findIndex(function(F){return function(g){return g===F.requestToken||(0,_.WW.equals)(g,F.requestToken)}}(C)),U>-1&&O[Z.token$jscomp$139.type].splice(U,1)}O[Z.token$jscomp$139.type].push(Z.token$jscomp$139);
Z.token$jscomp$139.maxAgeSeconds&&Number(Z.token$jscomp$139.maxAgeSeconds)>0&&N.scheduler.addLowPriorityJob(function(F){return function(){var g=O[F.token$jscomp$139.type].indexOf(F.token$jscomp$139);g>-1&&O[F.token$jscomp$139.type].splice(g,1)}}(Z),Number(Z.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.fF("InnerTube token has no value",Z.token$jscomp$139);
}};
Wq1[$v]=[nmf];var ICf=new _.dk("LOCAL_INNERTUBE_ROUTER_TOKEN"),lCJ=new _.dk("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Q4=function(N){this.serviceMap=N};
Q4.prototype.shouldPreferLocalResponse=function(N,t){return(N=QN1(this,N))?N.shouldPreferLocalResponse(t):!1};
Q4.prototype.localInnertubeResponse=function(N,t){var O=this,H;return _.K(function(A){return(H=QN1(O,N))?A.return(H.localInnertubeResponse(t)):A.return(Promise.reject(Error("Pi")))})};
Q4.prototype.canProvideFallbackResponse=function(N,t){return(N=QN1(this,N))?N.canProvideFallbackResponse(t):!1};
Q4.prototype.localFallbackInnertubeResponse=function(N,t){var O=this,H;return _.K(function(A){return(H=QN1(O,N))?A.return(H.localFallbackInnertubeResponse(t)):A.return(Promise.reject(Error("Pi")))})};
var QN1=function(N,t){t=_.Yv(t);return t?(N=N.serviceMap[t])?N:null:null};
Q4[$v]=[lCJ];var hl=function(){};
hl.prototype.shouldPreferLocalResponse=function(){return!1};
hl.prototype.localInnertubeResponse=function(){return _.K(function(N){return N.return(Promise.reject(Error("Qi")))})};
hl.prototype.canProvideFallbackResponse=function(){return!0};
hl.prototype.localFallbackInnertubeResponse=function(){var N,t,O;return _.K(function(H){N=gv("CLOSE_POPUP");t={openPopupAction:IJy()};O={actions:[N,t]};return H.return(O)})};var D5y=function(N,t){this.JSC$18080_upliftPromise=N;this.store=t};
_.V=D5y.prototype;_.V.shouldPreferLocalResponse=function(N){var t=N.videoId,O;if(O=t)O=n8x(this.store.getState().entities,N.videoId);return O&&W34(this.store.getState().entities,t)?QhS(this.store.getState().entities,N.playlistId):!1};
_.V.localInnertubeResponse=function(N){var t=this,O;return _.K(function(H){return(O=t.getPlayerResponse(N))?H.return(Promise.resolve(O)):H.return(Promise.reject(Error("Ri")))})};
_.V.canProvideFallbackResponse=function(N){return!!N.videoId};
_.V.localFallbackInnertubeResponse=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(t.JSC$18080_upliftPromise,2);O=t.getPlayerResponse(N);var A;O?A=H.return(Promise.resolve(O)):A=hB(t.store.getState().entities,N.videoId)?H.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.NE(_.CJ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Gex()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
H.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.NE(_.CJ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:EaN()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return A})};
_.V.getPlayerResponse=function(N){return gOl(this.store.getState().entities,N.videoId)};var SS=function(N,t){this.localPlayerService=N;this.localWatchNextService=t};
SS.prototype.shouldPreferLocalResponse=function(N){var t=N.playerRequest;N=N.watchNextRequest;return!!(t&&this.localPlayerService.shouldPreferLocalResponse(t)&&N&&this.localWatchNextService.shouldPreferLocalResponse(N))};
SS.prototype.localInnertubeResponse=function(N){var t=this,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1){O=N.playerRequest;H=N.watchNextRequest;if(!O||!H)throw new _.fF("Missing streaming request",N);return U.yield(t.localPlayerService.localInnertubeResponse(O),2)}if(U.nextAddress!=3)return A=U.yieldResult,U.yield(t.localWatchNextService.localInnertubeResponse(H),3);Z=U.yieldResult;return U.return({playerResponse:A,watchNextResponse:Z})})};
SS.prototype.canProvideFallbackResponse=function(N){var t=N.playerRequest;N=N.watchNextRequest;return!!(t&&this.localPlayerService.canProvideFallbackResponse(t)&&N&&this.localWatchNextService.canProvideFallbackResponse(N))};
SS.prototype.localFallbackInnertubeResponse=function(N){var t=this,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return O=N.playerRequest,H=N.watchNextRequest,O&&H?U.yield(t.localPlayerService.localFallbackInnertubeResponse(O),2):U.return(Promise.reject(new _.fF("Missing streaming request",N)));if(U.nextAddress!=3)return A=U.yieldResult,U.yield(t.localWatchNextService.localFallbackInnertubeResponse(H),3);Z=U.yieldResult;return U.return({playerResponse:A,watchNextResponse:Z})})};var jS=function(N){this.JSC$18090_persistentStorePromiseAccessor=N};
jS.prototype.shouldPreferLocalResponse=function(){return!1};
jS.prototype.localInnertubeResponse=function(){return _.K(function(N){return N.return(Promise.reject(Error("Si")))})};
jS.prototype.canProvideFallbackResponse=function(){return!0};
jS.prototype.localFallbackInnertubeResponse=function(){var N=this,t,O;return _.K(function(H){return H.nextAddress==1?H.yield(N.JSC$18090_persistentStorePromiseAccessor(),2):H.nextAddress!=3?(t=H.yieldResult)?H.yield(t.get("service:guide:fallback"),3):H.return(Promise.reject(Error("Ti"))):(O=H.yieldResult)&&_.N4(O)?H.return(mMg(_.N4(O))):H.return(Promise.reject(Error("Ui")))})};var M4=function(){};
M4.prototype.shouldPreferLocalResponse=function(){return!1};
M4.prototype.localInnertubeResponse=function(){return _.K(function(N){return N.return(Promise.reject(Error("Vi")))})};
M4.prototype.canProvideFallbackResponse=function(){return!0};
M4.prototype.localFallbackInnertubeResponse=function(){var N,t,O;return _.K(function(H){N=gv("CLOSE_POPUP");t={openPopupAction:IJy()};O={actions:[N,t]};return H.return(O)})};var $f=function(){this.urlMap=mwi;this.fallbackCommand=_.vs};
$f.prototype.shouldPreferLocalResponse=function(N){return(N=N.url)?!!Em1(this,N):!1};
$f.prototype.localInnertubeResponse=function(N){var t=this,O;return _.K(function(H){return(O=N.url)?H.return(Gi5(N,Em1(t,O))):H.return(Promise.reject(Error("Wi")))})};
$f.prototype.canProvideFallbackResponse=function(){return!0};
$f.prototype.localFallbackInnertubeResponse=function(N){var t=this,O,H,A,Z,U,C,F;return _.K(function(g){O=N.url;if(!O)return g.return(Gi5(N,t.fallbackCommand));if(H=Em1(t,O))return g.return(Gi5(N,H));A=void 0;Z=_.Yv(O);Z==="/watch"&&(U=_.s$(O,"v"))&&(F=(C=_.s$(O,"list"))!=null?C:void 0,A=_.sK(U,F));A||(A=t.fallbackCommand);return g.return(Gi5(N,A))})};
var Em1=function(N,t){if(t)return N.urlMap[_.kL(t)]},Gi5=function(N,t){t&&N.parentTrackingParams&&(t.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:N.parentTrackingParams}},t.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:t})};var il=function(N,t,O){this.JSC$18101_upliftPromise=N;this.store=t;this.JSC$18101_persistentStorePromiseAccessor=O};
il.prototype.shouldPreferLocalResponse=function(){return!1};
il.prototype.localInnertubeResponse=function(){return _.K(function(N){return N.return(Promise.reject(Error("Xi")))})};
il.prototype.canProvideFallbackResponse=function(){return!0};
il.prototype.localFallbackInnertubeResponse=function(){var N=this;return _.K(function(t){return t.return(Ro5(N))})};
var Ro5=function(N){var t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(s9(N.JSC$18101_upliftPromise,N.store),2);t=H.yieldResult;O={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[lJx(t)]}}}};return H.return(vmm(N,O))})},vmm=function(N,t){var O,H;
return _.K(function(A){if(A.nextAddress==1)return A.yield(N.JSC$18101_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3)return O=A.yieldResult,A.yield(Al(O),3);H=A.yieldResult;return A.return({responseContext:{},contents:t,topbar:H})})};var B7=function(N,t,O){this.JSC$18108_upliftPromise=N;this.store=t;this.JSC$18108_persistentStorePromiseAccessor=O};
B7.prototype.shouldPreferLocalResponse=function(N){var t=N.videoId;return t&&n8x(this.store.getState().entities,t)&&W34(this.store.getState().entities,t)?QhS(this.store.getState().entities,N.playlistId):!1};
B7.prototype.localInnertubeResponse=function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1)return(O=N.videoId)?A.yield(t.JSC$18108_upliftPromise,2):A.return(Promise.reject(Error("Yi")));if(A.nextAddress!=3)return A.yield(JDJ(t,N,O),3);H=A.yieldResult;return A.return(om5(t,H,O))})};
B7.prototype.canProvideFallbackResponse=function(N){return N.videoId?!0:!1};
B7.prototype.localFallbackInnertubeResponse=function(N){var t=this,O,H,A,Z;return _.K(function(U){switch(U.nextAddress){case 1:return(O=N.videoId)?U.yield(t.JSC$18108_upliftPromise,2):U.return(Promise.reject(Error("Yi")));case 2:return U.yield(JDJ(t,N,O),3);case 3:H=U.yieldResult;if(hB(t.store.getState().entities,O)){U.jumpTo(4);break}return U.yield(s9(t.JSC$18108_upliftPromise,t.store),5);case 5:return A=U.yieldResult,U.return(sNm(H,A));case 4:return n8x(t.store.getState().entities,O)&&W34(t.store.getState().entities,
O)?U.return(om5(t,H,O)):(Z={title:_.NE(_.CJ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Gex()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},U.return(sNm(H,Z)))}})};
var JDJ=function(N,t,O){var H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1)return H=t.playlistId,A=_.sK(O,H),F.yield(N.JSC$18108_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3)return Z=F.yieldResult,F.yield(Al(Z),3);U=F.yieldResult;C={responseContext:{},currentVideoEndpoint:A,topbar:U};return F.return(C)})},om5=function(N,t,O){if(N=hB(N.store.getState().entities,O)){var H;
O=N.videoEntity;var A,Z={title:tB(O.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.O_((H=O.localizedStrings)==null?void 0:H.viewCount),viewCount:_.O_((A=O.localizedStrings)==null?void 0:A.viewCount)}}};O.publishedTimestampMillis&&(Z.dateText=_.O_(D3p(new Date(Number(O.publishedTimestampMillis)))));H={videoPrimaryInfoRenderer:Z};A=N.videoEntity;N=N.channelEntity;N={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:tB(_.CJ("SHOW_MORE",void 0,"Show more")),
showLessText:tB(_.CJ("SHOW_LESS",void 0,"Show less")),description:A.formattedDescription,owner:{videoOwnerRenderer:{title:tB(N.title),thumbnail:N.avatar}}}};t.contents={twoColumnWatchNextResults:{results:{results:{contents:[H,N]}}}}}return t},sNm=function(N,t){N.contents={singleColumnWatchNextResults:{results:{results:{contents:[lJx(t)]}}}};
return N};var ul=function(N,t,O){this.JSC$18113_upliftPromise=N;this.store=t;this.JSC$18113_persistentStorePromiseAccessor=O};
ul.prototype.shouldPreferLocalResponse=function(){return!1};
ul.prototype.localInnertubeResponse=function(){return _.K(function(N){return N.return(Promise.reject(Error("Zi")))})};
ul.prototype.canProvideFallbackResponse=function(){return!0};
ul.prototype.localFallbackInnertubeResponse=function(){var N=this,t,O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:return Z.yield(N.JSC$18113_persistentStorePromiseAccessor(),2);case 2:return t=Z.yieldResult,Z.yield(Al(t),3);case 3:return O=Z.yieldResult,H={responseContext:{},topbar:O},Z.yield(N.JSC$18113_upliftPromise,4);case 4:return Z.yield(s9(N.JSC$18113_upliftPromise,N.store),5);case 5:return A=Z.yieldResult,H.watchStatus={backgroundPromoRenderer:A},Z.return(H)}})};var Nb5,tR5;_.mo=new _.dk("ENDPOINT_MAP");Nb5=new _.dk("WATCH_ENDPOINT_MAP");tR5=new _.dk("REEL_ENDPOINT_MAP");var ohM=/^[a-zA-Z0-9_\-]{11}$/;var sh4=_.a5(function(){var N,t;return(t=(N=window).matchMedia)==null?void 0:t.call(N,"(prefers-reduced-motion: reduce)").matches});var O1m=_.a5(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var N=_.s2("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");N||(N=_.Tu("VIDEO"),_.Ba("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
N));return!!(N&&N.canPlayType&&N.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var H11=XMLHttpRequest.prototype.fetch,AI5=H11&&H11.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!gr?!0:!1;var EV=function(N){this.JSC$18124_storeWithEntities=N};
_.p(EV,KX);_.V=EV.prototype;_.V.getApiPaths=function(){return ETr};
_.V.getExtension=function(N){return _.M(N,_.rN)||_.M(N,_.jc)||_.M(N,rPB)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$14332_getStoreKey=function(N){if((_.h("kevlar_cache_on_ttl_player")||_.h("mweb_enable_shorts_innertube_player_prefetch")||_.h("mweb_use_new_history_manager")||_.h("web_shorts_prefetch_service_enabled"))&&(N=this.getExtension(N))&&N.videoId){var t={videoId:N.videoId};N.playlistId&&(t.playlistId=N.playlistId);N.playerParams&&(t.params=N.playerParams);return _.WC("player",t)}};
_.V.JSC$14325_getClientScreen=function(N){var t;return((t=N.contentPlaybackContext)==null?void 0:t.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.V.JSC$14325_buildRequest=function(N,t,O){if(_.h("enable_interstitial_entity_check")){var H=this.JSC$18124_storeWithEntities;if(t.videoId)for(var A=_.D(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),Z=A.next();!Z.done;Z=A.next()){Z=Z.value;var U;var C=void 0,F=void 0,g=t.videoId,B=Z;(U=H)?(g=_.U_(g+B,"interstitialInteractionStateEntity"),U=(C=(F=_.CM(U.getState().entities,"interstitialInteractionStateEntity",g))==null?void 0:F.primaryButtonClicked)!=null?C:!1):U=!1;if(U)switch(Z){case "CONTENT_CHECK_REQUIRED":t.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":t.racyCheckOk=!0}}}t.videoId&&(N.videoId=t.videoId);t.playlistId&&(N.playlistId=t.playlistId);t.index!==void 0&&(N.playlistIndex=t.index+1);t.playerParams&&(N.params=t.playerParams);"startTimeSeconds"in t&&t.startTimeSeconds&&(_.h("enable_player_request_builder_start_time_floor")?N.startTimeSecs=Math.floor(t.startTimeSeconds):N.startTimeSecs=t.startTimeSeconds);O.contentPlaybackContext&&(N.playbackContext={contentPlaybackContext:O.contentPlaybackContext});O.prefetchPlaybackContext&&
(N.playbackContext=Object.assign({},N.playbackContext,{prefetchPlaybackContext:O.prefetchPlaybackContext}),N.context.request||(N.context.request={}),N.context.request.isPrefetch=!0);N.playbackContext||(N.playbackContext={});H=O1m();N.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!H,supportXhr:AI5};O.overrideMutedAtStart&&(N.overrideMutedAtStart=O.overrideMutedAtStart);N.racyCheckOk=!!t.racyCheckOk;N.contentCheckOk=!!t.contentCheckOk;!_.h("captions_prefs_killswitch")&&(O=(O=_.b8("yt-player-caption-language-preferences"))?
O:[],O==null?0:O.length)&&(N.captionParams={viewerSelectedCaptionLangs:O})};
_.V.getRequestConfig=function(N){N=this.JSC$14332_getStoreKey(N);var t;N&&(t={storeStrategy:{storeKey:N}});_.h("web_log_player_watch_next_ticks")&&(t=t||{},t.requestTick="ps_s",t.responseTick="ps_r");return t};
EV[$v]=[ZZ];var GY=function(N,t){this.playerRequestBuilder=N;this.watchNextRequestBuilder=t};
_.p(GY,KX);GY.prototype.getApiPaths=function(){return xPX};
GY.prototype.getExtension=function(N){return _.M(N,_.rN)};
GY.prototype.isNavigationCommand=function(){return!0};
GY.prototype.JSC$14325_buildRequest=function(N,t,O){N.playerRequest={};this.playerRequestBuilder.JSC$14325_buildRequest(N.playerRequest,t,O);_.h("web_streaming_watch")&&(N.watchNextRequest={},this.watchNextRequestBuilder.JSC$14325_buildRequest(N.watchNextRequest,t,O))};
GY[$v]=[EV,It];var Z1O;_.RZ=new _.dk("SHORTS_CONTROLLER_TOKEN");Z1O=new _.dk("SHORTS_STATE_STORE_TOKEN");var vt=function(N,t){var O=_.E1.apply(2,arguments);N=N===void 0?0:N;_.fF.call(this,t,O);this.errorType=N;Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(vt,_.fF);var VRO,Dn5,Unf,CiM,nS,a$z,F7q,K7q,cIO,yIi,g1z;VRO=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(N){return N+"="}).join("|"));
Dn5=RegExp(".*\\?.*playnext=1.*");Unf=function(N,t,O,H,A,Z){this.watchEndpointMap=N;this.reelWatchEndpointMap=t;this.innerTubeTransportService=O;this.fetchPbj=H;this.ephemeralStore=A;this.reloadOnPlayerFailure=Z===void 0?!0:Z};
_.Cux=function(N,t){var O=_.uP("web_pbj_log_warning_rate",0);O=O>0&&Math.random()<O;var H;if((H=_.M(t.commandMetadata,_.Da))==null||!H.rootVe)return O&&_.J_(Error("dj")),!1;var A;H=(A=_.M(t.commandMetadata,_.Da))==null?void 0:A.url;if(!H)return O&&_.J_(Error("ej")),!1;if(Dn5.test(H))return!0;if(VRO.test(H))return O&&_.J_(Error("fj`"+H)),!1;if(_.M(t,_.rN)){if(!(N.watchEndpointMap.watchNext&&N.watchEndpointMap.player||_.h("kevlar_fetch_initial_data_op_watch_client")))return O&&_.J_(Error("$i")),!1;
N=_.uP("web_pbj_log_warning_rate",0);N=N>0&&Math.random()<N;_.M(t,_.rN)?vhM(t)?t=!0:(N&&_.J_(Error("aj")),t=!1):(N&&_.J_(Error("$i")),t=!1);return t}if(_.M(t,_.jc))return JF4(t);if(_.M(t,_.KY))return!0;N=_.WH(N.innerTubeTransportService,t);!N&&O&&_.R0(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(t)});return N};
CiM=function(N,t,O,H,A,Z){t={url:t};if(O==null?0:O.itct)t.parentTrackingParams=O.itct;var U=_.JB(O6_);return _.cT(N.innerTubeTransportService,t,U).then(function(C){(C=C.endpoint)||(C=_.vs);(O==null?0:O.itct)&&C&&!C.trackingParams&&(C.trackingParams=O.itct);var F=ci(C);return nS(N,C,O,H,F,A,Z)})};
nS=function(N,t,O,H,A,Z,U,C){C=C===void 0?{}:C;if(N.fetchPbj&&!_.Cux(N,t)&&!_.h("force_one_platform")){var F=N.fetchPbj(t),g=_.Hc(F.then(function(E){if(!E)throw Error("hj");U(g)||Z(t,E);return E}));
return g}var B,c,u={rootVe:(B=_.M(t.commandMetadata,_.Da))==null?void 0:B.rootVe,url:(c=_.M(t.commandMetadata,_.Da))==null?void 0:c.url,endpoint:t,page:A};if(_.M(t,_.rN)){var S,b={contentPlaybackContext:_.VD(O,(S=_.M(t.commandMetadata,_.Da))==null?void 0:S.url,H)},z=_.lj(),w,P=(w=N.watchEndpointMap.player)==null?void 0:w().JSC$14332_getStoreKey(t);w=P!==void 0&&((F=N.ephemeralStore)==null?void 0:F.has(P));_.h("web_streaming_watch")&&window.TextDecoderStream&&!w?(F=e6y(N.innerTubeTransportService,
t,b,function(E){!u.response&&E.content&&(u.response=E.content);!u.playerResponse&&E.player&&(u.playerResponse=E.player);Z(t,u)}),P=WTO(t),P.length&&(u.preconnect=P,Z(t,u)),K7q(F,z,u).catch(function(E){E instanceof vt&&E.errorType===2&&_.h("web_streaming_watch_fallback")&&F7q(N,t,b,u,Z,U,z)})):F7q(N,t,b,u,Z,U,z);
return z.promise}if(_.M(t,_.jc)){var x;if(((x=_.M(t,_.jc))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var l=_.lj();_.dn5(_.cY().resolve(_.RZ),t).then(function(E){g1z(N,O,H,A,Z,l,E)});
return l.promise}F=_.Hc();w={contentPlaybackContext:_.VD(O,(P=_.M(t.commandMetadata,_.Da))==null?void 0:P.url,H)};(P=N.reelWatchEndpointMap.player)&&(P=P().JSC$14325_getRequest(t,w))&&(F=_.cT(N.innerTubeTransportService,P.innerTubeRequest,P.input,t.clickTrackingParams,P.config));P=_.Hc();(C=N.reelWatchEndpointMap.reelItemWatch)&&(C=C().JSC$14325_getRequest(t))&&(P=_.cT(N.innerTubeTransportService,C.innerTubeRequest,C.input,t.clickTrackingParams,C.config));C=_.Hc();(B=N.reelWatchEndpointMap.reelWatchSequence)&&
_.M(t,_.jc).sequenceParams&&(w=B().JSC$14325_getRequest(t,w))&&(_.h("web_enable_delay_shorts_sequence_call_forget")?_.cT(N.innerTubeTransportService,w.innerTubeRequest,w.input,t.clickTrackingParams,w.config):C=_.cT(N.innerTubeTransportService,w.innerTubeRequest,w.input,t.clickTrackingParams,w.config));w=_.Hc(u);B=_.lj();yIi(t,w,F,P,C,Z,U,B);return B.promise}var I;if(_.M(t,NVp)&&((I=_.M(t.commandMetadata,_.Da))==null?0:I.url))return F=VQ4(_.tJ(lw().location.href),_.tJ(_.M(t.commandMetadata,_.Da).url)).toString(),
CiM(N,F,O,H,Z,function(){return!1});
if(_.M(t,_.KY))return Z(t,u),_.Hc(u);if(_.WH(N.innerTubeTransportService,t)){F=Object.assign({},{tempData:O,disableCache:O.disableCache},C);var r=_.rq(N.innerTubeTransportService,t,F).then(function(E){u.response=E;U(r)||Z(t,u);return u});
return r}return _.Hc(u)};
_.Bbf=function(N,t,O,H){if(_.M(t,_.rN)||_.M(t,_.jc)&&(_.h("mweb_enable_shorts_innertube_player_prefetch")||_.h("kevlar_enable_shorts_prefetch_in_sequence"))||_.M(t,rPB)&&_.h("web_enable_prefetching_videos_on_home")){var A,Z={contentPlaybackContext:_.VD(O,(A=_.M(t.commandMetadata,_.Da))==null?void 0:A.url,H),prefetchPlaybackContext:tlp(O)},U,C,F;if(((U=_.M(t,_.rN))==null?void 0:(C=U.watchEndpointSupportedPrefetchConfig)==null?void 0:(F=C.prefetchHintConfig)==null?void 0:F.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(O=
N.watchEndpointMap.watchNext)if(Z=O().JSC$14325_getRequest(t,Z))return Promise.resolve(_.cT(N.innerTubeTransportService,Z.innerTubeRequest,Z.input,void 0,Z.config).then(function(c){return c}))}else if(O=N.watchEndpointMap.player)if(Z=O().JSC$14325_getRequest(t,Z))return Promise.resolve(_.cT(N.innerTubeTransportService,Z.innerTubeRequest,Z.input,void 0,Z.config).then(function(c){return c}))}else if(_.WH(N.innerTubeTransportService,t)){var g={tempData:O},B=z6p(N.innerTubeTransportService,t);
return B?new Promise(function(c,u){var S,b;return _.K(function(z){if(z.nextAddress==1)return z.yield(B,2);if(z.nextAddress!=4)return S=z.yieldResult,S.JSC$14332_getStoreKey(t,g)?z.yield(_.rq(N.innerTubeTransportService,t,g),4):(u(new _.fF("Prefetching request builder with no store key.",t)),z.jumpTo(0));b=z.yieldResult;c(b);_.Ty(z)})}):Promise.reject(new _.fF("Prefetching unregistered request builder.",t))}return Promise.reject(new _.fF("No request builder available to prefetch endpoint.",t))};
a$z=function(N,t){var O,H,A;if(_.M(t,_.rN)){var Z=N.watchEndpointMap.watchNext;Z&&(O=Z());(N=N.watchEndpointMap.player)&&(H=N())}else if(_.M(t,_.jc))(Z=N.reelWatchEndpointMap.reelItemWatch)&&(O=Z()),(Z=N.reelWatchEndpointMap.player)&&(H=Z()),(N=N.reelWatchEndpointMap.reelWatchSequence)&&(A=N());else{a:{N=D$t(t,N.innerTubeTransportService.endpointMap);if(N!==void 0)if(typeof N.then==="function")_.R0(new _.fF("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",t));else break a;
N=void 0}N&&(O=N)}var U,C,F;return{content:(U=O)==null?void 0:U.JSC$14332_getStoreKey(t),player:(C=H)==null?void 0:C.JSC$14332_getStoreKey(t),reelSequence:(F=A)==null?void 0:F.JSC$14332_getStoreKey(t)}};
F7q=function(N,t,O,H,A,Z,U){var C=_.Hc(),F=N.watchEndpointMap.player;_.h("web_streaming_player")&&(F=xV(GY));F&&(F=F().JSC$14325_getRequest(t,O))&&(C=_.cT(N.innerTubeTransportService,F.innerTubeRequest,F.input,t.clickTrackingParams,F.config));F=_.Hc();var g=N.watchEndpointMap.watchNext;g&&(O=g().JSC$14325_getRequest(t,O))&&(F=_.cT(N.innerTubeTransportService,O.innerTubeRequest,O.input,t.clickTrackingParams,O.config));H=_.Hc(H);cIO(N,t,H,C,F,A,Z,U)};
K7q=function(N,t,O){var H;return _.K(function(A){if(A.nextAddress==1)return A.yield(N,2);_.h("web_streaming_watch_delay_200")||_.h("web_streaming_watch_delay_400")?(H=_.h("web_streaming_watch_delay_200")?200:400,setTimeout(function(){t.resolve(O)},H)):t.resolve(O);
_.Ty(A)})};
cIO=function(N,t,O,H,A,Z,U,C){var F,g,B,c,u;_.K(function(S){switch(S.nextAddress){case 1:return S.yield(O,2);case 2:F=S.yieldResult;if(U(C.promise))return C.resolve(F),S.return();Z(t,F);g=WTO(t);if(!g.length){S.jumpTo(3);break}return S.yield(O,4);case 4:F.preconnect=g,Z(t,F);case 3:return _.Mo(S,5),S.yield(H,7);case 7:B=S.yieldResult;_.Do(S,6);break;case 5:return c=_.ax(S),C.reject(c),S.return();case 6:if(B===void 0&&N.reloadOnPlayerFailure)return F.reload=!0,Z(t,F),C.resolve(F),S.return();if(U(C.promise))return C.resolve(F),
S.return();F.playerResponse=B;Z(t,F);_.h("web_watch_stop_scheduler_on_player_response")&&T0E();_.Mo(S,8);return S.yield(A,10);case 10:u=S.yieldResult;_.Do(S,9);break;case 8:_.ax(S);case 9:if(u===void 0)return F.response={responseContext:{}},C.resolve(F),S.return();if(U(C.promise))return C.resolve(F),S.return();F.response=u;Z(t,F);C.resolve(F);_.Ty(S)}})};
yIi=function(N,t,O,H,A,Z,U,C){var F,g,B,c,u,S;_.K(function(b){switch(b.nextAddress){case 1:return b.yield(t,2);case 2:F=b.yieldResult;if(U(C.promise))return C.resolve(F),b.return();Z(N,F);g=WTO(N);if(!g.length){b.jumpTo(3);break}return b.yield(t,4);case 4:F.preconnect=g,Z(N,F);case 3:return _.Mo(b,5),b.yield(O,7);case 7:B=b.yieldResult;_.Do(b,6);break;case 5:return c=_.ax(b),C.reject(c),b.return();case 6:if(B===void 0)return F.reload=!0,Z(N,F),C.resolve(F),b.return();if(U(C.promise))return C.resolve(F),
b.return();F.playerResponse=B;Z(N,F);_.h("web_shorts_stop_scheduler_on_player_response")&&T0E();_.Mo(b,8);return b.yield(H,10);case 10:u=b.yieldResult;_.Do(b,9);break;case 8:_.ax(b);case 9:if(u===void 0)return F.response={responseContext:{}},C.resolve(F),b.return();if(U(C.promise))return C.resolve(F),b.return();F.response=u;Z(N,F);_.Mo(b,11);return b.yield(A,13);case 13:S=b.yieldResult;_.Do(b,12);break;case 11:_.ax(b);case 12:if(U(C.promise))return C.resolve(F),b.return();S&&(F.reelWatchSequenceResponse=
S);Z(N,F);C.resolve(F);_.Ty(b)}})};
g1z=function(N,t,O,H,A,Z,U){var C,F,g,B,c,u;_.K(function(S){if((C=U)==null||!C.replacementEndpoint)return Z.reject(),S.return();F=U.replacementEndpoint;(g=_.M(F,_.jc))?(U.sequenceContinuation&&(g.sequenceParams=U.sequenceContinuation),B=_.cY().resolve(_.RZ),c=g.sequenceParams,$n5(B,F)&&delete g.sequenceParams,u=nS(N,F,t,O,H,A,function(){return!1}),u.then(function(b){return _.K(function(z){if(z.nextAddress==1)return jP1(B,{reelWatchEndpoint:{sequenceParams:c}},b),z.yield(0,2);
Z.resolve(b);_.Ty(z)})})):Z.reject();
_.Ty(S)})};
Unf[$v]=[Nb5,tR5,_.Sc,_.BY(MwB),_.BY(_.fc)];var i1m=function(){var N=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return N.sequenceMap}}},PT_=function(N,t,O){var H,A=(H=t.config)==null?void 0:H.sequenceStrategy;
if(!A)return O();N.sequenceMap.has(A.sequenceKey)||N.sequenceMap.set(A.sequenceKey,[]);N=N.sequenceMap.get(A.sequenceKey);switch(A.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return u$i(N,t,O);case "REQUEST_SEQUENCE_TYPE_REPLACE":return S$f(N,t,O);default:throw new _.fF("Request could not be sequenced",t);}},u$i=function(N,t,O){var H,A,Z;
return _.K(function(U){N.length>0?(A=N[N.length-1],H=A.responsePromise.then(function(){return O()})):H=O();
Z={request:t,responsePromise:H};N.push(Z);hzO(N,Z);return U.return(Z.responsePromise)})},S$f=function(N,t,O){O=O();
if(N.length>0)for(var H=_.D(N),A=H.next();!A.done;A=H.next())A.value.responsePromise=O;var Z={request:t,responsePromise:O};N.push(Z);hzO(N,Z);return Promise.resolve().then(function(){return N.indexOf(Z)>0?Z.responsePromise.then(function(U){return Object.assign({},U,{sequenceMetaData:{skipProcessing:!0}})}):Z.responsePromise})},hzO=function(N,t){t.responsePromise.then(function(){var O=N.indexOf(t);
O>-1&&N.splice(O,1)})};var MRn=new _.dk("REQUEST_SEQUENCING");var Jt=function(){};
_.p(Jt,KX);Jt.prototype.getApiPaths=function(){return[]};
Jt.prototype.getExtension=function(N){return _.M(N,h2Z)};
Jt.prototype.JSC$14325_buildRequest=function(N,t){N.recaptchaToken=t.recaptchaToken};
Jt.prototype.getApiUrl=function(){return"/das_captcha"};var oZ=function(){};
_.p(oZ,KX);oZ.prototype.getApiPaths=function(){return Oq_};
oZ.prototype.getExtension=function(N){return _.M(N,te0)};
oZ.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.createBackstagePostParams&&(N.createBackstagePostParams=t.createBackstagePostParams);O.comment_text&&(N.commentText=O.comment_text);if(O.attached_video_id)N.videoAttachment={videoId:O.attached_video_id};else if(O.image_poll_options)N.pollAttachmentData={options:O.image_poll_options};else if(O.poll_options)N.pollAttachment={choices:O.poll_options};else if(O.quiz_options)N.quizAttachmentData={options:O.quiz_options};else if(O.image_blob_id)N.imageAttachment=
{encryptedBlobId:O.image_blob_id},O.source_video_id&&(N.imageAttachment.sourceExternalVideoId=O.source_video_id),O.image_preview_coordinates&&(N.imageAttachment.previewCoordinates=JSON.parse(O.image_preview_coordinates));else if(O.images_data)N.imagesAttachment={imagesData:O.images_data};else if(O.clip_external_video_id!==void 0||O.clip_offset_ms!==void 0||O.clip_duration_ms!==void 0){var H,A,Z,U,C;N.clipAttachment={externalVideoId:(Z=O.clip_external_video_id)!=null?Z:"",offsetMs:(U=(H=O.clip_offset_ms)==
null?void 0:H.toString())!=null?U:"",durationMs:(C=(A=O.clip_duration_ms)==null?void 0:A.toString())!=null?C:""}}else O.shared_post_id&&(N.sharedPostAttachment={postId:O.shared_post_id});O.tagged_video_id&&(N.postCreationData={taggedVideoId:O.tagged_video_id});O.access_restrictions&&(typeof O.access_restrictions==="number"&&(t=O.access_restrictions,N.accessRestrictions={restriction:t!==1&&t===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof O.access_restrictions==="string"&&
(N.accessRestrictionsParams=O.access_restrictions));O.scheduled_publish_time_sec&&(N.scheduledPublishTimeSec=O.scheduled_publish_time_sec.toString())};var sV=function(){};
_.p(sV,KX);sV.prototype.getApiPaths=function(){return CXB};
sV.prototype.getExtension=function(N){return _.M(N,swy)};
sV.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.decorateMessageParams&&(N.params=t.decorateMessageParams);O.text&&(N.text=O.text)};var NW=function(){};
_.p(NW,KX);NW.prototype.getApiPaths=function(){return aHE};
NW.prototype.getExtension=function(N){return _.M(N,Opy)};
NW.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;O.video_id&&(N.videoId=O.video_id)};var tU=function(){};
_.p(tU,KX);tU.prototype.getApiPaths=function(){return XfZ};
tU.prototype.getExtension=function(N){return _.M(N,_.VZ)};
tU.prototype.JSC$14325_buildRequest=function(N,t,O){O.suggestions_query&&(N.input=O.suggestions_query)};var OU=function(){};
_.p(OU,KX);OU.prototype.getApiPaths=function(){return yfR};
OU.prototype.getExtension=function(N){return _.M(N,Hpu)};
OU.prototype.JSC$14325_buildRequest=function(N,t,O){O.comment_text!==void 0&&(N.commentText=O.comment_text);O.scheduled_publish_time_sec&&(N.scheduledPublishTimeSec=O.scheduled_publish_time_sec.toString());N.updateBackstagePostParams=t.updateBackstagePostParams};var HN=function(){};
_.p(HN,KX);HN.prototype.getApiPaths=function(){return mh};
HN.prototype.getExtension=function(N){return _.M(N,_.PH)};
HN.prototype.JSC$14325_buildRequest=function(N,t,O){O.formData&&(N.formData=O.formData);t.token?N.continuation=t.token:t.continuationTokenKey&&(O=_.v5().getState(),t=_.CM(O.entities,"continuationTokenEntity",t.continuationTokenKey))&&(N.continuation=String(t.continuationToken))};
var b15=function(){};
_.p(b15,KX);_.V=b15.prototype;_.V.getApiPaths=function(){return mh};
_.V.getExtension=function(N){return _.M(N,_.yE)};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$14332_getStoreKey=function(N){if((N=this.getExtension(N))&&N.browseId){var t={browseId:N.browseId};N.browseEndpointContextSupportedConfigs&&(t.browseEndpointContextSupportedConfigs=JSON.stringify(N.browseEndpointContextSupportedConfigs));N.params&&(t.params=N.params);N.query&&(t.query=N.query);return _.WC("browse",t)}};
_.V.JSC$14325_buildRequest=function(N,t,O){t.browseId&&(N.browseId=t.browseId);t.params&&(N.params=t.params);t.query&&(N.query=t.query);O.formData?N.formData=O.formData:t.formData&&(N.formData=t.formData);t.browseId==="FEsubscriptions"&&_.d0().getFlag(155)&&(N.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");t.browseId==="SPaccount_playback"&&(O=_.d0(),N.formData||(N.formData={}),N.formData.accountSettingsFormData={flagCaptionsDefaultOff:O.getFlag(65),flagAutoCaptionsDefaultOn:O.getFlag(66),
flagDisableInlinePreview:O.getFlag(186),flagAudioDescriptionDefaultOn:O.getFlag(198)});if(t.browseId==="FEwhat_to_watch"){O=_.d0();var H=O.getFlag(196);O.getFlag(197)&&(N.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:H}}})}t.browseId==="FEwhat_to_watch"&&(t=_.d0().getFlag(186),N.inlineSettingStatus=t?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.V.getRequestConfig=function(N,t){t=t===void 0?{}:t;var O={};if(N=this.JSC$14332_getStoreKey(N,t))O.storeStrategy={storeKey:N,disableCache:t.disableCache};_.h("web_log_browse_ticks_ks")||(O.requestTick="br_s",O.responseTick="br_r");return O};var AU=function(){};
_.p(AU,KX);AU.prototype.getApiPaths=function(){return vey};
AU.prototype.getExtension=function(N){return _.M(N,wbZ)};
AU.prototype.JSC$14325_buildRequest=function(N,t,O){N.legacyYoutubeChannelUsername=O.legacyYouTubeChannelUsername||"";N.legacyYoutubeChannelPassword=O.legacyYouTubeChannelPassword||""};var Z8=function(){};
_.p(Z8,KX);Z8.prototype.getApiPaths=function(){return H6R};
Z8.prototype.getExtension=function(N){return _.M(N,KCY)};
Z8.prototype.JSC$14325_buildRequest=function(N,t,O){O.recaptcha_response_token&&(N.recaptchaResponseToken=O.recaptcha_response_token);O.channel_id&&(N.channelId=O.channel_id)};var Vk=function(){};
_.p(Vk,KX);Vk.prototype.getApiPaths=function(){return BXR};
Vk.prototype.getExtension=function(N){return _.M(N,cAE)};
Vk.prototype.JSC$14325_buildRequest=function(N,t,O){t.externalChannelId&&(N.externalChannelId=t.externalChannelId);O.handle&&(N.handleUpdate={handle:O.handle},t.handleEditSource&&(N.handleUpdate.handleEditSource=t.handleEditSource))};var D8=function(){};
_.p(D8,KX);D8.prototype.getApiPaths=function(){return i6B};
D8.prototype.getExtension=function(N){return _.M(N,fg0)};
D8.prototype.JSC$14325_buildRequest=function(N,t,O){t.request&&(N.channelId=t.request.channelId);var H;if(O==null?0:(H=O.uploadDefaults)==null?0:H.emojiReactionSet)N.uploadDefaultsRequest||(N.uploadDefaultsRequest={}),N.uploadDefaultsRequest.emojiReactionSet=O.uploadDefaults.emojiReactionSet};var UU=function(){};
_.p(UU,KX);UU.prototype.getApiPaths=function(){return hOR};
UU.prototype.getExtension=function(N){return _.M(N,FCy)};
UU.prototype.JSC$14325_buildRequest=function(N,t,O){t.externalChannelId&&(N.externalChannelId=t.externalChannelId);t.channelHandleEntityKey&&(N.channelHandleEntityKey=t.channelHandleEntityKey);t.handleEditSource&&(N.handleEditSource=t.handleEditSource);O.handle?N.handle=O.handle:O.name&&(N.name=O.name)};var Ca=function(){};
_.p(Ca,KX);Ca.prototype.getApiPaths=function(){return sRE};
Ca.prototype.getExtension=function(N){return _.M(N,eHB)};
Ca.prototype.JSC$14325_buildRequest=function(N,t){t.actions?N.actions=t.actions:t.action&&(N.actions=[t.action])};var Ka=function(){};
_.p(Ka,KX);Ka.prototype.getApiPaths=function(){return Nnu};
Ka.prototype.getExtension=function(N){return _.M(N,_.PH)};
Ka.prototype.JSC$14325_buildRequest=function(N,t){t.token&&(N.continuation=t.token)};var FG=function(){};
_.p(FG,KX);FG.prototype.getApiPaths=function(){return zL0};
FG.prototype.getExtension=function(N){return _.M(N,_.PH)};
FG.prototype.JSC$14325_buildRequest=function(N,t){N.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";t.token&&(N.fetchCommentsParams={continuation:t.token})};var dU=function(){};
_.p(dU,KX);dU.prototype.getApiPaths=function(){return ZqZ};
dU.prototype.getExtension=function(N){return _.M(N,wRa)};
dU.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.createReplyParams&&(N.createReplyParams=t.createReplyParams);t.commentText&&(N.commentText=_.Gv(t.commentText));O.comment_text&&(N.commentText=O.comment_text);O.image_blob_id&&(N.imageAttachment={encryptedBlobId:O.image_blob_id});O.botguard_response&&(N.botguardResponse=O.botguard_response)};
_.cv.Object.defineProperties(dU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gU=function(){};
_.p(gU,KX);gU.prototype.getApiPaths=function(){return VQ0};
gU.prototype.getExtension=function(N){return _.M(N,_.TOp)};
gU.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.createCommentParams&&(N.createCommentParams=t.createCommentParams);t.commentText&&(N.commentText=_.Gv(t.commentText));t.videoPositionMention&&(N.videoPositionMention=t.videoPositionMention);t.sources&&(N.sources=t.sources);O.comment_text&&(N.commentText=O.comment_text);O.attached_video_id?N.videoAttachment={videoId:O.attached_video_id}:O.poll_options?N.pollAttachment={choices:O.poll_options}:O.image_blob_id?N.imageAttachment=
{encryptedBlobId:O.image_blob_id}:O.shared_post_id&&(N.sharedPostAttachment={postId:O.shared_post_id});O.access_restrictions&&typeof O.access_restrictions==="number"&&(t=O.access_restrictions,N.accessRestrictions={restriction:t!==1&&t===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});O.botguard_response&&(N.botguardResponse=O.botguard_response)};
_.cv.Object.defineProperties(gU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yk=function(){};
_.p(yk,KX);yk.prototype.getApiPaths=function(){return cfQ};
yk.prototype.getExtension=function(N){return _.M(N,XRZ)};
yk.prototype.JSC$14325_buildRequest=function(N,t,O){t.commentText&&(N.replyText=_.Gv(t.commentText));O.comment_text&&(N.replyText=O.comment_text);N.updateReplyParams=t.updateReplyParams};
_.cv.Object.defineProperties(yk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var BN=function(){};
_.p(BN,KX);BN.prototype.getApiPaths=function(){return $lr};
BN.prototype.getExtension=function(N){return _.M(N,PWY)};
BN.prototype.JSC$14325_buildRequest=function(N,t,O){t.commentText&&(N.commentText=_.Gv(t.commentText));O.comment_text&&(N.commentText=O.comment_text);N.updateCommentParams=t.updateCommentParams};
_.cv.Object.defineProperties(BN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cN=function(){};
_.p(cN,KX);cN.prototype.getApiPaths=function(){return jq0};
cN.prototype.getExtension=function(N){return _.M(N,XnQ)};
cN.prototype.JSC$14325_buildRequest=function(N,t){t.settings&&(N.settings=t.settings)};var $z=function(){};
_.p($z,KX);$z.prototype.getApiPaths=function(){return u3_};
$z.prototype.getExtension=function(N){return _.M(N,d_a)};
$z.prototype.JSC$14325_buildRequest=function(N,t){t.channelCreationToken&&(N.channelCreationToken=t.channelCreationToken);t.source&&(N.source=t.source)};var jX=function(){};
_.p(jX,KX);jX.prototype.getApiPaths=function(){return A3r};
jX.prototype.getExtension=function(N){return _.M(N,BHB)};
jX.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;if(O.name&&(O.given_name||O.family_name))N=new _.fF("channel creation cannot set both GAIA and YouTube names",t),_.R0(N);else{if(t.zeroStepChannelCreationParams){if(!O.comment_text){N=new _.fF("zero_step_create_comment_params but no zero_step_texts",t);_.R0(N);return}N.zeroStepChannelCreationParams=t.zeroStepChannelCreationParams;N.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(N.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
O.comment_text,O.botguard_response&&(N.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=O.botguard_response))}N.channelCreationToken=t.channelCreationToken;O.given_name&&(N.givenName=O.given_name);O.family_name&&(N.familyName=O.family_name);t.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(N.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(O.name||O.handle||O.avatar_url||O.encryptedBlobId||O.isNameChanged!==void 0||O.isHandleChanged!==void 0||O.isDefaultProfilePhoto!==
void 0||O.obakeImageSource)N.overrideChannelCreationParams={},O.name&&(N.overrideChannelCreationParams.name=O.name),O.handle&&(N.overrideChannelCreationParams.handle=O.handle),O.avatar_url&&(N.overrideChannelCreationParams.avatarUrl=O.avatar_url),O.encryptedBlobId&&(N.overrideChannelCreationParams.blobEncryptionId=O.encryptedBlobId),O.enableIdentityForAllChannelCreationDialog&&(O.encryptedBlobId?N.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
O.isDefaultProfilePhoto!==void 0&&(N.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=O.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),O.isNameChanged!==void 0&&(N.overrideChannelCreationParams.identityForAllChannelCreationNameTag=O.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),O.isHandleChanged!==
void 0&&(N.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=O.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),O.obakeImageSource&&(N.overrideChannelCreationParams.obakeImageSourceType=O.obakeImageSource))}};var i7=function(){};
_.p(i7,KX);i7.prototype.getApiPaths=function(N){return(N=this.getExtension(N))&&N.status==="DISLIKE"?gTQ:N&&N.status==="INDIFFERENT"?oTr:nTp};
i7.prototype.getExtension=function(N){return _.M(N,_.xg)};
i7.prototype.JSC$14325_buildRequest=function(N,t){t.target&&(N.target=t.target);if(t=this.getParams(t))N.params=t};
i7.prototype.getParams=function(N){switch(N==null?void 0:N.status){case "DISLIKE":return N.dislikeParams;case "INDIFFERENT":return N.removeLikeParams;default:return N==null?void 0:N.likeParams}};var u7=function(){};
_.p(u7,KX);u7.prototype.getApiPaths=function(){return UlQ};
u7.prototype.getExtension=function(N){return _.M(N,WSQ)};
u7.prototype.JSC$14325_buildRequest=function(N,t){t.settingItemId&&(N.settingItemId=t.settingItemId);t.stringValue!=null&&t.stringValue!==void 0?N.newValue={stringValue:t.stringValue}:t.intValue?N.newValue={intValue:t.intValue}:t.boolValue!==null&&t.boolValue!==void 0?N.newValue={boolValue:t.boolValue}:(N=new _.fF("Unknown value type for SetSettingEndpoint.",t),_.R0(N))};var SX=function(){};
_.p(SX,KX);SX.prototype.getApiPaths=function(){return FQS};
SX.prototype.getExtension=function(N){return _.M(N,Aka)||void 0};
SX.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.channelIds&&(N.channelIds=t.channelIds);t.siloName&&(N.siloName=t.siloName);t.params&&(N.params=t.params);O.botguardResponse&&(N.botguardResponse=O.botguardResponse);O.feature&&(N.clientFeature=O.feature)};
_.cv.Object.defineProperties(SX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hU=function(){};
_.p(hU,KX);hU.prototype.getApiPaths=function(){return guQ};
hU.prototype.getExtension=function(N){return _.M(N,riS)||void 0};
hU.prototype.JSC$14325_buildRequest=function(N,t){t.channelIds&&(N.channelIds=t.channelIds);t.siloName&&(N.siloName=t.siloName);t.params&&(N.params=t.params)};
_.cv.Object.defineProperties(hU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var MW=function(N){this.shareClientParamsProvider=N};
_.p(MW,KX);MW.prototype.getApiPaths=function(){return vRS};
MW.prototype.getExtension=function(N){return _.M(N,BdR)||_.M(N,_.cPS)||_.M(N,yPr)};
MW.prototype.JSC$14325_buildRequest=function(N,t){t.serializedShareEntity&&(N.serializedSharedEntity=t.serializedShareEntity);if(t.clientParamIdentifier){var O;if((O=this.shareClientParamsProvider)==null?0:O.clientParams.has(t.clientParamIdentifier)){O=this.shareClientParamsProvider;t=t.clientParamIdentifier;var H=O.clientParams.get(t);H&&O.clientParams.delete(t);N.clientParams=H}}};
MW[$v]=[Jm1];var wU=function(){};
_.p(wU,KX);wU.prototype.getApiPaths=function(){return Eeu};
wU.prototype.getExtension=function(N){return _.M(N,rVp)};
wU.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var eX=function(){};
_.p(eX,KX);eX.prototype.getApiPaths=function(){return y3f};
eX.prototype.getExtension=function(N){return _.M(N,fi_)};
eX.prototype.JSC$14325_buildRequest=function(N,t){t.dismissal&&(N.items=[t.dismissal])};
_.cv.Object.defineProperties(eX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var PN=function(){};
_.p(PN,KX);PN.prototype.getApiPaths=function(){return qXZ};
PN.prototype.getExtension=function(N){return _.M(N,_.wP)||void 0};
PN.prototype.JSC$14325_buildRequest=function(N,t,O){N.feedbackTokens=[];t.feedbackToken&&N.feedbackTokens.push(t.feedbackToken);if(t=t.cpn||O.cpn)N.feedbackContext={cpn:t};N.isFeedbackTokenUnencrypted=!!O.is_feedback_token_unencrypted;N.shouldMerge=!1;O.extra_feedback_tokens&&(N.shouldMerge=!0,N.feedbackTokens=N.feedbackTokens.concat(O.extra_feedback_tokens))};
_.cv.Object.defineProperties(PN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var XG=function(){};
_.p(XG,KX);XG.prototype.getApiPaths=function(){return qXZ};
XG.prototype.getExtension=function(N){return _.M(N,_.VZ)};
XG.prototype.JSC$14325_buildRequest=function(N,t,O){O.feedback_tokens&&(N.feedbackTokens=O.feedback_tokens,N.shouldMerge=!0)};
_.cv.Object.defineProperties(XG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var xz=function(){};
_.p(xz,KX);xz.prototype.getApiPaths=function(){return qXZ};
xz.prototype.getExtension=function(N){return _.M(N,jTG)};
xz.prototype.JSC$14325_buildRequest=function(N,t){t.undoToken&&(N.feedbackTokens=[t.undoToken]);t.isUndoTokenUnencrypted&&(N.isFeedbackTokenUnencrypted=t.isUndoTokenUnencrypted)};
_.cv.Object.defineProperties(xz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kz=function(){};
_.p(kz,KX);kz.prototype.getApiPaths=function(){return Mdr};
kz.prototype.getExtension=function(N){return _.M(N,xjr)};
kz.prototype.JSC$14325_buildRequest=function(N,t){t.nextEndpoint&&_.M(t.nextEndpoint,_.Z3)?N.nextEndpoint={urlEndpoint:_.M(t.nextEndpoint,_.Z3)}:t.nextEndpoint&&_.M(t.nextEndpoint,_.rN)&&(N.nextEndpoint={watchEndpoint:_.M(t.nextEndpoint,_.rN)});t.setRacy&&(N.setRacy=t.setRacy);t.setControvercy&&(N.setControvercy=t.setControvercy)};var qW=function(N){this.JSC$18325_storeWithEntities=N};
_.p(qW,KX);qW.prototype.getApiPaths=function(){return c3B};
qW.prototype.getExtension=function(N){return _.M(N,CKE)};
qW.prototype.JSC$14325_buildRequest=function(N,t){t.flowId&&(N.flowId=t.flowId);t.targetId&&(N.targetId=t.targetId);t.continuation&&(N.continuation=t.continuation);var O=t.flowStateEntityKey;if(t.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&O&&this.JSC$18325_storeWithEntities){var H;if(t=(H=this.JSC$18325_storeWithEntities.getState())==null?void 0:H.entities)if(H=_.Zn(O).entityType,H=_.CM(t,H,O))N.flowState=H,N.flowStateEntityKey=O}};
_.cv.Object.defineProperties(qW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
qW[$v]=[ZZ];var pAn=function(){};
_.p(pAn,KX);_.V=pAn.prototype;_.V.getApiPaths=function(){return kOy};
_.V.JSC$14332_getStoreKey=function(){return _.WC("guide")};
_.V.getRequestConfig=function(){var N=this.JSC$14332_getStoreKey(),t;N&&(t={storeStrategy:{storeKey:N}});return t};
_.V.isNavigationCommand=function(){return!0};
_.V.getExtension=function(N){return _.M(N,_.VZ)};
_.V.JSC$14325_buildRequest=function(N){N.fetchLiveState=!0};var fa=function(){};
_.p(fa,KX);fa.prototype.getApiPaths=function(){return JXZ};
fa.prototype.getExtension=function(N){return _.M(N,zHu)};
fa.prototype.JSC$14325_buildRequest=function(){};var na=function(){};
_.p(na,KX);na.prototype.getApiPaths=function(){return oeR};
na.prototype.getExtension=function(N){return _.M(N,YaE)};
na.prototype.JSC$14325_buildRequest=function(){};var WN=function(){};
_.p(WN,KX);WN.prototype.getApiPaths=function(){return mG0};
WN.prototype.getExtension=function(N){return _.M(N,_.PH)};
WN.prototype.JSC$14325_buildRequest=function(N,t){t.token&&(N.continuation=t.token);var O,H;N==null||(O=N.context)==null||(H=O.user)==null||delete H.onBehalfOfUser};
WN.prototype.getRequestConfig=function(N){var t={},O;if(((O=this.getExtension(N))==null?void 0:O.sessionIndex)!==void 0){var H;t={authStrategy:{sessionIndex:(H=this.getExtension(N))==null?void 0:H.sessionIndex}}}return t};var rU=function(){};
_.p(rU,KX);rU.prototype.JSC$14325_getRequest=function(N){var t=this.getExtension(N),O=N="";if(t==null?0:t.popup)N="true";if(t==null?0:t.disableSignout)O="true";t={};return{input:"/getAccountSwitcherEndpoint",requestShell:nv("/getAccountSwitcherEndpoint","GET",(t["X-YouTube-Delegation-Context"]=_.Ro("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),t["X-YouTube-Account-Switcher-Popup"]=N,t["X-YouTube-Account-Switcher-Disable-Signout"]=O,t)),innerTubeRequest:{}}};
rU.prototype.getApiPaths=function(){return[]};
rU.prototype.getExtension=function(N){return _.M(N,_.uDQ)};
rU.prototype.JSC$14325_buildRequest=function(){};var Ie=function(){};
_.p(Ie,KX);Ie.prototype.JSC$14325_getRequest=function(N){var t="/cross_account_channel_transfer";(N=this.getExtension(N))&&(t=lAN(t,{target_session:N.targetSessionIndex,source_rapt:N.sourceRapt,rapt:N.targetRapt}));return{input:t,requestShell:nv(t,"GET"),innerTubeRequest:{}}};
Ie.prototype.getApiPaths=function(){return[]};
Ie.prototype.getExtension=function(N){return _.M(N,Ytf)};
Ie.prototype.JSC$14325_buildRequest=function(){};var l7=function(){};
_.p(l7,KX);l7.prototype.getApiPaths=function(){return $Pf};
l7.prototype.isNavigationCommand=function(){return!0};
l7.prototype.getExtension=function(N){return _.M(N,_.VZ)};
l7.prototype.JSC$14325_buildRequest=function(N){var t=_.d0().get("gsml","");t&&(N.safetyModeLockerObfuscatedGaiaId=t);N.userInterfaceTheme=_.qL(!0);_.fT()?N.deviceTheme="DEVICE_THEME_SELECTED":_.HqO()?N.deviceTheme="DEVICE_THEME_SUPPORTED":N.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Qk=function(){};
_.p(Qk,KX);Qk.prototype.getApiPaths=function(){return mG0};
Qk.prototype.getExtension=function(N){return _.M(N,aXQ)};
Qk.prototype.JSC$14325_buildRequest=function(N,t){if(t&&t.requestType&&(N.requestType=t.requestType,t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var O=t.nextUrl;O&&(_.m09(O)||gE(O))&&(N.nextNavendpoint={urlEndpoint:{url:O}})}t&&t.channelSwitcherQuery&&(N.channelSwitcherQuery=t.channelSwitcherQuery);t&&t.triggerChannelCreation&&(N.triggerChannelCreation=t.triggerChannelCreation);var H;if(t==null?0:(H=t.contentOwnerConfig)==
null?0:H.externalContentOwnerId)N.contentOwnerConfig=t.contentOwnerConfig;N.callCircumstance=t&&t.requestType&&t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var A,Z;t=N==null?void 0:(A=N.context)==null?void 0:(Z=A.user)==null?void 0:Z.onBehalfOfUser;if(t!==void 0){N.obfuscatedSelectedGaiaId=t;var U,C;N==null||(U=N.context)==null||(C=U.user)==null||delete C.onBehalfOfUser}var F,g;if(A=N==null?void 0:(F=N.context)==null?void 0:(g=F.user)==null?
void 0:g.serializedDelegationContext)N.selectedSerializedDelegationContext=A};var mU=function(){};
_.p(mU,KX);mU.prototype.getApiPaths=function(){return GHR};
mU.prototype.getExtension=function(N){return _.M(N,$FX)};
mU.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var EU=function(){};
_.p(EU,KX);EU.prototype.getApiPaths=function(){return HqB};
EU.prototype.getExtension=function(N){return _.M(N,_.Yrf)};
EU.prototype.JSC$14325_buildRequest=function(N,t){if(t=t.createBroadcastRequest)N.useMasks=t.useMasks,N.broadcastType=t.broadcastType,N.broadcastSource=t.broadcastSource,N.broadcastMetadata=t.broadcastMetadata,N.broadcastMetadataMask=t.broadcastMetadataMask,N.videoMetadata=t.videoMetadata,N.videoMetadataMask=t.videoMetadataMask,N.liveChatSettingsUpdate=t.liveChatSettingsUpdate,N.liveChatSettingsUpdateMask=t.liveChatSettingsUpdateMask,N.cloneVideoId=t.cloneVideoId,N.cloneWithOverrides=t.cloneWithOverrides,
N.targetEntity=t.targetEntity,N.scheduledRedirectMetadata=t.scheduledRedirectMetadata};var GK=function(){};
_.p(GK,KX);GK.prototype.getApiPaths=function(){return DPY};
GK.prototype.getExtension=function(N){return _.M(N,uLX)};
GK.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.params&&(N.params=t.params);O.questionText&&(N.questionText=O.questionText);O.optionText&&O.optionText.length>0&&(N.optionText=O.optionText)};var Re=function(){};
_.p(Re,KX);Re.prototype.getApiPaths=function(){return KRQ};
Re.prototype.getExtension=function(N){return _.M(N,jyS)};
Re.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var vN=function(){};
_.p(vN,KX);vN.prototype.getApiPaths=function(){return hL0};
vN.prototype.getExtension=function(N){return _.M(N,ycX)};
vN.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var JU=function(){};
_.p(JU,KX);JU.prototype.getApiPaths=function(){return bqE};
JU.prototype.getExtension=function(N){return _.M(N,B_Q)};
JU.prototype.JSC$14325_buildRequest=function(N,t,O){t.params&&(N.params=t.params);t.continuation&&(N.continuation=t.continuation);O.currentPlayerState&&O.currentPlayerState.playerOffsetMs&&(N.currentPlayerState={playerOffsetMs:O.currentPlayerState.playerOffsetMs.toString()})};var oe=function(){};
_.p(oe,KX);oe.prototype.getApiPaths=function(){return pfQ};
oe.prototype.getExtension=function(N){return _.M(N,g9u)};
oe.prototype.JSC$14325_buildRequest=function(N,t,O){t.params&&(N.params=t.params);O.continuation&&(N.continuation=O.continuation);"hidden"in O&&(N.webClientInfo={isDocumentHidden:O.hidden});O.isInvalidationTimeoutRequest&&(N.isInvalidationTimeoutRequest=O.isInvalidationTimeoutRequest);O.invalidationPayload&&(t=dcR(_.Jg(yl(O.invalidationPayload))),N.invalidationPayloadLastPublishAtUsec=Tl(t,2));O.reloadActionPanel&&(N.reloadActionPanel=O.reloadActionPanel);O.fullReload&&(N.fullReload=O.fullReload);
O.currentPlayerState&&(N.currentPlayerState=O.currentPlayerState)};var sU=function(){};
_.p(sU,KX);sU.prototype.getApiPaths=function(){return WR_};
sU.prototype.getExtension=function(N){return _.M(N,iY0)};
sU.prototype.JSC$14325_buildRequest=function(N,t){N.params=t.params};var Nv=function(){};
_.p(Nv,KX);Nv.prototype.getApiPaths=function(){return MQp};
Nv.prototype.getExtension=function(N){return _.M(N,PLf)};
Nv.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var to=function(){};
_.p(to,KX);to.prototype.getApiPaths=function(){return LRX};
to.prototype.getExtension=function(N){return _.M(N,Xur)};
to.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var OY=function(){};
_.p(OY,KX);OY.prototype.getApiPaths=function(){return r30};
OY.prototype.getExtension=function(N){return _.M(N,Snr)};
OY.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var HO=function(){};
_.p(HO,KX);HO.prototype.getApiPaths=function(){return lHB};
HO.prototype.getExtension=function(N){return _.M(N,hRr)};
HO.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var Ao=function(){};
_.p(Ao,KX);Ao.prototype.getApiPaths=function(){return sOa};
Ao.prototype.getExtension=function(N){return _.M(N,u5R)};
Ao.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var Zw=function(){};
_.p(Zw,KX);Zw.prototype.getApiPaths=function(){return VdR};
Zw.prototype.getExtension=function(N){return _.M(N,_.M7R)};
Zw.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.params&&(N.params=t.params);O.client_message_id&&(N.clientMessageId=O.client_message_id);O.recaptcha_token&&(N.recaptchaToken=O.recaptcha_token);O.rich_message&&O.rich_message.text_segments?(t=O.rich_message.text_segments.map(function(H){var A={};H.text&&(A.text=H.text);H.emoji_id&&(A.emojiId=H.emoji_id);return A}),N.richMessage={textSegments:t}):O.message&&(N.message=O.message);
O.currentPlayerState&&(N.currentPlayerState=O.currentPlayerState)};var Va=function(){};
_.p(Va,KX);Va.prototype.getApiPaths=function(){return DlE};
Va.prototype.getExtension=function(N){return _.M(N,bYf)};
Va.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var Dw=function(){};
_.p(Dw,KX);Dw.prototype.getApiPaths=function(){return dl0};
Dw.prototype.getExtension=function(N){return _.M(N,LXf)};
Dw.prototype.JSC$14325_buildRequest=function(N,t,O){t.isUserInitiated&&(N.isUserInitiated=t.isUserInitiated);t.initiationSource&&(N.initiationSource=t.initiationSource);O.locationInfo&&(N.context.client.locationInfo=O.locationInfo)};var UY=function(){};
_.p(UY,KX);UY.prototype.getApiPaths=function(){return IHu};
UY.prototype.getExtension=function(N){return _.M(N,aI0)};
UY.prototype.JSC$14325_buildRequest=function(N,t,O){t.metadataUpdateRequest&&(t=t.metadataUpdateRequest,N.encryptedVideoId=t.encryptedVideoId,t.liveChat&&(t=t.liveChat,N.liveChat||(N.liveChat={}),t.performAsExternalChannelId&&(N.liveChat.performAsExternalChannelId=t.performAsExternalChannelId),t.source&&(N.liveChat.source=t.source)));var H;if(O==null?0:(H=O.liveChat)==null?0:H.liveChatSettings)N.liveChat||(N.liveChat={}),O=O.liveChat.liveChatSettings,N.liveChat.newLiveChatSettings=O,N.liveChat.newLiveChatSettingsMask||
(N.liveChat.newLiveChatSettingsMask={}),O.emojiReactionSet&&(N.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var C3=function(){};
_.p(C3,KX);C3.prototype.getApiPaths=function(){return Su_};
C3.prototype.getExtension=function(N){return _.M(N,_.IdX)};
C3.prototype.JSC$14325_buildRequest=function(N,t,O){O.continuation?N.continuation=O.continuation:t.videoId&&(N.videoId=t.videoId);O.clientParams&&(N.clientParams=O.clientParams)};var K3=function(){};
_.p(K3,KX);K3.prototype.getApiPaths=function(){return zL0};
K3.prototype.getExtension=function(N){return _.M(N,_.Un)};
K3.prototype.JSC$14325_buildRequest=function(N,t){N.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";N.fetchCommentsParams={};t.videoId&&(N.fetchCommentsParams.encryptedVideoId=t.videoId);t.postId&&(N.fetchCommentsParams.postId=t.postId);t.externalChannelId&&(N.fetchCommentsParams.externalChannelId=t.externalChannelId);t.linkedCommentId&&(N.fetchCommentsParams.linkedCommentId=t.linkedCommentId);(0,_.WW.isEmpty)(N.fetchCommentsParams)&&delete N.fetchCommentsParams};var Fj=function(){};
_.p(Fj,KX);Fj.prototype.getApiPaths=function(){return mh};
Fj.prototype.JSC$14325_buildRequest=function(N){N.browseId="FEnotifications_inbox"};
Fj.prototype.getExtension=function(N){return _.M(N,_.VZ)};var dK=function(){};
_.p(dK,KX);dK.prototype.getApiPaths=function(){return zL0};
dK.prototype.JSC$14325_buildRequest=function(N,t){t.signal==="GET_NOTIFICATIONS_MENU"&&(N.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");t.ctoken&&(N.ctoken=t.ctoken)};
var L7m=function(){};
_.p(L7m,dK);L7m.prototype.getExtension=function(N){return _.M(N,_.VZ)};
var zzm=function(){};
_.p(zzm,dK);zzm.prototype.getExtension=function(N){return _.M(N,e8p)};var gK=function(){};
_.p(gK,KX);gK.prototype.getApiPaths=function(){return PXp};
gK.prototype.getExtension=function(N){return _.M(N,_.VZ)};
gK.prototype.JSC$14325_buildRequest=function(){};var ya=function(){};
_.p(ya,KX);ya.prototype.getApiPaths=function(){return QO_};
ya.prototype.getExtension=function(N){return _.M(N,qaE)||void 0};
ya.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params);t.secondaryParams&&(N.secondaryParams=t.secondaryParams)};var BO=function(){};
_.p(BO,KX);BO.prototype.getApiPaths=function(){return mPX};
BO.prototype.getExtension=function(N){return _.M(N,jwr)};
BO.prototype.JSC$14325_buildRequest=function(N,t){t.undo&&(N.undo=t.undo);t.serializedOptOut&&(N.serializedOptOut=t.serializedOptOut);t.serializedRecordInteractionsRequest&&(N.serializedRecordInteractionsRequest=t.serializedRecordInteractionsRequest)};var cO=function(){};
_.p(cO,KX);cO.prototype.getApiPaths=function(){return RLR};
cO.prototype.getExtension=function(N){return _.M(N,iDZ)};
cO.prototype.JSC$14325_buildRequest=function(N,t){t.serializedInteractionsRequest&&(N.serializedRecordNotificationInteractionsRequest=t.serializedInteractionsRequest)};var $i=function(){};
_.p($i,KX);$i.prototype.getApiPaths=function(){return Jjx};
$i.prototype.getExtension=function(N){return _.M(N,_.GI)};
$i.prototype.JSC$14325_buildRequest=function(N,t,O){t=t===void 0?{}:t;O=O===void 0?{}:O;t.videoId?N.videoId=t.videoId:t.playlistId&&(N.playlistId=t.playlistId);var H;N.crossDeviceDownloadData={isCrossDeviceDownload:(H=t.isCrossDeviceDownload)!=null?H:!1};!O.downloadToMobileEduShown&&t.isCrossDeviceDownload&&(N.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var A;if(H=(A=t.offlineWebClientEligibility)!=null?A:O.offlineWebClientEligibility)N.offlineWebClientEligibility=H;var Z;if(A=(Z=t.preferredFormatType)!=
null?Z:O.preferredFormatType)N.preferredFormatType=A;var U;if(Z=(U=t.lastOfflineQualitySettingsSavedMs)!=null?U:O.lastOfflineQualitySettingsSavedMs)N.lastOfflineQualitySettingsSavedMs=Z;t.params&&(N.params=t.params)};var jK=function(){};
_.p(jK,KX);jK.prototype.getApiPaths=function(){return Y9};
jK.prototype.getExtension=function(N){return _.M(N,_.PH)};
jK.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.token&&(N.continuation=t.token);O.formData&&(N.formData=O.formData)};var iT=function(){};
_.p(iT,KX);iT.prototype.getApiPaths=function(){return Y9};
iT.prototype.getExtension=function(N){return _.M(N,Miy)};
iT.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;N.continuation=O.continuation};var uT=function(){};
_.p(uT,KX);uT.prototype.getApiPaths=function(){return Y9};
uT.prototype.getExtension=function(N){return _.M(N,_.Th)};
uT.prototype.JSC$14325_buildRequest=function(N,t){var O,H=t.panelIdentifier||((O=t.identifier)==null?void 0:O.tag);H&&(N.panelId=H);var A;if((A=t.globalConfiguration)==null?0:A.params){var Z;N.params=(Z=t.globalConfiguration)==null?void 0:Z.params}if(_.h("enable_ai_companion")){var U;t=t.engagementPanelExtras;if(t==null?0:(U=t.aiCompanionPanelExtras)==null?0:U.includeClientConversationId){var C,F;U=(F=(C=_.cY().resolve(_.BY(DwJ)))==null?void 0:C("conversations"))==null?void 0:F.get("conversation_id")}else U=
void 0;if(C=U)N.formData=Object.assign({},N.formData,{inputComposerFormData:{conversationId:C}})}};
_.cv.Object.defineProperties(uT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SK=function(){};
_.p(SK,KX);SK.prototype.getApiPaths=function(){return Y9};
SK.prototype.getExtension=function(N){return _.M(N,UR0)};
SK.prototype.JSC$14325_buildRequest=function(N,t){t.panelLoadingStrategy&&Oht(N,t.panelLoadingStrategy)};var ho=function(){};
_.p(ho,KX);ho.prototype.getApiPaths=function(){return Y9};
ho.prototype.getExtension=function(N){return _.M(N,Tdr)};
ho.prototype.JSC$14325_buildRequest=function(N,t){t.loadingStrategy&&Oht(N,t.loadingStrategy)};var Mv=function(){};
_.p(Mv,KX);Mv.prototype.getApiPaths=function(){return Y9};
Mv.prototype.getExtension=function(N){return _.M(N,_.Sp)};
Mv.prototype.JSC$14325_buildRequest=function(N,t){t.panelLoadingStrategy&&Oht(N,t.panelLoadingStrategy)};var bT=function(){};
_.p(bT,KX);bT.prototype.getApiPaths=function(){return Y9};
bT.prototype.getExtension=function(N){return _.M(N,wu_)};
bT.prototype.JSC$14325_buildRequest=function(N,t){var O,H=(O=t.contentSourcePanelIdentifier)==null?void 0:O.tag;H&&(N.panelId=H);var A;if((A=t.globalConfiguration)==null?0:A.params){var Z;N.params=(Z=t.globalConfiguration)==null?void 0:Z.params}};var p3=function(){};
_.p(p3,KX);p3.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
p3.prototype.getExtension=function(N){return _.M(N,etX)};
p3.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var L3=function(){};
_.p(L3,KX);L3.prototype.getApiPaths=function(){return u4S};
L3.prototype.getExtension=function(N){return _.M(N,xF_)};
L3.prototype.JSC$14325_buildRequest=function(N,t){t.externalChannelId&&(N.externalChannelId=t.externalChannelId);t.superChatAction&&(N.superChatAction=t.superChatAction);t.superStickersAction&&(N.superStickersAction=t.superStickersAction)};var z7=function(){};
_.p(z7,KX);z7.prototype.getApiPaths=function(){return jOu};
z7.prototype.getExtension=function(N){return _.M(N,LSY)||_.M(N,aqx)};
z7.prototype.JSC$14325_buildRequest=function(N,t){t.videoIds?N.videoIds=t.videoIds:t.videoId&&(N.videoIds=[t.videoId]);t.playlistId&&(N.playlistId=t.playlistId);t.params&&(N.params=t.params);N.excludeWatchLater=!1};var Yi=function(){};
_.p(Yi,KX);Yi.prototype.getApiPaths=function(){return UP0};
Yi.prototype.getExtension=function(N){return _.M(N,_.cs)};
Yi.prototype.JSC$14325_buildRequest=function(N,t,O){O.create_playlist_title?N.title=O.create_playlist_title:t.title&&(N.title=t.title);if(O.create_playlist_privacy_status&&typeof O.create_playlist_privacy_status==="number"){a:{var H=O.create_playlist_privacy_status;if(H!==0){if(H===1){H="PUBLIC";break a}if(H===2){H="UNLISTED";break a}}H="PRIVATE"}N.privacyStatus=H}else t.privacyStatus&&(N.privacyStatus=t.privacyStatus);O.create_playlist_description&&(N.description=O.create_playlist_description);t.videoIds&&
(N.videoIds=t.videoIds);t.params&&(N.params=t.params);t.sourcePlaylistId&&(N.sourcePlaylistId=t.sourcePlaylistId)};var ac=function(){};
_.p(ac,KX);ac.prototype.getApiPaths=function(){return FRy};
ac.prototype.getExtension=function(N){return _.M(N,x3S)};
ac.prototype.JSC$14325_buildRequest=function(N,t){N.playlistId=t.playlistId};var T7=function(){};
_.p(T7,KX);T7.prototype.getApiPaths=function(){return YXa};
T7.prototype.getExtension=function(N){return _.M(N,dFr)};
T7.prototype.JSC$14325_buildRequest=function(N,t){t.playlistId&&(N.playlistId=t.playlistId);t.params&&(N.params=t.params)};var wK=function(){};
_.p(wK,KX);wK.prototype.getApiPaths=function(){return GOS};
wK.prototype.getExtension=function(N){return _.M(N,_.CY)||void 0};
wK.prototype.JSC$14325_buildRequest=function(N,t){t.actions&&(N.actions=t.actions);t.params&&(N.params=t.params);t.playlistId&&(N.playlistId=t.playlistId)};var eK=function(){};
_.p(eK,KX);_.V=eK.prototype;_.V.getApiPaths=function(){return vT0};
_.V.getExtension=function(N){return _.M(N,_.jc)};
_.V.JSC$14325_buildRequest=function(N,t){t.videoId&&(N.playerRequest={videoId:t.videoId},t.playerParams&&(N.playerRequest.params=t.playerParams),t.racyCheckOk&&(N.playerRequest.racyCheckOk=!!t.racyCheckOk),t.contentCheckOk&&(N.playerRequest.contentCheckOk=!!t.contentCheckOk));t.params&&(N.params=t.params);t.inputType&&(N.inputType=t.inputType);N.disablePlayerResponse=!0};
_.V.getRequestConfig=function(N){var t;(N=this.JSC$14332_getStoreKey(N))&&(t={storeStrategy:{storeKey:N}});_.h("web_log_reels_ticks")&&(t=t||{},t.requestTick="r_wrs",t.responseTick="r_wrr");return t};
_.V.JSC$14332_getStoreKey=function(N){N=this.getExtension(N);if(N!=null&&N.videoId){var t={videoId:N.videoId};N.params&&(t.params=N.params);return _.WC("reel_item_watch",t)}};var PO=function(){};
_.p(PO,KX);_.V=PO.prototype;_.V.getApiPaths=function(){return J3u};
_.V.getExtension=function(N){return _.M(N,_.jc)};
_.V.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;N.sequenceParams=t.sequenceParams;var H;((H=O)==null?0:H.contentPlaybackContext)&&_.h("web_shorts_prefetch_service_enabled")&&(N.playbackContext={contentPlaybackContext:O.contentPlaybackContext})};
_.V.JSC$14332_getStoreKey=function(N){if(_.h("shorts_controller_retrieve_seedless_sequence_v2")&&(N=this.getExtension(N),N==null?0:N.sequenceParams))return _.WC("reel_watch_sequence",{sequenceParams:N.sequenceParams})};
_.V.getRequestConfig=function(N){N=this.JSC$14332_getStoreKey(N);var t;N&&(t={storeStrategy:{storeKey:N}});t=t||{};t.requestTick="r_wsrs";t.responseTick="r_wsrr";t.processorTick="r_wsrp";return t};
var Xj=function(){};
_.p(Xj,KX);Xj.prototype.getApiPaths=function(){return J3u};
Xj.prototype.getExtension=function(N){return _.M(N,_.PH)};
Xj.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.token&&(N.continuation=t.token);var H;((H=O)==null?0:H.contentPlaybackContext)&&_.h("web_shorts_prefetch_service_enabled")&&(N.playbackContext={contentPlaybackContext:O.contentPlaybackContext})};
Xj.prototype.getRequestConfig=function(N){N=this.JSC$14332_getStoreKey(N);var t;N&&(t={storeStrategy:{storeKey:N}});t=t||{};t.requestTick="r_wsrs";t.responseTick="r_wsrr";t.processorTick="r_wsrp";return t};var xi=function(){};
_.p(xi,KX);xi.prototype.getApiPaths=function(){return BnX};
xi.prototype.getExtension=function(N){return _.M(N,_.Zep)};
xi.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.flagAction&&(N.action=t.flagAction);t.flagRequestType&&(N.flagRequestType=t.flagRequestType);t.additionalDetailCheckboxChecked&&(N.additionalDetailCheckboxChecked=t.additionalDetailCheckboxChecked);t.legalCheckboxChecked&&(N.legalCheckboxChecked=t.legalCheckboxChecked);t={};O.flag_issue_type!==void 0&&(t.issue=O.flag_issue_type);O.flag_affiliation!==void 0&&(t.affiliation=O.flag_affiliation);O.flag_full_name&&(t.fullName=O.flag_full_name);
Object.keys(t).length&&(N.legalReportDetails=t);if(O.flag_description||O.text)N.userComments=O.flag_description||O.text;t={};O.minutes!==void 0&&O.seconds!==void 0&&(t.minutes=O.minutes,t.seconds=O.seconds);O.vss_id&&(t.vssId=O.vss_id);Object.keys(t).length&&(N.videoReportDetails=t);t={};O.video_ids&&(t.videoIds=O.video_ids);O.impersonated_channel_url&&(t.impersonatedChannelUrl=O.impersonated_channel_url);Object.keys(t).length&&(N.channelAbuseReportDetails=t)};
_.cv.Object.defineProperties(xi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ki=function(){};
_.p(ki,KX);ki.prototype.getApiPaths=function(){return SXp};
ki.prototype.getExtension=function(N){return _.M(N,X8X)};
ki.prototype.JSC$14325_buildRequest=function(N,t){t.blockedForKidsContent&&(N.blockedForKidsContent=t.blockedForKidsContent)};var qv=function(){};
_.p(qv,KX);qv.prototype.getApiPaths=function(){return NXB};
qv.prototype.getExtension=function(N){return _.M(N,Ygv)};
qv.prototype.JSC$14325_buildRequest=function(N,t,O){N.params=t.params;O.impersonated_channel_url&&(N.impersonatedChannelUrl=O.impersonated_channel_url)};var f3=function(){};
_.p(f3,KX);f3.prototype.getApiPaths=function(){return fHS};
f3.prototype.getExtension=function(N){return _.M(N,_.xSE)};
f3.prototype.JSC$14325_buildRequest=function(N,t){t.items&&(N.items=t.items);t.kidGaiaId&&(N.kidGaiaId=t.kidGaiaId)};var n3=function(){};
_.p(n3,KX);n3.prototype.getApiPaths=function(){return iqR};
n3.prototype.getExtension=function(N){return _.M(N,_.MNy)};
n3.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params);t.targetId&&(N.targetId=t.targetId)};var WO=function(){};
_.p(WO,KX);WO.prototype.getApiPaths=function(){return AfZ};
WO.prototype.getExtension=function(N){return _.M(N,PDy)};
WO.prototype.JSC$14325_buildRequest=function(N,t){t.externalVideoId&&(N.externalVideoId=t.externalVideoId);t.query&&(N.query=t.query);t.sourceTimelines&&(N.sourceTimelines=t.sourceTimelines)};var rK=function(){};
_.p(rK,KX);rK.prototype.getApiPaths=function(){return Z6r};
rK.prototype.getExtension=function(N){return _.M(N,_.PH)||void 0};
rK.prototype.JSC$14325_buildRequest=function(N,t){t.token&&(N.continuation=t.token)};
_.Y$1=function(){};
_.p(_.Y$1,KX);_.V=_.Y$1.prototype;_.V.getApiPaths=function(){return Z6r};
_.V.getExtension=function(N){return _.M(N,_.Bi)||void 0};
_.V.isNavigationCommand=function(){return!0};
_.V.JSC$14332_getStoreKey=function(N,t){t=t===void 0?{}:t;if(!t.disableCache&&(N=this.getExtension(N))&&N.query)return t={query:N.query},N.params&&(t.params=N.params),_.WC("search",t)};
_.V.JSC$14325_buildRequest=function(N,t,O){t.query&&(N.query=t.query);t.params&&(N.params=t.params);if(!_.h("web_forward_suggest_stats_killswitch")){var H=_.M(t,ZDa);H&&(N.suggestStats=H)}var A;!_.h("kevlar_searchbox_stats_killswitch")&&((A=O.tempData)==null?0:A.gs_l)&&!_.M(t,ZDa)&&(N.webSearchboxStatsUrl="/search?oq="+(O.tempData.oq||"")+"&gs_l="+O.tempData.gs_l);var Z;if((Z=O.tempData)==null?0:Z.entityMid)t=N.suggestionSearchParams||{},t.entityMid=O.tempData.entityMid,N.suggestionSearchParams=t;
if(_.h("enable_desktop_vdcbg_components")||_.h("enable_inline_muted_playback_on_web_search"))t=_.d0().getFlag(186),N.inlineSettingStatus=t?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";O.isFromShorts&&(N.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.V.getRequestConfig=function(N,t){t=t===void 0?{}:t;N=this.JSC$14332_getStoreKey(N,t);var O;N&&(O={storeStrategy:{storeKey:N}});_.h("web_log_search_ticks_ks")||(O=O||{},O.requestTick="sr_s",O.responseTick="sr_r");return O};var Ic=function(){};
_.p(Ic,KX);Ic.prototype.getApiPaths=function(){return wfX};
Ic.prototype.getExtension=function(N){return _.M(N,GzB)};
Ic.prototype.JSC$14325_buildRequest=function(N,t){t.serializedGetSharingProviderDataParams&&(N.serializedGetSharingProviderDataParams=t.serializedGetSharingProviderDataParams)};var lT=function(){};
_.p(lT,KX);lT.prototype.getApiPaths=function(){return eLB};
lT.prototype.getExtension=function(N){return _.M(N,N6p)};
lT.prototype.JSC$14325_buildRequest=function(N,t){t.endpoint&&(N.endpoint=t.endpoint);t.action&&(N.action=t.action)};var Qa=function(){};
_.p(Qa,KX);Qa.prototype.getApiPaths=function(){return dP_};
Qa.prototype.getExtension=function(N){return _.M(N,kzu)};
Qa.prototype.JSC$14325_buildRequest=function(N,t){N.videoId=t.videoId;t.scheduledRedirectMetadataSourceVideoId&&(N.scheduledRedirectMetadata={sourceVideoId:t.scheduledRedirectMetadataSourceVideoId})};var mc=function(){};
_.p(mc,KX);mc.prototype.getApiPaths=function(){return CsQ};
mc.prototype.getExtension=function(N){return _.M(N,_.XFR)};
mc.prototype.JSC$14325_buildRequest=function(N,t){N.params=t.params;N.correctionText=t.correctionText};var EY=function(){};
_.p(EY,KX);EY.prototype.getApiPaths=function(){return Gfy};
EY.prototype.getExtension=function(N){return _.M(N,_.XbB)};
EY.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params);N.searchQuery=t.searchQuery;N.languageCode=t.languageCode;N.kind=t.kind;N.name=t.name;N.externalVideoId=t.externalVideoId};var G7=function(){};
_.p(G7,KX);G7.prototype.getApiPaths=function(){return pIX};
G7.prototype.getExtension=function(N){return _.M(N,NVY)};
G7.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.params=t.params)};var Rc=function(N){this.JSC$18601_storeWithEntities=N};
_.p(Rc,KX);Rc.prototype.getApiPaths=function(){return tQu};
Rc.prototype.getExtension=function(N){return _.M(N,O_f)||_.M(N,AX_)};
Rc.prototype.JSC$14325_buildRequest=function(N,t,O){O.client_data&&(N.clientData=O.client_data);if(t.commerceActionConfig){var H=t.commerceActionConfig;t=H.actionId;H=H.commerceActionParams;t&&(N.actionId=t);H&&(N.commerceActionParams=H)}else{var A=t.actionId,Z=t.commerceActionParams;O=t.entityKeys;A&&(N.actionId=A);Z&&(N.commerceActionParams=Z);var U;t=(H=this.JSC$18601_storeWithEntities)==null?void 0:(U=H.getState())==null?void 0:U.entities;if(O&&t){H=[];U=_.D(O);for(O=U.next();!O.done;O=U.next())if(A=
O.value,O=_.Zn(A).entityType,A=_.CM(t,O,A))Z={},H.push((Z[O]=A,Z));N.entityMutationPayloads=H}}};
Rc.prototype.getRequestConfig=function(N){var t,O=(t=_.M(N,O_f))==null?void 0:t.requestSequenceType;if(O&&N.clickTrackingParams&&O!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:N.clickTrackingParams,sequenceType:O}}};
Rc[$v]=[ZZ];var vO=function(){};
_.p(vO,KX);vO.prototype.getApiPaths=function(){return LQX};
vO.prototype.getExtension=function(N){return _.M(N,_.hWS)};
vO.prototype.JSC$14325_buildRequest=function(N,t){t.feedbackData&&(N.feedbackData=t.feedbackData);t.params&&(N.itemParams=t.params)};
_.cv.Object.defineProperties(vO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jo=function(){};
_.p(Jo,KX);Jo.prototype.getApiPaths=function(){return zOp};
Jo.prototype.getExtension=function(N){return _.M(N,M3_)};
Jo.prototype.JSC$14325_buildRequest=function(N,t,O){O.payments_payload&&(N.paymentsPayload=O.payments_payload);O.offer_params&&(N.offerParams=O.offer_params);t.transactionParams&&(N.transactionParams=t.transactionParams)};var oc=function(){};
_.p(oc,KX);oc.prototype.getApiPaths=function(){return YuB};
oc.prototype.getExtension=function(N){return _.M(N,_.b_Q)};
oc.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.buybucketParams&&(N.buybucketData={params:t.buybucketParams},t.stickerParams?N.buybucketData.stickerParams=t.stickerParams:(O.rich_chat_message?N.buybucketData.richChatMessage=O.rich_chat_message:O.chat_message_text&&(N.buybucketData.chatMessageText=O.chat_message_text),O.purchase_price_micros&&(N.buybucketData.purchasePriceMicros=O.purchase_price_micros.toString())));t.donationAmountMicros&&(N.tipAmountMicros=t.donationAmountMicros,
t.tipParams&&(N.tipParams=t.tipParams));t.offerParams&&(N.offerParams=t.offerParams);t.productData&&(N.productData=t.productData);t.transactionParams&&(N.transactionParams=t.transactionParams)};var sY=function(){};
_.p(sY,KX);sY.prototype.getApiPaths=function(){return aQZ};
sY.prototype.getExtension=function(N){return _.M(N,zWY)};
sY.prototype.JSC$14325_buildRequest=function(N,t){t.updateFopParams&&(N.updateFopParams=t.updateFopParams)};var N$=function(){};
_.p(N$,KX);N$.prototype.getApiPaths=function(){return TXa};
N$.prototype.getExtension=function(N){return _.M(N,_.mb)};
N$.prototype.JSC$14325_buildRequest=function(N,t){t.couponCode&&(N.couponCode=t.couponCode);t.params&&(N.itemParams=t.params)};var th=function(){};
_.p(th,KX);th.prototype.getApiPaths=function(){return wIY};
th.prototype.getExtension=function(N){return _.M(N,_.H_E)};
th.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;t.params&&(N.params=t.params);O.ctk&&(N.clientToken=O.ctk)};var Og=function(N){this.JSC$18636_storeWithEntities=N};
_.p(Og,KX);Og.prototype.getApiPaths=function(){return eOf};
Og.prototype.getExtension=function(N){return _.M(N,_.uA)};
Og.prototype.JSC$14325_buildRequest=function(N,t,O){O.purchase_price_micros&&(N.productData={pdgData:{purchasePriceMicros:O.purchase_price_micros.toString()}},O.rich_chat_message&&(N.productData.pdgData.richChatMessage=O.rich_chat_message),O.currency_code&&(N.productData.pdgData.currencyCode=O.currency_code));t.transactionParams&&(N.transactionParams=t.transactionParams);t.clientLocationContext&&(N.clientLocationContext=t.clientLocationContext);O.payments_payload&&(N.paymentsPayload=O.payments_payload);
O.funds_guarantee_callback_client_data&&(N.fundsGuaranteeCallbackClientData=O.funds_guarantee_callback_client_data);var H,A;O=(H=this.JSC$18636_storeWithEntities)==null?void 0:(A=H.getState())==null?void 0:A.entities;if(t.entityKeys&&O){H=[];t=_.D(t.entityKeys);for(A=t.next();!A.done;A=t.next()){var Z=A.value;A=_.Zn(Z).entityType;if(Z=_.CM(O,A,Z)){var U={};H.push((U[A]=Z,U))}}N.entityMutationPayloads=H}};
Og[$v]=[ZZ];var HE=function(){};
_.p(HE,KX);HE.prototype.getApiPaths=function(){return Psa};
HE.prototype.getExtension=function(N){return _.M(N,pKf)};
HE.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;O.backend_analytics&&(N.serializedBackendAnalyticsEvent=O.backend_analytics);t.offerParams&&(N.offerParams=t.offerParams)};var Ah=function(){};
_.p(Ah,KX);Ah.prototype.getApiPaths=function(){return TXa};
Ah.prototype.getExtension=function(N){return _.M(N,Bgt)};
Ah.prototype.JSC$14325_buildRequest=function(N,t){t.params&&(N.itemParams=t.params)};var Zq=function(){};
_.p(Zq,KX);Zq.prototype.getApiPaths=function(){return XI0};
Zq.prototype.getExtension=function(N){return _.M(N,_.CRu)};
Zq.prototype.JSC$14325_buildRequest=function(N,t,O){O.resume_time_ms&&(N.resumeTimeMs=O.resume_time_ms);t.pauseParams&&(N.pauseParams=t.pauseParams)};var Vz=function(){};
_.p(Vz,KX);Vz.prototype.getApiPaths=function(){return xla};
Vz.prototype.getExtension=function(N){return _.M(N,_.LuY)};
Vz.prototype.JSC$14325_buildRequest=function(N,t,O){O=O===void 0?{}:O;O.c&&(N.redeemCode=O.c);O.rd&&(N.riskData=O.rd);O.ctk&&(N.clientToken=O.ctk)};var Dq=function(){};
_.p(Dq,KX);Dq.prototype.getApiPaths=function(){return k9u};
Dq.prototype.getExtension=function(N){return _.M(N,_.Kur)};
Dq.prototype.JSC$14325_buildRequest=function(N,t){t.resumeParams&&(N.resumeParams=t.resumeParams)};var Ug=function(N,t){this.clientName=N;this.defaultExpirationDelayMs=t};
Ug.prototype.put=function(N,t){var O=this,H;return _.K(function(A){H=Object.assign({},t.data);H.key=N;H.clientName=O.clientName;H.expireTimestampMs===void 0&&(H.expireTimestampMs=(Math.round((0,_.jg)())+O.defaultExpirationDelayMs).toString());return A.return(O.putInternal(N,H))})};
Ug[$v]=[hK,Bcz];var al1=function(){Ug.apply(this,arguments);this.JSC$18666_responseStore=new Map};
_.p(al1,Ug);_.V=al1.prototype;_.V.get=function(N){var t=this;return _.K(function(O){return O.return(WF(t,N))})};
_.V.putInternal=function(N,t){var O=this,H,A,Z;return _.K(function(U){H=O.defaultExpirationDelayMs;t.expireTimestampMs&&(H=Number(t.expireTimestampMs)-Math.round((0,_.jg)()),A=_.uP("mweb_override_response_store_expiration_ms"),A>0&&A<H&&(H=A));Z=setTimeout(function(){O.remove(N)},H);
O.JSC$18666_responseStore.set(N,{entryData:t,timer:Z});_.Ty(U)})};
_.V.remove=function(N){var t=this;return _.K(function(O){Tbq(t,N);_.Ty(O)})};
_.V.removeAll=function(){var N=this;return _.K(function(t){N.JSC$18666_responseStore.forEach(function(O){clearTimeout(O.timer)});
N.JSC$18666_responseStore.clear();_.Ty(t)})};
_.V.has=function(N){return!!this.JSC$18666_responseStore.get(N)};
_.V.getKeys=function(){return this.JSC$18666_responseStore.keys()};
var WF=function(N,t){if(N=N.JSC$18666_responseStore.get(t))return new _.nc(N.entryData)},Tbq=function(N,t){var O=N.JSC$18666_responseStore.get(t);
O&&(clearTimeout(O.timer),N.JSC$18666_responseStore.delete(t))};var HhS;var Vly=function(N,t,O){Ug.call(this,N,t);this.token=O};
_.p(Vly,Ug);_.V=Vly.prototype;_.V.get=function(N){var t=this,O,H;return _.K(function(A){return A.nextAddress==1?A.yield(ZhN(t.token),2):A.nextAddress!=3?(O=A.yieldResult,A.yield(O.get("ResponseStore",[N,t.clientName]),3)):(H=A.yieldResult)?A.return(new _.nc(H)):A.return(void 0)})};
_.V.putInternal=function(N,t){var O=this,H;return _.K(function(A){if(A.nextAddress==1)return A.yield(ZhN(O.token),2);H=A.yieldResult;return A.yield(H.put("ResponseStore",t),0)})};
_.V.remove=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(ZhN(t.token),2);O=H.yieldResult;return H.return(O.delete("ResponseStore",[N,t.clientName]))})};
_.V.removeAll=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return O.yield(ZhN(N.token),2);t=O.yieldResult;return O.yield(QXZ(t,IDBKeyRange.only(N.clientName)),0)})};
_.V.has=function(){throw Error("ij");};_.C4=new _.dk("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wAq=function(N){var t;this.stateTagsData=(t=N.responseContext)==null?void 0:t.stateTags},ezx=function(N){var t;
return((t=N.stateTagsData)==null?void 0:t.stateTagsModified)||[]};var Pu1;Pu1=function(N){this.JSC$18679_responseStore=N};
_.W7=function(N,t,O){if(!_.h("state_tags_killswitch")){var H=new wAq(t);if(ezx(H).length>0){var A=N.JSC$18679_responseStore.getKeys();A=_.D(A);for(var Z=A.next();!Z.done;Z=A.next()){Z=Z.value;var U=WF(N.JSC$18679_responseStore,Z);if(U){var C=_.N4(U);a:{var F=void 0;U=ezx(H);C=((F=(new wAq(C)).stateTagsData)==null?void 0:F.relevantStateTags)||[];F=_.D(C);for(C=F.next();!C.done;C=F.next())if(C=C.value,C.stateTag!=null&&U.includes(C.stateTag)&&C.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){U=
!0;break a}U=!1}U&&Tbq(N.JSC$18679_responseStore,Z)}}}}var g;H=(g=t.responseContext)==null?void 0:g.maxAgeSeconds;O&&H&&Number(H)>0&&(t=Ve(t,H),N.JSC$18679_responseStore.put(O,new _.nc(t)))};
Pu1.prototype.handleResponse=function(N,t){if(!t)throw Error("jj");var O,H;t=(O=t.config)==null?void 0:(H=O.storeStrategy)==null?void 0:H.storeKey;_.W7(this,N,t)};
Pu1[$v]=[_.fc];_.YFy=new _.dk("STORE_RESPONSE_PROCESSOR_TOKEN");var XA5=function(N){this.JSC$18682_responseStore=N};
XA5.prototype.handleResponse=function(N,t){if(t.input.match(_.JB(J3u))){var O;if(N==null?0:(O=N.entries)==null?0:O.length)for(N=_.D(N.entries),t=N.next();!t.done;t=N.next()){O=t.value.command;var H=void 0;t=(H=_.M(O,_.jc))==null?void 0:H.unserializedPrefetchData;if(!O||!t)break;H=(new eK).JSC$14332_getStoreKey(O);var A=_.M(t,D3Y),Z=void 0,U=void 0,C=void 0,F=void 0,g=void 0,B=void 0,c=((Z=A)==null?0:(U=Z.responseContext)==null?0:U.maxAgeSeconds)&&Number((C=A)==null?void 0:(F=C.responseContext)==null?
void 0:F.maxAgeSeconds)>0?Number((g=A)==null?void 0:(B=g.responseContext)==null?void 0:B.maxAgeSeconds):600;H&&c>0&&(A=Ve(A,c),this.JSC$18682_responseStore.put(H,new _.nc(A)));O=(new EV).JSC$14332_getStoreKey(O);t=_.M(t,mFf);F=C=U=Z=A=H=void 0;g=((H=t)==null?0:(A=H.responseContext)==null?0:A.maxAgeSeconds)&&Number((Z=t)==null?void 0:(U=Z.responseContext)==null?void 0:U.maxAgeSeconds)>0?Number((C=t)==null?void 0:(F=C.responseContext)==null?void 0:F.maxAgeSeconds):600;O&&g>0&&(t=Ve(t,g),this.JSC$18682_responseStore.put(O,
new _.nc(t)))}}};
XA5[$v]=[_.fc];var xnO=function(N,t){this.innertubeTransportService=N;this.JSC$18685_commandHandler=t};
xnO.prototype.submitForm=function(N,t,O,H,A){var Z=this,U,C,F,g,B,c;return _.K(function(u){if(u.nextAddress==1)return U={submitId:N,formData:t,submitBehavior:O,params:H},C=_.JB(KQX),u.yield(_.cT(Z.innertubeTransportService,U,C,A),2);F=u.yieldResult;if(!F)return u.return(Promise.reject(new _.fF("Submit API returned an undefined response. Submit ID: "+N)));g=F;(c=(B=g)==null?void 0:B.onResponseReceived)&&Z.JSC$18685_commandHandler.resolveCommand(c);return u.return(g)})};
xnO[$v]=[_.Sc,_.jo];var K4=function(){this.scheduler=_.zh()},ku1;
K4.prototype.pause=function(){throw Error("kj");};
K4.prototype.resume=function(){throw Error("kj");};
K4.prototype.queue=function(N){var t=this,O=_.lj(),H=_.WX(this.scheduler,function(){try{var A;if(_.U4.instance)var Z=_.U4.instance;else{var U=new _.fF("Error: Unexpected uninitialized CommandHandler.");_.R0(U);Z=void 0}(A=Z)==null||A.resolveCommand(N.command);O.resolve()}catch(C){O.reject(C)}});
O.promise.thenCatch(function(A){A instanceof _.kg&&t.scheduler.cancelJob(H)});
return O.promise};
K4.prototype.queueAll=function(N){var t=new Map;N=_.D(N);for(var O=N.next();!O.done;O=N.next())O=O.value,t.set(O.id,this.queue(O));return t};var flO=function(N,t){var O=this;this.taskModel=N;this.onTaskCancelledCallback=t;this.resolver=_.lj();N=N.proto.prefetchConfig;if(!N)throw Error("lj");if(!N.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(H){H instanceof _.kg&&(q$r(O,O.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),O.onTaskCancelledCallback(O.taskModel.id,O.jobId),O.tick("pcc"));
throw H;});
this.timerName=this.taskModel.id;_.LJ(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
flO.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var q$r=function(N,t){_.bp({prefetchInfo:{cancellationReason:t}},N.timerName)};
flO.prototype.tick=function(N){_.zT(N,void 0,this.timerName)};var d2=function(){var N=this;this.scheduler=_.zh();this.maxInflightTasks=_.uP("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.uP("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Mqa;this.onTaskCancelled=function(t,O){O&&N.scheduler.cancelJob(O);n1m(N,t);FD(N,3)}},W7J=function(){d2.instance||(d2.instance=new d2);
return d2.instance};
d2.prototype.pause=function(){this.prefetchCoordinatorState=0};
d2.prototype.resume=function(){FD(this,0)};
d2.prototype.queue=function(N){N=rIz(this,N);FD(this,1);return N};
d2.prototype.queueAll=function(N){var t=new Map;N=_.D(N);for(var O=N.next();!O.done;O=N.next())O=O.value,t.set(O.id,rIz(this,O));FD(this,1);return t};
var rIz=function(N,t){var O=N.allPrefetchTasks.get(t.id);if(O)return O.cancellablePromise;try{var H=new flO(t,N.onTaskCancelled)}catch(Z){return _.M2(Z)}O=H;O.tick("pcq");var A={prefetchInfo:{taskId:O.taskModel.id,isPrefetch:!0,fetchAction:O.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:O.taskModel.command.clickTrackingParams}};O.taskModel.csn&&(A.clientScreenNonce=O.taskModel.csn);_.bp(A,O.timerName);N.allPrefetchTasks.set(t.id,H);N.drainingHeap.insert(-H.getPriority(),H);return H.cancellablePromise},
FD=function(N,t){N.prefetchCoordinatorState===t&&(N.prefetchCoordinatorState=2,IlO(N))},IlO=function(N){for(var t={};N.prefetchCoordinatorState!==0;t={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(N.inflightPrefetchTasks.size>=N.maxInflightTasks){N.prefetchCoordinatorState=3;break}t.prefetchTask$jscomp$1=N.drainingHeap.remove();if(!t.prefetchTask$jscomp$1){N.prefetchCoordinatorState=1;break}t.taskId$jscomp$3=t.prefetchTask$jscomp$1.taskModel.id;if(N.allPrefetchTasks.has(t.taskId$jscomp$3)){var O=-1;N.coordinatorTimeoutMs>0&&(O=_.WX(N.scheduler,function(H){return function(){g2(N,H.taskId$jscomp$3,Error("nj"))}}(t),N.coordinatorTimeoutMs));
N.inflightPrefetchTasks.set(t.taskId$jscomp$3,O);if(!N.JSC$18702_commandHandler){if(!_.U4.instance){g2(N,t.taskId$jscomp$3,Error("oj"));continue}N.JSC$18702_commandHandler=_.U4.instance}a:switch(t.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":O=1;break a;default:O=0}t.prefetchTask$jscomp$1.jobId=N.scheduler.addJob(function(H){return function(){H.prefetchTask$jscomp$1.tick("pcr");try{N.JSC$18702_commandHandler.resolveCommand(H.prefetchTask$jscomp$1.taskModel.command)||
g2(N,H.taskId$jscomp$3,Error("pj"))}catch(A){g2(N,H.taskId$jscomp$3,A)}}}(t),O,0)}}},lli=function(N,t){(t=n1m(N,t))!=null&&(t.resolver.resolve(),t.tick("pce"));
FD(N,3)},g2=function(N,t,O){(t=n1m(N,t,O))!=null&&(t.resolver.reject(O),t.tick("pcc"),q$r(t,"CANCELLATION_REASON_ERROR"),Math.random()<=_.uP("prefetch_coordinator_error_logging_sampling_rate")&&(O=new _.fF("Prefetch Command failed.",t.taskModel.id,O.message),_.R0(O)));
FD(N,3)},n1m=function(N,t,O){var H=N.allPrefetchTasks.get(t);
H?((O=N.inflightPrefetchTasks.get(t))&&O!==-1&&N.scheduler.cancelJob(O),N.inflightPrefetchTasks.delete(t),N.allPrefetchTasks.delete(t)):_.J_(new _.fF("Unexpected missing prefetch task when deleting task.",t,O==null?void 0:O.message));return H};var QP5=function(N,t,O,H,A){this.id=N;this.triggerOn=t;this.cancelOn=O;this.command=H;this.proto=A};
_.cv.Object.defineProperties(QP5.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var mnf=function(){this.JSC$18707_prefetchCoordinator=W7J();ku1||(ku1=new K4);this.defaultCoordinator=ku1},E1O;
mnf.getInstance=function(){E1O||(E1O=new mnf);return E1O};
mnf.prototype.get=function(N){switch(N){case 0:return this.JSC$18707_prefetchCoordinator;default:return this.defaultCoordinator}};var yz=function(){this.coordinatorSupplier=mnf.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},v15=function(N){var t=_.z8()||void 0,O=Object.keys(Gum)[0];
if(O){var H=N.taskIdByTriggerId.get(O);if(H!=null){N.taskIdByTriggerId.delete(O);O=[];H=_.D(H);for(var A=H.next();!A.done;A=H.next())if(A=N.tasks.get(A.value))t!=="UNDEFINED_CSN"&&(A.csn=t),O.push(A);O=C3t(O);t=[];O=_.D(O);for(H=O.next();!H.done;H=O.next()){A=_.D(H.value);H=A.next().value;A=A.next().value;H=N.coordinatorSupplier.get(H).queueAll(A);H=_.D(H);var Z=H.next();for(A={};!Z.done;A={taskId$jscomp$9:void 0},Z=H.next()){var U=_.D(Z.value);Z=U.next().value;U=U.next().value;A.taskId$jscomp$9=
Z;Z=U;t.push(A.taskId$jscomp$9);N.queuedPromisesByTask.set(A.taskId$jscomp$9,_.fV(Z,function(C){return function(){Rzx(N,C.taskId$jscomp$9)}}(A)))}}}}else _.J_(new _.fF("Unexpected malformed TriggerEvent."))};
yz.prototype.trigger=function(N,t){var O=this,H=this.tasks.get(N);if(!H||this.queuedPromisesByTask.has(N))return!1;JI5(this,N,H.triggerOn);t!=="UNDEFINED_CSN"&&(H.csn=t);t=this.coordinatorSupplier.get(H.taskType).queue(H);this.queuedPromisesByTask.set(N,_.fV(t,function(){Rzx(O,N)}));
return!0};
yz.prototype.cancel=function(N){var t=this.queuedPromisesByTask.get(N);if(t)t.cancel();else return Rzx(this,N)};
var Rzx=function(N,t){N.queuedPromisesByTask.delete(t);var O=N.tasks.get(t);if(!O)return!1;N.tasks.delete(t);JI5(N,t,O.triggerOn);(O=UJz(O.cancelOn))&&(N=N.taskIdByCancelId.get(O))&&N.delete(t);return!0},JI5=function(N,t,O){(O=Object.keys(O)[0])&&(N=N.taskIdByTriggerId.get(O))&&N.delete(t)};var Gum={taskRegistered:{}},BE=function(){yz.instance||(yz.instance=new yz);this.JSC$18716_taskManager=yz.instance};
_.p(BE,jQ);
BE.prototype.resolveCommand=function(N){var t=this,O,H;return _.K(function(A){O=_.M(N,Zcf);if((H=O)==null||!H.tasks){var Z=new _.fF("RegisterTasksCommand is missing tasks.");_.R0(Z);return A.return()}Z=t.JSC$18716_taskManager;for(var U=_.D(O.tasks),C=U.next();!C.done;C=U.next())if(C=C.value,C=C.id&&C.triggerOn&&C.cancelOn&&C.command?new QP5(C.id,C.triggerOn,C.cancelOn,C.command,C):void 0,C){var F=Object.keys(C.triggerOn)[0];if(F){var g=UJz(C.cancelOn);g?(Z.tasks.set(C.id,C),Z.taskIdByTriggerId.has(F)||Z.taskIdByTriggerId.set(F,
new Set),Z.taskIdByTriggerId.get(F).add(C.id),Z.taskIdByCancelId.has(g)||Z.taskIdByCancelId.set(g,new Set),Z.taskIdByCancelId.get(g).add(C.id)):_.J_(new _.fF("Unexpected malformed cancelOn field."))}else _.J_(new _.fF("Unexpected malformed triggerOn field."))}else _.J_(new _.fF("Unexpected malformed Task proto."));v15(t.JSC$18716_taskManager);_.Ty(A)})};var o1O={},sPr=(o1O.rendered={priority:_.h("web_adaptive_early_init")?8:0,callback:function(){var N={};N.numCpu=navigator.hardwareConcurrency;var t={};t.ramGb=_.H4.navigator.deviceMemory;var O={staticContext:{}};t.ramGb&&gZt(t.ramGb)&&(O.staticContext.memoryTotalKbytes=(t.ramGb*1048576).toString());N.numCpu&&gZt(N.numCpu)&&(O.staticContext.cpuCores=N.numCpu);if(_.h("web_enable_adaptive_appl_signal")){N={};t=$Sl();t=t.length>0?t[0]:void 0;var H,A=(H=_.TT("rses_dpj"))!=null?H:t==null?void 0:t.tick.rses_dpj,
Z;H=(Z=_.TT("rsef_dpj"))!=null?Z:t==null?void 0:t.tick.rsef_dpj;A&&Number(A)>0&&H&&Number(H)>0&&(Z=Math.ceil(Number(H)-Number(A)),Z>0&&(N.loadLatency=Z));N.loadLatency&&gZt(N.loadLatency)&&(O.appL=N.loadLatency.toString())}_.E7("applicationStarted",O);ySO=O;_.h("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",BWv)}},o1O);var NpO=new _.dk("WINDOW_ON_ERROR"),tGn=new _.dk("ERROR_WEIGHT_MAPS"),Otq=new _.dk("INIT_ERROR");var HtJ={},AJm=(HtJ.initialized={priority:10,callback:function(N){N.injector.resolve(Otq)()}},HtJ);var Ztm=function(){},VGf=function(){var N=_.s2("meta_logger_impl");
N||(N=new Ztm,_.Ba("meta_logger_impl",N));return N},DYi=function(){VGf().csiSubscriptionKey=fmQ("meta_logging_csi_event",function(N){var t=N.timerName;
if(N=N.timelineData){_.LJ(t,{startTime:N.startTime},t);N.infos&&_.bp(N.infos,t);for(var O=_.D(Object.keys(N.ticks)),H=O.next();!H.done;H=O.next())H=H.value,_.zT(H,N.ticks[H],t)}})};
Ztm.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&rGx(this.csiSubscriptionKey)};var UYf={},C$x=(UYf.initialized={priority:10,callback:function(){DYi()}},UYf);var KPx=function(N,t){this.innertubeClientName=N;this.JSC$18727_prefCookie=t};
KPx.prototype.record=function(){if(_.h("web_li_record_binary_eval_tick")){var N=_.TT("rsef_dpj");var t=_.TT("rses_dpj");N=N!==void 0&&t!==void 0?Math.round(N-t):void 0;if(N!==void 0&&N>0){t=_.b8(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var O=this.poolSize;if(!(t.valuesSeen>=1E9)){if(t.valuesSample.length<O)t.valuesSample.push(N);else{var H=Math.floor(Math.random()*(t.valuesSeen+1));H<O&&(t.valuesSample[H]=N)}t.valuesSeen+=1}_.ML(this.storagePrefix+"-"+this.innertubeClientName,
t,2592E3);N=t.valuesSample;t=Kf9(N);N=N.length<this.poolSize?void 0:t<400?1:t<1700?2:3;N!==void 0&&(this.JSC$18727_prefCookie.set(this.cookiePrefix+this.innertubeClientName,N),this.JSC$18727_prefCookie.save())}}else _.pT(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18727_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18727_prefCookie.save()};
KPx[$v]=[hK,UV];var FPm=function(){KPx.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.p(FPm,KPx);var dY5=new _.dk("PAGE_LOAD_TIME_TOKEN");var gM1=function(N){this.signal=N;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;N.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.WX(_.GB,this.disableLoggingAndSendPayload,1E4)};
gM1.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.GB.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),yJ5(this))};
var yJ5=function(N){var t=_.pv();if(t){var O={webClientComponentsData:{components:Array.from(N.ids,function(H){return{id:H}})}};
N.ids.clear();_.gF().visualElementStateChanged(t,O)}};var Bpn=zI({a11y:l1X});_.cJm=YV(Bpn)(Bpn.a11y,{ephemeralActionSelector:function(N){return N.ephemeralAction||null}});var $YO=zI({continuation:RdS});var jaz=YV($YO)($YO.continuation,{continuationCommandSelector:function(N){return N.continuationCommand}});var it1=new _.dk("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var cE=function(N,t){this.JSC$18756_storeWithEntities=N;this.JSC$18756_commandHandler=t;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
cE.prototype.start=function(){this.JSC$18756_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
cE.prototype.observeDownloadingEntities=function(){var N=_.XTx(this.JSC$18756_storeWithEntities.getState().entities).map(function(H){return xag(H)});
if(N.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var t={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:RCy()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.NE(_.CJ("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18756_commandHandler.resolveCommand(t)}this.downloadingEntities=N}else if(this.downloadingEntities.length){var O=PIl(this.JSC$18756_storeWithEntities.getState().entities).map(function(H){return xag(H)});
this.downloadingEntities.filter(function(H){return O.includes(H)}).length&&(N={openPopupAction:rFN()},this.JSC$18756_commandHandler.resolveCommand(N));
this.downloadingEntities=[]}};
cE[$v]=[ZZ,_.jo];var uSn;_.$B=function(N,t,O,H,A,Z,U,C){this.JSC$18759_playerApiPromise=N;this.JSC$18759_commandHandler=t;this.JSC$18759_screenManager=O;this.offlineWebClientEligibility=H;this.JSC$18759_prefStorage=A;this.JSC$18759_actionRouter=Z;this.entityTypeMap=U;this.JSC$18759_persistentStorePromiseAccessor=C;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
uSn=function(){var N=_.cY().resolve(_.$B),t;_.K(function(O){if(O.nextAddress==1)return N.downloadFailureListenerBound?O.return():O.yield(N.JSC$18759_playerApiPromise,2);t=O.yieldResult;t.addEventListener("onOfflineOperationFailure",function(H){if(H.failureReason&&H.entityKey&&H.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(H.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var A=_.Zn(H.entityKey).entityId;A&&N.JSC$18759_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
A)}else if(_.h("kevlar_woffle")){A=N.JSC$18759_commandHandler;var Z=A.resolveCommand;H=H.failureReason;var U=_.CJ("TRANSFER_FAILED",void 0,"Download failed");H==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(U=_.CJ("STORAGE_FULL",void 0,"Storage full"));Z.call(A,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.NE(U),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
N.downloadFailureListenerBound=!0;_.Ty(O)})};
_.$B.prototype.deleteVideo=function(N,t){var O=this,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return U.yield(O.JSC$18759_playerApiPromise,2);H=U.yieldResult;Z={offlineLoggingData:{offlineDeleteReason:(A=t)!=null?A:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return U.yield(H.queueOfflineAction(N,O.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",Z),0)})};
_.$B.prototype.pauseVideoDownload=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(t.JSC$18759_playerApiPromise,2);O=H.yieldResult;O.pauseVideoDownload(N);_.Ty(H)})};
_.$B.prototype.resumeVideoDownload=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(t.JSC$18759_playerApiPromise,2);O=H.yieldResult;return H.yield(O.resumeVideoDownload(N),0)})};
_.$B[$v]=[_.A5,_.jo,_.ow,it1,ds,ay,W_Q,Qd];var SHq=new _.dk("DOWNLOAD_STATE_STORE_TOKEN");var h3O=function(N,t){this.JSC$18780_persistentStorePromiseAccessor=N;this.store=t;this.upliftCompletionResolver=new _.CT},poq=function(){var N=_.cY().resolve(MG5),t;
_.K(function(O){switch(O.nextAddress){case 1:if(N.upliftImplPromise)return O.return(N.upliftImplPromise);_.Mo(O,2);N.upliftImplPromise=bt5(N);return O.yield(N.upliftImplPromise,4);case 4:N.upliftCompletionResolver.resolve();_.Do(O,3);break;case 2:throw t=_.ax(O),N.upliftCompletionResolver.reject(t),t;case 3:return O.return(N.upliftImplPromise)}})},bt5=function(N){var t,O,H;
return _.K(function(A){switch(A.nextAddress){case 1:return _.vZ("LOGGED_IN")?A.yield(N.JSC$18780_persistentStorePromiseAccessor(),2):A.return();case 2:t=A.yieldResult;if(!t)return _.zT("vdeur"),A.return();_.zT("vdeus");_.Mo(A,3);return A.yield(LPm(t),5);case 5:O=A.yieldResult;N.store.dispatch(iZQ(O));t.observe(function(Z){u9y(N.store,Z)});
_.Do(A,4);break;case 3:throw H=_.ax(A),_.zT("vdeur"),H;case 4:_.zT("vdeuc"),_.Ty(A)}})},LPm=function(N){var t;
return _.K(function(O){if(O.nextAddress==1)return O.yield(cst(N),2);t=O.yieldResult;return O.return(t.reduce(function(H,A){if(!A.data||!A.key||!A.entityType)return H;H[A.entityType]||(H[A.entityType]={});H[A.entityType][A.key]=A.data;return H},{}))})};
h3O[$v]=[Qd,_.VT];var MG5;MG5=new _.dk("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.jx=new _.dk("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var iZ=function(N,t){this.JSC$18783_persistentStorePromiseAccessor=N;this.transportService=t};
iZ.prototype.refresh=function(){var N=this,t,O,H,A;return _.K(function(Z){if(Z.nextAddress==1)return _.vZ("LOGGED_IN")?Z.yield(N.JSC$18783_persistentStorePromiseAccessor(),2):Z.return();if(Z.nextAddress!=3)return(t=Z.yieldResult)?Z.yield(G3l(t),3):Z.return();if((O=Z.yieldResult)&&!(Number(O.data.refreshTimestampMs||0)<(0,_.jg)()))return Z.return();H={browseId:"SPaccount_downloads"};A=_.JB(mh);_.cT(N.transportService,H,A).then(function(U){var C;if(t&&(U==null?void 0:(C=U.responseContext)==null?void 0:
C.maxAgeSeconds)!==0){var F;C=(U==null?void 0:(F=U.responseContext)==null?void 0:F.maxAgeSeconds)||604800;F=String(Math.floor((0,_.jg)())+C*1E3);t.put("service:downloads_settings:fallback",new _.nc({innertubeResponse:U,refreshTimestampMs:F}))}});
_.Ty(Z)})};
iZ[$v]=[_.C4,_.Sc];var uZ=function(N,t){this.JSC$18787_playerPromise=N;this.store=t;this.started=!1};
uZ.prototype.start=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return N.started?O.return():O.yield(N.JSC$18787_playerPromise,2);t=O.yieldResult;t.addEventListener("onOrchestrationBecameLeader",N.updateIsLeader.bind(N,!0));t.addEventListener("onOrchestrationLostLeader",N.updateIsLeader.bind(N,!1));if(t.isOrchestrationLeader)N.updateIsLeader(t.isOrchestrationLeader());else{var H=new _.fF("Function isOrchestrationLeader is undefined",{"player.isReady":t.isReady(),"player.playVideo":t.playVideo?
"defined":"undefined"});_.R0(H);N.updateIsLeader(!1)}N.started=!0;_.Ty(O)})};
uZ.prototype.updateIsLeader=function(N){this.store.dispatch(_.H5({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:N}}))};
uZ[$v]=[_.A5,_.VT];var z3n=function(N,t){this.networkStatusManager=N;this.JSC$18790_prefStoragePromise=t;this.redirectsToPreload=["https://youtube.com"]},YHq=function(){var N=_.cY().resolve(z3n),t,O,H,A,Z,U;
_.K(function(C){switch(C.nextAddress){case 1:return C.yield(N.JSC$18790_prefStoragePromise,2);case 2:t=C.yieldResult;if(!(O=t)){C.jumpTo(3);break}return C.yield(t.get("yt-redirect-prefetch-id"),4);case 4:O=C.yieldResult;case 3:if(O||!N.networkStatusManager.isNetworkAvailable())return C.return();H={cache:"reload",redirect:"manual"};A=_.D(N.redirectsToPreload);Z=A.next();case 5:if(Z.done){if(!t){C.jumpTo(0);break}return C.yield(t.set("yt-redirect-prefetch-id",!0,86400),0)}U=Z.value;_.Mo(C,8);return C.yield(_.H4.fetch(U,
H),10);case 10:_.Do(C,6);break;case 8:_.ax(C);case 6:Z=A.next(),C.jumpTo(5)}})};var aym=function(N){this.JSC$18796_pageManager=N},Tp5=function(N){var t=[];
u0N(["videoId","contentId"],N.JSC$18796_pageManager.data,new Set,t);return t},woi=function(N){return Tp5(N).filter(function(t){return t.contentType==="video"}).map(function(t){return t.contentId}).filter(function(t){return t!==void 0})};
aym[$v]=[_.J4];var e3i=new _.dk("PAGE_CONTENT_EXTRACTOR_TOKEN");var Sx=function(N){N?(this.container=N,this.containerWasInjected=!0):this.containerWasInjected=!1};
Sx.prototype.openDialog=function(N,t,O){var H=this,A;return _.K(function(Z){(A=H.container)==null||A.openDialog(N,t,O);_.Ty(Z)})};
Sx.prototype.closeDialog=function(){var N=this,t;return _.K(function(O){(t=N.container)==null||t.closeDialog();_.Ty(O)})};
Sx.prototype.isDialogOpen=function(){var N=this,t,O;return _.K(function(H){return H.return((O=(t=N.container)==null?void 0:t.isDialogOpen())!=null?O:!1)})};
Sx[$v]=[_.BY(VIr)];_.P$1=new _.dk("POPUP_CONTROLLER_TOKEN");var Xo5=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Xo5.prototype.registerPanel=function(N,t){if(N){this.panelMap.set(N,t);var O=this.pendingPanelResolvers.get(N);O&&(O.resolve(t),this.pendingPanelResolvers.delete(N))}};
Xo5.prototype.getPanel=function(N){var t=this,O;return _.K(function(H){return(O=t.panelMap.get(N))?H.return(O):H.return(xY5(t,N))})};
var xY5=function(N,t){var O,H;return _.K(function(A){if(O=N.pendingPanelResolvers.get(t))return A.return(O.promise);H=new _.CT;N.pendingPanelResolvers.set(t,H);return A.return(H.promise)})},kg5=function(N,t){Xo5.call(this);
var O=this;this.popupController=N;this.persistentPanelController=t;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return O.panelMap.size}}};
_.p(kg5,Xo5);_.V=kg5.prototype;_.V.getReloadContinuation=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(t.getPanel(N),2);O=H.yieldResult;return H.return(O.getReloadContinuation())})};
_.V.showPanel=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u,S;return _.K(function(b){if(b.nextAddress==1){O=N;H=O.identifier;A=O.panelContents;Z=O.config;U=O.extras;C=O.panelUpdatableFields;F=O.updatePanelContinuationData;g=N.target;F&&t.updatePanelContinuationDatas.set(H,F);if((B=Z)==null?0:(c=B.engagementPanelPopupPresentationConfig)==null?0:c.popupType)if(u=Z.engagementPanelPopupPresentationConfig.popupType,g===void 0&&(g=document.body),u==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!t.persistentPanelController)return _.J_(new _.fF("Persistent panel controller is not available.")),
b.return();var z=t.persistentPanelController;z.persistentPanelIdentifiers.has(H)||(z.persistentPanelWrapper.appendChild(z.engagementPanelElement({panelIdentifier:H},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),z.persistentPanelIdentifiers.add(H));a:switch(_.Wz.currentPageSubTypeSelector(z.store.getState())){case "watch":var w="WATCH";break a;default:w="APP"}_.qHz(z,w);z.store.dispatch(mNf(!0))}else{if(u==="PANEL_POPUP_TYPE_DIALOG"||u==="PANEL_POPUP_TYPE_DROPDOWN"){z=b.return;w=t.popupController;
var P=w.openPopup;a:switch(u){case "PANEL_POPUP_TYPE_DIALOG":var x="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":x="DROPDOWN";break a;default:throw Error("rj`"+u);}return z.call(b,P.call(w,H,A,x,g))}_.J_(new _.fF("Popup type "+u+" not supported in PanelController."))}return b.yield(t.getPanel(H),2)}S=b.yieldResult;(A||C)&&S.updatePanel(A,!1,U,C);S.showPanel(U);_.Ty(b)})};
_.V.hidePanel=function(N){var t=this,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return O=N,H=O.identifier,U.yield(t.getPanel(H),2);A=U.yieldResult;A.hidePanel();t.popupController.closePopup(H);(Z=t.persistentPanelController)!=null&&Z.persistentPanelIdentifiers.has(H)&&Z.store.dispatch(mNf(!1));_.Ty(U)})};
_.V.isVisible=function(N,t){var O=this,H;return _.K(function(A){if(A.nextAddress==1)return t&&!O.panelMap.has(N)?A.return(!1):A.yield(O.getPanel(N),2);H=A.yieldResult;return A.return(H.isVisible())})};
_.V.updatePanel=function(N){var t=this,O,H,A,Z,U,C,F,g;return _.K(function(B){if(B.nextAddress==1){O=N;H=O.identifier;A=O.panelContents;Z=O.shouldFocus===void 0?!1:O.shouldFocus;U=O.extras;C=O.panelUpdatableFields;F=O.updatePanelContinuationData;if(!A&&!C)return B.return();F&&t.updatePanelContinuationDatas.set(H,F);_.h("enable_ai_companion")&&H==="PAai_companion"&&_.jp.remove("youchat_messages_section");return B.yield(t.getPanel(H),2)}g=B.yieldResult;g.updatePanel(A,Z,U,C);A&&_.h("enable_ai_companion")&&
t.registerPanelContent(H,A);_.Ty(B)})};
_.V.registerPanelContent=function(N,t){N&&this.panelContentMap.set(N,t)};
_.V.unregisterPanelContent=function(N){this.panelContentMap.delete(N)};
_.V.getPanelContent=function(N){return this.panelContentMap.get(N)};
_.V.getUpdatePanelContinuationData=function(N){return this.updatePanelContinuationDatas.get(N)};
kg5[$v]=[_.P$1,_.BY(_.ZF)];var hh=function(N,t){this.innertubeTransportService=N;this.JSC$18815_screenManager=t},fyJ=function(N){var t;
return!((t=N.panelLoadingStrategy)==null||!t.requestTemplate)};
hh.prototype.makeRequest=function(N){var t=this,O,H;return _.K(function(A){switch(A.nextAddress){case 1:if(!fyJ(t)){A.jumpTo(2);break}_.Mo(A,3);return A.yield(_.rq(t.innertubeTransportService,N),5);case 5:return O=A.yieldResult,O?A.return(O.content):(_.R0(Error("sj")),A.return(void 0));case 3:H=_.ax(A),_.R0(H);case 2:return A.return(void 0)}})};
hh.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
hh.prototype.execute=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c;return _.K(function(u){if(u.nextAddress==1){O=N;H=O.data;A=O.fallbackVe;Z=O.parentVe;U=O.createScreenConfig;C=O.renderFn;F=O.command;t.panelLoadingStrategy=H;var S,b,z=((S=t.panelLoadingStrategy)==null?0:S.screenVe)?(b=t.panelLoadingStrategy)==null?void 0:b.screenVe:A;z&&_.Ws(t.JSC$18815_screenManager,z,Z,U);return(g=t.getContent())?u.yield(C(g),2):u.jumpTo(2)}return u.nextAddress!=4?fyJ(t)?u.yield(t.makeRequest(F),4):u.return():(c=B=
u.yieldResult)?u.yield(C(c),0):u.return()})};
hh[$v]=[_.Sc,_.ow];var nMx;nMx=function(N,t){this.engagementPanelElement=N;this.store=t;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.qHz=function(N,t){var O=N.persistentPanelContainerMap.get(t);O?O.contains(N.persistentPanelWrapper)||(N=N.persistentPanelWrapper,_.vV=!0,_.Jd.set(N,!0),O.insertBefore(N,null),_.Jd.delete(N),_.vV=!1):_.J_(new _.fF("Persistent panel container not found for surface "+t+"."))};
nMx[$v]=[DD0,_.VT];var M$=function(){var N=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.onHoverEntered=function(){N.isHovered=!0;var t;(t=N.hoverEnterCallback)==null||t.call(N)};
this.onHoverLeft=function(){N.isHovered=!1;var t;(t=N.hoverLeaveCallback)==null||t.call(N)}};
M$.prototype.getContainer=function(){return _.G8()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
M$.prototype.openSheet=function(N,t){var O=this,H,A,Z,U,C,F,g;return _.K(function(B){switch(B.nextAddress){case 1:return H={stack:[],error:void 0,hasError:!1},_.Mo(B,2,3),A=UH,B.yield(O.isSheetOpen(),5);case 5:Z=B.yieldResult;iN_(H,Sv4(A));if(!Z){B.jumpTo(6);break}if(!O.shouldPreventClosingWhileHovered){if(!_.h("delay_sheet_open_killswitch")){if(_.h("web_close_sheet_if_same_target_killswitch")&&t&&O.currentTarget===t)return(U=O.getContainer())==null||U.closeSheet(),B.return();O.pendingData={data:N,
target:jNO(O,t)};return B.return()}B.jumpTo(6);break}if(O.currentTarget===t)return B.return();WP1(O);return B.yield((C=O.getContainer())==null?void 0:C.closeSheet(),6);case 6:if(N.viewModel&&(N={viewModel:N.viewModel,sheetPosition:N.sheetPosition,expandToFullWidth:N.expandToFullWidth}),(F=O.getContainer())==null||F.openSheet(N,t),O.currentTarget=t,O.shouldPreventClosingWhileHovered){var c;(c=O.currentTarget)==null||c.addEventListener("mouseenter",O.onHoverEntered);var u;(u=O.currentTarget)==null||
u.addEventListener("mouseleave",O.onHoverLeft);var S;c=(S=O.getContainer())==null?void 0:S.getSheetContainerElement();c==null||c.addEventListener("mouseenter",O.onHoverEntered);c==null||c.addEventListener("mouseleave",O.onHoverLeft);O.onHoverEntered()}case 3:_.pU(B);uOX(H);_.YC(B,0);break;case 2:g=_.ax(B),H.error=g,H.hasError=!0,B.jumpTo(3)}})};
M$.prototype.closeSheet=function(){var N=this;return _.K(function(t){return N.hideDelayMs?(setTimeout(function(){return _.K(function(O){return O.yield(rJ5(N),0)})},N.hideDelayMs),t.return()):t.yield(rJ5(N),0)})};
var rJ5=function(N){var t;return _.K(function(O){if(O.nextAddress==1){if(N.shouldPreventClosingWhileHovered){if(N.isHovered)return O.return();WP1(N)}return O.yield((t=N.getContainer())==null?void 0:t.closeSheet(),2)}if(O.nextAddress!=4)return N.shouldPreventClosingWhileHovered=!1,N.currentTarget=void 0,!N.pendingData||_.h("delay_sheet_open_killswitch")?O.jumpTo(0):O.yield(N.openSheet(N.pendingData.data,N.pendingData.target),4);N.pendingData=void 0;_.Ty(O)})};
M$.prototype.isSheetOpen=function(){var N=this,t,O;return _.K(function(H){return H.return((O=(t=N.getContainer())==null?void 0:t.isSheetOpen())!=null?O:!1)})};
var WP1=function(N){var t;(t=N.currentTarget)==null||t.removeEventListener("mouseenter",N.onHoverEntered);var O;(O=N.currentTarget)==null||O.removeEventListener("mouseleave",N.onHoverLeft);var H;t=(H=N.getContainer())==null?void 0:H.getSheetContainerElement();t==null||t.removeEventListener("mouseenter",N.onHoverEntered);t==null||t.removeEventListener("mouseleave",N.onHoverLeft)},jNO=function(N,t){if(!_.h("web_parent_target_for_sheets"))return t;
var O,H;return(H=(O=N.getContainer())==null?void 0:O.getParentTarget(t))!=null?H:t};var DZ=window.documentPictureInPicture;var aWt=_.mp(["dark"]),Tlg=_.mp(["system-icons"]),wMG=_.mp(["typography"]),eux=_.mp(["lang"]),P3p=_.mp(["style"]),pMQ=_.mp(["dir"]),LfQ=_.mp(["rounded-container"]),zuQ=_.mp(["style"]),xJM=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],bZ=function(N){this.JSC$18833_clientRoot=N;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
bZ.prototype.openWindow=function(N){var t=this,O,H;return _.K(function(A){switch(A.nextAddress){case 1:if(!window.documentPictureInPicture||!_.LN()||t.currentPipWindow)return A.return(!1);_.Mo(A,2);return A.yield((H=DZ?DZ:null)==null?void 0:H.requestWindow(N),4);case 4:O=A.yieldResult;_.Do(A,3);break;case 2:return _.ax(A),A.return(!1);case 3:if(!O)return A.return(!1);O.addEventListener("pagehide",function(){Iyx(t)});
O.addEventListener("resize",t.handlePipWindowResize);XMg(O);qcy(O);BFN(O);return A.yield(bhp(O),5);case 5:if(!ScN())return A.return(!1);t.currentPipWindow=O;t.JSC$18833_eventForwarder=k_g(O,t.JSC$18833_clientRoot);t.pipWindowResizeDelay=new _.iq(function(){t.currentPipWindow&&_.sl(t.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.aN(t.currentPipWindow.innerWidth,t.currentPipWindow.innerHeight)])},O);
t.pipWindowResizeDelay.start();return A.return(!0)}})};
bZ.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Iyx=function(N){if(N.currentPipWindow){var t,O;(t=DZ?DZ:null)==null||(O=t.window)==null||O.close();N.currentPipWindow.removeEventListener("resize",N.handlePipWindowResize);var H;(H=N.pipWindowResizeDelay)==null||H.dispose();N.pipWindowResizeDelay=void 0;var A;(A=N.JSC$18833_eventForwarder)==null||A.stop();N.JSC$18833_eventForwarder=void 0;t=_.D(N.onCloseCallbacks);for(O=t.next();!O.done;O=t.next())O=O.value,O();N.onCloseCallbacks=[];N.currentPipWindow=null}};
bZ.prototype.getWindow=function(){return this.currentPipWindow};
var lyr=function(N,t){var O;(O=N.onCloseCallbacks)==null||O.push(t)};
bZ.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.LN()};
_.cv.Object.defineProperties(bZ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
bZ[$v]=[M$0];var Qa1=new _.dk("PICTURE_IN_PICTURE_CONTROLLER");var fW9=function(N,t){this.lengthY=this.lengthX=0;this.lengthX=t.x-N.x;this.lengthY=t.y-N.y};var mYx=function(){},aCO=function(N,t){var O;
(O=N.headerElement)==null||O.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:t}))};var EM5=function(){};
EM5.prototype.openPopup=function(N,t,O,H){var A=this,Z;return _.K(function(U){if(!A.container)return U.return();Z={openPopupAction:{popup:t,popupType:O,uniqueId:N}};return U.return(A.container.handleOpenPopupAction(Z,H))})};
EM5.prototype.closePopup=function(N){this.container&&this.container.closePopup(N)};var Gg5=function(){this.openTunnels=new Map},idN=function(N,t,O){if(Qzp(O)){var H=_.s$(O,"gclid");
O={handleEvent:function(C){t&&!t.closed&&typeof t.postMessage==="function"&&C&&C.origin&&C.source===t&&C.data&&C.data.action==="gcl_setup"&&t.postMessage(Object.assign({},{action:"gcl_transfer"},H&&{gclid:H},{gadSource:2}),C.origin)}};
for(var A=_.D(N.openTunnels),Z=A.next();!Z.done;Z=A.next()){var U=_.D(Z.value);Z=U.next().value;U=U.next().value;if(Z.closed)try{window.removeEventListener("message",U),N.openTunnels.delete(Z)}catch(C){_.R0(C)}}t&&N.openTunnels.size<15&&(N.openTunnels.set(t,O),window.addEventListener("message",O))}};var R35=function(){this.clientParams=new Map},Um1=function(N){for(var t=_.D(N.clientParams.keys()),O=t.next();!O.done;O=t.next())O=O.value,O.startsWith("yt-mini-app-share")&&N.clientParams.delete(O)};var vM5=function(N,t){_.k1.call(this);var O=this;this.shortsController=N;this.storeWithShorts=t;N=_.Jc(this.storeWithShorts,_.WrO,function(H){if(H){var A,Z=(A=O.shortsController.getRoot())==null?void 0:A.getPlayer(),U;(A=(U=O.shortsController.alternativePlayerContainerElement)==null?void 0:U.getPlayerContainer())&&(Z==null||Z.appendTo(A))}else{var C;U=(C=O.shortsController.alternativePlayerContainerElement)==null?void 0:C.getPlayerContainer().querySelector("#player");A=O.shortsController.activeIndex;
(C=(Z=O.shortsController.getRoot())==null?void 0:Z.querySelector('ytd-reel-video-renderer[id="'+A+'"] #player-container'))&&(U==null||U.appendTo(C,void 0,!0))}});
this.addOnDisposeCallback(N)};
_.p(vM5,_.k1);var p4=function(N,t,O,H){var A=this;this.storeWithShorts=N;this.ephemeralResponseStore=t;this.innertubeTransportService=O;this.innertubeTransportLoader=H;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.cH(_.O9);this.isShortsPipActive=_.cH(_.Hy);this.nextReelVe=_.UM(56921);this.prevReelVe=_.UM(56922);this.backButtonVe=_.UM(22156);this.TEST_ONLY={getActiveModules:function(){return A.activeModules}}},JJz=function(N){N.unsubscribeFromStore=
_.Jc(N.storeWithShorts,_.n7G,function(t){N.initOrDisposeActiveModules(t);
!t&&N.storeWithShorts.getState().shorts.isFullscreen&&(_.Rr(document.documentElement),N.storeWithShorts.dispatch(_.vAr(!1)))});
N.initOrDisposeActiveModules(_.n7G(N.storeWithShorts.getState()))},$n5,jP1,oMf;
p4.prototype.initOrDisposeActiveModules=function(N){N?this.activeModules.push(new vM5(this,this.storeWithShorts)):(_.db(this.activeModules),this.activeModules.length=0)};
p4.prototype.registerRootElement=function(N){this.rootElement=N;JJz(this)};
p4.prototype.getRoot=function(){return this.rootElement};
p4.prototype.setActiveIndex=function(N){this.activeIndex=N};
_.dn5=function(N,t){var O,H,A,Z,U,C,F;return _.K(function(g){switch(g.nextAddress){case 1:return O=new eK,(H=O.JSC$14332_getStoreKey(t))&&N.ephemeralResponseStore.has(H)?g.yield(N.ephemeralResponseStore.get(H),7):g.yield(oMf(N,t),4);case 4:A=g.yieldResult;if(!H){g.jumpTo(3);break}Z=Ve(A,3600);return g.yield(N.ephemeralResponseStore.put(H,new _.nc(Z)),3);case 7:A=(U=g.yieldResult)==null?void 0:_.N4(U);case 3:return((C=A)==null?0:C.replacementEndpoint)&&(F=_.M(A.replacementEndpoint,_.jc))&&A.sequenceContinuation&&
(F.sequenceParams=A.sequenceContinuation),g.return(A)}})};
$n5=function(N,t){t=(new PO).JSC$14332_getStoreKey(t);return!!t&&N.ephemeralResponseStore.has(t)};
jP1=function(N,t,O){var H,A,Z,U,C;_.K(function(F){if(F.nextAddress==1){H=new PO;A=H.JSC$14332_getStoreKey(t);if(!A)return F.return();if(O.reelWatchSequenceResponse)return Z=Ve(O.reelWatchSequenceResponse,3600),N.ephemeralResponseStore.put(A,new _.nc(Z)),F.jumpTo(0);if(!N.ephemeralResponseStore.has(A))return F.jumpTo(0);C=O;return F.yield(N.ephemeralResponseStore.get(A),4)}C.reelWatchSequenceResponse=(U=F.yieldResult)==null?void 0:_.N4(U);_.Ty(F)})};
oMf=function(N,t){var O=O===void 0?{}:O;var H,A,Z;return _.K(function(U){switch(U.nextAddress){case 1:if(N.innertubeTransportService){H=N.innertubeTransportService;U.jumpTo(2);break}if(!N.innertubeTransportLoader){_.JO(Error("uj"));U.jumpTo(2);break}return U.yield(N.innertubeTransportLoader(),4);case 4:H=U.yieldResult;case 2:return U.yield((A=H)==null?void 0:_.rq(A,t,O),5);case 5:return Z=U.yieldResult,U.return(Z)}})};
_.cv.Object.defineProperties(p4.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
p4[$v]=[Z1O,_.fc,_.BY(_.Sc),_.BY(T7S)];_.sam=new _.dk("STORAGE_MANAGER_TOKEN");var yzM=["touchmove","scroll"];var Nu1=!1;var Jsv=!1;var gyp={onSpanEnd:function(N){N.parentId==null&&(Nu1||(RuN(),setInterval(RuN,6E5),Nu1=!0),szG(N,"web_tracing_action"))}};var AzG=URL.createObjectURL;var FtO,tTx={traceAllComponents:_.h("web_tracing_all_components"),exportToCsi:_.h("web_tracing_export_to_csi"),enabledSpansArray:_.MH("web_tracing_enabled_spans"),exportToDevTools:_.h("web_tracing_export_to_devtools"),maxBreadcrumbs:_.uP("tel_max_breadcrumbs",0)};FtO=new HHM(tTx);var dtp=_.h("web_shorts_enable_tracing");var OLn=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},HLx;
OLn.prototype.enqueue=function(N,t){t===1?this.currentPersistentToast=N:this.queue.push(N);this.openToast()};
OLn.prototype.openToast=function(){var N;(N=this.currentToast)!=null&&N.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.L4=new _.dk("TOAST_MANAGER_TOKEN");var AO5=new _.dk("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var ZLi=new _.dk("VIEW_TRANSITION_COORDINATOR_TOKEN");var VT1=function(N){this.config=N;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;N=_.D(N.transitionConfigs);for(var t=N.next();!t.done;t=N.next())t=_.D(t.value).next().value,this.transitionTasksMap.set(t,[])};
VT1.prototype.registerElement=function(N,t,O){O=O===void 0?!1:O;for(var H=_.D(Object.keys(t)),A=H.next(),Z={};!A.done;Z={viewTransitionName:void 0},A=H.next()){A=A.value;Z.viewTransitionName=t[A];var U=this.elementTasksMap.get(N),C=void 0;if((C=U)==null?0:C.has(A)){_.vX(new _.fF("Element already registered for transition",N.tagName,A));break}U=U||new Map;U.set(A,{beforeTransition:function(F){return function(){N.style.viewTransitionName=F.viewTransitionName}}(Z),
afterTransition:function(){N.style.viewTransitionName&&(N.style.viewTransitionName="")},
runOnce:O});this.elementTasksMap.set(N,U)}};
_.xS=function(N,t){var O=N.elementTasksMap.get(t);O&&(O.clear(),O.size===0&&N.elementTasksMap.delete(t))};
VT1[$v]=[AO5];var UCn=_.q(function(N){var t=_.Fy("yt-expandable-metadata-header-view-model"),O=_.Ui(function(H){if(!_.YS(_.zE(H),t.value,["A".toString(),"BUTTON".toString()])){var A;(A=N.expandedCallback)==null||A.call(N,!1)}});
return _.d("yt-expandable-metadata-header-view-model",{el:t,class:"ytExpandableMetadataHeaderViewModelHost"},_.d(_.y,{cond:function(){return N.expanded()},
then:function(){return _.d("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":O},_.d("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.d(_.y,{cond:function(){return N.data().expandedTitleImage},
then:function(H){return _.d("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.d(_.Qt,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:H}))}}),_.d("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.d("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.d(_.cu,{text:function(){return N.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.d(_.cu,{text:function(){return N.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.d(_.cu,{text:function(){return N.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.d("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.d(_.iF,{data:function(){return N.data().infoButton}},{buttonViewModel:_.Pu}),_.d(_.iF,{data:function(){return N.data().collapseButton}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
onClick:function(){var A;(A=N.expandedCallback)==null||A.call(N,!1)}})}})))},
else:function(){return _.d(DCf,Object.assign({},N))}}))},"qg"),Cfz=_.q(function(N){return _.d("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.d(_.y,{cond:function(){return N.data().collapsedLabelImage},
then:function(t){return _.d("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.d(_.Qt,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:t,alt:""}))}}),_.d(_.cu,{text:function(){return N.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"rg"),DCf=_.q(function(N){return _.d("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Ui(function(){var t;return void((t=N.expandedCallback)==null?void 0:t.call(N,!0))})},_.d("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.d(_.y,{cond:function(){return N.data().collapsedImage},
then:function(t){return _.d("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.d(_.Qt,{height:20,preserveHeight:!0,preserveWidth:!0,data:t,alt:""}))}}),_.d(_.y,{cond:function(){return N.data().showLeadingCollapsedLabel},
then:function(){return _.d(Cfz,Object.assign({},N))}}),_.d("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.d(_.cu,{text:function(){return N.data().collapsedTitle}}))),_.d("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.d(_.y,{cond:function(){return!N.data().showLeadingCollapsedLabel},
then:function(){return _.d(Cfz,Object.assign({},N))}}),_.d(_.iF,{data:function(){return N.data().infoButton}},{buttonViewModel:_.Pu}),_.d(_.iF,{data:function(){return N.data().expandButton}},{buttonViewModel:function(t){return _.d(_.Pu,{data:t.data,
onClick:function(){var O;(O=N.expandedCallback)==null||O.call(N,!0)}})}})))},"sg");_.KDz=_.q(function(N){var t=_.D(_.Gb(function(){return N.data().initiallyExpanded})),O=t.next().value,H=t.next().value,A,Z=(A=_.cY().resolve(_.BY(_.WV)))==null?void 0:A(),U=function(){var C=N.data().colorData;
if(C)return Z?C==null?void 0:C.darkColorPalette:C==null?void 0:C.lightColorPalette};
return _.d("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.FM({"background-color":function(){var C=U();return(C==null?0:C.section2Color)?_.TV(C.section2Color):""}})},_.d(_.iF,{data:function(){return N.data().header}},{expandableMetadataHeaderViewModel:function(C){return _.d(UCn,{data:C.data,
expanded:function(){return!!O()},
expandedCallback:function(F){H(F)}})}}),_.d(_.y,{cond:function(){return O()},
then:function(){return _.d("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.d(_.iF,{data:function(){return N.data().expandedContent}},{horizontalShelfViewModel:function(C){return _.d(_.uY,{data:C.data,
includeMargin:!0,forceNarrowLayout:!0,palette:U})},
videoSummaryContentViewModel:function(C){return _.d(VvR,{data:C.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(C){return _.d(_.IR,{data:C.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(C){return _.d(_.$b0,{data:C.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.d(_.iF,{data:function(){return N.data().expandedBottomButtons}},{buttonViewModel:function(C){return _.d("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.d(_.Pu,{data:C.data}))}}))}}))},"tg");var FD5=_.q(function(N){var t=N.text;var O=N.marqueeSpacing;var H=N.scrollDelay;var A=N.scrollDuration;var Z=N.enableMarqueeScroll;N=N.large;var U=_.D(_.b$(!1,void 0,"WyNYFf")),C=U.next().value,F=U.next().value,g=_.D(_.b$(0,void 0,"OoTdhe"));U=g.next().value;var B=g.next().value,c=_.Fy("marquee-scroll");g=_.Fy("div");var u=_.Fy("span"),S=_.cY().resolve(_.I_);_.rp(function(){if(Z()){var w=u.value.getBoundingClientRect().width,P=c.value.getBoundingClientRect().width;if(w>P){var x=(S==="ltr"?-1:1)*(w+
(O?O():16));Promise.resolve().then(function(){F(!0);B(x)})}}},"dv0Anf");
var b={},z={};return _.d("marquee-scroll",{class:_.V7("ytMarqueeScrollHost",(b.ytMarqueeScrollHostLarge=N,b)),el:c},_.d("div",{id:"marquee-scroll-inner-container",class:_.V7("ytMarqueeScrollInnerContainer",(z.ytMarqueeScrollAnimationEnabled=function(){return C()},z)),
el:g,style:_.FM({gap:O?(0,_.yg)(O):"16px","animation-duration":A?FmZ(A):"16s","animation-delay":H?FmZ(H):"3s","--marquee-translate":(0,_.yg)(U)})},_.d("span",{el:u,dir:"auto"},_.d(_.cu,{text:t,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.d(_.y,{cond:C,then:function(){return _.d("span",{"aria-hidden":"true",dir:"auto"},_.d(_.cu,{text:t,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"vg");_.dC1=_.q(function(N){var t=N.data;var O=N.overlayDensity;N=_.Ui(function(){t().onTapCommand&&_.xJ(t().onTapCommand);return!1});
var H=_.xxv(),A=function(){return(O==null?void 0:O())===1?22:16},Z={};
return _.d("reel-sound-metadata-view-model",{class:_.V7("ytReelSoundMetadataViewModelHost",(Z.ytReelSoundMetadataViewModelHostLarge=function(){return(O==null?void 0:O())===1},Z)),
"on:click":N,tabindex:0,role:"button","on:keydown":H},_.d("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.d(_.y,{cond:function(){return t().musicIcon},
then:function(U){return _.d(_.Qt,{data:U,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:A})}}),_.d("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.d(FD5,{text:function(){return t().soundMetadata},
enableMarqueeScroll:function(){return!!t().enableMarqueeScroll},
large:function(){return(O==null?void 0:O())===1}}))))},"wg");var glf,yOm,z$,jom,uN5,$Cm,MT1,hg5;glf=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];yOm=_.uP("wil_icon_max_concurrent_fetches",Infinity);
z$=function(N,t,O){var H=this;this.iconSet=N;this.appDirection=t;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.H4.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.h("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.h("wil_icon_network_first");this.renderWhenIdle=_.h("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.h("wil_icon_load_immediately");this.isPurging=!1;N=function(){H.cacheStorageAvailable&&(H.cacheStorageAsync=_.H4.caches.open("yt-icons").then(function(Z){return H.cacheStorageSync=Z}).catch(function(){H.cacheStorageAvailable=!1}))};
O=(O==null?void 0:O())||{};O=_.D(Object.entries(O));for(t=O.next();!t.done;t=O.next()){var A=_.D(t.value);t=A.next().value;A=A.next().value;A=wu(A);BuO(A);this.iconCache[t]=A.cloneNode(!0)}this.isPurging=cOx(this);this.isPurging instanceof Promise?this.isPurging.then(N):N()};
_.xvy=function(N,t){var O=N.resolveIcon(t);return O?N.renderingMode===1?$Cm(N,O,N.renderingMode):(t=N.iconCache[O.url])?(t=t.cloneNode(!0),jom(N,t),$Cm(N,O,N.renderingMode,t)):_.iL1(N,O).then(function(H){var A=H?0:1;jom(N,H);return $Cm(N,O,A,H)}):(_.vX(new _.fF("Icon not found",{iconShape:t})),function(){})};
jom=function(N,t){if(t){N.counter+=1;N="_yt"+N.counter;t=[t].concat(_.W6(t.getElementsByTagName("*")));t=_.D(t);for(var O=t.next();!O.done;O=t.next())if(O=O.value,O.tagName==="style"&&O.textContent)O.textContent=uN5(O.textContent,N,!0);else for(var H=_.D(O.attributes),A=H.next();!A.done;A=H.next()){A=A.value;A.name==="id"&&(A.value+=N);["mask","fill","clip-path"].includes(A.name)&&(A.value=uN5(A.value,N));if(A.name==="style"){var Z=O.style;try{Z.cssText=uN5(Z.cssText,N,!0)}catch(B){var U=void 0,C=
void 0,F=void 0,g=void 0;YB({error:((U=B)==null?void 0:(F=(C=U).toString)==null?void 0:F.call(C))||"",el:O.outerHTML,style:!!Z,cssText:(g=Z)==null?void 0:g.cssText})}}A.name==="xlink:href"&&(A.value=A.value.replace(/#(.*)/,"#$1"+N))}}};
uN5=function(N,t,O){var H=/url\(["']?#(.*?)["']?\)/;(O===void 0?0:O)&&(H=/url\(["']?#(.*?)["']?\)/g);return N.replace(H,"url(#$1"+t+")")};
$Cm=function(N,t,O,H){return function(A,Z){var U;var C=Object.assign({},{iconWidth:t.size+"px",iconHeight:t.size+"px",iconDisplay:"block"},Z,{iconColor:(U=Z==null?void 0:Z.iconColor)!=null?U:"currentcolor"});U=_.Tu("DIV");Z=C.iconColor;var F=C.iconFilter;C="width: "+C.iconWidth+"; height: "+C.iconHeight+"; display: "+C.iconDisplay+";";F&&(C+=" filter: "+F+";");O===0&&(C+=" fill: "+Z+";");O===1&&(F=t.url,C+=" -webkit-mask: url("+F+") no-repeat center / cover; mask: url("+(F+") no-repeat center / cover; background-color: ")+
Z);t.allowMirroring&&N.appDirection==="rtl"&&(C+=" transform: scale(-1, 1); transform-origin: center center;");U.setAttribute("style",C);O===0&&H&&U.appendChild(H);A.appendChild(U)}};
_.iL1=function(N,t){var O,H,A;return _.K(function(Z){O=function(U){return JR(U)};
H=t.url;if(!S25(H))throw Error("xj");A=hg5(N,H);return Z.return(A.then(function(U){return U.clone().text()}).then(function(U){var C=O(U);
U=t.size;var F=_.Tu("DIV");_.CU(F,C);C=_.wb(F.firstElementChild!==void 0?F.firstElementChild:_.LqQ(F.firstChild,!0));U=BuO(C,U);N.iconCache[H]=U.cloneNode(!0);delete N.responsePromises[H];return U}).catch(function(){}))})};
MT1=function(N){var t,O=(t=N.requestAninmationFrameResolver)==null?void 0:t.promise;O||(N.requestAninmationFrameResolver=new _.CT,O=N.requestAninmationFrameResolver.promise,_.H4.requestAnimationFrame(function(){var H;(H=N.requestAninmationFrameResolver)==null||H.resolve();N.requestAninmationFrameResolver=null}));
return O};
hg5=function(N,t){var O,H;return _.K(function(A){if(A.nextAddress==1)return N.waitForAnimationFrame?A.yield(MT1(N),2):A.jumpTo(2);O=N.responsePromises[t];O||(H=function(){var Z,U,C;return _.K(function(F){switch(F.nextAddress){case 1:if(!N.cacheStorageAvailable){Z=void 0;F.jumpTo(2);break}if(U=N.cacheStorageSync){F.jumpTo(3);break}return F.yield(N.cacheStorageAsync,4);case 4:U=F.yieldResult;case 3:Z=U;case 2:return C=Z,N.isNetworkFirstStrategy?F.return(N.fetchAndUpdateCache(t,C).catch(N.getCacheStorageResponse.bind(N,
t,C))):F.return(N.getCacheStorageResponse(t,C).catch(N.fetchAndUpdateCache.bind(N,t,C)))}})},O=N.renderWhenIdle?new Promise(function(Z,U){_.WX(_.GB,function(){H().then(Z).catch(U)},10)}):H(),N.responsePromises[t]=O);
return A.return(O.catch(function(Z){delete N.responsePromises[t];YB({error:(Z==null?0:Z.toString)?Z.toString():"",url:t});throw Z;}))})};
z$.prototype.fetchAndUpdateCache=function(N,t){var O=this;return _.K(function(H){return H.return(bL5(O,N).then(function(A){pZx(O,N,A,t);return A}))})};
var bL5=function(N,t){var O;return _.K(function(H){if(N.numFetches<yOm)return N.numFetches+=1,H.return(LDm(N,t).finally(function(){--N.numFetches;if(Object.keys(N.queuedResponseResolvers).length){var A=Object.keys(N.queuedResponseResolvers)[0],Z=N.queuedResponseResolvers[A];delete N.queuedResponseResolvers[A];Z.resolve(bL5(N,A))}}));
O=new _.CT;N.queuedResponseResolvers[t]=O;return H.return(O.promise)})},LDm=function(N,t,O){O=O===void 0?2:O;
var H;return _.K(function(A){H={credentials:"same-origin",priority:"low"};return A.return(_.H4.fetch(t,H).then(function(Z){return Z.ok?Z:Promise.reject(Error("yj`"+Z.status+"`"+Z.statusText))}).catch(function(Z){if(O>0)return LDm(N,t,O-1);
throw Z;}))})},pZx=function(N,t,O,H){_.K(function(A){return H?A.return(new Promise(function(Z){_.WX(_.GB,function(){var U,C;
return _.K(function(F){switch(F.nextAddress){case 1:if(!N.isNetworkFirstStrategy){U=void 0;F.jumpTo(2);break}return F.yield(H.match(t).catch(function(){}),3);
case 3:U=F.yieldResult;case 2:if(C=U){F.jumpTo(4);break}return F.yield(H.put(t,O.clone()).catch(function(g){YB({error:(g==null?0:g.toString)?g.toString():"",url:t})}),4);
case 4:Z(),_.Ty(F)}})},50)})):A.return()})};
z$.prototype.getCacheStorageResponse=function(N,t){return _.K(function(O){return t?O.return(t.match(N).then(function(H){return H&&H.ok?H:Promise.reject()})):O.return(Promise.reject())})};
var BuO=function(N,t){t===void 0||N.getAttribute("viewBox")||N.setAttribute("viewBox","0 0 "+t+" "+t);N.setAttribute("focusable","false");N.setAttribute("aria-hidden","true");t=_.h("killswitch_remove_icon_fill_color");N.getAttribute("fill")!=="currentcolor"&&N.getAttribute("fill")!=="currentColor"||t||N.removeAttribute("fill");try{N.style.pointerEvents="none",N.style.display="inherit",N.style.width="100%",N.style.height="100%"}catch(A){var O;YB({error:((O=A)==null?0:O.toString)?A.toString():""});
try{N.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(Z){var H;YB({error:((H=Z)==null?0:H.toString)?Z.toString():""})}}return N},S25=function(N){for(var t=_.D(glf),O=t.next();!O.done;O=t.next())if(N.startsWith(O.value)&&N.endsWith(".svg"))return!0;
return!1};
z$.prototype.resolveIcon=function(N){return this.iconSet.resolveIcon(N)};
var YB=function(N){_.J_(new _.fF("Error in IconManager",N))},cOx=function(N){if(_.h("wil_icons_cache_purge_killswitch"))return!1;
try{var t=_.H4.localStorage}catch(Z){return!1}if(!t||!N.cacheStorageAvailable)return!1;var O=function(Z){try{var U;(U=t)==null||U.setItem("yt-icons-last-purged",Z.toString())}catch(F){var C;YB({error:((C=F)==null?0:C.toString)?F.toString():""})}},H=Number(t.getItem("yt-icons-last-purged"));
if(!H)return H=new Date,H=H.setDate(H.getDate()-Math.floor(Math.random()*90+1)),O(H),!1;if(function(Z,U){Z=new Date(Z);U=new Date(U);return U.getMonth()-Z.getMonth()+12*(U.getFullYear()-Z.getFullYear())}(H,Date.now())<3)return!1;
try{return _.H4.caches.delete("yt-icons").then(function(Z){Z&&O(Date.now());return Z}).catch(function(){return!1}).finally(function(){N.isPurging=!1})}catch(Z){var A;
YB({error:((A=Z)==null?0:A.toString)?Z.toString():""});return!1}};
z$[$v]=[mo1,_.I_,_.BY(RUm)];_.aY=function(N,t){this.iconManager=N;this.iconsToFetch=t};
_.aY[$v]=[_.D5,_.BY(Gyn)];var zgr=function(){};var Y25=function(N,t,O){this.requestKey=N;this.pLK=t;this.yTR=O;this.odT=function(){return new XMLHttpRequest};
this.yzs=void 0;this.cLd=[]};
Y25.prototype.getLatestChallengeResponse=function(){return this.yTR};
var a9f=function(N,t,O){var H,A,Z,U;return _.K(function(C){if(C.nextAddress==1){_.LJ("attestation_challenge_fetch");_.zT("att_fs",void 0,"attestation_challenge_fetch");if(!N.yzs)throw new _.WG(9,"Missing fetcher");return C.yield(N.yzs(t,O),2)}H=C.yieldResult;Z=(A=H)==null?void 0:A.bgChallenge;if(!Z)throw new _.WG(15,"Missing field");N.yTR=H;N.cLd.forEach(function(F){F(H)});
U=lMy(Z);_.zT("att_fc",void 0,"attestation_challenge_fetch");pJ("attestation_challenge_fetch");return C.return(U)})},ovR=function(N,t){var O,H,A,Z,U;
return _.K(function(C){switch(C.nextAddress){case 1:O=new hI(100,3E5,.25,2),H=void 0;case 2:if(!(O.currBackoffCount_<10)){C.jumpTo(4);break}_.Mo(C,5);if(!(O.currBackoffCount_>0)){C.jumpTo(7);break}return C.yield(czQ(O.getValue()),7);case 7:return C.yield(atn(N,t),9);case 9:return A=C.yieldResult,C.return(A);case 5:Z=_.ax(C);Z instanceof _.WG?H=Z:(U=Z instanceof Error?Z.message:"Unknown",H=new _.WG(9,U));nMp(O);C.jumpTo(2);break;case 4:if(H)throw H;throw new _.WG(9,"Unknown error");}})},atn=function(N,
t){t=jDX(iFE(new $HR,t),N.requestKey);
var O=new _.CT,H=N.odT();H.open("POST",N.pLK);H.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");H.setRequestHeader("Content-Type","application/json+protobuf");H.onload=function(){if(_.VbO(H)){var A=zAX(H.responseText);O.resolve(A)}else O.reject(new _.WG(_.KYQ(_.bP(H)),H.statusText))};
H.onerror=function(){O.reject(new _.WG(_.KYQ(_.bP(H)),H.statusText))};
H.send(t.serialize());return O.promise};var wZ1=function(N){this.networkStatusManager=N;this.isDownloaded=RYS===void 0?function(){return!1}:RYS;
this.isReady=!1;this.mH6=Tuz(this)},Tuz=function(N){var t;
return _.K(function(O){if(O.nextAddress==1)return O.yield(ltM(),2);if(O.nextAddress!=3)return t=O.yieldResult,O.yield(Ilr(t),3);N.vV=O.yieldResult;jVp(N.vV).then(function(){N.isReady=!0});
return O.return(N.vV)})},egz=function(N,t,O){N.vV?(N=N.vV.wWC({iF:O,
uZs:!0,aTR:!0}),t.serviceIntegrityDimensions={poToken:N}):_.R0(Error("Aj"))};
wZ1.prototype.processContext=function(N){var t=this;if(!N.input.match(_.JB(ETr)))return _.bA();var O=N.innerTubeRequest,H=O.videoId;return!H||this.isDownloaded(O)||this.networkStatusManager&&!this.vV&&!this.networkStatusManager.isNetworkAvailable()||_.h("webpo_exit_on_net_err")&&!this.vV&&(window.bgens===1||window.bgens===3)?_.bA():this.vV?this.isReady?(egz(this,O,H),_.bA()):new Mc(jVp(this.vV).then(function(){egz(t,O,H)})):new Mc(this.mH6.then(function(A){return _.K(function(Z){if(Z.nextAddress==
1)return Z.yield(jVp(A),2);
egz(t,O,H);_.Ty(Z)})}))};var Pfr=new _.dk("WEB_PO_CONTEXT_PROCESSOR");var XZ1=function(N,t){var O=this;this.lY5=0;var H;this.kII=(H=t==null?void 0:t.kII)!=null?H:window;this.networkStatusManagerPromise=t==null?void 0:t.networkStatusManagerPromise;var A;this.requestKey=(A=t==null?void 0:t.requestKey)!=null?A:_.So("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var Z;this.qol=(Z=t==null?void 0:t.qol)!=null?Z:function(F){return new Gk(F)};
var U;H=(U=t==null?void 0:t.uxr)!=null?U:function(F,g,B){return new Y25(F,g,B)};
this.bgChallenge=lMy(N.bgChallenge);this.ttlSeconds=Qm9(IE(N.challenge||""));this.iM=H(this.requestKey,_.h("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.H4.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",N);this.mCd=t==null?void 0:t.mCd;$t9(this.iM);var C;this.eEd=(C=t==null?void 0:t.eEd)!=null?C:function(F){_.SF(O.kII.document,"visibilitychange",
function(){O.kII.document.visibilityState==="visible"&&F()})}},kmO=function(N){if(!N.vm){var t={maxAttempts:5,
sus:N.ttlSeconds*1E3};iHg(N.kII);N.vm=N.qol({iM:N.iM,eOu:{disable:_.h("html5_web_po_disable_remote_logging"),so:"aGIf",kKY:tb4("html5_web_po_experiment_ids"),wWf:_.h("wpo_dis_lfdms")?0:1E3,mYE:function(H){var A=J9S.get(H);A||(A=new v4_(H),A=new zu(A),J9S.set(H,A));return A}},
qnu:t,iFt:N.bgChallenge,rOY:uhO});N.lY5=Date.now();bFr(N.vm,function(){N.lY5=Date.now()});
Gmv(N.vm,function(){return _.K(function(H){return H.return(xC1(N))})});
var O=N.aRW.bind(N);N.networkStatusManagerPromise&&N.ttlSeconds>0&&N.networkStatusManagerPromise.then(function(H){H.listen("publicytnetworkstatus-online",O)});
N.eEd(O)}};
XZ1.prototype.aRW=function(){if(Date.now()>this.lY5+this.ttlSeconds*1E3){var N;(N=this.vm)==null||Moa(N)}};
var xC1=function(N){if(N.bpO)return N.bpO;if(!N.vm)throw Error("Bj");N.bpO=new o7({vm:N.vm,iM:N.iM,sOO:!0,onError:uhO,qnu:N.mCd});return N.bpO},hlg=function(N,t){N=new XZ1(N,t);
kmO(N);(t==null?0:t.yq6)||xC1(N)};var q21=_.cJm.ephemeralActionSelector,T$=function(N,t){this.store=N;this.queue=[];t==null||t.addEventListener("yt-navigate-start",this.reset.bind(this))};
T$.prototype.enqueue=function(N){var t=N.command,O=N.durationMs,H=N.elementToFocus;var A=N.label;var Z=N.elementToFocus;N.command?A=_.CJ("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:A,shortcut:_.CJ("SHIFT_PLUS_ENTER")}):Z&&(N=A+". "+_.CJ("SHIFT_PLUS_ENTER")+" for more information.",A=_.CJ("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:A,shortcut:_.CJ("SHIFT_PLUS_ENTER")},N));O={announcement:A,durationMs:O!=null?O:8E3};t?O.command=t:H&&(H.classList.add("ephemeral-action-focusable-element"),O.selector=H.tagName+
".ephemeral-action-focusable-element");this.queue.push(O);ftm(this)};
T$.prototype.activate=function(N){var t=q21(this.store.getState());if(t){if(t==null?0:t.command)_.eF(t.command),this.store.dispatch(I1u(null));if(t==null?0:t.selector)t=document.querySelector(t.selector),_.mHp(t);N.preventDefault()}};
var ftm=function(N){if(!q21(N.store.getState())&&N.queue.length){var t=N.queue.shift();t&&(N.previousAnnouncement===t.announcement&&(t.announcement+="\u00a0"),N.store.dispatch(I1u(t)),N.previousAnnouncement=t.announcement,N.timeoutId=setTimeout(function(){if(t.selector){var O;(O=document.querySelector(t.selector))==null||O.classList.remove("ephemeral-action-focusable-element")}N.store.dispatch(I1u(null));ftm(N)},t.durationMs))}};
T$.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(I1u(null));this.queue.length=0;this.timeoutId=void 0};
T$[$v]=[_.VT,_.BY(_.lI)];_.w2=new _.dk("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var nlz=new _.dk("AUTH_SERVICE_TOKEN");var p39=_.mp(["about:blank"]),bHg;var WD1=new _.dk("API_IFRAME_TOKEN"),rOf=new _.dk("FETCH_FN_TOKEN"),Itq=new _.dk("WINDOW_REQUEST_TOKEN"),lt5=new _.dk("TEXT_DECODER_TOKEN");var Trp;Trp=new _.dk("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Qo5=new _.dk("MISC_UI_SHARED_FLAGS_TOKEN");var mCq=function(){};
mCq.prototype.getFlag=function(N){if(N.configType!==2)throw Error("Cj");return Elm(N)};
var Elm=function(N){switch(N.flagType){case "bool":return _.h(N.flagName);case "int":return _.kX(_.uP(N.flagName));case "double":return _.uP(N.flagName);case "string":return _.So(N.flagName);case "int32_list":return tb4(N.flagName);case "int64_list":return tb4(N.flagName).map(function(t){return _.kX(t)});
case "string_list":return _.MH(N.flagName);default:throw Error("Dj");}};var ex=function(N,t,O){t=t===void 0?{}:t;Et.call(this,O===void 0?"uninitialized":O);this.env=N;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];t.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=t.shouldWaitOnAsyncImmediate)};
_.p(ex,Et);ex.prototype.init=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?H.yield(N(t.env),2):(N(t.env),H.jumpTo(2));if(H.nextAddress!=4)return t.jobSet?H.yield(t.jobSet.completedResolver.promise,4):H.jumpTo(4);O=_.iI();O.parkOrScheduleJob(function(){t.transition("rendering")},10,"ci");
_.Ty(H)})};
ex.prototype.initialRender=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?H.yield(N(t.env),2):(N(t.env),H.jumpTo(2));if(H.nextAddress!=4)return t.jobSet?H.yield(t.jobSet.completedResolver.promise,4):H.jumpTo(4);O=_.iI();O.parkOrScheduleJob(function(){t.transition("rendered")},10,"cr");
_.Ty(H)})};
ex.prototype.afterRenderImmediate=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?H.yield(N(t.env),2):(N(t.env),H.jumpTo(2));if(H.nextAddress!=4)return t.jobSet?H.yield(t.jobSet.completedResolver.promise,4):H.jumpTo(4);O=_.iI();O.parkOrScheduleJob(function(){t.transition("after-render-deferred")},10,"carml");
_.Ty(H)})};
ex.prototype.afterRenderDeferred=function(N){var t=this;return _.K(function(O){N(t.env);_.Ty(O)})};_.Gm("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var GmO={},RgJ=(GmO.rendered={priority:0,callback:function(N){Fd0(N.injector.resolve(ra))}},GmO);var bW4=new _.dk("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),vli=new _.dk("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var JOx=function(N){this.callbackFnMap=N;this.configMap={}};
JOx.prototype.handleResponse=function(N){var t;if(N=(t=N.responseContext)==null?void 0:t.serviceTrackingParams)for(t=_.D(N),N=t.next();!N.done;N=t.next()){N=N.value;var O=N.params,H=N.service;if(O&&H){this.configMap[H]||(this.configMap[H]=new i30);N=this.configMap[H];var A=void 0,Z=(A=this.callbackFnMap)==null?void 0:A[H];O=_.D(O);for(H=O.next();!H.done;H=O.next())A=H.value,H=A.key,A=A.value,H&&A&&(N.set(H,A),Z&&Z(H,A))}}};
JOx.prototype.getConfig=function(N){return this.configMap[N]||void 0};
JOx[$v]=[_.BY(vli)];var olx=!1,k0v=0,elv=null,xt9=null;var so5=new _.dk("NETWORK_SLI_TOKEN");var NEi=function(N){this.networkSli=N};
NEi.prototype.fetch=function(N,t,O){var H=this,A;return _.K(function(Z){A=tom(H,N,t);return Z.return(fetch(A).then(function(U){return H.handleResponse(U,O)}).catch(function(U){_.J_(U);
if((O==null?0:O.expectJsonStrict)&&U instanceof vt&&U.errorType===1)return Promise.reject(U)}))})};
var wO0=function(N,t,O,H){var A,Z,U,C,F,g,B;return _.K(function(c){switch(c.nextAddress){case 1:return A=tom(N,t,O),_.Mo(c,2),c.yield(fetch(A),4);case 4:Z=c.yieldResult;_.Do(c,3);break;case 2:throw _.ax(c),new vt(2,"Failed to parse streaming response",A.url);case 3:if(!Z.redirected&&!Z.ok)throw(U=N.networkSli)==null||U.failure(),new _.fF("Streaming fetch request not ok",A.url);if(!Z.body)throw new _.fF("No response body in streaming response",A.url);C={};if(_.h("web_streaming_fast"))return F=Z.body.getReader(),
c.return(OF1(N,F,C,H));g=Z.body.pipeThrough(new TextDecoderStream).getReader();B=new _.bD;return c.return(HFm(N,g,B,CZO,C,H))}})},tom=function(N,t,O){if(N.networkSli){var H=_.Yv(_.El(t,"key"))||"/UNKNOWN_PATH";
N.networkSli.start(H)}N=O;_.h("wug_networking_gzip_request")&&(N=dfx(O));return new window.Request(t,N)},OF1=function(N,t,O,H){var A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E,J,CN,B4,zM,jy,c4,XO,kx,fN,gf,yr,sS;
return _.K(function($X){switch($X.nextAddress){case 1:A=new TextDecoder("utf-8"),Z=[],C=U=0,_.Mo($X,2,3);case 5:return $X.yield(t.read(),8);case 8:F=$X.yieldResult;g=F.value;if(B=F.done){c=0;if(Z.length>U)for(c=Z[U].length-C,u=U+1;u<Z.length;u++)c+=Z[u].length;c>0&&(S=qEQ(Z,c,U,C),b=S.indexOf(123),z=S.lastIndexOf(125),b!==-1&&z!==-1&&z>b&&(w=S.subarray(b,z+1),P=JSON.parse(A.decode(w)),CZO(O,P),x=void 0,(x=H)==null||x(O,P)));l=void 0;(l=N.networkSli)==null||l.success();return $X.return(O)}Z.push(g);
I=U;for(r=C;I<Z.length;)if(E=Z[I],J=E.indexOf(10,r),J===-1){if(I===Z.length-1)break;I++;r=0}else{CN=I;B4=J+1;zM=0;if(U===CN)zM=B4-C;else{zM=Z[U].length-C;for(jy=U+1;jy<CN;jy++)zM+=Z[jy].length;zM+=B4}c4=qEQ(Z,zM,U,C,CN,B4);XO=c4.indexOf(123);kx=c4.lastIndexOf(125);if(XO!==-1&&kx!==-1&&kx>XO){fN=c4.subarray(XO,kx+1);try{gf=JSON.parse(A.decode(fN)),CZO(O,gf),yr=void 0,(yr=H)==null||yr(O,gf)}catch(pR){throw new vt(1,"Failed to parse streaming response object",A.decode(fN));}}U=I;r=C=J+1;C===E.length&&
(U++,C=0,I=U,r=0)}$X.jumpTo(5);break;case 3:_.pU($X);t.releaseLock();_.YC($X,0);break;case 2:sS=_.ax($X);if(sS instanceof vt)throw sS;throw new vt(1,"Failed to process streaming response");}})},HFm=function(N,t,O,H,A,Z){var U,C,F,g,B,c,u,S,b;
return _.K(function(z){if(z.nextAddress==1)return z.yield(t.read(),2);U=z.yieldResult;C=U.value;if(F=U.done)return(g=N.networkSli)==null||g.success(),z.return(A);try{B=O.parse(C)}catch(w){throw new vt(1,"Failed to parse streaming response",C);}if(B!=null)for(c=_.D(B),u=c.next();!u.done;u=c.next())S=u.value,H(A,S),b=void 0,(b=Z)==null||b(A,S);return z.return(HFm(N,t,O,H,A,Z))})};
NEi.prototype.handleResponse=function(N,t){var O=N.text().then(function(H){if((t==null?0:t.jspbResponseCtor)&&N.ok)return Rrg(t.jspbResponseCtor,H);H=H.replace(")]}'","");if((t==null?0:t.expectJsonStrict)&&H)try{var A=JSON.parse(H)}catch(U){throw new vt(1,"JSON parsing failed after fetch");}var Z;return(Z=A)!=null?Z:JSON.parse(H)});
N.redirected||N.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),O=O.then(function(H){_.J_(new _.fF("Error: API fetch failed",N.status,N.url,H));return Object.assign({},H,{errorMetadata:{status:N.status}})}));
return O};
NEi[$v]=[_.BY(so5)];var Aen=new _.dk("NETWORK_MANAGER_TOKEN");var ZFn=[1,2,4,8,16,30],DHn=function(N){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=N.maxTimeMs;this.maxFrameCount=N.maxFrameCount===void 0?Math.ceil(60*N.maxTimeMs/1E3):N.maxFrameCount;N=_.D(ZFn);for(var t=N.next();!t.done;t=N.next())this.brokenFrameSummarizers.push(new Vo5(t.value/60*1E3))},UH5=function(N){var t=N.frameCountInternal>=N.maxFrameCount;
return N.elapsedTimeMs>=N.maxTimeMs||t};
DHn.prototype.summarize=function(){for(var N=[],t=_.D(this.brokenFrameSummarizers),O=t.next();!O.done;O=t.next())O=O.value,O=O.brokenFrameCount!==0?{severityMs:Math.round(O.targetFrameTimeMs),eventCount:O.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(O.averageDurationBetweenEventsMs)}:void 0,O&&N.push(O);return{summaries:N,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.cv.Object.defineProperties(DHn.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 Vo5=function(N){this.targetFrameTimeMs=N;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.cv.Object.defineProperties(Vo5.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var CPx=function(){};
CPx.prototype.start=function(N,t){var O=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var H=new DHn({maxTimeMs:N});this.monitor=H;this.lastSummaryInternal=void 0;this.metadataToLog=t;return new Promise(function(A){var Z=function(U){if(U===void 0)O.stop(),A(void 0);else if(O.monitor!==H)U=Object.assign({},H.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),A(U);else{var C=O.monitor;if(!UH5(C)){C.frameCountInternal++;if(C.prevTime===
void 0)C.startTime=U;else for(var F=U-C.prevTime,g=_.D(C.brokenFrameSummarizers),B=g.next();!B.done;B=g.next()){B=B.value;var c=B.currTimeMs;B.currTimeMs+=F;F>B.targetFrameTimeMs+2&&(B.brokenFrameCount++,B.timeOfFirstBrokenFrameMs===void 0&&(B.timeOfFirstBrokenFrameMs=c),B.timeOfLastBrokenFrameMs=c)}C.prevTime=U}UH5(O.monitor)?A(O.stop()):_.GB.addJob(Z,5,0)}};
_.GB.addJob(Z,5,0)})};
CPx.prototype.stop=function(N){if(!this.monitor)return this.lastSummaryInternal;var t=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(t.monitoringDurationMs){N=N!=null?N:this.metadataToLog;var O={droppedFramesSummary:t,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};N&&(O[N.type]=N.data);_.E7("manualSmoothnessMeasurement",O)}this.monitor=void 0;this.lastSummaryInternal=t;this.metadataToLog=void 0;return t};_.KY1=new _.dk("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var FY1;FY1=function(N){this.JSC$18997_expiringStorage=new WY(N)};
_.dHO=function(N){if(_.ffy()&&(N=_.Iax(_.kv()+"::"+N)))return new FY1(N)};
FY1.prototype.set=function(N,t,O){O=O!==void 0?Date.now()+O:void 0;this.JSC$18997_expiringStorage.set(N,t,O)};
FY1.prototype.get=function(N){return this.JSC$18997_expiringStorage.get(N)};
FY1.prototype.remove=function(N){this.JSC$18997_expiringStorage.remove(N)};_.PE=function(){};
_.PE.getInstance=function(){var N=_.s2("ytglobal.storage_");N||(N=new _.PE,_.Ba("ytglobal.storage_",N));return N};
_.PE.prototype.estimate=function(){var N,t,O;return _.K(function(H){N=navigator;return((t=N.storage)==null?0:t.estimate)?H.return(N.storage.estimate()):((O=N.webkitTemporaryStorage)==null?0:O.queryUsageAndQuota)?H.return(nyS()):H.return()})};
_.Ba("ytglobal.storageClass_",_.PE);var Eyx=0;var NjN=!1;var gvx=_.mp(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),yem=_.mp(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var mwi={"/":_.vs,"/?feature=ytca":_.vs,"/feed/downloads":_.QW9};var BE5=jaz.continuationCommandSelector,c7=function(N,t,O){this.JSC$19013_upliftPromise=N;this.store=t;this.JSC$19013_persistentStorePromiseAccessor=O};
c7.prototype.shouldPreferLocalResponse=function(N){return N.browseId==="FEdownloads"||N.browseId==="FEsmart_downloads"&&_.h("kevlar_modern_downloads_page")?!0:!1};
c7.prototype.localInnertubeResponse=function(N){var t=this;return _.K(function(O){return N.browseId==="FEdownloads"?_.h("kevlar_modern_downloads_page")?O.return(ce5(t)):O.return($Hn(t)):N.browseId==="FEsmart_downloads"&&_.h("kevlar_modern_downloads_page")?O.return(jDr(t)):O.return(Promise.reject(Error("Fj")))})};
c7.prototype.canProvideFallbackResponse=function(){return!0};
c7.prototype.localFallbackInnertubeResponse=function(N){var t=this,O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:return Z.yield(t.JSC$19013_persistentStorePromiseAccessor(),2);case 2:O=Z.yieldResult;if(N.browseId!=="SPaccount_downloads"||!O){Z.jumpTo(3);break}return Z.yield(G3l(O),4);case 4:if(H=Z.yieldResult)return Z.return(_.N4(H));case 3:return N.browseId==="FEwhat_to_watch"?Z.return(iFJ(t)):(A=_.h("web_offline_continuation_automatic_retry")||_.h("web_offline_continuation_retry_button"))&&
N.continuation?Z.return(ue1(t)):Z.return(Syi(t))}})};
var iFJ=function(N){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(N.JSC$19013_upliftPromise,2);t=_.dFv(N.store.getState().entities);return t.length?O.return(he1(N,t)):O.return(Syi(N))})},$Hn=function(N){var t,O;
return _.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$19013_upliftPromise,2);if(H.nextAddress!=3)return t=Mo5([{offlineItemSectionRenderer:{}}]),H.yield(bFO(N,t),3);O=H.yieldResult;O.onResponseReceivedActions=[gv("REFRESH_DOWNLOADS")];return H.return(O)})},ce5=function(N){var t,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w;
return _.K(function(P){if(P.nextAddress==1)return P.yield(N.JSC$19013_upliftPromise,2);if(P.nextAddress!=3)return t=N.store.getState(),O=t.entities,H=_.LM(O),A=_.zv(O),Z=_.lTv(t),U=_.ITN(t),C=_.Qwz(t),F=_.BdN(O),g=_.u5(H),B=_.Yj(O),c=_.iDG(O),u=_.EOO(t),S=_.P5(t),b={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.VvN(H,A,F,c,Z,U,g,B,C,u,S),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},z="",_.h("kevlar_modern_downloads_skip_downloads_title")||
(z=_.CJ("DOWNLOADS",void 0,"Downloads")),P.yield(pYm(N,b,z),3);w=P.yieldResult;w.onResponseReceivedActions=[gv("REFRESH_DOWNLOADS")];return P.return(w)})},jDr=function(N){var t,O,H,A,Z,U,C,F,g;
return _.K(function(B){if(B.nextAddress==1)return B.yield(N.JSC$19013_upliftPromise,2);if(B.nextAddress!=3)return t=N.store.getState(),O=t.entities,H=_.LM(O),A=_.u5(H),Z=_.Yj(O),U={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.UiS(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},C=_.CJ("SMART_DOWNLOADS",void 0,"Smart downloads"),F=AMQ(A,Z),B.yield(pYm(N,U,C,F),3);g=B.yieldResult;g.onResponseReceivedActions=
[gv("REFRESH_DOWNLOADS")];return B.return(g)})},Syi=function(N){var t,O;
return _.K(function(H){if(H.nextAddress==1)return H.yield(s9(N.JSC$19013_upliftPromise,N.store),2);t=H.yieldResult;O=Mo5([lJx(t)]);return H.return(bFO(N,O))})},ue1=function(N){var t,O,H,A;
return _.K(function(Z){if(Z.nextAddress==1)return t={},O=BE5(N.store.getState()),_.LC(t,_.PH,O),Z.yield(s9(N.JSC$19013_upliftPromise,N.store,t,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);H=Z.yieldResult;A={};_.LC(A,_.nb_,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:H}}}],targetId:"browse-feedFEwhat_to_watch"});return Z.return({responseContext:{},onResponseReceivedActions:[A]})})},Mo5=function(N){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:N}}}}]}}},he1=function(N,t){var O,H;
return _.K(function(A){var Z={contents:yx(t)};O=Z&&Z.contents?Z:{};_.h("kevlar_modern_downloads_page")&&(O=Object.assign({},_.CHO(t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:O}}}]}};return A.return(bFO(N,H))})},bFO=function(N,t){var O,H;
return _.K(function(A){if(A.nextAddress==1)return A.yield(N.JSC$19013_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3)return O=A.yieldResult,A.yield(Al(O),3);H=A.yieldResult;return A.return({responseContext:{},contents:t,topbar:H})})},pYm=function(N,t,O,H){var A,Z;
return _.K(function(U){if(U.nextAddress==1)return U.yield(N.JSC$19013_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3)return A=U.yieldResult,U.yield(Al(A),3);Z=U.yieldResult;var C=U.return;var F=O;var g=H;F=F===void 0?"":F;g=g===void 0?"":g;F={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:F}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.CJ("SETTINGS",void 0,"Settings"),accessibilityText:_.CJ("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:_.oX("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:g}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:F};
return C.call(U,{responseContext:{},contents:t,topbar:Z,header:{pageHeaderRenderer:F}})})};var LYr=function(){this.moduleRegistry={};this.fetchCount=0};
LYr.prototype.isFetching=function(){return this.fetchCount>0};
var q4=function(N,t){N.moduleRegistry[t.toString()]={asyncId:t,isFetching:!1};return N};
LYr.prototype.JSC$19024_loadModules=function(){for(var N=this,t=new Map,O=[],H=_.D(_.E1.apply(0,arguments)),A=H.next();!A.done;A=H.next()){A=A.value;var Z=this.moduleRegistry[A];Z?Z.resolver?t.set(A,Z.resolver):(Z.resolver=new _.CT,t.set(A,Z.resolver),O.push(Z.asyncId),Z.isFetching=!0):(Z=new _.CT,t.set(A,Z),Z.resolve(void 0))}O.length&&(this.fetchCount+=1,_.fV(_.CX.getMultipleAsync.apply(_.CX,_.W6(O)).then(function(U){for(var C=0;C<O.length;C++){var F=U[C],g=N.moduleRegistry[O[C].toString()];g.isFetching=
!1;g.resolver.resolve(F)}}).catch(function(U){for(var C=_.D(O),F=C.next();!F.done;F=C.next()){F=F.value;
var g=N.moduleRegistry[F.toString()];g.resolver=void 0;g.isFetching=!1;t.get(F.toString()).reject(U)}}),function(){--N.fetchCount}));
return Promise.all([].concat(_.W6(t.values())).map(function(U){return U.promise}))};_.fS=new _.dk("MODULE_REGISTRY_TOKEN");var ze1={},Yyq=(ze1.rendered={priority:0,callback:function(N){a:{var t=void 0;try{var O;b:{if(_.fvg()){var H=_.lP(_.kv()+"::pom");if(H){var A=new Er(H);break b}}A=void 0}var Z=(O=A)==null?void 0:O.get("role_text");if(!Z)break a;t={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:Z}]}}}}}}catch(F){}t&&N.injector.resolve(_.jo).resolveCommand(t)}try{var U=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(U){var C=JSON.parse(U);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
C&&N.injector.resolve(_.jo).resolveCommand(C)}}catch(F){}}},ze1);var a9i,TEr={},wYm=(TEr.initialized={priority:10,callback:function(){a9i=pS()}},TEr.rendering={callback:function(N){var t;
return _.K(function(O){if(O.nextAddress==1)return O.yield(a9i,2);t=O.yieldResult;if(!t.endpoint)throw Error("Hj`"+_.H4.location.href);aC(N,t);_.Ty(O)})}},TEr);var ee1={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.W6(_.h("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(N){var t=N.stack;if(t.includes("chrome://")||t.includes("chrome-extension://")||N.message.includes("chrome-extension://")||t.includes("moz-extension://")||
t.includes("local.adguard.org")||t.includes("auctioneer3.50million.club")||t.includes("youtubedownloader")||t.includes("youtube_home_page")||t.includes("is_youtube_video_no_longer_available")||t.includes("switchScreenSizeHack")||t.includes("yt_main_big_banner.js")||t.includes("YouTubeCenter.js")||t.includes("/mytube.js")||t.includes("JSON.parseWrapper")||t.includes("/inj_js/common.js")||t.includes("firebug-lite")||t.includes(".repl.co/")||t.includes("linkfix")||t.includes("playAfterAd")||N.message.includes("Access is denied for this document")&&
t.includes("<anonymous>")||N.fileName==="user-script"||N.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&t.includes("<anonymous>"))return!0;if(t.includes("https://www.youtube.com"))return!1;N=t.split("\n");if(!N.length)return!1;if(N.length<=3&&t.includes("s.onloadeddata"))return!0;t=0;for(var O=_.D(N),H=O.next();!H.done;H=O.next())H=H.value,(H.includes("https://")||H.includes("http://"))&&t++;return t/N.length>.95},
weight:0},{callback:function(N){return N.message==="Unknown Error"&&N.name.indexOf("NS_")===0},
weight:100},{callback:function(N){if(!_.V_)return!1;var t=N.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||N.message.includes("available to complete this operation"),O=N.stack.includes("webcomponents")&&N.message==="Object doesn't support this action";N=N.message.includes("object that does not implement interface Element");return t||O||N},
weight:0},{callback:function(N){return N.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(N){return N.message==="Operation is not supported"&&(N.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(N){return N.stack.includes("eval code (eval (code:1:1)")||N.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(N){return N.message.includes("Permission denied")&&N.stack.includes("this.domHandler")?!0:N.name.includes("TypeError")&&N.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(N){if(!N.stack)return!1;var t=N.stack.trim().split("\n");t.length&&t[0].endsWith("Error: "+N.message)&&t.shift();t.length&&t[t.length-1].includes("at window.onerror (")&&t.pop();if(!t.length)return!0;if(N.message==="Script error.")return t[0].includes("www.youtube.com")||t.length>=2&&t[0].startsWith("at new")&&t[1].startsWith("at window.onerror");if(N.message==="Unexpected token")return!0;N=_.D(t);for(t=N.next();!t.done;t=N.next())if(t=t.value,!(t.includes("<anonymous>")||
t.startsWith("load@")||t.startsWith("global code@")||t.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(N){return N.message==="Cannot read property 'experiments'"&&N.stack.includes("/s/player/")},
weight:500},{callback:function(N){return N.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(N){return N.stack.includes("/embed.js")?(N.params&&N.params&&(N.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.h("use_error_suppression"))var N=_.Ro("SUPPRESS_CLIENT_ERRORS",!1);else{if(N=_.FA)N=/Chrome\/(\d+)/.exec(_.$x()),N=(N?parseFloat(N[1]):NaN)>=66;N=!(N||_.Kl&&_.Cl(65)||_.NV&&_.Cl(12.1)||gr&&_.Cl(79))}return N},
weight:500}]};var PPz={},XYf=(PPz.initialized={priority:10,callback:function(N){N.injector.addProvider({provide:M$0,useValue:N.root});N.injector.addProvider({provide:NpO,useValue:qiQ});N.injector.addProvider({provide:tGn,useValue:ee1});var t={};N.injector.addProvider((t.provide=Otq,t.useFactory=function(O,H){return function(){gUt(O,H)}},t[$v]=[NpO,
tGn],t));N.injector.addProvider({provide:QV,useClass:QV})}},PPz);var xH5={},kpq=(xH5.initialized={priority:3,callback:function(){var N;if(N=xpS()){N=N.replace("/",".");var t=_.d0();t.set("tz",N);t.save();N=!0}else N=!1;N||(N=_.d0(),N.set("utco",-Math.floor((new Date).getTimezoneOffset())),N.save())}},xH5);var qyO={},f9m=(qyO.initialized={priority:10,callback:function(N){N.injector.resolve(QV).start();N=_.rY();var t=_.vZ("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.vZ("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.vZ("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.vZ("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.FQ(_.M6y(),{mainAppWeb:Object.assign({},N,{pageType:t})});_.FQ(pb9(),{mainAppWeb:Object.assign({},N,{pageType:t})});
_.FQ(LTM(),{mainAppWeb:N});_.FQ(z8x(),{mainAppWeb:N});h7X(function(){_.dP(LTM(),"FAILURE");_.dP(z8x(),"FAILURE")});
yQp();Bjy();Ys9()}},qyO);var nvr={},WYf=(nvr.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.zT("dl"),_.iI().processSignal("pcl");else{var N=function(){_.zT("dl");_.iI().processSignal("pcl");window.removeEventListener("load",N)};
window.addEventListener("load",N)}}},nvr);var re5={},I9r=(re5.rendering={priority:0,callback:function(){var N=_.iI();N.parkOrScheduleJob(function(){N.processSignal("eocs")},10,"eor",5E3)}},re5);var l9q=function(){};
_.p(l9q,jQ);
l9q.prototype.resolveCommand=function(N,t){var O,H,A,Z,U,C,F,g;return _.K(function(B){A=(O=_.M(N,_.UFB))==null?void 0:(H=O.dialog)==null?void 0:H.commentReplyDialogRenderer;if(!A)throw new _.fF("No dialog in createCommentReplyDialogEndpoint");U=(Z=t.form)==null?void 0:Z.event;if(!U)throw new _.fF("Event not passed in when resolving command");C=_.D(U.composedPath());for(F=C.next();!F.done;F=C.next())if(g=F.value,g.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||g.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return g.showReplyDialog(A),B.return();
_.Ty(B)})};var XD=function(){};
_.p(XD,jQ);XD.prototype.resolveCommand=function(N){var t,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return t=_.M(N,i7Q),(O=t)!=null&&O.externalChannelId?U.yield((0,_.OiQ)("NSzT5"),2):U.return();H=_.QD5;Z=(A=t.forceInstall)!=null?A:!1;return U.yield(H(t.externalChannelId,Z),0)})};var xB=function(N){this.JSC$19042_pageRequestService=N;this.JSC$19042_prefetchCoordinator=W7J()};
_.p(xB,jQ);xB.prototype.resolveCommand=function(N){var t=this,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1){O=_.M(N,rPB);if((H=O)==null||!H.taskId)throw Error("Ij");A=O.taskId;_.Mo(U,2);return U.yield(_.Bbf(t.JSC$19042_pageRequestService,N,{},"").then(function(C){if(!C)throw Error("Jj");},function(C){throw Error("Kj`"+C);
}),4)}if(U.nextAddress!=2)return lli(t.JSC$19042_prefetchCoordinator,A),_.Do(U,0);
Z=_.ax(U);g2(t.JSC$19042_prefetchCoordinator,A,Z);_.Ty(U)})};
xB[$v]=[_.bl];var kB=function(N,t){this.innertubeTransportService=N;this.JSC$19046_commandHandler=t};
_.p(kB,jQ);kB.prototype.resolveCommand=function(N){var t=this,O,H,A;return _.K(function(Z){if(Z.nextAddress==1){O=_.M(N,WSQ);if(O.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||O.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")H=O.boolValue?2:1,_.Ta.getInstance().setState(H,!0,!0);return Z.yield(_.rq(t.innertubeTransportService,N),2)}A=Z.yieldResult;mHz(t,A);_.Ty(Z)})};
var mHz=function(N,t){t.actions&&t.actions.forEach(function(O){N.JSC$19046_commandHandler.resolveCommand(O)})};
kB[$v]=[_.Sc,_.jo];var q$={},f4=(q$.addToPlaylistEndpoint=Jb(L$),q$.addToToastAction=Jb(kd),q$.adsControlFlowOpportunityReceivedCommand=Jb(HP),q$.audioTrackSelectActionCommand=Jb(rB),q$.backgroundAudioPlaybackCommand=Jb(QY),q$.captionLanguageSelectActionCommand=Jb(mL),q$.captionPickerEndpoint=Jb(Em),q$.changeMiniAppPlayStateCommand=Jb(zo),q$.changeTimelyActionVisibilityCommand=Jb(xd),q$.channelCreationFormEndpoint=Jb(jh),q$.clearLocationCommand=Jb(MQ),q$.clearUrlParamCommand=Jb(YW),q$.copyLinkCommand=Jb(tt),q$.copyTextEndpoint=
Jb(C$),q$.createCommentReplyDialogEndpoint=zRx(l9q),q$.createPlaylistServiceEndpoint=Jb(OV),q$.dismissDialogEndpoint=Jb(To),q$.dismissPlayerOverlayCommand=Jb(Go),q$.entityUpdateCommand=Jb(F8),q$.feedbackEndpoint=Jb(yY),q$.getAnswerCommand=Jb(y4),q$.getPaymentsClientTokenCommand=Jb(rs),q$.getTranscriptEndpoint=Jb(qZ),q$.googlePaymentBillingCommand=Jb(IZ),q$.googlePaymentPurchaseManagerCommand=Jb(l6),q$.hideEngagementPanelEndpoint=Jb(wB),q$.hideSheetCommand=Jb(eh),q$.hideSnackbarCommand=Jb(Yd),q$.insertRichSectionCommand=
Jb(uB),q$.listMutationCommand=Jb(Sh),q$.logGtmCommand=Jb(iB),q$.notifyDropdownOptionSelectedCommand=Jb(at),q$.openAdAllowlistInstructionCommand=Jb(_.AK),q$.openOnePickAddVideoModalCommand=Jb(Ht),q$.persistSubscriptionsDisplayPreferencesCommand=Jb(CP),q$.pingingEndpoint=Jb(ZG),q$.playlistEditEndpoint=Jb(Z2),q$.playlistVotingRefreshPopupCommand=Jb(V4),q$.profileCardCommand=Jb(Om),q$.refreshPanelEndpoint=Jb(PP),q$.saveImageToDeviceEndpoint=Jb(K$),q$.scrollToSectionEndpoint=zRx(Tcm),q$.seekToVideoTimestampCommand=
Jb(Rt),q$.selectCountryCommand=Jb(KP),q$.setCookieCommand=Jb(FX),q$.setLocalStorageCommand=Jb(TY),q$.setPrefStorageEntryCommand=Jb(gs),q$.setSettingEndpoint=Jb(kB),q$.sfvAudioItemPlaybackCommand=Jb(vP),q$.shareImageCommand=Jb(Bt),q$.sharingProviderDataCommand=Jb(ct),q$.showAudioTrackPickerActionCommand=Jb(JK),q$.showCaptionLanguageSelectActionCommand=Jb(ot),q$.showCreatorChatbotEngagementPanelCommand=Jb(XD),q$.showDialogCommand=Jb(kW),q$.showEngagementPanelEndpoint=Jb(qQ),q$.showFullscreenPlayerControlsCommand=
Jb(sm),q$.showSheetCommand=Jb(f$),q$.showSnackbarCommand=Jb(aZ),q$.showTransientPlayerScrimOverlayCommand=Jb(NZ),q$.submitFormWithValidationFlowCommand=Jb($W),q$.talkToRecsDeselectCommand=Jb(ws),q$.talkToRecsNextCommand=Jb(eU),q$.talkToRecsSelectCommand=Jb(Pt),q$.talkToRecsUpdateTextCommand=Jb(XX),q$.toggleEngagementPanelCommand=Jb(n$),q$.undoFeedbackEndpoint=Jb(cP),q$.updateEngagementPanelContentCommand=Jb(WP),q$.updateUrlParamCommand=Jb(fP),q$.updateVideoMetadataCommand=Jb(Wt),q$.verifyCommand=
Jb(jh),q$.webNativeShareCommand=Jb($d),q$.webSubmitFormCommand=Jb(D2),q$.ACK_PLAYABLES_3P_DATA_CONSENT=Jb(jU),q$.CANCEL_NAVIGATION=Jb(i6),q$.COPY_SHARE_URL=Jb(u6),q$.MINI_APP_EXIT_DIALOG_SEEN=Jb(ht),q$.MINI_APP_OPEN_URL=Jb(SU),q$.REQUEST_MINI_APP_FULLSCREEN=Jb(MZ),q$.RESUME_NAVIGATION=Jb(b6),q$.SHARE_PLAYABLE_WITH_HIGH_SCORE=Jb(pP),q$.TELL_US_WHY=Jb(BP),q$);_.h("web_enable_prefetching_videos_on_home")&&(f4.prefetchWatchCommand=Jb(xB),f4.registerTasksCommand=Jb(BE));
_.h("enable_share_panel_navigation_logging_fix_on_web")&&(f4.shareEntityServiceEndpoint=Jb(X8));_.h("web_use_flow_state_manager")&&(f4.deleteFlowStepsCommand=Jb(Gs),f4.flowNextStepCommand=Jb(R9),f4.flowPrevStepCommand=Jb(vw),f4.getFlowCommand=Jb(J0),f4.updateFlowCommand=Jb(o9));_.h("enable_ai_companion")&&(f4.updateConversationIdCommand=Jb(Um),f4.formDataDecoratorCommand=Jb(DG));var sqE=Object.assign({},f4);var Ev1={},Gp5=(Ev1.initialized={priority:10,callback:uCG},Ev1);var Ref={},vvm=(Ref.initialized={callback:function(N){var t={},O={};sYy().install((t.document_disposed={callback:function(){_.h("finalize_all_timelines")?lct():Mp();PxG("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.cSx();var H=N.injector.resolve(QV);H.intervalId!==void 0&&(H.intervalId&&_.GB.cancelJob(H.intervalId),H.intervalId=void 0,--H.currentPartitionIndex,H=Cz0(H),H>0&&qsE({mainAppWeb:_.rY(),survivalSli:{partitionMinute:H,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));av0(S7);hc!=null&&
hc.flush();AG&&AG.snapshotAndFlush();H=_.D(J9S.values());for(var A=H.next();!A.done;A=H.next())A.value.snapshotAndFlush()}},t),(O.flush_logs={callback:function(){_.GW()}},O))}},Ref);var Jez={},ovn=(Jez.rendered={priority:0,callback:function(){var N=new UVQ;N.increment("STARTED");if(_.Ro("LOGGED_IN")&&!_.Ro("IS_DBSC",!1)&&_.Ro("SERVER_VERSION")!=="test"&&_.Ro("SERVER_VERSION")!=="dev"&&!moQ()&&!Qxa()){N.increment("EXECUTING");var t=document.createElement("iframe");t.style.display="none";_.tY(t,2,_.Id("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(t);N.increment("DONE")}}},
Jez);var sDm={},Nrf=(sDm.rendered={callback:function(){W7J().resume()}},sDm);var tgf={acknowledgeChannelTouStrikeCommand:XM(wU),addToPlaylistServiceEndpoint:XM(z7),addToPlaylistEndpoint:XM(z7),addUpcomingEventReminderEndpoint:XM(mU),browseEndpoint:XM(b15),channelCreationFormEndpoint:XM($z),channelCreationServiceEndpoint:XM(jX),claimLegacyYoutubeChannelEndpoint:XM(AU),clearSearchHistoryEndpoint:XM(fa),clearWatchHistoryEndpoint:XM(na),commerceActionCommand:xV(Rc),createBackstagePostEndpoint:XM(oZ),createBroadcastCommand:XM(EU),createCommentEndpoint:XM(gU),createCommentReplyEndpoint:XM(dU),
createLiveChatPollEndpoint:XM(GK),createPlaylistServiceEndpoint:XM(Yi),crossAccountChannelTransferEndpoint:XM(Ie),deleteLiveChatMessageCommand:XM(Re),deletePlaylistEndpoint:XM(ac),deleteVideoEndpoint:XM(Qa),dismissalEndpoint:XM(eX),feedbackEndpoint:XM(PN),flagEndpoint:XM(xi),getAccountSwitcherEndpoint:XM(rU),verifyCommand:XM(Jt),getAccountsListInnertubeEndpoint:XM(Qk),getCommentsFromInboxCommand:XM(K3),getDownloadActionCommand:XM($i),getFlowCommand:xV(qW),getKidsBlocklistPickerCommand:XM(ki),getNotificationMenuEndpoint:XM(zzm),
getPaymentInstrumentsParamsCommand:XM(th),getPaymentsClientTokenCommand:xV(Rc),getPdgBuyFlowCommand:XM(p3),getReportFormEndpoint:XM(qv),getSearchInVideoCommand:XM(WO),getAnswerCommand:XM(n3),getSurveyCommand:XM(lT),getTranscriptEndpoint:XM(EY),getPostVideoPreviewEndpoint:XM(NW),decorateMessageEndpoint:XM(sV),likeEndpoint:XM(i7),liveChatActionEndpoint:XM(sU),liveChatEndpoint:XM(oe),liveChatItemContextMenuEndpoint:XM(vN),liveChatPurchaseMessageEndpoint:XM(Nv),liveChatReplayEndpoint:XM(JU),manageLiveChatUserEndpoint:XM(OY),
metadataUpdateCommand:XM(UY),moderateLiveChatEndpoint:XM(HO),modifyChannelNotificationPreferenceEndpoint:XM(ya),notificationOptOutEndpoint:XM(BO),openSuperStickerBuyFlowCommand:XM(to),performCommentActionEndpoint:XM(Ca),playlistEditEndpoint:XM(wK),playlistEditorEndpoint:XM(T7),recordNotificationInteractionsEndpoint:XM(cO),reelWatchEndpoint:XM(eK),refreshPanelEndpoint:XM(iT),removeUpcomingEventReminderEndpoint:XM(Ao),resolveLocationCommand:XM(Dw),revealBusinessEmailCommand:XM(Z8),searchEndpoint:XM(_.Y$1),
sendLiveChatMessageEndpoint:XM(Zw),sendLiveChatVoteEndpoint:XM(Va),setSettingEndpoint:XM(u7),shareEntityServiceEndpoint:xV(MW),sharingProviderDataCommand:XM(Ic),showEngagementPanelEndpoint:XM(uT),showMoreDrawerCommand:XM(ho),showSheetCommand:XM(Mv),showDialogCommand:XM(SK),subscribeEndpoint:XM(SX),transcriptSubmitCaptionCorrectionCommand:XM(mc),undoFeedbackEndpoint:XM(xz),unsubscribeEndpoint:XM(hU),updateBackstagePostEndpoint:XM(OU),updateCommentEndpoint:XM(BN),updateCommentReplyEndpoint:XM(yk),updateCommentsSettingsEndpoint:XM(cN),
updateCreatorChannelInnertubeCommand:XM(D8),updateKidsBlacklistEndpoint:XM(f3),updateEngagementPanelContentCommand:XM(bT),updatePdgFeatureEnablementCommand:XM(L3),updatedMetadataEndpoint:XM(C3),validateChannelHandleCommand:XM(UU),updateChannelPageSettingsEndpoint:XM(Vk),verifyAgeEndpoint:XM(kz),watchEndpoint:xV(EV),whitelistEditEndpoint:XM(G7),ypcCancelRecurrenceEndpoint:XM(vO),ypcCompleteTransactionEndpoint:XM(Jo),ypcFixInstrumentEndpoint:XM(sY),ypcGetCartEndpoint:XM(oc),ypcGetOffersEndpoint:XM(N$),
ypcHandleTransactionEndpoint:xV(Og),ypcLogWalletAnalyticDataEndpoint:XM(HE),ypcOffersEndpoint:XM(Ah),ypcPauseSubscriptionCommand:XM(Zq),ypcRedeemCodeEndpoint:XM(Vz),ypcResumeSubscriptionCommand:XM(Dq),ypcUpdateFopEndpoint:XM(sY)},n4={},Ozm=(n4.GET_ACCOUNT_MENU=XM(l7),n4.GET_NOTIFICATIONS_MENU=XM(L7m),n4.GET_NOTIFICATIONS_INBOX=XM(Fj),n4.GET_UNSEEN_NOTIFICATION_COUNT=XM(gK),n4.GET_USER_MENTION_SUGGESTIONS=XM(tU),n4.LOAD_GUIDE=XM(pAn),n4.SUBMIT_FEEDBACK=XM(XG),n4),WE={},Hzm=(WE.CONTINUATION_REQUEST_TYPE_BROWSE=
XM(HN),WE.CONTINUATION_REQUEST_TYPE_SEARCH=XM(rK),WE.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=XM(lB),WE.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=XM(WN),WE.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=XM(FG),WE.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=XM(Ka),WE.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=XM(Xj),WE.CONTINUATION_REQUEST_TYPE_GET_PANEL=XM(jK),WE),Ar5={player:xV(EV),watchNext:XM(It)},Zzq={player:xV(EV),reelItemWatch:XM(eK),reelWatchSequence:XM(PO)},Vgq={watchEndpoint:xV(GY)},DVq=
{commandEndpointMap:tgf,signalEndpointMap:Ozm,continuationEndpointMap:Hzm,watchEndpointMap:Ar5,reelWatchEndpointMap:Zzq,streamingEndpointMap:Vgq};var UV1,C01,K8x;_.F8J=((C01=(UV1=window).matchMedia)==null?void 0:(K8x=C01.call(UV1,"(prefers-reduced-motion: reduce)"))==null?void 0:K8x.matches)||!document.startViewTransition;var dV5={},g2O={disableAllTransitions:_.F8J,ignoredErrors:(dV5.DOCUMENT_HIDDEN=!0,dV5.WINDOW_SIZE_CHANGED=!0,dV5.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,dV5),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var yrf=_.mp("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),crf=function(N){var t=this;this.viewTransitionCoordinator=
N;this.disableTransitionsForUltraHigh=_.h("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=Brf();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.So("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.h("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.h("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.h("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.So("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.h("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.GB.addJob(function(){t.registerRootElement();if(t.isAnyTransitionEnabled){var O=
_.uP("web_page_transition_exit_ms"),H=_.uP("web_page_transition_wait_ms"),A=_.uP("web_page_transition_enter_fast_ms"),Z=_.uP("web_page_transition_watch_exit_ms"),U=_.uP("web_page_transition_watch_wait_ms"),C=_.uP("web_page_transition_watch_enter_ms"),F=_.uP("web_page_transition_watch_next_exit_ms"),g=_.uP("web_page_transition_watch_next_wait_ms"),B=_.uP("web_page_transition_watch_next_enter_fast_ms"),c=_.uP("web_page_transition_enter_ms"),u=_.uP("web_page_transition_watch_next_enter_ms");t.enableFasterTransitions&&
t.isUltraHighBucketDevice&&(c=A,u=B);isNaN(O)&&isNaN(H)&&isNaN(c)&&isNaN(Z)&&isNaN(U)&&isNaN(C)&&isNaN(F)&&isNaN(g)&&isNaN(u)||!(O=qWy(yrf,O,H,c,Z,U,C,F,g,u))||(H=document.createElement("style"),H.textContent=$oN(O),document.head.appendChild(H))}},8)},Brf=function(){var N=_.H4.navigator.deviceMemory;
return N>=8||N===void 0?!0:!1};
crf.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var N={};this.viewTransitionCoordinator.registerElement(document.documentElement,(N.slide="root-slide",N["lockup-to-watch"]="root-lockup-to-watch",N["learning-journey"]="root-learning-journey",N))}};
_.RuR=function(N,t){N.isLockupToWatchTransitionEnabled&&N.isLockupThumbnailRegistrationEnabled&&(N.registeredLockupThumbnail?N.lockupThumbnailRegisteredFromWatchEndpoint?_.J_(new _.fF("Lockup thumbnail registration order is incorrect.")):_.J_(new _.fF("Lockup thumbnail already registered.")):(N.registeredLockupThumbnail=t,_.$V5(N,t)))};
_.$V5=function(N,t){var O={};N.viewTransitionCoordinator.registerElement(t,(O["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",O),!0)};
crf[$v]=[ZLi];var Sq9={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 MMt=["videoPrimaryInfoRenderer","title"],bBQ=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var jkf;jkf=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.iz5=_.q(function(N){N=_.RH(N,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var t=N.data,O=N.playlistData,H=N.expanded,A=N.onExpandClick,Z=N.isReadyToResume,U=function(){var B;return!((B=O())==null||!B.contents)},C=function(){var B=O();
return B&&B.totalVideos&&B.currentIndex!==void 0?B.currentIndex+1+" / "+B.totalVideos:""};
N=_.Ui(function(){_.r2(_.cY().resolve(_.kf));return!1});
var F=_.Ui(function(){U()&&A&&A()}),g={};
return _.d("ytd-miniplayer-info-bar",{class:_.V7("ytdMiniplayerInfoBarHost",(g.ytdMiniplayerInfoBarHasPlaylistData=U,g)),"on:click":F},_.d("div",{class:"ytdMiniplayerInfoBarContent"},_.d("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":N},_.d(_.cu,{text:function(){var B=t();var c=O();if(c==null?0:c.contents){var u;B=(u=_.Gd4(c))==null?void 0:u.title}else B=B==null?void 0:B.miniplayerTitle;return L44(B)},
noEndpoints:!0,ellipsisTruncate:!0})),_.d("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.d(_.y,{cond:Z,then:function(){return _.d(p_f,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:jkf})}}),_.d("h1",null,_.d(_.cu,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var B=t();var c=O();B=Z()?{simpleText:_.CJ("CONTINUE_WATCHING",void 0,"Continue watching")}:(c==null?0:c.contents)?c.titleText:B==null?void 0:B.miniplayerSubtitle;return L44(B)},
noEndpoints:!0,ellipsisTruncate:!0})),_.d(_.y,{cond:function(){return!!C()&&!Z()},
then:function(){return _.d("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.d("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.d("span",null,C))}}))),_.d(_.y,{cond:U,
then:function(){return _.d("div",{class:"ytdMiniplayerInfoBarExpand"},_.d(_.et,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(B){A&&(A(),B.stopPropagation())}}},
iconName:function(){return H()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"yg");var uc1;uc1=_.q(function(N){return _.d("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.d(_.et,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:N.onTap}},
iconName:"yt-icons:close"}))},"zg");
_.Svm=_.q(function(N){N=_.RH(N,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var t=N.size,O=N.playabilityStatus,H=N.isDisabled,A=N.isPictureInPicture,Z=_.Fy("div");N=_.D(_.b$(void 0,void 0,"w4RAU"));var U=N.next().value,C=N.next().value;N=_.cH(_.Hy);var F=!1,g=function(){return t().height<=0};
_.rp(function(){var S=t(),b=g(),z=U();z&&!b&&z.setInternalSize(S.width,S.height)},"BHFc2b");
_.lf(function(){var S,b,z;return _.K(function(w){if(w.nextAddress==1){S=_.cY().resolve(_.kf);b=S.getPlayerElement();if(!S.isMiniplayerActive()||!b||!Z.value)return w.return();b.appendTo(Z.value);return w.yield(b.getPlayerPromise(),2)}z=w.yieldResult;A()||z.setSizeStyle(!1,!0);C(z);_.Ty(w)})});
_.Ia(function(){B()});
_.rp(function(){var S=U();if(S)if(H()){var b=S.getPlayerState();(F=b===-1||b===1||b===3)&&S.pauseVideo()}else B()},"Invykd");
var B=function(){if(F){F=!1;var S;(S=U())==null||S.playVideo()}},c=_.Ui(function(){_.r2(_.cY().resolve(_.kf))}),u={};
return _.d("ytd-miniplayer-player-container",{class:_.V7("ytdMiniplayerPlayerContainerHost",(u.ytdMiniplayerPlayerContainerHidden=g,u.ytdMiniplayerPlayerContainerHostShortsPip=N,u)),style:_.FM({width:function(){return t().width+"px"},
height:function(){return t().height+"px"}})},_.d("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Z}),_.d(_.y,{cond:function(){return!!O()&&!_.rsS(O())},
then:function(){return _.d(NGx,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var S;return((S=O())==null?void 0:S.errorScreen)||null},
status:function(){var S;return((S=O())==null?void 0:S.status)||null}})}}),_.d(_.y,{cond:H,
then:function(){return _.d("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":c},_.d(uc1,{onTap:function(){_.cY().resolve(_.kf).close()}}))}}))},"Dg");_.hAq=_.q(function(N){var t=N.toastData;var O=_.Fy("ytd-miniplayer-toast");N=_.D(_.Gb(function(){return!!t()}));
var H=N.next().value,A=N.next().value;N=_.D(_.b$(!1,void 0,"BvfNQe"));var Z=N.next().value,U=N.next().value,C=function(){var B;return _.Gv((B=t())==null?void 0:B.data.title)};
_.Q8(function(){_.Uk.requestAvailability();t()&&A(!1)});
var F,g;_.rp(function(){H()&&(_.or(O.value,"iron-announce",{text:t().label+" "+C()}),F&&_.GB.cancelJob(F),F=_.GB.addLowPriorityJob(function(){U(!0)},2500))},"no1dZb");
_.rp(function(){Z()&&(g&&_.GB.cancelJob(g),g=_.GB.addLowPriorityJob(function(){A(!1);U(!1)},300))},"G3yPNe");
N={};return _.d("ytd-miniplayer-toast",{el:O,class:_.V7("ytdMiniplayerToastHost",(N.ytdMiniplayerToastOpening=function(){return H()},N.ytdMiniplayerToastClosing=function(){return Z()},N))},_.d(_.y,{cond:function(){var B;
return(B=t())==null?void 0:B.data},
then:function(B){return _.d(XJu,{className:"ytdMiniplayerToastThumbnail",data:B,width:78})}}),_.d("div",{class:"ytdMiniplayerToastInfo"},_.d("div",{class:"ytdMiniplayerToastLabel"},function(){var B;
return(B=t())==null?void 0:B.label}),_.d("div",{class:"ytdMiniplayerToastTitle"},C)))},"Gg");var kq9;var n_v=null;var bzn=_.q(function(N){var t=N.progressState;var O=N.multiMarkersPlayerBarRenderer;var H=N.progressBarWidth;var A=function(){return lBt(O())},Z=function(){return E_y(t())},U=function(){return H()*(t().playedTime/t().videoDuration)};
return _.d("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.d(_.nL,{each:A},function(C,F){return _.d(Mg5,{modifiedProps:Z,chapters:A,index:F,playedProgressWidth:U,backgroundGradientPosition:function(){var g=Z(),B=A(),c=F(),u=U();return(g.playedTime-XQ(_.M(B[c],P7)))/g.playedTime*u}})}))},"Hg"),Mg5=_.q(function(N){var t=N.modifiedProps;
var O=N.chapters;var H=N.index;var A=N.playedProgressWidth;var Z=N.backgroundGradientPosition;N={};N=_.V7("ytChapteredProgressBarChapteredPlayerBarChapter",(N.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return U().isScrubbing},N.ytChapteredProgressBarHoveredMacroMarker=function(){return U().scrubberHovering},N.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return U().videoPosition==="seen"},N));
var U=function(){return Gq9(t(),O(),H())},C=function(){var F=t();
var g=O(),B=H();if(Gq9(F,g,B).videoPosition!=="active")F=0;else{var c=XQ(_.M(g[B],P7));F=(F.playedTime-c)/((XQ(_.M(g[B+1],P7))||F.videoDuration)-c)}return F};
return _.d("div",{class:N,style:_.FM({width:function(){var F=t(),g=O(),B=H(),c=_.M(g[B],P7);g=_.M(g[B+1],P7);return(g?XQ(g)-XQ(c):F.videoDuration-XQ(c))/F.videoDuration*100+"%"},
"background-color":function(){a:{var F=U();switch(F.videoPosition){case "pending":F=F.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":F=F.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:F=""}}return F},
"background-size":function(){return(R_9(U())?A():"")+"px"},
"background-position-x":function(){return(R_9(U())?Z():"")+"px"}})},_.d("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var F=t(),g=O(),B=H();if(Gq9(F,g,B).videoPosition==="seen")var c=0;else c=XQ(_.M(g[B],P7)),g=XQ(_.M(g[B+1],P7))||F.videoDuration,F=F.videoDuration*F.percentLoaded,c=g<=F?1:c>=F?0:(F-c)/(g-c);return"width: "+c*100+"%"}}),_.d("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.FM({width:function(){return C()*100+"%"},
"background-size":function(){return(R_9(U(),C())?A():"")+"px"},
"background-position-x":function(){return(R_9(U(),C())?Z():"")+"px"}})}))},"Ig");var pa5=function(N,t){t=t===void 0?rlX:t;var O,H=[],A,Z=!1;return function(){var U=_.E1.apply(0,arguments);if(Z&&O===this&&t(U,H))return A;A=N.apply(this,U);Z=!0;O=this;H=U;return A}}(function(N){var t=N.heatMarkers,O=N.minHeightDp===void 0?0:N.minHeightDp,H=N.maxHeightDp===void 0?60:N.maxHeightDp;
var A=A===void 0?!1:A;var Z=1E3/t.length;N=[];N.push({x:0,y:100});for(var U=0;U<t.length;U++){var C=void 0,F=((C=_.M(t[U],Rv0))==null?void 0:C.heatMarkerIntensityScoreNormalized)||0;C=(U+.5)*Z;F=100-_.eS(F*100,O/321*100,H/321*100);U!==0||A||N.push({x:0,y:F});N.push({x:C,y:F});U===t.length-1&&N.push({x:1E3,y:F})}N.push({x:1E3,y:100});t="";for(O=0;O<N.length;O++)A=N[O],O===0?A="M "+A.x.toFixed(1)+","+A.y.toFixed(1):(H=nUS(N[O-1],N[O-2],A),Z=nUS(A,N[O-1],N[O+1],!0),A=" C "+(H.x.toFixed(1)+","+H.y.toFixed(1)+
" "+Z.x.toFixed(1)+","+Z.y.toFixed(1)+" "+A.x.toFixed(1)+","+A.y.toFixed(1))),t+=A;return t});var L8r=_.q(function(N){var t=N.progressBarProps;var O=N.config;var H={};N=_.V7("ytHeatSeekerHost",(H.ytHeatSeekerHighContrast=N.highContrast,H));var A=function(){return w9v(O().chapterData)};
return _.d("yt-progress-bar-heatseeker",{class:N,style:function(){var Z;return"height: 320px; display: "+(t().isDragging&&((Z=A())==null?0:Z.heatMarkers)?"block":"none")}},_.d(_.y,{cond:A,
then:function(Z){return _.d(_.y,{cond:function(){return Z().heatMarkers},
then:function(){return _.d("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.d("path",{d:function(){return pa5(Z())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Jg");var zAr=_.q(function(N){var t=N.progressBarProps;var O=N.config;N={};N=_.V7("ytProgressBarLineProgressBarLine",(N.ytProgressBarLineProgressBarLineRounded=function(){return O().rounded},N.ytProgressBarLineProgressBarLineBottomInset=function(){return O().position===2},N));
return _.d("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.d("div",{class:N},_.d("div",{class:"ytProgressBarLineProgressBarBackground"}),_.d("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+t().percentLoaded*100+"%"}}),_.d("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var H=t();return"width: "+(H.videoDuration?_.eS(H.hoveredTime/H.videoDuration,0,1):0)*100+"%"}}),_.d("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Yqv(t())*100+"%"}})))},"Kg");
zAr.idomCompat=!0;var Yvn=_.q(function(N){var t=N.progressBarProps;var O=N.playheadData;var H=N.interpolateDotPosition;var A=N.hidePlayhead;N={};var Z=_.V7("ytProgressBarPlayheadProgressBarPlayheadDot",(N.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return t().isDragging},N.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!t().isDragging&&A()},N));
return _.d("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.FM({"margin-left":function(){return aBG(t())*100+"%"},
transform:function(){return"translateX(-"+(H()?aBG(t())*12:6)+"px)"}})},_.d(_.y,{cond:function(){var U;
return(U=_.Gr(O)())==null?void 0:U.playheadImage},
then:function(U){var C={};return _.d("div",{class:_.V7("ytProgressBarPlayheadProgressBarPlayheadCustom",(C.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return t().isDragging},C.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!t().isDragging&&A()},C)),
style:_.FM({"transform-origin":function(){return(H()?aBG(t())*20:10)+"px center"}})},_.d(_.Qt,{data:U,
alt:"","aria-hidden":"true"}))},
else:function(){return _.d("div",{class:Z,style:_.FM({"transform-origin":function(){return(H()?aBG(t())*12:6)+"px center"}})})}}))},"Lg");
Yvn.idomCompat=!0;var IY=function(N,t,O,H,A,Z){this.getProgressBarRect=N;this.updateProgressBarRect=t;this.getFilmstripYPosition=O;this.setFineScrubbingDraggedTime=H;this.updateFilmStripDraggedYDistance=A;this.resetFilmStripYOffset=Z;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.KE(this.onThrottledSeek,100,this)},aoJ=function(N,t,O){return function(H){N.handleClick(H,t(),O())}},eAm=function(N,t){return function(O){Trx(N,
O,wa5(O),t())}},P0n=function(N,t){return function(O){Trx(N,O,{x:O.clientX,
y:O.clientY},t())}},xVm=function(N,t,O){return function(H){var A=t(),Z=O();
Xa5(N,H,wa5(H),A,Z,!0);if(Z.onTouchMove)Z.onTouchMove(A)}},qv1=function(N,t,O){return function(H){kBf(N,H,t(),O())}},fom=function(N,t){return function(){N.handleMouseLeave(t())}},n2x=function(N,t,O){return function(){var H=t(),A=O();
lZ(N,H,A);if(A.onTouchEnd)A.onTouchEnd(H)}},W8i=function(N,t,O){return function(){var H=t(),A=O();
lZ(N,H,A);if(A.onTouchEnd)A.onTouchEnd(H)}},rrm=function(N,t,O){return function(){lZ(N,t(),O())}},Io5=function(N){return function(t){if(t.keyCode===39||t.keyCode===38){var O,H;
(O=N())==null||(H=O.playerApi)==null||H.seekBy(5,void 0,void 0,72)}else if(t.keyCode===37||t.keyCode===40){var A,Z;(A=N())==null||(Z=A.playerApi)==null||Z.seekBy(-5,void 0,void 0,71)}}},loO=function(N,t,O){return function(H){!O().disableScrubbing&&N.startPosition&&kBf(N,H,t(),O())}},Qk5=function(N,t,O){return function(){if(!O().disableScrubbing)if(N.startPosition){var H=t(),A=O();
lZ(N,t(),O());if(A.onTouchEnd)A.onTouchEnd(H)}else t().setState({isDragging:!1})}},wa5=function(N){N=N.touches[0];
return{x:N.clientX,y:N.clientY}},kBf=function(N,t,O,H){if(t.buttons!==1){if(t.movementX||t.movementY)t.preventDefault(),t.stopPropagation(),N=mV5(N,O,t.clientX),O.setState({isHovering:!0,
hoveredTime:N*O.videoDuration})}else E2J(O),Xa5(N,t,{x:t.clientX,y:t.clientY},O,H,!1)};
IY.prototype.handleMouseLeave=function(N){E2J(N)};
var E2J=function(N){N.isHovering&&N.setState({isHovering:!1,hoveredTime:0})},Trx=function(N,t,O,H){N.startPosition||(N.startPosition=O,N.updateProgressBarRect(),N.controlsWereVisibleBeforeDragging=H.controlsVisible,t.stopPropagation(),_.h("medium_progress_bar_modification")||t.preventDefault())},Xa5=function(N,t,O,H,A,Z){if(N.startPosition)if(Z&&A.isInlinePlayback&&N.startPosition&&!N.hasDraggedTheMinimumDistance&&Math.abs(O.y-N.startPosition.y)>Math.abs(O.x-N.startPosition.x))lZ(N,H,A);
else if(t.preventDefault(),t.stopPropagation(),H.videoDuration&&(N.startPosition&&!N.hasDraggedTheMinimumDistance&&(N.hasDraggedTheMinimumDistance=Math.abs(O.x-N.startPosition.x)>=1),A.enableFineScrubbing&&(N.startPosition&&(N.isDraggedForFineScrubbing=-(O.y-N.startPosition.y)>=60),!N.startPosition||O.y>=N.startPosition.y||(H.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:v_p(H.draggedTime,H,A.chapterData)}),N.setFineScrubbingDraggedTime(H.draggedTime),N.updateFilmStripDraggedYDistance(N.startPosition.y,
O.y,H))),N.hasDraggedTheMinimumDistance)){t=mV5(N,H,O.x);if(N.isDraggedForFineScrubbing){var U;(U=H.playerApi)==null||U.pauseVideo();H.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:H.draggedTime,filmStripXDistance:v_p(t*H.videoDuration,H,A.chapterData)})}A.enableFineScrubbing&&(!A.enableFineScrubbing||N.getFilmstripYPosition(H)<68)||H.setState({draggedTime:t*H.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:N.controlsWereVisibleBeforeDragging});var C;(C=
A.cancelAutohideControlsFn)==null||C.call(A)}},lZ=function(N,t,O){var H=O.enableFineScrubbing&&t.fineScrubbingActiveState!=="off";
if(t.isDragging||H){H={isDragging:!1,playedTime:t.draggedTime,controlsVisible:N.controlsWereVisibleBeforeDragging};O.enableFineScrubbing&&t.fineScrubbingActiveState!=="on"&&(N.resetFilmStripYOffset(),H.fineScrubbingActiveState="off");var A=A===void 0?n_v:A;var Z=_.z8(0);if(Z&&A){var U=Math.round(t.playedTime*1E3),C=Math.round(t.draggedTime*1E3);U>2147483647||C>2147483647||_.lp(Z,A,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(U),endMediaTimeMs:String(C),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}t.setState(H);
N.seekThrottle.fire(t.draggedTime,t,7);_.h("mweb_new_progress_bar_play_on_seek")&&N.resumeVideo(t);O.unmuteOnSeek&&(O=t.playerApi,t.volumeMuted&&(O==null||O.unMute()))}else t.setState({controlsVisible:!t.controlsVisible}),(Z=O.triggerAutohideControlsAfterDelayFn)==null||Z.call(O);N.startPosition=null;N.hasDraggedTheMinimumDistance=!1;N.isDraggedForFineScrubbing=!1;N.controlsWereVisibleBeforeDragging=!1};
IY.prototype.handleClick=function(N,t,O){this.updateProgressBarRect();N.stopPropagation();N=mV5(this,t,N.clientX)*t.videoDuration;t.setState({playedTime:N});if(t.playerState!==2){var H;(H=O.triggerAutohideControlsAfterDelayFn)==null||H.call(O)}this.seekThrottle.fire(N,t,7)};
var mV5=function(N,t,O){N=N.getProgressBarRect(t);return _.eS(0,(O-N.left)/N.width,1)};
IY.prototype.resumeVideo=function(N){if(N.draggedTime<N.videoDuration){var t;(t=N.playerApi)==null||t.playVideo()}};
IY.prototype.onThrottledSeek=function(N,t,O){if(t=t.playerApi){var H;if((H=t.getVideoData())==null?0:H.isLive)H=this.getProgressState(t),N+=(H==null?void 0:H.seekableStart)||0;t.seekTo(N,void 0,void 0,void 0,O)}};
IY.prototype.getProgressState=function(N){var t=N==null?void 0:N.getPresentingPlayerType();return N==null?void 0:N.getProgressState(t)};var v21,RA5,Jrx,skx,GB5,Na5,tOm,Obz,Hb5;v21=_.q(function(N){var t=N.progressBarProps;var O=N.config;var H=N.progressBarWidthPx;var A=N.chapterData;var Z=tkp(t,function(){return O().isShortsPage}),U=function(){return!t().isHovering&&!O().isShortsPage};
N={};var C=_.V7("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(N.ytPlayerStoryboardHostMwebShorts=function(){return O().isShortsPage&&!1},N));
return _.d("yt-player-storyboard",null,_.d(_.y,{cond:function(){return t().isDragging||t().isHovering},
then:function(){return _.d(_.y,{cond:Z,then:function(F){return _.d(_.y,{cond:U,then:function(){return _.d("div",{class:C,"aria-hidden":"true"},_.d(GB5,{props:t,config:O,isBigboard:!0,chapterData:A}))},
else:function(){return _.d(RA5,{props:t,frame:F,config:O,progressBarWidthPx:H,chapterData:A})}})}})}}))},"Mg");
_.o2O=_.q(function(N){var t=N.progressBarProps;var O=tkp(t,N.isShortsPage);return _.d("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.d(_.y,{cond:function(){return t().isDragging||t().isHovering},
then:function(){return _.d(_.y,{cond:O,then:function(H){return _.d(Jrx,{frame:H,props:t,isBigboard:!0})}})}}))},"Ng");
RA5=_.q(function(N){var t=N.props;var O=N.frame;var H=N.config;var A=N.progressBarWidthPx;N=N.chapterData;var Z={};Z=_.V7("ytPlayerStoryboardHost",(Z.ytPlayerStoryboardHostMwebShorts=function(){return H().isShortsPage&&!1},Z.ytPlayerStoryboardHostInlinePlayer=function(){return H().isInlinePlayer},Z.ytPlayerStoryboardHostFadeIn=function(){return H().useFadeInAnimation},Z));
return _.d("div",{class:Z,"aria-hidden":"true",style:function(){var U=t(),C=JQp(O()),F=A();U=o_O(U)/U.videoDuration;var g=F*U,B=C/2+6;C=F-(C/2+6);return"left: "+(g<=B?B/F*100:g>=C?C/F*100:U*100)+"%"}},_.d(_.y,{cond:function(){var U=t();
return!(H().isShortsPage&&U.videoDuration<15)},
then:function(){return _.d(Jrx,{frame:O,props:t,isBigboard:!1})}}),_.d(GB5,{props:t,
config:H,isBigboard:!1,chapterData:N}))},"Og");
Jrx=_.q(function(N){var t=N.frame;var O=N.props;var H=N.isBigboard;var A=function(){var C,F;return(F=(C=O().playerApi)==null?void 0:C.getVideoContentRect())!=null?F:{width:0,height:0}},Z=function(){return JQp(t())},U=function(){var C=t();
return C?C.height/C.rows:0};
N={};N=_.V7((N.ytPlayerStoryboardBigboardImageWrapper=H,N.ytPlayerStoryboardStoryboardImageWrapper=function(){return!H()},N));
return _.d("div",{class:N,style:function(){return"width: "+(H()?A().width:Z())+"px; height: "+(H()?A().height:U())+"px;"}},_.d(skx,{frame:t,
storyboardWidth:Z,storyboardHeight:U,storyboardScale:function(){return(H()?A().width:Z())/Z()}}))},"Pg");
skx=_.q(function(N){var t=N.frame;var O=N.storyboardWidth;var H=N.storyboardHeight;var A=N.storyboardScale;var Z=function(){var U=t().row,C=t().column,F=O(),g=H(),B=A();return{left:-C*F*B,top:-U*g*B}};
return _.d("img",{src:function(){return t().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+Z().left+"px; top: "+Z().top+"px; width: "+t().width*A()+"px; height: "+t().height*A()+"px;"}})},"Qg");
GB5=_.q(function(N){var t=N.props;var O=N.config;var H=N.isBigboard;var A=N.chapterData;N={};N=_.V7("ytPlayerStoryboardMetadata",(N.ytPlayerStoryboardMetadataBigboard=H,N));return _.d("div",{class:N},_.d(_.y,{cond:H,then:function(){return _.d(_.BZ,null,_.d(Na5,{props:t,config:O}),_.d(_.y,{cond:function(){a:{var Z=t();var U=O(),C=A(),F;if((U==null?0:U.activeChapter)&&((F=_.M(U==null?void 0:U.activeChapter,P7))==null?0:F.title))Z=!0;else{U=_.D(e_S(C));for(U=U.next();!U.done;U=U.next()){Z=(U=_.M(U.value,
J6f))&&sTM(Z,U);break a}Z=!1}}return Z},
then:function(){return _.d(tOm,{props:t,config:O,isBigboard:!0,chapterData:A})}}))},
else:function(){return _.d(_.BZ,null,_.d(tOm,{props:t,config:O,isBigboard:!0,chapterData:A}),_.d(Na5,{props:t,config:O}))}}))},"Rg");
Na5=_.q(function(N){var t=N.props;var O=N.config;N={};N=_.V7("ytPlayerStoryboardTimestamp",(N.ytPlayerStoryboardTimestampShorts=function(){return O().isShortsPage},N.ytPlayerStoryboardTimestampIsHovering=function(){return t().isHovering||O().isShortsPage&&!0},N));
return _.d("div",{class:N},_.d(_.BZ,null,function(){return _.N$S(o_O(t()))}))},"Sg");
tOm=_.q(function(N){var t=N.props;var O=N.config;var H=N.isBigboard;var A=N.chapterData;N={};H=_.V7("ytPlayerStoryboardTitle",(N.ytPlayerStoryboardTitleBigboard=H,N));return _.d("div",{class:H},_.d(_.y,{cond:function(){return!O().isShortsPage},
then:function(){return _.d(Obz,{props:t,activeChapter:function(){return O().activeChapter},
chapterData:A})}}))},"Tg");
Obz=_.q(function(N){var t=N.props;var O=N.activeChapter;var H=N.chapterData;return _.d(_.BZ,null,_.d(_.nL,{each:function(){return e_S(H())},
keyBy:"INDEX"},function(A){return _.d(_.BZ,null,_.d(_.y,{cond:function(){return _.M(A(),J6f)&&sTM(t(),_.M(A(),J6f))},
then:function(){return _.d(Hb5,{timedMarker:function(){return _.M(A(),J6f)}})}}))}),_.d(_.y,{cond:function(){var A;
return O()&&((A=_.M(O(),P7))==null?void 0:A.title)},
then:function(A){return _.d(_.cu,{text:A,noPreWrap:!0})}}))},"Ug");
Hb5=_.q(function(N){var t=N.timedMarker;return _.d(_.BZ,null,_.d("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.d(_.dq,{icon:function(){return t().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.d(_.cu,{text:function(){return t().label},
noPreWrap:!0}))},"Vg");_.A_i=_.q(function(N){var t=N.progressBarProps;var O=N.playheadData;var H=N.config;N=_.Fy("yt-progress-bar");var A=_.Fy("div"),Z=_.Fy("div"),U=_.D(_.b$({width:0,left:0},void 0,"XjZjde")),C=U.next().value,F=U.next().value,g=function(){Z.value&&F(Z.value.getBoundingClientRect())},B=function(){C().width<=0&&g();
return C()};
_.$6("resize",g);var c=new IY(B,function(){},function(){return 0},function(){},function(){},function(){}),u=function(){return t()};
U=_.D(_.b$(!1,void 0,"uZlOJc"));var S=U.next().value,b=U.next().value;U=_.Ui(function(){b(!0);H().position===2?setTimeout(function(){g()},100):g()});
var z=_.Ui(function(){b(!1);fom(c,u)()}),w=_.Ui(function(kx){H().doSeekOnClick&&aoJ(c,u,H)(kx);
return!1}),P=_.Ui(function(kx){eAm(c,u)(kx);
return!1}),x=_.Ui(function(kx){P0n(c,u)(kx);
return!1}),l=_.Ui(function(kx){xVm(c,u,H)(kx);
return!1}),I=_.Ui(function(kx){qv1(c,u,H)(kx);
return!1}),r=_.Ui(function(){n2x(c,u,H)();
return!1}),E=_.Ui(function(){W8i(c,u,H)();
return!1}),J=_.Ui(function(){rrm(c,u,H)();
return!1}),CN=_.Ui(function(kx){Io5(u)(kx);
return!1});
_.$6("mousemove",loO(c,u,H));_.$6("mouseup",Qk5(c,u,H));_.Q8(function(){W4y(A.value);b(!1);g();Qk5(c,u,H)()});
var B4={};B4=_.V7("ytPlayerProgressBarHost",function(){return H().className},(B4.ytPlayerProgressBarHostReadOnly=function(){return H().disableScrubbing},B4.ytPlayerProgressBarHostHidden=function(){return H().hideProgressBar&&!S()},B4.ytPlayerProgressBarHostLowerPlayer=function(){return H().position===0},B4.ytPlayerProgressBarHostBottomEdge=function(){return H().position===1},B4.ytPlayerProgressBarHostBottomInset=function(){return H().position===2},B4.ytPlayerProgressBarHostCustom=function(){return H().position===
3},B4));
var zM={},jy=_.V7("ytPlayerProgressBarBackground",(zM.ytPlayerProgressBarBackgroundHide=function(){return H().position===2&&!S()&&!t().isDragging},zM));
zM={};zM=_.V7("ytPlayerProgressBarDragContainer",(zM.ytPlayerProgressBarDragContainerBottomEdge=function(){return H().position===1},zM));
var c4={};c4=_.V7("ytPlayerProgressBarProgressBar",(c4.ytPlayerProgressBarProgressBarInset=function(){return H().position===2},c4.ytPlayerProgressBarProgressBarInsetMinimized=function(){return H().position===2&&!S()&&!t().isDragging},c4));
var XO=function(){return Math.floor(Yqv(t())*100)};
return _.d("yt-progress-bar",{el:N,class:B4},_.d(_.y,{cond:function(){return H().position===2},
then:function(){return _.d("div",{class:jy})}}),_.d("div",{el:A,
"on:click":w,"on:touchstart":P,"on:touchmove":l,"on:mouseenter":U,"on:mousedown":x,"on:mouseleave":z,"on:mousemove":I,"on:mouseup":E,"on:touchend":r,"on:touchcancel":J,"on:keydown":CN,class:zM,role:"slider","aria-valuenow":XO,"aria-valuetext":function(){return XO()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return t().videoDuration},
draggable:_.h("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.CJ("SEEK_SLIDER")},_.d("div",{el:Z,class:c4},_.d(L8r,{progressBarProps:t,config:H,highContrast:function(){return!!H().isInlinePlayback}}),_.d(_.y,{cond:function(){return H().chapterData&&Pip(H().chapterData)},
then:function(){return _.d(bzn,{progressState:t,multiMarkersPlayerBarRenderer:function(){return H().chapterData},
progressBarWidth:function(){return C().width}})},
else:function(){return _.d(zAr,{progressBarProps:t,config:H})}}),_.d(Yvn,{progressBarProps:t,
playheadData:O,interpolateDotPosition:function(){return H().position!==2},
hidePlayhead:function(){return H().playheadDotBehavior===1&&!S()}}))),_.d(v21,{progressBarProps:t,
config:function(){return{activeChapter:m5v(t(),H().chapterData),getProgressBarWidthPx:function(){return B().width},
isShortsPage:!!H().isShortsPage,isInlinePlayer:!!H().isInlinePlayback,useFadeInAnimation:!!H().isInlinePlayback}},
progressBarWidthPx:function(){return C().width},
chapterData:function(){return H().chapterData}}))},"Wg");
_.A_i.idomCompat=!0;Object.assign({},_.X9y(),{setState:function(){},
domMeasurements:{},appApi:_.z_N(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Zbf;
_.VOi=_.q(function(){var N,t=(N=_.xf(OWN().playerApi))!=null?N:void 0;N=_.D(_.b$(!1,void 0,"Z9NQ1b"));var O=N.next().value,H=N.next().value;N=_.D(_.b$(!1,void 0,"HoVJXe"));var A=N.next().value,Z=N.next().value;N=_.D(_.b$(!1,void 0,"DWCY3"));var U=N.next().value,C=N.next().value;N=_.D(_.b$(!1,void 0,"g4C2Zd"));var F=N.next().value,g=N.next().value;N=_.D(_.b$(0,void 0,"lmVfFb"));var B=N.next().value,c=N.next().value;N=_.D(_.b$(0,void 0,"mFLbzb"));var u=N.next().value,S=N.next().value;N=_.D(_.b$(!1,void 0,
"hQN4Wb"));var b=N.next().value,z=N.next().value;N=_.D(_.b$(0,void 0,"WWU0fb"));var w=N.next().value,P=N.next().value;N=_.D(_.b$(0,void 0,"MJ7LMd"));var x=N.next().value,l=N.next().value;N=_.D(_.b$("",void 0,"hnomOe"));var I=N.next().value,r=N.next().value;N=_.D(_.b$(-1,void 0,"ARe3pf"));var E=N.next().value,J=N.next().value,CN=_.aa(function(){var B4={controlsVisible:O(),isOverlayHidden:A(),shouldWaitToHideControls:U(),isDragging:F(),isHovering:b(),videoDuration:w(),playedTime:x(),videoId:I(),draggedTime:u(),
hoveredTime:B(),playerState:E()};return Object.assign({},_.X9y(),B4,{domMeasurements:{},setState:function(zM){zM.controlsVisible!==void 0&&H(zM.controlsVisible);zM.isOverlayHidden!==void 0&&Z(zM.isOverlayHidden);zM.shouldWaitToHideControls!==void 0&&C(zM.shouldWaitToHideControls);zM.isDragging!==void 0&&g(zM.isDragging);zM.isHovering!==void 0&&z(zM.isHovering);zM.draggedTime!==void 0&&S(zM.draggedTime);zM.hoveredTime!==void 0&&c(zM.hoveredTime);zM.videoDuration!==void 0&&P(zM.videoDuration);zM.playedTime!==
void 0&&l(zM.playedTime);zM.videoId!==void 0&&r(zM.videoId);zM.playerState!==void 0&&J(zM.playerState)},
appApi:_.z_N(),playerApi:t})},void 0,"Au4PIf");
_.lf(function(){t==null||t.addEventListener("onVideoProgress",fBy(CN));t==null||t.addEventListener("onVideoDataChange",qq4(CN));t==null||t.addEventListener("onStateChange",x5t(CN))});
_.Ia(function(){if(t==null?0:t.isReady())t==null||t.removeEventListener("onVideoProgress",fBy(CN)),t==null||t.removeEventListener("onVideoDataChange",qq4(CN)),t==null||t.removeEventListener("onStateChange",x5t(CN))});
return _.d("desktop-shorts-player-controls",null,_.d(Zbf,{playerControlsProps:CN}))},"Yg");
Zbf=_.q(function(N){var t=N.playerControlsProps;return _.d("div",{class:"desktopShortsPlayerControlsHost"},_.d(_.A_i,{progressBarProps:t,config:function(){return{isShortsPage:!0,hideProgressBar:t().videoDuration<30&&t().playerState!==2&&!t().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Zg");_.Dg1=_.q(function(N){function t(B4){B4!==0||c()?B4>50&&(c()||!S())?(u(!1),b(!0)):B4<=50&&(c()||S())&&(u(!1),b(!1)):u(!0)}
function O(B4,zM){var jy;return _.K(function(c4){if(c4.nextAddress==1)return c4.yield(_.Kx(),2);jy=c4.yieldResult;zM&&jy?(jy.unMute(!0),B4&&(AT4(B4,jy.getVolume()),w(jy.getVolume()))):jy&&(jy.mute(!0),B4&&AT4(B4,0));_.Ty(c4)})}
function H(B4){var zM,jy;return _.K(function(c4){if(c4.nextAddress==1)return c4.yield(_.Kx(),2);zM=c4.yieldResult;jy=50;zM&&(jy=zM.getVolume(),zM.isMuted()?AT4(B4,0):AT4(B4,jy));w(jy);_.Ty(c4)})}
var A=N.orientation;N=_.Fy("desktop-shorts-volume-controls");var Z=_.Fy("button"),U=_.yM("input"),C=_.D(_.b$(!1,void 0,"MvN0Tc")),F=C.next().value,g=C.next().value,B=_.D(_.b$(!1,void 0,"aSjsEb"));C=B.next().value;B=B.next().value;var c=C,u=B;B=_.D(_.b$(!0,void 0,"FUh46d"));C=B.next().value;B=B.next().value;var S=C,b=B;C=_.D(_.b$(50,void 0,"yPke4d"));var z=C.next().value,w=C.next().value;C=_.aa(function(){var B4=c();return _.h("web_shorts_keyboard_enable_mute_shortcut")?B4?_.CJ("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.CJ("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):B4?_.CJ("UNMUTE_VOLUME",void 0,"Unmute"):_.CJ("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
B=_.aa(function(){var B4=c(),zM=S();return{sources:[{clientResource:{imageName:B4?_.h("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":zM?_.h("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.h("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var P=_.aa(function(){var B4=z();return c()?B4+"% volume muted":B4+"% volume"},void 0,"xZsRmc"),x=_.aa(function(){return A()==="vertical_down"},void 0,"FVqYmb");
_.Q8(function(){function B4(){g(!0)}
function zM(){g(!1)}
U&&U.value&&(U.value.addEventListener("focus",B4),U.value.addEventListener("focusout",zM),H(U.value).then(function(){t(Number(ZWG(U.value)))}));
Z&&Z.value&&(Z.value.addEventListener("focus",B4),Z.value.addEventListener("focusout",zM));_.Ia(function(){var jy;U==null||(jy=U.value)==null||jy.removeEventListener("focus",B4);var c4;U==null||(c4=U.value)==null||c4.removeEventListener("focusout",zM);var XO;Z==null||(XO=Z.value)==null||XO.removeEventListener("focus",B4);var kx;Z==null||(kx=Z.value)==null||kx.removeEventListener("focusout",zM)})});
var l=_.Ui(function(){if(U&&U.value){var B4=Number(ZWG(U.value));HWN(B4);w(B4);U.value.style.setProperty("--gradient-percent",B4+"%");t(B4)}return!1}),I=_.Ui(function(){U&&U.value&&(O(U.value,c()),u(!c()));
return!1}),r={},E={},J={},CN={};
return _.d("desktop-shorts-volume-controls",{"on:pointerleave":_.Ui(function(){g(!1)}),
"on:pointerenter":_.Ui(function(){g(!0)}),
class:_.V7("ytdDesktopShortsVolumeControlsHost",(r.ytdDesktopShortsVolumeControlsHostVertical=x,r.ytdDesktopShortsVolumeControlsHostModern=_.h("web_shorts_modern_controls"),r.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.h("web_shorts_modern_controls")&&F()},r)),
el:N},_.d(_.y,{cond:function(){return!x()},
then:function(){var B4={};return _.d("div",{class:_.V7("ytdDesktopShortsVolumeControlsBackgroundScrim",(B4.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=F,B4.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.h("web_shorts_modern_controls")&&F()},B4))})}}),_.d("div",{class:_.V7((E.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=x,E))},_.d("button",{"aria-label":C,
title:C,el:Z,"on:click":I,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},B?_.d(_.Qt,{data:B,alt:C,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.d("div",{class:_.V7("ytdDesktopShortsVolumeControlsSliderContainer",(J.ytdDesktopShortsVolumeControlsSliderContainerExpanded=F,J.ytdDesktopShortsVolumeControlsSliderContainerVertical=x,J.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=x,J.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return F()&&
x()},J))},_.d("input",{"aria-label":_.CJ("VOLUME"),
title:_.CJ("VOLUME"),el:U,"on:input":l,type:"range",class:_.V7("ytdDesktopShortsVolumeControlsNativeSlider",(CN.ytdDesktopShortsVolumeControlsNativeSliderModern=_.h("web_shorts_modern_controls"),CN)),id:"volume-input",role:"slider","aria-valuenow":z,"aria-valuetext":P,"aria-valuemin":0,"aria-valuemax":100})))},"$g");var Ugr=_.q(function(N){var t=N.data;var O=N.overlayDensity;N={};return _.d("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.d(_.iF,{data:function(){return t().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(H){var A=H.data;
return _.d(_.Us,{data:function(){return(O==null?void 0:O())===1?Object.assign({},A(),{avatar:{avatarViewModel:Object.assign({},_.M(A().avatar,_.Pz),{avatarImageSize:"AVATAR_SIZE_M"})}}):A()}})}}),_.d(_.iF,{data:function(){return t().avatarStackViewModel}},{avatarStackViewModel:function(H){return _.d(_.C_,{data:H.data})}}),_.d(_.cu,{className:_.V7("ytReelChannelBarViewModelChannelName",(N.ytReelChannelBarViewModelChannelNameLarge=function(){return(O==null?void 0:O())===1},N)),
text:function(){return t().channelName},
linkInheritColor:!0,userInput:!0}),_.d("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.d(_.iF,{data:function(){return t().subscribeButtonViewModel}},{subscribeButtonViewModel:function(H){var A=H.data;
return _.d(_.DF,{data:function(){return(O==null?void 0:O())===1?Object.assign({},A(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},A().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):A()},
isOverlay:!1})},
buttonViewModel:_.Pu})),_.d("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.d(_.iF,{data:function(){var H,A;return(A=_.M((H=t())==null?void 0:H.sponsorButtonViewModel,VN0))==null?void 0:A.sponsorButton}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ah");var CdO=_.q(function(N){var t=function(){var A;return((A=N.overlayDensity)==null?void 0:A.call(N))===1},O=function(){return t()?22:16},H={};
return _.d("yt-reel-multi-format-link-view-model",{class:_.V7("ytReelMultiFormatLinkViewModelHost",(H.ytReelMultiFormatLinkViewModelHostTall=!0,H.ytReelMultiFormatLinkViewModelHostLarge=function(){return t()},H))},_.d(_.YO,{ariaLabel:function(){return N.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return N.data().command}},_.d("h3",{class:function(){return t()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.d(_.y,{cond:function(){return N.data().icon},
then:function(A){return _.d(_.Qt,{data:A,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:O})}}),_.d(_.cu,{text:function(){return N.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"bh");
CdO.idomCompat=!0;var Kv1=_.q(function(N){var t=N.data;var O=N.overlayDensity;var H=N.extractOverlay;var A=_.Fy("yt-shorts-suggested-action-view-model");N=_.D(_.b$(!1,void 0,"S60Hzc"));var Z=N.next().value,U=N.next().value;N=_.D(_.b$(!1,void 0,"O76chf"));var C=N.next().value,F=N.next().value,g=function(){return t().isMultiLineSa},B=_.cz(cUM,function(){var r,E;
return(E=(r=t().toggleableContent)==null?void 0:r.entityKey)!=null?E:""}),c=function(){var r,E,J;
return(J=t().toggleableContent)!=null&&J.entityKey?(E=(r=B())==null?void 0:r.value)!=null?E:!1:!1},u=function(){var r,E,J,CN,B4,zM,jy,c4,XO,kx,fN;
return t().toggleableContent?c()?(r=t().toggleableContent)==null?void 0:r.toggledData:(E=t().toggleableContent)==null?void 0:E.untoggledData:{primaryText:(c4=(J=t().defaultContent)==null?void 0:J.primaryText)!=null?c4:t().text,secondaryText:(CN=t().defaultContent)==null?void 0:CN.secondaryText,onTapCommand:(XO=(B4=t().defaultContent)==null?void 0:B4.onTapCommand)!=null?XO:t().onTapCommand,icon:(kx=(zM=t().defaultContent)==null?void 0:zM.icon)!=null?kx:t().icon,image:(fN=(jy=t().defaultContent)==null?
void 0:jy.image)!=null?fN:t().image}},S=function(){return g()?t().trailingTapTarget:void 0},b=function(r,E){return function(){return Z()?E:r}},z=function(){return{leadingSection:b("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(O==null?void 0:O())===1?b("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):b("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:b("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:b("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:b("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
N={};N=_.V7((N.ytShortsSuggestedActionViewModelStaticHost=function(){return!g()},N.ytShortsSuggestedActionViewModelDynamicHost=g,N.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return g()&&C()},N.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return g()&&!C()},N.ytShortsSuggestedActionViewModelExtractOverlay=function(){return H==null?void 0:H()},N));
_.Q8(function(){if(g()){var r=0,E;if((E=t().animationParams)==null?0:E.shouldExpand){var J,CN;r=((CN=(J=t().animationParams)==null?void 0:J.expansionDelaySecs)!=null?CN:0)*1E3}var B4,zM=((B4=t().animationParams)==null?0:B4.shouldExpand)?setTimeout(function(){U(!0)},r):void 0,jy,c4;
r=((jy=t().animationParams)==null?0:jy.visibilityDelaySecs)?((c4=t().animationParams)==null?NaN:c4.visibilityDelaySecs)*1E3:0;var XO=setTimeout(function(){F(!0)},r);
_.Ia(function(){zM&&clearTimeout(zM);clearTimeout(XO)})}});
var w=function(r){_.xJ(r,Object.assign({},{form:{element:A.value}}))},P=_.Ui(function(){var r,E=(r=u())==null?void 0:r.onTapCommand;
E&&w(E)}),x=_.Ui(function(){var r,E;
if(r=(E=S())==null?void 0:E.onTapCommand)return w(r),!1}),l=_.FM({"vertical-align":"bottom",
"border-radius":function(){var r;return g()?((r=t().defaultContent)==null?0:r.isCircleImage)?"50%":"4px":"0px"},
width:function(){var r,E,J;return g()&&((r=t().defaultContent)==null?0:r.imageSize)?((J=(E=t().defaultContent)==null?void 0:E.imageSize)!=null?J:24)+"px":null},
height:function(){var r,E,J;return g()&&((r=t().defaultContent)==null?0:r.imageSize)?((J=(E=t().defaultContent)==null?void 0:E.imageSize)!=null?J:24)+"px":null}}),I={};
return _.d("yt-shorts-suggested-action-view-model",{class:N,el:A},_.d("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.d("button",{class:_.V7(function(){return g()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var r;
return(r=t().useFullRoundedBorder)!=null&&r?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!S()&&g()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":g()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var r;
return(r=t().disableFixedHeight)!=null&&r?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(I.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(O==null?void 0:O())===1},I.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return H==null?void 0:H()},I)),
"on:click":P},_.d(_.aw,{model:{color:4}}),_.d("div",{class:_.V7(function(){return g()?z().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.d(_.y,{cond:function(){var r;
return(r=u())==null?void 0:r.image},
then:function(r){return _.d(_.Qt,{data:r,alt:"",className:function(){return g()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:l})}}),_.d(_.y,{cond:function(){var r,E;
return(r=u())==null?void 0:(E=r.icon)==null?void 0:E.iconType},
then:function(r){return _.d(_.dq,{icon:r,active:c,className:function(){return g()?Z()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.d("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.d(_.y,{cond:function(){var r;
return(r=u())==null?void 0:r.primaryText},
then:function(r){var E={};return _.d("div",{class:_.V7("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(E.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(O==null?void 0:O())===1},E))},_.d(_.cu,{text:r}))}}),_.d(_.y,{cond:function(){var r;
return(r=u())==null?void 0:r.secondaryText},
then:function(r){return _.d("div",{class:function(){return z().secondaryText()}},_.d(_.cu,{text:r}))}}))),_.d(_.y,{cond:S,
then:function(r){return _.d("div",{class:_.V7(function(){return z().trailingSection()},function(){var E,J;
return(H==null?void 0:H())&&((J=(E=z()).trailingSectionExtractOverlay)==null?void 0:J.call(E))||""}),
"aria-label":function(){var E;return(E=r().a11yLabel)!=null?E:""},
"on:click":x,role:"button",tabindex:0},_.d(_.aw,{model:{color:4}}),_.d(_.dq,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ch");var Fv1=_.q(function(N){var t=N.data;var O=N.overlayDensity;var H=_.Fy("yt-shorts-video-title-view-model");N=_.Ui(function(U){if(_.YS(_.zE(U),H.value,["A".toString()]))return!1;(U=t().truncatedTextOnTapCommand)&&_.xJ(U);return!1});
var A={},Z={};return _.d("yt-shorts-video-title-view-model",{el:H,class:_.V7("ytShortsVideoTitleViewModelHost",(A.ytShortsVideoTitleViewModelHostClickable=function(){return!!t().truncatedTextOnTapCommand},A)),
"on:click":N},_.d("h2",{class:_.V7("ytShortsVideoTitleViewModelShortsVideoTitle",(Z.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(O==null?void 0:O())===1},Z))},_.d(_.cu,{text:function(){return t().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(O==null?void 0:O())===1}})))},"dh");_.dgx=_.q(function(N){var t=N.data;var O=N.overlayDensity;var H=N.extractOverlay;var A=function(){return(O==null?void 0:O())===1};
return _.d("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.d(_.iF,{data:function(){return t().metadataItems}},{badgeViewModel:function(Z){Z=Z.data;
return _.d("div",{class:_.V7(function(){return A()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.d(_.L_,{data:Z}))},
playerDisclosureViewModel:function(Z){Z=Z.data;return _.d("div",{class:_.V7(function(){return A()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.d(_.Z8z,{data:Z,
extractOverlay:H}))},
shortsSuggestedActionViewModel:function(Z){Z=Z.data;return _.d("div",{class:_.V7(function(){return A()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.d(Kv1,{data:Z,
overlayDensity:O,extractOverlay:H}))},
reelChannelBarViewModel:function(Z){Z=Z.data;var U={};return _.d("div",{class:_.V7("ytReelMetapanelViewModelMetapanelItem",(U.ytReelMetapanelViewModelExpansive=function(){return A()},U))},_.d(Ugr,{data:Z,
overlayDensity:O}))},
reelMultiFormatLinkViewModel:function(Z){Z=Z.data;var U={};return _.d("div",{class:_.V7("ytReelMetapanelViewModelMetapanelItem",(U.ytReelMetapanelViewModelExpansive=function(){return A()},U))},_.d(CdO,{data:Z,
overlayDensity:O}))},
shortsVideoTitleViewModel:function(Z){Z=Z.data;var U={};return _.d("div",{class:_.V7("ytReelMetapanelViewModelMetapanelItem",(U.ytReelMetapanelViewModelExpansive=function(){return A()},U))},_.d(Fv1,{data:Z,
overlayDensity:O}))},
reelSoundMetadataViewModel:function(Z){Z=Z.data;var U={};return _.d("div",{class:_.V7("ytReelMetapanelViewModelMetapanelItem",(U.ytReelMetapanelViewModelExpansive=function(){return A()},U))},_.d(_.dC1,{data:Z,
overlayDensity:O}))},
toggleButtonViewModel:function(Z){Z=Z.data;var U={};return _.d("div",{class:_.V7("ytReelMetapanelViewModelMetapanelItem",(U.ytReelMetapanelViewModelExpansive=function(){return A()},U))},_.d(_.N3,{data:Z}))}}))},"eh");var g3J=_.q(function(N){var t=_.RH(N,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),O=t.size,H=t.onTap,A=t.disabled,Z=t.tooltipText;return _.d("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.d(_.et,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:O(),disabled:A(),tooltipText:Z(),onTap:H}},
iconName:N.iconType}))},"fh"),y_i=_.q(function(N){function t(B){B.stopPropagation();
B.code==="ArrowUp"?(B.preventDefault(),UbG(C.value)):B.code==="ArrowDown"?(B.preventDefault(),CSv(C.value)):B.code==="KeyM"?VkS():(B.code==="KeyK"||B.code==="Space")&&Dbv(F())}
var O=_.RH(N,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});N=O.previousButtonDisabled;var H=O.nextButtonDisabled,A=O.data,Z=O.playabilityStatus,U=O.previewThumbnail,C=_.Fy("ytd-shorts-miniplayer-overlay"),F=_.cH(_.wuQ),g;_.lf(function(){(g=_.Qs(C.value))&&g.addEventListener("keydown",t)});
_.Ia(function(){var B;(B=g)==null||B.removeEventListener("keydown",t)});
O=function(){var B,c,u;return(B=A())==null?void 0:(c=B.reelPlayerOverlayRenderer)==null?void 0:(u=c.likeButton)==null?void 0:u.likeButtonRenderer};
return _.d("ytd-shorts-miniplayer-overlay",{el:C,class:"ytdShortsMiniplayerOverlayHost"},_.d("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.FM({"background-image":function(){var B=U();return B?'url("'+_.Ne(B.thumbnails)+'")':""}})}),_.d("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.d("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.d(g3J,{iconType:function(){var B=F();
return B===2||B===-1||B===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Dbv(F())},
tooltipText:function(){var B=F();return B===1||B===3?_.CJ("PLAYER_LABEL_PAUSE"):_.CJ("PLAYER_LABEL_PLAY")}}),_.d(_.Dg1,{orientation:"horizontal_right"})),_.d("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.d(g3J,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:N,onTap:function(){UbG(C.value)},
tooltipText:_.CJ("PREVIOUS_VIDEO_LABEL")}),_.d(g3J,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:H,onTap:function(){CSv(C.value)},
tooltipText:_.CJ("NEXT_VIDEO_LABEL")}),_.h("web_shorts_pip_like_button")?_.d("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.d(erz,{buttonTooltipPosition:"left",data:O,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.d("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.d(_.y,{cond:function(){var B,c;return _.M((B=A())==null?void 0:(c=B.reelPlayerOverlayRenderer)==null?void 0:c.metapanel,
HXX)},
then:function(B){return _.d("div",{class:_.V7("ytdShortsMiniplayerOverlayInteractive")},_.d(_.dgx,{data:B}))}})),_.d("div",{class:_.V7("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var B;return!((B=A())==null||!B.adsOverlay)||Z()&&!WfG(Z())}},_.d("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.d(_.VOi,null)))),_.d(_.y,{cond:function(){var B=A(),c,u;
B=_.M(B==null?void 0:(c=B.adsOverlay)==null?void 0:(u=c.fulfillmentContent)==null?void 0:u.fulfilledLayout,fXX);return _.M(B==null?void 0:B.renderingContent,QBf)},
then:function(B){return _.d("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.d(U6Q,{data:B}))}}))},"hh");var Kmp=_.q(function(){var N=_.D(_.b$(new _.aN(NaN,NaN),void 0,"hq9Bjf")),t=N.next().value,O=N.next().value;N=_.D(_.b$(!1,void 0,"Mu3aZc"));var H=N.next().value,A=N.next().value,Z=_.D(_.b$(!1,void 0,"LGtoFb"));N=Z.next().value;var U=Z.next().value,C=_.cY().resolve(_.kf).miniplayerPropSignalMap[0],F=C.data,g=C.shortsData,B=C.nextButtonDisabled,c=C.shortsPreviewThumbnail,u=C.previousButtonDisabled,S=C.externalPlaylistData;Z=C.toastData;var b=C.playabilityStatus,z=C.isDisabled,w=C.playerVe,P=C.closeVe;
C=_.cH(_.Hy);_.K9("yt-pip-window-resized",function(r){O(r)});
_.K9("yt-activate-pip-miniplayer",function(){return _.K(function(r){U(!0);_.Ty(r)})});
var x=function(){var r;return!((r=S())==null||!r.contents)&&H()},l=function(){var r=t(),E=!!F(),J=x();
r=r.clone();E&&(r.height-=76);J&&(r.height-=285);return r},I=function(){A(!H())};
_.rp(function(){var r=w(),E=_.z8(11),J=_.pv(11);E&&J&&r&&(_.qp(E,J,r),J=P())&&(_.fJ(E,r,[J]),_.Wc(E,[J]))},"fHkmfb");
return _.d("ytd-pip-container",{class:"ytdPipContainerHost"},_.d(_.y,{cond:N,then:function(){return _.d(_.Svm,{isDisabled:z,playabilityStatus:b,size:l,isPictureInPicture:!0})}}),_.d(_.y,{cond:F,
then:function(){return _.d(_.iz5,{data:F,expanded:H,onExpandClick:I,playlistData:S})}}),_.d(_.y,{cond:x,
then:function(){return _.d("div",{class:"ytdPipContainerPlaylistPanel"},_.d(_.TDz,{data:S,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.d(_.y,{cond:C,
then:function(){return _.d(y_i,{data:g,nextButtonDisabled:B,previousButtonDisabled:u,playabilityStatus:b,previewThumbnail:c})}}),_.d("div",{class:"ytdPipContainerToast"},_.d(_.hAq,{toastData:Z})))},"jh");var Qz=function(N,t,O){var H=this;this.pipController=N;this.JSC$19180_clientRoot=t;this.JSC$19180_pageRequestService=O;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=h_Q();this.watchPipEnabled=_.h("web_watch_pip");this.shortsPipEnabled=_.h("web_shorts_pip");this.JSC$19180_watchWhileEnabled=_.h("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;_.Jc(_.v5(),LJ9,function(A){H.isSingleOptionSurveyActive=A});
this.JSC$19180_onPlayerPlayVideo=this.JSC$19180_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);_.Uh(_.VM.getInstance(),this.miniplayerServiceActionMap,this.JSC$19180_clientRoot);N.pictureInPictureSupported()&&_.E7("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},YAY,bbm,uWi,pXi,Lv5,JzQ;
Qz.prototype.handleMediaSessionPipActivation=function(){var N=this,t;return _.K(function(O){_.Ry().mediaSessionPipActivation=!0;t=_.cY().resolve(_.J4);return t.isOnWatch()&&N.watchPipEnabled?(_.Ry().watchPipActivation=!0,_.Baq(N,t.data),O.jumpTo(0)):t.isOnShorts()&&N.shortsPipEnabled?(_.Ry().shortsPipActivation=!0,_.c_m(N),O.jumpTo(0)):N.isMiniplayerActive()&&N.watchPipEnabled&&!N.watchWhileMode?O.yield($g1(N),0):O.jumpTo(0)})};
var $g1=function(N){var t,O,H,A;return _.K(function(Z){if(Z.nextAddress==1)return t=!N.miniplayerToPipMode,O=N.playerElement,H=N.miniplayerData,A=N.watchResponse,Z.yield(N.deactivate(),2);if(Z.nextAddress!=3)return t?(_.Ry().mediaSessionPipActivation=!0,_.Ry().watchPipActivation=!0):_.Ry().miniplayerButtonActivation=!0,Z.yield(N.activate(O,H,A),3);N.miniplayerToPipMode=t;_.Ty(Z)})};
Qz.prototype.onDownloadedVideoDeleted=function(N){var t,O=_.M((t=this.miniplayerData)==null?void 0:t.watchEndpoint,_.rN),H,A;O&&((H=this.watchResponse)==null?void 0:(A=H.playerResponse)==null?void 0:A.offlineState)!==void 0&&(t=O.videoId)&&N&&t===N&&this.close()};
Qz.prototype.onShowMiniplayerCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u;return _.K(function(S){switch(S.nextAddress){case 1:return O=_.M(N,IhZ),A=(H=O)==null?void 0:H.miniplayerCommand,Z=_.M(A,_.rN),A&&Z&&!t.active?S.yield(_.A7.getInstance(),2):S.return();case 2:return U=S.yieldResult,S.yield((C=U)==null?void 0:C.get("yt-miniplayer-shown-video-id"),3);case 3:F=S.yieldResult;g=Z.videoId;if(!g||F===g)return S.return();B=_.cY().resolve(_.J4);if(B.isOnWatch())return _.J_(Error("Tj")),S.return();
c={channelItem:{externalId:btoa(g)}};t.readyToResumeVe=_.UM(121253,void 0,void 0,c);_.Ry().showMiniplayerCommandActivation=!0;return S.yield(_.oyB(t,A,!0),4);case 4:return t.active&&(_.mx(t,{readyToResumeVe:t.readyToResumeVe,isReadyToResume:!0}),t.isReadyToResume=!0),S.yield((u=U)==null?void 0:u.set("yt-miniplayer-shown-video-id",Z.videoId),5);case 5:t.readyToResumeVe=void 0,_.Ty(S)}})};
Qz.prototype.init=function(N){this.miniplayerEl?_.J_(new _.fF("MiniplayerService already initialized.")):this.miniplayerEl=N};
Qz.prototype.isInitialized=function(){var N=!!this.miniplayerEl;N||_.J_(new _.fF("MiniplayerService used before initialized."));return N};
_.Baq=function(N,t){if(N.isInitialized()){var O=_.p9Q(t.response,t.playerResponse),H=_.cY().resolve(_.J4).getPlayerFromWatch();_.Ry().currentEndpoint=O.watchEndpoint||null;N.activate(H,O,t)}};
_.c_m=function(N){if(N.isInitialized()){var t=_.cY().resolve(_.J4).getPlayerFromShorts();N.activate(t)}};
YAY=function(N,t){var O;(O=!N.isInitialized())||(O=_.cY().resolve(_.J4).isOnWatch()&&N.watchPipMode,O=!(N.isMiniplayerActive()&&(_.Ry().userActivation||_.Ry().lockupActivation||O)));if(O)return!1;j01(N,t)?_.r2(N):JzQ(N,t);return N.watchPipMode?!_.cY().resolve(_.J4).isOnWatch():!0};
Qz.prototype.isMiniplayerActive=function(){return this.active};
var j01=function(N,t){var O;t=(O=_.M(t,_.rN))==null?void 0:O.videoId;var H,A;N=(A=_.M((H=N.miniplayerData)==null?void 0:H.watchEndpoint,_.rN))==null?void 0:A.videoId;return t!=null&&t===N};
Qz.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.or(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.sl(this.miniplayerEl,"yt-navigate-home-action"))};
_.oyB=function(N,t,O,H){O=O===void 0?!1:O;var A,Z,U;return _.K(function(C){switch(C.nextAddress){case 1:if(N.active){C.jumpTo(2);break}A=_.cY().resolve(_.J4);if(U=(Z=N.playerElement)!=null?Z:A.getPlayerFromWatch()){C.jumpTo(3);break}return C.yield(_.cY().resolve(_.A5),4);case 4:U=A.getPlayerFromWatch();case 3:if(!U){_.J_(Error("Vj"));C.jumpTo(2);break}return C.yield(N.activate(U,H),2);case 2:return N.active?C.yield(JzQ(N,t,O),0):C.return()}})};
Qz.prototype.activate=function(N,t,O){var H=this,A,Z,U,C,F,g,B,c,u;return _.K(function(S){switch(S.nextAddress){case 1:if(!H.isInitialized())return S.return();if(!N)return _.J_(Error("Vj")),S.return();if(_.Cy0()||H.isMiniplayerActive())var b=!0;else b=_.Ry().watchPipActivation||_.Ry().watchWhileActivation,_.cY().resolve(_.J4).isOnWatch()&&!b?(_.J_(new _.fF("miniplayer activated on watch page")),b=!0):b=_.Ry().watchWhileActivation?H.userDeactivatedWatchWhile||!!document.pictureInPictureElement||ScN():
!1;if(b)return UNB(),S.return();A=_.Ry().mediaSessionPipActivation;Z=_.Ry().shortsPipActivation;U=_.Ry().watchPipActivation;F=(C=_.Ry().watchWhileActivation)||U;g=U||Z;if(!H.pictureInPictureEnabled()||!g){S.jumpTo(2);break}return S.yield(ibJ(H,A),3);case 3:if(!S.yieldResult)return _.J_(Error("Uj")),UNB(),S.return();case 2:return H.setActive(!0),H.watchResponse=O,H.playerElement=N,H.updateMiniplayerData(t),S.yield(uWi(H,N),4);case 4:if(!H.active)return _.J_(new _.fF("miniplayer deactivated during activation")),
H.removePlayerListeners(),S.return();b=_.cY().resolve(_.$8);b.addEventListener("yt-navigate",_.Fb(H,H.onPlaylistNavigate));b.addEventListener("yt-playlist-data-updated",_.Fb(H,H.JSC$19180_onPlaylistDataUpdated));H.JSC$19180_onPlaylistDataUpdated();UNB();H.JSC$19180_watchWhileEnabled&&_.S7O(H,C);H.pictureInPictureEnabled()&&H.shortsPipEnabled&&(H.shortsPipMode=Z,_.v5().dispatch(JN_(H.shortsPipMode)));H.pictureInPictureEnabled()&&H.watchPipEnabled&&(H.watchPipMode=U,_.MlO(H.handleMediaSessionPipActivation));
H.player&&(B=H.player.getPlayerState(),c=B===1,_.v5().dispatch(DXX(B)),_.Np(H.miniplayerEl,"yt-miniplayer-play-state-changed",[c]),_.Ry().isVideoPlaying=c);_.Np(H.miniplayerEl,"yt-miniplayer-endpoint-changed");hSz(H);_.MOq(H);if(H.shortsPipMode||H.watchPipMode)S=S.yield(_.sl(H.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{b=S.yield;var z=_.sl(H.miniplayerEl,"yt-activate-miniplayer",[F])[0];S=b.call(S,z,6)}return S;case 6:if(H.watchResponse){b=H.getScreenLayer();z=_.z8(0);var w=CDt(0);z&&w&&
(_.ar(z,w,b),b===0&&Djx(void 0,0))}bbm(H);pXi(H,!0);(u=H.getPlayerElement())==null||u.focusOnPlayer();_.Ty(S)}})};
Qz.prototype.updateMiniplayerData=function(N){this.miniplayerData=N;_.mx(this,{data:N})};
_.MOq=function(N){var t,O,H=((t=N.miniplayerData)==null?void 0:(O=t.miniplayerRenderer)==null?void 0:O.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";t=N.watchWhileMode||N.watchPipMode?H&&!_.cY().resolve(_.J4).isOnWatch():H;_.mx(N,{isDisabled:t});var A,Z;O=_.M((A=N.miniplayerData)==null?void 0:(Z=A.miniplayerRenderer)==null?void 0:Z.minimizedEndpoint,_.GL);t&&O&&_.cY().resolve(_.HD).openSheet({openPopupActionCommand:{openPopupAction:O}},N.miniplayerEl)};
bbm=function(N){if(N.watchResponse&&!Lv5(N)){var t,O=(t=N.watchResponse.playerResponse)==null?void 0:t.trackingParams;O&&(_.mx(N,{expandVe:_.UM(35989),closeVe:_.UM(34699),readyToResumeCloseVe:_.UM(131070),repositionVe:_.UM(226204),resizeVe:_.UM(226205)}),_.mx(N,{playerVe:_.ib(O)}))}};
uWi=function(N,t){return _.K(function(O){if(O.nextAddress==1)return t.preparePlayer(),O.yield(t.getPlayerPromise(),2);N.player=O.yieldResult;N.player&&(N.player.addEventListener("onPlayVideo",N.JSC$19180_onPlayerPlayVideo),N.player.addEventListener("onCloseMiniplayer",N.onPlayerCloseMiniplayer),N.player.addEventListener("onExpandMiniplayer",N.onPlayerExpandMiniplayer),N.player.addEventListener("onStateChange",N.onPlayerStateChange));_.Ty(O)})};
_.V=Qz.prototype;_.V.JSC$19180_onPlayerPlayVideo=function(N){var t=N.sessionData&&"autonav"in N.sessionData,O;N.sessionData&&N.sessionData.itct&&(O=N.sessionData.itct);var H=N.watchEndpoint;t=H&&t?_.k$M(H,O):_.sK(N.videoId,N.listId||void 0,O);N.sessionData&&_.m2(_.M(t.commandMetadata,_.Da).url,N.sessionData);JzQ(this,t)};
_.V.onPlayerExpandMiniplayer=function(){_.r2(this)};
_.V.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.V.onPlayerStateChange=function(){if(this.player){var N=this.player.getPlayerState(),t=N===1;_.v5().dispatch(DXX(N));_.v5().dispatch(_.Kir(N));_.Np(this.miniplayerEl,"yt-miniplayer-play-state-changed",[t]);_.Ry().isVideoPlaying=t;if(N===0){t=!_.Ta.getInstance().isAutoplaySetExplicitly();var O,H,A,Z,U,C,F=(O=this.watchResponse.response)==null?void 0:(H=O.contents)==null?void 0:(A=H.twoColumnWatchNextResults)==null?void 0:(Z=A.autoplay)==null?void 0:(U=Z.autoplay)==null?void 0:(C=U.autoplayExplicitChoiceDialogRenderer)==
null?void 0:C.confirmDialogRenderer;t&&F&&this.player.setAutonavState(1)}N===0&&this.watchWhileMode&&this.deactivate()}};
_.V.onPlaylistNavigate=function(N,t){var O=this,H,A,Z,U,C,F,g;return _.K(function(B){if(B.nextAddress==1){if(!_.M(t.endpoint,_.rN))return B.return();_.Ry().currentEndpoint=t.endpoint;_.Np(O.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.cY().resolve(_.J4).isOnWatch()&&(O.watchWhileMode||O.watchPipMode))return B.return();N.stopPropagation();(Z=(A=_.M((H=t.endpoint)==null?void 0:H.commandMetadata,_.Da))==null?void 0:A.url)&&t.tempData&&!_.WW.isEmpty(t.tempData)&&_.m2(Z,t.tempData);U={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};C=new KHZ(function(){return O.getPlayerElement()},U,{layer:O.getScreenLayer()});
F=function(c){C.processChunk({endpoint:t.endpoint,data:c})};
zSr(O);O.miniplayerFetchRequest=Y7q(O,t.endpoint,F);_.Mo(B,2);return B.yield(O.miniplayerFetchRequest,4)}if(B.nextAddress!=2)return g=B.yieldResult,a4O(O,g),_.Do(B,0);_.ax(B);_.Ty(B)})};
_.V.JSC$19180_onPlaylistDataUpdated=function(){var N=_.cY().resolve(_.$8).getPlaylistData();this.hasPlaylistData=!!N;_.mx(this,{externalPlaylistData:N||{}})};
_.V.close=function(N){if(this.isInitialized())if(N){if(!((this.watchWhileMode||this.watchPipMode)&&_.cY().resolve(_.J4).isOnWatch()||this.shortsPipMode)){var t;(t=this.getPlayerElement())==null||t.stop()}this.deactivate()}else _.h7().closeMiniplayer(this.miniplayerEl)};
_.V.deactivate=function(N){var t=this,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1){if(!t.isInitialized()||!t.active)return U.return();t.setActive(!1);zSr(t);(O=!!N&&j01(t,N))&&t.isSingleOptionSurveyActive&&_.sl(t.miniplayerEl,"yt-show-watch-page-survey",[t.isSingleOptionSurveyActive]);return U.yield(Ta1(t),2)}if(U.nextAddress!=3){pXi(t,!1);t.isReadyToResume=!1;t.watchResponse=void 0;t.updateMiniplayerData(void 0);t.shortsPipMode&&(t.shortsPipMode=!1,_.v5().dispatch(JN_(t.shortsPipMode)),Iyx(t.pipController),
(H=t.player)==null||H.setInternalSize(NaN,NaN));t.watchPipMode&&(t.watchPipMode=!1,Iyx(t.pipController));(A=t.watchWhileMode)&&_.S7O(t,!1);t.removePlayerListeners();var C=_.cY().resolve(_.$8);C.removeEventListener("yt-navigate",_.Fb(t,t.onPlaylistNavigate));C.removeEventListener("yt-playlist-data-updated",_.Fb(t,t.JSC$19180_onPlaylistDataUpdated));_.Ry().currentEndpoint=null;_.Np(t.miniplayerEl,"yt-miniplayer-endpoint-changed");t.playerElement=null;UNB();if(t.shortsPipMode||t.watchPipMode)U=U.jumpTo(3);
else{C=U.yield;var F=_.sl(t.miniplayerEl,"yt-deactivate-miniplayer",[O,A])[0];U=C.call(U,F,3)}return U}(Z=t.player)==null||Z.setInternalSize(NaN,NaN);t.player=null;_.Ty(U)})};
var Ta1=function(N){var t;return _.K(function(O){t=_.cY().resolve(_.J4);return N.shortsPipMode?O.yield(t.movePlayerToShorts(N.playerElement),0):O.yield(t.movePlayerToWatch(N.playerElement),0)})};
Qz.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19180_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Qz.prototype.setActive=function(N){this.active=N;this.isSingleOptionSurveyActive?_.sl(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.sl(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.v5().dispatch(_.H5({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.S7O=function(N,t){N.watchWhileMode=t;_.mx(N,{watchWhile:t})};
pXi=function(N,t){if(!Lv5(N))if(N.shortsPipMode||N.watchPipMode){var O;(O=N.player)==null||O.setDocumentPictureInPicture(t)}else{var H;(H=N.player)==null||H.setMinimized(t)}};
Lv5=function(N){return N.watchWhileMode&&_.h("kevlar_watch_while_counterfactual")};
_.r2=function(N){var t;return _.K(function(O){switch(O.nextAddress){case 1:if(!N.isInitialized())return O.return();_.Mo(O,2);return O.yield(N.miniplayerFetchRequest,4);case 4:_.Do(O,3);break;case 2:_.ax(O);case 3:N.watchResponse&&N.miniplayerData&&N.miniplayerData.watchEndpoint?(t={url:N.watchResponse.url,endpoint:N.miniplayerData.watchEndpoint,data:N.watchResponse,miniplayer:!0},_.or(N.miniplayerEl,"yt-navigate-cache",t)):N.miniplayerData&&N.miniplayerData.watchEndpoint&&_.or(N.miniplayerEl,"yt-navigate",
{endpoint:N.miniplayerData.watchEndpoint}),_.Ty(O)}})};
JzQ=function(N,t,O){var H,A,Z,U;return _.K(function(C){if(C.nextAddress==1){if(j01(N,t))return C.return();_.Ry().currentEndpoint=t;_.Np(N.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Np(N.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Ry().isVideoPlaying=!1;H={clientParams:{miniplayer:!0,autoSaveToQueue:!O}};A=new KHZ(function(){return N.getPlayerElement()},H,{layer:N.getScreenLayer(),
parentLayer:0},void 0,N.readyToResumeVe);Z=function(F){var g,B,c=Object.assign({},(g=F.playerResponse)==null?void 0:(B=g.playerConfig)==null?void 0:B.playbackStartConfig,{startPaused:!0}),u;O&&((u=F.playerResponse)==null?0:u.playerConfig)&&(F.playerResponse.playerConfig.playbackStartConfig=c);A.processChunk({endpoint:t,data:F})};
zSr(N);N.miniplayerFetchRequest=Y7q(N,t,Z);_.Mo(C,2);return C.yield(N.miniplayerFetchRequest,4)}if(C.nextAddress!=2)return U=C.yieldResult,a4O(N,U),_.Do(C,0);_.ax(C);_.Ty(C)})};
Qz.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var zSr=function(N){N.miniplayerFetchRequest&&(N.miniplayerFetchRequest.cancel&&N.miniplayerFetchRequest.cancel("Active request obsolete"),N.miniplayerFetchRequest=null)},Y7q=function(N,t,O){var H,A=(H=_.M(t.commandMetadata,_.Da))==null?void 0:H.url,Z;
H=!A||_.h("disable_miniplayer_tempdata")?{}:(Z=R8l(A))!=null?Z:{};return nS(N.JSC$19180_pageRequestService,t,H,window.location.href,"watch",function(U,C){O(C)},function(U){return U!==N.miniplayerFetchRequest})},a4O=function(N,t){var O;
_.K(function(H){if(!t)return H.return();N.watchResponse=t;bbm(N);hSz(N);O=_.p9Q(t.response,t.playerResponse);if(N.isMiniplayerActive()){t.response&&(N.playerElement.watchNextData=t.response);var A=_.WW.getValueByKeys.apply(_.WW,[t].concat(_.W6(uva)));_.WW.getValueByKeys.apply(_.WW,[t].concat(_.W6(phR)))&&A&&_.cY().resolve(_.$8).setAutoplayRenderer(A);if(A)if(_.h("kevlar_is_pupi_enabled")){var Z,U,C,F,g,B=((Z=t.response)==null?0:(U=Z.playerOverlays)==null?0:(C=U.playerOverlayRenderer)==null?0:(F=C.autonavToggle)==
null?0:(g=F.autoplaySwitchButtonRenderer)==null?0:g.enabled)?2:1;_.Ta.getInstance().setState(B,!1,!1)}else Z=USO()?2:1,(B=N.player)==null||B.setAutonavState(Z);N.updateMiniplayerData(O);_.MOq(N)}_.Ty(H)})},hSz=function(N){var t,O,H=(t=N.watchResponse)==null?void 0:(O=t.playerResponse)==null?void 0:O.playabilityStatus,A;
t=H==null?void 0:(A=H.miniplayer)==null?void 0:A.miniplayerRenderer;(t==null?void 0:t.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&t.minimizedEndpoint&&_.tb(N.miniplayerEl,[t.minimizedEndpoint]);_.mx(N,{playabilityStatus:H})};
Qz.prototype.openToast=function(N,t){_.mx(this,{toastData:{data:N,label:t}})};
_.mx=function(N,t){(0,N.miniplayerPropSignalMap[1])(t)};
Qz.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var N;return this.playerElement?this.playerElement:(N=_.O6(this.miniplayerEl).querySelector("#player-container"))==null?void 0:N.firstElementChild};
Qz.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var ibJ=function(N,t){t=t===void 0?!1:t;var O,H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1){if(!N.pictureInPictureSupported()||!dbG()&&!t)return F.return(!1);O=wX5(N);H=O.width;A=O.height;return F.yield(N.pipController.openWindow({width:H,height:A}),2)}Z=F.yieldResult;U=N.pipController.getWindow();if(!U||!Z)return F.return(!1);U.document.body.style.overflow="hidden";C=FmG(U);lyr(N.pipController,function(){eSO(N);C()});
return F.return(!0)})},wX5=function(N){var t=_.Ry().shortsPipActivation,O,H;
N=t?.5625:(H=(O=N.player)==null?void 0:O.getVideoAspectRatio())!=null?H:16/9;O=Math.min(window.innerWidth,window.innerHeight)/2;t=t?0:76;return N>1?new _.aN(O,t+O/N):new _.aN(O*N,t+O)},eSO=function(N){var t;
_.K(function(O){t=_.cY().resolve(_.J4);return t.isOnWatch()&&N.watchPipMode||t.isOnShorts()&&N.shortsPipMode?O.yield(N.deactivate(),0):N.miniplayerToPipMode?O.yield($g1(N),0):N.watchPipMode?O.yield(_.r2(N),0):O.jumpTo(0)})};
Qz.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.cv.Object.defineProperties(Qz.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Qz[$v]=[Qa1,M$0,_.bl];var Pdm="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(" "),
XXf="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(" "),xgm="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
kWz="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var q75=function(N,t,O){_.k1.call(this);this.store=N;this.panelController=t;this.pageContentExtractor=O;this.isInitialized=!1};
_.p(q75,_.k1);
q75.prototype.init=function(N){var t=this;this.isInitialized||(this.isInitialized=!0,this.environment=N!=null?N:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.Wz.currentPageSubTypeSelector(this.store.getState()),N=_.Jc(this.store,_.Wz.currentPageSubTypeSelector,function(O){a:if(_.f4r(t))switch(O){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var H=!0;break a;default:H=!1}else H=!1;H&&t.panelController.hidePanel({identifier:"PAai_companion"});
t.pageSubtype!==O&&(t.pageSubtype=O)}),this.addOnDisposeCallback(N))};
_.Vu5=function(N,t){if(_.f4r(N))switch(t){case "watch":var O,H;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(O=_.FF())==null?void 0:(H=O.getVideoData())==null?void 0:H.video_id};case "search":var A,Z,U;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(Z=(A=N.pageContentExtractor)==null?void 0:woi(A))!=null?Z:[],entityId:(U=(new URLSearchParams(window.location.search)).get("search_query"))!=null?U:void 0};case "companion-canvas":var C,F;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(F=(C=
N.pageContentExtractor)==null?void 0:woi(C))!=null?F:[]};default:var g,B;N={videoIds:(B=(g=N.pageContentExtractor)==null?void 0:woi(g))!=null?B:[]};return _.h("enable_ai_companion_default_page_context")?N:void 0}};
_.f4r=function(N){return N.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
q75[$v]=[_.VT,_.Of,_.BY(e3i)];_.n3r=_.q(function(N){return _.d("yt-ai-companion-attachment-view-model",{el:_.E4(_.wZ(function(){return N.data().rendererContext})),
class:_.V7("ytAiCompanionAttachmentViewModelHost",N.className)},_.d("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.d(_.y,{cond:function(){return N.data().title},
then:function(t){return _.d("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return t().content}},_.d(_.cu,{text:t}))}}),_.d(_.y,{cond:function(){return _.nx(N.data().trailingTitleIcon)},
then:function(t){return _.d("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.d(_.Qt,{data:t,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.d(_.y,{cond:function(){return N.data().description},
then:function(t){return _.d("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.d(_.cu,{text:t}))}}),_.d(_.y,{cond:function(){return N.data().bottomItem},
then:function(t){return _.d("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.d(_.iF,{data:t},{tableViewModel:fRX}))}}))},"lh");_.Wvi=_.q(function(N){return _.d("yt-channel-attribution-view-model",{class:_.V7("ytChannelAttributionViewModelHost",N.className)},_.d("div",{class:"ytChannelAttributionViewModelUpper"},_.d(_.iF,{data:function(){return N.data().avatar}},{decoratedAvatarViewModel:_.Us}),_.d("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.d(_.cu,{text:function(){return N.data().title}}))),_.d("div",{class:"ytChannelAttributionViewModelBottom"},_.d(_.cu,{text:function(){return N.data().subtitle}})))},"mh");var r_O=_.q(function(N){var t=_.D(_.b$(!1,void 0,"MFRKRb")),O=t.next().value,H=t.next().value,A=function(){return N.data().activeRenderer},Z=function(){return N.data().inactiveRenderer};
return _.d("yt-channel-disclosure-view-model",{"on:mouseleave":_.Ui(function(){H(!1)}),
"on:mouseover":_.Ui(function(){H(!0)}),
class:_.V7("ytChannelDisclosureViewModelHost",N.className)},_.d(_.y,{cond:function(){return O()},
then:function(){return _.d(_.iF,{data:A},{channelAttributionViewModel:_.Wvi})},
else:function(){return _.d(_.iF,{data:Z},{decoratedAvatarViewModel:_.Us})}}))},"nh");var I45=null;var l4O={},Q05=(l4O.initialized={priority:10,callback:function(N){var t=_.cY();t.addProvider({provide:Trp,useClass:mCq});t.addProvider({provide:_.Qo5,useFactory:function(){return new waZ}});
t.addProvider({provide:hK,useValue:_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});t.addProvider({provide:Bcz,useValue:5184E6});t.addProvider({provide:nmf,useValue:_.zh()});t.addProvider({provide:dY5,useClass:MUy});t.addProvider({provide:uX,useClass:uX});t.addProvider({provide:_.A5,useFactory:function(){return oAR.promise}});
t.addProvider({provide:_.N7Z,useFactory:function(){return _.sSp.promise}});
t.addProvider({provide:wqQ,useValue:function(){var F;return((F=_.si())==null?void 0:F.getPlayer())||null}});
var O={};t.addProvider((O.provide=_.C4,O.useFactory=function(F,g){return function(){return DJS(F,g)}},O[$v]=[hK,
Bcz],O));O={};t.addProvider((O.provide=_.fc,O.useClass=al1,O[$v]=[hK,Bcz],O));O={};t.addProvider((O.provide=_.YFy,O.useClass=Pu1,O[$v]=[_.fc],O));t.addProvider({provide:gB,useFactory:_.v5});t.addProvider({provide:ZZ,useFactory:_.v5});t.addProvider({provide:SHq,useFactory:_.v5});t.addProvider({provide:Z1O,useFactory:_.v5});t.addProvider({provide:_.VT,useFactory:_.v5});t.addProvider({provide:Qd,useValue:_.d8});t.addProvider({provide:nlz,useClass:mES});t.addProvider({provide:xo5,useClass:X65});t.addProvider({provide:Rc,
useClass:Rc});t.addProvider({provide:EV,useClass:EV});t.addProvider({provide:It,useClass:It});t.addProvider({provide:GY,useClass:GY});t.addProvider({provide:Og,useClass:Og});t.addProvider({provide:qW,useClass:qW});t.addProvider({provide:MW,useClass:MW});t.addProvider({provide:_.mo,useValue:DVq});O={};t.addProvider((O.provide=Nb5,O.useFactory=function(F){return F.watchEndpointMap||{}},O[$v]=[_.mo],O));
O={};t.addProvider((O.provide=tR5,O.useFactory=function(F){return F.reelWatchEndpointMap||{}},O[$v]=[_.mo],O));
t.addProvider({provide:_.ow,useFactory:_.gF});t.addProvider({provide:UV,useFactory:_.d0});O={};t.addProvider((O.provide=F4M,O.useFactory=function(F){return function(g){var B={automatedLogEventSource:5};B=B===void 0?{}:B;var c,u,S=(u=_.M((c=g.endpoint)==null?void 0:c.commandMetadata,_.Da))==null?void 0:u.rootVe;if(S){var b,z;if(c=g.previousCsn||((z=_.M((b=g.endpoint)==null?void 0:b.commandMetadata,Saa))==null?void 0:z.parentCsn)){var w=w===void 0?{}:w;if(c!==_.z8(w.layer)||S!==CDt(w.layer))yVN(c,w.cttAuthInfo,
w.layer||0),Djx(c,w.layer||0),b=w.layer||0,_.Gm(UjS(b===void 0?0:b),S);B.parentCsn=c}g.endpoint&&c?mly(F,g.endpoint,B):_.Ws(F,S,void 0,B);var P;((P=g.response)==null?0:P.trackingParams)&&F.graftServerVe(g.response.trackingParams);var x;((x=g.playerResponse)==null?0:x.trackingParams)&&F.graftServerVe(g.playerResponse.trackingParams);var l;((l=g.reelWatchSequenceResponse)==null?0:l.trackingParams)&&F.graftServerVe(g.reelWatchSequenceResponse.trackingParams)}}},O[$v]=[_.ow],O));
O={};t.addProvider((O.provide=MG5,O.useClass=h3O,O[$v]=[Qd,_.VT],O));O={};t.addProvider((O.provide=uZ,O.useClass=uZ,O[$v]=[_.A5,_.VT],O));O={};t.addProvider((O.provide=cE,O.useClass=cE,O[$v]=[ZZ,_.jo],O));t.addProvider({provide:_.P$1,useClass:EM5});O={};t.addProvider((O.provide=_.Of,O.useClass=kg5,O[$v]=[_.P$1,_.BY(_.ZF)],O));t.addProvider({provide:_.nP,useClass:kix});O={};t.addProvider((O.provide=Wt,O.useClass=Wt,O[$v]=[_.nP,_.A5,_.Sc,_.jo],O));t.addProvider({provide:_.HD,useClass:M$});t.addProvider({provide:_.wWO,
useClass:zgr});t.addProvider({provide:_.A6,useClass:Sx});_.h("enable_ai_companion")&&(t.addProvider({provide:_.ZF,useClass:nMx}),t.addProvider({provide:_.SAY,useClass:Wap}),t.addProvider({provide:e3i,useClass:aym}),t.addProvider({provide:Um,useClass:Um}),t.addProvider({provide:DG,useClass:DG}),t.addProvider({provide:MPp,useValue:r_O}),t.addProvider({provide:_.by0,useValue:_.n3r}));_.h("enable_ai_chat_controller")&&t.addProvider({provide:_.VY,useClass:q75});O={};t.addProvider((O.provide=_.At,O.useClass=
mYx,O[$v]=[_.At],O));t.addProvider({provide:_.IF,useClass:YGr});t.addProvider({provide:jh,useClass:jh});t.addProvider({provide:QY,useClass:QY});t.addProvider({provide:L$,useClass:L$});O={};t.addProvider((O.provide=Om,O.useClass=Om,O[$v]=[_.jo,_.Sc],O));t.addProvider({provide:xW,useClass:hh});O={};t.addProvider((O.provide=f$,O.useClass=f$,O[$v]=[_.HD,xW],O));O={};t.addProvider((O.provide=eh,O.useClass=eh,O[$v]=[_.HD],O));O={};t.addProvider((O.provide=yY,O.useClass=yY,O[$v]=[gB,dB,_.jo],O));t.addProvider({provide:dB,
useClass:Uw5});_.h("web_enable_feedback_endpoint_resolver_batch_2")&&(O={},t.addProvider((O.provide=cP,O.useClass=cP,O[$v]=[gB],O)),O={},t.addProvider((O.provide=BP,O.useClass=BP,O[$v]=[dB],O)));O={};t.addProvider((O.provide=kW,O.useClass=kW,O[$v]=[_.A6,xW],O));O={};t.addProvider((O.provide=To,O.useClass=To,O[$v]=[_.A6],O));O={};t.addProvider((O.provide=qQ,O.useClass=qQ,O[$v]=[_.Sc,_.Of],O));O={};t.addProvider((O.provide=X8,O.useClass=X8,O[$v]=[_.Sc,_.ow],O));t.addProvider({provide:Bt,useClass:Bt});
O={};t.addProvider((O.provide=D2,O.useClass=D2,O[$v]=[gB],O));t.addProvider({provide:aZ,useClass:aZ});t.addProvider({provide:Yd,useClass:Yd});O={};t.addProvider((O.provide=ws,O.useClass=ws,O[$v]=[gB],O));O={};t.addProvider((O.provide=eU,O.useClass=eU,O[$v]=[_.Sc,gB],O));O={};t.addProvider((O.provide=Pt,O.useClass=Pt,O[$v]=[gB],O));O={};t.addProvider((O.provide=XX,O.useClass=XX,O[$v]=[gB],O));O={};t.addProvider((O.provide=wB,O.useClass=wB,O[$v]=[_.Of],O));O={};t.addProvider((O.provide=u6,O.useClass=
u6,O[$v]=[_.ow],O));O={};t.addProvider((O.provide=LP,O.useClass=LP,O[$v]=[ds],O));O={};t.addProvider((O.provide=zY,O.useClass=zY,O[$v]=[ds],O));t.addProvider({provide:MZ,useClass:MZ});t.addProvider({provide:b6,useClass:b6});t.addProvider({provide:i6,useClass:i6});O={};t.addProvider((O.provide=n$,O.useClass=n$,O[$v]=[_.Of,_.jo],O));t.addProvider({provide:Sh,useClass:Sh});O={};t.addProvider((O.provide=PP,O.useClass=PP,O[$v]=[_.Sc,_.Of],O));t.addProvider({provide:zo,useClass:zo});O={};t.addProvider((O.provide=
Z2,O.useClass=Z2,O[$v]=[gB,_.Sc,_.At],O));O={};t.addProvider((O.provide=OV,O.useClass=OV,O[$v]=[_.Sc,_.jo],O));t.addProvider({provide:$9r,useValue:gh4});t.addProvider({provide:prE,useValue:GYp});t.addProvider({provide:Ht,useClass:Ht});O={};t.addProvider((O.provide=tt,O.useClass=tt,O[$v]=[gB],O));O={};t.addProvider((O.provide=V4,O.useClass=V4,O[$v]=[_.IF,_.jo],O));O={};t.addProvider((O.provide=$W,O.useClass=$W,O[$v]=[_.jo],O));t.addProvider({provide:F8,useFactory:function(){return new F8(_.v5())}});
t.addProvider({provide:ebt,useFactory:_.Wi.getInstance});O={};t.addProvider((O.provide=MQ,O.useClass=MQ,O[$v]=[hK,ebt,_.jo],O));t.addProvider({provide:iB,useClass:iB});t.addProvider({provide:HP,useClass:HP});t.addProvider({provide:ZG,useClass:ZG});t.addProvider({provide:_.AK,useClass:_.AK});t.addProvider({provide:qZ,useClass:qZ});O={};t.addProvider((O.provide=vP,O.useClass=vP,O[$v]=[ZZ],O));O={};t.addProvider((O.provide=rB,O.useClass=rB,O[$v]=[_.jo],O));O={};t.addProvider((O.provide=JK,O.useClass=
JK,O[$v]=[_.jo],O));O={};t.addProvider((O.provide=ot,O.useClass=ot,O[$v]=[_.jo],O));_.h("web_enable_prefetching_videos_on_home")&&(t.addProvider({provide:BE,useClass:BE}),t.addProvider({provide:xB,useClass:xB}));O={};t.addProvider((O.provide=kd,O.useClass=kd,O[$v]=[_.jo],O));t.addProvider({provide:C$,useClass:C$});O={};t.addProvider((O.provide=ct,O.useClass=ct,O[$v]=[_.Sc,_.jo],O));O={};t.addProvider((O.provide=K$,O.useClass=K$,O[$v]=[_.jo],O));O={};t.addProvider((O.provide=kB,O.useClass=kB,O[$v]=
[_.Sc,_.jo],O));t.addProvider({provide:XD,useClass:XD});t.addProvider({provide:Em,useClass:Em});O={};t.addProvider((O.provide=mL,O.useClass=mL,O[$v]=[ZZ,_.jo],O));t.addProvider({provide:Go,useClass:Go});O={};t.addProvider((O.provide=IZ,O.useClass=IZ,O[$v]=[ZZ,_.jo,_.Sc],O));O={};t.addProvider((O.provide=l6,O.useClass=l6,O[$v]=[_.jo],O));O={};t.addProvider((O.provide=rs,O.useClass=rs,O[$v]=[_.jo,_.Sc],O));O={};t.addProvider((O.provide=y4,O.useClass=y4,O[$v]=[_.jo,_.Sc],O));O={};t.addProvider((O.provide=
NZ,O.useClass=NZ,O[$v]=[_.A5],O));O={};t.addProvider((O.provide=sm,O.useClass=sm,O[$v]=[_.A5],O));O={};t.addProvider((O.provide=Rt,O.useClass=Rt,O[$v]=[_.A5],O));t.addProvider({provide:FX,useClass:FX});t.addProvider({provide:gs,useClass:gs});t.addProvider({provide:TY,useClass:TY});t.addProvider({provide:$d,useClass:$d});t.addProvider({provide:KP,useClass:KP});t.addProvider({provide:YW,useClass:YW});t.addProvider({provide:CP,useClass:CP});_.h("kevlar_enable_mss_lazy_load")&&t.addProvider({provide:_.fS,
useClass:LYr});t.addProvider({provide:_.RZ,useClass:p4});t.addProvider({provide:ay,useFactory:function(){return _.VM.getInstance()}});
t.addProvider({provide:it1,useFactory:ihl});t.addProvider({provide:ds,useFactory:function(){return _.A7.getInstance()}});
t.addProvider({provide:W_Q,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});O={};t.addProvider((O.provide=_.$B,O.useClass=_.$B,O[$v]=[_.A5,_.jo,_.ow,it1,ds,ay,W_Q,Qd],O));t.addProvider({provide:_.lE,useClass:ZK0});t.addProvider({provide:_.$wO,useClass:cDx});O={};t.addProvider((O.provide=at,O.useClass=at,O[$v]=[_.$wO],O));O={};t.addProvider((O.provide=_.jx,O.useFactory=function(F){return F.upliftCompletionResolver.promise},O[$v]=[MG5],O));
O=_.vZ("IS_SHELL_LOAD")?"aa":"eocs";var H=_.vZ("IS_SHELL_LOAD")?3:2;_.iI().parkOrScheduleJob(function(){poq()},H,O);
_.iI().parkOrScheduleJob(function(){_.cY().resolve(uZ).start()},2,"eocs");
_.iI().parkOrScheduleJob(function(){uSn()},2,"eocs");
_.iI().parkOrScheduleJob(function(){_.cY().resolve(cE).start()},2,"eocs");
_.h("kevlar_debug_data_app_registration_ks")||Zdt();t.addProvider({provide:_.j9,useValue:new kNO(N.root)});t.addProvider({provide:Ay,useValue:new CF4});t.addProvider({provide:_.Qd5,useValue:new Iu1(N.root)});t.addProvider({provide:_.u8,useValue:new luz});t.addProvider({provide:_.lI,useClass:R2});t.addProvider({provide:Qa1,useClass:bZ});_.h("kevlar_network_sli_killswitch")||t.addProvider({provide:so5,useValue:CV0});t.addProvider({provide:WD1,useFactory:LtS});_.h("web_bind_fetch")&&(O={},t.addProvider((O.provide=
rOf,O.useFactory=zlt,O[$v]=[_.BY(WD1)],O)));_.h("web_bind_window_request")&&(O={},t.addProvider((O.provide=Itq,O.useFactory=YEv,O[$v]=[_.BY(WD1)],O)));_.h("web_bind_text_decoder")&&(O={},t.addProvider((O.provide=lt5,O.useFactory=afN,O[$v]=[_.BY(WD1)],O)));O={};t.addProvider((O.provide=lCJ,O.useFactory=U54,O[$v]=[_.jx,gB,_.C4],O));O={};t.addProvider((O.provide=ICf,O.useClass=Q4,O[$v]=[lCJ],O));t.addProvider({provide:MRn,useClass:i1m});t.addProvider({provide:fCx,useClass:Wq1});O=[].concat(_.W6(Q7));
_.h("web_continuation_response_processing")&&O.push(_.PH);O.push(O_f);_.h("enable_share_panel_navigation_logging_fix_on_web")&&O.push(_.cPS);t.addProvider({provide:b4N,useValue:O});t.addProvider({provide:xbv,useClass:qWJ});t.addProvider({provide:Aen,useClass:NEi});O={};t.addProvider((O.provide=wx4,O.useClass=OUf,O[$v]=[ZZ],O));_.GB.addLowPriorityJob(function(){Xev()});
O={};t.addProvider((O.provide=MwB,O.useFactory=function(F){return function(g){var B,c=(B=_.M(g.commandMetadata,_.Da))==null?void 0:B.url;if(!c)throw new _.fF("No URL for PBJ Command",g);c=lAN(c,{pbj:"1"});B=KIp(c,{})||{};B=Object.assign({},B,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Ro("STS").toString()});g=_.Tp({command:JSON.stringify(g),session_token:_.Ro("XSRF_TOKEN")});return F.fetch(c,{method:"POST",headers:B,body:g})}},O[$v]=[Aen],O));
t.addProvider({provide:vli,useFactory:function(){var F={};return F.CSI=w3z(),F.ECATCHER=Tmt(),F}});
t.addProvider({provide:bW4,useClass:JOx});O=[];O.push(t.resolve(fCx));H={};H=(H.client_location=_.Wi.getInstance(),H.consistency=_.DPp(),H.entities=t.resolve(xo5),H.response_received_commands=t.resolve(xbv),H.store=t.resolve(_.YFy),H.tokens=t.resolve(fCx),H.service_params=t.resolve(bW4),H);if(_.h("web_shorts_prefetch_service_enabled")){var A=new XA5(t.resolve(_.fc));H.shorts_prefetch=A}H.adblock_detection=t.resolve(wx4);t.addProvider({provide:_.VN,useClass:_.VN});A=t.resolve(_.mo);var Z=[];_.h("PremiumClientSharedConfig__enable_att_context_processor")&&
(t.addProvider({provide:iUn,useClass:cYq}),Z.push(t.resolve(iUn)));if(_.h("owl_pl_await")){var U={};t.addProvider((U.provide=Pfr,U.useFactory=function(F){return new wZ1(F)},U[$v]=[_.VN],U));
Z.push(t.resolve(Pfr))}LcR(A,t.resolve(Aen),t.resolve(nlz),H,t.resolve(_.fc),O,Z,t.resolve(ICf),t.resolve(MRn));t.addProvider({provide:_.Sc,useValue:_.nE.instance});_.h("start_client_gcf")&&t.addProvider({provide:ra,useValue:UEp()});t.addProvider({provide:z3n,useFactory:function(){return new z3n(_.cY().resolve(_.VN),_.A7.getInstance())}});
_.iI().parkOrScheduleJob(function(){YHq()},1,"eocs");
O={};t.addProvider((O.provide=iZ,O.useClass=iZ,O[$v]=[_.C4,_.Sc],O));t.addProvider({provide:_.sam,useFactory:_.PE.getInstance});_.iI().parkOrScheduleJob(function(){_.cY().resolve(iZ).refresh()},0,"eocs");
t.addProvider({provide:_.bl,useClass:Unf});_.h("kevlar_signal_collection_killswitch")||(O={},t.addProvider((O.provide=FPm,O.useClass=FPm,O[$v]=[hK,UV],O)),_.iI().parkOrScheduleJob(function(){_.cY().resolve(FPm).record()},1,"eocs"));
_.h("web_debug_handler_registration_killswitch")||_.iI().parkOrScheduleJob(function(){HdQ("DOWNLOAD_PES",jz4);_.h("offline_client_state_export_ks")||HdQ("OFFLINE_CLIENT_STATE",Blp)},0,"eocs");
_.h("kevlar_prevent_polymer_dynamic_font_load")&&_.iI().parkOrScheduleJob(function(){var F=[_.ju(gvx),_.ju(yem)];F=_.D(F);for(var g=F.next();!g.done;g=F.next()){g=g.value;var B=document.createElement("link");_.F1(B,g,"stylesheet");document.head.appendChild(B)}},1,"eocs");
O=N.injector.resolve(_.Sc);_.jx5.instance=new _.jx5(O);ERG(Ck1(new $on(O)));O={};N.injector.addProvider((O.provide=j4,O.useFactory=function(F){(F=F==null?void 0:F.getCurrentPage())?F=F.visibilityObserver:(I45||(I45=UGl()),F=I45);return F},O[$v]=[_.BY(_.J4)],O.skipCache=!0,O));
t.addProvider({provide:_.kf,useClass:Qz});t.addProvider({provide:Gd,useClass:BRy});N.injector.addProvider({provide:C6E,useValue:xmr});t.addProvider({provide:NhY,useValue:tV5});t.addProvider({provide:DD0,useValue:ZrG});t.addProvider({provide:_.WV,useValue:uKg});N=t.addProvider;HLx||(HLx=new OLn);N.call(t,{provide:_.L4,useValue:HLx});t.addProvider({provide:_.I_,useValue:_.Ro("HTML_DIR")==="rtl"?"rtl":"ltr"});t.addProvider({provide:mo1,useClass:Hm5});t.addProvider({provide:_.D5,useClass:z$});_.cY().addProvider({provide:Gyn,
useValue:_.h("enable_web_delhi_icons")?XXf.concat(kWz):Pdm.concat(xgm)});t.addProvider({provide:_.aY,useClass:_.aY});t.addProvider({provide:_.KY1,useValue:new CPx});t.addProvider({provide:wmi,useClass:eUJ});t.addProvider({provide:jU,useClass:jU});t.addProvider({provide:SU,useClass:SU});N={};t.addProvider((N.provide=WP,N.useClass=WP,N[$v]=[_.Sc,_.Of],N));t.addProvider({provide:fP,useClass:fP});t.addProvider({provide:Jm1,useClass:R35});t.addProvider({provide:pP,useClass:pP});t.addProvider({provide:FtB,
useValue:vUY});t.addProvider({provide:_.L5,useClass:Pk1});_.h("enable_payments_purchase_manager")&&t.addProvider({provide:MVf,useClass:u1i});t.addProvider({provide:DwJ,useFactory:function(){return function(F){return _.dHO(F)}}});
t.addProvider({provide:_.Pw1,useClass:XWO});N={};t.addProvider((N.provide=xd,N.useClass=xd,N[$v]=[_.Pw1],N));t.addProvider({provide:ht,useClass:ht});t.addProvider({provide:Qlx,useValue:Ms1});t.addProvider({provide:XrQ,useValue:_.KDz});t.addProvider({provide:utx,useClass:Gg5});t.addProvider({provide:AO5,useValue:g2O});N={};t.addProvider((N.provide=ZLi,N.useClass=VT1,N[$v]=[AO5],N));N={};t.addProvider((N.provide=_.NX,N.useClass=crf,N[$v]=[ZLi],N));N={};t.addProvider((N.provide=_.w2,N.useClass=T$,N[$v]=
[_.VT,_.lI],N));if(_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))N={},t.addProvider((N.provide=uB,N.useClass=uB,N[$v]=[_.Sc,ay],N));if(_.h("web_enable_renderer_logger")){var C=new IE9;N6S(function(){C.abort()});
t.addProvider({provide:aLG,useValue:new gM1(C.signal)})}t.addProvider({provide:FUr,useValue:z6S});t.addProvider({provide:FMS,useClass:xnO});_.h("web_use_flow_state_manager")&&(t.addProvider({provide:_.EZ,useClass:kyJ}),N={},t.addProvider((N.provide=Gs,N.useClass=Gs,N[$v]=[_.EZ],N)),N={},t.addProvider((N.provide=R9,N.useClass=R9,N[$v]=[_.VT,_.EZ],N)),N={},t.addProvider((N.provide=vw,N.useClass=vw,N[$v]=[_.VT,_.EZ,_.jo],N)),N={},t.addProvider((N.provide=J0,N.useClass=J0,N[$v]=[_.Sc,_.jo],N)),N={},t.addProvider((N.provide=
o9,N.useClass=o9,N[$v]=[_.EZ,_.jo],N)))}},l4O);var mgf={},E3n=(mgf.initialized={priority:10,callback:function(){if(!olx){$2g();PxG("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.LF(_.Fu(PxG,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.h("log_heartbeat_with_lifecycles")){var N={};bE.instance||(bE.instance=new bE);bE.instance.install((N.document_visible={callback:X3G,priority:10},N.document_hidden={callback:X3G,priority:10},N))}else _.BX(document,"visibilitychange",X3G);olx=!0}(N=_.z8())&&N!=="UNDEFINED_CSN"&&Z7y(N)}},mgf);var GW5={},RS1=(GW5.initialized={callback:function(N){var t=_.UM(232091),O=N.injector.resolve(_.ow);_.r_(O,t);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?gKN()&&_.lA(O,t):(N=N.injector.resolve(DwJ)("refresh_detector"))&&(N.get("first_tab_load")?_.lA(O,t):N.set("first_tab_load","1"))}},GW5);var v3m={},J_r=(v3m.initialized={priority:10,callback:SFp},v3m);var o35={},s0i=(o35.initialized={priority:0,callback:function(){var N=new DVy,t="other";_.FA?t="chrome":_.Kl?t="firefox":_.NV?t="safari":gr&&(t="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(O){N.increment(_.xv(),O,t)}).catch(function(){N.increment(_.xv(),!1,t)}):N.increment(_.xv(),!1,t)}},o35);var N91={},t45=(N91.rendering={priority:8,callback:hbv},N91);var O9O={},H91=(O9O.rendering={priority:10,callback:qFz},O9O.rendered={callback:k1g},O9O),Aym={},Z95=(Aym.rendering={callback:qFz},Aym.rendered={callback:k1g},Aym);var V4q=!1,D1n={},U1q=(D1n.initialized={priority:10,callback:function(){V4q||(I0y({didPatch:function(N){N.el&&mtQ(N.el,N.props)},
didUnmount:function(N){lfx(N.el)}}),V4q=!0)}},D1n);var CUr=/^\/shorts\/?$/;_.Gm("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:{}}}}}}});_.h("kevlar_use_common_module_manager_ks")?(_.ReO(new f$t),HiS()):nKz();
(function(){var N=document.querySelector("ytd-app");if(!N)throw Error("Xj");N=new ex({root:N,injector:_.cY()});N.install(E3n);var t={};N.install((t.initialized={priority:10,callback:sRy},t));_.h("wp_lat_b")&&(t={},N.install((t.initialized={priority:10,callback:function(){M2G()}},t)));
t={};N.install((t.rendered={priority:0,callback:vez},t));t={};N.install((t.rendered={priority:0,callback:function(){_.GB.addLowPriorityJob(function(){_.AD1>1&&(IvO(),GHN())},4E4)}},t));
N.install(WYf);N.install(RS1);N.install(U1q);HBS();N.install(vvm);N.install(XYf);N.install(f9m);N.install(AJm);N.install(C$x);N.install(Gp5);N.install(Q05);_.h("kevlar_enable_mss_lazy_load")&&N.install(J_r);N.install(kpq);N.install(s0i);if(!_.vZ("IS_SHELL_LOAD")||_.h("kevlar_fetch_initial_data_promise_client")||_.h("sw_nav_preload_pbj")){var O=_.Yv(window.location.href);t=O&&O==="/watch";O=O&&O.match(CUr);t?N.install(Z95):O?N.install(t45):N.install(H91)}else N.install(wYm);N.install(I9r);_.h("web_enable_prefetching_videos_on_home")&&
N.install(Nrf);_.h("start_client_gcf")&&N.install(RgJ);N.install(sPr);(new UVQ).increment("INSTALLED");N.install(ovn);N.install(Yyq);N.transition("initialized");Bmv();ZHM()})();
_.U3=[[["bXdyc2tpbmQjaWFqMTJxbnM=","Mm12YWx1ZSM2OWk2dHQycXdp"],"NGRBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCM4eGFoa2F5MTZq"]];_.Dm=["M3ltOTRmN3N2Nmdsb2JhbENhbGxiYWNrcyN5aQ==","NTg3am9uQWJub3JtYWxpdHlEZXRlY3RlZCMxa3o2cmM2bw==","U2tpcCNhZDlnODVkNHJranpvbkFk","NDl5c2xocmF3X3BsYXllcl9yZXNwb25zZSN4NTFxN2k=","U2xvdHMjZjVzbjhnc3JucnptYWQ="];_.pZ="M3ltOTRmN3N2Nmdsb2JhbENhbGxiYWNrcyN5aQ== NTg3am9uQWJub3JtYWxpdHlEZXRlY3RlZCMxa3o2cmM2bw== U2tpcCNhZDlnODVkNHJranpvbkFk NDl5c2xocmF3X3BsYXllcl9yZXNwb25zZSN4NTFxN2k= dF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNvbmQ1anB5Yjl0Ym53ZWJfcGxheWxpcw== YV9lZiN2ZXIyY3c4YWtpcHhhYl9z U2xvdHMjZjVzbjhnc3JucnptYWQ=".split(" ");
_._ModuleManager_initialize=function(N,t){if(!_.rb){if(!_.IP)return;_.ReO(_.IP())}_.rb.setAllModuleInfoString(N,t)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var b9r,pdx;_.Jh=function(N){return!!N.getOptions("captions")};
_.M45=function(N){return(N=N.getOption("captions","track"))?!!N.displayName:!1};
_.oY=function(N,t){_.pi(t,N,function(){return b9r[t]},function(O){b9r[t]=O;
if(!_.h("mweb_player_ve_show_ks")){var H=_.z8(0);H&&O&&_.nJ(H,O)}})};
_.sg=function(N){(N=b9r[N])&&_.lA(_.gF(),N)};
b9r={};var LKJ;/*

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
*/
_.LO({_template:function(){if(LKJ!==void 0)return LKJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;pdx===void 0&&(pdx=document.createElement("template"));var H=pdx;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return LKJ=N},
is:"tp-yt-paper-checkbox",behaviors:[_.CM_],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.yB(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var N=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),t="px",O=N.match(/[A-Za-z]+$/);O!==null&&(t=O[0]);N=parseFloat(N);O=8/3*N;t==="px"&&(O=Math.floor(O),O%2!==N%2&&O++);this.updateStyles({"--paper-checkbox-ink-size":O+
t})}})},
_computeCheckboxClass:function(N,t){var O="";N&&(O+="checked ");t&&(O+="invalid");return O},
_computeCheckmarkClass:function(N){return N?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Dsr._createRipple.call(this)}});var zc5=new _.Fp("radioButtonSurveyOptionRenderer"),Yhq=new _.Fp("checkboxSurveyOptionRenderer");var a3x;var T9x;var wdz=0,Nk=function(){var N=_.k.call(this)||this;N.selected=!1;N.isOverlay=!1;N.inputId="toggle-option-"+wdz;wdz++;return N};
_.p(Nk,_.k);Nk.prototype.onTap=function(){_.or(this.hostElement,"ytd-toggle-option-clicked")};
_.W([_.X(),_.Q("design:type",String)],Nk.prototype,"label",void 0);_.W([_.X(),_.Q("design:type",String)],Nk.prototype,"inputId",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nk.prototype,"selected",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nk.prototype,"isOverlay",void 0);_.W([_.en({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Q("design:paramtypes",[])],Nk);
_.n(Nk,"ytd-toggle-option-renderer",function(){if(T9x!==void 0)return T9x;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return T9x=N},{mode:1});var tS=function(){var N=_.k.apply(this,arguments)||this;N.isToggleOption=!1;N.isOverlay=!1;return N};
_.p(tS,_.k);tS.prototype.onTap=function(N){N.preventDefault();this.data&&(N=!this.data.checked,this.set("data.checked",N),_.or(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:N,value:this.data.value}))};
_.cv.Object.defineProperties(tS.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
tS.prototype.onTap=tS.prototype.onTap;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tS.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],tS.prototype,"isToggleOption",void 0);_.W([_.X(),_.Q("design:type",Object)],tS.prototype,"isOverlay",void 0);_.W([_.a("data.responseText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],tS.prototype,"label",null);
_.W([_.dz("ytd-toggle-option-clicked"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],tS.prototype,"onTap",null);_.W([_.en({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],tS);
_.n(tS,"ytd-checkbox-survey-option-renderer",function(){if(a3x!==void 0)return a3x;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return a3x=N},{mode:1});var ecO;var PUm;var Oj=function(){var N=_.k.apply(this,arguments)||this;N.checked=!1;N.isToggleOption=!1;return N};
_.p(Oj,_.k);Oj.prototype.onTap=function(){this.data&&(this.checked?_.sl(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.sl(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Oj.prototype.onTap=Oj.prototype.onTap;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Oj.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Oj.prototype,"checked",void 0);_.W([_.X(),_.Q("design:type",Object)],Oj.prototype,"isToggleOption",void 0);_.W([_.dz("ytd-toggle-option-clicked"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Oj.prototype,"onTap",null);
_.W([_.en({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Oj);
_.n(Oj,"ytd-radio-button-survey-option-renderer",function(){if(PUm!==void 0)return PUm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return PUm=N},{mode:1});var Hq=function(){var N=_.k.apply(this,arguments)||this;N.disableAnimation=!1;N.isToggleOption=!0;N.followUpSurveyCommand=null;N.selectedRatingEndpoint=null;N.isSlimlineSurveyFollowUp=!1;N.isShortsStyle=!1;N.styleOverrideAttribute=!0;N.isDarkMode=!1;N.isSubmitted=!1;N.roundedContainer=!0;N.improveShortsResponseRate=_.h("web_improve_shorts_response_rate");N.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(Hq,_.k);_.V=Hq.prototype;
_.V.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.V.attached=function(){var N=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(O){var H;if((H=O[0])!=null&&H.isIntersecting){_.Fr().reportShown(N.hostElement);var A;(A=N.intersectionObserver)==null||A.unobserve(N.hostElement)}},{rootMargin:"0px",
threshold:.6});var t;(t=this.intersectionObserver)==null||t.observe(this.hostElement)};
_.V.onDarkModeToggledAction=function(N){this.isDarkMode=N};
_.V.dataChanged=function(){var N;if(((N=this.data)==null?void 0:N.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var t;((t=this.data)==null?void 0:t.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var O,H,A,Z;this.darkColorPalette=(O=this.data)==null?void 0:(H=O.inlineContent)==null?void 0:(A=H.compactVideoRenderer)==null?void 0:(Z=A.thumbnail)==null?
void 0:Z.darkColorPalette;var U,C,F,g;this.lightColorPalette=(U=this.data)==null?void 0:(C=U.inlineContent)==null?void 0:(F=C.compactVideoRenderer)==null?void 0:(g=F.thumbnail)==null?void 0:g.lightColorPalette;var B,c;if(((B=this.data)==null?0:(c=B.inlineContent)==null?0:c.compactVideoRenderer)&&this.isShortsStyle){var u,S,b,z;N=_.Ne((u=this.data)==null?void 0:(S=u.inlineContent)==null?void 0:(b=S.compactVideoRenderer)==null?void 0:(z=b.thumbnail)==null?void 0:z.thumbnails);_.CO(this.hostElement,
{"--yt-background-url":"url("+N+")"})}};
_.V.handleRequestCompletion=function(){this.hostElement.hidden&&_.or(this.hostElement,"yt-dismissible-item-dismissed")};
_.V.onPopupClosed=function(N){var t;((t=N.detail)==null?void 0:t.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.sl(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.V.handleInlineSurveyRatingSelect=function(N,t){var O=this;this.selectedRatingEndpoint=N;this.followUpSurveyCommand=t;this.expanded=!!N;this.getOptionRenderers().forEach(function(H,A){O.notifyPath("followUpSurveyCommand.followUpOptions."+A+".checkboxSurveyOptionRenderer.checked");O.set("followUpSurveyCommand.followUpOptions."+A+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),N=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.sl(this.hostElement,"yt-reel-non-video-content-dismissal-command",[N]))};
_.V.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.sl(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var N,t=(N=this.data)==null?void 0:N.dismissalEndpoint;t&&this.ytComponentBehavior.resolveCommand(t)}};
_.V.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.sl(this.hostElement,"yt-close-popup-action"))};
_.V.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var N=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{N=this.getOptionRenderers().filter(function(H){return H.checked});
if(N.length===0)return;N=N.map(function(H){return H.responseEndpoint})}var t=[];
N.forEach(function(H,A){A!==0&&(H=_.M(H,_.wP))&&H.feedbackToken&&t.push(H.feedbackToken)});
if(N=N[0]){var O={};t.length>0&&(O.extra_feedback_tokens=t);this.ytComponentBehavior.resolveCommand(N,{form:O})}}};
_.V.getOptionRenderers=function(){var N=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(t){N.isSingleSelect=!!_.M(t,zc5);return N.isSingleSelect?_.M(t,zc5):_.M(t,Yhq)}):[]};
_.V.handleInlineSurveyOptionSelect=function(N){N=this.optionSelector.indexOf(N);N!==-1&&this.optionSelector.selectIndex(N)};
_.V.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.V.maybeGetBackgroundColor=function(N){return this.isDarkMode?N.section2Color:N.section3Color};
_.V.colorPaletteChanged=function(){var N=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;N=N&&this.maybeGetBackgroundColor(N);this.dismissibleEl.style.backgroundColor=!N||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.aI(N)};
_.cv.Object.defineProperties(Hq.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Hq.prototype.colorPaletteChanged=Hq.prototype.colorPaletteChanged;Hq.prototype.onPopupClosed=Hq.prototype.onPopupClosed;Hq.prototype.handleRequestCompletion=Hq.prototype.handleRequestCompletion;Hq.prototype.dataChanged=Hq.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Hq.prototype,"actionHandlerBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Hq.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],Hq.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.B2("#follow-up-survey-options"),_.Q("design:type",Object)],Hq.prototype,"optionSelector",void 0);_.W([_.X(),_.Q("design:type",Object)],Hq.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],Hq.prototype,"disableAnimation",void 0);_.W([_.X(),_.Q("design:type",Object)],Hq.prototype,"isToggleOption",void 0);_.W([_.X(),_.Q("design:type",Object)],Hq.prototype,"followUpSurveyCommand",void 0);_.W([_.X(),_.Q("design:type",Object)],Hq.prototype,"selectedRatingEndpoint",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Hq.prototype,"expanded",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Hq.prototype,"isSlimlineSurveyFollowUp",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Hq.prototype,"isShortsStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Hq.prototype,"styleOverrideAttribute",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Hq.prototype,"isSingleSelect",void 0);_.W([_.X(),_.Q("design:type",Object)],Hq.prototype,"isDarkMode",void 0);
_.W([_.X(),_.Q("design:type",Object)],Hq.prototype,"lightColorPalette",void 0);_.W([_.X(),_.Q("design:type",Object)],Hq.prototype,"darkColorPalette",void 0);_.W([_.a("selectedRatingEndpoint","isShortsStyle"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Hq.prototype,"isOptionSelected",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Hq.prototype,"roundedContainer",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Hq.prototype,"improveShortsResponseRate",void 0);_.W([_.B2("#dismissible"),_.Q("design:type",HTMLElement)],Hq.prototype,"dismissibleEl",void 0);_.W([_.B2("#dismiss-button yt-icon-button"),_.Q("design:type",HTMLElement)],Hq.prototype,"dismissButtonEl",void 0);_.W([_.B2("#inline-survey-header yt-icon-button"),_.Q("design:type",HTMLElement)],Hq.prototype,"inlineHeaderDismissButtonEl",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hq.prototype,"dataChanged",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hq.prototype,"handleRequestCompletion",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Hq.prototype,"onPopupClosed",null);
_.W([_.gz("darkColorPalette","lightColorPalette","isDarkMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hq.prototype,"colorPaletteChanged",null);_.W([_.en({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Hq);
_.n(Hq,"ytd-inline-survey-renderer",function(){if(ecO!==void 0)return ecO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ecO=N},{mode:1});var Xdr=["en-CA","en","es-MX","fr-CA"];_.x1J=_.q(function(N){var t=_.RH(N,{isOverlay:!1,isModern:!1}),O=t.captionIconType,H=t.onClick;N=t.ariaLabel;var A=t.ariaPressed,Z=t.isOverlay,U=t.isModern;t=_.Fy("button",function(g){_.oY(g,127299)});
var C=_.Ui(function(g){_.sg(127299);H==null||H(g);return!1}),F={};
return _.d("ytm-closed-captioning-button",{class:_.V7("ytmClosedCaptioningButtonHost",(F.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return O()===-1&&Z()},F.ytmClosedCaptioningButtonIconDisabled=function(){return O()===-1&&!Z()},F))},_.d("button",{el:t,
class:"ytmClosedCaptioningButtonButton",title:N,"aria-label":N,"aria-pressed":A,"on:click":C},_.d(_.dq,{icon:function(){var g="",B=U();var c=B?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";B=B?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var u=_.d0().get("hl");c=!u||Xdr.includes(u)?c:B;B=O();switch(B){case -1:case 0:g=c;break;case 1:g=c+"_FILLED";break;default:_.Ep(B)}return g}})))},"oh");
_.x1J.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Eg=function(N,t,O,H,A){var Z={};t&&(Z[t]=O);H?Z.errorType=H:A&&(Z.errorReason=A);_.E7(N,Z);_.GW()};
_.G$=function(N){var t=_.iI();return _.eqY(t,N,1)};
_.LO({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var N=this.query;N&&(this.full||N[0]==="("||(N="("+N+")"),this._mq=window.matchMedia(N),this._add(),this.queryHandler(this._mq))},
queryHandler:function(N){this._setQueryMatches(N.matches)}});var cym;var $11;var jbr=function(){};
_.V=jbr.prototype;_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._focusedChanged=function(){};
_.V._createRipple=function(){};
_.V.registered=function(){};
_.V._invalidChanged=function(){};
_.V.hasValidator=function(){};
_.V.validate=function(){};
_.V._getValidity=function(){};
_.V._requiredChanged=function(){};
_.V._valueChanged=function(){};
_.V._checkedChanged=function(){};
_.V._buttonStateChanged=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
jbr=_.LO({is:"tp-yt-paper-radio-button",_template:function(){if($11!==void 0)return $11;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;cym===void 0&&(cym=document.createElement("template"));var H=cym;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return $11=N},
behaviors:[_.CM_],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(){_.yB(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var N=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),t=Math.floor(3*N);t%2!==N%2&&t++;this.updateStyles({"--paper-radio-button-ink-size":t+"px"})}})}});var i91;var uyq;_.LO({_template:function(){if(uyq!==void 0)return uyq;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;i91===void 0&&(i91=document.createElement("template"));var H=i91;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return uyq=N},
is:"tp-yt-paper-radio-group",behaviors:[_.Ola],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(N){var t=this._valueToItem(N);if(!t||!t.hasAttribute("disabled")){if(this.selected){t=this._valueToItem(this.selected);if(this.selected==N)if(this.allowEmptySelection)N="";else{t&&(t.checked=!0);return}t&&
(t.checked=!1)}_.IH.select.apply(this,[N]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(N){this._focusPrevious();N.preventDefault();this._activateFocusedItem()},
_onDownKey:function(N){this._focusNext();N.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(N){_.t0Z._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(N){_.t0Z._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.IH._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.vb._resetTabindices.apply(this,arguments);this.items.forEach(function(N){N.removeAttribute("aria-selected")},this)}});var ShJ;_.pE("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var RY=function(){return _.k.apply(this,arguments)||this};
_.p(RY,_.k);_.V=RY.prototype;_.V.computeHasPrimaryIcon=function(N){return!(!N.icon&&!N.thumbnail)};
_.V.computeHasSecondary=function(N){return!(!N.secondaryIcon&&!N.secondaryNotificationText)};
_.V.computeHideSecondaryString=function(N){return!_.h("disable_hide_empty_secondary_string")&&!N.secondaryNotificationText};
_.V.computeCompactLinkStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.V.computeHasFitHeight=function(N){return N==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.V.isActiveEndpoint=function(N){return(N=this.get("commandMetadata.webCommandMetadata.url",N))?_.Yv(window.location.href)!=="/account_transfer_channel"&&_.Yv(window.location.href)!=="/gaia_link"&&_.Yv(window.location.href)!=="/channel_switcher"||N!=="/account"?_.Yv(window.location.href)===N:!0:!1};
_.V.onTap=function(){var N;((N=this.data)==null?0:N.serviceEndpoint)&&_.tb(this.hostElement,[this.data.serviceEndpoint])};
RY.prototype.onTap=RY.prototype.onTap;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],RY.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Q("design:type",Boolean)],RY.prototype,"active",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Q("design:type",String)],RY.prototype,"compactLinkStyle",void 0);
_.W([_.X({computed:"computeIcon_(data.icon)"}),_.Q("design:type",Object)],RY.prototype,"icon",void 0);_.W([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.Q("design:type",Object)],RY.prototype,"secondaryIcon",void 0);_.W([_.X({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],RY.prototype,"hasSecondary",void 0);_.W([_.X({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],RY.prototype,"hideSecondaryString",void 0);
_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RY.prototype,"onTap",null);_.W([_.en({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],RY);
_.n(RY,"ytd-compact-link-renderer",function(){if(ShJ!==void 0)return ShJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ShJ=N},{mode:1});var hc5;_.pE("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var vE=function(){var N=_.k.apply(this,arguments)||this;N.role="link";N.tabindex="0";N.actionMap=_.h("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return N};
_.p(vE,_.k);_.V=vE.prototype;_.V.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.qL()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.V.getCurrentTheme=function(){return _.fT()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.qL()};
_.V.onThemeSelected=function(N,t){var O=N||t?N:_.kH(),H=(O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.A3v(_.Yv(window.location.href));_.g0(0,165,N);_.g0(0,174,t);this.prefs.save();H&&_.sl(this.hostElement,"yt-dark-mode-toggled-action",[O]);_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.onTap=function(){this.data.serviceEndpoint&&_.tb(this.hostElement,[this.data.serviceEndpoint])};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
vE.prototype.onTap=vE.prototype.onTap;vE.prototype.dataChanged=vE.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],vE.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.c8),_.Q("design:type",Object)],vE.prototype,"paperItemBehaviors",void 0);_.W([_.X(),_.Q("design:type",Object)],vE.prototype,"data",void 0);_.W([_.X({value:function(){return _.d0()}}),
_.Q("design:type",_.yq)],vE.prototype,"prefs",void 0);_.W([_.X(),_.Q("design:type",Object)],vE.prototype,"label",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vE.prototype,"role",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vE.prototype,"tabindex",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vE.prototype,"dataChanged",null);
_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vE.prototype,"onTap",null);_.W([_.en({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],vE);
_.td()(vE,"ytd-toggle-theme-compact-link-renderer",function(){if(hc5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);hc5=N}N=hc5;return N},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var kC1,qh5,f3x,WKx,ry1,I3i,l3r,Qbx,m1J,E6m,Ner,Vc,sbi,Rcm,o6x,Jyq,v65,GCr,tm5,O0m,H0m,AvO,D6,Z0x,Vmn,Cqf,Cd,DTr,dW,Uj,Kd,UTx,Ft,KFi,FFq,dT1,gIr,yv5,Be5,$T5,jni,i05,udm,S8q,hKi,Mm1,b01,pvq,LFq,Y8r,a0x,Te5,eK5,Xv5,kZO,q81,f05,nIJ,rvf,I0J,l0f,Qnf,mT1,EIx,GZ1,vI5,NNx,sn1,Jvm,tBi,oI1,OvO,VBO,Zvf,Hvz,AH5,yc,D0i,COO,K2J,F2m,cHO,$05,jrr,ivz,uUq,Sl5,hnJ,MBx,bvO,L25,znn,Ylx,aAx,TN1,wCm,enm,POn,k8q,d05;
_.AS=function(N){var t=new _.fF("Error accessing DB");return _.geO().then(function(O){return new Promise(function(H,A){try{var Z=O.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(N);Z.onsuccess=function(){var U=Z.result;H(U?U.value:null)};
Z.onerror=function(){t.params={key:N,source:"onerror"};A(t)}}catch(U){t.params={key:N,
thrownError:String(U)},A(t)}})},function(){return null})};
kC1=function(N,t){return _.CM(N.entities,"inlineExpansionEntity",t)};
qh5=function(N,t){return _.CM(N.entities,"flowStateEntity",t)};
f3x=function(N,t){if(N&&t){var O=_.$S();O().set(N,t);_.KMS(O())}};
_.n6f=function(N,t){if(N&&t){var O=_.$S();O().set(N,t);_.KMS(O())}};
WKx=function(N,t){return _.CM(N.entities,"contextNoteUserRatingEntityPayload",t)};
ry1=function(N){return _.ey(N,function(t){return t.languageCode==="en"})};
I3i=function(N){var t=Z6;if(_.M45(N))N.setOption("captions","stickyLoading",{}),N.setOption("captions","track",{});else{var O=_.ey(_.bGl(N),function(H){return H.displayName===t});
N.setOption("captions","track",O)}};
l3r=function(N){if(!N)return 0;var t=N.getPresentingPlayerType(),O=N.getVideoData();return O&&O.isLive?(N=N.getProgressState(t),N.seekableEnd-N.seekableStart):N.getDuration(t)};
Qbx=function(N,t){for(var O=_.D(Object.keys(N)),H=O.next();!H.done;H=O.next())if(H=H.value,N[H]!==t[H])return!1;return!0};
m1J=function(){return document.getElementById("player-control-overlay")};
E6m=function(N){N!==-1&&!_.h("player_controls_log_creation_killswitch")&&m1J()&&(_.zT("pcu_cs",N),_.zT("pcu_ce"))};
Ner=function(N,t){var O=_.Gr(N,{}),H=GCr("top",t),A=GCr("bottom",t),Z=GCr("left",t),U=GCr("right",t);return _.FM({top:function(){return Vc(O().position,H)},
bottom:function(){return Vc(O().position,A)},
left:function(){return Vc(O().position,Z)},
right:function(){return Vc(O().position,U)},
position:function(){return Vc(O().positionType,Rcm)},
height:function(){return Vc(O().height,D6)},
width:function(){return Vc(O().width,D6)},
"min-width":function(){return Vc(O().minWidth,D6)},
"min-height":function(){return Vc(O().minHeight,D6)},
"max-width":function(){return Vc(O().maxWidth,D6)},
"max-height":function(){return Vc(O().maxHeight,D6)},
"aspect-ratio":function(){return Vc(O().aspectRatio,String)},
"margin-top":function(){return Vc(O().margin,H)},
"margin-bottom":function(){return Vc(O().margin,A)},
"margin-left":function(){return Vc(O().margin,Z)},
"margin-right":function(){return Vc(O().margin,U)},
"padding-top":function(){return Vc(O().padding,H)},
"padding-bottom":function(){return Vc(O().padding,A)},
"padding-left":function(){return Vc(O().padding,Z)},
"padding-right":function(){return Vc(O().padding,U)},
"flex-direction":function(){return Vc(O().flexDirection,v65)},
"justify-content":function(){return Vc(O().justifyContent,Jyq)},
"align-items":function(){return Vc(O().alignItems,o6x)},
"flex-grow":function(){return Vc(O().flexGrow,String)},
"flex-shrink":function(){return Vc(O().flexShrink,String)},
"flex-basis":function(){return Vc(O().flexBasis,D6)},
"align-self":function(){return Vc(O().alignSelf,o6x)},
"flex-wrap":function(){return Vc(O().flexWrap,sbi)},
"align-content":function(){return Vc(O().alignContent,o6x)}})};
Vc=function(N,t){return N!==void 0?t(N):void 0};
sbi=function(N){switch(N){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Rcm=function(N){switch(N){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
o6x=function(N){switch(N){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
Jyq=function(N){switch(N){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
v65=function(N){switch(N){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
GCr=function(N,t){var O=t==="rtl";switch(N){case "top":var H=tm5;break;case "bottom":H=O0m;break;case "left":H=H0m;break;default:H=AvO}return function(A){return Vc(H(A,O),D6)}};
tm5=function(N){var t=N.top;var O=N.vertical;N=N.all;var H;return(H=t!=null?t:O)!=null?H:N};
O0m=function(N){var t=N.bottom;var O=N.vertical;N=N.all;var H;return(H=t!=null?t:O)!=null?H:N};
H0m=function(N,t){var O=N.left;var H=N.end;var A=N.start;var Z=N.horizontal;N=N.all;var U,C;return(C=(U=O!=null?O:t?H:A)!=null?U:Z)!=null?C:N};
AvO=function(N,t){var O=N.right;var H=N.end;var A=N.start;var Z=N.horizontal;N=N.all;var U,C;return(C=(U=O!=null?O:t?A:H)!=null?U:Z)!=null?C:N};
D6=function(N){var t=N.value;switch(N.unit){case "YPC_DIMENSION_UNIT_POINT":return t+"px";case "YPC_DIMENSION_UNIT_FRACTION":return t+"%";default:return""+t}};
Z0x=function(N){switch(N){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
Vmn=function(N){var t=N!=null?N:{};N=t.fontRole;var O=t.fontSize;t=t.fontWeight;if(N!==null&&O!==null)switch(N){case "YPC_FONT_ROLE_DISPLAY":switch(O){case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(O){case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return t===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(O){case "YPC_FONT_SIZE_XL":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Cqf=function(N,t,O){function H(c){return Object.values(c).map(function(u){var S=u.productId;u=u.pricingOptionIndex;return Uj(A(S).pricingOptions,u).pricingOptionId})}
function A(c){return F().get(c)}
function Z(c){c=H(c);O(c)}
function U(c,u){return Array.from(Cd(c.pricingOptions)).filter(function(S){S=_.D(S);S.next();S=S.next().value;return Kd(S.pricingGroupAttributes,u)}).map(function(S){return _.D(S).next().value})}
var C=Ft([N,t],function(c,u){var S=c==null?void 0:c.selectedPricingOptions;c={};var b=!0;if(S&&u.length)for(var z=_.D(u),w=z.next();!w.done;w=z.next()){w=w.value;var P=DTr(w.pricingOptions,function(I){a:{I=I.pricingOptionId;for(var r=_.D(S),E=r.next();!E.done;E=r.next())if(E.value===I){I=!0;break a}I=!1}return I});
if(P>=0){b=!1;var x=Uj(w.pricingOptions,P),l=void 0;c[w.groupId]={productId:w.productId,pricingOptionIndex:P,pricingGroupAttributes:(l=x)==null?void 0:l.pricingGroupAttributes}}}b&&u.length&&(b=Uj(u[0].pricingOptions,0),c[u[0].groupId]={productId:u[0].productId,pricingOptionIndex:0,pricingGroupAttributes:b==null?void 0:b.pricingGroupAttributes});return c}),F=Ft([t],function(c){return new Map(c.map(function(u){return[u.productId,
u]}))}),g=Ft([t],function(c){var u=new Map;
c=_.D(c);for(var S=c.next();!S.done;S=c.next()){var b=S.value;S=b.groupId;var z=b.productId;b=_.D(Cd(b.pricingOptions));for(var w=b.next();!w.done;w=b.next()){var P=_.D(w.value);w=P.next().value;P=P.next().value;u.set(P.pricingOptionId,{groupId:S,productId:z,index:w,pricingOption:P,pricingGroupAttributes:P.pricingGroupAttributes})}}return u}),B=Ft([t],function(c){var u=new Map;
c=_.D(c);for(var S=c.next();!S.done;S=c.next()){var b=S.value;S=b.groupId;var z=b.productId,w=void 0;b=_.D(Cd((w=b.pricingGroups)!=null?w:[]));for(w=b.next();!w.done;w=b.next()){var P=_.D(w.value);w=P.next().value;P=P.next().value;u.set(P.pricingGroupId,{groupId:S,productId:z,index:w,pricingGroup:P,pricingGroupAttributes:P.pricingGroupAttributes})}}return u});
return{getProductById:A,isProductSelected:function(c){var u=A(c);if(!u)return!1;var S;return((S=C()[u.groupId])==null?void 0:S.productId)===c},
getSelectedPricingOptions:function(){return Object.values(C()).map(function(c){var u=c.productId;c=c.pricingOptionIndex;return Uj(A(u).pricingOptions,c)})},
getSelectedPricingGroupAttributesByGroupId:function(c){var u;return(c=(u=C()[c])==null?void 0:u.pricingGroupAttributes)?Array.from(c):void 0},
getSelectedProductByGroupId:function(c){var u;return(c=(u=C()[c])==null?void 0:u.productId)?A(c):void 0},
onProductSelected:function(c){var u=A(c);if(u){var S=C(),b;if(((b=S[u.groupId])==null?void 0:b.productId)!==c){var z=(b=(z=S[u.groupId])==null?void 0:z.productId)?A(b):void 0;var w;b=(w=S[u.groupId])==null?void 0:w.pricingGroupAttributes;var P;w=(P=S[u.groupId])==null?void 0:P.pricingOptionIndex;if(z&&w!==void 0)if(b){P=U(z,b).indexOf(w);if(P===-1)throw Error("Yj`"+w+"`"+z.productId);w=U(u,b);P=P<w.length?w[P]:w.length>0?w[0]:0}else P=w<dW(u.pricingOptions)?w:0;else P=0;dW(u.pricingOptions)<=P&&(P=
0);w=Uj(u.pricingOptions,P);var x;z={};Z(Object.assign({},S,(z[u.groupId]={productId:c,pricingOptionIndex:P,pricingGroupAttributes:(x=w==null?void 0:w.pricingGroupAttributes)!=null?x:[]},z)))}}},
onPricingOptionSelected:function(c){var u=g().get(c);if(u){c=u.groupId;var S=u.productId;u=u.index;var b=C(),z,w;if(((z=b[c])==null?void 0:z.productId)!==S||((w=b[c])==null?void 0:w.pricingOptionIndex)!==u){var P,x;z={};Z(Object.assign({},b,(z[c]={productId:S,pricingOptionIndex:u,pricingGroupAttributes:(x=(P=b[c])==null?void 0:P.pricingGroupAttributes)!=null?x:[]},z)))}}},
onPricingGroupSelected:function(c){var u=B().get(c);if(u){c=u.groupId;var S=u.productId,b=u.pricingGroup.pricingGroupAttributes,z=A(S);if(z){u=C();var w=u[c].pricingGroupAttributes,P;if(((P=u[c])==null?void 0:P.productId)!==S||!Kd(UTx(w,dW(b)),b)){P=Array.from(b);for(b=dW(b);b<dW(w);b++){var x="",l=!1,I=Array.from(P);I.push(Uj(w,b));for(var r=_.D(z.pricingGroups),E=r.next();!E.done;E=r.next())if(E=E.value,Kd(E.pricingGroupAttributes,I)){P.push(Uj(w,b));l=!0;break}else x===""&&dW(E.pricingGroupAttributes)===
I.length&&Kd(UTx(E.pricingGroupAttributes,P.length),P)&&(x=Uj(E.pricingGroupAttributes,b));l||P.push(x)}x=u[c].pricingOptionIndex;b=[];l=new Map;I=0;z=_.D(Cd(z.pricingOptions));for(r=z.next();!r.done;r=z.next())E=_.D(r.value),r=E.next().value,E=E.next().value,Kd(E.pricingGroupAttributes,P)&&b.push(r),Kd(E.pricingGroupAttributes,w)&&l.set(r,I++);b.length===0?w=0:(w=l.get(x),w=w!==void 0&&w<b.length?b[w]:b[0]);z={};Z(Object.assign({},u,(z[c]={productId:S,pricingOptionIndex:w,pricingGroupAttributes:P},
z)))}}}},
onClearGroupSelected:function(c){var u=C();u[c]&&(u=Object.fromEntries(Object.entries(u).filter(function(S){return _.D(S).next().value!==c})),Z(u))}}};
Cd=function(N){return function O(){var H,A,Z,U,C;return _.CS(O,function(F){switch(F.nextAddress){case 1:_.zy(F,2),H=0,A=_.D(N),Z=A.next();case 4:if(Z.done){F.jumpTo(2);break}U=Z.value;C=_.KS;return F.yield([H++,U],7);case 7:C(F.yieldResult);Z=A.next();F.jumpTo(4);break;case 2:_.pU(F),_.YC(F,0)}})}()};
DTr=function(N,t){N=_.D(Cd(N));for(var O=N.next();!O.done;O=N.next()){var H=_.D(O.value);O=H.next().value;H=H.next().value;if(t(H))return O}return-1};
dW=function(N){var t=0;for(N=N[Symbol.iterator]();!N.next().done;)++t;return t};
Uj=function(N,t){N=_.D(Cd(N));for(var O=N.next();!O.done;O=N.next()){var H=_.D(O.value);O=H.next().value;H=H.next().value;if(O===t)return H}};
Kd=function(N,t){if(!N&&!t)return!0;if(!N||!t)return!1;N=Array.from(N);t=Array.from(t);if(N.length!==t.length)return!1;for(var O=0;O<N.length;O++)if(N[O]!==t[O])return!1;return!0};
UTx=function(N,t){t=t===void 0?Infinity:t;var O=[];N=_.D(Cd(N));for(var H=N.next();!H.done;H=N.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;if(H>=t)break;H>=0&&O.push(A)}return O};
Ft=function(N,t){var O,H;return function(){for(var A=N.map(function(U){return U()}),Z=0;Z<A.length;Z++)if(!O||A[Z]!==O[Z]){O=A;
H=t.apply(null,_.W6(A));break}return H}};
KFi=function(N,t,O){var H=[];N=_.D(N);for(var A=N.next();!A.done;A=N.next()){A=A.value;var Z=void 0;((Z=t)==null?0:Z.length)&&!Kd(A.pricingGroupAttributes,t)||H.push({pricingOption:A,isSelected:O.includes(A.pricingOptionId)})}return H};
FFq=function(N,t){return _.CM(N.entities,"pdpStateEntity",t)};
dT1=function(N){var t,O;return!!(N.productId&&N.groupId&&((t=N.pricingOptions)==null?0:t.length)&&N.pricingOptions.every(function(H){return H.pricingOptionId})&&((O=N.pricingGroups)==null||!O.length||Array.isArray(N.pricingGroups)&&N.pricingGroups.every(function(H){return H.pricingGroupId&&H.pricingGroupAttributes&&H.pricingGroupAttributes.length>0})))};
gIr=function(N,t,O){return Cqf(N,Ft([t],function(H){return H.filter(dT1)}),O)};
yv5=function(N,t){return t.length===0?[N]:[N.slice(0,t[0]),N.slice(t[0])].filter(function(O){return O.length>0})};
Be5=function(N){switch(N){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
$T5=function(N,t,O,H){H=Object.assign({},H);_.LC(H,cvf,{selectedOptionId:N,primaryButtonOverride:O});_.mN().dispatch(_.uF("flowStateEntity",t,H))};
jni=function(N,t,O){!_.M(O,cvf)&&N.noPreselect&&t!==""&&N.defaultButtonOverride&&$T5("default",t,N.defaultButtonOverride,O)};
i05=function(N){switch(N){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
udm=function(N){switch(N){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
S8q=function(N,t){if(t)return"ytCardViewModelCardSelected";switch(N){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
hKi=function(N,t){t.includes(N)?t=t.filter(function(O){return O!==N}):t.push(N);
return[].concat(_.W6(t))};
Mm1=function(N,t){return _.CM(N.entities,"contextNoteFeedEntityPayload",t)};
b01=function(N,t){switch(N){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return t==null?void 0:t.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return t==null?void 0:t.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return t==null?void 0:t.ratingNotHelpfulText}};
pvq=function(N,t,O){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:O||N.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:N.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:N.deleteDialogTitle}]},dialogMessages:[{runs:[{text:N.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:N.deleteActionText}]},command:{performCommentActionEndpoint:{action:t}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:N.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
LFq=function(N,t,O){var H;if(N&&((H=t())==null?0:H.includes(N))){var A;O((A=t())==null?void 0:A.filter(function(Z){return Z!==N}))}else O([].concat(_.W6(t()||[]),[N]))};
Y8r=function(N,t){if(N){var O=[];t=_.D((t==null?void 0:t.checkboxes)||[]);for(var H=t.next();!H.done;H=t.next()){H=_.M(H.value,zK5);var A=void 0;((A=H)==null?0:A.value)&&N.includes(H.key||"")&&O.push(H.value)}return O}};
a0x=function(N){N.style.height="auto";N.style.height=N.scrollHeight+"px"};
Te5=function(N){return[N.syncStep,N.asyncStep].filter(function(t){return t!==void 0})};
eK5=function(N){var t,O,H;if(N=(t=N.structuredContextNoteFormSchema)==null?void 0:(O=t.fieldSchemas)==null?void 0:(H=O.noteBody)==null?void 0:H.validationSchema)for(t=_.D(Te5(N)),O=t.next();!O.done;O=t.next()){O=O.value.rules;if(!O)break;O=_.D(O);for(O=O.next();!O.done;O=O.next())return _.M(O.value,_.wvf)}};
Xv5=function(N){if(N){N=_.D(Te5(N));for(var t=N.next();!t.done;t=N.next()){t=t.value.rules;if(!t)break;t=_.D(t);for(t=t.next();!t.done;t=t.next())return _.M(t.value,Pqf)}}};
kZO=function(N){if(N){N=_.D(Te5(N));for(var t=N.next();!t.done;t=N.next()){t=t.value.rules;if(!t)break;t=_.D(t);for(t=t.next();!t.done;t=t.next())return _.M(t.value,xTi)}}};
q81=function(N){N=/^https?:\/\//.test(N)?N:"http://"+N;try{var t=_.tJ(N)}catch(O){return!1}if(t.toString()!==N)return!1;N=t.JSC$10187_domain_.split(".");return N.length>1&&N.every(function(O){return!!O})};
f05=function(N,t,O,H){var A;H=(A=H.structuredContextNoteData)==null?void 0:A.createCommentEndpoint;if(A=_.M(H,_.TOp))return A.commentText=_.E_(N),A.videoPositionMention=t,A.sources=O,H};
nIJ=function(N){return N==null?void 0:N.stringValue};
rvf=function(N,t,O){N=N.map(function(H,A){return{listItemViewModel:{title:H.title,subtitle:H.subtitle,leadingImage:H.leadingImage,trailingImage:A===t?WF5:void 0,rendererContext:{commandContext:{onTap:H.onTap}}}}});
return Object.assign({},O&&{header:{panelHeaderViewModel:{title:O}}},{content:{listViewModel:{listItems:N}}})};
I0J=function(N,t){if(N&&t)switch(t){case "SELECTION_TYPE_BOOL":return N.boolValue;case "SELECTION_TYPE_INT":return N.intValue;case "SELECTION_TYPE_STRING":return N.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return N.privacyStatusValue}};
l0f=function(N){var t;N=(t=N.options)==null?void 0:t.findIndex(function(O){return O.isSelected});
return N===void 0?-1:N};
Qnf=function(N,t,O){var H=function(){return N().label},A={},Z=_.V7("ytDropdownViewModelLabel",(A.ytDropdownViewModelLabelError=t,A));
return _.d(_.y,{cond:function(){return N().label&&!(O()===-1&&N().label&&!N().placeholderText)},
then:function(){return _.d("div",{class:Z},_.d(_.cu,{text:H}))}})};
mT1=function(N,t){var O={};O=_.V7("ytDropdownViewModelTitle",(O.ytDropdownViewModelTitlePlaceholder=function(){return t()===-1},O));
return _.d("div",{class:O},_.d(_.cu,{text:function(){var H=N();var A=t();if(A===-1)H=H.placeholderText?H.placeholderText:H.label;else{var Z,U;H=(Z=H.options)==null?void 0:(U=Z[A])==null?void 0:U.title}return H}}))};
EIx=function(N,t){var O=function(){return N().hint};
return _.d(_.BZ,null,_.d(_.y,{cond:function(){return O()&&!t()},
then:function(){return _.d("div",{class:_.V7("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.d(_.cu,{text:O,className:"ytDropdownViewModelSupportText"}))}}),_.d(_.y,{cond:t,
then:function(){return _.d("div",{id:"dropdown-view-model-error",role:"alert",class:_.V7("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.d(_.dq,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.d(_.cu,{text:t,className:"ytDropdownViewModelSupportText"}))}}))};
GZ1=function(N,t){var O=_.cY().resolve(_.$wO);_.Q8(function(){var H=N().id;H&&O!=null&&O.dropdownMap.set(H,t)})};
vI5=function(N){N=_.M(N.scheduleButton,RKx);N=_.M(N==null?void 0:N.primaryButton,_.$9);N=_.M(N==null?void 0:N.onTap,_.Tb);var t,O,H=((O=_.M(N,_.Ab))==null?void 0:O.commands)||[N];O=_.D(H);for(N=O.next();!N.done&&!(t=_.M(N.value,_.Yrf));N=O.next());var A;t=(A=t)==null?void 0:A.createBroadcastRequest;if(!t)throw Error("ek");return t};
NNx=function(N,t,O){O=O===void 0?{}:O;var H,A;return _.K(function(Z){if(H=Jvm(t))return Z.return(H);(A=oI1(N,t,O))&&sn1(t,A);return Z.return(A)})};
sn1=function(N,t){var O=tBi(N);O&&t.then(function(H){_.cY().resolve(_.fc).put(O,new _.nc({innertubeResponse:H}))})};
Jvm=function(N){if(N=tBi(N)){var t=_.cY().resolve(_.fc);if(t.has(N))return t.get(N).then(function(O){return O==null?void 0:_.N4(O)})}return null};
tBi=function(N){var t=_.M(N.endpoint,_.rN);if(t!=null&&t.videoId)return t={videoId:t.videoId},_.h("web_imp_player_mute_params")&&(t.mutedAtStart=N.startPlaybackInMutedState),_.WC("inline_playback",t)};
oI1=function(N,t,O){N=_.rq(N,t.endpoint,OvO(t,O)).then(function(H){return H});
return Promise.resolve(N)};
OvO=function(N,t){t=_.h("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!N.startPlaybackInMutedState},t):Object.assign({},{vis:5,autonav:"1"},t);var O;t={contentPlaybackContext:_.VD(t,(O=_.M(N.endpoint.commandMetadata,_.Da))==null?void 0:O.url,window.location.href)};_.h("web_imp_player_mute_params")&&(t.overrideMutedAtStart=!N.startPlaybackInMutedState);return t};
VBO=function(N,t){var O=window.MutationObserver;O&&(gW=new O(function(H,A){H=_.D(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var U;if(U=Z.type==="childList"&&Z.target)a:{U=N;Z=Hvz(Z.target);U=Hvz(U);for(var C=null,F=0;F<Z.length;F++)if(U.includes(Z[F])){if(F===0){U=!1;break a}C=Z[F];break}C?(Z=AH5(Z,C),U=AH5(U,C),U=Z<U):U=!1}if(U){t();A.disconnect();break}}}),(O=Zvf())&&gW.observe(O,{childList:!0,
subtree:!0}))};
Zvf=function(){var N=document.getElementsByTagName("ytd-rich-grid-renderer");if(N.length>0)return N[0];N=document.getElementsByTagName("ytd-section-list-renderer");return N.length>0?N[0]:null};
Hvz=function(N){for(var t=[];N;)t.push(N),N=N.parentElement;return t};
AH5=function(N,t){var O=Array.from(t.children);t=N.indexOf(t);return t>0?O.indexOf(N[t-1]):-1};
yc=function(N,t,O){O=O===void 0?{}:O;return _.CJ(N,O,t)};
D0i=function(N){switch(N){case "MUSIC":return!0;default:return!1}};
COO=function(N){if(N=N==null?void 0:N.find(function(H){var A,Z;return((A=_.M(H,U0m))==null?void 0:(Z=A.inlinePlaybackBadgeData)==null?void 0:Z.replicateAsTimestamp)===!0}))if(N=_.M(N,U0m),N==null?0:N.icon){var t,O;
if((N=(t=_.NsM(N.icon))==null?void 0:(O=t.clientResource)==null?void 0:O.imageName)&&D0i(N))return N}};
K2J=function(N){return N==null?void 0:N.filter(function(t){return t.premiereTrailerBadgeRenderer})};
F2m=function(N){var t,O=N==null?void 0:(t=N.find(function(F){return F.thumbnailOverlayTimeStatusRenderer}))==null?void 0:t.thumbnailOverlayTimeStatusRenderer,H,A;
if((O==null?0:(H=O.icon)==null?0:H.iconType)&&D0i(O==null?void 0:(A=O.icon)==null?void 0:A.iconType)){var Z;return{icon:O==null?void 0:(Z=O.icon)==null?void 0:Z.iconType}}var U;if(t=N==null?void 0:(U=N.find(function(F){return F.thumbnailOverlayBadgeViewModel}))==null?void 0:U.thumbnailOverlayBadgeViewModel)if(U=COO(t.thumbnailBadges))return{icon:U};
var C;if(N=N==null?void 0:(C=N.find(function(F){return F.thumbnailBottomOverlayViewModel}))==null?void 0:C.thumbnailBottomOverlayViewModel)if(C=COO(N.badges))return{icon:C};
return{}};
cHO=function(N,t){var O=new d05(function(Z){A(Z)},t);
t=_.D(_.b$(gLm(O),void 0,"D2uee"));var H=t.next().value,A=t.next().value;_.rp(function(){Promise.resolve().then(function(){var Z,U=(Z=N())!=null?Z:{};O.playerControlsData=U;O.lastSeenPlayerApi=_.xf(U.playerApi);yHi(O)});
_.Ia(function(){BN5(O)})},"xfRk8b");
return H};
$05=function(N){return function(t){var O=N(),H={playerState:t};if(t===1){var A;(A=O.playerApi)==null||A.loadModule("captions")}if(t===0){var Z;(Z=O.playerApi)==null||Z.unloadModule("captions")}t!==-1&&O.setState(H)}};
jrr=function(N){return function(t){N().setState({playbackRate:t})}};
ivz=function(N){return function(t){var O=N(),H=O.playerApi,A=H==null?void 0:H.getVideoData(),Z=(A==null?void 0:A.isLive)||!1;A=A==null?void 0:A.video_id;Z={videoDuration:l3r(H||void 0),isLive:Z,videoId:A};Z.videoId!==O.videoId&&(Z=Object.assign({},_.X9y(H),Z));if(t==null?0:t.playertype)Z.playerType=t.playertype;if(H){Z.captionsAvailable=_.Jh(H);t=Z;var U;A=(U=H.getStoryboardLevel(H.getNumberOfStoryboardLevels()-1))==null?void 0:U.intervalMs;t.storyboardInterval=A?A/1E3:void 0;Z.captionsAvailable&&
(Z.captionsEnabled=_.M45(H))}Z.volumeMuted=!(H==null||!H.isMuted());O.setState(Z)}};
uUq=function(N){return function(t){var O=N(),H=O.playerApi;if(H){var A=H.getPresentingPlayerType();t={playedTime:t||0,percentLoaded:H.getVideoLoadedFraction(),playerType:A};O.playerState===0&&(t.playedTime=O.videoDuration);O.isLive&&(A=H.getProgressState(A),t.playedTime-=A.seekableStart,t.videoDuration=l3r(H));if(O.playerType===1)H=!1;else{var Z;if((Z=O.uxConfig)==null?0:Z.showCuedOverlay){var U;H=!((U=O.playerApi)==null?0:U.getPlayerStateObject(O.playerType).isDomPaused)}else H=!0}H&&delete t.playedTime;
O.setState(t)}}};
Sl5=function(N){return function(){var t=N(),O,H,A,Z={volume:(A=(O=t.playerApi)==null?void 0:O.getVolume())!=null?A:0,volumeMuted:!((H=t.playerApi)==null||!H.isMuted())};t.setState(Z)}};
hnJ=function(N){return function(){var t=N(),O=t.playerApi;if(O){var H={captionsAvailable:_.Jh(O)};H.captionsAvailable&&(H.captionsEnabled=_.M45(O));t.setState(H)}}};
MBx=function(N){return{appApi:Object.assign({},_.z_N(),{showCaptionsToggleToast:function(t){var O,H;(H=(O=N()).showCaptionsToggleToast)==null||H.call(O,t)},
openInMiniplayer:function(){var t,O;(O=(t=N()).openInMiniplayer)==null||O.call(t)}})}};
bvO=function(N,t){var O,H,A;return!!(N==null?0:(O=N.playerResponse)==null?0:(H=O.playerConfig)==null?0:(A=H.inlinePlaybackConfig)==null?0:A.showScrubbingControls)&&!(t==null?0:t.hideScrubbingControls)};
_.pC5=function(N){var t=!N.miniplayerIsActive;return[5,2,0].includes(N.miniplayerPlaybackState)||t};
L25={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};znn=function(N){this.onStepChangeCallback=function(){};
this.flowRenderer=N};
znn.prototype.getCurrentStep=function(){var N=this,t;return((t=this.flowRenderer.steps)!=null?t:[]).map(function(O){return _.M(O,_.o$)}).find(function(O){return O&&O.stepId===N.currentStepId})};
Ylx=function(N,t){var O=t.flowStateEntityKey,H=N.flowStates.get(O);if(H)return H;t=new znn(t);N.flowStates.set(O,t);return t};
aAx=function(N,t){for(var O=_.D(N.flowStates.entries()),H=O.next();!H.done;H=O.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;if(A.flowRenderer.targetId===t){N.flowStates.delete(H);break}}};
TN1=function(N,t){N.onStepChangeCallback=t;N.onStepChangeCallback(N.getCurrentStep())};
wCm=function(N,t){var O=N.getCurrentStep();if(O&&O.stepId===t)return!0;var H;return((H=N.flowRenderer.steps)!=null?H:[]).map(function(A){return _.M(A,_.o$)}).find(function(A){return A&&A.stepId===t})?(N.currentStepId=t,N.onStepChangeCallback(N.getCurrentStep()),!0):!1};
enm=function(N,t){var O,H,A,Z,U;_.K(function(C){if(!t.length)return C.return([]);O=[];H=_.D(t);for(A=H.next();!A.done;A=H.next())Z=A.value,(U=N.resolveIcon(Z))&&!N.iconCache[U.url]&&O.push(_.iL1(N,U).then(function(){}).catch(function(){}));
return C.return(Promise.all(O))})};
POn=function(N,t){var O=[];t=(new Set(t)).values();t=_.D(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;for(var A=_.D(Object.values(L25)),Z=A.next();!Z.done;Z=A.next())O.push({iconName:H,iconStyle:Z.value})}enm(N.iconManager,O)};
_.XC5=function(N,t,O){var H=O!=null?O:N.iconsToFetch;H!=null&&H.length?t!==void 0&&t>=0?_.WX(_.GB,function(){POn(N,H)},t):POn(N,H):Promise.resolve()};
_.x01=_.FV(function(N,t,O){if(N.nextWireType_!==5)return!1;_.gD(t,O,_.fl(N.decoder_));return!0},function(N,t,O){t=_.Spv(t);
t!=null&&(_.y$(N,O,5),_.Bl(N.encoder_,t))},_.Uqu);
k8q=[0,_.lC,_.x01,-1];_.qlf=function(){return _.H5({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
d05=function(N,t){var O=fAn,H=this;this.renderFn=N;this.listeners=O;this.context=t;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var A;this.lastSeenPlayerApi=_.xf((A=this.playerControlsData)==null?void 0:A.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.X9y(),void 0);_.h("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){gLm(H).setState({playerState:-1});H.resetRecentlyNavigatedJobId&&
_.GB.cancelJob(H.resetRecentlyNavigatedJobId);H.recentlyNavigated=!0;H.resetRecentlyNavigatedJobId=_.GB.addJob(function(){H.recentlyNavigated=!1},8,1E4)})};
d05.prototype.setState=function(N){if(!_.h("mweb_player_skip_no_op_state_changes")||!Qbx(N,this.state))if(this.state=Object.assign({},this.state,N),!_.h("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)N=-1,_.h("player_controls_log_creation_killswitch")||m1J()||(N=(0,_.jg)()),_.zT("pcu_s"),_.zT("pcu_se"),_.zT("pcu_rs"),this.renderFn(gLm(this)),_.zT("pcu_re"),E6m(N),_.GB.addJob(function(){_.zT("pcu_ap")},8)};
var gLm=function(N){if(N.getPlayerApi)var t=_.xf(N.getPlayerApi());else{var O;t=_.xf((O=N.playerControlsData)==null?void 0:O.playerApi)}return Object.assign({},N.state,{setState:N.boundSetState,domMeasurements:{progressBarLineRect:N.progressBarLineRect},playerApi:t,appApi:N.context.appApi,playerContainer:N.context.playerContainer,playerControlContainer:N.context.playerControlContainer,uxConfig:N.context.uxConfig})},yHi=function(N){N.listeners.forEach(function(t){N.eventListenerCleanupFunctions.push(t.register(function(){return gLm(N)},
function(){return N.getData()}))})},BN5=function(N){N.eventListenerCleanupFunctions.forEach(function(t){t()});
N.eventListenerCleanupFunctions.length=0};
d05.prototype.getData=function(){return this.playerControlsData};var nLm=[0,_.Zb,_.RG,_.Zb,-1,_.RG,[0,_.vU,_.oG,-1],_.Zb,-1];var W2x=[0,[1,2,3],_.NO,-2];var rHm=[0,_.Zb];var IAf=new _.Fp("crowdsourcedContextUserRatingFormFlowState");var lAn=new _.Fp("noteViewModel");var Bq=new _.Fp("abuseReportFlowState");var Qrf=new _.Fp("feedbackFormFlowState");var m05=new _.Fp("inputBoxViewModel");_.wvf=new _.Fp("lengthValidationRule");var Pqf=new _.Fp("regexValidationRule");var xTi=new _.Fp("selectedValidationRule");var ELf=[0,_.oG,_.Zb,_.KV];var G8f=[0,_.RG,-2,k8q];var Rnm=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Rnm,_.C8);Rnm.prototype.getFeature=function(){return _.YD(this,6)};
Rnm.prototype.hasFeature=function(){return _.SJ(_.cU(this,6))!=null};var vL5=[0,_.oG];var JHi=_.u9(Rnm,[0,_.RG,-2,k8q,_.RG,_.oG,-1,_.Gl,-1,_.oG,-3,_.z5X,_.vU,G8f,_.oG,-1,nLm,_.Gl,_.oG,ELf,[0,[0,_.oG,-2,2,_.oG,-1,[0,_.oG],[0,_.Zb,_.oG],[0,_.Zb],[0,_.oG],2,[0,_.Zb,2,[0,_.Zb,-1],[0,_.tC,W2x],1,[0,rHm],1,[0,_.oG]],[0,_.vU],[0,[1,2],_.Ow,[0,_.oG],_.Ow,[0,_.oG,_.AC,-1]],[0,_.Zb],[0,_.oG,[0,[1,2,3,4],_.Ow,[0,[0,_.oG],vL5],_.Ow,[0,[0,_.oG],vL5],_.Ow,[0,vL5],_.Ow,[0,[0,_.oG],vL5]]],[0,_.oG],1,[0,_.oG,_.Zb],1,[0,_.oG],[0,_.vU],[0,_.oG,_.Zb,-1,[0,_.oG,-4]],[0,_.oG],[0,_.oG,-2],1,[0,_.oG],[0,
_.vU],[0,_.vU,_.oG],1,[0,_.vU],[0]],_.oG,_.Zb,_.lC,1,_.H1,_.oG,_.Zb],_.RG,_.H1,_.Zb,-1,_.RG]);var oL1=new _.Fp("talkToRecsViewModel");var srr=new _.Fp("creatorGoalSetUpFlowDropdownItemViewModel");var N05=new _.Fp("creatorGoalSetUpFlowDropdownViewModel");var U0m=new _.Fp("thumbnailBadgeViewModel");var tbm=new _.Fp("checkboxGroupViewModel");var zK5=new _.Fp("checkboxItemViewModel");_.cq=new _.Fp("radioButtonGroupViewModel");var OJr=new _.Fp("radioButtonItemViewModel");var RKx=new _.Fp("panelFooterViewModel");var HJm=new _.Fp("ypcCancelRecurrenceCommand");var Ab5=new _.Fp("cancellationFlowState");var cvf=new _.Fp("premiumPurchaseFlowState");var ZJq=new _.Fp("surveyAnswerCardRenderer");var Vbf=new _.Fp("showMoreButtonRenderer");var Dp5;var Upm,Cp5=function(){if(Upm!==void 0)return Upm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;Dp5===void 0&&(Dp5=document.createElement("template"));var H=Dp5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return Upm=N};var $Z=function(){var N=_.k.apply(this,arguments)||this;N.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";N.goalDescription="";N.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";N.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";N.startButtonId="start-button";N.exampleButtonId="example-button";return N};
_.p($Z,_.k);_.V=$Z.prototype;_.V.getGoalDropdownItems=function(){var N,t;return(t=_.M((N=this.data)==null?void 0:N.purchaseTargetDropdown,N05))==null?void 0:t.dropdownItems};
_.V.getTimerDropdownItems=function(){var N,t;return(t=_.M((N=this.data)==null?void 0:N.timerDropdown,N05))==null?void 0:t.dropdownItems};
_.V.getColorDropdownItems=function(){var N,t;return(t=_.M((N=this.data)==null?void 0:N.colorDropdown,N05))==null?void 0:t.dropdownItems};
_.V.getDropdownItemText=function(N){var t;return(t=_.M(N,srr))==null?void 0:t.itemLabel};
_.V.getDropdownItemValue=function(N){N=_.M(N,srr);return(N==null?void 0:N.timeLimit)||(N==null?void 0:N.purchaseTarget)||(N==null?void 0:N.eligiblePurchaseType)};
_.V.updateFlowState=function(N){_.sl(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:N}])};
_.V.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.V.updateGoalValue=function(N){this.goal=N.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.V.onTextValueChanged=function(N){this.goalDescription=N.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.V.updateTimerValue=function(N){this.timer=N.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.V.updateTierValue=function(N){this.tier=N.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.V.getButtonViewModel=function(N){N=(N==null?void 0:N.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var t,O=_.M((t=this.data)==null?void 0:t.startGoalButton,_.$9);return Object.assign({},O,{state:N})};
_.cv.Object.defineProperties($Z,{template:{configurable:!0,enumerable:!0,get:function(){return Cp5()}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$Z.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$Z.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],$Z.prototype,"goal",void 0);_.W([_.X(),_.Q("design:type",Object)],$Z.prototype,"goalDescription",void 0);_.W([_.X(),_.Q("design:type",Object)],$Z.prototype,"timer",void 0);_.W([_.X(),_.Q("design:type",Object)],$Z.prototype,"tier",void 0);
_.W([_.X(),_.Q("design:type",Object)],$Z.prototype,"startButtonId",void 0);_.W([_.X(),_.Q("design:type",Object)],$Z.prototype,"exampleButtonId",void 0);_.W([_.wz({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],$Z);_.n($Z,"yt-creator-goal-set-up-flow-view-model",function(){return Cp5()},{mode:0});var KIz;var FIz;var dpO;var gYm=function(){return _.k.apply(this,arguments)||this};
_.p(gYm,_.k);_.W([_.X(),_.Q("design:type",Object)],gYm.prototype,"data",void 0);_.W([_.wz({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],gYm);
_.n(gYm,"yt-survey-answer-card-renderer",function(){if(dpO===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;FIz===void 0&&(FIz=document.createElement("template"));var H=FIz;O.call(t,H.content.cloneNode(!0),N.content.firstChild);dpO=N}N=dpO;return N},{mode:2});var ybx;var B0O;var j1=function(){return _.k.apply(this,arguments)||this};
_.p(j1,_.k);_.V=j1.prototype;_.V.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.V.selectedItemChanged=function(N){_.sl(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[N.feedbackToken||""]}])};
_.V.surveyAnswerCardRendererClicked=function(N){if(N.target&&_.M(N.model.item,ZJq)){var t=N.target;N=_.M(N.model.item,ZJq);N.onTapCommand?_.OK(t,[N.onTapCommand],t):this.data.onTapCommand&&_.OK(t,[this.data.onTapCommand],t);this.selectedItemChanged(N)}};
_.V.checkIsCancellationStyle=function(N){return N==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.V.updateSelectedItemFromBinding=function(N){this.selectedItem=N.detail.value};
j1.prototype.onSelectedItemChanged=j1.prototype.onSelectedItemChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],j1.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],j1.prototype,"selectedItem",void 0);_.W([_.X({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],j1.prototype,"isCancellationStyle",void 0);
_.W([_.gz("selectedItem"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],j1.prototype,"onSelectedItemChanged",null);_.W([_.wz({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],j1);
_.n(j1,"yt-survey-flow-step-renderer",function(){if(B0O===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;ybx===void 0&&(ybx=document.createElement("template"));var H=ybx;O.call(t,H.content.cloneNode(!0),N.content.firstChild);B0O=N}N=B0O;return N},{mode:2});var ig=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return N};
_.p(ig,_.k);ig.prototype.handleSurveyFlowStepOptionChanged=function(N){this.ytdReduxBehavior.dispatch(_.H5({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:N}));_.sl(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:N}}])};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ig.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],ig.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ig.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],ig);
_.n(ig,"ytd-survey-flow-step-renderer",function(){if(KIz!==void 0)return KIz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return KIz=N},{mode:1});_.iJ1=_.q(function(N){var t=N.data;var O=N.hideDivider;var H=N.isChannelInfoCard;N={};return _.d("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.d("div",{class:_.V7("yt-profile-identity-info-view-model__frame",(N["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!t().channelBanner},N))},_.d(cbm,{profileIdentityInfoData:t}),_.d("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.d("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.d(_.iF,{data:function(){return t().avatar}},{avatarViewModel:_.Dv})),_.d($p1,{profileIdentityInfoData:t})),_.d(_.y,{cond:function(){return t().channelDescription},
then:function(A){var Z={};return _.d("div",{class:_.V7((Z["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(H==null||!H())},Z["yt-profile-identity-info-view-model__channel-description"]=function(){return!(H==null?0:H())},Z))},A)}}),_.d(jX1,{profileIdentityInfoData:t}),_.d(_.y,{cond:function(){return!(O==null?0:O())},
then:function(){return _.d("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ph");
_.iJ1.idomCompat=!0;var jX1=_.q(function(N){var t=N.profileIdentityInfoData;return _.d("div",{class:"yt-profile-identity-info-view-model__buttons"},_.d(_.nL,{each:function(){return t().subscribeButton?[t().subscribeButton,t().channelAccess]:[t().channelAccess]}},function(O){return _.d("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.d("div",{class:"yt-profile-identity-info-view-model--button"},_.d(_.iF,{data:function(){return O}},{buttonViewModel:_.Pu,
subscribeButtonViewModel:_.DF})))}))},"qh"),$p1=_.q(function(N){var t=N.profileIdentityInfoData;
return _.d("div",{class:"yt-profile-identity-info-view-model__trio"},_.d("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.d(uu5,{profileIdentityInfoData:t}),_.d(_.iF,{data:function(){return t().threeDotMenu}},{buttonViewModel:_.Pu})),_.d(SK1,{profileIdentityInfoData:t}))},"rh"),uu5=_.q(function(N){var t=N.profileIdentityInfoData;
return _.d("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.d("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return t().channelDisplayName}),_.d(_.y,{cond:function(){return t().verifiedOrOacBadge},
then:function(O){return _.d("div",{class:"yt-profile-identity-info-view-model__badge"},_.d(_.Qt,{data:function(){return{thumbnails:[{url:O().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"sh"),cbm=_.q(function(N){var t=N.profileIdentityInfoData;
return _.d("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.d(_.iF,{data:function(){var O=t().channelBanner;if(O)return{imageBannerViewModel:{image:O.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(O){return _.d("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.d(_.Sw,{data:O.data,
isPositionRelative:!0}))}}))},"th"),SK1=_.q(function(N){var t=N.profileIdentityInfoData;
return _.d("div",{class:"yt-profile-identity-info-view-model__metadata"},_.d("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.d("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return t().channelHandle}),_.d(_.y,{cond:function(){return t().channelPronouns&&t().channelHandle},
then:function(){return _.d("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.d("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return t().channelPronouns})),_.d("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.d("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return t().leftOfBulletInfo}),_.d(_.y,{cond:function(){return t().leftOfBulletInfo&&t().rightOfBulletInfo},
then:function(){return _.d("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.d("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return t().rightOfBulletInfo})))},"uh");var h7r;var ug=function(){return _.k.apply(this,arguments)||this};
_.p(ug,_.k);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ug.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ug.prototype,"data",void 0);_.W([_.en({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],ug);
_.n(ug,"ytd-channel-history-renderer",function(){if(h7r!==void 0)return h7r;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return h7r=N},{mode:1});var MbJ;var bJO=function(){return _.k.apply(this,arguments)||this};
_.p(bJO,_.k);_.W([_.X(),_.Q("design:type",Object)],bJO.prototype,"data",void 0);_.W([_.en({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],bJO);
_.n(bJO,"ytd-feature-enablement-info-renderer",function(){if(MbJ!==void 0)return MbJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MbJ=N},{mode:1});var pci;var LI1;var S1=function(){var N=_.k.apply(this,arguments)||this;N.textBoxMaxLength=_.h("enable_tvod_campaign_code_integration")?15:12;return N};
_.p(S1,_.k);_.V=S1.prototype;_.V.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.V.onSubmit=function(){var N=this.data.serviceEndpoint,t=_.M(N,_.mb);t&&N&&(t.couponCode=this.userInput,_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}}))};
_.V.validate=function(){var N=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=N&&!this.data.errorMessage;this.showErrorMessage=N&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.h("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.V.computeStyle=function(N){return N};
_.V.computeShowValidationBelowInput=function(N){return N!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.V.updateUserInputFromBinding=function(N){this.userInput=N.currentTarget.value};
_.V.updateShowErrorMessageFromBinding=function(N){this.showErrorMessage=N.detail.value};
_.cv.Object.defineProperties(S1.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
S1.prototype.dataChanged=S1.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],S1.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],S1.prototype,"userInput",void 0);_.W([_.X(),_.Q("design:type",Boolean)],S1.prototype,"disableApplyButton",void 0);_.W([_.X(),_.Q("design:type",Boolean)],S1.prototype,"hideApplyButton",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],S1.prototype,"hideErrorMessage",void 0);_.W([_.X(),_.Q("design:type",Boolean)],S1.prototype,"showTick",void 0);_.W([_.X(),_.Q("design:type",Boolean)],S1.prototype,"showErrorMessage",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],S1.prototype,"couponStyle",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Q("design:type",Boolean)],S1.prototype,"showValidationBelowInput",void 0);_.W([_.X(),_.Q("design:type",Object)],S1.prototype,"textBoxMaxLength",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],S1.prototype,"dataChanged",null);
_.W([_.a("showTick","showErrorMessage","userInput"),_.Q("design:type",String),_.Q("design:paramtypes",[])],S1.prototype,"validationState",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],S1);
_.n(S1,"ytd-ypc-coupon-renderer",function(){if(LI1!==void 0)return LI1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return LI1=N},{mode:1});var hS=function(){return _.k.apply(this,arguments)||this};
_.p(hS,_.k);hS.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"}}}};
hS.prototype.computeStyle=function(N){return N};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hS.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],hS.prototype,"buttonStyle",void 0);_.W([_.en({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],hS);
_.n(hS,"ytd-flow-bottom-bar-renderer",function(){if(pci!==void 0)return pci;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return pci=N},{mode:1});var z7J;var YKO;var aa1;var Mk=function(){return _.k.apply(this,arguments)||this};
_.p(Mk,_.k);Mk.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Mk.prototype.focus=function(N){this.title&&_.Cb(this.title,N)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Mk.prototype,"data",void 0);_.W([_.B2("#title"),_.Q("design:type",HTMLElement)],Mk.prototype,"title",void 0);_.W([_.en({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Mk);
_.n(Mk,"ytd-flow-top-bar-renderer",function(){if(aa1!==void 0)return aa1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return aa1=N},{mode:1});var T0J;var wc1;var e75;var bg=function(){return _.k.apply(this,arguments)||this};
_.p(bg,_.k);bg.prototype.freeTextValueChanged=function(){_.sl(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
bg.prototype.updateFreeTextValueFromBinding=function(N){this.freeTextValue=N.detail.value};
_.cv.Object.defineProperties(bg.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(t=(N=this.data)==null?void 0:N.responseMaxLength)!=null?t:500,H;return((H=this.freeTextValue)!=null?H:"").length>=O?"maxed-out":""}}});
bg.prototype.freeTextValueChanged=bg.prototype.freeTextValueChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bg.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],bg.prototype,"freeTextValue",void 0);_.W([_.B2("#user-input"),_.Q("design:type",HTMLTextAreaElement)],bg.prototype,"input",void 0);
_.W([_.a("freeTextValue"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bg.prototype,"characterLimitClass",null);_.W([_.gz("freeTextValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bg.prototype,"freeTextValueChanged",null);_.W([_.wz({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],bg);
_.n(bg,"yt-free-text-input-flow-step-renderer",function(){if(e75===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;wc1===void 0&&(wc1=document.createElement("template"));var H=wc1;O.call(t,H.content.cloneNode(!0),N.content.firstChild);e75=N}N=e75;return N},{mode:2});var pd=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return N};
_.p(pd,_.k);pd.prototype.handleFreeTextFlowStepInputChanged=function(N){_.sl(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:N}}])};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],pd.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],pd.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],pd.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],pd);
_.n(pd,"ytd-free-text-input-flow-step-renderer",function(){if(T0J!==void 0)return T0J;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return T0J=N},{mode:1});var Ppz;var Xc5;var xpx=function(){return _.k.apply(this,arguments)||this};
_.p(xpx,_.k);_.W([_.X(),_.Q("design:type",Object)],xpx.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],xpx);
_.n(xpx,"ytd-metadata-line-renderer",function(){if(Xc5!==void 0)return Xc5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Xc5=N},{mode:1});var Ld=function(){return _.k.apply(this,arguments)||this};
_.p(Ld,_.k);Ld.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ld.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Ld.prototype,"isMasthead",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Ld);
_.n(Ld,"ytd-media-product-renderer",function(){if(Ppz!==void 0)return Ppz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Ppz=N},{mode:1});var kT5;var zR=function(){return _.k.apply(this,arguments)||this};
_.p(zR,_.k);zR.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
zR.prototype.onBillboardImageLoaded=function(){_.or(this.hostElement,"yt-refit")};
zR.prototype.onBillboardImageLoaded=zR.prototype.onBillboardImageLoaded;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],zR.prototype,"data",void 0);_.W([_.B2("#billboardImage"),_.Q("design:type",Object)],zR.prototype,"billboardImage",void 0);_.W([_.dz("yt-img-shadow-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zR.prototype,"onBillboardImageLoaded",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],zR);
_.n(zR,"ytd-billboard-masthead-renderer",function(){if(kT5!==void 0)return kT5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return kT5=N},{mode:1});var qKx;var YZ=function(){var N=_.k.apply(this,arguments)||this;N.smallSize=!1;return N};
_.p(YZ,_.k);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],YZ.prototype,"ytComponentBehaviorType",void 0);_.W([_.X(),_.Q("design:type",Object)],YZ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],YZ.prototype,"smallSize",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],YZ);
_.n(YZ,"ytd-bullet-formatted-string",function(){if(qKx!==void 0)return qKx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return qKx=N},{mode:1});var fam;var aK=function(){return _.k.apply(this,arguments)||this};
_.p(aK,_.k);aK.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],aK.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],aK);
_.n(aK,"ytd-offer-detail-renderer",function(){if(fam!==void 0)return fam;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return fam=N},{mode:1});var nY1;var TR=function(){return _.k.apply(this,arguments)||this};
_.p(TR,_.k);TR.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],TR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],TR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],TR.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],TR);
_.n(TR,"ytd-offer-detail-step-renderer",function(){if(nY1!==void 0)return nY1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return nY1=N},{mode:1});var WI5;var wW=function(){var N=_.k.apply(this,arguments)||this;N.isInOfferModule=!1;return N};
_.p(wW,_.k);_.V=wW.prototype;_.V.computeHasEndpoint=function(){var N;return!((N=this.data)==null||!N.onClickCommand)};
_.V.dataChanged=function(){var N;if((N=this.data)==null?0:N.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.V.detached=function(){var N;if((N=this.data)==null?0:N.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.V.handleClickEvent=function(){var N;if((N=this.data)==null?0:N.onClickCommand){var t;this.componentBehavior.resolveCommand((t=this.data)==null?void 0:t.onClickCommand)}};
_.V.onContentKeyDown=function(N){N.key==="Enter"?this.handleClickEvent(N):N.key===" "&&N.preventDefault()};
_.V.onContentKeyUp=function(N){N.key===" "&&this.handleClickEvent(N)};
wW.prototype.dataChanged=wW.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],wW.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wW.prototype,"data",void 0);_.W([_.X({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],wW.prototype,"hasEndpoint",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],wW.prototype,"isInOfferModule",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wW.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],wW);
_.n(wW,"ytd-channel-masthead-renderer",function(){if(WI5!==void 0)return WI5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return WI5=N},{mode:1});var rbq;var e1=function(){var N=_.k.apply(this,arguments)||this;N.thumbnailObjectFit="CONTAIN";N.thumbnailObjectPosition="LEFT";N.isExpanded=!1;return N};
_.p(e1,_.k);_.V=e1.prototype;_.V.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.V.dataChanged=function(){this.resetStates()};
_.V.computeisTapOnOfferInfoContainerEnabled=function(){var N;return((N=this.data)==null?void 0:N.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.V.onExpandBtnClick=function(){var N,t=_.M((N=this.data)==null?void 0:N.showMoreButtonRenderer,Vbf);t&&_.Q2(_.gF(),t.trackingParams);this.isExpanded=!this.isExpanded};
_.V.onOfferInfoClick=function(N){this.isTapOnOfferInfoContainerEnabled&&(_.RM(_.m1(N)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.vH(_.m1(N)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.V.onBottomBarClick=function(){this.executeTapCommand()};
_.V.executeTapCommand=function(){var N,t=(N=this.data)==null?void 0:N.tapCommand;t&&this.ytComponentBehavior.resolveCommand(t)};
_.V.resetStates=function(){this.isExpanded=!1};
_.cv.Object.defineProperties(e1.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var N=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),t,O,H;return((t=this.data)==null?void 0:t.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&N&&!!((O=this.data)==null?0:(H=O.benefits)==null?0:H.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((t=_.M((N=this.data)==null?void 0:N.showMoreButtonRenderer,Vbf))==null?void 0:t.showMoreButtonTitle)||((O=this.data)==null?void 0:O.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((t=_.M((N=this.data)==null?void 0:N.showMoreButtonRenderer,Vbf))==null?void 0:t.showLessButtonTitle)||((O=this.data)==null?void 0:O.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var N;return(N=this.showLessButtonTitle)!=null?N:""}var t;return(t=this.showMoreButtonTitle)!=null?t:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.data)==null?void 0:N.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((t=this.data)==null?0:t.footerTitle)||((O=this.data)==null?0:O.footerSubtitle))}}});
e1.prototype.dataChanged=e1.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",String)],e1.prototype,"thumbnailObjectFit",void 0);
_.W([_.X(),_.Q("design:type",String)],e1.prototype,"thumbnailObjectPosition",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Q("design:type",Boolean)],e1.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.W([_.X(),_.Q("design:type",Object)],e1.prototype,"isExpanded",void 0);_.W([_.X(),_.Q("design:type",Object)],e1.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.footerIcon)"}),_.Q("design:type",String)],e1.prototype,"icon",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],e1.prototype,"dataChanged",null);_.W([_.a("data.thumbnail"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],e1.prototype,"hasThumbnail",null);_.W([_.a("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],e1.prototype,"enableExpandButton",null);
_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],e1.prototype,"enableOfferContentIcon",null);_.W([_.a("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],e1.prototype,"showMoreButtonTitle",null);_.W([_.a("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],e1.prototype,"showLessButtonTitle",null);
_.W([_.a("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Q("design:type",String),_.Q("design:paramtypes",[])],e1.prototype,"expandedBtnText",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],e1.prototype,"enableBottomBar",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],e1);
_.n(e1,"ytd-offer-card-renderer",function(){if(rbq!==void 0)return rbq;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rbq=N},{mode:1});var Iar;var Pq=function(){return _.k.apply(this,arguments)||this};
_.p(Pq,_.k);Pq.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"}}}};
Pq.prototype.onClick=function(N){if(!_.RM(N.composedPath()||[],this.hostElement,["A".toString()])){var t,O;if((N=(O=_.M((t=this.data)==null?void 0:t.actionButton,_.g_))==null?void 0:O.command)&&!this.ytComponentBehavior.resolveCommand(N)){var H;(H=_.gF())==null||H.clickCommand(N);_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}})}}};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Pq.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Pq.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Pq);
_.n(Pq,"ytd-offer-content-renderer",function(){if(Iar!==void 0)return Iar;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Iar=N},{mode:1});var la5;var Xt=function(){return _.k.apply(this,arguments)||this};
_.p(Xt,_.k);Xt.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.cv.Object.defineProperties(Xt.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.title)||!((t=this.data)==null||!t.description)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Xt.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Xt.prototype,"hasHeaderData",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Xt);
_.n(Xt,"ytd-offer-section-renderer",function(){if(la5!==void 0)return la5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return la5=N},{mode:1});var QX5;var xZ=function(){return _.k.apply(this,arguments)||this};
_.p(xZ,_.k);
xZ.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"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],xZ.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],xZ);
_.n(xZ,"ytd-offer-selection-step-renderer",function(){if(QX5!==void 0)return QX5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return QX5=N},{mode:1});var mpO;var kZ=function(){return _.k.apply(this,arguments)||this};
_.p(kZ,_.k);kZ.prototype.computeStyle=function(N){return N};
kZ.prototype.computeImageWidth=function(N){return N==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.W([_.X({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Q("design:type",String)],kZ.prototype,"containerStyle",void 0);_.W([_.X({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Q("design:type",String)],kZ.prototype,"imageWidth",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],kZ.prototype,"data",void 0);
_.W([_.en({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],kZ);
_.n(kZ,"ytd-confirmation-masthead-renderer",function(){if(mpO!==void 0)return mpO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return mpO=N},{mode:1});var EYz;var qk=function(){return _.k.apply(this,arguments)||this};
_.p(qk,_.k);qk.prototype.computeStyle=function(N){return N};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],qk.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Q("design:type",String)],qk.prototype,"containerStyle",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],qk);
_.n(qk,"ytd-purchase-complete-detail-renderer",function(){if(EYz!==void 0)return EYz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return EYz=N},{mode:1});var GT5;var fd=function(){var N=_.k.apply(this,arguments)||this;N.scriptsAppended=!1;return N};
_.p(fd,_.k);fd.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"}}}};
fd.prototype.onDataChanged=function(){var N=this.get("data.gtmId");N&&(_.J7(N,_.Ro("GL","")),this.setupConversionTracking())};
fd.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var N=document.createElement("noscript");N.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(N);this.scriptsAppended=!0}};
fd.prototype.onDataChanged=fd.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fd.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],fd.prototype,"scriptsAppended",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fd.prototype,"onDataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],fd);
_.n(fd,"ytd-purchase-complete-step-renderer",function(){if(GT5!==void 0)return GT5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return GT5=N},{mode:1});var R7J;var nd=function(){return _.k.apply(this,arguments)||this};
_.p(nd,_.k);nd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nd.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],nd);
_.n(nd,"ytd-ypc-transaction-error-message-renderer",function(){if(R7J!==void 0)return R7J;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return R7J=N},{mode:1});var vYO;var Jb1;var Wq=function(){var N=_.k.apply(this,arguments)||this;N.handlePhoneVerificationSuccess=function(t){if(N.isValidPhoneVerificationCompletionMessageEvent(t)){var O;((O=N.data)==null?0:O.nextStepCommand)&&N.ytComponentBehavior.resolveCommand(N.data.nextStepCommand)}};
return N};
_.p(Wq,_.k);Wq.prototype.isValidPhoneVerificationCompletionMessageEvent=function(N){if(N.data!=="yt-phone-verification-complete")return!1;N=_.Fe(N.origin);return N!==null&&N.includes("youtube.com")};
Wq.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Wq.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Wq.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Wq.prototype,"data",void 0);_.W([_.wz({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Wq);
_.n(Wq,"yt-feature-enablement-soft-entry-renderer",function(){if(Jb1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;vYO===void 0&&(vYO=document.createElement("template"));var H=vYO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Jb1=N}N=Jb1;return N},{mode:1});var oY5;var sXx;var N8m;var tD5;var OMO=function(){return _.k.apply(this,arguments)||this};
_.p(OMO,_.k);_.W([_.X(),_.Q("design:type",Object)],OMO.prototype,"data",void 0);_.W([_.wz({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],OMO);
_.n(OMO,"yt-benefits-item-renderer",function(){if(tD5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;N8m===void 0&&(N8m=document.createElement("template"));var H=N8m;O.call(t,H.content.cloneNode(!0),N.content.firstChild);tD5=N}N=tD5;return N},{mode:2});var HMn;var AB5;var rW=function(){return _.k.apply(this,arguments)||this};
_.p(rW,_.k);rW.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
rW.prototype.computeisWithoutPadding=function(){var N;return((N=this.data)==null?void 0:N.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],rW.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Q("design:type",Boolean)],rW.prototype,"isWithoutPadding",void 0);_.W([_.wz({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],rW);
_.n(rW,"yt-benefits-section-renderer",function(){if(AB5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;HMn===void 0&&(HMn=document.createElement("template"));var H=HMn;O.call(t,H.content.cloneNode(!0),N.content.firstChild);AB5=N}N=AB5;return N},{mode:2});var IK=function(){return _.k.apply(this,arguments)||this};
_.p(IK,_.k);IK.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
IK.prototype.computeisUsingLargeWidth=function(){var N;return((N=this.data)==null?void 0:N.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],IK.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Q("design:type",Boolean)],IK.prototype,"isUsingLargeWidth",void 0);_.W([_.wz({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],IK);
_.n(IK,"yt-benefits-flow-step-renderer",function(){if(sXx===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;oY5===void 0&&(oY5=document.createElement("template"));var H=oY5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);sXx=N}N=sXx;return N},{mode:2});var ZMO;var VD5;var lg=function(){return _.k.apply(this,arguments)||this};
_.p(lg,_.k);lg.prototype.checkIsUsingLargeWidth=function(){var N;return((N=this.data)==null?void 0:N.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.W([_.X(),_.Q("design:type",Object)],lg.prototype,"data",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.W([_.X({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Q("design:type",Boolean)],lg.prototype,"isUsingLargeWidth",void 0);_.W([_.wz({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],lg);
_.n(lg,"yt-confirmation-flow-step-renderer",function(){if(VD5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;ZMO===void 0&&(ZMO=document.createElement("template"));var H=ZMO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);VD5=N}N=VD5;return N},{mode:2});var DE1;var UEx;var C5i=function(){return _.k.apply(this,arguments)||this};
_.p(C5i,_.k);_.W([_.X(),_.Q("design:type",Object)],C5i.prototype,"data",void 0);_.W([_.wz({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],C5i);
_.n(C5i,"yt-info-flow-step-renderer",function(){if(UEx===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;DE1===void 0&&(DE1=document.createElement("template"));var H=DE1;O.call(t,H.content.cloneNode(!0),N.content.firstChild);UEx=N}N=UEx;return N},{mode:2});var Kdr;var Fdm;var dEr=function(){return _.k.apply(this,arguments)||this};
_.p(dEr,_.k);_.W([_.X(),_.Q("design:type",Object)],dEr.prototype,"data",void 0);_.W([_.wz({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],dEr);
_.n(dEr,"yt-info-list-flow-step-renderer",function(){if(Fdm===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Kdr===void 0&&(Kdr=document.createElement("template"));var H=Kdr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Fdm=N}N=Fdm;return N},{mode:2});var gjz=_.q(function(N){var t=N.data;return _.d("styled-text-view-model",{class:_.V7("ytStyledTextViewModelHost",function(){return Vmn(t().fontAttributes)},function(){return Z0x(t().color)})},_.d(_.cu,{text:function(){return t().text},
ariaLabel:function(){var O,H,A;return(A=(O=t().accessibility)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label)!=null?A:""}}))},"vh");
gjz.idomCompat=!0;var yBO=_.q(function(N){var t=function(){var A,Z,U,C;return(C=(U=(A=N.alt)==null?void 0:A.call(N))!=null?U:(Z=N.data().accessibilityData)==null?void 0:Z.label)!=null?C:""},O=function(){return N.data().imageWidth},H=function(){return N.data().imageHeight};
return _.d("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.d(_.y,{cond:function(){var A=N.data();if(A){var Z,U,C;var F=((Z=_.cY().resolve(_.BY(_.WV)))==null?0:Z())?(U=A.imageDark)!=null?U:A.imageLight:(C=A.imageLight)!=null?C:A.imageDark}else F=void 0;return F},
then:function(A){return _.d(_.Qt,Object.assign({},N,{data:A,alt:t,targetWidth:O,targetHeight:H,preserveHeight:!0,preserveWidth:!0}))}}))},"wh");
yBO.idomCompat=!0;var Qc=_.q(function(N){var t=N.data;N=_.Gr(function(){return t().slots},[]);
var O=_.Gr(function(){return t().layoutProperties},{}),H=_.cY().resolve(_.I_);
return _.d("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:Ner(O,H)},_.d(_.nL,{each:N,keyBy:"INDEX"},function(A){return _.d("div",{class:"ytContainerLayoutViewModelSlot",style:Ner(function(){return A().layoutProperties},H)},_.d(_.iF,{data:function(){return A().contents}},{containerLayoutViewModel:Qc,
badgeViewModel:_.L_,buttonViewModel:_.Pu,styledTextViewModel:gjz,contentPreviewImageViewModel:function(Z){return _.d(_.xe,{data:Z.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(Z){return _.d(yBO,{data:Z.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"xh");
Qc.idomCompat=!0;var B8q=_.q(function(N){var t=N.data;var O=N.stateFns;var H=function(){var g=t(),B=g.productId;return!(!g.clearGroupId&&!B)},A=function(){var g=t(),B=g.clearGroupId;
return(g=g.productId)?O().isProductSelected(g):B?O().getSelectedProductByGroupId(B)==null:!1},Z=function(g){var B=t(),c=B.clearGroupId;
if(B=B.productId)O().onProductSelected(B),g==null||g.forEach(function(u){_.xJ(u)});
else if(c)O().onClearGroupSelected(c)},U=function(){var g=t(),B=g.clearGroupId;
if(g=g.productId){var c;return"group:"+(((c=O().getProductById(g))==null?void 0:c.groupId)||"")}return B?"group:"+B:""},C=_.Gr(function(){return t().header},[]),F=_.Gr(function(){return t().body},[]);
return _.d("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.d(_.y,{cond:function(){return C().length>0||H()},
then:function(){return _.d("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.d("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.d(_.iF,{data:C},{containerLayoutViewModel:function(g){return _.d("div",{class:"ytPdpCardSectionViewModelContentItem"},_.d(Qc,{data:g.data}))},
styledTextViewModel:function(g){return _.d("div",{class:"ytPdpCardSectionViewModelContentItem"},_.d(gjz,{data:g.data}))}})),_.d(_.y,{cond:H,
then:function(){return _.d("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.d(_.cj,{checked:A,name:U,onChange:function(){Z(t().onSelect)}}))}}))}}),_.d(_.y,{cond:function(){return F().length>0},
then:function(){return _.d("div",null,_.d(_.iF,{data:F},{containerLayoutViewModel:function(g){return _.d("div",{class:"ytPdpCardSectionViewModelContentItem"},_.d(Qc,{data:g.data}))}}))}}))},"yh");
B8q.idomCompat=!0;var cBq=_.q(function(N){var t=N.data;var O=N.stateFns;return _.d("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.d(_.y,{cond:function(){return t().banner},
then:function(H){return _.d("div",{class:"ytPdpCardViewModelBanner"},_.d(_.cu,{text:H}))}}),_.d(_.iF,{data:function(){return t().sections}},{pdpCardSectionViewModel:function(H){H=H.data;
var A={};return _.d("div",{class:_.V7("ytPdpCardViewModelSectionContainer",(A.ytPdpCardViewModelShowDividers=function(){return t().showDividers},A))},_.d(B8q,{data:H,
stateFns:O}))}}))},"zh");
cBq.idomCompat=!0;var $En=_.q(function(N){var t=N.data;var O=N.isOverlay;N={};return _.d("pdp-masthead-view-model",{class:_.V7("ytPdpMastheadViewModelHost",(N.ytPdpMastheadViewModelIsOverlay=O,N))},_.d(_.iF,{data:function(){return t().image}},{contentPreviewImageViewModel:_.xe,
themedImageViewModel:function(H){return _.d(yBO,{data:H.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.d(_.y,{cond:function(){return t().title},
then:function(H){return _.d("h1",{class:"ytPdpMastheadViewModelHeading"},_.d(_.cu,{text:H,isOverlay:O}))}}),_.d(_.nL,{each:function(){var H;
return(H=t().finePrint)!=null?H:[]}},function(H){return _.d("div",{class:"ytPdpMastheadViewModelFinePrint"},_.d(_.cu,{text:H,
isOverlay:O}))}))},"Ah");
$En.idomCompat=!0;var jJm=_.q(function(N){var t=N.data;var O=N.stateFns;var H=function(){return"pdp-pricing-group-selector-"+t().pricingGroupAttributeIds},A=_.Gr(function(){return t().pricingGroupSelectorSectionHeader});
return _.d("pdp-pricing-group-selector-view-model",null,_.d(_.y,{cond:function(){return!!A()},
then:function(){return _.d(_.iF,{data:A},{sectionHeaderViewModel:function(Z){Z=Z.data;var U={};return _.d("div",{class:_.V7("ytPdpPricingGroupSelectorViewModelSectionHeader",(U.ytPdpPricingGroupSelectorViewModelFullBleed=!0,U.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,U))},_.d(_.GX,{data:Z}))}})}}),_.d("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.d(_.nL,{each:function(){var Z=O().getSelectedProductByGroupId(t().groupId);
if(!Z)return _.vX(Error("Zj`"+t().groupId)),[];var U,C=(U=t().pricingGroupAttributeIds)!=null?U:[],F;if((F=Z.pricingGroups)==null||!F.length||!C.length)return[];U=Z.pricingGroups.filter(function(u){return C.length?u.pricingGroupAttributes.every(function(S){return C.includes(S)}):!1});
Z=[];if(C.length>0){U=[].concat(_.W6(U));F=_.D(C);for(var g=F.next(),B={};!g.done;B={targetAttrId:void 0},g=F.next())B.targetAttrId=g.value,g=U.findIndex(function(u){return function(S){return S.pricingGroupAttributes.includes(u.targetAttrId)}}(B)),g!==-1&&(Z.push(U[g]),U.splice(g,1))}var c=O().getSelectedPricingGroupAttributesByGroupId(t().groupId);
return Z.map(function(u){var S=!1;c&&u.pricingGroupAttributes&&(S=Kd(u.pricingGroupAttributes,c));return{pricingGroup:u,isSelected:S}})},
keyBy:function(Z){return Z.pricingGroup.pricingGroupId}},function(Z){return _.d("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.d("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.d(_.iF,{data:function(){return Z().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Qc})),_.d("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.d(_.cj,{checked:function(){return Z().isSelected},
name:H,onClick:function(){var U=Z().pricingGroup;O().onPricingGroupSelected(U.pricingGroupId);if(U=_.wF(U.onSelectPricingGroup)){var C;(C=_.cY().resolve(_.jo))==null||C.resolveCommand(U)}}})))})))},"Bh");
jJm.idomCompat=!0;var iM1=_.q(function(N){var t=N.data;var O=N.stateFns;var H=function(){var U=O().getSelectedPricingOptions().map(function(g){return g.pricingOptionId}),C=O().getSelectedProductByGroupId(t().groupId);
if(!C)return _.vX(Error("$j`"+t().groupId)),[];var F=O().getSelectedPricingGroupAttributesByGroupId(t().groupId);return KFi(C.pricingOptions,F,U)},A=_.Gr(function(){return t().pricingOptionSelectorSectionHeader}),Z=function(){return H().length>1};
return _.d("pdp-pricing-option-selector-view-model",null,_.d(_.y,{cond:function(){return!!A()&&Z()},
then:function(){return _.d(_.iF,{data:A},{sectionHeaderViewModel:function(U){U=U.data;var C={};return _.d("div",{class:_.V7("ytPdpPricingOptionSelectorViewModelSectionHeader",(C.ytPdpPricingOptionSelectorViewModelFullBleed=!0,C.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,C))},_.d(_.GX,{data:U}))}})}}),_.d(_.y,{cond:Z,
then:function(){return _.d("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.d(_.nL,{each:H,keyBy:"INDEX"},function(U){return _.d("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.d("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.d(_.iF,{data:function(){return U().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Qc})),_.d("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.d(_.cj,{checked:function(){return U().isSelected},
onClick:function(){O().onPricingOptionSelected(U().pricingOption.pricingOptionId);var C=U().pricingOption.onSelectPricingOption;if(C=_.wF(C)){var F;(F=_.cY().resolve(_.jo))==null||F.resolveCommand(C)}}})))}))}}))},"Ch");
iM1.idomCompat=!0;var uom=_.q(function(N){var t=N.data;var O=N.stateFns;return _.d("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.d(_.iF,{data:function(){var H,A;return(A=(H=O().getSelectedPricingOptions()[0])==null?void 0:H.primaryButton)!=null?A:t().emptyStateButton}},{buttonViewModel:_.Pu}))},"Dh");
uom.idomCompat=!0;var S_m=_.q(function(N){var t=N.stateFns;return _.d("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.d(_.iF,{data:function(){return t().getSelectedPricingOptions().flatMap(function(O){return O.summaryLines}).filter(function(O){return!!O})}},{containerLayoutViewModel:function(O){return _.d("div",{class:"ytPdpSummaryViewModelLineItem"},_.d(Qc,{data:O.data}))}}))},"Eh");
S_m.idomCompat=!0;var hkr=_.q(function(N){function t(b){var z=U();_.E6(_.aE("pdpStateEntity",z,{key:z,selectedPricingOptions:b}))}
var O=N.data;var H=N.internalScrolling;var A=N.stateFnsForTesting;var Z=_.Gr(function(){return O().allProducts},[]),U=_.Gr(function(){return O().pdpStateEntityKey},""),C=_.cz(FFq,U),F=_.aa(function(){_.Qo(!0);
var b;return(b=A==null?void 0:A())!=null?b:gIr(C,Z,t)},void 0,"Pzdsic"),g=_.Gr(function(){return O().body},[]),B=_.Gr(function(){return O().columnBreakHints},[]),c=function(){return O().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},u=function(){return c()||O().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},S=_.aa(function(){var b=_.nx(O().background),z;
if(b==null?0:(z=b.sources)==null?0:z.length){var w=w===void 0?!0:w;b=_.ZPv(void 0,b.sources,void 0,w,w?1E3:void 0,w?void 0:1E3)}else b=null;return b},void 0,"RDPOae");
_.Q8(function(){var b=O().onStartCommand;if(b&&(b=_.wF(b))){var z;(z=_.cY().resolve(_.jo))==null||z.resolveCommand(b)}});
N={};return _.d("pdp-view-model",{class:_.V7("ytPdpViewModelHost",(N.ytPdpViewModelHasBackground=function(){return u()||!!S()},N.ytPdpViewModelHasDarkBackground=u,N.ytPdpViewModelHasScrim=c,N.ytPdpViewModelInternalScrolling=H,N.ytPdpViewModelForceSingleColumn=function(){return B().length===0},N)),
style:_.FM({"--pdp-view-model-background":function(){return S()?"url("+S()+")":void 0}})},_.d("div",{class:"ytPdpViewModelColumnContainer"},_.d(_.nL,{each:function(){return yv5(g(),B())},
keyBy:"INDEX"},function(b){return _.d("div",{class:"ytPdpViewModelColumn"},_.d(_.iF,{data:b},{containerLayoutViewModel:function(z){return _.d(mk,null,_.d(Qc,{data:z.data}))},
dividerViewModel:function(z){return _.d(mk,{fullBleed:!0},_.d(_.CSr,{data:z.data}))},
pdpCardViewModel:function(z){return _.d(mk,null,_.d(cBq,{data:z.data,stateFns:F}))},
pdpMastheadViewModel:function(z){return _.d(mk,null,_.d($En,{data:z.data,isOverlay:u}))},
pdpPricingGroupSelectorViewModel:function(z){return _.d(mk,null,_.d(jJm,{data:z.data,stateFns:F}))},
pdpPricingOptionSelectorViewModel:function(z){return _.d(mk,null,_.d(iM1,{data:z.data,stateFns:F}))},
pdpPrimaryButtonViewModel:function(z){return _.d(mk,null,_.d(uom,{data:z.data,stateFns:F}))},
pdpSummaryViewModel:function(z){return _.d(mk,null,_.d(S_m,{data:z.data,stateFns:F}))},
sectionHeaderViewModel:function(z){return _.d(mk,{fullBleed:!0,noVerticalPadding:!0},_.d(_.GX,{data:z.data}))}}))})))},"Fh");
hkr.idomCompat=!0;var mk=_.q(function(N){var t={};return _.d("div",{class:_.V7("ytPdpViewModelItem",(t.ytPdpViewModelFullBleed=N.fullBleed,t.ytPdpViewModelNoVerticalPadding=N.noVerticalPadding,t))},N.children)},"Gh");_.o_(hkr,"pdp-view-model",{props:{data:_.$O,stateFnsForTesting:_.R_,internalScrolling:_.R_}});var MDO=_.q(function(N){var t=N.data;var O=N.className;var H=_.cz(_.Gn,function(){return t().flowStateEntityKey});
return _.d("ytm-premium-purchase-button-renderer",{class:_.V7("ytPremiumPurchaseButtonRendererHost",O)},_.d(_.iF,{data:function(){var A;return(A=_.M(H(),cvf))==null?void 0:A.primaryButtonOverride}},{buttonRenderer:function(A){return _.d(_.MG,{data:A.data,
className:O})},
buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,className:O})}}))},"Hh");
MDO.idomCompat=!0;var bMi=_.q(function(N){var t=N.data;N=N.className;var O=function(){return Be5(t().style)},H=_.V7("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",O),A=_.V7("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",O);
return _.d("yt-flow-bottom-bar-renderer",{class:_.V7("yt-flow-bottom-bar-renderer",N,O)},_.d(_.iF,{data:function(){return t().secondaryButton}},{buttonRenderer:function(Z){return _.d(_.MG,{data:Z.data,
className:A})},
buttonViewModel:function(Z){return _.d(_.Pu,{data:Z.data,className:A})},
premiumPurchaseButtonRenderer:function(Z){return _.d(MDO,{data:Z.data,className:A})}}),_.d(_.iF,{data:function(){return t().primaryButton}},{buttonRenderer:function(Z){return _.d(_.MG,{data:Z.data,
className:H})},
buttonViewModel:function(Z){return _.d(_.Pu,{data:Z.data,className:H})},
premiumPurchaseButtonRenderer:function(Z){return _.d(MDO,{data:Z.data,className:H})}}))},"Ih");
bMi.idomCompat=!0;_.o_(bMi,"yt-flow-bottom-bar-renderer",{props:{data:_.$O,className:_.$O}});var p5x=_.q(function(N){var t=_.V7(N.className,"ytOfferSummaryRendererHost");return _.d("yt-offer-summary-renderer",{class:t},_.d("div",{class:"ytOfferSummaryRendererTextContainer"},_.d("div",{class:"ytOfferSummaryRendererEyebrowText"},_.d(_.cu,{text:function(){return N.data().eyebrowText}})),_.d("div",{class:"ytOfferSummaryRendererTitle"},_.d(_.cu,{text:function(){return N.data().title}})),_.d("div",{class:"ytOfferSummaryRendererSubtitle"},_.d(_.cu,{text:function(){return N.data().subtitle}})),_.d("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.d(_.nL,{each:function(){var O;
return(O=N.data().featureListData)!=null?O:[]}},function(O){var H;
return _.d("div",{class:"ytOfferSummaryRendererFeatureList"},_.d(_.dq,{icon:(H=O.icon)==null?void 0:H.iconType,active:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(O.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"}}}),_.d("div",{class:"ytOfferSummaryRendererFeatureListText"},_.d(_.cu,{text:O.text,
className:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.d("div",{class:"ytOfferSummaryRendererDescription"},_.d(_.cu,{text:function(){return N.data().description}}))))},"Jh");_.o_(_.q(function(N){var t={};t=_.V7("ytOfferSummaryFlowStepRendererHost",(t.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=N.shouldDisableHeaderTopMargin,t));return _.d("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:t},_.d("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.d("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.d(_.cu,{text:function(){return N.data().header}})),_.d("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.d(_.cu,{text:function(){return N.data().subtitle}}))),_.d("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.d(_.iF,{data:function(){return N.data().offerSummary}},{offerSummaryRenderer:function(O){return _.d(p5x,{data:O.data,
className:N.flowClassName})}})))},"Kh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.R_,
flowClassName:_.R_,flowStateEntityKey:_.R_,shouldDisableHeaderTopMargin:_.R_}});var Ld1=_.q(function(N){var t=N.data;var O=N.className;var H=N.flowStateEntityKey;var A=N.selectionStepStyle;N=_.Ui(function(F){var g=t(),B=H==null?void 0:H();F.target&&(F.stopPropagation(),F=B||"",B=_.Gn(_.mN().getState(),F),g=Object.assign({},B,{premiumPurchaseFlowState:{selectedOptionId:g.optionId,primaryButtonOverride:g.primaryButtonOverride}}),_.mN().dispatch(_.uF("flowStateEntity",F,g)));return!1});
var Z=function(){return(H==null?void 0:H())||""},U=_.cz(_.Gn,Z);
_.Q8(function(){var F=t(),g=Z(),B=U();F.defaultSelected&&g!==""&&F.primaryButtonOverride&&$T5(F.optionId||"",g,F.primaryButtonOverride,B)});
var C={};return _.d("ytm-option-item-renderer",{"on:click":N,class:_.V7(O,"ytm-option-item-renderer",(C["ytm-option-item-renderer--lp2-style"]=function(){return(A==null?void 0:A())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},C))},_.d("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.d("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var F=t(),g=Z(),B=U();B=_.M(B,cvf);return(B?(B==null?void 0:B.selectedOptionId)||"":F.defaultSelected&&g!==""?(F==null?void 0:F.optionId)||"":"")===t().optionId},
name:("input"+_.Q1(_.gx)).toString()})),_.d("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.d(_.iF,{data:function(){return t().titleBadge}},{badgeViewModel:function(F){return _.d(_.L_,{data:F.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.d(_.y,{cond:function(){return t().eyebrowText},
then:function(){return _.d("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.d(_.cu,{text:function(){return t().eyebrowText}}))}}),_.d("div",{class:"ytm-option-item-renderer__option-item-title"},_.d(_.cu,{text:function(){return t().title}})),_.d("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.d(_.cu,{text:function(){return t().subtitle}})),_.d(_.y,{cond:function(){return t().featureListData},
then:function(){return _.d("div",{class:"ytm-option-item-renderer__feature-list-data"},_.d(_.nL,{each:function(){return t().featureListData||[]}},function(F){var g,B=(g=F.icon)==null?void 0:g.iconType;
a:switch(F.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":g="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":g="ytm-option-item-renderer__feature-list-icon-small";break a;default:g="ytm-option-item-renderer__feature-list-icon-default"}return _.d("div",{class:"ytm-option-item-renderer__feature-list"},_.d(_.dq,{icon:B,className:g,active:function(){return F.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.d("div",{class:"ytm-option-item-renderer__feature-list-text"},_.d(_.cu,{text:F.text,
className:function(){return F.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.d("div",{class:"ytm-option-item-renderer__option-item-description"},_.d(_.cu,{text:function(){return t().description}}))))},"Lh");var zkJ=_.q(function(N){var t=N.data;var O=N.flowClassName;var H=N.flowStateEntityKey;var A=N.selectionStepStyle;return _.d("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.d("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.d("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.d(_.cu,{text:function(){return t().title}}),_.d(_.iF,{data:function(){return t().titleBadge}},{badgeViewModel:function(Z){return _.d(_.L_,{data:Z.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.d(_.y,{cond:function(){return t().subtitle},
then:function(){return _.d("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.d(_.cu,{text:function(){return t().subtitle}}))}}),_.d(_.y,{cond:function(){return t().featureListData},
then:function(Z){return _.d("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.d(_.nL,{each:Z},function(U){var C;return _.d("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.d(_.dq,{icon:(C=U.icon)==null?void 0:C.iconType,active:function(){return U.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(U.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.d("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.d(_.cu,{text:U.text,
className:function(){return U.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.d(_.y,{cond:function(){return t().secondaryTitle},
then:function(){return _.d("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.d(_.cu,{text:function(){return t().secondaryTitle}}))}}),_.d(_.nL,{each:function(){return t().sectionDisclaimers||[]}},function(Z){return _.d("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.d(_.cu,{text:Z}))})),_.d(_.iF,{data:function(){return t().optionItems}},{optionItemRenderer:function(Z){return _.d("div",{class:"ytOptionSectionRendererOptionItem"},_.d(Ld1,{data:Z.data,
className:O,flowStateEntityKey:H,selectionStepStyle:A}))}}),_.d(_.y,{cond:function(){return t().offerText},
then:function(){return _.d("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.d(_.cu,{text:function(){return t().offerText}}))}}))},"Mh");
zkJ.idomCompat=!0;var Y_i=_.q(function(N){var t=N.data;var O=N.flowClassName;var H=N.flowStateEntityKey;N=N.isDesktop;var A=_.Fy("div"),Z=function(){var B;return(B=t().flowStateEntityKey)!=null?B:H==null?void 0:H()},U=function(){return(Z==null?void 0:Z())||""},C=function(){return t().style},F=_.cz(_.Gn,U);
_.Q8(function(){jni(t(),U(),F());setTimeout(function(){var B;(B=A.value)==null||B.focus()})});
var g={};return _.d("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.V7("ytm-option-selection-flow-step-renderer",(g["ytm-option-selection-flow-step-renderer--desktop"]=N,g["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return t().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},g))},_.d("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"},
_.d("div",{el:A,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.d(_.cu,{text:function(){return t().header}})),_.d("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.d(_.cu,{text:function(){return t().subtitle}}))),_.d(_.iF,{data:function(){return t().optionItems||[]}},{optionItemRenderer:function(B){return _.d("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.d(Ld1,{data:B.data,
className:O,flowStateEntityKey:Z,selectionStepStyle:C}))},
optionSectionRenderer:function(B){return _.d("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.d(zkJ,{data:B.data,flowClassName:O,flowStateEntityKey:Z,selectionStepStyle:C}))}}))},"Nh");
Y_i.idomCompat=!0;_.o_(Y_i,"yt-option-selection-flow-step-renderer",{props:{data:_.$O,flowClassName:_.$O,flowStateEntityKey:_.$O,isDesktop:_.$O}});_.Ej=_.q(function(N){var t=_.RH(N,{type:1,disablePadding:!1,disablePrimaryButton:!1}),O=t.data,H=t.type;N=t.disablePadding;var A=t.disablePrimaryButton,Z=t.onClickPrimaryButton,U=function(){return O().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},C=function(){return{disabled:A(),
state:A()?"disabled":"active"}},F=function(){return O().leadingLabel||O().trailingLabel};
t={};return _.d("yt-panel-footer-view-model",{class:_.V7("yt-panel-footer-view-model",(t["yt-panel-footer-view-model--hide-divider"]=function(){return O().shouldHideDivider},t["yt-panel-footer-view-model--disable-padding"]=N,t))},_.d(_.y,{cond:F,
then:function(){var g={},B={};return _.d("div",{class:_.V7("yt-panel-footer-view-model__text-row",(g["yt-panel-footer-view-model--row-bottom-padding"]=function(){var c=O();return!(!c.leadingLabel&&!c.trailingLabel||!c.primaryButton&&!c.secondaryButton)},g))},_.d(_.cu,{text:function(){return O().leadingLabel},
className:_.V7((B["yt-panel-footer-view-model--text-padding"]=F,B))}),_.d(_.cu,{text:function(){return O().trailingLabel}}))}}),_.d(_.y,{cond:U,
then:function(){var g={};return _.d("div",{class:"yt-panel-footer-view-model__button-stack"},_.d("div",{class:_.V7("yt-panel-footer-view-model__primary-button",(g["yt-panel-footer-view-model__button-stack--top-button"]=function(){return O().secondaryButton},g))},_.d(_.iF,{data:function(){return O().primaryButton}},{buttonViewModel:function(B){return _.d(_.Pu,{data:B.data,
buttonOverrides:C,onClick:Z})}})),_.d(_.iF,{data:function(){return O().secondaryButton}},{buttonViewModel:_.Pu}))}}),_.d(_.y,{cond:function(){return!U()},
then:function(){var g={},B={},c={};return _.d("div",{class:_.V7("yt-panel-footer-view-model__button-row",(g["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===H()},g))},_.d("div",{class:_.V7("yt-panel-footer-view-model__button-row--left-button",(B["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===H()},B["yt-panel-footer-view-model__button-row--hidden"]=function(){return!O().secondaryButton||0===H()},B["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===H()},B))},_.d(_.iF,{data:function(){return O().secondaryButton}},{buttonViewModel:_.Pu})),_.d("div",{class:_.V7("yt-panel-footer-view-model__primary-button",(c["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===H()||1===H()},c["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===H()},c))},_.d(_.iF,{data:function(){return O().primaryButton}},{buttonViewModel:function(u){return _.d(_.Pu,{data:u.data,
buttonOverrides:C,onClick:Z})}})))}}))},"Oh");
_.Ej.idomCompat=!0;_.anq=_.q(function(N){N=_.RH(N,{disablePadding:!1});var t=N.data,O=N.disablePadding;N=_.DhQ(function(){return t().formId});
var H=N.submitForm,A=N.isValid,Z=N.isSubmitting;return _.d("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.d(_.iF,{data:function(){return t().panelFooter}},{panelFooterViewModel:function(U){return _.d(_.Ej,{data:U.data,
onClickPrimaryButton:function(){H()},
disablePrimaryButton:function(){return!A()||Z()},
disablePadding:O})}}))},"Ph");_.o_(_.anq,"yt-form-footer-view-model",{props:{data:_.$O,disablePadding:_.$O}});var T8f=_.q(function(N){var t=_.h("enable_user_rating_web");return _.d("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.d("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.d(_.y,{cond:function(){var O;return(O=N.data())==null?void 0:O.image},
then:function(O){return _.d(_.Qt,{data:O,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.d("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.d(_.cu,{text:function(){var O;
return(O=N.data())==null?void 0:O.title}})),_.d("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.d(_.cu,{text:function(){var O;
return(O=N.data())==null?void 0:O.subtitle}})),_.d(_.y,{cond:function(){return!t},
then:function(){return _.d(_.iF,{data:function(){var O;return(O=N.data())==null?void 0:O.viewTipsButton}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Qh");_.o_(T8f,"yt-contributor-zero-state-view-model",{props:{data:_.$O}});var w55=_.q(function(N){var t=function(){var O;return(O=N.data())==null?void 0:O.image};
return _.d("yt-featured-content-item-view-model",{class:_.V7("ytFeaturedContentItemViewModelHost")},_.d("div",{class:_.V7(function(){return t()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.d("div",{class:function(){return t()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.d(_.y,{cond:t,
then:function(){return _.d("div",{class:"ytFeaturedContentItemViewModelImage"},_.d(_.iF,{data:function(){return N.data().image}},{themedImageViewModel:function(O){return _.d(yBO,{data:O.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.d(_.y,{cond:function(){var O;
return!t()&&((O=N.data())==null?void 0:O.iconName)},
then:function(){return _.d("div",{class:"ytFeaturedContentItemViewModelIcon"},_.d(_.dq,{icon:function(){return N.data().iconName}}))}}),_.d("div",{class:"ytFeaturedContentItemViewModelContent"},_.d(_.y,{cond:function(){var O;
return(O=N.data())==null?void 0:O.title},
then:function(){return _.d("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.d(_.cu,{text:function(){return N.data().title}}))}}),_.d(_.y,{cond:function(){var O;
return(O=N.data())==null?void 0:O.body},
then:function(){return _.d("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.d(_.cu,{text:function(){return N.data().body}}))}})))))},"Rh");var ekn=_.q(function(N){var t=function(){var A;return i05((A=N.data())==null?void 0:A.titleFontSize)},O=function(){var A;
return udm((A=N.data())==null?void 0:A.descriptionFontSize)},H=function(){var A;
return((A=N.data())==null?void 0:A.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.d("yt-landing-page-view-model",{class:_.V7("ytLandingPageViewModelHost",N.className)},_.d("div",{class:"ytLandingPageViewModelHeader"},_.d(_.y,{cond:function(){var A;return(A=N.data())==null?void 0:A.bannerImage},
then:function(A){return _.d("div",{class:"ytLandingPageViewModelHeaderImage"},_.d(_.iF,{data:function(){return A()}},{imageBannerViewModel:function(Z){return _.d(_.Sw,{data:Z.data,
isPositionRelative:!0})}}))}}),_.d(_.y,{cond:function(){var A;
return(A=N.data())==null?void 0:A.bannerAnimation},
then:function(A){return _.d(_.rd,{data:function(){var Z=A();if(Z==null?0:Z.url){var U;Z={path:(U=Z==null?void 0:Z.url)!=null?U:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(Z==null?0:Z.payload){var C;Z={animationData:JSON.parse((C=Z==null?void 0:Z.payload)!=null?C:""),autoplay:!0,loop:!0,renderer:"svg"}}else Z=void 0;return{animationConfig:Z}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.d("div",{class:"ytLandingPageViewModelHeaderTitle"},_.d(_.y,{cond:function(){var A;
return(A=N.data())==null?void 0:A.title},
then:function(A){return _.d("div",{class:_.V7("ytLandingPageViewModelHeaderTitleContent",t)},_.d(_.cu,{text:function(){return A()}}))}}),_.d(_.y,{cond:function(){var A;
return(A=N.data())==null?void 0:A.description},
then:function(A){var Z={};return _.d(_.cu,{className:_.V7("ytLandingPageViewModelHeaderTitleDescription",O,(Z.ytLandingPageViewModelHeaderTitleDescriptionMargin=H,Z)),text:function(){return A()}})}}))),_.d(_.y,{cond:function(){var A,Z;
return(A=N.data())==null?void 0:(Z=A.featuredContentList)==null?void 0:Z.length},
then:function(){return _.d("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.d(_.iF,{data:function(){return N.data().featuredContentList}},{featuredContentItemViewModel:function(A){return _.d(w55,{data:A.data})}}))}}),_.d(_.y,{cond:function(){var A,Z;
return(A=N.data())==null?void 0:(Z=A.expandableContentList)==null?void 0:Z.length},
then:function(){return _.d("div",{class:"ytLandingPageViewModelFaqSection"},_.d(_.iF,{data:function(){return N.data().expandableContentList}},{faqEntryViewModel:function(A){return _.d("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.d(_.m5r,{data:A.data}))}}))}}),_.d("div",{class:"ytLandingPageViewModelFooter"},_.d(_.y,{cond:function(){var A;
return(A=N.data())==null?void 0:A.legalCopy},
then:function(A){return _.d("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.d(_.cu,{text:function(){return A()}}))}}),_.d(_.y,{cond:function(){var A;
return(A=N.data())==null?void 0:A.actions},
then:function(A){return _.d("div",null,_.d(_.iF,{data:function(){return A()}},{flexibleActionsViewModel:function(Z){return _.d(_.Co,{data:Z.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Sh");_.o_(_.q(function(N){return _.d("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.d("div",{class:"ytLpSectionGroupViewModelContainer"},_.d(_.iF,{data:function(){return N.data().sections}},{landingPageViewModel:function(t){return _.d(ekn,{data:t.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Th"),"yt-lp-section-group-view-model",{props:{data:_.$O}});var P51=_.q(function(N){var t=N.data;var O=N.selectedKey;var H=N.onSelected;var A=N.groupName;var Z=function(){return t().text},U=function(){return t().attributedText},C=function(){return t().subtext},F=function(){return t().attributedSubtext},g=_.d("div",{class:"ytRadioButtonItemViewModelLabel"},_.d(_.y,{cond:Z,
then:function(){return _.d("div",null,Z)}}),_.d(_.y,{cond:U,
then:function(){return _.d(_.cu,{text:U})}}),_.d(_.y,{cond:C,
then:function(){return _.d("div",{class:"ytRadioButtonItemViewModelSubText"},C)}}),_.d(_.y,{cond:F,
then:function(){return _.d("div",{class:"ytRadioButtonItemViewModelSubText"},_.d(_.cu,{text:F}))}})),B=function(){if(U()){var u;
return(u=U())==null?void 0:u.content}return Z()},c=function(){if(F()){var u;
return(u=F())==null?void 0:u.content}return C()};
N={};return _.d("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.d(_.cj,{name:A,checked:function(){return!(O==null||!O()||t().key!==(O==null?void 0:O()))},
onChange:function(u){H==null||H(u.target,t(),A==null?void 0:A())},
labelRenderable:function(){return g},
ariaLabel:function(){return c()?B()+", "+c():B()},
className:_.V7((N.ytRadioButtonItemViewModelSubTitle=function(){return!!t().subtext},N))}))},"Uh");_.X5f=_.q(function(N){var t=N.data;var O=function(){var H;return _.TE((H=t())==null?void 0:H.rendererContext)};
N={};return _.d("content-list-item-view-model",{el:_.E4(_.wZ(function(){return t().rendererContext})),
class:_.V7("ytContentListItemViewModelHost",(N.ytContentListItemViewModelTappable=O,N)),role:function(){return O()?"listitem":void 0},
tabindex:function(){return O()?0:void 0}},_.d("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.d("div",{class:"ytContentListItemViewModelImageContainer"},_.d(_.y,{cond:function(){return t().image},
then:function(H){return _.d(_.Qt,{data:H,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.d(_.iF,{data:function(){var H;
return(H=t())==null?void 0:H.avatar}},{avatarViewModel:_.Dv})),_.d("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.d("div",{class:_.V7("ytContentListItemViewModelTitle",function(){a:{switch(t().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var H="ytContentListItemViewModelProminentTitle";
break a}H=void 0}return H})},_.d(_.cu,{text:function(){return t().title}})),_.d("div",{class:"ytContentListItemViewModelMetadata"},_.d(_.iF,{data:function(){return t().metadata}},{contentMetadataViewModel:function(H){return _.d(_.qG,{data:H.data,
layout:1})}})))),_.d("div",{class:"ytContentListItemViewModelActionButton"},_.d(_.iF,{data:function(){var H;
return(H=t())==null?void 0:H.actionButton}},{buttonViewModel:_.Pu,
toggleButtonViewModel:_.N3})))},"Vh");var xEx=_.q(function(N){var t=N.data,O=function(){var A;return(A=t())==null?void 0:A.description},H=function(){var A;
return(A=t())==null?void 0:A.title};
return _.d("ytfc-youth-basic-section-header-view-model",{class:_.V7("ytfcYouthBasicSectionHeaderViewModelHost",N.className)},_.d("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.d(_.iF,{data:function(){var A;return(A=t())==null?void 0:A.avatar}},{avatarViewModel:_.Dv}),_.d(_.y,{cond:function(){var A;
return _.nx((A=t())==null?void 0:A.themedImage)},
then:function(A){return _.d(_.Qt,{data:A,alt:function(){var Z,U;return(U=(Z=H())==null?void 0:Z.content)!=null?U:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.d("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.d(_.y,{cond:H,
then:function(){return _.d(_.cu,{text:H,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.d("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.d(_.iF,{data:function(){var A;
return(A=t())==null?void 0:A.bottomBadge}},{badgeViewModel:function(A){return _.d("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.d(_.L_,{data:A.data}))}}),_.d(_.y,{cond:O,
then:function(){return _.d(_.cu,{text:O,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Wh");var kv5=_.q(function(N){var t=N.data;return _.d("ytfc-youth-section-body-view-model",{class:_.V7("ytfcYouthSectionBodyViewModelHost",N.className)},_.d(_.iF,{data:function(){var O;return(O=t())==null?void 0:O.topContent}},{avatarStackViewModel:function(O){return _.d(_.C_,{data:O.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.d(_.cu,{text:function(){var O;
return(O=t())==null?void 0:O.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Xh");var q_r=_.q(function(N){var t=_.D(_.b$(!1,void 0,"SrK51e")),O=t.next().value,H=t.next().value,A=function(){return N.data().inlineExpansionEntityKey},Z=_.cz(kC1,A),U=function(){if(N.isSelected!==void 0)return N.isSelected();
if(A()){var F;return(F=Z())==null?void 0:F.expanded}return O()};
t={};var C={};return _.d("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Ui(function(){N.isSelected!==void 0||A()||H(!O())})},_.d("div",{class:"ytInlineExpanderViewModelHeader"},_.d(_.iF,{data:function(){return N.data().headerContent}},{youthBasicSectionHeaderViewModel:xEx}),_.d("div",{class:_.V7("ytInlineExpanderViewModelButton",(t.ytInlineExpanderViewModelButtonExpanded=U,t))},_.d(_.et,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:U(),accessibilityLabel:U()?_.CJ("SHOW_LESS",void 0,"Show Less"):_.CJ("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.d("div",{class:_.V7("ytInlineExpanderViewModelBody",(C.ytInlineExpanderViewModelBodyExpanded=U,C)),"aria-hidden":function(){return!U()}},_.d("div",{class:"ytInlineExpanderViewModelBodyContent"},_.d(_.iF,{data:function(){return N.data().bodyContent}},{youthSectionBodyViewModel:kv5}))))},"Yh");var fnO=new _.dk("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.njz=_.q(function(N){var t=function(){return N.data().background},O=function(){return N.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},H=function(){return N.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},A=_.cY().resolve(_.BY(fnO)),Z={};
return _.d("yt-card-view-model",{el:_.E4(_.wZ(function(){return N.data().rendererContext})),
class:_.V7("ytCardViewModelHost",N.className,(Z.ytCardViewModelClickable=function(){return _.a8(N.data().rendererContext)},Z))},_.d(_.f_,{contentId:function(){return N.data().contentId}},function(){var U={};
return _.d("div",{class:_.V7("ytCardViewModelCardViewModelInner",function(){var C;return S8q(N.data().cardStyle,(C=N.isSelected)==null?void 0:C.call(N))},function(){if(N.isSelected===void 0){var C;
a:{switch((C=N.data().cardState)==null?void 0:C.selectionState){case "CARD_SELECTION_STATE_SELECTED":C="ytCardViewModelSelected";break a}C=void 0}return C}})},_.d(_.iF,{data:t},{cinematicContainerViewModel:function(C){return _.d(_.Ag1,{data:C.data})}}),_.d("div",{class:"ytCardViewModelContentWrapper"},_.d(_.y,{cond:function(){return!O()},
then:function(){var C={},F={};return _.d("div",{class:"ytCardViewModelTopContentContainer"},_.d("div",{class:_.V7("ytCardViewModelTopContent",(C.ytCardViewModelInnerPadding=function(){return!N.data().disableTopContentPadding&&N.data().topContent},C))},_.d(_.iF,{data:function(){return N.data().topContent}},{contentListItemViewModel:function(g){return _.d(_.X5f,{data:g.data})},
basicContentViewModel:_.$b0,linearLayoutViewModel:_.jw})),_.d("div",{class:_.V7("ytCardViewModelInlineTrailingAction",(F.ytCardViewModelInlineCenterTrailingAction=H,F.ytCardViewModelInlineTrailingActionMargin=function(){return N.data().trailingAction},F))},_.d(_.iF,{data:function(){return N.data().trailingAction}},{buttonViewModel:function(g){return _.d(_.Pu,{data:g.data})}})))}}),_.d("div",{class:_.V7((U.ytCardViewModelInnerPadding=function(){return!N.data().disableBodyContentPadding&&N.data().bodyContent},
U))},_.d(_.iF,{data:function(){return N.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.Wvi,
contentListItemViewModel:_.X5f,descriptionPreviewViewModel:_.ER,inlineExpanderViewModel:function(C){return _.d(q_r,{data:C.data,isSelected:N.isSelected})},
linearLayoutViewModel:_.jw,listItemViewModel:_.$P},A&&{contentSectionViewModel:A})))),_.d(_.y,{cond:function(){return O()},
then:function(){return _.d("div",{class:"ytCardViewModelOverlayTrailingAction"},_.d(_.iF,{data:function(){return N.data().trailingAction}},{buttonViewModel:function(C){return _.d(_.Pu,{data:C.data})}}))}}))}))},"Zh");var Wdm=_.q(function(N){var t=N.data,O=N.onSelected,H=N.selectedKey,A=N.groupName;N=N.className;var Z=_.D(_.b$(!1,void 0,"mDtSad")),U=Z.next().value,C=Z.next().value,F=function(){if(H!==void 0){var g=H();return!(!g||t().key!==g)}return U()};
Z=_.Ui(function(g){O?O(g.currentTarget,t(),A==null?void 0:A()):C(!U())});
return _.d("yt-selectable-item-view-model",{class:_.V7("ytSelectableItemViewModelHost",N,"ytSelectableItemViewModelContainer"),"on:click":Z,"prop:checked":F},_.d(_.iF,{data:function(){return t().content}},{cardViewModel:function(g){return _.d(_.njz,{data:g.data,
isSelected:F})}}))},"$h");_.rBi=_.q(function(N){var t=N.data;var O=N.onSelected;var H=N.selectedKey;var A=N.groupName;var Z=function(){return(A==null?void 0:A())||t().key};
return _.d("yt-radio-button-group-view-model",{class:_.V7("ytRadioButtonGroupViewModelHost",N.className)},_.d("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.d(_.iF,{data:function(){return t().radioButtons}},{radioButtonItemViewModel:function(U){return _.d(P51,{data:U.data,
onSelected:O,selectedKey:H,groupName:Z})},
selectableItemViewModel:function(U){return _.d(Wdm,{data:U.data,onSelected:O,selectedKey:H,groupName:Z})}})))},"ai");var In1=_.q(function(N){_.Q8(function(){if(N.controlledMode()&&N.data().defaultSelected)_.R0(Error("ak"));else{var Z;!N.controlledMode()&&((Z=N.selected)==null?0:Z.call(N))&&_.R0(Error("bk"))}});
var t=_.D(_.Gb(function(){if(!N.controlledMode())return N.data().defaultSelected})),O=t.next().value,H=t.next().value,A=function(){if(!N.controlledMode())return O();
var Z;return(Z=N.selected)==null?void 0:Z.call(N)};
return _.d("yt-checkbox-item-view-model",{class:_.V7("ytCheckboxItemViewModelHost",N.className)},_.d(_.$P,{data:function(){var Z=N.data(),U=A();return{title:Z.text,subtitle:Z.subtext,superlabel:Z.superlabel,isSelected:!!U,isDisabled:Z.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!N.controlledMode()&&H(!O());var Z,U;(U=N.onTap)==null||U.call(N,!!A(),N.data(),(Z=N.groupName)==null?void 0:Z.call(N))},
isCompact:N.isCompact}))},"bi");var lnn=_.q(function(N){var t=N.data;var O=N.controlledMode;var H=N.selectedKeys;var A=N.onItemTap;var Z=N.groupName;var U=function(){return(Z==null?void 0:Z())||t().key};
_.Q8(function(){O()&&t().defaultSelectedKeys?_.R0(Error("ck")):!O()&&(H==null?0:H())&&_.R0(Error("dk"))});
N=_.D(_.Gb(function(){if(!O())return t().defaultSelectedKeys}));
var C=N.next().value,F=N.next().value,g=function(B,c,u){B=[];!O()&&c.key&&(B=hKi(c.key,C()||[]),F(B));A==null||A(c,B,u)};
return _.d("yt-checkbox-group-view-model",{class:_.V7("ytCheckboxGroupViewModelHost")},_.d("fieldset",{class:_.V7("ytCheckboxGroupViewModelFieldset")},_.d(_.iF,{data:function(){return t().checkboxes}},{checkboxItemViewModel:function(B){var c=B.data;
return _.d(In1,{data:c,controlledMode:!0,selected:function(){var u=O()?(H==null?void 0:H())||[]:C()||[],S=c().key;return S?u.includes(S):!1},
onTap:g,groupName:U})}})))},"ci");var GR=_.q(function(N){var t=_.cz(Mm1,_.Gr(function(){var C;return(C=N.data())==null?void 0:C.noteFeedEntityKey},"")),O=_.cz(WKx,_.Gr(function(){var C;
return(C=N.data())==null?void 0:C.userRatingEntityKey},"")),H=_.h("enable_user_rating_web"),A=function(){var C,F,g;
return((C=t())==null?0:C.contributorNote)?(F=t())==null?void 0:F.contributorNote:(g=N.data())==null?void 0:g.existingNote},Z=function(){var C,F;
return!!O()&&!!b01((C=O())==null?void 0:C.helpfulnessValue,(F=N.data())==null?void 0:F.noteData)};
if(H){var U={};return _.d("yt-note-view-model",{class:_.V7("ytNoteViewModelHostUserRating",(U.ytNoteViewModelHostUserRatingPublishedNote=function(){var C,F,g,B;return((C=N.data())==null?void 0:(F=C.noteData)==null?void 0:F.isPublished)&&!((g=N.data())==null?0:(B=g.noteData)==null?0:B.isUserRatingForm)},U))},_.d("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.d("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.d(_.y,{cond:function(){var C,F;
return(C=N.data())==null?void 0:(F=C.noteData)==null?void 0:F.isPinned},
then:function(){return _.d(_.dq,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.d(_.y,{cond:function(){var C,F;return(C=N.data())==null?void 0:(F=C.noteData)==null?void 0:F.isPublished},
then:function(){return _.d(_.dq,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.d(_.iF,{data:function(){var C;
return(C=N.data())==null?void 0:C.metadata}},{contentMetadataViewModel:_.qG}),_.d("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var C,F;
return(F=_.M((C=N.data())==null?void 0:C.metadata,_.u7R))==null?void 0:F.delimiter}),_.d(_.cu,{text:function(){var C;
return(C=A())==null?void 0:C.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.d(_.y,{cond:function(){var C,F;return!((C=N.data())==null?0:(F=C.noteData)==null?0:F.isUserRatingForm)},
then:function(){return _.d(_.iF,{data:function(){var C,F,g,B,c,u,S,b=!!((C=N.data())==null?0:(F=C.noteData)==null?0:F.isPinned);C=Z();F=(g=N.data())==null?void 0:g.noteData;g=(B=t())==null?void 0:(c=B.contributorNote)==null?void 0:c.deleteAction;B=(u=N.data())==null?void 0:u.overflowButtonNoteWithRatingOnTapOverride;u=(S=N.data())==null?void 0:S.overflowButton;var z;S=(z=_.M(u,_.$9))==null?void 0:z.accessibilityText;return b?pvq(F,g,S):C?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:B,accessibilityText:S}}:u}},{buttonViewModel:function(C){return _.d(_.Pu,{data:C.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.d("div",{class:"ytNoteViewModelNoteContent"},_.d(_.cu,{text:function(){var C;
return(C=A())==null?void 0:C.text}})),_.d(_.y,{cond:function(){var C,F,g,B;
return!((C=N.data())==null?0:(F=C.noteData)==null?0:F.isPinned)&&!((g=N.data())==null?0:(B=g.noteData)==null?0:B.isUserRatingForm)},
then:function(){return _.d(_.y,{cond:Z,then:function(){return _.d("div",{class:"ytNoteViewModelUserRatingContainer"},_.d(_.cu,{text:function(){var C,F;return b01((C=O())==null?void 0:C.helpfulnessValue,(F=N.data())==null?void 0:F.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.d(_.iF,{data:function(){var C;return(C=N.data())==null?void 0:C.userRatingButton}},{buttonViewModel:function(C){return _.d(_.Pu,{data:C.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.d(_.y,{cond:function(){var C,F,g,B;
return!((C=N.data())==null?0:(F=C.noteData)==null?0:F.ignoreDivider)&&!((g=N.data())==null?0:(B=g.noteData)==null?0:B.isUserRatingForm)},
then:function(){return _.d("div",{class:"ytNoteViewModelDivider"},_.d(_.iF,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(C){return _.d(_.CSr,{data:C.data})}}))}}))}return _.d("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.d("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.d("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.d(_.y,{cond:function(){var C,F;return(C=N.data())==null?void 0:(F=C.noteData)==null?void 0:F.isPinned},
then:function(){return _.d(_.dq,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.d(_.y,{cond:function(){var C,F;return(C=N.data())==null?void 0:(F=C.noteData)==null?void 0:F.isPublished},
then:function(){return _.d(_.dq,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.d(_.y,{cond:function(){return H},
then:function(){return _.d(_.iF,{data:function(){var C;return(C=N.data())==null?void 0:C.metadata}},{contentMetadataViewModel:function(C){return _.d(_.qG,{data:C.data})}})}}),_.d(_.cu,{text:function(){var C,F;
return(C=N.data())==null?void 0:(F=C.noteData)==null?void 0:F.headerText}}),_.d("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.d(_.cu,{text:function(){var C,F;
return(C=N.data())==null?void 0:(F=C.noteData)==null?void 0:F.delimiter}})),_.d(_.cu,{text:function(){var C,F;
return(C=t())==null?void 0:(F=C.contributorNote)==null?void 0:F.publishedTimeText}})),_.d(_.iF,{data:function(){var C,F,g;
return pvq((C=N.data())==null?void 0:C.noteData,(F=t())==null?void 0:(g=F.contributorNote)==null?void 0:g.deleteAction)}},{buttonViewModel:function(C){return _.d(_.Pu,{data:C.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.d("div",{class:"ytNoteViewModelNoteContent"},_.d(_.cu,{text:function(){var C,F;
return(C=t())==null?void 0:(F=C.contributorNote)==null?void 0:F.text}})))},"di");
GR.idomCompat=!0;_.o_(_.q(function(N){var t=_.Gr(function(){var x;return(x=N.data())==null?void 0:x.flowStateEntityKey},""),O=_.cz(_.Gn,t),H=_.cz(Mm1,_.Gr(function(){var x;
return(x=N.data())==null?void 0:x.noteFeedEntityKey},"")),A=_.D(_.Gb(function(){var x;
return(x=_.M(N.data().helpfulnessValue,_.cq))==null?void 0:x.defaultSelectedKey})),Z=A.next().value,U=A.next().value;
A=_.D(_.Gb(function(){var x,l,I;return(I=_.M((x=_.M(N.data().helpfulnessValue,_.cq))==null?void 0:(l=x.radioButtons)==null?void 0:l.find(function(r){var E;return((E=_.M(r,OJr))==null?void 0:E.key)===Z()}),OJr))==null?void 0:I.value}));
var C=A.next().value,F=A.next().value;A=_.D(_.Gb(function(){var x;return(x=_.M(N.data().helpfulReasons,tbm))==null?void 0:x.defaultSelectedKeys}));
var g=A.next().value,B=A.next().value;A=_.D(_.Gb(function(){var x;return(x=_.M(N.data().notHelpfulReasons,tbm))==null?void 0:x.defaultSelectedKeys}));
var c=A.next().value,u=A.next().value,S=function(x,l){U(l.key);F(l.value);B([]);u([])},b=function(){var x,l;
return((x=C())==null?void 0:x.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((l=C())==null?void 0:l.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},z=function(){var x,l;
return((x=C())==null?void 0:x.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((l=C())==null?void 0:l.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},w=function(x){LFq(x.key,g,B)},P=function(x){LFq(x.key,c,u)};
_.Q8(function(){var x,l,I;f3x((x=N.data())==null?void 0:(l=x.userRatingFormSchema)==null?void 0:l.id,{isValid:function(){return!!Z()},
formData:function(){var r=C(),E=Y8r(g(),_.M(N.data().helpfulReasons,tbm)),J=Y8r(c(),_.M(N.data().notHelpfulReasons,tbm));r={helpfulnessValue:r==null?void 0:r.noteHelpfulnessValue};if(E){r.helpfulReasons=[];E=_.D(E);for(var CN=E.next();!CN.done;CN=E.next()){CN=CN.value;var B4=void 0;if((B4=CN)==null?0:B4.noteHelpfulReason)B4=void 0,r.helpfulReasons.push((B4=CN)==null?void 0:B4.noteHelpfulReason)}}if(J)for(r.notHelpfulReasons=[],J=_.D(J),E=J.next();!E.done;E=J.next())if(E=E.value,CN=void 0,(CN=E)==
null?0:CN.noteNotHelpfulReason)CN=void 0,r.notHelpfulReasons.push((CN=E)==null?void 0:CN.noteNotHelpfulReason);return{userRatingFormData:r}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(I=_.M(O(),IAf))==null?void 0:I.submitFormParams},onSubmitResult:function(){var r,E=(r=_.M(O(),IAf))==null?void 0:r.userRatingEntityKey,J;r={key:E,helpfulnessValue:(J=C())==null?void 0:J.noteHelpfulnessValue};E&&_.E6(_.uF("contextNoteUserRatingEntityPayload",E,r));var CN;E=(CN=N.data())==null?void 0:CN.viewNoteFlowStepId;var B4;if((B4=H())==null||!B4.contributorNote){var zM;E=(zM=N.data())==null?void 0:zM.zeroStateFlowStepId}(CN=
Object.assign({},O()))&&E&&(CN.currentStepId=E,CN.stepIdStack=[E],_.E6(_.uF("flowStateEntity",t(),CN)));var jy;(CN=(jy=N.data())==null?void 0:jy.ratingSubmittedSnackbarCommand)&&_.xJ(CN)},
disableDuringSubmission:!0})});
return _.d("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.d(_.iF,{data:function(){var x=_.M(O(),IAf);if(x){var l;var I={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:x==null?void 0:(l=x.note)==null?void 0:l.headerText}]}],delimiter:"\u2022"}},existingNote:x.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else I=void 0;return I}},{noteViewModel:function(x){return _.d("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.d(GR,{data:x.data}))}}),_.d(_.iF,{data:function(){var x;
return(x=N.data())==null?void 0:x.helpfulnessValue}},{radioButtonGroupViewModel:function(x){return _.d("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.d(_.rBi,{data:x.data,
onSelected:S,selectedKey:Z}))}}),_.d(_.y,{cond:b,
then:function(){return _.d("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.d("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.d(_.cu,{text:function(){var x;return(x=N.data())==null?void 0:x.helpfulReasonQuestion}})),_.d(_.iF,{data:function(){var x;
return(x=N.data())==null?void 0:x.helpfulReasons}},{checkboxGroupViewModel:function(x){return _.d(lnn,{data:x.data,
onItemTap:w,selectedKeys:g,controlledMode:!0})}}))}}),_.d(_.y,{cond:z,
then:function(){return _.d("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.d("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.d(_.cu,{text:function(){var x;return(x=N.data())==null?void 0:x.notHelpfulReasonQuestion}})),_.d(_.iF,{data:function(){var x;
return(x=N.data())==null?void 0:x.notHelpfulReasons}},{checkboxGroupViewModel:function(x){return _.d(lnn,{data:x.data,
onItemTap:P,selectedKeys:c,controlledMode:!0})}}))}}),_.d(_.y,{cond:function(){return!b()&&!z()},
then:function(){return _.d(_.iF,{data:function(){var x;return(x=N.data())==null?void 0:x.helpfulNoteFeatures}},{alertBannerViewModel:function(x){return _.d("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.d(_.B$_,{data:x.data}))}})}}))},"ei"),"yt-note-user-rating-view-model",{props:{data:_.$O}});_.o_(GR,"yt-note-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=_.cz(Mm1,_.Gr(function(){var O;return(O=N.data())==null?void 0:O.noteFeedEntityKey},""));
return _.d("yt-notes-wrapper-view-model",{class:_.V7("ytNotesWrapperViewModelHost")},_.d(_.y,{cond:function(){var O,H,A;return!((O=N.data())==null||!O.existingNotes)||!((H=N.data())==null||!H.currentNote)&&!((A=t())==null||!A.contributorNote)},
then:function(){return _.d(_.BZ,null,_.d(_.iF,{data:function(){var O,H,A,Z;return((H=_.M((O=N.data())==null?void 0:O.currentNote,lAn))==null?0:(A=H.noteData)==null?0:A.isPublished)?(Z=N.data())==null?void 0:Z.currentNote:void 0}},{noteViewModel:function(O){return _.d(GR,{data:O.data})}}),_.d(_.iF,{data:function(){var O;
return(O=N.data())==null?void 0:O.existingNotes}},{noteViewModel:function(O){var H=O.data;
return _.d(_.y,{cond:function(){var A,Z;return(A=H())==null?void 0:(Z=A.noteData)==null?void 0:Z.isPublished},
then:function(){return _.d(GR,{data:H})}})}}),_.d(_.iF,{data:function(){var O,H,A,Z,U;
return((H=_.M((O=N.data())==null?void 0:O.currentNote,lAn))==null?0:(A=H.noteData)==null?0:A.isPublished)||(Z=t())==null||!Z.contributorNote?void 0:(U=N.data())==null?void 0:U.currentNote}},{noteViewModel:function(O){return _.d(GR,{data:O.data})}}),_.d(_.iF,{data:function(){var O;
return(O=N.data())==null?void 0:O.existingNotes}},{noteViewModel:function(O){var H=O.data;
return _.d(_.y,{cond:function(){var A,Z;return!((A=H())==null?0:(Z=A.noteData)==null?0:Z.isPublished)},
then:function(){return _.d(GR,{data:H})}})}}))},
else:function(){return _.d(_.iF,{data:function(){var O;return(O=N.data())==null?void 0:O.zeroStateData}},{contributorZeroStateViewModel:T8f})}}))},"fi"),"yt-notes-wrapper-view-model",{props:{data:_.$O}});var RK=_.q(function(N){var t=_.RH(N,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0}),O=t.label,H=t.text,A=t.placeholder,Z=t.hint;N=t.rows;var U=t.overflowStyle,C=t.outline,F=t.disabled,g=t.disableNewLines,B=t.characterLimit,c=t.validation,u=t.onInput,S=t.timePickerData,b=_.Fy("textarea");t=_.D(_.Gb(function(){return H()}));
var z=t.next().value,w=t.next().value;t=_.D(_.b$(!1,void 0,"q1mZCd"));var P=t.next().value,x=t.next().value,l=function(){x(!0)},I=function(){x(!1)};
_.Q8(function(){var fN=b.value,gf=U(),yr=z();gf==="expand-vertically"&&yr&&a0x(fN);b.value.addEventListener("focusin",l);b.value.addEventListener("focusout",I)});
_.Ia(function(){b.value.removeEventListener("focusin",l);b.value.removeEventListener("focusout",I)});
var r=function(){var fN;return(fN=c())==null?void 0:fN.validate(z())},E=function(){return B()&&!r()&&z().length>B().maxChars},J=function(){return!!r()||E()};
t=_.Ui(function(fN){if(!fN.currentTarget)return!1;fN=fN.currentTarget;w(fN.value);U()==="expand-vertically"&&a0x(fN);u==null||u(fN.value);return!0});
var CN=_.Ui(function(fN){g()&&fN.key==="Enter"&&fN.preventDefault();return!1}),B4=_.Ui(function(){b.value.focus()}),zM=function(){return A()||O()},jy={},c4={},XO={},kx={};
return _.d("textarea-shape",{class:_.V7("ytStandardsTextareaShapeHost",(jy.ytStandardsTextareaShapeTimePicker=function(){var fN;return(fN=S())==null?void 0:fN.useTimePickerStyles},jy))},_.d("div",{class:_.V7("ytStandardsTextareaShapeTextareaContainer",(c4.ytStandardsTextareaShapeTextareaContainerOutline=C,c4.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=F,c4.ytStandardsTextareaShapeTextareaContainerOutlineError=J,c4)),
"on:click":B4},_.d("label",{class:_.V7("ytStandardsTextareaShapeLabel",(XO.ytStandardsTextareaShapeLabelFocused=P,XO.ytStandardsTextareaShapeLabelDisabled=F,XO.ytStandardsTextareaShapeLabelError=function(){return J()&&!F()},XO.ytStandardsTextareaShapeLabelHidden=function(){return!P()&&!z()&&!!zM()},XO))},O),_.d("div",{class:_.V7("ytStandardsTextareaShapePlaceholder",(kx.ytStandardsTextareaShapePlaceholderVisible=function(){return!P()&&!z()},kx)),
"aria-hidden":"true"},zM),_.d("textarea",{el:b,class:"ytStandardsTextareaShapeTextarea",rows:N,disabled:F,placeholder:zM,"prop:value":z,"on:input":t,"on:keydown":CN})),_.d(_.y,{cond:function(){return Z()&&!J()},
then:function(){var fN={};return _.d("div",{class:_.V7("ytStandardsTextareaShapeHint",(fN.ytStandardsTextareaShapeHintDisabled=F,fN))},_.d("div",{class:"ytStandardsTextareaShapeHintHintMessage"},Z))}}),_.d(_.y,{cond:r,
then:function(){return _.d(QJx,{disabled:F},_.d("div",{class:"ytStandardsTextareaShapeErrorMessage"},r))}}),_.d(_.y,{cond:B,
then:function(fN){return _.d(_.y,{cond:E,then:function(){return _.d(QJx,{disabled:F},_.d("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return fN().errorMessage}),_.d("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return z().length+"/"+fN().maxChars}))}})}}))},"gi");
RK.idomCompat={callbacks:{onInput:!0}};var QJx=_.q(function(N){var t={};return _.d("div",{class:_.V7("ytStandardsTextareaShapeError",(t.ytStandardsTextareaShapeErrorDisabled=N.disabled,t)),role:"alert"},_.d(_.dq,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),N.children)},"hi");_.mEx=_.q(function(N){var t=N.data;return _.d("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.d(RK,{text:N.text,label:function(){var O;return(O=t().contentProperties)==null?void 0:O.labelText},
placeholder:function(){var O;return(O=t().contentProperties)==null?void 0:O.placeholderText},
hint:function(){var O;return(O=t().contentProperties)==null?void 0:O.hintText},
outline:function(){var O;return!((O=t().displayProperties)==null?0:O.hideBorder)},
overflowStyle:function(){var O;return((O=t().displayProperties)==null?0:O.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:N.disabled,disableNewLines:function(){var O;return(O=t().displayProperties)==null?void 0:O.disableNewLines},
onInput:N.onInput,characterLimit:N.characterLimit,validation:N.validation,rows:function(){var O;return(O=t().displayProperties)==null?void 0:O.rows}}))},"ii");_.Ejm=_.q(function(N){var t=N.data;return _.d("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.d(RK,{text:N.text,label:function(){var O;return(O=t().contentProperties)==null?void 0:O.labelText},
placeholder:function(){var O;return(O=t().contentProperties)==null?void 0:O.placeholderText},
hint:function(){var O;return(O=t().contentProperties)==null?void 0:O.hintText},
outline:function(){var O;return!((O=t().displayProperties)==null?0:O.hideBorder)},
overflowStyle:function(){var O;return((O=t().displayProperties)==null?0:O.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var O;return(O=t().displayProperties)==null?void 0:O.disableNewLines},
onInput:N.onInput,characterLimit:N.characterLimit,validation:N.validation,rows:function(){var O;return(O=t().displayProperties)==null?void 0:O.rows}}))},"ji");var GvJ=_.q(function(N){var t=_.D(_.Gb(function(){var B4,zM;return((B4=N.data().structuredContextNoteFormSchema)==null?0:(zM=B4.initialValues)==null?0:zM.noteBody)?N.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),O=t.next().value,H=t.next().value;
t=_.D(_.Gb(function(){N.data();return!1}));
var A=t.next().value,Z=t.next().value;t=_.D(_.Gb(function(){N.data();return!1}));
var U=t.next().value,C=t.next().value;t=_.D(_.Gb(function(){var B4,zM;return((B4=N.data().structuredContextNoteFormSchema)==null?0:(zM=B4.initialValues)==null?0:zM.timestamp)?N.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var F=t.next().value,g=t.next().value;t=_.D(_.Gb(function(){N.data();return!1}));
var B=t.next().value,c=t.next().value;t=_.D(_.Gb(function(){var B4,zM;return((B4=N.data().structuredContextNoteFormSchema)==null?0:(zM=B4.initialValues)==null?0:zM.sources)?[N.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var u=t.next().value,S=t.next().value;t=_.D(_.Gb(function(){N.data();return!1}));
var b=t.next().value,z=t.next().value;t=_.D(_.Gb(function(){return!1}));
var w=t.next().value,P=t.next().value;_.Q8(function(){var B4;_.n6f((B4=N.data().structuredContextNoteFormSchema)==null?void 0:B4.id,{isSubmitting:w,onSubmit:function(){P(!0);var zM=f05(O(),F(),u(),N.data()),jy=_.cY().resolve(_.jo);zM&&jy&&jy.resolveCommand(zM,{commandController:{onSuccess:function(){P(!1)}}})},
isValid:function(){return A()&&!U()&&!B()&&!b()}})});
var x=function(B4){if(B4!==void 0&&(H(B4),!A()&&B4.length>0&&Z(!0),A())){var zM=eK5(N.data());if(zM){var jy=zM.minLength;zM=zM.maxLength;jy&&B4.length<jy?C(!0):zM&&B4.length>zM?C(!0):C(!1)}}},l=function(B4){if(B4!==void 0){g(B4);
if(B4.length>0){var zM,jy,c4,XO,kx=Xv5((zM=N.data())==null?void 0:(jy=zM.structuredContextNoteFormSchema)==null?void 0:(c4=jy.fieldSchemas)==null?void 0:(XO=c4.timestamp)==null?void 0:XO.validationSchema);if(kx&&(zM=kx.regex)&&!(new RegExp(zM)).test(B4)){c(!0);return}}c(!1)}},I=function(B4){if(B4!==void 0){var zM=B4.split(/[ \n]/).map(function(jy){return jy.trim()});
S(zM);if(B4.length>0)for(B4=_.D(zM),zM=B4.next();!zM.done;zM=B4.next())if(!q81(zM.value)){z(!0);return}z(!1)}},r=function(){return{validate:function(B4){if(A()){var zM=eK5(N.data());
if(zM){var jy=zM.minLength;zM=zM.translations;if(jy&&B4.length<jy)return zM==null?void 0:zM.minLengthErrorMessage}}}}},E=function(){var B4=eK5(N.data()),zM=B4==null?void 0:B4.maxLength,jy;
B4=B4==null?void 0:(jy=B4.translations)==null?void 0:jy.maxLengthErrorMessage;if(zM&&B4)return{maxChars:zM,errorMessage:B4}},J=function(){return{validate:function(B4){if(B4){var zM,jy,c4,XO,kx=Xv5((zM=N.data())==null?void 0:(jy=zM.structuredContextNoteFormSchema)==null?void 0:(c4=jy.fieldSchemas)==null?void 0:(XO=c4.timestamp)==null?void 0:XO.validationSchema);
if(kx&&(zM=kx.regex,kx=kx.translations,zM&&!(new RegExp(zM)).test(B4)))return kx==null?void 0:kx.regexErrorMessage}}}},CN=function(){return{validate:function(B4){if(B4){var zM,jy,c4,XO,kx=kZO((zM=N.data())==null?void 0:(jy=zM.structuredContextNoteFormSchema)==null?void 0:(c4=jy.fieldSchemas)==null?void 0:(XO=c4.sources)==null?void 0:XO.validationSchema);
if(kx&&(zM=kx.translations,zM==null?0:zM.selectedErrorMessage))for(B4=B4.split(/[ \n]/).map(function(fN){return fN.trim()}),B4=_.D(B4),jy=B4.next();!jy.done;jy=B4.next())if(!q81(jy.value))return B4=void 0,(B4=zM)==null?void 0:B4.selectedErrorMessage}}}};
return _.d("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.d("div",{class:"ytStructuredContextNoteViewModelTextField"},_.d(_.iF,{data:function(){var B4;return(B4=N.data())==null?void 0:B4.noteContents}},{textFormFieldViewModel:function(B4){return _.d(_.Ejm,{data:B4.data,
onInput:x,validation:r,characterLimit:E})},
textFieldViewModel:function(B4){return _.d(_.mEx,{data:B4.data,onInput:x,validation:r,characterLimit:E})}})),_.d("div",{class:"ytStructuredContextNoteViewModelTextField"},_.d(_.iF,{data:function(){var B4;
return(B4=N.data())==null?void 0:B4.noteTimestamp}},{textFormFieldViewModel:function(B4){return _.d(_.Ejm,{data:B4.data,
onInput:l,validation:J})},
textFieldViewModel:function(B4){return _.d(_.mEx,{data:B4.data,onInput:l,validation:J})}})),_.d("div",{class:"ytStructuredContextNoteViewModelTextField"},_.d(_.iF,{data:function(){var B4;
return(B4=N.data())==null?void 0:B4.noteSources}},{textFormFieldViewModel:function(B4){return _.d(_.Ejm,{data:B4.data,
onInput:I,validation:CN})},
textFieldViewModel:function(B4){return _.d(_.mEx,{data:B4.data,onInput:I,validation:CN})}})))},"ki");
GvJ.idomCompat=!0;_.o_(GvJ,"yt-structured-context-note-view-model",{props:{data:_.$O}});var Rkm=_.q(function(N){var t=_.D(_.Gb(function(){var Z;if((Z=N.controlled)==null?0:Z.call(N))return[];var U;return(((U=N.data())==null?void 0:U.chips)||[]).map(function(C){C=_.M(C,_.j7);if(C==null?0:C.selected)return nIJ(C.chipValue)}).filter(function(C){return C!==void 0})})),O=t.next().value,H=t.next().value,A=function(Z){var U=nIJ(Z.chipValue);
if(U!==void 0){var C;if((C=N.controlled)==null?0:C.call(N))return void N.controlled().onTap(U);Z=O().includes(U)?[].concat(_.W6(O().filter(function(g){return g!==U}))):[].concat(_.W6(O()),[U]);
H(Z);var F;if((F=N.uncontrolled)==null?0:F.call(N))N.uncontrolled().onUpdate(Z)}};
return _.d("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.d(_.nL,{each:function(){return N.data().chips||[]}},function(Z){return _.d("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.d(_.xJS,{data:function(){return _.M(Z,_.j7)},
selected:function(){var U;if(U=_.M(Z,_.j7)){var C=nIJ(U.chipValue);if(C!==void 0){var F;U=((F=N.controlled)==null?0:F.call(N))?N.controlled().selectedValues.includes(C):O().includes(C)}else U=void 0}else U=!1;return U},
callback:A}))}))},"li");var vjx=_.q(function(N){var t=N.data;var O=function(){var C;return((C=t())==null?void 0:C.flowStateKey)||""},H=_.cz(_.Gn,O),A=function(){var C;
return(C=_.M(H(),Qrf))==null?void 0:C.chips},Z=function(C){if(C!==void 0){var F=A()||[];
F=F.find(function(g){return g===C})?F.filter(function(g){return g!==C}):[].concat(_.W6(F),[C]);
F=Object.assign({},H(),{feedbackFormFlowState:Object.assign({},_.M(H(),Qrf),{chips:F})});_.E6(_.uF("flowStateEntity",O(),F))}},U=function(){var C;
return _.M((C=t())==null?void 0:C.inputBox,m05)};
N=_.Tj(function(C){var F=U();F=!(F==null?0:F.maxChars)||C.length<=F.maxChars;C=Object.assign({},H(),{feedbackFormFlowState:Object.assign({},_.M(H(),Qrf),{detail:C}),abuseReportFlowState:Object.assign({},_.M(H(),Bq),{navigationEnabled:F})});_.E6(_.uF("flowStateEntity",O(),C))},150);
return _.d("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.d("div",{class:"ytFeedbackFormViewModelChips"},_.d(_.iF,{data:function(){var C;return(C=t())==null?void 0:C.chipSelection}},{chipSelectionFormFieldViewModel:function(C){return _.d(Rkm,{data:C.data,
controlled:function(){return{selectedValues:A()||[],onTap:Z}}})}})),_.d("div",{class:"ytFeedbackFormViewModelInputBox"},_.d(RK,{text:function(){var C;
return(C=_.M(H(),Qrf))==null?void 0:C.detail},
placeholder:function(){var C;return((C=U())==null?void 0:C.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var C=U();if(C&&C.maxChars)return{maxChars:C.maxChars,errorMessage:C.maxCharsExceededErrorMessage||""}},
onInput:N})),_.d("div",{class:"ytFeedbackFormViewModelFooterText"},_.d(_.cu,{text:function(){return t().footerText}})))},"mi");
vjx.idomCompat=!0;_.o_(vjx,"yt-feedback-form-view-model",{props:{data:_.$O}});var JBn=_.q(function(N){var t=N.data;var O=_.cz(qh5,function(){return t().flowStateKey||""}),H=function(){var A;
_.xJ((A=_.M(O(),Bq))==null?void 0:A.navigationCommand)};
return _.d("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.d("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.d(_.iF,{data:function(){return t().cancelButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:H})}}),_.d(_.iF,{data:function(){var A;
if(t().navButton){var Z=Object;var U=Z.assign,C=_.M(t().navButton,_.$9),F=((A=_.M(O(),Bq))==null?0:A.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",g,B;A=_.M((g=_.M(O(),Bq))==null?void 0:g.navigationCommand,_.Tb);g=(B=_.M(A,_.Z3))==null?void 0:B.url;Z={buttonViewModel:U.call(Z,{},C,{state:F,iconName:g?"OPEN_IN_NEW":""})}}else Z=void 0;return Z}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:H})}})))},"ni");
JBn.idomCompat=!0;_.o_(JBn,"yt-report-form-bottom-bar-view-model",{props:{data:_.$O}});var ojx=_.q(function(N){var t=N.nextStep;return _.d("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.d("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.d(_.dq,{icon:function(){return t().iconName||""}})),_.d("div",null,_.d(_.cu,{text:function(){return t().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"oi"),sJf=_.q(function(N){var t=N.data;
var O,H=(O=_.cY().resolve(_.BY(_.WV)))==null?void 0:O(),A=_.cz(_.Gn,function(){return t().flowStateKey||""});
return _.d("yt-report-form-confirmation-page-view-model",{class:function(){var Z;return((Z=_.M(A(),Bq))==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.d("div",{class:function(){var Z;
return((Z=_.M(A(),Bq))==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.d(_.Qt,{data:function(){return H&&t().imageDark?t().imageDark:t().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.d("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.d("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return t().confirmationHeader}),_.d("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.d(_.cu,{text:function(){return t().confirmationText}})),_.d("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.d(_.cu,{text:function(){return t().lawEnforcementText}})),
_.d("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return t().whatToExpectHeader}),_.d(_.y,{cond:function(){return t().nextSteps},
then:function(Z){return _.d("div",null,_.d(_.nL,{each:Z},function(U){return _.d(ojx,{nextStep:U})}))}}),_.d(_.y,{cond:function(){return t().legalReportText},
then:function(Z){return _.d("div",null,_.d(_.cu,{text:Z,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"pi");
sJf.idomCompat=!0;_.o_(sJf,"yt-report-form-confirmation-page-view-model",{props:{data:_.$O}});var NYr=_.q(function(N){var t=N.data;var O=function(){var Z;return((Z=_.M(t().inputBox,m05))==null?void 0:Z.maxChars)||500},H=function(){return t().flowStateKey||""},A=_.cz(_.Gn,H);
N=_.Tj(function(Z){Z=Object.assign({},A(),{flowFormState:{isValid:Z.length<=O()},abuseReportFlowState:{userComments:Z,navigationEnabled:!(Z.length>O()),isReportFormDirty:!0}});_.mN().dispatch(_.aE("flowStateEntity",H(),Z))},150);
_.Q8(function(){var Z=Object.assign({},A(),{flowFormState:{isValid:!0}});_.mN().dispatch(_.aE("flowStateEntity",H(),Z))});
return _.d("yt-report-form-details-page-view-model",{class:function(){var Z;return((Z=_.M(A(),Bq))==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.d("h1",{class:function(){var Z;
return((Z=_.M(A(),Bq))==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return t().detailsPageHeader}),_.d("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.d(_.cu,{text:function(){return t().bodyText}})),_.d("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.d(RK,{label:function(){var Z;
return((Z=_.M(t().inputBox,m05))==null?void 0:Z.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var Z;return{errorMessage:((Z=_.M(t().inputBox,m05))==null?void 0:Z.maxCharsExceededErrorMessage)||"",maxChars:O()}},
onInput:N})))},"qi");
NYr.idomCompat=!0;_.o_(NYr,"yt-report-form-details-page-view-model",{props:{data:_.$O}});var tcm=_.q(function(N){var t=N.data;var O=function(){return t().flowStateKey||""},H=_.cz(_.Gn,O),A=function(){return _.M(H(),Bq)};
return _.d("yt-report-form-reason-select-page-view-model",{class:function(){var Z;return((Z=A())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.d("h1",{class:function(){var Z;
return((Z=A())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return t().pageHeader}),_.d("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.d(_.cu,{text:function(){return t().bodyText}})),_.d("div",{class:function(){var Z;
return((Z=A())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.d(_.rBi,{data:function(){return _.M(t().radioButtonGroup,_.cq)},
onSelected:function(Z,U){Z=Object.assign({},H(),{abuseReportFlowState:Object.assign({},A(),{reasonKey:U.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:U.command})});_.E6(_.uF("flowStateEntity",O(),Z))},
selectedKey:function(){var Z;return(Z=A())==null?void 0:Z.reasonKey},
groupName:"report-form-reason-select-page"})))},"ri");
tcm.idomCompat=!0;_.o_(tcm,"yt-report-form-reason-select-page-view-model",{props:{data:_.$O}});var OT5=_.q(function(N){var t=N.data;var O,H=(O=_.cY().resolve(_.BY(_.WV)))==null?void 0:O();return _.d("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.d("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.d(_.Qt,{data:function(){return H&&t().imageDark?t().imageDark:t().image},
alt:""})),_.d("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.d("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return t().header}),_.d(_.cu,{text:function(){return t().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"si");
OT5.idomCompat=!0;_.o_(OT5,"yt-report-form-sign-in-page-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=_.cH(_.nUp.talkToRecsStateSelector),H=function(){return t().titleSuperscript},A=function(){return t().answersShelf},Z=function(){return t().videoShelf},U=function(){var J;
return(J=t().textInputPlaceholder)==null?void 0:J.content},C=function(){return t().showOpenTextInput},F=function(){var J;
return(J=t().textInputValue)==null?void 0:J.content},g=function(){return t().isMultiTurnFlow?t().resetButtonViewModel:void 0},B="",c=function(){return t().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
N=_.D(_.b$("",void 0,"GjDBze"));var u=N.next().value,S=N.next().value;N=_.D(_.b$(!1,void 0,"cHfsvd"));var b=N.next().value,z=N.next().value,w=function(){return{state:b()||u()?"active":"disabled",disabled:!(b()||u())}};
_.lf(function(){if(C()){F()&&S(F());var J;if(!g()&&((J=O())==null?0:J.stepStates)){var CN;J=Object.keys((CN=O())==null?void 0:CN.stepStates);CN=J[J.length-1];var B4,zM;CN=(B4=O().stepStates[CN])==null?void 0:(zM=B4.userQuery)==null?void 0:zM.userQuery;_.E6(_.qlf());CN&&P(CN)}}});
var P=function(J){var CN=t().onUpdateText;CN&&_.xJ(CN,{form:{userQuery:J}});S(J)},x=_.Tj(function(J){P(J.target.value.trim())},150),l=_.Ui(function(J){var CN;
B=(CN=J.target.value)==null?void 0:CN.trim();x(J);return!1}),I=_.Ui(function(J){J.key==="Enter"&&(b()||u())&&(P(J.target.value.trim()),E());
return!1}),r=function(J,CN){z(CN);
if(CN){if(t().isMultiTurnFlow&&!B){var B4;P((B4=J==null?void 0:J.text)!=null?B4:"")}t().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&E()}else S(B)},E=function(){var J=_.M(t().nextButtonViewModel,_.$9);
if(J==null?0:J.trackingParams){J=_.ib(J.trackingParams);var CN=_.z8();CN&&J&&_.lp(CN,J,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(J=t().onNextStepCommand)&&_.xJ(J)};
N={};return _.d("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.d("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.d(_.iF,{data:function(){return t().topCornerButton}},{buttonViewModel:_.Pu})),_.d("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.d("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.d(_.cu,{text:function(){return t().title}}),_.d(_.y,{cond:H,
then:function(){return _.d("sup",{class:"ytwTalkToRecsSuperScript"},_.d(_.cu,{text:H}))}})),_.d("div",{class:"ytwTalkToRecsSubtitle"},_.d(_.cu,{text:function(){return t().subtitle}})),_.d("div",{class:"ytwTalkToRecsResultsShelf"},_.d(_.y,{cond:A,
then:function(){return _.d(_.iF,{data:A},{chipsShelfViewModel:function(J){return _.d("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.d(_.GA,{data:J.data,callback:r,selectionBehavior:c}))}})}}),_.d(_.y,{cond:Z,
then:function(){return _.d(_.iF,{data:Z},{horizontalShelfViewModel:function(J){return _.d("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.d(_.uY,{data:J.data,thumbnailAspectRatio:0}))}})}})),_.d("div",{class:_.V7("ytwTalkToRecsRefinementContainer",(N.ytwTalkToRecsBottomMargin=function(){return t().isMultiTurnFlow},N))},_.d(_.y,{cond:C,
then:function(){return _.d("div",{class:"ytwTalkToRecsUserInputBox"},_.d("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:U,value:u,"on:input":l,"on:keyup":I,maxlength:200}))}}),_.d(_.iF,{data:function(){return t().isMultiTurnFlow?t().nextButtonViewModel:void 0}},{buttonViewModel:function(J){return _.d("div",{class:"ytwTalkToRecsFlowControlButtons"},_.d(_.Pu,{data:J.data,
buttonOverrides:w}))}}),_.d(_.iF,{data:g},{buttonViewModel:function(J){return _.d("div",{class:"ytwTalkToRecsFlowControlButtons"},_.d(_.Pu,{data:J.data,
onClick:function(){var CN=_.M(t().resetButtonViewModel,_.$9);P(u());(CN=CN==null?void 0:CN.onTap)&&_.xJ(CN)}}))}}))))},"ui"),"yt-talk-to-recs-view-model",{props:{data:_.$O}});var WF5={sources:[{clientResource:{imageName:"CHECK"}}]};_.HTm=_.q(function(N){var t=_.Fy("div");N=_.RH(N,{error:void 0});var O=N.data,H=N.error,A=N.onSelected;N=_.D(_.Gb(function(){return l0f(O())}));
var Z=N.next().value,U=N.next().value;GZ1(O,function(u){U(u);var S,b,z=I0J((S=O().options)==null?void 0:(b=S[u])==null?void 0:b.value,O().type);A==null||A(z);t.value.focus()});
N=_.Ui(function(){if(!O().disabled){var u=O(),S=Z(),b=t.value;u.options&&(u=rvf(u.options,S,u.label),_.cY().resolve(_.HD).openSheet({viewModel:u},b))}});
var C=_.kwS(),F=function(){return!!H()},g=function(){return!!O().disabled},B={},c={};
return _.d("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.d("div",{class:_.V7("ytDropdownViewModelDropdownContainer",(B.ytDropdownViewModelDropdownContainerErrorBorder=F,B.ytDropdownViewModelDropdownContainerDisabled=g,B)),"on:click":N,el:t,role:"combobox",tabindex:0,"on:keydown":C,"aria-invalid":F,"aria-disabled":g,"aria-describedby":function(){return F()?"dropdown-view-model-error":void 0}},_.d("div",{class:"ytDropdownViewModelText"},Qnf(O,F,Z),mT1(O,Z)),_.d("div",{class:_.V7("ytDropdownViewModelChevronDown",
(c.ytDropdownViewModelChevronDownDisabled=g,c))},_.d(_.dq,{icon:"CHEVRON_DOWN"}))),EIx(O,H))},"vi");_.o_(_.q(function(N){var t=N.data;var O=function(A){var Z=vI5(t());Z.videoMetadata||(Z.videoMetadata={});Z.videoMetadata.sponsorshipsMetadata||(Z.videoMetadata.sponsorshipsMetadata={});Z.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(A)},H=function(A){var Z=vI5(t());
Z.scheduledRedirectMetadata||(Z.scheduledRedirectMetadata={});Z.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(A)};
return _.d("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.d("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.d("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.d(_.cu,{text:function(){return t().title}}),_.d(_.dq,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.d(_.cu,{text:function(){return t().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.d(_.iF,{data:function(){return t().tierChoices}},{dropdownViewModel:function(A){return _.d("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.d(_.HTm,{data:A.data,
onSelected:O}))}}),_.d(_.iF,{data:function(){return t().startTimeChoices}},{dropdownViewModel:function(A){return _.d("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.d(_.HTm,{data:A.data,
onSelected:H}))}}),_.d(_.cu,{text:function(){return t().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.d("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.d(_.iF,{data:function(){return t().scheduleButton}},{panelFooterViewModel:_.Ej})))},"wi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;N=N.className===void 0?"":N.className;var O=_.cz(qh5,function(){return t().flowStateEntityKey||""}),H={};
H=_.V7("ytFlowBottomBarViewModelFlowBottomBarButtons",(H.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},H));
var A={},Z=_.V7("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",H,(A.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},A.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},A));
A={};var U=_.V7("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",H,(A.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},A.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},A));
H={};H=_.V7("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},H.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
H));
N=_.V7("ytFlowBottomBarViewModelHost",N);return _.d("yt-flow-bottom-bar-view-model",{class:N},_.d(_.y,{cond:function(){var C;return(C=t())==null?void 0:C.textSection},
then:function(C){return _.d("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.d(_.cu,{text:C}))}}),_.d("div",{class:H},_.d(_.iF,{data:function(){return t().secondaryButton}},{buttonViewModel:function(C){return _.d(_.Pu,{data:C.data,
className:U})}}),_.d(_.iF,{data:function(){return t().primaryButton}},{buttonViewModel:function(C){return _.d(_.Pu,{data:C.data,
className:Z,buttonOverrides:function(){var F;return{disabled:!((F=O())==null||!F.primaryButtonDisabled)}}})}})))},"xi"),"yt-flow-bottom-bar-view-model",{props:{data:_.$O,
className:_.R_}});var AGf="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),vq=function(){var N=_.k.apply(this,arguments)||this;N.enableScrollingFix=!0;N.bottomBar=!1;N.fitContent=!1;return N};
_.p(vq,_.k);_.V=vq.prototype;_.V.ready=function(){_.h("enable_pdp_icon_prefetch")&&_.XC5(_.cY().resolve(_.aY),0,AGf)};
_.V.focus=function(N){this.topBar?_.Cb(this.topBar,N):this.paperDialog.focus(N)};
_.V.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19548_scroller&&(this.JSC$19548_scroller.dialogElement=this.paperDialog,this.JSC$19548_scroller.attached&&typeof this.JSC$19548_scroller.attached==="function"&&this.JSC$19548_scroller.attached())};
_.V.onDataChanged=function(){var N;this.fitContent=!((N=this.data)==null||!N.fitContent);var t;this.bottomBar=!((t=this.data)==null||!t.bottomBar)};
_.V.onProgressChanged=function(){var N,t,O=((t=(N=this.data)==null?void 0:N.progress)!=null?t:0)*100;this.progressElement.style.width=O+"%"};
_.V.isProgressHidden=function(){var N;return!((N=this.data)==null?0:N.progress)};
_.V.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(N){return N&&!N.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
vq.prototype.onProgressChanged=vq.prototype.onProgressChanged;vq.prototype.onDataChanged=vq.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vq.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vq.prototype,"enableScrollingFix",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vq.prototype,"bottomBar",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vq.prototype,"fitContent",void 0);_.W([_.B2("#progress"),_.Q("design:type",HTMLElement)],vq.prototype,"progressElement",void 0);_.W([_.B2("#scroller"),_.Q("design:type",Object)],vq.prototype,"JSC$19548_scroller",void 0);_.W([_.B2("ytd-flow-top-bar-renderer"),_.Q("design:type",HTMLElement)],vq.prototype,"topBar",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vq.prototype,"onDataChanged",null);_.W([_.gz("data.progress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vq.prototype,"onProgressChanged",null);_.W([_.en({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],vq);
_.n(vq,"ytd-flow-step-renderer",function(){if(YKO!==void 0)return YKO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return YKO=N},{mode:1});var JS=function(N){this.resolveCommand=N;this.steps={}},ZTJ=function(N,t){t=_.D(t||[]);
for(var O=t.next();!O.done;O=t.next()){O=O.value;var H=Object.values(O)[0],A=void 0;if((A=H)==null?0:A.stepId)N.steps[H.stepId]=O}},DL5=function(N,t){var O,H,A,Z,U;
return _.K(function(C){if((O=N.state)==null||!O.currentStepId)return C.return(void 0);H=N.getCurrentStep();if(!H)return C.return(Vcz(N));if(A=_.M(H,_.o$))N.logVEScreen(A),((Z=A)==null?0:Z.onStepStartCommand)&&N.resolveCommand((U=A)==null?void 0:U.onStepStartCommand,{});A&&t&&(N.logFlowEvent(A,t),t.steps&&!t.steps.includes(H)&&t.steps.push(H));return C.return(H)})};
JS.prototype.back=function(){var N;(N=this.state)!=null&&N.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
JS.prototype.handleUpdateFlowCommand=function(N){N.steps&&ZTJ(this,N.steps);N.entityUpdateCommand&&this.resolveCommand(N.entityUpdateCommand,{});N.flowContinuationCommand&&(N=N.flowContinuationCommand)&&(this.getFlowContinuationCommand=N);this.awaitFlowContinuation&&(N=this.getCurrentStep(),this.awaitFlowContinuation(N),this.awaitFlowContinuation=void 0)};
JS.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Vcz=function(N){return _.K(function(t){return N.getFlowContinuationCommand?t.return(new Promise(function(O){N.awaitFlowContinuation=O;N.getFlowContinuationCommand&&N.resolveCommand(N.getFlowContinuationCommand,{flow_state:N.state})})):t.return(Promise.resolve(void 0))})};
JS.prototype.getCurrentStep=function(){var N;if((N=this.state)!=null&&N.currentStepId)return this.steps[this.state.currentStepId]};
JS.prototype.logVEScreen=function(N){var t;((t=N.screenLoggingData)==null?0:t.screenVeType)&&_.Ws(_.gF(),N.screenLoggingData.screenVeType)};
JS.prototype.logFlowEvent=function(N,t){var O,H,A,Z;((O=t.flowLoggingData)==null?0:O.eventNamespace)&&((H=N.flowEventData)==null?0:H.eventType)&&((A=N.flowEventData)==null?0:A.eventMetadata)&&((Z=t.flowLoggingData)==null?0:Z.flowType)&&(N=_.KT(t.flowLoggingData.eventNamespace,N.flowEventData.eventType,N.flowEventData.eventMetadata),_.Fi().logFlowEvent(N,t.flowLoggingData.flowType))};
_.cv.Object.defineProperties(JS.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.state)==null?void 0:N.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.state)!=null&&N.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(t,O){O.key&&O.value&&(t[O.key]=O.value);return t},{})}}});var oK=function(){var N=_.k.apply(this,arguments)||this;N.flowState=_.h("web_use_flow_state_manager")?void 0:new JS(function(t,O){O=O===void 0?{}:O;_.U4.instance.resolveCommand(t,{form:{form:O,element:N.hostElement}})});
N.JSC$19559_flowStateManager=_.h("web_use_flow_state_manager")?_.cY().resolve(_.EZ):void 0;N.currentTargetId="";N.initialState=!0;N.isLoading=!1;N.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};N.containsTalkToRecs=!1;return N};
_.p(oK,_.k);_.V=oK.prototype;_.V.onPopupClosed=function(N){if(!N||this.hostElement===N.detail.popupRenderer){if(this.JSC$19559_flowStateManager){var t;((t=this.data)==null?0:t.flowStateEntityKey)&&this.JSC$19559_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.V.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.V.focus=function(N){var t=this;_.nO(function(){var O=_.O6(t.hostElement).querySelector("ytd-flow-step-renderer");(O==null?0:O.topBar)?O.focus(N):t.topBar&&_.Cb(t.topBar,N)},1)};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.V.computeTopBarHidden=function(N){var t;return!((t=_.M(N,_.o$))==null||!t.topBarOverride)};
_.V.onCurrentFlowChange=function(){if(this.JSC$19559_flowStateManager&&this.data&&this.flow){var N=Ylx(this.JSC$19559_flowStateManager,this.data),t;if(N&&((t=this.flow)==null?0:t.currentStepId)){N=wCm(N,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var O;!N&&((O=this.data)==null?0:O.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.V.observeData=function(){var N=this;if(this.JSC$19559_flowStateManager){var t=this.currentTargetId,O,H,A=(H=(O=this.data)==null?void 0:O.targetId)!=null?H:"";t!==A&&t&&aAx(this.JSC$19559_flowStateManager,t);this.currentTargetId=A;this.data&&TN1(Ylx(this.JSC$19559_flowStateManager,this.data),function(Z){Z&&(N.initialState=!1,N.currentFlowStep={flowStepRenderer:Z},N.isLoading=!N.currentFlowStep,N.autofocusAndRefit(),N.updateContainsTalkToRecs(),N.logVEScreen(),N.logFlowEvent())})}};
_.V.dataChanged=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1){if(!N.flowState)return H.return();((t=N.data)==null?0:t.steps)&&ZTJ(N.flowState,N.data.steps);if((O=N.data)==null?0:O.flowContinuationCommand){var A=N.flowState,Z=N.data.flowContinuationCommand;Z&&(A.getFlowContinuationCommand=Z)}return H.yield(DL5(N.flowState,N.data),2)}N.currentFlowStep=H.yieldResult;_.Ty(H)})};
_.V.flowChanged=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1){if(!N.flowState||!N.flow)return O.return();N.flowState.state=N.flow;N.isLoading=!0;return O.yield(DL5(N.flowState,N.data),2)}t=O.yieldResult;if(!t||N.flow.isLoading)return O.return();N.currentFlowStep=t;N.initialState=!1;N.isLoading=!1;N.autofocusAndRefit();N.updateContainsTalkToRecs();_.Ty(O)})};
_.V.logVEScreen=function(){var N,t,O=(N=_.M(this.currentFlowStep,_.o$))==null?void 0:(t=N.screenLoggingData)==null?void 0:t.screenVeType;O&&_.Ws(_.cY().resolve(_.ow),O)};
_.V.logFlowEvent=function(){var N=_.M(this.currentFlowStep,_.o$),t,O,H,A,Z,U;(this==null?0:(t=this.data)==null?0:(O=t.flowLoggingData)==null?0:O.eventNamespace)&&(this==null?0:(H=this.data)==null?0:(A=H.flowLoggingData)==null?0:A.flowType)&&(N==null?0:(Z=N.flowEventData)==null?0:Z.eventType)&&(N==null?0:(U=N.flowEventData)==null?0:U.eventMetadata)&&(N=_.KT(this.data.flowLoggingData.eventNamespace,N.flowEventData.eventType,N.flowEventData.eventMetadata),_.Fi().logFlowEvent(N,this.data.flowLoggingData.flowType))};
_.V.updateContainsTalkToRecs=function(){var N,t=(N=_.M(this.currentFlowStep,_.o$))==null?void 0:N.content;this.containsTalkToRecs=!!t&&!!_.M(t,oL1)};
_.V.autofocusAndRefit=function(){var N=this,t=_.cY().resolve(_.BY(_.z6)),O=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),H=document.querySelector("yt-report-form-confirmation-page-view-model"),A=document.querySelector("yt-report-form-details-page-view-model"),Z=document.querySelector("yt-report-form-reason-select-page-view-model"),U=document.querySelector("yt-contributor-zero-state-view-model"),
C=document.querySelector("yt-structured-context-note-view-model"),F=document.querySelector("yt-note-view-model");(!O&&t&&t.isKeyBoardInUse()||H||!O&&A||!O&&Z||!O&&(U||C||F))&&_.Kb(this.hostElement);_.yB(this,function(){_.or(N.hostElement,"yt-refit")})};
_.V.handleUpdateFlowCommand=function(N){this.flowState?this.data&&(N=_.M(N,_.FVE),N.targetId===this.data.targetId&&(N.flowContinuationCommand&&(this.data.flowContinuationCommand=N.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(N),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(N)};
_.V.handleFlowNextStepCommand=function(N){this.JSC$19559_flowStateManager?this.ytComponentBehavior.resolveCommand(N):this.data&&this.flow&&this.flow.key&&(N=_.M(N,_.DSy),N.targetId===this.data.targetId&&(N=N.stepId||"",this.ytdReduxBehavior.dispatch(_.aE("flowStateEntity",this.flow.key,{currentStepId:N,stepIdStack:(this.flow.stepIdStack||[]).concat(N)}))))};
_.V.handleFlowPrevStepCommand=function(N){if(this.JSC$19559_flowStateManager)this.ytComponentBehavior.resolveCommand(N);else if(this.data&&this.flow&&this.flow.key&&(N=_.M(N,_.USB),N.targetId===this.data.targetId)){var t=[].concat(_.W6(this.flow.stepIdStack||[]));t.length>1?(t.pop(),this.ytdReduxBehavior.dispatch(_.aE("flowStateEntity",this.flow.key,{currentStepId:t[t.length-1],stepIdStack:t}))):N.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(N.onFirstStepCommand)}};
_.V.handleYpcCancelRecurrenceCommand=function(N){if(this.data&&this.flow&&this.flow.key&&(N=_.M(N,HJm),N.targetId===this.data.targetId&&N.endpointCommand)){var t=_.M(this.flow,Ab5);t&&_.M(N.endpointCommand,_.hWS)&&(_.M(N.endpointCommand,_.hWS).feedbackData=t.surveyFeedback);this.ytComponentBehavior.resolveCommand(N.endpointCommand)}};
_.V.handlePartialUpdateFlowStateEntity=function(N){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.aE("flowStateEntity",this.flow.key,N,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
oK.prototype.flowChanged=oK.prototype.flowChanged;oK.prototype.dataChanged=oK.prototype.dataChanged;oK.prototype.observeData=oK.prototype.observeData;oK.prototype.onCurrentFlowChange=oK.prototype.onCurrentFlowChange;oK.prototype.onPopupClosed=oK.prototype.onPopupClosed;_.W([_.Y(_.Ue),_.Q("design:type",Object)],oK.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],oK.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],oK.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],oK.prototype,"initialState",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],oK.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Object)],oK.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],oK.prototype,"currentFlowStep",void 0);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],oK.prototype,"onPopupClosed",null);
_.W([_.X({selectorArgs:["data.flowStateEntityKey"],selector:qh5}),_.Q("design:type",Object)],oK.prototype,"flow",void 0);_.W([_.B2("ytd-flow-top-bar-renderer"),_.Q("design:type",HTMLElement)],oK.prototype,"topBar",void 0);_.W([_.gz("data","flow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oK.prototype,"onCurrentFlowChange",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oK.prototype,"observeData",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],oK.prototype,"dataChanged",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],oK.prototype,"containsTalkToRecs",void 0);_.W([_.ic("flow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],oK.prototype,"flowChanged",null);_.W([_.en({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],oK);
_.ULr=_.td()(oK,"ytd-flow-root-renderer",function(){if(z7J!==void 0)return z7J;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return z7J=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var C85;var gW=null;_.o_(_.q(function(N){return _.d("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.d("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.d(_.cu,{text:function(){return N.data().text}}),_.d("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"yi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.$O}});var K1J=_.q(function(N){var t=N.playerControlsProps;var O=N.isShortsPage;return _.d("yt-bigboard",null,_.d(_.y,{cond:function(){return t().isDragging},
then:function(){return _.d("div",{class:"ytBigboardStoryboardHost"},_.d(_.o2O,{progressBarProps:t,isShortsPage:O}))}}))},"zi");
K1J.idomCompat=!0;_.sj={ACCOUNT_LABEL:yc("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:yc("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:yc("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:yc("AD_BADGE_HINT"),AD_BADGE_TEXT:yc("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:yc("ALL_CHANNELS_LABEL"),AMBIENT_MODE:yc("AMBIENT_MODE"),AMBIENT_MODE_OFF:yc("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:yc("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:yc("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:yc("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:yc("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:yc("APP_UPSELL_TITLE"),AUDIO_TRACK:yc("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:yc("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:yc("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:yc("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:yc("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:yc("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:yc("AUTO_ZOOM","Auto zoom"),BACK:yc("BACK"),CANCEL:yc("CANCEL"),CHANNEL_SWITCHER_LABEL:yc("CHANNEL_SWITCHER_LABEL"),CLOSE:yc("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:yc("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:yc("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:yc("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:yc("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:yc("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:yc("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:yc("COMMENT_MODAL_CONTENT"),CONFIRM_OK:yc("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:yc("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:yc("COPIED_TO_CLIPBOARD"),COPY:yc("COPY"),COPY_DEBUG_INFO:yc("COPY_DEBUG_INFO"),COPY_EMBED_CODE:yc("COPY_EMBED_CODE"),
COPY_LINK_LABEL:yc("COPY_LINK_LABEL"),COPY_VIDEO_URL:yc("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:yc("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:yc("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:yc("DELETE_FROM_DOWNLOADS"),DIALOG:yc("DIALOG"),DONE:yc("DONE"),DOWNLOAD:yc("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:yc("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:yc("FLAG_CONFIRM"),FLAG_CONTENT:yc("FLAG_CONTENT"),FLAG_LABEL:yc("FLAG_LABEL"),FLAG_TITLE:yc("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:yc("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:yc("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:yc("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:yc("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:yc("HIDE_SEARCH_FILTERS_LABEL"),HOME:yc("HOME","Home"),INVALID_RESPONSE_RECEIVED:yc("INVALID_RESPONSE_RECEIVED"),LIBRARY:yc("LIBRARY","Library"),LISTENING:yc("LISTENING"),LOADING:yc("LOADING"),LONG_PRESS_MIC_TO_SPEAK:yc("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:yc("LOOP"),MENU_DESKTOP:yc("MENU_DESKTOP"),
MENU_EXIT:yc("MENU_EXIT"),MENU_FEEDBACK:yc("MENU_FEEDBACK"),MENU_HELP:yc("MENU_HELP"),MENU_IMPRESSUM:yc("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:yc("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:yc("MENU_SETTINGS"),MENU_SIGN_IN:yc("MENU_SIGN_IN"),MENU_TITLE:yc("MENU_TITLE"),MENU_YOUR_DATA:yc("MENU_YOUR_DATA"),MORE_INFO:yc("MORE_INFO"),MORE_OPTIONS:yc("MORE_OPTIONS"),MUTE_VOLUME:yc("MUTE_VOLUME"),NEW_PLAYLIST:yc("NEW_PLAYLIST"),NEXT_VIDEO:yc("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:yc("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:yc("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:yc("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:yc("NOT_FOUND_TITLE"),NO_DOWNLOADS:yc("NO_DOWNLOADS"),NO_MIC_INPUT:yc("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:yc("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:yc("OOPS_MESSAGE"),OPEN_APP:yc("OPEN_APP"),OPEN_YOUTUBE:yc("OPEN_YOUTUBE"),PAUSE:yc("PAUSE"),PLAY:yc("PLAY"),PLAYER_CAPTION:yc("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:yc("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:yc("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:yc("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:yc("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:yc("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:yc("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:yc("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:yc("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:yc("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:yc("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:yc("PLAYER_MINIMIZE"),PLAYER_NEXT:yc("PLAYER_NEXT"),PLAYER_PAUSE:yc("PLAYER_PAUSE"),PLAYER_PLAY:yc("PLAYER_PLAY"),
PLAYER_PREVIOUS:yc("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:yc("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:yc("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:yc("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:yc("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:yc("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:yc("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:yc("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:yc("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:yc("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:yc("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:yc("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:yc("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:yc("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:yc("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:yc("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:yc("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:yc("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:yc("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:yc("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:yc("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:yc("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:yc("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:yc("PLAY_ALL"),PLEASE_FIX_ERRORS:yc("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:yc("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:yc("PREVIOUS_VIDEO"),PRIVACY_POLICY:yc("PRIVACY_POLICY"),RELOAD:yc("RELOAD"),REQUIRED_LABEL:yc("REQUIRED_LABEL"),SAVE_PLAYLIST:yc("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:yc("SCRUB_SLIDE_USER_EDU"),SEARCH:yc("SEARCH","Search"),
SEARCH_APPEND_LABEL:yc("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:yc("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:yc("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:yc("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:yc("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:yc("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:yc("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:yc("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:yc("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:yc("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:yc("SEEK_SLIDER"),SETTINGS_LABEL:yc("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:yc("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:yc("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:yc("SHOW_LESS"),SHOW_MORE:yc("SHOW_MORE"),SHOW_PLAYER_CONTROLS:yc("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:yc("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:yc("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:yc("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:yc("SIGN_IN_ON_WEB"),STABLE_VOLUME:yc("STABLE_VOLUME"),STABLE_VOLUME_OFF:yc("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:yc("STABLE_VOLUME_ON"),STATS_FOR_NERDS:yc("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:yc("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:yc("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:yc("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:yc("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:yc("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:yc("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:yc("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:yc("TIMESTAMP_SECONDS"),TOGGLE_OFF:yc("TOGGLE_OFF"),TOGGLE_ON:yc("TOGGLE_ON"),TRENDING:yc("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:yc("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:yc("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:yc("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:yc("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:yc("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:yc("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:yc("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:yc("VIDEO_LINK_LABEL")};var F1x=_.q(function(N){var t=N.playerApi;N=_.Fy("button",function(H){_.oY(H,36843)});
var O=yc("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.d("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.d("button",{el:N,class:"ytPlayerControlsJumpForwardButtonButton",title:O,"aria-label":O,"on:click":_.Ui(function(){_.sg(36843);t&&t().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.d("span",null,_.d(_.dq,{icon:"FAST_FORWARD"}))))},"Ai");var dLm=_.q(function(N){var t=N.appApi;N=_.Fy("button",function(H){_.oY(H,62946)});
var O=yc("OPEN_IN_MINIPLAYER");return _.d("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.d("button",{el:N,class:"ytMiniplayerButtonButton",title:O,"aria-label":O,"on:click":_.Ui(function(){_.sg(62946);var H,A;(A=(H=t()).openInMiniplayer)==null||A.call(H);return!1})},_.d(_.dq,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Bi");var gHn=_.q(function(N){var t=N.playerApi;N=_.Fy("button",function(Z){_.oY(Z,142812)});
var O=_.D(_.b$(!1,void 0,"eOMRAb")),H=O.next().value,A=O.next().value;O=function(){return yc("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(H()?1:2)})};
return _.d("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.d("button",{el:N,class:"ytPlaybackSpeedButtonButton",title:O,"aria-label":O,"on:click":_.Ui(function(){_.sg(142812);if(t){var Z=t(),U=H();Z.setPlaybackRate(U?1:2);A(!H())}return!1})},_.d("span",null,_.d(_.dq,{icon:function(){return H()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Ci");var yG1=_.q(function(N){var t=N.title;var O=N.ariaLabel;var H=N.icon;var A=N.command;var Z=N.visualElementId;N=_.Fy("button",function(U){Z&&_.oY(U,Z())});
return _.d("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.d("button",{el:N,class:"ytdThumbnailOverlayButtonButton",title:t,"aria-label":O,"on:click":_.Ui(function(){Z&&_.sg(Z());A&&_.cY().resolve(_.jo).resolveCommand(A())})},_.d(_.dq,{icon:H})))},"Di");var Z6="";var BYq=_.q(function(N){var t=N.playerControlsProps,O=N.onClickFn;N=_.aa(function(){var Z=t(),U=-1;Z.captionsAvailable&&(U=Z.captionsEnabled?1:0);return U},void 0,"MZ0Wqe");
var H=_.aa(function(){var Z=t();return Z.captionsAvailable?_.CJ(Z.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.CJ("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),A=_.aa(function(){var Z=t();
Z=Z.captionsAvailable?Z.captionsEnabled:void 0;return Z},void 0,"fhuQRe");
return _.d("yt-closed-captions-toggle-button",null,_.d(_.x1J,{captionIconType:N,ariaLabel:H,ariaPressed:A,onClick:function(Z){var U=t();if(U.captionsAvailable){var C=U.playerApi;if(C){var F=U.playerApi;if(F){var g=Z6;if(g){F=F.getOption("captions","track");var B;Z6=(B=F?F.displayName:null)!=null?B:g}else _.Jh(F)?(g=_.bGl(F),Z6=g.length?(B=ry1(g))?B.displayName:g[0].displayName:""):Z6=""}I3i(C);_.h("mweb_disable_set_state_captions_killswitch")&&U.setState({captionsEnabled:!U.captionsEnabled})}}var c,
u;(u=(c=U.appApi).showCaptionsToggleToast)==null||u.call(c,U);O==null||O(Z)},
isOverlay:!0}))},"Ei");var cG5=_.q(function(N){var t=N.data;return _.d("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.d(_.gM,{data:function(){return{type:17,text:_.Thg(t().label)}}}))},"Fi");var $L1=_.q(function(N){var t=_.V7("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return N.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return N.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return N.size()==="small"?N.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
N.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.d("animated-seek-arrows",{class:_.V7("ytPlayerControlsAnimatedSeekArrowsHost")},_.d("span",{class:t}),_.d("span",{class:t}),_.d("span",{class:t}))},"Gi");
$L1.idomCompat=!0;var jIO=_.q(function(){var N=_.CJ("PLAYER_SECONDS",{seconds_placeholder:"30"}),t=_.D(_.b$(!1,void 0,"iRJu8c")),O=t.next().value,H=t.next().value,A=_.D(_.b$(!1,void 0,"MPnizf"));t=A.next().value;var Z=A.next().value;A={};var U=_.V7("jumpForwardOverlayOverlay",(A.jumpForwardOverlayOverlayHidden=t,A));_.Q8(function(){var C=null,F=null,g=function(){C!==null&&_.zh().cancelJob(C);F!==null&&_.zh().cancelJob(F);Z(!0);H(!0);_.HH(_.zh(),function(){Z(!1)});
C=_.HH(_.zh(),function(){Z(!0);F=_.HH(_.zh(),function(){H(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",g);_.Ia(function(){window.removeEventListener("jump-forward-clicked",g)})});
return _.d("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.d(_.y,{cond:O,then:function(){return _.d("div",{class:U},_.d($L1,{direction:1,size:"large"}),_.d("div",null,N))}}))},"Hi");var iT1=_.sj.MUTE_VOLUME,uiO=_.sj.UNMUTE_VOLUME,S3z=_.q(function(N){var t=N.muteIconType;var O=N.onClick;var H=N.useOutlineIcon;var A=N.useDelhiIcons;N=_.Fy("button",function(C){_.oY(C,28662)});
var Z=function(){var C=t(),F=H==null?void 0:H(),g=A==null?void 0:A(),B="",c="";switch(C){case -1:case 0:B=F?"VOLUME_OFF":g?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";c=uiO;break;case 1:B=F?"VOLUME_UP_OUTLINE":g?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";c=iT1;break;case 2:B=F?"VOLUME_DOWN_OUTLINE":g?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";c=iT1;break;default:_.Ep(C)}return{iconName:B,ariaLabel:c}},U=function(){return Z().ariaLabel};
return _.d("ytm-mute-button",{class:"ytmMuteButtonHost"},_.d("button",{el:N,class:"ytmMuteButtonButton",title:U,"aria-label":U,"on:click":_.Ui(function(C){_.sg(28662);O==null||O(C);return!1})},_.d("span",null,_.d(_.dq,{icon:function(){return Z().iconName}}))))},"Ii");var hV1=_.q(function(N){var t=N.volumeProps;var O=N.onClickFn;var H=N.useOutlineIcon;var A=N.useDelhiIcons;return _.d("yt-mute-toggle-button",null,_.d(S3z,{muteIconType:function(){var Z=t();return Z.volumeMuted||Z.volume===0?0:Z.volume>50?1:2},
onClick:function(Z){var U=t().playerApi;U&&(U.isMuted()?U.unMute():U.mute(!1));O==null||O(Z)},
useOutlineIcon:function(){return!(H==null||!H())},
useDelhiIcons:function(){return!(A==null||!A())}}))},"Ji");
hV1.idomCompat=!0;var Mc1=_.q(function(N){var t=N.data;var O=_.Fy("ytm-paid-content-overlay-renderer");return _.d("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:O,"on:animationend":_.Ui(function(){O.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.d(_.YO,{command:function(){return t().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.d(_.y,{cond:function(){var H;return(H=t().icon)==null?void 0:H.iconType},
then:function(){return _.d("span",null,_.d(_.dq,{icon:function(){var H;return(H=t().icon)==null?void 0:H.iconType}}))}}),_.d("div",{class:"ytmPaidContentOverlayText"},_.d(_.cu,{text:function(){return t().text}})),_.d(_.y,{cond:function(){return t().navigationEndpoint},
then:function(){return _.d(_.dq,{icon:"CHEVRON_RIGHT"})}})))},"Ki");
Mc1.idomCompat=!0;var fAn=[].concat(_.W6([{register:function(N){var t=Sl5(N),O;(O=N().playerApi)==null||O.addEventListener("onVolumeChange",t);return function(){}}},
{register:function(N){var t=hnJ(N);N=N().playerApi;N==null||N.addEventListener("captionschanged",t);N==null||N.addEventListener("captionssettingschanged",t);N==null||N.addEventListener("onCaptionsTrackListChanged",t);return function(){}}}]),[{register:function(N){var t=$05(N),O;
(O=N().playerApi)==null||O.addEventListener("onStateChange",t);return function(){}}},
{register:function(N){var t=jrr(N),O;(O=N().playerApi)==null||O.addEventListener("onPlaybackRateChange",t);return function(){}}},
{register:function(N){var t=ivz(N),O;(O=N().playerApi)==null||O.addEventListener("onVideoDataChange",t);return function(){}}},
{register:function(N){var t=uUq(N),O,H;(O=N())==null||(H=O.playerApi)==null||H.addEventListener("onVideoProgress",t);return function(){}}}]);var bTx=_.q(function(N){var t=N.data;var O=function(){return _.CJ("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+t().playbackRate})};
return _.d(_.y,{cond:function(){return t().playbackRate&&t().playbackRate!==1},
then:function(){return _.d("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.d("div",{class:"ytPlaybackRateOverlayOverlay"},_.d($L1,{direction:1,size:"small"}),_.d("div",{class:"ytPlaybackRateOverlayLabel"},O)))}})},"Mi");var pim=_.q(function(N){var t=N.data;return _.d("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.d(_.y,{cond:function(){var O,H=(O=t())==null?void 0:O.playerResponse,A;return H==null?void 0:(A=H.paidContentOverlay)==null?void 0:A.paidContentOverlayRenderer},
then:function(O){return _.d(Mc1,{data:O})}}))},"Oi"),L15=_.q(function(N){var t=N.props;
var O=N.data;var H=N.options;var A=function(){var g,B,c,u;return(g=O())==null?void 0:(B=g.playerResponse)==null?void 0:(c=B.playerConfig)==null?void 0:(u=c.inlinePlaybackConfig)==null?void 0:u.showAudioControls},Z=function(){var g,B;
if(A()&&((g=H())==null?void 0:(B=g.additionalButton)==null?void 0:B.button)!==void 0){var c,u,S;g=(c=O())==null?void 0:(u=c.playerApi)==null?void 0:(S=u.getSize())==null?void 0:S.height;if(!(g===void 0||g<180)){var b,z;return(b=H())==null?void 0:(z=b.additionalButton)==null?void 0:z.button}}},U=function(){var g,B;
return(g=H())==null?void 0:(B=g.additionalButton)==null?void 0:B.thumbnailOverlayButtonRenderers},C=function(){var g,B;
return(g=H())==null?void 0:(B=g.additionalButton)==null?void 0:B.thumbnailOverlayButtonViewModels},F=function(){var g=[_.d(hV1,{volumeProps:t})],B;
((B=H())==null?0:B.hideCaptionsToggleButton)||g.push(_.d(BYq,{playerControlsProps:t}));Z()===1&&g.push(_.d(F1x,{playerApi:function(){return t().playerApi}}));
Z()===2&&g.push(_.d(dLm,{appApi:function(){return t().appApi}}));
Z()===3&&g.push(_.d(gHn,{playerApi:function(){return t().playerApi}}));
B=U();if(Z()===4&&B){B=_.D(B);for(var c=B.next(),u={};!c.done;u={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$604:void 0},c=B.next()){c=c.value;u.tooltip$jscomp$2=c.tooltip;var S=void 0,b=void 0;u.ariaLabel$jscomp$19=((S=c.accessibility)==null?void 0:(b=S.accessibilityData)==null?void 0:b.label)||u.tooltip$jscomp$2;S=void 0;u.icon$jscomp$50=(S=c.icon)==null?void 0:S.iconType;u.command$jscomp$604=c.command;u.tooltip$jscomp$2&&u.ariaLabel$jscomp$19&&u.icon$jscomp$50&&
g.push(_.d(yG1,{title:function(z){return function(){return z.tooltip$jscomp$2}}(u),
ariaLabel:function(z){return function(){return z.ariaLabel$jscomp$19}}(u),
icon:function(z){return function(){return z.icon$jscomp$50}}(u),
command:function(z){return function(){return z.command$jscomp$604}}(u)}))}}B=C();
if(Z()===4&&B)for(B=_.D(B),c=B.next(),u={};!c.done;u={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$605:void 0,trackingParamsVeType:void 0},c=B.next())c=c.value,u.tooltip$jscomp$3=c.title,u.ariaLabel$jscomp$20=c.accessibilityText||u.tooltip$jscomp$3,u.icon$jscomp$51=c.iconName,u.command$jscomp$605=_.wF(c.onTap),b=S=void 0,u.trackingParamsVeType=((S=c.loggingDirectives)==null?0:S.trackingParams)?(b=JHi(_.Jg(c.loggingDirectives.trackingParams)))==null?void 0:
_.$1(b,2):void 0,u.tooltip$jscomp$3&&u.ariaLabel$jscomp$20&&u.icon$jscomp$51&&g.push(_.d(yG1,{title:function(z){return function(){return z.tooltip$jscomp$3}}(u),
ariaLabel:function(z){return function(){return z.ariaLabel$jscomp$20}}(u),
icon:function(z){return function(){return z.icon$jscomp$51}}(u),
command:function(z){return function(){return z.command$jscomp$605}}(u),
visualElementId:function(z){return function(){return z.trackingParamsVeType}}(u)}));
return g};
return _.d(_.y,{cond:A,then:function(){return _.d("div",{class:"ytInlinePlayerControlsTopRightControls"},_.d(_.nL,{each:F},function(g){return _.d("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.d("div",{class:"ytInlinePlayerControlsButtonIcon"},g))}))}})},"Pi"),ami=_.q(function(N){var t=N.props;
var O=N.data;var H=N.options;N={};N=_.V7("ytInlinePlayerControlsBottomRightControls",(N.ytInlinePlayerControlsBottomRightControlsHidden=function(){var A;return bvO(O(),H())&&((A=H())==null?void 0:A.insetProgressBar)&&(t().isHovering||t().isDragging)},N));
return _.d("div",{class:N},_.d(zVq,{data:O}),_.d(_.y,{cond:function(){var A;return!((A=H())==null?0:A.hideTimeDisplay)},
then:function(){return _.d(Y31,{props:t,data:O})}}))},"Qi"),zVq=_.q(function(N){var t=N.data;
return _.d(_.iF,{data:function(){var O;return K2J((O=t())==null?void 0:O.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:cG5})},"Ri"),Y31=_.q(function(N){var t=N.props;
var O=N.data;return _.d(_.y,{cond:function(){return t().isLive},
then:function(){return _.d(TYm,{props:t,data:O})},
else:function(){return _.d(wir,{props:t,data:O})}})},"Si"),wir=_.q(function(N){var t=N.props;
var O=N.data;var H=_.aa(function(){var A;return F2m((A=O())==null?void 0:A.thumbnailOverlays)},void 0,"AFvHu");
return _.d("div",{class:_.V7("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.sj.PLAYER_TIME_ELAPSED+" "+_.N$S(t().playedTime)}},_.d(_.gM,{data:function(){var A=_.N$S(t().videoDuration-t().playedTime);
return Object.assign({},{type:17,text:A},H())}}))},"Ti"),eVJ=_.q(function(N){N=N.badgeShapeData;
return _.d("div",{class:_.V7("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.d(_.gM,{data:N}))},"Ui"),TYm=_.q(function(N){var t=N.data;
N=_.aa(function(){if(_.h("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var H,A;return(H=t())==null?void 0:(A=H.thumbnailOverlays)==null?void 0:A.find(function(Z){return Z.thumbnailOverlayTimeStatusRenderer||Z.thumbnailOverlayBadgeViewModel})}},void 0,"y9XYN");
var O=_.aa(function(){var H,A,Z,U,C,F;return _.xWz((H=t())==null?void 0:(A=H.playerApi)==null?void 0:(Z=A.getSize())==null?void 0:Z.width,(U=t())==null?void 0:(C=U.playerApi)==null?void 0:(F=C.getSize())==null?void 0:F.height)},void 0,"anNoxe");
return _.d(_.y,{cond:N,then:function(H){return _.d(_.iF,{data:H},{thumbnailOverlayTimeStatusRenderer:function(A){var Z=A.data;A=_.aa(function(){return _.M$4(Z(),0)},void 0,"Ncdcme");
return _.d(eVJ,{badgeShapeData:A})},
thumbnailOverlayBadgeViewModel:function(A){return _.d(_.ex_,{data:A.data,thumbnailSize:O})}})},
else:function(){var H={type:18,text:_.sj.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.d(eVJ,{badgeShapeData:function(){return H}})}})},"Vi"),P8x=_.q(function(N){var t=N.props;
var O=N.data;var H=N.options;return _.d(_.A_i,{progressBarProps:t,config:function(){var A,Z=_.M((A=O())==null?void 0:A.multiMarkersPlayerBar,_.GUY),U;A=((U=H())==null?0:U.insetProgressBar)?2:1;var C;U=(C=H())==null?void 0:C.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:A,chapterData:Z,isInlinePlayback:!0,doSeekOnClick:U,playheadDotBehavior:U?1:0}}})},"Wi");_.o_(_.q(function(N){var t=N.data;var O=N.appApi;var H=N.options;var A=cHO(t,MBx(O));N={};O={};return _.d("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.d("div",{class:_.V7("ytInlinePlayerControlsDarkenedOverlay",(N.ytInlinePlayerControlsDarkenedOverlayShow=function(){return A().isHovering},N))}),_.d(jIO,null),_.d(bTx,{data:A}),_.d(pim,{data:t}),_.d(K1J,{playerControlsProps:A,
isShortsPage:!1}),_.d("div",{class:_.V7((O.ytInlinePlayerControlsControlsHidden=function(){return A().isDragging},O))},_.d(L15,{props:A,
data:t,options:H}),_.d(ami,{props:A,data:t,options:H})),_.d(_.y,{cond:function(){return bvO(t(),H())},
then:function(){return _.d(P8x,{props:A,data:t,options:H})}}))},"Ni"),"yt-inline-player-controls",{props:{data:_.$O,
appApi:_.R_,options:_.$O}});var Nh=function(){var N=_.k.apply(this,arguments)||this;N.opts=null;N.playerControlsData=null;N.playerControlsAppApi={openInMiniplayer:function(){N.openInMiniplayer()}};
N.playerControlsOptions={};N.noAnimation=!1;N.playbackIntentTriggered=!1;N.positionData=null;N.hidden=!0;N.active=!1;N.playing=!1;N.persistentPanelVisible=!1;N.videoPreviewDataIndex=0;N.JSC$19602_playerPromise=null;N.player=null;N.enableAudioControls=!1;N.hasBeenUnmuted=!1;N.captionsHaveBeenTurnedOff=!1;N.JSC$19602_playerEvents=new Map;N.videoPreviewFetchRequest=null;N.scheduledPreviewEndJobId=null;N.JSC$19602_preventProgressSaveTimer=null;N.watchEndpointStartTimeUpdaterInterval=null;N.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};N.windowOnBlurFn=function(){N.deactivate()};
return N};
_.p(Nh,_.k);_.V=Nh.prototype;
_.V.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.V.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19602_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19602_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19602_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19602_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Fb(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Fb(this,this.onScroll))};
_.V.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Fb(this,this.onScroll))};
_.V.onPageTypeChange=function(){this.deactivate()};
_.V.onWindowResized=function(){this.deactivate()};
_.V.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.V.onCaptionsChanged=function(N){N=!!N.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!N);this.setCaptionSize()};
_.V.setCaptionSize=function(){var N;if(this.active&&!this.captionsHaveBeenTurnedOff&&((N=this.player)==null?0:N.getCaptionWindowContainerId())){var t;(t=this.player)==null||t.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.V.currentPageAllowed=function(){return!this.isWatchPage};
_.V.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.h("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var N=this.positionData,t=N.initialTopPosition,O=N.initialHorizontalPosition;_.CO(this.hostElement,{"--ytd-video-preview-translate-left":N.finalHorizontalPosition-O+"px","--ytd-video-preview-translate-top":N.finalTopPosition-t+"px","--ytd-video-preview-original-top-position":t+
"px","--ytd-video-preview-original-horizontal-position":O+"px","--ytd-video-preview-initial-scale":"scale("+N.initialScale+")","--ytd-video-preview-width":N.videoPreviewWidth+"px","--ytd-video-preview-height":N.videoPreviewHeight+"px"});return!0};
_.V.isOutOfBounds=function(N){var t=N.initialHorizontalPosition+12;N=t+N.videoPreviewWidth>window.innerWidth;return t<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&t<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&t<72||N};
_.V.handleOpenVideoPreviewAction=function(N){var t=this,O;return _.K(function(H){if(!t.currentPageAllowed())return H.return(0);t.opts=N;return(O=t.alignVideoPreviewForAnimation(N.thumbnail))?H.return(t.activate()):H.return(0)})};
_.V.onMouseLeave=function(N){var t,O;(t=this.opts)==null||(O=t.mouseleaveCallback)==null||O.call(t);this.shouldDeactivateOnMouseLeave(N)&&this.deactivate()};
_.V.onScroll=function(){var N,t;((N=this.opts)==null?0:N.isAutoplay)&&((t=this.opts)==null?0:t.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.V.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.GB.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.V.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.V.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Nh.JSC$19601_DEFAULT_CLICK_LOCATION_BEHAVIOR,Nh.JSC$19601_CLICK_LOCATION_ID_MAP)};
_.V.shouldDeactivateOnMouseLeave=function(N){N=N.relatedTarget;if(!N)return!0;var t;return(t=this.opts)!=null&&t.mediaRenderer?!_.Zr(this.opts.mediaRenderer).contains(N):!0};
_.V.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.V.onPlaybackStart=function(){var N=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$19602_preventProgressSaveTimer=
_.HH(_.GB,function(){N.resetPreventProgressSaveTimer()},1E4);
var t;if((t=this.opts)==null?0:t.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.HH(_.GB,function(){N.hasMultipleVideoPreviews()?N.startPlaybackForNextVideo():N.deactivate()},this.opts.videoPreviewDurationMs);
var O;this.player.setGlobalCrop(((O=this.opts)==null?0:O.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.V.getRoundedCornersSize=function(){var N;if((N=this.opts)==null?0:N.roundedCornersSize){var t;return(t=this.opts)==null?void 0:t.roundedCornersSize}var O;if((O=this.opts)==null?0:O.enableRounding){var H;if(((H=this.opts)==null?void 0:H.thumbnailSize)==="small")return 1;var A;if(((A=this.opts)==null?void 0:A.thumbnailSize)==="medium")return 2;var Z;if(((Z=this.opts)==null?void 0:Z.thumbnailSize)==="large")return 3}return _.h("web_imp_inset_progress_bar")?3:0};
_.V.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.V.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.V.onMediaContainerClick=function(N){this.isShortcutClick(N)||(this.navigateToWatch(N),N.preventDefault(),N.stopPropagation())};
_.V.activate=function(){var N=this,t,O,H,A,Z,U,C,F,g;return _.K(function(B){switch(B.nextAddress){case 1:if(!N.currentPageAllowed())return B.return(0);O=(t=N.videoPreviewData)==null?void 0:t.inlinePlaybackEndpoint;H=_.nE.instance;if(!O||!H)return B.return(0);N.playbackIntentTriggered=!0;((A=N.opts)==null?0:A.mediaRenderer)&&((Z=N.opts)==null||!Z.isAutoplay)&&VBO(N.opts.mediaRenderer,function(){N.deactivate()});
_.yB(N,function(){N.revealPreviewUi()});
U={};_.h("enable_unknown_lact_fix_on_html5")&&(_.cY().resolve(_.j9),U.lact=_.jO());N.videoPreviewFetchRequest=NNx(H,N.getInlinePlaybackRequestData(N.videoPreviewData),U);_.Mo(B,2);return B.yield(N.videoPreviewFetchRequest,4);case 4:C=B.yieldResult;if(((F=C)==null?void 0:(g=F.playabilityStatus)==null?void 0:g.status)==="OK")return B.return(N.handlePlayerResponse(C));throw Error("fk");case 2:_.ax(B),N.deactivate();case 3:return B.return(1)}})};
_.V.getInlinePlaybackRequestData=function(N){var t,O=_.h("web_imp_player_mute_params")?((t=this.opts)==null?void 0:t.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:N.inlinePlaybackEndpoint,startPlaybackInMutedState:O}};
_.V.handlePlayerResponse=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c,u,S,b,z;return _.K(function(w){if(w.nextAddress==1){O=t.getInlinePlaybackVideoId();if(!(((H=N)==null?0:(A=H.videoDetails)==null?0:A.videoId)&&t.currentPageAllowed()&&t.playbackIntentTriggered&&t.opts&&O))return t.deactivate(),w.return(0);if(N.videoDetails.videoId!==O)return w.return(0);t.enableAudioControls=!!((Z=N.playerConfig)==null?0:(U=Z.inlinePlaybackConfig)==null?0:U.showAudioControls);N.trackingParams=t.getInlinePlaybackTrackingParams();
if(!t.inlinePlayer)return w.return(0);C={};if(g=_.M((F=t.videoPreviewData)==null?void 0:F.inlinePlaybackEndpoint,_.rN))C.watch_endpoint=g;if(t.videoPreviewData){var P,x=(P=_.M(t.videoPreviewData.inlinePlaybackEndpoint,_.rN))==null?void 0:P.startTimeSeconds;x!==void 0&&(N.playerConfig||(N.playerConfig={}),N.playerConfig.playbackStartConfig||(N.playerConfig.playbackStartConfig={}),N.playerConfig.playbackStartConfig.startPosition||(N.playerConfig.playbackStartConfig.startPosition={}),N.playerConfig.playbackStartConfig.startSeconds=
x,N.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(x*1E3))}t.inlinePlayer.loadVideoWithPlayerResponse(N,C);if(t.JSC$19602_playerPromise)return w.jumpTo(2);t.JSC$19602_playerPromise=t.inlinePlayer.getPlayerPromise();return w.yield(t.JSC$19602_playerPromise,3)}w.nextAddress!=2&&(B=w.yieldResult,B.setInlinePreview(!0),c=!_.h("web_imp_theater_bugfix"),B.setSizeStyle(!1,c),t.ytPlayerListenerBehavior.listenToPlayerEvents(B,t.JSC$19602_playerEvents),t.player=B,_.or(t.hostElement,
"player-api-ready"));((u=t.opts)==null?0:u.showPlayerControls)&&t.videoPreviewData&&t.player&&(t.playerControlsData={playerResponse:N,isInlinePlayback:!0,thumbnailOverlays:t.videoPreviewData.thumbnailOverlays,playerApi:t.player},t.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!t.unroundCornersForPlayback,additionalButton:t.getAdditionalButtonType(t.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(S=t.opts)==null?void 0:S.hideTimeDisplay,hideScrubbingControls:(b=t.opts)==
null?void 0:b.hideScrubber,hideCaptionsToggleButton:(z=t.opts)==null?void 0:z.hideCaptionsToggleButton});return w.return(2)})};
_.V.revealPreviewUi=function(){var N=this;this.playbackIntentTriggered&&_.BQS(this,function(){N.hasThumbnailPositionChangedSinceTriggered()||(N.updateActiveState(!0),N.noAnimation=!1)})};
_.V.hasThumbnailPositionChangedSinceTriggered=function(){var N=this.positionData,t=this.getThumbnailPositionData();return(N==null?void 0:N.initialTopPosition)!==(t==null?void 0:t.initialTopPosition)||(N==null?void 0:N.initialHorizontalPosition)!==(t==null?void 0:t.initialHorizontalPosition)};
_.V.getThumbnailPositionData=function(){var N,t;if((t=this.opts)==null||!t.thumbnail)return null;t=this.opts.thumbnail;var O=((N=this.opts)==null?0:N.cropPlayerToFillThumbnailHorizontally)?!1:!0;var H=t.getBoundingClientRect();N=H.width;t=H.height;var A=H.top+window.scrollY;H=H.left+window.scrollX;var Z=O?Math.ceil(N):N;O=O?Math.ceil(t):t;var U=N/Z;N={initialScale:U,initialTopPosition:A-12*U,finalTopPosition:A-12-(O-t)/2,initialHorizontalPosition:H-(12+(Z-N)/2),finalHorizontalPosition:H-12-(Z-N)/
2,videoPreviewWidth:Z,videoPreviewHeight:O};return N};
_.V.updateActiveState=function(N){this.active=N;this.ytdReduxBehavior.dispatch(_.H5({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:N}))};
_.V.stopPlayer=function(N){N=N.resetWatchEndpointStartTime===void 0?!1:N.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(N)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.GB.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.V.deactivate=function(N){N=N===void 0?{}:N;N=N.resetWatchEndpointStartTime===void 0?!1:N.resetWatchEndpointStartTime;gW&&(gW.disconnect(),gW=null);this.stopPlayer({resetWatchEndpointStartTime:N});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.V.isValidThumbnailOverlayButton=function(N,t){N=N.thumbnailOverlayButtonRenderer;var O;return!!N&&!!N.tooltip&&!((O=N.icon)==null||!O.iconType)&&t.includes(N.icon.iconType)};
_.V.isValidThumbnailOverlayButtonViewModel=function(N,t){var O;N=_.M((O=N.thumbnailOverlayButtonViewModel)==null?void 0:O.overlayButton,_.$9);return!!N&&!!N.title&&!!N.iconName&&t.includes(N.iconName)};
_.V.getAdditionalButtonType=function(N){var t=this;if(_.h("web_imp_fastforward_button"))return{button:1};if(_.h("web_imp_miniplayer_button"))return{button:2};if(_.h("web_imp_playback_speed_button"))return{button:3};var O=["BOX_STACK_3"],H=(N||[]).filter(function(Z){return t.isValidThumbnailOverlayButton(Z,O)}).map(function(Z){return Z.thumbnailOverlayButtonRenderer});
if(H.length)return{button:4,thumbnailOverlayButtonRenderers:H};var A=["BOX_STACK_3"];N=(N||[]).filter(function(Z){return t.isValidThumbnailOverlayButtonViewModel(Z,A)}).map(function(Z){return _.M(Z.thumbnailOverlayButtonViewModel.overlayButton,_.$9)});
if(N.length)return{button:4,thumbnailOverlayButtonViewModels:N}};
_.V.allowCaptions=function(){var N;return!((N=this.opts)==null?0:N.forceCaptionsOff)};
_.V.allowUnmuting=function(){var N;return this.enableAudioControls&&!((N=this.opts)==null?0:N.forceMutedVolume)};
_.V.beginStartTimeUpdater=function(){var N=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.LF(function(){N.updateWatchEndpointStartTime()},1E3)};
_.V.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.V.resetPreventProgressSaveTimer=function(){this.JSC$19602_preventProgressSaveTimer!==null&&(_.GB.cancelJob(this.JSC$19602_preventProgressSaveTimer),this.JSC$19602_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.V.updateWatchEndpointStartTime=function(N){var t=this.videoPreviewData;if(this.player&&t!=null&&t.inlinePlaybackEndpoint&&!this.JSC$19602_preventProgressSaveTimer){N=N?0:Math.floor(this.player.getCurrentTime());var O=_.M(t.navigationEndpoint,_.rN);O&&(O.startTimeSeconds=N);if(t=_.M(t.inlinePlaybackEndpoint,_.rN))t.startTimeSeconds=N}};
_.V.isShortcutClick=function(N){return!!N&&(N.ctrlKey||N.shiftKey||N.metaKey)};
_.V.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.V.openInMiniplayer=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1){O=(t=N.videoPreviewData)==null?void 0:t.navigationEndpoint;if(!O)return H.return();_.Ry().lockupActivation=!0;return H.yield(_.oyB(_.cY().resolve(_.kf),O),2)}_.Ry().userActivation=!0;_.Ty(H)})};
_.V.navigateToWatch=function(N){var t,O=(t=this.videoPreviewData)==null?void 0:t.navigationEndpoint;if(O){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(O,N,!0);else{var H;_.h("web_thumbnail_to_watch_transition")&&((H=this.opts)==null?0:H.thumbnail)&&_.RuR(_.cY().resolve(_.NX),this.opts.thumbnail);_.or(this.hostElement,"yt-navigate",{endpoint:O})}this.deactivate()}};
_.V.getInlinePlaybackVideoId=function(){var N,t;return(t=_.M((N=this.videoPreviewData)==null?void 0:N.inlinePlaybackEndpoint,_.rN))==null?void 0:t.videoId};
_.V.getInlinePlaybackTrackingParams=function(){var N,t;return(N=this.videoPreviewData)==null?void 0:(t=N.inlinePlaybackEndpoint)==null?void 0:t.clickTrackingParams};
_.V.hasMultipleVideoPreviews=function(){var N;return!!(((N=this.opts)==null?0:N.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.V.startPlaybackForNextVideo=function(){var N;(N=this.opts)!=null&&N.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.cv.Object.defineProperties(Nh.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.opts)==null?0:N.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.opts)==null||!N.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var N;if(Array.isArray((N=this.opts)==null?void 0:N.videoPreviewData)){var t;return(t=this.opts)==null?void 0:t.videoPreviewData[this.videoPreviewDataIndex]}var O;return(O=this.opts)==null?void 0:O.videoPreviewData}}});
Nh.prototype.onIsAdsVideoChange=Nh.prototype.onIsAdsVideoChange;Nh.prototype.onInlinePreviewIsEnabledChange=Nh.prototype.onInlinePreviewIsEnabledChange;Nh.prototype.optsChanged=Nh.prototype.optsChanged;Nh.prototype.onMouseLeave=Nh.prototype.onMouseLeave;Nh.prototype.onPersistentPanelVisibleChange=Nh.prototype.onPersistentPanelVisibleChange;Nh.JSC$19601_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
Nh.JSC$19601_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"}];_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Nh.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],Nh.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Nh.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Nh.prototype,"componentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],Nh.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.zd.YtSparklesClickLocationBehavior),_.Q("design:type",Object)],Nh.prototype,"ytSparklesClickLocationBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Nh.prototype,"opts",void 0);_.W([_.X(),_.Q("design:type",Object)],Nh.prototype,"playerControlsData",void 0);_.W([_.X(),_.Q("design:type",Object)],Nh.prototype,"playerControlsAppApi",void 0);
_.W([_.X(),_.Q("design:type",Object)],Nh.prototype,"playerControlsOptions",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nh.prototype,"noAnimation",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nh.prototype,"hidden",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nh.prototype,"active",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nh.prototype,"playing",void 0);
_.W([_.X({selector:_.Tdv}),_.Q("design:type",Boolean)],Nh.prototype,"inlinePreviewIsEnabled",void 0);_.W([_.X(),_.Q("design:type",String)],Nh.prototype,"pagePath",void 0);_.W([_.X({selector:_.ztQ}),_.Q("design:type",Boolean)],Nh.prototype,"isWatchPage",void 0);_.W([_.X({selector:_.Wz.persistentPanelVisibleSelector}),_.Q("design:type",Object)],Nh.prototype,"persistentPanelVisible",void 0);
_.W([_.a("videoPreviewData"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Nh.prototype,"thumbnailData",null);_.W([_.a("opts","active"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nh.prototype,"hidePlayerControls",null);_.W([_.a("opts"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nh.prototype,"isAdsVideo",null);
_.W([_.a("opts"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nh.prototype,"roundedCornersSmall",null);_.W([_.a("opts"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nh.prototype,"roundedCornersMedium",null);_.W([_.a("opts"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nh.prototype,"roundedCornersLarge",null);
_.W([_.a("opts"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nh.prototype,"unroundCornersForPlayback",null);_.W([_.a("opts","videoPreviewDataIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Nh.prototype,"videoPreviewData",null);_.W([_.X(),_.Q("design:type",Object)],Nh.prototype,"videoPreviewDataIndex",void 0);_.W([_.B2("#inline-player"),_.Q("design:type",Object)],Nh.prototype,"inlinePlayer",void 0);
_.W([_.gz("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nh.prototype,"onPersistentPanelVisibleChange",null);_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[MouseEvent]),_.Q("design:returntype")],Nh.prototype,"onMouseLeave",null);_.W([_.ic("opts"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nh.prototype,"optsChanged",null);
_.W([_.ic("inlinePreviewIsEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nh.prototype,"onInlinePreviewIsEnabledChange",null);_.W([_.gz("isAdsVideo"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nh.prototype,"onIsAdsVideoChange",null);_.W([_.en({is:"ytd-video-preview",disableElementRegistration:!0})],Nh);
_.n(Nh,"ytd-video-preview",function(){if(C85!==void 0)return C85;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return C85=N},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.BQ=function(N){return function(t,O){var H=N||O.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(t,O,{get:function(){var A;return this.$?this.$[H]:(A=_.yQ(this))==null?void 0:A.querySelector("#"+H)},
enumerable:!0,configurable:!0})}};_.cQ=function(N){N=N===void 0?!1:N;_.k1.call(this);this.pubSub_=new _.wE(N);_.L1(this,this.pubSub_)};
_.Od(_.cQ,_.k1);_.cQ.prototype.subscribe=function(N,t,O){return this.isDisposed()?0:this.pubSub_.subscribe(N,t,O)};
_.cQ.prototype.unsubscribe=function(N,t,O){return this.isDisposed()?!1:this.pubSub_.unsubscribe(N,t,O)};
_.cQ.prototype.unsubscribeByKey=function(N){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(N)};
_.cQ.prototype.publish=function(N,t){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var dq8=function(){_.Eg("ypcRedeemFlowStarted")},grd=function(N){_.Eg("ypcRedeemFlowFailed",void 0,void 0,void 0,N)},ymm=function(N,t,O){t&&O&&(N.videos.forEach(function(H){H.videoId===t&&(H.itemId=O)}),N.recommendedVideos.forEach(function(H){H.videoId===t&&(H.itemId=O)}))};var BiD;var cmN;/*

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
*/
_.LO({_template:function(){if(cmN!==void 0)return cmN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;BiD===void 0&&(BiD=document.createElement("template"));var H=BiD;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return cmN=N},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(N,t){var O=this._resolveSrc(N);O!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",N===""||t?this._setLoading(!1):(this._resolvedSrc=O,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var N=this.$.sizedImgDiv.style,t=this.$.placeholder.style;N.backgroundSize=t.backgroundSize=this.sizing;N.backgroundPosition=t.backgroundPosition=this.sizing?this.position:"";N.backgroundRepeat=t.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(N){N=_.bU(N,this.$.baseURIAnchor.href);N.length>=2&&N[0]==="/"&&N[1]!=="/"&&(N=(location.origin||location.protocol+"//"+location.host)+N);return N}});var $qs;var j1R;_.LO({_template:function(){if(j1R!==void 0)return j1R;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;$qs===void 0&&($qs=document.createElement("template"));var H=$qs;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return j1R=N},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(N){return N?"false":"true"},
_headingChanged:function(N){var t=this.getAttribute("heading"),O=this.getAttribute("aria-label");typeof O==="string"&&O!==t||this.setAttribute("aria-label",N)},
_computeHeadingClass:function(N){return N?" over-image":""},
_computeAnimated:function(N){return N}});var in1=new _.Fp("addRendererToItemSectionAction");var ufr;var kR=function(){return _.k.apply(this,arguments)||this};
_.p(kR,_.k);kR.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kR.prototype,"rendererBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],kR.prototype,"dismissibleItemBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],kR.prototype,"rendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],kR.prototype,"data",void 0);_.W([_.en({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],kR);
_.n(kR,"ytd-comment-history-entry-renderer",function(){if(ufr!==void 0)return ufr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ufr=N},{mode:1});var Sxm;_.pE("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.pE("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var q6=function(){return _.k.apply(this,arguments)||this};
_.p(q6,_.k);_.V=q6.prototype;_.V.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onKeyUp=function(N){if(N.keyCode===13)this.onTap()};
_.V.onTap=function(){this.data.recordClickEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var N=this.data.navigationEndpoint;N&&_.M(N,_.Un)&&_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}})};
_.V.readChanged=function(){var N;_.VQ(this.hostElement,"unread",!((N=this.data)==null?0:N.read))};
_.V.dataChanged=function(){this.data&&_.VQ(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.V.computeThumbnailSize=function(){var N;return((N=this.data)==null?0:N.highPriorityNotification)?32:48};
_.V.getEndpointURL=function(N){return N&&!_.M(N,_.Un)?this.componentBehavior.computeHref_(N):null};
_.V.getEndpointData=function(N){return N&&!_.M(N,_.Un)?N:null};
q6.prototype.computeThumbnailSize=q6.prototype.computeThumbnailSize;q6.prototype.dataChanged=q6.prototype.dataChanged;q6.prototype.readChanged=q6.prototype.readChanged;q6.prototype.onKeyUp=q6.prototype.onKeyUp;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],q6.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],q6.prototype,"data",void 0);_.W([_.X({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Q("design:type",Number)],q6.prototype,"thumbnailSize",void 0);_.W([_.dz("keyup"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],q6.prototype,"onKeyUp",null);
_.W([_.gz("data.read"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q6.prototype,"readChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q6.prototype,"dataChanged",null);_.W([_.gz("data.highPriorityNotification"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q6.prototype,"computeThumbnailSize",null);
_.W([_.en({is:"ytd-notification-renderer",disableElementRegistration:!0})],q6);
_.n(q6,"ytd-notification-renderer",function(){if(Sxm!==void 0)return Sxm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Sxm=N},{mode:1});var h5$;var fr=function(){return _.k.apply(this,arguments)||this};
_.p(fr,_.k);fr.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"}}}};
fr.prototype.computeActionButtonClass=function(N){return!N.actionButtons||N.actionButtons.length<=1?"single-button":N.description?"vertical-buttons":"horizontal-buttons"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fr.prototype,"data",void 0);_.W([_.en({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],fr);
_.n(fr,"ytd-playlist-show-metadata-renderer",function(){if(h5$!==void 0)return h5$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return h5$=N},{mode:1});var MJm;_.pE("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var nr=function(){return _.k.apply(this,arguments)||this};
_.p(nr,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nr.prototype,"data",void 0);_.W([_.en({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],nr);
_.n(nr,"ytd-purchase-item-renderer",function(){if(MJm!==void 0)return MJm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MJm=N},{mode:1});var bnw;var pmV={};pmV.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(N){if(N)return N.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(N){if(N==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.pE("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var We=function(){return _.k.apply(this,arguments)||this};
_.p(We,_.k);We.prototype.onYtNavigate=function(N){var t=this.openPopupBehavior.getNavigationEndpointPopupAction(N.detail.endpoint);t&&(N.stopPropagation(),this.openPopupBehavior.openPopup(t))};
We.prototype.onYtNavigate=We.prototype.onYtNavigate;_.W([_.Y(pmV.YtSimpleTextSectionBehavior),_.Q("design:type",Object)],We.prototype,"ytSimpleTextSectionBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],We.prototype,"openPopupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],We.prototype,"data",void 0);
_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],We.prototype,"onYtNavigate",null);_.W([_.en({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],We);
_.n(We,"ytd-simple-text-section-renderer",function(){if(bnw!==void 0)return bnw;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return bnw=N},{mode:1});var L5A;_.pE("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var z5w=function(){return _.k.apply(this,arguments)||this};
_.p(z5w,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],z5w.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],z5w.prototype,"data",void 0);_.W([_.en({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],z5w);
_.n(z5w,"ytd-unlimited-page-feature-info-renderer",function(){if(L5A!==void 0)return L5A;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return L5A=N},{mode:1});var YxD;var azd;var ro=function(){return _.k.apply(this,arguments)||this};
_.p(ro,_.k);ro.prototype.dataChanged=function(){if(this.data){var N=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);N&&(N=_.s4(N,screen.width),this.hostElement.style.backgroundImage="url("+N+")")}};
ro.prototype.dataChanged=ro.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ro.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ro.prototype,"dataChanged",null);_.W([_.en({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],ro);
_.n(ro,"ytd-post-redemption-section-renderer",function(){if(azd!==void 0)return azd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return azd=N},{mode:1});var Tiw;var Im=function(){return _.k.apply(this,arguments)||this};
_.p(Im,_.k);Im.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Im.prototype,"data",void 0);_.W([_.en({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Im);
_.n(Im,"ytd-ypc-post-redemption-renderer",function(){if(Tiw!==void 0)return Tiw;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Tiw=N},{mode:1});_.pE("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var lJ=function(){var N=_.k.apply(this,arguments)||this;N.MIN_CODE_LENGTH=12;N.MAX_CODE_LENGTH=24;return N};
_.p(lJ,_.k);_.V=lJ.prototype;_.V.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.V.created=function(){this.riskService=new _.X$x;this.loadPaymentThenable=_.k3t(_.Ro("YPC_MB_URL"))};
_.V.ready=function(){var N=this;this.code.addEventListener("keypress",function(t){N.onCodeInputKeypress(t)})};
_.V.dataChanged=function(){var N=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(t){t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=O.value,O.type==="attributes"&&O.attributeName==="dark"&&N.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.V.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var N=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+N+")")}};
_.V.computeRedeemButton=function(N){(N=this.get("redeemButton.buttonRenderer",N))&&(N=Object.assign({},N,{serviceEndpoint:void 0}));return N};
_.V.onRedeemButtonTap=function(N){N.stopPropagation();dq8();this.redeemCode()};
_.V.redeemCode=function(){var N=this;this.isLoading=!0;var t=this.riskService.init();_.qs([t,this.loadPaymentThenable]).then(function(){var O=N.data.redeemButton.buttonRenderer.serviceEndpoint,H=_.xMy(),A=_.Jq.payments.business.integration.ClientTokenFactory.createClientToken(_.M(O,_.LuY).countryCode,H);H={c:N.code.value.trim(),rd:window.btoa(H),ctk:A};O&&_.cY().resolve(_.jo).resolveCommand(O,{form:Object.assign({},H,{element:N.hostElement})})},function(){N.showGenericError();
grd("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.JO(Error("Po"))})};
_.V.onYtServiceRequestCompleted=function(N){N.stopPropagation();this.isLoading=!1;var t,O;this.errorMessage=(t=N.detail)==null?void 0:(O=t.data)==null?void 0:O.errorMessage;var H,A;this.postRedemptionRenderer=(H=N.detail)==null?void 0:(A=H.data)==null?void 0:A.renderer;var Z,U;if(N=(Z=N.detail)==null?void 0:(U=Z.data)==null?void 0:U.redirectEndpoint)this.isLoading=!0,_.or(this.hostElement,"yt-navigate",{endpoint:N});this.errorMessage?grd("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
N)&&_.Eg("ypcRedeemFlowSucceeded")};
_.V.onYtServiceRequestError=function(N){N.stopPropagation();this.isLoading=!1;if(N=this.get("detail.error.message",N))this.errorMessage=_.E_(N);grd("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.V.onInvokeInstrumentManagerActionCompleted=function(N){N.stopPropagation();this.redeemCode()};
_.V.onInvokeInstrumentManagerActionError=function(N){N.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",N)){case "instrumentManagerLoadError":this.showGenericError();grd("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();grd("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Eg("ypcRedeemFlowCancelled")}};
_.V.onInput=function(){var N=this;_.W2(this,"onInput",function(){var t=N.code.value.trim();N.redeemButtonDisabled=t.length<N.MIN_CODE_LENGTH||t.length>N.MAX_CODE_LENGTH},200)};
_.V.onCodeInputKeypress=function(N){N.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(dq8(),this.redeemCode())};
_.V.computeImageUrl=function(N){return N?_.s4(N.thumbnails,600):null};
_.V.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
lJ.prototype.onInvokeInstrumentManagerActionError=lJ.prototype.onInvokeInstrumentManagerActionError;lJ.prototype.onInvokeInstrumentManagerActionCompleted=lJ.prototype.onInvokeInstrumentManagerActionCompleted;lJ.prototype.onYtServiceRequestError=lJ.prototype.onYtServiceRequestError;lJ.prototype.onYtServiceRequestCompleted=lJ.prototype.onYtServiceRequestCompleted;lJ.prototype.dataChanged=lJ.prototype.dataChanged;
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lJ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],lJ.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Boolean)],lJ.prototype,"redeemButtonDisabled",void 0);
_.W([_.X(),_.Q("design:type",Object)],lJ.prototype,"errorMessage",void 0);_.W([_.X(),_.Q("design:type",Object)],lJ.prototype,"postRedemptionRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],lJ.prototype,"observer",void 0);_.W([_.B2("#code"),_.Q("design:type",HTMLInputElement)],lJ.prototype,"code",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lJ.prototype,"dataChanged",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],lJ.prototype,"onYtServiceRequestCompleted",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],lJ.prototype,"onYtServiceRequestError",null);
_.W([_.dz("yt-invoke-instrument-manager-action-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],lJ.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.W([_.dz("yt-invoke-instrument-manager-action-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],lJ.prototype,"onInvokeInstrumentManagerActionError",null);_.W([_.en({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],lJ);
_.n(lJ,"ytd-redeem-code-renderer",function(){if(YxD!==void 0)return YxD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return YxD=N},{mode:1});var wmD;_.pE("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Qp=function(){var N=_.k.apply(this,arguments)||this;N.businessEmailDisplayState="HIDE_SECTION";return N};
_.p(Qp,_.k);_.V=Qp.prototype;_.V.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.V.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.V.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.V.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.XU(_.iHu),this.businessEmailDisplayState="CAPTCHA"))};
_.V.onYtServiceRequestCompleted=function(N){var t;if((t=N.detail.data)==null?0:t.businessEmail)this.businessEmail=N.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var O;if((O=N.detail.data)==null?0:O.errorMessage)this.businessEmailErrorMessage=N.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.V.computeEmailHref=function(N){return"mailto:"+N};
_.V.computeSafeUrl=function(N){if(N)return _.Id(N)};
_.V.onBusinessEmailCaptchaSubmit=function(){var N;(N=this.data)!=null&&N.onBusinessEmailRevealClickCommand&&(N=this.JSC$22353_captchaTextarea.value)&&(N={recaptcha_response_token:N,channel_id:this.data.channelId},_.cY().resolve(_.jo).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},N,{element:this.hostElement})}))};
_.V.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.cv.Object.defineProperties(Qp.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.primaryLinks)&&!((t=this.data)==null?0:t.links)&&this.data.primaryLinks.every(function(O){return O.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.primaryLinks)&&!((t=this.data)==null?0:t.links)&&!this.shouldShowNewLinks}}});
Qp.prototype.onYtServiceRequestCompleted=Qp.prototype.onYtServiceRequestCompleted;Qp.prototype.dataChanged=Qp.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Qp.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.B2("#g-recaptcha-response"),_.Q("design:type",HTMLTextAreaElement)],Qp.prototype,"JSC$22353_captchaTextarea",void 0);_.W([_.X(),_.Q("design:type",Object)],Qp.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],Qp.prototype,"businessEmailDisplayState",void 0);_.W([_.X(),_.Q("design:type",String)],Qp.prototype,"businessEmail",void 0);_.W([_.X(),_.Q("design:type",String)],Qp.prototype,"businessEmailErrorMessage",void 0);
_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"hideDetailsSection",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qp.prototype,"dataChanged",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"shouldShowNewLinks",null);_.W([_.a("data","shouldShowLinks"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qp.prototype,"shouldShowLegacyLinks",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Qp.prototype,"onYtServiceRequestCompleted",null);_.W([_.en({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Qp);
_.n(Qp,"ytd-channel-about-metadata-renderer",function(){if(wmD!==void 0)return wmD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return wmD=N},{mode:1});var e5d;_.pE("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var ml=function(){return _.k.apply(this,arguments)||this};
_.p(ml,_.k);ml.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ml.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ml.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ml.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],ml.prototype,"lockupContainerType",void 0);_.W([_.X(),_.Q("design:type",String)],ml.prototype,"thumbnailFixedWidth",void 0);
_.W([_.en({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],ml);
_.n(ml,"ytd-channel-featured-content-renderer",function(){if(e5d!==void 0)return e5d;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return e5d=N},{mode:1});var P19;_.pE("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var EB=function(){var N=_.k.apply(this,arguments)||this;N.roundContainer=!0;N.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return N};
_.p(EB,_.k);_.V=EB.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.dataChanged=function(){this.imageWidth=this.imageHeight=24;var N=this.data;N.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!N.style&&N.image&&N.image.thumbnails.length&&(N=N.image.thumbnails[0],this.imageWidth=N.width||0,this.imageHeight=N.height||0)};
_.V.computeSource=function(N){return N.secondarySource?_.Gv(N.secondarySource):_.Gv(N.source)};
_.V.computeClarifyStyle=function(N){return N?N.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.V.isLargeStyle=function(N){return N==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.V.computeBackgroundStyle=function(N){return N?N.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.V.computeHasActionButton=function(N){return!!N.actionButton};
_.V.computeHasBottomSection=function(N){return!!N.ctaHasBottomSection};
_.V.computeIsSourceMissing=function(N){return N.ctaHasBottomSection===!1?!0:N&&this.computeSource(N)?!1:!0};
_.V.computeSecondaryEndpoint=function(N){return N.secondaryEndpoint||N.endpoint};
EB.prototype.dataChanged=EB.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],EB.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],EB.prototype,"imageWidth",void 0);_.W([_.X(),_.Q("design:type",Number)],EB.prototype,"imageHeight",void 0);
_.W([_.X({computed:"computeSecondaryEndpoint(data)"}),_.Q("design:type",Object)],EB.prototype,"secondaryEndpoint",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Q("design:type",Boolean)],EB.prototype,"hasActionButton",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Q("design:type",Boolean)],EB.prototype,"hasBottomSection",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Q("design:type",Boolean)],EB.prototype,"missingSource",void 0);_.W([_.X({computed:"computeIcon_(data.icon)"}),_.Q("design:type",String)],EB.prototype,"icon",void 0);_.W([_.X({computed:"computeIcon_(data.secondaryIcon)"}),_.Q("design:type",String)],EB.prototype,"secondaryIcon",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Q("design:type",String)],EB.prototype,"clarifyStyle",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Q("design:type",String)],EB.prototype,"backgroundStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],EB.prototype,"roundContainer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],EB.prototype,"amsterdamEnabled",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EB.prototype,"dataChanged",null);
_.W([_.en({is:"ytd-clarification-renderer",disableElementRegistration:!0})],EB);
_.n(EB,"ytd-clarification-renderer",function(){if(P19!==void 0)return P19;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return P19=N},{mode:1});var Xm8;var xqR;var Gf=function(){var N=_.k.apply(this,arguments)||this;N.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return N};
_.p(Gf,_.k);_.V=Gf.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.V.computeIcon=function(N){return N?"yt-icons:"+N.toLowerCase():null};
_.V.computeUseContacts=function(N){return!!N.contacts&&N.contacts.length>0};
_.V.computePhoneContact=function(N){var t,O;return(t=N.contacts)==null?void 0:(O=t.find(function(H){var A;return(H==null?void 0:(A=H.icon)==null?void 0:A.iconType)==="PHONE"}))==null?void 0:O.actionText};
_.V.computeSmsContact=function(N){var t,O;return(t=N.contacts)==null?void 0:(O=t.find(function(H){var A;return(H==null?void 0:(A=H.icon)==null?void 0:A.iconType)==="SMS"}))==null?void 0:O.actionText};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Gf.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Gf.prototype,"amsterdamEnabled",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Q("design:type",Boolean)],Gf.prototype,"useContacts",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Q("design:type",String)],Gf.prototype,"phoneContact",void 0);_.W([_.en({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Gf);
_.n(Gf,"ytd-single-action-emergency-support-renderer",function(){if(xqR!==void 0)return xqR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return xqR=N},{mode:1});_.pE("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var Rm=function(){var N=_.k.apply(this,arguments)||this;N.roundedContainer=!0;N.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return N};
_.p(Rm,_.k);Rm.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"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Rm.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Rm.prototype,"roundedContainer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Rm.prototype,"amsterdamEnabled",void 0);
_.W([_.en({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Rm);
_.n(Rm,"ytd-emergency-onebox-renderer",function(){if(Xm8!==void 0)return Xm8;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Xm8=N},{mode:1});var k5l;_.pE("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var ve=function(){return _.k.apply(this,arguments)||this};
_.p(ve,_.k);ve.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ve.prototype,"data",void 0);_.W([_.en({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],ve);
_.n(ve,"ytd-exploratory-results-renderer",function(){if(k5l!==void 0)return k5l;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return k5l=N},{mode:1});var qxV;_.pE("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Jj=function(){var N=_.k.apply(this,arguments)||this;N.messageData=null;return N};
_.p(Jj,_.k);_.V=Jj.prototype;_.V.onServiceRequestCompleted=function(N,t){N=t.actions||[];t=0;for(var O=N.length;t<O;t++){var H=N[t],A=void 0,Z=void 0;if((A=_.M(H,_.lK))==null?0:(Z=A.item)==null?0:Z.messageRenderer)this.messageData=_.M(H,_.lK).item.messageRenderer}};
_.V.dataChanged=function(){var N=this.data;this.hostElement.hidden=!1;_.VQ(this.hostElement,"is-channel",N&&!N.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.V.computeThumbnailWidth=function(N){return N?126:56};
_.V.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.V.onSubmitTap=function(){var N=this.data,t=this.selectedResponseIndex;N!==void 0&&t!==void 0&&(N=N.responses[t],N.responseData&&_.cY().resolve(_.jo).resolveCommand(N.responseData,{form:{element:this.hostElement}}))};
_.V.onDismissTap=function(){this.hostElement.hidden=!0;var N=this.data;N!==void 0&&N.dismissalEndpoint&&_.cY().resolve(_.jo).resolveCommand(N.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.updateSelectedResponseIndexFromBinding=function(N){this.selectedResponseIndex=N.detail.value};
Jj.prototype.onSelectedResponseIndexChange=Jj.prototype.onSelectedResponseIndexChange;Jj.prototype.dataChanged=Jj.prototype.dataChanged;Jj.prototype.onServiceRequestCompleted=Jj.prototype.onServiceRequestCompleted;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Jj.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Jj.prototype,"messageData",void 0);
_.W([_.X(),_.Q("design:type",Number)],Jj.prototype,"selectedResponseIndex",void 0);_.W([_.B2("#submit-button"),_.Q("design:type",HTMLButtonElement)],Jj.prototype,"submitButton",void 0);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],Jj.prototype,"onServiceRequestCompleted",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jj.prototype,"dataChanged",null);
_.W([_.gz("selectedResponseIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Jj.prototype,"onSelectedResponseIndexChange",null);_.W([_.en({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Jj);
_.n(Jj,"ytd-feedback-elicitation-single-question-renderer",function(){if(qxV!==void 0)return qxV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return qxV=N},{mode:1});var fzd;var om=function(){return _.k.apply(this,arguments)||this};
_.p(om,_.k);om.prototype.computeThumbnailWidth=function(N){return N?602:428};
om.prototype.updateWideFromBinding=function(N){this.wide=N.detail.value};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],om.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],om.prototype,"wide",void 0);_.W([_.en({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],om);
_.n(om,"ytd-newspaper-hero-video-renderer",function(){if(fzd!==void 0)return fzd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return fzd=N},{mode:1});var nrd;var W5u=function(){return _.k.apply(this,arguments)||this};
_.p(W5u,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],W5u.prototype,"rendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],W5u.prototype,"data",void 0);_.W([_.en({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],W5u);
_.n(W5u,"ytd-newspaper-mini-video-renderer",function(){if(nrd!==void 0)return nrd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return nrd=N},{mode:1});var rmr;_.pE("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var sB=function(){return _.k.apply(this,arguments)||this};
_.p(sB,_.k);sB.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"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sB.prototype,"data",void 0);_.W([_.en({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],sB);
_.n(sB,"ytd-newspaper-renderer",function(){if(rmr!==void 0)return rmr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rmr=N},{mode:1});var IzN;_.pE("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var NM=function(){var N=_.k.apply(this,arguments)||this;N.isSegment=!1;N.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};N.nextContinuation={continuationType:"playlistVideoListContinuation"};return N};
_.p(NM,_.k);_.V=NM.prototype;_.V.created=function(){var N=this;this.JSC$22386_ytReorderableController=new _.g0B(101,function(t){N.handleDrop(t)})};
_.V.attached=function(){_.cY();var N;(N=_.cY().resolve(_.BY(_.At)))!=null&&(N.playlistVideoListElement=this.hostElement)};
_.V.detached=function(){var N;(N=_.cY().resolve(_.BY(_.At)))!=null&&(N.playlistVideoListElement=void 0);N=_.cY().resolve(_.BY(_.IF));_.h("web_enable_voting_animation")&&N&&(N.parentElem=void 0,N.videos=[],N.continuationsPresent=!1,N.showRefreshPill=!1);_.mO(this.JSC$22386_ytReorderableController)};
_.V.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.V.dataChanged=function(){var N=_.cY().resolve(_.BY(_.IF));if(_.h("web_enable_voting_animation")&&this.data&&N){var t=_.O6(this.hostElement).querySelector("#contents");t&&(N.parentElem=t);N.addVideos(this.data.contents)}_.mO(this.JSC$22386_ytReorderableController)};
_.V.onRendererstamperFinished=function(){this.canReorder&&_.yWa(this.JSC$22386_ytReorderableController,_.O6(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.V.onPlaylistReloading=function(){this.isReloading=!0};
_.V.onUpdateSetVideoId=function(N){if(N.detail&&this.data&&this.data.contents){var t=N.detail;N=this.data.contents.findIndex(function(A){var Z;return((Z=A.playlistVideoRenderer)==null?void 0:Z.videoId)===t.videoId});
if(!(N<0)&&t.setVideoId&&(this.set("data.contents."+N+".playlistVideoRenderer.setVideoId",t.setVideoId),_.h("web_enable_voting_animation"))){var O;if(N=_.M((O=this.data.contents[N].playlistVideoRenderer)==null?void 0:O.engagementBar,_.tYg)){var H;(H=N.actions)==null||H.forEach(function(A){if(A=_.M(A,_.OGQ))A.itemId=t.setVideoId})}(O=_.cY().resolve(_.BY(_.IF)))&&ymm(O,t.videoId,t.setVideoId)}}};
_.V.computeContentsClass=function(N){return N?"reloading":""};
_.V.computeIsSortable=function(N,t){return N&&t>0&&!this.isSegment&&!_.h("shorts_in_playlists_web")};
_.V.computeIsEditable=function(N){return N};
_.V.computeCanReorder=function(N){return N};
_.V.handlePlaylistRemoveVideosAction=function(N){if(this.get("playlistRemoveVideosAction.setVideoIds",N)&&this.data&&this.data.contents){N=_.M(N,_.Q3Y).setVideoIds;for(var t=this.data.contents.length-1;t>=0;){var O=this.data.contents[t].playlistVideoRenderer;O&&O.setVideoId&&N.includes(O.setVideoId)&&this.splice("data.contents",t,1);t--}_.sl(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var N=0;N<this.data.contents.length;N++)this.set("data.contents."+N+".playlistVideoRenderer.index",_.E_(String(N+1)))};
_.V.handleDrop=function(N){N=N.currDragItem;var t=_.qz(N.parentNode.childNodes,N),O=this.data.contents.splice(Number(_.Gv(N.data.index))-1,1)[0];this.data.contents.splice(t,0,O);t=t?this.get("contents."+(t-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();N=this.buildReorderServiceEndpoint(N.data.setVideoId,t);this.ytComponentBehavior.resolveCommand(N)};
_.V.buildReorderServiceEndpoint=function(N,t){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",N),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",t),this.data.onReorderEndpoint):null};
_.V.handleUpdatePlaylistAction=function(N){var t;(N=_.M((t=_.M(N,_.m_u))==null?void 0:t.updatedRenderer,_.G6X))&&this.canReorder!==N.canReorder&&this.set("data.canReorder",N.canReorder);N&&N.contents&&(this.set("data.contents",N.contents),this.isReloading=!1);N&&N.continuations&&this.set("data.continuations",N.continuations)};
_.V.handleAddRendererToItemSectionAction=function(N){var t,O=(t=_.M(N,in1))==null?void 0:t.renderer,H;O&&((H=_.M(N,in1))==null?void 0:H.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,O),N=_.cY().resolve(_.BY(_.IF)),_.h("web_enable_voting_animation")&&N&&(O&&(t=_.NTN(O))&&N.recommendedVideos.push({itemId:t,videoId:_.HGN(O),voteCount:_.AF4(O),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.V.isVotingEnabledOnPlaylist=function(N){if(!N)return!1;N=_.D(N);for(N=N.next();!N.done;N=N.next()){var t=void 0;return!!_.M((t=N.value.playlistVideoRenderer)==null?void 0:t.engagementBar,_.tYg)}return!1};
_.V.onAppendContinuationItemsActionFinished=function(){var N;this.isVotingEnabledOnPlaylist((N=this.data)==null?void 0:N.contents)&&(this.updateIndices(),N=_.cY().resolve(_.BY(_.IF)),_.h("web_enable_voting_animation")&&N&&this.data&&N.addVideos(this.data.contents))};
_.V.updateVideoData=function(N){if(N.detail&&this.data&&this.data.contents){var t=N.detail;N=t.toIdx;var O=t.itemId,H=t.newVoteCount,A=t.voteStatus;t=t.hideItem;var Z,U,C=(Z=this.data)==null?void 0:(U=Z.contents)==null?void 0:U.findIndex(function(c){return _.NTN(c)===O});
if(!(C<0)){Z=this.data.contents[C];var F;if((F=Z.playlistVideoRenderer)==null?0:F.voteCount)Z.playlistVideoRenderer.voteCount=H;var g;if(F=_.M((g=Z.playlistVideoRenderer)==null?void 0:g.engagementBar,_.tYg)){var B;(B=F.actions)==null||B.forEach(function(c){(c=_.M(c,_.OGQ))&&c.initialState&&(c.initialState.votes=H,c.initialState.status=A)})}this.data.contents.splice(C,1);
t||this.data.contents.splice(N,0,Z);this.updateIndices()}}};
NM.prototype.updateVideoData=NM.prototype.updateVideoData;NM.prototype.onAppendContinuationItemsActionFinished=NM.prototype.onAppendContinuationItemsActionFinished;NM.prototype.onUpdateSetVideoId=NM.prototype.onUpdateSetVideoId;NM.prototype.onPlaylistReloading=NM.prototype.onPlaylistReloading;NM.prototype.onRendererstamperFinished=NM.prototype.onRendererstamperFinished;NM.prototype.dataChanged=NM.prototype.dataChanged;
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],NM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],NM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.MP.YtNextContinuationBehavior),_.Q("design:type",Object)],NM.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.Y(_.h3),_.Q("design:type",Object)],NM.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],NM.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],NM.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],NM.prototype,"isReloading",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],NM.prototype,"isSegment",void 0);
_.W([_.X({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Q("design:type",Boolean)],NM.prototype,"isSortable",void 0);_.W([_.X({computed:"computeIsEditable(data.isEditable)"}),_.Q("design:type",Boolean)],NM.prototype,"isEditable",void 0);_.W([_.X({computed:"computeCanReorder(data.canReorder)"}),_.Q("design:type",Boolean)],NM.prototype,"canReorder",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NM.prototype,"dataChanged",null);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NM.prototype,"onRendererstamperFinished",null);_.W([_.dz("yt-playlist-reloading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NM.prototype,"onPlaylistReloading",null);
_.W([_.dz("yt-update-set-video-id"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],NM.prototype,"onUpdateSetVideoId",null);_.W([_.dz("yt-append-continuation-items-action-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NM.prototype,"onAppendContinuationItemsActionFinished",null);
_.W([_.dz("yt-update-video-data-voting-animation"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],NM.prototype,"updateVideoData",null);_.W([_.en({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],NM);
_.n(NM,"ytd-playlist-video-list-renderer",function(){if(IzN!==void 0)return IzN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return IzN=N},{mode:_.O4("kevlar_poly_si_batch_j047")?1:2});var lzN;var tF=function(){return _.k.apply(this,arguments)||this};
_.p(tF,_.k);tF.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"}}}}};
tF.prototype.onTextWrapperTap=function(N){var t=this.data&&this.data.navigationEndpoint;t&&!_.RM(_.m1(N),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.or(this.hostElement,"yt-navigate",{endpoint:t})};
tF.prototype.dataChanged=function(){var N=this.get("data.offerButton.buttonRenderer.serviceEndpoint");N&&N.commandMetadata&&_.M(N.commandMetadata,_.R$)&&_.M(N.commandMetadata,_.R$).fireAutomatically&&_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}})};
tF.prototype.dataChanged=tF.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.$t),_.Q("design:type",Object)],tF.prototype,"ytdLockupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tF.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],tF.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],tF.prototype,"biggerThumbsStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],tF.prototype,"leftAligned",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tF.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-movie-renderer"})],tF);
_.n(tF,"ytd-movie-renderer",function(){if(lzN!==void 0)return lzN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return lzN=N},{mode:1});var Q11;var OL=function(){var N=_.k.apply(this,arguments)||this;N.rounded=!0;N.pageAttachedTo=void 0;N.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return N};
_.p(OL,_.k);OL.prototype.attached=function(){this.pageAttachedTo=_.cY().resolve(_.J4).getCurrentPage();_.or(this.hostElement,"yt-player-attached",this.player)};
OL.prototype.detached=function(){var N;if((N=this.pageAttachedTo)==null?0:N.hostElement)_.or(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
OL.prototype.dataChanged=function(){var N;if((N=this.data)==null?0:N.videoId)N={video_id:this.data.videoId,autoplay:!0},!_.h("miniplayer_stop_channel_video_autoplay_killswitch")&&_.cY().resolve(_.kf).isMiniplayerActive()&&(N.pause_at_start=!0,N.autoplay=!1),this.player.loadVideoWithPlayerVars(N)};
OL.prototype.handleSignalActionPausePlayer=function(){_.NU().pause()};
OL.prototype.dataChanged=OL.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],OL.prototype,"data",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],OL.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],OL.prototype,"rounded",void 0);_.W([_.B2("#player"),_.Q("design:type",Object)],OL.prototype,"player",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],OL.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],OL);
_.n(OL,"ytd-channel-video-player-renderer",function(){if(Q11!==void 0)return Q11;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Q11=N},{mode:1});var mqw;var ErR;var G5V;var H$=function(){var N=_.k.apply(this,arguments)||this;N.playing=!1;N.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.GM(N);N.active=!1;return N};
_.p(H$,_.k);_.V=H$.prototype;_.V.detached=function(){this.stop()};
_.V.play=function(){var N=this,t,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return N.active=!0,t=N.get("data.inlinePlaybackEndpoint.watchEndpoint"),O=t.videoId||N.data.videoId,H=t.startTimeSeconds||0,A=t.playerParams||null,_.h("kevlar_player_update_killswitch")?U.yield(N.playerEl.update({args:{video_id:O,startSeconds:H,player_params:A}}),2):(N.playerEl.loadVideoWithPlayerVars({video_id:O,startSeconds:H,player_params:A,autoplay:!0}),U.jumpTo(2));if(U.nextAddress!=4)return U.yield(N.playerEl.getPlayerPromise(),
4);Z=U.yieldResult;Z.unloadModule("annotations_module");Z.addEventListener("onStateChange",function(C){N.onPlayerStateChange(C)});
_.Ty(U)})};
_.V.onPlayerStateChange=function(N){if(this.active)switch(this.playing=N===1,N){case 1:_.or(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.or(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.V.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.V.resize=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return O.yield(N.playerEl.getPlayerPromise(),2);t=O.yieldResult;t.setSize(NaN,NaN);_.Ty(O)})};
_.W([_.X(),_.Q("design:type",Object)],H$.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],H$.prototype,"playing",void 0);_.W([_.X(),_.Q("design:type",Object)],H$.prototype,"playerId",void 0);_.W([_.B2("#player"),_.Q("design:type",Object)],H$.prototype,"playerEl",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],H$);
_.n(H$,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(G5V!==void 0)return G5V;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return G5V=N},{mode:1});var R5$;var vrA;var AF=function(){var N=_.k.apply(this,arguments)||this;N.width=0;return N};
_.p(AF,_.k);_.V=AF.prototype;_.V.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Fb(this,this.onEnded));this.mp4El.addEventListener("error",_.Fb(this,this.onError))};
_.V.detached=function(){this.videoEl.removeEventListener("ended",_.Fb(this,this.onEnded));this.mp4El.removeEventListener("error",_.Fb(this,this.onError))};
_.V.play=function(){var N=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var t=this.videoEl.play();t?t.then(function(){N.handleVideoStartPlaying()}).catch(function(){_.or(N.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.or(this.hostElement,"yt-video-thumbnail-not-playing")};
_.V.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.V.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.V.dataChanged=function(){var N;if((N=this.data)==null?0:N.thumbnailPlaceholder)N=_.s4(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+N+")";this.stop();this.autoplay&&this.play()};
_.V.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.V.onEnded=function(){this.stop();_.or(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.V.onError=function(){_.or(this.hostElement,"yt-video-thumbnail-error")};
_.V.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.V.getVideoThumbnail=function(N){if(N&&N.length)return N[0]};
AF.prototype.dataChanged=AF.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],AF.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],AF.prototype,"animatePlaceholderOnEntrance",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],AF.prototype,"autoplay",void 0);_.W([_.X({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Q("design:type",Object)],AF.prototype,"videoThumbnail",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],AF.prototype,"loop",void 0);_.W([_.X(),_.Q("design:type",Boolean)],AF.prototype,"isVideoPlaying",void 0);_.W([_.X(),_.Q("design:type",Object)],AF.prototype,"width",void 0);_.W([_.B2("#mp4"),_.Q("design:type",HTMLElement)],AF.prototype,"mp4El",void 0);_.W([_.B2("#placeholder"),_.Q("design:type",HTMLElement)],AF.prototype,"placeholderEl",void 0);_.W([_.B2("#video"),_.Q("design:type",HTMLVideoElement)],AF.prototype,"videoEl",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],AF.prototype,"dataChanged",null);_.W([_.wz({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],AF);
_.n(AF,"yt-video-as-thumbnail-details",function(){if(vrA===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;R5$===void 0&&(R5$=document.createElement("template"));var H=R5$;O.call(t,H.content.cloneNode(!0),N.content.firstChild);vrA=N}N=vrA;return N},{mode:2});var ZJ=function(){var N=_.k.apply(this,arguments)||this;N.disableGridStateAware=!1;N.animationEnabled=_.h("enable_web_ketchup_hero_animation");N.transitioningOut=!1;N.narrow=!1;N.narrower=!1;N.isCarouselInFeed=!1;N.videoTimeoutJobId=0;N.panelTimeoutJobId=0;N.panelTimeoutJobStartMs=0;N.actionMap={"yt-window-resized":"onWindowResized"};return N};
_.p(ZJ,_.k);_.V=ZJ.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.V.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var N;this.player&&((N=this.data)==null?0:N.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.V.attached=function(){this.onWindowResized()};
_.V.detached=function(){this.clearTimeouts()};
_.V.onWindowResized=function(){this.updateSize()};
_.V.computePanelLayout=function(N){return N&&N.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.playVideo=function(){var N;this.video&&((N=this.data)==null?0:N.videoThumbnail)&&this.video.play();var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.play()};
_.V.stopVideo=function(){var N;this.video&&((N=this.data)==null?0:N.videoThumbnail)&&this.video.stop();var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.stop()};
_.V.transitionOut=function(){var N=this;this.transitioningOut=!0;return new Promise(function(t){var O=function(){_.O6(N.hostElement).querySelector("#action-button").removeEventListener("animationend",O);_.GB.cancelJob(H);t();N.transitioningOut=!1};
var H=_.WX(_.GB,O,1E3);_.O6(N.hostElement).querySelector("#action-button").addEventListener("animationend",O);N.player&&(N.player.playing=!1)})};
_.V.computeMetadataOrder=function(N){return N&&N.metadataOrder&&N.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?N.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.V.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.V.computeAvatarSize=function(N){return N&&N.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.V.onContentClick=function(N){if(!_.RM(_.m1(N),this.hostElement,["A".toString(),"BUTTON".toString()])){var t;if((t=this.data)==null?0:t.navigationEndpoint){var O;this.componentBehavior.resolveCommand((O=this.data)==null?void 0:O.navigationEndpoint)}}};
_.V.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.V.setBackgroundImage=function(N){if(N=this.getBackgroundImageUrl(N))_.O6(this.hostElement).querySelector("#hero").style.backgroundImage="url("+N+")"};
_.V.setScrimLayer=function(N){var t=this.getScrimLayerColorStops(N);N=((N==null?void 0:N.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(N=180);_.Ro("HTML_DIR")==="rtl"&&(N=-N);t&&(_.O6(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+N+"deg, "+t+")")};
_.V.isNarrower=function(){return this.hostElement.clientWidth<ZJ.NARROW_VERSION_SIZE};
_.V.getScrimLayerColorStops=function(){var N,t=(N=this.data)==null?void 0:N.scrimColorValues;if(!t)return null;if(t.length===1)return N=_.TV(t[0]),N+" 0%, "+N+" 100%";if(t.length===3){var O=[0,72,98];return t.map(function(H,A){return _.TV(H)+" "+O[A]+"%"}).join(",")}return null};
_.V.getBackgroundImageUrl=function(N){return N&&N.largeFormFactorBackgroundThumbnail?_.s4((N.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||N.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.V.onPlaying=function(){this.startVideoTimeout()};
_.V.onEnded=function(){this.rotate()};
_.V.startPanelTimeout=function(){var N=this;if(!this.panelTimeoutJobId){var t=this.get("data.minPanelDisplayDurationMs");t&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.WX(_.GB,function(){N.rotate()},t))}};
_.V.startVideoTimeout=function(){var N=this;if(!this.videoTimeoutJobId){_.GB.cancelJob(this.panelTimeoutJobId);var t=Date.now()-this.panelTimeoutJobStartMs;t=Math.max(0,this.get("data.minPanelDisplayDurationMs")-t);t=Math.max(this.get("data.minVideoPlayDurationMs")||0,t);this.videoTimeoutJobId=_.WX(_.GB,function(){N.rotate()},t)}};
_.V.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.GB.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.GB.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.V.rotate=function(){this.clearTimeouts();_.or(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.cv.Object.defineProperties(ZJ.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.O6(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.O6(this.hostElement).querySelector("#video")}}});
_.cv.Object.defineProperties(ZJ,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
ZJ.prototype.onEnded=ZJ.prototype.onEnded;ZJ.prototype.onPlaying=ZJ.prototype.onPlaying;ZJ.prototype.dataChanged=ZJ.prototype.dataChanged;_.W([_.Y(_.d4),_.Q("design:type",Object)],ZJ.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ZJ.prototype,"componentBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],ZJ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.Y(_.Uqm),_.Q("design:type",Object)],ZJ.prototype,"ytBooleanLogicBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ZJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ZJ.prototype,"disableGridStateAware",void 0);_.W([_.X(),_.Q("design:type",Object)],ZJ.prototype,"data",void 0);_.W([_.X({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Q("design:type",String)],ZJ.prototype,"panelLayout",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ZJ.prototype,"animationEnabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ZJ.prototype,"transitioningOut",void 0);
_.W([_.X({computed:"computeMetadataOrder(data)"}),_.Q("design:type",Boolean)],ZJ.prototype,"metadataOrder",void 0);_.W([_.X({computed:"computeByline(data)"}),_.Q("design:type",Object)],ZJ.prototype,"byline",void 0);_.W([_.X({computed:"computeAvatarSize(data)"}),_.Q("design:type",Number)],ZJ.prototype,"avatarSize",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ZJ.prototype,"narrow",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ZJ.prototype,"narrower",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ZJ.prototype,"layoutStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ZJ.prototype,"isCarouselInFeed",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZJ.prototype,"dataChanged",null);_.W([_.dz("yt-default-promo-panel-renderer-playing"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZJ.prototype,"onPlaying",null);
_.W([_.dz("yt-default-promo-panel-renderer-ended"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZJ.prototype,"onEnded",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],ZJ);
_.n(ZJ,"ytd-default-promo-panel-renderer",function(){if(ErR!==void 0)return ErR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ErR=N},{mode:1});_.pE("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var VW=function(){var N=_.k.apply(this,arguments)||this;N.narrower=!1;N.dotMenuVisible=!1;N.paginationThumbnailsVisible=!1;N.active=!0;N.disableGridStateAware=!1;N.actionMap={"yt-window-resized":"onWindowResized"};return N};
_.p(VW,_.k);_.V=VW.prototype;_.V.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.Fb(this,this.onPageTypeChange));this.currentPageSubtype=_.opy(location.pathname);this.onWindowResized()};
_.V.detached=function(){this.jobId&&_.GB.cancelJob(this.jobId);this.updateSizeJobId&&_.GB.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Fb(this,this.onPageTypeChange))};
_.V.onPageTypeChange=function(N){this.active=N.detail.newPageSubtype===this.currentPageSubtype};
_.V.onWindowResized=function(){this.updateSize()};
_.V.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.V.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.V.setCarouselItem=function(N){N>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.GB.cancelJob(this.jobId);var t=this.getCurrentPanelElement();t&&t.stopVideo();this.currentItemIndex=N%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(t||(t=this.getCurrentPanelElement()),t.playVideo()):this.startRotationJob()};
_.V.scrollThumbnails=function(N){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var t=this.getCurrentPaginationElement();if(t){var O=_.O6(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?O.style.transform="translateX(0)":(t=t.offsetWidth+8,O.style.transform="translateX(-"+t*(N-Math.ceil(Math.floor(this.overlay.offsetWidth/t)/2)+1)+"px)")}}};
_.V.onDataChanged=function(){var N=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.yD(_.GB,function(){var t;(t=N.getCurrentPanelElement())==null||t.updateSize();N.updateSize()}))};
_.V.getCurrentPanelElement=function(){return _.O6(_.O6(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.V.getCurrentPaginationElement=function(){return _.O6(_.O6(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.V.getNavigationClass=function(N,t){return N===t?"selected":""};
_.V.getNavigationDurationStyle=function(N){return"animation-duration:"+(this.get("data.carouselItems."+N+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.V.onNavigationTap=function(N){var t=this,O=N.model.index;O!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){t.setCarouselItem(O)}),this.autorotateActive=!1)};
_.V.onVideoThumbnailEnded=function(){var N=this;if(this.shouldRotate()){var t=this.getCurrentPaginationElement();t&&(t.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){t.classList.remove("finished");N.setNextCarouselItem()}))}};
_.V.onVideoThumbnailError=function(){this.startRotationJob()};
_.V.onVideoNotPlaying=function(){this.startRotationJob()};
_.V.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.V.startRotationJob=function(){var N=this;_.GB.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.GB.addLowPriorityJob(function(){N.getCurrentPanelElement().transitionOut().then(function(){N.setNextCarouselItem()})},this.rotationTimeout))};
_.V.computeDotMenuVisible=function(N,t){return!!N&&!!N.carouselItems&&N.carouselItems.length>1&&!N.paginationThumbnails||!!t};
_.V.computePaginationThumbnailsVisible=function(N,t){var O,H;return((H=N==null?void 0:(O=N.paginationThumbnails)==null?void 0:O.length)!=null?H:0)>1&&!t};
_.V.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.V.computePaginatorAlignment=function(N){return(N==null?void 0:N.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.V.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.V.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.V.isNarrower=function(N){return(N!=null?N:0)<ZJ.NARROW_VERSION_SIZE};
VW.prototype.activeChanged=VW.prototype.activeChanged;VW.prototype.onVideoNotPlaying=VW.prototype.onVideoNotPlaying;VW.prototype.onVideoThumbnailError=VW.prototype.onVideoThumbnailError;VW.prototype.onVideoThumbnailEnded=VW.prototype.onVideoThumbnailEnded;VW.prototype.onDataChanged=VW.prototype.onDataChanged;_.W([_.Y(_.d4),_.Q("design:type",Object)],VW.prototype,"ytdGridStateAwareBehavior",void 0);
_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],VW.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VW.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],VW.prototype,"currentItem",void 0);
_.W([_.X(),_.Q("design:type",Number)],VW.prototype,"currentItemIndex",void 0);_.W([_.X(),_.Q("design:type",Number)],VW.prototype,"rotationTimeout",void 0);_.W([_.X(),_.Q("design:type",Number)],VW.prototype,"loopCount",void 0);_.W([_.X({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Q("design:type",String)],VW.prototype,"paginatorAlignment",void 0);_.W([_.X(),_.Q("design:type",Number)],VW.prototype,"jobId",void 0);
_.W([_.X(),_.Q("design:type",Number)],VW.prototype,"updateSizeJobId",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],VW.prototype,"isCarouselInFeed",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],VW.prototype,"narrower",void 0);_.W([_.X({computed:"computeDotMenuVisible(data, narrower)"}),_.Q("design:type",Object)],VW.prototype,"dotMenuVisible",void 0);
_.W([_.X({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Q("design:type",Object)],VW.prototype,"paginationThumbnailsVisible",void 0);_.W([_.X({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Q("design:type",String)],VW.prototype,"layoutType",void 0);_.W([_.X({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],VW.prototype,"autorotateActive",void 0);_.W([_.X(),_.Q("design:type",Object)],VW.prototype,"active",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],VW.prototype,"disableGridStateAware",void 0);_.W([_.B2("#overlay"),_.Q("design:type",HTMLElement)],VW.prototype,"overlay",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VW.prototype,"onDataChanged",null);
_.W([_.dz("yt-video-thumbnail-ended"),_.dz("yt-default-promo-panel-renderer-rotate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VW.prototype,"onVideoThumbnailEnded",null);_.W([_.dz("yt-video-thumbnail-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VW.prototype,"onVideoThumbnailError",null);
_.W([_.dz("yt-video-thumbnail-not-playing"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VW.prototype,"onVideoNotPlaying",null);_.W([_.ic("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VW.prototype,"activeChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],VW);
_.n(VW,"ytd-carousel-item-renderer",function(){if(mqw!==void 0)return mqw;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return mqw=N},{mode:2});var Jm9;var orD;var s1D;var NDA;var DJ=function(){var N=_.k.apply(this,arguments)||this;N.originalQuery=null;N.originalEndpoint=null;return N};
_.p(DJ,_.k);DJ.prototype.computeShowOriginalQueryWithoutEndpoint_=function(N,t){return!(!N||t)};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DJ.prototype,"correctedText",void 0);_.W([_.X(),_.Q("design:type",Object)],DJ.prototype,"correctedQuery",void 0);_.W([_.X(),_.Q("design:type",Object)],DJ.prototype,"correctedEndpoint",void 0);_.W([_.X(),_.Q("design:type",Object)],DJ.prototype,"originalText",void 0);_.W([_.X(),_.Q("design:type",Object)],DJ.prototype,"originalQuery",void 0);
_.W([_.X(),_.Q("design:type",Object)],DJ.prototype,"originalEndpoint",void 0);_.W([_.X({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Q("design:type",Boolean)],DJ.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.W([_.wz({is:"yt-search-query-correction",disableElementRegistration:!0})],DJ);
_.n(DJ,"yt-search-query-correction",function(){if(NDA===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;s1D===void 0&&(s1D=document.createElement("template"));var H=s1D;O.call(t,H.content.cloneNode(!0),N.content.firstChild);NDA=N}N=NDA;return N},{mode:2});_.pE("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var tsr=function(){return _.k.apply(this,arguments)||this};
_.p(tsr,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tsr.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tsr.prototype,"data",void 0);_.W([_.wz({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],tsr);
_.n(tsr,"yt-did-you-mean-renderer",function(){if(orD===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Jm9===void 0&&(Jm9=document.createElement("template"));var H=Jm9;O.call(t,H.content.cloneNode(!0),N.content.firstChild);orD=N}N=orD;return N},{mode:2});var O8r;var H8D;_.pE("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var ARr=function(){return _.k.apply(this,arguments)||this};
_.p(ARr,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ARr.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ARr.prototype,"data",void 0);_.W([_.wz({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],ARr);
_.n(ARr,"yt-including-results-for-renderer",function(){if(H8D===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;O8r===void 0&&(O8r=document.createElement("template"));var H=O8r;O.call(t,H.content.cloneNode(!0),N.content.firstChild);H8D=N}N=H8D;return N},{mode:2});var Z8u;var Vsd;_.pE("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var UL=function(){return _.k.apply(this,arguments)||this};
_.p(UL,_.k);UL.prototype.computeExtraClasses_=function(N,t){var O="";N&&(O+=" "+N.toLowerCase().replace(/_/g,"-"));t&&(O+=" "+t.toLowerCase().replace(/_/g,"-"));return O};
UL.prototype.computeUrlImg_=function(){var N=this.data;N.image&&(_.O6(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.s4(N.image.thumbnails,Number.MAX_VALUE)+")")};
UL.prototype.computeUrlImg_=UL.prototype.computeUrlImg_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UL.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UL.prototype,"computeUrlImg_",null);_.W([_.wz({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],UL);
_.n(UL,"yt-music-pass-feature-info-renderer",function(){if(Vsd===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;Z8u===void 0&&(Z8u=document.createElement("template"));var H=Z8u;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Vsd=N}N=Vsd;return N},{mode:2});var Dmd;var Um9;_.pE("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var C99=function(){return _.k.apply(this,arguments)||this};
_.p(C99,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],C99.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],C99.prototype,"data",void 0);_.W([_.wz({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],C99);
_.n(C99,"yt-no-results-found-showing-results-for-renderer",function(){if(Um9===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Dmd===void 0&&(Dmd=document.createElement("template"));var H=Dmd;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Um9=N}N=Um9;return N},{mode:2});var KAm;var FA1;_.pE("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var dmV=function(){return _.k.apply(this,arguments)||this};
_.p(dmV,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dmV.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dmV.prototype,"data",void 0);_.W([_.wz({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],dmV);
_.n(dmV,"yt-results-without-quotes-renderer",function(){if(FA1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;KAm===void 0&&(KAm=document.createElement("template"));var H=KAm;O.call(t,H.content.cloneNode(!0),N.content.firstChild);FA1=N}N=FA1;return N},{mode:2});var gws;var yRu;_.pE("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var BD$=function(){return _.k.apply(this,arguments)||this};
_.p(BD$,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],BD$.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],BD$.prototype,"data",void 0);_.W([_.wz({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],BD$);
_.n(BD$,"yt-search-no-results-renderer",function(){if(yRu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;gws===void 0&&(gws=document.createElement("template"));var H=gws;O.call(t,H.content.cloneNode(!0),N.content.firstChild);yRu=N}N=yRu;return N},{mode:2});var cRN;var $mu;_.pE("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var jd9=function(){return _.k.apply(this,arguments)||this};
_.p(jd9,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jd9.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jd9.prototype,"data",void 0);_.W([_.wz({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],jd9);
_.n(jd9,"yt-showing-results-for-renderer",function(){if($mu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;cRN===void 0&&(cRN=document.createElement("template"));var H=cRN;O.call(t,H.content.cloneNode(!0),N.content.firstChild);$mu=N}N=$mu;return N},{mode:2});var i8s;var uVD;var S1r;var hrw;var CG=function(){var N=_.k.apply(this,arguments)||this;N.answerExpanded=!1;return N};
_.p(CG,_.k);CG.prototype.toggleAnswer_=function(N){var t=_.E3(N);t&&t.classList.contains("yt-simple-endpoint")||(N.preventDefault(),N.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
CG.prototype.toggleAnswer_=CG.prototype.toggleAnswer_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],CG.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],CG.prototype,"answerExpanded",void 0);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],CG.prototype,"toggleAnswer_",null);
_.W([_.wz({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],CG);
_.n(CG,"yt-generic-faq-question-renderer",function(){if(hrw===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;S1r===void 0&&(S1r=document.createElement("template"));var H=S1r;O.call(t,H.content.cloneNode(!0),N.content.firstChild);hrw=N}N=hrw;return N},{mode:2});_.pE("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var KG=function(){return _.k.apply(this,arguments)||this};
_.p(KG,_.k);KG.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],KG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],KG.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],KG.prototype,"data",void 0);_.W([_.wz({is:"yt-faq-section-renderer",disableElementRegistration:!0})],KG);
_.n(KG,"yt-faq-section-renderer",function(){if(uVD===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;i8s===void 0&&(i8s=document.createElement("template"));var H=i8s;O.call(t,H.content.cloneNode(!0),N.content.firstChild);uVD=N}N=uVD;return N},{mode:2});var Msd;var b8N;_.pE("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var FY=function(){return _.k.apply(this,arguments)||this};
_.p(FY,_.k);
FY.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"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],FY.prototype,"data",void 0);_.W([_.wz({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],FY);
_.n(FY,"yt-offer-item-expanded-renderer",function(){if(b8N===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Msd===void 0&&(Msd=document.createElement("template"));var H=Msd;O.call(t,H.content.cloneNode(!0),N.content.firstChild);b8N=N}N=b8N;return N},{mode:2});var plm;var LAl;_.pE("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var dT=function(){return _.k.apply(this,arguments)||this};
_.p(dT,_.k);
dT.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"}}}}};
dT.prototype.computeFullWidthMode=function(N){return!(!N||!N.fullWidthMode)};
dT.prototype.computeBorderlessMode=function(N){return!(!N||!N.borderlessMode)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dT.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dT.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Q("design:type",Boolean)],dT.prototype,"fullWidthMode",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Q("design:type",Boolean)],dT.prototype,"borderlessMode",void 0);_.W([_.wz({is:"yt-offer-item-renderer",disableElementRegistration:!0})],dT);
_.n(dT,"yt-offer-item-renderer",function(){if(LAl===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;plm===void 0&&(plm=document.createElement("template"));var H=plm;O.call(t,H.content.cloneNode(!0),N.content.firstChild);LAl=N}N=LAl;return N},{mode:2});var zrV;var Y1s;_.pE("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var gT=function(){return _.k.apply(this,arguments)||this};
_.p(gT,_.k);gT.prototype.computeAriaLevel_=function(N){return this.getLevelID_(N)};
gT.prototype.getLevelID_=function(N){return(N=N.match(/[0-9]+$/))&&N.length==1?N[0]:"1"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gT.prototype,"data",void 0);_.W([_.X({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Q("design:type",String)],gT.prototype,"ariaLevel",void 0);_.W([_.X({value:"heading",reflectToAttribute:!0}),_.Q("design:type",String)],gT.prototype,"role",void 0);
_.W([_.X({value:-1,reflectToAttribute:!0}),_.Q("design:type",Number)],gT.prototype,"tabindex",void 0);_.W([_.wz({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],gT);
_.n(gT,"yt-subscription-product-header-renderer",function(){if(Y1s===void 0){var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;zrV===void 0&&(zrV=document.createElement("template"));var H=zrV;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Y1s=N}N=Y1s;return N},{mode:2});var aus;var TDu;_.pE("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var yW=function(){return _.k.apply(this,arguments)||this};
_.p(yW,_.k);yW.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:_.LE("menuRenderer"),events:!0}}};
yW.prototype.onStampFinished_=function(){_.O6(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
yW.prototype.onStampFinished_=yW.prototype.onStampFinished_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yW.prototype,"data",void 0);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yW.prototype,"onStampFinished_",null);
_.W([_.wz({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],yW);
_.n(yW,"yt-subscription-product-renderer",function(){if(TDu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;aus===void 0&&(aus=document.createElement("template"));var H=aus;O.call(t,H.content.cloneNode(!0),N.content.firstChild);TDu=N}N=TDu;return N},{mode:2});var wlr;var eru;_.pE("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var B$=function(){return _.k.apply(this,arguments)||this};
_.p(B$,_.k);B$.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
B$.prototype.imageScrimColorValuesChanged_=function(){var N,t=(N=this.data)==null?void 0:N.imageScrimColorValues;_.O6(this.hostElement).querySelector("#scrim").style.backgroundColor=t?_.TV(t[0]):"transparent"};
B$.prototype.imageScrimColorValuesChanged_=B$.prototype.imageScrimColorValuesChanged_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],B$.prototype,"data",void 0);
_.W([_.gz("data.imageScrimColorValues"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],B$.prototype,"imageScrimColorValuesChanged_",null);_.W([_.wz({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],B$);
_.n(B$,"yt-subscription-product-upsell-offer-renderer",function(){if(eru===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;wlr===void 0&&(wlr=document.createElement("template"));var H=wlr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);eru=N}N=eru;return N},{mode:2});var P9s;var Xl1;var xmw;var kN$;var q1s;var fuw;var c$=function(){return _.k.apply(this,arguments)||this};
_.p(c$,_.k);c$.prototype.onYtServiceRequestError_=function(N){_.I8(this.hostElement,N.detail.error.message)};
c$.prototype.onYtServiceRequestError_=c$.prototype.onYtServiceRequestError_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],c$.prototype,"data",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],c$.prototype,"collapsible",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],c$.prototype,"isManageRed",void 0);
_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],c$.prototype,"onYtServiceRequestError_",null);_.W([_.wz({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],c$);
_.n(c$,"yt-single-ypc-offer-renderer",function(){if(fuw===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;q1s===void 0&&(q1s=document.createElement("template"));var H=q1s;O.call(t,H.content.cloneNode(!0),N.content.firstChild);fuw=N}N=fuw;return N},{mode:2});var $h=function(){return _.k.apply(this,arguments)||this};
_.p($h,_.k);$h.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$h.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],$h.prototype,"isManageRed",void 0);_.W([_.wz({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],$h);
_.n($h,"yt-single-ypc-offer-list-renderer",function(){if(kN$===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;xmw===void 0&&(xmw=document.createElement("template"));var H=xmw;O.call(t,H.content.cloneNode(!0),N.content.firstChild);kN$=N}N=kN$;return N},{mode:2});var nwD;var WAN;_.pE("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var wT=function(){return _.k.apply(this,arguments)||this};
_.p(wT,_.k);wT.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wT.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],wT.prototype,"isManageRed",void 0);_.W([_.wz({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],wT);
_.n(wT,"yt-ypc-offers-list-renderer",function(){if(WAN===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;nwD===void 0&&(nwD=document.createElement("template"));var H=nwD;O.call(t,H.content.cloneNode(!0),N.content.firstChild);WAN=N}N=WAN;return N},{mode:2});_.pE("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var eY=function(){return _.k.apply(this,arguments)||this};
_.p(eY,_.k);
eY.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}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],eY.prototype,"data",void 0);_.W([_.wz({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],eY);
_.n(eY,"yt-unlimited-manage-subscription-page-renderer",function(){if(Xl1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;P9s===void 0&&(P9s=document.createElement("template"));var H=P9s;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Xl1=N}N=Xl1;return N},{mode:2});var rRR;var Iud;var P$=function(){return _.k.apply(this,arguments)||this};
_.p(P$,_.k);_.V=P$.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.V.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.onKeypress_=function(N){N.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.V.handleHeaderTap_=function(N){N.preventDefault();N.stopPropagation();this.expandOffers_()};
_.V.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.V.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
P$.prototype.dataChanged_=P$.prototype.dataChanged_;_.W([_.Y(_.rA),_.Q("design:type",Object)],P$.prototype,"ironA11yKeysBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],P$.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],P$.prototype,"offersVisible_",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],P$.prototype,"dataChanged_",null);_.W([_.wz({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],P$);
_.n(P$,"yt-collapsible-ypc-offer-renderer",function(){if(Iud===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;rRR===void 0&&(rRR=document.createElement("template"));var H=rRR;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Iud=N}N=Iud;return N},{mode:2});var luu;var QdA;_.pE("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var XY=function(){return _.k.apply(this,arguments)||this};
_.p(XY,_.k);_.V=XY.prototype;_.V.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.V.dataChanged_=function(){if(this.data.backgroundImage){var N=_.s4(this.data.backgroundImage.thumbnails,screen.width),t=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=t?"linear-gradient(180deg, "+t+"), url("+N+")":"url("+N+")";this.data.gtmId&&_.J7(this.data.gtmId,_.Ro("GL",""))}};
_.V.onYtServiceRequestError_=function(N){_.I8(this.hostElement,N.detail.error.message)};
_.V.getScrimLayerColorStops_=function(){var N,t,O=(N=this.data.unlimitedHeaderV2Data)==null?void 0:(t=N.unlimitedHeaderV2Data)==null?void 0:t.scrimLayerColors;if(!O)return null;var H=100/O.length;return O.map(function(A,Z){Z*=H;return _.TV(A)+" "+Z+"%"}).join(",")};
_.V.computeLogoWithPadding=function(N){var t,O,H;return(N=(t=N.unlimitedLogoImage)==null?void 0:(O=t.thumbnails)==null?void 0:(H=O[0])==null?void 0:H.height)&&N%31===0?!0:!1};
XY.prototype.onYtServiceRequestError_=XY.prototype.onYtServiceRequestError_;XY.prototype.dataChanged_=XY.prototype.dataChanged_;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.W([_.X({computed:"computeLogoWithPadding(data)"}),_.Q("design:type",Boolean)],XY.prototype,"logoWithPadding",void 0);
_.W([_.X(),_.Q("design:type",Object)],XY.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XY.prototype,"dataChanged_",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],XY.prototype,"onYtServiceRequestError_",null);_.W([_.wz({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],XY);
_.n(XY,"yt-unlimited-page-header-renderer",function(){if(QdA===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;luu===void 0&&(luu=document.createElement("template"));var H=luu;O.call(t,H.content.cloneNode(!0),N.content.firstChild);QdA=N}N=QdA;return N},{mode:2});var mms;var EwN;_.pE("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var xh=function(){return _.k.apply(this,arguments)||this};
_.p(xh,_.k);xh.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],xh.prototype,"data",void 0);_.W([_.wz({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],xh);
_.n(xh,"yt-unlimited-user-notification-renderer",function(){if(EwN===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;mms===void 0&&(mms=document.createElement("template"));var H=mms;O.call(t,H.content.cloneNode(!0),N.content.firstChild);EwN=N}N=EwN;return N},{mode:2});
}catch(e){_._DumpException(e)}
try{
var q61,nq5,rnx,lrr,QHf,Grz;_.ia=function(N){var t=N.clientMessageId;var O=N.playerOffsetMs;var H=N.pageContext;N=N.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:t},!!O&&{playerOffsetMs:O},!!H&&{pageContext:H},!!N&&{userInputText:N})}};
_.krm=function(N,t,O){t=t===void 0?5:t;if(t!==0){var H=typeof N==="function"?N():document.querySelector(N);H?(O==null?0:O.enableSmartFocus)?_.mHp(H):H.focus():setTimeout(function(){_.krm(N,t-1,O)},500)}};
q61=function(N){return String.raw.apply(String,[{raw:N}].concat(_.W6(_.E1.apply(1,arguments).map(function(t){return t instanceof Array?t.join(""):t}))))};
nq5=function(N){var t=_.E1.apply(1,arguments),O=t.length;if(!Array.isArray(N)||!Array.isArray(N.raw)||N.length!==N.raw.length||!_.EwS&&N===N.raw||!(_.EwS&&!_.GNB||_.Pl(N))||O+1!==N.length)throw new TypeError("$");return new fr1(Object.freeze({strings:Object.freeze(N),args:Object.freeze(t)}))};
_.WNJ=function(N){return{continuationCommand:{token:N,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
rnx=function(){return _.E1.apply(0,arguments).flat().filter(function(N){return N}).join(";")};
lrr=function(){return nq5(Ir5,rnx.apply(null,_.W6(_.E1.apply(0,arguments))))};
QHf=function(N,t){if(_.h("web_enable_chat_autoscroll_to_user_turn")&&N&&t)return N-4+"px"};
_.mf5=function(N,t){return _.CM(N.entities,"youchatPendingResponseEntity",t)};
_.Eqf=function(N){return function(t){_.E6(_.uF("youchatPendingResponseEntity",N,{entityKey:N,isPendingResponse:t}))}};
Grz=function(N){N==null||N.addEventListener("DOMLoaded",function(){N.goToAndPlay(N.totalFrames-48,!0)})};
_.du=function(N){this.__isSoyCss=!0;this.css=q61.apply(null,[N.strings].concat(_.W6(N.args)))};
_.du.prototype.toString=function(){return this.css};
var fr1=function(){_.du.apply(this,arguments)};
_.p(fr1,_.du);var Ir5=_.mp(["",""]);_.Rh5=_.q(function(N){var t=_.RH(N,{numberOfChips:5}).numberOfChips;return _.d("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.d(_.nL,{each:function(){return Array(t==null?void 0:t())}},function(){return _.d("div",{class:"ytGhostChipShelfChip"})}))},"Xi");var vqn=_.q(function(N){var t=void 0,O=function(){return N.data()},H=function(){return!!_.be(_.hq(O())).optionColor},A=_.D(_.b$(-1,void 0,"WFh1pc")),Z=A.next().value,U=A.next().value,C=function(u){return Z()===u},F=function(u){return O().correctAnswerIndex===u},g=function(){return Z()!==-1};
A=_.D(_.b$("",void 0,"Vi7Gfe"));var B=A.next().value,c=A.next().value;return _.d("yoututor-quiz-view-model",{class:_.V7("learningQuizComponentHost","learningYoututorQuizHost",N.className),style:_.FM({background:function(){return _.be(_.hq(O())).backgroundColor}})},_.d("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},B),_.d("div",{class:"learningQuizComponentQuizContainer"},_.d("div",{class:"learningQuizComponentQuiz"},_.d("div",{class:"learningQuizComponentQuizContent"},_.d(_.y,{cond:function(){return!!O().aiGeneratedQuizLabel},
then:function(){return _.d("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.d(_.cu,{text:function(){return O().aiGeneratedQuizLabel}}))}}),_.d("div",{class:"learningQuizComponentQuizHeader"},_.d("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.d("div",{class:"learningYoututorQuizText",
style:_.FM({color:function(){return _.be(_.hq(O())).primaryTextColor}})},_.d(_.cu,{text:function(){return O().questionHeaderText}}))))),_.d("div",{role:"group",
class:_.V7("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.d(_.nL,{each:function(){return O().optionsData||[]}},function(u,S){var b={};
return _.d("button",{class:_.V7("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(b.learningQuizComponentQuizHover=function(){return!g()},b.learningQuizComponentQuizOptionWithCustomColor=H,b.learningYoututorQuizOptionSelectedCorrectOutline=function(){return g()&&F(S())},b.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return Z()!==O().correctAnswerIndex&&C(S())},b.learningQuizComponentQuizIncorrectShake=function(){return Z()!==
O().correctAnswerIndex&&C(S())},b)),
"on:click":_.Ui(function(){if(g())return!1;U(S());c(F(S())?O().correctAnswerAriaLabel||"":O().incorrectAnswerAriaLabel||"");return!1}),
style:_.FM({background:"transparent"}),"aria-description":function(){return g()?F(S())?O().correctAnswerAriaLabel:O().incorrectAnswerAriaLabel:""},
"aria-disabled":g,el:_.E4(function(z){_.pi(271905,z,t,function(w){t=w})}),
"client-ve-type":271905},_.d("div",{class:"learningQuizComponentQuizOptionContainer"},_.d(_.cu,{text:u.optionText}),_.d(_.y,{cond:function(){var z=S();return g()&&(C(z)||F(z))},
then:function(){var z={};return _.d(_.dq,{className:_.V7("learningYoututorQuizOptionIcon",(z.learningQuizComponentQuizPulse=function(){return Z()===O().correctAnswerIndex&&F(S())},z)),
size:24,icon:function(){return F(S())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.d(_.y,{cond:g,
then:function(){return _.d("div",{class:"learningYoututorQuizExplanationContainer"},_.d("div",{class:"learningYoututorQuizExplanationText"},_.d(_.cu,{text:function(){return O().explanationHeaderText}})),_.d(_.cu,{text:function(){return O().optionsData[Z()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Yi");
vqn.idomCompat=!0;var Jn5=_.q(function(N){var t=N.thumbsUp,O=N.thumbsDown,H=N.rightAlignThumbs;N=_.D(_.b$(!1,void 0,"OxPsH"));var A=N.next().value,Z=N.next().value;N=_.D(_.b$(!1,void 0,"V5vWne"));var U=N.next().value,C=N.next().value;N={};return _.d("div",{class:_.V7("ytwThumbsUpDownThumbs",(N.ytwThumbsUpDownRightAlign=function(){return H==null?void 0:H()},N))},_.d(_.N3,{data:t,
onToggle:function(F){Z(F);U()&&C(!1)},
buttonShapeOverrides:function(){return{toggled:A()}}}),_.d(_.N3,{data:O,
onToggle:function(F){C(F);A()&&Z(!1)},
buttonShapeOverrides:function(){return{toggled:U()}}}))},"Zi");
Jn5.idomCompat=!0;var sHf=_.q(function(N){var t=function(){return N.data().pendingStateEntityKey||""},O=_.cz(_.mf5,t),H=function(){var C;
if(!(C=N.disabled())){var F;C=!((F=O())==null||!F.isPendingResponse)}return C},A=_.D(_.b$(lrr(""),void 0,"Q6q6y")),Z=A.next().value,U=A.next().value;
_.lf(function(){requestAnimationFrame(function(){var C=N.data().onShowAnimationMs||0;C=C>0?lrr("--chip-animation-duration: "+C+"ms;"):lrr("");U(C)})});
return _.d("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:Z},_.d(_.nL,{each:function(){return N.data().chipData||[]},
keyBy:"REFERENCE"},function(C){return _.d(oqz,{data:C,disabled:H,pendingStateKey:t,onError:N.onError})}))},"aj"),oqz=_.q(function(N){var t=_.yM("button"),O=_.D(_.b$(!0,void 0,"baSFEf")),H=O.next().value,A=O.next().value,Z=function(){return N.data().text.content},U=function(){return N.data().transparentWhenLoading},C=_.cH(_.Wz.currentPageSubTypeSelector),F=function(){var B;
return(B=_.cY().resolve(_.BY(_.VY)))==null?void 0:_.Vu5(B,C())},g=_.Ui(function(B){var c,u,S,b,z,w,P,x;
return _.K(function(l){switch(l.nextAddress){case 1:B.stopPropagation();if(N.disabled())return l.return();u=String(Math.floor(((c=_.FF())==null?void 0:c.getCurrentTime())||0)*1E3);S="youchat-"+Date.now();b=function(){_.eF(N.data().onClick||{});var I=_.WNJ(N.data().continuation),r=_.ia({clientMessageId:S,playerOffsetMs:u,pageContext:F()});return new Promise(function(E,J){_.eF(I,{form:{formData:r},commandController:{onSuccess:function(CN,B4){E(B4)},
onServerError:function(CN,B4){J(B4.error)}}})})};
z=_.Eqf(N.pendingStateKey());z(!0);_.krm("#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");A(!1);_.Mo(l,2);return l.yield(b(),4);case 4:_.Do(l,3);break;case 2:w=_.ax(l),(x=(P=N).onError)==null||x.call(P,w);case 3:z(!1),_.Ty(l)}})});
return _.d(_.y,{cond:H,then:function(){return _.d("div",{class:"ytwYouChatChipsDataChipWrapper"},_.d("button",{el:t,class:"ytwYouChatChipsDataChip","data-disabled":N.disabled,"data-transparent-loading":U,"on:click":g,tabindex:0},Z))}})},"bj");var NFJ=_.q(function(N){var t=N.data;var O=N.initiallyExpanded;var H=function(){var g;return(g=t().conversationResourceData)==null?void 0:g.learningGuideData};
N=_.D(_.Gb(function(){var g;return(g=O==null?void 0:O())!=null?g:!1}));
var A=N.next().value,Z=N.next().value,U=function(){Z(!0)},C=_.aa(function(){var g,B;
return(B=(g=H())==null?void 0:g.sections)!=null?B:[]},void 0,"QxyRyf"),F=_.aa(function(){return C().length>4},void 0,"MEbwoe");
N=_.aa(function(){var g;return!A()&&F()&&(g=H())!=null&&g.expandButton?C().slice(0,4):C()},void 0,"hIE70b");
return _.d("yt-conversation-resource-view-model",{class:_.V7("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.d(_.iF,{data:N},{expandableMetadataViewModel:_.KDz}),_.d(_.y,{cond:function(){return F()&&!A()},
then:function(){return _.d("div",{id:"showMoreButton"},_.d(_.iF,{data:function(){var g;return(g=H())==null?void 0:g.expandButton}},{buttonViewModel:function(g){return _.d(_.Pu,{data:g.data,
onClick:U})}}))}}))},"cj");_.tF1=_.q(function(N){var t=function(){var x;return(x=N.data().text)==null?void 0:x.content},O=function(){var x,l;
return(x=N.data().webData)==null?void 0:(l=x.textResult)==null?void 0:l.content},H=_.cY().resolve(_.I_),A=_.dZ(),Z=function(){return N.data().chatResponseStyle},U=function(){return!N.data().transparentBackground},C=function(){return N.data().rightAlignThumbs},F=function(){return N.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||N.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},g=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:F()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:N.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},B=function(){var x;
return N.data().webData||((x=N.data().text)==null?void 0:x.content)||N.data().videoResultsData||N.data().conversationResourceViewModel||N.data().quiz||N.data().yoututorQuiz||N.data().richContent},c=function(){return!!N.data().sectionHeader||B()},u=function(){var x;
return(x=N.data().videoResultsData)==null?void 0:x.videoShelf},S=function(){var x;
return(x=N.data().webData)==null?void 0:x.sourcesShelf},b=function(){return Z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||Z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:N.data().thumbsDownViewModel&&N.data().thumbsUpViewModel},z=function(){return _.M(N.data().thumbsUpViewModel,_.iA)},w=function(){return _.M(N.data().thumbsDownViewModel,_.iA)};
_.lf(function(){requestAnimationFrame(function(){var x;(x=N.shouldAnimateIcon)!=null&&x.call(N)&&Grz(A.lottieEl)})});
var P={};return _.d("you-chat-item-view-model",{class:_.V7("ytwYouChatItemViewModelYouChatItemViewModel",(P.ytwYouChatItemViewModelColumnLayout=function(){return F()},P)),
style:_.FM({"min-height":function(){var x,l;return QHf((x=N.containerHeight)==null?void 0:x.call(N),(l=N.isLastItem)==null?void 0:l.call(N))}}),
"data-target-id":function(){return N.data().id||""}},_.d(_.y,{cond:function(){return N.data().removeIcon?!1:c()},
then:function(){var x={};return _.d("div",{"aria-hidden":"true"},_.d(_.rd,{className:_.V7("ytwYouChatItemViewModelIcon",(x.ytwYouChatItemViewModelRtl=H==="rtl",x.ytwYouChatItemViewModelHidden=function(){return!(N.data().hideIcon||Z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||Z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:c())},x)),
animationName:"YOUCHAT_ICON",data:g,animationRef:A}))}}),_.d(_.y,{cond:c,
then:function(){var x={};return _.d("div",{class:_.V7("ytwYouChatItemViewModelHost",(x.ytwYouChatItemViewModelHostNoPadding=function(){return!!N.data().sectionHeader&&!B()},x.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return Z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return Z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return Z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
x.ytwYouChatItemViewModelGradientBackground=U,x.ytwYouChatItemViewModelHostAlignStart=function(){return!F()},x.ytwYouChatItemViewModelHostDefaultFlex=function(){return!F()},x)),
role:"alert"},_.d(_.y,{cond:t,then:function(l){return _.d(_.h1,{text:l,wrapCodeBlocks:!0})}}),_.d(_.iF,{data:function(){return N.data().sectionHeader}},{sectionHeaderViewModel:function(l){var I={};
return _.d(_.GX,{data:l.data,className:_.V7("ytwYouChatItemViewModelSectionHeader",(I.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!N.data().sectionHeader&&!B()},I)),
forceSmallLayout:!0})}}),_.d(_.y,{cond:O,
then:function(l){return _.d(_.h1,{text:l,wrapCodeBlocks:!0})}}),_.d(_.y,{cond:u,
then:function(){return _.d("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.d(_.iF,{data:function(){var l;return(l=N.data().videoResultsData)==null?void 0:l.videoShelf}},{horizontalShelfViewModel:function(l){return _.d(_.uY,{data:l.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.d(_.y,{cond:S,
then:function(){return _.d("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.d(_.iF,{data:function(){var l;return(l=N.data().webData)==null?void 0:l.sourcesShelf}},{horizontalShelfViewModel:function(l){return _.d(_.uY,{data:l.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.d(_.iF,{data:function(){return N.data().conversationResourceViewModel}},{conversationResourceViewModel:NFJ}),_.d(_.iF,{data:function(){return N.data().quiz}},{learningJourneyQuizViewModel:_.l$E}),_.d(_.iF,{data:function(){return N.data().yoututorQuiz}},{yoututorQuizViewModel:vqn}),_.d(_.iF,{data:function(){return N.data().richContent}},{cardViewModel:_.njz,
linearLayoutViewModel:_.jw}),_.d(_.y,{cond:b,then:function(){return _.d(Jn5,{thumbsUp:z,thumbsDown:w,rightAlignThumbs:C})}}))}}),_.d(_.y,{cond:function(){return N.data().chipsData},
then:function(x){return _.d(sHf,{data:x,disabled:N.pending,onError:N.onError})}}))},"ej");
_.tF1.idomCompat={callbacks:{onError:!0,onSend:!0}};_.OC5=_.q(function(N){var t=function(){var U;return((U=N.data)==null?void 0:U.call(N).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},O=_.dZ(),H=_.cY().resolve(_.I_);
_.lf(function(){requestAnimationFrame(function(){var U;(U=O.lottieEl)==null||U.addEventListener("DOMLoaded",function(){var C;(C=N.onLottieLoaded)==null||C.call(N)})})});
var A=function(){var U;return(U=N.data)==null?void 0:U.call(N).loadingAnimationA11yLabel},Z={};
return _.d("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var U;return((U=N.data)==null?void 0:U.call(N).targetId)||""},
"aria-label":function(){return A()||""},
role:function(){return A()?"progressbar":void 0},
style:_.FM({"min-height":function(){var U,C;return QHf((U=N.containerHeight)==null?void 0:U.call(N),(C=N.isLastItem)==null?void 0:C.call(N))}})},_.d(_.rd,{"aria-hidden":"true",
className:_.V7((Z.ytChatLoadingViewModelRtl=H==="rtl",Z)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:t()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||t()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:t()}}},
animationRef:O}))},"gj");_.HCr=_.q(function(N){var t=function(){return N.data().choiceSelectedText},O=function(){return N.data().hasGradientBackground},H={};
return _.d("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.FM({"min-height":function(){var A,Z;return QHf((A=N.containerHeight)==null?void 0:A.call(N),(Z=N.isLastItem)==null?void 0:Z.call(N))}}),
"data-target-id":function(){var A;return(A=N.data().itemTargetId)!=null?A:""}},_.d(_.y,{cond:t,
then:function(){return _.d("div",{class:"ytYouChatUserTurnChoiceSelected"},_.d(_.cu,{text:t}))}}),_.d("div",{class:_.V7("ytYouChatUserTurnUserMessage",(H.ytYouChatUserTurnGradientContainer=O,H.ytYouChatUserTurnDefaultContainer=function(){return!O()},H))},function(){return N.data().text}))},"hj");
}catch(e){_._DumpException(e)}
try{
var btA,pom,LPl;btA=function(N){return _.h("kevlar_watch_cinematics_invisible")||N.fullscreen&&_.h("kevlar_watch_cinematics_invisible_in_fullscreen")||N.theater&&!N.fullscreen&&_.h("kevlar_watch_cinematics_invisible_in_theater")};
pom=function(){var N=document.createElement("canvas"),t=N.getContext("2d");if(!t)throw Error("To");_.ms(N,{position:"absolute",width:"100%",height:"100%"});return{element:N,context:t}};
LPl=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.h("kevlar_watch_cinematics_css_blur")};
_.z38=function(N,t,O){return Math.abs(N-t)<=(O||1E-6)};
_.YHm=function(N,t){return N==t?!0:N&&t?N.width==t.width&&N.height==t.height:!1};_.ayl=new _.Fp("notificationActionRenderer");var TpN=function(N){var t=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.CT;this.element.addEventListener("load",function(){t.loaded=!0;t.resolver.resolve(t.element)});
this.element.addEventListener("error",function(){t.failed=!0});
this.element.src=N};var woD=function(N,t){this.image=N;this.frame=t};
woD.prototype.drawToCanvas=function(N,t){var O=this.frame.width/this.frame.columns,H=this.frame.height/this.frame.rows,A=t.offsetX,Z=t.offsetY;btA(t)?(N.fillStyle=t.fullscreen?"#000":"#0f0f0f",N.fillRect(A,Z,(t==null?void 0:t.width)||O,(t==null?void 0:t.height)||H)):N.drawImage(this.image,this.frame.column*O,this.frame.row*H,O,H,A,Z,(t==null?void 0:t.width)||O,(t==null?void 0:t.height)||H)};
var e3D=function(N){this.color=N};
e3D.prototype.drawToCanvas=function(N,t){var O=t.offsetX,H=t.offsetY,A=t.width,Z=t.height;N.fillStyle=btA(t)?t.fullscreen?"#000":"#0f0f0f":this.color;N.fillRect(O,H,A,Z)};var c3=function(N,t){_.cQ.call(this);this.playerApi=t;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.aN(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();P$d(this,N);XoN(this);this.update()};
_.p(c3,_.cQ);c3.prototype.addEventListeners=function(){var N=this,t=function(){N.update()},O=function(A){N.paused||(A.type==="newdata"&&(N.mosaics.clear(),xYN(N),$y(N)),XoN(N),N.update())},H=function(){N.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",t);this.playerApi.addEventListener("onVideoDataChange",O);this.playerApi.addEventListener("onStateChange",H);this.addOnDisposeCallback(function(){N.playerApi.removeEventListener("onVideoProgress",t);N.playerApi.removeEventListener("onVideoDataChange",O);N.playerApi.removeEventListener("onStateChange",H)})};
var P$d=function(N,t){N.cinematicContainerRenderer!==t&&(N.cinematicContainerRenderer=t,xYN(N),$y(N),N.colorStoreUpdateJobId=_.GB.addLowPriorityJob(function(){var O;if((O=N.cinematicContainerRenderer.colorStore)!=null&&O.sampledColors){O=Infinity;for(var H=_.D(N.cinematicContainerRenderer.colorStore.sampledColors),A=H.next();!A.done;A=H.next()){A=A.value;var Z=Number(A.key);Z!==0&&Z<O&&(O=Z);Z=_.TV(A.value);N.colorStore.set(A.key,Z)}N.colorStoreTimeInterval=O}}))},xYN=function(N){N.colorStoreUpdateJobId&&
(_.GB.cancelJob(N.colorStoreUpdateJobId),N.colorStoreUpdateJobId=void 0);
N.colorStore.clear();N.currentStoryboardColor=void 0},kgN=function(N,t){var O;
return(O=N.getStoryboardFrame(t))==null?void 0:O.url};
c3.prototype.onPlayerStateChange=function(){this.update()};
c3.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var XoN=function(N){var t=N.getStoryboardFrame(0);t&&(t=new _.aN(t.width/t.columns,t.height/t.rows),_.YHm(N.currentStoryboardSize,t)||(N.currentStoryboardSize=t,N.publish("STORYBOARD_SIZE_CHANGED",N.currentStoryboardSize)))},qHu=function(N,t){N.currentStoryboardIndex=t;
N.pendingStoryboardIndex=NaN;t=N.getStoryboardFrame(N.currentStoryboardIndex);N.currentStoryboard=new woD(N.mosaics.get(t.url).element,t);N.publish("STORYBOARD_CHANGED",N.currentStoryboard);N.lastUpdateTime=(0,_.jg)()};
c3.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var $y=function(N){N.currentStoryboardIndex=NaN;N.pendingStoryboardIndex=NaN;N.currentStoryboard&&(N.currentStoryboard=void 0,N.publish("STORYBOARD_CHANGED",void 0));N.lastUpdateTime=NaN};
c3.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)$y(this);else{var N=this.playerApi.getPlayerState(1);if(N===-1||N===5||N===0)$y(this);else if(isNaN(this.lastUpdateTime)||!((0,_.jg)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(N=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){N=""+Math.round(N*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var t=this.colorStore.get(N);t?t!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=t,this.currentStoryboard=new e3D(t),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.jg)()):(_.J_(new _.fF("Could not find color for timestamp: "+N,this.cinematicContainerRenderer)),$y(this))}else $y(this);else fys(this,N)}};
var fys=function(N,t){var O=N.getStoryboardFrameIndex(t);if(O!==N.currentStoryboardIndex&&O!==N.pendingStoryboardIndex){t=kgN(N,O);var H=N.mosaics.get(t);H?H.loaded&&qHu(N,O):(N.pendingStoryboardIndex=O,O=new TpN(t),N.mosaics.set(t,O),O.resolver.promise.then(function(){if(!N.isDisposed()&&!N.paused&&!isNaN(N.pendingStoryboardIndex)){var A=kgN(N,N.pendingStoryboardIndex);if(A){var Z;(Z=N.mosaics.get(A))!=null&&Z.loaded&&qHu(N,N.pendingStoryboardIndex)}else $y(N)}}))}};
c3.prototype.getStoryboardFrameIndex=function(N){var t=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(N,t)};
c3.prototype.getStoryboardFrame=function(N){var t=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,O,H;return((H=(O=this.playerApi).getStoryboardFrame)==null?void 0:H.call(O,N,t))||null};
c3.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var ix=function(N,t,O,H){H=H===void 0?!1:H;_.k1.call(this);this.cinematicContainerRenderer=t;this.playerApi=O;this.theater=this.fullscreen=!1;var A;this.ambientLightThemeEnabled=!H&&!!(t==null?0:(A=t.config)==null?0:A.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=H)&&!0;this.container=document.createElement("div");N.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);nM1(this);this.backCanvas=
pom();this.frontCanvas=pom();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new c3(t,this.playerApi);_.L1(this,this.storyboardManager);this.addEventListeners();WPd(this)?rJN(this,100+j2(this)*3*2,100+j2(this)*3*2):Iy1(this);lyw(this,this.storyboardManager.currentStoryboard)};
_.p(ix,_.k1);
var nM1=function(N){var t=N.playerApi.getVideoAspectRatio();_.ms(N.container,{"aspect-ratio":""+t,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var O;var H;if((N.fullscreen||N.theater)&&((O=N.cinematicContainerRenderer.config)==null?0:(H=O.watchFullscreenConfig)==null?0:H.colorSourceWidthMultiplier))O=N.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var A;O=(A=
N.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?A:N.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var Z,U;if((N.fullscreen||N.theater)&&((Z=N.cinematicContainerRenderer.config)==null?0:(U=Z.watchFullscreenConfig)==null?0:U.colorSourceHeightMultiplier))A=N.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var C;A=(C=N.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?C:N.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.ms(N.innerContainer,
{"aspect-ratio":""+t,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+O+", "+A+")"});LPl()&&_.ms(N.innerContainer,"filter","blur("+_.uP("cinematic_watch_css_filter_blur_strength",40)+"px)")};
ix.prototype.setFullscreen=function(N,t){this.fullscreen=N;this.theater=!!t;nM1(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),N=this.storyboardManager.currentStoryboard,Qa9(this),N&&mY1(this,N)};
ix.prototype.addEventListeners=function(){var N=this,t=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(A){lyw(N,A)}),O=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Iy1(N)});
this.addOnDisposeCallback(function(){N.storyboardManager.unsubscribeByKey(t);N.storyboardManager.unsubscribeByKey(O)});
var H=function(){nM1(N)};
this.playerApi.addEventListener("onVideoDataChange",H);this.addOnDisposeCallback(function(){N.playerApi.removeEventListener("onVideoDataChange",H)})};
var Iy1=function(N){if(!WPd(N)){var t=N.storyboardManager.currentStoryboardSize;isNaN(t.width)||isNaN(t.height)||rJN(N,Number(t.width)+j2(N)*3*2,Number(t.height)+j2(N)*3*2)}},rJN=function(N,t,O){N.backCanvas.element.width=t;
N.backCanvas.element.height=O;N.frontCanvas.element.width=t;N.frontCanvas.element.height=O},WPd=function(N){return N.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},lyw=function(N,t,O){O=O===void 0?!1:O;
var H=N.frontCanvas.element.getAnimations()[0];H?(H.pause(),N.backCanvas.context.globalAlpha=Number(getComputedStyle(N.frontCanvas.element).opacity),N.frontCanvas.element.style.opacity="0",H.finish()):N.backCanvas.context.globalAlpha=1;N.backCanvas.context.drawImage(N.frontCanvas.element,0,0,N.backCanvas.element.width,N.backCanvas.element.height);Qa9(N);t&&mY1(N,t);t=t?N.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.uP("cinematic_watch_fade_out_duration",500);H=_.uP("cinematic_watch_transition_frame_rate")/
1E3;var A={};H&&(A={easing:"steps("+Math.round(t*H)+")"});(O===void 0?0:O)||N.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:t,iterations:1},A));N.frontCanvas.element.style.opacity="1"},Qa9=function(N){var t=N.ambientLightThemeEnabled||N.ambientTheaterModeEnabled,O=N.ambientLightThemeEnabled||N.ambientFullscreenEnabled;
N.frontCanvas.context.fillStyle=N.theater&&t||N.fullscreen&&O?"#000":"#0f0f0f";LPl()||(N.frontCanvas.context.filter="blur(0)");N.frontCanvas.context.fillRect(0,0,N.frontCanvas.element.width,N.frontCanvas.element.height)},mY1=function(N,t){LPl()||(N.frontCanvas.context.filter="blur("+j2(N)+"px)");
N.frontCanvas.context.globalAlpha=N.fullscreen&&N.ambientFullscreenEnabled||N.theater&&N.ambientTheaterModeEnabled?_.uP("cinematic_watch_effect_letterbox_opacity",.4):_.uP("cinematic_watch_effect_opacity",.4);var O={offsetX:j2(N)*3,offsetY:j2(N)*3,theater:N.theater,fullscreen:N.fullscreen};WPd(N)&&(O.width=100,O.height=100);t.drawToCanvas(N.frontCanvas.context,O);N.frontCanvas.context.globalAlpha=1},j2=function(N){var t;
return(t=N.cinematicContainerRenderer.config.blurStrength)!=null?t:5};
ix.prototype.disposeInternal=function(){_.k1.prototype.disposeInternal.call(this);this.container.remove()};
ix.prototype.clear=function(){lyw(this,void 0,!0)};
ix.prototype.pause=function(){this.storyboardManager.pause()};var EMr;EMr=_.a5(function(){var N,t,O=!((t=(N=document.createElement("canvas")).getContext)==null||!t.call(N,"2d")),H;N=!((H=CSS)==null||!H.supports("filter: blur(0)"));H=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var A;return O&&N&&H&&!((A=CSS)==null||!A.supports("aspect-ratio: 1 / 1"))});
_.ux=function(N,t){_.cQ.call(this);this.container=N;this.playerApi=t;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Ggr(this);this.update()};
_.p(_.ux,_.cQ);_.R3N=function(N){var t=document.documentElement.hasAttribute("dark");N.isDarkModeEnabled=t;N.update()};
_.vMA=function(N,t){N.settingEnabled=t;N.update()};
_.ux.prototype.setFullscreen=function(N,t){this.fullscreen=N;this.theater=!!t;this.update()};
_.JJu=function(N,t){N.cinematicContainerRenderer=t;N.cinematicContainerRenderer&&(N.cinematicsVe=_.UM(N.isShorts()?227858:159022),_.r_(_.gF(),N.cinematicsVe),N.loggingClientData={watchCinematicContainerData:{presentationStyle:N.cinematicContainerRenderer.presentationStyle}});N.update()};
_.ux.prototype.isShorts=function(){var N,t;return((N=this.cinematicContainerRenderer)==null?void 0:(t=N.config)==null?void 0:t.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.ux.prototype.isAllowed=function(){var N;if(N=EMr()){var t,O,H;N=((O=this.cinematicContainerRenderer)==null?void 0:O.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((H=this.cinematicContainerRenderer)==null||!H.colorStore)||((t=this.cinematicContainerRenderer)==null?void 0:t.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(N)if(_.h("web_cinematics_pausing")){var A,Z;N=this.isDarkModeEnabled||!!((A=this.cinematicContainerRenderer)==
null?0:(Z=A.config)==null?0:Z.enableInLightTheme)}else{var U,C;A=!!((U=this.cinematicContainerRenderer)==null?0:(C=U.config)==null?0:C.enableInLightTheme)&&(_.Ro("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);N=this.isDarkModeEnabled||A}if(U=N){var F,g;U=!((g=(F=this.prefersReducedMotionQuery)==null?void 0:F.matches)!=null&&g)}return U};
_.oMV=function(N){(N=N.currentCinematicEffect)!=null&&(N=N.storyboardManager,N.paused=!1,XoN(N),N.update())};
_.ux.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Ggr=function(N){if(!_.h("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion: reduce)"),O=function(){N.update()};
t.addListener(O);N.addOnDisposeCallback(function(){t.removeListener(O)});
return t}};
_.ux.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var N=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new ix(this.container,N,this.playerApi,this.isDarkModeEnabled),_.L1(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var t=this.currentCinematicEffect;t.cinematicContainerRenderer!==
N&&(t.cinematicContainerRenderer=N,P$d(t.storyboardManager,N),nM1(t));N=_.d0();_.g0(0,194,!0);N.save();N=_.z8();this.cinematicsVe&&N&&_.Wc(N,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(N=_.z8(),this.cinematicsVe&&N&&_.r0(N,[this.cinematicsVe],!1,this.loggingClientData),_.F$(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.cv.Object.defineProperties(_.ux.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var JIN;var o1$;_.LO({_template:function(){if(o1$!==void 0)return o1$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=
N.content,O=t.insertBefore;JIN===void 0&&(JIN=document.createElement("template"));var H=JIN;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return o1$=N},
is:"tp-yt-iron-pages",behaviors:[_.JV,_.IH],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Gy8;_.RUR=function(){if(_.h("kevlar_home_skeleton")&&!Gy8){var N=document.querySelector("#home-page-skeleton");N&&(_.zT("hgcr"),_.wb(N),Gy8=!0)}};
Gy8=!1;_.ts=new _.Fp("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var GNV=function(N){return _.qsy(_.kHt(N&16777215))<.5},RrR=function(N,t,O){var H=O.minimumRowsOfVideosBetweenSections===void 0?1:O.minimumRowsOfVideosBetweenSections;
return N<(O.minimumRowsOfVideosAtStart===void 0?2:O.minimumRowsOfVideosAtStart)||t!==null&&N-t<=H?!1:!0},vwr=function(N,t){var O=0,H=0;
N=_.D(N);for(var A=N.next();!A.done;A=N.next()){var Z=A.value;if(Z.richItemRenderer)Z.richItemRenderer.rowIndex=H,Z.richItemRenderer.colIndex=O++,O===t&&(O=0,H++);else if(Z.richGroupRenderer&&Z.richGroupRenderer.numColumns!==void 0)Z.richGroupRenderer.rowIndex=H,Z.richGroupRenderer.colIndex=O,O+=Z.richGroupRenderer.numColumns,O===t&&(O=0,H++);else if(Z.richSectionRenderer){var U=A=void 0;if(Z=_.M((A=Z)==null?void 0:(U=A.richSectionRenderer)==null?void 0:U.content,_.z8X))Z.rowIndex=H++}}},JRu=function(N,
t){var O=t.contentElement;
t=t.rendererToTagNameMap;if(O&&t&&t.size!==0){for(var H=new Map,A=_.D(O.children),Z=A.next();!Z.done;Z=A.next()){Z=Z.value;var U=Z.tagName.toLowerCase(),C=H.get(U);C||(C=[],H.set(U,C));C.push(Z)}if(H.size!==0)for(A=Math.min(N.length,O.children.length),Z=new Map,U=0;U<A;U++){C=Object.keys(N[U])[0];C=t.get(C);if(!C)break;var F=Z.get(C);F===void 0&&(F=0,Z.set(C,F));var g=H.get(C);if(!g||F>=g.length)break;Z.set(C,F+1);C=g[F];F=O.children[U];F!==C&&(_.vV=!0,_.Jd.set(C,!0),O.insertBefore(C,F),_.Jd.delete(C),
_.vV=!1)}}},ow$=function(N,t,O,H,A,Z,U){H=H===void 0?{}:H;
if(!N||!N.length)return{orderedContent:[]};N=N.slice();var C=[],F=[];A=null;for(var g=0,B=function(l){F.sort(function(E,J){return J.skippedOnRow-E.skippedOnRow});
for(var I,r=(I=F.shift())==null?void 0:I.content;r;)!r.richSectionRenderer&&l||C.push(r),I=void 0,r=(I=F.shift())==null?void 0:I.content},c=void 0,u=void 0,S=new Set;N.length>0||F.length>0;){for(var b=[],z=t;z>0;){var w=void 0,P=void 0,x=(P=F[0]&&F[0].skippedOnRow<g?(w=F.shift())==null?void 0:w.content:void 0)!=null?P:N.shift();
if(!x)break;if(x.richItemRenderer)w=x.richItemRenderer.targetId,P=void 0,w&&((P=U)==null?0:P.has(w))&&(P=U.get(w),!c||P&&P.timestamp>c.timestamp)&&(c=P,u&&S.add(u),u=w),b.push(x),z--;else if(x.richGroupRenderer&&x.richGroupRenderer.numColumns!==void 0)x.richGroupRenderer.numColumns<=z?(b.push(x),z-=x.richGroupRenderer.numColumns):z===t&&x.richGroupRenderer.numColumns>t?(b.push({richGroupRenderer:Object.assign({},x.richGroupRenderer,{numColumns:t})}),z=0):F.push({content:x,skippedOnRow:g});else if(x.richSectionRenderer)if(RrR(g,
A,H)&&z===t){C.push(x);A=g;g++;continue}else F.push({content:x,skippedOnRow:g});else if(x.continuationItemRenderer){B(!0);C.push(x);z=0;break}if(z===0)C.push.apply(C,_.W6(b));else if(!O&&N.length===0){B(!1);C.push.apply(C,_.W6(b));z=0;break}}g++;c&&(C.push(c.content),g++);u=c=void 0}vwr(C,t);Z&&JRu(C,Z);return{orderedContent:C,pinnedContentNotShownTargetIds:S}},tVr=function(N,t){if(t){var O=_.v5().getState().entities.flowStateEntity,H=sdR(N),A=[t];
H&&H!==t&&A.push(H);var Z=!0,U;if(O&&N.flowStateEntityKey&&((U=O[N.flowStateEntityKey])==null?void 0:U.primaryButtonDisabled)!==void 0){var C;Z=!((C=O[N.flowStateEntityKey])==null||!C.primaryButtonDisabled)}NG1(N,H!=null?H:t,A,Z)}},HUR=function(N){return _.Jc(_.v5(),function(t){return t.entities.flowStateEntity},function(t,O){if(N.flowStateEntityKey){var H,A=t==null?void 0:(H=t[N.flowStateEntityKey])==null?void 0:H.currentStepId,Z;
O=O==null?void 0:(Z=O[N.flowStateEntityKey])==null?void 0:Z.currentStepId;Z=_.v5().getState().talkToRecs;if(A&&A!==O){var U;t=(t==null?void 0:(U=t[N.flowStateEntityKey])==null?void 0:U.stepIdStack)||Object.keys(Z.stepStates);U=!OUV(Z==null?void 0:Z.stepStates[A]);NG1(N,A,t,U)}}})},ZUD=function(N){return _.Jc(_.v5(),AY9,function(t){var O=sdR(N);
if(O){var H=Object.keys(t.stepStates);t=!OUV(t==null?void 0:t.stepStates[O]);NG1(N,O,H,t)}})},OUV=function(N){var t=Object.keys((N==null?void 0:N.selectionStates)||{}).reduce(function(Z,U){return Z||(N==null?void 0:N.selectionStates[U].isSelected)},!1),O,H,A=!!(N==null?0:(O=N.userQuery)==null?0:(H=O.userQuery)==null?0:H.trim());
return t||A},sdR=function(N){if(N.flowStateEntityKey){var t,O,H=(t=_.v5().getState().entities.flowStateEntity)==null?void 0:(O=t[N.flowStateEntityKey])==null?void 0:O.currentStepId;
if(H)return H}},NG1=function(N,t,O,H){_.v5().dispatch(_.uF("flowStateEntity",N.flowStateEntityKey,{currentStepId:t,
stepIdStack:O,key:N.flowStateEntityKey,primaryButtonDisabled:H}))},VVV;var Dow;_.LO({_template:function(){if(Dow!==void 0)return Dow;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
var t=N.content,O=t.insertBefore;VVV===void 0&&(VVV=document.createElement("template"));var H=VVV;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return Dow=N},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Uom=new _.Fp("flowRootRenderer");var Ck9=new _.Fp("chipsShelfViewModel");var Kn8=new _.Fp("responsiveContainerConfiguration");_.Fnl=new _.Fp("engagementPanelSectionListRenderer");var doN=function(){this.horizontal=!1},gCR=function(N,t){N.horizontal=t};
doN.prototype.position=function(N,t,O,H){H=H===void 0?1:H;N=this.delta(N)*H+t;H=Math.max(t,O);return N>=Math.min(t,O)&&N<=H?N:O};
doN.prototype.axis=function(N){N=this.direction(N);return N==="up"||N==="down"?"Y":"X"};var kh=function(N,t,O){t=t===void 0?_.m3():t;this.target=N;this.manager=t;this.touchAction=O;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
kh.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(_.W6(this.events)));for(var N=_.D(this.events),t=N.next();!t.done;t=N.next())this.listen(t.value)}};
kh.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.W6(this.events)));for(var N=_.D(this.events),t=N.next();!t.done;t=N.next())this.unlisten(t.value)}};
kh.prototype.listen=function(N){this.eventMap[N]&&this.target.addEventListener(N,this.eventMap[N])};
kh.prototype.unlisten=function(N){this.eventMap[N]&&this.target.removeEventListener(N,this.eventMap[N])};var qM=function(){doN.apply(this,arguments)};
_.p(qM,doN);qM.prototype.direction=function(N){var t=N.detail;N=t.deltaY;t=t.deltaX;return N&&!this.horizontal?N>0?"down":"up":t&&this.horizontal?t>0?"right":"left":"none"};
qM.prototype.distance=function(N){return Math.abs(this.delta(N))};
qM.prototype.delta=function(N){var t=this.direction(N),O=N.detail;N=O.deltaX;O=O.deltaY;return t==="up"||t==="down"?O||0:N||0};
qM.prototype.velocity=function(N){var t=this.direction(N),O=N.detail;N=O.velocityX;O=O.velocityY;return Math.abs(t==="up"||t==="down"?O||0:N||0)};_.fG=function(N,t,O,H,A,Z){A=A===void 0?new qM:A;Z=Z===void 0?_.m3():Z;kh.call(this,t,Z,H);var U=this;this.element=N;this.target=t;this.config=O;this.input=A;this.manager=Z;this.events=["panstart","panmove","panend"];this.onPanStart=function(){U.config.draggingClass&&U.element.classList.add(U.config.draggingClass);U.config.startAction&&U.config.startAction()};
this.onPanMove=function(C){var F=yYu(U,C);if(F){U.move(C,F);F.fade&&U.fade(C,F);var g=U.input.direction(C);F.moveAction&&F.moveAction(BGr(U,C,F),g)}};
this.onPanEnd=function(C){var F,g,B,c,u,S;return _.K(function(b){if(b.nextAddress==1){U.animationRequestId&&cancelAnimationFrame(U.animationRequestId);U.animationRequestId=void 0;F=yYu(U,C);if(!F)return b.return();g=F;B=g.triggerAction;c=g.fade;u=g.disableFinish;S=g.translateBack;var z=U.input.velocity(C),w=U.input.distance(C),P=U.threshold(F);return z>.3&&w>10||w>P?u?b.jumpTo(6):c?b.yield(cYm(U,C),6):b.yield($o8(U,C,F),6):S?b.yield(U.translateBack(C),3):b.jumpTo(3)}b.nextAddress!=3&&B&&B();U.config.draggingClass&&
U.element.classList.remove(U.config.draggingClass);U.reset();_.Ty(b)})};
N=Object.keys(O.triggers);this.directions=new Set(N);gCR(this.input,this.directions.has("right")||this.directions.has("left"))};
_.p(_.fG,kh);_.fG.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var yYu=function(N,t){t=N.input.direction(t);return N.config.triggers[t]};
_.fG.prototype.move=function(N,t){var O=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var H=O.input.axis(N),A=O.input.position(N,O.config.startPosition,t.endPosition,t.moveRatio||1);O.element.style.transform="translate"+H+"("+A+"px)";O.animationRequestId=void 0}))};
var BGr=function(N,t,O){var H=O.moveRatio||1;O=Math.abs(N.config.startPosition-O.endPosition);return Math.min(N.input.distance(t)*H,O)/O};
_.fG.prototype.fade=function(N,t){var O=t.endOpacity;N=BGr(this,N,t);N>0&&(this.element.style.opacity=""+(((O||0)-1)*N+1))};
_.fG.prototype.threshold=function(N){return N.threshold?N.threshold:Math.abs(N.endPosition-this.config.startPosition)/3};
var $o8=function(N,t,O){var H,A,Z,U,C,F,g;return _.K(function(B){if(B.nextAddress==1)return H=N.input.delta(t)+N.config.startPosition,A=N.input.axis(t),Z=O,U=Z.endPosition,C=Z.transitionEndPosition,g=(F=C)!=null?F:U,B.yield(N.element.animate([{transform:"translate"+A+"("+H+"px)"},{transform:"translate"+A+"("+g+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);N.element.style.transform="translate"+A+"("+g+"px)";_.Ty(B)})};
_.fG.prototype.translateBack=function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1){if(!t.element.style.transform)return A.return();O=t.input.axis(N);H=t.config.startPosition;return A.yield(t.element.animate([{transform:t.element.style.transform},{transform:"translate"+O+"("+H+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}t.element.style.transform="translate"+O+"("+H+"px)";_.Ty(A)})};
var cYm=function(N,t){var O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return O=N.input.delta(t)+N.config.startPosition,H=N.input.axis(t),A=O+70,Z=N.element.style.opacity===""?1:N.element.style.opacity,U.yield(N.element.animate([{transform:"translate"+H+"("+O+"px)",opacity:Z},{transform:"translate"+H+"("+A+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);N.element.style.transform="translate"+H+"("+A+"px)";N.element.style.opacity="0";_.Ty(U)})};var nG=function(){var N=_.$q.apply(this,arguments)||this;N._noAccessors=!0;N.scrollRate=3;N.autoScrollAnimationStart=0;N.autoScrollPaused=!1;N.autoScrollRafId=0;return N};
_.p(nG,_.$q);_.V=nG.prototype;_.V.created=function(){var N=this;this.boundAutoScrollHandler=function(t){N.autoScroll(t)}};
_.V.detached=function(){this.hostElement.removeEventListener("mouseout",_.Fb(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Fb(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Fb(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.V.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Fb(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Fb(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Fb(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Fb(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Fb(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Fb(this,this.endAutoScroll)),this.endAutoScroll())};
_.V.autoScroll=function(N){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=N);var t;if(t=!this.autoScrollPaused&&this.scrollTarget)t=this.scrollTarget,t=t.scrollHeight-t.scrollTop!==t.clientHeight;t&&(t=1E3/this.scrollRate,N-=this.autoScrollAnimationStart,N>t&&(this.scrollTarget.scrollTop+=Math.ceil(N/t),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.V.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.V.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
nG.prototype.autoScrollEnabledChanged=nG.prototype.autoScrollEnabledChanged;_.W([_.X(),_.Q("design:type",Object)],nG.prototype,"scrollRate",void 0);_.W([_.X(),_.Q("design:type",Object)],nG.prototype,"scrollTarget",void 0);_.W([_.X(),_.Q("design:type",Boolean)],nG.prototype,"autoScrollEnabled",void 0);_.W([_.gz("autoScrollEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nG.prototype,"autoScrollEnabledChanged",null);_.W([_.jn()],nG);_.jxA=[nG.prototype];var iU8;var W$=function(){var N=_.k.apply(this,arguments)||this;N.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};N.forceDarkTheme=!1;N.forceLightTheme=!1;N.dynamicTextHeight=94;N.hasOverflowButton=!1;N.isInfeedModernization=!1;return N};
_.p(W$,_.k);_.V=W$.prototype;_.V.computeUrlImg=function(N){if(N)return _.Ne(N.thumbnails)};
_.V.getLogoHeight=function(N){return this.logoWithPadding(N)?"31":"24"};
_.V.getLogoClassName=function(N){return this.logoWithPadding(N)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.V.logoWithPadding=function(N){var t,O;return(N=(t=N.thumbnails)==null?void 0:(O=t[0])==null?void 0:O.height)&&N%31===0?!0:!1};
_.V.sendImpressionEndpoints=function(N){N.impressionEndpoints&&_.tb(this.hostElement,N.impressionEndpoints)};
_.V.observeBasicPalette=function(){var N,t,O=(N=this.data)==null?void 0:(t=N.colorData)==null?void 0:t.basicColorPaletteData;O?_.Me(this.hostElement,O):_.Me(this.hostElement,{})};
_.V.observeDataChanged=function(){var N;this.dynamicTextHeight=((N=this.data)==null?0:N.supplementalText)?74:94;var t;this.hasSupplementalText=!((t=this.data)==null||!t.supplementalText);var O,H,A,Z;N=(O=this.data)==null?void 0:(H=O.actionButton)==null?void 0:(A=H.buttonRenderer)==null?void 0:(Z=A.colorData)==null?void 0:Z.basicColorPaletteData;var U,C,F;if(!((U=this.data)==null?0:(C=U.actionButton)==null?0:(F=C.buttonRenderer)==null?0:F.style)&&N){this.computeIsInfeedModernization(this.data)||(N.borderColor=
N.foregroundTitleColor);var g,B;this.set("data.actionButton.buttonRenderer",_.WW.unsafeClone((g=this.data)==null?void 0:(B=g.actionButton)==null?void 0:B.buttonRenderer))}};
_.V.observeDataForCounterfactual=function(){if(_.h("kevlar_banner_cf_extra_logging")){var N;((N=this.data)==null?0:N.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.V.computeSupplementalStyle=function(){var N;if((N=this.data)!=null&&N.supplementalText){var t,O,H;if((t=this.data)==null?0:(O=t.colorData)==null?0:(H=O.basicColorPaletteData)==null?0:H.foregroundActivatedColor)return N=_.aI(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+N+"; --yt-endpoint-hover-color:"+N+"; --yt-endpoint-visited-color:"+N+"; --yt-formatted-string-bold-font-weight:700;"}};
_.V.computeForcedDarkTheme=function(){var N,t,O,H=(N=this.data)==null?void 0:(t=N.actionButton)==null?void 0:(O=t.buttonRenderer)==null?void 0:O.style,A,Z,U;N=GNV(((A=this.data)==null?void 0:(Z=A.colorData)==null?void 0:(U=Z.basicColorPaletteData)==null?void 0:U.backgroundColor)||0);return H&&N};
_.V.computeForcedLightTheme=function(){var N,t,O,H=(N=this.data)==null?void 0:(t=N.actionButton)==null?void 0:(O=t.buttonRenderer)==null?void 0:O.style,A,Z,U;N=!GNV(((A=this.data)==null?void 0:(Z=A.colorData)==null?void 0:(U=Z.basicColorPaletteData)==null?void 0:U.backgroundColor)||0);return H&&N};
_.V.computeHasOverflowButton=function(N){return!!N.overflowButton};
_.V.computeHasTitle=function(N){return!!N.title};
_.V.computeTitleMaxFontSize=function(N){return this.computeHasOverflowButton(N)?28:64};
_.V.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.V.computeIsInfeedModernization=function(){var N,t,O,H,A=(N=this.data)==null?void 0:(t=N.actionButton)==null?void 0:(O=t.buttonRenderer)==null?void 0:(H=O.colorData)==null?void 0:H.basicColorPaletteData;return(A==null?void 0:A.backgroundColor)===452984831||(A==null?void 0:A.backgroundColor)===218103808};
W$.prototype.observeDataForCounterfactual=W$.prototype.observeDataForCounterfactual;W$.prototype.observeDataChanged=W$.prototype.observeDataChanged;W$.prototype.observeBasicPalette=W$.prototype.observeBasicPalette;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],W$.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],W$.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],W$.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],W$.prototype,"hasSupplementalText",void 0);_.W([_.X(),_.Q("design:type",Object)],W$.prototype,"dismissButtonOverrides",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Q("design:type",Boolean)],W$.prototype,"hasTitle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Q("design:type",Object)],W$.prototype,"forceDarkTheme",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Q("design:type",Object)],W$.prototype,"forceLightTheme",void 0);_.W([_.X(),_.Q("design:type",Object)],W$.prototype,"dynamicTextHeight",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Q("design:type",Object)],W$.prototype,"hasOverflowButton",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Q("design:type",Object)],W$.prototype,"isInfeedModernization",void 0);_.W([_.gz("data.colorData.basicColorPaletteData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W$.prototype,"observeBasicPalette",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W$.prototype,"observeDataChanged",null);_.W([_.gz("data.isVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W$.prototype,"observeDataForCounterfactual",null);_.W([_.en({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],W$);
_.n(W$,"ytd-banner-promo-renderer",function(){if(iU8!==void 0)return iU8;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden$="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return iU8=N},{mode:1});var u1D;var SGu;var hUm;var MVV=function(){return _.k.apply(this,arguments)||this};
_.p(MVV,_.k);_.W([_.X(),_.Q("design:type",Object)],MVV.prototype,"data",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],MVV.prototype,"ytRendererBehavior",void 0);_.W([_.en({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],MVV);
_.n(MVV,"ytd-hashtag-grid-tile-renderer",function(){if(hUm!==void 0)return hUm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return hUm=N},{mode:1});var rT=function(){return _.k.apply(this,arguments)||this};
_.p(rT,_.k);rT.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
rT.prototype.updateRichGridTrendingHashtagsVisibility=function(){var N,t;if(((N=this.data)==null||!N.isExpanded)&&(t=this.data)!=null&&t.tiles){N=this.data.tiles.length;t=N>this.richGridItemsPerRow?this.richGridItemsPerRow+1:N;var O=Math.ceil(N/t);this.fullyVisibleRows=N%t===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}};
rT.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
rT.prototype.updateRichGridTrendingHashtagsVisibility=rT.prototype.updateRichGridTrendingHashtagsVisibility;_.W([_.X(),_.Q("design:type",Object)],rT.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Number)],rT.prototype,"fullyVisibleRows",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],rT.prototype,"isShowMoreVisible",void 0);_.W([_.X({selector:_.Tv,value:0}),_.Q("design:type",Number)],rT.prototype,"richGridItemsPerRow",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],rT.prototype,"ytdReduxBehavior",void 0);_.W([_.gz("data","richGridItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rT.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.W([_.en({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],rT);
_.n(rT,"ytd-hashtag-grid-shelf-renderer",function(){if(SGu!==void 0)return SGu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return SGu=N},{mode:1});var bUs;var p6r;var Ih=function(){var N=_.k.apply(this,arguments)||this;N.visibleVideos=[];N.hiddenVideos=[];N.modern=_.h("web_modern_buttons");N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(Ih,_.k);_.V=Ih.prototype;_.V.attached=function(){var N=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",N);this.onDarkModeToggledAction(N)};
_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.V.dataChanged=function(){var N=this;this.requestElementsPerRow();var t,O;this.currentColorPalette=this.isDarkTheme?(t=this.data)==null?void 0:t.darkColorData:(O=this.data)==null?void 0:O.lightColorData;var H;if((H=this.currentColorPalette)==null?0:H.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.yB(this,function(){N.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.V.computeIsFirstFeedItem=function(N){return N};
_.V.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&this.set("isDarkTheme",N);this.data&&(this.currentColorPalette=N?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.V.getCurrentLogo=function(N,t){if(N)return t?N.darkLogoImage:N.lightLogoImage};
_.V.computeTitleStyle=function(N){var t;if((t=this.data)!=null&&t.title&&N&&N.textPrimary!==void 0)return"color:"+_.aI(N.textPrimary)+";"};
_.V.computeSubtitleStyle=function(N){var t;if((t=this.data)!=null&&t.subtitle&&N&&N.textSecondary!==void 0)return"color:"+_.aI(N.textSecondary)+";"};
_.V.computeDismissIconStyle=function(N){if(this.data&&this.data.dismissButton&&N&&N.textPrimary!==void 0)return"--yt-button-color:"+_.aI(N.textPrimary)+";"};
_.V.computeOverflowButtonStyle=function(N){if(this.data&&this.data.overflowButton&&N&&N.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.aI(N.textPrimary)+";--yt-spec-icon-active-other:"+_.aI(N.textPrimary)+";"};
_.V.computeBackgroundStyle=function(N){if(N&&this.data){var t="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var O=_.Ne((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);O&&(t+='background-image:url("'+O+'");')}N.backgroundColor!==void 0&&(t+="background-color:"+_.TV(N.backgroundColor)+";");return t}};
_.V.computeButton=function(){var N,t=Object.assign({},_.M((N=this.data)==null?void 0:N.showMoreButton,_.g_));if(this.modern&&t){t.style="STYLE_MONO_OUTLINE";var O;if(N=(O=this.currentColorPalette)==null?void 0:O.textPrimary)t.colorData={basicColorPaletteData:{foregroundTitleColor:N,borderColor:N}}}return t};
_.V.shouldShowBottomButton=function(N,t){return!(N==null?0:N.header)&&!(N==null||!N.primaryButton)&&t<3};
_.V.checkExpanded=function(N){this.isExpanded=N&&N.content?this.hiddenVideos.length===0:!0};
_.V.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.V.getLogoHeight=function(N){return this.logoWithPadding(N)?"26":"20"};
_.V.getLogoImageId=function(N){return this.logoWithPadding(N)?"logo-image-with-padding":"logo-image"};
_.V.computeHasSectionHeader=function(N){return!!N.header};
_.V.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var N;if((N=this.data.primaryButton)==null?0:N.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var t;((t=this.data.dismissButton)==null?0:t.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var O,H;((O=this.data)==null?0:(H=O.primaryButton)==null?0:H.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.V.setVisibleVideos=function(N){if(this.data&&this.data.content)if(this.data.content.length){var t=this.data.content.length;this.data.header?N?(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.slimItemsPerRow),t)):(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow),t)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(t,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow),t)):(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow-1),t))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.V.setHasMovieRenderer=function(){var N;if((N=this.data)!=null&&N.content){var t;this.hasMovieRenderer=!!_.M((t=this.data)==null?void 0:t.content[0],_.kPf)}else this.hasMovieRenderer=!1};
_.V.requestElementsPerRow=function(){_.or(this.hostElement,"yt-request-elements-per-row")};
_.V.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var N=_.D(this.hiddenMediaRenderers),t=N.next();!t.done;t=N.next())t.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(N=_.O6(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&N.focus()}};
_.V.updateTitleSpec=function(){var N;(N=this.data)!=null&&N.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.V.logoWithPadding=function(N){var t,O,H;return(N=(t=this.getCurrentLogo(N,this.isDarkTheme))==null?void 0:(O=t.thumbnails)==null?void 0:(H=O[0])==null?void 0:H.height)&&N%31===0?!0:!1};
_.V.onUpdateElementsPerRowAction=function(N,t,O){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N);O&&this.slimItemsPerRow!==O&&(this.slimItemsPerRow=O)};
Ih.prototype.slimItemsPerRowChanged=Ih.prototype.slimItemsPerRowChanged;Ih.prototype.elementsPerRowChanged=Ih.prototype.elementsPerRowChanged;Ih.prototype.dataChanged=Ih.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],Ih.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Ih.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Ih.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ih.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Ih.prototype,"currentColorPalette",void 0);_.W([_.X(),_.Q("design:type",Array)],Ih.prototype,"visibleVideos",void 0);_.W([_.X(),_.Q("design:type",Array)],Ih.prototype,"hiddenVideos",void 0);
_.W([_.X(),_.Q("design:type",Object)],Ih.prototype,"primaryButton",void 0);_.W([_.X({reflectToAttribute:!0,value:3}),_.Q("design:type",Number)],Ih.prototype,"elementsPerRow",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Ih.prototype,"isDarkTheme",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Ih.prototype,"isExpanded",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Ih.prototype,"largeTitle",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Ih.prototype,"hasMovieRenderer",void 0);_.W([_.X(),_.Q("design:type",Number)],Ih.prototype,"slimItemsPerRow",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Ih.prototype,"showLightVideoMetadata",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Ih.prototype,"showDarkVideoMetadata",void 0);_.W([_.X(),_.Q("design:type",Number)],Ih.prototype,"videoMetadataColor",void 0);
_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],Ih.prototype,"miniMode",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Q("design:type",Boolean)],Ih.prototype,"isFirstFeedItem",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Q("design:type",Boolean)],Ih.prototype,"hasSectionHeader",void 0);
_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],Ih.prototype,"roundedContainer",void 0);_.W([_.c2("#visible-video-container ytd-rich-grid-media"),_.Q("design:type",Array)],Ih.prototype,"visibleMediaRenderers",void 0);_.W([_.c2("#hidden-video-container ytd-rich-grid-media"),_.Q("design:type",Array)],Ih.prototype,"hiddenMediaRenderers",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ih.prototype,"modern",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ih.prototype,"dataChanged",null);_.W([_.gz("elementsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ih.prototype,"elementsPerRowChanged",null);_.W([_.gz("slimItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ih.prototype,"slimItemsPerRowChanged",null);
_.W([_.en({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Ih);
_.n(Ih,"ytd-brand-video-shelf-renderer",function(){if(p6r!==void 0)return p6r;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return p6r=N},{mode:1});var Lnm;var l4=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(l4,_.k);_.V=l4.prototype;_.V.attached=function(){var N=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",N);this.onDarkModeToggledAction(N)};
_.V.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.V.dataChanged=function(){this.requestElementsPerRow();var N,t;this.currentColorPalette=this.isDarkTheme?(N=this.data)==null?void 0:N.darkColorData:(t=this.data)==null?void 0:t.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.V.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.V.computeIsFirstFeedItem=function(N){return N};
_.V.onDarkModeToggledAction=function(N){N!==this.isDarkTheme&&this.set("isDarkTheme",N);this.data&&(this.currentColorPalette=N?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(N),this.updateButtonPalette())};
_.V.shouldShowThumbnailInMetadata=function(N){return N<=1};
_.V.computeVideoMetadataColor=function(){if(this.data){var N;if((N=this.currentColorPalette)==null?0:N.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.V.computeTitleStyle=function(N){var t;if((t=this.data)!=null&&t.title&&N&&N.textPrimary!==void 0)return"color:"+_.aI(N.textPrimary)+";"};
_.V.computeSubtitleStyle=function(N){var t;if((t=this.data)!=null&&t.subtitle&&N&&N.textSecondary!==void 0)return"color:"+_.aI(N.textSecondary)+";"};
_.V.computeOverflowButtonStyle=function(N){if(this.data&&this.data.overflowButton&&N.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.aI(N.textPrimary)+";--yt-spec-icon-active-other:"+_.aI(N.textPrimary)+";"};
_.V.computeBackgroundStyle=function(N){if(N&&this.data){var t="";N.backgroundColor!==void 0&&(t+="background-color:"+_.TV(N.backgroundColor)+";");return t}};
_.V.computeHasOverflowButton=function(N){return!!N.overflowButton};
_.V.updateButtonPalette=function(){if(this.data){var N;if((N=this.data.primaryButton)==null?0:N.buttonRenderer){var t;if((t=this.currentColorPalette)==null?0:t.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var O;((O=this.currentColorPalette)==null?0:O.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.V.requestElementsPerRow=function(){_.or(this.hostElement,"yt-request-elements-per-row")};
_.V.updateTitleSpec=function(){var N;(N=this.data)!=null&&N.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.V.onUpdateElementsPerRowAction=function(N){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N)};
l4.prototype.elementsPerRowChanged=l4.prototype.elementsPerRowChanged;l4.prototype.dataChanged=l4.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],l4.prototype,"ytdDismissibleItemBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],l4.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],l4.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],l4.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],l4.prototype,"currentColorPalette",void 0);_.W([_.X(),_.Q("design:type",Object)],l4.prototype,"primaryButton",void 0);
_.W([_.X({reflectToAttribute:!0,value:3}),_.Q("design:type",Number)],l4.prototype,"elementsPerRow",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],l4.prototype,"isDarkTheme",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],l4.prototype,"titleSize",void 0);_.W([_.X(),_.Q("design:type",Number)],l4.prototype,"videoMetadataColor",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],l4.prototype,"miniMode",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Q("design:type",Boolean)],l4.prototype,"isFirstFeedItem",void 0);_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],l4.prototype,"roundedContainer",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Q("design:type",Boolean)],l4.prototype,"hasOverflowButton",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],l4.prototype,"dataChanged",null);_.W([_.gz("elementsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],l4.prototype,"elementsPerRowChanged",null);_.W([_.en({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],l4);
_.n(l4,"ytd-brand-video-singleton-renderer",function(){if(Lnm!==void 0)return Lnm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Lnm=N},{mode:_.O4("kevlar_poly_si_batch_j070")?1:2});var zUV;var YGw=_.q(function(N){var t=N.data;return _.d(_.Qt,{data:function(){return t().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(t().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var O=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":O=88;break a;default:O=88}return O},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return t().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"dn"),TGV=_.q(function(N){var t=N.metadataRow;
var O=N.delimiter;return _.d(_.nL,{each:function(){return t().textParts||[]},
keyBy:"INDEX"},function(H,A){return _.d(_.BZ,null,_.d(_.cu,{text:H,noWrap:!0,userInput:!0}),_.d(ax$,{delimiter:O,max:function(){return t().textParts.length},
index:A}))})},"en"),ax$=_.q(function(N){var t=N.delimiter;
var O=N.max;var H=N.index;return _.d(_.y,{cond:function(){return(t==null?void 0:t())&&O()-1>H()},
then:function(){return _.d("span",null,t)}})},"fn"),w68=_.q(function(N){var t=N.data;
N={};return _.d("yt-profile-page-header-information-view-model",{class:_.V7("profilePageHeaderInformationViewModelHost",(N.profilePageHeaderInformationViewModelMobile=!1,N))},_.d(_.y,{cond:function(){return t().onTap},
then:function(){return _.d(_.YO,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.wF(t().onTap)}},_.d(_.iF,{data:function(){return t().thumbnail}},{profilePageHeaderThumbnailViewModel:YGw}))},
else:function(){return _.d("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.d(_.iF,{data:function(){return t().thumbnail}},{profilePageHeaderThumbnailViewModel:YGw}))}}),_.d("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.d(_.y,{cond:function(){return t().onTap},
then:function(){return _.d(_.iF,{data:function(){return t().title}},{profilePageHeaderTitleViewModel:function(O){var H=O.data;
return _.d(_.YO,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.wF(H().onTap)}},_.d(_.cu,{text:function(){return H().title}}))}})},
else:function(){return _.d(_.iF,{data:function(){return t().title}},{profilePageHeaderTitleViewModel:function(O){var H=O.data;
return _.d(_.cu,{text:function(){return H().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.d(_.iF,{data:function(){return t().metadata}},{profilePageHeaderMetadataViewModel:function(O){var H=O.data;
return _.d(_.y,{cond:function(){return H().metadataRows},
then:function(A){return _.d("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.d(_.nL,{each:A,keyBy:"INDEX"},function(Z,U){return _.d(_.BZ,null,_.d(TGV,{metadataRow:Z,delimiter:" \u2022 "}),_.d(ax$,{delimiter:" \u2022 ",max:function(){return A().length},
index:U}))}))}})}})))},"gn");
w68.idomCompat=!0;_.o_(w68,"yt-profile-page-header-information-view-model",{props:{data:_.$O}});var QW=function(){return _.k.apply(this,arguments)||this};
_.p(QW,_.k);QW.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],QW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],QW.prototype,"data",void 0);_.W([_.en({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],QW);
_.n(QW,"ytd-effect-pivot-header-view-model",function(){if(zUV!==void 0)return zUV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return zUV=
N},{mode:1});var eUs;var m9=function(){return _.k.apply(this,arguments)||this};
_.p(m9,_.k);m9.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],m9.prototype,"data",void 0);_.W([_.en({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],m9);
_.n(m9,"ytd-source-pivot-header-renderer",function(){if(eUs!==void 0)return eUs;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return eUs=N},{mode:1});_.o_(_.njz,"yt-card-view-model",{props:{data:_.$O,className:_.$O,isSelected:_.$O}});var AY9=_.nUp.talkToRecsStateSelector;_.o_(_.q(function(N){var t=function(){return _.M(N.data().flowRoot,Uom)};
_.Q8(function(){var O=t(),H=function(){},A=function(){};
if(O){var Z,U,C,F=((C=_.M((Z=t())==null?void 0:(U=Z.steps)==null?void 0:U[0],_.o$))==null?void 0:C.stepId)||"";tVr(O,F);H=HUR(O);A=ZUD(O)}_.Ia(function(){var g=t();g&&_.v5().dispatch(_.uF("flowStateEntity",g.flowStateEntityKey));H();H=function(){};
A();A=function(){};
_.E6(_.qlf())})});
return _.d("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.d(_.f_,{contentId:function(){return N.data().contentId}},function(){return _.d("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.d(_.y,{cond:t,
then:function(O){return _.d(_.ULr,{data:O})}}))}))},"hn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.$O}});_.o_(_.q(function(){return _.d("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.d("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.d("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.d(_.Rh5,null)),_.d(_.sAY,{data:{rows:1},isExploreHub:!0}))},"jn"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.o_(_.q(function(N){var t=N.data;var O=N.standardUnitMinWidth;N=_.D((0,_.HIZ)(t));var H=N.next().value,A=N.next().value,Z=function(){var C,F=(C=H())==null?void 0:C.contents;return F==null||F.length===0},U=function(){A(Object.assign({},H(),{contents:[]}))};
return _.d("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.E4(_.iU({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var C=_.M(t().chipsShelf,Ck9);if(C!=null&&C!=null&&C.autoselectChipOnVisible){var F,g,B=_.M(C==null?void 0:(F=C.contents)==null?void 0:F[(g=C.autoselectedChipIndex)!=null?g:0],_.j7);B&&B.tapCommand&&_.xJ(B.tapCommand)}}}))},_.d(_.f_,{contentId:function(){return t().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.d("div",null,_.d("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.d(_.iF,{data:function(){return t().header}},{sectionHeaderViewModel:function(C){return _.d(_.GX,{data:C.data,
disableHorizontalPadding:!0})}})),_.d("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.d(_.iF,{data:function(){return t().chipsShelf}},{chipsShelfViewModel:function(C){return _.d(_.GA,{data:C.data,
callback:U,selectionBehavior:1})}})),_.d("div",null,_.d(_.y,{cond:Z,
then:function(){return _.d("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.d(_.sAY,{data:{rows:1},isExploreHub:!0}))}}),_.d(_.iF,{data:function(){var C;
return(C=H())==null?void 0:C.contents}},{richShelfRenderer:function(C){return _.d(_.yzS,{data:C.data,
isInnerShelf:!0,standardUnitMinWidth:O})}})))}))},"kn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.$O,
standardUnitMinWidth:_.$O}});var EL=function(){return _.k.apply(this,arguments)||this};
_.p(EL,_.k);
EL.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
EL.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.W([_.Y(_.Ue),_.Q("design:type",Object)],EL.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],EL.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],EL.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Number)],EL.prototype,"standardUnitMinWidth",void 0);_.W([_.en({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],EL);
_.n(EL,"ytd-rich-section-renderer",function(){if(bUs!==void 0)return bUs;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return bUs=N},{mode:_.O4("kevlar_poly_si_batch_j029")?
1:2});_.o_(_.iJ1,"yt-profile-identity-info-view-model",{props:{data:_.$O,hideDivider:_.$O,isChannelInfoCard:_.$O}});_.o_(_.dzm,"yt-page-header-view-model",{props:{data:_.$O,noPadding:_.$O,enableBanner:_.$O,cinematicContainerTopbarOffset:_.$O,allowCinematicContainerOverflow:_.$O,displayAsSidebar:_.$O,displayAsPanel:_.$O,alwaysUseMediumTextDescription:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=function(){var A;return(A=t().numColumns)!=null?A:2},H=function(){return O()>1?3:2};
N={};return _.d("ytd-rich-grid-group",{class:_.V7("ytdRichGridGroupHost",(N.ytdRichGridGroupHostFirstColumn=function(){return t().colIndex===0},N)),
style:_.FM({"--ytd-rich-grid-group-num-columns":O,"--ytd-rich-grid-items-per-group":H})},_.d("div",{class:"ytdRichGridGroupContents"},_.d(_.iF,{data:function(){var A;return(A=t().contents)==null?void 0:A.slice(0,H())}},{richItemRenderer:function(A){return _.d(_.dtY,{data:A.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ln"),"ytd-rich-grid-group",{props:{data:_.$O}});var G3=function(){var N=_.k.apply(this,arguments)||this;N.resizeOnObserverInit=!1;N.isInlinePreviewDisabled=_.h("web_disable_inline_preview");N.disableStickyFilterBar=!1;N.transparentBackgroundChipsBar=!1;N.hideChipsBar=!1;N.collapseFeedCustomizationForm=!1;N.isWatchDefaultLayout=!0;N.continuationShowButton=!1;N.rowReducedHorizontalMargin=!1;N.useCompactList=!1;N.manualDownloadsPresent=!1;N.smartDownloadsPresent=!1;N.isOnline=!1;N.shouldRenderDownloadsBanner=!1;N.shouldRenderDownloadsBannerUpsell=
!1;N.hasOptedIntoSmartDownloads=!1;N.elementsPerRow=4;N.typographyBump=!1;N.slimItemsPerRow=1;N.pageLoadingFromNavigation=!1;N.resizeObserver=null;N.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};N.rendererToTagNameMap=
new Map(Object.entries(N.contentMapping()).map(function(t){var O=_.D(t);t=O.next().value;O=O.next().value;return[t,O.component]}));
N.insertedContent=new Map;return N};
_.p(G3,_.k);_.V=G3.prototype;_.V.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var N=_.D(_.O6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),t=N.next();!t.done;t=N.next())t.value.useCompactList=this.useCompactList};
_.V.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var N=_.D(_.O6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),t=N.next();!t.done;t=N.next())t=t.value,t.sizing=this.sizing,t.typographyBump=this.typographyBump};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]",collapseFeedCustomizationForm:"[[collapseFeedCustomizationForm]]"}},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}}};
_.V.attached=function(){document.addEventListener("yt-page-type-changed",_.Fb(this,this.onPageChange));document.addEventListener("scroll",_.Fb(this,this.onScroll));document.addEventListener("yt-feed-customization-scroll-up",_.Fb(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22543_throttledOnResize=new _.KE(this.resizeObserved,_.uP("rich_grid_resize_delay_ms",50),this)};
_.V.detached=function(){var N;(N=this.resizeObserver)==null||N.disconnect();document.removeEventListener("yt-page-type-changed",_.Fb(this,this.onPageChange));document.removeEventListener("scroll",_.Fb(this,this.onScroll));document.removeEventListener("yt-feed-customization-scroll-up",_.Fb(this,this.onFeedCustomizationScrollUp))};
_.V.insertRichSection=function(N){var t=N.richItemTargetId;N=N.richSectionRendererToInsert;t&&N&&(this.insertedContent.set(t,{content:N,timestamp:Date.now()}),this.reflowContent())};
_.V.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.V.computeIsInlinePreviewEnabled=function(N,t,O){return _.h("web_disable_inline_preview")?!1:!O&&_.pC5({miniplayerIsActive:N,miniplayerPlaybackState:t})};
_.V.computeSizing=function(){var N=_.eBN(this.data);if(N||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return N?this.useCompactList?"COMPACT":N:this.miniMode?"COMPACT":"STANDARD"};
_.V.updateItemMinAndMaxWidth=function(){var N=_.uP("rich_grid_max_item_width",500);N>0&&_.CO(this.hostElement,{"--ytd-rich-grid-item-max-width":N+"px"});var t;N=this.getRichItemMinWidth((t=this.hostElement)==null?void 0:t.clientWidth);N>0&&_.CO(this.hostElement,{"--ytd-rich-grid-item-min-width":N+"px"})};
_.V.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.V.resizeObserved=function(){_.Np(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.V.onPageChange=function(){var N=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Np(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.GB.addJob(function(){N.pageLoadingFromNavigation=!1;N.setMasthead();N.maybeSetBigYoodle();N.forceRefreshAndLog();N.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.V.dataChanged=function(){var N=this;_.Np(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.yB(this,function(){N.updateRichItemGridPositions();N.contentsElement&&_.CO(N.hostElement,{"--ytd-rich-grid-content-offset-top":N.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.V.initResizeObserver=function(){var N=this;if(window.ResizeObserver){var t;(t=this.resizeObserver)==null||t.disconnect();var O=!1;this.resizeObserver=new ResizeObserver(function(){if(O){var H;(H=N.resizeObserver)==null||H.disconnect();var A;(A=N.JSC$22543_throttledOnResize)==null||A.fire();requestAnimationFrame(function(){var U;(U=N.JSC$22543_throttledOnResize)==null||U.fire();N.initResizeObserver()})}else if(O=!0,N.resizeOnObserverInit){var Z;
(Z=N.JSC$22543_throttledOnResize)==null||Z.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.V.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Np(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.updateElementsPerRow=function(){_.Np(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.H5({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.H5({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.V.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.V.onRichShelfRendererCollapse=function(N){if(this.shownItems){var t=N.detail;N=this.shownItems.findIndex(function(H){var A,Z;return((Z=_.M(H==null?void 0:(A=H.richSectionRenderer)==null?void 0:A.content,_.z8X))==null?void 0:Z.trackingParams)===t});
var O=N+1;N<0||O>=this.contentsElement.children.length||!this.shownItems[O].richItemRenderer||this.contentsElement.children[O].scrollIntoView({behavior:"smooth",block:"start"})}};
_.V.onSoftReloadPage=function(){this.scrollUpToTop()};
_.V.handleRerenderDownloadsData=function(){_.h("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.V.handlePlaylistRemoveVideosAction=function(N){var t;if(((t=_.M(N,_.Q3Y))==null?0:t.setVideoIds)&&this.data&&this.data.contents){N=_.M(N,_.Q3Y).setVideoIds;for(t=this.data.contents.length-1;t>=0;){var O=_.M(this.data.contents[t],_.Jx);(O=O&&_.M(O.content,_.FL))&&O.setVideoId&&N.includes(O.setVideoId)&&this.splice("data.contents",t,1);t--}this.updateIndices()}};
_.V.updateIndices=function(){if(this.data&&this.data.contents)for(var N=0;N<this.data.contents.length;N++)this.set("data.contents."+N+".richItemRenderer.index",_.E_(String(N+1)))};
_.V.hasTopRowInlinePlayableVideoWithEndorsement=function(N){var t;return!((t=N.slice(0,this.getItemsPerRow()))==null||!t.some(function(O){var H;O=_.M(O==null?void 0:(H=O.richItemRenderer)==null?void 0:H.content,_.Bs);var A;return(O==null?void 0:O.inlinePlaybackEndpoint)&&(O==null?void 0:(A=O.thumbnailOverlays)==null?void 0:A.some(function(Z){return Z.thumbnailOverlayEndorsementRenderer}))}))};
_.V.refreshGridLayoutNew=function(N,t,O,H){var A=H.postsPerRow;var Z=H.slimItemsPerRow;var U=H.gameCardsPerRow;H=H.miniGameCardsPerRow;var C;if((C=this.data)==null||!C.contents||!this.containerWidth)return!1;var F;if((F=this.data.responsiveContainerConfiguration)==null?0:F.responsiveSize){var g=_.g5O(this.data.responsiveContainerConfiguration,this.containerWidth,2),B;C=_.qU(Object.assign({},g,{standardUnitMinWidth:(B=this.data)==null?void 0:B.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&g.isCompactList)}else C=_.qU({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(g=this.data)==null?void 0:g.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=C.typographyBump;B=!1;if(N||this.elementsPerRow!==C.numItems||this.postsPerRow!==A||this.slimItemsPerRow!==Z||this.gameCardsPerRow!==
U||this.miniGameCardsPerRow!==H||this.gutter!==C.gutter)B=this.elementsPerRow!==C.numItems,this.elementsPerRow=C.numItems,this.postsPerRow=A,this.slimItemsPerRow=Z,this.gameCardsPerRow=U,this.miniGameCardsPerRow=H,this.gutter=C.gutter,this.itemWidth=C.itemWidth,this.reflowContent(t),_.CO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":C.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(O);this.ytdReduxBehavior.dispatch(_.H5({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:C.maxContainerWidth}));return B};
_.V.refreshGridLayout=function(N,t){var O,H=(O=this.hostElement)==null?void 0:O.clientWidth;this.containerWidth=this.adjustRichGridWidth(H,!0);var A;if((A=this.data)==null||!A.contents||!this.containerWidth)return N&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(N=!0,this.pendingForceReflow=!1);O=this.getRichItemMinWidth(H);var Z=this.isShortsPanel?146:194,U=this.getMiniGameCardMinWidth(),C=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.uP("rich_grid_default_max_items_per_row",
6);H=O=this.calcElementsPerRow(O,C);(A=O<=3&&this.miniModeAllowed())&&(O=this.calcElementsPerRow(240,4));var F=this.calcMaxSlimElementsPerRow(O,C,this.isDefaultGrid);C=this.calcElementsPerRow(Z,F);var g=this.calcElementsPerRow(this.isCompactGrid?Z:154,F);Z=this.calcElementsPerRow(this.isCompactGrid?Z:U,F);U=!1;if(this.sizing)return this.refreshGridLayoutNew(N,t,A,{postsPerRow:H,slimItemsPerRow:C,gameCardsPerRow:g,miniGameCardsPerRow:Z});if(N||this.elementsPerRow!==O||this.postsPerRow!==H||this.slimItemsPerRow!==
C||this.gameCardsPerRow!==g||this.miniGameCardsPerRow!==Z)U=this.elementsPerRow!==O,this.elementsPerRow=O,this.postsPerRow=H,this.slimItemsPerRow=C,this.gameCardsPerRow=g,this.miniGameCardsPerRow=Z,this.reflowContent(t),this.updateElementsPerRow(),_.CO(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)&&_.CO(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(A);_.Np(this.hostElement,"yt-rich-grid-layout-refreshed");return U};
_.V.getRichItemMinWidth=function(N){var t=_.uP("rich_grid_min_item_width",310);if(!_.h("kevlar_disable_min_width_override")){var O,H;t=(H=(O=this.data)==null?void 0:O.minItemWidth)!=null?H:t}return t+_.LEt(N)};
_.V.calcMaxSlimElementsPerRow=function(N,t,O){return(O===void 0?0:O)?N===1?2:N%2===0?N/2*3:N+2:t*2};
_.V.adjustRichGridWidth=function(N,t){var O=_.h("disable_rich_grid_guide_compensation");if(!this.isWatch&&!O){O=_.cY().resolve(_.BY(_.g4));var H=O==null?void 0:O.guideElement;if(!(!O||O.getData()||H!=null&&H.opened||O.getMiniGuideVisible()))if(O.canFitPersistentGuide(N)&&O.getGuideExpandsAutomatically()){var A,Z,U=Number((A=window.getComputedStyle(this.hostElement))==null?void 0:(Z=A.getPropertyValue("--app-drawer-width"))==null?void 0:Z.replace("px",""));N-=U||0}else if(O.canFitMiniGuide(N)){var C;
A=Number((U=window.getComputedStyle(this.hostElement))==null?void 0:(C=U.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:C.replace("px",""));N-=A||0}}N>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(N-=t?32:48));return N};
_.V.calcElementsPerRow=function(N,t){var O=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),H=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((O+H)/(N+H))||1,t)};
_.V.reflowContent=function(N){var t=this;if(!this.isReflowing){this.isReflowing=!0;var O,H,A=!!((O=this.data)==null?0:(H=O.contents)==null?0:H.some(function(C){return _.M(C,_.vy)}));
O=this.getItemsPerRow();var Z;H=(Z=this.data)==null?void 0:Z.reflowOptions;N&&(_.zT("rgr_s"),_.yB(this,function(){_.zT("rgr_nrf")}));
N={};(Z=_.O6(this.hostElement).querySelector("#contents"))&&(N={contentElement:Z,rendererToTagNameMap:this.rendererToTagNameMap});Z=(Z=this.data.contents)?Z.slice():[];A=ow$(Z,O,A,H,this.getRichGridStyle(),N,this.insertedContent);var U=A.orderedContent;if(A=A.pinnedContentNotShownTargetIds)for(A=_.D(A),O=A.next();!O.done;O=A.next())this.insertedContent.delete(O.value);A=function(){t.shownItems=U;t.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(U),_.yB(this,A)):A()}};
_.V.getFirstRowItems=function(N){for(var t=[],O=0;O<N.length;O++){var H=void 0,A=void 0,Z=void 0,U=void 0,C=void 0,F=void 0;if(((H=N[O])==null?void 0:(A=H.richItemRenderer)==null?void 0:A.rowIndex)===0||((Z=N[O])==null?void 0:(U=Z.richGroupRenderer)==null?void 0:U.rowIndex)===0||((C=N[O])==null?void 0:(F=C.richSectionRenderer)==null?void 0:F.rowIndex)===0)t.push(N[O]);else break}return t};
_.V.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.V.resetInsertedContentIfNeeded=function(){(_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.V.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.V.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.V.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.V.terminateVideoPreview=function(){_.Np(this.hostElement,"yt-terminate-video-preview-action")};
_.V.updateRichItemGridPositions=function(){var N={gridData:{gridColumnCount:this.elementsPerRow}},t;((t=this.data)==null?0:t.trackingParams)&&(t=_.z8())&&_.QZ(t,_.ib(this.data.trackingParams),N);_.Np(this.hostElement,"ytd-rich-item-index-update-action")};
_.V.miniModeAllowed=function(){return this.isChannelPage};
_.V.getMiniGameCardMinWidth=function(){return 154};
_.V.updateMiniMode=function(N){this.miniMode=this.miniModeAllowed()&&N;this.ytdReduxBehavior.dispatch(_.H5({type:"SET_RICH_GRID_MINI_MODE",payload:N}))};
_.V.isCurrentPage=function(){return location.pathname===this.pagePath};
_.V.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var N=_.cY().resolve(_.J4).getCurrentPage();N&&N.setScrollTop(0)}};
_.V.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.V.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.V.maybeSetBigYoodle=function(){var N,t=(N=this.data)==null?void 0:N.bigYoodle;this.bigYoodleData!==t&&(this.bigYoodleData=t)};
_.V.setMasthead=function(){var N;((N=this.data)==null?0:N.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.V.getRichGridStyle=function(){var N,t;return(t=(N=this.data)==null?void 0:N.style)!=null?t:"RICH_GRID_STYLE_UNKNOWN"};
_.V.onIsShortsGridChange=function(){var N=this.ytdReduxBehavior,t=N.dispatch,O=this.getRichGridStyle();t.call(N,_.H5({type:"SET_RICH_GRID_STYLE",payload:O}))};
_.V.onScroll=function(){this.collapseFeedCustomizationForm=window.scrollY>20};
_.V.onFeedCustomizationScrollUp=function(){this.collapseFeedCustomizationForm=!1;this.scrollUpToTop()};
_.cv.Object.defineProperties(G3.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var N=_.cY().resolve(_.J4).getCurrentPage(),t,O,H;return(((t=this.data)==null?void 0:t.targetId)==="browse-feedFEsfv_audio_pivot"||_.h("web_enable_channel_pivot_panel")&&((O=this.data)==null?void 0:O.targetId)==="browse-feedFEsfv_channel_pivot"||_.h("web_enable_effect_pivot_panel")&&((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_effect_pivot")&&(N==null?void 0:N.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.h("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null?0:N.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var N;return((N=_.cY().resolve(_.J4).getCurrentPage())==null?void 0:N.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var N;return((N=_.cY().resolve(_.J4).getCurrentPage())==null?void 0:N.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.data)==null?0:N.enableContentSpecificAspectRatio)||((t=this.data)==null?0:(O=t.responsiveContainerConfiguration)==null?0:O.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.uP("web_continuation_handler_margin",0):0}}});
G3.prototype.onIsShortsGridChange=G3.prototype.onIsShortsGridChange;G3.prototype.onReloadContinuationFinish=G3.prototype.onReloadContinuationFinish;G3.prototype.reflowContent=G3.prototype.reflowContent;G3.prototype.handleRerenderDownloadsData=G3.prototype.handleRerenderDownloadsData;G3.prototype.onRichShelfRendererCollapse=G3.prototype.onRichShelfRendererCollapse;G3.prototype.onRequestElementsPerRow=G3.prototype.onRequestElementsPerRow;G3.prototype.contentLengthChanged=G3.prototype.contentLengthChanged;
G3.prototype.dataChanged=G3.prototype.dataChanged;G3.prototype.onSizingChange=G3.prototype.onSizingChange;G3.prototype.onUseCompactListChange=G3.prototype.onUseCompactListChange;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.JV),_.Q("design:type",Object)],G3.prototype,"ironResizableBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],G3.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],G3.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],G3.prototype,"componentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],G3.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],G3.prototype,"miniMode",void 0);_.W([_.X({value:[]}),_.Q("design:type",Array)],G3.prototype,"shownItems",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],G3.prototype,"isReflowing",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],G3.prototype,"isFilteredFeed",void 0);_.W([_.X({selector:_.puv}),_.Q("design:type",Boolean)],G3.prototype,"guideIsExpanded",void 0);
_.W([_.X({selectorArgs:["entitySelectorType"],selector:function(N,t){if(_.h("kevlar_modern_downloads_page")&&t&&t!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(t){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":t=N.entities;var O=_.LM(t),H=_.zv(t),A=_.lTv(N),Z=_.ITN(N),U=_.Qwz(N),C=_.BdN(t),F=_.u5(O),g=_.Yj(t);return _.VvN(O,H,C,_.iDG(t),A,Z,F,g,U,_.EOO(N),_.P5(N));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return N=_.LM(N.entities),_.UiS(N);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return N=
_.dFv(N.entities),_.CHO(N);default:_.J_(new _.fF("Error: entitySelectorType defined but not matched in selector.",N,t))}}}),
_.Q("design:type",Object)],G3.prototype,"entityDrivenRichGridData",void 0);_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"resizeOnObserverInit",void 0);_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"bigYoodleData",void 0);_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"mastheadData",void 0);_.W([_.X(),_.Q("design:type",Boolean)],G3.prototype,"isInlinePreviewDisabled",void 0);_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"disableStickyFilterBar",void 0);
_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"transparentBackgroundChipsBar",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G3.prototype,"hideChipsBar",void 0);_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"collapseFeedCustomizationForm",void 0);_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"isWatchDefaultLayout",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G3.prototype,"continuationShowButton",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G3.prototype,"rowReducedHorizontalMargin",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G3.prototype,"useCompactList",void 0);_.W([_.X({selector:function(N){return _.zv(N.entities).length>0}}),
_.Q("design:type",Object)],G3.prototype,"manualDownloadsPresent",void 0);_.W([_.X({selector:function(N){return _.LM(N.entities).length>0}}),
_.Q("design:type",Object)],G3.prototype,"smartDownloadsPresent",void 0);_.W([_.X({selector:_.P5}),_.Q("design:type",Object)],G3.prototype,"isOnline",void 0);_.W([_.X({selector:_.ITN}),_.Q("design:type",Object)],G3.prototype,"shouldRenderDownloadsBanner",void 0);_.W([_.X({selector:_.EOO}),_.Q("design:type",Object)],G3.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.W([_.X({selector:_.lTv}),_.Q("design:type",Object)],G3.prototype,"hasOptedIntoSmartDownloads",void 0);
_.W([_.gz("useCompactList"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G3.prototype,"onUseCompactListChange",null);_.W([_.gz("sizing","typographyBump"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G3.prototype,"onSizingChange",null);_.W([_.X({selector:_.wuQ}),_.Q("design:type",Number)],G3.prototype,"miniplayerPlaybackState",void 0);_.W([_.X({selector:_.w8}),_.Q("design:type",Boolean)],G3.prototype,"miniplayerIsActive",void 0);
_.W([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Q("design:type",Boolean)],G3.prototype,"isInlinePreviewEnabled",void 0);_.W([_.X({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Q("design:type",String)],G3.prototype,"sizing",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G3.prototype,"elementsPerRow",void 0);
_.W([_.X(),_.Q("design:type",Object)],G3.prototype,"typographyBump",void 0);_.W([_.X(),_.Q("design:type",Number)],G3.prototype,"itemWidth",void 0);_.W([_.B2("#header"),_.Q("design:type",HTMLElement)],G3.prototype,"headerElement",void 0);_.W([_.B2("#contents"),_.Q("design:type",HTMLElement)],G3.prototype,"contentsElement",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G3.prototype,"dataChanged",null);
_.W([_.ic("data.contents.length"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G3.prototype,"contentLengthChanged",null);_.W([_.dz("yt-request-elements-per-row"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G3.prototype,"onRequestElementsPerRow",null);
_.W([_.dz("yt-rich-shelf-renderer-collapse"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G3.prototype,"onRichShelfRendererCollapse",null);_.W([_.ic("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G3.prototype,"handleRerenderDownloadsData",null);
_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],G3.prototype,"entitySelectorType",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.targetId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"isSub",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.targetId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"isWatch",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.targetId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"isShortsPanel",null);_.W([_.X({reflectToAttribute:!0}),_.a("isWatch"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"reducedTopMargin",null);_.W([_.X({reflectToAttribute:!0}),_.a("data","isWatch","isWatchDefaultLayout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"noTopMargin",null);
_.W([_.X({reflectToAttribute:!0}),_.a("isInlinePreviewEnabled","shownItems"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"topRowEndorsement",null);_.W([_.a("data.header"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"hideHeader",null);_.W([_.dz("yt-rich-grid-reflow"),_.Q("design:type",Function),_.Q("design:paramtypes",[Boolean]),_.Q("design:returntype")],G3.prototype,"reflowContent",null);
_.W([_.dz("yt-reload-continuation-finish"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G3.prototype,"onReloadContinuationFinish",null);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"isSlimGrid",null);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"isShortsGrid",null);
_.W([_.a("data","isSlimGrid","isShortsGrid"),_.X(),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"noRichItemGutterMargins",null);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"isShortsGridSlim",null);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"isCompactGrid",null);
_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"isDefaultGrid",null);_.W([_.a("data.targetId"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"hideChipsBarOnWatch",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G3.prototype,"onIsShortsGridChange",null);
_.W([_.a("data.enableContentSpecificAspectRatio"),_.X(),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G3.prototype,"force16By9ThumbnailAspectRatio",null);_.W([_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],G3.prototype,"continuationTriggerOffset",null);_.W([_.en({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],G3);
_.n(G3,"ytd-rich-grid-renderer",function(){if(u1D!==void 0)return u1D;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="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');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return u1D=N},{mode:2});var Pkd=_.q(function(N){return _.d("yt-feedback-prompt-view-model",{class:_.V7("ytFeedbackPromptViewModelHost",N.className)},_.d(_.y,{cond:function(){return N.data().text},
then:function(t){return _.d(_.cu,{text:t,className:"ytFeedbackPromptViewModelPrompt"})}}),_.d(_.iF,{data:function(){return N.data().likeButton}},{likeButtonViewModel:function(t){return _.d(_.Fl,{data:t.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.d(_.iF,{data:function(){return N.data().dislikeButton}},{dislikeButtonViewModel:_.Ko}))},"mn");var X6r=_.q(function(N){var t=_.D((0,_.VCX)(N.data)).next().value,O=function(){var H,A;return(A=(H=t().contents)==null?void 0:H.length)!=null?A:0};
return _.d("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return N.data().targetId||""},
"aria-busy":function(){var H,A;return(A=(H=t().contents)==null?void 0:H.some(function(Z){return!!Z.chatLoadingViewModel}))!=null?A:!1}},_.d(_.iF,{data:function(){return N.data().header}},{chipBarViewModel:_.UbZ,
sectionHeaderViewModel:_.GX}),_.d(_.iF,{data:function(){return t().contents}},{accordionViewModel:_.G1Z,
alertBannerViewModel:_.B$_,chatLoadingViewModel:function(H,A){return _.d(_.OC5,{data:H.data,containerHeight:N.containerHeight,isLastItem:function(){return A()===O()-1}})},
chatUserTurnViewModel:function(H,A){return _.d(_.HCr,{data:H.data,containerHeight:N.containerHeight,isLastItem:function(){return A()===O()-1}})},
feedbackPromptViewModel:Pkd,gridShelfViewModel:function(H){return _.d(_.Bj,{data:H.data,shouldUseOwnContainerSize:!0,marginSettings:N.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.WmZ,linearLayoutViewModel:_.jw,lockupViewModel:function(H){return _.d(_.IR,{data:H.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:N.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.GX,videoOverviewViewModel:_.HNm,youChatItemViewModel:function(H,A){return _.d(_.tF1,{data:H.data,pending:!1,containerHeight:N.containerHeight,isLastItem:function(){return A()===O()-1}})}}))},"nn");_.o_(_.q(function(N){var t=_.D((0,_.VCX)(N.data)).next().value,O=_.D(_.ie()),H=O.next().value;O=O.next().value;var A=_.E4(O);O=_.D(_.b$(void 0,void 0,"fqbUqd"));var Z=O.next().value,U=O.next().value,C=function(){var F;return _.M((F=N.data().sectionListLayoutConfiguration)==null?void 0:F.layoutConfiguration,Kn8)};
_.Q8(function(){var F,g=(F=A.value)==null?void 0:F.clientWidth;F=C()?_.Rjy(g,C()):void 0;U(F)});
O={};return _.d("yt-section-list-renderer",{class:_.V7("ytSectionListRendererHost",N.className,(O.ytSectionListRendererHostOverscrollContain=function(){var F;return(F=N.overscrollContain)==null?void 0:F.call(N)},O)),
el:A,"data-target-id":function(){return N.data().targetId||""}},_.d(_.iF,{data:function(){return t().contents}},{itemSectionRenderer:function(F){return _.d(X6r,{data:F.data,
containerLayoutConfig:Z,marginSettings:N.marginSettings,containerHeight:function(){return H.height()}})}}))},"on"),"yt-section-list-renderer",{props:{data:_.$O,
className:_.R_,marginSettings:_.$O,overscrollContain:_.$O}});var xoA;var kys;var qGs=function(){return _.k.apply(this,arguments)||this};
_.p(qGs,_.k);_.W([_.X(),_.Q("design:type",Object)],qGs.prototype,"data",void 0);_.W([_.wz({is:"yt-alert-renderer",disableElementRegistration:!0})],qGs);
_.n(qGs,"yt-alert-renderer",function(){if(kys===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;xoA===void 0&&(xoA=document.createElement("template"));var H=xoA;O.call(t,H.content.cloneNode(!0),N.content.firstChild);kys=N}N=kys;return N},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Xim;Xim=function(N,t,O,H){O||(N?H&&(H.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||H.WINDOW_SIZE_CHANGED&&(t.width!==window.innerWidth||t.height!==window.innerHeight)||H.SAFARI_ABORTED_BY_NEW_TRANSITION&&N instanceof DOMException&&N.name==="AbortError"&&N.message.includes("Old view transition aborted by new view transition"))||_.R0(N):_.R0(Error("wj")))};
_.xLn=function(N,t){t=t===void 0?{}:t;var O,H,A,Z,U,C,F,g,B,c,u,S,b;return _.K(function(z){switch(z.nextAddress){case 1:O=t;H=O.shouldWrap===void 0?!0:O.shouldWrap;A=O.skipTransitionTimeoutMs===void 0?300:O.skipTransitionTimeoutMs;Z=O.beforeTransition;U=O.afterTransition;if(!H||!document.startViewTransition||document.visibilityState==="hidden")return z.return(N());C={width:window.innerWidth,height:window.innerHeight};F=!1;(g=Z)==null||g();_.Mo(z,2);B=document.startViewTransition(N);c=setTimeout(function(){B.skipTransition();
F=!0},A);
return z.yield(B.ready,4);case 4:return clearTimeout(c),z.yield(B.finished,5);case 5:clearTimeout(c);(u=U)==null||u();_.Do(z,0);break;case 2:S=_.ax(z),(b=U)==null||b(),Xim(S,C,F,t.ignoredErrors),_.Ty(z)}})};
_.kVf=function(N,t){var O=_.KnN(t);O!=="javascript:"&&O!=="data:"&&N.setAttribute("href",t)};
_.ta=function(){for(var N=Array(36),t=0,O,H=0;H<36;H++)H==8||H==13||H==18||H==23?N[H]="-":H==14?N[H]="4":(t<=2&&(t=33554432+Math.random()*16777216|0),O=t&15,t>>=4,N[H]=_.IbN[H==19?O&3|8:O]);return N.join("")};
_.q3m=function(N,t,O){N.persistentPanelContainerMap.set(O,t)};/*

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 fm1=_.mp(['<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>']),
nH1=_.QHB(fm1);nH1.setAttribute("style","display: none;");document.head.appendChild(nH1.content);_.O5=_.yrO(function(N){var t=_.Tu("DIV");N&&(t.className=N);t.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";N=_.Tu("DIV");_.lCE(N,"200px","200px");t.appendChild(N);document.body.appendChild(t);N=t.offsetWidth-t.clientWidth;_.wb(t);return N});var W1m;var rGr;var HQ=function(){var N=_.k.apply(this,arguments)||this;N.icon=null;return N};
_.p(HQ,_.k);HQ.prototype.dismiss=function(){_.or(this.hostElement,"yt-live-chat-error-message-dismiss")};
HQ.prototype.computeIcon=function(N){return N&&N.iconType?"yt-icons:"+N.iconType.toLowerCase():"yt-icons:close"};
_.W([_.X(),_.Q("design:type",Object)],HQ.prototype,"data",void 0);_.W([_.X({computed:"computeIcon(data.icon)"}),_.Q("design:type",Object)],HQ.prototype,"icon",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],HQ);
_.n(HQ,"yt-live-chat-error-message-renderer",function(){if(rGr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;W1m===void 0&&(W1m=document.createElement("template"));var H=W1m;O.call(t,H.content.cloneNode(!0),N.content.firstChild);rGr=N}N=rGr;return N},{mode:0});
}catch(e){_._DumpException(e)}
try{
var ol1,soN,NED,tol,Ae8,DH8,UHr,CP1,KY9,FYd,dH$,gv1,yeR,wm,BEN,ceN,$H8,jDw,iFs,ued,SyD,hed,Mor,pYl,LYw,ze9,Yym,a9D,TEw,wYl,eed,PPu,XYV,xHr,kpm,qy$,f9R,nvw,I9w,QDA,Evd,GpN,ReV,vvR,WYV,reA,sDR,NrV,tgV,OzR,HzR,ArN,Zzm,Vgm,Jeu;ol1=function(N,t){return _.CM(N.entities,"timedMarkersListSyncEntity",t)};
soN=function(N,t){return _.CM(N.entities,"liveReactionsDataEntity",t)};
NED=function(N,t){N=_.CM(N.entities,"booleanEntity",t);return!(!N||!N.value)};
tol=function(N,t){var O=_.z8();O&&N&&_.qp(O,_.ib(N),t)};
_.OFd=function(N){return N.watch.isWatchActive};
_.HFl=function(N){return!_.N2G(N)};
_.T0=function(N){return N.watch.watchScrollTop};
Ae8=function(N){return N.watch.isLiveChatCollapsed};
_.ZF8=function(){_.h("web_watch_log_theater_mode")&&_.hFv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.VoA=function(N,t,O){if(!N.includes("START_TIME_PLACEHOLDER")||!N.includes("END_TIME_PLACEHOLDER"))return N;var H=new Date(0),A=new Date(0);H.setUTCMilliseconds(t);A.setUTCMilliseconds(O);return N.replace("START_TIME_PLACEHOLDER",_.l5(H,7)).replace("END_TIME_PLACEHOLDER",_.l5(A,7))};
DH8=function(N){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:N}}]}}}};
UHr=function(N,t,O){var H=_.h("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;t=Object.assign({},{text:t,hasGradientBackground:O},H&&{itemTargetId:H});H=_.h("web_enable_chat_autoscroll_to_user_turn")&&H?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:H,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:t}],insertByPositionInSection:{sectionTargetId:N,
position:"INSERTION_POSITION_LAST"}}}]},H?{scrollConfig:H}:{})}}};
CP1=function(N,t){return _.CM(N.entities,"booleanEntity",t)};
KY9=function(){return function(N){_.E6(_.uF("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:N}))}};
FYd=function(N){switch(N){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
dH$=function(N,t,O){var H=_.wF(O);N&&t&&H&&N.getPlayerPromise().then(function(A){_.zyp(H)&&_.GW();(new _.ZH(A)).executeCommand(H,t);_.h("continue_playback_on_desktop_companion_click")||A.pauseVideo()})};
gv1=function(N){var t=_.si(),O;if(O=_.s2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;O=(H=O())==null?void 0:H.layoutId}else O=null;dH$(t,O,N)};
yeR=function(N){var t=_.si(),O;if(O=_.s2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;O=(H=O())==null?void 0:H.layoutId}else O=null;dH$(t,O,N)};
wm=function(N,t){var O=N<0?"-":"";N=Math.abs(N);var H=Math.floor(N/3600),A=Math.floor(N)%3600,Z=Math.floor(A/60);A=Math.floor(A)%60;var U="";(t===void 0?0:t)&&(U="."+Math.round((N-Math.floor(N))*10));return H>0?O+H+":"+(Z<10?"0"+Z:""+Z)+":"+(A<10?"0"+A:""+A)+U:O+Z+":"+(A<10?"0"+A:""+A)+U};
BEN=function(N){var t=N.match(/[^0-9:\.]/g);if(t&&t.length>0)return null;N=N.split(":");if(N.length===0||N.length>3)return null;t=1;for(var O=0;N.length>0;){var H=N.pop();if(H===void 0)break;var A=Number(H);if(H===""||isNaN(A))return null;O+=A*t;t*=60}return O};
ceN=function(N,t,O,H){N=Math.max(O,N);t=Math.min(t,H-O);N+t>H?(O=H,N=O-t):O=N+t;return{start:N,end:O}};
$H8=function(N,t,O,H,A,Z){N<O?N=O:N+A>H&&(N=H-A);t>H&&(t=H);t=Math.min(N+Z,Math.max(N+A,t));return{start:N,end:t}};
jDw=function(N,t,O,H,A,Z){t>H?t=H:t-A<O&&(t=O+A);N<O&&(N=O);N=Math.min(t-A,Math.max(t-Z,N));return{start:N,end:t}};
iFs=function(N){return _.h("web_transcript_cue_id_killswitch")?String(N):"ytd-transcript-renderer_"+N};
ued=function(N){return _.h("web_transcript_cue_id_killswitch")?!0:N.startsWith("ytd-transcript-renderer")};
SyD=function(N){var t=_.si(),O;if(O=_.s2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var H;O=(H=O())==null?void 0:H.layoutId}else O=null;dH$(t,O,N)};
hed=function(N){N.style.height="auto";N.style.height=Math.min(N.scrollHeight||20,80)+"px"};
Mor=function(){var N;return String(Math.floor(((N=_.FF())==null?void 0:N.getCurrentTime())||0)*1E3)};
pYl=function(N){if(N.onWelcomeCommand)return _.wF(N.onWelcomeCommand);N=_.M(N.inputComposerViewModel,bF$);if(N==null?0:N.welcomeFeatureContinuation)return _.WNJ(N.welcomeFeatureContinuation)};
LYw=function(N){var t=_.si(),O;O=(O=_.s2("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.layoutId:null;dH$(t,O,N)};
ze9=function(N){var t=_.si(),O;O=(O=_.s2("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.layoutId:null;dH$(t,O,N)};
Yym=function(N){if(N.simpleText)return[{text:N.simpleText}];var t;return(t=N.runs)!=null?t:[]};
a9D=function(N){var t=N.startEndTimeTemplate,O=N.startTimeUtcMillis;N=N.endTimeUtcMillis;if(t&&O&&N)return _.E_(_.VoA(_.Gv(t),Number(O),Number(N)))};
TEw=function(N,t){var O,H,A=N==null?void 0:(O=N.viewCount)==null?void 0:(H=O.videoViewCountRenderer)==null?void 0:H.shortViewCount;if(!t&&A)return A;var Z,U;return N==null?void 0:(Z=N.viewCount)==null?void 0:(U=Z.videoViewCountRenderer)==null?void 0:U.viewCount};
wYl=function(N,t){var O=N==null?void 0:N.relativeDateText;return!t&&O?[O,!0]:[N==null?void 0:N.dateText,!1]};
eed=function(N,t,O,H,A){H=H===void 0?"":H;A=A===void 0?!1:A;var Z=TEw(N,t),U=_.D(wYl(N,t)),C=U.next().value;U=U.next().value;t=t?N==null?void 0:N.sponsorsOnlyFirstTimeLongText:N==null?void 0:N.sponsorsOnlyFirstTimeShortText;var F=[];O&&Z&&F.push(Z);!O&&U||!C||F.push(C);N=[A?N==null?void 0:N.subtitle:void 0].concat(_.W6(F),[t,N==null?void 0:N.stationName,N==null?void 0:N.rating,N?a9D(N):void 0,N==null?void 0:N.upNextProgramText,N==null?void 0:N.superTitleLink]).filter(function(g){return!!g});
O={runs:[]};for(A=0;A<N.length;A++)O.runs.push.apply(O.runs,_.W6(Yym(N[A]))),A<N.length-1&&O.runs.push({text:" "+H+" "});return O};
PPu=function(N){return N.filter(function(t){return!_.M(t,_.V2)})};
XYV=function(N){var t,O,H,A;if(N=N==null?void 0:(t=N.contents)==null?void 0:(O=t.twoColumnWatchNextResults)==null?void 0:(H=O.results)==null?void 0:(A=H.results)==null?void 0:A.contents){var Z,U;return(U=(Z=N.find(function(C){return!!C.videoPrimaryInfoRenderer}))==null?void 0:Z.videoPrimaryInfoRenderer)==null?void 0:U.updatedMetadataEndpoint}};
xHr=function(N,t){var O;return(O=N.sourceConfigs)==null?void 0:O.find(function(H){return H.videoId===t})};
kpm=function(N){return N==="End of video"||N==="End of playlist"};
qy$=function(N){var t,O,H,A;return(t=N.getWatchNextResponse())==null?void 0:(O=t.contents)==null?void 0:(H=O.twoColumnWatchNextResults)==null?void 0:(A=H.playlist)==null?void 0:A.playlist};
f9R=function(N){var t,O,H,A,Z,U;return(t=qy$(N))==null?void 0:(O=t.playlistButtons)==null?void 0:(H=O.menuRenderer)==null?void 0:(A=H.topLevelButtons)==null?void 0:(Z=A[0])==null?void 0:(U=Z.playlistLoopButtonRenderer)==null?void 0:U.playlistLoopStateEntityKey};
nvw=function(N){var t=_.cY().resolve(_.$8),O;return(t=(O=_.M(t.getAutoplayEndpoint(),_.rN))==null?void 0:O.playlistId)&&t===N};
I9w=function(N,t,O,H,A){function Z(){_.GB.cancelJob(e2);var U=WYV(t,O/N.getPlaybackRate()),C=U.hours,F=U.minutes;U=(U.seconds*1E3||6E4)/N.getPlaybackRate();N.setVideoTimeLeft(reA(C,F));H&&N.getPlayerState()!==0&&N.setSleepTimerTimeLeft(reA(C,F,!0));(C>0||F>0)&&!A&&(e2=_.MU(_.GB,Z,U))}
_.GB.cancelJob(e2);e2=_.MU(_.GB,Z)};
QDA=function(N,t,O){function H(){_.GB.cancelJob(l9m);var A=WYV(t,O),Z=A.hours;A=A.minutes;var U=6E4/N.getPlaybackRate();if(Z>0||A>0)N.setSleepTimerTimeLeft(reA(Z,A,!0)),l9m=_.MU(_.GB,H,U)}
_.GB.cancelJob(l9m);l9m=_.MU(_.GB,H)};
Evd=function(N,t){var O=N.getVolume()/(t/500),H=function(A){_.GB.cancelJob(mHu);var Z=Math.floor(A-O);N.setVolume(Z,!1);Z>0&&(mHu=_.MU(_.GB,function(){H(Z)},500))};
_.GB.cancelJob(mHu);mHu=_.MU(_.GB,function(){H(N.getVolume())})};
GpN=function(N,t){_.GB.cancelJob(mHu);t&&N.syncVolume()};
ReV=function(){var N={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.CJ("SLEEP_TIMER_DISRUPTED")}}}}};_.cY().resolve(_.jo).resolveCommand(N)};
vvR=function(N){return(N.getDuration()-N.getProgressState().current)*1E3};
WYV=function(N,t){N=N+t-(0,_.jg)();if(N<=0)return{hours:0,minutes:0,seconds:0};var O=new Jeu(0,0,0,0,0,0,N);N=O.getHours();t=O.getMinutes();O=O.getSeconds();O!==0&&t++;t!==0&&t%60===0&&(N++,t=0);return{hours:N,minutes:t,seconds:O}};
reA=function(N,t,O){return N>0&&t>0?O?_.CJ("TIME_LEFT_HOURS_MINUTES",{hours:N.toString(),minutes:t.toString()}):_.CJ("TIME_HOURS_MINUTES",{hours:N.toString(),minutes:t.toString()}):N>0?O?_.KJ("TIME_LEFT_HOURS",N):_.KJ("TIME_HOURS",N):O?_.CJ("TIME_LEFT_MINUTES",{minutes:t.toString()}):_.CJ("TIME_MINUTES",{minutes:t.toString()})};
sDR=function(N,t){if(N.timelyActions)return N.timelyActions.find(function(O){var H;return((H=_.M(O,ov8))==null?void 0:H.cueRangeId)===t})};
NrV=function(N){var t=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Sz(N);N.keyMap_.forEach(function(O,H){_.W4(t,H)||this.remove(H)},N)};
tgV=function(N,t){N.reloadContinuationItemsCommandMatcher=t};
OzR=function(N,t){var O;return _.K(function(H){return H.nextAddress==1?t&&N.lastWelcomeContinuationSent!==t?_.f4r(N)?H.yield(N.panelController.isVisible("PAai_companion"),3):H.jumpTo(2):H.return(!1):H.nextAddress==2||(O=H.yieldResult,O)?H.return(!0):H.return(!1)})};
HzR=function(N){var t,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1){if(!N.welcomeOptions)return U.return();t=N.welcomeOptions;O=t.command;H=t.setPending;if(O){var C;var F=(C=_.M(O,_.PH))==null?void 0:C.token}else F=void 0;A=F;return U.yield(OzR(N,A),2)}if(!U.yieldResult)return U.return();N.lastWelcomeContinuationSent=A;(Z=H)==null||Z(!0);F="youchat-"+Date.now();C=(C=_.FF())?String(Math.floor(C.getCurrentTime())*1E3):void 0;_.eF(O,{form:{formData:_.ia({clientMessageId:F,playerOffsetMs:C,pageContext:_.Vu5(N,
N.pageSubtype)})}});_.Ty(U)})};
ArN=function(N,t){_.K(function(O){N.welcomeOptions=t;return O.yield(HzR(N),0)})};
_.P3=function(N,t){N.insertBefore(t,N.childNodes[0]||null)};
Zzm=function(N){if(N>=48&&N<=57||N>=96&&N<=106||N>=65&&N<=90||_.Ud&&N==0)return!0;switch(N){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.D7;default:return!1}};
Vgm=function(N){if(N.altKey&&!N.ctrlKey||N.metaKey||N.keyCode>=112&&N.keyCode<=123)return!1;if(Zzm(N.keyCode))return!0;switch(N.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.D7;default:return N.keyCode<166||N.keyCode>183}};
Jeu=function(N,t,O,H,A,Z,U){this.date=typeof N==="number"?new Date(N,t||0,O||1,H||0,A||0,Z||0,U||0):new Date(N&&N.getTime?N.getTime():_.tw())};
_.Od(Jeu,_.rH);_.V=Jeu.prototype;_.V.getHours=function(){return this.date.getHours()};
_.V.getMinutes=function(){return this.date.getMinutes()};
_.V.getSeconds=function(){return this.date.getSeconds()};
_.V.getMilliseconds=function(){return this.date.getMilliseconds()};
_.V.getUTCDay=function(){return this.date.getUTCDay()};
_.V.getUTCHours=function(){return this.date.getUTCHours()};
_.V.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.V.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.V.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.V.setHours=function(N){this.date.setHours(N)};
_.V.setMinutes=function(N){this.date.setMinutes(N)};
_.V.setSeconds=function(N){this.date.setSeconds(N)};
_.V.setMilliseconds=function(N){this.date.setMilliseconds(N)};
_.V.setUTCHours=function(N){this.date.setUTCHours(N)};
_.V.setUTCMinutes=function(N){this.date.setUTCMinutes(N)};
_.V.setUTCSeconds=function(N){this.date.setUTCSeconds(N)};
_.V.setUTCMilliseconds=function(N){this.date.setUTCMilliseconds(N)};
_.V.add=function(N){_.rH.prototype.add.call(this,N);N.hours&&this.setUTCHours(this.date.getUTCHours()+N.hours);N.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+N.minutes);N.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+N.seconds)};
_.V.JSC$11481_toIsoString=function(N){var t=_.rH.prototype.JSC$11481_toIsoString.call(this,N);return N?t+"T"+_.dI(this.getHours(),2)+":"+_.dI(this.getMinutes(),2)+":"+_.dI(this.getSeconds(),2):t+"T"+_.dI(this.getHours(),2)+_.dI(this.getMinutes(),2)+_.dI(this.getSeconds(),2)};
_.V.equals=function(N){return this.getTime()==N.getTime()};
_.V.toString=function(){return this.JSC$11481_toIsoString()};
_.V.clone=function(){var N=new Jeu(this.date);N.firstDayOfWeek_=this.firstDayOfWeek_;N.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return N};
_.DVm=function(N){return _.H5({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:N}})};var UVd=new _.Fp("imageTileRenderer");var C09=new _.Fp("promotedSparklesWebRenderer");var K81=new _.Fp("adGridCardCollectionViewModel");var F8s=new _.Fp("carouselTitleViewModel");var dVA=new _.Fp("ctaCarouselItemViewModel");var g2$=new _.Fp("textFieldViewModel");_.yrV=new _.Fp("engagementPanelHeaderShowNavigationButtonCommand");var BrV=new _.Fp("hideEngagementPanelScrimAction");var crV=new _.Fp("setActivePanelItemAction");var $Vr=new _.Fp("showEngagementPanelScrimAction");var jkV=new _.Fp("updateEngagementPanelAction");var izA=new _.Fp("updateSearchInVideoResultsAction");var ucd=new _.Fp("transcriptCueGroupRenderer");var Svl=new _.Fp("transcriptCueRenderer");var hAm=new _.Fp("transcriptFooterRenderer");var Mgr=new _.Fp("engagementPanelAdSubtitleRenderer");var bz8=new _.Fp("videoDescriptionFantasySectionViewModel");var par=new _.Fp("deleteClipEngagementPanelCommand");var L8w=new _.Fp("loopCommand");var zAw=new _.Fp("changeCreatorEndscreenVisibilityCommand");var Yv8=new _.Fp("liveChatCallForQuestionsRenderer");var aos=new _.Fp("updateTimedMarkersSyncObserverCommand");var ov8=new _.Fp("timelyActionViewModel");var Tr1=new _.Fp("timelyActionsOverlayViewModel");var waA=new _.Fp("repeatChapterCommand");var eAl=new _.Fp("watchPlayerOverflowMenuCommand");var P08=new _.Fp("compositeVideoOverlayRenderer");var XaA=new _.Fp("sortFilterSubMenuRenderer");var xVR=new _.Fp("switchListItemViewModel");var bF$=new _.Fp("inputComposerViewModel");var kBV=new _.Fp("transcriptEditSegmentCommand");var qvd=new _.Fp("transcriptUpdateSegmentTextCommand");var foR=new _.Fp("transcriptSearchBoxRenderer");var n21=new _.Fp("transcriptSegmentListRenderer");var W8D=new _.Fp("transcriptSegmentRenderer");_.rrl=new _.Fp("updateDateTextAction");var IoN=new _.Fp("updateTitleAction");var lo$=new _.Fp("updateViewershipAction");var QkN=new _.Fp("relatedChipCommand");var mVA=new _.Fp("carouselLockupRenderer");var Xh=new _.Fp("expandableVideoDescriptionBodyRenderer");var E2s=new _.Fp("videoDescriptionHeaderRenderer");var GBN=new _.Fp("videoDescriptionYouchatSectionViewModel");_.xy=_.uP("kevlar_watch_page_horizontal_margin",24);_.RAA=_.uP("kevlar_watch_page_columns_top_padding",24);_.v2d=426+_.xy*2;_.ky=_.uP("kevlar_watch_two_column_width_threshold",1E3);_.Jr1=_.xy*2;_.o2$=_.uP("kevlar_watch_secondary_width",402);_.sk1=_.uP("kevlar_watch_max_player_width",1280);_.tOl=_.uP("kevlar_watch_flexy_metadata_height",136);_.Obu=_.Jr1+310+_.xy;_.HbA=_.Jr1+360+_.xy;var A_D={PAUSE_CHAT:18};var ZbV;var VOD;var qt=function(){return _.k.apply(this,arguments)||this};
_.p(qt,_.k);qt.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
qt.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var N=_.M(this.data.button,_.$9);N&&(N.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.cv.Object.defineProperties(qt,{template:{configurable:!0,enumerable:!0,get:function(){if(VOD===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;ZbV===void 0&&(ZbV=document.createElement("template"));var H=ZbV;O.call(t,H.content.cloneNode(!0),N.content.firstChild);VOD=N}N=VOD;return N}}});
_.W([_.Y(_.DT),_.Q("design:type",Object)],qt.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X({selectorArgs:["data.enabledEntityKey"],selector:NED,observer:"onEnabledChange"}),_.Q("design:type",Boolean)],qt.prototype,"enabled",void 0);_.W([_.X(),_.Q("design:type",Object)],qt.prototype,"data",void 0);_.W([_.wz({is:"yt-disableable-button-view-model",noInjection:!0})],qt);var Dgd;var Ugw;var Cd$=["transVert01","transVert02","transVert03"],Kv9="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),fH=function(){var N=_.k.apply(this,arguments)||this;N.emojiManager=_.cR;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};N.reactionBuckets=[];N.noEmojiIdentifier="NO_EMOJI";return N};
_.p(fH,_.k);_.V=fH.prototype;_.V.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.V.desktopFountainEmojiSizePxChanged=function(){_.CO(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.V.createUserReactionAnimation=function(N){this.createEmojiAnimation(N,!0)};
_.V.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var N;((N=this.data)==null?0:N.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.uF("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.W6(this.emojiContainer.children)).forEach(function(t){t.remove()})};
_.V.detached=function(){this.cleanupFountain()};
_.V.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var N;this.reactionBuckets=_.WW.unsafeClone((N=this.emojiFountainData)==null?void 0:N.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.V.processEmojiBucket=function(N){var t=this;if(this.reactionBuckets&&!(N>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var O=this.reactionBuckets[N];this.generateEmojiAnimations(O);if(N<this.reactionBuckets.length-1){var H;if(O==null?0:(H=O.duration)==null?0:H.seconds)this.emojiBucketTimerId=setTimeout(function(){t.processEmojiBucket(N+1)},Number(O.duration.seconds)*1E3)}}};
_.V.generateEmojiAnimations=function(N){var t=this,O=this.getRandomEmojiIdFromBucketWithOverride(N);if(O&&O!==this.noEmojiIdentifier){var H=0;N.targetEps?(H=this.linearInterpolateBounded(1,20,100,12,N.emojiSizeIndex||0),this.createEmojiAnimation(O,!1,N.emojiAnimationMs,H),H=this.getEmojiDelayMsFromTargetEps(N.targetEps)):(this.createEmojiAnimation(O),H=this.getEmojiDelayMsFromDistribution(N.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){t.generateEmojiAnimations(N)},H)}};
_.V.getRandomEmojiIdFromBucketWithOverride=function(N){if(!(N&&N.reactionsData&&N.reactionsData.length&&N.totalReactions))return this.noEmojiIdentifier;for(var t=N.totalReactions,O=1,H=_.D(N.reactionsData),A=H.next();!A.done;A=H.next())A=A.value,(A.reactionWeightOverride||A.reactionWeightOverride===0)&&A.reactionCount&&(t-=A.reactionCount,O-=A.reactionWeightOverride);H=!0;O<0&&(H=!1,t=N.totalReactions,O=1);if(H&&O>0&&t===0)if(O===1){A=0;for(var Z=_.D(N.reactionsData),U=Z.next();!U.done;U=Z.next())U=
U.value,U.reactionCount&&U.reactionCount>0&&A++;A=1/A;Z=_.D(N.reactionsData);for(U=Z.next();!U.done;U=Z.next())U.value.reactionWeightOverride=A}else for(A=1/(1-O),Z=_.D(N.reactionsData),U=Z.next();!U.done;U=Z.next())U=U.value,U.reactionWeightOverride&&(U.reactionWeightOverride*=A);A=Math.random();Z=0;U=_.D(N.reactionsData);for(var C=U.next();!C.done;C=U.next())if(C=C.value,C.reactionCount&&(Z=(C.reactionWeightOverride||C.reactionWeightOverride===0)&&H?Z+C.reactionWeightOverride:Z+O*C.reactionCount/
t,Z>A&&(C.reactionCount--,N.totalReactions--,C=this.reactionItemToEmojiString(C),C!==this.noEmojiIdentifier)))return C;return this.noEmojiIdentifier};
_.V.reactionItemToEmojiString=function(N){if(N.unicodeEmojiId)return N.unicodeEmojiId;if(N.emoteId)return N.emoteId;if(N.videoReactionType)switch(N.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.V.createEmojiAnimation=function(N,t,O,H){t=t===void 0?!1:t;this.lastEmojiRequestedForTesting=N;var A=N.startsWith("yt-icons:"),Z=_.y3(this.emojiManager,N);if(Z||A){var U=document.createElement("emoji");U.classList.add("yt-emoji-fountain-view-model");U.classList.add(Cd$[Math.floor(Math.random()*Cd$.length)]);var C=document.createElement("div");C.classList.add("yt-emoji-fountain-view-model");C.classList.add("horizontal-container");C.classList.add(Kv9[Math.floor(Math.random()*Kv9.length)]);t?(O=document.createElement("div"),
O.classList.add("user-reaction-bubble"),O.classList.add("yt-emoji-fountain-view-model"),C.appendChild(O)):(O&&(U.style.animationDuration=O+"ms",C.style.animationDuration=O+"ms"),H&&(U.style.width=H+"px",U.style.height=H+"px"));A?(A=document.createElement("yt-icon"),A.polymerController.icon=N,H&&(A.style.width=H+"px",A.style.height=H+"px"),N=A):N=this.emojiManager.createEmoji(Z,!1);N.classList.add("yt-emoji-fountain-view-model");C.appendChild(N);U.appendChild(C);this.emojiContainer.appendChild(U);
U.addEventListener("animationend",function(){U.remove()});
var F,g;if((F=this.data)==null?0:(g=F.loggingDirectives)==null?0:g.trackingParams)t=t?_.UM(183501):_.UM(183500),tol(this.data.loggingDirectives.trackingParams,t),_.FcM(t);setTimeout(function(){U&&U.remove()},2E3)}};
_.V.getEmojiDelayMsFromDistribution=function(N){return Math.random()*(N||1)*1E3};
_.V.getEmojiDelayMsFromTargetEps=function(N){return Math.random()*2*(1/N)*1E3};
_.V.linearInterpolateBounded=function(N,t,O,H,A){A=Math.min(Math.max(A,N),O);return(t*(O-A)+H*(A-N))/(O-N)};
fH.prototype.onEmojiFountainDataEntityUpdate=fH.prototype.onEmojiFountainDataEntityUpdate;fH.prototype.desktopFountainEmojiSizePxChanged=fH.prototype.desktopFountainEmojiSizePxChanged;fH.prototype.isActiveChanged=fH.prototype.isActiveChanged;_.W([_.X(),_.Q("design:type",_.gO)],fH.prototype,"emojiManager",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],fH.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],fH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fH.prototype,"data",void 0);_.W([_.X({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(N,t){return _.CM(N.entities,"emojiFountainDataEntity",t)}}),
_.Q("design:type",Object)],fH.prototype,"emojiFountainData",void 0);_.W([_.X(),_.Q("design:type",Boolean)],fH.prototype,"isActive",void 0);_.W([_.gz("isActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fH.prototype,"isActiveChanged",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],fH.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",String)],fH.prototype,"lastEmojiRequestedForTesting",void 0);
_.W([_.X({value:function(){return _.uP("desktop_fountain_emoji_size_px",20)}}),
_.Q("design:type",Number)],fH.prototype,"desktopFountainEmojiSizePx",void 0);_.W([_.gz("desktopFountainEmojiSizePx"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fH.prototype,"desktopFountainEmojiSizePxChanged",null);_.W([_.B2("#emoji-container"),_.Q("design:type",HTMLElement)],fH.prototype,"emojiContainer",void 0);
_.W([_.gz("emojiFountainData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fH.prototype,"onEmojiFountainDataEntityUpdate",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],fH);
_.n(fH,"yt-emoji-fountain-view-model",function(){if(Ugw===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Dgd===void 0&&(Dgd=document.createElement("template"));var H=Dgd;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Ugw=N}N=Ugw;return N},{mode:0});var Fv9;var dg1;var nH=function(){return _.k.apply(this,arguments)||this};
_.p(nH,_.k);nH.prototype.onChoiceChanged=function(){this.data&&_.CO(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
nH.prototype.onChoiceChanged=nH.prototype.onChoiceChanged;_.W([_.X(),_.Q("design:type",Object)],nH.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nH.prototype,"onChoiceChanged",null);_.W([_.en({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],nH);
_.n(nH,"yt-live-chat-banner-poll-choice",function(){if(dg1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Fv9===void 0&&(Fv9=document.createElement("template"));var H=Fv9;O.call(t,H.content.cloneNode(!0),N.content.firstChild);dg1=N}N=dg1;return N},{mode:0});var g3s;var y_D;var W3=function(){var N=_.k.apply(this,arguments)||this;N.modern=_.h("web_button_rework_with_live");N.small=!1;return N};
_.p(W3,_.k);W3.prototype.computeIsSmall=function(){var N;return((N=this.buttonOverrides)==null?void 0:N.size)==="S"};
W3.prototype.computeId=function(){return this.data&&this.data.targetId};
_.W([_.Y(_.Uo.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],W3.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Q("design:type",String)],W3.prototype,"id",void 0);_.W([_.X(),_.Q("design:type",Object)],W3.prototype,"buttonOverrides",void 0);_.W([_.X(),_.Q("design:type",Object)],W3.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],W3.prototype,"modern",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Q("design:type",Object)],W3.prototype,"small",void 0);_.W([_.en({disableElementRegistration:!0,is:"yt-live-chat-button"})],W3);
_.n(W3,"yt-live-chat-button",function(){if(y_D===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;g3s===void 0&&(g3s=document.createElement("template"));var H=g3s;O.call(t,H.content.cloneNode(!0),N.content.firstChild);y_D=N}N=y_D;return N},{mode:0});var Bam;var c_l;var rm=function(){var N=_.k.apply(this,arguments)||this;N.inCollapsedBanner=!1;N.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};N.questionButtonOverrides={style:"mono",type:"filled"};return N};
_.p(rm,_.k);_.V=rm.prototype;_.V.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.V.onContextMenuButtonClick=function(N){this.ytLiveChatItemBehavior.showContextMenu(N)};
_.V.onYtRendererstamperFinished=function(){this.menuButton=_.O6(this.hostElement).querySelector("#menu-button")};
_.V.dataChanged=function(){var N,t;if((t=_.M((N=this.data)==null?void 0:N.overflowMenuButton,_.g_))==null?0:t.command)this.data.contextMenuEndpoint=_.M(this.data.overflowMenuButton,_.g_).command};
_.V.onButtonClick=function(){var N,t=_.M((N=this.data)==null?void 0:N.askQuestionButton,_.g_);if(t){if(t.trackingParams&&(N=_.ib(t.trackingParams))){var O=_.z8();O&&_.IX(O,N)}_.or(this.hostElement,"innertube-command",t.command)}};
rm.prototype.onYtRendererstamperFinished=rm.prototype.onYtRendererstamperFinished;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],rm.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],rm.prototype,"ytLiveChatItemBehavior",void 0);_.W([_.X({observer:"dataChanged"}),_.Q("design:type",Object)],rm.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],rm.prototype,"inCollapsedBanner",void 0);_.W([_.X(),_.Q("design:type",Object)],rm.prototype,"buttonOverrides",void 0);_.W([_.X(),_.Q("design:type",Object)],rm.prototype,"questionButtonOverrides",void 0);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rm.prototype,"onYtRendererstamperFinished",null);
_.W([_.en({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],rm);
_.n(rm,"yt-live-chat-call-for-questions-renderer",function(){if(c_l===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Bam===void 0&&(Bam=document.createElement("template"));var H=Bam;O.call(t,H.content.cloneNode(!0),N.content.firstChild);c_l=N}N=c_l;return N},{mode:0});var $gd={};$gd.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var N=this;window.requestAnimationFrame(function(){N.restoreFocusNode_||(N.restoreFocusNode_=document.activeElement);var t=_.rCZ(N.hostElement);t.length&&t[t.length-1].focus()})},
isAttachedChanged_:function(N,t){N?this.focusChild_():t&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(N){this.hidden||_.m1(N).indexOf(this.hostElement)!==-1||(N.stopPropagation(),this.focusChild_())}};var j09;var ibs;var IV=function(){return _.k.apply(this,arguments)||this};
_.p(IV,_.k);IV.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
IV.prototype.onClick=function(N){N.target!==this.confirmButton&&N.target!==this.cancelButton&&(this.hidden=!0)};
_.W([_.B2("#confirm_button"),_.Q("design:type",Object)],IV.prototype,"confirmButton",void 0);_.W([_.B2("#cancel_button"),_.Q("design:type",Object)],IV.prototype,"cancelButton",void 0);_.W([_.X(),_.Q("design:type",uWD)],IV.prototype,"data",void 0);_.W([_.X({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],IV.prototype,"hidden",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y($gd.YtLiveChatDialogBehavior),_.Q("design:type",Object)],IV.prototype,"ytLiveChatDialogBehavior",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],IV);
var uWD=_.n(IV,"yt-live-chat-dialog-renderer",function(){if(ibs===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;j09===void 0&&(j09=document.createElement("template"));var H=j09;O.call(t,H.content.cloneNode(!0),N.content.firstChild);ibs=N}N=ibs;return N},{mode:0});var S7$;var hSu,MOm=function(){if(hSu!==void 0)return hSu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;S7$===void 0&&(S7$=document.createElement("template"));var H=S7$;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return hSu=N};var bbl;var pXD;var lx=function(){var N=_.k.apply(this,arguments)||this;N.tooltip=null;N.data=null;N.id="";N.active=!1;N.icon="";N.disabled=!1;N.showTooltip=!1;N.useToggledActiveState=!0;N.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return N};
_.p(lx,_.k);_.V=lx.prototype;
_.V.dataChanged=function(){var N;((N=this.data)==null?0:N.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.U6)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var t;if((t=this.data)==null?0:t.disabled)this.disabled=!0};
_.V.computeId=function(N){return N};
_.V.computeIcon=function(N,t){if(!N)return"";if(this.useToggledActiveState)return"yt-icons:"+N.toLowerCase();var O,H;return t&&((O=this.data)==null?0:(H=O.toggledIcon)==null?0:H.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+N.toLowerCase()};
_.V.logPDGEntryPoint=function(){_.GUp(_.KT("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.V.immediatelyShowTooltip=function(){var N=_.O6(this.hostElement).querySelector("#tooltip");N.animationDelay=0;N.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};N.show()};
_.V.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.V.onClick=function(N){var t;((t=this.data)==null?0:t.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),N.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.or(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.V.computeShowTooltip=function(N,t){return!!(N&&N.tooltip&&t)};
_.V.maybeUpdateTooltipText=function(){var N=this,t;if((t=this.data)==null?0:t.tooltip){var O=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.U6)(N.tooltip).textContent=O},250)}};
_.V.handleLiveChatActions=function(N){var t=this;N.length&&(this.id!=="creator"&&this.id!=="product-picker"||N.forEach(function(O){(O=t.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",O))&&O.durationSec===O.fullDurationSec&&t.startBubble(t.colorFromDecimal(O.startBackgroundColor))}))};
_.V.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.V.startBubble=function(N){_.CO(this.hostElement,{"--yt-live-chat-monetization-button-glow":N});this.hostElement.setAttribute("bubble","")};
_.V.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.V.colorFromDecimal=function(N){typeof N==="string"&&(N=Number(N));return"rgba("+[N>>16&255,N>>8&255,N&255,(N>>24&255)/255].join()+")"};
lx.prototype.onAnimationEnd=lx.prototype.onAnimationEnd;lx.prototype.disabledChanged=lx.prototype.disabledChanged;lx.prototype.dataChanged=lx.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],lx.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Uo.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],lx.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lx.prototype,"data",void 0);_.W([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Q("design:type",Object)],lx.prototype,"id",void 0);_.W([_.X({notify:!0,reflectToAttribute:!0}),_.Q("design:type",Object)],lx.prototype,"active",void 0);
_.W([_.X({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Q("design:type",Object)],lx.prototype,"icon",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],lx.prototype,"disabled",void 0);_.W([_.X({computed:"computeShowTooltip(data, disabled)"}),_.Q("design:type",Object)],lx.prototype,"showTooltip",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],lx.prototype,"useToggledActiveState",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lx.prototype,"dataChanged",null);_.W([_.gz("disabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lx.prototype,"disabledChanged",null);_.W([_.dz("animationend"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],lx.prototype,"onAnimationEnd",null);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],lx);
_.n(lx,"yt-live-chat-icon-toggle-button-renderer",function(){if(pXD===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;bbl===void 0&&(bbl=document.createElement("template"));var H=bbl;O.call(t,H.content.cloneNode(!0),N.content.firstChild);pXD=N}N=pXD;return N},{mode:0});var Lvr;var zSw;var QU=function(){return _.k.apply(this,arguments)||this};
_.p(QU,_.k);QU.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.W([_.X(),_.Q("design:type",Object)],QU.prototype,"data",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.en({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],QU);
_.n(QU,"yt-live-chat-message-input-prompt-header-renderer",function(){if(zSw===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Lvr===void 0&&(Lvr=document.createElement("template"));var H=Lvr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);zSw=N}N=zSw;return N},{mode:0});var Y7m;var a4$;var Ta9;var wXr;var eS$;var Pdl;var XXV=function(){return _.k.apply(this,arguments)||this};
_.p(XXV,_.k);_.W([_.X(),_.Q("design:type",Object)],XXV.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],XXV);
_.n(XXV,"yt-live-chat-message-subtext-renderer",function(){if(Pdl===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;eS$===void 0&&(eS$=document.createElement("template"));var H=eS$;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Pdl=N}N=Pdl;return N},{mode:0});var mt=function(){var N=_.k.apply(this,arguments)||this;N.subtextOnBottom=!1;N.buttonOverrides={style:"mono",type:"tonal"};return N};
_.p(mt,_.k);mt.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],mt.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],mt.prototype,"subtextOnBottom",void 0);_.W([_.X(),_.Q("design:type",Object)],mt.prototype,"buttonOverrides",void 0);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],mt);
_.n(mt,"yt-live-chat-message-renderer",function(){if(wXr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Ta9===void 0&&(Ta9=document.createElement("template"));var H=Ta9;O.call(t,H.content.cloneNode(!0),N.content.firstChild);wXr=N}N=wXr;return N},{mode:0});var xgl;var kWu;var EE=function(){var N=_.k.apply(this,arguments)||this;N.isRemovable=!1;N.hasPrefilledText=!1;N.isInputDirty=!1;N.overCharacterLimit=!1;N.underCharacterLimit=!1;N.showErrorMessage=!1;return N};
_.p(EE,_.k);_.V=EE.prototype;_.V.computeId=function(){return this.data.id};
_.V.computeInputData=function(){return this.data.inputData};
_.V.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.V.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.V.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.V.getLiveChatRichMessageInput=function(){return _.O6(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.V.clearInput=function(){_.O6(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.V.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.V.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.V.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.V.handleTextInputCharCountChanged=function(N){N=N.detail&&N.detail.characterCount;N!==void 0&&(this.characterCount=N,N!==0&&(this.isInputDirty=!0))};
_.V.onInputFocusOut=function(){this.isInputDirty=!0};
_.V.onClickCloseButton=function(){_.or(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
EE.prototype.handleTextInputCharCountChanged=EE.prototype.handleTextInputCharCountChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],EE.prototype,"data",void 0);_.W([_.X({computed:"computeId(data.id)"}),_.Q("design:type",String)],EE.prototype,"id",void 0);_.W([_.X({computed:"computeInputData(data.inputData)"}),_.Q("design:type",Object)],EE.prototype,"inputData",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Q("design:type",Object)],EE.prototype,"isRemovable",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Q("design:type",Object)],EE.prototype,"hasPrefilledText",void 0);_.W([_.X({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Q("design:type",Number)],EE.prototype,"charactersRemaining",void 0);
_.W([_.X(),_.Q("design:type",Number)],EE.prototype,"characterCount",void 0);_.W([_.X(),_.Q("design:type",Object)],EE.prototype,"isInputDirty",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Q("design:type",Object)],EE.prototype,"overCharacterLimit",void 0);_.W([_.X({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Q("design:type",Object)],EE.prototype,"underCharacterLimit",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Q("design:type",Object)],EE.prototype,"showErrorMessage",void 0);_.W([_.dz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],EE.prototype,"handleTextInputCharCountChanged",null);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],EE);
_.n(EE,"yt-live-chat-poll-editor-input",function(){if(kWu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;xgl===void 0&&(xgl=document.createElement("template"));var H=xgl;O.call(t,H.content.cloneNode(!0),N.content.firstChild);kWu=N}N=kWu;return N},{mode:0});var q7N;var f4w;var n3w={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},G0=function(){var N=_.k.apply(this,arguments)||this;N.modern=_.h("web_button_rework_with_live");N.closeButtonOverrides={iconPosition:"icon-only"};N.startButtonOverrides={style:"mono",type:"filled"};N.addOptionButtonOverrides={style:"mono",type:"text"};return N};
_.p(G0,_.k);_.V=G0.prototype;
_.V.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.V.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var N;_.M((N=this.data)==null?void 0:N.startButton,_.g_)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.computeId=function(){return this.data&&this.data.id||""};
_.V.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.V.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.V.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.V.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.V.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var N=0;N<this.pollEditorInfoWithDefaults.minPollOptions;N++)this.addPollOptionData()};
_.V.getIsValidPoll=function(){var N=this;if(!this.pollEditorInfoWithDefaults)return!1;var t=this.pollEditorInfoWithDefaults,O=t.minPollOptionChars,H=t.maxPollOptionChars,A=t.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>t.maxPollQuestionChars)return!1;t=_.O6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(t).every(function(Z,U){Z=Z.characterCount;!Z&&A[U]&&(Z=N.ytRendererBehavior.getSimpleString(A[U]).length);return Z!==void 0&&Z>=O&&Z<=H})};
_.V.isValidPollChanged=function(){var N;_.M((N=this.data)==null?void 0:N.startButton,_.g_)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.V.addPollOptionData=function(){var N=this.pollEditorInfoWithDefaults,t=N.maxPollOptionChars,O=N.optionPlaceholderText,H=N.customOptionPlaceholderText,A=N.pollOptionData;this.currentNumPollOptions>=N.maxPollOptions||(N={liveChatPollOptionInput:{inputData:{placeholder:H[this.currentNumPollOptions]||O,maxCharacterLimit:t},maxCharacterLimit:t,minCharacterLimit:N.minPollOptionChars,hasPrefilledText:!!H[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=N.minPollOptions}},A.charCountErrorText&&
(N.liveChatPollOptionInput.charCountErrorText=A.charCountErrorText),A.charsRemainingAltLabel&&(N.liveChatPollOptionInput.charsRemainingAltLabel=A.charsRemainingAltLabel),A.removeOptionAltText&&(N.liveChatPollOptionInput.removeOptionAltText=A.removeOptionAltText),this.push("pollOptionsData",N),A=Array.from(_.O6(_.O6(this.hostElement).querySelector("#poll-options")).children),A.forEach(function(Z,U){Z.polymerController.set("data.id",U)}),_.O6(A[A.length-1]).querySelector("#input").focus())};
_.V.getPollOptionInputValues=function(){var N=this,t=[],O=_.O6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),H=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(O).forEach(function(A,Z){var U=null;A=A.getLiveChatRichMessageInput();var C;(A==null?0:(C=A.textSegments)==null?0:C.length)?U=_.kV(A):H[Z]&&(U=N.formattedStringToLiveChatRichMessageInput(H[Z]));t.push(U)});
return t};
_.V.requestCreateAndStartPoll=function(N){var t=this.getPollOptionInputValues();if(!t.some(function(H){return!H})){t={optionText:t};
var O=_.O6(_.O6(this.hostElement).querySelector("#poll-question")).firstChild;O&&O.liveChatRichMessageInput&&(t.questionText=_.kV(O.liveChatRichMessageInput));_.tb(this.hostElement,[N,t])}};
_.V.selectedChanged=function(){if(this.selected){var N=_.O6(_.O6(this.hostElement).querySelector("#start-button")).firstElementChild;if(N){var t;(t=_.O6(N).querySelector("#button")||_.Zr(N).querySelector("button"))==null||t.focus()}}};
_.V.handleTextInputChanged=function(N){var t;((t=N.target)==null?void 0:t.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=N.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.V.handleStartButtonAction=function(N){N.detail.actionName==="yt-service-request"&&(N.stopPropagation(),(N=N.detail.args[1])&&this.requestCreateAndStartPoll(N))};
_.V.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(N){this.createPollRequestInFlight=!1;(N=N.detail&&N.detail.data)&&N.success&&(_.or(this.hostElement,"picker-cancelled"),_.sl(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.V.onCloseClick=function(){_.or(this.hostElement,"picker-cancelled");_.sl(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.V.handlePollEditorInputClosed=function(N){var t=this.pollOptionsData.findIndex(function(O){return O.liveChatPollOptionInput.id===N.detail.id});
this.splice("pollOptionsData",t,1);this.isValidPoll=this.getIsValidPoll()};
_.V.onPickerCancelled=function(){this.reset()};
_.V.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var N=_.O6(_.O6(this.hostElement).querySelector("#poll-question")).firstChild;N&&N.setLiveChatRichMessageInput(null);if(N=_.O6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){N=_.D(Array.from(N));for(var t=N.next();!t.done;t=N.next())t.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.V.formattedStringToLiveChatRichMessageInput=function(N){return N.simpleText?{text_segments:[N.simpleText]}:{text_segments:N.runs}};
_.cv.Object.defineProperties(G0.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(n3w,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
G0.prototype.onPickerCancelled=G0.prototype.onPickerCancelled;G0.prototype.handlePollEditorInputClosed=G0.prototype.handlePollEditorInputClosed;G0.prototype.handleServiceRequestCompleted=G0.prototype.handleServiceRequestCompleted;G0.prototype.handleServiceRequestSent=G0.prototype.handleServiceRequestSent;G0.prototype.handleTextInputChanged=G0.prototype.handleTextInputChanged;G0.prototype.selectedChanged=G0.prototype.selectedChanged;G0.prototype.isValidPollChanged=G0.prototype.isValidPollChanged;
G0.prototype.shouldInitializePollChanged=G0.prototype.shouldInitializePollChanged;G0.prototype.dataChanged=G0.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],G0.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G0.prototype,"modern",void 0);
_.W([_.X(),_.Q("design:type",Object)],G0.prototype,"closeButtonOverrides",void 0);_.W([_.X(),_.Q("design:type",Object)],G0.prototype,"startButtonOverrides",void 0);_.W([_.X(),_.Q("design:type",Object)],G0.prototype,"addOptionButtonOverrides",void 0);_.W([_.X({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Q("design:type",String)],G0.prototype,"id",void 0);_.W([_.X({value:function(){return[]}}),
_.Q("design:type",Array)],G0.prototype,"pollOptionsData",void 0);_.W([_.a("pollEditorInfoWithDefaults"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],G0.prototype,"pollQuestionData",null);_.W([_.X({value:0}),_.Q("design:type",Number)],G0.prototype,"pollQuestionCharacterCount",void 0);_.W([_.a("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],G0.prototype,"pollQuestionCharactersRemaining",null);
_.W([_.X({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Q("design:type",Boolean)],G0.prototype,"overQuestionCharacterLimit",void 0);_.W([_.a("data.pollEditorInfo"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],G0.prototype,"pollEditorInfoWithDefaults",null);_.W([_.X({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Q("design:type",Number)],G0.prototype,"currentNumPollOptions",void 0);
_.W([_.X({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],G0.prototype,"hasMaxNumPollOptions",void 0);_.W([_.a("pollEditorInfoWithDefaults","pollOptionsData"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G0.prototype,"shouldInitializePoll",null);_.W([_.X(),_.Q("design:type",Object)],G0.prototype,"isValidPoll",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],G0.prototype,"createPollRequestInFlight",void 0);_.W([_.X(),_.Q("design:type",Object)],G0.prototype,"selected",void 0);_.W([_.X({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Q("design:type",Boolean)],G0.prototype,"showQuestionErrorMessage",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G0.prototype,"dataChanged",null);_.W([_.gz("shouldInitializePoll"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G0.prototype,"shouldInitializePollChanged",null);_.W([_.gz("isValidPoll"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G0.prototype,"isValidPollChanged",null);
_.W([_.gz("selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G0.prototype,"selectedChanged",null);_.W([_.dz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G0.prototype,"handleTextInputChanged",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G0.prototype,"handleServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G0.prototype,"handleServiceRequestCompleted",null);
_.W([_.dz("yt-live-chat-poll-editor-input-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],G0.prototype,"handlePollEditorInputClosed",null);_.W([_.dz("picker-cancelled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G0.prototype,"onPickerCancelled",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],G0);
_.n(G0,"yt-live-chat-poll-editor-panel-renderer",function(){if(f4w===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;q7N===void 0&&(q7N=document.createElement("template"));var H=q7N;O.call(t,H.content.cloneNode(!0),N.content.firstChild);f4w=N}N=f4w;return N},{mode:0});var WvD;var r_$;var RV=function(){return _.k.apply(this,arguments)||this};
_.p(RV,_.k);RV.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
RV.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.cv.Object.defineProperties(RV.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var N,t;return(N=this.data)==null?void 0:(t=N.title)==null?void 0:t.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var N;return _.wF((N=this.data)==null?void 0:N.onTapCommand)}}});
_.W([_.Y(_.nD.YtEndpointBehavior),_.Q("design:type",Object)],RV.prototype,"ytEndpointBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],RV.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],RV.prototype,"itemId",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RV.prototype,"hasPromotion",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],RV.prototype,"innertubeCommand",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],RV);
_.n(RV,"yt-live-chat-product-picker-panel-item-view-model",function(){if(r_$===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;WvD===void 0&&(WvD=document.createElement("template"));var H=WvD;O.call(t,H.content.cloneNode(!0),N.content.firstChild);r_$=N}N=r_$;return N},{mode:0});var I4A;var l4$;var v3=function(){var N=_.k.apply(this,arguments)||this;N.id="product-picker";N.selected=!1;N.closeButtonId="close-button";N.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return N};
_.p(v3,_.k);_.V=v3.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var N=_.O6(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");N.length&&N[0].focus()};
_.V.onCloseBuyFlow=function(){_.or(this.hostElement,"picker-cancelled")};
_.V.onCloseClick=function(){_.or(this.hostElement,"picker-cancelled");var N;((N=this.data)==null?0:N.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.M(this.data.closeButton,_.$9))};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.or(this.hostElement,"picker-cancelled")};
v3.prototype.observeSelected=v3.prototype.observeSelected;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],v3.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],v3.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],v3.prototype,"id",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],v3.prototype,"selected",void 0);_.W([_.X(),_.Q("design:type",Object)],v3.prototype,"closeButtonId",void 0);_.W([_.gz("selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v3.prototype,"observeSelected",null);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],v3);
_.n(v3,"yt-live-chat-product-picker-panel-view-model",function(){if(l4$===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;I4A===void 0&&(I4A=document.createElement("template"));var H=I4A;O.call(t,H.content.cloneNode(!0),N.content.firstChild);l4$=N}N=l4$;return N},{mode:0});var Q0A;var mgV;var Jz=function(){var N=_.k.apply(this,arguments)||this;N.iconId="";N.icon="";N.disabled=!1;N.systemIcons=_.h("kevlar_system_icons");return N};
_.p(Jz,_.k);_.V=Jz.prototype;_.V.computeIconId=function(N){return N&&N.icon&&N.icon.iconType?N.icon.iconType.toLowerCase():""};
_.V.computeIcon=function(N){return N&&N.icon&&N.icon.iconType?(N=N.icon.iconType.toLowerCase(),(N.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+N):""};
_.V.computeDisabled=function(N){return!!N};
_.V.computeCommand=function(N,t){return t?void 0:N};
_.V.computeTooltip=function(N,t){return t&&N?N:""};
_.V.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.cv.Object.defineProperties(Jz.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var N="",t,O,H;if((t=this.data)==null?0:(O=t.text)==null?0:(H=O.runs)==null?0:H.length)N=this.data.text.runs[0].text||"";else{var A,Z;if((A=this.data)==null?0:(Z=A.text)==null?0:Z.simpleText)N=this.data.text.simpleText}var U,C,F;if((U=this.data)==null?0:(C=U.subtext)==null?0:(F=C.runs)==null?0:F.length)N&&(N+=". "),N+=this.data.subtext.runs[0].text||"";else{var g,B;if((g=this.data)==null?0:(B=g.subtext)==
null?0:B.simpleText)N&&(N+=". "),N+=this.data.subtext.simpleText}return N}}});
_.W([_.Y(_.nD.YtEndpointBehavior),_.Q("design:type",Object)],Jz.prototype,"ytEndpointBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Jz.prototype,"data",void 0);_.W([_.X({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],Jz.prototype,"iconId",void 0);
_.W([_.X({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Q("design:type",Object)],Jz.prototype,"icon",void 0);_.W([_.X({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Q("design:type",Object)],Jz.prototype,"disabled",void 0);_.W([_.X({computed:"computeCommand(data.command, disabled)"}),_.Q("design:type",Object)],Jz.prototype,"command",void 0);_.W([_.X({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Q("design:type",String)],Jz.prototype,"tooltip",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Jz.prototype,"systemIcons",void 0);_.W([_.a("data.text","data.subtext"),_.X(),_.Q("design:type",String),_.Q("design:paramtypes",[])],Jz.prototype,"ariaLabel",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Jz);
_.n(Jz,"yt-live-chat-product-button-renderer",function(){if(mgV===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Q0A===void 0&&(Q0A=document.createElement("template"));var H=Q0A;O.call(t,H.content.cloneNode(!0),N.content.firstChild);mgV=N}N=mgV;return N},{mode:0});var E38;var GWN;var oV=function(){var N=_.k.apply(this,arguments)||this;N.selected=!1;N.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return N};
_.p(oV,_.k);_.V=oV.prototype;_.V.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.computeId=function(N){return N.id||""};
_.V.onCloseClick=function(){_.or(this.hostElement,"picker-cancelled")};
_.V.observeSelected=function(){this.selected&&this.hostElement.focus();var N=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");N.length&&N[0].focus()};
_.V.onCloseBuyFlow=function(){_.or(this.hostElement,"picker-cancelled")};
_.V.onCloseEngageWithAudienceEditorPanels=function(){_.or(this.hostElement,"picker-cancelled")};
oV.prototype.observeSelected=oV.prototype.observeSelected;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],oV.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oV.prototype,"data",void 0);
_.W([_.X({computed:"computeId(data)",reflectToAttribute:!0}),_.Q("design:type",String)],oV.prototype,"id",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],oV.prototype,"selected",void 0);_.W([_.gz("selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oV.prototype,"observeSelected",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],oV);
_.n(oV,"yt-live-chat-product-picker-renderer",function(){if(GWN===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;E38===void 0&&(E38=document.createElement("template"));var H=E38;O.call(t,H.content.cloneNode(!0),N.content.firstChild);GWN=N}N=GWN;return N},{mode:0});var RSd;var v3R;var J_w;var o3N;var sE=function(){return _.k.apply(this,arguments)||this};
_.p(sE,_.k);sE.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()};
sE.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
sE.prototype.created=function(){this.ids={background:_.ta(),maskOne:_.ta(),maskTwo:_.ta(),gradient:_.ta(),largeBackground:_.ta(),largeGradientOne:_.ta(),largeGradientTwo:_.ta(),largeGradientPath:_.ta()}};
sE.prototype.maybeLoadAnimationBackground=sE.prototype.maybeLoadAnimationBackground;_.W([_.X({value:!1}),_.Q("design:type",Boolean)],sE.prototype,"useLargeBackground",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],sE.prototype,"useAnimationBackground",void 0);_.W([_.X({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Q("design:type",Boolean)],sE.prototype,"useRegularBackground",void 0);
_.W([_.X(),_.Q("design:type",Object)],sE.prototype,"ids",void 0);_.W([_.X(),_.Q("design:type",Object)],sE.prototype,"lottieAnimation",void 0);_.W([_.B2("#animation-background"),_.Q("design:type",HTMLDivElement)],sE.prototype,"animationBackground",void 0);_.W([_.gz("useAnimationBackground"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sE.prototype,"maybeLoadAnimationBackground",null);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],sE);
_.n(sE,"yt-live-interactivity-component-background",function(){if(o3N===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;J_w===void 0&&(J_w=document.createElement("template"));var H=J_w;O.call(t,H.content.cloneNode(!0),N.content.firstChild);o3N=N}N=o3N;return N},{mode:0});var N5=function(){var N=_.k.apply(this,arguments)||this;N.characterCount=0;N.showInputErrorMessage=!1;N.startQnaRequestInFlight=!1;N.modern=_.h("web_button_rework_with_live");N.buttonOverrides={style:"mono",type:"filled"};N.closeButtonOverrides={iconPosition:"icon-only"};N.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return N};
_.p(N5,_.k);_.V=N5.prototype;
_.V.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.V.onCharacterCountChanged=function(N){var t,O,H,A,Z=(O=_.M(this==null?void 0:(t=this.data)==null?void 0:t.creatorCallForQuestions,Yv8))==null?void 0:(H=O.inputField)==null?void 0:(A=H.liveChatTextInputFieldRenderer)==null?void 0:A.maxCharacterLimit,U,C;Z!=null&&(N==null?void 0:(U=N.detail)==null?void 0:U.characterCount)!=null&&_.M(this==null?void 0:(C=this.data)==null?void 0:C.startButton,_.g_)&&(t=N.detail.characterCount>Z,this.set("data.startButton.buttonRenderer.isDisabled",N.detail.characterCount===
0||t),this.showInputErrorMessage=t)};
_.V.onCloseClick=function(){_.or(this.hostElement,"picker-cancelled");_.sl(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.onPickerCancelled=function(){var N=_.O6(this.hostElement).querySelector("#qna-creator-text-input-field");N&&N.setLiveChatRichMessageInput(null)};
_.V.handleOpenQnaStartPanel=function(){var N=_.O6(this.hostElement).querySelector("#qna-creator-text-input-field");N&&N.focus()};
_.V.handleStartButtonAction=function(N){var t=this;if(N.detail.actionName==="yt-service-request"&&(N.stopPropagation(),N=N.detail.args[1])){var O=_.O6(this.hostElement).querySelector("#qna-creator-text-input-field"),H;(O==null?0:(H=O.liveChatRichMessageInput)==null?0:H.textSegments)&&O.liveChatRichMessageInput.textSegments.length!==0&&(H={rich_message:_.kV(O.liveChatRichMessageInput)},_.tb(this.hostElement,[N,H]).then(function(){_.or(t.hostElement,"picker-cancelled")}))}};
_.V.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.V.handleServiceRequestCompleted=function(N){var t;N=N==null?void 0:(t=N.detail)==null?void 0:t.data;(N==null?0:N.actions)&&N.actions.length>0?this.startQnaRequestInFlight=!1:_.sl(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.V.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
N5.prototype.handleServiceRequestError=N5.prototype.handleServiceRequestError;N5.prototype.handleServiceRequestCompleted=N5.prototype.handleServiceRequestCompleted;N5.prototype.handleServiceRequestSent=N5.prototype.handleServiceRequestSent;N5.prototype.onPickerCancelled=N5.prototype.onPickerCancelled;N5.prototype.onCharacterCountChanged=N5.prototype.onCharacterCountChanged;_.W([_.X(),_.Q("design:type",Object)],N5.prototype,"characterCount",void 0);
_.W([_.X(),_.Q("design:type",Object)],N5.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],N5.prototype,"showInputErrorMessage",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],N5.prototype,"startQnaRequestInFlight",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],N5.prototype,"modern",void 0);_.W([_.X(),_.Q("design:type",Object)],N5.prototype,"buttonOverrides",void 0);
_.W([_.X(),_.Q("design:type",Object)],N5.prototype,"closeButtonOverrides",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],N5.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.Y(_.$n.YtLiveChatItemBehavior),_.Q("design:type",_.jN)],N5.prototype,"ytLiveChatItemBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],N5.prototype,"ytActionHandlerBehavior",void 0);_.W([_.dz("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],N5.prototype,"onCharacterCountChanged",null);_.W([_.dz("picker-cancelled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N5.prototype,"onPickerCancelled",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],N5.prototype,"handleServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],N5.prototype,"handleServiceRequestCompleted",null);
_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],N5.prototype,"handleServiceRequestError",null);_.W([_.en({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],N5);
_.n(N5,"yt-live-chat-qna-start-panel-renderer",function(){if(v3R===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;RSd===void 0&&(RSd=document.createElement("template"));var H=RSd;O.call(t,H.content.cloneNode(!0),N.content.firstChild);v3R=N}N=v3R;return N},{mode:0});var s0D;var N9d;var tQ=function(){return _.k.apply(this,arguments)||this};
_.p(tQ,_.k);tQ.prototype.dismiss=function(){_.or(this.hostElement,"yt-live-chat-error-message-dismiss")};
tQ.prototype.edit=function(){_.or(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.W([_.X(),_.Q("design:type",Object)],tQ.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],tQ);
_.n(tQ,"yt-live-chat-text-actions-error-message-renderer",function(){if(N9d===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;s0D===void 0&&(s0D=document.createElement("template"));var H=s0D;O.call(t,H.content.cloneNode(!0),N.content.firstChild);N9d=N}N=N9d;return N},{mode:0});var t4r;var O9$;var H9d;var Ayl;var Oq=function(){var N=_.k.apply(this,arguments)||this;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.newnessDotEligible=!1;return N};
_.p(Oq,_.k);Oq.prototype.sendReaction=function(){var N,t,O=((N=this.data)==null?void 0:N.emojiId)||((t=this.data)==null?void 0:t.emoteId),H;O&&((H=this.data)==null?0:H.shouldTriggerAnimation)&&_.sl(this.hostElement,"yt-create-user-reaction-animation",[O]);var A;(N=_.wF((A=this.data)==null?void 0:A.onTap))&&_.CC(N,this.hostElement);this.showNewnessDot&&_.sl(this.hostElement,"yt-hide-newness-dot")};
Oq.prototype.onClick=function(N){(!N||N.clientX||N.clientY)&&this.sendReaction()};
Oq.prototype.onKeyDown=function(N){N.key!=="Enter"&&N.key!==" "||N.repeat||this.sendReaction()};
_.cv.Object.defineProperties(Oq.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var N,t;return!!(((N=this.data)==null?0:N.emojiId)||((t=this.data)==null?0:t.emoteId))}}});
_.W([_.X(),_.Q("design:type",Object)],Oq.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Oq.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",Object)],Oq.prototype,"newnessDotEligible",void 0);_.W([_.a("data.maybeShowNewnessDot"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Oq.prototype,"showNewnessDot",null);_.W([_.a("data.emojiId","data.emoteId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Oq.prototype,"useYtImage",null);
_.W([_.wz({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Oq);
_.n(Oq,"yt-reaction-control-panel-button-view-model",function(){if(Ayl===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;H9d===void 0&&(H9d=document.createElement("template"));var H=H9d;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Ayl=N}N=Ayl;return N},{mode:0});var Z9A;var V4m;var H9=function(){var N=_.k.apply(this,arguments)||this;N.reactionControlPanelExpanded=!1;N.isDarkTheme=document.documentElement.hasAttribute("dark");N.newnessDotEligible=!1;return N};
_.p(H9,_.k);_.V=H9.prototype;_.V.expandedButtonsChanged=function(){var N,t;_.CO(this.hostElement,{"--expanded-buttons-height":((t=(N=this.expandedButtonsData)==null?void 0:N.length)!=null?t:0)*36+"px"})};
_.V.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.V.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.V.onMouseLeave=function(){var N=this;this.collapseTimer=setTimeout(function(){N.reactionControlPanelExpanded=!1},500)};
_.V.onFocusIn=function(){this.onMouseEnter()};
_.V.onFocusOut=function(){this.onMouseLeave()};
_.V.onCollapsedButtonFocusIn=function(){var N=this;setTimeout(function(){var t;(t=N.expandedButtons.querySelector("button"))==null||t.focus()},100)};
_.V.onCollapsedButtonFocusOut=function(N){N.stopPropagation()};
_.cv.Object.defineProperties(H9.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var N,t;return _.WW.unsafeClone((N=this.liveReactionsData)==null?void 0:N.emojiButtonData)||((t=this.data)==null?void 0:t.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var N;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((N=this.data)==null||!N.maybeShowNewnessDot)}}});
H9.prototype.expandedButtonsChanged=H9.prototype.expandedButtonsChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],H9.prototype,"ytLiveChatReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],H9.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],H9.prototype,"reactionControlPanelExpanded",void 0);_.W([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:soN}),_.Q("design:type",Object)],H9.prototype,"liveReactionsData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],H9.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",Object)],H9.prototype,"newnessDotEligible",void 0);
_.W([_.a("liveReactionsData","data.expandedButtons"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],H9.prototype,"expandedButtonsData",null);_.W([_.a("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.X({reflectToAttribute:!0}),_.Q("design:type",Object),_.Q("design:paramtypes",[])],H9.prototype,"showNewnessDot",null);_.W([_.B2("#expanded-buttons"),_.Q("design:type",HTMLElement)],H9.prototype,"expandedButtons",void 0);
_.W([_.gz("expandedButtonsData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],H9.prototype,"expandedButtonsChanged",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],H9);
_.n(H9,"yt-reaction-control-panel-view-model",function(){if(V4m===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Z9A===void 0&&(Z9A=document.createElement("template"));var H=Z9A;O.call(t,H.content.cloneNode(!0),N.content.firstChild);V4m=N}N=V4m;return N},{mode:0});var AQ=new _.sv("yt-live-chat"),D18=Date.parse("2024-7-24"),ZB=function(){var N=_.k.apply(this,arguments)||this;N.emojiManager=_.cR;N.newnessDotEligible=!1;N.newnessDotImpressionCounted=!1;N.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return N};
_.p(ZB,_.k);_.V=ZB.prototype;_.V.emojiCustomizationEnabledChanged=function(){var N;((N=this.data)==null?0:N.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((N=AQ.getCreationTime("emoji-customization-count"))&&N<D18&&AQ.set("emoji-customization-count","0"),N=Number(AQ.get("emoji-customization-count"))||0,N<3&&(this.newnessDotEligible=!0,AQ.set("emoji-customization-count",(N+1).toString())),this.newnessDotImpressionCounted=!0)};
_.V.hideNewnessDot=function(){this.newnessDotEligible=!1;AQ.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.V.handleReactionsMute=function(N){var t=_.z8(),O=_.UM(206221),H={checkboxData:{state:N?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};t&&_.IX(t,O,H);this.reactionsMuted=N};
_.V.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.V.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.cv.Object.defineProperties(ZB.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var N;return(!((N=this.liveReactionsData)==null||!N.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
ZB.prototype.liveReactionsSettingChanged=ZB.prototype.liveReactionsSettingChanged;ZB.prototype.emojiCustomizationEnabledChanged=ZB.prototype.emojiCustomizationEnabledChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ZB.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.DT),_.Q("design:type",Object)],ZB.prototype,"ytLiveChatReduxBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ZB.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ZB.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",_.gO)],ZB.prototype,"emojiManager",void 0);_.W([_.X(),_.Q("design:type",Object)],ZB.prototype,"newnessDotEligible",void 0);_.W([_.X(),_.Q("design:type",Object)],ZB.prototype,"newnessDotImpressionCounted",void 0);
_.W([_.X({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:NED}),_.Q("design:type",Boolean)],ZB.prototype,"liveReactionsSetting",void 0);_.W([_.X({selectorArgs:["data.liveReactionsDataEntityKey"],selector:soN}),_.Q("design:type",Object)],ZB.prototype,"liveReactionsData",void 0);_.W([_.X({value:function(){var N=_.h("enable_lwe_web_mute"),t=AQ.get("allow-reactions");return t===void 0?!1:!t&&N}}),
_.Q("design:type",Boolean)],ZB.prototype,"reactionsMuted",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ZB.prototype,"liveReactionsEnabled",null);_.W([_.gz("data.emojiCustomizationEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZB.prototype,"emojiCustomizationEnabledChanged",null);
_.W([_.gz("liveReactionsEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ZB.prototype,"liveReactionsSettingChanged",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],ZB);
_.n(ZB,"yt-reaction-control-panel-overlay-view-model",function(){if(O9$===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;t4r===void 0&&(t4r=document.createElement("template"));var H=t4r;O.call(t,H.content.cloneNode(!0),N.content.firstChild);O9$=N}N=O9$;return N},{mode:0});var U1m={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(N){var t=this.$.pickers.selected;if(t){_.O6(this.hostElement).removeAttribute(t+"-open");var O="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(O="#picker-buttons",t==="emoji"&&_.O6(this.hostElement).querySelector("#emoji-picker-button")&&(O="#emoji-picker-button"));if(O=_.O6(this.hostElement).querySelector(O).querySelector("#"+t))O.active=!1}O=N;t==N&&(O=null);t!=
N&&_.O6(this.hostElement).setAttribute(N+"-open","");this.$.pickers.selected=O;_.sl(this.hostElement,"yt-live-chat-picker-changed",[O])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var VK=function(){var N=_.k.apply(this,arguments)||this;N.numSentMessages=0;N.timeoutDurationMs=0;N.timeoutMs=0;N.lastTimeoutTimeMs=0;N.pendingMessageId="";N.hasFiredInitialFocusActions=!1;N.isBeforeFocusEnabled=!0;N.id="";N.characterCount=0;N.maxCharacterLimit=0;N.remainingCharacterCount=0;N.inputExpanded=!1;N.buttonOverrides={iconPosition:"icon-only"};N.inReplyPanel=!1;N.countdownRatio=0;N.isTooltipVisible=!1;N.tooltipTimeout=1E4;N.systemIcons=_.h("kevlar_system_icons");N.tallerEmojiPicker=_.h("live_chat_taller_emoji_picker");
N.sendReplyMessageInFlight=!1;N.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};N.onResize=function(){N.maybeToggleCharacterCount()};
return N};
_.p(VK,_.k);_.V=VK.prototype;
_.V.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.V.attached=function(){window.addEventListener("resize",this.onResize)};
_.V.detached=function(){window.removeEventListener("resize",this.onResize)};
_.V.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.V.sendMessage=function(){var N=this,t,O,H,A;return _.K(function(Z){if(N.sendDisabled)return Z.return();N.isTooltipVisible&&_.sl(N.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(N.data.sendButton&&N.data.sendButton.buttonRenderer){N.input.completeEmojis();t=N.data.sendButton.buttonRenderer.serviceEndpoint;if(!t)return Z.return();H=((O=_.M(t,_.M7R))==null?void 0:O.clientIdPrefix)||"";A={client_message_id:H+String(N.numSentMessages++),rich_message:_.kV(N.input.liveChatRichMessageInput)};
N.pendingMessageId=A.client_message_id;N.inReplyPanel&&(N.sendReplyMessageInFlight=!0);_.tb(N.hostElement,[t,A]);N.input.setLiveChatRichMessageInput(null)}_.Ty(Z)})};
_.V.handleSendButtonAction=function(N){N.detail.actionName==="yt-service-request"&&(N.stopPropagation(),this.sendMessage())};
_.V.onSendCompleted=function(N,t){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(N=this.get("timeoutDurationUsec",t.data))&&this.handleTimeout(Number(N)/1E3);this.errorMessage=this.get("errorMessage",t.data);this.pendingMessageId=""};
_.V.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.sl(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.V.handlePickerButtonToggle=function(N){N=N.detail.targetId;this.ytPickerBehavior.togglePicker_(N);if(N==="emoji")this.input.focus();else if(N==="qna-start-panel"){var t,O;(t=_.O6(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(O=t.querySelector("#qna-creator-text-input-field"))==null||O.focus()}};
_.V.onComponentReplaced=function(N){var t,O;N.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((t=N.replacement.liveChatMessageInputRenderer)==null?0:(O=t.headerRenderer)==null?0:O.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.V.onEmojiSelect=function(N){this.input.focus();this.input.insertEmoji(N.detail)};
_.V.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.V.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.sl(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.sl(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.V.onOpenPopupAction=function(N,t){var O=this;t===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.sl(O.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.V.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.V.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.V.focusChanged=function(){this.maybeToggleCharacterCount()};
_.V.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var N=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",N>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.V.computeId=function(){return this.data&&this.data.targetId||""};
_.V.computeSendDisabled=function(N,t,O,H){N=!!(!N||t&&N>t||H);(t=_.O6(this.hostElement).querySelector("#send-button"))&&t.children.length&&(t.children[0].disabled=N);return N};
_.V.handleTimeout=function(N){this.timeoutDurationMs=this.timeoutMs=N;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.V.updateTimeout=function(N){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(N-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=N,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.V.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.V.onErrorMessageEdit=function(N){this.input.setLiveChatRichMessageInput(N.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.V.errorMessageChanged=function(){var N=this;_.nO(function(){_.sl(N.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.V.computeAuthorNameColor=function(N){var t;if(_.h("live_chat_author_name_color_usernames")&&(N==null?0:(t=N.authorName)==null?0:t.simpleText))return _.Kyt(_.FyO(N.authorName.simpleText));if(_.h("live_chat_seed_color_usernames")&&(N==null?0:N.authorSeedColorArgb))return _.Kyt(_.Ad(N.authorSeedColorArgb));if(_.h("live_chat_colored_usernames"))return"#cc0000";var O;return _.h("live_chat_simple_color_usernames")&&(N==null?0:(O=N.authorName)==null?0:O.simpleText)&&(N==null?0:N.authorUsernameColorLight)&&
(N==null?0:N.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Ad(N.authorUsernameColorDark):_.Ad(N.authorUsernameColorLight):""};
_.V.onIsTooltipVisibleChanged=function(){var N=_.O6(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){N.hidden=!1;N.setAttribute("role","alert")},0):(N.hidden=!0,N.removeAttribute("role"))};
_.V.onFocusedChanged=function(N){this.inputFocused=N.detail.value};
_.cv.Object.defineProperties(VK.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:(t=N.pickers)==null?void 0:t.find(function(O){return O.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return N?this.ytRendererBehavior.getSimpleString(N):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
VK.prototype.onIsTooltipVisibleChanged=VK.prototype.onIsTooltipVisibleChanged;VK.prototype.errorMessageChanged=VK.prototype.errorMessageChanged;VK.prototype.onErrorMessageEdit=VK.prototype.onErrorMessageEdit;VK.prototype.onErrorMessageDismiss=VK.prototype.onErrorMessageDismiss;VK.prototype.focusChanged=VK.prototype.focusChanged;VK.prototype.characterCountChanged=VK.prototype.characterCountChanged;VK.prototype.onEmojiSelect=VK.prototype.onEmojiSelect;VK.prototype.handlePickerButtonToggle=VK.prototype.handlePickerButtonToggle;
VK.prototype.onSendError=VK.prototype.onSendError;VK.prototype.onSendCompleted=VK.prototype.onSendCompleted;VK.prototype.sendMessage=VK.prototype.sendMessage;VK.prototype.dataChanged=VK.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],VK.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(U1m.YtPickerBehavior),_.Q("design:type",Object)],VK.prototype,"ytPickerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Uo.YtLiveChatTooltipTargetingBehavior),_.Q("design:type",Object)],VK.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"hasFiredInitialFocusActions",void 0);
_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"isBeforeFocusEnabled",void 0);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"data",void 0);_.W([_.X({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Q("design:type",Object)],VK.prototype,"id",void 0);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"characterCount",void 0);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"maxCharacterLimit",void 0);
_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"remainingCharacterCount",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],VK.prototype,"inputExpanded",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],VK.prototype,"inputFocused",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],VK.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.W([_.X(),_.Q("design:type",_.SN)],VK.prototype,"participantsManager",void 0);
_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"buttonOverrides",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],VK.prototype,"inReplyPanel",void 0);_.W([_.a("characterCount, maxCharacterLimit, countdownActive"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VK.prototype,"sendDisabled",null);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"countdownRatio",void 0);
_.W([_.a("countdownRatio"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],VK.prototype,"countdownStrokeDashOffset",null);_.W([_.a("countdownRatio"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VK.prototype,"countdownActive",null);_.W([_.a("data.interactionMessage"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VK.prototype,"hasInteractionMessage",null);
_.W([_.a("data.emojiPickerButton"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VK.prototype,"hasEmojiPickerButton",null);_.W([_.a("data, characterCount"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VK.prototype,"showAvatar",null);_.W([_.a("data.pickers"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],VK.prototype,"hasProductPickerPanelViewModel",null);
_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"errorMessage",void 0);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"genericErrorMessage",void 0);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"isTooltipVisible",void 0);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"tooltipTimeout",void 0);_.W([_.a("data.onInitialFocusCommand"),_.Q("design:type",String),_.Q("design:paramtypes",[])],VK.prototype,"tooltipMessage",null);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],VK.prototype,"systemIcons",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],VK.prototype,"tallerEmojiPicker",void 0);_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],VK.prototype,"authorNameColor",null);_.W([_.X(),_.Q("design:type",Object)],VK.prototype,"sendReplyMessageInFlight",void 0);_.W([_.B2("#input"),_.Q("design:type",_.Ahr)],VK.prototype,"input",void 0);
_.W([_.B2("#count"),_.Q("design:type",HTMLElement)],VK.prototype,"count",void 0);_.W([_.B2("#input-container"),_.Q("design:type",HTMLElement)],VK.prototype,"inputContainer",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VK.prototype,"dataChanged",null);_.W([_.dz("yt-live-chat-send-message"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],VK.prototype,"sendMessage",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,_.Ei]),_.Q("design:returntype")],VK.prototype,"onSendCompleted",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VK.prototype,"onSendError",null);
_.W([_.dz("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],VK.prototype,"handlePickerButtonToggle",null);_.W([_.dz("yt-emoji-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],VK.prototype,"onEmojiSelect",null);
_.W([_.gz("characterCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VK.prototype,"characterCountChanged",null);_.W([_.gz("inputFocused"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VK.prototype,"focusChanged",null);_.W([_.dz("yt-live-chat-error-message-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VK.prototype,"onErrorMessageDismiss",null);
_.W([_.dz("yt-live-chat-error-message-edit"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],VK.prototype,"onErrorMessageEdit",null);_.W([_.gz("errorMessage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VK.prototype,"errorMessageChanged",null);_.W([_.gz("isTooltipVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VK.prototype,"onIsTooltipVisibleChanged",null);
_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],VK);
_.n(VK,"yt-live-chat-message-input-renderer",function(){if(a4$===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Y7m===void 0&&(Y7m=document.createElement("template"));var H=Y7m;O.call(t,H.content.cloneNode(!0),N.content.firstChild);a4$=N}N=a4$;return N},{mode:0});var CUw;var KK8;var DB=function(){var N=_.k.apply(this,arguments)||this;N.systemIcons=_.h("kevlar_system_icons");N.firedOnClickCommand=!1;N.inReplyPanel=!1;return N};
_.p(DB,_.k);
DB.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"}}}};
DB.prototype.onButtonToggle=function(N){N.target.disabled||this.ytPickerBehavior.togglePicker_(N.detail.targetId)};
DB.prototype.onClick=function(){var N=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.sl(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return N.firedOnClickCommand=!1},5E3))};
_.cv.Object.defineProperties(DB.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:(t=N.panels)==null?void 0:t.find(function(O){return O.liveChatProductPickerPanelViewModel}))!==void 0}}});
DB.prototype.onButtonToggle=DB.prototype.onButtonToggle;_.W([_.Y(U1m.YtPickerBehavior),_.Q("design:type",Object)],DB.prototype,"ytPickerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DB.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],DB.prototype,"systemIcons",void 0);_.W([_.X({reflectToAttribute:!1}),_.Q("design:type",Object)],DB.prototype,"firedOnClickCommand",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],DB.prototype,"inReplyPanel",void 0);_.W([_.a("data.pickers"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],DB.prototype,"hasProductPickerPanelViewModel",null);
_.W([_.dz("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],DB.prototype,"onButtonToggle",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],DB);
_.n(DB,"yt-live-chat-restricted-participation-renderer",function(){if(KK8===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;CUw===void 0&&(CUw=document.createElement("template"));var H=CUw;O.call(t,H.content.cloneNode(!0),N.content.firstChild);KK8=N}N=KK8;return N},{mode:0});var Uq=function(){var N=_.k.apply(this,arguments)||this;N.genericErrorMessage=_.E_("Error, try again.");N.inReplyPanel=!1;N.hideBorder=!1;return N};
_.p(Uq,_.k);Uq.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}}}}}};
_.cv.Object.defineProperties(Uq,{template:{configurable:!0,enumerable:!0,get:function(){return MOm()}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Uq.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Uq.prototype,"genericErrorMessage",void 0);_.W([_.X(),_.Q("design:type",Object)],Uq.prototype,"inReplyPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Uq.prototype,"hideBorder",void 0);
_.W([_.wz({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Uq);_.n(Uq,"yt-live-chat-engagement-panel-input-renderer",function(){return MOm()},{mode:0});var FKd,d1w;FKd=_.UM(115994);d1w=_.UM(115993);_.CB=function(N,t,O){var H=this;var A=O.dragDownAction;this.layer=0;this.JSC$23142_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.JSC$23142_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.fullscreen=!1;var Z=_.gF();_.Iy(Z,FKd,this.layer);_.Iy(Z,d1w,this.layer);this.dragDownAction=function(){A();_.fE(Z,{visualElement:H.fullscreen?FKd:d1w})};
this.gesture=new _.fG(N,t,this.getConfig(!1),"pandown");this.attach()};
_.CB.prototype.attach=function(){this.gesture.attach()};
_.CB.prototype.detach=function(){this.gesture.detach()};
_.CB.prototype.update=function(N){this.fullscreen=N;var t=this.gesture;N=this.getConfig(N);t.config=N};
_.CB.prototype.getConfig=function(N){return N?this.JSC$23142_watchFullScreenConfig:this.JSC$23142_watchConfig};var g6s={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(N){if(N&&N.length==1&&Array.isArray(N[0].loggingUrls)){N=_.WW.unsafeClone(N[0]);var t=this.macros||{},O=this.getAdModuleClient_();if(!O)return _.Hc();N.loggingUrls.forEach(function(H){if(H.baseUrl){var A=H.baseUrl;var Z=t;Z=Z===void 0?{}:Z;A=O.getOptions().includes("replaceUrlMacros")?_.MvZ(O,"replaceUrlMacros",{url:A,additionalMapping:Z}):A;H.baseUrl=A}},this);
N=[N]}return _.tb(this.hostElement,N)},
getAdModuleClient_:function(){var N=_.si(this);return N?(N=N.getPlayer())?new _.ZH(N):null:null}}]};var yy9;var B9N;var KB=function(){return _.k.apply(this,arguments)||this};
_.p(KB,_.k);KB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],KB.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],KB);
_.n(KB,"ytd-compact-tvfilm-entry-point-renderer",function(){if(B9N!==void 0)return B9N;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return B9N=N},{mode:1});var cyl;var $1d;var jbw;var FC=function(){return _.k.apply(this,arguments)||this};
_.p(FC,_.k);FC.prototype.ready=function(){this.initializeDefs()};
FC.prototype.initializeDefs=function(){var N=this.meta.byKey("yt-icons"),t=_.O6(N).querySelector("#star"),O=_.O6(N).querySelector("#star_half");N=_.O6(N).querySelector("#star_border");t&&this.defs.appendChild(t.cloneNode(!0));O&&this.defs.appendChild(O.cloneNode(!0));N&&this.defs.appendChild(N.cloneNode(!0))};
FC.prototype.percentChanged=function(){for(var N=this.rating;N.firstChild;)N.removeChild(N.firstChild);var t=Math.round(this.percent/10);N=Math.floor(t/2);t%=2;var O=5-N-t;this.appendStars("star",N,0);this.appendStars("star_half",t,N);this.appendStars("star_border",O,N+t)};
FC.prototype.appendStars=function(N,t,O){for(var H=0;H<t;H++){var A=(18+this.spacing)*(H+O),Z=document.createElementNS("http://www.w3.org/2000/svg","use");_.kVf(Z,"#"+N);Z.setAttribute("x",""+A);Z.setAttribute("y","0");this.rating.appendChild(Z)}};
FC.prototype.percentChanged=FC.prototype.percentChanged;_.W([_.B2("#defs"),_.Q("design:type",HTMLElement)],FC.prototype,"defs",void 0);_.W([_.B2("#rating"),_.Q("design:type",HTMLElement)],FC.prototype,"rating",void 0);_.W([_.X(),_.Q("design:type",Number)],FC.prototype,"percent",void 0);_.W([_.X({value:6}),_.Q("design:type",Number)],FC.prototype,"spacing",void 0);_.W([_.X({value:_.Wn.create("iron-meta",{type:"iconset"})}),_.Q("design:type",_.Eb)],FC.prototype,"meta",void 0);
_.W([_.gz("percent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FC.prototype,"percentChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-ratings"})],FC);
_.n(FC,"ytd-ratings",function(){if(jbw!==void 0)return jbw;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return jbw=N},{mode:1});var i99=function(){return _.k.apply(this,arguments)||this};
_.p(i99,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],i99.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],i99.prototype,"data",void 0);_.W([_.en({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],i99);
_.n(i99,"ytd-offer-review-renderer",function(){if($1d!==void 0)return $1d;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $1d=N},{mode:1});var dj=function(){var N=_.k.apply(this,arguments)||this;N.badges=[{textBadge:{label:_.E_("CC")}}];return N};
_.p(dj,_.k);_.V=dj.prototype;_.V.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.V.dataChanged=function(){var N=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(N&&N.commandMetadata&&_.M(N.commandMetadata,_.R$)&&_.M(N.commandMetadata,_.R$).fireAutomatically)_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}});else{var t;N&&((t=_.M(N,_.R$))==null?0:t.fireAutomatically)&&_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}})}};
_.V.isEmptyContent=function(N){return this.isStorefrontEntryPointEmpty(N)&&this.shouldHideOfferModule(N)};
_.V.isStorefrontEntryPointEmpty=function(N){return!N||!N.storefrontEntryPoint};
_.V.shouldHideOfferModule=function(N){return!!N.hideVideoDetails};
_.V.isOfferModuleNavigationInactive=function(N){return!N.navigationEndpoint&&!N.serviceEndpoint};
_.V.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
dj.prototype.dataChanged=dj.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dj.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Q("design:type",Boolean)],dj.prototype,"hidden",void 0);
_.W([_.X(),_.Q("design:type",Object)],dj.prototype,"badges",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dj.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],dj);
_.n(dj,"ytd-movie-offer-module-renderer",function(){if(cyl!==void 0)return cyl;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return cyl=N},{mode:1});var uym;var Shs=function(){return _.k.apply(this,arguments)||this};
_.p(Shs,_.k);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Shs.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Shs.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Shs);
_.n(Shs,"ytd-media-masthead-renderer",function(){if(uym!==void 0)return uym;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return uym=N},{mode:1});var hcN;_.o_(_.Uz1,"course-metadata-view-model",{props:{data:_.R_,isOverlay:_.R_}});var gj=function(){var N=_.k.apply(this,arguments)||this;N.isMetadataVisible=!1;N.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return N};
_.p(gj,_.k);_.V=gj.prototype;
_.V.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.V.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.V.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.V.expanderChanged=function(){var N;if((N=this.data)==null?0:N.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.V.isExpandButtonToggled=function(){var N,t;return(t=_.M((N=this.data)==null?void 0:N.expandMetadataButton,_.iA))==null?void 0:t.isToggled};
_.V.onVisibilityButtonClick=function(){var N;if((N=this.data)==null?0:N.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.V.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
gj.prototype.expanderChanged=gj.prototype.expanderChanged;gj.prototype.dataChanged=gj.prototype.dataChanged;gj.prototype.descriptionChanged=gj.prototype.descriptionChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y([_.Wu.YtActionHandlerBehavior]),_.Q("design:type",Object)],gj.prototype,"actionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],gj.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],gj.prototype,"isMetadataVisible",void 0);_.W([_.B2("#expander"),_.Q("design:type",Object)],gj.prototype,"expander",void 0);_.W([_.gz("data.description"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gj.prototype,"descriptionChanged",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gj.prototype,"dataChanged",null);_.W([_.gz("isMetadataVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gj.prototype,"expanderChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],gj);
_.n(gj,"ytd-tvfilm-offer-module-renderer",function(){if(hcN!==void 0)return hcN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return hcN=N},{mode:2});var M4A;var yK=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return N};
_.p(yK,_.k);yK.prototype.dataChanged=function(){this.hostElement.hidden=!1};
yK.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
yK.prototype.onThumbnailTap=function(N){this.data&&this.data.serviceEndpoint&&(_.cY().resolve(_.jo).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),N.stopPropagation())};
yK.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
yK.prototype.dataChanged=yK.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yK.prototype,"rendererBehaviors",void 0);_.W([_.Y([_.Wu.YtActionHandlerBehavior]),_.Q("design:type",Object)],yK.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yK.prototype,"data",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yK.prototype,"dataChanged",null);_.W([_.en({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],yK);
_.n(yK,"ytd-unlimited-offer-module-renderer",function(){if(M4A!==void 0)return M4A;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return M4A=N},{mode:1});var b9w;var pd1;var B9=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return N};
_.p(B9,_.k);B9.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
B9.prototype.handleRelatedChipCommand=function(N){N=_.M(N,QkN);var t=N.contents;t?_.Np(this.hostElement,"yt-item-section-replace-action",[t,N.targetSectionIdentifier]):_.Np(this.hostElement,"yt-item-section-continuation-action",[N.continuationData,N.targetSectionIdentifier])};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],B9.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],B9.prototype,"data",void 0);_.W([_.wz({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],B9);
_.n(B9,"yt-related-chip-cloud-renderer",function(){if(pd1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;b9w===void 0&&(b9w=document.createElement("template"));var H=b9w;O.call(t,H.content.cloneNode(!0),N.content.firstChild);pd1=N}N=pd1;return N},{mode:2});var c9=function(){var N=_.k.apply(this,arguments)||this;N.isTwoColumns=!0;N.watchFeedBigThumbs=_.h("kevlar_watch_feed_big_thumbs");N.watchFeedBigThumbsOnLockup=_.h("web_watch_next_big_thumbs");N.watchNextGridHideChips=_.h("kevlar_watch_grid_hide_chips");N.eligibleToSwitchToGrid=!0;N.disableShortsShelfHeightOverride=_.h("web_shorts_wn_shelf_ratio_tuning");N.isWatchNextGrid=!1;N.reuseComponents=!_.h("kevlar_watch_grid");N.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return N};
_.p(c9,_.k);_.V=c9.prototype;
_.V.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.h("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.V.getItemsPath=function(){return"data.results"};
_.V.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.V.created=function(){this.ytLazyListBehavior.initialCount=1};
_.V.ready=function(){_.CO(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.V.resultsChanged=function(){if(this.data&&this.data.results){for(var N=this.data.results,t=null,O=null,H=0;H<N.length;H++)N[H].relatedChipCloudRenderer?t=N[H].relatedChipCloudRenderer:N[H].itemSectionRenderer&&(O=N[H].itemSectionRenderer);if(t&&O)for(this.set("data.continuations",[]),N=_.M(t.content,_.yiR).chips,t=0;t<N.length;t++)if(H=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",N[t]),H.loadCached||!H.contents){H.contents=O.contents;break}}};
_.V.dataChanged=function(){var N=this,t;if((t=this.data)!=null&&t.results&&this.hasAllowedInstreamAd(this.playerData)){if(t=this.data.results.filter(function(C){return!!C.promotedSparklesWebRenderer})){for(var O=0;O<t.length;O++){var H=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",t[O]);
if(H)for(var A=0;A<H.length;A++)H[A]&&H[A].baseUrl&&_.A_(H[A].baseUrl)}this.set("data.results",this.data.results.filter(function(C){return!C.promotedSparklesWebRenderer}))}if(t=this.data.results.filter(function(C){return!!N.getSparklesAd(C)})){t=_.D(t);
for(A=t.next();!A.done;A=t.next())if(H=O=void 0,A=(O=this.getSparklesAd(A.value))==null?void 0:(H=O.errorCommand)==null?void 0:H.loggingUrls)for(O=_.D(A),H=O.next();!H.done;H=O.next())(H=H.value)&&H.baseUrl&&_.A_(H.baseUrl);var Z,U;this.set("data.results",(Z=this.data)==null?void 0:(U=Z.results)==null?void 0:U.filter(function(C){return!C.adSlotRenderer}))}}};
_.V.getSparklesAd=function(N){var t,O;N=_.M((t=N.adSlotRenderer)==null?void 0:(O=t.fulfillmentContent)==null?void 0:O.fulfilledLayout,_.qtS);return _.M(N==null?void 0:N.renderingContent,C09)};
_.V.hasAllowedInstreamAd=function(N){N=this.get("adPlacements",N)||[];for(var t=0;t<N.length;t++){var O=this.get("adPlacementRenderer.config.adPlacementConfig",N[t]);if(O&&O.suppressDisplayAd)return!0}return!1};
_.V.computeHideUnlimitedOfferModule=function(N,t){return N&&N.offerModule&&t&&N.offerModule.unlimitedOfferModuleRenderer&&N.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(t)?!0:!1};
_.V.hideUnlimitedOfferModuleChanged=function(){var N=_.O6(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");N&&(N.hidden=this.hideUnlimitedOfferModule)};
_.V.updateLockupContainerTypes=function(N){if(this.eligibleToSwitchToGrid){var t;(t=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||t.forEach(function(O){O.containerType=N})}};
_.V.computeHideTvfilmOfferModule=function(N,t){var O,H;return!!((N==null?0:(O=N.offerModule)==null?0:(H=O.tvfilmOfferModuleRenderer)==null?0:H.clientShouldSuppressIfCompanionAdDisplayed)&&t&&this.hasCompanionAds(t))};
_.V.hideTvfilmOfferModuleChanged=function(){var N=_.O6(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");N&&(N.hidden=this.hideTvfilmOfferModule)};
_.V.hasCompanionAds=function(N){N=this.get("adPlacements",N)||[];for(var t=0;t<N.length;t++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",N[t]))return!0;var O=void 0,H=void 0,A=void 0;if(!_.h("web_watch_top_banner_companion_check_killswitch")&&((O=N[t])==null?0:(H=O.adPlacementRenderer)==null?0:(A=H.renderer)==null?0:A.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.V.hasSuppressedResults=function(N){return N==null?!0:N.filter(function(t){return!t.continuationItemRenderer&&!t.compactPromotedVideoRenderer&&!t.promotedSparklesWebRenderer}).length===0};
_.V.computeShowButton=function(N,t){return this.isWatchNextGrid?N:N||this.hasSuppressedResults(t)};
_.V.showButtonChanged=function(){if(this.isWatchNextGrid){var N=_.O6(this.hostElement).querySelector("ytd-rich-grid-renderer");N&&this.showButton!==null&&(N.continuationShowButton=this.showButton)}else{N=_.O6(this.hostElement).querySelector("yt-next-continuation");var t=_.O6(this.hostElement).querySelector("ytd-continuation-item-renderer"),O=_.O6(this.hostElement).querySelector("ytd-item-section-renderer");N&&(N.showButton=this.showButton);t&&(t.showButton=this.showButton);O&&(O.continuationShowButton=
this.showButton)}};
_.V.continuationTap=function(N){var t;if(((t=this.data)==null?void 0:t.continuations)!=null&&N.target.tagName==="TP-YT-PAPER-BUTTON")for(N=this.data.continuations,t=0;t<N.length;t++)N[t].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(N[t].nextContinuationData||{})};
_.V.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("shown-items-changed",this.shownItems))};
_.cv.Object.defineProperties(c9.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.shownItems)==null||!N.some(function(t){return!!t.lockupViewModel||t.compactVideoRenderer}))}}});
c9.prototype.shownItemsChangedForBinding=c9.prototype.shownItemsChangedForBinding;c9.prototype.showButtonChanged=c9.prototype.showButtonChanged;c9.prototype.hideTvfilmOfferModuleChanged=c9.prototype.hideTvfilmOfferModuleChanged;c9.prototype.updateLockupContainerTypes=c9.prototype.updateLockupContainerTypes;c9.prototype.hideUnlimitedOfferModuleChanged=c9.prototype.hideUnlimitedOfferModuleChanged;c9.prototype.dataChanged=c9.prototype.dataChanged;c9.prototype.resultsChanged=c9.prototype.resultsChanged;
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],c9.prototype,"ytLazyListBehavior",void 0);_.W([_.Y(_.MP.YtNextContinuationBehavior),_.Q("design:type",Object)],c9.prototype,"ytNextContinuationBehavior",void 0);
_.W([_.Y(_.h3),_.Q("design:type",Object)],c9.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],c9.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],c9.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],c9.prototype,"playerData",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],c9.prototype,"autoFill",void 0);_.W([_.X({value:60}),_.Q("design:type",Number)],c9.prototype,"targetFramerate",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],c9.prototype,"isTwoColumns",void 0);_.W([_.X(),_.Q("design:type",Object)],c9.prototype,"shownItems",void 0);_.W([_.X({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Q("design:type",Boolean)],c9.prototype,"hideUnlimitedOfferModule",void 0);_.W([_.X({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Q("design:type",Boolean)],c9.prototype,"hideTvfilmOfferModule",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],c9.prototype,"watchFeedBigThumbs",void 0);_.W([_.X(),_.Q("design:type",Object)],c9.prototype,"watchFeedBigThumbsOnLockup",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],c9.prototype,"watchNextGridHideChips",void 0);_.W([_.X(),_.Q("design:type",Object)],c9.prototype,"eligibleToSwitchToGrid",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],c9.prototype,"disableShortsShelfHeightOverride",void 0);
_.W([_.X({selector:_.wq,reflectToAttribute:!0}),_.Q("design:type",Object)],c9.prototype,"isGridViewEnabled",void 0);_.W([_.X({selector:_.oiQ,reflectToAttribute:!0}),_.Q("design:type",Object)],c9.prototype,"isSwatcherooActive",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],c9.prototype,"showMoreButton",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],c9.prototype,"isWatchNextGrid",void 0);
_.W([_.X({computed:"computeShowButton(showMoreButton, data.results)"}),_.Q("design:type",Boolean)],c9.prototype,"showButton",void 0);_.W([_.ic("data.results.*"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c9.prototype,"resultsChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c9.prototype,"dataChanged",null);
_.W([_.gz("hideUnlimitedOfferModule"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c9.prototype,"hideUnlimitedOfferModuleChanged",null);_.W([_.a("isGridViewEnabled","containsLockups","data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Number),_.Q("design:paramtypes",[])],c9.prototype,"lockupContainerType",null);
_.W([_.gz("lockupContainerType","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[Number]),_.Q("design:returntype")],c9.prototype,"updateLockupContainerTypes",null);_.W([_.gz("hideTvfilmOfferModule"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c9.prototype,"hideTvfilmOfferModuleChanged",null);_.W([_.gz("showButton"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c9.prototype,"showButtonChanged",null);
_.W([_.gz("shownItems"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],c9.prototype,"shownItemsChangedForBinding",null);_.W([_.a("shownItems"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],c9.prototype,"containsLockups",null);
_.n(c9,"ytd-watch-next-secondary-results-renderer",function(){if(yy9===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);yy9=N}N=yy9;return N},{mode:1});var LKs;var $_=function(){var N=_.k.apply(this,arguments)||this;N.isCollapsed=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return N};
_.p($_,_.k);_.V=$_.prototype;_.V.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.onDonateTap=function(){var N=this.get("data.donateButton.buttonRenderer.command");if(N){var t=_.z8(),O=this.get("data.donateButton.buttonRenderer.trackingParams");t&&O&&_.IX(t,_.ib(O));this.ytOpenPopupBehavior.openPopup(N)}};
_.V.onShowMore=function(){this.isCollapsed=!1;var N=_.z8(),t=this.get("data.expandButton.buttonRenderer.trackingParams");N&&t&&_.IX(N,_.ib(t))};
_.V.onShowLess=function(){this.isCollapsed=!0};
_.V.dataChanged=function(){_.CO(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.V.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.V.handleUpdate=function(N){if(N=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",N))this.set("data.startLabel",N.startLabel),this.set("data.endLabel",N.endLabel),this.set("data.progress",N.progress),this.set("data.amountRaisedLabel",N.amountRaisedLabel),this.dataChanged()};
_.V.handleOpenPopupAction=function(N){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",N)&&_.sl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.V.computeHeaderBackgroundUrl=function(N,t){if(N)return t?N.headerBackgroundDarkUrl:N.headerBackgroundUrl};
_.V.isProgressBarVisible=function(N){return!(!N||N.progress===void 0)};
_.V.headerBackgroundClass=function(){return _.Ro("HTML_DIR")==="rtl"?"flip":""};
$_.prototype.dataChanged=$_.prototype.dataChanged;_.W([_.Y(_.fD.YtOpenPopupBehavior),_.Q("design:type",Object)],$_.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],$_.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],$_.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],$_.prototype,"isCollapsed",void 0);_.W([_.X({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Q("design:type",String)],$_.prototype,"headerBackgroundUrl",void 0);_.W([_.X(),_.Q("design:type",Boolean)],$_.prototype,"isDarkTheme",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$_.prototype,"dataChanged",null);
_.W([_.en({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],$_);
_.n($_,"ytd-donation-shelf-renderer",function(){if(LKs!==void 0)return LKs;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return LKs=N},{mode:1});var zcr;var Yhm=function(){return _.k.apply(this,arguments)||this};
_.p(Yhm,_.k);_.W([_.X(),_.Q("design:type",Object)],Yhm.prototype,"data",void 0);_.W([_.en({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Yhm);
_.n(Yhm,"ytd-donation-unavailable-renderer",function(){if(zcr!==void 0)return zcr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return zcr=N},{mode:1});var a31;var jM=function(){return _.k.apply(this,arguments)||this};
_.p(jM,_.k);jM.prototype.computeIconType=function(N){return N?"yt-icons:"+N.toLowerCase():null};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jM.prototype,"data",void 0);_.W([_.en({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],jM);
_.n(jM,"ytd-limited-state-message-renderer",function(){if(a31!==void 0)return a31;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return a31=N},{mode:1});var T91;var ii=function(){return _.k.apply(this,arguments)||this};
_.p(ii,_.k);ii.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
ii.prototype.onTap=function(N){var t=this.data&&this.data.endpoint;t&&!_.RM(_.m1(N),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.or(this.hostElement,"yt-navigate",{endpoint:t})};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ii.prototype,"data",void 0);_.W([_.en({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],ii);
_.n(ii,"ytd-autotagging-metadata-renderer",function(){if(T91!==void 0)return T91;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return T91=N},{mode:1});var wdu;var ui=function(){return _.k.apply(this,arguments)||this};
_.p(ui,_.k);ui.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ui.prototype,"data",void 0);_.W([_.en({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],ui);
_.n(ui,"ytd-autotagging-metadata-row-renderer",function(){if(wdu!==void 0)return wdu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return wdu=N},{mode:1});var ec$;var PUR;var SM=function(){var N=_.k.apply(this,arguments)||this;N.engagementPanelContent=!1;return N};
_.p(SM,_.k);SM.prototype.computeHasDividerLine=function(N,t){return N&&!t};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],SM.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Q("design:type",Boolean)],SM.prototype,"hasDividerLine",void 0);_.W([_.X(),_.Q("design:type",Object)],SM.prototype,"engagementPanelContent",void 0);
_.W([_.en({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],SM);
_.n(SM,"ytd-metadata-row-header-renderer",function(){if(PUR!==void 0)return PUR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return PUR=N},{mode:1});var Xdw;var hQ=function(){return _.k.apply(this,arguments)||this};
_.p(hQ,_.k);hQ.prototype.computeHasDividerLine=function(N){return N};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hQ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Q("design:type",Boolean)],hQ.prototype,"hasDividerLine",void 0);_.W([_.en({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],hQ);
_.n(hQ,"ytd-metadata-row-renderer",function(){if(Xdw!==void 0)return Xdw;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Xdw=N},{mode:1});var x1s;var kC9=function(){return _.k.apply(this,arguments)||this};
_.p(kC9,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kC9.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],kC9.prototype,"data",void 0);_.W([_.en({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],kC9);
_.n(kC9,"ytd-metadata-with-image-row-renderer",function(){if(x1s!==void 0)return x1s;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return x1s=N},{mode:1});var qhA;var M5=function(){var N=_.k.apply(this,arguments)||this;N.rounded=!0;N.fixie=!1;N.fullWidth=!1;return N};
_.p(M5,_.k);_.V=M5.prototype;_.V.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.onDataChanged=function(){var N=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(t){N.onEndpointLinkKeyPress(t)}))};
_.V.onEndpointLinkKeyPress=function(N){N.target===this.endpointLink&&N.keyCode===13&&_.or(this.hostElement,"click")};
_.V.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var N;if((N=this.data)==null?0:N.endpoint)_.OK(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.V.onYtNavigate=function(N){this.endpointHref||(N.stopPropagation(),N.preventDefault())};
_.V.onInformationButtonContainerClick=function(N){N.target.id!=="information-button-container"&&(N.stopPropagation(),N.preventDefault())};
_.V.computeStyle=function(N){return N};
_.V.computeIsThumbnailStyle=function(N){return N==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.V.computeThumbnailWidth=function(N){switch(N){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.V.computeThumbnailObjectFit=function(N){switch(N){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.cv.Object.defineProperties(M5.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?0:N.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
M5.prototype.onYtNavigate=M5.prototype.onYtNavigate;M5.prototype.onClick=M5.prototype.onClick;M5.prototype.onDataChanged=M5.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],M5.prototype,"componentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],M5.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],M5.prototype,"componentStyle",void 0);_.W([_.X({computed:"computeIsThumbnailStyle(data.style)"}),_.Q("design:type",Boolean)],M5.prototype,"isThumbnailStyle",void 0);_.W([_.X({computed:"computeThumbnailObjectFit(data.style)"}),_.Q("design:type",String)],M5.prototype,"thumbnailObjectFit",void 0);
_.W([_.X({computed:"computeThumbnailWidth(data.style)"}),_.Q("design:type",Number)],M5.prototype,"thumbnailWidth",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],M5.prototype,"rounded",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],M5.prototype,"fixie",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],M5.prototype,"fullWidth",void 0);_.W([_.B2("#endpoint-link"),_.Q("design:type",HTMLAnchorElement)],M5.prototype,"endpointLink",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M5.prototype,"onDataChanged",null);_.W([_.a("data.endpoint"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],M5.prototype,"endpointHref",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],M5.prototype,"onClick",null);
_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],M5.prototype,"onYtNavigate",null);_.W([_.en({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],M5);
_.n(M5,"ytd-rich-metadata-renderer",function(){if(qhA!==void 0)return qhA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return qhA=N},{mode:_.O4("kevlar_poly_si_batch_j075")?1:2});var f31;var bi=function(){var N=_.k.apply(this,arguments)||this;N.fixie=!1;N.fullWidth=!1;return N};
_.p(bi,_.k);bi.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
bi.prototype.computeHasDividerLine=function(N){return N};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bi.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Q("design:type",Boolean)],bi.prototype,"hasDividerLine",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bi.prototype,"fixie",void 0);_.W([_.X(),_.Q("design:type",Object)],bi.prototype,"fullWidth",void 0);
_.W([_.en({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],bi);
_.n(bi,"ytd-rich-metadata-row-renderer",function(){if(f31!==void 0)return f31;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return f31=N},{mode:1});var pB=function(){var N=_.k.apply(this,arguments)||this;N.engagementPanelContent=!1;N.fixie=!1;N.fullWidth=!1;return N};
_.p(pB,_.k);
pB.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"}}}};
pB.prototype.computeCollapsibleItems=function(N,t,O){return N===void 0||t===void 0||O===void 0||O?[]:N.slice(t)};
pB.prototype.computeAlwaysShownItems=function(N,t){return N&&N.length?N.slice(0,t):[]};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],pB.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],pB.prototype,"collapsed",void 0);
_.W([_.X({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Q("design:type",Array)],pB.prototype,"alwaysShownItems",void 0);_.W([_.X({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Q("design:type",Array)],pB.prototype,"collapsibleItems",void 0);_.W([_.X(),_.Q("design:type",Object)],pB.prototype,"engagementPanelContent",void 0);_.W([_.X(),_.Q("design:type",Object)],pB.prototype,"fixie",void 0);
_.W([_.X(),_.Q("design:type",Object)],pB.prototype,"fullWidth",void 0);_.W([_.en({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],pB);
_.n(pB,"ytd-metadata-row-container-renderer",function(){if(ec$!==void 0)return ec$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ec$=N},{mode:1});var n6V;var LB=function(){var N=_.k.apply(this,arguments)||this;N.currentPageUrl="";N.baseUrl="";N.isHiddenByUser=null;N.hidden=!1;N.showAboveScrim=!1;N.watchNextGrid=_.h("kevlar_watch_grid");N.modernButtons=_.h("web_modern_buttons");N.roundedContainer=!0;N.noBorder=!1;N.roundBackground=!_.h("live_chat_round_background_killswitch");N.overflowHideChat=_.h("live_chat_overflow_hide_chat");N.forceDarkTheme=!1;N.theaterWatchWhile=!1;N.isListeningForPlayerProgress=!1;N.JSC$23213_playerEvents=new Map;N.isFrameReady=
!1;N.player=null;N.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return N};
_.p(LB,_.k);_.V=LB.prototype;_.V.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Np(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.V.created=function(){var N=this;this.handleIframeEventListener=function(t){N.handleIframeEvent(t)};
this.handleKeyboardEventListener=function(t){N.handleKeyboardEvent(t)};
this.JSC$23213_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23213_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23213_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23213_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23213_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.V.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.V.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.V.computeBaseUrl=function(N){var t="/live_chat";this.isChatReplay()&&(t="/live_chat_replay");return _.cL(_.BL(_.y1(_.tJ(N),t),null),"").toString()};
_.V.dataChanged=function(){_.h("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.V.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var N=this.url;if(this.isChatReplay()&&this.player){var t=Math.floor(this.player.getProgressState().current*1E3);N=_.Ho(_.tJ(N),"playerOffsetMs",t.toString()).toString()}t=this.chatframe;try{var O=N==="about:blank"?_.Rru:_.Id(N),H=t.contentDocument.location,A=_.GN(O);A!==void 0&&H.replace(A)}catch(Z){t.src=N}}};
_.V.collapsedChanged=function(){_.or(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.V.handleIframeEvent=function(N){if(N&&this.baseUrl.startsWith(N.origin)&&N.source===this.chatframe.contentWindow&&_.mG(N.data))if(N.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(N);else if(N.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(N.data["yt-show-feedback-dialog"]){var t=_.cY().resolve(_.BY(_.Qd5));if(t){var O=N.ports,H;O&&O.length&&(H=function(){O[0].postMessage({})});
N=N.data["yt-show-feedback-dialog"];t.showFeedbackDialog(N.customProductData,N.feedbackContent,H,N.bucket)}}else if(N.data["yt-show-survey"])_.or(this.hostElement,"yt-show-survey",N.data["yt-show-survey"]);else if(N.data["yt-purchase-membership"])_.cY().resolve(_.jo).resolveCommand(N.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(N.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(N.data["yt-tunnel-out-live-service-request"]);else if(N.data["yt-user-activity"])_.$3();
else if(N.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(N.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(N.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(N.data["yt-open-popup"]);else if(N.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(N.data["yt-log-flow-logging-event-command"]);else if(N.data["yt-hide-live-chat"])this.onShowHideChat();else N.data["yt-report-moderation-state-log"]&&
this.player&&(t={cpn:this.player.getVideoData().cpn},_.E7("liveChatBeingModerated",t))};
_.V.attachLiveChatResponseVeTrackingParams=function(N){N=_.ib(N);var t=_.z8(),O=_.s2("liveChatRenderer.trackingParams",this.data);t&&O&&_.qp(t,_.ib(O),N)};
_.V.handleBuyflowMessages=function(N){var t=N.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,O=N.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,H=N.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.nhy(_.oE(_.QE),t.replace(/-/g,"+").replace(/_/g,"/"),function(A){N.ports[0].postMessage({success:!0,buyFlowResponse:A})},void 0,function(A){N.ports[0].postMessage({success:!1,
error:A&&A.message||"Buyflow rejected without error."})},_.d0().get("hl"),void 0,function(){N.ports[0].postMessage({closed:!0})},O,H)};
_.V.setupPlayerProgressRelay=function(){var N=this;if(!this.isListeningForPlayerProgress){var t=_.NU();t!=null&&t.getPlayerPromise&&(t.getPlayerPromise().then(function(O){N.playerApiReady(O)}),this.isListeningForPlayerProgress=!0)}};
_.V.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.V.playerApiReady=function(N){this.setPlayer(N)};
_.V.playerProgressHandler=function(){if(this.player){var N=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":N.current})}};
_.V.playerAdStartHandler=function(N){this.postToContentWindow({"yt-player-ad-start":N})};
_.V.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.V.playerStateChangeHandler=function(N){this.postToContentWindow({"yt-player-state-change":N})};
_.V.setPlayer=function(N){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23213_playerEvents);N&&(this.player=N,this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$23213_playerEvents),_.or(this.hostElement,"player-api-ready"))};
_.V.liveChatPageUrl=function(N,t,O,H){return!O||t?"about:blank":O.liveChatRenderer?(t=_.tJ(this.currentPageUrl).JSC$10187_queryData_,NrV(t),N=_.tJ(N),t.add("continuation",O.liveChatRenderer.continuations[0].reloadContinuationData.continuation),O=_.qL()==="USER_INTERFACE_THEME_DARK",(H||O)&&t.add("dark_theme","true"),_.BL(N,t),H=_.tJ(N.toString()),O=H.JSC$10187_queryData_,"SESSION_INDEX"in _.E2&&(O.add("authuser",_.Ro("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.E2&&O.add("pageId",_.Ro("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.E2&&O.add("sdc",_.Ro("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),H.toString()):""};
_.V.isCollapsed=function(N,t){return t!==null?t:this.isChatReplay()||N&&N.conversationBarRenderer&&N.conversationBarRenderer.availabilityMessage?!0:N?N.liveChatRenderer?N.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.h("live_chat_hide_premiere_replay_message")||N.conversationBarRenderer&&N.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.V.isHidden=function(N,t,O){var H=t&&t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage,A=t&&t.liveChatRenderer&&t.liveChatRenderer.showHideButton,Z=t&&t.liveChatRenderer&&t.liveChatRenderer.showButton;return O&&N&&!H&&!Z||!O&&N&&!H&&!A?!0:t&&t.liveChatRenderer&&t.liveChatRenderer.initialDisplayState?t.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.V.computeButtonOverride=function(N,t){if(N&&t)return{type:"outline"}};
_.V.setCollapsedState=function(N){_.M(N,_.nsS)&&((this.isHiddenByUser=!!_.M(N,_.nsS).collapsed)||_.sl(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.V.forwardReduxActionToIframe=function(N){this.postToContentWindow({"yt-live-chat-forward-redux-action":N})};
_.V.onLoopRangeChange=function(N){this.showAboveScrim=!(N==null||!N.postId)};
_.V.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.V.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.V.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.V.sendDarkThemePostMessage=function(N){this.postToContentWindow({"yt-live-chat-set-dark-theme":N})};
_.V.onLiveChatBuyFlowCallback=function(N){this.postToContentWindow({"yt-live-chat-buy-flow-callback":N})};
_.V.handleKeyboardEvent=function(N){(0,_.WW.containsValue)(A_D,N.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:N.type,keyCode:N.keyCode}})};
_.V.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.V.postToContentWindow=function(N){if(this.isFrameReady)try{var t=window.location.protocol+"//"+window.location.host,O;(O=this.chatframe)!=null&&O.contentWindow?this.chatframe.contentWindow.postMessage(N,t):_.J_(new _.fF("Tried posting a message to an iframe with no content window",N))}catch(H){_.R0(H)}};
_.V.shouldHideChatFrame=function(N){return N&&_.h("hide_live_chat_button_when_collapsed")};
_.cv.Object.defineProperties(LB.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.h("live_chat_overflow_hide_chat")||_.h("web_watch_chat_hide_button_killswitch"))return _.h("live_chat_overflow_hide_chat");var N,t,O,H;return!!((N=this.data)==null?0:(t=N.liveChatRenderer)==null?0:(O=t.header)==null?0:(H=O.liveChatHeaderRenderer)==null?0:H.collapseButton)}}});
LB.prototype.collapsedChanged=LB.prototype.collapsedChanged;LB.prototype.urlChanged=LB.prototype.urlChanged;LB.prototype.dataChanged=LB.prototype.dataChanged;LB.prototype.onShowHideChat=LB.prototype.onShowHideChat;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],LB.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],LB.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],LB.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Y(_.fD.YtOpenPopupBehavior),_.Q("design:type",Object)],LB.prototype,"ytOpenPopupBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],LB.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],LB.prototype,"currentPageUrl",void 0);
_.W([_.X({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Q("design:type",Object)],LB.prototype,"baseUrl",void 0);_.W([_.X({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Q("design:type",String)],LB.prototype,"url",void 0);_.W([_.X(),_.Q("design:type",Object)],LB.prototype,"isHiddenByUser",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Q("design:type",Object)],LB.prototype,"hidden",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Q("design:type",Boolean)],LB.prototype,"collapsed",void 0);_.W([_.X({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Q("design:type",Boolean)],LB.prototype,"hideChatFrame",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LB.prototype,"showAboveScrim",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LB.prototype,"watchNextGrid",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],LB.prototype,"modernButtons",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LB.prototype,"roundedContainer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LB.prototype,"noBorder",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],LB.prototype,"roundBackground",void 0);
_.W([_.X({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Q("design:type",Object)],LB.prototype,"toggleButtonOverride",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],LB.prototype,"overflowHideChat",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LB.prototype,"forceDarkTheme",void 0);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],LB.prototype,"enableShowWithoutHideChatButton",null);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LB.prototype,"theaterWatchWhile",void 0);_.W([_.B2("#chatframe"),_.Q("design:type",HTMLIFrameElement)],LB.prototype,"chatframe",void 0);_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LB.prototype,"onShowHideChat",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LB.prototype,"dataChanged",null);
_.W([_.gz("url"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LB.prototype,"urlChanged",null);_.W([_.gz("collapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LB.prototype,"collapsedChanged",null);_.W([_.en({is:"ytd-live-chat-frame",disableElementRegistration:!0})],LB);
_.n(LB,"ytd-live-chat-frame",function(){if(n6V!==void 0)return n6V;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return n6V=N},{mode:1});var WK1;var zq=function(){var N=_.k.apply(this,arguments)||this;N.modern=_.h("web_modern_buttons");N.buttonOverrides={style:"call-to-action",type:"filled"};return N};
_.p(zq,_.k);zq.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=_.aI(this.data.backgroundColor)))};
zq.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var N=this.getFormattedStringLoggingDirectives(this.data.headline);N&&this.rendererBehavior.logExplicitClick(N)}};
zq.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var N=this.getFormattedStringLoggingDirectives(this.data.description);N&&this.rendererBehavior.logExplicitClick(N)}};
zq.prototype.getFormattedStringLoggingDirectives=function(N){return N&&N.runs&&N.runs.length>0&&N.runs[0]&&N.runs[0].loggingDirectives?N.runs[0].loggingDirectives:null};
zq.prototype.dataChanged=zq.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zq.prototype,"rendererBehavior",void 0);_.W([_.Y(g6s.YtMacroReplacementBehavior),_.Q("design:type",Object)],zq.prototype,"macroReplacementBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],zq.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],zq.prototype,"navigationEndpoint",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],zq.prototype,"enableColors",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],zq.prototype,"modern",void 0);_.W([_.X(),_.Q("design:type",Object)],zq.prototype,"buttonOverrides",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zq.prototype,"dataChanged",null);_.W([_.en({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],zq);
_.n(zq,"ytd-action-basic-immersive-content-renderer",function(){if(WK1!==void 0)return WK1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return WK1=N},{mode:1});var ryd;var I3D;var Y_=function(){return _.k.apply(this,arguments)||this};
_.p(Y_,_.k);Y_.prototype.dataChanged=function(){var N;((N=this.data)==null?void 0:N.backgroundColor)!==void 0&&_.CO(this.hostElement,{"--bgu-color":_.aI(this.data.backgroundColor)})};
Y_.prototype.onImageTileClick=function(){var N;((N=this.data)==null?0:N.navigationEndpoint)&&_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var t;((t=this.data)==null?0:t.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.cv.Object.defineProperties(Y_.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var N;if(((N=this.data)==null?void 0:N.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var N,t,O;if(((N=this.data)==null?void 0:(t=N.detailsLine)==null?void 0:t.texts)!=null&&((O=this.data)==null?void 0:O.detailsLine.texts.length)>0){var H;return(H=this.data)==null?void 0:H.detailsLine.texts.map(function(A){return A.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var N,t,O;if(((N=this.data)==null?void 0:(t=N.optionalDetailsLine)==null?void 0:t.texts)!=null&&((O=this.data)==null?void 0:O.optionalDetailsLine.texts.length)>0){var H;return(H=this.data)==null?void 0:H.optionalDetailsLine.texts.map(function(A){return A.text}).join("")}return null}}});
Y_.prototype.dataChanged=Y_.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Y_.prototype,"rendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Y_.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Y_.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.backgroundColor"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Y_.prototype,"hasBackgroundColor",null);
_.W([_.a("data.objectFit"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Y_.prototype,"getObjectFit",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.tileRenderingStyle"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Y_.prototype,"hasTileMetadata",null);_.W([_.a("data.detailsLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Y_.prototype,"getSecondaryDetails",null);
_.W([_.a("data.optionalDetailsLine"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Y_.prototype,"getOptionalDetails",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Y_.prototype,"dataChanged",null);_.W([_.en({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Y_);
_.n(Y_,"ytd-image-tile-renderer",function(){if(I3D!==void 0)return I3D;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return I3D=N},{mode:1});var l3w;var aT=function(){return _.k.apply(this,arguments)||this};
_.p(aT,_.k);aT.prototype.getOpenLinkIcon=function(){return _.h("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
aT.prototype.onSitelinkTap=function(){_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.h("kevlar_command_handler_migration_killswitch"))_.OK(this.hostElement,this.data.clickCommands,this.hostElement);else for(var N=_.D(this.data.clickCommands),t=N.next();!t.done;t=N.next())this.ytComponentBehavior.resolveCommand(t.value)};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],aT.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aT.prototype,"rendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],aT.prototype,"data",void 0);_.W([_.en({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],aT);
_.n(aT,"ytd-sitelink-renderer",function(){if(l3w!==void 0)return l3w;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return l3w=N},{mode:1});var Tq=function(){var N=_.k.apply(this,arguments)||this;N.paddingFix=_.h("enable_ads_web_ep_buenos_aires_and_padding_fix");return N};
_.p(Tq,_.k);Tq.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"}}}};
Tq.prototype.dataChanged=function(){var N=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;N.ytMacroReplacementBehavior.sendServiceRequestAction([t])})};
Tq.prototype.shouldHideFooter=function(N){return!(N&&_.h("use_ads_engagement_panel_desktop_footer_cta"))};
_.cv.Object.defineProperties(Tq.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:N.imageTileRenderers)===void 0||((t=this.data)==null?void 0:t.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(O){var H;return(H=_.M(O,UVd))==null?void 0:H.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:N.imageTileRenderers)===void 0||((t=this.data)==null?void 0:t.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(O){var H;return((H=_.M(O,UVd))==null?void 0:H.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Tq.prototype.dataChanged=Tq.prototype.dataChanged;_.W([_.Y(g6s.YtMacroReplacementBehavior),_.Q("design:type",Object)],Tq.prototype,"ytMacroReplacementBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Tq.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Tq.prototype,"paddingFix",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.imageTileRenderers"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Tq.prototype,"removeBorderFromImageTiles",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.imageTileRenderers"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Tq.prototype,"useFooteredMetadataRenderingStyle",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Tq.prototype,"dataChanged",null);_.W([_.en({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Tq);
_.n(Tq,"ytd-action-engagement-panel-content-renderer",function(){if(ryd!==void 0)return ryd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ryd=N},{mode:1});var Qb1;var m1s=_.q(function(N){var t=N.data;var O=N.customCommandResolver;return _.d("ad-grid-card-image-full-metadata-view-model",{class:function(){var H;return((H=t().interaction)==null?0:H.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.E4(_.iU({visibilityCallback:function(H){var A,Z=(A=t().interaction)==null?void 0:A.onFirstVisible;H&&Z&&_.xJ(Z)},
showOption:_.e3}),_.kS(function(){return t().interaction},O)),
"aria-label":function(){var H,A;return(H=t().interaction)==null?void 0:(A=H.accessibility)==null?void 0:A.label}},_.d("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.d(_.iF,{data:function(){return t().adImage}},{adImageViewModel:function(H){return _.d(_.RO,{data:H.data,
customCommandResolver:O})}})),_.d("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.d(_.y,{cond:function(){return t().headline},
then:function(H){return _.d(_.cu,{text:H,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.d(_.y,{cond:function(){return t().detailsLine},
then:function(H){return _.d("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.d(_.iF,{data:H},{adDetailsLineViewModel:function(A){return _.d(_.WK,{data:A.data,customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.d(_.y,{cond:function(){return t().secondaryDetailsLine},
then:function(H){return _.d("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.d(_.iF,{data:H},{adDetailsLineViewModel:function(A){return _.d(_.WK,{data:A.data,customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Hn");var E6R=_.q(function(N){var t=N.data;var O=N.customCommandResolver;return _.d("ad-grid-card-image-view-model",{class:function(){var H;return((H=t().interaction)==null?0:H.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.E4(_.iU({visibilityCallback:function(H){var A,Z=(A=t().interaction)==null?void 0:A.onFirstVisible;H&&Z&&_.xJ(Z)},
showOption:_.e3}),_.kS(function(){return t().interaction},O)),
"aria-label":function(){var H,A;return(H=t().interaction)==null?void 0:(A=H.accessibility)==null?void 0:A.label}},_.d(_.iF,{data:function(){return t().adImage}},{adImageViewModel:function(H){return _.d(_.RO,{data:H.data,
customCommandResolver:O})}}),_.d("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.d(_.iF,{data:function(){return t().adCardBadge}},{adCardBadgeViewModel:_.J2p})))},"In");var GCw=_.q(function(N){var t=N.data;var O=N.customCommandResolver;return _.d("ad-grid-card-text-view-model",{class:function(){var H;return((H=t().interaction)==null?0:H.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.E4(_.iU({visibilityCallback:function(H){var A,Z=(A=t().interaction)==null?void 0:A.onFirstVisible;H&&Z&&_.xJ(Z)},
showOption:_.e3}),_.kS(function(){return t().interaction},O)),
"aria-label":function(){var H,A;return(H=t().interaction)==null?void 0:(A=H.accessibility)==null?void 0:A.label}},_.d("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.d(_.y,{cond:function(){return t().title},
then:function(H){return _.d(_.cu,{text:H,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.d("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.d(_.nL,{each:function(){var H;
return((H=t())==null?void 0:H.descriptions)||[]},
keyBy:"INDEX"},function(H){return _.d(_.cu,{text:H,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.d("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.d(_.iF,{data:function(){return t().moreInfoButton}},{adButtonViewModel:function(H){return _.d(_.Xq,{data:H.data,
customCommandResolver:O})}})))},"Jn");var RcR=_.q(function(N){var t=N.data;var O=N.customCommandResolver;var H=N.adGridCardCollectionStyle;return _.d("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.E4(_.iU({visibilityCallback:function(A){var Z,U=(Z=t().interaction)==null?void 0:Z.onFirstVisible;A&&U&&_.xJ(U)},
showOption:_.e3})),style:function(){return"grid-template-columns: repeat("+FYd(H?H():t().style)+", minmax(0, 1fr));"}},_.d(_.iF,{data:function(){var A;
return(A=t())==null?void 0:A.gridCards}},{adGridCardImageViewModel:function(A){return _.d(E6R,{data:A.data,
customCommandResolver:O})},
adGridCardImageFullMetadataViewModel:function(A){return _.d(m1s,{data:A.data,customCommandResolver:O})},
adGridCardTextViewModel:function(A){return _.d(GCw,{data:A.data,customCommandResolver:O})}}))},"Kn");_.o_(_.q(function(N){var t=N.data;return _.d("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.E4(_.iU({visibilityCallback:function(O){var H,A=(H=t().interaction)==null?void 0:H.onFirstVisible;O&&A&&_.xJ(A)},
showOption:_.e3}),_.kS(function(){return t().interaction},gv1))},_.d("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.d(_.y,{cond:_.$I9("(min-width: "+((0,_.O5)()+_.ky)+"px)"),
then:function(){return _.d(_.iF,{data:function(){return t().adGridCardCollection}},{adGridCardCollectionViewModel:function(O){return _.d(RcR,{data:O.data,
customCommandResolver:gv1})}})},
else:function(){return _.d(_.iF,{data:function(){return t().adGridCardCollection}},{adGridCardCollectionViewModel:function(O){return _.d(RcR,{data:O.data,
customCommandResolver:gv1,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.d("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.d(_.iF,{data:function(){return t().adButton}},{adButtonViewModel:function(O){return _.d(_.Xq,{data:O.data,
customCommandResolver:gv1})}})))},"Ln"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;return _.d("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.E4(_.iU({visibilityCallback:function(O){var H,A=(H=t().interaction)==null?void 0:H.onFirstVisible;O&&A&&_.xJ(A)},
showOption:_.e3}),_.kS(function(){return t().interaction},yeR))},_.d("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.d(_.iF,{data:function(){if(_.$I9("(min-width: "+((0,_.O5)()+_.ky)+"px)")())var O=t().adGridCardCollection;
else{O=Object.assign({},_.M(t().adGridCardCollection,K81));var H;O.gridCards!==void 0&&((H=O.gridCards)==null?void 0:H.length)>1?O.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":O.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";O={adGridCardCollectionViewModel:O}}return O}},{adGridCardCollectionViewModel:function(O){return _.d(RcR,{data:O.data,
customCommandResolver:yeR})}})),_.d("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.d(_.iF,{data:function(){return t().adButton}},{adButtonViewModel:function(O){return _.d(_.Xq,{data:O.data,
customCommandResolver:yeR})}})))},"Mn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.$O}});var wj=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return N};
_.p(wj,_.k);_.V=wj.prototype;_.V.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.V.attached=function(){this.getDataFromPlayerAndRender()};
_.V.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.V.getDataFromPlayerAndRender=function(){var N=this,t=_.si(this.hostElement);t&&t.getPlayerPromise().then(function(O){N.getCachedDataAndListen(O)})};
_.V.getCachedDataAndListen=function(N){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(N,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(N,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=N)};
_.V.resolveCachedActions=function(){var N=_.s2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(N=N&&N())&&!_.WW.isEmpty(N)&&this.sendUpdateEngagementPanelAction(N);(N=(N=_.s2("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&N())&&!_.WW.isEmpty(N)&&this.sendChangeEngagementPanelVisibilityAction(N);(N=(N=_.s2("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&N())&&!_.WW.isEmpty(N)&&this.sendScrollToEngagementPanelCommand(N)};
_.V.sendUpdateEngagementPanelAction=function(N){var t;_.sl(this.hostElement,"yt-update-engagement-panel-action",[(t=_.WW.get(N,"action"))!=null?t:N])};
_.V.sendChangeEngagementPanelVisibilityAction=function(N){_.sl(this.hostElement,"yt-change-engagement-panel-visibility-action",[N])};
_.V.sendScrollToEngagementPanelCommand=function(N){_.sl(this.hostElement,"yt-scroll-to-engagement-panel-command",[N])};
_.V.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.h("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.J_(Error("cp"))};
wj.prototype.dataChanged=wj.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],wj.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],wj.prototype,"componentBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],wj.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wj.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],wj.prototype,"player",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wj.prototype,"dataChanged",null);_.W([_.en({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],wj);
_.n(wj,"ytd-ads-engagement-panel-content-renderer",function(){if(Qb1!==void 0)return Qb1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return Qb1=N},{mode:1});var v6A;var eM=function(){var N=_.k.apply(this,arguments)||this;N.player=null;N.JSC$23250_playerEvents=new Map;N.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return N};
_.p(eM,_.k);_.V=eM.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.V.created=function(){this.player=null;this.JSC$23250_playerEvents=new Map;this.JSC$23250_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23250_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23250_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23250_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.attached=function(){var N=this,t=_.si();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));t&&t.getPlayerPromise().then(function(O){N.setPlayer(O);N.set("isPageLoad",!1)})};
_.V.setPlayer=function(N){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23250_playerEvents);this.set("player",N);N&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$23250_playerEvents),N.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.V.onLoopRangeChange=function(N){var t=_.cY().resolve(_.BY(_.J4));if((!t||t.isOnWatch())&&this.hostElement.clientHeight){var O;!N&&((O=this.data)==null?0:O.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.V.onVideoProgress=function(N){var t,O,H=((t=this.player)==null?void 0:(O=t.getPresentingPlayerType)==null?void 0:O.call(t))===2;this.isAdPlaying!==H&&this.set("isAdPlaying",H);var A;if(!H&&(A=this.player)!=null&&A.getLoopRange()){O=this.player.getLoopRange();t=O.startTimeMs;O=O.endTimeMs;H=this.player.getProgressState(1).seekableStart;var Z;t<H*1E3&&((Z=this.data)==null?0:Z.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
N=O<N*1E3;var U;((U=this.player)==null?0:U.getLoopRange())&&N&&this.player.seekTo(t/1E3)}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onYtDeleteClipEngagementPanelCommand=function(N){_.M(N,par).command&&this.ytComponentBehavior.resolveCommand(_.M(N,par).command)};
_.cv.Object.defineProperties(eM.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.voteCount)||_.E_("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],eM.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],eM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],eM.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],eM.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],eM.prototype,"isAdPlaying",void 0);_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],eM.prototype,"isPageLoad",void 0);_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],eM.prototype,"isDarkTheme",void 0);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],eM.prototype,"voteCount",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],eM.prototype,"channelEndpoint",null);_.W([_.a("channelEndpoint"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],eM.prototype,"channelHref",null);_.W([_.en({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],eM);
_.n(eM,"ytd-clip-attribution-renderer",function(){if(v6A!==void 0)return v6A;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return v6A=N},{mode:1});var Jym;var P9=function(){var N=_.k.apply(this,arguments)||this;N.player=null;N.JSC$23255_playerEvents=new Map;return N};
_.p(P9,_.k);_.V=P9.prototype;_.V.created=function(){this.player=null;this.JSC$23255_playerEvents=new Map;this.JSC$23255_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23255_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23255_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.V.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.V.attached=function(){var N=this,t=_.si();t&&t.getPlayerPromise().then(function(O){N.setPlayer(O);N.set("isPageLoad",!1)})};
_.V.setPlayer=function(N){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23255_playerEvents);this.set("player",N);if(N){this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$23255_playerEvents);var t;(N==null?void 0:(t=N.getPresentingPlayerType)==null?void 0:t.call(N))===2&&this.playerAdStartHandler()}};
_.V.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.V.onVideoProgress=function(){var N,t,O=((N=this.player)==null?void 0:(t=N.getPresentingPlayerType)==null?void 0:t.call(N))===2;this.isAdPlaying!==O&&this.set("isAdPlaying",O)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],P9.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],P9.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],P9.prototype,"isAdPlaying",void 0);
_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],P9.prototype,"isPageLoad",void 0);_.W([_.en({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],P9);
_.n(P9,"ytd-clip-section-footer-renderer",function(){if(Jym!==void 0)return Jym;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Jym=N},{mode:1});var o61;var sbD;var New=function(){return _.k.apply(this,arguments)||this};
_.p(New,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],New.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],New.prototype,"data",void 0);_.W([_.en({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],New);
_.n(New,"ytd-clip-ad-state-renderer",function(){if(sbD!==void 0)return sbD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return sbD=N},{mode:1});var tmr;var XC=function(){var N=_.k.apply(this,arguments)||this;N.value="";N.valid=!1;N.userChangedValue=!1;N.disabled=!1;N.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return N};
_.p(XC,_.k);_.V=XC.prototype;_.V.detached=function(){this.userChangedValue=!1};
_.V.handleKeyDown=function(N){if(_.D7)var t=13;else _.R9R&&_.Ud?t=13:t=13;N.keyCode===t&&N.preventDefault()};
_.V.handleInput=function(){var N=_.O6(this.hostElement).querySelector("#title");if(N){var t=(N.value||"").replace(/\r|\n/g," ");this.set("value",t);N.value=t;this.valid=N.validate();this.userChangedValue=!0}};
_.V.handleBlur=function(){this.valid=_.O6(this.hostElement).querySelector("#title").validate()};
_.V.onValueChanged=function(){_.or(this.hostElement,"title-changed",{title:this.value})};
_.V.onValidChanged=function(){_.or(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.V.setInput=function(N,t){var O=_.O6(this.hostElement).querySelector("#title");O&&(O.value=N,this.handleInput(),t&&(O.invalid=!1,this.valid=!0))};
_.V.onClipCreationDisable=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable=function(){this.set("disabled",!1)};
_.V.onClipCreationVisibilityChange=function(N){var t=this;N.visible?requestAnimationFrame(function(){var O;((O=_.O6(t.hostElement).querySelector("#title"))==null?void 0:O.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
XC.prototype.onValidChanged=XC.prototype.onValidChanged;XC.prototype.onValueChanged=XC.prototype.onValueChanged;XC.prototype.handleBlur=XC.prototype.handleBlur;XC.prototype.handleInput=XC.prototype.handleInput;XC.prototype.handleKeyDown=XC.prototype.handleKeyDown;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],XC.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],XC.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],XC.prototype,"value",void 0);_.W([_.X(),_.Q("design:type",Object)],XC.prototype,"valid",void 0);_.W([_.X(),_.Q("design:type",Object)],XC.prototype,"userChangedValue",void 0);_.W([_.X(),_.Q("design:type",Object)],XC.prototype,"disabled",void 0);_.W([_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],XC.prototype,"handleKeyDown",null);
_.W([_.dz("input"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XC.prototype,"handleInput",null);_.W([_.dz("blur"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XC.prototype,"handleBlur",null);_.W([_.gz("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XC.prototype,"onValueChanged",null);
_.W([_.gz("valid"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],XC.prototype,"onValidChanged",null);_.W([_.en({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],XC);
_.n(XC,"ytd-clip-creation-text-input-renderer",function(){if(tmr!==void 0)return tmr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tmr=N},{mode:1});var O0R;var H0R;var Av$;var Z01;var Vm8;var x_=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};N.pendingStoryboardImages_={};N.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];N.tickLabelInterval=30;N.mediumTickInterval=5;N.largeTickInterval=15;N.aboveRulerHeight=32;N.rulerHeight=50;N.smallTickHeight=4;N.mediumTickHeight=8;N.largeTickHeight=16;N.mediaListeners_=
{};return N};
_.p(x_,_.k);_.V=x_.prototype;_.V.attached=function(){var N=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(t){t=_.D(["screen and (min-resolution: "+t+")","screen and (max-resolution: "+t+")"]);for(var O=t.next();!O.done;O=t.next()){O=O.value;var H=window.matchMedia(O);H&&(N.mediaListeners_[O]=N.updatePixelRatio_.bind(N),H.addEventListener?H.addEventListener("change",N.mediaListeners_[O]):H.addListener?H.addListener(N.mediaListeners_[O]):delete N.mediaListeners_[O])}})};
_.V.detached=function(){this.setPlayer(null);for(var N=_.D(Object.keys(this.mediaListeners_)),t=N.next();!t.done;t=N.next()){var O=t.value;t=this.mediaListeners_[O];(O=window.matchMedia(O))&&(O.removeEventListener?O.removeEventListener("change",t):O.removeListener&&O.removeListener(t))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.V.onVisibilityChangedAction_=function(N){var t=this;N.visible&&!this.player_&&(N=_.si())&&N.getPlayerPromise().then(function(O){t.setPlayer(O)})};
_.V.setPlayer=function(N){N&&this.set("player_",N)};
_.V.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.V.setUpCanvas_=function(){var N=this.rulerWidth,t=this.devicePixelRatio_,O=this.visible;this.set("canvasReady_",!1);if(O&&t!==0){O=this.aboveRulerHeight+this.rulerHeight;var H=_.O6(this.hostElement).querySelector("#ticks");H.width=N*t;H.height=O*t;H.style.width=N+"px";H.style.height=O+"px";H.getContext("2d").scale(t,t);this.set("canvasReady_",!0)}};
_.V.drawRuler_=function(N,t,O,H,A,Z,U,C,F,g,B,c){N&&O&&t&&(N=_.O6(this.hostElement).querySelector("#ticks"),t=N.getContext("2d"),t.clearRect(0,0,N.width,N.height),t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),t.lineWidth=2,t.beginPath(),t.moveTo(0,this.aboveRulerHeight),t.lineTo(N.width,this.aboveRulerHeight),t.moveTo(0,N.height),t.lineTo(N.width,N.height),t.stroke(),this.drawRulerTicks_(N,Z,A,H),this.drawStoryboardImages_(N,O,Z,A,H),t.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
t.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(U-Z,H,!1),this.rulerHeight),O=this.timeToPixels_(C-Z,H,!1),t.fillRect(O,this.aboveRulerHeight,N.width-O,this.rulerHeight),this.drawSpeedLines_(N,Z,c))};
_.V.drawRulerTicks_=function(N,t,O,H){var A=N.getContext("2d");A.save();A.lineWidth=1;for(var Z=Math.floor(Math.max(0,t-this.tickLabelInterval));Z<t+O;Z++){A.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var U=(Z-t)*H;A.beginPath();A.moveTo(U,N.height);var C=this.smallTickHeight;Z%this.largeTickInterval===0?C=this.largeTickHeight:Z%this.mediumTickInterval===0&&(C=this.mediumTickHeight);A.lineTo(U,N.height-C);A.stroke();Z%this.tickLabelInterval===0&&(A.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),A.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),A.fillText(wm(Z),U+4,12),A.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),A.moveTo(U,0),A.lineTo(U,this.aboveRulerHeight),A.stroke())}A.restore()};
_.V.percentToHex_=function(N){N=Math.round(N*255).toString(16);N.length<2&&(N="0"+N);return N};
_.V.drawSpeedLines_=function(N,t,O){var H=N.getContext("2d");H.save();var A=Math.min(25,Math.abs(O)-15)/25,Z=N.width*.3*A,U=N.width*-.3,C=N.width*1.3,F=this.aboveRulerHeight;N=N.height;var g=Math.round(4*A),B=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");B.length<7&&(B="#"+B.substring(1,4).repeat(2));var c=this.percentToHex_(.5+A/2);c=B+c;B+="00";if(A>0)for(A=0;A<g;A++){var u=U+Math.random()*(C-U),S=F+Math.random()*(N-F),b=Z+t%Z,z=H.createLinearGradient(u,S,u+b,S);
O<0?(z.addColorStop(0,c),z.addColorStop(.4,c),z.addColorStop(.9,B)):(z.addColorStop(.1,B),z.addColorStop(.6,c),z.addColorStop(1,c));H.strokeStyle=z;H.lineWidth=1;H.beginPath();H.moveTo(u,S);H.lineTo(u+b,S);H.stroke()}H.restore()};
_.V.getStoryboardForTime_=function(N,t,O){O===void 0&&(O=t.getNumberOfStoryboardLevels()-1);N=t.getStoryboardFrameIndex(N,O);return t.getStoryboardFrame(N,O)};
_.V.drawStoryboardImages_=function(N,t,O,H,A){if(!this.disabled){N=N.getContext("2d");var Z=this.getStoryboardForTime_(0,t);if(Z){var U=Z.width/Z.columns;Z=Z.height/Z.rows;var C=U/Z,F=this.rulerHeight*C;F=this.tickLabelInterval*(C<this.tickLabelInterval*A/this.rulerHeight?1/Math.floor(this.tickLabelInterval*A/F):Math.round(F/(this.tickLabelInterval*A)));var g=F*A,B=this.rulerHeight,c=g/this.rulerHeight,u=Math.floor(Math.max(0,O-F));for(u-=u%F;u<O+H;u+=F){var S=this.getStoryboardForTime_(u,t),b=this.getPreloadedStoryboard_(S.url);
if(b){var z=(u-O)*A,w=this.aboveRulerHeight,P=S.column*U,x=S.row*Z;if(C<c){var l=B/(g/C);S=U;l*=Z;x+=(Z-l)/2}else S=g/(B*C)*U,l=Z,P+=(U-S)/2;N.drawImage(b,P,x,S,l,z,w,g,B)}else this.fetchStoryboardImage_(S)}}}};
_.V.getPreloadedStoryboard_=function(N){return this.storyboardImages_.find(function(t){if(t.src==N)return!0;var O=t.src.indexOf(N);return O!=-1&&O==t.src.length-N.length})};
_.V.fetchStoryboardImage_=function(N){var t=this,O=this.getPreloadedStoryboard_(N.url),H=this.pendingStoryboardImages_[N.url];O||H!==void 0||(O=new Promise(function(A){var Z=new Image(N.width,N.height);Z.src=N.url;Z.onload=function(){A(Z)};
Z.onerror=function(){A(null)}}),this.pendingStoryboardImages_[N.url]=O,O.then(function(A){A&&t.push("storyboardImages_",A);
return A}).finally(function(){delete t.pendingStoryboardImages_[N.url]}))};
_.V.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.V.timeToPixels_=function(N,t,O){N*=t;return O===void 0||O?N+"px":N};
_.V.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
x_.prototype.drawRuler_=x_.prototype.drawRuler_;x_.prototype.setUpCanvas_=x_.prototype.setUpCanvas_;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],x_.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],x_.prototype,"start",void 0);_.W([_.X({value:30}),_.Q("design:type",Number)],x_.prototype,"end",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],x_.prototype,"visible",void 0);_.W([_.X(),_.Q("design:type",Object)],x_.prototype,"player_",void 0);_.W([_.X(),_.Q("design:type",Number)],x_.prototype,"tickSpacing",void 0);_.W([_.X(),_.Q("design:type",Number)],x_.prototype,"windowSizeSec",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],x_.prototype,"rulerWidth",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],x_.prototype,"rulerShift",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],x_.prototype,"canvasReady_",void 0);_.W([_.X({value:function(){return[]}}),
_.Q("design:type",Array)],x_.prototype,"storyboardImages_",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],x_.prototype,"disabled",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],x_.prototype,"forceRender_",void 0);_.W([_.X({value:1}),_.Q("design:type",Number)],x_.prototype,"devicePixelRatio_",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],x_.prototype,"windowSpeed",void 0);
_.W([_.gz("visible","devicePixelRatio_","rulerWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],x_.prototype,"setUpCanvas_",null);
_.W([_.gz("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Q("design:returntype")],x_.prototype,"drawRuler_",null);_.W([_.wz({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],x_);
_.n(x_,"yt-clip-creation-scrubber-canvas",function(){if(Vm8===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);Vm8=N}N=Vm8;return N},
{mode:2});var DTw;var UT1;var k_=function(){var N=_.k.apply(this,arguments)||this;N.start=0;N.end=30;N.visible=!1;N.draggingLeft_=!1;N.draggingRight_=!1;N.draggingRuler_=!1;N.draggingWindow_=!1;N.seekableStart=0;N.seekableEnd=0;N.rulerWidth_=0;N.rulerShift_=0;N.windowSlideSpeed=0;N.disabled=!1;N.initialized=!1;N.durationAccessibilityLabel="";N.activeLoopRange_=!1;N.rulerDragMouseStart_=0;N.rulerDragRulerStart_=0;N.rulerDragStartTime_=0;N.rulerDragEndTime_=0;N.dragMouseLastX_=0;N.scrollInterval_=null;N.scrubberVe_=null;N.boundHandlers_=
{};N.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return N};
_.p(k_,_.k);_.V=k_.prototype;
_.V.created=function(){var N=this;this.JSC$23268_playerEvents=new Map;this.JSC$23268_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23268_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23268_playerEvents.set("onStateChange",this.onStateChange_);var t={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(t).forEach(function(O){N.boundHandlers_[O]=t[O].bind(N)})};
_.V.attached=function(){this.activeLoopRange_=!1;_.O6(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.O6(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.UM(156731)};
_.V.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.O6(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.O6(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.V.onVisibilityChangedAction_=function(N){var t=this;N.visible&&!this.player_&&(N=_.si())&&N.getPlayerPromise().then(function(O){t.setPlayer(O)})};
_.V.setPlayer=function(N){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23268_playerEvents);N&&(this.set("player_",N),this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$23268_playerEvents))};
_.V.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.V.beginHandleDrag_=function(N){this.disabled||(N.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=N.clientX,N.target===_.O6(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():N.target===_.O6(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.V.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.V.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.V.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.V.beginRulerDrag_=function(N){this.disabled||(N.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=N.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.V.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.V.beginWindowScroll_=function(){var N=this;this.scrollInterval_=setInterval(function(){var t=N.windowSlideSpeed;if(t=_.z38(N.start,N.boundedRulerStartLimit_())?t-.1:_.z38(N.end,N.boundedRulerEndLimit_())?t+.1:0){var O=N.capRulerOffset_(N.rulerShift_+t);O==N.rulerShift_?t=0:(N.set("rulerShift_",O),_.or(N.hostElement,"set-fixed-length-range",{start:N.start+t,duration:N.end-N.start}))}N.set("windowSlideSpeed",t)},33)};
_.V.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.V.endDrag_=function(){this.logClick();var N=void 0;this.draggingRight_?N=this.end-1:this.draggingLeft_&&(N=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,N);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.V.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.V.updateRulerSize_=function(){this.set("rulerWidth_",_.O6(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.V.handleMouseDrag_=function(N){N.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(N):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(N):this.draggingWindow_&&this.handleWindowDrag_(N))};
_.V.handleRulerDrag_=function(N){N=this.pixelsToTime_(N.clientX-this.rulerDragMouseStart_);N=this.capRulerOffset_(this.rulerDragRulerStart_-N);this.set("rulerShift_",N);var t=this.rulerDragStartTime_-(this.rulerDragRulerStart_-N);_.or(this.hostElement,"set-fixed-length-range",{start:t,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-N)-t})};
_.V.handleWindowDrag_=function(N){var t=N.clientX-this.dragMouseLastX_;this.dragMouseLastX_=N.clientX;N=this.pixelsToTime_(t);_.or(this.hostElement,"set-fixed-length-range",{start:this.start+N,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.capRulerOffset_=function(N){var t=this.seekableStart-this.pixelsToTime_(16),O=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(t,N),O)};
_.V.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.V.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.V.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.V.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.V.handleWindowHandleDrag_=function(N){var t=N.clientX-this.dragMouseLastX_;this.dragMouseLastX_=N.clientX;N=this.pixelsToTime_(t);if(this.draggingLeft_){var O=this.start+N;var H=this.end}else this.draggingRight_&&(O=this.start,H=this.end+N);_.or(this.hostElement,"set-range",{start:O,end:H,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.V.onVideoProgress_=function(N){this.disabled||(N=this.timeToPixels_(N-this.rulerShift_,this.tickSpacing_),_.O6(this.hostElement).querySelector("#playhead").style.transform="translateX("+N+")")};
_.V.onClipCreationDisable_=function(){this.endDrag_()};
_.V.timeToPixels_=function(N,t,O){N*=t;return O===void 0||O?N+"px":N};
_.V.pixelsToTime_=function(N){return N/this.tickSpacing_};
_.V.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.centerRuler_=function(N,t,O){this.set("rulerShift_",this.capRulerOffset_(N+(t-N)/2-O/2))};
_.V.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.V.updateLoopRange_=function(N,t,O,H,A,Z,U){N&&(t&&H&&!O?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(N.pauseVideo(),N.seekTo(A,!1,void 0,void 0,50)):this.draggingRight_?(N.pauseVideo(),N.seekTo(Z-.1,!1,void 0,void 0,50)):(U!==void 0?N.seekTo(U,!0,void 0,void 0,50):(t=N.getCurrentTime(),t<A||t>Z?N.seekTo(A,!0,void 0,void 0,50):N.seekTo(t,!0,void 0,void 0,50)),N.playVideo()),N.setLoopRange({startTimeMs:A*1E3,endTimeMs:Z*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(N.getCurrentTime())):
this.activeLoopRange_&&(N.setLoopRange(null),this.activeLoopRange_=!1))};
_.V.updateHandles_=function(){_.O6(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.O6(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.V.updateRuler_=function(){var N=this.end,t=this.start,O=this.draggableStartLimit_(),H=this.draggableEndLimit_();(t<O-.001||N>H+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.V.computeDurationLabel_=function(N,t){return N?N.replace("$clip_length",parseFloat(t).toFixed(1)):""};
_.V.computeDuration_=function(N,t){return this.isValidTime_(N)&&this.isValidTime_(t)&&N<t?t-N:0};
_.V.isValidTime_=function(N){return isNaN(parseFloat(N))||N<0?!1:this.player_?N>=this.seekableStart&&N<=this.seekableEnd:!0};
_.V.computeWindowSizeSec_=function(N,t,O){return Math.min((N||12E4)/1E3,O-t)};
_.V.computeTickSpacing_=function(N,t){return t?t/N:1};
_.V.onDragStateChanged_=function(){_.or(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.V.centerRangeOnTime_=function(N){var t=this.duration;N=ceN(N-t/2,t,this.seekableStart,this.seekableEnd);_.or(this.hostElement,"set-fixed-length-range",{start:N.start,duration:N.end-N.start})};
_.V.nearlyLessThan_=function(N,t,O){return N+(O===void 0?1E-6:O)<t};
_.V.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var N=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(N,this.start)||this.nearlyLessThan_(this.end,N))&&this.centerRangeOnTime_(N)}};
_.V.onStateChange_=function(N){this.visible&&!this.disabled&&N==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.V.computeDragState_=function(N,t,O,H){return N?"left":t?"right":O?"ruler":H?"window":"none"};
_.V.logClick=function(){var N=_.z8(),t=_.pv();N&&t&&this.scrubberVe_&&(_.h("combine_ve_grafts")?_.r_(_.gF(),this.scrubberVe_,t):_.qp(N,t,this.scrubberVe_),_.IX(N,this.scrubberVe_))};
k_.prototype.onDragStateChanged_=k_.prototype.onDragStateChanged_;k_.prototype.updateRuler_=k_.prototype.updateRuler_;k_.prototype.updateHandles_=k_.prototype.updateHandles_;k_.prototype.onUpdateLoopRange=k_.prototype.onUpdateLoopRange;k_.prototype.onInitializedChanged_=k_.prototype.onInitializedChanged_;k_.prototype.onVisibleChanged_=k_.prototype.onVisibleChanged_;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],k_.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",Object)],k_.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"start",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"end",void 0);_.W([_.X({computed:"computeDuration_(start, end)"}),_.Q("design:type",Number)],k_.prototype,"duration",void 0);
_.W([_.X(),_.Q("design:type",String)],k_.prototype,"lengthTemplate",void 0);_.W([_.X({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Q("design:type",String)],k_.prototype,"durationLabel",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"visible",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"player_",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"draggingLeft_",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"draggingRight_",void 0);
_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"draggingRuler_",void 0);_.W([_.X({value:!1}),_.Q("design:type",Object)],k_.prototype,"draggingWindow_",void 0);_.W([_.X({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Q("design:type",Number)],k_.prototype,"tickSpacing_",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"seekableStart",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"seekableEnd",void 0);
_.W([_.X(),_.Q("design:type",Number)],k_.prototype,"windowSizeMs",void 0);_.W([_.X({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Q("design:type",Number)],k_.prototype,"windowSizeSec_",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"rulerWidth_",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"rulerShift_",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"windowSlideSpeed",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],k_.prototype,"disabled",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"initialized",void 0);_.W([_.X(),_.Q("design:type",Object)],k_.prototype,"durationAccessibilityLabel",void 0);_.W([_.X({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Q("design:type",String)],k_.prototype,"dragState",void 0);
_.W([_.gz("visible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k_.prototype,"onVisibleChanged_",null);_.W([_.gz("initialized"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k_.prototype,"onInitializedChanged_",null);_.W([_.gz("player_","visible","disabled","initialized","start","end"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k_.prototype,"onUpdateLoopRange",null);
_.W([_.gz("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k_.prototype,"updateHandles_",null);_.W([_.gz("start","end"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k_.prototype,"updateRuler_",null);
_.W([_.gz("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],k_.prototype,"onDragStateChanged_",null);_.W([_.wz({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],k_);
_.n(k_,"yt-clip-creation-scrubber-view",function(){if(UT1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;DTw===void 0&&(DTw=document.createElement("template"));var H=DTw;O.call(t,H.content.cloneNode(!0),N.content.firstChild);UT1=N}N=UT1;return N},{mode:2});var q5=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};N.startHighlightTimeout=0;N.endHighlightTimeout=0;return N};
_.p(q5,_.k);_.V=q5.prototype;_.V.attached=function(){var N=this;this.startInput.addEventListener("input",function(t){return N.handleStartInput_(t)});
this.endInput.addEventListener("input",function(t){return N.handleEndInput_(t)});
this.startInput.addEventListener("focusout",function(t){return N.handleStartBlur_(t)});
this.endInput.addEventListener("focusout",function(t){return N.handleEndBlur_(t)})};
_.V.setPlayer=function(N){this.set("player_",N)};
_.V.onSetFixedLengthRange_=function(N){var t=N.detail;N=t.start;var O=t.duration,H=t.startLimit;t=t.endLimit;H||(H=this.seekableStart_);t||(t=this.seekableEnd_);N=ceN(N,O,H,t);this.start=N.start;this.end=N.end};
_.V.onSetRange_=function(N){var t=N.detail;N=t.start;var O=t.end,H=t.startLimit;t=t.endLimit;H||(H=this.seekableStart_);t||(t=this.seekableEnd_);if(N=$H8(N,O,H,t,this.minLengthSec,this.maxLengthSec))this.start=N.start,this.end=N.end};
_.V.updateInputs_=function(){var N=this.end,t=this.start;this.startInput.focused||(this.startInput.value=wm(t,!0));this.endInput.focused||(this.endInput.value=wm(N,!0))};
_.V.handleStartInput_=function(N){N=BEN(N.target.value);if(N===null)this.set("startValid",!1);else{var t=this.end,O=$H8(N,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);O?(this.set("endWillUpdate",O.end!==t),this.set("startValid",O.start===N)):this.set("startValid",!1)}};
_.V.handleEndInput_=function(N){N=BEN(N.target.value);if(N===null)this.set("endValid",!1);else{var t=this.start,O=jDw(this.start,N,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);O?(this.set("startWillUpdate",O.start!==t),this.set("endValid",O.end===N)):this.set("endValid",!1)}};
_.V.handleStartBlur_=function(N){N=BEN(N.target.value);N===null?this.startInput.value=wm(this.start,!0):this.forceUpdateInputs_($H8(N,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.handleEndBlur_=function(N){N=BEN(N.target.value);N===null?this.endInput.value=wm(this.end,!0):this.forceUpdateInputs_(jDw(this.start,N,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.V.forceUpdateInputs_=function(N){N&&(this.start=N.start,this.end=N.end);this.startInput.value=wm(this.start,!0);this.endInput.value=wm(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.V.initializeClipRange_=function(){var N=this.seekableEnd_,t=this.seekableStart_,O=this.visible_,H=this.player_;if(!H||!O||t===null||!N)this.set("initialized",!1);else if(!this.initialized){var A=H.getCurrentTime(),Z=this.getDefaultLengthSec_();O=H.getVideoData();var U=H.getPlayerState()==1,C=O.isLive;Z=Math.min(Z,N-t);A=Math.max(0,A);N=C?jDw(A-Z,A,t,N,this.minLengthSec,this.maxLengthSec):U?ceN(A-Z/2,Z,t,N):ceN(A,Z,t,N);this.start=N.start;this.end=N.end;this.set("initialized",!0);O.isLive&&H.seekTo(N.start);
this.startInput.value=wm(this.start,!0);this.endInput.value=wm(this.end,!0)}};
_.V.onStartChanged_=function(){var N=this;_.or(this.hostElement,"start-changed",{start:this.start});var t;isNaN((t=this.oldStart)!=null?t:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){N.set("highlightStart",!1);N.startHighlightTimeout=0;N.oldStart=N.start},3E3))};
_.V.onEndChanged_=function(){var N=this;_.or(this.hostElement,"end-changed",{end:this.end});var t;isNaN((t=this.oldEnd)!=null?t:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){N.set("highlightEnd",!1);N.endHighlightTimeout=0;N.oldEnd=N.end},3E3))};
_.V.onVisibilityChangedAction_=function(N){var t=this;this.set("visible_",N.visible);this.visible_&&!this.player_&&(N=_.si())&&N.getPlayerPromise().then(function(O){t.setPlayer(O)})};
_.V.computeMinLengthSec_=function(N){return N/1E3||5};
_.V.computeMaxLengthSec_=function(N){return N/1E3||60};
_.V.computeDefaultLengthSec_=function(N){return N/1E3};
_.V.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.V.computeSeekableStart_=function(N,t){return N&&t?N.getProgressState(1).seekableStart:0};
_.V.computeSeekableEnd_=function(N,t){return N&&t?N.getProgressState(1).seekableEnd:0};
_.V.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.V.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.V.onDragState_=function(N){this.set("highlightStart",N.detail.startChanging);this.set("highlightEnd",N.detail.endChanging)};
q5.prototype.onDragState_=q5.prototype.onDragState_;q5.prototype.onEndChanged_=q5.prototype.onEndChanged_;q5.prototype.onStartChanged_=q5.prototype.onStartChanged_;q5.prototype.initializeClipRange_=q5.prototype.initializeClipRange_;q5.prototype.updateInputs_=q5.prototype.updateInputs_;q5.prototype.onSetRange_=q5.prototype.onSetRange_;q5.prototype.onSetFixedLengthRange_=q5.prototype.onSetFixedLengthRange_;
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],q5.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],q5.prototype,"data",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],q5.prototype,"start",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],q5.prototype,"startValid",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],q5.prototype,"startWillUpdate",void 0);_.W([_.X({value:30}),_.Q("design:type",Number)],q5.prototype,"end",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],q5.prototype,"endValid",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],q5.prototype,"endWillUpdate",void 0);_.W([_.X({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Q("design:type",Number)],q5.prototype,"minLengthSec",void 0);
_.W([_.X({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Q("design:type",Number)],q5.prototype,"maxLengthSec",void 0);_.W([_.X({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Q("design:type",Number)],q5.prototype,"defaultLengthSec",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],q5.prototype,"visible_",void 0);_.W([_.X(),_.Q("design:type",Object)],q5.prototype,"player_",void 0);
_.W([_.X({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Q("design:type",Number)],q5.prototype,"seekableStart_",void 0);_.W([_.X({computed:"computeSeekableEnd_(player_, visible_)"}),_.Q("design:type",Number)],q5.prototype,"seekableEnd_",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],q5.prototype,"initialized",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],q5.prototype,"disabled",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],q5.prototype,"highlightStart",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],q5.prototype,"highlightEnd",void 0);_.W([_.B2("#start"),_.Q("design:type",HTMLInputElement)],q5.prototype,"startInput",void 0);_.W([_.B2("#end"),_.Q("design:type",HTMLInputElement)],q5.prototype,"endInput",void 0);
_.W([_.dz("set-fixed-length-range"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],q5.prototype,"onSetFixedLengthRange_",null);_.W([_.dz("set-range"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],q5.prototype,"onSetRange_",null);_.W([_.gz("start","end"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q5.prototype,"updateInputs_",null);
_.W([_.gz("player_","visible_","seekableStart_","seekableEnd_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q5.prototype,"initializeClipRange_",null);_.W([_.gz("start"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q5.prototype,"onStartChanged_",null);_.W([_.gz("end"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],q5.prototype,"onEndChanged_",null);
_.W([_.dz("clips-drag-state"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],q5.prototype,"onDragState_",null);_.W([_.wz({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],q5);
_.n(q5,"yt-clip-creation-scrubber-renderer",function(){if(Z01===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Av$===void 0&&(Av$=document.createElement("template"));var H=Av$;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Z01=N}N=Z01;return N},{mode:2});var fB=function(){var N=_.k.apply(this,arguments)||this;N.player_=null;N.JSC$23282_playerEvents=new Map;N.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return N};
_.p(fB,_.k);_.V=fB.prototype;_.V.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.V.created=function(){this.JSC$23282_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23282_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23282_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23282_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.V.detached=function(){this.setPlayer(null)};
_.V.onVisibilityChangedAction_=function(N){var t=this,O;if((O=this.data)==null?0:O.externalVideoId){var H;this.videoId=(H=this.data)==null?void 0:H.externalVideoId}this.getPlayer().then(function(A){if(N.visible)t.returnTime=A.getCurrentTime(),t.isAtLiveHead=A.getProgressState().isAtLiveHead;else{var Z=t.returnTime;t.isAtLiveHead&&(Z=Number.POSITIVE_INFINITY);A.seekTo(Z,void 0,void 0,void 0,51)}})};
_.V.getPlayer=function(){var N=this;if(!this.player_){var t=_.si();if(t)return t.getPlayerPromise().then(function(O){N.setPlayer(O);return O})}return Promise.resolve(this.player_)};
_.V.setPlayer=function(N){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23282_playerEvents);if(N){this.player_=N;var t;((t=this.data)==null?0:t.externalVideoId)||this.set("videoId",N.getVideoData().video_id||"");var O;(N==null?void 0:(O=N.getPresentingPlayerType)==null?void 0:O.call(N))===2&&(this.set("isAdPlaying",!0),_.sl(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(N,this.JSC$23282_playerEvents)}};
_.V.ready=function(){_.O6(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.V.onTitleChanged_=function(N){this.set("titleValue",N.detail.title)};
_.V.onStartChanged_=function(N){this.set("start",N.detail.start)};
_.V.onEndChanged_=function(N){this.set("end",N.detail.end)};
_.V.onTitleValidChanged_=function(N){this.set("titleValid",N.detail.valid)};
_.V.onStartValidChanged_=function(N){this.set("startValid",N.detail.valid)};
_.V.onEndValidChanged_=function(N){this.set("endValid",N.detail.valid)};
_.V.onVideoDataChange_=function(){var N;if((N=this.data)==null||!N.externalVideoId){var t;this.set("videoId",((t=this.player_)==null?void 0:t.getVideoData().video_id)||"")}};
_.V.computeFormValid_=function(N,t,O,H){return!!(N&&t&&O&&H)};
_.V.computeCancelButton_=function(N,t,O){return N&&_.M(N,_.g_)?{buttonRenderer:Object.assign({},_.M(N,_.g_),{isDisabled:t||O})}:null};
_.V.computeSubmitButton_=function(N,t,O){return N&&_.M(N,_.g_)?{buttonRenderer:Object.assign({},_.M(N,_.g_),{command:void 0,isDisabled:!this.formValid||t||O})}:null};
_.V.computeSubmitCommand_=function(N){return N||null};
_.V.onSubmit_=function(N){var t=this;N.stopPropagation();N.preventDefault();this.submitCommand_&&(N={},N.comment_text=this.titleValue,N.clip_external_video_id=this.videoId,N.clip_offset_ms=parseInt(this.start*1E3,10),N.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.tb(this.hostElement,[this.submitCommand_,N]).then(function(){t.set("isLoading_",!1)},function(){t.set("isLoading_",!1)}))};
_.V.playerAdStartHandler_=function(){_.sl(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.V.playerAdEndHandler_=function(){_.sl(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.V.onVideoProgress_=function(){var N=this;this.getPlayer().then(function(t){var O,H=(t==null?void 0:(O=t.getPresentingPlayerType)==null?void 0:O.call(t))===2;N.isAdPlaying!==H&&(H?N.playerAdStartHandler_():N.playerAdEndHandler_())})};
fB.prototype.onEndValidChanged_=fB.prototype.onEndValidChanged_;fB.prototype.onStartValidChanged_=fB.prototype.onStartValidChanged_;fB.prototype.onTitleValidChanged_=fB.prototype.onTitleValidChanged_;fB.prototype.onEndChanged_=fB.prototype.onEndChanged_;fB.prototype.onStartChanged_=fB.prototype.onStartChanged_;fB.prototype.onTitleChanged_=fB.prototype.onTitleChanged_;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",Object)],fB.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fB.prototype,"data",void 0);_.W([_.X({value:""}),_.Q("design:type",String)],fB.prototype,"titleValue",void 0);
_.W([_.X({value:!1}),_.Q("design:type",Boolean)],fB.prototype,"titleValid",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],fB.prototype,"start",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],fB.prototype,"startValid",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],fB.prototype,"end",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],fB.prototype,"endValid",void 0);_.W([_.X({value:""}),_.Q("design:type",String)],fB.prototype,"videoId",void 0);
_.W([_.X({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Q("design:type",Boolean)],fB.prototype,"formValid",void 0);_.W([_.X({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Q("design:type",Object)],fB.prototype,"submitButton_",void 0);_.W([_.X({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Q("design:type",Object)],fB.prototype,"submitCommand_",void 0);
_.W([_.X({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Q("design:type",Object)],fB.prototype,"cancelButton_",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],fB.prototype,"isLoading_",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],fB.prototype,"isAdPlaying",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],fB.prototype,"returnTime",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],fB.prototype,"isAtLiveHead",void 0);
_.W([_.dz("title-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fB.prototype,"onTitleChanged_",null);_.W([_.dz("start-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fB.prototype,"onStartChanged_",null);_.W([_.dz("end-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fB.prototype,"onEndChanged_",null);
_.W([_.dz("title-valid-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fB.prototype,"onTitleValidChanged_",null);_.W([_.dz("start-valid-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fB.prototype,"onStartValidChanged_",null);_.W([_.dz("end-valid-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fB.prototype,"onEndValidChanged_",null);
_.W([_.wz({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],fB);
_.n(fB,"yt-clip-creation-renderer",function(){if(H0R===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;O0R===void 0&&(O0R=document.createElement("template"));var H=O0R;O.call(t,H.content.cloneNode(!0),N.content.firstChild);H0R=N}N=H0R;return N},{mode:2});var nB=function(){return _.k.apply(this,arguments)||this};
_.p(nB,_.k);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(N){return N.hasOwnProperty("clipCreationRenderer")})&&_.sl(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
nB.prototype.onPanelContentVisibleChanged=nB.prototype.onPanelContentVisibleChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.dd.YtVisibilityBehavior),_.Q("design:type",Object)],nB.prototype,"ytVisibilityBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],nB.prototype,"ytdReduxBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],nB.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],nB.prototype,"panelContentVisible",void 0);_.W([_.gz("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nB.prototype,"onPanelContentVisibleChanged",null);_.W([_.en({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],nB);
_.n(nB,"ytd-clip-section-renderer",function(){if(o61!==void 0)return o61;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return o61=N},{mode:1});var CqV;var W9=function(){return _.k.apply(this,arguments)||this};
_.p(W9,_.k);_.V=W9.prototype;
_.V.onKeyDown=function(N){if(this.snippetElements.length!==0&&(N=N.keyCode,N===38||N===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);N===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.eS(this.highlightedIndex,-1,this.snippetElements.length);N=this.snippetElements.length;var t=this.highlightedIndex%N;this.highlightedIndex=t*N<0?t+N:t;N=this.snippetElements[this.highlightedIndex];this.highlightSnippet(N);this.ensureVisible(N)}};
_.V.onKeyUp=function(N){var t=this;Vgm(N)&&(N.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.GB.cancelJob(this.inputTimerId),this.inputTimerId=_.GB.addLowPriorityJob(function(){t.typedValue&&(t.fetchSnippets(t.typedValue),t.logInputGesture(t.data))},1E3))};
_.V.onClick=function(N){(N=_.nmB(N.target,null,"snippet-item"))&&this.selectSnippet(N)};
_.V.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.V.ready=function(){var N=this;this.inputElement.addEventListener("focus",function(){N.snippetsWrapper.style.removeProperty("display")})};
_.V.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.V.getSourceTimelines=function(){if(!this.data)return[];var N=[];if(this.data.searchInVideoSources)for(var t=_.D(this.data.searchInVideoSources),O=t.next();!O.done;O=t.next())O=O.value,O==="SEARCH_IN_VIDEO_SOURCE_ASR"?N.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):O==="SEARCH_IN_VIDEO_SOURCE_OCR"&&N.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return N};
_.V.fetchSnippets=function(N){var t=_.sl(this.hostElement,"yt-get-current-video-id-action")[0],O=this.getSourceTimelines();N={getSearchInVideoCommand:{externalVideoId:t,query:N!=null?N:"",sourceTimelines:O},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}})};
_.V.filterSnippets=function(N,t){var O=this;if(t){this.filteredSnippets=(0,_.WW.unsafeClone)(N);var H=RegExp(_.Ljy(t),"i");this.filteredSnippets=this.filteredSnippets.filter(function(U){return H.test(O.ytRendererBehavior.getSimpleString(U.snippet))});
N=_.D(this.filteredSnippets);for(var A=N.next();!A.done;A=N.next()){A=A.value;var Z=this.ytRendererBehavior.getSimpleString(A.snippet);A.snippet={runs:[{text:Z.substring(0,Z.toLowerCase().indexOf(t))},{text:Z.substring(Z.toLowerCase().indexOf(t),Z.toLowerCase().indexOf(t)+t.length),bold:!0},{text:Z.substring(Z.toLowerCase().indexOf(t)+t.length,Z.length)}]}}}else this.filteredSnippets=N};
_.V.onUpdateSearchInVideoResults=function(N){if(!(this.snippets.length>0)){var t,O,H;if((H=(t=_.M(N,izA))==null?void 0:(O=t.results)==null?void 0:O.length)!=null&&H){var A;this.filteredSnippets=this.snippets=((A=_.M(N,izA))==null?void 0:A.results).map(function(Z){var U,C,F;return{startMs:Z==null?void 0:(U=Z.searchInVideoResultRenderer)==null?void 0:U.startMs,startTimeText:Z==null?void 0:(C=Z.searchInVideoResultRenderer)==null?void 0:C.startTimeText,snippet:Z==null?void 0:(F=Z.searchInVideoResultRenderer)==
null?void 0:F.snippet}})}}};
_.V.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.V.highlightSnippet=function(N){N.classList.add("highlighted")};
_.V.removeSnippetHighlight=function(N){N.classList.remove("highlighted")};
_.V.selectSnippet=function(N){this.typedValue=String(N.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(N);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.V.ensureVisible=function(N){var t=this.snippetsWrapper.scrollTop,O=t+this.snippetsWrapper.clientHeight,H=N.offsetTop-this.snippetsWrapper.offsetTop;N=H+N.clientHeight;H<t?this.snippetsWrapper.scrollTop-=t-H:N>O&&(this.snippetsWrapper.scrollTop+=N-O)};
_.V.seekPlayer=function(N){var t,O;return _.K(function(H){if(H.nextAddress==1){if(!N)return H.jumpTo(0);t=Number(N.dataset.startOffset);return H.yield(_.NU().getPlayerPromise(),3)}O=H.yieldResult;O.seekTo(t/1E3,!0);O.wakeUpControls();_.Ty(H)})};
_.V.logInputGesture=function(N){var t=_.z8();t&&(N==null?0:N.trackingParams)&&_.lp(t,_.ib(N.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.V.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("typed-value-changed",this.typedValue))};
_.V.updateTypedValueFromBinding=function(N){this.typedValue=N.currentTarget.value};
W9.prototype.typedValueChangedForBinding=W9.prototype.typedValueChangedForBinding;W9.prototype.dataChanged=W9.prototype.dataChanged;W9.prototype.panelContentVisibleChanged=W9.prototype.panelContentVisibleChanged;W9.prototype.onClick=W9.prototype.onClick;W9.prototype.onKeyUp=W9.prototype.onKeyUp;W9.prototype.onKeyDown=W9.prototype.onKeyDown;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],W9.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],W9.prototype,"data",void 0);_.W([_.X({value:[]}),_.Q("design:type",Array)],W9.prototype,"snippets",void 0);_.W([_.X({value:[]}),_.Q("design:type",Array)],W9.prototype,"filteredSnippets",void 0);_.W([_.X({value:[]}),_.Q("design:type",Array)],W9.prototype,"snippetElements",void 0);
_.W([_.B2("#siv-input"),_.Q("design:type",HTMLElement)],W9.prototype,"inputElement",void 0);_.W([_.B2("#siv-snippets-wrapper"),_.Q("design:type",HTMLElement)],W9.prototype,"snippetsWrapper",void 0);_.W([_.X(),_.Q("design:type",String)],W9.prototype,"typedValue",void 0);_.W([_.X({value:-1}),_.Q("design:type",Number)],W9.prototype,"highlightedIndex",void 0);_.W([_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[_.Tk]),_.Q("design:returntype")],W9.prototype,"onKeyDown",null);
_.W([_.dz("keyup"),_.Q("design:type",Function),_.Q("design:paramtypes",[_.Tk]),_.Q("design:returntype")],W9.prototype,"onKeyUp",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],W9.prototype,"onClick",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],W9.prototype,"panelContentVisible",void 0);
_.W([_.gz("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W9.prototype,"panelContentVisibleChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W9.prototype,"dataChanged",null);_.W([_.gz("typedValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W9.prototype,"typedValueChangedForBinding",null);
_.W([_.en({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],W9);
_.n(W9,"ytd-search-in-video-renderer",function(){if(CqV!==void 0)return CqV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return CqV=N},{mode:1});var KFD;var rj=function(){return _.k.apply(this,arguments)||this};
_.p(rj,_.k);rj.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
rj.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]]"}}}}}};
rj.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var N,t,O,H,A=(t=_.M((N=this.data)==null?void 0:N.onClickCommand,_.Tkp))==null?void 0:(O=t.item)==null?void 0:(H=O.notificationTextRenderer)==null?void 0:H.successResponseText;A&&_.Chp(this.hostElement,A)}};
_.cv.Object.defineProperties(rj.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H;return this.isProductPlaceholder&&((N=this.data)==null?void 0:(t=N.hiddenProductOptions)==null?void 0:t.showDropCountdown)&&!!((O=this.data)==null?0:(H=O.hiddenProductOptions)==null?0:H.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var N;return!this.isProductPlaceholder&&!((N=this.data)==null?0:N.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null?0:N.priceReplacementText)&&!((t=this.data)==null||!t.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],rj.prototype,"componentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rj.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],rj.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("isProductPlaceholder"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rj.prototype,"useCenterLayoutContainer",null);_.W([_.X({computed:"computeButtonOverride(data)"}),_.Q("design:type",Object)],rj.prototype,"buttonOverride",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rj.prototype,"isProductPlaceholder",null);
_.W([_.a("isProductPlaceholder"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rj.prototype,"showDropCountdown",null);_.W([_.a("isProductPlaceholder","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rj.prototype,"showBrandName",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rj.prototype,"showPriceReplacementText",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rj.prototype,"showPrice",null);
_.W([_.a("isProductPlaceholder"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rj.prototype,"showMetadata",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],rj);
_.n(rj,"ytd-product-list-item-renderer",function(){if(KFD!==void 0)return KFD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return KFD=N},{mode:1});var FFm;var IT=function(){return _.k.apply(this,arguments)||this};
_.p(IT,_.k);IT.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
IT.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
IT.prototype.panelContentVisibleChanged=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return N.playerApi?O.jumpTo(2):O.yield(_.NU().getPlayerPromise(),3);O.nextAddress!=2&&(N.playerApi=O.yieldResult);(t=N.playerApi)==null||t.productsInVideoVisibilityUpdated(!!N.panelContentVisible);_.Ty(O)})};
IT.prototype.panelContentVisibleChanged=IT.prototype.panelContentVisibleChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],IT.prototype,"panelContentVisible",void 0);_.W([_.X(),_.Q("design:type",Object)],IT.prototype,"data",void 0);
_.W([_.gz("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],IT.prototype,"panelContentVisibleChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],IT);
_.n(IT,"ytd-product-list-renderer",function(){if(FFm!==void 0)return FFm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return FFm=N},{mode:1});var dT9;var li=function(){var N=_.k.apply(this,arguments)||this;N.hideTimestamps=!!_.b8("hide-transcript-timestamps");N.currentCueIndex=-1;N.flatCues=[];N.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};N.TEST_ONLY={getFlatCues:function(){return N.flatCues}};
return N};
_.p(li,_.k);_.V=li.prototype;_.V.hideTimestampsChanged=function(){_.ML("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.dataChanged=function(){var N;if((N=this.data)!=null&&N.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;N=_.D(this.data.cueGroups);for(var t=N.next();!t.done;t=N.next()){t=_.D(_.M(t.value,ucd).cues);for(var O=t.next();!O.done;O=t.next())this.flatCues.push(Number(_.M(O.value,Svl).startOffsetMs))}}};
_.V.onYtPlayerTimeChanged=function(N){if(!(N<0)){for(var t=this.currentCueIndex,O=t;;){var H=O>=0?this.flatCues[O]/1E3:-1;if(N+.5<H)--O;else if(H=O+1<this.flatCues.length?this.flatCues[O+1]/1E3:Infinity,N+.5>H)O+=1;else break}O!==t&&(t>=0&&((N=this.getCueElement(t))&&N.classList.remove("active"),(t=this.getCueGroupElement(t))&&t.classList.remove("active")),(t=this.getCueElement(O))&&t.classList.add("active"),(t=this.getCueGroupElement(O))&&t.classList.add("active"),this.currentCueIndex=O,this.isHovered||
this.scrollElementToTop(O))}};
_.V.scrollElementToTop=function(N){N=this.getCueElement(N>=3?N-3:0);this.hostElement.scrollTop=Math.min(N.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.getCueElement=function(N){return _.O6(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[N]+'"]')};
_.V.getCueGroupElement=function(N){return(N=this.getCueElement(N))&&N.parentElement?N.parentElement.parentElement:null};
_.V.onTap=function(N){var t=_.E3(N);N.target.classList.contains("cue")&&this.seekCueElement(t)};
_.V.onKeyPress=function(N){N.keyCode==13&&(N=_.nmB(N.target,null,"cue"))&&this.seekCueElement(N)};
_.V.seekCueElement=function(N){N=Number(N.getAttribute("start-offset"));_.sl(this.hostElement,"yt-transcript-player-seek",[N/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
li.prototype.onMouseLeave=li.prototype.onMouseLeave;li.prototype.onMouseEnter=li.prototype.onMouseEnter;li.prototype.onKeyPress=li.prototype.onKeyPress;li.prototype.onTap=li.prototype.onTap;li.prototype.dataChanged=li.prototype.dataChanged;li.prototype.hideTimestampsChanged=li.prototype.hideTimestampsChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],li.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],li.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],li.prototype,"hideTimestamps",void 0);_.W([_.X(),_.Q("design:type",Boolean)],li.prototype,"isHovered",void 0);_.W([_.gz("hideTimestamps"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],li.prototype,"hideTimestampsChanged",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],li.prototype,"dataChanged",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],li.prototype,"onTap",null);_.W([_.dz("keypress"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],li.prototype,"onKeyPress",null);
_.W([_.dz("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],li.prototype,"onMouseEnter",null);_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],li.prototype,"onMouseLeave",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],li);
_.n(li,"ytd-transcript-body-renderer",function(){if(dT9!==void 0)return dT9;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return dT9=N},{mode:1});var gIw;var QK=function(){var N=_.k.apply(this,arguments)||this;N.darkerPanels=_.h("web_watch_darker_panels");return N};
_.p(QK,_.k);QK.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],QK.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],QK.prototype,"darkerPanels",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],QK);
_.n(QK,"ytd-transcript-footer-renderer",function(){if(gIw!==void 0)return gIw;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return gIw=N},{mode:1});var yvA;var BeA;var m4=function(){var N=_.k.apply(this,arguments)||this;N.systemIcons=_.h("kevlar_system_icons");N.showClearButton=!1;return N};
_.p(m4,_.k);_.V=m4.prototype;_.V.handleInput=function(N){var t=this;N.target.value.length?_.W2(this,"ytdTranscriptSearchBoxSearch",function(){t.emitSearchEvent(N)},500):(_.c99(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=N.target.value.length>0};
_.V.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.V.handleClick=function(){var N,t=(N=this.data)==null?void 0:N.trackingParams;t&&_.Q2(_.gF(),t)};
_.V.handleClear=function(){_.c99(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var N,t,O=(t=_.M((N=this.data)==null?void 0:N.clearButton,_.g_))==null?void 0:t.trackingParams;O&&_.Q2(_.gF(),O);this.clear()};
_.V.emitSearchEvent=function(N){_.or(this.hostElement,"yt-transcript-search-box-search",{query:N.target.value});var t,O;(N=(O=_.M((t=this.data)==null?void 0:t.searchButton,_.g_))==null?void 0:O.trackingParams)&&_.Q2(_.gF(),N)};
_.V.emitClearEvent=function(){_.or(this.hostElement,"yt-transcript-search-box-clear")};
_.cv.Object.defineProperties(m4.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.O6(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],m4.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],m4.prototype,"systemIcons",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],m4);
_.n(m4,"ytd-transcript-search-box-renderer",function(){if(BeA!==void 0)return BeA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return BeA=N},{mode:1});var cvV;var $TN;var Eq=function(){return _.k.apply(this,arguments)||this};
_.p(Eq,_.k);Eq.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var N,t;this.sectionHeaderAriaLabel=(N=this.data)==null?void 0:(t=N.accessibility)==null?void 0:t.accessibilityData.label}};
Eq.prototype.fireSelectedEvent=function(N){_.or(this.hostElement,"ytd-transcript-section-header",{startMs:N})};
Eq.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Eq.prototype.handleKeyPress=function(N){this.data&&N.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.cv.Object.defineProperties(Eq.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=(N=this.data)==null?void 0:N.enableTappableTranscriptHeader)!=null?t:!1}}});
Eq.prototype.dataChanged=Eq.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],Eq.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],Eq.prototype,"sectionHeaderAriaLabel",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Eq.prototype,"enableTappableTranscriptHeader",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Eq.prototype,"dataChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Eq);
_.n(Eq,"ytd-transcript-section-header-renderer",function(){if($TN!==void 0)return $TN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $TN=N},{mode:1});var jnD;var i0N;var Gq=function(){var N=_.k.apply(this,arguments)||this;N.isEditMode=!1;N.touchCaptionsEnabled=!1;N.deleteCaptionCorrectionPopupCommand=null;N.voteCaptionCorrectionPopupCommand=null;N.roundedContainer=!0;N.mouseOver=!1;N.textChanged=!1;N.messages={suggest_correction:_.CJ("suggest_correction",void 0,"Edit caption"),suggested_caption:_.CJ("suggested_caption",void 0,"Suggested caption"),submit_correction:_.CJ("submit_correction",void 0,"Submit for review"),cancel_correction:_.CJ("cancel_correction",
void 0,"Cancel"),replay_segment:_.CJ("replay_segment",void 0,"Re-play segment"),delete_correction:_.CJ("delete_correction",void 0,"Delete correction")};N.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return N};
_.p(Gq,_.k);_.V=Gq.prototype;_.V.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.V.handleDelete=function(N){if(this.deleteCaptionCorrectionPopupCommand){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);t&&this.ytdOpenPopupBehavior.openPopup(t);N.stopPropagation()}};
_.V.handleSubmit=function(N){if(this.data&&this.data.submitCaptionCorrectionCommand&&(N.stopPropagation(),this.textChanged)){var t;N=(t=_.M(this.data.submitCaptionCorrectionCommand,_.XFR))==null?void 0:t.params;t=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:N,correctionText:String(this.ironTextAreaElement.value),originalText:_.Gv(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(t);this.isEditMode=!1}};
_.V.handleUpdateSegmentText=function(N){(N=_.M(N,qvd))&&N.targetId&&this.data&&N.targetId===this.data.targetId&&(N.userCorrection&&(this.editedText=N.userCorrection),N.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Gv(this.data.snippet)),N.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=N.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=N.voteCaptionCorrectionPopupCommand?
N.voteCaptionCorrectionPopupCommand:null,N.accessibility&&(this.segmentAriaLabel=N.accessibility.accessibilityData.label))};
_.V.handleCancel=function(N){this.isEditMode=!1;N.stopPropagation();this.logClientVe(159409)};
_.V.handleEditSegmentCommand=function(N){(N=_.M(N,kBV))&&N.targetId&&this.data&&N.targetId===this.data.targetId&&this.handleEdit()};
_.V.handleEditButtonClick=function(N){this.data&&(this.handleEdit(),N.stopPropagation())};
_.V.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var N;(N=this.ironTextAreaElement.textarea)==null||N.focus();this.logClientVe(159407)}};
_.V.handleMouseEnter=function(){this.mouseOver=!0};
_.V.handleMouseLeave=function(){this.mouseOver=!1};
_.V.handleReplay=function(N){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),N.stopPropagation(),this.logClientVe(159408))};
_.V.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.V.handleKeypress=function(N){this.data&&(this.isEditMode?N.stopPropagation():this.isEnterPress(N)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(N)&&this.logClientVe(138758))};
_.V.handleTextboxClick=function(N){N.stopPropagation()};
_.V.handleTextboxKeydown=function(N){this.isControlEnterPress(N)?this.handleSubmit(N):N.key==="Escape"&&this.handleCancel(N)};
_.V.handleTextboxKeyup=function(){this.textChanged=_.Gv(this.latestText)!==String(this.ironTextAreaElement.value)};
_.V.fireSelectedEvent=function(N){_.or(this.hostElement,"yt-transcript-segment-selected",{startMs:N})};
_.V.fireReplayEvent=function(N,t){_.or(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(N-100,0),endMs:t})};
_.V.fireEditEvent=function(N,t){_.or(this.hostElement,"yt-transcript-segment-edit",{startMs:N,endMs:t})};
_.V.isEnterPress=function(N){return N.key==="Enter"||N.code==="Enter"||N.code==="NumpadEnter"||N.keyCode===13?!0:!1};
_.V.isControlEnterPress=function(N){var t=N.key==="Enter"||N.code==="Enter"||N.code==="NumpadEnter"||N.keyCode===13;return(N.ctrlKey||N.metaKey)&&t};
_.V.isCopyPress=function(N){var t=N.ctrlKey;return N.key==="c"&&t};
_.V.logClick=function(){var N,t=(N=this.data)==null?void 0:N.trackingParams;t&&_.Q2(_.gF(),t)};
_.V.logClientVe=function(N){_.lA(_.gF(),_.UM(N))};
_.cv.Object.defineProperties(Gq.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}}});
Gq.prototype.handleMouseLeave=Gq.prototype.handleMouseLeave;Gq.prototype.handleMouseEnter=Gq.prototype.handleMouseEnter;Gq.prototype.dataChanged=Gq.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Gq.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],Gq.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Gq.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Gq.prototype,"isEditMode",void 0);_.W([_.X(),_.Q("design:type",Object)],Gq.prototype,"touchCaptionsEnabled",void 0);_.W([_.X(),_.Q("design:type",Object)],Gq.prototype,"editedText",void 0);_.W([_.X(),_.Q("design:type",Object)],Gq.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.W([_.X(),_.Q("design:type",Object)],Gq.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.W([_.X(),_.Q("design:type",String)],Gq.prototype,"segmentAriaLabel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Gq.prototype,"roundedContainer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Gq.prototype,"mouseOver",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Gq.prototype,"textChanged",void 0);_.W([_.X(),_.Q("design:type",Object)],Gq.prototype,"messages",void 0);
_.W([_.B2("#suggestion"),_.Q("design:type",Object)],Gq.prototype,"ironTextAreaElement",void 0);_.W([_.a("data","editedText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Gq.prototype,"latestText",null);_.W([_.a("touchCaptionsEnabled","isEditMode"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Gq.prototype,"enableEditButton",null);
_.W([_.a("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Gq.prototype,"enableUndoButton",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gq.prototype,"dataChanged",null);_.W([_.dz("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gq.prototype,"handleMouseEnter",null);
_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Gq.prototype,"handleMouseLeave",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Gq);
_.n(Gq,"ytd-transcript-segment-renderer",function(){if(i0N!==void 0)return i0N;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return i0N=N},{mode:1});var RT=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};N.isError=!1;N.darkerPanels=_.h("web_watch_darker_panels");N.useParentMaxHeight=_.h("web_watch_transscript_use_parent_max_height");N.segmentOffsets=[];N.segmentIndex=-1;return N};
_.p(RT,_.k);_.V=RT.prototype;_.V.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.V.segmentsChanged=function(){this.updateOffsets()};
_.V.onYtPlayerTimeChanged=function(N){for(var t=this.segmentIndex,O=t;;){if(O>=0){var H=this.segmentOffsets[O].start;var A=this.segmentOffsets[O].isAutoScrollable}else H=-1,A=!0;var Z=N+.5;if(!A){H=O+1<this.segmentOffsets.length?this.segmentOffsets[O+1].start:Infinity;if(Z>=H){O+=1;continue}O=-1;break}if(Z<H)H=O-1>=0&&this.segmentOffsets[O-1].isAutoScrollable,A=O===0||H?1:2,O-=A;else if(A=O+1<this.segmentOffsets.length&&this.segmentOffsets[O+1].isAutoScrollable?1:2,H=O+A<this.segmentOffsets.length?
this.segmentOffsets[O+A].start:Infinity,Z>H)O+=A;else{if(O<0)break;O<this.segmentOffsets.length&&Z>this.segmentOffsets[O].end&&(O=-1);break}}if(t!==O){if(t>=0){var U;(U=this.getSegmentElement(t))==null||U.classList.remove("active")}this.segmentIndex=O;if(!(O<0)){var C;(C=this.getSegmentElement(O))==null||C.classList.add("active");this.isHovered||this.scrollElementToTop(O)}}};
_.V.handleSegmentEdit=function(N){N.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=N.target,_.sl(this.hostElement,"yt-transcript-player-edit",[N.detail.startMs/1E3,N.detail.endMs/1E3]))};
_.V.handleSegmentSelected=function(N){_.sl(this.hostElement,"yt-transcript-player-seek",[N.detail.startMs/1E3])};
_.V.handleSegmentReplay=function(N){_.sl(this.hostElement,"yt-transcript-player-replay",[N.detail.startMs/1E3,N.detail.endMs/1E3])};
_.V.handleSectionHeaderSelected=function(N){_.sl(this.hostElement,"yt-transcript-player-seek",[N.detail.startMs/1E3])};
_.V.onMouseEnter=function(){this.isHovered=!0};
_.V.onMouseLeave=function(){this.isHovered=!1};
_.V.onRetryButtonClick=function(){_.or(this.hostElement,"transcript-retry-button-click")};
_.V.getSegmentElement=function(N){return _.O6(this.hostElement).querySelector(":nth-child("+(N+1)+")")};
_.V.scrollElementToTop=function(N){N=this.getSegmentElement(N>=2?N-2:0);this.hostElement.scrollTop=Math.min(N.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.V.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(N){var t,O=(t=N.transcriptSegmentRenderer)!=null?t:N.transcriptSectionHeaderRenderer;return{start:Number(O.startMs)/1E3,end:Number(O.endMs)/1E3,isAutoScrollable:N.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.V.clearHighlightedSegments=function(){var N=_.O6(this.hostElement);N=_.D(N.querySelectorAll("ytd-transcript-segment-renderer"));for(var t=N.next();!t.done;t=N.next())t.value.classList.remove("active")};
_.cv.Object.defineProperties(RT.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:N.searchResultSegments)||((t=this.data)==null?void 0:t.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
RT.prototype.onMouseLeave=RT.prototype.onMouseLeave;RT.prototype.onMouseEnter=RT.prototype.onMouseEnter;RT.prototype.handleSectionHeaderSelected=RT.prototype.handleSectionHeaderSelected;RT.prototype.handleSegmentReplay=RT.prototype.handleSegmentReplay;RT.prototype.handleSegmentSelected=RT.prototype.handleSegmentSelected;RT.prototype.handleSegmentEdit=RT.prototype.handleSegmentEdit;RT.prototype.segmentsChanged=RT.prototype.segmentsChanged;
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],RT.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],RT.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],RT.prototype,"isError",void 0);
_.W([_.X(),_.Q("design:type",Object)],RT.prototype,"noResultLabel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],RT.prototype,"darkerPanels",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],RT.prototype,"useParentMaxHeight",void 0);_.W([_.a("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],RT.prototype,"segments",null);
_.W([_.a("segments","noResultLabel"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RT.prototype,"displayNoResults",null);_.W([_.gz("segments"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RT.prototype,"segmentsChanged",null);_.W([_.dz("yt-transcript-segment-edit"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],RT.prototype,"handleSegmentEdit",null);
_.W([_.dz("yt-transcript-segment-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],RT.prototype,"handleSegmentSelected",null);_.W([_.dz("yt-transcript-segment-replay"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],RT.prototype,"handleSegmentReplay",null);
_.W([_.dz("ytd-transcript-section-header"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],RT.prototype,"handleSectionHeaderSelected",null);_.W([_.dz("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RT.prototype,"onMouseEnter",null);_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RT.prototype,"onMouseLeave",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],RT);
_.n(RT,"ytd-transcript-segment-list-renderer",function(){if(jnD!==void 0)return jnD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return jnD=N},{mode:1});var v9=function(){var N=_.k.apply(this,arguments)||this;N.hideTimestamps=!!_.b8("hide-transcript-timestamps");N.isLoadingTranscripts=!1;N.darkerPanels=_.h("web_watch_darker_panels");N.isError=!1;N.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return N};
_.p(v9,_.k);_.V=v9.prototype;_.V.headerChanged=function(){var N,t;this.baseGetTranscriptsCommand=(t=_.M((N=this.data)==null?void 0:N.header,foR))==null?void 0:t.onTextChangeCommand};
_.V.bodyChanged=function(){var N=this.getBodyRenderer();N&&(N.initialSegments&&(this.initialTranscriptsRenderer=N),N.noResultLabel&&(this.noResultLabel=N.noResultLabel),N.retryLabel&&(this.retryLabel=N.retryLabel))};
_.V.detached=function(){this.clearSearchBoxText()};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.V.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.V.fireSearch=function(N){var t=this;if(N){var O=N.detail.query;if(this.baseGetTranscriptsCommand){var H;N=(H=_.M(this.baseGetTranscriptsCommand,_.XbB))==null?void 0:H.params;var A;H=_.M((A=this.data)==null?void 0:A.footer,hAm);var Z;if((A=(Z=_.M(H==null?void 0:H.languageMenu,XaA))==null?void 0:Z.subMenuItems)&&A.length>0&&(Z=A.find(function(F){return F.selected}))){var U,C;
N=(U=Z.continuation)==null?void 0:(C=U.reloadContinuationData)==null?void 0:C.continuation}U=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:N,searchQuery:O}});this.ytComponentBehavior.resolveCommand(U,{commandController:{onServerError:function(){t.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});tgV(this.ytContinuationHandlerBehavior,function(){return O===t.getCurrentSearchBoxText()})}}};
_.V.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.V.onRetryButtonClick=function(){this.isError=!1;var N={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:N}))};
_.V.hideTimestampsChanged=function(){_.ML("hide-transcript-timestamps",this.hideTimestamps)};
_.V.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.V.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.V.handleSignalActionCopyTranscript=function(){var N=this,t=this.getBodyRenderer();t&&(t=((t==null?void 0:t.searchResultSegments)||(t==null?void 0:t.initialSegments)||[]).map(function(O){return _.M(O,W8D)}).filter(function(O){return!!O}).map(function(O){return{snippet:O.snippet||{runs:[{text:""}]},
startTimeText:O.startTimeText||{simpleText:""}}}).map(function(O){var H=(O.snippet.runs||[]).reduce(function(A,Z){return A+Z.text},"");
return N.hideTimestamps?H:O.startTimeText.simpleText+" "+H}).join("\n"),this.copyToClipboard(t))};
_.V.copyToClipboard=function(N){navigator.clipboard&&navigator.clipboard.writeText(N)};
_.V.getCurrentSearchBoxText=function(){var N;return(N=this.searchBox)==null?void 0:N.value};
_.V.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.V.getBodyRenderer=function(){var N;return _.M((N=this.data)==null?void 0:N.body,n21)};
_.V.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.cv.Object.defineProperties(v9.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.O6(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
v9.prototype.hideTimestampsChanged=v9.prototype.hideTimestampsChanged;v9.prototype.searchCleared=v9.prototype.searchCleared;v9.prototype.fireSearch=v9.prototype.fireSearch;v9.prototype.onReloadContinuationFinish=v9.prototype.onReloadContinuationFinish;v9.prototype.bodyChanged=v9.prototype.bodyChanged;v9.prototype.headerChanged=v9.prototype.headerChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],v9.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],v9.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],v9.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],v9.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],v9.prototype,"hideTimestamps",void 0);
_.W([_.X(),_.Q("design:type",Object)],v9.prototype,"isLoadingTranscripts",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],v9.prototype,"darkerPanels",void 0);_.W([_.X(),_.Q("design:type",Object)],v9.prototype,"isError",void 0);_.W([_.gz("data.header"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v9.prototype,"headerChanged",null);
_.W([_.ic("data.body"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v9.prototype,"bodyChanged",null);_.W([_.dz("yt-reload-continuation-finish"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v9.prototype,"onReloadContinuationFinish",null);_.W([_.dz("yt-transcript-search-box-search"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],v9.prototype,"fireSearch",null);
_.W([_.dz("yt-transcript-search-box-clear"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v9.prototype,"searchCleared",null);_.W([_.gz("hideTimestamps"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],v9.prototype,"hideTimestampsChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],v9);
_.n(v9,"ytd-transcript-search-panel-renderer",function(){if(cvV!==void 0)return cvV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return cvV=N},{mode:1});var JQ=function(){var N=_.k.apply(this,arguments)||this;N.player=null;N.playerPollJobId=0;return N};
_.p(JQ,_.k);_.V=JQ.prototype;_.V.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.V.onLoadReloadContinuation=function(N){_.h("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:N.target.data.continuation}}):(N={clickTrackingParams:N.target.data.clickTrackingParams,getTranscriptEndpoint:{params:N.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}}))};
_.V.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.V.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.V.attached=function(){this.updatePlayerListening()};
_.V.detached=function(){this.updatePlayerListening()};
_.V.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.V.startPlayerListening=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return(t=_.si())?O.yield(t.getPlayerPromise(),2):O.return();N.player=O.yieldResult;N.playerPollJobId=_.GB.addLowPriorityJob(function(){N.getPlayerVideoProgress()},1E3);
N.player.addEventListener("onCueRangeEnter",function(H){N.onCueRangeEnter(H)});
N.player.addEventListener("onCueRangeExit",function(H){N.onCueRangeExit(H)});
N.player.addEventListener("onStateChange",function(H){N.onPlayerStateChange(H)});
N.player.addEventListener("SEEK_TO",function(H){N.onPlayerSeek(H)});
_.Ty(O)})};
_.V.getPlayerVideoProgress=function(){var N=this;_.GB.cancelJob(this.playerPollJobId);if(this.player){var t=this.player.getCurrentTime();_.sl(this.hostElement,"yt-player-time-changed",[t])}this.playerPollJobId=_.GB.addLowPriorityJob(function(){N.getPlayerVideoProgress()},1E3)};
_.V.stopPlayerListening=function(){this.player=null;_.GB.cancelJob(this.playerPollJobId)};
_.V.onPlayerStateChange=function(N){N===2&&this.removePendingCue()};
_.V.onPlayerSeek=function(N){var t;if(t=this.pendingReplayCueId)t=this.pendingReplayCueId,t=N===(_.h("web_transcript_cue_id_killswitch")?Number(t):Number(t.split("_")[1]));t||this.removePendingCue()};
_.V.onCueRangeEnter=function(N){ued(N)&&(this.pendingReplayCueId=N)};
_.V.onCueRangeExit=function(N){ued(N)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.V.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.V.onYtTranscriptPlayerSeek=function(N){this.player&&this.player.seekTo(N,!0)};
_.V.onYtTranscriptPlayerReplay=function(N,t){this.player&&(this.player.addCueRange(iFs(N),N,t),this.player.seekTo(N,!0),this.player.playVideo())};
_.V.onYtTranscriptPlayerEdit=function(N,t){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(iFs(N),N,t),this.player.seekTo(N,!0))};
JQ.prototype.onLoadReloadContinuation=JQ.prototype.onLoadReloadContinuation;JQ.prototype.panelContentVisibleChanged=JQ.prototype.panelContentVisibleChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],JQ.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],JQ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],JQ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],JQ.prototype,"panelContentVisible",void 0);_.W([_.gz("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JQ.prototype,"panelContentVisibleChanged",null);
_.W([_.dz("yt-load-reload-continuation"),_.Q("design:type",Function),_.Q("design:paramtypes",[Object]),_.Q("design:returntype")],JQ.prototype,"onLoadReloadContinuation",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],JQ);
_.n(JQ,"ytd-transcript-renderer",function(){if(yvA!==void 0)return yvA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yvA=N},{mode:1});var udl;var S8m;var oT=function(){return _.k.apply(this,arguments)||this};
_.p(oT,_.k);oT.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.OK(this.hostElement,[this.data.clickCommand],this.hostElement))};
oT.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.O5)()+_.ky)+"px)"};
oT.prototype.updateShouldHideFromBinding=function(N){this.shouldHide=N.detail.value};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oT.prototype,"rendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oT.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],oT.prototype,"shouldHide",void 0);_.W([_.en({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],oT);
_.n(oT,"ytd-ad-engagement-panel-banner-renderer",function(){if(S8m!==void 0)return S8m;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return S8m=N},{mode:_.O4("kevlar_poly_si_batch_j070")?1:2});var hKD;var sq=function(){var N=_.k.apply(this,arguments)||this;N.buttonUpdate=_.h("web_modern_buttons");N.adsSemanticText=_.h("enable_ads_web_ep_buenos_aires_and_padding_fix");return N};
_.p(sq,_.k);sq.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.W([_.X(),_.Q("design:type",Object)],sq.prototype,"data",void 0);_.W([_.X({computed:"computeHideDefaultAdBadge(data)"}),_.Q("design:type",Boolean)],sq.prototype,"hideDefaultAdBadge",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sq.prototype,"buttonUpdate",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sq.prototype,"adsSemanticText",void 0);_.W([_.en({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],sq);
_.n(sq,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(hKD!==void 0)return hKD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return hKD=N},{mode:1});var Mmd;var Nb=function(){var N=_.k.apply(this,arguments)||this;N.darkerPanels=_.h("web_watch_darker_panels");N.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");N.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");N.headerClickListener=function(t){N.onHeaderClick(t)};
N.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return N};
_.p(Nb,_.k);_.V=Nb.prototype;_.V.computeAdsInfoButton=function(){if(_.h("web_modern_buttons")){var N,t;return(t=_.M((N=this.data)==null?void 0:N.subtitleComplex,Mgr))==null?void 0:t.adInfoRenderer}};
_.V.updateHeaderClickListener=function(){var N,t,O;((N=this.data)==null?0:N.navigationEndpoint)||((t=this.data)==null?0:t.onClickCommand)||_.M((O=this.data)==null?void 0:O.visibilityButton,_.y2)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.V.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.V.collapsedChanged=function(){var N;(N=this.data)!=null&&N.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.h("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.V.focus=function(N){var t=this;this.titleElement&&_.GB.addJob(function(){_.Cb(t.titleElement,N)},0,500)};
_.V.computeTitleAriaLabel=function(N){var t=[];if(N.title){var O,H;t.push(this.ytRendererBehavior.getSimpleString(N.title)||((O=N.title.accessibility)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label))}N.contextualInfo&&t.push(this.ytRendererBehavior.getSimpleString(N.contextualInfo));return t.join(" ")};
_.V.onHeaderClick=function(N){this.shouldTriggerHeaderClick(N)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.OK(this.hostElement,[this.data.onClickCommand],this.hostElement)):(N=this.getVisibilityToggleButton())&&N.click())};
_.V.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var N=_.M(this.data.visibilityButton,_.g_)||_.M(this.data.visibilityButton,_.y2);N&&this.ytRendererBehavior.logExplicitClick(N)}};
_.V.getVisibilityToggleButton=function(){var N=_.O6(this.hostElement).querySelector("#visibility-button").firstElementChild;return(N==null?void 0:N.is)==="ytd-toggle-button-renderer"?N:null};
_.V.shouldTriggerHeaderClick=function(N){return!_.RM(_.m1(N),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.V.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(N){N=_.M(N,_.yrV);this.targetId&&(N==null?void 0:N.targetId)===this.targetId&&(N=N.navigationButton)&&this.set("data.navigationButton",N)};
_.cv.Object.defineProperties(Nb.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var N;return!!(((N=this.entity)==null?0:N.isActionButtonHidden)||this.hideActionButton)}}});
Nb.prototype.collapsedChanged=Nb.prototype.collapsedChanged;Nb.prototype.updateHeaderClickListener=Nb.prototype.updateHeaderClickListener;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Nb.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],Nb.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Nb.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],Nb.prototype,"targetId",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Nb.prototype,"collapsed",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Nb.prototype,"hideActionButton",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nb.prototype,"shortsPanel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nb.prototype,"liveChatEngagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nb.prototype,"learningChatEngagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nb.prototype,"darkerPanels",void 0);_.W([_.B2("#title"),_.Q("design:type",HTMLElement)],Nb.prototype,"titleElement",void 0);_.W([_.B2("#header"),_.Q("design:type",HTMLElement)],Nb.prototype,"headerElement",void 0);
_.W([_.X({computed:"computeAdsInfoButton(data)"}),_.Q("design:type",Object)],Nb.prototype,"adsInfoButton",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nb.prototype,"enableSqueezebackPanels",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Nb.prototype,"enableAnchoredPanel",void 0);_.W([_.X({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(N,t){return _.CM(N.entities,"engagementPanelTitleHeaderEntity",t)}}),
_.Q("design:type",Object)],Nb.prototype,"entity",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("targetId"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nb.prototype,"adsSemanticText",null);_.W([_.gz("data","data.navigationEndpoint","data.onClickCommand"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nb.prototype,"updateHeaderClickListener",null);
_.W([_.ic("collapsed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Nb.prototype,"collapsedChanged",null);_.W([_.a("entity","hideActionButton"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Nb.prototype,"isActionButtonHidden",null);_.W([_.en({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Nb);
_.n(Nb,"ytd-engagement-panel-title-header-renderer",function(){if(Mmd!==void 0)return Mmd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Mmd=N},{mode:1});var b09;var tT=function(){return _.k.apply(this,arguments)||this};
_.p(tT,_.k);tT.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tT.prototype,"data",void 0);_.W([_.en({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],tT);
_.n(tT,"ytd-macro-markers-info-item-renderer",function(){if(b09!==void 0)return b09;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return b09=N},{mode:1});var pvm;var OF=function(N,t,O,H,A,Z){_.k1.call(this);var U=this;this.JSC$23382_containerElement=N;this.hostElement=t;this.supportedSyncItems=O;this.syncEntityKey=H;this.options=A;this.renderLazyListItems=Z;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;LFm(this);zKN(this);this.JSC$23382_scrollAnimation=new _.p5(function(C){N.scrollTop=C});
_.L1(this,this.JSC$23382_scrollAnimation);this.addOnDisposeCallback(function(){Y8w(U,!1);U.activeItem&&U.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.p(OF,_.k1);var LFm=function(N){var t=_.Jc(_.cY().resolve(_.VT),function(O){return O.entities.markersEngagementPanelSyncEntity||{}},function(O,H){var A;
if(O[N.syncEntityKey]!==H[N.syncEntityKey]&&((A=O[N.syncEntityKey])==null?void 0:A.activeItemIndex)!==void 0)if(H=O[N.syncEntityKey].activeItemIndex,O=N.getItemByIndex(H)){if(a01(N,O),N.contentVisible)if(N.browsingMode){var Z;((Z=N.options)==null?void 0:Z.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Z=TeN(N),O.offsetTop<N.JSC$23382_containerElement.clientHeight+N.JSC$23382_containerElement.scrollTop&&Z&&!N.activeItemBelowSyncPosition&&Y8w(N,!1));wvV(N)}else N.scrollToItem(O)}else _.J_(new _.fF("Could not find "+
N.supportedSyncItems+" sync child to set active.",H,N.JSC$23382_containerElement.querySelectorAll(N.supportedSyncItems).length))});
N.unsubscribeFromTimedMarkersListSyncEntity=t;N.addOnDisposeCallback(t);eKr(N)},eKr=function(N){var t=_.cY().resolve(_.VT);
t=_.dW9(t.getState(),N.syncEntityKey);(t==null?void 0:t.activeItemIndex)!==void 0&&(t=N.getItemByIndex(t.activeItemIndex))&&a01(N,t)},zKN=function(N){var t=new _.KE(N.onScroll,50,N);
_.L1(N,t);var O=function(){t.fire()};
N.JSC$23382_containerElement.addEventListener("scroll",O);N.addOnDisposeCallback(function(){N.JSC$23382_containerElement.removeEventListener("scroll",O)})};
OF.prototype.getItemByIndex=function(N){var t;(t=this.renderLazyListItems)==null||t.call(this,N);t=this.JSC$23382_containerElement.querySelectorAll(this.supportedSyncItems);if(t.length>N)return t[N]};
var a01=function(N,t){N.activeItem&&N.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));t.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));N.activeItem=t};
OF.prototype.scrollToItem=function(N){N=this.getScrollPositionForItem(N);this.JSC$23382_containerElement.scrollTop!==N&&this.JSC$23382_scrollAnimation.start(this.JSC$23382_containerElement.scrollTop,N,300)};
OF.prototype.getScrollPositionForItem=function(N){if(this.JSC$23382_containerElement.querySelectorAll(this.supportedSyncItems)[0]===N)return 0;var t,O=((t=this.options)==null?0:t.percentOffset)?this.JSC$23382_containerElement.clientHeight*this.options.percentOffset:0;N=_.mq(N).y+this.JSC$23382_containerElement.scrollTop-(_.mq(this.JSC$23382_containerElement).y+O);return Math.max(0,Math.min(N,this.JSC$23382_containerElement.scrollHeight-this.JSC$23382_containerElement.offsetHeight))};
OF.prototype.onScroll=function(){this.activeItemBelowSyncPosition=TeN(this);if(this.activeItem&&!this.JSC$23382_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23382_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var N;switch((N=this.options)==null?void 0:N.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":PqV(this,!Xvr(this));wvV(this);break;default:PqV(this,!0)}}};
var PqV=function(N,t){var O,H;_.K(function(A){if(A.nextAddress==1){if(N.browsingMode)return A.return();N.browsingMode=!0;t&&N.hostElement.classList.add("browsing-mode");N.playerExitBrowsingModeListener=function(){Y8w(N,!1)};
return A.yield(_.Kx(),2)}O=A.yieldResult;(H=O)==null||H.addEventListener("SEEK_TO",N.playerExitBrowsingModeListener);_.Ty(A)})},Y8w=function(N,t){t=t===void 0?!0:t;
N.browsingMode&&(N.browsingMode=!1,N.hostElement.classList.remove("browsing-mode"),t&&N.scrollToItem(N.activeItem),xTD(N))},xTD=function(N){var t,O;
_.K(function(H){if(H.nextAddress==1)return N.playerExitBrowsingModeListener?H.yield(_.Kx(),3):H.jumpTo(0);t=H.yieldResult;(O=t)==null||O.removeEventListener("SEEK_TO",N.playerExitBrowsingModeListener);N.playerExitBrowsingModeListener=void 0;_.Ty(H)})},wvV=function(N){var t;
((t=N.options)==null?void 0:t.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Xvr(N)?N.hostElement.classList.remove("browsing-mode"):N.activeItem&&N.hostElement.classList.add("browsing-mode"))},TeN=function(N){if(!N.activeItem)return!1;
var t,O=((t=N.options)==null?0:t.percentOffset)?N.JSC$23382_containerElement.clientHeight*N.options.percentOffset:0;return N.activeItem.offsetTop>=N.JSC$23382_containerElement.scrollTop+O},Xvr=function(N){if(!N.activeItem)return!1;
var t=N.activeItem.offsetTop+14<=N.JSC$23382_containerElement.scrollTop+N.JSC$23382_containerElement.clientHeight;return N.activeItem.offsetTop+N.activeItem.clientHeight-14>=N.JSC$23382_containerElement.scrollTop&&t};
OF.prototype.panelContentVisibleChanged=function(N){(this.contentVisible=N)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var kZ$=function(N,t){N.syncEntityKey=t;var O;(O=N.unsubscribeFromTimedMarkersListSyncEntity)==null||O.call(N);LFm(N)},q8d=function(N,t){N.options=t};var Hx=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return N};
_.p(Hx,_.k);_.V=Hx.prototype;_.V.detached=function(){var N;(N=this.scrollController)==null||N.dispose();this.scrollController=void 0};
_.V.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.V.dataChanged=function(){var N=this;_.yB(this,function(){if(N.scrollController){var t;(t=N.scrollController)==null||Y8w(t,!1);var O,H,A;(H=N.scrollController)==null||kZ$(H,(A=(O=N.data)==null?void 0:O.syncModelEntityKey)!=null?A:"default-macro-markers-list-renderer-entity-key");var Z,U,C;(C=N.scrollController)==null||q8d(C,{percentOffset:(Z=N.data)==null?void 0:Z.selectedItemAlignmentPercentOffset,floatingPillType:(U=N.data)==null?void 0:U.floatingPillType})}else{var F,g,B,c;N.scrollController=
new OF(N.contents,N.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(c=(F=N.data)==null?void 0:F.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key",{percentOffset:(g=N.data)==null?void 0:g.selectedItemAlignmentPercentOffset,floatingPillType:(B=N.data)==null?void 0:B.floatingPillType},function(u){N.renderLazyListItems(u)})}N.scrollController.panelContentVisibleChanged(!!N.panelContentVisible)})};
_.V.computeButtonShape=function(){var N=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){N.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.V.renderLazyListItems=function(N){for(var t=this.contents.children,O=0,H=0;H<t.length;H++){var A=void 0;(A=t[H].ytLazyListBehavior)==null||A.fillRemainingListItems();var Z=void 0,U=void 0;A=_.M((Z=this.data)==null?void 0:(U=Z.contents)==null?void 0:U[H],_.jgB);U=Z=void 0;if((Z=A)==null?0:(U=Z.contents)==null?0:U.length)O+=A.contents.length;if(O>=N)break}};
_.V.handleSetActivePanelItemAction=function(N){if((N=_.M(N,crV))&&this.panelTargetId===N.panelTargetId){N=N.itemIndex;var t,O,H=(O=(t=this.data)==null?void 0:t.syncModelEntityKey)!=null?O:"default-macro-markers-list-renderer-entity-key",A;((A=this.syncEntity)==null?void 0:A.activeItemIndex)!==N&&this.ytdReduxBehavior.dispatch(_.uF("markersEngagementPanelSyncEntity",H,{key:H,activeItemIndex:N}))}};
_.V.onSyncClick=function(){var N;(N=this.scrollController)==null||Y8w(N)};
_.V.panelContentVisibleChanged=function(){var N;(N=this.scrollController)==null||N.panelContentVisibleChanged(!!this.panelContentVisible)};
Hx.prototype.panelContentVisibleChanged=Hx.prototype.panelContentVisibleChanged;Hx.prototype.dataChanged=Hx.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Hx.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],Hx.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Hx.prototype,"data",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],Hx.prototype,"useCustomColors",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],Hx.prototype,"panelTargetId",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Hx.prototype,"panelContentVisible",void 0);
_.W([_.B2("#contents"),_.Q("design:type",HTMLElement)],Hx.prototype,"contents",void 0);_.W([_.X({selectorArgs:["data.syncModelEntityKey"],selector:_.dW9}),_.Q("design:type",Object)],Hx.prototype,"syncEntity",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hx.prototype,"dataChanged",null);
_.W([_.gz("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hx.prototype,"panelContentVisibleChanged",null);_.W([_.en({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Hx);
_.n(Hx,"ytd-macro-markers-list-renderer",function(){if(pvm!==void 0)return pvm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return pvm=N},{mode:1});var f0r;var AT=function(){return _.k.apply(this,arguments)||this};
_.p(AT,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],AT.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],AT.prototype,"data",void 0);_.W([_.en({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],AT);
_.n(AT,"ytd-error-corrections-section-item-renderer",function(){if(f0r!==void 0)return f0r;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return f0r=N},{mode:1});var nIs;var Z$=function(){return _.k.apply(this,arguments)||this};
_.p(Z$,_.k);Z$.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Z$.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Z$.prototype,"data",void 0);_.W([_.en({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Z$);
_.n(Z$,"ytd-error-corrections-section-renderer",function(){if(nIs!==void 0)return nIs;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return nIs=N},{mode:1});var WFA;var VR=function(){return _.k.apply(this,arguments)||this};
_.p(VR,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],VR.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VR.prototype,"data",void 0);_.W([_.en({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],VR);
_.n(VR,"ytd-topic-link-renderer",function(){if(WFA!==void 0)return WFA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return WFA=N},{mode:1});var rvV;var D$=function(){var N=_.k.apply(this,arguments)||this;N.modernLockupV2=_.h("modernize_structured_description_playlist_lockups_v2");return N};
_.p(D$,_.k);D$.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],D$.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],D$.prototype,"modernLockupV2",void 0);_.W([_.en({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],D$);
_.n(D$,"ytd-video-description-course-section-renderer",function(){if(rvV!==void 0)return rvV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return rvV=N},{mode:1});var I0s;var UF=function(){return _.k.apply(this,arguments)||this};
_.p(UF,_.k);UF.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UF.prototype,"data",void 0);_.W([_.en({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],UF);
_.n(UF,"ytd-video-description-files-section-renderer",function(){if(I0s!==void 0)return I0s;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return I0s=N},{mode:1});var l0V;var CW=function(){return _.k.apply(this,arguments)||this};
_.p(CW,_.k);CW.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],CW.prototype,"data",void 0);_.W([_.en({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],CW);
_.n(CW,"ytd-video-description-gaming-section-renderer",function(){if(l0V!==void 0)return l0V;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return l0V=N},{mode:1});var QnV;var KW=function(){var N=_.k.apply(this,arguments)||this;N.isExpanded=!1;return N};
_.p(KW,_.k);KW.prototype.computeHasDefaultMetadataEndpoint=function(N){var t;N=N==null?void 0:(t=N.defaultMetadata)==null?void 0:t.runs;return!(!N||N.length!==1||!N[0].navigationEndpoint)};
KW.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.cv.Object.defineProperties(KW.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],KW.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],KW.prototype,"isExpanded",void 0);_.W([_.X({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],KW.prototype,"hasDefaultMetadataEndpoint",void 0);
_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],KW.prototype,"isExpandable",null);_.W([_.a("data","isExpandable","isExpanded"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],KW.prototype,"showExpandedMetadata",null);_.W([_.en({is:"ytd-info-row-renderer",disableElementRegistration:!0})],KW);
_.n(KW,"ytd-info-row-renderer",function(){if(QnV!==void 0)return QnV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return QnV=N},{mode:1});var mTd;var Fz=function(){var N=_.k.apply(this,arguments)||this;N.currentIndex=0;N.supportComponentResize=!0;N.JSC$23411_lastScrollContainerWidth=NaN;return N};
_.p(Fz,_.k);_.V=Fz.prototype;
_.V.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.V.getItemsPath=function(){return"videoLockups"};
_.V.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.V.onIronResize=function(){this.updateVideoLockupStyles()};
_.V.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.V.updateVideoLockupStyles=function(){var N;this.JSC$23411_scrollContainer!==void 0&&(N=this.videoLockups)!=null&&N.length&&(N=this.JSC$23411_scrollContainer.clientWidth,N!==this.JSC$23411_lastScrollContainerWidth&&(this.JSC$23411_lastScrollContainerWidth=N,_.CO(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(N*.8,415)+"px"}),_.or(this.hostElement,"iron-resize")))};
_.cv.Object.defineProperties(Fz.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var N=[],t;if((t=this.data)==null||!t.carouselLockups)return N;t=_.D(this.data.carouselLockups);for(var O=t.next();!O.done;O=t.next()){O=O.value;var H=void 0;((H=_.M(O,mVA))==null?0:H.videoLockup)&&N.push(_.M(O,mVA).videoLockup)}return N}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.videoLockups)==null||!N.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var N=[],t;if((t=this.data)==null||!t.carouselLockups)return N;var O;return(O=_.M(this.data.carouselLockups[this.scrollCount],mVA))==null?void 0:O.infoRows}}});
Fz.prototype.dataChanged=Fz.prototype.dataChanged;Fz.prototype.onIronResize=Fz.prototype.onIronResize;Fz.prototype.hiddenChanged=Fz.prototype.hiddenChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Fz.prototype,"componentBehavior",void 0);_.W([_.Y(_.a2.YtdHorizontalListBehavior),_.Q("design:type",Object)],Fz.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Fz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Fz.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fz.prototype,"inlineStructuredDescription",void 0);_.W([_.X({value:2}),_.Q("design:type",Number)],Fz.prototype,"initialCount",void 0);_.W([_.X(),_.Q("design:type",Object)],Fz.prototype,"currentIndex",void 0);
_.W([_.X(),_.Q("design:type",Number)],Fz.prototype,"scrollCount",void 0);_.W([_.X(),_.Q("design:type",Object)],Fz.prototype,"supportComponentResize",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Fz.prototype,"contentHidden",void 0);_.W([_.B2("#scroll-container"),_.Q("design:type",HTMLDivElement)],Fz.prototype,"JSC$23411_scrollContainer",void 0);
_.W([_.gz("contentHidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fz.prototype,"hiddenChanged",null);_.W([_.a("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],Fz.prototype,"videoLockups",null);_.W([_.a("videoLockups"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Fz.prototype,"hasVideoLockups",null);
_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fz.prototype,"onIronResize",null);_.W([_.a("data","scrollCount"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Fz.prototype,"infoRows",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Fz.prototype,"dataChanged",null);_.W([_.en({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Fz);
_.n(Fz,"ytd-video-description-music-section-renderer",function(){if(mTd!==void 0)return mTd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return mTd=N},{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var EI1;var d$=function(){return _.k.apply(this,arguments)||this};
_.p(d$,_.k);d$.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.W([_.X({}),_.Q("design:type",Object)],d$.prototype,"data",void 0);_.W([_.en({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],d$);
_.n(d$,"ytd-video-description-transcript-section-renderer",function(){if(EI1!==void 0)return EI1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return EI1=N},{mode:1});var GZ9;_.o_(_.q(function(N){var t=_.cz(_.yW9,function(){return N.data().firstProviderLinkStatusEntityKey}),O=_.cz(_.yW9,function(){return N.data().secondProviderLinkStatusEntityKey}),H=function(){var A,Z;
return((A=t())==null?void 0:A.linked)||((Z=O())==null?void 0:Z.linked)};
return _.d("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.d(_.cu,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return N.data().sectionTitle}}),_.d(_.cu,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return H()?N.data().connectedMessage:N.data().notConnectedMessage}}),_.d(_.y,{cond:H,
then:function(){return _.d(_.iF,{data:function(){return N.data().connectedButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.d(_.y,{cond:function(){return!H()},
then:function(){return _.d(_.iF,{data:function(){return N.data().notConnectedButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Nn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;return _.d("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.d("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.d(_.cu,{text:function(){return t().sectionTitle}})),_.d("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.d(_.cu,{text:function(){return t().bodyHeader}})),_.d("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.d(_.cu,{text:function(){return t().bodyText}})),_.d(_.y,{cond:function(){return t().attributionText},
then:function(){return _.d("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.d(_.cu,{text:function(){return t().attributionText}}))}}))},"On"),"how-this-was-made-section-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){return _.d("yt-video-description-youchat-section-view-model",{class:_.V7("ytVideoDescriptionYouchatSectionViewModelHost")},_.d("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.d(_.cu,{text:function(){return N.data().sectionTitle}})),_.d("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.d(_.cu,{text:function(){return N.data().subHeaderText}})),_.d("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.d(_.Pu,{data:function(){return _.M(N.data().primaryButton,
_.$9)}})))},"Pn"),"yt-video-description-youchat-section-view-model",{props:{data:_.$O}});var g$=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return N};
_.p(g$,_.k);_.V=g$.prototype;
_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.V.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.V.dataChanged=function(){var N,t;this.hasDescriptionOnly=!(((N=this.data)==null?void 0:(t=N.items)==null?void 0:t.length)!==1||!_.M(this.data.items[0],Xh))};
_.V.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.V.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.V.autoFocusDescription=function(){var N;((N=_.cY().resolve(_.BY(_.z6)))==null?0:N.isKeyBoardInUse())&&this.description&&_.Kb(this.description)};
_.V.resize=function(){if(_.h("kevlar_disable_sd_resize"))this.JSC$23419_cardList&&_.or(this.JSC$23419_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.or(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.or(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.V.scrollToSection=function(N){if(N=this.getSectionElement(N))_.sl(this.hostElement,"yt-scroll-to-watch-element",[N]),N.focus()};
_.V.getSectionElement=function(N){switch(N){case "infocards-item-section":var t;return(t=this.infocardsSection)!=null?t:null;case "transcript-item-section":var O;return(O=this.transcriptSection)!=null?O:null;case "how-this-was-made-section-item-section":var H;return(H=this.howThisWasMadeSection)!=null?H:null;case "files-item-section":var A;return(A=this.filesSection)!=null?A:null;default:return null}};
_.V.handleSetActiveItemAction=function(N){var t=_.M(N,crV),O=t&&(t==null?void 0:t.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23419_cardList;if(t&&O){N=this.currentActiveChapter;var H=this.currentActiveProblem;t=O==null?void 0:O.getItemByIndex(t.itemIndex);var A=O=!0;t&&(t.active=!0,t.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(O=N!==t,A=!1,this.currentActiveChapter=t):(t==null?void 0:t.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(O=!1,A=H!==t,this.currentActiveProblem=t));N&&O&&(N.active=!1);H&&A&&(H.active=!1)}};
_.cv.Object.defineProperties(g$.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
g$.prototype.onYtExpanderMoreTapped=g$.prototype.onYtExpanderMoreTapped;g$.prototype.onHiddenChanged=g$.prototype.onHiddenChanged;g$.prototype.dataChanged=g$.prototype.dataChanged;g$.prototype.panelContentVisibleChanged=g$.prototype.panelContentVisibleChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],g$.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.JV),_.Q("design:type",Object)],g$.prototype,"ironResizableBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],g$.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],g$.prototype,"panelContentVisible",void 0);_.W([_.X(),_.Q("design:type",Boolean)],g$.prototype,"hasDescriptionOnly",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],g$.prototype,"inlineStructuredDescription",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],g$.prototype,"hidden",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],g$.prototype,"shortsPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],g$.prototype,"videoSummary",void 0);_.W([_.X(),_.Q("design:type",Object)],g$.prototype,"merchShelf",void 0);
_.W([_.a("videoSummary"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],g$.prototype,"showVideoSummary",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],g$.prototype,"engagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],g$.prototype,"watchWhileSdp",void 0);_.W([_.B2("ytd-expandable-video-description-body-renderer"),_.Q("design:type",Object)],g$.prototype,"description",void 0);
_.W([_.B2("ytd-horizontal-card-list-renderer"),_.Q("design:type",Object)],g$.prototype,"JSC$23419_cardList",void 0);_.W([_.B2("ytd-horizontal-card-list-renderer[center-items]"),_.Q("design:type",Object)],g$.prototype,"problemWalkthroughCardList",void 0);_.W([_.B2("ytd-shelf-renderer"),_.Q("design:type",Object)],g$.prototype,"shelfSection",void 0);_.W([_.B2("ytd-video-description-music-section-renderer"),_.Q("design:type",Object)],g$.prototype,"musicMetadataSection",void 0);
_.W([_.B2("ytd-video-description-infocards-section-renderer"),_.Q("design:type",Object)],g$.prototype,"infocardsSection",void 0);_.W([_.B2("ytd-video-description-transcript-section-renderer"),_.Q("design:type",Object)],g$.prototype,"transcriptSection",void 0);_.W([_.B2("how-this-was-made-section-view-model"),_.Q("design:type",Object)],g$.prototype,"howThisWasMadeSection",void 0);_.W([_.B2("ytd-video-description-files-section-renderer"),_.Q("design:type",Object)],g$.prototype,"filesSection",void 0);
_.W([_.gz("panelContentVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],g$.prototype,"panelContentVisibleChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],g$.prototype,"dataChanged",null);_.W([_.gz("hidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],g$.prototype,"onHiddenChanged",null);
_.W([_.dz("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],g$.prototype,"onYtExpanderMoreTapped",null);_.W([_.en({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],g$);
_.n(g$,"ytd-structured-description-content-renderer",function(){if(GZ9!==void 0)return GZ9;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return GZ9=N},{mode:2});var RK1;var vIN;var yR=function(){return _.k.apply(this,arguments)||this};
_.p(yR,_.k);yR.prototype.computeAriaLabel=function(N){var t,O;return(N==null?void 0:(t=N.accessibility)==null?void 0:(O=t.accessibilityData)==null?void 0:O.label)||_.CJ("LOADING",void 0,"Loading")};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yR.prototype,"data",void 0);_.W([_.X({computed:"computeAriaLabel(data)"}),_.Q("design:type",String)],yR.prototype,"ariaLabel",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],yR);
_.n(yR,"yt-content-loading-renderer",function(){if(vIN===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;RK1===void 0&&(RK1=document.createElement("template"));var H=RK1;O.call(t,H.content.cloneNode(!0),N.content.firstChild);vIN=N}N=vIN;return N},{mode:_.O4("kevlar_poly_si_batch_j043")?1:2});_.o_(_.q(function(N){var t=_.D(_.b$(!1,void 0,"OZMtVb")),O=t.next().value,H=t.next().value;t=_.D(_.b$(!1,void 0,"qWERsf"));var A=t.next().value,Z=t.next().value;_.Q8(function(){var F=_.M(N.data().collaboratePlaylistCollaborationSetting,xVR);F&&H(F.switchedOnByDefault);var g=_.M(N.data().allowNewCollaboratorsPlaylistCollaborationSetting,xVR);g&&Z(g.switchedOnByDefault);if(!F&&!g||!F&&N.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")H(!0),Z(!0)});
var U=function(F){H(F);Z(F);var g=N.data().playlistCollaborationEntityKey||"";var B=_.mN().getState();(B=_.CM(B.entities,"playlistCollaborationEntity",g))&&(B==null?void 0:B.isCollaborative)===F||_.mN().dispatch(_.uF("playlistCollaborationEntity",g,Object.assign({},B,{isCollaborative:F})))},C=function(F){Z(F)};
return _.d("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.d("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.d(_.iF,{data:function(){return N.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(F){return _.d(_.zbf,{data:F.data,
onSwitch:U})}})),_.d(_.y,{cond:O,
then:function(){return _.d(_.BZ,null,_.d("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.d(_.iF,{data:function(){return N.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(F){return _.d(_.zbf,{data:F.data,
onSwitch:C,overrideDisabled:!1})}})),_.d(_.y,{cond:A,
then:function(){return _.d("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.d(_.iF,{data:function(){return N.data().copyLinkButton}},{buttonViewModel:_.Pu}))}}),_.d("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.d(_.iF,{data:function(){return N.data().playlistCollaborators}},{contentListItemViewModel:_.X5f})))}}))},"Qn"),"playlist-collaboration-view-model",{props:{data:_.$O}});var Jvl=_.q(function(N){var t=N.data;var O=N.customCommandResolver;return _.d(_.BZ,null,_.d("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.d(_.iF,{data:function(){return t().adAvatar}},{adAvatarViewModel:function(H){return _.d(_.vaX,{data:H.data,
customCommandResolver:O})}})),_.d("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.d(_.y,{cond:function(){return t().headline},
then:function(H){return _.d(_.cu,{text:H,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.d("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.d(_.iF,{data:function(){return t().adBadge}},{adBadgeViewModel:function(H){return _.d(_.n_,{data:H.data,
hasDot:function(){return t().primaryDetailsLine!==void 0},
customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.d(_.iF,{data:function(){return t().primaryDetailsLine}},{adDetailsLineViewModel:function(H){return _.d(_.WK,{data:H.data,
customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Rn"),oI9=_.q(function(N){var t=N.data;
var O=N.customCommandResolver;return _.d("ad-avatar-lockup-view-model",{class:function(){var H;return((H=t().interaction)==null?0:H.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.E4(_.iU({visibilityCallback:function(H){var A,Z=(A=t().interaction)==null?void 0:A.onFirstVisible;H&&Z&&_.xJ(Z)},
showOption:_.e3}),_.kS(function(){return t().interaction},O)),
"aria-label":function(){var H,A;return(H=t().interaction)==null?void 0:(A=H.accessibility)==null?void 0:A.label}},_.d(_.WZ,null,_.d(_.qC,{when:function(){return t().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.d(Jvl,{data:t,
customCommandResolver:O})}),_.d(_.fL,null,function(){return null})))},"Sn");_.o_(_.q(function(N){var t=N.data;var O=N.panelContentVisibility;N=_.iU({visibilityCallback:function(Z){var U,C=(U=t().interaction)==null?void 0:U.onFirstVisible;Z&&C&&_.xJ(C)},
showOption:_.e3});var H=_.kS(function(){return t().interaction},SyD);
_.Wo(function(){var Z,U;if(U=_.s2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var C;U=(C=U())==null?void 0:C.onLayoutVisibleCallback}else U=null;(Z=U)==null||Z()},"Tn");
var A=function(){return O()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.d("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.E4(N,H)},_.d("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.d("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.d(_.y,{cond:_.$I9("(min-width: "+((0,_.O5)()+_.ky)+"px) or (max-width: 600px)"),then:function(){return _.d(_.iF,{data:function(){return t().adImage}},{adImageViewModel:function(Z){return _.d(_.RO,{data:Z.data,
targetHeight:80,customCommandResolver:SyD})}})}})),_.d("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.d("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.d(_.iF,{data:function(){return t().adAvatarLockup}},{adAvatarLockupViewModel:function(Z){return _.d(oI9,{data:Z.data,
customCommandResolver:SyD})}})),_.d(_.y,{cond:A,
then:function(){return _.d(_.iF,{data:function(){return t().adButton}},{adButtonViewModel:function(Z){return _.d(_.Xq,{data:Z.data,
customCommandResolver:SyD})}})},
else:function(){return _.d(_.iF,{data:function(){return t().menu}},{buttonViewModel:_.Pu})}}),_.d("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.d(_.iF,{data:function(){var Z=_.M(t().toggleButton,_.iA);
return{toggleButtonViewModel:Object.assign({},Z,{isTogglingDisabled:!0,isToggled:A()})}}},{toggleButtonViewModel:_.N3})))))},"Un"),"panel-ad-header-image-lockup-view-model",{props:{data:_.$O,
panelContentVisibility:_.$O}});_.o_(_.q(function(N){var t=function(){return _.M(N.data().inputComposerViewModel,bF$)},O=_.cH(_.Wz.currentPageSubTypeSelector),H=_.cH(_.Wz.persistentPanelVisibleSelector),A=_.D(_.b$(!1,void 0,"IASwBb")),Z=A.next().value,U=A.next().value;
A=_.D(_.b$(!1,void 0,"GdQ0qf"));var C=A.next().value,F=A.next().value,g=function(){z(!0);var c4;_.xJ(((c4=t())==null?void 0:c4.onSubmitCommand)||{})},B=function(){if(H()&&!C()){var c4;
(c4=_.FF())==null||c4.removeCueRange("aic-proactive");U(!1);F(!0);g();_.eF(_.WNJ(t().endOfVideoContinuation),{form:{formData:_.ia({clientMessageId:"youchat-"+Date.now(),pageContext:zM()})},commandController:{onSuccess:function(){z(!1)},
onServerError:function(){_.eF(DH8(l()));z(!1)}}})}},c=function(){var c4=_.FF();
if(c4&&!Z()&&!C()){var XO=c4.getDuration();XO>60&&(c4.addCueRange("aic-proactive",XO-60,XO-20),U(!0))}},u=function(){var c4;
return((c4=t())==null?void 0:c4.youchatPendingResponseEntityKey)||""},S=_.cz(_.mf5,u),b=function(){var c4;
return!((c4=S())==null||!c4.isPendingResponse)},z=function(c4){_.Eqf(u())(c4)};
A=_.D(_.b$(!0,void 0,"n0Jijf"));var w=A.next().value,P=A.next().value,x=function(){var c4,XO;var kx=_.M((XO=t())==null?void 0:XO.inputFormField,g2$);return kx==null?void 0:(c4=kx.contentProperties)==null?void 0:c4.placeholderText},l=function(){return t().sectionTargetId||"youchat_messages_section"};
A=_.yM("yt-chat-input-view-model");var I=_.Fy("textarea"),r=_.cz(CP1,"chat_input_view_model_state"),E=KY9(),J=function(){var c4;return!((c4=r())==null||!c4.value)},CN=function(){return N.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},B4=function(){var c4;
(c4=_.FF())==null||c4.removeCueRange("aic-proactive");U(!1);F(!1);var XO;_.h("enable_navigational_proactive_messages_on_ai_companion")&&((XO=t())==null?0:XO.navigationContinuation)&&H()&&(g(),_.eF(_.WNJ(t().navigationContinuation),{form:{formData:_.ia({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Mor(),pageContext:zM()})},commandController:{onSuccess:function(){z(!1)},
onServerError:function(){_.eF(DH8(l()));z(!1)}}}))},zM=function(){var c4;
return(c4=_.cY().resolve(_.BY(_.VY)))==null?void 0:_.Vu5(c4,O())};
_.Q8(function(){if(_.h("enable_ai_chat_controller")){var c4;(c4=_.cY().resolve(_.BY(_.VY)))==null||c4.init(N.data().environment)}else if(c4=pYl(N.data()),!J()&&c4){var XO;((XO=t())==null?0:XO.setPendingResponseOnWelcome)&&z(!0);_.eF(c4,{form:{formData:_.ia({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Mor(),pageContext:zM()})}});E(!0)}var kx=l(),fN=_.cY().resolve(_.BY(_.lI)),gf=function(){_.jp.remove(kx);if(_.h("enable_ai_chat_controller")){var sS;(sS=_.cY().resolve(_.BY(_.VY)))!=null&&sS.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(sS.lastWelcomeContinuationSent=void 0)}else E(!1)},yr=function(){_.MY(function(){if(CN()&&(B4(kx),O()==="watch")){var sS=_.FF();
sS&&(sS.addEventListener("onStateChange",c),sS.addEventListener("onCueRangeEnter",B))}})};
XO=_.h("enable_ai_companion")?!CN():!0;fN==null||fN.addEventListener("yt-navigate-start",gf,{once:XO});fN==null||fN.addEventListener("yt-navigate-finish",yr,{once:XO});_.Ia(function(){fN==null||fN.removeEventListener("yt-navigate-start",gf);fN==null||fN.removeEventListener("yt-navigate-finish",yr);var sS=_.FF();sS&&(sS.removeEventListener("onCueRangeEnter",B),sS.removeEventListener("onStateChange",c),sS.removeCueRange("aic-proactive"))})});
_.rp(function(){if(_.h("enable_ai_chat_controller")){var c4=pYl(N.data());if(c4){var XO,kx=((XO=t())==null?0:XO.setPendingResponseOnWelcome)?z:void 0,fN;(fN=_.cY().resolve(_.BY(_.VY)))==null||ArN(fN,{command:c4,setPending:kx})}}},"Z4XQCb");
var jy=function(){var c4=I.value.value;I.value.value="";hed(I.value);var XO,kx=((XO=t())==null?void 0:XO.enableGradientColorBg)||!1;XO=UHr(l(),c4,kx);_.eF(XO);g();var fN,gf,yr;XO=(yr=_.wF((fN=N.data())==null?void 0:fN.sendUserQueryCommand))!=null?yr:_.WNJ((gf=t())==null?void 0:gf.continuation);_.eF(XO,{form:{formData:_.ia({clientMessageId:"youchat-"+Date.now(),userInputText:c4,playerOffsetMs:Mor(),pageContext:zM()})},commandController:{onSuccess:function(){z(!1)},
onServerError:function(){_.eF(DH8(l()));z(!1)}}})};
return _.d("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:A},_.d("div",{class:"chatInputViewModelChatInputWrapper"},_.d("form",{class:"chatInputViewModelChatInputForm"},_.d("textarea",{class:"chatInputViewModelChatInput",el:I,"on:keydown":_.Ui(function(c4){var XO=b()||!1;hed(I.value);XO||c4.key!=="Enter"||c4.shiftKey||(c4.preventDefault(),jy());return!1}),
"on:keyup":_.Ui(function(){P(I.value.value.length===0);return!1}),
"aria-label":function(){return b()?N.data().loadingAnimationA11yLabel||"":x()},
placeholder:x,rows:1}),_.d(_.Pu,{data:function(){return _.M(N.data().sendButton,_.$9)},
onClick:function(c4){c4.preventDefault();jy();P(I.value.value.length===0)},
buttonOverrides:function(){return{disabled:w()||b()}}})),_.d(_.cu,{className:"chatInputViewModelChatDisclaimer",
text:function(){var c4;return(c4=_.M(N.data().disclaimer,_.iXZ))==null?void 0:c4.text}})))},"Wn"),"yt-chat-input-view-model",{props:{data:_.$O}});var snd=["engagement-panel-clip-create","engagement-panel-clip-view"],NN1=0,Bx=function(){var N=_.k.apply(this,arguments)||this;var t;N.headerData=(t=N.data)==null?void 0:t.header;N.darkerPanels=_.h("web_watch_darker_panels");N.matchContentTheme=_.h("web_watch_panel_content_match_theme");N.disableAutoFill=!1;N.isFullscreen=!1;N.isTheaterMode=!1;N.liveChatReplyPanel=!1;N.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");N.disableBackdropFilter=_.h("web_disable_backdrop_filter");N.isPersistentPanel=
!1;N.trackEngagementPanelVisibility=_.h("web_watch_track_engagement_panel_visibility");N.overscrollContain=!1;N.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return N};
_.p(Bx,_.k);_.V=Bx.prototype;
_.V.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(N){var t;return(N==null?void 0:(t=N.webComponentHint)==null?void 0:t.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.V.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var N;if((N=this.hostElement.parentElement)==null?0:N.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.V.detached=function(){this.updateTheaterDisablement()};
_.V.showPanel=function(){var N=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.GB.addJob(function(){N.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.V.maybeScrollToItemSection=function(N){var t=this,O,H=N==null?void 0:(O=N.sectionListEngagementPanelExtras)==null?void 0:O.scrollToItemSectionIdentifier;H&&_.GB.addJob(function(){var A;(A=t.sectionListRendererElement)==null||A.scrollToItemSection(H)},8)};
_.V.hidePanel=function(){var N=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.GB.addJob(function(){N.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.V.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.V.updatePanel=function(N,t,O,H){var A=this;if((N=N==null?void 0:N.engagementPanelSectionListRenderer)||H){if(N){H=N.header;var Z=N.content,U=N.footer;(N=N.targetId)&&this.set("data.targetId",N);H&&this.set("data.header",H);Z&&this.set("data.content",Z);U&&this.set("data.footer",U)}else H&&(N=H.content,Z=H.secondaryHeaderContent,U=H.targetId,H=H.loggingDirectives,U&&this.set("data.targetId",U),N&&this.set("data.content",N),H&&_.h("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
H),Z&&(this.secondaryHeaderData=Z));this.updateChildVisibilityProperties();if(t){var C;_.h("kevlar_update_panel_focus_scroll_killswitch")||(C={preventScroll:!0});this.focus(C)}_.yB(this,function(){_.or(A.hostElement,"yt-refit");A.maybeScrollToItemSection(O)})}};
_.V.computeHeaderData=function(){var N,t=(0,_.WW.unsafeClone)((N=this.data)==null?void 0:N.header);if(t){N=new _.Fp(Object.keys(t)[0]);var O=_.M(t,N),H=_.M(this.secondaryHeaderData,N);H&&_.LC(t,N,Object.assign({},H,O))}return t};
_.V.getReloadContinuation=function(){var N,t,O,H=_.D(((N=this.data)==null?void 0:(t=N.content)==null?void 0:(O=t.sectionListRenderer)==null?void 0:O.continuations)||[]);for(N=H.next();!N.done;N=H.next())if(N=N.value,N.reloadContinuationData)return N.reloadContinuationData.continuation};
_.V.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var N;((N=this.data)==null?0:N.targetId)&&(N=this.contentElement.firstElementChild)&&N.setAttribute("panel-target-id",this.data.targetId)};
_.V.forwardPopupClosedToFlowRootRenderer=function(){var N=_.O6(this.hostElement).querySelector("ytd-flow-root-renderer");if(N&&this.hostElement.closest("ytd-popup-container"))N.onPopupClosed()};
_.V.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var N;if(!snd.includes((N=this.theaterDisablementPanelIdentifier)!=null?N:""))if(N=_.h("web_watch_imax_theater_mode")&&this.isTheaterMode,N=_.h("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||N,_.h("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||N){var t;this.visibility=(t=this.data)==null?void 0:t.visibility;var O;this.trackEngagementPanelVisibility&&((O=this.data)==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var H,A,Z,U;this.contentEmpty=!!(((H=this.data)==null?0:(A=H.content)==null?0:A.structuredDescriptionContentRenderer)&&Object.keys((Z=this.data)==null?void 0:(U=Z.content)==null?void 0:
U.structuredDescriptionContentRenderer).length===0);(t=_.cY().resolve(_.Of))&&t.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.V.isTheaterModeChanged=function(){_.h("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.V.isFullscreenChanged=function(){_.h("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.V.focus=function(N){if(this.header)this.header.focus(N);else{var t;(t=_.O6(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||t.focus(N)}};
_.V.visibilityChanged=function(){if(!_.h("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var N=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",A=H||!this.lastVisibility,Z,U,C,F=((Z=this.data)==null?void 0:(U=Z.identifier)==null?void 0:
U.tag)||((C=this.data)==null?void 0:C.panelIdentifier);if(N&&A){var g;((g=this.data)==null?0:g.onShowCommands)&&_.OK(this.hostElement,this.data.onShowCommands,this.hostElement);F&&_.v5().dispatch(_.H5({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:F}}))}else if(t&&O){var B;((B=this.data)==null?0:B.onHideCommands)&&_.OK(this.hostElement,this.data.onHideCommands,this.hostElement);F&&_.v5().dispatch(_.H5({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:F}}))}N&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*NN1++));_.h("kevlar_watch_focus_on_engagement_panels")&&N&&H&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.V.notifyVisibilityChanged=function(N){var t;_.Np(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,N,(t=this.data)==null?void 0:t.targetId]);if(_.h("autonav_pause_for_comments_ep")){var O;_.or(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:N==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(O=this.data)==null?void 0:O.targetId})}};
_.V.updateTheaterDisablement=function(){if(!_.h("kevlar_watch_theater_disablement_killswitch")){var N=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&snd.includes(N)&&!_.h("watch_next_grid_ignore_disallowed_panels")){var t=_.aM(_.v5().getState()),O=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";N!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():O?(this.originalTheaterState===void 0&&(this.originalTheaterState=t,this.theaterDisablementPanelIdentifier=
N),t&&_.sl(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.V.clearTheaterDisablement=function(){_.sl(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.V.updateChildVisibilityProperties=function(){this.hostElement||_.h("kevlar_panel_property_init_killswitch")||this._enableProperties();var N=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=N);var t,O=(t=this.headerElement)==null?void 0:t.firstElementChild;if(O&&!this.adHeaderImageLockupViewModel){t=N==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";O.collapsed=t;O=_.O6(O).querySelector("#visibility-button");if(!O)return;(O=O.firstElementChild)&&
O.polymerController.is==="ytd-toggle-button-renderer"&&O.polymerController.data.isToggled!==t&&O.polymerController.set("data.isToggled",t)}var H;if(t=(H=this.contentElement)==null?void 0:H.firstElementChild)if(N&&N!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")t.removeAttribute("panel-content-visible");else{t.setAttribute("panel-content-visible","");var A;(A=t.markDirty)==null||A.call(t)}};
_.V.onYtChangeEngagementPanelVisibilityAction=function(N){var t=this,O,H=(O=this.data)==null?void 0:O.targetId,A,Z,U;O=((A=this.data)==null?void 0:(Z=A.identifier)==null?void 0:Z.tag)||((U=this.data)==null?void 0:U.panelIdentifier);var C=_.M(N,_.WCY),F;N=H&&(C==null?void 0:C.targetId)===H||O&&(C==null?void 0:(F=C.panelIdentifier)==null?void 0:F.tag)===O;this.dialog&&N&&(C==null?void 0:C.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(H==="engagement-panel-comments-section"?_.sl(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.sl(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",O]));!_.h("kevlar_use_engagement_panel_management_component")&&N&&(H=C.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!H?_.GB.addJob(function(){t.visibility=C.visibility},2,this.hideDelayMs):this.visibility=C.visibility,C.visibility&&this.notifyVisibilityChanged(C.visibility))};
_.V.onYtScrollToEngagementPanelCommand=function(N){var t,O=(t=this.data)==null?void 0:t.targetId,H,A,Z;t=((H=this.data)==null?void 0:(A=H.identifier)==null?void 0:A.tag)||((Z=this.data)==null?void 0:Z.panelIdentifier);N=_.M(N,_.s3R);var U;(O&&(N==null?void 0:N.targetId)===O||t&&(N==null?void 0:(U=N.panelIdentifier)==null?void 0:U.tag)===t)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.sl(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.V.attachVEs=function(N){var t,O;(N==null?0:(t=N.content)==null?0:(O=t.productListRenderer)==null?0:O.trackingParams)&&_.gF().graftServerVe(N.content.productListRenderer.trackingParams);var H,A;(N==null?0:(H=N.content)==null?0:(A=H.transcriptRenderer)==null?0:A.trackingParams)&&_.gF().graftServerVe(N.content.transcriptRenderer.trackingParams)};
_.V.onYtUpdateEngagementPanelAction=function(N){var t,O=(t=this.data)==null?void 0:t.targetId;N=_.M(N,jkV);O&&(N==null?void 0:N.targetId)===O&&(this.updatePanel({engagementPanelSectionListRenderer:{header:N==null?void 0:N.header,content:N==null?void 0:N.content}},!1),this.attachVEs(N))};
_.V.onYtShowEngagementPanelScrimAction=function(N){var t,O=(t=this.data)==null?void 0:t.targetId;N=_.M(N,$Vr);O&&(N==null?void 0:N.engagementPanelTargetId)===O&&(this.scrimmed=!0)};
_.V.onYtHideEngagementPanelScrimAction=function(N){var t,O=(t=this.data)==null?void 0:t.targetId;N=_.M(N,BrV);O&&(N==null?void 0:N.engagementPanelTargetId)===O&&(this.scrimmed=!1)};
_.V.getIdentifier=function(){var N,t,O;return((N=this.data)==null?void 0:N.panelIdentifier)||((t=this.data)==null?void 0:(O=t.identifier)==null?void 0:O.tag)};
_.V.getSurface=function(){var N,t;return(N=this.data)==null?void 0:(t=N.identifier)==null?void 0:t.surface};
_.cv.Object.defineProperties(Bx.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var N=this.getIdentifier();return N==="engagement-panel-youchat"||N==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
Bx.prototype.visibilityChanged=Bx.prototype.visibilityChanged;Bx.prototype.isFullscreenChanged=Bx.prototype.isFullscreenChanged;Bx.prototype.isTheaterModeChanged=Bx.prototype.isTheaterModeChanged;Bx.prototype.dataChanged=Bx.prototype.dataChanged;Bx.prototype.forwardPopupClosedToFlowRootRenderer=Bx.prototype.forwardPopupClosedToFlowRootRenderer;Bx.prototype.onYtRendererstamperFinished=Bx.prototype.onYtRendererstamperFinished;
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Bx.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Bx.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],Bx.prototype,"ytEventForwardingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Bx.prototype,"data",void 0);
_.W([_.X({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Q("design:type",Object)],Bx.prototype,"headerData",void 0);_.W([_.X(),_.Q("design:type",Object)],Bx.prototype,"secondaryHeaderData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"visibility",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bx.prototype,"contentEmpty",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bx.prototype,"scrimmed",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bx.prototype,"dialog",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bx.prototype,"dropdown",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"darkerPanels",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"matchContentTheme",void 0);_.W([_.X(),_.Q("design:type",Object)],Bx.prototype,"disableAutoFill",void 0);
_.W([_.X({reflectToAttribute:!0,value:_.h("optimal_reading_width_comments_ep")}),_.Q("design:type",Boolean)],Bx.prototype,"optimalReadingWidthComments",void 0);_.W([_.X(),_.Q("design:type",Number)],Bx.prototype,"hideDelayMs",void 0);_.W([_.X({selector:_.TI,reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"isFullscreen",void 0);_.W([_.X({selector:_.aM,reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"isTheaterMode",void 0);
_.W([_.X(),_.Q("design:type",Number)],Bx.prototype,"showDelayMs",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.targetId"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bx.prototype,"targetId",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bx.prototype,"webSize",null);_.W([_.X(),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bx.prototype,"hideFooterBorder",null);
_.W([_.X(),_.Q("design:type",Object)],Bx.prototype,"isWatch",void 0);_.W([_.X(),_.Q("design:type",Object)],Bx.prototype,"originalTheaterState",void 0);_.W([_.X(),_.Q("design:type",Object)],Bx.prototype,"theaterDisablementPanelIdentifier",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bx.prototype,"isWatchWhilePanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bx.prototype,"shortsPanel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bx.prototype,"liveChatEngagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bx.prototype,"learningChatEngagementPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"liveChatReplyPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"enableAnchoredPanel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"disableBackdropFilter",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Bx.prototype,"isPersistentPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],Bx.prototype,"trackEngagementPanelVisibility",void 0);_.W([_.X(),_.Q("design:type",Object)],Bx.prototype,"overscrollContain",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bx.prototype,"isAiCompanionPanel",null);
_.W([_.B2("#header"),_.Q("design:type",HTMLElement)],Bx.prototype,"headerElement",void 0);_.W([_.B2("#header > *"),_.Q("design:type",HTMLElement)],Bx.prototype,"header",void 0);_.W([_.B2("ytd-section-list-renderer"),_.Q("design:type",Object)],Bx.prototype,"sectionListRendererElement",void 0);_.W([_.B2("panel-ad-header-image-lockup-view-model"),_.Q("design:type",HTMLElement)],Bx.prototype,"adHeaderImageLockupViewModel",void 0);
_.W([_.B2("#content"),_.Q("design:type",HTMLElement)],Bx.prototype,"contentElement",void 0);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bx.prototype,"onYtRendererstamperFinished",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bx.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.W([_.ic("data","isFullscreen","isTheaterMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bx.prototype,"dataChanged",null);_.W([_.gz("isTheaterMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bx.prototype,"isTheaterModeChanged",null);_.W([_.gz("isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bx.prototype,"isFullscreenChanged",null);
_.W([_.gz("visibility"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bx.prototype,"visibilityChanged",null);_.W([_.en({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Bx);
_.n(Bx,"ytd-engagement-panel-section-list-renderer",function(){if(udl!==void 0)return udl;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return udl=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var tBD;var cx=function(){var N=_.k.apply(this,arguments)||this;N.lastRenderedPanelIds=new Set;N.visiblePanels=[];N.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return N};
_.p(cx,_.k);_.V=cx.prototype;_.V.dataChanged=function(){if(this.data){for(var N=[],t=_.D(this.data),O=t.next();!O.done;O=t.next()){O=O.value;var H=void 0,A=void 0,Z=(H=O)==null?void 0:(A=H.engagementPanelSectionListRenderer)==null?void 0:A.visibility;A=H=void 0;((H=O)==null?0:(A=H.engagementPanelSectionListRenderer)==null?0:A.targetId)&&Z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&N.push(O)}this.visiblePanels=N}else this.visiblePanels=[]};
_.V.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.V.withoutVisiblePanelById=function(N){return this.visiblePanels.filter(function(t){var O;return((O=t.engagementPanelSectionListRenderer)==null?void 0:O.targetId)!==N})};
_.V.onYtChangeEngagementPanelVisibilityAction=function(N){var t=this,O=_.M(N,_.WCY);if(this.data&&(O==null?0:O.targetId)&&(O==null?0:O.visibility)){var H,A=(H=this.data.find(function(U){var C;return((C=U.engagementPanelSectionListRenderer)==null?void 0:C.targetId)===O.targetId}))==null?void 0:H.engagementPanelSectionListRenderer;
if(A){var Z=this.withoutVisiblePanelById(O.targetId);O.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(N=this.data.find(function(U){var C;return((C=U.engagementPanelSectionListRenderer)==null?void 0:C.targetId)===O.targetId}))&&(Z=[N].concat(_.W6(Z)));
this.hideDelayMs&&O.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Z.length===0?_.GB.addJob(function(){A.visibility=O.visibility;t.visiblePanels=Z},10,this.hideDelayMs):(A.visibility=O.visibility,this.visiblePanels=Z);
_.Np(this.hostElement,"yt-engagement-panels-visible-changed",[Z])}}};
_.V.onRendererstamperFinished=function(){var N=new Set(this.visiblePanels.map(function(t){var O;return(O=t.engagementPanelSectionListRenderer)==null?void 0:O.targetId}));
this.handlePanelVisibilityChange(N,this.lastRenderedPanelIds);this.lastRenderedPanelIds=N};
_.V.handlePanelVisibilityChange=function(N,t){N=N===void 0?new Set:N;t=t===void 0?new Set:t;if(this.data)for(var O=_.D(this.data),H=O.next();!H.done;H=O.next()){H=H.value;var A=void 0,Z=void 0,U=(A=H)==null?void 0:(Z=A.engagementPanelSectionListRenderer)==null?void 0:Z.targetId;if(U&&(A=t.has(U),Z=N.has(U),U=void 0,!A&&Z?(Z=A=void 0,U=(A=H)==null?void 0:(Z=A.engagementPanelSectionListRenderer)==null?void 0:Z.onShowCommands):A&&!Z&&(Z=A=void 0,U=(A=H)==null?void 0:(Z=A.engagementPanelSectionListRenderer)==
null?void 0:Z.onHideCommands),U))for(H=_.D(U),U=H.next();!U.done;U=H.next())this.ytComponentBehavior.resolveCommand(U.value)}};
cx.prototype.onRendererstamperFinished=cx.prototype.onRendererstamperFinished;cx.prototype.dataChanged=cx.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],cx.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],cx.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cx.prototype,"lastRenderedPanelIds",void 0);_.W([_.X(),_.Q("design:type",Number)],cx.prototype,"hideDelayMs",void 0);_.W([_.X(),_.Q("design:type",Array)],cx.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Array)],cx.prototype,"visiblePanels",void 0);_.W([_.X(),_.Q("design:type",Boolean)],cx.prototype,"isWatchWhilePanel",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cx.prototype,"dataChanged",null);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cx.prototype,"onRendererstamperFinished",null);_.W([_.en({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],cx);
_.n(cx,"ytd-watch-engagement-panels",function(){if(tBD!==void 0)return tBD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return tBD=N},{mode:1});var Ov$;var $K=function(){return _.k.apply(this,arguments)||this};
_.p($K,_.k);$K.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.CU(_.O6(this.hostElement).querySelector("#text"),_.OmX(_.ZmB,this.data.companionLegalText))};
$K.prototype.computeAutoScrollEnabled=function(N,t){return N&&!t};
$K.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
$K.prototype.onToggleTap=function(){this.expanded=!this.expanded};
$K.prototype.expandedChanged=$K.prototype.expandedChanged;$K.prototype.dataChanged=$K.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.jxA),_.Q("design:type",Object)],$K.prototype,"ytdAutoScrollBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$K.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],$K.prototype,"expanded",void 0);
_.W([_.X({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Q("design:type",Boolean)],$K.prototype,"autoScrollEnabled",void 0);_.W([_.X(),_.Q("design:type",String)],$K.prototype,"expanderIcon",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$K.prototype,"dataChanged",null);
_.W([_.gz("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$K.prototype,"expandedChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],$K);
_.n($K,"ytd-companion-legal-text-renderer",function(){if(Ov$!==void 0)return Ov$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Ov$=N},{mode:1});var Hvu;var jk=function(){var N=_.k.apply(this,arguments)||this;N.buttonUpdate=_.h("web_modern_buttons");N.kevlarWatchGrid=_.h("kevlar_watch_grid");N.centerAlignDescription=_.h("action_companion_center_align_description");N.truncateDomain=_.h("action_companion_truncate_domain");N.enableMonoStyle=_.h("enable_default_mono_cta_migration_web_client");return N};
_.p(jk,_.k);_.V=jk.prototype;_.V.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.V.getOnLayoutVisibleCallback=function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.layoutId:null};
_.V.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",jk.JSC$23464_DEFAULT_AD_BADGE_RENDERER);var N=this.getOnLayoutVisibleCallback();N&&N()}};
_.V.getButtonRenderer=function(N){return N.actionButton&&_.M(N.actionButton,_.g_)?(delete _.M(N.actionButton,_.g_).navigationEndpoint,_.M(N.actionButton,_.g_)):{}};
_.V.onClick=function(N){var t=this;if((!_.h("web_modern_buttons")||!_.RM(_.m1(N),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){N=_.si();var O=this.getLayoutId();N&&O&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?N.getPlayerPromise().then(function(H){(new _.ZH(H)).executeCommand(t.data.navigationEndpoint,O)}):_.h("kevlar_companion_resolve_command_killswitch")?_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.sl(this.hostElement,"yt-companion-ad-clicked",["action-companion",O])}};
_.cv.Object.defineProperties(jk.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.data)==null?0:(t=N.detailsLine)==null?0:(O=t.adRating)==null?0:O.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H;return((N=this.data)==null?0:(t=N.detailsLine)==null?0:(O=t.adRating)==null?0:(H=O.ratingIcon)==null?0:H.iconType)?_.Vt(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H;return((N=this.data)==null?0:(t=N.detailsLine)==null?0:(O=t.texts)==null?0:(H=O[0])==null?0:H.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?0:(t=N.description)==null?0:t.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var N=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return N?N.indexOf("/default_banner")!==-1:!0}}});
jk.prototype.onClick=jk.prototype.onClick;jk.prototype.dataChanged=jk.prototype.dataChanged;jk.JSC$23464_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CJ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],jk.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jk.prototype,"rendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jk.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jk.prototype,"buttonUpdate",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jk.prototype,"kevlarWatchGrid",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jk.prototype,"centerAlignDescription",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jk.prototype,"truncateDomain",void 0);
_.W([_.X({computed:"computeButtonOverride(buttonUpdate)"}),_.Q("design:type",Object)],jk.prototype,"buttonOverride",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jk.prototype,"enableMonoStyle",void 0);_.W([_.a("data.detailsLine.adRating.ratingText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jk.prototype,"getRating",null);_.W([_.a("getRating"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],jk.prototype,"computeRatingHidden",null);
_.W([_.a("data.detailsLine.adRating.ratingIcon.iconType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jk.prototype,"iconType",null);_.W([_.a("data.detailsLine.texts.0.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jk.prototype,"getDetailsLine",null);_.W([_.a("getDetailsLine"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],jk.prototype,"computeDetailsLineHidden",null);
_.W([_.a("data.description.text"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jk.prototype,"getDescriptionText",null);_.W([_.a("getDescriptionText"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],jk.prototype,"computeDescriptionTextHidden",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jk.prototype,"interactionLoggingClientData",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],jk.prototype,"hideBanner",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jk.prototype,"dataChanged",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],jk.prototype,"onClick",null);_.W([_.en({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],jk);
_.n(jk,"ytd-action-companion-ad-renderer",function(){if(Hvu!==void 0)return Hvu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Hvu=N},{mode:_.O4("kevlar_poly_si_batch_j067")?1:2});var AHA;var ZvV;var iS=function(){var N=_.k.apply(this,arguments)||this;N.buttonUpdate=_.h("web_modern_buttons");N.hideLegacyBanner=_.h("enable_dsa_one_click_ata_translators_infeed_elements");N.adInfoButtonStyle="mono";N.adInfoButtonType="text";N.noDotAdBadge=!0;return N};
_.p(iS,_.k);_.V=iS.prototype;_.V.getOnLayoutVisibleCallback=function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.layoutId:null};
_.V.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var N=this.data.image.thumbnail.thumbnails[0];this.imageSrc=N.url?_.Id(N.url):void 0;this.imageWidth=N.width||0;this.imageHeight=N.height||0}this.data.clickthroughEndpoint&&_.M(this.data.clickthroughEndpoint,_.Z3)&&(N=_.M(this.data.clickthroughEndpoint,_.Z3).url,_.h("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
N||"":N?(N=_.Id(N),this.clickThroughUrl=_.f8(N)):this.clickThroughUrl=void 0);(N=this.getOnLayoutVisibleCallback())&&N()}};
_.V.onClick=function(N){_.RM(_.m1(N),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(N)};
_.V.handleClick=function(){var N=this;this.data&&this.data.clickthroughEndpoint&&(_.or(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(t){N.macroReplacementBehavior.sendServiceRequestAction([t])}),_.sl(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.V.onLoad=function(){_.Np(this.hostElement,"yt-refit-popups-action")};
_.cv.Object.defineProperties(iS.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.interactionLoggingClientData:null}}});
iS.prototype.onLoad=iS.prototype.onLoad;iS.prototype.onClick=iS.prototype.onClick;iS.prototype.dataChanged=iS.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],iS.prototype,"rendererBehavior",void 0);_.W([_.Y(g6s.YtMacroReplacementBehavior),_.Q("design:type",Object)],iS.prototype,"macroReplacementBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],iS.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iS.prototype,"buttonUpdate",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iS.prototype,"hideLegacyBanner",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iS.prototype,"adInfoButtonStyle",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],iS.prototype,"adInfoButtonType",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iS.prototype,"macros",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],iS.prototype,"interactionLoggingClientData",null);_.W([_.X(),_.Q("design:type",String)],iS.prototype,"clickThroughUrl",void 0);_.W([_.X(),_.Q("design:type",_.XV)],iS.prototype,"imageSrc",void 0);_.W([_.X(),_.Q("design:type",Number)],iS.prototype,"imageWidth",void 0);_.W([_.X(),_.Q("design:type",Number)],iS.prototype,"imageHeight",void 0);_.W([_.X(),_.Q("design:type",Object)],iS.prototype,"noDotAdBadge",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iS.prototype,"dataChanged",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],iS.prototype,"onClick",null);_.W([_.dz("load"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iS.prototype,"onLoad",null);_.W([_.en({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],iS);
_.n(iS,"ytd-image-companion-renderer",function(){if(ZvV!==void 0)return ZvV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ZvV=N},{mode:_.O4("kevlar_poly_si_batch_j067")?1:2});var VB$;var uS=function(){return _.k.apply(this,arguments)||this};
_.p(uS,_.k);_.V=uS.prototype;_.V.dataChanged=function(){this.set("data.adBadge",uS.JSC$23473_DEFAULT_AD_BADGE_RENDERER);if(this.data){var N=this.getOnLayoutVisibleCallback();N&&N()}};
_.V.getOnLayoutVisibleCallback=function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.onLayoutVisibleCallback:null};
_.V.getLayoutId=function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.layoutId:null};
_.V.onCompanionClicked=function(N){this.data&&(N.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.sl(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.V.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var N=_.si(),t=this.getLayoutId(),O=this.data.clickToAdvSiteEndpoint;N&&t&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?N.getPlayerPromise().then(function(H){(new _.ZH(H)).executeCommand(O,t)}):_.or(this.hostElement,"yt-navigate",{endpoint:O})}};
_.V.sendTrackingPings=function(N){if(N&&N.length!==0&&N[0].loggingUrls&&(N=N[0].loggingUrls.map(this.getBaseUrl)))for(var t=0;t<N.length;t++)_.A_(N[t])};
_.V.getBaseUrl=function(N){return N.baseUrl||""};
_.cv.Object.defineProperties(uS.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var N=_.s2("yt.www.ads.eventcache.getLastCompanionData");return N?(N=N())&&N.interactionLoggingClientData:null}}});
uS.prototype.onCompanionClicked=uS.prototype.onCompanionClicked;uS.prototype.dataChanged=uS.prototype.dataChanged;uS.JSC$23473_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.CJ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],uS.prototype,"data",void 0);_.W([_.B2("#title"),_.Q("design:type",HTMLElement)],uS.prototype,"shopTitle",void 0);
_.W([_.ic("data.impressionEndpoints"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uS.prototype,"dataChanged",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],uS.prototype,"interactionLoggingClientData",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],uS.prototype,"onCompanionClicked",null);
_.W([_.en({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],uS);
_.n(uS,"ytd-shopping-companion-renderer",function(){if(VB$!==void 0)return VB$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return VB$=N},{mode:1});_.o_(_.q(function(N){var t=N.data;N=_.iU({visibilityCallback:function(H){var A,Z=(A=t().interaction)==null?void 0:A.onFirstVisible;H&&Z&&_.xJ(Z)},
showOption:_.e3});var O=_.kS(function(){return t().interaction},LYw);
_.Wo(function(){var H,A;A=(A=_.s2("yt.www.ads.eventcache.getLastCompanionData"))?(A=A())&&A.onLayoutVisibleCallback:null;(H=A)==null||H()},"Xn");
return _.d("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Ui(function(H){_.Np(H.currentTarget,"yt-refit-popups-action")}),
el:_.E4(N,O),"aria-label":function(){var H,A;return(H=t().interaction)==null?void 0:(A=H.accessibility)==null?void 0:A.label}},_.d("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.d(_.iF,{data:function(){return t().adImage}},{adImageViewModel:function(H){return _.d(_.RO,{data:H.data,
targetHeight:80,customCommandResolver:LYw})}})),_.d("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.d("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.d(_.iF,{data:function(){return t().adBadge}},{adBadgeViewModel:function(H){return _.d(_.n_,{data:H.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.d("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.d(_.iF,{data:function(){return t().menu}},{buttonViewModel:_.Pu}))))},"Yn"),"banner-image-layout-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;N=_.iU({visibilityCallback:function(H){var A,Z=(A=t().interaction)==null?void 0:A.onFirstVisible;H&&Z&&_.xJ(Z)},
showOption:_.e3});var O=_.kS(function(){return t().interaction},ze9);
_.Wo(function(){var H,A;A=(A=_.s2("yt.www.ads.eventcache.getLastCompanionData"))?(A=A())&&A.onLayoutVisibleCallback:null;(H=A)==null||H()},"Zn");
return _.d("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.E4(N,O)},_.d("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.d(_.iF,{data:function(){return t().adImage}},{adImageViewModel:function(H){return _.d(_.RO,{data:H.data,
targetHeight:80,customCommandResolver:ze9})}})),_.d("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.d("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.d(_.iF,{data:function(){return t().adAvatarLockup}},{adAvatarLockupViewModel:function(H){return _.d(oI9,{data:H.data,
customCommandResolver:ze9})}})),_.d(_.iF,{data:function(){return t().adButton}},{adButtonViewModel:function(H){return _.d(_.Xq,{data:H.data,
customCommandResolver:ze9})}}),_.d("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.d(_.iF,{data:function(){return t().menu}},{buttonViewModel:_.Pu}))))},"$n"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.$O}});var D0D={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"},Sk=function(){var N=_.k.apply(this,arguments)||this;N.updateCompanionDataJobId=0;N.contentVideoId=null;N.player=null;N.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return N};
_.p(Sk,_.k);_.V=Sk.prototype;_.V.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:D0D}}};
_.V.attached=function(){var N=this,t=_.si();t&&t.getPlayerPromise().then(function(O){N.getCachedDataAndListen(O)})};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.V.updateRendererStamper=function(){var N={};if(this.data)for(var t in D0D)if(this.data[t]){N[t]=this.data[t];break}if(this.oneofRenderer!=void 0||Object.keys(N).length)this.oneofRenderer=N};
_.V.getCachedDataAndListen=function(N){var t=this.retrieveCachedCompanionData();t&&Object.keys(t).length&&this.receiveCompanionData(t);this.ytPlayerListenerBehavior.listenToPlayerEvent(N,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=N};
_.V.retrieveCachedCompanionData=function(){return _.H4.yt&&_.H4.yt.www&&_.H4.yt.www.ads&&_.H4.yt.www.ads.eventcache&&_.H4.yt.www.ads.eventcache.getLastCompanionData?_.H4.yt.www.ads.eventcache.getLastCompanionData():null};
_.V.receiveCompanionData=function(N){N&&Object.keys(N).length?(this.contentVideoId=N.contentVideoId,this.setCompanionData(N)):this.setCompanionData(N)};
_.V.setCompanionData=function(N){this.cancelPendingCompanionAdJobs();if(N){this.updateCompanionDataJobId=0;for(var t in D0D)D0D.hasOwnProperty(t)&&(this.data[t]=void 0);N.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",N.shoppingCompanionCarouselRenderer):N.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",N.imageCompanionAdRenderer):N.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",N.actionCompanionAdRenderer),_.Np(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Np(this.hostElement,"yt-hide-tvfilm-offer-module")):N.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",N.bannerImageLayoutViewModel):N.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",N.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.V.dataChanged=function(){var N=this,t=_.si();t?t.getPlayerPromise().then(function(O){N.contentVideoId&&O.getVideoUrl().includes("v="+N.contentVideoId)||(N.cancelPendingCompanionAdJobs(),N.updateRendererStamper())}):_.HY(Error("dp"))};
_.V.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.GB.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.V.handleCompanionAdClicked=function(N,t){this.player.onAdUxClicked(N,t);this.player.pauseVideo()};
Sk.prototype.dataChanged=Sk.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Sk.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Sk.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],Sk.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Sk.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Sk.prototype,"oneofRenderer",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Sk.prototype,"dataChanged",null);_.W([_.en({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Sk);
_.n(Sk,"ytd-companion-slot-renderer",function(){if(AHA!==void 0)return AHA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return AHA=N},{mode:_.O4("kevlar_poly_si_batch_j067")?
1:2});var U0l;var hT=function(){return _.k.apply(this,arguments)||this};
_.p(hT,_.k);hT.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
hT.prototype.dataChanged=hT.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hT.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],hT.prototype,"companionSlotData",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hT.prototype,"dataChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],hT);
_.n(hT,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(U0l!==void 0)return U0l;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return U0l=N},{mode:1});var CO$;var Mb=function(){var N=_.k.apply(this,arguments)||this;N.skinnyMode=!1;N.COMPACT_EVENT_COUNT=4;N.onShelfToggleButtonTap=function(){N.logTap(N.data);N.showingMore=!N.showingMore};
N.onShelfToggleButtonFocus=function(){N.showingMore||(N.logTap(N.data),N.showingMore=!0,_.yB(N,function(){var t=N.COMPACT_EVENT_COUNT-1,O;(O=_.O6(N.hostElement).querySelector("#event-"+t))==null||O.focus()}))};
return N};
_.p(Mb,_.k);_.V=Mb.prototype;_.V.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.V.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.V.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Fb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Fb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Fb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Fb(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Fb(this.infoTooltip,this.infoTooltip.hide))};
_.V.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Fb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Fb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Fb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Fb(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Fb(this.infoTooltip,this.infoTooltip.hide))};
_.V.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.V.onShowingMoreChanged=function(){var N;this.showingMoreChanged((N=this.showingMore)!=null?N:!1)};
_.V.showingMoreChanged=function(N){var t=this.get("data.events")||[];this.set("restEvents",t.slice(1,N?t.length:this.COMPACT_EVENT_COUNT).map(function(O){return O.ticketEventRenderer}));
t.slice(0,N?t.length:this.COMPACT_EVENT_COUNT).forEach(function(O){var H=_.z8();O=O.ticketEventRenderer.trackingParams;_.pv()&&H&&O&&(O=_.ib(O),H&&_.nJ(H,O))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.V.computeAriaLabel=function(N){return N.subtitle1+", "+N.subtitle2};
_.V.logTap=function(N){_.pv()&&this.ytRendererBehavior.logExplicitClick(N)};
_.V.isKeyboardAction=function(N){return this.get("detail.x",N)===0&&this.get("detail.y",N)===0};
_.V.onFirstEventTap=function(N){N.target&&this.handleTap(N.target,this.firstEvent,this.isKeyboardAction(N))};
_.V.onTicketLinkTap=function(N){N.target&&this.handleTap(N.target,N.model.item,this.isKeyboardAction(N))};
_.V.handleTap=function(N,t,O){if(t.buttonCommand)if(t.hasMultipleOffers)Object.assign(_.M(t.buttonCommand,_.GL),{properties:{source:O?"keyboard":"tap"}}),this.logTap(t),this.popupPositionTarget=N,_.OK(this.hostElement,[t.buttonCommand],this.hostElement);else{var H;if((H=_.M(t.buttonCommand,_.Z3))==null?0:H.url)this.logTap(t),_.OG(window,_.M(t.buttonCommand,_.Z3).url)}};
Mb.prototype.onShowingMoreChanged=Mb.prototype.onShowingMoreChanged;Mb.prototype.dataChanged=Mb.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Mb.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Mb.prototype,"firstEvent",void 0);_.W([_.X(),_.Q("design:type",Object)],Mb.prototype,"restEvents",void 0);_.W([_.X(),_.Q("design:type",String)],Mb.prototype,"imageUrl",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Mb.prototype,"showingMore",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Mb.prototype,"canShowMore",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Mb.prototype,"skinnyMode",void 0);_.W([_.X(),_.Q("design:type",HTMLElement)],Mb.prototype,"popupPositionTarget",void 0);_.W([_.B2("#banner-info-tooltip"),_.Q("design:type",Object)],Mb.prototype,"infoTooltip",void 0);
_.W([_.B2("#info-container"),_.Q("design:type",HTMLElement)],Mb.prototype,"infoContainer",void 0);_.W([_.B2("#shelf-toggler"),_.Q("design:type",HTMLElement)],Mb.prototype,"shelfToggleButton",void 0);_.W([_.B2("#separator"),_.Q("design:type",HTMLDivElement)],Mb.prototype,"separator",void 0);_.W([_.X(),_.Q("design:type",String)],Mb.prototype,"shelfTogglerLabelText",void 0);_.W([_.X(),_.Q("design:type",String)],Mb.prototype,"shelfTogglerIcon",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Mb.prototype,"dataChanged",null);_.W([_.ic("showingMore"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Mb.prototype,"onShowingMoreChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Mb);
_.n(Mb,"ytd-ticket-shelf-renderer",function(){if(CO$!==void 0)return CO$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return CO$=N},{mode:1});var K2s;var F2l;var d0N=function(){return _.k.apply(this,arguments)||this};
_.p(d0N,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],d0N.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],d0N.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],d0N);
_.n(d0N,"ytd-comments-entry-point-message-renderer",function(){if(F2l!==void 0)return F2l;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return F2l=N},{mode:1});var gLl;var bS=function(){return _.k.apply(this,arguments)||this};
_.p(bS,_.k);_.cv.Object.defineProperties(bS.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.teaserAvatar)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bS.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],bS.prototype,"hasAvatar",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],bS);
_.n(bS,"ytd-comments-entry-point-teaser-renderer",function(){if(gLl!==void 0)return gLl;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return gLl=N},{mode:1});var yHD;var BNN=function(){return _.k.apply(this,arguments)||this};
_.p(BNN,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],BNN.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],BNN.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],BNN);
_.n(BNN,"ytd-comments-simplebox-renderer",function(){if(yHD!==void 0)return yHD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yHD=N},{mode:1});var pW=function(){var N=_.k.apply(this,arguments)||this;N.fullHeight=!_.h("comment_teaser_full_height_kill_switch")&&_.h("kevlar_watch_grid");return N};
_.p(pW,_.k);pW.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"}}}};
pW.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
pW.prototype.onTap=function(){var N=this.tapCommand;N&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(N))};
pW.prototype.onKeyUp=function(N){if(N.keyCode===13)this.onTap()};
_.cv.Object.defineProperties(pW.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null?0:N.onTap)return this.data.onTap;var t,O;if(((t=this.data)==null?0:t.teaserContent)||((O=this.data)==null?0:O.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)!=null&&N.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
pW.prototype.onKeyUp=pW.prototype.onKeyUp;pW.prototype.onTap=pW.prototype.onTap;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],pW.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],pW.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],pW.prototype,"fullHeight",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pW.prototype,"tapCommand",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pW.prototype,"simpleboxPlaceholder",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pW.prototype,"hasSimpleboxPlaceholder",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pW.prototype,"simpleboxAvatar",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pW.prototype,"teaserContent",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pW.prototype,"hasTeaserContent",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pW.prototype,"teaserAvatar",null);
_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pW.prototype,"hasTeaserAvatar",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pW.prototype,"messageText",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pW.prototype,"contentRenderer",null);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pW.prototype,"hasContents",null);
_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pW.prototype,"hasContentRenderer",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pW.prototype,"onTap",null);_.W([_.dz("keypress"),_.Q("design:type",Function),_.Q("design:paramtypes",[_.Tk]),_.Q("design:returntype")],pW.prototype,"onKeyUp",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],pW);
_.n(pW,"ytd-comments-entry-point-header-renderer",function(){if(K2s!==void 0)return K2s;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return K2s=N},{mode:1});var cH$;_.o_(_.mZS,"yt-animated-rolling-number",{props:{numberText:_.$O,numberValue:_.$O,heightPx:_.$O,fontSizeMultiplier:_.$O,shouldAnimate:_.$O,forceRollUp:_.$O}});var $0N=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),jrw={numberText:"",heightPx:2*$0N,shouldAnimate:!1},LW=function(){var N=_.k.apply(this,arguments)||this;N.usingAnimatedComponents=!0;N.wasDetailed=!1;N.JSC$23510_browserSupportsAnimation=_.h("web_supports_animations_api");N.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};N.detailed=!1;N.shouldAnimate=!1;N.viewCountProps=jrw;N.dateTextProps=
jrw;N.metadataBadgesInDescription=_.h("web_metadata_badges_in_description");return N};
_.p(LW,_.k);_.V=LW.prototype;_.V.attached=function(){var N=this;_.cY().resolve(_.nP).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(t){N.set("videoPrimaryInfoRenderer.subtitle",t)})};
_.V.detached=function(){_.cY().resolve(_.nP).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.V.resetAnimationState=function(){this.shouldAnimate=!1};
_.V.updateDynamicMetadata=function(){if(this.JSC$23510_browserSupportsAnimation){if(!this.detailed){var N,t,O,H;var A=(N=this.videoPrimaryInfoRenderer)==null?void 0:(t=N.viewCount)==null?void 0:(O=t.videoViewCountRenderer)==null?void 0:(H=O.extraShortViewCount)==null?void 0:H.simpleText;var Z,U,C,F;var g=(Z=this.videoPrimaryInfoRenderer)==null?void 0:(U=Z.viewCount)==null?void 0:(C=U.videoViewCountRenderer)==null?void 0:(F=C.shortViewCount)==null?void 0:F.simpleText}if(!g){var B,c,u,S;A=(B=this.videoPrimaryInfoRenderer)==
null?void 0:(c=B.viewCount)==null?void 0:(u=c.videoViewCountRenderer)==null?void 0:(S=u.unlabeledViewCountValue)==null?void 0:S.simpleText;var b,z,w,P;g=(b=this.videoPrimaryInfoRenderer)==null?void 0:(z=b.viewCount)==null?void 0:(w=z.videoViewCountRenderer)==null?void 0:(P=w.viewCount)==null?void 0:P.simpleText}var x,l,I;N=Number((x=this.videoPrimaryInfoRenderer)==null?void 0:(l=x.viewCount)==null?void 0:(I=l.videoViewCountRenderer)==null?void 0:I.originalViewCount);var r,E;x=(r=this.videoPrimaryInfoRenderer)==
null?void 0:(E=r.relativeDateText)==null?void 0:E.simpleText;var J;r=!((J=this.videoPrimaryInfoRenderer)==null||!J.relativeDateText);if(A&&g&&N&&(x||!r)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;J=g.split(new RegExp("("+A+")"));A=_.E_(J[0]);var CN;g={numberText:(CN=J[1])!=null?CN:"",numberValue:N,heightPx:2*$0N,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var B4;CN=((B4=J[2])!=null?B4:"")+"  ";this.setViewCount(g,A,_.E_(CN));if(!this.detailed&&
r){A=x.split(/(\d+)/);B4=_.E_(A[0]);var zM;CN={numberText:(zM=A[1])!=null?zM:"",heightPx:2*$0N,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var jy;zM=((jy=A[2])!=null?jy:"")+"  ";this.setDateText(CN,B4,_.E_(zM))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.V.setViewCount=function(N,t,O){_.Gv(t)!==_.Gv(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=t);this.viewCountProps.numberText!==(N==null?void 0:N.numberText)&&(this.viewCountProps=N||jrw);_.Gv(O)!==_.Gv(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=O)};
_.V.setDateText=function(N,t,O){_.Gv(t)!==_.Gv(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=t);this.dateTextProps.numberText!==(N==null?void 0:N.numberText)&&(this.dateTextProps=N||jrw);_.Gv(O)!==_.Gv(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=O)};
_.V.onYtUpdateViewershipAction=function(N){this.videoPrimaryInfoRenderer&&(_.M(N,lo$).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.M(N,lo$).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.M(N,lo$).viewCount)))};
_.V.onYtUpdateDateTextAction=function(N){if(this.videoPrimaryInfoRenderer){N=_.M(N,_.rrl).dateText;this.shouldAnimate=!0;var t;((t=this.videoPrimaryInfoRenderer)==null?0:t.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",N):this.set("videoPrimaryInfoRenderer.dateText",N)}};
_.cv.Object.defineProperties(LW.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return eed(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Gv(eed(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Gv(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Gv(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Gv(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Gv(this.dateTextPostNumberText)].join("")}}});
LW.prototype.updateDynamicMetadata=LW.prototype.updateDynamicMetadata;LW.prototype.resetAnimationState=LW.prototype.resetAnimationState;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],LW.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],LW.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],LW.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],LW.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],LW.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"detailed",void 0);_.W([_.X(),_.Q("design:type",Object)],LW.prototype,"shouldAnimate",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"viewCountPreNumberText",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"viewCountProps",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"viewCountPostNumberText",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"dateTextPreNumberText",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"dateTextProps",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"dateTextPostNumberText",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LW.prototype,"metadataBadgesInDescription",void 0);_.W([_.a("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],LW.prototype,"infoText",null);
_.W([_.a("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Q("design:type",String),_.Q("design:paramtypes",[])],LW.prototype,"descriptionInfoTooltipText",null);_.W([_.a("detailed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],LW.prototype,"showDescriptionInfoTooltip",null);
_.W([_.a("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],LW.prototype,"animatedViewCountAccessibilityLabel",null);_.W([_.a("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],LW.prototype,"animatedDateTextAccessibilityLabel",null);
_.W([_.gz("videoPrimaryInfoRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LW.prototype,"resetAnimationState",null);_.W([_.gz("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LW.prototype,"updateDynamicMetadata",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-watch-info-text"})],LW);
_.n(LW,"ytd-watch-info-text",function(){if(cH$!==void 0)return cH$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return cH$=N},{mode:1});var ivu;var uUm="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Slr=_.q(function(N){var t=N.data;var O=N.setTapCommand;_.rp(function(){var H=_.wF(t().onTap);O(H)},"CLm0Xe");
return _.d("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.d(_.iF,{data:function(){return t().avatar}},{avatarViewModel:_.Dv}),_.d("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.d("span",null,function(){return t().simpleboxText})))},"bo");var hns=_.q(function(N){return _.d("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.d(_.y,{cond:function(){return _.M(N.data().avatar,_.Pz)},
then:function(t){return _.d(_.Dv,{data:t,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.d("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.d(_.cu,{text:function(){return N.data().teaserText}})))},"co");var MB1=_.q(function(N){var t=N.data;var O=N.setTapCommand;_.rp(function(){var H=_.wF(t().onTap);O(H)},"qxjCCd");
return _.d("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.d(_.iF,{data:function(){return t().teasers}},{commentsEntryPointTeaserViewModel:hns}))},"fo");var bv$=_.q(function(N){var t=N.data;var O=N.setTapCommand;_.rp(function(){var H=_.wF(t().onTap);O(H)},"CRZByf");
return _.d("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.d(_.cu,{text:function(){return t().messageText}}))},"ho");var pCN=_.q(function(N){var t=N.data;var O=N.setTapCommand;var H=N.isDisabled;_.rp(function(){var A=(H==null?0:H())?void 0:_.wF(t().onTap);O(A)},"GZxRqd");
return _.d("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.d(_.dq,{icon:function(){return t().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.d(_.y,{cond:function(){return t().image},
then:function(A){return _.d(_.Qt,{data:A,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.d(_.cu,{text:function(){return t().text},
className:function(){return t().image||t().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.d(_.iF,{data:function(){return t().button}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:H==null?void 0:H()}}})}}))},"jo");var L2r=_.q(function(N){var t=N.data;var O=N.itemIndex;var H=N.selectedIndex;var A=N.indexUpdatedCallback;var Z=N.observer;N=N.title;var U=_.Fy("yt-carousel-item-view-model",function(c){Z&&Z().observe(c)}),C=function(c){O()===H()&&A(c)},F=_.cH(Ae8),g=_.cH(_.txv),B=function(){var c,u,S,b,z;
return((c=t())==null?void 0:c.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!F()||((u=t())==null?void 0:u.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((S=g())==null?void 0:S.includes("PAposts_by_host"))||((b=t())==null?void 0:b.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((z=g())==null?void 0:z.includes("PAyouchat"))};
return _.d("yt-carousel-item-view-model",{el:U,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":N},_.d(_.iF,{data:function(){var c,u;return(u=(c=_.M(t().carouselItem,dVA))==null?void 0:c.textCarousel)!=null?u:t().carouselItem}},{textCarouselItemViewModel:function(c){return _.d(pCN,{data:c.data,
setTapCommand:C,isDisabled:B})},
commentTeaserCarouselItemViewModel:function(c){return _.d(MB1,{data:c.data,setTapCommand:C})},
commentInputBoxCarouselItemViewModel:function(c){return _.d(Slr,{data:c.data,setTapCommand:C})},
commentsEntryPointMessageViewModel:function(c){return _.d(bv$,{data:c.data,setTapCommand:C})}}))},"ko");var zn8=_.q(function(N){var t=N.numDots;var O=N.activeIndex;return _.d("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.d(_.nL,{each:function(){return Array.from({length:t()})},
keyBy:"INDEX"},function(H,A){return _.d("div",{class:function(){var Z={};return _.Lx("ytCarouselDotsShapeDot",(Z.ytCarouselDotsShapeDotActive=A===O(),Z))}})}))},"lo");var Yl1=_.q(function(N){var t=N.data;var O=N.handleCarouselNavigation;var H=N.numItems;var A=N.selectedIndex;var Z=function(){return{disabled:A()===0}},U=function(){return{disabled:A()===H()-1}};
return _.d("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.d("div",null,_.d("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return t().title}),_.d(_.y,{cond:function(){return t().subtitle},
then:function(C){return _.d("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return t().subtitleAccessibilityText}},C)}})),_.d(_.y,{cond:function(){return H()>1},
then:function(){return _.d("div",{class:"ytCarouselTitleViewModelNavigation"},_.d(zn8,{numDots:H,activeIndex:A}),_.d(_.y,{cond:function(){return t().previousButton},
then:function(C){return _.d(_.iF,{data:C},{buttonViewModel:function(F){return _.d(_.Pu,{data:F.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return O(-1)},
buttonOverrides:Z})}})}}),_.d(_.y,{cond:function(){return t().nextButton},
then:function(C){return _.d(_.iF,{data:C},{buttonViewModel:function(F){return _.d(_.Pu,{data:F.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return O(1)},
buttonOverrides:U})}})}}))}}))},"mo");_.o_(_.q(function(N){var t=N.data;var O,H=_.Fy("yt-video-metadata-carousel-view-model"),A=_.Fy("div",function(r){var E=function(){var J=r.offsetWidth*z(),CN=24*(z()-1);u(J+CN)};
E();window.ResizeObserver&&(O=new ResizeObserver(E),O.observe(r))}),Z=_.Ro("HTML_DIR")==="rtl",U=!1,C=0,F=0;
N=_.D(_.b$(0,void 0,"M49TDf"));var g=N.next().value,B=N.next().value;N=_.D(_.b$(0,void 0,"zLIok"));var c=N.next().value,u=N.next().value;N=_.D(_.b$(!1,void 0,"bhelhc"));var S=N.next().value,b=N.next().value,z=function(){var r,E,J;return(J=(r=t())==null?void 0:(E=r.carouselTitles)==null?void 0:E.length)!=null?J:0},w=function(){A.value&&A.value.scrollLeft!==C&&B((Z?A.value.scrollLeft<C:A.value.scrollLeft>C)?Math.min(g()+1,z()-1):Math.max(g()-1,0))},P;
window.IntersectionObserver&&(P=new IntersectionObserver(function(r){r=_.D(r);for(var E=r.next();!E.done;E=r.next())if(E.value.isIntersecting){if(U){U=!1;break}w()}else B(F)},{threshold:.2}));
_.rp(function(){if(A.value){var r=(Z?-1:1)*(c()/z()+12)*(S()&&P?F:g());typeof A.value.scrollTo==="function"?A.value.scrollTo({left:r,behavior:"smooth"}):A.value.scrollLeft=r;C=r;F=S()&&P?F:g()}},"s9rbgc");
var x,l=function(r){x=r};
_.Ia(function(){var r;(r=O)==null||r.disconnect();var E;(E=P)==null||E.disconnect()});
var I=function(r){r=g()+r;r>=0&&r<z()&&(U=!0,B(r))};
return _.d("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:H,"on:click":_.Ui(function(r){if(_.YS(_.zE(r),H.value,["BUTTON".toString()])||!x)return!1;_.cY().resolve(_.jo).resolveCommand(x,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Ui(function(){b(!0);return!1}),
"on:touchend":_.Ui(function(){P||w();b(!1);return!1}),
hidden:function(){var r,E;return!((r=t())==null?0:(E=r.carouselItems)==null?0:E.length)}},_.d("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.d(_.y,{cond:function(){return t().carouselTitles},
then:function(r){return _.d(_.iF,{data:function(){return r()[S()&&P?F:g()]}},{carouselTitleViewModel:function(E){return _.d(Yl1,{data:E.data,
handleCarouselNavigation:I,numItems:z,selectedIndex:g})}})}})),_.d("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:A},_.d("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+c()+"px;"}},_.d(_.y,{cond:function(){return t().carouselItems},
then:function(r){return _.d(_.nL,{each:r},function(E,J){return _.d(_.iF,{data:function(){return E}},{carouselItemViewModel:function(CN){return _.d(L2r,{data:CN.data,
itemIndex:J,selectedIndex:g,indexUpdatedCallback:l,observer:P,title:function(){a:{var B4=J();var zM,jy=(zM=t())==null?void 0:zM.carouselTitles;if(jy&&(B4=jy[B4])){var c4;B4=(c4=_.M(B4,F8s))==null?void 0:c4.title;break a}B4=void 0}return B4}})}})})}}))))},"oo"),"yt-video-metadata-carousel-view-model",{props:{data:_.$O}});var aA1=_.h("web_action_buttons_update_owner_width")?32:12,z1=function(){var N=_.k.apply(this,arguments)||this;N.isHovering=!1;N.enableColorSampling=_.h("web_delhi_colorful_sd");N.metadataBadgesInDescription=_.h("web_metadata_badges_in_description");N.descriptionCollapsed=!0;N.useFadedScrimDescription=_.h("kevlar_enable_faded_scrim_on_description");N.skinnyMode=!1;N.playlist=!1;N.isDark=document.documentElement.hasAttribute("dark");N.disableVideoOwnerOnTap=_.h("swatchie_video_owner_on_tap_ks");N.swatcherooDelayLoad=
_.h("swatcheroo_enable_ghost_cards");N.primaryMenuWidth=0;N.videoId="";N.titleHeadlineXs=_.h("web_watch_typography_title_headline_xs");N.titleHeadlineS=_.h("web_watch_typography_title_headline_s");N.titleHeadlineM=_.h("web_watch_typography_title_headline_m");N.titleHashtagBlackLinkified=_.h("web_title_hashtag_black_linkified");N.titleHashtagGreyLinkified=_.h("web_title_hashtag_grey_linkified");N.actionButtonsUpdateOwnerWidth=_.h("web_action_buttons_update_owner_width");N.shouldForceIconOnly=!1;N.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};N.isFullscreen=!1;N.isTheaterMode=!1;return N};
_.p(z1,_.k);_.V=z1.prototype;_.V.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.V.updateOwnerAndDescriptionPosition=function(){_.h("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.P3(this.bottomRowElement,this.ownerElement)):(_.P3(this.bottomRowElement,this.descriptionElement),_.P3(this.topRowElement,this.ownerElement)))};
_.V.titleOnTap=function(N){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.RM(_.m1(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||this.handleExpandDescriptionCommands()}};
_.V.videoOwnerOnTap=function(N){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.RM(_.m1(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.V.detached=function(){var N=this,t;return _.K(function(O){(t=N.resizeObserver)==null||t.disconnect();_.Ty(O)})};
_.V.maybeAttachResizeObserver=function(){var N=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.KE(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){N.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.V.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var N=this.hostElement.clientWidth,t=Math.max(this.largerItemWrap?400:350,N/2-aA1);_.h("web_action_buttons_update_owner_width")&&(t=this.ownerElement.clientWidth+aA1);this.actionsOnSeparateLine=this.primaryMenuWidth>N-t?!0:!1}};
_.V.stripAttributedDescription=function(N){return{content:N.content.replace(/[\r\n]{2,}/g,"\n")}};
_.V.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.h("web_modern_buttons"),forceIconButton:!_.h("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:_.h("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"}}}};
_.V.videoPrimaryInfoRendererChanged=function(){var N;if((N=this.videoPrimaryInfoRenderer)==null?0:N.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.V.videoSecondaryInfoRendererChanged=function(){var N,t;(N=this.descriptionInlineExpander)==null||(t=N.collapse)==null||t.call(N);this.descriptionExpandClientVe=_.UM(110509);this.descriptionCollapseClientVe=_.UM(110510);N=_.z8();t=_.pv();N&&t&&(_.h("combine_ve_grafts")?(_.r_(_.gF(),this.descriptionExpandClientVe,t),_.r_(_.gF(),this.descriptionCollapseClientVe,t)):_.fJ(N,t,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.V.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.V.updateTopLevelIconsOnly=function(){var N=this;_.h("top_level_update_killswitch")||this.menu&&_.GB.addLowPriorityJob(function(){N.menu.topLevelIconsOnly=N.skinnyMode},_.uP("swathceroo_delay_flexible_menu_update",100))};
_.V.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.h("web_action_buttons_minimize_subscribe")};
_.V.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.V.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.V.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.V.onYtTextInlineExpanderExpandedChanged=function(){if(!_.h("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var N,t;(t=(N=this.structuredDescriptionContentRendererElement).resize)==null||t.call(N)}};
_.V.onRenderStamperFinished=function(N){(N==null?void 0:N.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.V.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.V.onYtExpanderLessTapped=function(){var N,t=(N=this.videoSecondaryInfoRenderer)==null?void 0:N.showLessCommand;t&&this.ytComponentBehavior.resolveCommand(t)};
_.V.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.V.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.V.onDescriptionClick=function(N){if(!_.RM(_.m1(N)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.h("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.V.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.V.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.V.logCollapseClick=function(){var N=_.z8();N&&this.descriptionCollapseClientVe&&_.IX(N,this.descriptionCollapseClientVe)};
_.V.logExpandClick=function(){var N=_.z8();N&&this.descriptionExpandClientVe&&_.IX(N,this.descriptionExpandClientVe)};
_.V.collapseDescription=function(){this.descriptionCollapsed=!0};
_.V.scrollToTopOfContainer=function(){_.sl(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.V.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.V.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.V.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.V.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var N,t;(t=(N=this.descriptionInlineExpander).resize)==null||t.call(N)}else _.J_(new _.fF("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var O;(O=this.menu)==null||O.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.V.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var N,t,O,H,A=_.h("web_action_buttons_update_owner_width")?(O=(N=_.O6(this.menu).querySelector("#button-shape"))==null?void 0:N.clientWidth)!=null?O:0:(H=(t=_.O6(this.menu).querySelector("#button"))==null?void 0:t.clientWidth)!=null?H:0,Z,U;N=((U=(Z=_.O6(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:Z.clientWidth)!=null?U:0)+8+A;var C,F;A=(F=(C=_.O6(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:C.children.length)!=null?F:2;N<=8*A||(this.primaryMenuWidth=N)}};
_.V.onYtUpdateTitleAction=function(N){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.M(N,IoN).title)};
_.V.onYtUpdateDescriptionAction=function(N){if(N=_.M(N,_.ntX)){var t,O=!((t=this.videoSecondaryInfoRenderer)==null||!t.attributedDescription);N.isEmpty||!N.description&&!N.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):N.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",N.attributedDescription):N.description&&(O?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.zb(N.description)):this.set("videoSecondaryInfoRenderer.description",N.description))}};
_.V.onYtDarkModeToggledAction=function(N){this.isDark=N};
_.V.registerPanel=function(){if(!_.h("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var N=_.h("web_watch_imax_theater_mode")&&this.isTheaterMode;N=_.h("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||N;var t=_.cY().resolve(_.Of);t&&!N&&t.registerPanel("engagement-panel-structured-description",this)}};
_.V.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.V.parseColorSamplingData=function(){var N;if(_.h("web_delhi_colorful_sd")&&((N=this.structuredDescriptionContentRenderer)==null?0:N.items)&&(N=this.structuredDescriptionContentRenderer.items.find(function(A){return!!_.M(A,Xh)}))){var t,O;
this.hoverColor={lightTheme:(t=_.M(N,Xh))==null?void 0:t.lightThemeColorPalette,darkTheme:(O=_.M(N,Xh))==null?void 0:O.darkThemeColorPalette};var H;this.hoverText=(H=_.M(N,Xh))==null?void 0:H.colorSampledDescriptionBodyText}};
_.V.updateHoverColor=function(){if(_.h("web_delhi_colorful_sd")){var N=this.hoverColor,t={},O;N=(O=this.isDark?N==null?void 0:N.darkTheme:N==null?void 0:N.lightTheme)!=null?O:{};O=_.D(uUm);for(var H=O.next();!H.done;H=O.next()){H=H.value;var A=N[H];t["--yt-saturated-"+_.Cv(H)]=A?_.TV(A):"initial"}_.CO(this.hostElement,t)}};
_.V.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.V.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.V.showPanel=function(N){this.expandDescription();var t=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;t.resize();var O,H=N==null?void 0:(O=N.sectionListEngagementPanelExtras)==null?void 0:O.scrollToItemSectionIdentifier;H?_.GB.addJob(function(){t==null||t.scrollToSection(H)},8):this.scrollToTopOfContainer()};
_.V.isVisible=function(){return!this.descriptionCollapsed};
_.V.getReloadContinuation=function(){};
_.V.hidePanel=function(){};
_.V.updatePanel=function(){};
_.cv.Object.defineProperties(z1.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var N;return _.h("web_delhi_colorful_sd")&&(N=this.structuredDescriptionContentRenderer)!=null&&N.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(t){return!_.M(t,Xh)&&!_.M(t,E2s)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.structuredDescriptionContentRendererComputed)!=null&&N.items){var t;N=_.D((t=this.structuredDescriptionContentRendererComputed)==null?void 0:t.items);for(t=N.next();!t.done;t=N.next())if(t=_.M(t.value,_.PIQ))return t}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.videoPrimaryInfoRenderer)==null?0:N.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!!((N=this.videoSecondaryInfoRenderer)==null?0:(t=N.owner)==null?0:(O=t.videoOwnerRenderer)==null?0:O.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var N,t;if((N=this.videoSecondaryInfoRenderer)==null?0:(t=N.attributedDescription)==null?0:t.content){var O,H;return(H=this.stripAttributedDescription((O=this.videoSecondaryInfoRenderer)==null?void 0:O.attributedDescription))!=null?H:{runs:[]}}}if(_.h("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var A,Z,U,C;return(C=(U=(A=this.videoSecondaryInfoRenderer)==
null?void 0:A.description)!=null?U:(Z=this.videoSecondaryInfoRenderer)==null?void 0:Z.attributedDescription)!=null?C:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=(N=this.videoSecondaryInfoRenderer)==null?void 0:N.headerRuns)!=null?t:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.commentsEntryPointHeaderRenderer)==null||!N.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.videoMetadataCarousel)==null||!N.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.uP("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var N,t,O=Object.assign({},(N=this.videoSecondaryInfoRenderer)==null?void 0:(t=N.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(O&&O.rows&&O.collapsedItemCount!==void 0&&!(O.rows.length<=O.collapsedItemCount))return O.rows=O.rows.slice(O.collapsedItemCount),O.collapsedItemCount=0,O}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var N,t,O=Object.assign({},(N=this.videoSecondaryInfoRenderer)==null?void 0:(t=N.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(O&&O.rows&&O.collapsedItemCount!==void 0)return O.rows=O.rows.slice(0,O.collapsedItemCount),O.collapsedItemCount=O.rows.length,O}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var N,t;return!!((N=this.structuredDescriptionContentRendererComputed)==null?0:(t=N.items)==null?0:t.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var N;return(N=this.videoSecondaryInfoRenderer)==null?void 0:N.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.videoSecondaryInfoRenderer)==null?0:(t=N.owner)==null?0:(O=t.videoOwnerRenderer)==null?0:O.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H;return!!((N=this.videoPrimaryInfoRenderer)==null?0:(t=N.videoActions)==null?0:(O=t.menuRenderer)==null?0:(H=O.flexibleItems)==null?0:H.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.rF(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.rF(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var N=this;if(_.h("web_title_hashtag_grey_delinkified")){var t,O=_.WW.unsafeClone((t=this.videoPrimaryInfoRenderer)==null?void 0:t.title);(t=O==null?void 0:O.runs)&&t.forEach(function(H){if(H==null?0:H.navigationEndpoint)H.textColor=4284506208,N.isDark&&(H.textColor=4289374890)});
return O}return(O=this.videoPrimaryInfoRenderer)==null?void 0:O.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.h("web_title_hashtag_black_delinkified")||_.h("web_title_hashtag_grey_delinkified")}}});
z1.prototype.updateHoverColor=z1.prototype.updateHoverColor;z1.prototype.parseColorSamplingData=z1.prototype.parseColorSamplingData;z1.prototype.resetDescriptionState=z1.prototype.resetDescriptionState;z1.prototype.registerPanel=z1.prototype.registerPanel;z1.prototype.onYtExpanderLessTapped=z1.prototype.onYtExpanderLessTapped;z1.prototype.onYtExpanderMoreTapped=z1.prototype.onYtExpanderMoreTapped;z1.prototype.onRenderStamperFinished=z1.prototype.onRenderStamperFinished;
z1.prototype.onYtTextInlineExpanderExpandedChanged=z1.prototype.onYtTextInlineExpanderExpandedChanged;z1.prototype.onYtTextInlineExpanderCollapseClicked=z1.prototype.onYtTextInlineExpanderCollapseClicked;z1.prototype.onYtTextInlineExpanderExpandClicked=z1.prototype.onYtTextInlineExpanderExpandClicked;z1.prototype.moveActionsElement=z1.prototype.moveActionsElement;z1.prototype.updateShouldForceIconOnly=z1.prototype.updateShouldForceIconOnly;z1.prototype.updateTopLevelIconsOnly=z1.prototype.updateTopLevelIconsOnly;
z1.prototype.structuredDescriptionContentRendererChanged=z1.prototype.structuredDescriptionContentRendererChanged;z1.prototype.videoSecondaryInfoRendererChanged=z1.prototype.videoSecondaryInfoRendererChanged;z1.prototype.videoPrimaryInfoRendererChanged=z1.prototype.videoPrimaryInfoRendererChanged;z1.prototype.maybeUpdateActionsOnSeparateLine=z1.prototype.maybeUpdateActionsOnSeparateLine;z1.prototype.updateOwnerAndDescriptionPosition=z1.prototype.updateOwnerAndDescriptionPosition;
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],z1.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],z1.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],z1.prototype,"ytdReduxBehavior",void 0);_.W([_.B2("#above-the-fold"),_.Q("design:type",HTMLElement)],z1.prototype,"aboveTheFoldContainer",void 0);_.W([_.B2("#menu ytd-menu-renderer"),_.Q("design:type",Object)],z1.prototype,"menu",void 0);_.W([_.B2("#description-inline-expander"),_.Q("design:type",Object)],z1.prototype,"descriptionInlineExpander",void 0);
_.W([_.B2("#faded-structured-description"),_.Q("design:type",Object)],z1.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.W([_.B2("#structured-description"),_.Q("design:type",Object)],z1.prototype,"structuredDescriptionContentRendererElement",void 0);_.W([_.B2("#title"),_.Q("design:type",HTMLElement)],z1.prototype,"titleElement",void 0);_.W([_.B2("#description"),_.Q("design:type",HTMLElement)],z1.prototype,"descriptionElement",void 0);
_.W([_.B2("#description-interaction"),_.Q("design:type",Object)],z1.prototype,"descriptionInteraction",void 0);_.W([_.B2("#owner"),_.Q("design:type",HTMLElement)],z1.prototype,"ownerElement",void 0);_.W([_.B2("#top-row"),_.Q("design:type",HTMLElement)],z1.prototype,"topRowElement",void 0);_.W([_.B2("#bottom-row"),_.Q("design:type",HTMLElement)],z1.prototype,"bottomRowElement",void 0);_.W([_.B2("#actions"),_.Q("design:type",HTMLElement)],z1.prototype,"actionsElement",void 0);
_.W([_.B2("#bottom-actions"),_.Q("design:type",HTMLElement)],z1.prototype,"bottomActionsElement",void 0);_.W([_.B2("#ytd-watch-info-text"),_.Q("design:type",Object)],z1.prototype,"watchInfoTextElement",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"videoSecondaryInfoRenderer",void 0);
_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"commentsEntryPointHeaderRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"videoMetadataCarousel",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"structuredDescriptionContentRenderer",void 0);_.W([_.a("structuredDescriptionContentRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"structuredDescriptionContentRendererComputed",null);
_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"videoSummary",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"merchShelf",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"infoPanelBelowMetadata",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"hoverColor",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"hoverText",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"isHovering",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"enableColorSampling",void 0);_.W([_.a("structuredDescriptionContentRendererComputed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"productShelf",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"metadataBadgesInDescription",void 0);_.W([_.a("videoPrimaryInfoRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"shouldHideBadges",null);
_.W([_.a("productShelf","descriptionCollapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z1.prototype,"shouldShowProductShelf",null);_.W([_.X(),_.Q("design:type",Boolean)],z1.prototype,"isWatchFlexy",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"descriptionCollapsed",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],z1.prototype,"useFadedScrimDescription",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"skinnyMode",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("videoSecondaryInfoRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"largerItemWrap",null);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"playlist",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"clarifyBox",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"playerAds",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],z1.prototype,"isDark",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],z1.prototype,"actionsOnSeparateLine",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"disableVideoOwnerOnTap",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"swatcherooDelayLoad",void 0);_.W([_.X(),_.Q("design:type",Boolean)],z1.prototype,"suppressTopLevelMetadataRows",void 0);
_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"primaryMenuWidth",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"videoId",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"titleHeadlineXs",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"titleHeadlineS",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"titleHeadlineM",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"titleHashtagBlackLinkified",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"titleHashtagGreyLinkified",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.W([_.X(),_.Q("design:type",Object)],z1.prototype,"shouldForceIconOnly",void 0);
_.W([_.ic("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"updateOwnerAndDescriptionPosition",null);_.W([_.ic("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.W([_.a("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"descriptionText",null);_.W([_.a("videoSecondaryInfoRenderer.headerRuns"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],z1.prototype,"headerRuns",null);
_.W([_.X({value:!1}),_.a("commentsEntryPointHeaderRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"hasTeaser",null);_.W([_.X({value:!1,reflectToAttribute:!0}),_.a("videoMetadataCarousel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"hasTeaserCarousel",null);_.W([_.X({value:3}),_.a("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"descriptionMaxLines",null);
_.W([_.a("videoSecondaryInfoRenderer.metadataRowContainer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"collapsibleMetadataRows",null);_.W([_.a("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"alwaysVisibleMetadataRows",null);
_.W([_.a("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z1.prototype,"hasInlineStructuredDescription",null);_.W([_.a("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z1.prototype,"showInlineStructuredDescription",null);
_.W([_.a("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"descriptionExpandCommand",null);_.W([_.a("videoSecondaryInfoRenderer.owner"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"videoOwnerCommand",null);_.W([_.X({reflectToAttribute:!0}),_.a("videoPrimaryInfoRenderer.videoActions"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z1.prototype,"flexMenuEnabled",null);
_.W([_.X({selector:_.TI,reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"isFullscreen",void 0);_.W([_.X({selector:_.aM,reflectToAttribute:!0}),_.Q("design:type",Object)],z1.prototype,"isTheaterMode",void 0);_.W([_.a("descriptionText","useFadedScrimDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z1.prototype,"showAttributedStringDescription",null);
_.W([_.a("descriptionText","useFadedScrimDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z1.prototype,"showFormattedStringDescription",null);_.W([_.a("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z1.prototype,"showFadedStructuredDescription",null);
_.W([_.ic("videoPrimaryInfoRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"videoPrimaryInfoRendererChanged",null);_.W([_.a("videoPrimaryInfoRenderer.title"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"videoTitle",null);_.W([_.a("videoPrimaryInfoRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],z1.prototype,"noEndpoints",null);
_.W([_.ic("videoSecondaryInfoRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"videoSecondaryInfoRendererChanged",null);_.W([_.gz("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"structuredDescriptionContentRendererChanged",null);
_.W([_.gz("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"updateTopLevelIconsOnly",null);_.W([_.gz("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"updateShouldForceIconOnly",null);_.W([_.gz("skinnyMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"moveActionsElement",null);
_.W([_.dz("yt-text-inline-expander-expand-clicked"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"onYtTextInlineExpanderExpandClicked",null);_.W([_.dz("yt-text-inline-expander-collapse-clicked"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.W([_.dz("yt-text-inline-expander-expanded-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],z1.prototype,"onRenderStamperFinished",null);
_.W([_.dz("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"onYtExpanderMoreTapped",null);_.W([_.dz("yt-expander-less-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"onYtExpanderLessTapped",null);
_.W([_.gz("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"registerPanel",null);_.W([_.gz("videoSecondaryInfoRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"resetDescriptionState",null);
_.W([_.gz("structuredDescriptionContentRenderer"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"parseColorSamplingData",null);_.W([_.gz("hoverColor","isDark"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z1.prototype,"updateHoverColor",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-watch-metadata"})],z1);
_.n(z1,"ytd-watch-metadata",function(){if(ivu!==void 0)return ivu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ivu=N},{mode:2});_.qlV=function(N){_.k1.call(this);this.JSC$23535_watchApi=N;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;TNd(this);wCR(this);enR(this);PO8(this);XCA(this);x0d(this);k8m(this)};
_.p(_.qlV,_.k1);var enR=function(N){var t=function(){_.h("kevlar_is_pupi_enabled")||YK(N)};
N.JSC$23535_watchApi.getRoot().addEventListener("yt-player-updated",t);N.addOnDisposeCallback(function(){N.JSC$23535_watchApi.getRoot().removeEventListener("yt-player-updated",t)})},XCA=function(N){if(_.h("kevlar_endscreen_auto_theater_mode")){var t=N.JSC$23535_watchApi.subscribeToActiveChanged(function(){fA8(N)},!1);
N.addOnDisposeCallback(t)}},TNd=function(N){var t,O,H,A,Z;
_.K(function(U){if(U.nextAddress==1)return U.yield(N.JSC$23535_watchApi.playerApi,2);t=U.yieldResult;O=function(C){C=!!C;nLR(N)&&(C=C?2:1,_.Ta.getInstance().setState(C,!0,!1))};
H=function(C){C&&_.HFl(_.v5().getState())&&(_.sl(N.JSC$23535_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),N.temporaryTheaterMode=!0)};
A=function(C){_.h("kevlar_player_update_autonav_on_new_data")&&C.type==="newdata"&&(_.h("kevlar_is_pupi_enabled")||YK(N))};
Z=function(C){N.onPlayerStateChange(C)};
_.h("kevlar_endscreen_auto_theater_mode")&&t.addEventListener("onAutonavCancelled",H);t.addEventListener("onAutonavChangeRequest",O);t.addEventListener("onVideoDataChange",A);t.addEventListener("onStateChange",Z);N.addOnDisposeCallback(function(){t.removeEventListener("onAutonavChangeRequest",O);t.removeEventListener("onVideoDataChange",A);t.removeEventListener("onStateChange",Z);_.h("kevlar_endscreen_auto_theater_mode")&&t.removeEventListener("onAutonavCancelled",H)});
_.Ty(U)})},wCR=function(N){N.JSC$23535_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){N.autonavCancelledBySignal=!0;
_.h("kevlar_is_pupi_enabled")||YK(N)});
N.JSC$23535_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(t,O,H){O&&YK(N,H)});
N.JSC$23535_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){nLR(N)&&_.Ta.getInstance().setState(2,!0,!0)});
N.JSC$23535_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){nLR(N)&&_.Ta.getInstance().setState(1,!0,!0)});
N.addOnDisposeCallback(function(){N.JSC$23535_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");N.JSC$23535_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");N.JSC$23535_watchApi.unregisterActionHandler("yt-enable-autoplay-command");N.JSC$23535_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},PO8=function(N){var t=N.JSC$23535_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){k8m(N)}),O=N.JSC$23535_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){x0d(N)});
N.addOnDisposeCallback(function(){N.JSC$23535_watchApi.unsubscribeByKey(t);N.JSC$23535_watchApi.unsubscribeByKey(O)})},k8m=function(N){N.autonavCancelledBySignal=!1;
_.h("kevlar_is_pupi_enabled")||YK(N)},x0d=function(N){var t=N.JSC$23535_watchApi.getWatchNextResponse(),O,H;
var A=(t=(H=_.M(t==null?void 0:(A=t.playerOverlays)==null?void 0:(O=A.playerOverlayRenderer)==null?void 0:O.autonavToggle,_.Epa))==null?void 0:H.enabled)?2:1;_.h("kevlar_is_pupi_enabled")?_.Ta.getInstance().setState(A,!1,!1):YK(N);_.h("web_persist_server_autonav_state_on_client")&&typeof t==="boolean"&&_.CKy(A===2)},nLR=function(N){if(N.autonavCancelledBySignal)return!1;
var t,O,H,A;return!!((t=N.JSC$23535_watchApi.getWatchNextResponse())==null?0:(O=t.contents)==null?0:(H=O.twoColumnWatchNextResults)==null?0:(A=H.autoplay)==null?0:A.autoplay)};
_.qlV.prototype.onPlayerStateChange=function(N){if(N===0){N=!_.Ta.getInstance().isAutoplaySetExplicitly();var t=this.JSC$23535_watchApi.getWatchNextResponse(),O,H,A,Z;t=_.M(t==null?void 0:(O=t.contents)==null?void 0:(H=O.twoColumnWatchNextResults)==null?void 0:(A=H.autoplay)==null?void 0:(Z=A.autoplay)==null?void 0:Z.autoplayExplicitChoiceDialogRenderer,_.CWu);nLR(this)&&N&&t&&_.U4.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:t},popupType:"DIALOG"}})}else fA8(this)};
var fA8=function(N){N.temporaryTheaterMode&&(N.temporaryTheaterMode=!1,_.sl(N.JSC$23535_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},YK=function(N,t){t=t===void 0?!1:t;
var O;_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23535_watchApi.playerApi,2);O=H.yieldResult;nLR(N)?O.setAutonavState(_.Ta.getInstance().getState(),t):O.setAutonavState(1,t);_.Ty(H)})};var W21={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.IAV=function(N){_.k1.call(this);var t=this;this.JSC$23540_watchApi=N;var O=this.JSC$23540_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){rHR(t)});
this.addOnDisposeCallback(function(){t.JSC$23540_watchApi.unsubscribeByKey(O)});
rHR(this)};
_.p(_.IAV,_.k1);var rHR=function(N){var t=N.JSC$23540_watchApi.getPlayerResponse(),O=N.JSC$23540_watchApi.getWatchNextResponse();if(!_.rsS(t==null?void 0:t.playabilityStatus,O==null?void 0:O.playerOverlays)){var H;var A=t==null?void 0:(H=t.playabilityStatus)==null?void 0:H.errorScreen}N.JSC$23540_watchApi.provideRenderingData("ERROR_SCREEN",A)};var lA8=_.q(function(N){return _.d("yt-player-grid-renderer",{class:_.V7("ytPlayerGridRendererHost",N.className)},_.d(_.iF,{data:N.data},{lockupViewModel:function(t){return _.d(_.IR,{data:t.data,useOverlayStyling:!0})}}))},"po");var QrV=_.q(function(N){var t=N.data;N=_.h("web_watch_video_details_hide_subtitle");var O=_.h("web_watch_video_details_single_line_title"),H=_.Ui(function(){var C=t().onTap;C&&_.cY().resolve(_.jo).resolveCommand(C)}),A={},Z={},U={};
return _.d("yt-player-overlay-video-details-renderer",{class:_.V7("ytPlayerOverlayVideoDetailsRendererHost",(A.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.h("web_watch_video_details_transparent_background"),A)),"on:click":H,role:"button"},_.d("h2",{class:_.V7("ytPlayerOverlayVideoDetailsRendererTitle",(Z.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return O},Z))},_.d(_.cu,{text:function(){return t().title}})),_.d("div",{class:_.V7("ytPlayerOverlayVideoDetailsRendererSubtitle",
(U.ytPlayerOverlayVideoDetailsRendererHideSubtitle=N,U))},_.d(_.cu,{text:function(){return t().subtitle}})))},"qo");var aU={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},m0r=_.q(function(N){var t=N.data;var O=_.cH(_.TI),H=_.h("web_watch_action_bar_resize_buttons"),A=_.h("web_watch_video_action_dsdvb"),Z=_.h("delhi_modern_web_player_icons")&&!_.h("enable_web_delhi_icons");N=_.h("delhi_modern_web_player_disable_frosted_glass");var U=_.h("delhi_modern_web_player_compact_video_actions_controls"),
C=_.h("web_player_quick_action_buttons_icon_only"),F=function(){var B=H&&!O(),c={};U?c.size="S":B&&(c.size="M");C&&(c.iconPosition="icon-only");if(Object.keys(c).length!==0)return c},g={};
return _.d("yt-player-quick-action-buttons",{class:_.V7("ytPlayerQuickActionButtonsHost",(g.ytPlayerQuickActionButtonsHostCompactControls=function(){return!O()||U},g.ytPlayerQuickActionButtonsHostDisableBackdropFilter=N,g))},_.d(_.nL,{each:function(){var B=t();
if(Z){B=JSON.parse(JSON.stringify(B));for(var c=_.D(B),u=c.next();!u.done;u=c.next()){var S=u.value,b=void 0;u=_.M((b=_.M(S,_.Dh))==null?void 0:b.toggleButtonViewModel,_.iA);var z=void 0;b=_.M((z=_.M(S,_.V2))==null?void 0:z.toggleButtonViewModel,_.iA);z=_.M(S,_.$9);S=_.M(S,_.iA);if(u)b=_.M(u.defaultButtonViewModel,_.$9),u=_.M(u.toggledButtonViewModel,_.$9),b&&b.iconName&&(b.iconName=aU[b.iconName]),u&&u.iconName&&(u.iconName=aU[u.iconName]);else if(b)u=_.M(b.defaultButtonViewModel,_.$9),b=_.M(b.toggledButtonViewModel,
_.$9),u&&u.iconName&&(u.iconName=aU[u.iconName]),b&&b.iconName&&(b.iconName=aU[b.iconName]);else if(z)z.iconName&&(z.iconName=aU[z.iconName]);else if(S){u=_.M(S.defaultButtonViewModel,_.$9);b=_.M(S.toggledButtonViewModel,_.$9);S=void 0;if((S=u)==null?0:S.iconName)u.iconName=aU[u.iconName];u=void 0;if((u=b)==null?0:u.iconName)b.iconName=aU[b.iconName]}}}A&&(B=PPu(B));return B}},function(B){return _.d(_.iF,{data:function(){return B}},{buttonViewModel:function(c){return _.d(_.Pu,{data:c.data,
buttonOverrides:F})},
likeButtonViewModel:function(c){return _.d(_.Fl,{data:c.data,buttonShapeOverrideables:F})},
dislikeButtonViewModel:function(c){return _.d(_.Ko,{data:c.data,buttonShapeOverrideables:F})},
toggleButtonViewModel:function(c){return _.d(_.N3,{data:c.data,buttonShapeOverrides:F})}})}))},"ro");_.G8V=function(N){_.k1.call(this);var t=this;this.JSC$23546_watchApi=N;N=_.D(_.b$({},void 0,"OB6c5e"));this.quickActionsViewModel=N.next().value;this.setQuickActionsViewModel=N.next().value;N=_.D(_.b$({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=N.next().value;this.setPlayerOverlayVideoDetailsRenderer=N.next().value;N=_.D(_.b$([],void 0,"A7tRk"));this.lockupViewModels=N.next().value;this.setLockupViewModels=N.next().value;var O=this.JSC$23546_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ELV(t)});
this.addOnDisposeCallback(function(){t.JSC$23546_watchApi.unsubscribeByKey(O)});
ELV(this)};
_.p(_.G8V,_.k1);
var ELV=function(N){var t,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P;_.K(function(x){if(x.nextAddress==1)return x.yield(N.JSC$23546_watchApi.playerApi,2);t=x.yieldResult;O=N.JSC$23546_watchApi.getWatchNextResponse();Z=(H=O)==null?void 0:(A=H.playerOverlays)==null?void 0:A.playerOverlayRenderer;C=_.M((U=Z)==null?void 0:U.fullscreenQuickActionsBar,_.Qwy);(g=(F=N).setQuickActionsViewModel)==null||g.call(F,C||{});C&&RnR(N,t);u=(B=Z)==null?void 0:(c=B.videoDetails)==null?void 0:c.playerOverlayVideoDetailsRenderer;(b=
(S=N).setPlayerOverlayVideoDetailsRenderer)==null||b.call(S,u||{});u&&vLA(N,t);if(_.h("web_player_use_external_grid_component")){var l=[],I,r,E,J,CN=O==null?void 0:(I=O.contents)==null?void 0:(r=I.twoColumnWatchNextResults)==null?void 0:(E=r.secondaryResults)==null?void 0:(J=E.secondaryResults)==null?void 0:J.results;if(CN)for(I=_.D(CN),r=I.next();!r.done;r=I.next())if(r=r.value,r.lockupViewModel)l.push(r);else if(E=void 0,(E=r.itemSectionRenderer)==null?0:E.contents)for(r=_.D(r.itemSectionRenderer.contents),
E=r.next();!E.done;E=r.next())E=E.value,E.lockupViewModel&&l.push(E);z=l;(P=(w=N).setLockupViewModels)==null||P.call(w,z||[]);JHD(N,t)}_.Ty(x)})},RnR=function(N,t){if(!N.quickActionButtonsContainer)if(t.setFullscreenQuickActions){N.quickActionButtonsContainer=document.createElement("div");
t.setFullscreenQuickActions(N.quickActionButtonsContainer);var O=function(){return N.quickActionsViewModel().quickActionButtons||[]},H=_.Io(N.quickActionButtonsContainer,function(){return _.d(m0r,{data:O})},"so");
N.addOnDisposeCallback(function(){t.setFullscreenQuickActions(void 0);H()})}else _.J_(new _.fF("setFullscreenQuickActions not defined",{playerApi:Object.keys(t),
isReady:t.isReady(),appState:t.getAppState()}))},vLA=function(N,t){if(!N.playerOverlayVideoDetailsRendererContainer)if(t.setPlayerOverlayVideoDetailsRenderer){N.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
t.setPlayerOverlayVideoDetailsRenderer(N.playerOverlayVideoDetailsRendererContainer);var O=_.Io(N.playerOverlayVideoDetailsRendererContainer,function(){return _.d(QrV,{data:N.playerOverlayVideoDetailsRenderer})},"to");
N.addOnDisposeCallback(function(){t.setPlayerOverlayVideoDetailsRenderer(void 0);O()})}else _.J_(new _.fF("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(t),
isReady:t.isReady(),appState:t.getAppState()}))},JHD=function(N,t){if(!N.gridRendererContainer)if(t.setFullscreenGrid){N.gridRendererContainer=document.createElement("div");
t.setFullscreenGrid(N.gridRendererContainer);var O=_.Io(N.gridRendererContainer,function(){return _.d(lA8,{data:N.lockupViewModels})},"uo");
N.addOnDisposeCallback(function(){t.setFullscreenGrid(void 0);O()})}else _.J_(new _.fF("setFullscreenGrid not defined",{playerApi:Object.keys(t),
isReady:t.isReady(),appState:t.getAppState()}))};_.T1=function(N){_.k1.call(this);var t=this;this.JSC$23552_watchApi=N;this.JSC$23552_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;N=_.Jc(_.v5(),_.TI,function(O){t.onFullscreenChanged(O)});
this.addOnDisposeCallback(N);N=_.Jc(_.v5(),_.T0,function(O){t.onWatchScroll(O)});
this.addOnDisposeCallback(N);_.h("kevlar_watch_while_v2")&&(N=_.Jc(_.v5(),_.w8,function(O){oLd(t,O)}),this.addOnDisposeCallback(N));
srw(this);N0A(this);tbl();this.onWatchScroll(_.T0(_.v5().getState()));_.vZ("START_IN_FULL_WINDOW_MODE")&&this.JSC$23552_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.p(_.T1,_.k1);var srw=function(N){N.JSC$23552_watchApi.registerActionHandler("yt-fullscreen-change-action",function(t){var O=N.JSC$23552_watchApi.isActive();t&&!O||_.v5().dispatch(_.H5({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!t}}))});
N.addOnDisposeCallback(function(){N.JSC$23552_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},N0A=function(N){var t,O;
_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23552_watchApi.playerApi,2);t=H.yieldResult;O=function(){N.onFullerscreenEduClicked()};
t.addEventListener("onFullerscreenEduClicked",O);N.addOnDisposeCallback(function(){t.removeEventListener("onFullerscreenEduClicked",O)});
_.Ty(H)})};
_.T1.prototype.onFullscreenChanged=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return t.isFullscreen=!!_.G8(),H.yield(t.JSC$23552_watchApi.playerApi,2);O=H.yieldResult;t.JSC$23552_miniplayerActive||O.setFauxFullscreen(t.isFullscreen);if(N&&(t.JSC$23552_watchApi.focusOnPlayer(),!t.fullerscreenEduButtonShownThisPlayback)){t.fullerscreenEduButtonShownThisPlayback=!0;var A=_.b8("yt-fullerscreen-edu-button-shown-count")||0;_.ML("yt-fullerscreen-edu-button-shown-count",A+1,31536E3);
t.updateFullerscreenEduButtonSubtleModeState()}_.Ty(H)})};
var oLd=function(N,t){var O;_.K(function(H){if(H.nextAddress==1)return N.JSC$23552_miniplayerActive=t,H.yield(N.JSC$23552_watchApi.playerApi,2);O=H.yieldResult;O.setFauxFullscreen(!N.JSC$23552_miniplayerActive&&N.isFullscreen);_.Ty(H)})};
_.T1.prototype.onWatchScroll=function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1)return _.h("external_fullscreen_with_edu")?A.yield(t.JSC$23552_watchApi.playerApi,2):A.return();O=A.yieldResult;H=N<=0;t.shouldShowFullerscreenEdu!==H&&(t.shouldShowFullerscreenEdu=H,O.updateFullerscreenEduButtonVisibility(!t.shouldShowFullerscreenEdu));_.Ty(A)})};
_.T1.prototype.onFullerscreenEduClicked=function(){this.JSC$23552_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var N=_.b8("yt-fullerscreen-edu-button-click-count")||0;_.ML("yt-fullerscreen-edu-button-click-count",N+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.T1.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var N=this,t,O,H,A,Z,U;return _.K(function(C){if(C.nextAddress==1)return t=_.b8("yt-fullerscreen-edu-button-click-count")||0,O=_.b8("yt-fullerscreen-edu-button-shown-count")||0,H=_.uP("external_fullscreen_button_click_threshold"),A=_.uP("external_fullscreen_button_shown_threshold"),Z=t>=H||O>=A,C.yield(N.JSC$23552_watchApi.playerApi,2);U=C.yieldResult;U.updateFullerscreenEduButtonSubtleModeState(Z);_.Ty(C)})};
_.T1.prototype.disposeInternal=function(){_.k1.prototype.disposeInternal.call(this);var N=_.G8();_.h("kevlar_exit_fullscreen_leaving_watch")&&N&&_.Rr(N)};
var tbl=function(){if(_.h("web_watch_add_viewport_meta_tag")){var N=document.querySelector("meta[name=viewport]"),t=document.head;t&&!N&&(N=document.createElement("meta"),N.name="viewport",N.content="width=device-width, initial-scale=1.0, viewport-fit=cover",t.appendChild(N))}};_.HJl=function(N){_.k1.call(this);var t=this;this.JSC$23555_watchApi=N;this.jobId=0;this.pendingRequestId=void 0;var O=this.JSC$23555_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){OJw(t)});
this.addOnDisposeCallback(function(){t.JSC$23555_watchApi.unsubscribeByKey(O)});
OJw(this)};
_.p(_.HJl,_.k1);var AbA=function(N){_.GB.cancelJob(N.jobId);N.pendingRequestId=void 0},OJw=function(N){AbA(N);
var t=XYV(N.JSC$23555_watchApi.getWatchNextResponse());if(t){var O=250,H,A=(H=_.M(t,_.IdX))==null?void 0:H.initialDelayMs;_.h("web_watch_updated_metadata_server_initial_delay")&&A&&(O=A);N.jobId=_.GB.addLowPriorityJob(function(){return N.fetchUpdatedMetadata(t)},O)}};
_.HJl.prototype.fetchUpdatedMetadata=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P;return _.K(function(x){switch(x.nextAddress){case 1:t&&(H={continuation:t});if(!_.h("web_get_updated_metadata_fantasy_panel_continuation_params")){x.jumpTo(2);break}A=_.cY().resolve(_.Of);Z="PAsports_fantasy";return x.yield(A.isVisible(Z,!0),3);case 3:x.yieldResult&&(g=(C=(U=A).getUpdatePanelContinuationData)==null?void 0:(F=C.call(U,Z))==null?void 0:F.updatePanelContinuationRequest)&&(H||(H={}),H.clientParams=
{panelContinuationParams:{panelContinuation:g}});case 2:B=_.cY().resolve(_.Sc);if(!B)return _.R0(Error("ep")),x.return();c={};O.pendingRequestId=c;return x.yield(_.rq(B,N,H),4);case 4:u=x.yieldResult;if(c!==O.pendingRequestId)return x.return();z=(S=u)==null?void 0:(b=S.continuation)==null?void 0:b.timedContinuationData;((w=z)==null?0:w.continuation)&&((P=z)==null?0:P.timeoutMs)&&(O.jobId=_.GB.addLowPriorityJob(function(){return O.fetchUpdatedMetadata(N,z.continuation)},z.timeoutMs));
_.Ty(x)}})};
_.HJl.prototype.disposeInternal=function(){_.k1.prototype.disposeInternal.call(this);AbA(this)};var ZJm=_.q(function(N){var t=_.Ui(function(){var H=N.data().videoId;if(N.active())H=_.sK(H),_.cY().resolve(_.jo).resolveCommand(H);else{var A=N.playerApi(),Z=A.getAvailableAudioTracks(),U,C,F=(U=N.sourceVideoConfig().audioTracks)==null?void 0:(C=U.find(function(g){return g.isDefaultForSource}))==null?void 0:C.id;
if(Z=Z.find(function(g){return g.getLanguageInfo().getId()===F}))A.setAudioTrack(Z,!0),A.setCompositeParam({activeVideoId:H}),N.setActiveSourceId(H)}}),O={};
return _.d("ytw-composite-source-video-overlay",{class:_.V7("ytwCompositeSourceVideoOverlayHost",(O.ytwCompositeSourceVideoOverlayActive=N.active,O.ytwCompositeSourceVideoOverlayInteracting=N.interacting,O)),style:_.FM({left:function(){var H;return((H=N.data().topLeftCornerX)!=null?H:0)*100+"%"},
top:function(){var H;return((H=N.data().topLeftCornerY)!=null?H:0)*100+"%"},
width:function(){var H;return((H=N.data().width)!=null?H:0)*100+"%"},
height:function(){var H;return((H=N.data().height)!=null?H:0)*100+"%"}}),
"on:click":t},_.d("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"vo");var VbV=_.q(function(N){var t=_.D(_.Gb(function(){var U,C=(U=N.data().sources)==null?void 0:U.find(function(F){return F.isActive});
if(C)return C.videoId})),O=t.next().value,H=t.next().value;
t=_.D(_.b$(!1,void 0,"rmRJ8d"));var A=t.next().value,Z=t.next().value;return _.d("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Ui(function(){Z(!0)}),
"on:mouseout":_.Ui(function(){Z(!1)})},_.d(_.y,{cond:function(){return N.data().sources},
then:function(U){return _.d(_.nL,{each:U},function(C){return _.d(ZJm,{data:C,active:function(){return C.videoId===O()},
setActiveSourceId:H,interacting:A,playerApi:N.playerApi,sourceVideoConfig:function(){return xHr(N.compositeVideoConfig(),C.videoId)}})})}}))},"wo");_.Cpr=function(N){_.k1.call(this);this.JSC$23571_watchApi=N;N=_.D(_.b$({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=N.next().value;this.setCompositeVideoOverlayRenderer=N.next().value;N=_.D(_.b$({},void 0,"OlaJpc"));this.compositeVideoConfig=N.next().value;this.setCompositeVideoConfig=N.next().value;DpN(this);Upl(this)};
_.p(_.Cpr,_.k1);var DpN=function(N){var t=N.JSC$23571_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Upl(N)});
N.addOnDisposeCallback(function(){N.JSC$23571_watchApi.unsubscribeByKey(t)})},KIu=function(N){var t;
return _.K(function(O){if(O.nextAddress==1)return O.yield(N.JSC$23571_watchApi.playerApi,2);t=O.yieldResult;t.setCompositeVideoOverlayRendererComponent(N.container);_.Ty(O)})},FIu=function(N){var t;
return _.K(function(O){if(O.nextAddress==1)return O.yield(N.JSC$23571_watchApi.playerApi,2);t=O.yieldResult;t.setCompositeVideoOverlayRendererComponent(void 0);_.Ty(O)})},dp$=function(N){var t,O;
return _.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23571_watchApi.playerApi,2);t=H.yieldResult;N.container=document.createElement("div");O=_.Io(N.container,function(){return _.d(VbV,{data:N.compositeVideoOverlayRenderer,compositeVideoConfig:N.compositeVideoConfig,playerApi:t})},"xo");
N.addOnDisposeCallback(O);_.Ty(H)})},Upl=function(N){var t,O,H,A,Z,U,C,F;
_.K(function(g){return g.nextAddress==1?(t=N.JSC$23571_watchApi.getPlayerResponse(),Z=_.M((O=t)==null?void 0:(H=O.overlay)==null?void 0:(A=H.playerControlsOverlayRenderer)==null?void 0:A.compositeVideoOverlay,P08),F=(U=t)==null?void 0:(C=U.playerConfig)==null?void 0:C.compositeVideoConfig,Z&&N.setCompositeVideoOverlayRenderer(Z),F&&N.setCompositeVideoConfig(F),Z&&F?N.container?g.jumpTo(6):g.yield(dp$(N),6):gYl(N)?g.yield(FIu(N),0):g.jumpTo(0)):gYl(N)?g.jumpTo(0):g.yield(KIu(N),0)})},gYl=function(N){var t;
return!((t=N.container)==null||!t.parentElement)};
_.Cpr.prototype.disposeInternal=function(){gYl(this)&&FIu(this);_.k1.prototype.disposeInternal.call(this)};_.jXd=function(N){_.k1.call(this);var t=this;this.JSC$23577_watchApi=N;var O=this.JSC$23577_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var H=t.JSC$23577_watchApi.getPlayerResponse();if(H){var A,Z;if(H=_.M((A=H.endscreen)==null?void 0:(Z=A.endscreenRenderer)==null?void 0:Z.hideButton,_.iA)){var U;(U=t.setEndscreenHideButton)==null||U.call(t,H);yb1(t)}}});
this.addOnDisposeCallback(function(){t.JSC$23577_watchApi.unsubscribeByKey(O)});
N=_.D(_.b$({},void 0,"ER3tqb"));this.endscreenHideButton=N.next().value;this.setEndscreenHideButton=N.next().value;B0$(this);cbl(this);$p9(this)};
_.p(_.jXd,_.k1);
var yb1=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return N.creatorEndscreenHideButtonContainer?H.return():H.yield(N.JSC$23577_watchApi.playerApi,2);t=H.yieldResult;N.creatorEndscreenHideButtonContainer=document.createElement("div");_.AJ(N.creatorEndscreenHideButtonContainer,!1);t.setCreatorEndscreenHideButton(N.creatorEndscreenHideButtonContainer);O=_.Io(N.creatorEndscreenHideButtonContainer,function(){return _.d(_.N3,{data:N.endscreenHideButton,useOutlinedIcon:!0})},"yo");
N.addOnDisposeCallback(function(){O();var A;(A=t)==null||A.setCreatorEndscreenHideButton(void 0)});
_.Ty(H)})},B0$=function(N){var t,O;
_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23577_watchApi.playerApi,2);t=H.yieldResult;O=function(){N.creatorEndscreenHideButtonContainer&&_.AJ(N.creatorEndscreenHideButtonContainer,!0)};
t.addEventListener("endscreenelementshown",O);N.addOnDisposeCallback(function(){var A;(A=t)==null||A.removeEventListener("endscreenelementshown",O)});
_.Ty(H)})},cbl=function(N){var t=function(){N.creatorEndscreenHideButtonContainer&&_.AJ(N.creatorEndscreenHideButtonContainer,!1)},O=N.JSC$23577_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",t),H=N.JSC$23577_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",t);
N.addOnDisposeCallback(function(){N.JSC$23577_watchApi.unsubscribeByKey(O);N.JSC$23577_watchApi.unsubscribeByKey(H)})},$p9=function(N){N.JSC$23577_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(t){var O=_.M(t,zAw);
N.JSC$23577_watchApi.playerApi.then(function(H){H==null||H.setCreatorEndscreenVisibility(!!O.hide)})});
N.addOnDisposeCallback(function(){N.JSC$23577_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.uuN=function(N){_.k1.call(this);this.JSC$23583_watchApi=N;iJd(this)};
_.p(_.uuN,_.k1);var iJd=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23583_watchApi.playerApi,2);t=H.yieldResult;O=function(A){_.v5().dispatch(_.H5({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:A}}))};
t.addEventListener("onRetroModeChanged",O);N.addOnDisposeCallback(function(){t.removeEventListener("onRetroModeChanged",O)});
_.Ty(H)})};var l9m=0,e2=0,mHu=0;var SKd;SKd=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.w$=function(N){_.k1.call(this);this.JSC$23588_watchApi=N;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;h7w(this)};
_.p(_.w$,_.k1);
var h7w=function(N){var t,O,H;_.K(function(A){if(A.nextAddress==1)return A.yield(N.JSC$23588_watchApi.playerApi,2);t=A.yieldResult;if(N.isDisposed())return A.return();N.sessionStorage=_.dHO("yt-sleep-timer");N.sessionStorage||_.J_(new _.fF("SessionStorage for Sleep Timer is undefined."));((O=N.sessionStorage)==null?void 0:O.get("yt-sleep-timer"))==="true"&&(ReV(),(H=N.sessionStorage)==null||H.remove("yt-sleep-timer"),t.syncVolume());Mbs(N,t);bJ$(N,t);pcD(N,t);_.Ty(A)})},Mbs=function(N,t){var O=function(g){N.onSleepTimerSettingsChanged(g,
t)},H=function(g){N.onPlayerStateChange(g,t)},A=function(){N.onLoopChange(t)},Z=function(){N.onCloseMiniplayer(t)},U=function(){I9w(t,(0,_.jg)(),vvR(t),N.selectedOption==="End of video",t.getPlayerState()!==1)},C=function(){N.onSeekComplete(t)},F=function(){_.GB.cancelJob(e2);
var g=t.getCurrentTime()>=t.getDuration(),B=N.selectedOption==="End of video"||N.selectedOption==="End of playlist"&&!nvw(N.playlistId);g&&B&&LId(N,t)};
t.addEventListener("onSleepTimerSettingsChanged",O);t.addEventListener("onLoopChange",A);t.addEventListener("onLoopRangeChange",A);t.addEventListener("onStateChange",H);t.addEventListener("onCloseMiniplayer",Z);t.addEventListener("onSleepTimerFeatureAvailable",U);t.addEventListener("SEEK_COMPLETE",C);t.addEventListener("onAdStart",F);N.addOnDisposeCallback(function(){t.removeEventListener("onSleepTimerSettingsChanged",O);t.removeEventListener("onLoopChange",A);t.removeEventListener("onLoopRangeChange",
A);t.removeEventListener("onStateChange",H);t.removeEventListener("onCloseMiniplayer",Z);t.removeEventListener("onSleepTimerFeatureAvailable",U);t.removeEventListener("SEEK_COMPLETE",C);t.removeEventListener("onAdStart",F)})},bJ$=function(N,t){var O=N.JSC$23588_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var H=t.getVideoData().video_id,A,Z=(A=qy$(N.JSC$23588_watchApi))==null?void 0:A.playlistId;
N.pauseAutonavPlayback&&(t.pauseVideo(),t.syncVolume(),N.pauseAutonavPlayback=!1);if(N.selectedOption==="End of video"&&H!==N.videoId)ek(N,t);else{if(N.selectedOption==="End of playlist"){A=nvw(N.playlistId);if(Z!==N.playlistId){ek(N,t);break a}A?A&&z7s(N,t):YK$(N,t)}N.videoId=H;N.playlistId=Z}}});
N.addOnDisposeCallback(function(){N.JSC$23588_watchApi.unsubscribeByKey(O)})},pcD=function(N,t){var O=_.cY().resolve(_.VT),H=_.Jc(O,_.Yol,function(Z){Z&&N.selectedOption!=="Off"&&ek(N,t)}),A=N.JSC$23588_watchApi.subscribeToActiveChanged(function(Z){var U,C;
return _.K(function(F){if(F.nextAddress==1)return F.yield(_.Ry().navigationFinishPromise,2);U=!_.Cy0();C=_.cY().resolve(_.kf).isMiniplayerActive();Z||!kpm(N.selectedOption)||C||U||ek(N,t);_.Ty(F)})},!1);
O=_.Jc(O,function(Z){return Z.entities.playlistLoopStateEntity||{}},function(Z){Z=Z===void 0?{}:Z;
var U=f9R(N.JSC$23588_watchApi);if(U){var C;((C=Z[U])==null?void 0:C.state)==="PLAYLIST_LOOP_STATE_ALL"&&kpm(N.selectedOption)&&ek(N,t)}});
N.addOnDisposeCallback(H);N.addOnDisposeCallback(O);N.addOnDisposeCallback(A)};
_.w$.prototype.onSleepTimerSettingsChanged=function(N,t){switch(N){case "Off":this.selectedOption!=="Off"&&ek(this,t);break;case "End of video":case "End of playlist":aa9(this,N,t);break;default:aa9(this,N,t,SKd.get(N))}};
_.w$.prototype.onLoopChange=function(N){(N.getLoopVideo()||N.getLoopRange())&&kpm(this.selectedOption)&&ek(this,N)};
_.w$.prototype.onCloseMiniplayer=function(N){kpm(this.selectedOption)&&ek(this,N)};
var aa9=function(N,t,O,H){T0s(N,O);N.selectedOption=t;N.videoId=O.getVideoData().video_id;N.playlistId="";var A;(A=N.sessionStorage)==null||A.set("yt-sleep-timer","true");N.adjustmentsCount++;I9w(O,(0,_.jg)(),vvR(O),N.selectedOption==="End of video");if(N.selectedOption==="End of video")YK$(N,O),wcd(N,O);else if(N.selectedOption==="End of playlist"){wcd(N,O);var Z,U;N.playlistId=(U=(Z=qy$(N.JSC$23588_watchApi))==null?void 0:Z.playlistId)!=null?U:"";nvw(N.playlistId)||YK$(N,O)}else H&&(N.presetFadeSchedulerId=
_.MU(_.GB,function(){Evd(O,15E3)},H-15E3),N.presetPauseSchedulerId=_.MU(_.GB,function(){LId(N,O)},H),QDA(O,(0,_.jg)(),H))},LId=function(N,t){if(N.JSC$23588_watchApi.isActive()){var O={dismissDialogEndpoint:{}};
var H={commandExecutorCommand:{commands:[O,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};O={buttonViewModel:{title:_.CJ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:O}}};H={buttonViewModel:{title:_.CJ("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:H}}};var A={dialogHeaderViewModel:{headline:{content:_.CJ("SLEEP_TIMER_ENDED_TITLE")}}},
Z={basicContentViewModel:{paragraphs:[{text:{content:_.CJ("SLEEP_TIMER_ENDED_TEXT")}}]}};O={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:A,content:Z,footer:{panelFooterViewModel:{primaryButton:O,secondaryButton:H,shouldHideDivider:!0}}}}}}};_.cY().resolve(_.jo).resolveCommand(O,{form:{element:N}})}else ReV();e7N(N,!1);Ppu(N,t);t.pauseVideo();_.Ta.getInstance().getState()===2&&t.getPlayerState()===5&&(N.pauseAutonavPlayback=!0)},ek=function(N,t){e7N(N,!0);
Ppu(N,t);ReV()},Ppu=function(N,t){T0s(N,t);
N.selectedOption="Off";N.videoId="";N.playlistId="";N.adjustmentsCount=0;var O;(O=N.sessionStorage)==null||O.remove("yt-sleep-timer");_.GB.cancelJob(l9m);t.resetSleepTimerMenuSettings()},e7N=function(N,t){t={timer_length_adjustment_times_during_session:N.adjustmentsCount-1,
is_session_cancelled:t};switch(N.selectedOption){case "Off":t.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":t.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":t.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:t.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",t.option_duration_in_minutes=SKd.get(N.selectedOption)/6E4}_.E7("sleepTimerSessionFinishEvent",t)};
_.w$.prototype.onPlayerStateChange=function(N,t){N===1?I9w(t,(0,_.jg)(),vvR(t),this.selectedOption==="End of video"):N===0?(_.GB.cancelJob(e2),t.setVideoTimeLeft(reA(0,0))):N===2&&_.GB.cancelJob(e2);this.selectedOption==="End of video"?N===0?LId(this,t):N===2&&GpN(t):this.selectedOption!=="End of playlist"||nvw(this.playlistId)||(N===0?LId(this,t):N===2&&GpN(t))};
_.w$.prototype.onSeekComplete=function(N){N.getPlayerState()===2&&I9w(N,(0,_.jg)(),vvR(N),this.selectedOption==="End of video",!0)};
_.w$.prototype.onCueRangeEnter=function(N,t){N==="sleep-timer-fade-audio"&&Evd(t,(t.getDuration()-t.getProgressState().current)*1E3)};
_.w$.prototype.onCueRangeExit=function(N,t){N==="sleep-timer-fade-audio"&&t.getPlayerState()!==0&&GpN(t,!0)};
var YK$=function(N,t){t.addCueRange("sleep-timer-fade-audio",t.getDuration()-15,t.getDuration());t.addEventListener("onCueRangeEnter",function(O){N.onCueRangeEnter(O,t)});
t.addEventListener("onCueRangeExit",function(O){N.onCueRangeExit(O,t)})},z7s=function(N,t){t.removeCueRange("sleep-timer-fade-audio");
t.removeEventListener("onCueRangeEnter",function(O){N.onCueRangeEnter(O,t)});
t.removeEventListener("onCueRangeExit",function(O){N.onCueRangeExit(O,t)})},T0s=function(N,t){kpm(N.selectedOption)?z7s(N,t):(_.GB.cancelJob(N.presetPauseSchedulerId),_.GB.cancelJob(N.presetFadeSchedulerId),N.presetPauseSchedulerId=0,N.presetFadeSchedulerId=0);
GpN(t,!0)},wcd=function(N,t){t.setLoop(!1);
t.setLoopVideo(!1);t.setLoopRange(null);(N=f9R(N.JSC$23588_watchApi))&&_.cY().resolve(_.VT).dispatch(_.uF("playlistLoopStateEntity",N,{key:N,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.faR=function(N){_.k1.call(this);var t=this;this.JSC$23591_watchApi=N;_.h("web_watch_force_start_in_theater_mode")&&Xcr(this,!0,!1);xp1(this);kTN(this);qK1(this);var O=this.JSC$23591_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.uP("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.PY.get("wide",void 0)==="1"&&_.Xe("wide","1",_.uP("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){t.JSC$23591_watchApi.unsubscribeByKey(O)});
N=N.getRoot();if(N.is==="ytd-watch-flexy"||N.is==="ytd-watch-grid")N.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.ZF8();_.h("web_watch_log_theater_mode_cookie_state")&&_.PY.get("wide","0")==="1"&&_.hFv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.p(_.faR,_.k1);var xp1=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23591_watchApi.playerApi,2);t=H.yieldResult;O=function(A){Xcr(N,!!A)};
t.addEventListener("SIZE_CLICKED",O);N.addOnDisposeCallback(function(){t.removeEventListener("SIZE_CLICKED",O)});
_.Ty(H)})},kTN=function(N){N.JSC$23591_watchApi.registerActionHandler("yt-toggle-theater-mode",function(t,O){Xcr(N,t,O===void 0?!0:O)});
N.addOnDisposeCallback(function(){N.JSC$23591_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.faR.prototype.getState=function(){return _.aM(_.v5().getState())};
var Xcr=function(N,t,O){O=O===void 0?!0:O;var H,A,Z,U=_.h("enable_player_resize_transition")&&!!N.JSC$23591_watchApi.getWatchNextResponse()&&!((H=N.JSC$23591_watchApi.getWatchNextResponse())==null?0:(A=H.contents)==null?0:(Z=A.twoColumnWatchNextResults)==null?0:Z.conversationBar);_.xLn(function(){_.v5().dispatch(_.H5({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:t}}));_.h("theater_mode_scroll_to_top_killswitch")||N.JSC$23591_watchApi.scrollWatchTo(0,!1);_.G8()&&_.h("external_fullscreen")&&_.Rr(document.documentElement);
qK1(N);O&&_.Xe("wide",t?"1":"0",_.uP("theater_mode_cookie_max_age_seconds",-1));_.sl(N.JSC$23591_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);N.JSC$23591_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:t});t&&_.ZF8()},{shouldWrap:U})},qK1=function(N){var t;
_.K(function(O){if(O.nextAddress==1)return O.yield(N.JSC$23591_watchApi.playerApi,2);t=O.yieldResult;t.setSizeStyle(!0,N.getState());_.Ty(O)})};var rbm=function(N){_.k1.call(this);var t=this;this.playerApi=N;this.timeToPanelSyncKeyMap={};var O;if(N==null?0:(O=N.isReady)==null?0:O.call(N)){O=_.Jc(_.cY().resolve(_.VT),function(A){return A.entities.timedMarkersListSyncEntity||{}},function(A,Z){A=A===void 0?{}:A;
Z=Z===void 0?{}:Z;for(var U=_.D(Object.keys(Z)),C=U.next();!C.done;C=U.next())C=C.value,A[C]!==Z[C]&&nYd(t,Z[C]);Z=_.D(Object.keys(A));for(U=Z.next();!U.done;U=Z.next())U=U.value,C=A[U],t.timeToPanelSyncKeyMap[U]&&WIr(t,C)});
this.addOnDisposeCallback(O);var H=function(A){t.onCueRangeEnter(A)};
N.addEventListener("onCueRangeEnter",H);this.addOnDisposeCallback(function(){var A;(A=N.removeEventListener)==null||A.call(N,"onCueRangeEnter",H)})}};
_.p(rbm,_.k1);
var WIr=function(N,t){var O,H;if((O=N.playerApi)==null?0:(H=O.isReady)==null?0:H.call(O)){var A;if((O=t==null?void 0:(A=t.timedListData)==null?void 0:A.sections)&&t!=null&&t.key)for(A=_.D(O),O=A.next();!O.done;O=A.next())if(O=O.value,O.timedSyncDataList&&O.sectionId)for(H=0;H<O.timedSyncDataList.length;H++){var Z=O.timedSyncDataList[H];Z.syncItemId&&N.playerApi.addCueRange(O.sectionId+"_"+t.key+"_"+Z.syncItemId,Number(Z.videoTimeMs)/1E3,H===O.timedSyncDataList.length-1?0x8000000000000:Number(O.timedSyncDataList[H+
1].videoTimeMs)/1E3)}}},nYd=function(N,t){var O,H;
if((O=N.playerApi)==null?0:(H=O.isReady)==null?0:H.call(O)){var A;if((O=t==null?void 0:(A=t.timedListData)==null?void 0:A.sections)&&t!=null&&t.key)for(A=_.D(O),O=A.next();!O.done;O=A.next())if(O=O.value,O.timedSyncDataList&&O.sectionId){H=_.D(O.timedSyncDataList);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.syncItemId&&N.playerApi.removeCueRange(O.sectionId+"_"+t.key+"_"+Z.syncItemId)}}};
rbm.prototype.onCueRangeEnter=function(N){for(var t=_.D(Object.keys(this.timeToPanelSyncKeyMap)),O=t.next();!O.done;O=t.next()){O=O.value;var H=_.D(N.split("_"+O+"_")),A=H.next().value;H=H.next().value;if(A&&H){N=_.cY().resolve(_.VT);t=this.timeToPanelSyncKeyMap[O];var Z=_.dW9(N.getState(),t);O=Iaw(O,A,H);if(O===-1)break;O={activeSyncId:H,activeItemIndex:O,activeSectionInfo:{sectionIdentifier:A}};Z?N.dispatch(_.aE("markersEngagementPanelSyncEntity",t,O)):N.dispatch(_.uF("markersEngagementPanelSyncEntity",
t,Object.assign({},{key:t},O)));break}}};
var Iaw=function(N,t,O){var H=_.cY().resolve(_.VT),A,Z;N=(A=ol1(H.getState(),N))==null?void 0:(Z=A.timedListData)==null?void 0:Z.sections;if(!N)return-1;A=0;Z=_.D(N);for(N=Z.next();!N.done;N=Z.next()){N=N.value;H=N.timedSyncDataList||[];if(N.sectionId===t)return t=H.findIndex(function(U){return U.syncItemId===O}),t===-1?t:A+t;
A+=H.length}return-1};_.mp$=function(N){_.k1.call(this);var t=this;this.JSC$23604_watchApi=N;this.unresolvedCommands=[];this.JSC$23604_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(O){laA(t,O)});
this.addOnDisposeCallback(function(){t.JSC$23604_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
QXA(this)};
_.p(_.mp$,_.k1);var QXA=function(N){var t;_.K(function(O){if(O.nextAddress==1)return O.yield(N.JSC$23604_watchApi.playerApi,2);t=O.yieldResult;if(N.isDisposed())return O.return();N.timedSyncObserver=new rbm(t);N.unresolvedCommands.length&&(N.unresolvedCommands.forEach(function(H){return laA(N,H)}),N.unresolvedCommands=[]);
_.L1(N,N.timedSyncObserver);_.Ty(O)})},laA=function(N,t){if(N.timedSyncObserver){var O=_.M(t,aos);
if(O&&O.timedSyncEntityKey&&O.panelSyncEntityKey){N=N.timedSyncObserver;t=O.timedSyncEntityKey;var H=O.panelSyncEntityKey;O=!!O.isEnabled;O=O===void 0?!0:O;var A=_.cY().resolve(_.VT);A=ol1(A.getState(),t);O?N.timeToPanelSyncKeyMap[t]||(N.timeToPanelSyncKeyMap[t]=H,WIr(N,A)):(delete N.timeToPanelSyncKeyMap[t],nYd(N,A))}}else N.unresolvedCommands.push(t)};var EYu=_.q(function(N){var t=N.data,O=N.maybeLogSmartSkipClientData,H=null,A=null,Z=_.h("web_enable_auto_focus_for_timely_action_button"),U=function(){H=document.activeElement},C=function(){t().smartSkipMetadata&&(H=document.activeElement,_.krm(function(){return A}))},F=function(B){if(t().smartSkipMetadata&&(!B||B.key!=="Enter")){H&&H.isConnected&&(_.krm(function(){return H}),H=null);
var c;(c=A)==null||c.blur()}};
N=_.Ui(function(){O==null||O(!0,t());return!1});
var g=_.E4(_.wZ(function(){return t().rendererContext},{onTap:function(B,c){c({disableClickTracking:!0})}}),_.iU({visibilityCallback:function(B){if(Z)B?A&&t().smartSkipMetadata&&(C(),document.addEventListener("focusin",U)):(document.removeEventListener("focusin",U),F());
else if(B){B=_.a8(t().rendererContext);var c=Number(t().maxVisibleDurationMilliseconds),u,S=(u=_.M(t().rendererContext,_.ue))==null?void 0:u.label;B&&c&&S&&(u={label:S,command:B,durationMs:c},_.cY().resolve(_.w2).enqueue(u))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.lf(function(){if(Z){var B;if((A=(B=g.value)==null?void 0:B.querySelector("button"))&&t().smartSkipMetadata){var c;(c=g.value)==null||c.addEventListener("keydown",F)}}});
_.Ia(function(){Z&&(A&&t().smartSkipMetadata&&A.removeEventListener("keydown",F),document.removeEventListener("focusin",U),F())});
return _.d("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:g,"on:click":N},_.d(_.iF,{data:function(){return t().content}},{buttonViewModel:_.Pu}))},"Ao");var GTA=_.q(function(N){var t=N.data,O=N.playerApi,H=_.cY().resolve(_.Pw1);N=_.D(_.Gb(function(){t()}));
var A=N.next().value,Z=N.next().value,U=function(){return sDR(t(),A())},C=function(g,B){var c,u,S=(c=_.M(B==null?void 0:B.rendererContext,_.BV))==null?void 0:(u=c.loggingDirectives)==null?void 0:u.trackingParams;
if((B=B==null?void 0:B.smartSkipMetadata)&&B.loggingData&&(u=B.loggingData,B=u.algorithmId,c=u.startMilliseconds,u=u.endMilliseconds,B&&c!==void 0&&u!==void 0)){var b,z;g={smartSkipData:Object.assign({},{versionName:B,startMediaTimeMs:c,endMediaTimeMs:u},g&&{userInteractionMediaTimeMs:(Math.floor(((b=_.si())==null?void 0:(z=b.getPlayer())==null?void 0:z.getCurrentTime())||0)*1E3).toString()})};b=_.z8();var w;S&&(w=_.ib(S));b&&w&&_.QZ(b,w,g)}},F=function(g,B){var c=sDR(t(),g);
if(c){var u=_.M(c,ov8),S;if(S=B)S=O(),c=_.M(c,ov8),S=c!=null&&c.smartSkipMetadata?!(S==null?0:S.isSameMarkerTypeVisible((c==null?void 0:c.smartSkipMetadata.markerKey)||"")):!0;if(S){var b,z;(u==null?0:(b=u.smartSkipMetadata)==null?0:(z=b.loggingData)==null?0:z.isCounterfactual)||(C(!1,u),Z(g))}else B||A()!==g||Z(void 0)}};
_.rp(function(){var g=t().timelyActions;if(g){g=_.D(g);for(var B=g.next();!B.done;B=g.next()){B=_.M(B.value,ov8);var c=void 0;(c=B)!=null&&c.cueRangeId&&H.timelyActionsMap.set(B.cueRangeId,F)}_.Ia(function(){H.timelyActionsMap.clear()})}},"l2RtC");
return _.d("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.d(_.iF,{data:U},{timelyActionViewModel:function(g){return _.d(EYu,{data:g.data,maybeLogSmartSkipClientData:function(){C(!0,_.M(U(),ov8))}})}}))},"Co");_.vY$=function(N){_.k1.call(this);this.JSC$23616_watchApi=N;N=_.D(_.b$({},void 0,"UN7k5e"));this.timelyActionsOverlay=N.next().value;this.setTimelyActionsOverlay=N.next().value;R7s(this)};
_.p(_.vY$,_.k1);var R7s=function(N){var t,O,H,A;_.K(function(Z){if(Z.nextAddress==1)return Jb9(N),oYr(N),N.timelyActionsContainer=document.createElement("div"),Z.yield(N.JSC$23616_watchApi.playerApi,2);t=Z.yieldResult;(H=(O=t).insertTimelyActionUi)==null||H.call(O,N.timelyActionsContainer);A=_.Io(N.timelyActionsContainer,function(){return _.d(GTA,{data:N.timelyActionsOverlay,playerApi:t})},"Do");
N.addOnDisposeCallback(A);_.Ty(Z)})},oYr=function(N){var t=N.JSC$23616_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Jb9(N)});
N.addOnDisposeCallback(function(){N.JSC$23616_watchApi.unsubscribeByKey(t)})},Jb9=function(N){var t=N.JSC$23616_watchApi.getWatchNextResponse();
if(t){var O,H;if(t=_.M((O=t.playerOverlays)==null?void 0:(H=O.playerOverlayRenderer)==null?void 0:H.timelyActionsOverlayViewModel,Tr1)){var A;(A=N.setTimelyActionsOverlay)==null||A.call(N,t)}}};_.N8l=function(N){_.k1.call(this);this.JSC$23620_watchApi=N;sX1(this)};
_.p(_.N8l,_.k1);var sX1=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23620_watchApi.playerApi,2);t=H.yieldResult;O=function(A){_.U4.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.M(A,_.ayl)},popupType:"TOAST"}})};
t.addEventListener("onYtShowToast",O);N.addOnDisposeCallback(function(){t.removeEventListener("onYtShowToast",O)});
_.Ty(H)})};var tDr,ABN,C5D,OM$,HM8,UE1,VDr,DE9,Kdw,dEw;tDr=!1;_.ZM$=function(N){_.k1.call(this);this.JSC$23623_watchApi=N;this.fullscreen=this.theater=!1;OM$(this);HM8(this);ABN(this)};
_.p(_.ZM$,_.k1);ABN=function(N){var t,O,H;_.K(function(A){if(A.nextAddress==1)return A.yield(N.JSC$23623_watchApi.playerApi,2);t=A.yieldResult;if(N.isDisposed())return A.return();O=N.JSC$23623_watchApi.getElement("CINEMATICS");if(!O)return A.return();N.JSC$23623_cinematicController=new _.ux(O,t);_.L1(N,N.JSC$23623_cinematicController);_.R3N(N.JSC$23623_cinematicController);VDr(N,_.NlO());H=N.JSC$23623_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(Z){DE9(N,Z)});
N.addOnDisposeCallback(function(){N.JSC$23623_watchApi.unsubscribeByKey(H)});
UE1(N);DE9(N,N.JSC$23623_cinematicController.isAllowed());C5D(N);Kdw(N);_.Ty(A)})};
C5D=function(N){N.fullscreen=_.TI(_.v5().getState());N.theater=_.aM(_.v5().getState());_.Fdl(N,N.fullscreen,N.theater);var t=_.Jc(_.v5(),_.TI,function(H){N.fullscreen=H;_.Fdl(N,N.fullscreen,N.theater)}),O=_.Jc(_.v5(),_.aM,function(H){N.theater=H;
_.Fdl(N,N.fullscreen,N.theater)});
N.addOnDisposeCallback(t);N.addOnDisposeCallback(O)};
OM$=function(N){var t=N.JSC$23623_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UE1(N)});
N.addOnDisposeCallback(function(){N.JSC$23623_watchApi.unsubscribeByKey(t)})};
HM8=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23623_watchApi.playerApi,2);t=H.yieldResult;O=function(A){VDr(N,A)};
t.addEventListener("cinematicSettingsToggleChange",O);N.addOnDisposeCallback(function(){t.removeEventListener("cinematicSettingsToggleChange",O)});
_.Ty(H)})};
UE1=function(N){var t=N.JSC$23623_watchApi.getWatchNextResponse(),O;t=_.M(t==null?void 0:(O=t.pageVisualEffects)==null?void 0:O[0],_.ts);var H;(H=N.JSC$23623_cinematicController)==null||_.JJu(H,t)};
VDr=function(N,t){var O;(O=N.JSC$23623_cinematicController)==null||_.vMA(O,t);dEw(N)};
DE9=function(N,t){var O;_.K(function(H){if(H.nextAddress==1)return _.h("kevlar_watch_cinematics_invisible")&&(t=!1),H.yield(N.JSC$23623_watchApi.playerApi,2);O=H.yieldResult;O.updateCinematicSettings(t);dEw(N);_.Ty(H)})};
Kdw=function(N){var t=_.d0();if(_.h("kevlar_measure_ambient_mode_idle")&&!t.getFlag(192)&&!tDr){tDr=!0;var O=_.WX(_.GB,function(){_.cY().resolve(_.KY1).start(1E4)},5E3);
N.addOnDisposeCallback(function(){_.GB.cancelJob(O);_.cY().resolve(_.KY1).stop()})}};
_.Fdl=function(N,t,O){N.fullscreen=t;N.theater=O;var H;(H=N.JSC$23623_cinematicController)==null||H.setFullscreen(N.fullscreen,N.theater);if(_.h("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(N.theater||N.fullscreen){var A;(A=N.JSC$23623_cinematicController)==null||_.oMV(A)}else if((N=N.JSC$23623_cinematicController)!=null){var Z;(Z=N.currentCinematicEffect)==null||Z.pause()}};
dEw=function(N){var t;N.JSC$23623_watchApi.getRoot().toggleCinematicsActive(!((t=N.JSC$23623_cinematicController)==null||!t.isEnabled()))};_.cBm=function(N){_.k1.call(this);var t=this;this.JSC$23626_watchApi=N;this.commentsReady=!1;this.setCommentsJobId=0;N=_.Jc(_.v5(),_.T0,function(){gju(t)});
this.addOnDisposeCallback(N);var O=this.JSC$23626_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yB$(t)}),H=this.JSC$23626_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){yB$(t)});
this.addOnDisposeCallback(function(){t.JSC$23626_watchApi.unsubscribeByKey(O);t.JSC$23626_watchApi.unsubscribeByKey(H)});
var A=function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&B8m(t,"false")};
this.JSC$23626_watchApi.getRoot().addEventListener("yt-page-data-will-update",A);this.addOnDisposeCallback(function(){t.JSC$23626_watchApi.getRoot().removeEventListener("yt-page-data-will-update",A)});
yB$(this)};
_.p(_.cBm,_.k1);var yB$=function(N){N.commentsReady=!1;_.GB.cancelJob(N.setCommentsJobId);N.setCommentsJobId=_.WX(_.GB,function(){gju(N)},1E3)},gju=function(N){if(!N.commentsReady){_.zT("cmi");
_.GB.cancelJob(N.setCommentsJobId);var t,O,H,A,Z=(t=N.JSC$23626_watchApi.getWatchNextResponse())==null?void 0:(O=t.contents)==null?void 0:(H=O.twoColumnWatchNextResults)==null?void 0:(A=H.results)==null?void 0:A.results.contents;t=void 0;if(Z&&Z.length)for(Z=_.D(Z),O=Z.next();!O.done;O=Z.next())if(O=O.value,A=H=void 0,((H=O)==null?void 0:(A=H.itemSectionRenderer)==null?void 0:A.sectionIdentifier)==="comment-item-section"){_.h("web_watch_provide_undefined_comments")?t=O.itemSectionRenderer:N.JSC$23626_watchApi.provideRenderingData("COMMENTS",
O.itemSectionRenderer);B8m(N,"true");break}_.h("web_watch_provide_undefined_comments")&&N.JSC$23626_watchApi.provideRenderingData("COMMENTS",t);N.commentsReady=!0;N.JSC$23626_watchApi.dispatchEvent("yt-watch-comments-ready")}},B8m=function(N,t){var O;
(O=N.JSC$23626_watchApi.getElement("COMMENTS"))==null||O.setAttribute("canScheduleJobs",t)};_.S_l=function(N){_.k1.call(this);var t=this;this.JSC$23629_watchApi=N;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.h("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.h("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.h("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.uP("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)$E8(this);
else{var O=this.JSC$23629_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){jJl(t);Px(t)}),H=this.JSC$23629_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Xz(t);
Px(t)});
this.JSC$23629_watchApi.getRoot().is==="ytd-watch-grid"&&_.h("swatcheroo_pbs_load_grid")&&(iM9(this),uol(this));this.addOnDisposeCallback(function(){t.JSC$23629_watchApi.unsubscribeByKey(O);t.JSC$23629_watchApi.unsubscribeByKey(H);_.GB.cancelJob(t.provideRichGridJobId)});
jJl(this);Xz(this)}};
_.p(_.S_l,_.k1);var $E8=function(N){var t=N.JSC$23629_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){N.providePlayerJobId=_.yD(_.GB,function(){jJl(N);Px(N)},N.provideAllDataDelayMs)}),O=N.JSC$23629_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){N.provideWatchNextJobId=_.yD(_.GB,function(){Xz(N);
Px(N)},N.provideAllDataDelayMs)}),H=N.JSC$23629_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){N.provideWatchNextJobId=_.yD(_.GB,function(){Xz(N);
Px(N)},N.provideAllDataDelayMs)});
N.JSC$23629_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.WX(_.GB,function(){jJl(N);Xz(N);Px(N)},100)});
N.JSC$23629_watchApi.addPageDisposeJob(function(){_.GB.cancelJob(N.provideWatchNextJobId);_.GB.cancelJob(N.providePlayerJobId)});
N.addOnDisposeCallback(function(){N.JSC$23629_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");N.JSC$23629_watchApi.unsubscribeByKey(t);N.JSC$23629_watchApi.unsubscribeByKey(O);N.JSC$23629_watchApi.unsubscribeByKey(H);_.GB.cancelJob(N.providePlayerJobId);_.GB.cancelJob(N.provideWatchNextJobId)});
jJl(N);Xz(N)},jJl=function(N){var t=N.JSC$23629_watchApi.getPlayerResponse(),O,H,A=(H=t==null?void 0:(O=t.playabilityStatus)==null?void 0:O.messageRenderers)!=null?H:[],Z,U;
t=(U=t==null?void 0:(Z=t.playabilityStatus)==null?void 0:Z.messages)!=null?U:[];Z=_.D(t);for(U=Z.next();!U.done;U=Z.next())A.push({alertRenderer:{text:_.E_(U.value),type:"WARNING"}});N.JSC$23629_watchApi.provideRenderingData("ALERTS",A)},Xz=function(N){var t=[],O,H,A,Z=N.JSC$23629_watchApi.getWatchNextResponse(),U,C,F,g,B=Z==null?void 0:(U=Z.contents)==null?void 0:(C=U.twoColumnWatchNextResults)==null?void 0:(F=C.results)==null?void 0:(g=F.results)==null?void 0:g.contents;
if(B)for(U=_.D(B),C=U.next();!C.done;C=U.next())if(C=C.value,C.videoPrimaryInfoRenderer)var c=C;else if(C.videoSecondaryInfoRenderer){var u=C;g=F=void 0;C=Object.assign({},(F=C.videoSecondaryInfoRenderer)==null?void 0:(g=F.metadataRowContainer)==null?void 0:g.metadataRowContainerRenderer);if(C.rows&&C.collapsedItemCount!==void 0){C.rows=C.rows.slice(0,C.collapsedItemCount).filter(function(sp){return!!sp.richMetadataRowRenderer});
C.collapsedItemCount=C.rows.length;var S={metadataRowContainerRenderer:C}}}else if(C.merchandiseShelfRenderer)var b=C;else if(C.ticketShelfRenderer)var z=C;else if(C.expandableMetadataRenderer)var w=C;else if(C.itemSectionRenderer)if(F=C.itemSectionRenderer.contents,g=void 0,N.directlyProvideComments&&((g=C.itemSectionRenderer)==null?void 0:g.sectionIdentifier)==="comment-item-section")_.zT("cmi"),N.JSC$23629_watchApi.provideRenderingData("COMMENTS",C.itemSectionRenderer);else if(F)for(C=_.D(F),F=
C.next();!F.done;F=C.next())if(F=F.value,F.commentsEntryPointHeaderRenderer)var P=F;else if(F.clarificationRenderer||F.infoPanelContainerRenderer||F.infoPanelContentRenderer||F.emergencyOneboxRenderer){t.push(F);var x=x||!!u}else F.limitedStateMessageRenderer?H=F:F.videoMetadataCarouselViewModel&&(A=F);if(_.h("web_watch_merch_in_sd_when_ticket_shelf_present")&&b&&z){var l=b;b=void 0}if(N.provideWatchNextSecondaryResults){var I,r,E;N.JSC$23629_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
Z==null?void 0:(I=Z.contents)==null?void 0:(r=I.twoColumnWatchNextResults)==null?void 0:(E=r.secondaryResults)==null?void 0:E.secondaryResults)}if(N.JSC$23629_watchApi.getRoot().is==="ytd-watch-grid"){var J,CN;N.JSC$23629_watchApi.provideRenderingData("LIVE_CHAT",Z==null?void 0:(J=Z.contents)==null?void 0:(CN=J.twoColumnWatchNextResults)==null?void 0:CN.conversationBar)}var B4,zM,jy,c4;(I=Z==null?void 0:(B4=Z.contents)==null?void 0:(zM=B4.twoColumnWatchNextResults)==null?void 0:(jy=zM.secondaryResults)==
null?void 0:(c4=jy.secondaryResults)==null?void 0:c4.offerModule)&&(I.donationShelfRenderer||I.donationUnavailableRenderer)&&N.JSC$23629_watchApi.getRoot().is!=="ytd-watch-grid"&&(O=I);B4=N.JSC$23629_watchApi.getPlayerResponse();if(!B4||!_.rsS(B4.playabilityStatus,Z==null?void 0:Z.playerOverlays)){var XO;if(Z==null?0:(XO=Z.contents)==null?0:XO.singleColumnWatchNextResults){var kx,fN;var gf=Z==null?void 0:(kx=Z.contents.singleColumnWatchNextResults.results)==null?void 0:(fN=kx.results)==null?void 0:
fN.contents}else{var yr,sS,$X,pR;XO=!!(B==null?0:(yr=B[0])==null?0:(sS=yr.itemSectionRenderer)==null?0:($X=sS.contents)==null?0:(pR=$X[0])==null?0:pR.backgroundPromoRenderer);var wf,b1;yr=!!(Z==null?0:(wf=Z.contents)==null?0:(b1=wf.twoColumnWatchNextResults)==null?0:b1.secondaryResults);XO&&!yr&&(gf=B)}}B=t[0];wf=t[1];x&&t.length===1&&(wf=B,B=void 0);N.JSC$23629_watchApi.provideRenderingData("PRIMARY_INFO",c);N.JSC$23629_watchApi.provideRenderingData("SECONDARY_INFO",u);N.JSC$23629_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
P);N.JSC$23629_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",A);N.JSC$23629_watchApi.provideRenderingData("CLARIFICATION",B);N.JSC$23629_watchApi.provideRenderingData("RICH_METADATA",S);N.JSC$23629_watchApi.provideRenderingData("MERCH_SHELF",b);_.h("web_watch_merch_in_sd_when_ticket_shelf_present")&&N.JSC$23629_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",l);N.JSC$23629_watchApi.provideRenderingData("TICKET_SHELF",z);N.JSC$23629_watchApi.provideRenderingData("LIMITED_STATE",H);N.JSC$23629_watchApi.getRoot().is!==
"ytd-watch-grid"&&N.JSC$23629_watchApi.provideRenderingData("DONATION_SHELF",O);N.JSC$23629_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",gf);N.JSC$23629_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",wf);N.JSC$23629_watchApi.provideRenderingData("EXPANDABLE_METADATA",w);if(N.swatcherooProvideAllDataOnScheduledJob){var $r,US,H0,SE,v0,hu;c=Z==null?void 0:($r=Z.contents)==null?void 0:(US=$r.twoColumnWatchNextResults)==null?void 0:(H0=US.secondaryResults)==null?void 0:(SE=H0.secondaryResults)==
null?void 0:(v0=SE.results)==null?void 0:(hu=v0[0])==null?void 0:hu.richGridRenderer;N.JSC$23629_watchApi.provideRenderingData("RICH_GRID_RENDERER",c)}};
_.S_l.prototype.hasCompanionAds=function(N){var t,O;return(O=N==null?void 0:(t=N.adPlacements)==null?void 0:t.some(function(H){var A,Z,U,C;return(H==null?void 0:(A=H.adPlacementRenderer)==null?void 0:(Z=A.renderer)==null?void 0:Z.actionCompanionAdRenderer)||(H==null?void 0:(U=H.adPlacementRenderer)==null?void 0:(C=U.renderer)==null?void 0:C.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?O:!1};
var Px=function(N){if(!_.h("swaterdoo_ps_wn_handle_ks")){N.swatcherooProvideAllDataOnScheduledJob||uol(N,3E3);var t=N.JSC$23629_watchApi.getPlayerResponse(),O,H,A,Z,U,C=(O=N.JSC$23629_watchApi.getWatchNextResponse())==null?void 0:(H=O.contents)==null?void 0:(A=H.twoColumnWatchNextResults)==null?void 0:(Z=A.secondaryResults)==null?void 0:(U=Z.secondaryResults)==null?void 0:U.offerModule;t=N.hasCompanionAds(t);var F,g;O=(C==null?void 0:(F=C.tvfilmOfferModuleRenderer)==null?void 0:F.clientShouldSuppressIfCompanionAdDisplayed)||
(C==null?void 0:(g=C.unlimitedOfferModuleRenderer)==null?void 0:g.suppressIfCompanionAds);F=t&&O;N.JSC$23629_watchApi.getRoot().is==="ytd-watch-grid"&&N.JSC$23629_watchApi.provideRenderingData("OFFER_MODULE",F?void 0:C)}},uol=function(N,t){_.h("swatcheroo_pbs_load_grid")&&(N.provideRichGridJobId&&_.GB.cancelJob(N.provideRichGridJobId),N.provideRichGridJobId=_.yD(_.GB,function(){N.provideRichGridJobId=0;
var O,H,A,Z,U,C,F,g=(O=N.JSC$23629_watchApi.getWatchNextResponse())==null?void 0:(H=O.contents)==null?void 0:(A=H.twoColumnWatchNextResults)==null?void 0:(Z=A.secondaryResults)==null?void 0:(U=Z.secondaryResults)==null?void 0:(C=U.results)==null?void 0:(F=C[0])==null?void 0:F.richGridRenderer;g&&N.JSC$23629_watchApi.provideRenderingData("RICH_GRID_RENDERER",g)},t))},iM9=function(N){var t,O;
_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23629_watchApi.playerApi,2);t=H.yieldResult;O=function(){N.onPlaybackStart()};
t.addEventListener("onPlaybackStartExternal",O);N.addOnDisposeCallback(function(){t.removeEventListener("onPlaybackStartExternal",O)});
_.Ty(H)})};
_.S_l.prototype.onPlaybackStart=function(){uol(this)};_.MD$=function(N){_.k1.call(this);var t=this;this.JSC$23641_watchApi=N;N.playerApi.then(function(O){t.player=O});
this.gestures=new _.CB(this.JSC$23641_watchApi.getRoot(),N.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.OFd(_.v5().getState())&&_.T0(_.v5().getState())<=0)if(_.TI(_.v5().getState())){var O;(O=t.player)==null||O.toggleFullscreen()}else _.sl(t.JSC$23641_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
hkw(this)};
_.p(_.MD$,_.k1);var hkw=function(N){var t=_.Jc(_.v5(),_.TI,function(O){N.onFullscreenChanged(O)});
N.addOnDisposeCallback(t);t=_.Jc(_.v5(),_.T0,function(O){N.gestures&&(O>0?N.gestures.detach():N.gestures.attach())});
N.addOnDisposeCallback(t)};
_.MD$.prototype.onFullscreenChanged=function(N){this.gestures&&this.gestures.update(N)};var bMD;bMD=["PLAYLIST"];_.Ld9=function(N){_.k1.call(this);var t=this;this.JSC$23644_watchApi=N;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(N.subscribeToActiveChanged(function(O){t.onActiveChanged(O)}));
p51(this)};
_.p(_.Ld9,_.k1);var zks=function(N){N.pageDisposalDataTypes=Object.values(W21).filter(function(t){return!bMD.includes(t)})},p51=function(N){if(_.h("swatcheroo_enable_ghost_cards")||_.h("web_watch_clear_data_on_page_dispose"))zks(N),N.JSC$23644_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.GB.cancelJob(N.clearDataJobId);
N.clearDataJobId=0}),N.runPageDisposeJob=function(){var t=_.cY().resolve(_.J4).getDestinationPageType()==="watch";
N.clearDataJobId=_.yD(_.GB,N.runClearDataJob,t?0:_.uP("web_watch_delay_page_dispose_ms",1E4))},N.runClearDataJob=function(){Y_D(N)},N.runOnYtNavigateAwayFinish=function(){N.clearDataJobId&&(_.GB.cancelJob(N.clearDataJobId),N.clearDataJobId=0,Y_D(N))},document.addEventListener("yt-navigate-finish",N.runOnYtNavigateAwayFinish),N.JSC$23644_watchApi.addPageDisposeJob(N.runPageDisposeJob),N.addOnDisposeCallback(function(){N.JSC$23644_watchApi.removePageDisposeJob(N.runPageDisposeJob);
N.JSC$23644_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",N.runOnYtNavigateAwayFinish)})},Y_D=function(N){N.pageDisposalDataTypes.forEach(function(t){N.JSC$23644_watchApi.provideRenderingData(t,void 0)});
N.clearDataJobId=0};
_.Ld9.prototype.onActiveChanged=function(N){N&&((N=document.querySelector("#watch-page-skeleton"))&&_.wb(N),anm(this),document.body.removeAttribute("no-y-overflow"),_.vZ("IS_SHELL_LOAD")&&_.RUR())};
var anm=function(N){_.K(function(t){if(t.nextAddress==1)return t.yield(N.JSC$23644_watchApi.playerApi,2);_.ni();_.Ty(t)})};var T8V;T8V=_.h("kevlar_watch_while_counterfactual")?0:.25;_.X5V=function(N){_.k1.call(this);this.JSC$23647_watchApi=N;this.JSC$23647_watchWhileEnabled=_.h("kevlar_watch_while_v2");this.pipEnabled=_.h("web_enable_pip_on_miniplayer");w5A(this);ek8(this);P59(this)};
_.p(_.X5V,_.k1);var w5A=function(N){N.JSC$23647_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){xE1(N)});
N.addOnDisposeCallback(function(){N.JSC$23647_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},ek8=function(N){var t,O;
_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23647_watchApi.playerApi,2);t=H.yieldResult;O=function(){xE1(N)};
t.addEventListener("onCollapseMiniplayer",O);N.addOnDisposeCallback(function(){t.removeEventListener("onCollapseMiniplayer",O)});
_.Ty(H)})},P59=function(N){var t=N.JSC$23647_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&t&&N.JSC$23647_watchWhileEnabled&&(N.playerIntersectionObserver=new IntersectionObserver(function(O){N.handleIntersect(O)},{threshold:[T8V]}),N.playerIntersectionObserver.observe(t),N.addOnDisposeCallback(function(){var O;
(O=N.playerIntersectionObserver)==null||O.disconnect()}))},xE1=function(N){var t,O,H;
_.K(function(A){if(A.nextAddress==1){t=_.cY().resolve(_.J4);O=t.data;H=_.p9Q(O.response,O.playerResponse);_.Ry().miniplayerButtonActivation=!0;if(N.pipEnabled)return _.Ry().watchPipActivation=!0,A.jumpTo(2);_.cY().resolve(_.kf).collapse();return A.yield(_.Ry().navigationFinishPromise,2)}if(A.nextAddress!=4)return _.Ry().currentEndpoint=H.watchEndpoint||null,A.yield(_.cY().resolve(_.kf).activate(N.JSC$23647_watchApi.getElement("PLAYER"),H,O),4);_.Ry().userActivation=!0;_.Ty(A)})};
_.X5V.prototype.handleIntersect=function(N){kvr(this,N[N.length-1])};
var kvr=function(N,t){N.watchWhileJobId&&_.GB.cancelJob(N.watchWhileJobId);N.watchWhileJobId=_.GB.addLowPriorityJob(function(){var O,H;return _.K(function(A){if(A.nextAddress==1)return N.watchWhileJobId=void 0,O=_.cY().resolve(_.kf),t.intersectionRatio>T8V?O.isMiniplayerActive()?A.yield(O.deactivate(),0):A.jumpTo(0):(H=!O.isMiniplayerActive())?A.yield(q_w(N),5):A.jumpTo(4);A.nextAddress!=4&&(H=A.yieldResult);if(!H)return A.jumpTo(0);_.Ry().watchWhileActivation=!0;return A.yield(fn$(N),0)})},100)},
q_w=function(N){return _.K(function(t){return t.nextAddress==1?_.h("kevlar_watch_while_paused")?t.return(!0):t.yield(N.isPlayerPlaying(),2):t.return(t.yieldResult)})};
_.X5V.prototype.isPlayerPlaying=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return O.yield(N.JSC$23647_watchApi.playerApi,2);t=O.yieldResult;return O.return(t.getPlayerStateObject().isPlaying)})};
var fn$=function(N){var t,O;return _.K(function(H){t=_.cY().resolve(_.J4).data;O=_.p9Q(t.response,t.playerResponse);_.Ry().currentEndpoint=O.watchEndpoint||null;return H.yield(_.cY().resolve(_.kf).activate(N.JSC$23647_watchApi.getElement("PLAYER"),O,t),0)})};_.rBD=function(N){_.k1.call(this);this.JSC$23651_watchApi=N;nju(this);WdR(this)};
_.p(_.rBD,_.k1);var WdR=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23651_watchApi.playerApi,2);t=H.yieldResult;O=function(A){var Z;A.sessionData&&A.sessionData.itct&&(Z=A.sessionData.itct);var U=A.watchEndpoint;if(U&&A.sessionData&&A.sessionData.autonav)U=_.k$M(U,Z);else{var C;U=_.sK(A.videoId,(C=A.listId)!=null?C:void 0,Z)}Z={endpoint:U};A.sessionData&&(Z.tempData=A.sessionData);N.JSC$23651_watchApi.dispatchEvent("yt-navigate",Z)};
t.addEventListener("onPlayVideo",O);N.addOnDisposeCallback(function(){t.removeEventListener("onPlayVideo",O)});
_.Ty(H)})},nju=function(N){var t=function(O){N.onYtNavigate(O)};
N.JSC$23651_watchApi.getRoot().addEventListener("yt-navigate",t);N.addOnDisposeCallback(function(){N.JSC$23651_watchApi.getRoot().removeEventListener("yt-navigate",t)})};
_.rBD.prototype.onYtNavigate=function(N){var t=this,O,H,A,Z,U,C,F,g,B;return _.K(function(c){if(c.nextAddress==1){if(!((O=N.detail)==null?0:(H=O.endpoint)==null?0:H.watchEndpoint))return c.return();A=N.detail.endpoint.watchEndpoint;Z=t.JSC$23651_watchApi.getWatchNextResponse();C=_.M((U=Z)==null?void 0:U.currentVideoEndpoint,_.rN);if(!C)return c.return();if(A.videoId!==C.videoId||A.playlistId&&A.playlistId!==C.playlistId||typeof A.startTimeSeconds!=="number")return c.jumpTo(0);N.stopPropagation();
(F=_.h("kevlar_watch_while_v2")&&!_.h("kevlar_watch_while_counterfactual"))&&_.cY().resolve(_.kf).isMiniplayerActive()||t.JSC$23651_watchApi.scrollWatchTo(0,!0);return c.yield(t.JSC$23651_watchApi.playerApi,3)}g=c.yieldResult;B=A.startTimeSeconds;g.seekTo(B,void 0,void 0,void 0,84);g.wakeUpControls();B<g.getDuration()&&g.playVideo();_.Ty(c)})};_.ln8=function(N){_.k1.call(this);var t=this;this.JSC$23654_watchApi=N;var O=this.JSC$23654_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ind(t)});
this.addOnDisposeCallback(function(){t.JSC$23654_watchApi.unsubscribeByKey(O)});
Ind(this);_.h("enable_ai_companion")&&(N=this.JSC$23654_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.q3m(_.cY().resolve(_.ZF),N,"WATCH")};
_.p(_.ln8,_.k1);var Ind=function(N){var t=N.JSC$23654_watchApi.getWatchNextResponse();if(t){var O,H=[].concat(_.W6((O=t==null?void 0:t.engagementPanels)!=null?O:[]));_.h("web_watch_comments_visible_by_default")&&(O=H.find(function(A){var Z;return((Z=A.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-comments-section"}),O==null?0:O.engagementPanelSectionListRenderer)&&(O.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
H.unshift.apply(H,_.W6(QJ1(t)));N.JSC$23654_watchApi.provideRenderingData("ENGAGEMENT_PANELS",H)}},mE1=function(N){var t,O,H,A=(t=N.engagementPanels)==null?void 0:(O=t.find(function(S){var b;
return((b=S.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(H=O.engagementPanelSectionListRenderer.content)==null?void 0:H.structuredDescriptionContentRenderer,Z;
if(_.M(A==null?void 0:(Z=A.items)==null?void 0:Z.find(function(S){return!!_.M(S,GBN)}),GBN))return!0;
var U,C,F,g;if(N=(((U=N.contents)==null?void 0:(C=U.twoColumnWatchNextResults)==null?void 0:(F=C.results)==null?void 0:(g=F.results)==null?void 0:g.contents)||[]).find(function(S){return S.videoPrimaryInfoRenderer})){var B,c,u;
return(((B=N.videoPrimaryInfoRenderer)==null?void 0:(c=B.videoActions)==null?void 0:(u=c.menuRenderer)==null?void 0:u.flexibleItems)||[]).some(function(S){S=_.M(S,_.FSX);if(!S)return!1;var b,z;S=(b=S.topLevelButton)==null?void 0:(z=b.buttonViewModel)==null?void 0:z.onTap;if(!S)return!1;b=_.wF(S);if(!b)return!1;var w;return((w=_.M(b,_.Th))==null?void 0:w.panelIdentifier)==="PAyouchat"})}return!1},QJ1=function(N){var t=[];
if(!_.h("web_watch_inject_placeholder_fantasy_panel_killswitch")){var O,H,A,Z=(O=N.engagementPanels)==null?void 0:(H=O.find(function(C){var F;return((F=C.engagementPanelSectionListRenderer)==null?void 0:F.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(A=H.engagementPanelSectionListRenderer.content)==null?void 0:A.structuredDescriptionContentRenderer,U;
_.M(Z==null?void 0:(U=Z.items)==null?void 0:U.find(function(C){return!!_.M(C,bz8)}),bz8)&&(O=_.SLv("PAsports_fantasy"),O.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t.push(O))}mE1(N)&&(N=_.SLv("PAyouchat"),N.engagementPanelSectionListRenderer.targetId="PAyouchat",N.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t.push(N));
return t};_.Gvs=function(N){_.k1.call(this);this.JSC$23657_watchApi=N;Ejl(this)};
_.p(_.Gvs,_.k1);var Ejl=function(N){N.JSC$23657_watchApi.registerActionHandler("yt-loop-command",function(t){Rkl(N,t)});
N.JSC$23657_watchApi.registerActionHandler("yt-repeat-chapter-command",function(t){vj1(N,t)});
N.addOnDisposeCallback(function(){N.JSC$23657_watchApi.unregisterActionHandler("yt-loop-command");N.JSC$23657_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},Rkl=function(N,t){var O;
_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23657_watchApi.playerApi,2);O=H.yieldResult;_.M(t,L8w).loop?(O.setLoopRange({startTimeMs:Number(_.M(t,L8w).startTimeMs),endTimeMs:Number(_.M(t,L8w).endTimeMs),postId:_.M(t,L8w).postId,type:"clips"}),O.playVideo()):O.setLoopRange(null);_.Ty(H)})},vj1=function(N,t){var O,H;
_.K(function(A){if(A.nextAddress==1)return A.yield(N.JSC$23657_watchApi.playerApi,2);O=A.yieldResult;H=_.M(t,waA).repeat;H==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(O.setLoopRange({startTimeMs:Number(_.M(t,waA).startTimeMs),endTimeMs:Number(_.M(t,waA).endTimeMs),type:"repeatChapter"}),O.playVideo()):H==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&O.setLoopRange(null);_.Ty(A)})};_.oj1=function(N){_.k1.call(this);this.JSC$23662_watchApi=N;JB8(this)};
_.p(_.oj1,_.k1);var JB8=function(N){N.JSC$23662_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(t){sJV(N,t)});
N.addOnDisposeCallback(function(){N.JSC$23662_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},sJV=function(N,t){var O,H,A,Z,U,C,F,g,B,c,u;
_.K(function(S){if(S.nextAddress==1)return S.yield(N.JSC$23662_watchApi.playerApi,2);O=S.yieldResult;if(Z=(A=(H=_.M(t,eAl))==null?void 0:H.highlightedMenuItemKey)!=null?A:"")(C=(U=O).highlightSettingsMenuItem)==null||C.call(U,Z);if(B=(g=(F=_.M(t,eAl))==null?void 0:F.openMenuItemKey)!=null?g:"")(u=(c=O).openSettingsMenuItem)==null||u.call(c,B);_.Ty(S)})};var NYw=_.U_("/youtube/app/watch/player_state","playerStateEntity");_.xK=function(N){_.k1.call(this);this.JSC$23665_watchApi=N;tcR(this)};
_.p(_.xK,_.k1);var OTN=function(N){switch(N){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},tcR=function(N){var t,O,H,A,Z;
_.K(function(U){if(U.nextAddress==1)return U.yield(N.JSC$23665_watchApi.playerApi,2);t=U.yieldResult;if(N.isDisposed())return U.return();O=function(C){N.onPlayerStateChange(C)};
H=function(C){N.onAdStateChange(C)};
A=function(){N.onAdSkip()};
Z=function(C){N.onVideoDataChange(C)};
t.addEventListener("onStateChange",O);t.addEventListener("onAdStateChange",H);t.addEventListener("onAdSkip",A);t.addEventListener("onVideoDataChange",Z);N.addOnDisposeCallback(function(){t.removeEventListener("onStateChange",O);t.removeEventListener("onAdStateChange",H);t.removeEventListener("onAdSkip",A);t.removeEventListener("onVideoDataChange",Z)});
_.Ty(U)})},HTl=function(N){var t=_.mN(),O=t.dispatch;
a:switch(N.adsState){case -1:case 0:var H="ADS_STATE_NONE";break a;case 1:case 2:case 3:H="ADS_STATE_PLAYING";break a;default:H="ADS_STATE_UNKNOWN"}O.call(t,_.uF("playerStateEntity",NYw,{key:NYw,playerState:OTN(N.playerState),adsState:H,videoId:N.videoId}))};
_.xK.prototype.onPlayerStateChange=function(N){var t=this,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(t.JSC$23665_watchApi.playerApi,2);O=H.yieldResult;if(t.isDisposed())return H.return();t.playerState=N;t.videoId=O.getVideoData().video_id;HTl(t);_.Ty(H)})};
_.xK.prototype.onAdStateChange=function(N){this.adsState=N;HTl(this)};
_.xK.prototype.onAdSkip=function(){this.adsState=0;HTl(this)};
_.xK.prototype.onVideoDataChange=function(N){N.type==="newdata"&&(this.adsState=-1,HTl(this))};_.ZTs=function(N){_.k1.call(this);var t=this;this.JSC$23669_watchApi=N;this.enableExternalPlaylistPanelInPlayer=_.h("delhi_web_player_use_external_playlist_panel");_.cY().resolve(_.$8).setPlayer(this.JSC$23669_watchApi.getElement("PLAYER"));N=this.JSC$23669_watchApi.subscribeToActiveChanged(function(O){t.onActiveChanged(O)});
this.addOnDisposeCallback(N);AGV(this)};
_.p(_.ZTs,_.k1);var AGV=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return N.enableExternalPlaylistPanelInPlayer?H.yield(N.JSC$23669_watchApi.playerApi,2):H.return();t=H.yieldResult;O=function(){if(N.playlistPanelElement)N.playlistPanelElement.onToggleExpanded()};
t.addEventListener("onToggleExternalPlaylistPanel",O);N.addOnDisposeCallback(function(){t.removeEventListener("onToggleExternalPlaylistPanel",O)});
_.Ty(H)})};
_.ZTs.prototype.onActiveChanged=function(N){var t=this,O=_.cY().resolve(_.$8),H=function(){Vcu(t)};
N?(this.playlistPanelElement=this.JSC$23669_watchApi.getElement("PLAYLIST_PANEL"))?(O.setPlaylistComponent(this.playlistPanelElement),O.addEventListener("yt-playlist-data-updated",H),this.addOnDisposeCallback(function(){O.removeEventListener("yt-playlist-data-updated",H)}),Vcu(this)):_.HY(Error("fp")):(O.removeEventListener("yt-playlist-data-updated",H),O.cancelVideoSkip())};
var Vcu=function(N){var t=_.cY().resolve(_.$8);N.JSC$23669_watchApi.provideRenderingData("PLAYLIST",t.getPlaylistData())};_.kK=function(N){_.k1.call(this);var t=this;this.JSC$23672_watchApi=N;this.onPageScroll=function(){t.scrollThrottle.fire();t.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.KE(this.onThrottledScroll,200,this);_.L1(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.KE(this.onMastheadThrottledScroll,50,this);_.L1(this,this.mastheadScrollThrottle);this.animation=new _.p5(function(O){t.JSC$23672_watchApi.getRoot().setScrollTop(O)});
N=_.Jc(_.v5(),_.TI,function(){t.onFullscreenChanged()});
this.addOnDisposeCallback(N);DLN(this);ULw(this);this.onThrottledScroll()};
_.p(_.kK,_.k1);
_.kK.prototype.onFullscreenChanged=function(){var N=this,t=this.JSC$23672_watchApi.getRoot();!this.pageScrollElement&&t.pageScrollElement?(this.pageScrollElement=t.pageScrollElement,t.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){N.pageScrollElement&&N.pageScrollElement.removeEventListener("scroll",N.onPageScroll)})):this.pageScrollElement&&!t.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var DLN=function(N){window.addEventListener("scroll",N.onPageScroll);N.addOnDisposeCallback(function(){window.removeEventListener("scroll",N.onPageScroll)})},ULw=function(N){N.JSC$23672_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(t){a:{var O;
if(O=N.JSC$23672_watchApi.getRoot().contains(t)&&!N.animation.isAnimating()){O=t.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var H,A,Z=(t==null?void 0:(H=t.parentElement)==null?void 0:(A=H.parentElement)==null?void 0:A.id)==="fixed-secondary";O=!(O&&Z)}if(O){if(_.h("kevlar_watch_scroll_manager_absolute_offset_killswitch"))H=t.offsetTop;else for(H=0,A=t;A!==null;)H+=A.offsetTop,H-=A.scrollTop,A=A.offsetParent;A=H;H=A-24;t=A+t.offsetHeight+24;A=N.JSC$23672_watchApi.getRoot().getPageScrollingElement();
O=N.JSC$23672_watchApi.getRoot().getScrollTop();Z=O+A.clientHeight-56;if(H<O+56)t=H-56;else if(t>Z)t-=A.clientHeight;else break a;N.scrollWatchTo(Math.max(0,t),!0)}}});
N.addOnDisposeCallback(function(){N.JSC$23672_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.kK.prototype.onThrottledScroll=function(){var N=_.v5(),t=N.dispatch,O=this.JSC$23672_watchApi.getRoot().getScrollTop();t.call(N,_.H5({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:O}}))};
_.kK.prototype.onMastheadThrottledScroll=function(){this.JSC$23672_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23672_watchApi.getRoot().getScrollTop())};
_.kK.prototype.scrollWatchTo=function(N,t){(t===void 0?0:t)?this.animation.start(this.JSC$23672_watchApi.getRoot().getScrollTop(),Math.max(0,N),500):this.JSC$23672_watchApi.getRoot().setScrollTop(N)};_.F11=function(N){_.k1.call(this);var t=this;this.JSC$23675_watchApi=N;var O=this.JSC$23675_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){C8N(t)}),H=this.JSC$23675_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){K1s(t)});
this.addOnDisposeCallback(function(){t.JSC$23675_watchApi.unsubscribeByKey(O);t.JSC$23675_watchApi.unsubscribeByKey(H)});
C8N(this);K1s(this)};
_.p(_.F11,_.k1);
var C8N=function(N){var t,O,H,A=(H=(t=N.JSC$23675_watchApi.getPlayerResponse())==null?void 0:(O=t.videoDetails)==null?void 0:O.title)!=null?H:"";N.JSC$23675_watchApi.dispatchEvent("yt-update-title",A)},K1s=function(N){var t,O,H,A,Z,U,C,F=(C=((U=(t=N.JSC$23675_watchApi.getWatchNextResponse())==null?void 0:(O=t.contents)==null?void 0:(H=O.twoColumnWatchNextResults)==null?void 0:(A=H.results)==null?void 0:(Z=A.results)==null?void 0:Z.contents)!=null?U:[]).find(function(g){return!!g.videoPrimaryInfoRenderer}))==null?
void 0:C.videoPrimaryInfoRenderer;
(t=_.Gv(F==null?void 0:F.title))&&N.JSC$23675_watchApi.dispatchEvent("yt-update-title",t)};_.gH8=function(N){_.k1.call(this);this.JSC$23678_watchApi=N;dLR(this)};
_.p(_.gH8,_.k1);var dLR=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$23678_watchApi.playerApi,2);t=H.yieldResult;O=function(){N.onYpcContentRequest()};
t.addEventListener("onYpcContentRequest",O);N.addOnDisposeCallback(function(){t.removeEventListener("onYpcContentRequest",O)});
_.Ty(H)})};
_.gH8.prototype.onYpcContentRequest=function(){var N,t,O,H,A,Z=(N=this.JSC$23678_watchApi.getWatchNextResponse())==null?void 0:(t=N.contents)==null?void 0:(O=t.twoColumnWatchNextResults)==null?void 0:(H=O.secondaryResults)==null?void 0:(A=H.secondaryResults)==null?void 0:A.offerModule,U,C,F,g;N=(g=(F=(C=(U=Z==null?void 0:Z.episodeOfferModuleRenderer)!=null?U:Z==null?void 0:Z.movieOfferModuleRenderer)!=null?C:Z==null?void 0:Z.unlimitedOfferModuleRenderer)!=null?F:Z==null?void 0:Z.liveOfferModuleRenderer)!=
null?g:Z==null?void 0:Z.tvfilmOfferModuleRenderer;var B,c,u;Z=(u=Z==null?void 0:(B=Z.tvfilmOfferModuleRenderer)==null?void 0:(c=B.actionButtons)==null?void 0:c.length)!=null?u:0;c=Math.max(Z-1,0);var S,b,z;B=(z=N==null?void 0:(S=N.offerButton)==null?void 0:S.buttonRenderer)!=null?z:N==null?void 0:(b=N.actionButtons)==null?void 0:b[c].buttonRenderer;var w,P;(S=(P=(w=B==null?void 0:B.navigationEndpoint)!=null?w:B==null?void 0:B.serviceEndpoint)!=null?P:B==null?void 0:B.command)&&_.U4.instance.resolveCommand(S)};
}catch(e){_._DumpException(e)}
try{
var p2O,hh5,iOz;_.S6J=function(){var N=_.WW.clone(jHm),t;return(new _.TW(function(O,H){N.onSuccess=function(A){_.VbO(A)?O(new iOz(A)):H(new _.ubm("Request failed, status="+_.bP(A),"net.badstatus",A))};
N.onError=function(A){H(new _.ubm("Unknown request error","net.unknown",A))};
N.onTimeout=function(A){H(new _.ubm("Request timed out","net.timeout",A))};
t=_.aD("//googleads.g.doubleclick.net/pagead/id",N)})).thenCatch(function(O){if(O instanceof _.kg){var H;
(H=t)==null||H.abort()}return _.M2(O)})};
_.Mnf=function(N){a:{var t="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(t="EMBEDDED_PLAYER_MODE_PFL");var O=N.raw_embedded_player_response;if(!O&&(N=N.embedded_player_response))try{O=JSON.parse(N)}catch(A){break a}if(O)b:for(var H in hh5)if(hh5[H]==O.embeddedPlayerMode){t=hh5[H];break b}}return t==="EMBEDDED_PLAYER_MODE_PFL"};
_.bO1=function(){if(_.h("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.li4())return Error("wf");var N=_.Ro("PLAYER_VARS",{});if(_.WW.get(N,"privembed",!1)=="1")return Error("xf");if(_.Mnf(N))return Error("yf")};
p2O=function(N){switch(N){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.Ep(N,"unknown result type")}};
_.LN1=function(N,t,O){t=_.m7l[t];O={detected:N===0,source:t.mOR,detectionResult:p2O(N),contentCpn:O};_.E7("biscottiBasedDetection",O);_.Ouf.increment(t.mOR,N);t.dJi!==void 0&&_.Gm("CATSTAT",_.lFv(N,t))};
_.zhm=function(N,t){var O={};O.key=N;O.value=t;return _.geO().then(function(H){return new Promise(function(A,Z){try{var U=H.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(O);U.onsuccess=function(){A()};
U.onerror=function(){Z()}}catch(C){Z(C)}})})};
_.ar1=function(){var N=_.uP("user_engagement_experiments_rate_limit_ms"),t=Y6r.get("last-user-engagement-exp-trigger-timestamp");return!t||(0,_.jg)()>=t+N?(Y6r.set("last-user-engagement-exp-trigger-timestamp",(0,_.jg)()),!0):!1};
_.yF=function(N,t,O,H,A){t=t===void 0?null:t;O=O===void 0?null:O;H=H===void 0?null:H;A=A===void 0?null:A;N={youThereEventType:N};O&&(N.lactThresholdMs=O.lactThresholdMs,N.mediaPosSec=O.promptDelaySec,N.lactServerRequestMs=O.lactServerRequestMs,N.triggerReason=O.triggerReason);A!=null&&(N.renderingMediaPosSec=Math.round(A));t||(t=_.z8());t&&(N.clientScreenNonce=t);H&&(N.clientPlaybackNonce=H);_.E7("youThere",N)};
hh5={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"};iOz=function(N){this.xhr=N};
_.ubm=function(N,t,O){_.Nz.call(this,N+", errorCode="+t);this.errorCode=t;this.xhr=O;this.name="PromiseAjaxError"};
_.p(_.ubm,_.Nz);var jHm={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Y6r=new _.sv("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.$fm=function(N){return _.H5({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:N})};
}catch(e){_._DumpException(e)}
try{
var IU,Imm,QIA,mLw,EHV,GVm,vHN,ZOu,Vnm,DfA,RVA,lms,NzD,sIr,KN8;_.rGw=function(){var N=window.location.hash;N.charAt(0)==="#"&&(N=N.charAt(1)==="!"?N.substring(2):N.substring(1));return _.Vl(N)};
IU=function(N,t,O){var H;return _.K(function(A){if(A.nextAddress==1)return A.yield(t(),2);H=A.yieldResult;O(H,N);_.Ty(A)})};
Imm=function(){return _.K(function(N){return N.nextAddress==1?N.yield((_.bO1()!==void 0?_.M2(Error("zf")):_.S6J()).then(function(){return 1},function(t){if(t.message==="Biscotti id is disabled")return 3;
_.J_("Failed fetching bid");return 0}),2):N.return(N.yieldResult)})};
QIA=function(){var N=_.NL("eXg0bnZ5dC1oYXZlbi1lbWJlZC1wbGF5ZXIjOXMxM2l4"),t=_.NL("aWZyYW1lI25vNnZwYTVmbGdtZg==");return document.querySelector(t+lms+N)?0:1};
mLw=function(){return _.TMl(_.pZ)};
EHV=function(){return _.wDz()===0?0:_.evN()};
GVm=function(){return _.qfG(_.otN([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
vHN=function(){return _.hvt(RVA)};
_.JG9=function(N){_.K(function(t){switch(t.nextAddress){case 1:return t.yield(IU("b.f_",Imm,N),2);case 2:return t.yield(IU("j.s_",_.ull,N),3);case 3:return t.yield(IU("r.s_",_.$7z,N),4);case 4:return t.yield(IU("e.h_",vHN,N),5);case 5:if(!_.h("ab_det_sc_inj")){t.jumpTo(6);break}return t.yield(IU("s.i_",_.Yfg,N),6);case 6:if(_.h("ab_deg_unex_thr")){t.jumpTo(8);break}return t.yield(IU("a.o_",_.L$x,N),8);case 8:if(_.h("ks_get_o_pp")){t.jumpTo(10);break}return t.yield(IU("g.o_",_.pDv,N),10);case 10:if(_.h("ks_det_gpbl")){t.jumpTo(12);
break}return t.yield(IU("p.i_",_.boO,N),12);case 12:return t.yield(IU("f.i_",_.V_x,N),14);case 14:return t.yield(IU("a.b_",_.BM4,N),15);case 15:return t.yield(IU("p.m_",_.C2p,N),16);case 16:if(!_.h("ab_det_el_h_v2")){t.jumpTo(17);break}return t.yield(IU("n.h_",GVm,N),17);case 17:return t.yield(IU("o.p_",mLw,N),19);case 19:return t.yield(IU("e.i_",QIA,N),20);case 20:if(_.h("ab_det_apm"))return t.yield(IU("o.a_",EHV,N),0);t.jumpTo(0)}})};
_.oHl=function(N,t){N={videoId:N};t&&(N.playlistId=t);return N};
_.tnD=function(){if(_.li4()){var N=_.Ro("PLAYER_VARS",{});if(_.WW.get(N,"privembed",!1)!="1"&&!_.Mnf(N)){var t=function(){sIr=!0;"google_ad_status"in window?_.Gm("DCLKSTAT",1):_.Gm("DCLKSTAT",2)};
try{_.XU(_.ZUi,t)}catch(O){}NzD.push(_.GB.addLowPriorityJob(function(){if(!(sIr||"google_ad_status"in window)){try{_.xjv(_.ZUi.toString(),t)}catch(O){}sIr=!0;_.Gm("DCLKSTAT",3)}},5E3))}}};
_.OO8=function(N,t,O){O=O===void 0?!1:O;var H=Math.max(N.width,_.v2d);if(_.h("kevlar_watch_feed_big_thumbs")&&N.width>=1550-_.O5()&&N.height>=800)H-=_.HbA;else if(N.width>=_.ky){var A=_.Jr1+_.o2$+_.xy;_.h("kevlar_watch_feed_big_thumbs")&&(A=_.Obu);H-=A}else H-=_.Jr1;H=Math.min(H,_.sk1);A=240;O&&(A=380);t<.5624||(!_.h("kevlar_watch_flexy_disable_small_window_sizing")&&(N.height<630&&N.width>=657||N.height>=630&&N.width>=_.ky&&N.width<1327)?A=360:!_.h("kevlar_watch_flexy_disable_large_window_sizing")&&
N.height>=630&&N.width>=1327&&(A=480));var Z=Math.min(H*t,N.height-(56+_.RAA+_.tOl));Z=Math.max(Z,A);t<1?H=Z/t:N.width>=_.ky&&(H=_.OO8(N,.5625,O).width);return new _.aN(Math.round(H),Math.round(Z))};
_.HOD=function(N){var t=0;N.indexOf("h")!=-1&&(N=N.split("h"),t=N[0]*60*60,N=N[1]);N.indexOf("m")!=-1&&(N=N.split("m"),t=N[0]*60+t,N=N[1]);N.indexOf("s")!=-1?(N=N.split("s"),t=N[0]*1+t):t=N*1+t;return t};
_.An$=function(){_.uP("service_worker_push_logged_out_prompt_watches")!=-1&&_.AS("WatchCount").then(function(N){N>=100||_.zhm("WatchCount",N+1)})};
ZOu=function(N){var t=N.externalVideoId||"";return t?N.isShortsEligible?"https://www.youtube.com/shorts/"+t:"https://www.youtube.com/watch?v="+t:""};
Vnm=function(N){var t=[];N.viewCount&&t.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:N.viewCount});N.likeCount&&t.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:N.likeCount});return t};
DfA=function(N){var t,O,H={"@context":"https://schema.org","@type":"VideoObject",description:_.Gv(N.description),duration:"PT"+(N.lengthSeconds||"0")+"S",embedUrl:N.embed?N.embed.iframeUrl:"",name:_.Gv(N.title),thumbnailUrl:((t=N.thumbnail)==null?void 0:(O=t.thumbnails)==null?void 0:O.map(function(B){return B&&B.url||""}))||[],
uploadDate:N.publishDate};_.h("mweb_video_schema_id_killswitch")||(H["@id"]=ZOu(N));t=Vnm(N);t.length&&(H.interactionStatistic=t);N.category&&(H.genre=N.category);N.ownerChannelName&&(H.author=N.ownerChannelName);N.liveBroadcastDetails&&(H.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:N.liveBroadcastDetails.startTimestamp,endDate:N.liveBroadcastDetails.endTimestamp}]);if(N.learningResource){N=N.learningResource;H["@type"]=["VideoObject","LearningResource"];var A;if((A=N.learningResourceType)==
null?0:A.length)H.learningResourceType=N.learningResourceType[0];var Z;if((Z=N.educationalAlignment)==null?0:Z.length)H.educationalAlignment={"@type":"AlignmentObject",targetName:N.educationalAlignment[0]};var U;if((U=N.educationalLevel)==null?0:U.length){A=N.educationalLevel[0];var C;if((C=N.educationalLevelCountry)==null?0:C.length)A+=" ("+N.educationalLevelCountry+")";H.educationalLevel=A}var F,g;if(((F=N.learningResourceType)==null?0:F.length)&&N.learningResourceType[0]==="Problem walkthrough"&&
((g=N.problemDescriptions)==null?0:g.length))for(H.hasPart=[],C=_.D(N.problemDescriptions),F=C.next();!F.done;F=C.next())A=F.value,F=A.problemDescriptionText,g=A.startOffset,A=A.url,F&&g!==void 0&&A&&H.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:F,text:F,startOffset:g,url:A})}return H};
_.Ufl=function(N){return _.H5({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:N}})};
RVA=[[["aW1hcnkjYTdjNGpxZ3d5aWd1cHI=",null,null],[null,["bi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNhd2Q0eXl1cnRpcnV5dGQtdHdvLWNvbHVt","ZSNwdWJycjE2aHRuZnRzdHlsZS1zY29w"],null],["ZCN5aW52Y29odmswZHltYXN0aGVhZC1h",["eG5zeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciMzbHloa21iaGc="],null],[null,["MmtmeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciNzN2drdXY5cnU=","ZSMxemhvNXphdTZnbWVzdHlsZS1zY29w"],null],[null,["eXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciNsbGU3cmprdmxrZ3o=","ZSN1djJnOTNyY2lja3RzdHlsZS1zY29w"],null],[null,["MjF1N2F5dGQtYWQtc2xvdC1yZW5kZXJlciM0NG5xajZk"],
null]],[["ZHMja2NuMnJwa2dwdnIzcGxheWVyLWE=",null,null]],[[null,null,"M3l0bHItYmFubmVyLWN0YS1yZW5kZXJlciNtemZzNjZvYmFwdQ=="]]];lms="#";NzD=[];sIr=!1;_.CcV=["engagement-panel-ads"];KN8=new _.Fp("updateSentimentBarStateCommand");_.FN9=new _.Fp("showSurveyCommand");_.lS=new _.Fp("changeMarkersVisibilityCommand");var gql,ynD,jHR,$fR,cnw,QR;_.dfw=function(N,t){this.playerProvider_=N;this.actionSenderElement_=t;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.dfw.prototype.reset=function(){gql(this);this.isUserPredictedAbsent_=!1};
gql=function(N,t){!N.youThereData_||N.showWarningJob_||t!==void 0&&t||(_.yF("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.z8(),N.youThereData_,N.clientPlaybackNonce_),_.GW());_.GB.cancelJob(N.showWarningJob_);N.showWarningJob_=0;_.GB.cancelJob(N.showBlockingWarningJob_);N.showBlockingWarningJob_=0;_.GB.cancelJob(N.pausePlaybackJob_);N.pausePlaybackJob_=0;N.youThereData_=null;N.clientPlaybackNonce_=void 0;N.inYouThereFlow_=!1};
_.BzR=function(N,t){var O,H,A;_.K(function(Z){if(Z.nextAddress==1)return N.reset(),Z.yield(N.playerProvider_().getPlayerPromise(),2);O=Z.yieldResult;N.clientPlaybackNonce_=O.getVideoData().cpn;N.youThereData_=t.configData.youThereData;if(!N.youThereData_)return Z.return();if(N.youThereData_.triggerReason&&N.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.ar1())return _.yF("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.z8(),N.youThereData_,N.clientPlaybackNonce_),Z.return();H=N.youThereData_.promptDelaySec;
A=O.getCurrentTime();N.showWarningJob_=_.GB.addLowPriorityJob(function(){return _.K(function(U){N.showWarningJob_=0;return U.yield(ynD(N),0)})},Math.max(H-A,0)*1E3);
_.Ty(Z)})};
ynD=function(N){var t,O,H,A,Z,U;return _.K(function(C){if(C.nextAddress==1)return C.yield(N.playerProvider_().getPlayerPromise(),2);if(C.nextAddress!=3)return t=C.yieldResult,O=t.getCurrentTime(),C.yield(cnw(N),3);H=C.yieldResult;if(!H||!N.youThereData_)return C.return();if(_.h("check_user_lact_at_prompt_shown_time_on_web")&&(A=parseInt(N.youThereData_.lactThresholdMs,10),_.jO()<A))return _.yF("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.z8(),N.youThereData_,N.clientPlaybackNonce_),C.return();if(N.youThereData_.playbackPauseDelayMs<=
0)return $fR(N),C.return();!_.h("external_fullscreen")&&(Z=_.G8())&&(N.ignoreFullscreenExitUserActivity_=!0,_.GB.addLowPriorityJob(function(){N.ignoreFullscreenExitUserActivity_=!1},2E3),_.Rr(Z));
N.youThereData_.showToastWarningPrompt&&(QR(N,N.youThereData_.showWarningActions),N.inYouThereFlow_=!0,_.yF("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.z8(),N.youThereData_,N.clientPlaybackNonce_,O),_.yF("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.z8(),N.youThereData_,N.clientPlaybackNonce_,O));U=0;N.youThereData_.blockingPromptDelayMs&&(U=N.youThereData_.blockingPromptDelayMs);N.showBlockingWarningJob_=_.GB.addLowPriorityJob(function(){return _.K(function(F){N.showBlockingWarningJob_=0;return F.yield(jHR(N),
0)})},U);
_.Ty(C)})};
jHR=function(N){var t,O,H;return _.K(function(A){if(A.nextAddress==1)return A.yield(cnw(N),2);t=A.yieldResult;if(!N.youThereData_)return A.return();t&&(N.youThereData_.showBlockingWarningAction&&(_.yF("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.z8(),N.youThereData_,N.clientPlaybackNonce_),(O=_.M(N.youThereData_.showBlockingWarningAction,_.Ab))?QR(N,O.commands):QR(N,[N.youThereData_.showBlockingWarningAction]),N.inYouThereFlow_=!0),H=N.youThereData_.playbackPauseDelayMs,N.pausePlaybackJob_=
_.GB.addLowPriorityJob(function(){return _.K(function(Z){N.pausePlaybackJob_=0;return Z.yield($fR(N),0)})},H));
_.Ty(A)})};
$fR=function(N){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(cnw(N),2);t=O.yieldResult;if(!N.youThereData_)return O.return();t&&(_.yF("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.z8(),N.youThereData_,N.clientPlaybackNonce_),QR(N,N.youThereData_.showPausedActions),N.inYouThereFlow_=!0);_.Ty(O)})};
_.dfw.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var N=_.M(this.youThereData_.userActiveDuringFlowAction,_.Ab);N?QR(this,N.commands):QR(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.yF("YOU_THERE_EVENT_TYPE_LACT_RESET",_.z8(),this.youThereData_,this.clientPlaybackNonce_),_.GW());gql(this,!0)}_.iOu(this,!1)};
_.ubR=function(N){_.yF("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.z8(),N.youThereData_,N.clientPlaybackNonce_)};
cnw=function(N){var t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(N.playerProvider_().getPlayerPromise(),2);t=H.yieldResult;O=t.getPlayerState();return H.return(O==-1||O==1||O==3)})};
_.iOu=function(N,t){var O;_.K(function(H){if(H.nextAddress==1){if(N.isUserPredictedAbsent_==t)return H.jumpTo(0);N.isUserPredictedAbsent_=t;return H.yield(N.playerProvider_().getPlayerPromise(),3)}O=H.yieldResult;O.setUserEngagement(t);t&&_.yF("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.z8(),N.youThereData_,N.clientPlaybackNonce_);_.Ty(H)})};
QR=function(N,t){if(_.h("handle_service_request_actions")||_.h("kevlar_youthere_service_endpoint_actions_killswitch"))_.OK(N.actionSenderElement_,t,N.actionSenderElement_);else{t=_.D(t);for(var O=t.next();!O.done;O=t.next())O=O.value,O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.sendPost?_.tb(N.actionSenderElement_,[O]):_.OK(N.actionSenderElement_,[O],N.actionSenderElement_)}};var S6s;var hhN;var mm=function(){var N=_.k.apply(this,arguments)||this;N.systemIcons=_.h("kevlar_system_icons");N.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return N};
_.p(mm,_.k);mm.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var N=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(N=this.data.percentIfLiked||0,this.activated=!0):(N=this.data.percentIfIndifferent||0,this.activated=!1);_.O6(this.hostElement).querySelector("#like-bar").style.width=N+"%"}};
mm.prototype.handleUpdateSentimentBarStateCommand=function(N){this.data&&this.set("data.likeStatus",_.M(N,KN8).likeStatus)};
mm.prototype.observeLikeStatus=mm.prototype.observeLikeStatus;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],mm.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],mm.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],mm.prototype,"activated",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],mm.prototype,"systemIcons",void 0);_.W([_.gz("data.likeStatus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mm.prototype,"observeLikeStatus",null);_.W([_.en({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],mm);
_.n(mm,"ytd-sentiment-bar-renderer",function(){if(hhN!==void 0)return hhN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return hhN=N},{mode:1});var MnV;var EF=function(){var N=_.k.apply(this,arguments)||this;N.small=!0;return N};
_.p(EF,_.k);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],EF.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],EF.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],EF.prototype,"small",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],EF);
_.n(EF,"ytd-video-view-count-renderer",function(){if(MnV!==void 0)return MnV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MnV=N},{mode:_.O4("kevlar_poly_si_batch_j080")?1:2});var G1=function(){var N=_.k.apply(this,arguments)||this;N.infoFormattedStrings=[];N.wrapVideoActions=_.h("kevar_watch_wrap_video_actions");N.hideSentimentBar=_.h("kevlar_watch_hide_sentiment_bar");N.actionMap={};return N};
_.p(G1,_.k);_.V=G1.prototype;_.V.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.h("web_modern_buttons"),forceIconButton:!_.h("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.V.dataChanged=function(){_.h("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.V.computeInfoFormattedStrings=function(N){if(!N)return[];var t=[];N.dateText&&t.push(N.dateText);N.stationName&&t.push(N.stationName);N.rating&&t.push(N.rating);N.startEndTimeTemplate&&N.startTimeUtcMillis&&N.endTimeUtcMillis&&t.push(_.E_(_.VoA(_.Gv(N.startEndTimeTemplate),Number(N.startTimeUtcMillis),Number(N.endTimeUtcMillis))));N.upNextProgramText&&t.push(N.upNextProgramText);return t};
_.V.scheduleInitialUpdatedMetadataRequest=function(){var N,t=(N=this.data)==null?void 0:N.updatedMetadataEndpoint;if(t){var O;N=Number((O=_.M(t,_.IdX))==null?void 0:O.initialDelayMs);O=isNaN(N)?250:N;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),O)}};
_.V.setSentimentBarWidth=function(){var N=this;_.yB(this,function(){var t=_.O6(N.hostElement).querySelector("ytd-menu-renderer");if(t){t=t.topLevelButtons;for(var O=0,H=0;H<t.length;H++){var A=t[H],Z=N.get("toggleButtonSupportedData.toggleButtonIdData.id",A.data);if(Z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||Z==="TOGGLE_BUTTON_ID_TYPE_LIKE")O+=A.clientWidth+8;else break}O&&(N.sentiment.style.width=O-8+" px")}})};
_.V.fetchUpdatedMetadata=function(N){var t;N&&(t={continuation:N});var O;(N=(O=this.data)==null?void 0:O.updatedMetadataEndpoint)&&_.cY().resolve(_.jo).resolveCommand(N,{form:Object.assign({},t,{element:this.hostElement})})};
_.V.onYtServiceRequestSent=function(N,t){t.endpoint&&_.M(t.endpoint,_.xg)&&(this.hasUpdateSentimentBarStateCommands()&&!_.h("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.M(t.endpoint,_.xg).status),this.setSentimentBarWidth())};
_.V.hasUpdateSentimentBarStateCommands=function(){var N,t,O,H,A=(H=(N=this.data)==null?void 0:(t=N.videoActions)==null?void 0:(O=t.menuRenderer)==null?void 0:O.topLevelButtons)!=null?H:[];N=_.D(A);for(t=N.next();!t.done;t=N.next()){t=t.value;A=H=O=void 0;var Z=(O=t.toggleButtonRenderer)==null?void 0:(H=O.toggleButtonSupportedData)==null?void 0:(A=H.toggleButtonIdData)==null?void 0:A.id;if(Z==="TOGGLE_BUTTON_ID_TYPE_LIKE"||Z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){H=O=void 0;t=(H=_.M((O=t.toggleButtonRenderer)==
null?void 0:O.defaultServiceEndpoint,_.Ab))==null?void 0:H.commands;if(!t)break;t=_.D(t);for(O=t.next();!O.done;O=t.next())if(_.M(O.value,KN8))return!0}}return!1};
_.V.onYtServiceRequestCompleted=function(N,t){var O;(N=(O=t.data)==null?void 0:O.loggingDirectives)&&_.oyO(_.gF(),N);this.get("continuation.timedContinuationData",t.data)&&this.data&&this.data.updatedMetadataEndpoint&&(t=t.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,t.continuation),t.timeoutMs))};
_.V.computeHasDateText=function(N){return!!N&&!!N.dateText};
_.cv.Object.defineProperties(G1.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H;return!((H=(N=this.data)==null?void 0:(t=N.videoActions)==null?void 0:(O=t.menuRenderer)==null?void 0:O.flexibleItems)==null||!H.length)}}});
G1.prototype.onYtServiceRequestCompleted=G1.prototype.onYtServiceRequestCompleted;G1.prototype.onYtServiceRequestSent=G1.prototype.onYtServiceRequestSent;G1.prototype.dataChanged=G1.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],G1.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.hP.YtTaskEmitterBehavior),_.Q("design:type",Object)],G1.prototype,"ytTaskEmitterBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],G1.prototype,"data",void 0);_.W([_.X({computed:"computeInfoFormattedStrings(data)"}),_.Q("design:type",Array)],G1.prototype,"infoFormattedStrings",void 0);
_.W([_.X({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],G1.prototype,"hasDateText",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G1.prototype,"wrapVideoActions",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],G1.prototype,"hideSentimentBar",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],G1.prototype,"flexMenuEnabled",null);
_.W([_.B2("#sentiment"),_.Q("design:type",Object)],G1.prototype,"sentiment",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],G1.prototype,"dataChanged",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],G1.prototype,"onYtServiceRequestSent",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],G1.prototype,"onYtServiceRequestCompleted",null);
_.n(G1,"ytd-video-primary-info-renderer",function(){if(S6s===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);S6s=N}N=S6s;return N},{mode:1});var bOd;var RU=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return N};
_.p(RU,_.k);_.V=RU.prototype;_.V.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.V.dataChanged=function(){var N;this.descriptionToggled=!((N=this.data)==null||!N.defaultExpanded);var t;this.collapsed=this.descriptionAlwaysCollapsed||!((t=this.data)==null?0:t.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.UM(110509);this.showLessClientVe=_.UM(110510);N=_.z8();t=_.pv();N&&t&&_.fJ(N,t,[this.showMoreClientVe,this.showLessClientVe])};
_.V.onYtExpanderMoreTapped=function(){var N,t=(N=this.data)==null?void 0:N.showMoreCommand;t&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(t);(N=_.z8())&&this.showMoreClientVe&&_.IX(N,this.showMoreClientVe)};
_.V.onYtExpanderLessTapped=function(){var N=_.z8();N&&this.showLessClientVe&&_.IX(N,this.showLessClientVe);var t;(N=(t=this.data)==null?void 0:t.showLessCommand)&&this.componentBehavior.resolveCommand(N)};
_.V.handleUpdateDateTextAction=function(N){this.data&&this.data.dateText&&this.set("data.dateText",_.M(N,_.rrl).dateText)};
_.V.handleUpdateDescriptionAction=function(N){if(N=_.M(N,_.ntX))N.isEmpty||!N.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.zb(N.description)):this.set("data.description",N.description)};
_.V.onYtChangeEngagementPanelVisibilityAction=function(N){if(_.h("web_structured_description_show_more")||_.h("web_engagement_panel_open_description")){var t,O=(t=_.M(N,_.WCY))==null?void 0:t.targetId,H;N=((H=_.M(N,_.WCY))==null?void 0:H.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";O==="engagement-panel-structured-description"&&N&&(this.descriptionToggled=!0)}};
_.V.updateCollapsedFromBinding=function(N){this.collapsed=N.detail.value};
_.V.updateDescriptionToggledFromBinding=function(N){this.descriptionToggled=N.detail.value};
_.V.updateCanCollapseFromBinding=function(N){this.canCollapse=N.detail.value};
_.cv.Object.defineProperties(RU.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.data)==null?void 0:(t=N.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer;return!!O&&!!O.rows&&O.rows.length>O.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
RU.prototype.onYtExpanderLessTapped=RU.prototype.onYtExpanderLessTapped;RU.prototype.onYtExpanderMoreTapped=RU.prototype.onYtExpanderMoreTapped;RU.prototype.dataChanged=RU.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],RU.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],RU.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],RU.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],RU.prototype,"collapsed",void 0);_.W([_.X(),_.Q("design:type",Boolean)],RU.prototype,"descriptionToggled",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],RU.prototype,"canCollapse",void 0);_.W([_.X(),_.Q("design:type",Object)],RU.prototype,"subscribeButtonData",void 0);_.W([_.X(),_.Q("design:type",Number)],RU.prototype,"descriptionCollapsedHeight",void 0);_.W([_.X(),_.Q("design:type",Object)],RU.prototype,"structuredDescriptionContentRenderer",void 0);_.W([_.X({value:function(){return _.h("web_watch_description_always_collapsed")}}),
_.Q("design:type",Boolean)],RU.prototype,"descriptionAlwaysCollapsed",void 0);_.W([_.B2("#description"),_.Q("design:type",HTMLDivElement)],RU.prototype,"description",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RU.prototype,"dataChanged",null);_.W([_.dz("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RU.prototype,"onYtExpanderMoreTapped",null);
_.W([_.dz("yt-expander-less-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RU.prototype,"onYtExpanderLessTapped",null);_.W([_.a("data.metadataRowContainer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RU.prototype,"metadataCollapsible",null);_.W([_.a("data","structuredDescriptionContentRenderer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RU.prototype,"hasInlineStructuredDescription",null);
_.W([_.a("data.attributedDescription"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RU.prototype,"hasAttributedDescription",null);_.W([_.a("hasInlineStructuredDescription","collapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RU.prototype,"loadStructuredDescription",null);_.W([_.a("data","structuredDescriptionContentRenderer","collapsed"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RU.prototype,"showInlineStructuredDescription",null);
_.W([_.a("data","hasInlineStructuredDescription","metadataCollapsible"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RU.prototype,"descriptionAlwaysCollapsible",null);
_.n(RU,"ytd-video-secondary-info-renderer",function(){if(bOd===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden$="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);bOd=N}N=bOd;return N},{mode:2});var p2$;var vx=function(){return _.k.apply(this,arguments)||this};
_.p(vx,_.k);vx.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:_.h("web_modern_buttons"),forceIconButton:!_.h("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
vx.prototype.activate=function(N){N.appendTo(this.player);N.getPlayerPromise().then(function(t){t.setMinimized(!0)});
this.active=!0};
vx.prototype.deactivate=function(){var N=this.player.firstElementChild;N.getPlayerPromise().then(function(t){t.setMinimized(!1)});
this.active=!1;return N};
vx.prototype.onScrollUpTap=function(){var N=_.cY().resolve(_.J4).getCurrentPage();N&&N.setScrollTop(0)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],vx.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vx.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],vx.prototype,"active",void 0);
_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Q("design:type",Boolean)],vx.prototype,"darkLaunch",void 0);_.W([_.B2("#player"),_.Q("design:type",HTMLDivElement)],vx.prototype,"player",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],vx);
_.n(vx,"ytd-miniplayer-bar-renderer",function(){if(p2$!==void 0)return p2$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return p2$=N},{mode:1});_.o_(_.q(function(N){var t=_.Fy("script");_.rp(function(){var O;if(O=JSON)O=DfA(N.data()),O=_.Zx(JSON.stringify(O).replace(/</g,"\\u003C"));var H=N.data(),A=_.Gv(H.title).trim().length===0,Z=!H.publishDate||H.publishDate.trim().length===0,U,C,F,g,B=!((U=H.thumbnail)==null?0:(C=U.thumbnails)==null?0:C.length)||!((F=H.thumbnail)==null?0:F.thumbnails[0].url)||((g=H.thumbnail)==null?void 0:g.thumbnails[0].url.trim().length)===0;t.value&&O&&!(A||Z||B)&&_.Dx(t.value,O)},"Vy9K7b");
return _.d("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.d("script",{el:t,type:"application/ld+json"}))},"Fo"),"player-microformat-renderer",{props:{data:_.R_}});
}catch(e){_._DumpException(e)}
try{
var BYm,cGr,jI$;_.yGd=function(N){return N.watch.watchWindowSize};
BYm=function(N,t){var O=document.querySelector(N);O?t(O):setTimeout(function(){BYm(N,t)},1E3)};
cGr=function(N,t,O,H){if(N.isLockupToWatchTransitionEnabled){if(t){var A={};A=(A["watch-next-appears"]="player-watch-next-loaded",A);A["lockup-to-watch"]=N.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";N.viewTransitionCoordinator.registerElement(t,A)}O&&(t={},N.viewTransitionCoordinator.registerElement(O,(t["lockup-to-watch"]="below-lockup-to-watch",t["watch-next-appears"]="below-watch-next-loaded",t)));H&&(O={},N.viewTransitionCoordinator.registerElement(H,
(O["watch-next-appears"]="secondary-watch-next-loaded",O)))}};
_.$Ld=function(N){return _.H5({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:N}})};
jI$=new _.Fp("webWatchNextResponseExtensionData");var ui$=function(N){_.k1.call(this);var t=this;this.JSC$23682_watchApi=N;this.observer=null;var O=this.JSC$23682_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){iT9(t)});
this.addOnDisposeCallback(function(){t.JSC$23682_watchApi.unsubscribeByKey(O);t.observer&&(t.observer.disconnect(),t.observer=null)});
iT9(this)};
_.p(ui$,_.k1);
var iT9=function(N){var t,O,H,A,Z;_.K(function(U){if(U.nextAddress==1){N.observer&&(N.observer.disconnect(),N.observer=null);t=N.JSC$23682_watchApi.getWatchNextResponse();if(!t)return U.return();O=_.M(t,jI$);return((H=O)==null?0:H.enableCreatorChatbot)&&O.creatorChannelId?_.h("enable_creator_chatbot_link_out")?U.yield((0,_.OiQ)("NSzT5"),6):U.yield((0,_.OiQ)("NSzT5"),5):U.jumpTo(0)}if(U.nextAddress!=6)return A=_.S3u,A(O.creatorChannelId),BYm("ytd-watch-metadata",function(C){N.observer=new MutationObserver(function(){var F,
g;(F=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(g=F.closest("yt-button-view-model.ytd-menu-renderer"))==null||g.remove()});
N.observer.observe(C,{childList:!0,subtree:!0})}),U.jumpTo(0);
Z=_.hVd;Z(O.creatorChannelId);_.Ty(U)})};var qb=function(N){_.k1.call(this);this.JSC$23686_watchApi=N;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Mcd(this)};
_.p(qb,_.k1);var Mcd=function(N){_.K(function(t){if(t.nextAddress==1)return t.yield(bT1(N),2);pil(N);_.Ty(t)})},bT1=function(N){var t,O,H,A,Z,U,C,F,g;
return _.K(function(B){if(B.nextAddress==1)return B.yield(N.JSC$23686_watchApi.playerApi,2);t=B.yieldResult;N.JSC$23686_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){L1N(N)});
N.JSC$23686_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){N.isShelfVisible?zVm(N):fW(N)});
O=_.v5().subscribe(function(){N.isTheaterMode=_.aM(_.v5().getState());N.isTheaterMode?fW(N):Y3d(N)});
H=N.JSC$23686_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pil(N)});
A=function(c){N.onCueRangeEnter(c)};
t.addEventListener("onCueRangeEnter",A);Z=function(c){N.onCueRangeExit(c)};
t.addEventListener("onCueRangeExit",Z);U=function(){N.isSeeking=!0};
t.addEventListener("SEEK_TO",U);C=function(){N.onSeekComplete()};
t.addEventListener("SEEK_COMPLETE",C);F=function(){N.onAdStart()};
t.addEventListener("onAdStart",F);g=function(){N.onAdComplete()};
t.addEventListener("onAdComplete",g);N.addOnDisposeCallback(function(){O();N.JSC$23686_watchApi.unsubscribeByKey(H);t.removeEventListener("onCueRangeEnter",A);t.removeEventListener("onCueRangeExit",Z);t.removeEventListener("SEEK_TO",U);t.removeEventListener("SEEK_COMPLETE",C);t.removeEventListener("onAdStart",F);t.removeEventListener("onAdComplete",g)});
_.Ty(B)})},amD=function(N){var t,O,H,A,Z,U,C,F,g;
return(Z=(t=N.contents)==null?void 0:(O=t.twoColumnWatchNextResults)==null?void 0:(H=O.results)==null?void 0:(A=H.results)==null?void 0:A.contents)==null?void 0:(U=Z.find(function(B){var c,u,S;return(c=B.itemSectionRenderer)==null?void 0:(u=c.contents)==null?void 0:(S=u[0])==null?void 0:S.shoppingTimelyShelfViewModel}))==null?void 0:(C=U.itemSectionRenderer)==null?void 0:(F=C.contents)==null?void 0:(g=F[0])==null?void 0:g.shoppingTimelyShelfViewModel},pil=function(N){var t;
_.K(function(O){if(O.nextAddress==1)return(t=N.JSC$23686_watchApi.getWatchNextResponse())?O.yield(L1N(N),2):O.return();N.shoppingTimelyShelfViewModel=amD(t);TYR(N);wiw(N);_.Ty(O)})},TYR=function(N){var t,O=(t=N.shoppingTimelyShelfViewModel)==null?void 0:t.offerIdToVariants;
O&&(t=O.filter(function(H){return H.key&&H.value}).map(function(H){return[H.key,
H.value]}),N.variantsMap=new Map(t))},wiw=function(N){var t,O,H,A,Z,U;
_.K(function(C){if(C.nextAddress==1)return(O=(t=N.shoppingTimelyShelfViewModel)==null?void 0:t.cueRanges)?C.yield(N.JSC$23686_watchApi.playerApi,2):C.return();H=C.yieldResult;N.cueRanges=O;A=_.D(O);for(Z=A.next();!Z.done;Z=A.next())U=Z.value,U.startTime!==void 0&&U.endTime!==void 0&&U.id!==void 0&&H.addCueRange("shopping_timely_shelf"+U.id,eVs(U.startTime),eVs(U.endTime));_.Ty(C)})},eVs=function(N){return Number(N.seconds||0)+(N.nanos||0)/1E9};
qb.prototype.onCueRangeEnter=function(N){if(N.startsWith("shopping_timely_shelf")&&(this.activeCueId=N,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){N=N.substring(21);var t,O,H=(t=this.variantsMap)==null?void 0:(O=t.get(N))==null?void 0:O.shelf;H&&(this.JSC$23686_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",H),zVm(this))}};
qb.prototype.onCueRangeExit=function(N){N.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||fW(this))};
qb.prototype.onSeekComplete=function(){this.isSeeking=!1;Y3d(this)};
var zVm=function(N){N.shoppingTimelyShelfViewModel&&(N.isShelfVisible=!0,_.VM.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},fW=function(N){N.shoppingTimelyShelfViewModel&&(N.isShelfVisible=!1,_.VM.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},L1N=function(N){var t,O,H,A,Z;
return _.K(function(U){if(U.nextAddress==1)return U.yield(N.JSC$23686_watchApi.playerApi,2);t=U.yieldResult;if(N.cueRanges)for(O=_.D(N.cueRanges),H=O.next();!H.done;H=O.next())A=H.value,A.id&&(Z="shopping_timely_shelf"+A.id,t.removeCueRange(Z));N.JSC$23686_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});fW(N);N.shoppingTimelyShelfViewModel=void 0;N.cueRanges=void 0;N.variantsMap=void 0;N.isSeeking=!1;N.activeCueId=void 0;_.Ty(U)})};
qb.prototype.onAdStart=function(){this.isAdPlaying=!0;fW(this)};
qb.prototype.onAdComplete=function(){this.isAdPlaying=!1;Y3d(this)};
var Y3d=function(N){if(N.activeCueId)N.onCueRangeEnter(N.activeCueId);else fW(N)};var q3l=function(N){_.k1.call(this);var t=this;this.JSC$23693_watchApi=N;N=_.Jc(_.v5(),_.scv,function(){P81(t)});
this.addOnDisposeCallback(N);N=_.Jc(_.v5(),_.yGd,function(){P81(t)});
this.addOnDisposeCallback(N);XiR(this);xL8(this);kVV()};
_.p(q3l,_.k1);var XiR=function(N){var t=function(H){_.v5().dispatch(_.DVm(H.matches))},O=window.matchMedia("(max-width: "+(999+_.O5())+"px)");
O.addListener(t);N.addOnDisposeCallback(function(){O.removeListener(t)});
t(O)},xL8=function(N){N.JSC$23693_watchApi.registerActionHandler("yt-window-resized",function(){kVV()});
N.addOnDisposeCallback(function(){N.JSC$23693_watchApi.unregisterActionHandler("yt-window-resized")})},kVV=function(){var N=_.$H();
_.v5().dispatch(_.H5({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:N.width,height:N.height}}}))},P81=function(N){var t;
_.K(function(O){if(O.nextAddress==1)return O.yield(N.JSC$23693_watchApi.playerApi,2);t=O.yieldResult;t.setSize(NaN,NaN);_.Ty(O)})};var fm9=function(N){_.k1.call(this);var t=_.cY().resolve(_.NX);cGr(t,N.getElement("PLAYER_CONTAINER"),N.getElement("BELOW_THE_PLAYER"),N.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var O=N.getElement("PLAYER_CONTAINER"),H=N.getElement("BELOW_THE_PLAYER"),A=N.getElement("SECONDARY");t.isLockupToWatchTransitionEnabled&&(O&&_.xS(t.viewTransitionCoordinator,O),H&&_.xS(t.viewTransitionCoordinator,H),A&&_.xS(t.viewTransitionCoordinator,A))})};
_.p(fm9,_.k1);_.nW=function(N){_.cQ.call(this);var t=this;this.rootElement=N;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return t.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(O){t.initOrDisposeActiveModules(O)}));
this.onAttached()};
_.p(_.nW,_.cQ);_.V=_.nW.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(N){return this.rootElement.getElement(N)};
_.V.setPlayerResponse=function(N){this.playerResponse=N;this.publish("PLAYER_RESPONSE_UPDATED",N)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(N){this.watchNextResponse===N?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=N,this.publish("WATCH_NEXT_RESPONSE_UPDATED",N))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(N,t){var O=this;if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.Uh(_.VM.getInstance(),(H[N]=t,H),this.getRoot())}else this.actionHandlers.has(N)||(this.actionHandlers.set(N,[]),H={},_.Uh(_.VM.getInstance(),(H[N]=function(){var A=_.E1.apply(0,arguments);return(O.actionHandlers.get(N)||[]).map(function(Z){return Z.apply(null,_.W6(A))})},H),this.getRoot())),this.actionHandlers.get(N).push(t)};
_.V.unregisterActionHandler=function(N){if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.C9(_.VM.getInstance(),(t[N]=!0,t),this.getRoot())}else(t=this.actionHandlers.get(N))?(t.pop(),t.length===0&&(t={},_.C9(_.VM.getInstance(),(t[N]=!0,t),this.getRoot()),this.actionHandlers.delete(N))):_.J_(new _.fF("Attempted to unregister an action handler which is not registered.",N))};
_.V.addPageDisposeJob=function(N){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Ttg(this.rootElement.pageDisposeJobs,N)};
_.V.removePageDisposeJob=function(N){this.rootElement.pageDisposeJobs&&_.rt(this.rootElement.pageDisposeJobs,N)};
_.V.dispatchEvent=function(N,t){_.or(this.rootElement,N,t)};
_.V.provideRenderingData=function(N,t){this.rootElement.provideRenderingData(N,t)};
_.V.scrollWatchTo=function(N,t){var O;(O=this.watchScrollManager)==null||O.scrollWatchTo(N,t)};
_.V.focusOnPlayer=function(){var N=this.getElement("PLAYER");_.yB(N,function(){if(N&&N.firstElementChild){var t=N.querySelector(".html5-video-player");t&&(_.Lc(_.cY().resolve(_.j9)),t.focus())}else _.J_(Error("gp"))})};
_.V.subscribeToActiveChanged=function(N,t){t=t===void 0?!0:t;var O=_.Jc(_.v5(),_.OFd,function(H){N(H)});
t&&N(_.OFd(_.v5().getState()));return O};
_.V.isActive=function(){return _.OFd(_.v5().getState())};
_.V.onAttached=function(){var N=_.h("external_fullscreen");_.h("use_unified_flag_accessor")&&(N=_.cY().resolve(_.Qo5).retriever.getFlag(_.aoE));(N||_.vZ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var nH9=function(N){return N.getRoot().is==="ytd-watch-flexy"||N.getRoot().is==="ytd-watch-grid"},Wx=function(N){return N.getRoot().is==="ytd-watch-fixie"};
_.nW.prototype.initPersistentModules=function(){if(Wx(this)||nH9(this)&&_.h("kevlar_watch_flexy_theater_manager")){var N=new _.faR(this);_.L1(this,N)}N=new _.Ld9(this);_.L1(this,N);N=new _.T1(this);_.L1(this,N);N=new _.S_l(this);_.L1(this,N);N=new _.xK(this);_.L1(this,N);N=new _.w$(this);_.L1(this,N);if(Wx(this)||nH9(this)&&_.h("kevlar_watch_flexy_playlist_manager"))N=new _.ZTs(this),_.L1(this,N);_.h("web_thumbnail_to_watch_transition")&&(N=new fm9(this),_.L1(this,N))};
_.nW.prototype.initOrDisposeActiveModules=function(N){N?(this.watchScrollManager=new _.kK(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.rBD(this)),_.h("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new qb(this)),this.activeModules.push(new _.qlV(this)),Wx(this)&&this.activeModules.push(new q3l(this)),this.activeModules.push(new _.F11(this)),this.activeModules.push(new _.X5V(this)),(Wx(this)||_.h("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.IAV(this)),this.activeModules.push(new _.Gvs(this)),(Wx(this)||_.h("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.gH8(this)),(Wx(this)||_.h("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.N8l(this)),_.h("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.ZM$(this),this.activeModules.push(this.watchCinematicManager)),_.h("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.oj1(this)),_.h("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.MD$(this)),N=_.h("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.h("kevlar_watch_flexy_comments_manager")&&!N&&this.activeModules.push(new _.cBm(this)),_.h("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.HJl(this)),this.activeModules.push(new _.mp$(this)),this.activeModules.push(new _.ln8(this)),_.h("web_enable_timely_actions")&&this.activeModules.push(new _.vY$(this)),_.h("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.jXd(this)),_.h("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Cpr(this)),_.h("web_fullscreen_components")&&this.activeModules.push(new _.G8V(this)),_.h("web_player_rtr_ctrls")&&this.activeModules.push(new _.uuN(this)),(_.h("enable_creator_chatbot")||_.h("enable_creator_chatbot_link_out"))&&this.activeModules.push(new ui$(this))):(_.db(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.nW.prototype.disposeInternal=function(){_.cQ.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.cv.Object.defineProperties(_.nW.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var JYN,HM,oCw,sxD,tuu,Omw,Ncr,HmA;JYN=function(){var N=_.yZ();N.info||(N.info={});return N.info};
HM=function(N){return Math.round(_.jb()+N)};
oCw=function(){var N;if(_.h("csi_use_performance_navigation_timing")){var t,O,H,A=_.$Y==null?void 0:(N=_.$Y.getEntriesByType)==null?void 0:(t=N.call(_.$Y,"navigation"))==null?void 0:(O=t[0])==null?void 0:(H=O.toJSON)==null?void 0:H.call(O);A?(A.requestStart=HM(A.requestStart),A.responseEnd=HM(A.responseEnd),A.redirectStart=HM(A.redirectStart),A.redirectEnd=HM(A.redirectEnd),A.domainLookupEnd=HM(A.domainLookupEnd),A.connectStart=HM(A.connectStart),A.connectEnd=HM(A.connectEnd),A.responseStart=HM(A.responseStart),
A.secureConnectionStart=HM(A.secureConnectionStart),A.domainLookupStart=HM(A.domainLookupStart),A.isPerformanceNavigationTiming=!0,N=A):N=_.$Y.timing}else N=_.h("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.$Y.timing)):_.$Y.timing;return N};
sxD=function(){if(_.$Y.getEntriesByType){var N=_.$Y.getEntriesByType("paint");if(N=_.ey(N,function(O){return O.name==="first-paint"}))return HM(N.startTime)}var t;
_.h("csi_use_performance_navigation_timing")?t=_.$Y.getEntriesByType("first-paint")[0].startTime:t=_.$Y.timing.msFirstPaint;return t?Math.max(0,t):0};
tuu=function(){var N=window.location.protocol,t=_.$Y.getEntriesByType("resource");t=_.Aw(t,function(O){return O.name.indexOf(N+"//fonts.gstatic.com/s/")===0});
(t=Ncr(t,function(O,H){return H.duration>O.duration?H:O}))&&t.startTime>0&&t.responseEnd>0&&(_.ip("wffs",HM(t.startTime)),_.ip("wffe",HM(t.responseEnd)))};
Omw=function(N,t){N=document.querySelector(N);if(!N)return!1;var O="",H=N.nodeName;H==="SCRIPT"?(O=N.src,O||(O=N.getAttribute("data-timing-href"))&&(O=window.location.protocol+O)):H==="LINK"&&(O=N.href);_.H6(document)&&N.setAttribute("nonce",_.H6(document));return O?(N=_.$Y.getEntriesByName(O))&&N[0]&&(N=N[0],O=_.jb(),_.ip("rsf_"+t,O+Math.round(N.fetchStart)),_.ip("rse_"+t,O+Math.round(N.responseEnd)),N.transferSize!==void 0&&N.transferSize===0)?!0:!1:!1};
_.ADd=function(N,t){_.oo(function(){_.cc("").info.actionType=N;t&&_.Gm("TIMING_AFT_KEYS",t);_.Gm("TIMING_ACTION",N);var O=_.X8x(_.Ro("TIMING_INFO",{}));Object.keys(O).length>0&&_.up(O);O={isNavigation:!0,actionType:_.SkN(_.Ro("TIMING_ACTION"))};var H=_.Ro("PREVIOUS_ACTION");H&&(O.previousAction=_.SkN(H));if(H=_.Ro("CLIENT_PROTOCOL"))O.httpProtocol=H;if(H=_.Ro("CLIENT_TRANSPORT"))O.transportProtocol=H;(H=_.z8())&&H!=="UNDEFINED_CSN"&&(O.clientScreenNonce=H);H=_.PKx();if(H===1||H===-1)O.isVisible=!0;
H=_.gsG().loadType==="cold";var A=JYN();H||(H=A.yt_lt==="cold");if(H){O.loadType="cold";H=JYN();A=oCw();var Z=_.jb(),U=_.Ro("CSI_START_TIMESTAMP_MILLIS",0);U>0&&!_.h("embeds_web_enable_csi_start_override_killswitch")&&(Z=U);Z&&(_.ip("srt",A.responseStart),H.prerender!==1&&_.LVO(Z));H=sxD();H>0&&_.ip("fpt",H);H=oCw();H.isPerformanceNavigationTiming&&_.up({performanceNavigationTiming:!0},void 0);_.ip("nreqs",H.requestStart,void 0);_.ip("nress",H.responseStart,void 0);_.ip("nrese",H.responseEnd,void 0);
H.redirectEnd-H.redirectStart>0&&(_.ip("nrs",H.redirectStart,void 0),_.ip("nre",H.redirectEnd,void 0));H.domainLookupEnd-H.domainLookupStart>0&&(_.ip("ndnss",H.domainLookupStart,void 0),_.ip("ndnse",H.domainLookupEnd,void 0));H.connectEnd-H.connectStart>0&&(_.ip("ntcps",H.connectStart,void 0),_.ip("ntcpe",H.connectEnd,void 0));H.secureConnectionStart>=_.jb()&&H.connectEnd-H.secureConnectionStart>0&&(_.ip("nstcps",H.secureConnectionStart,void 0),_.ip("ntcpe",H.connectEnd,void 0));_.$Y&&"getEntriesByType"in
_.$Y&&tuu();H=[];if(document.querySelector&&_.$Y&&_.$Y.getEntriesByName)for(var C in HmA)HmA.hasOwnProperty(C)&&(A=HmA[C],Omw(C,A)&&H.push(A));if(H.length>0)for(O.resourceInfo=[],C=_.D(H),H=C.next();!H.done;H=C.next())O.resourceInfo.push({resourceCache:H.value})}_.up(O);O=_.Bc();O.preLoggedGelInfos||(O.preLoggedGelInfos=[]);C=O.preLoggedGelInfos;O=_.B6O();H=void 0;for(A=0;A<C.length;A++)if(Z=C[A],Z.loadType){H=Z.loadType;break}if(_.gsG().loadType==="cold"&&(O.loadType==="cold"||H==="cold")){H=_.yxO();
A=_.Bc();A=A.gelTicks?A.gelTicks:A.gelTicks={};for(var F in H)if(!(F in A))if(typeof H[F]==="number")_.ip(F,_.hb(F));else if(_.h("log_repeated_ytcsi_ticks"))for(Z=_.D(H[F]),U=Z.next();!U.done;U=Z.next())U=U.value,_.ip(F.slice(1),U);F={};H=!1;C=_.D(C);for(A=C.next();!A.done;A=C.next())H=A.value,_.wN(O,H),_.wN(F,H),H=!0;H&&_.up(F)}_.kLl(!0);F=_.Ro("TIMING_ACTION");_.s2("ytglobal.timingready_")&&F&&_.mSz()&&_.xSy()&&_.w8l()})()};
Ncr=function(N,t){return Array.prototype.reduce.call(N,t,{duration:0})};
HmA={'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 ZmV={};ZmV.YtVisibilityRootBehavior=[_.pPr.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.F$(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Ro("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var N=_.Ro("INNERTUBE_CLIENT_NAME")!=="WEB";_.h("kevlar_use_vimio_behavior")&&N&&_.Qqa()}}];_.As={};_.As.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(N){N.detail.contextProvider=this;N.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
ZmV.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.lj();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(N){var t=this;this.pageCount+=1;_.h("kevlar_use_vimio_behavior")&&(_.Ro("INNERTUBE_CLIENT_NAME")==="WEB"?_.GB.addJob(function(){t.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(N)},
loadPage_:function(N){this.data=N},
ytPageBehaviorActiveObserver_:function(N){var t=this;_.h("kevlar_use_vimio_behavior")&&(N?_.Ro("INNERTUBE_CLIENT_NAME")==="WEB"?_.GB.addJob(function(){t.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(N){if(!this.setScrollTopJobId_){var t=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){t.setScrollTopJobId_=0;var O=_.cY().resolve(_.BY(_.j9));O&&_.Lc(O);this.getPageScrollingElement().scrollTop=N}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.xG(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var vCA;var Oc=function(){var N=_.k.apply(this,arguments)||this;N.playerListenerConfig=null;N.actionMap={"yt-show-watch-page-survey":"openSurvey"};return N};
_.p(Oc,_.k);_.V=Oc.prototype;_.V.dataChanged=function(){var N=this,t=_.si();t&&t.getPlayerPromise().then(function(H){N.maybeRemovePlayerListeners(H)});
var O=this.data&&this.data.survey;O&&((O=(O=O.singleOptionSurveyRenderer||O.checkboxSurveyRenderer||O.multiStageSurveyRenderer)&&O.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(t,O):this.openSurvey())};
_.V.triggerWatchPageSurvey=function(N,t){var O=this,H,A,Z,U,C,F,g,B,c;return _.K(function(u){if(u.nextAddress==1)return N?u.yield(N.getPlayerPromise(),2):u.return();O.player=u.yieldResult;if(!O.player)return u.return();H={};A=_.D(t);for(Z=A.next();!Z.done;Z=A.next())U=Z.value,C=_.D(O.createEventListenerPair(U)),F=C.next().value,g=C.next().value,B=F,c=g,B&&c&&(H[B]=c,O.ytPlayerListenerBehavior.listenToPlayerEvent(O.player,B,c));O.playerListenerConfig=H;_.Ty(u)})};
_.V.createEventListenerPair=function(N){var t=N.playbackEventTrigger;return t?this.handlePlaybackTrigger(t):(N=N.watchTimeTrigger)?this.handleWatchTimeTrigger(N):[void 0,void 0]};
_.V.handleWatchTimeTrigger=function(N){var t=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var O=N.videoWatchFraction,H=N.watchTimeSec;return H&&O?["onVideoProgress",function(){t.player&&t.isWatchTimeConditionMet(t.player,O,H)&&t.showSurvey()}]:[void 0,
void 0]};
_.V.isWatchTimeConditionMet=function(N,t,O){var H=N.getProgressState(),A=H.current-this.lastKnownPlaybackPosition;A<5&&(this.accumulatedMediaTime+=A);this.lastKnownPlaybackPosition=H.current;H=Math.round(this.accumulatedMediaTime/H.duration*1E3)/1E3;return N.getPresentingPlayerType&&N.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>O||H>t)};
_.V.handlePlaybackTrigger=function(N){var t=this;N=N.playbackEvent;if(N==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var O="onStateChange";var H=function(A){A===0&&t.showSurvey()}}else N==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(O="onVideoProgress",H=function(A){t.player&&t.player.getPresentingPlayerType&&t.player.getPresentingPlayerType()===1&&A&&t.showSurvey()}):N==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(O="onAdEnd",H=this.showSurvey);
return[O,H]};
_.V.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.V.openSurvey=function(){var N=this,t=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.$fm(!!t));_.GB.addJob(function(){N.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:t}})},0,0)};
_.V.maybeRemovePlayerListeners=function(N){if(this.playerListenerConfig){for(var t=_.D(Object.keys(this.playerListenerConfig)),O=t.next();!O.done;O=t.next())O=O.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(N,O,this.playerListenerConfig[O]);this.playerListenerConfig=null}};
Oc.prototype.dataChanged=Oc.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],Oc.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],Oc.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Oc.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],Oc.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Oc.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Oc.prototype,"playerListenerConfig",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],Oc.prototype,"lastKnownPlaybackPosition",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],Oc.prototype,"accumulatedMediaTime",void 0);_.W([_.X(),_.Q("design:type",Object)],Oc.prototype,"player",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Oc.prototype,"dataChanged",null);_.W([_.en({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Oc);
_.n(Oc,"ytd-survey-trigger-renderer",function(){if(vCA!==void 0)return vCA;var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return vCA=N},{mode:1});
}catch(e){_._DumpException(e)}
try{
var AdJ;_.ua=function(N){var t=document.createElement("link");_.F1(t,N,"stylesheet");document.head.appendChild(t)};
_.Sj=function(N,t){var O,H;return _.K(function(A){O=document.createElement("div");O.id=N.id;N.className&&(O.className=N.className);H=N.element;if(!H)throw Error("gk");if(N.location==="prepend")H.prepend(O);else if(N.location==="appendChild")H.appendChild(O);else if(N.location==="after")H.after(O);else throw Error("hk");return A.return(_.Io(O,t,"jj"))})};
_.ha=function(N){var t;return _.K(function(O){(t=document.getElementById(N))&&t.remove();_.Ty(O)})};
_.Mh=function(N,t){var O=document.querySelector(N);O?t(O):setTimeout(function(){_.Mh(N,t)},1E3)};
_.ZCx=function(N,t,O){var H;_.K(function(A){if(A.nextAddress==1)return(H=document.getElementById(N))?A.jumpTo(2):A.yield(AdJ(N,t,O),2);if(H=document.getElementById(N))H.style.display="block";_.Ty(A)})};
AdJ=function(N,t,O){return _.K(function(H){return H.return(new Promise(function(A){_.Mh("div #panels",function(Z){_.Sj({element:Z,location:"appendChild",id:N,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+O},t);A()})}))})};_.ba=_.q(function(N){var t=N.text;var O=N.onClick;var H=N.color;var A=N.backgroundColor;var Z=N.buttonSize;var U=N.disabled;var C=N.iconName;var F=N.iconSize;var g=N.className;var B=N.iconClassName;N=N.ariaLabel;var c=_.Ui(function(S){O(S)}),u={};
return _.d("button",{class:_.V7("ytpStandardButtonsHost",(u.ytpStandardButtonsLarge=function(){return(Z==null?void 0:Z())==="large"},u),g),
"on:click":c,style:_.FM({color:H,"background-color":A}),disabled:U,"aria-label":N},_.d(_.y,{cond:C,then:function(){return _.d(_.dq,{className:_.V7("ytpStandardButtonsIconContainer",B),icon:C,size:F})}}),t)},"ij");_.VF5=_.q(function(N){var t,O,H={};return _.d("div",{class:_.V7("ytprototypesEngagementPanelComponentHost",(H.ytprototypesEngagementPanelComponentHostMweb=N.isMweb,H),N.className),id:N.id},_.d("div",{class:_.V7("ytprototypesEngagementPanelComponentEngagementPanelHeader",N.headerClassName)},_.d("div",null,N.header()),_.d("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.d("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(t=N.HeaderButton)==null?void 0:t.call(N)),
_.d(_.ba,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var A;(A=N.onHide)==null||A.call(N);var Z;if((Z=N.preventDefault)==null||!Z.call(N))if(A=N.id(),A=document.getElementById(A))A.style.display="none"}}))),_.d("div",{class:_.V7("ytprototypesEngagementPanelComponentEngagementPanelContent",N.contentClassName),
style:function(){var A,Z;return"height: "+(((A=N.height)==null?0:A.call(N))||((Z=N.isMweb)==null?0:Z.call(N))?"100%":"800px")+";"}},N.content()),_.d("div",null,(O=N.Footer)==null?void 0:O.call(N)))},"kj");
}catch(e){_._DumpException(e)}
try{
var fxV=new _.Fp("replaceFeedContentAction");var nC1;var Wn1;var rYD=function(){return _.k.apply(this,arguments)||this};
_.p(rYD,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],rYD.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],rYD.prototype,"data",void 0);_.W([_.en({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],rYD);
_.n(rYD,"ytd-sub-feed-option-renderer",function(){if(Wn1!==void 0)return Wn1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Wn1=N},{mode:1});var Ixw;var Rh=function(){return _.k.apply(this,arguments)||this};
_.p(Rh,_.k);Rh.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Rh.prototype,"ytRendererStamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Rh.prototype,"data",void 0);_.W([_.en({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Rh);
_.n(Rh,"ytd-sub-feed-selector-renderer",function(){if(Ixw!==void 0)return Ixw;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Ixw=N},{mode:1});var v$=function(){return _.k.apply(this,arguments)||this};
_.p(v$,_.k);
v$.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}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],v$.prototype,"data",void 0);_.W([_.en({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],v$);
_.n(v$,"ytd-browse-feed-actions-renderer",function(){if(nC1!==void 0)return nC1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return nC1=N},{mode:1});var lx$;var Qxr;var JF=function(){return _.k.apply(this,arguments)||this};
_.p(JF,_.k);JF.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],JF.prototype,"data",void 0);_.W([_.en({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],JF);
_.n(JF,"ytd-mini-channel-renderer",function(){if(Qxr!==void 0)return Qxr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Qxr=N},{mode:1});var mod;var oh=function(){return _.k.apply(this,arguments)||this};
_.p(oh,_.k);oh.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oh.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],oh);
_.n(oh,"ytd-vertical-channel-section-renderer",function(){if(mod!==void 0)return mod;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return mod=N},{mode:1});var sL=function(){return _.k.apply(this,arguments)||this};
_.p(sL,_.k);sL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sL.prototype,"data",void 0);_.W([_.en({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],sL);
_.n(sL,"ytd-browse-secondary-contents-renderer",function(){if(lx$!==void 0)return lx$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return lx$=N},{mode:1});var EC9;var NJ=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};N.notActive=!1;N.isConstrainedList=!1;N.marginSettings=0;return N};
_.p(NJ,_.k);_.V=NJ.prototype;
_.V.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(N){var t;return(N==null?void 0:(t=N.webComponentHint)==null?void 0:t.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.V.getPath=function(N,t){var O="data.tabs.#"+t+".";N.tabs[t].tabRenderer?O+="tabRenderer.":N.tabs[t].expandableTabRenderer&&(O+="expandableTabRenderer.");return O+"content.sectionListRenderer"};
_.V.computeDisplayedContent=function(N){this.unlinkPaths("content");if(N&&N.tabs)for(var t=N.tabs.length,O=0;O<t;O++){var H=N.tabs[O].tabRenderer||N.tabs[O].expandableTabRenderer;if(H.selected&&H.content)return this.linkPaths("content",this.getPath(N,O)),H.content}return null};
_.V.computeHasSecondaryColumnData=function(N){return!!N&&!!N.secondaryContents};
_.V.onRetrieveLocation=function(N,t){t.locationRetrieved(t.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);N.stopPropagation()};
_.V.onYtServiceRequestSent=function(N,t){_.h("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(t)};
_.V.onYtServiceRequestCompleted=function(N,t){_.h("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(t)};
_.V.onReplaceFeedContentAction=function(N){if(!_.h("replace_feed_content_action_killswitch")&&!this.notActive){var t;(N=(t=_.M(N,fxV))==null?void 0:t.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(N)}};
_.V.handleServiceRequestActions=function(N){if(N=N.actions){N=_.D(N);for(var t=N.next();!t.done;t=N.next()){t=t.value;var O=void 0;((O=_.M(t,fxV))==null?0:O.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.M(t,fxV).items)}}};
NJ.prototype.onYtServiceRequestCompleted=NJ.prototype.onYtServiceRequestCompleted;NJ.prototype.onYtServiceRequestSent=NJ.prototype.onYtServiceRequestSent;NJ.prototype.onRetrieveLocation=NJ.prototype.onRetrieveLocation;_.W([_.Y(_.d4),_.Q("design:type",Object)],NJ.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],NJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],NJ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],NJ.prototype,"data",void 0);_.W([_.X({computed:"computeDisplayedContent(data)"}),_.Q("design:type",Object)],NJ.prototype,"content",void 0);
_.W([_.X({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],NJ.prototype,"hasSecondaryColumnData",void 0);_.W([_.X({value:function(){return window.outerHeight>1024?3:2}}),
_.Q("design:type",Number)],NJ.prototype,"initialCount",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],NJ.prototype,"pageSubtype",void 0);_.W([_.B2("ytd-section-list-renderer"),_.Q("design:type",Object)],NJ.prototype,"listRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],NJ.prototype,"notActive",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],NJ.prototype,"isConstrainedList",void 0);
_.W([_.X(),_.Q("design:type",String)],NJ.prototype,"responsiveSizing",void 0);_.W([_.X(),_.Q("design:type",Number)],NJ.prototype,"marginSettings",void 0);_.W([_.dz("yt-retrieve-location"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],NJ.prototype,"onRetrieveLocation",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],NJ.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],NJ.prototype,"onYtServiceRequestCompleted",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],NJ);
_.n(NJ,"ytd-two-column-browse-results-renderer",function(){if(EC9!==void 0)return EC9;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return EC9=N},{mode:2});
}catch(e){_._DumpException(e)}
try{
var LNd=function(N){if((N==null?void 0:N.value)===void 0||N==null||!N.unit)return"initial";a:{switch(N.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var t="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":t="%";break a}t=void 0}return t?""+N.value+t:"initial"};_.o_(_.q(function(N){var t=N.data;N=_.D(_.b$(!1,void 0,"VotqNe"));var O=N.next().value,H=N.next().value;_.Q8(function(){_.VM.getInstance().triggerAction("yt-request-timely-shelf-state")});
var A=_.aa(function(){var g,B,c=(g=_.M(t().rendererContext,_.BV))==null?void 0:(B=g.loggingDirectives)==null?void 0:B.trackingParams;if(c)return _.ib(c)},void 0,"AvMXxb");
_.Uh(_.VM.getInstance(),{"yt-hide-shopping-timely-shelf":function(){H(!1);var g=_.z8(),B=A();g&&B&&_.r0(g,[B])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){H(!0);var g=_.z8(),B=A();g&&B&&_.Wc(g,[B])})}});
var Z=function(){var g;return(g=t().image)==null?void 0:g.image},U=function(){var g,B;
return!!((g=Z())==null?0:(B=g.sources)==null?0:B.some(function(c){var u;return!!(c==null?0:(u=c.clientResource)==null?0:u.imageName)}))},C=function(){var g;
return((g=t().image)==null?void 0:g.height)||40},F=function(){var g;
return(g=t().image)==null?void 0:g.backgroundColor};
N={};return _.d("yt-shopping-timely-shelf-content-view-model",{el:_.E4(_.wZ(function(){return t().rendererContext})),
class:_.V7("ytShoppingTimelyShelfContentViewModelHost",(N.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(t().image||t().avatar||t().line1)&&O()},N)),
style:_.FM({"--shopping-timely-shelf-content-padding-top":function(){var g;return LNd((g=t().padding)==null?void 0:g.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var g;return LNd((g=t().padding)==null?void 0:g.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var g;return LNd((g=t().padding)==null?void 0:g.start)},
"--shopping-timely-shelf-content-padding-end":function(){var g;return LNd((g=t().padding)==null?void 0:g.end)},
"--yt-shopping-timely-shelf-background-color":function(){return t().backgroundColor!==void 0?_.TV(t().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var g,B;return((B=(g=t().image)==null?void 0:g.cornerRadius)!=null?B:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return F()!==void 0?_.TV(F()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var g;return(((g=t().image)==null?void 0:g.width)||40)+"px"}})},_.d(_.y,{cond:Z,
then:function(g){var B={};return _.d(_.Qt,{preserveHeight:!0,preserveWidth:!0,height:C,data:g,alt:"",className:_.V7("ytShoppingTimelyShelfContentViewModelImage",(B.ytShoppingTimelyShelfContentViewModelIcon=U,B))})}}),_.d(_.iF,{data:function(){return t().avatar}},{avatarViewModel:_.Dv}),_.d("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.d(_.iF,{data:function(){return t().line1}},{shoppingContentLineViewModel:function(g){return _.d(_.bY,{data:g.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.d(_.iF,{data:function(){return t().line2}},{shoppingContentLineViewModel:function(g){return _.d(_.bY,{data:g.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.d("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.d(_.iF,{data:function(){var g;
return(g=t().button)!=null?g:[]}},{buttonViewModel:function(g){var B=g.data;
return _.d(_.Pu,{data:B,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(c){B().onTap&&c.stopPropagation()}})}})))},"Go"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.$O}});_.zhR={};
_.zhR.YtdWatchBehavior=[_.G.YtRendererBehavior,_.iE.YtPlayerListenerBehavior,_.LD.YtRendererstamperBehavior,_.Wu.YtActionHandlerBehavior,_.As.YtPageBehavior,_.nD.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.vZ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.h("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 _.vZ("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.h("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 _.uP("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.uP("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.h("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.h("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.h("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.h("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_enable_ghost_cards")||_.h("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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 _.h("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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 _.h("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.h("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(N,t,O){return N&&(t||!O)},
computeShowGhostRelated_:function(N,t,O){return N&&(t||!O)},
monitorScroll:!0,configureRendererStamper:function(){var N={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.G$(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.G$(["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"||_.h("swa_prov_panels_ks")?N.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(N.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},N.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return N},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var N=this;this.watchController=void 0;this.pageDisposeJobs=[function(){N.showMetadataPlaceholder_()},
function(){_.h("web_watch_dont_clear_comments")||N.clearComments_()},
function(){N.clearPlayerAds_()},
function(){N.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.h("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.h("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.dfw(function(){return _.oM(N)},this.hostElement);
this.pageDisposeJobs.push(function(){N.youThereManager_.reset()});
_.h("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){N.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.zG;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;_.h("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));_.h("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Fb(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(N){N&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:N}),N.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(N){_.h("kevlar_watch_flexy_theater_manager")&&(this.theater=N,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(N){!_.h("kevlar_watch_while_v2")&&!_.h("web_watch_pip")||N||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(N){this.active!==void 0&&(this.fullscreen=N,_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(N){this.active!==void 0&&(_.or(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(N>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(N){this.initCsi_();this.updatePageData_(N)},
updatePageData_:function(N){var t=this;if(N)if(this.data===N){this.onPageLoadWithSameData_();var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data)}else this.data=N;this.playlist&&_.bp({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.zT("nw");this.loading=!1;_.WX(_.GB,function(){t.initDclkstatus_();var H,A=((H=t.player)==null?void 0:H.getVideoData().cpn)||"";_.JG9(function(Z,U){_.LN1(Z,U,A)})})},
onPageLoadWithSameData_:function(){_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var N=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!N);this.set("loadingData.playlistLoading",N&&N!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),N=this.watchNextSkeletonEl_.firstElementChild;N;)N.classList.remove("hidden"),N=N.nextElementSibling;if(_.h("kevlar_watch_frame0_loading_state")){var t,O,H;N=(t=this.loadingData)==null?void 0:(O=t.endpoint)==null?void 0:(H=O.watchEndpoint)==null?void 0:H.videoId;var A;N&&(A="https://i.ytimg.com/vi/"+N+"/frame0.jpg");_.O6(this.hostElement).querySelector("#player").style.backgroundImage=A?"url("+A+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var N=_.O6(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&N&&(N.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var t,O;(O=(t=this.watchMetadata).updateSentimentBarWidth)==
null||O.call(t);var H,A;(A=(H=this.watchMetadata).resize)==null||A.call(H)}_.h("kevlar_watch_frame0_loading_state")&&(_.O6(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(N){var t=_.O6(this.hostElement).querySelector(N);t?_.vC(t,!1):_.J_(new _.fF("Overscroll monitor not found for component: ",N))},
removeSplitScrollMouseTrap:function(N){var t=_.O6(this.hostElement).querySelector(N);t?_.JH(t):_.J_(new _.fF("Disposal component for  overscroll monitoring not found: ",N))},
onLoadingChanged_:function(N){N?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.h("web_thumbnail_to_watch_transition")&&!_.F8J||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.h("web_thumbnail_to_watch_transition")&&!_.F8J||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(N){var t=this;N?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.GB.addLowPriorityJob(function(){t.onWindowResized_(_.$H(!0))})},
updateTheaterModeState_:function(N){if(!_.h("kevlar_watch_flexy_theater_manager")){N=N||this.fullWindowMode_;if(this.theater!==void 0||N)this.theater=N;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();N&&_.ZF8()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var N=this.fullBleedPlayer?_.O6(this.hostElement).querySelector("#player-full-bleed-container"):_.O6(this.hostElement).querySelector("#player-container-inner");var t=this.getPlayerContainer(),O=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip");t.parentElement!==N&&(O&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.oM(this).appendTo(N,t))},
updateErrorScreenLocation:function(){var N=_.O6(this.hostElement).querySelector("#error-screen"),t=this.fullBleedPlayer?_.O6(this.hostElement).querySelector("#player-full-bleed-container"):_.O6(this.hostElement).querySelector("#player");N.parentElement!==t&&t.appendChild(N)},
deactivateMiniplayerAndResetPlayer:function(){var N=this;return _.K(function(t){if(t.nextAddress==1)return t.yield(_.cY().resolve(_.kf).deactivate(),2);N.updatePlayerLocation();_.Ty(t)})},
updateCinematicsLocation:function(){var N=this.getElement("CINEMATICS");if(N){var t=this.getCinematicsLocationContainer();N.parentElement!==t&&t.appendChild(N)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.O6(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.O6(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(N,t,O){var H=document.documentElement.hasAttribute("dark"),A=!H&&this.cinematicLightTheme;return O||N&&H||t&&H||(t||N)&&A},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var N=this,t;(t=this.watchController)==null||t.setWatchNextResponse(this.data);_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.cY().resolve(_.$8).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.h("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.GB.addLowPriorityJob(function(){_.Np(N.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.h("web_watch_start_chat_in_theater_mode")){var O,H,A;if((O=this.data)==null?0:(H=O.contents)==null?0:(A=H.twoColumnWatchNextResults)==null?0:A.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Z,U;((Z=this.data)==null?0:(U=Z.contents)==null?0:U.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(N){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData);N&&N.playabilityStatus&&(t=this.isVideoPlayable_(N.playabilityStatus,this.getPlayerOverlays_(this.data)),N=this.isLiveStreamOffline_(N.playabilityStatus),t&&!N||_.yB(this,function(){_.zT("pbu")}));
this.setPlayerAds_();_.Np(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(N,t){if((_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"))&&this.playerData&&t)return this.playerData.videoDetails},
watchPageActiveChanged_:function(N){_.v5().dispatch(_.$Ld(this.active));N?this.activate_():this.deactivate_()},
attached:function(){var N=this;this.watchController=new _.nW(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);_.h("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var t=_.oM(this);_.h("kevlar_disable_prepare_player")||
t.preparePlayer();_.h("kevlar_watch_flexy_playlist_manager")||_.cY().resolve(_.$8).setPlayer(t);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();t={"--ytd-watch-flexy-scrollbar-width":_.O5()+"px"};this.is==="ytd-watch-grid"&&(_.v5().dispatch(_.H5({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),t["--ytd-watch-flexy-sidebar-width"]=_.o2$+"px",t["--ytd-watch-grid-horizontal-page-margins"]=_.xy+"px",t["--ytd-watch-grid-columns-top-margins"]=
_.RAA+"px",t["--ytd-watch-grid-min-player-height-medium"]="360px");!_.uP("kv_pl_mx_sz_ks")&&_.uP("kevlar_watch_max_player_width")&&(t["--ytd-watch-flexy-max-player-width-wide-screen"]=_.sk1+"px");_.uP("kevlar_watch_flexy_metadata_height")&&(t["--ytd-watch-flexy-space-below-player"]=_.tOl+"px");this.safeUpdateStyles(t);_.h("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.CB(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return N.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.O6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var N=_.O5(),t=_.ky+N,O=t;this.fixedPanels&&(t+=_.o2$);var H=657+N;N=1327+N;_.O6(this.hostElement).querySelector("#two-column-query").query="(min-width: "+t+"px)";_.O6(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(H+"px), (min-height: 630px) and (min-width: ")+(t+"px) and (max-width: ")+(N+"px)");_.O6(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(N+"px)");
_.O6(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+O+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var N=_.O6(this.hostElement).querySelector("#miniplayer-bar").firstChild,t=this.squeezeback&&!_.h("web_watch_squeezeback_player_size_killswitch");return N&&N.active||this.theater||_.h("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||t||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.aN(NaN,NaN):_.OO8(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.OO8(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.F$(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var N=this;this.onWindowResized_(_.$H());_.h("browse_skeleton_removal_on_watch_killswitch")||_.vZ("IS_SHELL_LOAD")&&_.RUR();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var t=_.oM(this);t.addEventListener("yt-player-updated",_.Fb(this,this.onPlayerUpdated_));t.getPlayerPromise().then(function(O){N.playerApiReady_(O)});
_.h("kevlar_watch_flexy_playlist_manager")||(t=_.cY().resolve(_.$8),_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&t.addEventListener("yt-navigate",_.Fb(this,this.onYtNavigate_)),t.setPlaylistComponent(_.O6(this.hostElement).querySelector("#playlist")),t.addEventListener("yt-playlist-data-updated",_.Fb(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.GB.addLowPriorityJob(function(){_.or(N.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.oM(this).removeEventListener("yt-player-updated",_.Fb(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.h("kevlar_watch_flexy_playlist_manager")){var N=_.cY().resolve(_.$8);_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&N.removeEventListener("yt-navigate",_.Fb(this,this.onYtNavigate_));
N.cancelVideoSkip();N.removeEventListener("yt-playlist-data-updated",_.Fb(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.or(this.hostElement,"yt-autonav-pause-player",!1);N=_.G8();_.h("kevlar_exit_fullscreen_leaving_watch")&&N&&_.Rr(N)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(N){this.player&&this.player.updateVideoData({rvs:N.rvs})},
getPageContents:function(N){return N&&N.contents&&N.contents.twoColumnWatchNextResults&&N.contents.twoColumnWatchNextResults.results&&N.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(N){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",N)},
onRetrieveLocation_:function(N,t){t.hasComments?t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):t.locationRetrieved("/related_ajax",void 0);N.stopPropagation()},
onSubscriptionChanged_:function(N,t){this.player&&(t?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ADd("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.O6(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.O6(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(N){this.player=N;this.setPlayerState(N.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.h("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.h("kevlar_unified_player")||_.h("kevlar_player_new_bootstrap_adoption"))&&_.ni()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(N,t){t=t===void 0?!0:t;_.G8()&&_.h("external_fullscreen")&&_.Rr(document.documentElement);this.theaterRequested_=N;t&&_.Xe("wide",N?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.sl(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.or(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(N){_.o0(N,typeof this.player),this.player&&_.o0(N,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var N;((N=this.player)==null?0:N.isFullscreen())?this.player.toggleFullscreen():_.sl(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(N,t){return this.loading?t:!!Object.keys(N).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(N){if(N){N=_.D(N);for(var t=N.next();!t.done;t=N.next())t=t.value,t.youThereRenderer&&_.BzR(this.youThereManager_,t.youThereRenderer)}},
setPlaylistData_:function(N){return N||{}},
userEngagementConfigDataChanged_:function(N){if(N)if(N.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var t=this.youThereManager_;_.jO()<N.lowEngagementThresholdMs||_.iOu(t,!0)}else N.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.sl(this.hostElement,"yt-autonav-pause-user-engagement",[N])},
isPlayerUnavailable_:function(N,t,O){return!!N&&!this.isVideoPlayable_(N,O)&&!t},
getPlayerOverlays_:function(N){return(N==null?void 0:N.playerOverlays)||null},
isVideoPlayable_:function(N,t){if(!N)return!1;var O=N.status==="OK"||N.status==="LIVE_STREAM_OFFLINE",H=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",N)||this.get("errorScreen.ypcTrailerRenderer",N);N=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",N);var A;t=t==null?void 0:(A=t.playerOverlayRenderer)==null?void 0:A.gatedActionsOverlayRenderer;return!!O||!!H||!!N||!!t},
hasWatchNextResponseErrorRenderer:function(N){var t=this.getPageContents(N),O,H,A,Z,U;return!(N==null?0:(O=N.contents)==null?0:(H=O.twoColumnWatchNextResults)==null?0:H.secondaryResults)&&!!((A=t[0])==null?0:(Z=A.itemSectionRenderer)==null?0:(U=Z.contents[0])==null?0:U.backgroundPromoRenderer)},
isLiveStreamOffline_:function(N){return N?N.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(N,t,O){var H=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t),A=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];A=_.h("web_no_skip_video_on_verification_checks")?(N==null?void 0:N.status)&&A.includes(N.status):N&&N.status==="AGE_CHECK_REQUIRED";var Z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",N);Z==void 0&&(Z=!0);!O||this.isVideoPlayable_(N,this.getPlayerOverlays_(t))||
H||A||!Z||_.cY().resolve(_.$8).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.An$()},
onPlayerFeedbackStartRequest_:function(N){_.sl(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:N}])},
onPlayerFeedbackArticleRequest_:function(N){_.sl(this.hostElement,"yt-help-dialog-requested",[N])},
onPlayerYpcContentRequest_:function(){var N,t,O,H,A,Z,U,C,F=((N=this.data)==null?NaN:(t=N.contents)==null?NaN:(O=t.twoColumnWatchNextResults)==null?NaN:(H=O.secondaryResults)==null?NaN:(A=H.secondaryResults)==null?NaN:(Z=A.offerModule)==null?NaN:(U=Z.tvfilmOfferModuleRenderer)==null?NaN:(C=U.actionButtons)==null?NaN:C.length)-1;N=[".offerButton.buttonRenderer.",".actionButtons."+(F>=0?F:0)+".buttonRenderer."];t=_.D(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(O=t.next();!O.done;O=t.next())for(O=O.value,H=_.D(N),A=H.next();!A.done;A=H.next())if(A="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+O+A.value,A=this.get(A+"navigationEndpoint",this.data)||this.get(A+"serviceEndpoint",this.data)||this.get(A+"command",this.data)){_.CC(A,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(N){_.or(this.hostElement,"yt-autonav-pause-player",N)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(N){N()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(N){switch(N){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(N){switch(N){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.or(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(N)},
setPlayerState:function(N){_.v5().dispatch(_.Kir(N))},
onPlayerSubscribe_:function(N){_.sl(this.hostElement,"yt-player-subscribe",[N])},
onPlayerUnsubscribe_:function(N){_.sl(this.hostElement,"yt-player-unsubscribe",[N])},
onPlayerAdYtShowToast_:function(N){_.sl(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:N.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(N){if(N)return N},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(N){return!_.h("web_watch_move_summary_to_sd")&&!!N},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.h("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var N,t,O,H;this.watchNextSecondaryResults=(N=this.data)==null?void 0:(t=N.contents)==null?void 0:(O=t.twoColumnWatchNextResults)==null?void 0:(H=O.secondaryResults)==null?void 0:H.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var N,t=(N=this.data)==null?void 0:N.engagementPanels;if(t==null?0:t.length){N=null;t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;var H=void 0;if(((H=O.engagementPanelSectionListRenderer)==null?void 0:H.targetId)==="engagement-panel-structured-description"){N=O;break}}var A,Z,U;N=(A=N)==null?void 0:(Z=A.engagementPanelSectionListRenderer)==null?void 0:(U=Z.content)==null?void 0:U.structuredDescriptionContentRenderer;if(N==null?0:N.items){A=
[];Z=_.D(N.items);for(U=Z.next();!U.done;U=Z.next()){U=U.value;if(!_.h("sd_horizontal_list_show_nav_killswitch")){var C=H=O=t=N=void 0,F=void 0,g=(N=U.horizontalCardListRenderer)==null?void 0:(t=N.header)==null?void 0:(O=t.richListHeaderRenderer)==null?void 0:(H=O.navigationButton)==null?void 0:(C=H.buttonRenderer)==null?void 0:(F=C.command)==null?void 0:F.commandExecutorCommand;g&&g.commands&&(g.commands=g.commands.filter(function(B){return!_.M(B,_.yrV)}))}(!U.expandableVideoDescriptionBodyRenderer&&
!U.videoDescriptionHeaderRenderer||_.h("web_delhi_colorful_sd"))&&A.push(U)}return{items:A}}}},
constructWarning_:function(N){return{text:_.E_(N),type:"WARNING"}},
isPlaShelfEnabled_:function(N){if((this.get("adPlacements",N)||[]).length)return!0;N=this.get("playerAds",N)||[];return!(!N.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",N[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var N=this;_.or(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var t=this.getScrollTop()>0;this.gestures_&&(t?this.gestures_.detach():this.gestures_.attach());t!==this.showFullerscreenEdu_&&_.h("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=t,_.oM(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonVisibility(N.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.or(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var N=this;this.commentsReady=!1;_.GB.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.WX(_.GB,function(){N.setComments_()},1E3)},
setComments_:function(){if(!_.h("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.zT("cmi");_.GB.cancelJob(this.setCommentsJobId_);var N=this.getPageContents(this.data);if(N&&N.length){N=_.D(N);for(var t=N.next();!t.done;t=N.next())if(t=t.value,this.get("itemSectionRenderer.sectionIdentifier",t)==="comment-item-section"){this.comments=t.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.or(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.zT("cmc")},
doRemoveComments_:function(){this.comments={};_.h("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.GB.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.GB.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(N,t){var O=_.M(t.endpoint,_.rN);O&&(!(t=this.get("data.currentVideoEndpoint.watchEndpoint"))||O.videoId!==t.videoId||O.playlistId&&O.playlistId!==t.playlistId||O.index!==void 0&&O.index!==t.index||typeof O.startTimeSeconds!=="number"||(N.stopPropagation(),this.setScrollTop(0),_.oM(this).getPlayerPromise().then(function(H){var A=O.startTimeSeconds;H.seekTo(A);H.wakeUpControls();A<H.getDuration()&&H.playVideo()})))},
updatePlayerStartTime_:function(){var N=_.rGw();"t"in N&&(N=_.HOD(N.t),this.player.seekTo(N,!0))},
updateTitleFromWatchNext:function(N){N=this.getPageContents(N);var t,O;(N=_.Gv(N==null?void 0:(t=N[0])==null?void 0:(O=t.videoPrimaryInfoRenderer)==null?void 0:O.title))&&_.or(this.hostElement,"yt-update-title",N)},
updateTitle_:function(N){N=this.get("videoDetails.title",N)||"";_.or(this.hostElement,"yt-update-title",N)},
syncWithRemoteVideo_:function(N,t,O){if(this.active&&this.player){var H=this.player.getVideoData();if(H.video_id===O&&(O=H.list,_.h("polymer_enable_mdx_queue")&&O&&O.startsWith("RQ")&&(O=void 0),H.video_id!==N||O!=t)){var A;_.h("kevlar_player_watch_endpoint_navigation")?A=_.k$M(_.oHl(N,t)):A=this.buildWatchEndpoint_(N,t);_.or(this.hostElement,"yt-navigate",{endpoint:A,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(N,t,O){return _.sK(N,t,O)},
initDclkstatus_:function(){_.tnD()},
attachWatchPageSkeleton_:function(){var N=document.querySelector("#watch-page-skeleton");if(N){var t=N.querySelector("#primary-info"),O=N.querySelector("#secondary-info"),H=N.querySelector("#related");t&&_.O6(this.hostElement).querySelector("#info-skeleton").appendChild(t);O&&_.O6(this.hostElement).querySelector("#meta-skeleton").appendChild(O);H&&(_.O6(this.hostElement).querySelector("#related-skeleton").appendChild(H),this.watchNextSkeletonEl_=H);_.wb(N)}},
handlePlayerUpdated_:function(){_.oM(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(N,t){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof t!=="undefined"){var O=this.watchNextSkeletonEl_.children,H=N&&N.indexSplices.length?N.indexSplices[0].index:0;N=Math.min(this.watchNextShownItems.length,O.length);t||(H=0,N=O.length);if(!this.ghostCardsEnabled)for(t=H;t<N;t++)O[t].classList.add("hidden")}},
onPlayerFullscreenChange_:function(N){_.h("external_fullscreen")||_.sl(this.hostElement,"yt-player-fullscreen",[N.fullscreen])},
onFullscreenChange_:function(N){this.fullscreen=N;this.gestures_&&this.gestures_.update(this.fullscreen);var t=_.oM(this);t.getPlayerPromise().then(function(O){O.setFauxFullscreen(!!_.G8())});
this.updateFullBleedElementLocations();N&&(t.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(N,t){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!t},
computeIsDonationShelfCollapsed_:function(N){return N},
computeShouldShowMerchShelf:function(N,t){return t&&!!N},
computeResponseHasComments:function(N){var t,O,H,A,Z;return!!(N==null?0:(t=N.contents)==null?0:(O=t.twoColumnWatchNextResults)==null?0:(H=O.results)==null?0:(A=H.results)==null?0:(Z=A.contents)==null?0:Z.some(function(U){var C;return(U==null?void 0:(C=U.itemSectionRenderer)==null?void 0:C.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(N,t,O,H){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&H?!1:!!N&&!!Object.keys(N).length&&!t},
identity:_.xx,onWindowResized_:function(N){this.windowSize_=N;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(N){var t=this;N&&N.type!=="dataloaded"&&N.type!=="dataupdated"||_.oM(this).getPlayerPromise().then(function(O){var H=O.getPlayerState();H!==5&&H!==0&&(O=1/O.getVideoAspectRatio(),t.videoHeightToWidthRatio_!==O&&(t.videoHeightToWidthRatio_=O))})},
schedulePlayerSizeUpdate_:function(N){var t=this,O=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"),H=function(){if(t.watchMetadata){var A,Z;(Z=(A=t.watchMetadata).resize)==null||Z.call(A)}_.oM(t).getPlayerPromise().then(function(U){if(_.h("kevlar_set_internal_player_size")){if(!O||!t.isMiniplayerActive()){var C=t.calculateCurrentPlayerSize_();U.setInternalSize(C.width,C.height)}}else U.setSize(NaN,NaN);_.h("kevlar_watch_while")&&t.updateWatchWhileScrollThreshold_()})};
N?H():_.yD(_.GB,H)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(N){this.set("data.survey",N.detail)},
onYtShowSurveyCommand_:function(N){this.set("data.survey",_.M(N,_.FN9).survey)},
onDownloadedVideoDeleted:function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1){if(!t.active||(O=t.playerData)==null||!O.offlineState||t.videoId!==N)return A.return();(H=t.player)==null||H.stopVideo();_.Ry().navigatingAwayFromWatchDeletedVideo=!0;_.CC(_.QW9,t.hostElement);return A.yield(_.Ry().navigationFinishPromise,2)}_.Ry().navigatingAwayFromWatchDeletedVideo=!1;_.Ty(A)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var N;this.theater?N=_.eS(.5625*this.windowSize_.width,480,this.windowSize_.height-185):N=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==N&&(this.watchWhileScrollThreshold_=N,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var N=_.O6(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&N){var t=this.windowSize_.height>=624,O=this.active?this.getScrollTop():0;!N.active&&t&&O>=this.watchWhileScrollThreshold_?(N.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):N.active&&(!t||O<this.watchWhileScrollThreshold_&&!_.G8())&&(N.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var N=_.O6(this.hostElement).querySelector("#secondary-inner");if(N){var t=_.O6(this.hostElement).querySelector("#below"),O=_.O6(this.hostElement).querySelector("#secondary"),H=_.O6(this.hostElement).querySelector("#comments");H&&O&&t&&(this.defaultTwoColumnLayout?(N.appendChild(H),O.appendChild(N)):(t.appendChild(H),_.P3(t,N)))}}},
isTwoColumnsChanged_:function(N,t){if(N!==!0||t!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(N=_.O6(this.hostElement).querySelector("#secondary-inner"))){t=_.O6(this.hostElement).querySelector("#below");var O=_.O6(this.hostElement).querySelector("#secondary"),H=_.O6(this.hostElement).querySelector("#comments");H&&O&&t&&(this.isTwoColumns_?(N.appendChild(H),O.appendChild(N)):(t.appendChild(H),_.P3(t,N)))}}else{N=!_.h("web_watch_enable_fs_squeezeback_panels");
t=_.O6(this.hostElement).querySelector("#panels");var A=_.O6(this.hostElement).querySelector("#alerts"),Z=_.O6(this.hostElement).querySelector("#shopping-timely-shelf");O=_.O6(this.hostElement).querySelector("#playlist");H=_.O6(this.hostElement).querySelector("#related");var U=_.O6(this.hostElement).querySelector("#donation-shelf"),C=_.O6(this.hostElement).querySelector("#comments"),F=_.O6(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(A=_.O6(this.hostElement).querySelector("#secondary-inner"),
N&&(A.appendChild(t),A.appendChild(O),this.aiCompanionEnabled&&F&&A.appendChild(F)),A.appendChild(U),A.appendChild(H)):(N&&(_.W1(t,A),_.W1(O,A),this.aiCompanionEnabled&&F&&_.W1(F,A),_.W1(Z,O)),_.W1(U,A),C&&_.W1(H,C));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.h("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.h("web_watch_enable_fs_squeezeback_panels")&&_.h("web_watch_theater_chat")){var N=_.O6(this.hostElement).querySelector("#chat-container"),t=this.theater&&!this.fullscreen||_.h("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&t?(t=_.O6(this.hostElement).querySelector("#columns"),(N==null?void 0:N.parentElement)!==t&&t.append(N),this.fixedPanels=!0):(this.fixedPanels=
!1,t=_.O6(this.hostElement).querySelector("#playlist"),N&&t?_.rI(N,t):_.J_(new _.fF("Missing element when updating chat location",{"chatContainer defined":!!N,"playlist defined":!!t})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(N,t){return _.h("sw_metadata_vis_toggle_ks")?!0:!!N||!!t},
computeForceDarkPanelTheme:function(N){return _.h("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&N:!1},
safeUpdateStyles:function(N){try{_.CO(this.hostElement,N)}catch(t){_.J_(t)}},
videoHeightToWidthRatioChanged_:function(N,t){t&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(N){this.videoHeightToWidthRatio_=1/N},
computeIsVerticalVideo_:function(N){return N>=1},
computeIsFourThreeToSixteenNineVideo_:function(N){return N<=.7501&&N>=.5624},
computeIsExtraWideVideo_:function(N){return N<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.oM(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.oM(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ubR(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(N){var t=_.b8(N)||0;_.ML(N,t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var N=_.b8("yt-fullerscreen-edu-button-click-count")||0,t=_.b8("yt-fullerscreen-edu-button-shown-count")||0,O=_.uP("external_fullscreen_button_shown_threshold"),H=N>=_.uP("external_fullscreen_button_click_threshold")||t>=O;_.oM(this).getPlayerPromise().then(function(A){A.updateFullerscreenEduButtonSubtleModeState(H)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(N,t){return t},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.cY().resolve(_.$8).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var N=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.GB.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.GB.addLowPriorityJob(function(){N.fullHeightPanelPositionUpdateJobId=0;var t=_.O6(N.hostElement).querySelector("#secondary"),O=_.O6(N.hostElement).querySelector("#fixed-secondary");t=t.getBoundingClientRect();var H=t.width;N.swatcherooSqueezeback&&
(H+=_.xy);if(N.swatcherooSqueezeback){var A=_.O6(N.hostElement).querySelector("#squeezeback-constraining-container");A.style.width=H+"px";A.style.flex="0 0 "+H+"px"}O.style.width=H+"px";O.style.left=t.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var N=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.GB.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.GB.addLowPriorityJob(function(){N.panelMaxHeightUpdateJob_=0;var t;!N.isTwoColumns_||N.theater||N.fullscreen?t=460:t=N.calculateNormalPlayerSize_().height;var O=t+"px";_.h("live_chat_taller_height")&&!N.theater&&(O="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.h("live_chat_medium_height")&&!N.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.h("live_chat_scaled_height")&&!N.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 238px)");N.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":t+"px","--ytd-watch-flexy-chat-max-height":O,"--ytd-watch-flexy-structured-description-max-height":t+"px","--ytd-watch-flexy-comments-panel-max-height":t+"px","--ytd-comments-engagement-panel-content-height":t+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(N){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",N)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.OK(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(N){var t=_.O6(this.hostElement).querySelector("#engagement-panel-scrim");N?t.addEventListener("tap",_.Fb(this,this.onEngagementPanelScrimClick_)):t.removeEventListener("tap",_.Fb(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(N){if(this.hostElement.contains(N)&&!this.scrollToAnimation_.isAnimating()){var t=N.offsetTop-24;N=N.offsetTop+N.offsetHeight+24;var O=this.getPageScrollingElement(),H=this.getScrollTop(),A=H+O.clientHeight-56;if(t<H+56)t-=56;else if(N>A)t=N-O.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtSignalActionScrollToComments:function(){var N=this.hostElement.querySelector("#comments");if(N&&!this.scrollToAnimation_.isAnimating()){N=N.offsetTop-56-24;if(_.h("kevlar_comment_teaser_scroll_to_midpoint")&&(N-=_.Ti().height/3,N<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,N),500)}},
onYtEngagementPanelVisibleChanged:function(N,t,O){if(this.active&&this.trackEngagementPanelVisibility&&!_.CcV.includes(O)){if(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Np(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var H=_.cY().resolve(_.Of);this.visiblePanelIdentifiers_.forEach(function(A){A!==O&&H.hidePanel({identifier:A})})}this.visiblePanelIdentifiers_.add(O)}t!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(O);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(N){return N?"":"watch-active-metadata"},
computeNewMetadataClass:function(N){return N?"watch-active-metadata":""},
computeIsSingleColumn:function(N,t){return t&&!N},
computeFullBleedPlayer:function(N,t,O){return _.h("external_fullscreen")&&N||t||O},
computeDefaultLayout:function(N){return!N},
computeDefaultTwoColumnLayout:function(N,t){return!N&&t},
updatePanelsLocation:function(){if(_.h("web_watch_enable_fs_squeezeback_panels")){var N=_.O6(this.hostElement).querySelector("#below"),t=_.O6(this.hostElement).querySelector("#panels"),O=_.O6(this.hostElement).querySelector("#playlist"),H=_.O6(this.hostElement).querySelector("#chat-container"),A=_.O6(this.hostElement).querySelector("#panels-full-bleed-container"),Z=_.O6(this.hostElement).querySelector("#secondary-inner"),U=_.O6(this.hostElement).querySelector("#shopping-timely-shelf"),C=_.O6(this.hostElement).querySelector("#persistent-panel-container");
if(N&&t&&O&&H&&A&&Z&&U&&(this.aiCompanionEnabled?C:1)){var F=this.fullscreen||this.theater&&this.iMaxTheaterMode,g=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;g?(g=_.O6(this.hostElement).querySelector("#columns"),(H==null?void 0:H.parentElement)!==g&&g.append(H),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):F?A.appendChild(H):this.isTwoColumns_?_.P3(Z,H):_.P3(N,H);F?(A.appendChild(t),A.appendChild(O),
this.aiCompanionEnabled&&C&&A.appendChild(C)):(this.isTwoColumns_?(_.P3(Z,t),_.P3(Z,O),this.aiCompanionEnabled&&C&&_.P3(Z,C)):(_.P3(N,t),_.P3(N,O),this.aiCompanionEnabled&&C&&_.P3(N,C)),_.P3(N,U))}}},
swatcherooUpdatePanelsLocation:function(N,t,O,H,A,Z){if(this.is==="ytd-watch-grid"){t=N&&!t;this.swatcherooSplitScroll&&(t?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));O=_.O6(this.hostElement).querySelector("#panels");var U=_.O6(this.hostElement).querySelector("#playlist"),C=_.O6(this.hostElement).querySelector("#persistent-panel-container"),
F=_.O6(this.hostElement).querySelector("#fixed-secondary"),g=_.O6(this.hostElement).querySelector("#fixed-below"),B=_.O6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),c=_.O6(this.hostElement).querySelector("#chat-container");Z&&(N?(F.appendChild(O),this.aiCompanionEnabled&&C&&F.appendChild(C)):(g.appendChild(O),this.aiCompanionEnabled&&C&&g.appendChild(C)));A?N?F.appendChild(c):g.appendChild(c):_.rI(c,B);H?N?F.appendChild(U):g.appendChild(U):_.rI(U,
B);this.swatcherooSplitScroll&&(N=_.O6(this.hostElement).querySelector("#secondary"),H=_.O6(this.hostElement).querySelector("#columns"),A=_.O6(this.hostElement).querySelector("#fixed-columns-secondary"),t?A.appendChild(N):H.appendChild(N))}},
computeMetadataSkinnyMode:function(N,t,O){return this.is!=="ytd-watch-grid"?!1:N?O:t},
computeWatchWhilePanelsActive:function(N,t){return N||t},
computeNoBorderOnChat:function(N){return _.h("web_watch_theater_chat_no_border")&&N},
computeLiveChatPresentAndExpanded:function(N,t){return N&&!t},
computePanelExpanded:function(N,t,O){return N||t||O},
computeSqueezeback:function(N,t,O,H){if(_.h("web_watch_enable_fs_squeezeback_panels")){var A=this.iMaxTheaterMode&&this.theater,Z=this.theater&&!this.iMaxTheaterMode;return(N||t||O)&&(A||H)||t&&Z}},
computeSwatcherooSqueezeback:function(N,t,O){return this.is!=="ytd-watch-grid"||_.h("ww_squeezeback_killswitch")?!1:N&&t&&O},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(N){_.oM(this).getPlayerPromise().then(function(t){var O;(O=t.changeMarkerVisibility)==null||O.call(t,_.M(N,_.lS).isVisible||!1,_.M(N,_.lS).entityKeys||[],_.M(N,_.lS).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(N){this.liveChatCollapsed=N.detail;_.v5().dispatch(_.Ufl(N.detail));if(!this.liveChatCollapsed&&this.squeezeback){var t=_.cY().resolve(_.Of);this.visiblePanelIdentifiers_.forEach(function(O){t.hidePanel({identifier:O})})}},
onSetPlaylistCollapsed:function(N){_.h("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!N)},
provideRenderingData:function(N,t){switch(N){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=t;break;case "PRIMARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=t);this.videoPrimaryInfoRendererValue=t==null?void 0:t.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=t);this.videoSecondaryInfoRendererValue=t==null?void 0:t.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
t;break;case "CLARIFICATION":this.clarifyBoxValue=t;break;case "LIVE_CHAT":this.conversationBar=t;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=t;break;case "PLAYLIST":this.externalPlaylistData_=t!=null?t:{};break;case "MERCH_SHELF":this.merchShelfValue=t==null?void 0:t.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=t;break;case "TICKET_SHELF":this.ticket=t;break;case "OFFER_MODULE":this.offerModule=t;break;case "LIMITED_STATE":this.limitedStateValue=
t;break;case "DONATION_SHELF":this.donation=t;break;case "ALERTS":this.alertsValue=t;break;case "COMMENTS":this.comments=t;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=t;break;case "ENGAGEMENT_PANELS":this.engagementPanels=t;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=t;break;case "RICH_GRID_RENDERER":this.richGridRendererData=t;break;case "EXPANDABLE_METADATA":this.expandableMetadata=t;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
t;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=t;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=t}},
toggleCinematicsActive:function(N){this.cinematicsActive=N},
isMiniplayerActive:function(){return _.cY().resolve(_.kf).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var w2r;_.Tzi=function(N){if(!(0,_.hap)(N))throw Error("K``"+String(N));};
_.ehq=function(N){return N.findIndex(function(t){return w2r.indexOf(t.tagName)>-1})>-1};
_.Pci=function(){var N=_.cY().resolve(_.RZ);_.D24(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(N.isFullscreenEnabled()?_.Rr(document.documentElement):_.JVS(document.documentElement))};
w2r=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.$o=new Map;_.$o.set(32,59972);_.$o.set(27,50765);_.$o.set(70,60102);_.$o.set(76,60221);_.$o.set(77,60222);_.$o.set(74,60223);_.$o.set(84,60224);_.$o.set(38,61941);_.$o.set(40,61942);_.$o.set(73,62521);_.$o.set(67,62522);_.$o.set(80,63390);_.$o.set(78,63397);_.$o.set(75,59972);_.$o.set(188,63385);_.$o.set(190,63384);_.$o.set(36,63387);
_.$o.set(35,63386);_.$o.set(37,63388);_.$o.set(39,63389);_.$o.set(79,63423);_.$o.set(87,63424);_.$o.set(107,63426);_.$o.set(109,63425);_.$o.set(65,63428);_.$o.set(83,63430);_.$o.set(68,63429);_.$o.set(221,63431);_.$o.set(219,63432);_.$o.set(97,63439);_.$o.set(98,63440);_.$o.set(99,63441);_.$o.set(100,63442);_.$o.set(101,63443);_.$o.set(102,63444);_.$o.set(103,63445);_.$o.set(104,63446);_.$o.set(105,63447);_.jj=new Map;_.jj.set(80,63390);_.jj.set(78,63397);_.jj.set(188,63400);_.jj.set(190,63401);
_.jj.set(191,60765);_.jj.set(13,247917);_.X2i=new Map;_.xf5=new Map;
}catch(e){_._DumpException(e)}
try{
var EHf,vH5,JG1,oHm;_.Imq=function(N){return N.ui.guideIsVisibleButNotPersistent};
_.lmJ=function(N){return N.ui.tabGesturesIsActive};
_.QI5=function(){var N=_.So("service_worker_scope");try{return navigator.serviceWorker.getRegistration(N)}catch(t){return Promise.reject(t)}};
_.mLr=function(N){return!(!N||!N.pushManager)};
EHf=function(){return _.QI5().then(_.mLr).catch(function(){return!1})};
_.GVq=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?EHf():Promise.resolve(!1)};
_.RV5=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
vH5=function(){var N,t,O;return _.K(function(H){switch(H.nextAddress){case 1:return H.yield(_.A7.getInstance(),2);case 2:N=H.yieldResult;if(!N){t=void 0;H.jumpTo(3);break}return H.yield(N.get("lmqf"),4);case 4:t=H.yieldResult;case 3:switch((O=t)||(O="SD"),O){case "HD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return H.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
JG1=function(N){var t,O,H;return _.K(function(A){if(A.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.h("disable_av1_setting")){var Z=window.localStorage["yt-player-av1-pref"];Z=Z==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":Z==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else Z="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(t=N===Z)return A.jumpTo(2);H=O=N;return A.yield(vH5(),3)}A.nextAddress!=2&&(t=H===A.yieldResult);return A.return(t)})};var sI5;var Nzi=_.Qy.IronButtonState,tni=(0,_.np)(HTMLElement);
_.LO({_template:function(){if(sI5!==void 0)return sI5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;oHm===void 0&&(oHm=document.createElement("template"));var H=oHm;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return sI5=N},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Nzi,_.Iv,_.mT,_.Rv],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(N){var t=(0,_.k6)(this);t.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:N});t.shadowRoot.appendChild(N);return tni.prototype._attachDom.call(this,N)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var N=this.contentElement;N&&N.selectedItem&&this._setSelectedItem(N.selectedItem)},
get contentElement(){for(var N=_.$L(this.$.content).getDistributedNodes(),t=0,O=N.length;t<O;t++)if(N[t].nodeType===Node.ELEMENT_NODE)return N[t]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(N){this._setSelectedItem(N.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(N){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N)===this&&this.open()},
_selectedItemChanged:function(N){var t="";N?t=N.label||N.getAttribute("label")||N.textContent.trim():t="";this.value=t;this._setSelectedItemLabel(t)},
_computeMenuVerticalOffset:function(N,t){return t?t:N?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var N=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",N)}});_.Aa=new _.Fp("navigateAction");var OOn=new _.Fp("formRenderer");var ZL=function(){var N=_.$q.apply(this,arguments)||this;N.showInput=!1;return N};
_.p(ZL,_.$q);_.V=ZL.prototype;_.V.detached=function(){this.showInput&&window.removeEventListener("click",_.Fb(this,this.closeOnOutsideClick_))};
_.V.stopPropagation_=function(N){this.showInput&&N.stopPropagation()};
_.V.closeOnOutsideClick_=function(N){this.closeOnOutsideClickCondition(N)&&(this.showInput=!1,window.removeEventListener("click",_.Fb(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.V.closeOnOutsideClickCondition=function(){return!0};
_.V.closeOnOutsideClickHandler=function(){};
_.V.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Fb(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.V.openOnClickHandler=function(){};
_.V.showInputChanged=function(){};
_.V.setShowInput=function(N){this.showInput=N};
ZL.prototype.setShowInput=ZL.prototype.setShowInput;ZL.prototype.showInputChanged=ZL.prototype.showInputChanged;ZL.prototype.openOnClickHandler=ZL.prototype.openOnClickHandler;ZL.prototype.openOnClick_=ZL.prototype.openOnClick_;ZL.prototype.closeOnOutsideClickHandler=ZL.prototype.closeOnOutsideClickHandler;ZL.prototype.closeOnOutsideClickCondition=ZL.prototype.closeOnOutsideClickCondition;ZL.prototype.closeOnOutsideClick_=ZL.prototype.closeOnOutsideClick_;ZL.prototype.stopPropagation_=ZL.prototype.stopPropagation_;
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ZL.prototype,"showInput",void 0);_.W([_.dz("click"),_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],ZL.prototype,"stopPropagation_",null);_.W([_.gz("showInput"),_.Q("design:type",Function),_.Q("design:paramtypes",[Boolean]),_.Q("design:returntype")],ZL.prototype,"showInputChanged",null);_.W([_.jn()],ZL);_.HOi=[ZL.prototype];var AnO;var ZOz;var VF=function(){return _.k.apply(this,arguments)||this};
_.p(VF,_.k);_.V=VF.prototype;_.V.computePreselectedOption=function(N,t){return t===this.itemSelected_?N:void 0};
_.V.dataChanged_=function(){var N=this;this.preselectedSubreason=this.itemSelected_=-1;var t;(t=this.data)!=null&&t.key&&_.yB(this,function(){var O,H=Number((O=N.data)==null?void 0:O.key);!Number.isNaN(H)&&(N.itemSelected_=H,O=(O=(N.data.items||[])[H])&&O.optionSelectableItemRenderer&&O.optionSelectableItemRenderer.preselectedIndex)&&(N.preselectedSubreason=O)})};
_.V.isSubReasonHidden_=function(N,t){return N!=t};
_.V.onTopItemSelected_=function(N,t){for(var O=_.O6(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),H=0,A=O.length;H<A;H++)O[H].select(0);_.sl(this.hostElement,"yt-report-form-update",[t.item.value]);N.stopPropagation()};
_.V.onItemSelected_=function(N,t){_.sl(this.hostElement,"yt-report-form-update",[t.item.value]);N.stopPropagation()};
_.V.getItem_=function(N){return N.serviceItem?N.serviceItem:N.navigationItem?N.navigationItem:N.optionSelectableItemRenderer?N.optionSelectableItemRenderer:null};
_.V.computeText_=function(N){return(N=this.getItem_(N))?this.ytRendererBehavior.getSimpleString(N.text):null};
_.V.validate=function(){return this.itemSelected_!==-1};
_.V.computeAriaLabel_=function(N){var t=_.Gv(N.text);(N=N.accessibility&&N.accessibility.accessibilityData&&N.accessibility.accessibilityData.label)&&(t+=". "+N);return t};
_.V.computeItemSelected_=function(N){return N};
_.V.preventSelection_=function(N){N.stopPropagation();this.tooltipTapped=!0};
_.V.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.V.updateItemSelectedFromBinding=function(N){this.itemSelected_=N.detail.value};
_.V.save=function(){var N;this.validate()&&(N=this.data)!=null&&N.items&&(N=this.data.items[this.itemSelected_],N!=null&&N.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(N.optionSelectableItemRenderer.submitEndpoint)||_.tb(this.hostElement,[N.optionSelectableItemRenderer.submitEndpoint])))};
VF.prototype.onPaperRippleTransitionEnd_=VF.prototype.onPaperRippleTransitionEnd_;VF.prototype.dataChanged_=VF.prototype.dataChanged_;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],VF.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VF.prototype,"data",void 0);_.W([_.X({value:-1}),_.Q("design:type",Number)],VF.prototype,"itemSelected_",void 0);
_.W([_.X({computed:"computeItemSelected_(itemSelected_)"}),_.Q("design:type",Number)],VF.prototype,"value",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],VF.prototype,"restoreFocusOnClose",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],VF.prototype,"tooltipTapped",void 0);_.W([_.X({value:-1}),_.Q("design:type",Number)],VF.prototype,"preselectedSubreason",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VF.prototype,"dataChanged_",null);_.W([_.dz("transitionend"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VF.prototype,"onPaperRippleTransitionEnd_",null);_.W([_.wz({is:"yt-options-renderer",disableElementRegistration:!0})],VF);
_.n(VF,"yt-options-renderer",function(){if(ZOz===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;AnO===void 0&&(AnO=document.createElement("template"));var H=AnO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);ZOz=N}N=ZOz;return N},{mode:2});var Vnq;var Df5;var Ufm;var Ccf;var KNn;var FN1;var DL=function(){return _.k.apply(this,arguments)||this};
_.p(DL,_.k);DL.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
DL.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
DL.prototype.onTap=function(N){if(this.hostElement.classList.contains("selected")||_.sl(this.hostElement,"yt-share-panel-can-select-contact-action")[0])N&&N.detail&&(N.detail.x||N.detail.y)&&_.O6(this.hostElement).querySelector("#target").blur(),(N=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),N={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:N?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.sl(this.hostElement,"yt-share-panel-select-contact-action",[N])};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.W([_.X({observer:"onDataChanged"}),_.Q("design:type",Object)],DL.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Q("design:type",String)],DL.prototype,"componentTitle",void 0);_.W([_.B2("#thumbnail"),_.Q("design:type",Object)],DL.prototype,"thumbnail",void 0);_.W([_.wz({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],DL);
_.n(DL,"yt-enrolled-contact-renderer",function(){if(FN1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;KNn===void 0&&(KNn=document.createElement("template"));var H=KNn;O.call(t,H.content.cloneNode(!0),N.content.firstChild);FN1=N}N=FN1;return N},{mode:2});var dfr;var gqm;var U5=function(){return _.k.apply(this,arguments)||this};
_.p(U5,_.k);U5.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
U5.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
U5.prototype.onTap=function(N){if(this.hostElement.classList.contains("selected")||_.sl(this.hostElement,"yt-share-panel-can-select-contact-action")[0])N&&N.detail&&(N.detail.x||N.detail.y)&&_.O6(this.hostElement).querySelector("#target").blur(),(N=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),N={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:N?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.sl(this.hostElement,"yt-share-panel-select-contact-action",[N])};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.W([_.X({observer:"onDataChanged"}),_.Q("design:type",Object)],U5.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Q("design:type",String)],U5.prototype,"componentTitle",void 0);_.W([_.B2("#thumbnail"),_.Q("design:type",Object)],U5.prototype,"thumbnail",void 0);_.W([_.wz({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],U5);
_.n(U5,"yt-suggested-contact-renderer",function(){if(gqm===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;dfr===void 0&&(dfr=document.createElement("template"));var H=dfr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);gqm=N}N=gqm;return N},{mode:2});var C2=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-share-panel-reset-action":"onReset"};return N};
_.p(C2,_.k);C2.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"}}}}}};
C2.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.sl(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
C2.prototype.onReset=function(){for(var N=_.O6(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),t=N.length-1;t>=0;t--)N[t].classList.toggle("selected")};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],C2.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X({observer:"onDataChanged"}),_.Q("design:type",Object)],C2.prototype,"data",void 0);
_.W([_.wz({is:"yt-contact-section-renderer",disableElementRegistration:!0})],C2);
_.n(C2,"yt-contact-section-renderer",function(){if(Ccf===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Ufm===void 0&&(Ufm=document.createElement("template"));var H=Ufm;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Ccf=N}N=Ccf;return N},{mode:2});var K2=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return N};
_.p(K2,_.k);_.V=K2.prototype;_.V.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.V.onYtRefreshFormCommand=function(N){var t;(N=_.M((t=_.M(N,_.JAp))==null?void 0:t.formRenderer,OOn))&&this.set("data",N)};
_.V.reset=function(){var N=_.O6(this.hostElement).querySelector("#fields").children;N=_.D(N);for(var t=N.next();!t.done;t=N.next())t=t.value,t.reset&&t.reset()};
_.V.getForm=function(){var N={},t=_.O6(this.hostElement).querySelector("#fields").children;t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;if(!O.validate())return null;N[O.data.key]=O.value}return N};
_.V.submitFormFields=function(){if(this.fields)for(var N=_.D(this.fields),t=N.next();!t.done;t=N.next())t=t.value,t.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?t.save():t.nodeName==="YT-OPTIONS-RENDERER"&&t.save()};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],K2.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],K2.prototype,"data",void 0);_.W([_.c2("#fields > *"),_.Q("design:type",Array)],K2.prototype,"fields",void 0);
_.W([_.wz({is:"yt-form-renderer",disableElementRegistration:!0})],K2);
_.n(K2,"yt-form-renderer",function(){if(Df5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Vnq===void 0&&(Vnq=document.createElement("template"));var H=Vnq;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Df5=N}N=Df5;return N},{mode:2});var yni;var Fg=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return N};
_.p(Fg,_.k);Fg.prototype.onCheckboxChange=function(N){this.data&&(N=(this.checked=_.E3(N).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}})};
Fg.prototype.handleUpdateCheckboxCommand=function(N){(N=_.M(N,_.yVR))&&this.data&&this.data.id===N.id&&(this.set("data.disabled",N.disabled),this.set("data.title",N.title))};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Fg.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Fg.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Fg.prototype,"checked",void 0);_.W([_.en({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Fg);
_.n(Fg,"ytd-settings-checkbox-renderer",function(){if(yni!==void 0)return yni;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return yni=N},{mode:1});var Bzm;var dC=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return N};
_.p(dC,_.k);dC.prototype.dataChanged=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return N.radio.removeAttribute("checked"),!N.data||!N.data.id||N.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.RV5()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(t=N.data&&N.data.id)?O.yield(JG1(N.data.id),4):O.jumpTo(3):(N.set("data.hidden",!0),O.jumpTo(0));O.nextAddress!=3&&(t=O.yieldResult);t&&_.sl(N.hostElement,"yt-select-settings-radio-option",[N.data.id]);_.Ty(O)})};
dC.prototype.onButtonChanged=function(N){_.E3(N).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.sl(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
dC.prototype.onSelectOption=function(N){this.data&&this.data.id&&(this.data.id===N?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
dC.prototype.dataChanged=dC.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],dC.prototype,"ytActionHandlerBehavior",void 0);_.W([_.B2("#radio"),_.Q("design:type",Object)],dC.prototype,"radio",void 0);_.W([_.X(),_.Q("design:type",Object)],dC.prototype,"data",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],dC.prototype,"dataChanged",null);_.W([_.en({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],dC);
_.n(dC,"ytd-settings-radio-option-renderer",function(){if(Bzm!==void 0)return Bzm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Bzm=N},{mode:1});var cnr;var gC=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return N};
_.p(gC,_.k);
gC.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"}}}};
gC.prototype.handleUpdateTextCommand=function(N){(N=_.M(N,_.BAE))&&this.data&&this.data.id===N.id&&this.set("data",N)};
gC.prototype.handleUpdateConnectedAppRendererCommand=function(N){if(_.M(N,_.jva)&&this.data){var t,O;if(N=(t=_.M(N,_.jva))==null?void 0:(O=t.newConnectedAppRenderer)==null?void 0:O.connectedAppRenderer)this.data=N}};
gC.prototype.computeConnectedAppStyle=function(N){return N.style?N.style.toLowerCase().replace(/_/g,"-"):""};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],gC.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gC.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Q("design:type",String)],gC.prototype,"connectedAppStyle",void 0);_.W([_.en({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],gC);
_.n(gC,"ytd-connected-app-renderer",function(){if(cnr!==void 0)return cnr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return cnr=N},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Q5("iuT5Oc");

_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("NSzT5");
var lrw=function(){var N;return _.K(function(t){if(t.nextAddress==1)return t.yield(_.cY().resolve(_.A5),2);(N=t.yieldResult)&&N.pauseVideo();_.Ty(t)})};var QHV=_.mp(["https://portraits.google.com"]),mfA=_.mp(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),EqV=_.mp(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),Gru=_.ju(QHV),Rhr=_.q(function(N){function t(B){var c;if(B=(c=B.detail)==null?void 0:c.endpoint){c=_.M(B,_.yE);var u;c&&((u=c.browseId)==null?0:u.startsWith("UC"))&&c.browseId!==A()&&(_.ha("creator-chatbots-panel-persistent"),F.removeEventListener("yt-navigate-start",t))}}
var O=N.usePlayerHeight;var H=N.isPersistentPanel;var A=N.creatorChannelId;N=_.cH(_.N2G);console.log("isNarrow",N());var Z=_.E4(function(B){var c=A();c=_.ju(mfA,c);_.tY(B,1,c)}),U=function(){var B,c,u;
return _.K(function(S){return S.nextAddress==1?S.yield(_.cY().resolve(_.A5),2):(B=S.yieldResult)?S.return({video_id:(u=(c=B.getVideoData())==null?void 0:c.video_id)!=null?u:"",timestamp_sec:B.getCurrentTime().toString()}):S.return({})})};
_.$6("message",function(B){var c,u,S,b,z,w;return _.K(function(P){if(P.nextAddress==1){if((c=H)==null?0:c())return P.return();if(B.origin!==Gru.toString())return console.warn("Received message from untrusted origin:",B.origin),P.return();u=B.data;if(typeof u!=="object"||u===null||!u.action)return P.return();if(u.action==="pause")return P.yield(lrw(),0);if(u.action!=="getYouTubeContext"||!B.source)return P.jumpTo(0);S=B.source;b=S.postMessage;z=JSON;w=z.stringify;return P.yield(U(),7)}b.call(S,w.call(z,
{youTubeContext:P.yieldResult}),{targetOrigin:B.origin});return P.jumpTo(0)})});
var C=function(){var B,c;(B=Z.value)==null||(c=B.contentWindow)==null||c.postMessage("ep_closed",Gru.toString())};
_.$6("yt-page-type-changed",function(){if(H==null?0:H()){var B;((B=_.cY().resolve(_.J4).getCurrentPage())==null?void 0:B.pageSubtype)!=="channels"&&(B=document.getElementById("creator-chatbots-panel-persistent"))&&(B.style.display="none")}});
var F=_.cY().resolve(_.lI),g;(g=F)==null||g.addEventListener("yt-navigate-start",t);_.Ia(function(){var B;(B=F)==null||B.removeEventListener("yt-navigate-start",t)});
g={};return _.d("div",{class:_.V7("ytprotoCreatorChatbotsAppHost",(g.ytprotoCreatorChatbotsAppHostSingleColumn=N,g)),style:_.FM({height:function(){return(O==null?0:O())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.d(_.VF5,{id:function(){return(H==null?0:H())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:C,header:function(){return _.d("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.d("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.d(_.gM,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.d(_.ba,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var B=_.Wl("https://portraits.google.com/gallery?ytChannelId="+A());B&&_.OG(window,B,"_blank");C()}})},
content:function(){return _.d("iframe",{el:Z,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+Gru.toString()})}}))},"Ho"),vq8=_.q(function(N){var t=N.creatorChannelId;
N=_.cH(_.N2G);var O=_.E4(function(Z){var U=t();U=_.ju(EqV,U);_.tY(Z,1,U)}),H=_.dF(_.gF(),{veType:281629}),A={};
return _.d("div",{class:_.V7("ytprotoCreatorChatbotsAppHost",(A.ytprotoCreatorChatbotsAppHostSingleColumn=N,A)),style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.d(_.VF5,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.d("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.d("div",
{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.d(_.gM,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.d("iframe",{el:O,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.d("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.d(_.ba,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var Z=_.Wl("https://portraits.google.com/gallery?ytChannelId="+t());Z&&_.OG(window,Z,"_blank");lrw();H&&_.fE(_.gF(),{visualElement:H})},
"client-ve-type":281629}),_.d("div",null,"This will take you to Google Portraits"))}}))},"Io");var JnA,oqu,sHV;JnA=_.mp(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);oqu=_.ju(JnA);
_.S3u=function(N){N=N===void 0?"":N;_.ha("creator_chatbots-entry-point");_.ha("creator-chatbots-panel");_.ua(oqu);_.Mh("ytd-watch-metadata #top-level-buttons-computed",function(t){document.getElementById("creator_chatbots-entry-point")||(_.Sj({element:t,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.d(sHV,{creatorChannelId:N})}),_.ZCx("creator-chatbots-panel",function(){return _.d(Rhr,{usePlayerHeight:!0,
creatorChannelId:N})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.hVd=function(N){N=N===void 0?"":N;_.ha("creator-chatbots-panel");_.Mh("ytd-watch-metadata #top-level-buttons-computed",function(){_.ZCx("creator-chatbots-panel",function(){return _.d(vq8,{creatorChannelId:N})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
sHV=_.q(function(N){var t=N.creatorChannelId;var O=function(){_.ZCx("creator-chatbots-panel",function(){return _.d(Rhr,{usePlayerHeight:!0,creatorChannelId:t})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.d("div",{class:"ytd-menu-renderer"},_.d(_.et,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:O}},
icon:function(){return _.d(_.dq,{icon:"SPARK"})}}))},"Jo");
_.QD5=function(N,t){N=N===void 0?"":N;t=t===void 0?!1:t;var O;return _.K(function(H){O=document.getElementById("creator-chatbots-panel-persistent");return!t||O?(!t&&O&&O.style.display==="none"&&(O.style.display="block"),H.jumpTo(0)):H.yield(new Promise(function(A){_.Mh("ytd-app",function(Z){_.Sj({element:Z,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.d(Rhr,
{isPersistentPanel:!0,creatorChannelId:N})});
A()})}),0)})};
_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("L3n37");
var X2D=function(N){return N.watch.isLearningJourneyActive},xfA=_.UM(115994),krl=_.UM(115993),q69=function(N,t,O){var H=this;
var A=O.dragDownAction;this.layer=0;this.JSC$23761_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.JSC$23761_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return H.dragDownAction()}}}};
this.fullscreen=!1;var Z=_.gF();_.Iy(Z,xfA,this.layer);_.Iy(Z,krl,this.layer);this.dragDownAction=function(){A();_.fE(Z,{visualElement:H.fullscreen?xfA:krl})};
this.gesture=new _.fG(N,t,this.getConfig(!1),"pandown");this.attach()};
q69.prototype.attach=function(){this.gesture.attach()};
q69.prototype.detach=function(){this.gesture.detach()};
q69.prototype.update=function(N){this.fullscreen=N;var t=this.gesture;N=this.getConfig(N);t.config=N};
q69.prototype.getConfig=function(N){return N?this.JSC$23761_watchFullScreenConfig:this.JSC$23761_watchConfig};var frd=function(N){_.cQ.call(this);var t=this;this.rootElement=N;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return t.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(O){t.initOrDisposeActiveModules(O)}));
this.onAttached()};
_.p(frd,_.cQ);_.V=frd.prototype;_.V.getRoot=function(){return this.rootElement};
_.V.getElement=function(N){return this.rootElement.getElement(N)};
_.V.setPlayerResponse=function(N){this.playerResponse=N;this.publish("PLAYER_RESPONSE_UPDATED",N)};
_.V.getPlayerResponse=function(){return this.playerResponse};
_.V.setWatchNextResponse=function(N){this.watchNextResponse===N?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=N,this.publish("WATCH_NEXT_RESPONSE_UPDATED",N))};
_.V.getWatchNextResponse=function(){return this.watchNextResponse};
_.V.registerActionHandler=function(N,t){var O=this;if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.Uh(_.VM.getInstance(),(H[N]=t,H),this.getRoot())}else this.actionHandlers.has(N)||(this.actionHandlers.set(N,[]),H={},_.Uh(_.VM.getInstance(),(H[N]=function(){var A=_.E1.apply(0,arguments);return(O.actionHandlers.get(N)||[]).map(function(Z){return Z.apply(null,_.W6(A))})},H),this.getRoot())),this.actionHandlers.get(N).push(t)};
_.V.unregisterActionHandler=function(N){if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.C9(_.VM.getInstance(),(t[N]=!0,t),this.getRoot())}else(t=this.actionHandlers.get(N))?(t.pop(),t.length===0&&(t={},_.C9(_.VM.getInstance(),(t[N]=!0,t),this.getRoot()),this.actionHandlers.delete(N))):_.J_(new _.fF("Attempted to unregister an action handler which is not registered.",N))};
_.V.addPageDisposeJob=function(N){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Ttg(this.rootElement.pageDisposeJobs,N)};
_.V.removePageDisposeJob=function(N){this.rootElement.pageDisposeJobs&&_.rt(this.rootElement.pageDisposeJobs,N)};
_.V.dispatchEvent=function(N,t){_.or(this.rootElement,N,t)};
_.V.provideRenderingData=function(N,t){this.rootElement.provideRenderingData(N,t)};
_.V.scrollWatchTo=function(N,t){var O;(O=this.watchScrollManager)==null||O.scrollWatchTo(N,t)};
_.V.focusOnPlayer=function(){var N=this.getElement("PLAYER");_.yB(N,function(){if(N&&N.firstElementChild){var t=N.querySelector(".html5-video-player");t&&(_.Lc(_.cY().resolve(_.j9)),t.focus())}else _.J_(Error("gp"))})};
var nqr=function(N){var t=!!N.rootElement.theater,O=!!N.rootElement.fullscreen,H;(H=N.watchCinematicManager)==null||_.Fdl(H,O,t)};
_.V=frd.prototype;_.V.subscribeToActiveChanged=function(N,t){t=t===void 0?!0:t;var O=_.Jc(_.v5(),X2D,function(H){N(H)});
t&&N(X2D(_.v5().getState()));return O};
_.V.isActive=function(){return X2D(_.v5().getState())};
_.V.onAttached=function(){var N=_.h("external_fullscreen");_.h("use_unified_flag_accessor")&&(N=_.cY().resolve(_.Qo5).retriever.getFlag(_.aoE));(N||_.vZ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.V.initPersistentModules=function(){if(_.h("kevlar_watch_flexy_theater_manager")){var N=new _.faR(this);_.L1(this,N)}N=new _.Ld9(this);_.L1(this,N);N=new _.T1(this);_.L1(this,N);N=new _.S_l(this);_.L1(this,N);N=new _.xK(this);_.L1(this,N);N=new _.w$(this);_.L1(this,N);_.h("kevlar_watch_flexy_playlist_manager")&&(N=new _.ZTs(this),_.L1(this,N))};
_.V.initOrDisposeActiveModules=function(N){N?(this.watchScrollManager=new _.kK(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.rBD(this)),this.activeModules.push(new _.qlV(this)),this.activeModules.push(new _.F11(this)),this.activeModules.push(new _.X5V(this)),_.h("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.IAV(this)),this.activeModules.push(new _.Gvs(this)),_.h("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.gH8(this)),
_.h("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.N8l(this)),_.h("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.ZM$(this),this.activeModules.push(this.watchCinematicManager),nqr(this)),_.h("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.oj1(this)),_.h("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.MD$(this)),N=_.h("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.h("kevlar_watch_flexy_comments_manager")&&
!N&&this.activeModules.push(new _.cBm(this)),_.h("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.HJl(this)),this.activeModules.push(new _.mp$(this)),this.activeModules.push(new _.ln8(this)),_.h("web_enable_timely_actions")&&this.activeModules.push(new _.vY$(this)),_.h("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.jXd(this)),_.h("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Cpr(this)),_.h("web_fullscreen_components")&&
this.activeModules.push(new _.G8V(this)),_.h("web_player_rtr_ctrls")&&this.activeModules.push(new _.uuN(this))):(_.db(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.V.disposeInternal=function(){_.cQ.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.cv.Object.defineProperties(frd.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var WNs={},rn1=["learning-journey-engagement-panel","PAlearning_chat"];
WNs.YtdLearningJourneyWatchBehavior=[_.G.YtRendererBehavior,_.iE.YtPlayerListenerBehavior,_.LD.YtRendererstamperBehavior,_.Wu.YtActionHandlerBehavior,_.As.YtPageBehavior,_.nD.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 _.vZ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.h("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 _.vZ("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 _.h("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.h("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 _.uP("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.uP("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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 _.h("web_watch_rounded_player_large")||_.h("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 _.h("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.h("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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 _.h("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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:_.G$(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.G$(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var N=this;this.watchController=void 0;this.pageDisposeJobs=[function(){N.showMetadataPlaceholder_()},
function(){_.h("web_watch_dont_clear_comments")||N.clearComments_()},
function(){N.clearPlayerAds_()},
function(){N.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.h("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.h("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.dfw(function(){return _.oM(N)},
this.hostElement);
this.pageDisposeJobs.push(function(){N.youThereManager_.reset()});
_.h("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){N.resetFullerscreenEduButtonForNewPlayback_()}));
_.h("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.zG;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;_.h("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.h("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));_.h("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Fb(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(N){N&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:N}),N.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(N){_.h("kevlar_watch_flexy_theater_manager")&&(this.theater=N,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.h("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(N){!_.h("kevlar_watch_while_v2")&&!_.h("web_watch_pip")||N||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(N){this.active!==void 0&&(this.fullscreen=N,_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(N){this.active!==void 0&&(_.or(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(N>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(N){this.initCsi_();this.updatePageData_(N)},
updatePageData_:function(N){var t=this;if(N)if(this.data===N){this.onPageLoadWithSameData_();var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data)}else this.data=N;this.playlist&&_.bp({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.zT("nw");this.loading=!1;_.WX(_.GB,function(){t.initDclkstatus_();var H,A=((H=t.player)==null?void 0:H.getVideoData().cpn)||"";_.JG9(function(Z,U){_.LN1(Z,U,A)})})},
onPageLoadWithSameData_:function(){_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var N=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!N);this.set("loadingData.playlistLoading",N&&N!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),N=this.watchNextSkeletonEl_.firstElementChild;N;)N.classList.remove("hidden"),N=N.nextElementSibling;var t,O,H;N=(t=this.loadingData)==null?void 0:(O=t.endpoint)==null?void 0:(H=O.watchEndpoint)==null?void 0:H.videoId;var A;N&&(A="https://i.ytimg.com/vi/"+N+"/frame0.jpg");_.O6(this.hostElement).querySelector("#player").style.backgroundImage=A?"url("+A+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var N=_.O6(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&N&&(N.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var t,O;(O=(t=this.watchMetadata).updateSentimentBarWidth)==
null||O.call(t);var H,A;(A=(H=this.watchMetadata).resize)==null||A.call(H)}_.O6(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(N){var t=_.O6(this.hostElement).querySelector(N);t?_.vC(t,!1):_.J_(new _.fF("Overscroll monitor not found for component: ",N))},
removeSplitScrollMouseTrap:function(N){var t=_.O6(this.hostElement).querySelector(N);t?_.JH(t):_.J_(new _.fF("Disposal component for  overscroll monitoring not found: ",N))},
onLoadingChanged_:function(N){N?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(N){var t=this;N?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.GB.addLowPriorityJob(function(){t.onWindowResized_(_.$H(!0))})},
updateTheaterModeState_:function(N){if(!_.h("kevlar_watch_flexy_theater_manager")){N=N||this.fullWindowMode_;if(this.theater!==void 0||N)this.theater=N;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();N&&_.ZF8()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var N=this.theater;_.h("external_fullscreen")&&this.fullscreen&&(N=!0);N=N?_.O6(this.hostElement).querySelector("#player-full-bleed-container"):_.O6(this.hostElement).querySelector("#player-container-inner");var t=this.getPlayerContainer(),O=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip");t.parentElement!==N&&(O&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.oM(this).appendTo(N,t),N.appendChild(_.O6(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var N=this;return _.K(function(t){if(t.nextAddress==1)return t.yield(_.cY().resolve(_.kf).deactivate(),2);N.updatePlayerLocation();_.Ty(t)})},
updateCinematicsLocation:function(){var N=this.getElement("CINEMATICS");if(N){var t=this.getCinematicsLocationContainer();N.parentElement!==t&&t.appendChild(N);var O;(O=this.watchController)==null||nqr(O)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.O6(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.O6(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(N,t){var O=document.documentElement.hasAttribute("dark"),H=!O&&this.cinematicLightTheme;return N&&O||t&&O||(t||N)&&H},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var N;(N=this.watchController)==null||N.setWatchNextResponse(this.data);_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.cY().resolve(_.$8).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.h("web_watch_start_chat_in_theater_mode")){var t,
O,H;if((t=this.data)==null?0:(O=t.contents)==null?0:(H=O.twoColumnWatchNextResults)==null?0:H.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,Z;((A=this.data)==null?0:(Z=A.contents)==null?0:Z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(N){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData);N&&N.playabilityStatus&&(t=this.isVideoPlayable_(N.playabilityStatus,this.getPlayerOverlays_(this.data)),N=this.isLiveStreamOffline_(N.playabilityStatus),t&&!N||_.yB(this,function(){_.zT("pbu")}));
this.setPlayerAds_();_.Np(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(N){_.v5().dispatch(_.H5({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));N?this.activate_():this.deactivate_()},
attached:function(){var N=this;this.watchController=new frd(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.h("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var t=_.oM(this);_.h("kevlar_disable_prepare_player")||t.preparePlayer();_.h("kevlar_watch_flexy_playlist_manager")||_.cY().resolve(_.$8).setPlayer(t);this.updatePageMediaQueries();t={"--ytd-watch-flexy-scrollbar-width":_.O5()+
"px"};!_.uP("kv_pl_mx_sz_ks")&&_.uP("kevlar_watch_max_player_width")&&(t["--ytd-watch-flexy-max-player-width-wide-screen"]=_.sk1+"px");_.uP("kevlar_watch_flexy_metadata_height")&&(t["--ytd-watch-flexy-space-below-player"]=_.tOl+"px");this.safeUpdateStyles(t);_.h("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new q69(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return N.onPlayerTouchPanDown_()}}));
_.h("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.O6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var N=_.O5(),t=_.ky+N,O=t;this.fixedPanels&&(t+=_.o2$);var H=657+N;N=1327+N;_.O6(this.hostElement).querySelector("#two-column-query").query="(min-width: "+t+"px)";_.O6(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(H+"px), (min-height: 630px) and (min-width: ")+(t+"px) and (max-width: ")+(N+"px)");_.O6(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(N+"px)");
_.O6(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+O+"px)"},
calculateCurrentPlayerSize_:function(){var N=_.O6(this.hostElement).querySelector("#miniplayer-bar").firstChild;return N&&N.active||this.theater||_.h("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.aN(NaN,NaN):_.OO8(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.OO8(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.F$(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var N=this;this.onWindowResized_(_.$H());_.h("browse_skeleton_removal_on_watch_killswitch")||_.vZ("IS_SHELL_LOAD")&&_.RUR();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var t=_.oM(this);t.addEventListener("yt-player-updated",_.Fb(this,this.onPlayerUpdated_));t.getPlayerPromise().then(function(O){N.playerApiReady_(O)});
_.h("kevlar_watch_flexy_playlist_manager")||(t=_.cY().resolve(_.$8),_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&t.addEventListener("yt-navigate",_.Fb(this,this.onYtNavigate_)),t.setPlaylistComponent(_.O6(this.hostElement).querySelector("#playlist")),t.addEventListener("yt-playlist-data-updated",_.Fb(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.GB.addLowPriorityJob(function(){_.or(N.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.oM(this).removeEventListener("yt-player-updated",_.Fb(this,this.onPlayerUpdated_));if(!_.h("kevlar_watch_flexy_playlist_manager")){var N=_.cY().resolve(_.$8);_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&N.removeEventListener("yt-navigate",_.Fb(this,this.onYtNavigate_));N.cancelVideoSkip();N.removeEventListener("yt-playlist-data-updated",_.Fb(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.h("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.or(this.hostElement,"yt-autonav-pause-player",!1);N=_.G8();_.h("kevlar_exit_fullscreen_leaving_watch")&&N&&_.Rr(N)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(N){this.player&&this.player.updateVideoData({rvs:N.rvs})},
getPageContents:function(N){return N&&N.contents&&N.contents.twoColumnWatchNextResults&&N.contents.twoColumnWatchNextResults.results&&N.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(N){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",N)},
onRetrieveLocation_:function(N,t){t.hasComments?t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):t.locationRetrieved("/related_ajax",void 0);N.stopPropagation()},
onSubscriptionChanged_:function(N,t){this.player&&(t?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ADd("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.O6(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.O6(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(N){this.player=N;this.setPlayerState(N.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.h("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.h("kevlar_unified_player")||_.h("kevlar_player_new_bootstrap_adoption"))&&_.ni()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(N,t){t=t===void 0?!0:t;_.G8()&&_.h("external_fullscreen")&&_.Rr(document.documentElement);this.theaterRequested_=N;t&&_.Xe("wide",N?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.sl(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.or(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(N){_.o0(N,typeof this.player),this.player&&_.o0(N,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var N;((N=this.player)==null?0:N.isFullscreen())?this.player.toggleFullscreen():_.sl(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(N,t){return this.loading?t:!!Object.keys(N).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(N){if(N){N=_.D(N);for(var t=N.next();!t.done;t=N.next())t=t.value,t.youThereRenderer&&_.BzR(this.youThereManager_,t.youThereRenderer)}},
setPlaylistData_:function(N){return N||{}},
userEngagementConfigDataChanged_:function(N){if(N)if(N.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var t=this.youThereManager_;_.jO()<N.lowEngagementThresholdMs||_.iOu(t,!0)}else N.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.sl(this.hostElement,"yt-autonav-pause-user-engagement",[N])},
isPlayerUnavailable_:function(N,t,O){return!!N&&!this.isVideoPlayable_(N,O)&&!t},
getPlayerOverlays_:function(N){return(N==null?void 0:N.playerOverlays)||null},
isVideoPlayable_:function(N,t){if(!N)return!1;var O=N.status==="OK"||N.status==="LIVE_STREAM_OFFLINE",H=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",N)||this.get("errorScreen.ypcTrailerRenderer",N);N=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",N);var A;t=t==null?void 0:(A=t.playerOverlayRenderer)==null?void 0:A.gatedActionsOverlayRenderer;return!!O||!!H||!!N||!!t},
hasWatchNextResponseErrorRenderer:function(N){var t=this.getPageContents(N),O,H,A,Z,U;return!(N==null?0:(O=N.contents)==null?0:(H=O.twoColumnWatchNextResults)==null?0:H.secondaryResults)&&!!((A=t[0])==null?0:(Z=A.itemSectionRenderer)==null?0:(U=Z.contents[0])==null?0:U.backgroundPromoRenderer)},
isLiveStreamOffline_:function(N){return N?N.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(N,t,O){var H=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t),A=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];A=_.h("web_no_skip_video_on_verification_checks")?(N==null?void 0:N.status)&&A.includes(N.status):N&&N.status==="AGE_CHECK_REQUIRED";var Z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",N);Z==void 0&&(Z=!0);!O||this.isVideoPlayable_(N,this.getPlayerOverlays_(t))||
H||A||!Z||_.cY().resolve(_.$8).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.An$()},
onPlayerFeedbackStartRequest_:function(N){_.sl(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:N}])},
onPlayerFeedbackArticleRequest_:function(N){_.sl(this.hostElement,"yt-help-dialog-requested",[N])},
onPlayerYpcContentRequest_:function(){var N,t,O,H,A,Z,U,C,F=((N=this.data)==null?NaN:(t=N.contents)==null?NaN:(O=t.twoColumnWatchNextResults)==null?NaN:(H=O.secondaryResults)==null?NaN:(A=H.secondaryResults)==null?NaN:(Z=A.offerModule)==null?NaN:(U=Z.tvfilmOfferModuleRenderer)==null?NaN:(C=U.actionButtons)==null?NaN:C.length)-1;N=[".offerButton.buttonRenderer.",".actionButtons."+(F>=0?F:0)+".buttonRenderer."];t=_.D(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(O=t.next();!O.done;O=t.next())for(O=O.value,H=_.D(N),A=H.next();!A.done;A=H.next())if(A="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+O+A.value,A=this.get(A+"navigationEndpoint",this.data)||this.get(A+"serviceEndpoint",this.data)||this.get(A+"command",this.data)){_.CC(A,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(N){_.or(this.hostElement,"yt-autonav-pause-player",N)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(N){N()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(N){switch(N){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(N){switch(N){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.or(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(N)},
setPlayerState:function(N){_.v5().dispatch(_.Kir(N))},
onPlayerSubscribe_:function(N){_.sl(this.hostElement,"yt-player-subscribe",[N])},
onPlayerUnsubscribe_:function(N){_.sl(this.hostElement,"yt-player-unsubscribe",[N])},
onPlayerAdYtShowToast_:function(N){_.sl(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:N.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(N){if(N)return N},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(N){return!_.h("web_watch_move_summary_to_sd")&&!!N},
computeWatchMetadataRefresh:function(){return _.h("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var N,t,O,H;this.watchNextSecondaryResults=(N=this.data)==null?void 0:(t=N.contents)==null?void 0:(O=t.twoColumnWatchNextResults)==null?void 0:(H=O.secondaryResults)==null?void 0:H.secondaryResults}},
setRichGridRendererData:function(N){this.richGridRendererData=N},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var N,t=(N=this.data)==null?void 0:N.engagementPanels;if(t==null?0:t.length){N=null;t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;var H=void 0;if(((H=O.engagementPanelSectionListRenderer)==null?void 0:H.targetId)==="engagement-panel-structured-description"){N=O;break}}var A,Z,U;N=(A=N)==null?void 0:(Z=A.engagementPanelSectionListRenderer)==null?void 0:(U=Z.content)==null?void 0:U.structuredDescriptionContentRenderer;if(N==null?0:N.items){A=
[];Z=_.D(N.items);for(U=Z.next();!U.done;U=Z.next()){U=U.value;if(!_.h("sd_horizontal_list_show_nav_killswitch")){var C=H=O=t=N=void 0,F=void 0,g=(N=U.horizontalCardListRenderer)==null?void 0:(t=N.header)==null?void 0:(O=t.richListHeaderRenderer)==null?void 0:(H=O.navigationButton)==null?void 0:(C=H.buttonRenderer)==null?void 0:(F=C.command)==null?void 0:F.commandExecutorCommand;g&&g.commands&&(g.commands=g.commands.filter(function(B){return!_.M(B,_.yrV)}))}U.expandableVideoDescriptionBodyRenderer||
U.videoDescriptionHeaderRenderer||A.push(U)}return{items:A}}}},
constructWarning_:function(N){return{text:_.E_(N),type:"WARNING"}},
isPlaShelfEnabled_:function(N){if((this.get("adPlacements",N)||[]).length)return!0;N=this.get("playerAds",N)||[];return!(!N.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",N[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var N=this;_.or(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var t=this.getScrollTop()>0;this.gestures_&&(t?this.gestures_.detach():this.gestures_.attach());t!==this.showFullerscreenEdu_&&_.h("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=t,_.oM(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonVisibility(N.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.or(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var N=this;this.commentsReady=!1;_.GB.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.WX(_.GB,function(){N.setComments_()},1E3)},
setComments_:function(){if(!_.h("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.zT("cmi");_.GB.cancelJob(this.setCommentsJobId_);var N=this.getPageContents(this.data);if(N&&N.length){N=_.D(N);for(var t=N.next();!t.done;t=N.next())if(t=t.value,this.get("itemSectionRenderer.sectionIdentifier",t)==="comment-item-section"){this.comments=t.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.or(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.zT("cmc")},
doRemoveComments_:function(){this.comments={};_.h("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.GB.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.GB.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(N,t){var O=_.M(t.endpoint,_.rN);O&&(!(t=this.get("data.currentVideoEndpoint.watchEndpoint"))||O.videoId!==t.videoId||O.playlistId&&O.playlistId!==t.playlistId||O.index!==void 0&&O.index!==t.index||typeof O.startTimeSeconds!=="number"||(N.stopPropagation(),this.setScrollTop(0),_.oM(this).getPlayerPromise().then(function(H){var A=O.startTimeSeconds;H.seekTo(A);H.wakeUpControls();A<H.getDuration()&&H.playVideo()})))},
updatePlayerStartTime_:function(){var N=_.rGw();"t"in N&&(N=_.HOD(N.t),this.player.seekTo(N,!0))},
updateTitleFromWatchNext:function(N){N=this.getPageContents(N);var t,O;(N=_.Gv(N==null?void 0:(t=N[0])==null?void 0:(O=t.videoPrimaryInfoRenderer)==null?void 0:O.title))&&_.or(this.hostElement,"yt-update-title",N)},
updateTitle_:function(N){N=this.get("videoDetails.title",N)||"";_.or(this.hostElement,"yt-update-title",N)},
syncWithRemoteVideo_:function(N,t,O){if(this.active&&this.player){var H=this.player.getVideoData();if(H.video_id===O&&(O=H.list,_.h("polymer_enable_mdx_queue")&&O&&O.startsWith("RQ")&&(O=void 0),H.video_id!==N||O!=t)){var A;_.h("kevlar_player_watch_endpoint_navigation")?A=_.k$M(_.oHl(N,t)):A=this.buildWatchEndpoint_(N,t);_.or(this.hostElement,"yt-navigate",{endpoint:A,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(N,t,O){return _.sK(N,t,O)},
initDclkstatus_:function(){_.tnD()},
attachWatchPageSkeleton_:function(){var N=document.querySelector("#watch-page-skeleton");if(N){var t=N.querySelector("#primary-info"),O=N.querySelector("#secondary-info"),H=N.querySelector("#related");t&&_.O6(this.hostElement).querySelector("#info-skeleton").appendChild(t);O&&_.O6(this.hostElement).querySelector("#meta-skeleton").appendChild(O);H&&(_.O6(this.hostElement).querySelector("#related-skeleton").appendChild(H),this.watchNextSkeletonEl_=H);_.wb(N)}},
handlePlayerUpdated_:function(){_.oM(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(N,t){if(this.watchNextSkeletonEl_&&typeof t!=="undefined"){var O=this.watchNextSkeletonEl_.children,H=N&&N.indexSplices.length?N.indexSplices[0].index:0;N=Math.min(this.watchNextShownItems.length,O.length);t||(H=0,N=O.length);for(t=H;t<N;t++)O[t].classList.add("hidden")}},
onPlayerFullscreenChange_:function(N){_.h("external_fullscreen")||_.sl(this.hostElement,"yt-player-fullscreen",[N.fullscreen])},
onFullscreenChange_:function(N){this.fullscreen=N;this.gestures_&&this.gestures_.update(this.fullscreen);var t=_.oM(this);t.getPlayerPromise().then(function(O){O.setFauxFullscreen(!!_.G8())});
this.updateFullBleedElementLocations();N&&(t.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(N,t){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!t},
computeIsDonationShelfCollapsed_:function(N){return N},
computeShouldShowMerchShelf:function(N,t){return t&&!!N},
computeResponseHasComments:function(N){var t,O,H,A,Z;return!!(N==null?0:(t=N.contents)==null?0:(O=t.twoColumnWatchNextResults)==null?0:(H=O.results)==null?0:(A=H.results)==null?0:(Z=A.contents)==null?0:Z.some(function(U){var C;return(U==null?void 0:(C=U.itemSectionRenderer)==null?void 0:C.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(N,t){this.responseHasComments=this.computeResponseHasComments(this.data);return!!N&&!!Object.keys(N).length&&!t},
identity:_.xx,onWindowResized_:function(N){this.windowSize_=N;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(N){var t=this;N&&N.type!=="dataloaded"&&N.type!=="dataupdated"||_.oM(this).getPlayerPromise().then(function(O){var H=O.getPlayerState();H!==5&&H!==0&&(O=1/O.getVideoAspectRatio(),t.videoHeightToWidthRatio_!==O&&(t.videoHeightToWidthRatio_=O))})},
schedulePlayerSizeUpdate_:function(N){var t=this,O=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"),H=function(){if(t.watchMetadata){var A,Z;(Z=(A=t.watchMetadata).resize)==null||Z.call(A)}_.oM(t).getPlayerPromise().then(function(U){if(_.h("kevlar_set_internal_player_size")){if(!O||!t.isMiniplayerActive()){var C=t.calculateCurrentPlayerSize_();U.setInternalSize(C.width,C.height)}}else U.setSize(NaN,NaN);_.h("kevlar_watch_while")&&t.updateWatchWhileScrollThreshold_()})};
N?H():_.yD(_.GB,H)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(N){this.set("data.survey",N.detail)},
onYtShowSurveyCommand_:function(N){this.set("data.survey",_.M(N,_.FN9).survey)},
onDownloadedVideoDeleted:function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1){if(!t.active||(O=t.playerData)==null||!O.offlineState||t.videoId!==N)return A.return();(H=t.player)==null||H.stopVideo();_.Ry().navigatingAwayFromWatchDeletedVideo=!0;_.CC(_.QW9,t.hostElement);return A.yield(_.Ry().navigationFinishPromise,2)}_.Ry().navigatingAwayFromWatchDeletedVideo=!1;_.Ty(A)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var N;this.theater?N=_.eS(.5625*this.windowSize_.width,480,this.windowSize_.height-185):N=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==N&&(this.watchWhileScrollThreshold_=N,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var N=_.O6(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&N){var t=this.windowSize_.height>=624,O=this.active?this.getScrollTop():0;!N.active&&t&&O>=this.watchWhileScrollThreshold_?(N.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):N.active&&(!t||O<this.watchWhileScrollThreshold_&&!_.G8())&&(N.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(N,t){if(N!==!0||t!==void 0){N=!_.h("live_chat_over_engagement_panels");t=_.O6(this.hostElement).querySelector("#chat-container");var O=_.O6(this.hostElement).querySelector("#plj-sidebar"),H=_.O6(this.hostElement).querySelector("#panels"),A=_.O6(this.hostElement).querySelector("#plj-panels"),Z=_.O6(this.hostElement).querySelector("#plj-playlist"),U=_.O6(this.hostElement).querySelector("#alerts"),C=_.O6(this.hostElement).querySelector("#playlist"),F=_.O6(this.hostElement).querySelector("#related"),
g=_.O6(this.hostElement).querySelector("#donation-shelf"),B=_.O6(this.hostElement).querySelector("#comments");this.isTwoColumns_?(U=_.O6(this.hostElement).querySelector("#secondary-inner"),U.appendChild(O),O.appendChild(Z),Z.appendChild(C),O.appendChild(A),N&&U.appendChild(H),_.h("web_watch_theater_chat")||U.appendChild(t),N||U.appendChild(H),U.appendChild(g),U.appendChild(F)):(N&&_.W1(H,U),_.W1(C,U),_.h("web_watch_theater_chat")||_.W1(t,U),N||_.W1(H,U),_.W1(g,U),B&&(A&&_.W1(A,B),_.W1(F,B)));_.h("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.h("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.h("web_watch_theater_chat")){var N=_.O6(this.hostElement).querySelector("#chat-container"),t=this.theater&&!this.fullscreen||_.h("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&t?_.h("web_watch_theater_chat_beside_player")?(t=_.O6(this.hostElement).querySelector("#panels-full-bleed-container"),(N==null?void 0:N.parentElement)!==t&&t.append(N),this.panelsBesidePlayer=!0):_.h("web_watch_theater_fixed_chat")&&
(t=_.O6(this.hostElement).querySelector("#columns"),(N==null?void 0:N.parentElement)!==t&&t.append(N),this.fixedPanels=!0):(_.h("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.h("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),t=_.O6(this.hostElement).querySelector("#playlist"),N&&t?_.rI(N,t):_.J_(new _.fF("Missing element when updating chat location",{"chatContainer defined":!!N,"playlist defined":!!t})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(N,t){return _.h("sw_metadata_vis_toggle_ks")?!0:!!N||!!t},
computeForceDarkPanelTheme:function(N){return _.h("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&N:!1},
safeUpdateStyles:function(N){try{_.CO(this.hostElement,N)}catch(t){_.J_(t)}},
videoHeightToWidthRatioChanged_:function(N,t){t&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(N){this.videoHeightToWidthRatio_=1/N},
computeIsVerticalVideo_:function(N){return N>=1},
computeIsFourThreeToSixteenNineVideo_:function(N){return N<=.7501&&N>=.5624},
computeIsExtraWideVideo_:function(N){return N<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.oM(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.oM(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.ubR(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(N){var t=_.b8(N)||0;_.ML(N,t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var N=_.b8("yt-fullerscreen-edu-button-click-count")||0,t=_.b8("yt-fullerscreen-edu-button-shown-count")||0,O=_.uP("external_fullscreen_button_shown_threshold"),H=N>=_.uP("external_fullscreen_button_click_threshold")||t>=O;_.oM(this).getPlayerPromise().then(function(A){A.updateFullerscreenEduButtonSubtleModeState(H)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(N,t){return t},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.cY().resolve(_.$8).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var N=this;this.panelMaxHeightUpdateJob_&&_.GB.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.GB.addLowPriorityJob(function(){N.panelMaxHeightUpdateJob_=0;var t;!N.isTwoColumns_||N.theater||N.fullscreen?t=460:t=N.calculateNormalPlayerSize_().height;var O=t+"px";_.h("live_chat_taller_height")&&!N.theater&&(O="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.h("live_chat_medium_height")&&
!N.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.h("live_chat_scaled_height")&&!N.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 238px)");N.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":t+"px","--ytd-watch-flexy-chat-max-height":O,"--ytd-watch-flexy-structured-description-max-height":t+"px","--ytd-watch-flexy-comments-panel-max-height":t+"px","--ytd-comments-engagement-panel-content-height":t+"px"})})},
onYtShowEngagementPanelScrimAction_:function(N){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",N)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.OK(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(N){var t=_.O6(this.hostElement).querySelector("#engagement-panel-scrim");N?t.addEventListener("tap",_.Fb(this,this.onEngagementPanelScrimClick_)):t.removeEventListener("tap",_.Fb(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(N){if(this.hostElement.contains(N)&&!this.scrollToAnimation_.isAnimating()){var t=N.offsetTop-24;N=N.offsetTop+N.offsetHeight+24;var O=this.getPageScrollingElement(),H=this.getScrollTop(),A=H+O.clientHeight-56;if(t<H+56)t-=56;else if(N>A)t=N-O.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtSignalActionScrollToComments:function(){var N=this.hostElement.querySelector("#comments");if(N&&!this.scrollToAnimation_.isAnimating()){N=N.offsetTop-56-24;if(_.h("kevlar_comment_teaser_scroll_to_midpoint")&&(N-=_.Ti().height/3,N<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,N),500)}},
onYtEngagementPanelVisibleChanged:function(N,t,O){this.active&&this.trackEngagementPanelVisibility&&!_.CcV.includes(O)&&(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(O),t!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(O),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(N){return N?"":"watch-active-metadata"},
computeNewMetadataClass:function(N){return N?"watch-active-metadata":""},
computeFullBleedPlayer:function(N,t){return N||t},
computeDefaultLayout:function(N){return!N},
computeDefaultTwoColumnLayout:function(N,t){return!N&&t},
computeWatchWhilePanelsActive:function(N,t){return N||t},
computeNoBorderOnChat:function(N){return _.h("web_watch_theater_chat_no_border")&&N},
computeLiveChatPresentAndExpanded:function(N,t){return N&&!t},
computePanelExpanded:function(N,t,O){return N||t||O},
onChangeMarkersVisibility:function(N){_.oM(this).getPlayerPromise().then(function(t){var O;(O=t.changeMarkerVisibility)==null||O.call(t,_.M(N,_.lS).isVisible||!1,_.M(N,_.lS).entityKeys||[],_.M(N,_.lS).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(N){this.liveChatCollapsed=N.detail;_.v5().dispatch(_.Ufl(N.detail))},
provideRenderingData:function(N,t){switch(N){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=t;break;case "PRIMARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=t);this.videoPrimaryInfoRendererValue=t==null?void 0:t.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=t);this.videoSecondaryInfoRendererValue=t==null?void 0:t.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
t;break;case "CLARIFICATION":this.clarifyBoxValue=t;break;case "LIVE_CHAT":this.conversationBar=t;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=t;break;case "PLAYLIST":this.externalPlaylistData_=t!=null?t:{};break;case "MERCH_SHELF":this.merchShelfValue=t==null?void 0:t.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=t;break;case "OFFER_MODULE":this.offerModule=t;break;case "LIMITED_STATE":this.limitedStateValue=t;break;case "DONATION_SHELF":this.donation=t;break;
case "ALERTS":this.alertsValue=t;break;case "COMMENTS":this.comments=t;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=t;break;case "ENGAGEMENT_PANELS":this.engagementPanels=t;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=t;break;case "RICH_GRID_RENDERER":this.richGridRendererData=t;break;case "EXPANDABLE_METADATA":this.expandableMetadata=t;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=t}},
toggleCinematicsActive:function(N){this.cinematicsActive=N},
isMiniplayerActive:function(){return _.cY().resolve(_.kf).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(N){return rn1.map(function(t){return N.find(function(O){var H;return(O==null?void 0:(H=O.engagementPanelSectionListRenderer)==null?void 0:H.targetId)===t})}).filter(function(t){return t!==void 0})},
getNonLearningJourneyEngagementPanels:function(N){return N.filter(function(t){var O;return!rn1.includes((t==null?void 0:(O=t.engagementPanelSectionListRenderer)==null?void 0:O.targetId)||"")})}}];var IrN;var sF=function(){var N=_.k.apply(this,arguments)||this;N.flexy=!0;N.learningJourney=!0;N.viewTransitionEnabled=_.h("enable_player_resize_transition");N.smallerChatMinHeight=_.h("live_chat_smaller_min_height");N.isDarkTheme=document.documentElement.hasAttribute("dark");N.theaterLargerPlayer=_.h("web_watch_theater_larger_player");N.defaultCollapsePlaylist=_.h("web_watch_default_collapse_playlist");N.enableCanvasLayout=_.h("web_enable_canvas_on_learning_journey");return N};
_.p(sF,_.k);_.V=sF.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var N=this,t=function(){N.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(N){_.h("web_watch_update_narrow_width_killswitch")||_.v5().dispatch(_.DVm(!N.detail.value));this.ytdWatchBehavior.isTwoColumns_=N.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(N){this.ytdWatchBehavior.flexySmallWindow_=N.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(N){this.ytdWatchBehavior.flexyLargeWindow_=N.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(N){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=N.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(N){this.ytdWatchBehavior.watchNextCanShowMore=N.detail.value};
_.V.updateShownItemsFromBinding=function(N){N.detail.path?this.set(N.detail.path,N.detail.value):this.ytdWatchBehavior.watchNextShownItems=N.detail.value};
_.V.getElement=function(N){switch(N){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23770_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23770_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.cv.Object.defineProperties(sF.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(N=_.M(this.data.pageVisualEffects[t],_.ts))return t=void 0,(t=N.config)==null?void 0:t.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.learningJourneyEngagementPanels)==null?void 0:N.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.learningJourneyEngagementPanels)==null?void 0:N.find(function(u){var S;return(u==null?void 0:(S=u.engagementPanelSectionListRenderer)==null?void 0:S.panelIdentifier)==="learning-journey-engagement-panel"});
if(t){var O,H,A,Z,U,C,F,g,B;if(N=(g=((F=(U=((Z=t==null?void 0:(O=t.engagementPanelSectionListRenderer)==null?void 0:(H=O.content)==null?void 0:(A=H.sectionListRenderer)==null?void 0:A.contents)!=null?Z:[])[0])==null?void 0:(C=U.itemSectionRenderer)==null?void 0:C.contents)!=null?F:[])[0])==null?void 0:(B=g.accordionViewModel)==null?void 0:B.onTitleTap){var c=_.wF(N);if(c)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.U4.instance.resolveCommand(c)}}}}}}});
_.cv.Object.defineProperties(sF,{template:{configurable:!0,enumerable:!0,get:function(){if(IrN===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);IrN=N}N=IrN;return N}}});
sF.prototype.updateMiniplayerIsActiveValue=sF.prototype.updateMiniplayerIsActiveValue;sF.prototype.updateScrollTopValue=sF.prototype.updateScrollTopValue;sF.prototype.updateFullscreenValue=sF.prototype.updateFullscreenValue;sF.prototype.updateTheaterValue=sF.prototype.updateTheaterValue;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],sF.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(WNs.YtdLearningJourneyWatchBehavior),_.Q("design:type",Object)],sF.prototype,"ytdWatchBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],sF.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sF.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],sF.prototype,"playerData",void 0);_.W([_.X(),_.Q("design:type",Object)],sF.prototype,"browseData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sF.prototype,"flexy",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sF.prototype,"learningJourney",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sF.prototype,"viewTransitionEnabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sF.prototype,"smallerChatMinHeight",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sF.prototype,"isDarkTheme",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sF.prototype,"theaterLargerPlayer",void 0);_.W([_.X(),_.Q("design:type",Object)],sF.prototype,"defaultCollapsePlaylist",void 0);_.W([_.X(),_.Q("design:type",Object)],sF.prototype,"enableCanvasLayout",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("playerData","browseData","enableCanvasLayout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],sF.prototype,"showBrowseResponse",null);
_.W([_.X({reflectToAttribute:!0}),_.a("playerData","enableCanvasLayout"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],sF.prototype,"showWatchResponse",null);_.W([_.X({selector:_.aM}),_.Q("design:type",Object)],sF.prototype,"theaterValue",void 0);_.W([_.X({selector:_.TI}),_.Q("design:type",Object)],sF.prototype,"fullscreenValue",void 0);_.W([_.X({selector:_.T0}),_.Q("design:type",Object)],sF.prototype,"scrollTopValue",void 0);
_.W([_.X({selector:_.w8}),_.Q("design:type",Object)],sF.prototype,"miniplayerIsActiveValue",void 0);_.W([_.B2("#ytd-plj-player"),_.Q("design:type",HTMLElement)],sF.prototype,"ytdPlayer",void 0);_.W([_.B2("#playlist"),_.Q("design:type",HTMLElement)],sF.prototype,"JSC$23770_ytdPlaylistPanelRenderer",void 0);_.W([_.BQ("ytd-comments"),_.Q("design:type",HTMLElement)],sF.prototype,"ytdComments",void 0);_.W([_.B2("#primary"),_.Q("design:type",HTMLElement)],sF.prototype,"primary",void 0);
_.W([_.B2("#secondary"),_.Q("design:type",HTMLElement)],sF.prototype,"secondary",void 0);_.W([_.B2("#player-container"),_.Q("design:type",HTMLElement)],sF.prototype,"playerContainer",void 0);_.W([_.B2("#cinematics"),_.Q("design:type",HTMLElement)],sF.prototype,"JSC$23770_cinematics",void 0);_.W([_.gz("theaterValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sF.prototype,"updateTheaterValue",null);
_.W([_.gz("fullscreenValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sF.prototype,"updateFullscreenValue",null);_.W([_.gz("scrollTopValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sF.prototype,"updateScrollTopValue",null);_.W([_.gz("miniplayerIsActiveValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sF.prototype,"updateMiniplayerIsActiveValue",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],sF.prototype,"cinematicLightTheme",null);_.W([_.X({reflectToAttribute:!0}),_.a("learningJourneyEngagementPanels"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],sF.prototype,"hasLearningJourneyPanels",null);_.W([_.a("learningJourneyEngagementPanels"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],sF.prototype,"backButtonData",null);_.W([_.en({is:"ytd-watch-learning-journey"})],sF);_.CX.registerService(_.uzQ,sF);
_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("Tm0L3c");
var ar9;var TzD;var w2w=function(){return _.k.apply(this,arguments)||this};
_.p(w2w,_.k);_.W([_.en({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],w2w);
_.n(w2w,"ytd-ghost-comments-renderer",function(){if(TzD===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);TzD=N}N=TzD;return N},{mode:1});var ehm;var PcD=function(){return _.k.apply(this,arguments)||this};
_.p(PcD,_.k);_.W([_.en({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],PcD);
_.n(PcD,"ytd-ghost-watch-metadata-renderer",function(){if(ehm===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);ehm=N}N=ehm;return N},{mode:1});var oU=function(){var N=_.k.apply(this,arguments)||this;N.ghostGridRenderer={rows:6};N.smallerChatMinHeight=_.h("live_chat_smaller_min_height");N.darkerPanels=_.h("web_watch_darker_panels");N.isDarkTheme=document.documentElement.hasAttribute("dark");return N};
_.p(oU,_.k);_.V=oU.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.V.ready=function(){var N=this,t=function(){N.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(N){this.ytdWatchBehavior.isTwoColumns_=N.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(N){this.ytdWatchBehavior.flexySmallWindow_=N.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(N){this.ytdWatchBehavior.flexyLargeWindow_=N.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(N){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=N.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(N){this.ytdWatchBehavior.watchNextCanShowMore=N.detail.value};
_.V.updateShownItemsFromBinding=function(N){_.h("swatcheroo_direct_use_rich_grid")||(N.detail.path?this.set(N.detail.path,N.detail.value):this.ytdWatchBehavior.watchNextShownItems=N.detail.value)};
_.V.getElement=function(N){switch(N){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23758_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23758_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.cv.Object.defineProperties(oU.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(N=_.M(this.data.pageVisualEffects[t],_.ts))return t=void 0,(t=N.config)==null?void 0:t.enableInLightTheme;return!1}}});
oU.prototype.updateMiniplayerIsActiveValue=oU.prototype.updateMiniplayerIsActiveValue;oU.prototype.updateScrollTopValue=oU.prototype.updateScrollTopValue;oU.prototype.updateFullscreenValue=oU.prototype.updateFullscreenValue;oU.prototype.updateTheaterValue=oU.prototype.updateTheaterValue;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],oU.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.zhR.YtdWatchBehavior),_.Q("design:type",Object)],oU.prototype,"ytdWatchBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],oU.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oU.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],oU.prototype,"ghostGridRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],oU.prototype,"playerData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],oU.prototype,"smallerChatMinHeight",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],oU.prototype,"darkerPanels",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],oU.prototype,"isDarkTheme",void 0);_.W([_.X({selector:_.aM}),_.Q("design:type",Object)],oU.prototype,"theaterValue",void 0);_.W([_.X({selector:_.TI}),_.Q("design:type",Object)],oU.prototype,"fullscreenValue",void 0);_.W([_.X({selector:_.T0}),_.Q("design:type",Object)],oU.prototype,"scrollTopValue",void 0);
_.W([_.X({selector:_.w8}),_.Q("design:type",Object)],oU.prototype,"miniplayerIsActiveValue",void 0);_.W([_.B2("#ytd-player"),_.Q("design:type",HTMLElement)],oU.prototype,"ytdPlayer",void 0);_.W([_.B2("#playlist"),_.Q("design:type",HTMLElement)],oU.prototype,"JSC$23758_ytdPlaylistPanelRenderer",void 0);_.W([_.B2("#ytd-comments"),_.Q("design:type",HTMLElement)],oU.prototype,"ytdComments",void 0);_.W([_.B2("#primary"),_.Q("design:type",HTMLElement)],oU.prototype,"primary",void 0);
_.W([_.B2("#secondary"),_.Q("design:type",HTMLElement)],oU.prototype,"secondary",void 0);_.W([_.B2("#player-container"),_.Q("design:type",HTMLElement)],oU.prototype,"playerContainer",void 0);_.W([_.B2("#cinematics"),_.Q("design:type",HTMLElement)],oU.prototype,"JSC$23758_cinematics",void 0);_.W([_.gz("theaterValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oU.prototype,"updateTheaterValue",null);
_.W([_.gz("fullscreenValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oU.prototype,"updateFullscreenValue",null);_.W([_.gz("scrollTopValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oU.prototype,"updateScrollTopValue",null);_.W([_.gz("miniplayerIsActiveValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oU.prototype,"updateMiniplayerIsActiveValue",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],oU.prototype,"cinematicLightTheme",null);
_.n(oU,"ytd-watch-grid",function(){if(ar9===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);ar9=N}N=ar9;return N},{mode:2});_.CX.registerService(_.iWG,oU);
_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("CF909");
var Y6w;var JT=function(){var N=_.k.apply(this,arguments)||this;N.viewTransitionEnabled=_.h("enable_player_resize_transition");N.smallerChatMinHeight=_.h("live_chat_smaller_min_height");N.isDarkTheme=document.documentElement.hasAttribute("dark");N.defaultCollapsePlaylist=_.h("web_watch_default_collapse_playlist");N.respectAspectRatio=_.h("web_enable_aspect_ratio_fix");N.retroModeReduxValue=!1;N.persistentPanelVisibleValue=!1;return N};
_.p(JT,_.k);_.V=JT.prototype;_.V.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.V.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.V.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.V.updateRetroModeReduxValue=function(){_.h("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.V.updatePersistentPanelVisibleValue=function(){_.h("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.V.ready=function(){var N=this,t=function(){N.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.V.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.V.updateIsTwoColumnsFromBinding=function(N){_.h("web_watch_update_narrow_width_killswitch")||_.v5().dispatch(_.DVm(!N.detail.value));this.ytdWatchBehavior.isTwoColumns_=N.detail.value};
_.V.updateFlexySmallWindowFromBinding=function(N){this.ytdWatchBehavior.flexySmallWindow_=N.detail.value};
_.V.updateFlexyLargeWindowFromBinding=function(N){this.ytdWatchBehavior.flexyLargeWindow_=N.detail.value};
_.V.updateWatchWhileWindowSizeSufficientFromBinding=function(N){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=N.detail.value};
_.V.updateWatchNextCanShowMoreFromBinding=function(N){this.ytdWatchBehavior.watchNextCanShowMore=N.detail.value};
_.V.updateShownItemsFromBinding=function(N){N.detail.path?this.set(N.detail.path,N.detail.value):this.ytdWatchBehavior.watchNextShownItems=N.detail.value};
_.V.getElement=function(N){switch(N){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23753_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23753_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.cv.Object.defineProperties(JT.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(N=_.M(this.data.pageVisualEffects[t],_.ts))return t=void 0,(t=N.config)==null?void 0:t.enableInLightTheme;return!1}}});
_.cv.Object.defineProperties(JT,{template:{configurable:!0,enumerable:!0,get:function(){if(Y6w===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);Y6w=N}N=Y6w;return N}}});
JT.prototype.updatePersistentPanelVisibleValue=JT.prototype.updatePersistentPanelVisibleValue;JT.prototype.updateRetroModeReduxValue=JT.prototype.updateRetroModeReduxValue;JT.prototype.updateScrollTopValue=JT.prototype.updateScrollTopValue;JT.prototype.updateFullscreenValue=JT.prototype.updateFullscreenValue;JT.prototype.updateTheaterValue=JT.prototype.updateTheaterValue;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],JT.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.zhR.YtdWatchBehavior),_.Q("design:type",Object)],JT.prototype,"ytdWatchBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],JT.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],JT.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],JT.prototype,"playerData",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JT.prototype,"viewTransitionEnabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JT.prototype,"smallerChatMinHeight",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JT.prototype,"isDarkTheme",void 0);_.W([_.X(),_.Q("design:type",Object)],JT.prototype,"defaultCollapsePlaylist",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JT.prototype,"respectAspectRatio",void 0);
_.W([_.X({selector:_.aM}),_.Q("design:type",Object)],JT.prototype,"theaterValue",void 0);_.W([_.X({selector:_.TI}),_.Q("design:type",Object)],JT.prototype,"fullscreenValue",void 0);_.W([_.X({selector:_.T0}),_.Q("design:type",Object)],JT.prototype,"scrollTopValue",void 0);_.W([_.X({selector:_.w8}),_.Q("design:type",Object)],JT.prototype,"miniplayerIsActive",void 0);_.W([_.X({selector:function(N){return N.watch.isWatchRetroMode}}),
_.Q("design:type",Object)],JT.prototype,"retroModeReduxValue",void 0);_.W([_.X({selector:_.Wz.persistentPanelVisibleSelector}),_.Q("design:type",Object)],JT.prototype,"persistentPanelVisibleValue",void 0);_.W([_.BQ("ytd-player"),_.Q("design:type",HTMLElement)],JT.prototype,"ytdPlayer",void 0);_.W([_.B2("#playlist"),_.Q("design:type",HTMLElement)],JT.prototype,"JSC$23753_ytdPlaylistPanelRenderer",void 0);_.W([_.BQ("ytd-comments"),_.Q("design:type",HTMLElement)],JT.prototype,"ytdComments",void 0);
_.W([_.B2("#primary"),_.Q("design:type",HTMLElement)],JT.prototype,"primary",void 0);_.W([_.B2("#secondary"),_.Q("design:type",HTMLElement)],JT.prototype,"secondary",void 0);_.W([_.B2("#player-container"),_.Q("design:type",HTMLElement)],JT.prototype,"playerContainer",void 0);_.W([_.B2("#below"),_.Q("design:type",HTMLElement)],JT.prototype,"below",void 0);_.W([_.B2("#cinematics"),_.Q("design:type",HTMLElement)],JT.prototype,"JSC$23753_cinematics",void 0);
_.W([_.B2("#persistent-panel-container"),_.Q("design:type",HTMLElement)],JT.prototype,"persistentPanelContainer",void 0);_.W([_.gz("theaterValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JT.prototype,"updateTheaterValue",null);_.W([_.gz("fullscreenValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JT.prototype,"updateFullscreenValue",null);
_.W([_.gz("scrollTopValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JT.prototype,"updateScrollTopValue",null);_.W([_.gz("retroModeReduxValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JT.prototype,"updateRetroModeReduxValue",null);_.W([_.gz("persistentPanelVisibleValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JT.prototype,"updatePersistentPanelVisibleValue",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JT.prototype,"cinematicLightTheme",null);_.W([_.en({is:"ytd-watch-flexy"})],JT);_.CX.registerService(_.jUy,JT);
_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("nmfa2d");
var W1R;var r$=function(){var N=_.k.apply(this,arguments)||this;N.hidden=!1;N.errorScreen=null;N.playlistData={};return N};
_.p(r$,_.k);_.V=r$.prototype;_.V.getPlayer=function(){return this.ytdPlayer};
_.V.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.G$(["aa","eocs"])}}};
_.V.onActiveChanged=function(){_.v5().dispatch(_.$Ld(this.ytPageBehavior.active))};
_.V.playerDataChanged=function(){var N;(N=this.watchController)==null||N.setPlayerResponse(this.playerData)};
_.V.dataChanged=function(){var N;(N=this.watchController)==null||N.setWatchNextResponse(this.data)};
_.V.sizeChanged=function(){var N,t;(t=(N=this.metadata).resize)==null||t.call(N)};
_.V.attached=function(){this.watchController=new _.nW(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.V.detached=function(){_.F$(this.watchController);this.watchController=void 0};
_.V.getPlayerContainer=function(){return this.playerContainer};
_.V.getElement=function(N){switch(N){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.V.provideRenderingData=function(N,t){switch(N){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=t;break;case "ERROR_SCREEN":this.errorScreen=t!=null?t:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=t;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=t;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=t;break;case "RICH_METADATA":this.richMetadataRowContainer=t;break;case "CLARIFICATION":this.clarificationData=t;break;case "PLAYLIST":this.playlistData=
t!=null?t:{};break;case "MERCH_SHELF":this.merchShelf=t;break;case "TICKET_SHELF":this.ticketShelf=t;break;case "LIMITED_STATE":this.limitedState=t;break;case "DONATION_SHELF":this.donationShelf=t;break;case "ALERTS":this.alerts=t}};
_.cv.Object.defineProperties(r$.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return!this.hidden&&!!((N=this.data)==null?0:(t=N.contents)==null?0:(O=t.twoColumnWatchNextResults)==null?0:O.conversationBar)}}});
r$.prototype.sizeChanged=r$.prototype.sizeChanged;r$.prototype.dataChanged=r$.prototype.dataChanged;r$.prototype.playerDataChanged=r$.prototype.playerDataChanged;r$.prototype.onActiveChanged=r$.prototype.onActiveChanged;_.W([_.Y(_.As.YtPageBehavior),_.Q("design:type",Object)],r$.prototype,"ytPageBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],r$.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],r$.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"playerData",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],r$.prototype,"hidden",void 0);_.W([_.B2("#ytd-player"),_.Q("design:type",HTMLElement)],r$.prototype,"ytdPlayer",void 0);_.W([_.B2("#player-container"),_.Q("design:type",HTMLElement)],r$.prototype,"playerContainer",void 0);_.W([_.B2("#metadata"),_.Q("design:type",Object)],r$.prototype,"metadata",void 0);_.W([_.B2("#playlist"),_.Q("design:type",HTMLElement)],r$.prototype,"playlistPanel",void 0);
_.W([_.X({selector:_.HFl,reflectToAttribute:!0}),_.Q("design:type",Object)],r$.prototype,"fixie",void 0);_.W([_.X({selector:_.N2G,reflectToAttribute:!0}),_.Q("design:type",Object)],r$.prototype,"singleColumn",void 0);_.W([_.X({selector:function(N){return _.aM(N)&&!_.TI(N)},
reflectToAttribute:!0}),_.Q("design:type",Object)],r$.prototype,"theater",void 0);_.W([_.X({selector:_.TI,reflectToAttribute:!0}),_.Q("design:type",Object)],r$.prototype,"fullscreen",void 0);_.W([_.X({selector:_.yGd}),_.Q("design:type",Object)],r$.prototype,"windowSize",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"singleColumnContents",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"errorScreen",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"playlistData",void 0);
_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"videoPrimaryInfoRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"videoSecondaryInfoRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"richMetadataRowContainer",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"clarificationData",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"commentsEntryPointHeaderRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"ticketShelf",void 0);
_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"merchShelf",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"donationShelf",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"limitedState",void 0);_.W([_.X(),_.Q("design:type",Object)],r$.prototype,"alerts",void 0);_.W([_.a("playlistData"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],r$.prototype,"hasPlaylistData",null);
_.W([_.a("data","hidden"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],r$.prototype,"hasChat",null);_.W([_.gz("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],r$.prototype,"onActiveChanged",null);_.W([_.gz("playerData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],r$.prototype,"playerDataChanged",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],r$.prototype,"dataChanged",null);_.W([_.gz("windowSize","singleColumn"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],r$.prototype,"sizeChanged",null);
_.n(r$,"ytd-watch-fixie",function(){if(W1R===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);W1R=N}N=W1R;return N},{mode:1});_.CX.registerService(_.$b4,r$);
_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("xwEKAe");
var saR=function(N){N=N.command;var t=_.M(N,_.jc);return{command:N,reelPlayerOverlayRenderer:_.M(t==null?void 0:t.overlay,_.Aif),thumbnail:t==null?void 0:t.thumbnail,videoId:t.videoId}},Nud=function(N){N=N.command;
var t=_.M(N,_.KY);return{command:N,reelNonVideoContentRenderer:_.M(t==null?void 0:t.renderer,_.d_)}},tT1=function(N){return N.entries?N.entries.map(function(t){return _.M(t==null?void 0:t.command,_.jc)?saR(t):Nud(t)}):[]},OL8=function(N){return N.prevEntries?N.prevEntries.map(function(t){return _.M(t==null?void 0:t.command,_.jc)?saR(t):Nud(t)}):[]},HL1=function(N){return _.FW(N)?N.getAttribute("jsname")==="coFSxe":!1},AOr=function(N,t){t.id||(t.id="ow"+_.GM(t));
N.setAttribute("jsowner",t.id);N.__owner=t;var O=_.EW(t,HL1);O&&(_.lAR.has(O)||_.lAR.set(O,[]),_.lAR.get(O).push(N));(O=_.IAB.get(t))||_.IAB.set(t,O=[]);O.includes(N)||O.push(N);t.setAttribute("__IS_OWNER",!0)},ZLD=function(){var N=_.ucl(1);
N=_.Kt(N,_.L8x);if(!(_.izG(N)||N[_.ivp]&&!N.__hasBeenSet))return N.value},VTd=function(N){return(N=_.JKv(N))?_.stQ(N):0},DCV=function(N){return N.shorts.isSmallScreenSqueezeback},UC8=function(N){return N.shorts.isPlaybackStarted},Cfu=function(N){var t=_.d0();
if(t.getFlag(202))t=t.getFlag(201);else{var O;t=(N==null?void 0:(O=N.config)==null?void 0:O.settingOnByDefault)!==void 0?N.config.settingOnByDefault:!_.h("web_shorts_cinematics_disabled_by_default")}return t},KDu=function(N){var t=_.d0();
_.g0(0,201,N);_.g0(0,202,!0);t.save()},glV=function(N){var t=_.ucl(2),O=new Set;
_.Ia(function(){return void O.forEach(function(H){return void H()})});
return function(H){var A=_.Ct(t);try{var Z=FDN(dCd(N),H);O.add(Z);return function(){Z();O.delete(Z)}}finally{_.Ct(A)}}},yOl=function(N){var t=N.children;
var O=N.root;_.lf(function(){var H=glV(O)(t);_.Ia(H)});
return document.createTextNode("")},FDN=function(N,t){var O=Bu$(N);
(N=ZLD())&&AOr(O,N);_.pL.setUp();t=_.D(_.r5Q(t,!0));N=t.next().value;var H=t.next().value;t=_.D(N);for(N=t.next();!N.done;N=t.next())O.appendChild(N.value);_.pL.log(O);_.pL.tearDown();return function(){H();O.remove()}},dCd=function(N){if(typeof N==="string")return N=document.querySelector(N),_.Tzi(N),N;
if(_.$l(N)&&N.nodeType===Node.ELEMENT_NODE)return N;if(!N.__value&&!N.__optional){var t=_.Sl9.USE_ELEMENT_NOT_ASSIGNED(N.__expectedTagName);N.__hasErrored=!0;throw t;}return N.value},Bu$=function(N){var t=document.createElementNS(N.namespaceURI,N.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return N.appendChild(t)},cO1=function(N,t,O,H){N=t-N;
O=H-O;return Math.sqrt(N*N+O*O)},$CR=function(N){var t=N>>8&255,O=N&255;
return"#"+(N>>16&255).toString(16).padStart(2,"0")+t.toString(16).padStart(2,"0")+O.toString(16).padStart(2,"0")},joR=function(N,t){N&&_.cY().resolve(_.jo).resolveCommand(N,{forceClickLogging:!0,
form:{element:t}})},iL9=function(){return _.cY().resolve(_.RZ).dismissedIndices},uNN=function(N,t){var O,H,A,Z,U,C,F,g,B;
return _.K(function(c){if(c.nextAddress==1){O=_.cY().resolve(_.mo);Z=(H=O)==null?void 0:(A=H.reelWatchEndpointMap)==null?void 0:A.reelWatchSequence;C=(U=N.innertubeTransportService)!=null?U:_.cY().resolve(_.Sc);if(!Z)return c.jumpTo(2);F=Z();return(g=F.JSC$14325_getRequest(t,{}))?c.yield(_.cT(C,g.innerTubeRequest,g.input,t.clickTrackingParams,g.config),4):c.jumpTo(2)}return c.nextAddress!=2?(B=c.yieldResult,c.return(B)):c.return(void 0)})},S2N=function(N,t,O){var H,A=(H=_.M(t,_.jc))==null?void 0:
H.videoId;
H=!(!A||!N.find(function(U){return U.videoId&&U.videoId===A}));
var Z=!!N.find(function(U){var C;return((C=_.M(U.command,_.jc))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
N=!!N.find(function(U){return!!_.M(U.command,_.KY)&&!!_.M(t,_.KY)&&U.command===t});
return O?H||N:H||Z||N},hgA=function(N,t,O){var H=[].concat(_.W6(N)),A=0,Z=O?tT1(O):[];
O=O?OL8(O):[];t&&!S2N(N,t.command)&&H.unshift(t);Z.length&&!S2N(N,Z[0].command,!0)&&H.push.apply(H,_.W6(Z));t&&O.length&&!S2N(N,O[0].command)&&(H.unshift.apply(H,_.W6(O.reverse())),A=O.length);return{newContentList:H,indexChange:A}},MT9=function(N){return _.H5({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:N}})},bLA=function(N){return _.H5({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:N}})},pZ1=function(N){return _.H5({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:N}})};var S2=function(N,t){if(N instanceof S2)this.array_=N.array_;else{var O;if(O=_.lQ(N))a:{for(var H=O=0;H<N.length;H++){if(!_.lQ(N[H])||O>0&&N[H].length!=O){O=!1;break a}for(var A=0;A<N[H].length;A++)if(typeof N[H][A]!=="number"){O=!1;break a}O==0&&(O=N[H].length)}O=O!=0}if(O)this.array_=_.Il(N);else if(N instanceof _.aN)this.array_=LDl(N.height,N.width);else if(typeof N==="number"&&typeof t==="number"&&N>0&&t>0)this.array_=LDl(N,t);else throw Error("Uo");}this.size_=new _.aN(this.array_[0].length,
this.array_.length)},zgw=function(N,t,O){for(var H=0;H<N.getSize().height;H++)for(var A=0;A<N.getSize().width;A++)t.call(O,N.array_[H][A],H,A,N)},Y2A=function(N,t){var O=new S2(N.getSize());
zgw(N,function(H,A,Z){O.array_[A][Z]=t.call(void 0,H,A,Z,N)});
return O},LDl=function(N,t){for(var O=[],H=0;H<N;H++){O[H]=[];
for(var A=0;A<t;A++)O[H][A]=0}return O};
S2.prototype.add=function(N){if(!_.YHm(this.size_,N.getSize()))throw Error("Vo");return Y2A(this,function(t,O,H){return t+N.array_[O][H]})};
S2.prototype.equals=function(N,t){if(this.size_.width!=N.size_.width||this.size_.height!=N.size_.height)return!1;t=t||0;for(var O=0;O<this.size_.height;O++)for(var H=0;H<this.size_.width;H++)if(!_.z38(this.array_[O][H],N.array_[O][H],t))return!1;return!0};
S2.prototype.getSize=function(){return this.size_};
var hz=function(N,t,O){return t>=0&&t<N.size_.height&&O>=0&&O<N.size_.width?N.array_[t][O]:null};
S2.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var at8=function(N,t,O,H){if(!(t>=0&&t<N.size_.height&&O>=0&&O<N.size_.width))throw Error("Wo`"+t+"`"+O+"`"+N.size_.height+"`"+N.size_.width);N.array_[t][O]=H};
S2.prototype.multiply=function(N){if(N instanceof S2){if(this.size_.width!=N.getSize().height)throw Error("Xo");return Tuu(this,N)}if(typeof N==="number")return wZd(this,N);throw Error("Yo");};
var Tuu=function(N,t){var O=new S2(N.size_.height,t.getSize().width);zgw(O,function(H,A,Z){for(var U=H=0;U<this.size_.width;U++)H+=hz(this,A,U)*hz(t,U,Z);at8(O,A,Z,H)},N);
return O},wZd=function(N,t){return Y2A(N,function(O){return O*t})};var egu=new _.Fp("inlineSurveyRenderer");var Pfw=new _.Fp("interstitialViewModel");var XZ9=new _.Fp("reelNavigateCommand");var xC9=new _.Fp("reelNonVideoContentDismissalCommand");var km$=new _.Fp("showReelsCommentsOverlayCommand");var q2d=new _.Fp("videoInteractionPopUpRenderer");var ftl=new _.Fp("pollChoiceData");var nlu;var WDd;var rOV;var Mt=function(){var N=_.k.apply(this,arguments)||this;N.ctaVisualElement=null;N.currentCsn=null;return N};
_.p(Mt,_.k);_.V=Mt.prototype;_.V.onDataChanged=function(){this.maybeLogShows()};
_.V.computeButtonShape=function(){var N=this;if(this.data)return{buttonText:_.Gv(this.data.text),state:"active",onTap:function(){N.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.V.maybeCreateCtaVe=function(){var N;if((N=this.data)!=null&&N.badgeInteractionLogging){var t;if(N=(t=this.data.badgeInteractionLogging)==null?void 0:t.trackingParams)this.ctaVisualElement=_.ib(N)}};
_.V.maybeLogClicks=function(){this.currentCsn=_.z8(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.IX(this.currentCsn,this.ctaVisualElement)};
_.V.maybeLogShows=function(){this.currentCsn=_.z8(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Wc(this.currentCsn,[this.ctaVisualElement])};
_.V.onTap=function(){var N;if((N=this.data)!=null&&N.onClickCommand){var t;this.ytComponentBehavior.resolveCommand((t=this.data)==null?void 0:t.onClickCommand);this.maybeLogClicks()}};
Mt.prototype.onDataChanged=Mt.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Mt.prototype,"ytComponentBehavior",void 0);_.W([_.X({}),_.Q("design:type",Object)],Mt.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Mt.prototype,"onDataChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Mt);
_.n(Mt,"ytd-shopping-overlay-badge-renderer",function(){if(rOV!==void 0)return rOV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rOV=N},{mode:1});_.o_(_.dC1,"reel-sound-metadata-view-model",{props:{data:_.R_,overlayDensity:_.R_}});_.o_(_.Z8z,"player-disclosure-view-model",{props:{data:_.$O,extractOverlay:_.$O}});_.o_(_.Or_,"pivot-button-view-model",{props:{data:_.R_,className:_.R_}});_.o_(_.Hrr,"reel-action-bar-view-model",{props:{data:_.$O,buttonShapeOverrideables:_.$O}});_.o_(_.dgx,"yt-reel-metapanel-view-model",{props:{data:_.$O,overlayDensity:_.$O,extractOverlay:_.$O}});var Itm=_.q(function(N){var t=N.children;var O=N.region;N=_.D(_.b$(void 0,void 0,"flxBBc"));var H=N.next().value,A=N.next().value;N=_.D(_.b$("0px",void 0,"IAR7k"));var Z=N.next().value,U=N.next().value;N=_.D(_.b$("0px",void 0,"QV4iWb"));var C=N.next().value,F=N.next().value;N=_.D(_.b$(0,void 0,"Q2oK6b"));var g=N.next().value,B=N.next().value;N=_.D(_.b$(0,void 0,"hYKowe"));var c=N.next().value,u=N.next().value,S=function(){var l=H();if(l){var I;if(((I=_.FF())==null?void 0:I.getPlayerState())!==-1){l.style.display=
"inherit";var r;(r=_.FF())==null||r.removeEventListener("onStateChange",S)}else l.style.display="none";z()}},b=function(){var l;
return(l=_.si())==null?void 0:l.querySelector("video")},z=function(){var l=b();
if(l){B(l.getBoundingClientRect().width);u(l.getBoundingClientRect().height);var I;U((l==null?void 0:(I=l.style)==null?void 0:I.left)||"0px");var r;F((l==null?void 0:(r=l.style)==null?void 0:r.top)||"0px")}};
_.rp(function(){var l=H();if(l){var I,r,E;if(((I=_.FF())==null?void 0:I.getPlayerState())===-1&&Math.round(((E=(r=_.FF())==null?void 0:r.getVideoAspectRatio())!=null?E:0)*100)!==Math.round(g()/c()*100)){l.style.display="none";var J,CN;u(g()/((CN=(J=_.FF())==null?void 0:J.getVideoAspectRatio())!=null?CN:1))}}},"N29KDe");
var w=function(){z()},P;
_.lf(function(){z();var l;if(!(O==null?0:(l=O())==null?0:l.transformationMatrix))throw Error("bp");var I;(I=_.FF())==null||I.addEventListener("onStateChange",S);if(window.ResizeObserver){if(l=b())P=new ResizeObserver(w),P.observe(l)}else window.addEventListener("resize",z);_.Ia(function(){var r;(r=_.FF())==null||r.removeEventListener("onStateChange",S);P?P.disconnect():window.removeEventListener("resize",z)})});
var x=function(){var l,I,r=(I=O==null?void 0:(l=O())==null?void 0:l.transformationMatrix)!=null?I:[];l=g();I=c();for(var E=[],J=0,CN=-1;J<r.length;J++)J%3===0&&(CN++,E[CN]=[]),E[CN].push(r[J]);r=new S2(E);E=new S2([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);E=r.multiply(E);r=new S2([[0,0],[0,0],[0,0],[0,0]]);for(J=0;J<E.getSize().width;J++){CN=hz(E,0,J);var B4=hz(E,1,J);if(CN===null||B4===null)throw Error("ap`"+(J+1).toString());at8(r,J,0,CN*l);at8(r,J,1,B4*I)}l=hz(r,0,0);J=hz(r,1,0);I=hz(r,0,1);CN=hz(r,1,1);
if(l===null||J===null||I===null||CN===null)throw Error("Zo");E=cO1(l,J,I,CN);B4=hz(r,3,0);r=hz(r,3,1);if(B4===null||r===null)throw Error("$o");r=cO1(l,B4,I,r);CN=(Number((CN*-1).toFixed(2))-Number((I*-1).toFixed(2)))/(Number(J.toFixed(2))-Number(l.toFixed(2)));B4=Math.atan(CN)*180/Math.PI;J=CN===Number.POSITIVE_INFINITY?-90:CN===Number.NEGATIVE_INFINITY?90:Object.is(CN,-0)?180:CN===0?0:CN>0?B4*-1:l<J?B4*-1:Math.abs(B4)+180;return"left:calc("+l+"px + "+Z()+"); top:calc("+(I+"px + "+C()+"); width:")+
(E+"px; height:")+(r+"px; transform:rotate(")+(J+"deg);\n        --sticker-width:"+E+";")};
return _.d(yOl,{root:"#sticker-layer"},function(){return _.d("yt-overlay-sticker",{el:_.E4(A),style:x,class:"ytOverlayStickerHost"},t)})},"zn");var ltN=_.q(function(N){function t(){var S,b,z,w,P=(b=_.M((S=F())==null?void 0:S.command,_.Tkp))==null?void 0:(z=b.item)==null?void 0:(w=z.notificationTextRenderer)==null?void 0:w.successResponseText;if(P)S=_.oJ(P),_.sl(H.value,"yt-open-popup-action",[S,H.value]);else if(g())joR(g(),H.value);else{var x;joR((x=F())==null?void 0:x.command,H.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var O=N.data;var H=_.Fy("svg"),A=_.D(_.b$(!1,void 0,"e9onLe"));N=A.next().value;var Z=A.next().value,U=_.D(_.b$(!1,void 0,"ptnIQd"));A=U.next().value;var C=U.next().value,F=function(){var S;return _.M((S=O())==null?void 0:S.popUp,q2d)},g=function(){var S;
return(S=O())==null?void 0:S.command},B=function(){return _.M(g(),_.Sp)!==void 0};
U=_.Ui(function(){t();return!1});
var c={},u={};return _.d("svg",{"on:mouseover":_.Ui(function(){B()&&Z(!0);C(!0);return!1}),
"on:mouseout":_.Ui(function(){Z(!1);C(!1);return!1}),
"on:keydown":_.Ui(function(S){S.key==="Enter"&&t();return!1}),
"on:focus":_.Ui(function(){B()&&Z(!0);return!1}),
"on:blur":_.Ui(function(){B()&&Z(!1);return!1}),
el:H,tabindex:0,"aria-label":function(){var S;return(S=O())==null?void 0:S.a11yString},
id:"player-overlay-video-interaction-svg",class:_.V7("ytPlayerOverlayInteractionInteractionsSvg",(c.ytPlayerOverlayInteractionInteractionsSvgHover=N,c),(u.ytPlayerOverlayInteractionInteractionsSvgHideOutline=A,u)),role:"button","on:click":U})},"Cn");_.o_(_.q(function(N){var t=N.data;_.lf(function(){var O;if((O=t())==null?0:O.trackingParams){var H;_.gF().graftServerVe((H=t().trackingParams)!=null?H:"")}});
return _.d("yt-player-overlay-interaction",null,_.d(Itm,{region:function(){var O,H;return(O=t())==null?void 0:(H=O.regions)==null?void 0:H[0]}},_.d(ltN,Object.assign({},N))))},"Bn"),"yt-player-overlay-interaction",{props:{data:_.$O}});var Qor=_.q(function(N){var t=N.data;var O=N.index;var H=N.selectedChoice;var A=function(){var Z;return _.M((Z=t())==null?void 0:Z.renderer,ftl)};
N={};return _.d("yt-overlay-poll-sticker-choice",{class:_.V7("ytOverlayPollStickerChoiceHost"),style:_.FM({"--displayed-percentage":function(){var Z,U,C,F;return""+Math.ceil(Number((H==null?void 0:H())===O()?(Z=A())==null?void 0:(U=Z.selected)==null?void 0:U.progressBarWidth:(C=A())==null?void 0:(F=C.unselected)==null?void 0:F.progressBarWidth)*100)}})},_.d("div",{class:_.V7("ytOverlayPollStickerChoicePollChoice",(N.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(H==null?void 0:H())!==
void 0},N.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(H==null?void 0:H())===O()},N))},_.d("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var Z;
return((Z=A())==null?void 0:Z.text)||""}),_.d("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(H==null?void 0:H())==="undefined")var Z="";
else{var U,C,F,g;Z=(H==null?void 0:H())===O()?(U=A())==null?void 0:(C=U.selected)==null?void 0:C.votePercentage:(F=A())==null?void 0:(g=F.unselected)==null?void 0:g.votePercentage}return Z})))},"Dn");var mCm=_.q(function(N){var t=N.data;var O=_.cH(function(A){var Z,U=((Z=t())==null?void 0:Z.postPollStateEntityKey)||"";A=_.CM(A.entities,"postPollStateEntity",U);var C;return((C=t())==null?0:C.viewerIsOwner)?Object.assign({},A,{selectedOptionId:-1,voted:!0}):A}),H=_.cY().resolve(_.jo);
return _.d("yt-overlay-poll-sticker",null,_.d(Itm,{region:function(){var A,Z;return(A=t())==null?void 0:(Z=A.region)==null?void 0:Z.interactionRegion}},_.d("div",{class:_.V7("ytOverlayPollStickerHost"),
style:_.FM({"--original-height":function(){var A;return""+(((A=t())==null?void 0:A.mainBodyHeight)||1)},
"--original-width":function(){var A;return""+(((A=t())==null?void 0:A.mainBodyWidth)||1)},
"--scaled-width":function(){var A;return""+(((A=t())==null?void 0:A.mainBodyWidth)||1)},
"--primary-surface":function(){var A,Z;return $CR(((A=t())==null?void 0:(Z=A.theme)==null?void 0:Z.primarySurface)||0)},
"--raised-surface":function(){var A,Z;return $CR(((A=t())==null?void 0:(Z=A.theme)==null?void 0:Z.raisedSurface)||0)},
"--secondary-surface":function(){var A,Z;return $CR(((A=t())==null?void 0:(Z=A.theme)==null?void 0:Z.secondarySurface)||0)},
"--primary-text":function(){var A,Z;return $CR(((A=t())==null?void 0:(Z=A.theme)==null?void 0:Z.primaryText)||0)},
"--secondary-text":function(){var A,Z;return $CR(((A=t())==null?void 0:(Z=A.theme)==null?void 0:Z.secondaryText)||0)}})},_.d("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return t().questionText}," "),_.d(_.nL,{each:function(){return t().pollChoiceConfigs||[]}},function(A,Z){return _.d("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Ui(function(){var U=Z(),C;if((C=t())==null||!C.viewerIsOwner){var F,g;C=(F=t())==null?void 0:(g=F.pollChoiceConfigs)==null?void 0:g[U];if(g=(C==null?0:C.renderer)?_.M(C.renderer,ftl):void 0){var B;F=((B=O())==null?void 0:B.selectedOptionId)!==U;var c;if(B=(c=F?g.selectedPollCommand:g.deselectedPollCommand)==null?void 0:c.innertubeCommand){H.resolveCommand(B);var u,S;_.mN().dispatch(_.uF("postPollStateEntity",((u=O())==null?void 0:u.key)||"",{key:((S=O())==null?void 0:S.key)||"",selectedOptionId:F?
U:-1,voted:F}))}}}})},_.d(Qor,{data:A,
index:Z,selectedChoice:function(){var U,C;return((U=O())==null?0:U.voted)?(C=O())==null?void 0:C.selectedOptionId:void 0}}))}),_.d("div",{class:"ytOverlayPollStickerVoteCount"},function(){var A,Z;
return((A=O())==null?0:A.voted)&&((Z=O())==null?void 0:Z.selectedOptionId)!==-1?t().postVoteCountText:t().preVoteCountText}))))},"En");_.o_(_.q(function(N){var t=N.data;return _.d("yt-stickers-layer",null,_.d(_.nL,{each:function(){var O;return((O=t())==null?void 0:O.stickers)||[]}},function(O){return _.d(_.y,{cond:function(){return _.h("enable_shorts_poll_stickers_web")},
then:function(){return _.d(_.y,{cond:function(){return O==null?void 0:O.pollSticker},
then:function(H){return _.d(mCm,{data:H})}})}})}))},"Fn"),"yt-stickers-layer",{props:{data:_.$O}});var bx=function(){var N=_.k.apply(this,arguments)||this;N.showScrubber=!1;N.isWatchWhileMode=!1;N.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");N.enablePollStickers=_.h("enable_shorts_poll_stickers_web");N.enableShortsModernControls=_.h("web_shorts_modern_controls");N.anchoredPanelActive=!1;N.enableLivingroomLayout=_.h("reels_enable_livingroom_layout");N.enablePlayerMetadataContainer=_.h("reels_web_enable_metadata_container");N.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");
N.useAspectRatio=_.h("web_use_aspect_ratio");N.isSqueezebackActive=!1;N.smallScreenSqueezeback=!1;N.isPlayerStarted=!1;N.overlayDensity=0;N.extractOverlay=!1;N.extractActionBar=!1;N.isOverlay=!1;N.isImmersive=!1;N.isImmersiveHorizontal=!1;N.isFullscreen=!1;N.onWindowResized=function(){var t;N.set("isImmersive",((t=window.getComputedStyle(N.hostElement))==null?void 0:t.getPropertyValue("--immersive-mode-on"))==="1");N.set("isImmersiveHorizontal",N.isImmersive&&N.enableLivingroomLayout&&!N.isWatchWhileMode)};
return N};
_.p(bx,_.k);_.V=bx.prototype;_.V.updateIsOverlay=function(N){this.isOverlay=N.detail.value};
_.V.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.V.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.V.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.V.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.V.onOverlayDensityChange=function(){var N=_.O6(this.hostElement).querySelector("ytd-info-panel-container-renderer");N&&(N.set("extractOverlay",this.extractOverlay),N.set("roundedContainer",this.extractOverlay))};
_.V.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.V.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.V.ready=function(){(_.h("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.h("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.So("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.So("reels_action_justified_content")||"flex-start")};
_.V.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority: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",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.V.setFakeLoadingButtons=function(){_.h("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.CJ("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.CJ("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.CJ("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.CJ("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.CJ("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.V.setEmptyOverlayMetadata=function(){_.h("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}))};
_.cv.Object.defineProperties(bx.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.infoPanel)}}});
bx.prototype.onOverlayDensityChange=bx.prototype.onOverlayDensityChange;bx.prototype.onIsActiveChanged=bx.prototype.onIsActiveChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],bx.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],bx.prototype,"ytdReduxBehavior",void 0);
_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],bx.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bx.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],bx.prototype,"isActive",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],bx.prototype,"hidden",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],bx.prototype,"useShortsIcon",void 0);
_.W([_.X({value:"left"}),_.Q("design:type",String)],bx.prototype,"buttonTooltipPosition",void 0);_.W([_.X({value:_.h("reels_enable_livingroom_layout")?"top":"left"}),_.Q("design:type",String)],bx.prototype,"likeButtonTooltipPosition",void 0);_.W([_.X({value:"none"}),_.Q("design:type",String)],bx.prototype,"textTransform",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"showScrubber",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"isWatchWhileMode",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.infoPanel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],bx.prototype,"hasInfoPanel",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"enableAnchoredPanel",void 0);_.W([_.X(),_.Q("design:type",Object)],bx.prototype,"enablePollStickers",void 0);
_.W([_.X(),_.Q("design:type",Object)],bx.prototype,"enableShortsModernControls",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"anchoredPanelActive",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"enableLivingroomLayout",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],bx.prototype,"enablePlayerMetadataContainer",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"enableSqueezebackPanels",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"useAspectRatio",void 0);_.W([_.X({selector:_.WrO,reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"isSqueezebackActive",void 0);_.W([_.X({selector:DCV,reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"smallScreenSqueezeback",void 0);
_.W([_.X({selector:UC8}),_.Q("design:type",Object)],bx.prototype,"isPlayerStarted",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"overlayDensity",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"extractOverlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"extractActionBar",void 0);_.W([_.X(),_.Q("design:type",Object)],bx.prototype,"isOverlay",void 0);
_.W([_.X(),_.Q("design:type",Object)],bx.prototype,"isImmersive",void 0);_.W([_.X(),_.Q("design:type",Object)],bx.prototype,"isImmersiveHorizontal",void 0);_.W([_.X({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Q("design:type",Boolean)],bx.prototype,"isShortsImmersive",void 0);_.W([_.X({computed:"computeButtonOverride(extractActionBar)"}),_.Q("design:type",Object)],bx.prototype,"buttonOverride",void 0);
_.W([_.X({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.Q("design:type",Object)],bx.prototype,"actionBarButtonOverride",void 0);_.W([_.X({selector:_.O9,reflectToAttribute:!0}),_.Q("design:type",Object)],bx.prototype,"isFullscreen",void 0);_.W([_.gz("isActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bx.prototype,"onIsActiveChanged",null);
_.W([_.gz("extractOverlay"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bx.prototype,"onOverlayDensityChange",null);_.W([_.en({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],bx);
_.n(bx,"ytd-reel-player-overlay-renderer",function(){if(WDd!==void 0)return WDd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return WDd=N},{mode:1});var ElR;var pH=function(){var N=_.k.apply(this,arguments)||this;N.videoDuration=0;N.playedTime=0;N.isActive=!1;N.JSC$22961_playerEvents=new Map;return N};
_.p(pH,_.k);_.V=pH.prototype;_.V.created=function(){this.JSC$22961_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22961_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.V.attached=function(){this.getPlayerAndInitializeListeners()};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22961_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Fb(this,this.onPageChanged))};
_.V.getPlayerAndInitializeListeners=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return t=_.si(),t?O.yield(t.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Fb(N,N.onPageChanged)),O.jumpTo(0));N.player=O.yieldResult;N.initializePlayerListeners();_.Ty(O)})};
_.V.onPageChanged=function(N){var t=this;return _.K(function(O){if(O.nextAddress==1)return N.detail.newPageType!=="ytd-shorts"?O.return():O.yield(_.NU().getPlayerPromise(),2);t.player=O.yieldResult;t.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Fb(t,t.onPageChanged));_.Ty(O)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22961_playerEvents)};
_.V.onVideoDataChange=function(N){var t=this;return _.K(function(O){if(!t.player||N.type!=="newdata")return O.return();t.videoDuration=_.h("web_shorts_use_progress_state_for_gapless")?t.player.getProgressState(N.playertype).seekableEnd:t.player.getDuration(N.playertype);t.playedTime=0;_.Ty(O)})};
_.V.onVideoProgress=function(N){var t=this,O,H;return _.K(function(A){if(!t.player)return A.return();O=t.player.getPresentingPlayerType();H=t.player.getPlayerState();t.videoDuration=_.h("web_shorts_use_progress_state_for_gapless")?t.player.getProgressState(O).seekableEnd:t.player.getDuration(O);t.playedTime=H===0?t.videoDuration:N;_.Ty(A)})};
_.V.getPercentPlayed=function(N,t){return N?_.eS(t/N,0,1):0};
_.cv.Object.defineProperties(pH.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var N="";return N=this.videoDuration&&this.playedTime?N+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):N+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],pH.prototype,"componentBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],pH.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],pH.prototype,"player",void 0);_.W([_.X(),_.Q("design:type",Object)],pH.prototype,"videoDuration",void 0);_.W([_.X(),_.Q("design:type",Object)],pH.prototype,"playedTime",void 0);_.W([_.X(),_.Q("design:type",Object)],pH.prototype,"isActive",void 0);
_.W([_.a("videoDuration","playedTime"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],pH.prototype,"percentPlayed",null);_.W([_.a("videoDuration","playedTime"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pH.prototype,"percentPlayedStyle",null);_.W([_.a("videoDuration","isActive"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],pH.prototype,"hideProgressBar",null);
_.n(pH,"ytd-progress-bar-line",function(){if(ElR===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);ElR=N}N=ElR;return N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var Gm$;_.o_(_.x1J,"ytm-closed-captioning-button",{props:{captionIconType:_.$O,onClick:_.R_,ariaLabel:_.$O,ariaPressed:_.$O,isOverlay:_.R_,isModern:_.R_}});_.o_(_.Dg1,"desktop-shorts-volume-controls",{props:{orientation:_.$O}});var LH=function(){var N=_.k.apply(this,arguments)||this;N.playerState=null;N.isMuted=!1;N.shortsModernControlsEnabled=_.h("web_shorts_modern_controls");N.volumeControlsOrientationState="horizontal_right";N.isOverlay=!0;N.isAdsOverlay=!1;N.captionIconType=-1;N.ariaLabel="";N.overlayDensity=0;N.JSC$22964_playerEvents=new Map;N.onClosedCaptionsButtonClick=function(){N.player&&_.Jh(N.player)&&(N.player.toggleSubtitles(),N.updateCaptionIconType())};
return N};
_.p(LH,_.k);_.V=LH.prototype;_.V.created=function(){this.JSC$22964_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22964_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22964_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.V.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.UM(28662);this.playPauseButtonClientVE=_.UM(36842);this.fullscreenButtonToggleOffClientVE=_.UM(222256);this.fullscreenButtonToggleOnClientVE=_.UM(222257);var N=_.z8(),t=_.pv();N&&t&&(_.h("combine_ve_grafts")?(_.r_(_.gF(),this.muteButtonClientVE,t),_.r_(_.gF(),this.playPauseButtonClientVE,t)):_.fJ(N,t,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.V.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22964_playerEvents),this.player=null)};
_.V.updateCaptionIconType=function(){var N=-1,t=void 0,O=_.CJ("CLOSED_CAPTIONS_DISABLED");this.player&&_.Jh(this.player)&&(_.M45(this.player)?(t=!0,O=_.CJ("CLOSED_CAPTIONS_ON"),N=1):(t=!1,O=_.CJ("CLOSED_CAPTIONS_OFF"),N=0));this.captionIconType=N;this.ariaPressedState=t;this.ariaLabel=O};
_.V.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.V.getPlayerAndInitializeListeners=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return t=_.si(),t?O.yield(t.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Fb(N,N.onPageChanged)),O.jumpTo(0));N.player=O.yieldResult;N.initializePlayerListeners();_.Ty(O)})};
_.V.onPageChanged=function(N){var t=this;return _.K(function(O){if(O.nextAddress==1)return N.detail.newPageType!=="ytd-shorts"?O.return():O.yield(_.NU().getPlayerPromise(),2);t.player=O.yieldResult;t.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Fb(t,t.onPageChanged));_.Ty(O)})};
_.V.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22964_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.V.onPlayerStateChange=function(N){this.playerState=N};
_.V.onPlayerVolumeChange=function(N){this.isMuted=N.muted};
_.V.onPlayPauseButtonClick=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(_.NU().getPlayerPromise(),2);t=H.yieldResult;(O=_.z8())&&N.playPauseButtonClientVE&&_.IX(O,N.playPauseButtonClientVE);t.getPlayerState()!==1?t.playVideo():t.pauseVideo();_.Ty(H)})};
_.V.computePlayPauseIcon=function(N){return N===2||N===-1||N===5?_.h("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.h("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.h("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.V.computeFullscreenLabel=function(N){return N?_.CJ("FULLSCREEN_EXIT_LABEL"):_.CJ("FULLSCREEN_ENTER_LABEL")};
_.V.computePlayPauseLabel=function(N){return N===1||N===3?_.CJ("PLAYER_LABEL_PAUSE"):_.CJ("PLAYER_LABEL_PLAY")};
_.V.onMuteButtonClick=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(_.NU().getPlayerPromise(),2);t=H.yieldResult;(O=_.z8())&&N.muteButtonClientVE&&_.IX(O,N.muteButtonClientVE);t.isMuted()?t.unMute(!0):t.mute(!0);_.Ty(H)})};
_.V.computeMuteIcon=function(N){return N?"miniplayer:volume-off":"miniplayer:volume-up"};
_.V.computeMuteLabel=function(N){return N?_.CJ("PLAYER_LABEL_UNMUTE"):_.CJ("PLAYER_LABEL_MUTE")};
_.V.onFullscreenButtonClick=function(){var N=_.z8();N&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.IX(N,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.IX(N,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Pci()};
_.cv.Object.defineProperties(LH.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var N=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){N.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.h("web_shorts_modern_controls")?"player_full_exit_alt":_.h("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.h("web_shorts_modern_controls")?"player_full_enter_alt":_.h("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],LH.prototype,"componentBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],LH.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],LH.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"player",void 0);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"playerState",void 0);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"isMuted",void 0);
_.W([_.X({computed:"computePlayPauseIcon(playerState)"}),_.Q("design:type",String)],LH.prototype,"playPauseIcon",void 0);_.W([_.X({computed:"computeMuteIcon(isMuted)"}),_.Q("design:type",String)],LH.prototype,"muteIcon",void 0);_.W([_.X({selector:_.O9}),_.Q("design:type",Boolean)],LH.prototype,"isFullscreen",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LH.prototype,"shortsModernControlsEnabled",void 0);
_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"volumeControlsOrientationState",void 0);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"isOverlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LH.prototype,"isAdsOverlay",void 0);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"captionIconType",void 0);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"ariaLabel",void 0);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"ariaPressedState",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],LH.prototype,"overlayDensity",void 0);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"data",void 0);_.W([_.X({computed:"computeActionBarButtonOverride()"}),_.Q("design:type",Object)],LH.prototype,"actionBarButtonOverride",void 0);_.W([_.a("playerState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],LH.prototype,"playPauseButtonData",null);
_.W([_.a("isFullscreen"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],LH.prototype,"fullscreenButtonData",null);_.W([_.X(),_.Q("design:type",Object)],LH.prototype,"onClosedCaptionsButtonClick",void 0);_.W([_.a("isFullscreen"),_.Q("design:type",String),_.Q("design:paramtypes",[])],LH.prototype,"fullscreenIcon",null);
_.n(LH,"ytd-shorts-player-controls",function(){if(Gm$===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);Gm$=N}N=Gm$;return N},{mode:1});var Rgs;_.o_(_.owO,"yt-interstitial-view-model",{props:{data:_.$O}});var vlD=_.q(function(N){var t=N.data;return _.d("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.d("h1",{class:"reelWatchBreakViewModelHostTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d("h2",{class:"reelWatchBreakViewModelHostBody"},_.d(_.cu,{text:function(){return t().body},
isOverlay:!0})),_.d(_.iF,{data:function(){return t().buttons}},{buttonViewModel:function(O,H){return _.d("div",{class:function(){return H()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.d(_.Pu,{data:O.data}))}}))},"Gn");
vlD.idomCompat=!0;_.o_(vlD,"reel-watch-break-view-model",{props:{data:_.$O}});var z0=function(){return _.k.apply(this,arguments)||this};
_.p(z0,_.k);z0.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}}};
_.cv.Object.defineProperties(z0.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.M((N=this.data)==null?void 0:N.renderer,egu)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var N;return!!_.M((N=this.data)==null?void 0:N.renderer,Pfw)}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],z0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],z0.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],z0.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],z0.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data.renderer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z0.prototype,"isSurvey",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.renderer"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],z0.prototype,"isInterstitialViewModel",null);_.W([_.en({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],z0);
_.n(z0,"ytd-reel-non-video-content-renderer",function(){if(Rgs!==void 0)return Rgs;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return Rgs=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var JO1;_.o_(_.VOi,"desktop-shorts-player-controls",{});var Yy=function(){var N=_.k.apply(this,arguments)||this;N.isPlayerPaused=!1;N.isPlayerStarted=!1;N.showPlayerControls=!1;N.showScrubber=!1;N.autoHideJobId=0;N.overlayType=_.So("web_shorts_expanded_overlay_type");N.panelData=void 0;N.isWatchWhileMode=!1;N.hasError=!1;N.panelShowDelayMs=1;N.scrubberComponent={};N.isFullscreen=!1;N.shouldHideOverlay=!1;N.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");N.enablePersistentAnchoredPanel=_.h("desktop_shorts_v2_persistent_anchored_panel");N.hideWatchWhilePanel=
_.h("web_shorts_hide_watch_while_panel");N.useAspectRatio=_.h("web_use_aspect_ratio");N.enableShortsModernControls=_.h("web_shorts_modern_controls");N.isPersistentPanelActive=!1;N.anchoredPanelActive=!1;N.isShortsPipActive=!1;N.smallScreenSqueezeback=!1;N.enableFlexibleOverlay=_.h("web_enable_flexible_overlay");N.overlayDensity=0;N.extractOverlay=!1;N.extractActionBar=!1;N.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
N.onWindowResized=function(){_.W2(N,"calculateOverlayDensity",function(){N.calculateOverlayDensity()},100)};
return N};
_.p(Yy,_.k);_.V=Yy.prototype;_.V.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.V.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.V.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var N=_.cY().resolve(_.Of);this.isWatchWhileMode&&_.GB.addJob(function(){N.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.V.handleShowReelsCommentsOverlayCommand=function(N){N=_.M(N,km$);this.isActive&&(N==null?0:N.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.V.updateEngagementPanelVisibility=function(N,t){N&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:t?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:N}})};
_.V.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.V.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.cY().resolve(_.RZ).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.V.handleWatchWhilePanelScrimClick=function(){var N=_.cY().resolve(_.Of);this.activeWatchWhilePanel&&(N.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.V.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.V.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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.V.handlePlayerClick=function(N){var t=this,O,H;if((H=(O=window).matchMedia)!=null&&H.call(O,"(any-pointer: coarse)").matches||!N)this.showPlayerControls=!0,_.GB.cancelJob(this.autoHideJobId),this.autoHideJobId=_.WX(_.GB,function(){t.showPlayerControls=!1},4E3)};
_.V.isFirstReel=function(){return this.index===0};
_.V.handleMouseenter=function(){_.GB.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.V.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.V.handleScrubberEnter=function(){this.showScrubber=!0};
_.V.handleScrubberLeave=function(){this.showScrubber=!1};
_.V.maybeLogNonDefaultAspectRatio=function(){var N;(N=this.data)!=null&&N.thumbnail&&this.isActive&&.5625!==VTd(this.data.thumbnail)&&_.hFv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.V.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var N=document.querySelector("#shorts-container");if(N){var t=!1,O,H=this.playerContainer.offsetWidth,A=this.playerContainer.offsetHeight;N=N.offsetWidth/2-H/2;N>=368?(N=1,t=O=!0):N>=72?(N=0,O=!0):(N=2,O=!1);H>=600&&A>=840?N=1:window.innerWidth<=599&&(N=2,O=t=!1);this.isPersistentPanelActive&&(N=0,t=!1);this.extractActionBar=O;_.h("web_enable_flexible_overlay")&&(this.overlayDensity=N,this.extractOverlay=
t);var Z;(Z=this.onOverlayDensityChanged)==null||Z.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.V.onOverlayDensityChange=function(){var N;(N=this.onOverlayDensityChanged)==null||N.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(N=_.O6(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))N.set("overlayDensity",this.overlayDensity),N.set("extractOverlay",this.extractOverlay),N.set("extractActionBar",this.extractActionBar);if(N=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))N.overlayDensity=this.overlayDensity,N.extractOverlay=
this.extractOverlay,N.extractActionBar=this.extractActionBar};
_.V.isVideoContent=function(N){_.cY().resolve(_.RZ);return!!_.M(N,_.jc)};
_.V.isNonVideoContent=function(N){_.cY().resolve(_.RZ);return!!_.M(N,_.KY)};
_.V.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.cv.Object.defineProperties(Yy.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var N,t;return _.h("web_enable_format_first")||((N=this.data)==null?void 0:N.adsOverlay)&&_.h("web_enable_format_first_ads_only")||((t=this.data)==null?void 0:t.reelPlayerOverlayRenderer)&&_.h("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.h("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var N;return!this.isActive||!this.isPlayerStarted||(N=this.data)!=null&&N.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var N;if(((N=this.data)==null?0:N.command)&&this.isVideoContent(this.data.command)){var t,O;if(((t=this.data)==null?0:t.adsOverlay)&&Object.keys((O=this.data)==null?void 0:O.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var H,A;if(((H=this.data)==null?0:H.reelPlayerOverlayRenderer)&&Object.keys((A=this.data)==null?void 0:A.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Yy.prototype.onOverlayDensityChange=Yy.prototype.onOverlayDensityChange;Yy.prototype.calculateOverlayDensity=Yy.prototype.calculateOverlayDensity;Yy.prototype.maybeLogNonDefaultAspectRatio=Yy.prototype.maybeLogNonDefaultAspectRatio;Yy.prototype.onEngagementPanelsChanged=Yy.prototype.onEngagementPanelsChanged;Yy.prototype.onScrubberDataChange=Yy.prototype.onScrubberDataChange;Yy.prototype.updateShouldHideOverlay=Yy.prototype.updateShouldHideOverlay;
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Yy.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Yy.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],Yy.prototype,"index",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Yy.prototype,"isActive",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Yy.prototype,"isHiddenInDom",void 0);_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"isPlayerPaused",void 0);_.W([_.X({selector:UC8}),_.Q("design:type",Object)],Yy.prototype,"isPlayerStarted",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"showPlayerControls",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"showScrubber",void 0);_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"autoHideJobId",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"overlayType",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Yy.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Yy.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"watchWhileEngagementPanels",void 0);_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"panelData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"isWatchWhileMode",void 0);_.W([_.X(),_.Q("design:type",String)],Yy.prototype,"activeWatchWhilePanel",void 0);_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"hasError",void 0);_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"panelShowDelayMs",void 0);
_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"scrubberComponent",void 0);_.W([_.X({selector:_.O9,reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"isFullscreen",void 0);_.W([_.X(),_.Q("design:type",Object)],Yy.prototype,"shouldHideOverlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"enableAnchoredPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"enablePersistentAnchoredPanel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"hideWatchWhilePanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"useAspectRatio",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"enableShortsModernControls",void 0);_.W([_.X({selector:_.WrO,reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"isPersistentPanelActive",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"anchoredPanelActive",void 0);_.W([_.X({selector:_.Hy,reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"isShortsPipActive",void 0);_.W([_.X({selector:DCV,reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"smallScreenSqueezeback",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.adsOverlay"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yy.prototype,"isAdsOverlay",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yy.prototype,"enableFormatFirst",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"enableFlexibleOverlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"overlayDensity",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"extractOverlay",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Yy.prototype,"extractActionBar",void 0);_.W([_.X(),_.Q("design:type",Function)],Yy.prototype,"onOverlayDensityChanged",void 0);_.W([_.X(),_.a("isActive","hasError","isPlayerStarted"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yy.prototype,"shouldRenderPlayerElements",null);_.W([_.X(),_.a("isActive","isWatchWhileMode"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yy.prototype,"watchWhileOrPersistentActive",null);
_.W([_.gz("isActive","hasError","showingExpandedOverlay"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yy.prototype,"updateShouldHideOverlay",null);_.W([_.X({reflectToAttribute:!0}),_.a("isActive","isPlayerStarted","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yy.prototype,"shouldRenderScrubber",null);
_.W([_.gz("shouldRenderScrubber"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yy.prototype,"onScrubberDataChange",null);_.W([_.a("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Yy.prototype,"overlayComponent",null);_.W([_.gz("watchWhileEngagementPanels"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yy.prototype,"onEngagementPanelsChanged",null);
_.W([_.B2("#player-container"),_.Q("design:type",HTMLElement)],Yy.prototype,"playerContainer",void 0);_.W([_.B2("#cinematic-container"),_.Q("design:type",HTMLElement)],Yy.prototype,"cinematicContainer",void 0);_.W([_.gz("isPersistentPanelActive","data.thumbnail"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yy.prototype,"maybeLogNonDefaultAspectRatio",null);
_.W([_.gz("isPersistentPanelActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yy.prototype,"calculateOverlayDensity",null);_.W([_.gz("overlayDensity","extractOverlay","extractActionBar"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Yy.prototype,"onOverlayDensityChange",null);_.W([_.en({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Yy);
_.n(Yy,"ytd-reel-video-renderer",function(){if(JO1!==void 0)return JO1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return JO1=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var aV=function(){var N=_.k.apply(this,arguments)||this;N.isPreviousPageShorts=!1;N.index=0;N.delayedActiveIndex=0;N.playablePreviousIndex=null;N.isPlayerPaused=!1;N.isPlayerStarted=!1;N.intersectionObserverThreshold=.6;N.fitToVisibleBounds=!1;N.pageSubtype="shorts";N.enablePreviousContinuation=_.h("shorts_in_playlists_web");N.shortsPipEnabled=_.h("web_shorts_pip");N.isDark=document.documentElement.hasAttribute("dark");N.shortsViewTransitions=_.h("web_shorts_view_transitions");N.isFullscreen=!1;N.isShortsPipActive=
!1;N.buttonOverride={iconPosition:"icon-only",size:"XL"};N.anchoredPanelActive=!1;N.isActive=!1;N.smallScreenPersistentPanel=!1;N.isPersistentPanelActive=!1;N.smallScreenSqueezeBack=!1;N.enableScrollIntoViewCenter=_.h("web_scroll_into_view_center");N.formatFirst=_.h("web_enable_format_first")||_.h("web_enable_format_first_ads_only")||_.h("web_enable_format_first_organic_only");N.enableFlexibleOverlay=_.h("web_enable_flexible_overlay");N.extractOverlay=!1;N.useAspectRatio=_.h("web_use_aspect_ratio");
N.enableShortsSequenceRefactorUnify=_.h("web_enable_shorts_sequence_refactor_unify");N.continuationRequestPending=!1;N.carouselContainers=[];N.isShortsInitialized=!1;N.shortsContentList=[];N.hasDataUpdated=!1;N.playerInPosition=!1;N.hidePreviousButtonImmediately=!1;N.showPreviousButtonImmediately=!1;N.endOfNextContinuation=!1;N.currentPlayerIndex=0;N.nextReelVe=_.UM(56921);N.prevReelVe=_.UM(56922);N.loopToggleOffVe=_.UM(198013);N.loopToggleOnVe=_.UM(198014);N.ambientModeToggleVe=_.UM(227860);N.reelPlayerPausedStateRendererVe=
_.UM(141313);N.storedPlaybackSpeed=null;N.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged",
"yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff","yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};N.onOverlayDensityChanged=function(t,O,H,A){t=N.getActiveReelVideo(t);N.extractOverlay=!!H;t==null||t.setAttribute("overlay-density",String(O));H===void 0||t!=null&&t.toggleAttribute("extract-overlay",
H);A===void 0||t!=null&&t.toggleAttribute("extract-action-bar",A)};
return N};
_.p(aV,_.k);_.V=aV.prototype;_.V.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.V.setShortsContentList=function(){var N=this,t=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.W6(this.shortsContentList)):[],O=this.firstShortsData;if(O){var H=this.reelWatchSequenceResponse;if(O=this.shortsController==null?void 0:hgA(t,O,H!=null?H:null)){H=O.newContentList;var A=O.indexChange;if(H.length!==t.length){var Z;(Z=this.intersectionObserver)==null||Z.disconnect();this.shortsContentList=H;A!==0&&(this.index=A,_.yD(_.GB,function(){var U;(U=N.getActiveReelVideo(A))==
null||U.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});N.movePlayerToVideo(A)},100));
_.GB.addLowPriorityJob(function(){N.observeShorts()},500)}}}};
_.V.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.V.onResize=function(){var N=_.v5(),t=N.dispatch,O=this.calculateIsSmallWidth();t.call(N,_.H5({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:O}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.V.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:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.V.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var N=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,t=N,O=0;N<250&&(t=N+this.shortsInnerContainer.clientWidth,O=24);_.CO(this.hostElement,{"--ytd-shorts-header-width":t+"px","--ytd-shorts-top-spacing":O+"px"})}};
_.V.isFirstShorts=function(N){return N&&!this.enableShortsSequenceRefactorUnify?this.index===-N.length:this.index===0};
_.V.isActiveReel=function(N,t,O){O&&(t=this.calculatePrevIndex(t,O));return N===t};
_.V.onFullscreenChange=function(){_.h("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.cY().resolve(_.kf).close(!0))};
_.V.engagementPanelsChanged=function(){var N;this.watchWhileEngagementPanels=(N=this.data)==null?void 0:N.engagementPanels};
_.V.unregisterPanels=function(){var N=_.cY().resolve(_.Of);if(this.watchWhileEngagementPanels)for(var t=_.D(this.watchWhileEngagementPanels),O=t.next();!O.done;O=t.next()){var H=O.value,A=void 0,Z=void 0;O=(A=H.engagementPanelSectionListRenderer)==null?void 0:(Z=A.identifier)==null?void 0:Z.tag;H=this.getPanelIdentifier(H.engagementPanelSectionListRenderer);N&&(O&&N.panelMap.delete(O),H&&_.h("web_shorts_panel_caching_bugfix")&&(A=O=void 0,(A=(O=N).unregisterPanelContent)==null||A.call(O,H)))}};
_.V.isVideoContent=function(N){return this.isVideoContentCommand(N==null?void 0:N.command)};
_.V.getActiveReelVideo=function(N){return _.O6(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+N+'"]')};
_.V.calculatePrevIndex=function(N,t){return t?N-((t==null?void 0:t.length)||0):-1};
_.V.onKeydown=function(N){var t=_.m1(N)||[];if(!_.ehq(t))if(N.code==="ArrowUp")N.preventDefault(),this.handlePrevButtonClick();else if(N.code==="ArrowDown")N.preventDefault(),this.handleNextButtonClick();else if(N.code==="KeyM")this.toggleMuteUnmuteVideo();else if(N.code==="KeyK"||N.code==="Space")this.togglePlayPauseVideo();else if((N.code==="KeyA"||N.code==="ArrowLeft")&&_.h("web_shorts_keyboard_enable_seek_shortcuts")){var O;(O=this.player)==null||O.seekBy(-5)}else if((N.code==="KeyD"||N.code===
"ArrowRight")&&_.h("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var H;(H=this.player)==null||H.seekBy(5)}};
_.V.onServiceRequestCompleted=function(N,t){N=t.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,N.continuationEndpoint||N.prevContinuationEndpoint)this.reelWatchSequenceResponse=N}else N.continuationEndpoint&&N.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:N.entries,continuationEndpoint:N.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=N):N.prevContinuationEndpoint&&
N.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:N.prevEntries,prevContinuationEndpoint:N.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.V.handleEngagementPanelVisibilityChanged=function(N,t){var O=_.cY().resolve(_.Of);if(N&&O){var H=this.getPanelIdentifier(N);if(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==H){O.hidePanel({identifier:this.activePanel});var A;this.activePanel=((A=N.identifier)==null?void 0:A.tag)||N.panelIdentifier}else this.isPersistentPanelActive=!0,_.v5().dispatch(MT9(!0)),this.anchoredPanelActive=!0,this.activePanel=H;else t==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===H&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.v5().dispatch(MT9(!1)))}};
_.V.handlePanelScrimClick=function(){var N=_.cY().resolve(_.Of);this.activePanel&&(N.hidePanel({identifier:this.activePanel}),_.v5().dispatch(MT9(!1)))};
_.V.getShortsLoopSetting=function(){var N,t,O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:return _.h("kevlar_shorts_auto_advance")?Z.yield(_.A7.getInstance(),2):Z.return(!0);case 2:return(N=Z.yieldResult)?Z.yield(N.get("sfvles"),3):Z.return(!0);case 3:return O=(t=Z.yieldResult)!=null?t:!1,Z.yield(N.get("sfvle"),4);case 4:return A=(H=Z.yieldResult)!=null?H:!0,O?Z.return(A):Z.return(!0)}})};
_.V.handleSignalActionToggleLoopShortsOff=function(){var N=this,t,O,H;return _.K(function(A){switch(A.nextAddress){case 1:if(!N.player)return A.return();N.player.setLoopVideo(!1);t=_.gF();_.lA(t,N.loopToggleOffVe);return A.yield(_.A7.getInstance(),2);case 2:return(O=A.yieldResult)?A.yield(O.set("sfvle",!1),3):A.return();case 3:return A.yield(O.set("sfvles",!0),4);case 4:H=_.d0(),_.g0(0,203,!1),_.g0(0,204,!0),H.save(),_.Ty(A)}})};
_.V.handleSignalActionToggleLoopShortsOn=function(){var N=this,t,O,H;return _.K(function(A){switch(A.nextAddress){case 1:if(!N.player)return A.return();N.player.setLoopVideo(!0);t=_.gF();_.lA(t,N.loopToggleOnVe);return A.yield(_.A7.getInstance(),2);case 2:return(O=A.yieldResult)?A.yield(O.set("sfvle",!0),3):A.return();case 3:return A.yield(O.set("sfvles",!0),4);case 4:H=_.d0(),_.g0(0,203,!0),_.g0(0,204,!0),H.save(),_.Ty(A)}})};
_.V.handleSignalActionToggleCinematicShortsOn=function(){KDu(!0);var N;(N=this.JSC$22988_cinematicController)==null||_.vMA(N,!0);_.lA(_.gF(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.V.handleSignalActionToggleCinematicShortsOff=function(){KDu(!1);var N;(N=this.JSC$22988_cinematicController)==null||_.vMA(N,!1);_.lA(_.gF(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.V.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.V.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.V.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var N=this.overlayContainer.querySelector("#experiment-overlay");N&&_.GB.addLowPriorityJob(function(){N.style.display="unset"},100)}else if(this.overlayContainer){var t;
((t=this.playerElement.getPlayer())==null?void 0:t.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.V.getCurrentShort=function(){if(this.currentEndpoint){var N=this.currentEndpoint;if(this.isNonVideoContentCommand(N)){var t=_.M(N,_.KY);return{reelNonVideoContentRenderer:_.M(t==null?void 0:t.renderer,_.d_),command:N}}if(this.data){var O;t=(O=_.M(this.currentEndpoint,_.jc))==null?void 0:O.thumbnail;var H;O=(H=this.data.overlay)==null?void 0:H.reelPlayerOverlayRenderer;_.cY().resolve(_.RZ);N=this.data;var A,Z;H=(A=N.overlay)==null?void 0:(Z=A.shortsAdsRenderer)==null?void 0:Z.adSlots;if(H!==void 0)H.length===
0?(_.rZ("Shorts ads returned no ad slots."),N=void 0):(H.length>1&&_.rZ("Shorts ads has more than one ad slots."),N=_.M(H[0],_.nkf));else{var U,C;N=_.M((U=N.overlay)==null?void 0:(C=U.shortsAdsRenderer)==null?void 0:C.overlay,_.nkf)}U=N;N=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.M(this.currentEndpoint,_.jc),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var F;return{reelPlayerOverlayRenderer:O,thumbnail:t,command:N,adsOverlay:U,
videoId:(F=_.M(this.currentEndpoint,_.jc))==null?void 0:F.videoId}}}};
_.V.created=function(){var N=this;this.scrollToVideoThrottle=new _.KE(function(t,O){O=O===void 0?"smooth":O;var H;(H=N.getActiveReelVideo(t))==null||H.scrollIntoView({behavior:O,block:"nearest",inline:N.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.cY().resolve(_.RZ);this.maybeCreateIntersectionObserver()};
_.V.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.V.attached=function(){var N=this;_.cY().resolve(_.RZ).registerRootElement(this);this.pageScrollElement=_.O6(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Fb(this,this.processResetAction));_.h("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){N.maybeCreateIntersectionObserver();N.scrollToVideoThrottle.fire(N.activeIndex,"instant");N.shortsContainer.style.overflowY=
"scroll"}))};
_.V.updateReelWatchSequenceResponse=function(){var N=this,t;if(_.h("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((t=_.M(this.currentEndpoint,_.jc))==null?0:t.sequenceParams)&&!this.reelWatchSequenceResponse){var O;(O=this.shortsController)==null||uNN(O,this.currentEndpoint).then(function(H){H&&(N.reelWatchSequenceResponse=H,N.cachedReelWatchSequenceResponse=H,_.GB.addLowPriorityJob(function(){N.observeShorts()}))})}};
_.V.calculateSqueezebackPanelSize=function(){var N=this,t=window.innerWidth-456-(window.innerHeight-106)*.5625;_.GB.addLowPriorityJob(function(){t<360?_.v5().dispatch(bLA(!0)):(N.hostElement.style.setProperty("--anchored-panel-width",Math.min(t,480)+"px"),_.v5().dispatch(bLA(!1)))})};
_.V.detached=function(){var N=_.cY().resolve(_.RZ);N.rootElement=void 0;var t;(t=N.unsubscribeFromStore)==null||t.call(N);N.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Fb(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.V.onResizeFinished=function(N,t){var O=this,H=new ResizeObserver(function(){O.shortsContainer.style.overflowY="hidden";_.GB.addLowPriorityJob(function(){t()},100)});
H.observe(N);return H};
_.V.resetDocumentScrollTop=function(){var N,t;if((N=document)==null?0:(t=N.scrollingElement)==null?0:t.scrollTop)document.scrollingElement.scrollTop=0};
_.V.loadPage_=function(N){var t=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),N){var O;if((O=_.M(this.currentEndpoint,_.jc))==null?0:O.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=N;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){t.isPlayerStarted&&
(t.handleOnPlaybackCommand(),t.afterPlayerStarted=function(){})};
this.registerPanel(N)}};
_.V.afterPlayerStarted=function(){};
_.V.handleOnPlaybackCommand=function(){if(_.h("web_shorts_comment_stickers")&&this.isPlayerStarted){var N,t=(N=_.M(this.currentEndpoint,_.jc))==null?void 0:N.onPlaybackCommand;t&&this.ytComponentBehavior.resolveCommand(t)}};
_.V.maybeCreateIntersectionObserver=function(){var N=this,t=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==t){this.intersectionObserverThreshold=t;var O={rootMargin:"0px",threshold:t},H;(H=this.intersectionObserver)==null||H.disconnect();this.intersectionObserver=new IntersectionObserver(function(A){A=_.D(A);for(var Z=A.next();!Z.done;Z=A.next())if(Z=Z.value,Z.intersectionRatio>t){Z=Number(Z.target.id);if(isNaN(Z))break;if(Z===N.index)break;
_.Icg();N.loadVideo(Z);_.aX("r_vtc")}},O);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.V.observeShorts=function(){var N,t,O,H=this.enableShortsSequenceRefactorUnify?((N=this.shortsContentList)==null?void 0:N.length)||0:(((t=this.shortsProcessedPrevSequence)==null?void 0:t.length)||0)+(((O=this.shortsProcessedSequence)==null?void 0:O.length)||0);if(this.carouselContainers.length<H&&(this.carouselContainers=[].concat(_.W6(_.O6(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(N=_.D(this.carouselContainers),t=N.next();!t.done;t=
N.next())t=t.value,O=void 0,(O=this.intersectionObserver)==null||O.observe(t);if(!this.enableShortsSequenceRefactorUnify)for(N=_.D(this.carouselContainers),t=N.next();!t.done;t=N.next())t=t.value,O=void 0,(O=this.intersectionObserver)==null||O.observe(t)};
_.V.initCsi=function(){_.ADd("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var N={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},t,O;if((t=this.playerData)==null?0:(O=t.cacheMetadata)==null?0:O.isCacheHit)N.isCacheHit=!0;var H;if(t=(H=_.M(this.currentEndpoint,_.jc))==null?void 0:
H.prefetchTaskId)N.prefetchInfo={taskId:t};_.bp(N)};
_.V.isAd=function(){var N,t;return!!((N=_.M(this.currentEndpoint,_.jc))==null?0:(t=N.adClientParams)==null?0:t.isAd)};
_.V.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.V.getPlayerContainer=function(){var N;return(N=_.O6(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:N.playerContainer};
_.V.onPlayerStateChange=function(N){var t=this;this.isPlayerPaused=N===2;N!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?N===1&&this.index===0&&(this.isPlayerStarted||_.v5().dispatch(pZ1(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.v5().dispatch(pZ1(!0)));this.player&&!this.player.getLoopVideo()&&_.GB.addLowPriorityJob(function(){t.getShortsLoopSetting().then(function(O){var H;(H=t.player)==null||H.setLoopVideo(O)})});
this.isPlayerPaused&&_.h("web_shorts_paused_state_logging")&&_.Wc(_.z8(),[this.reelPlayerPausedStateRendererVe])};
_.V.isShortPlayable=function(){if(_.h("kevlar_playable_short_killswitch"))return!0;var N;return(N=this.playerData)!=null&&N.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.V.setNormalPlaybackSpeed=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(N.getPlayer().getPlayerPromise(),2);t=H.yieldResult;O=t.getPlaybackRate();O!==1&&(N.storedPlaybackSpeed=O,t.setPlaybackRate(1));_.Ty(H)})};
_.V.restorePlaybackSpeed=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1)return N.storedPlaybackSpeed===null?O.jumpTo(0):O.yield(N.getPlayer().getPlayerPromise(),3);t=O.yieldResult;t.setPlaybackRate(N.storedPlaybackSpeed);N.storedPlaybackSpeed=null;_.Ty(O)})};
_.V.playerDataChanged=function(){var N=this,t,O,H,A,Z,U,C,F,g;return _.K(function(B){if(B.nextAddress==1){t=N.getPlayer();N.enableShortsSequenceRefactorUnify||(O=N.intersectionObserver)==null||O.disconnect();if(N.playerData){if(((H=N.playerData.videoDetails)==null?void 0:H.videoId)!==((A=t.getPlayer())==null?void 0:A.getVideoData().video_id)){Z={};if(U=_.M(N.currentEndpoint,_.jc))Z.watch_endpoint=U,U.endTimeSeconds&&(Z.end=U.endTimeSeconds);t.loadVideoWithPlayerResponse(N.playerData,Z)}}else return B.return();
return N.player?B.jumpTo(2):B.yield(t.getPlayerPromise(),3)}B.nextAddress!=2&&(N.player=B.yieldResult,N.JSC$22988_playerStateChangeListener=N.onPlayerStateChange.bind(N),N.player.addEventListener("onStateChange",N.JSC$22988_playerStateChangeListener),_.h("kevlar_client_enable_shorts_player_bootstrap")&&_.ni(),N.scrollToVideoThrottle.fire(N.index),N.movePlayerToVideo(N.index),_.GB.addLowPriorityJob(function(){N.getShortsLoopSetting().then(function(c){var u;(u=N.player)==null||u.setLoopVideo(c)})}),
_.sSp.resolve(N.player),N.player.syncVolume(),N.getPlayer().focusOnPlayer());
_.GB.addLowPriorityJob(function(){N.observeShorts()},100);
C=N.player.getPlayerState(N.player.getPresentingPlayerType());C!==1||N.isPlayerStarted||_.v5().dispatch(pZ1(!0));N.updateBackNavContainerWidth();F=_.M(N.currentEndpoint,_.jc);((g=F)==null?0:g.startTimeSeconds)&&N.player.seekTo(F.startTimeSeconds);if(N.JSC$22988_cinematicController||N.cinematicsInitializeJobId)return B.return();N.cinematicsInitializeJobId=_.GB.addLowPriorityJob(function(){N.initCinematicController();N.cinematicsInitializeJobId=void 0});
_.Ty(B)})};
_.V.onShortUndoDismiss=function(){var N=this,t=iL9().pop();t!==void 0&&(_.yB(this,function(){N.showCardWithIndex(t)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.V.onShortsDismiss=function(N){if(N=N.detail.reelDismissalActionRenderer)(N=_.M(N.onDismissalCompletionRenderer,_.ayl))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:N}}}),this.scrollAndDismissCard()};
_.V.processReelNonVideoContentDismissalCommand=function(N){var t=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);N=_.M(N,xC9);this.activeDimissalTimeout=setTimeout(function(){t.scrollAndDismissCard()},Number(N==null?void 0:N.delayMs))};
_.V.scrollAndDismissCard=function(){var N=this,t=this.index;iL9().push(t);_.yB(this,function(){var O=N.getPlayableNextIndex();O!==null&&(N.hideCardWithIndex(t),N.scrollToVideoThrottle.fire(O))})};
_.V.hideCardWithIndex=function(N){if(N=this.getActiveReelVideo(N))N.hidden=!0};
_.V.showCardWithIndex=function(N){if(N=this.getActiveReelVideo(N))N.hidden=!1};
_.V.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.V.activeChanged=function(N){_.v5().dispatch(_.H5({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:N}}));if(N)document.addEventListener("keydown",_.Fb(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var t;(t=this.player)==null||t.sendAbandonmentPing()}var O;(O=this.player)==null||O.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Fb(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.V.graftClientVisualElements=function(){if(this.data){var N=_.gF();_.ROY(N,_.Hc({response:this.reelWatchSequenceResponse}));_.r_(N,this.nextReelVe);_.r_(N,this.prevReelVe);_.h("kevlar_shorts_auto_advance")&&(_.r_(N,this.loopToggleOffVe),_.r_(N,this.loopToggleOnVe));_.r_(N,this.ambientModeToggleVe);_.Wc(_.z8(),[this.nextReelVe,this.prevReelVe]);_.h("web_shorts_paused_state_logging")&&_.r_(N,this.reelPlayerPausedStateRendererVe)}};
_.V.graftNvcRenderer=function(){var N,t,O,H,A,Z,U=this.enableShortsSequenceRefactorUnify?(N=this.shortsContentList)==null?void 0:(t=N[this.index])==null?void 0:t.command:this.index<0?(O=this.shortsProcessedPrevSequence)==null?void 0:(H=O[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:H.command:(A=this.shortsProcessedSequence)==null?void 0:(Z=A[this.index])==null?void 0:Z.command;if(U&&this.isNonVideoContentCommand(U)){N=_.M(U,_.KY);var C,F;(N=(C=_.M(N==null?void 0:N.renderer,_.d_))==
null?void 0:(F=C.loggingDirectives)==null?void 0:F.trackingParams)&&_.gF().graftServerVe(N)}};
_.V.setActiveIndex=function(){_.cY().resolve(_.RZ).setActiveIndex(this.index)};
_.V.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.V.lazyUpdateMiniplayerData=function(){var N=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.GB.addLowPriorityJob(function(){N.updateMiniplayerData();N.updateMiniplayerDataJobId=void 0}))};
_.V.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.GB.cancelJob(this.updateMiniplayerDataJobId)};
_.V.updateMiniplayerData=function(){var N,t,O,H=_.cY().resolve(_.kf),A={shortsData:this.getCurrentShort(),previousButtonDisabled:!((N=this.prevButtonData)==null||!N.isDisabled),nextButtonDisabled:!((t=this.nextButtonData)==null||!t.isDisabled),playabilityStatus:(O=this.playerData)==null?void 0:O.playabilityStatus};_.mx(H,A)};
_.V.resetPlayerLocation=function(){var N=this.getPlayer();this.initialPlayerContainer&&N.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.V.movePlayerToVideo=function(N,t){var O=this;t=t===void 0?!0:t;var H=this.getActiveReelVideo(N),A=this.getPlayer();if(H){this.overlayContainer?H.appendChild(this.overlayContainer):(this.overlayContainer=_.O6(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,H.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||A.appendTo(this.overlayContainer.playerContainer,void 0,!0));var Z;(Z=this.player)==null||Z.setSize(NaN,NaN);this.isActive||_.WX(_.GB,function(){O.isActive=
!0});
A.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.h("reels_web_disable_rtr_tick")||_.h("reels_web_use_pbs_first_shorts")&&N===0||_.zT("r_tr");this.currentPlayerIndex=N;H.appendChild(this.errorScreenContainer);var U;(U=this.JSC$22988_cinematicController)==null||_.oMV(U)}else t?_.GB.addLowPriorityJob(function(){O.movePlayerToVideo(O.index,!1)}):Math.random()<=_.uP("web_shorts_error_logging_threshold")&&_.vX(new _.fF("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:t,
index:N}))};
_.V.enableFormatFirst=function(N){return _.h("web_enable_format_first")||N.adsOverlay&&_.h("web_enable_format_first_ads_only")||N.reelPlayerOverlayRenderer&&_.h("web_enable_format_first_organic_only")};
_.V.getAspectRatio=function(N){if(this.enableFormatFirst(N))return(N==null?0:N.thumbnail)&&VTd(N.thumbnail)?"--ytd-shorts-player-ratio: "+VTd(N.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.V.getBackgroundImage=function(N){if(N!=null&&N.thumbnail)return(N=_.Ne(N.thumbnail.thumbnails))?'background-image:url("'+N+'");':"background-color:black;"};
_.V.onPersistentPanelActiveChanged=function(){var N=this.getCurrentShort();if(N&&this.enableFormatFirst(N)&&(N==null?0:N.thumbnail)&&VTd(N.thumbnail)!==.5625){var t;(t=this.player)==null||t.setSize(NaN,NaN)}};
_.V.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.V.moveCinematicsToVideo=function(){var N=_.O6(this.hostElement).querySelector("ytd-reel-video-renderer");(N==null?0:N.cinematicContainer)&&N.cinematicContainer!==this.shortsCinematicContainer.parentElement&&N.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.V.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.V.updatePrevButtonData=function(){var N=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);N?this.prevButtonData=N=Object.assign({},N,{accessibility:{label:_.CJ("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.CJ("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=N=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.V.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.V.updateNextButtonData=function(){var N=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);N&&(this.nextButtonData=N=Object.assign({},N,{accessibility:{label:_.CJ("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.CJ("NEXT_VIDEO_LABEL")||""}))};
_.V.getPlayablePreviousIndex=function(){for(var N,t=this.index-1;t>=-(((N=this.prevShortsSequence)==null?void 0:N.length)||0);t--)if(!iL9().includes(t))return t;return null};
_.V.getIndexInSequence=function(N,t){return N.findIndex(function(O){var H;return((H=_.M(O.command,_.jc))==null?void 0:H.videoId)===t})};
_.V.handlePrevButtonClick=function(N){var t=this,O,H;return _.K(function(A){O=t.getPlayablePreviousIndex();if(O===null)return A.return();t.gestureType=((H=N)==null?void 0:H.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";O===0&&(t.hidePreviousButtonImmediately=!0);if(t.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){t.scrollToVideoThrottle.fire(O,"auto")}),A.return();
t.scrollToVideoThrottle.fire(O);_.Ty(A)})};
_.V.getPlayableNextIndex=function(){for(var N,t,O=this.index+1;O<(this.enableShortsSequenceRefactorUnify?(N=this.shortsContentList)==null?void 0:N.length:((t=this.shortsProcessedSequence)==null?void 0:t.length)||0);O++)if(!iL9().includes(O))return O;return null};
_.V.handleNextButtonClick=function(N,t){var O=this,H,A;return _.K(function(Z){H=O.getPlayableNextIndex();if(H===null)return Z.return();H===1&&(O.showPreviousButtonImmediately=!0);O.gestureType=((A=N)==null?void 0:A.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";t&&(O.gestureType=t);if(O.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){O.scrollToVideoThrottle.fire(H,"auto")}),Z.return();
O.scrollToVideoThrottle.fire(H);_.Ty(Z)})};
_.V.handleReelNavigateCommand=function(N,t,O){(N=_.M(N,XZ9))&&t&&N.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(O)};
_.V.loadVideo=function(N,t){t=t===void 0?!1:t;if(N!==this.currentPlayerIndex){_.v5().dispatch(pZ1(!1));if(this.isAd()&&!t){var O;(O=this.player)==null||O.notifyShortsAdSwipeEvent()}if((t=this.JSC$22988_cinematicController)!=null){var H;(H=t.currentCinematicEffect)==null||H.pause()}if((H=this.JSC$22988_cinematicController)!=null){var A;(A=H.currentCinematicEffect)==null||A.clear()}H=N>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(H));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var Z,U,C,F,g,B;A=this.enableShortsSequenceRefactorUnify?(Z=this.shortsContentList)==null?void 0:(U=Z[N])==null?void 0:U.command:N<0?(C=this.shortsProcessedPrevSequence)==null?void 0:(F=C[this.shortsProcessedPrevSequence.length+N])==null?void 0:F.command:(g=this.shortsProcessedSequence)==null?void 0:(B=g[N])==
null?void 0:B.command;this.index=N;this.gestureType||(this.gestureType=H?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");A&&this.isVideoContentCommand(A)&&(this.ytComponentBehavior.resolveCommand(A,{form:{createScreenConfig:{clickedVisualElement:H?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(A&&this.isNonVideoContentCommand(A)){this.currentEndpoint=A;this.data=void 0;Z=_.gF();U=_.M(A,_.KY);var c,u;(U=(c=
_.M(U==null?void 0:U.renderer,_.d_))==null?void 0:(u=c.screenLoggingData)==null?void 0:u.screenVeType)&&_.Ws(Z,U);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(c=this.getActiveReelVideo(N))&&c.appendChild(this.overlayContainer)}var S,b;c=this.enableShortsSequenceRefactorUnify?((S=this.shortsContentList)==null?NaN:S.length)-4<=N:((b=this.reelWatchSequenceResponse)==null?void 0:b.entries)&&N===this.reelWatchSequenceResponse.entries.length-1;var z;if(((z=this.reelWatchSequenceResponse)==
null?0:z.continuationEndpoint)&&c){var w,P;S={contentPlaybackContext:_.VD({},(P=_.M((w=this.currentEndpoint)==null?void 0:w.commandMetadata,_.Da))==null?void 0:P.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:S}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:S})}var x,
l;N=this.enableShortsSequenceRefactorUnify?N===0:N===-(((x=this.reelWatchSequenceResponse)==null?void 0:(l=x.prevEntries)==null?void 0:l.length)||0);var I,r;((I=this.reelWatchSequenceResponse)==null?0:I.prevContinuationEndpoint)&&((r=this.reelWatchSequenceResponse)==null?0:r.prevEntries)&&N&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.V.setMiniplayerPreview=function(N){N=(N===void 0?0:N)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var t,O,H,A,Z=_.cY().resolve(_.kf),U={shortsData:void 0,shortsPreviewThumbnail:N?this.enableShortsSequenceRefactorUnify?(t=this.shortsContentList)==null?void 0:(O=t[N])==null?void 0:O.thumbnail:(H=this.shortsProcessedSequence)==null?void 0:(A=H[N])==null?void 0:A.thumbnail:void 0};_.mx(Z,U)};
_.V.updateTitle=function(N){var t,O;N=(N==null?0:N.adSlots)?"":(O=N==null?void 0:(t=N.videoDetails)==null?void 0:t.title)!=null?O:"";_.or(this.hostElement,"yt-update-title",N)};
_.V.registerPanel=function(N){var t=_.cY().resolve(_.Of);if(t){N=_.D(N.engagementPanels||[]);for(var O=N.next();!O.done;O=N.next()){O=O.value;var H=this.getPanelIdentifier(O.engagementPanelSectionListRenderer),A=void 0,Z=void 0;(Z=(A=t).registerPanelContent)==null||Z.call(A,H,O)}}};
_.V.getPanelIdentifier=function(N){var t;return(N==null?void 0:(t=N.identifier)==null?void 0:t.tag)||(N==null?void 0:N.panelIdentifier)||(N==null?void 0:N.targetId)};
_.V.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.v5().dispatch(pZ1(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.v5().dispatch(MT9(!1));var N;(N=this.shortsController)!=null&&(N.dismissedIndices=[]);var t;(t=this.shortsController)!=null&&t.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.cY().resolve(_.kf).close(!0)};
_.V.processAppendReelWatchSequenceContinuationEntriesAction=function(N){var t=this,O;(O=this.intersectionObserver)==null||O.disconnect();N=N.appendReelWatchSequenceContinuationEntriesAction;if(N==null?0:N.entries){var H;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.W6(((H=this.reelWatchSequenceResponse)==null?void 0:H.entries)||[]),_.W6(N.entries)),continuationEndpoint:N.continuationEndpoint})}else if(N==null?0:N.prevEntries){var A;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.W6(((A=this.reelWatchSequenceResponse)==null?void 0:A.prevEntries)||[]),_.W6(N.prevEntries)),prevContinuationEndpoint:N.prevContinuationEndpoint});_.GB.addLowPriorityJob(function(){t.movePlayerToVideo(t.index);t.scrollToVideoThrottle.fire(t.index,"instant")})}else return;
_.GB.addLowPriorityJob(function(){t.observeShorts()},100)};
_.V.processWatchSequence=function(N){var t=this;return N.map(function(O){O=O.command;if(t.isVideoContentCommand(O)){var H=_.M(O,_.jc);return{reelPlayerOverlayRenderer:_.M(H==null?void 0:H.overlay,_.Aif),thumbnail:H.thumbnail,command:O}}return t.isNonVideoContentCommand(O)?(H=_.M(O,_.KY),{reelNonVideoContentRenderer:_.M(H==null?void 0:H.renderer,_.d_),command:O}):{command:O}})};
_.V.calculateIntersectionObserverThreshold=function(){var N=_.O6(this.hostElement).querySelector("ytd-reel-video-renderer"),t=1;(N==null?0:N.offsetHeight)&&(N==null?0:N.offsetWidth)&&(t=Math.min(N.offsetHeight,this.shortsContainer.offsetHeight)/N.offsetHeight*(Math.min(N.offsetWidth,this.shortsContainer.offsetWidth)/N.offsetWidth));return Math.round(t*.6*10)/10};
_.V.isVideoContentCommand=function(N){_.cY().resolve(_.RZ);return!!_.M(N,_.jc)};
_.V.isNonVideoContentCommand=function(N){_.cY().resolve(_.RZ);return!!_.M(N,_.KY)};
_.V.initCinematicController=function(){var N=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22988_cinematicController=new _.ux(this.shortsCinematicContainer,this.player);var t,O=_.M((t=this.data)==null?void 0:t.background,_.ts);_.JJu(this.JSC$22988_cinematicController,O);_.vMA(this.JSC$22988_cinematicController,Cfu(O));_.R3N(this.JSC$22988_cinematicController);_.GB.addLowPriorityJob(function(){N.moveCinematicsToVideo()})}};
_.V.handleMiniplayerNavigateShorts=function(N){N==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():N==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.V.handleSignalActionToggleShortsPictureInPicture=function(){if(_.cY().resolve(_.kf).pictureInPictureSupported()){var N=_.cY().resolve(_.RZ);if(_.h("web_shorts_pip")){var t=_.cY().resolve(_.kf);N.isShortsPipActive()?t.deactivate():t.isMiniplayerActive()||(_.Ry().shortsPipActivation=!0,_.c_m(t))}}else(N=this.player)==null||N.togglePictureInPicture()};
_.cv.Object.defineProperties(aV.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.reelWatchSequenceResponse)!=null&&N.prevEntries)return this.processWatchSequence([].concat(_.W6(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.W6(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.reelWatchSequenceResponse)!=null&&N.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var N=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var t;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((t=this.shortsProcessedSequence)==null?void 0:t.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var O;t=_.M((O=this.firstShortsData)==null?void 0:O.command,_.jc);if(t==null||!t.videoId)return this.shortsProcessedSequence;O=this.getIndexInSequence(this.shortsSequence,
t.videoId);if(O!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=O,_.GB.addLowPriorityJob(function(){N.scrollToVideoThrottle.fire(N.index,"auto");N.movePlayerToVideo(N.index)}));
return[].concat(_.W6(this.shortsSequence))}_.yD(_.GB,function(){N.observeShorts()},100);
return[this.firstShortsData].concat(_.W6(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var N=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;N&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(N)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var N;return this.index===((N=this.shortsContentList)==null?NaN:N.length)-1}if(this.endOfNextContinuation){var t,O;return this.index===((t=this.reelWatchSequenceResponse)==null?void 0:(O=t.entries)==null?void 0:O.length)}var H;return!((H=this.reelWatchSequenceResponse)==null?0:H.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var N;(N=this.delayedActiveIndexUpdateDebouncer)==null||N.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return this.isShortPlayable()||((t=_.M((N=this.data)==null?void 0:N.watchStatus,_.gn0))==null?void 0:(O=t.style)==null?void 0:O.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var N=this,t=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),O;if((this.data||t)&&(((O=this.data)==null?0:O.engagementPanels)||this.isAd()||t)){t=!1;this.activePanel="shorts-comments-panel";var H;O=_.D(((H=this.data)==null?void 0:H.engagementPanels)||[]);for(H=O.next();!H.done;H=O.next())if(this.getPanelIdentifier(H.value.engagementPanelSectionListRenderer)===this.activePanel){t=!0;break}if(this.isPersistentPanelActive){var A=
_.cY().resolve(_.Of);_.WX(_.GB,function(){A.showPanel({identifier:N.activePanel,target:null})},100)}var Z;
H=[].concat(_.W6(Object.values(((Z=this.data)==null?void 0:Z.engagementPanels)||{})));Z=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);O=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return Z===void 0&&O===void 0||(Z==null?0:Z.isDisabled)||(O==null?void 0:O.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!t?(t=H==null?void 0:H.findIndex(function(U){var C,F;return((C=U.engagementPanelSectionListRenderer)==null?void 0:(F=C.identifier)==null?void 0:F.tag)==="shorts-comments-panel"}),t===-1||t===void 0||H!=null&&H.splice(t,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.CJ("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.CJ("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:_.CJ("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.CJ("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(_.W6(Object.values(H||
{})))):H}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var N=this,t,O,H;if((t=this.playerData)==null?0:(O=t.playabilityStatus)==null?0:(H=O.errorScreen)==null?0:H.playerInterstitialRenderer)return _.GB.addLowPriorityJob(function(){N.movePlayerToVideo(N.index)}),this.playerData.playabilityStatus.errorScreen;
var A,Z;return((A=this.data)==null?void 0:A.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((Z=this.data)==null?0:Z.watchStatus)&&_.M(this.data.watchStatus,_.PKX)?(_.GB.addLowPriorityJob(function(){N.movePlayerToVideo(N.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.cv.Object.defineProperties(aV,{template:{configurable:!0,enumerable:!0,get:function(){if(nlu===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);nlu=N}N=nlu;return N}}});
aV.prototype.onNextButtonDataChange=aV.prototype.onNextButtonDataChange;aV.prototype.onPrevButtonDataChange=aV.prototype.onPrevButtonDataChange;aV.prototype.onPersistentPanelActiveChanged=aV.prototype.onPersistentPanelActiveChanged;aV.prototype.lazyUpdateMiniplayerData=aV.prototype.lazyUpdateMiniplayerData;aV.prototype.onShortsPipActiveChanged=aV.prototype.onShortsPipActiveChanged;aV.prototype.setActiveIndex=aV.prototype.setActiveIndex;aV.prototype.graftNvcRenderer=aV.prototype.graftNvcRenderer;
aV.prototype.graftClientVisualElements=aV.prototype.graftClientVisualElements;aV.prototype.onActiveChanged=aV.prototype.onActiveChanged;aV.prototype.onShortsDismiss=aV.prototype.onShortsDismiss;aV.prototype.onShortUndoDismiss=aV.prototype.onShortUndoDismiss;aV.prototype.playerDataChanged=aV.prototype.playerDataChanged;aV.prototype.afterPlayerStarted=aV.prototype.afterPlayerStarted;aV.prototype.updateReelWatchSequenceResponse=aV.prototype.updateReelWatchSequenceResponse;
aV.prototype.unhideCurrentOverlay=aV.prototype.unhideCurrentOverlay;aV.prototype.onServiceRequestCompleted=aV.prototype.onServiceRequestCompleted;aV.prototype.engagementPanelsChanged=aV.prototype.engagementPanelsChanged;aV.prototype.onFullscreenChange=aV.prototype.onFullscreenChange;aV.prototype.onResize=aV.prototype.onResize;aV.prototype.setShortsContentList=aV.prototype.setShortsContentList;aV.prototype.setFirstShortsData=aV.prototype.setFirstShortsData;
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],aV.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.As.YtPageBehavior),_.Q("design:type",Object)],aV.prototype,"ytPageBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],aV.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.JV),_.Q("design:type",Object)],aV.prototype,"ironResizableBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],aV.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],aV.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],aV.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"playerData",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"reelWatchSequenceResponse",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"cachedReelWatchSequenceResponse",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"cachedSequenceParams",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"cachedSequenceProvider",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"currentEndpoint",void 0);
_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"nextButtonData",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"prevButtonData",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"isPreviousPageShorts",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"index",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"delayedActiveIndex",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"playablePreviousIndex",void 0);
_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"player",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"isPlayerPaused",void 0);_.W([_.X({selector:UC8}),_.Q("design:type",Object)],aV.prototype,"isPlayerStarted",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"intersectionObserver",void 0);_.W([_.X(),_.Q("design:type",Number)],aV.prototype,"cinematicsInitializeJobId",void 0);_.W([_.X(),_.Q("design:type",Number)],aV.prototype,"updateMiniplayerDataJobId",void 0);
_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"fitToVisibleBounds",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"pageSubtype",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],aV.prototype,"enablePreviousContinuation",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"shortsPipEnabled",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"isDark",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"shortsViewTransitions",void 0);_.W([_.X({selector:_.O9,reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"isFullscreen",void 0);_.W([_.X({selector:_.Hy,reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"isShortsPipActive",void 0);_.W([_.B2("#shorts-inner-container"),_.Q("design:type",HTMLElement)],aV.prototype,"shortsInnerContainer",void 0);
_.W([_.B2("#back-nav-button ytd-button-renderer"),_.Q("design:type",_.Yn)],aV.prototype,"backNavButton",void 0);_.W([_.B2("#shorts-container"),_.Q("design:type",HTMLElement)],aV.prototype,"shortsContainer",void 0);_.W([_.BQ("error-screen"),_.Q("design:type",HTMLElement)],aV.prototype,"errorScreenContainer",void 0);_.W([_.BQ("player"),_.Q("design:type",Object)],aV.prototype,"playerElement",void 0);
_.W([_.BQ("shorts-cinematic-container"),_.Q("design:type",HTMLElement)],aV.prototype,"shortsCinematicContainer",void 0);_.W([_.BQ("initial-player-container"),_.Q("design:type",HTMLElement)],aV.prototype,"initialPlayerContainer",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"buttonOverride",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"anchoredPanelActive",void 0);_.W([_.X(),_.Q("design:type",String)],aV.prototype,"activePanel",void 0);
_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"isActive",void 0);_.W([_.X({selector:DCV,reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"smallScreenPersistentPanel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"isPersistentPanelActive",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"smallScreenSqueezeBack",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"enableScrollIntoViewCenter",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"formatFirst",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"enableFlexibleOverlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"extractOverlay",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"useAspectRatio",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],aV.prototype,"enableShortsSequenceRefactorUnify",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"continuationRequestPending",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"shortsController",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"panelContainer",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"overlayContainer",void 0);
_.W([_.X(),_.Q("design:type",Array)],aV.prototype,"carouselContainers",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"isShortsInitialized",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"firstShortsData",void 0);_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"firstShortsDataModel",void 0);_.W([_.X(),_.Q("design:type",Array)],aV.prototype,"shortsContentList",void 0);
_.W([_.a("reelWatchSequenceResponse"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aV.prototype,"prevShortsSequence",null);_.W([_.a("data","prevShortsSequence"),_.a("data","prevShortsSequence"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aV.prototype,"shortsProcessedPrevSequence",null);_.W([_.a("reelWatchSequenceResponse"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aV.prototype,"shortsSequence",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"setFirstShortsData",null);_.W([_.gz("reelWatchSequenceResponse","firstShortsData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"setShortsContentList",null);_.W([_.a("data","shortsSequence","firstShortsData"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aV.prototype,"shortsProcessedSequence",null);
_.W([_.X({reflectToAttribute:!0}),_.a("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],aV.prototype,"isUpArrowHidden",null);_.W([_.X({reflectToAttribute:!0}),_.a("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],aV.prototype,"isDownArrowHidden",null);
_.W([_.X(),_.a("index"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],aV.prototype,"activeIndex",null);_.W([_.a("isShortPlayable","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],aV.prototype,"shouldRenderOfflineContent",null);_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"onResize",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aV.prototype,"anchoredEngagementPanels",null);
_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"watchWhileEngagementPanels",void 0);_.W([_.gz("isFullscreen"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"onFullscreenChange",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"engagementPanelsChanged",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],aV.prototype,"onServiceRequestCompleted",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"unhideCurrentOverlay",null);_.W([_.gz("currentEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"updateReelWatchSequenceResponse",null);
_.W([_.gz("isPlayerStarted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"afterPlayerStarted",null);_.W([_.a("playerData","reelWatchSequenceResponse","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aV.prototype,"errorScreen",null);_.W([_.a("errorScreen"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],aV.prototype,"hasError",null);
_.W([_.gz("playerData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],aV.prototype,"playerDataChanged",null);_.W([_.dz("yt-dismissible-item-undo-feedback"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"onShortUndoDismiss",null);_.W([_.dz("yt-disable-lockup-interaction"),_.Q("design:type",Function),_.Q("design:paramtypes",[Object]),_.Q("design:returntype")],aV.prototype,"onShortsDismiss",null);
_.W([_.ic("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"onActiveChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"graftClientVisualElements",null);_.W([_.gz("currentPlayerIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"graftNvcRenderer",null);
_.W([_.gz("index"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"setActiveIndex",null);_.W([_.gz("isShortsPipActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"onShortsPipActiveChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"lazyUpdateMiniplayerData",null);
_.W([_.X(),_.Q("design:type",Object)],aV.prototype,"onOverlayDensityChanged",void 0);_.W([_.gz("isPersistentPanelActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"onPersistentPanelActiveChanged",null);_.W([_.gz("index","data","isUpArrowHidden"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"onPrevButtonDataChange",null);
_.W([_.gz("index","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aV.prototype,"onNextButtonDataChange",null);_.W([_.en({is:"ytd-shorts"})],aV);_.CX.registerService(_.cTx,aV);
_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("JzFVk");
var sPw;var Np$;var Nt=function(){return _.k.apply(this,arguments)||this};
_.p(Nt,_.k);Nt.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Nt.prototype.computeBlueBottomLink=function(N){return N};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Nt.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.bottomIcon)"}),_.Q("design:type",String)],Nt.prototype,"bottomIcon",void 0);
_.W([_.X({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Nt.prototype,"enableBlueBottomLink",void 0);_.W([_.en({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Nt);
_.n(Nt,"ytd-web-answer-renderer",function(){if(Np$!==void 0)return Np$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Np$=N},{mode:_.O4("kevlar_poly_si_batch_j035")?1:2});var tG8;var tz=function(){var N=_.k.apply(this,arguments)||this;N.hasChipBar=!1;return N};
_.p(tz,_.k);tz.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}}};
tz.prototype.computeHasChipBar=function(N){return!(N==null||!N.chipBar)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],tz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tz.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Q("design:type",Object)],tz.prototype,"hasChipBar",void 0);_.W([_.en({is:"ytd-search-header-renderer",disableElementRegistration:!0})],tz);
_.n(tz,"ytd-search-header-renderer",function(){if(tG8!==void 0)return tG8;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return tG8=N},{mode:1});var Otm;var OE=function(){return _.k.apply(this,arguments)||this};
_.p(OE,_.k);OE.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],OE.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-page-continuation"})],OE);
_.n(OE,"ytd-page-continuation",function(){if(Otm!==void 0)return Otm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Otm=N},{mode:1});var Hts;var AJR;var Ztl;var VGV=function(){return _.k.apply(this,arguments)||this};
_.p(VGV,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VGV.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VGV.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],VGV);
_.n(VGV,"ytd-watch-card-one-vs-one-event",function(){if(Ztl!==void 0)return Ztl;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Ztl=N},{mode:1});var DYD=function(){return _.k.apply(this,arguments)||this};
_.p(DYD,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DYD.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DYD.prototype,"data",void 0);_.W([_.en({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],DYD);
_.n(DYD,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(AJR!==void 0)return AJR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return AJR=N},{mode:1});var UYV;var C$1=function(){return _.k.apply(this,arguments)||this};
_.p(C$1,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],C$1.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],C$1.prototype,"data",void 0);_.W([_.en({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],C$1);
_.n(C$1,"ytd-banner-and-box-hero-image-renderer",function(){if(UYV!==void 0)return UYV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return UYV=N},{mode:1});var KP1;var H3=function(){var N=_.k.apply(this,arguments)||this;N.modern=_.h("web_modern_buttons");return N};
_.p(H3,_.k);H3.prototype.computeIcon=function(){var N,t,O=(N=this.data)==null?void 0:(t=N.icon)==null?void 0:t.iconType;if(O)return _.Vt(O)};
H3.prototype.computeButtonShape=function(){var N;return{buttonText:_.Gv((N=this.data)==null?void 0:N.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.cv.Object.defineProperties(H3.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"}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],H3.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],H3.prototype,"modern",void 0);_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.a("data.style"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],H3.prototype,"buttonColor",null);
_.W([_.en({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],H3);
_.n(H3,"ytd-call-to-action-button-renderer",function(){if(KP1!==void 0)return KP1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return KP1=N},{mode:1});var FPl;var Az=function(){return _.k.apply(this,arguments)||this};
_.p(Az,_.k);Az.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.O6(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.s4(this.data.leftThumbnail.thumbnails,216)+")")};
Az.prototype.onLeftThumbnailChanged=Az.prototype.onLeftThumbnailChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Az.prototype,"data",void 0);_.W([_.gz("data.leftThumbnail"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Az.prototype,"onLeftThumbnailChanged",null);_.W([_.en({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Az);
_.n(Az,"ytd-collage-hero-image-renderer",function(){if(FPl!==void 0)return FPl;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return FPl=N},{mode:1});var dYr;var Zf=function(){return _.k.apply(this,arguments)||this};
_.p(Zf,_.k);Zf.prototype.computeStyle=function(N){return N};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Zf.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Q("design:type",String)],Zf.prototype,"componentStyle",void 0);_.W([_.en({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Zf);
_.n(Zf,"ytd-single-hero-image-renderer",function(){if(dYr!==void 0)return dYr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return dYr=N},{mode:1});var gM9;var VU=function(){return _.k.apply(this,arguments)||this};
_.p(VU,_.k);_.V=VU.prototype;
_.V.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.h("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.V.computeSubtitle=function(N){if(this.data){var t;if(this.data.upcomingEventData){N=_.Gv(N.subtitle);var O=Number(this.data.upcomingEventData.startTime);isNaN(O)||(t=_.E_(_.bF(N,O)))}else t=N.subtitle;return t}};
_.V.onHeroTap=function(N){N.preventDefault();var t=this.data&&this.data.navigationEndpoint;!t||!_.RM(_.m1(N),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.RM(_.m1(N),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.h("kevlar_watchcard_hero_video_renderer_killswitch")?_.or(this.hostElement,"yt-navigate",{navigationEndpoint:t}):this.ytComponentBehavior.resolveCommand(t))};
_.V.computeHeroTabIndex=function(N){return N&&N.simpleText?-1:0};
_.V.computeHeroRole=function(N){return N&&N.simpleText?"":"link"};
_.V.computeIsReminderButtonPresent=function(N){return!(!N||!N.reminderButton)};
_.V.computeHideBottomItems=function(N){return!(this.computeIsReminderButtonPresent(N)||N.subtitle)};
_.V.dataChanged=function(){var N=this.get("data.buttons.buttonRenderer.serviceEndpoint"),t;((t=_.M(N==null?void 0:N.commandMetadata,_.R$))==null?0:t.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(N)};
VU.prototype.dataChanged=VU.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],VU.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VU.prototype,"data",void 0);
_.W([_.X({computed:"computeSubtitle(data)"}),_.Q("design:type",String)],VU.prototype,"subtitle",void 0);_.W([_.X({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],VU.prototype,"isReminderButtonPresent",void 0);_.W([_.X({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],VU.prototype,"hideBottomItems",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],VU.prototype,"dataChanged",null);_.W([_.en({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],VU);
_.n(VU,"ytd-watch-card-hero-video-renderer",function(){if(gM9!==void 0)return gM9;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return gM9=N},{mode:1});var yJA;var Df=function(){return _.k.apply(this,arguments)||this};
_.p(Df,_.k);_.V=Df.prototype;_.V.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.V.computeTitleBadges=function(N){return N?[N]:[]};
_.V.computeHeaderStyle=function(N){return N?N.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.V.computeAvatarAriaLabel=function(N){if(N){var t,O,H,A;return(A=(t=N.avatar)==null?void 0:(O=t.accessibility)==null?void 0:(H=O.accessibilityData)==null?void 0:H.label)!=null?A:_.Gv(N==null?void 0:N.title)}};
_.V.computeAvatarHeight=function(N){return N==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.V.computeBadgeRowClass=function(N){return(N==null?0:N[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Df.prototype,"data",void 0);_.W([_.X({computed:"computeTitleBadges(data.titleBadge)"}),_.Q("design:type",Array)],Df.prototype,"titleBadges",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Q("design:type",String)],Df.prototype,"headerStyle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Q("design:type",String)],Df.prototype,"badgeRowClass",void 0);_.W([_.en({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Df);
_.n(Df,"ytd-watch-card-rich-header-renderer",function(){if(yJA!==void 0)return yJA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yJA=N},{mode:1});var Bp8;var cJl;var UE=function(){return _.k.apply(this,arguments)||this};
_.p(UE,_.k);UE.prototype.onMetadataTap=function(N){var t=this.data&&this.data.navigationEndpoint;t&&!_.RM(_.m1(N),this.hostElement,["A".toString()])&&_.or(this.hostElement,"yt-navigate",{endpoint:t})};
_.cv.Object.defineProperties(UE.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var N;if(this.data.upcomingEventData){var t=_.Gv(this.data.subtitle),O=Number(this.data.upcomingEventData.startTime);isNaN(O)||(N=_.E_(_.bF(t,O)))}else N=this.data.subtitle;return N}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UE.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data.style"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],UE.prototype,"isCondensed",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],UE.prototype,"subtitle",null);
_.W([_.en({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],UE);
_.n(UE,"ytd-watch-card-compact-video-renderer",function(){if(cJl!==void 0)return cJl;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return cJl=N},{mode:1});var $Y$;var jau=function(){return _.k.apply(this,arguments)||this};
_.p(jau,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jau.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jau.prototype,"data",void 0);_.W([_.en({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],jau);
_.n(jau,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if($Y$!==void 0)return $Y$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $Y$=N},{mode:1});var CH=function(){return _.k.apply(this,arguments)||this};
_.p(CH,_.k);CH.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}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],CH.prototype,"ytRendererStamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],CH.prototype,"data",void 0);_.W([_.en({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],CH);
_.n(CH,"ytd-vertical-watch-card-list-renderer",function(){if(Bp8!==void 0)return Bp8;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Bp8=N},{mode:1});var it9;var KH=function(){var N=_.k.apply(this,arguments)||this;N.ariaExpanded="false";return N};
_.p(KH,_.k);_.V=KH.prototype;_.V.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.V.dataChanged=function(){var N;this.currentSeasonIndex=((N=this.data)==null?void 0:N.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.V.computeEpisodesInfo=function(N,t,O){if(N!==void 0&&t.length===N.length)return N[O]};
_.V.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.V.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.V.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.V.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.V.getUppercaseSimpleString=function(N){return this.ytRendererBehavior.getSimpleString(N).toUpperCase()};
_.V.updateCurrentSeasonIndexFromBinding=function(N){this.currentSeasonIndex=N.detail.value};
KH.prototype.onIronOverlayClosed=KH.prototype.onIronOverlayClosed;KH.prototype.currentSeasonIndexChanged=KH.prototype.currentSeasonIndexChanged;KH.prototype.dataChanged=KH.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],KH.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",String)],KH.prototype,"label",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],KH.prototype,"currentSeasonIndex",void 0);_.W([_.X({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Q("design:type",Object)],KH.prototype,"episodesInfo",void 0);_.W([_.X({value:"false"}),_.Q("design:type",Object)],KH.prototype,"ariaExpanded",void 0);_.W([_.B2("#lists"),_.Q("design:type",Object)],KH.prototype,"lists",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KH.prototype,"dataChanged",null);_.W([_.ic("currentSeasonIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KH.prototype,"currentSeasonIndexChanged",null);_.W([_.dz("iron-overlay-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],KH.prototype,"onIronOverlayClosed",null);
_.W([_.en({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],KH);
_.n(KH,"ytd-watch-card-section-dropdown-renderer",function(){if(it9!==void 0)return it9;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return it9=N},{mode:1});var uS8;var Fh=function(){var N=_.k.apply(this,arguments)||this;N.isSearch=!1;return N};
_.p(Fh,_.k);Fh.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}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Fh.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Fh.prototype,"isSearch",void 0);_.W([_.en({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Fh);
_.n(Fh,"ytd-watch-card-section-sequence-renderer",function(){if(uS8!==void 0)return uS8;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return uS8=N},{mode:1});var SHm=_.q(function(N){return _.d("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.d(_.iF,{data:function(){return N.data().ctaButton}},{buttonViewModel:_.Pu}),_.d(_.cu,{text:function(){return N.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"tn");
SHm.idomCompat=!0;_.o_(SHm,"ytd-button-banner-view-model",{props:{data:_.$O}});var dm=function(){var N=_.k.apply(this,arguments)||this;N.isSearch=!1;return N};
_.p(dm,_.k);
dm.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"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dm.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],dm.prototype,"rounded",void 0);_.W([_.X(),_.Q("design:type",Object)],dm.prototype,"isSearch",void 0);
_.W([_.en({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],dm);
_.n(dm,"ytd-universal-watch-card-renderer",function(){if(Hts!==void 0)return Hts;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Hts=N},{mode:1});var h3$;_.o_(_.q(function(N){var t=N.data;var O;N=!((O=_.cY().resolve(_.BY(_.WV)))==null||!O());O={};return _.d("overview-message-view-model",{class:_.V7("ytwOverviewMessageViewModelHost",(O.ytwOverviewMessageViewModelDarkBackground=N,O.ytwOverviewMessageViewModelLightBackground=!N,O))},_.d(_.y,{cond:function(){return t().primaryImage},
then:function(H){return _.d(_.Qt,{data:H,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.d(_.y,{cond:function(){return t().primaryText},
then:function(){return _.d("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.d(_.cu,{text:function(){return t().primaryText}}))}}),_.d(_.y,{cond:function(){return t().secondaryText},
then:function(){return _.d("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.d(_.cu,{text:function(){return t().secondaryText}}))}}))},"un"),"overview-message-view-model",{props:{data:_.$O}});_.o_(_.jln,"ytd-overview-answer-view-model",{props:{data:_.$O}});var gm=function(){return _.k.apply(this,arguments)||this};
_.p(gm,_.k);gm.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"}}}};
gm.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],gm.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gm.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],gm.prototype,"isSearch",void 0);
_.W([_.en({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],gm);
_.n(gm,"ytd-secondary-search-container-renderer",function(){if(h3$!==void 0)return h3$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return h3$=N},{mode:1});var MGA;var yU=function(){var N=_.k.apply(this,arguments)||this;N.renderSecondarySearchContainer=!1;N.isSearch=!1;return N};
_.p(yU,_.k);_.V=yU.prototype;_.V.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.V.created=function(){var N=this;this.boundStampSecondarySearchContainerIfFits=function(){N.stampSecondarySearchContainerIfFits()};
_.Gm("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.V.computeIsSearchFrictionPage=function(N){var t,O,H,A,Z;N=N==null?void 0:(t=N.primaryContents)==null?void 0:(O=t.sectionListRenderer)==null?void 0:(H=O.contents)==null?void 0:(A=H[0])==null?void 0:(Z=A.itemSectionRenderer)==null?void 0:Z.contents;if(!N)return!1;t=_.D(N);for(O=t.next();!O.done;O=t.next())if(H=void 0,(H=O.value)==null?0:H.searchFrictionViewModel)return!0;return!1};
_.V.computeShowSecondaryColumn=function(N,t){return!!(t&&t.secondaryContents&&N)};
_.V.activeChanged=function(){var N=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Fb(this,this.debounceStampSecondarySearchContainerIfFits)),_.nO(function(){N.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Fb(this,this.debounceStampSecondarySearchContainerIfFits))};
_.V.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.V.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.V.debounceStampSecondarySearchContainerIfFits=function(){_.W2(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.V.onRetrieveLocation=function(N,t){t.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);N.stopPropagation()};
_.V.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
yU.prototype.dataChanged=yU.prototype.dataChanged;yU.prototype.onRetrieveLocation=yU.prototype.onRetrieveLocation;yU.prototype.persistentGuideChanged=yU.prototype.persistentGuideChanged;yU.prototype.activeChanged=yU.prototype.activeChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],yU.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.JV),_.Q("design:type",Object)],yU.prototype,"ironResizableBehavior",void 0);_.W([_.X(),_.Q("design:type",Boolean)],yU.prototype,"active",void 0);_.W([_.X(),_.Q("design:type",Object)],yU.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Q("design:type",Boolean)],yU.prototype,"useBiggerThumbs",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.So("desktop_search_bigger_thumbs_style")}}),
_.Q("design:type",String)],yU.prototype,"biggerThumbsStyle",void 0);_.W([_.X(),_.Q("design:type",Object)],yU.prototype,"renderSecondarySearchContainer",void 0);_.W([_.X({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Q("design:type",Boolean)],yU.prototype,"showSecondaryColumn",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Q("design:type",Boolean)],yU.prototype,"isSearchFrictionPage",void 0);
_.W([_.X(),_.Q("design:type",Object)],yU.prototype,"isSearch",void 0);_.W([_.gz("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yU.prototype,"activeChanged",null);_.W([_.gz("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yU.prototype,"persistentGuideChanged",null);
_.W([_.dz("yt-retrieve-location"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],yU.prototype,"onRetrieveLocation",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yU.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],yU);
_.n(yU,"ytd-two-column-search-results-renderer",function(){if(MGA!==void 0)return MGA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return MGA=N},{mode:1});var B3=function(){var N=_.k.apply(this,arguments)||this;N.hasSearchHeader=!1;N.hasSecondaryContent=!1;N.hasBiggerThumbs=_.h("enable_desktop_search_bigger_thumbs");N.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return N};
_.p(B3,_.k);_.V=B3.prototype;_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.G$(["aa","eocs"])}}};
_.V.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.V.loadPage_=function(N){this.initCsi();N&&(this.data=N,_.Gm("REFINEMENTS_TUPLE",["FromSearchResponse",N.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Kb(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.V.initCsi=function(){_.ADd("results",["ol","cpt"])};
_.V.updateTitle=function(){var N=_.s$(window.location.href,"q");N||(N=_.s$(window.location.href,"search_query"));_.or(this.hostElement,"yt-update-title",N||"")};
_.V.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.V.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.h("web_srp_data_changed_terminate_imp_killswitch")||_.sl(this.hostElement,"yt-terminate-video-preview-action")};
_.V.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.V.computeHasSearchHeader=function(N){var t;N=N==null?void 0:(t=N.header)==null?void 0:t.searchHeaderRenderer;return!!N&&(!!N.searchFilterButton||!!N.chipBar)};
_.V.computeHasSecondaryContent=function(N){var t,O;return!!(N==null?0:(t=N.contents)==null?0:(O=t.twoColumnSearchResultsRenderer)==null?0:O.secondaryContents)};
_.cv.Object.defineProperties(B3,{template:{configurable:!0,enumerable:!0,get:function(){if(sPw===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);sPw=N}N=sPw;return N}}});
B3.prototype.onReloadContinuationFinish=B3.prototype.onReloadContinuationFinish;B3.prototype.dataChanged=B3.prototype.dataChanged;_.W([_.Y(_.As.YtPageBehavior),_.Q("design:type",Object)],B3.prototype,"ytPageBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],B3.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],B3.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],B3.prototype,"data",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],B3.prototype,"monitorScroll",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],B3.prototype,"hasSearchHeader",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],B3.prototype,"hasSecondaryContent",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],B3.prototype,"hasBiggerThumbs",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],B3.prototype,"dataChanged",null);
_.W([_.dz("yt-reload-continuation-finish"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],B3.prototype,"onReloadContinuationFinish",null);_.W([_.en({is:"ytd-search"})],B3);_.CX.registerService(_.B$Q,B3);
_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("h8y2qb");
var VuN=function(N){if(N=_.JKv(N)){var t;(t=N.sources)!=null&&t[0]?(t=_.stQ(N),t=t<1?"VERTICAL":t>1?"HORIZONTAL":"SQUARE"):t=void 0;return t}},ZW=function(N){_.Xx.call(this,"upload");
this.opts.query=N},UwN=function(N,t){return _.d(Dws,{data:N,
onYtNavigate:t})},Cws=function(N,t){return _.CM(N.entities,"pageHeaderEntity",t)},Fqr=function(N,t){return N.map(function(O){if(O.tabRenderer)return KqD(O.tabRenderer);
if(O.expandableTabRenderer&&t){var H=O.expandableTabRenderer;return{customTabRenderable:function(){return t(H)}}}return{}})},KqD=function(N){return{identifier:N.tabIdentifier,
aTagConfig:_.PV({innertubeCommand:N.endpoint,forceNewState:!0}),title:N.title,selected:N.selected,disabled:N.unselectable,icon:N.icon}},dw8=function(N){return _.H5({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:N})},gmw=function(N){if(!_.t5(document,"gtm-noscript")){var t=document.createElement("noscript");
t.id="gtm-noscript";t.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+N+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(t)}};_.Od(ZW,_.Xx);ZW.prototype.JSC$10229_setLabel=function(N){ZW.superClass_.JSC$10229_setLabel.call(this,N);return this};
ZW.prototype.addUploadMetadata=function(N,t){ZW.superClass_.addUploadMetadata.call(this,N,t);return this};var yD8=function(N){if(N!=="youtubebanner"&&N!=="youtube-channel-banner")throw Error("Qo");ZW.call(this,N)};
_.p(yD8,ZW);yD8.prototype.JSC$10229_setLabel=function(N){ZW.prototype.JSC$10229_setLabel.call(this,N);return this};
yD8.prototype.addUploadMetadata=function(N,t){ZW.prototype.addUploadMetadata.call(this,N,t);return this};var Bcu=[_.JV,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(N){_.$L(N).path[0]!==this&&(this.resetLayout(),N.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var N=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.M_(this._layoutDebouncer,_.hd,N);_.br(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var N=this;requestAnimationFrame(function(){N.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(N){this.resizerShouldNotify(N)&&this._notifyDescendant(N)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var cD1=[_.AwE,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(N,t){var O=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[N];if(!O)throw new ReferenceError(this._getUndefinedMsg(N));N=this._boundEffect(O,t||{});N.setUp();return N},
_effectsChanged:function(N,t,O){this._tearDownEffects();N&&O&&(N.split(" ").forEach(function(H){var A;H!==""&&((A=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[H])?this._effects.push(this._boundEffect(A,t[H])):console.warn(this._getUndefinedMsg(H)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(N,t){t=t||{};var O=parseFloat(t.startsAt||0),H=parseFloat(t.endsAt||1),A=H-O,Z=function(){};
H=O===0&&H===1?N.run:function(U,C){N.run.call(this,Math.max(0,(U-O)/A),C)};
return{setUp:N.setUp?N.setUp.bind(this,t):Z,run:N.run?H.bind(this):Z,tearDown:N.tearDown?N.tearDown.bind(this):Z}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(N){N.setUp()!==!1&&this._effectsRunFn.push(N.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(N){N.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(N,t){this._effectsRunFn&&this._effectsRunFn.forEach(function(O){O(N,t)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var N=this._clampedScrollTop;this._updateScrollState(N);this.threshold>0&&this._setThresholdTriggered(N>=this.threshold)}},
_getDOMRef:function(N){console.warn("_getDOMRef","`"+N+"` is undefined")},
_getUndefinedMsg:function(N){return"Scroll effect `"+N+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+N+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ro`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(N){var t={};N=parseFloat(N.scalar);t.background=this._getDOMRef("background");t.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");t.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");t.deltaBg=t.backgroundFrontLayer.offsetHeight-t.background.offsetHeight;t.deltaBg===0?(isNaN(N)&&(N=.8),t.deltaBg=(this._dHeight||0)*N):(isNaN(N)&&(N=
1),t.deltaBg*=N);this._fxParallaxBackground=t},
run:function(N){var t=this._fxParallaxBackground;this.transform("translate3d(0px, "+t.deltaBg*Math.min(1,N)+"px, 0px)",t.backgroundFrontLayer);t.backgroundRearLayer&&this.transform("translate3d(0px, "+t.deltaBg*Math.min(1,N)+"px, 0px)",t.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var $w$;var jN$;var imD=function(){};
_.V=imD.prototype;_.V._scrollTargetChanged=function(){};
_.V.scroll=function(){};
_.V._isValidScrollTarget=function(){};
_.V._toggleScrollListener=function(){};
_.V.toggleScrollListener=function(){};
_.V.createEffect=function(){};
_.V._effectsChanged=function(){};
_.V._layoutIfDirty=function(){};
_.V._boundEffect=function(){};
_.V._setUpEffect=function(){};
_.V._tearDownEffects=function(){};
_.V._runEffects=function(){};
_.V._scrollHandler=function(){};
_.V._scrollStateChanged=function(){};
_.V._getUndefinedMsg=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V._appResetLayoutHandler=function(){};
_.V.resetLayout=function(){};
_.V._notifyLayoutChanged=function(){};
_.V._notifyDescendantResize=function(){};
_.V._setThresholdTriggered=function(){};
imD=_.LO({_template:function(){if(jN$!==void 0)return jN$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;$w$===void 0&&($w$=document.createElement("template"));var H=$w$;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return jN$=N},
is:"tp-yt-app-header",behaviors:[cD1,Bcu],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var N=_.$L(this.$.slot).getDistributedNodes(),t=0,O;O=N[t];t++)if(O.nodeType===Node.ELEMENT_NODE)if(O.hasAttribute("sticky")){this._stickyElRef=O;break}else this._stickyElRef||(this._stickyElRef=O);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var N=this._clampedScrollTop,t=this._height===0||N===0,O=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;t||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();t?this._updateScrollState(N,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=O}},
_updateScrollState:function(N,t){if(this._height!==0){var O=0,H=this._top;var A=this._maxHeaderTop;var Z=N-this._lastScrollTop,U=Math.abs(Z),C=N>this._lastScrollTop,F=performance.now();this._mayMove()&&(O=this._clamp(this.reveals?H+Z:N,0,A));N>=this._dHeight&&(O=this.condenses&&!this.fixed?Math.max(this._dHeight,O):O,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&U<100){if(F-this._initTimestamp>300||this._wasScrollingDown!==C)this._initScrollTop=N,this._initTimestamp=F;N>=A&&
(Math.abs(this._initScrollTop-N)>30||U>10?(C&&N>=A?O=A:!C&&N>=this._dHeight&&(O=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((O-H)/(Z/(F-this._lastTimestamp)),0,300)+"ms"):O=this._top)}A=this._dHeight===0?N>0?1:0:O/this._dHeight;t||(this._lastScrollTop=N,this._top=O,this._wasScrollingDown=C,this._lastTimestamp=F);if(t||A!==this._progress||H!==O||N===0)this._progress=A,this._runEffects(A,O),this._transformHeader(O)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(N){this.translate3d(0,-N+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&N>=this._stickyElTop?Math.min(N,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(N,t,O){return Math.min(O,Math.max(t,N))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.$L(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(N){switch(N){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.$L(this).querySelector("[main-title]");case "condensedTitle":return _.$L(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var uas;var SWV;_.LO({_template:function(){if(SWV!==void 0)return SWV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;uas===void 0&&(uas=document.createElement("template"));var H=uas;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return SWV=N},
is:"tp-yt-app-header-layout",behaviors:[Bcu],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.$L(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var N=this.header;if(this.isAttached&&N){this.$.wrapper.classList.remove("initializing");N.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)N.style.left="",N.style.right="";else{var t=this.getBoundingClientRect(),O=document.documentElement.clientWidth-t.right;N.style.left=t.left+"px";N.style.right=O+"px"}t=this.$.contentContainer.style;O=N.offsetHeight;N.fixed&&!N.condenses&&this.hasScrollingRegion?
(t.marginTop=O+"px",t.paddingTop=""):(t.paddingTop=O+"px",t.marginTop="")}}});var hoN=new _.Fp("alertCommand");var Mud=new _.Fp("manageLabsStateCommand");var bmV=new _.Fp("inlineFormRenderer");var pWr=new _.Fp("playlistSidebarPrimaryInfoRenderer");var Lqd=new _.Fp("productDetailsThumbnailRenderer"),zos=new _.Fp("productDetailsVariantRenderer"),YWd=new _.Fp("productDetailsVariantOptionRenderer"),aC$=new _.Fp("productDetailsOffersContainerRenderer"),TcR=new _.Fp("productDetailsOfferRenderer");var wW$=new _.Fp("shoppingFlaggingRenderer");var eou=new _.Fp("playlistBylineRenderer");var Pw9=new _.Fp("insertChannelTabCommand");var Vw=function(){return _.$q.apply(this,arguments)||this};
_.p(Vw,_.$q);_.V=Vw.prototype;_.V.activeChanged=function(){if(this.active){var N=_.O6(this.hostElement).querySelector("#header");N&&_.or(N,"iron-resize");window.addEventListener("scroll",_.Fb(this,this.onScroll))}else window.removeEventListener("scroll",_.Fb(this,this.onScroll)),_.or(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.V.guideVisibleChanged=function(){var N=_.O6(this.hostElement).querySelector("#header");N&&_.or(N,"iron-resize")};
_.V.onScroll=function(){var N=this;_.W2(this,"onScroll",function(){var t=_.O6(N.hostElement).querySelector("#header");t&&t.polymerController&&(t=t.polymerController.getScrollState().progress===1?"standard":"seamed",_.or(N.hostElement,"yt-request-panel-mode-change",{mode:t}))},10)};
_.V.tabsChanged=function(){if(this.tabs){for(var N=null,t=0,O=this.tabs.length;t<O;++t){var H=this.tabs[t].tabRenderer;if(H&&H.selected){N=t;break}}this.selected=N}};
_.V.onTabsActivate=function(N){_.or(this.hostElement,"yt-navigate",{endpoint:this.tabs[N.detail.selected].tabRenderer.endpoint})};
Vw.prototype.tabsChanged=Vw.prototype.tabsChanged;Vw.prototype.guideVisibleChanged=Vw.prototype.guideVisibleChanged;Vw.prototype.activeChanged=Vw.prototype.activeChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Vw.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.X(),_.Q("design:type",Array)],Vw.prototype,"tabs",void 0);
_.W([_.X(),_.Q("design:type",Object)],Vw.prototype,"selected",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Vw.prototype,"active",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Vw.prototype,"disableHeaderFluidWidth",void 0);_.W([_.gz("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vw.prototype,"activeChanged",null);
_.W([_.gz("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vw.prototype,"guideVisibleChanged",null);_.W([_.gz("tabs"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vw.prototype,"tabsChanged",null);_.W([_.jn()],Vw);var XW$=[_.G.YtRendererBehavior,_.yV.YtdGuideStateAwareBehavior,Vw.prototype];var xww=2/3,ki1=_.UM(130749),qWs=function(N,t){var O=this;this.element=N;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){O.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:xww,moveAction:function(H){O.moveAction(H)},
triggerAction:function(){O.element.isReloading=!0;_.fE(_.gF(),{visualElement:ki1});_.U4.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:O.element}})}}}};
_.Iy(_.gF(),ki1,this.layer);this.gesture=new _.fG(N,t,this.refreshConfig,"pan-down");this.attach()};
_.V=qWs.prototype;_.V.attach=function(){this.gesture.attach()};
_.V.detach=function(){this.gesture.detach()};
_.V.reset=function(){this.element.close()};
_.V.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.V.moveAction=function(N){this.element.rotation=N*360};var fC1=_.UM(130750),Wq9=function(N,t,O,H,A){var Z=this;this.element=N;this.parent=O;this.channelHeader=H;this.ytdReduxDispatch=A;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){Z.tabsStartAtInPx=Z.channelHeader.clientHeight-48;var U;(U=Z.selectedTab)!=null&&U.title&&(U=_.cY().resolve(_.BY(_.J4)))&&(U=U.getCurrentPage(),Z.lastVisitedTabScrollPosition=U.getScrollTop(),Z.previousTab&&
((Z.lastVisitedTabScrollPosition===void 0?0:Z.lastVisitedTabScrollPosition<Z.channelHeader.clientHeight-48)?Z.scrollPositionForTabs.has(Z.selectedTab.title)&&Z.scrollPositionForTabs.delete(Z.selectedTab.title):Z.scrollPositionForTabs.set(Z.selectedTab.title,U.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:nmV(),triggerAction:function(){Z.navigate(Z.previousTab)},
moveAction:function(U,C){Z.moveAction(U,C)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-nmV(),triggerAction:function(){Z.navigate(Z.nextTab)},
moveAction:function(U,C){Z.moveAction(U,C)}}}};
_.Iy(_.gF(),fC1,this.layer);this.gesture=new _.fG(N,t,this.tabConfig);this.attach()};
_.V=Wq9.prototype;_.V.attach=function(){this.gesture.attach()};
_.V.detach=function(){this.gesture.detach()};
_.V.tabsChanged=function(N){if(N){var t=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;N=_.D(N);for(var O=N.next();!O.done;O=N.next()){O=O.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=O);var H=void 0;if((H=O)==null?0:H.selected)this.previousTab=t,this.selectedTab=O;t=O}t=this.gesture;N=this.getConfig();t.config=N;this.scrollPositionNeedsUpdate=!0}};
_.V.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.V.moveAction=function(N,t){if(!this.tabsElement){var O;this.tabsElement=(O=this.parent.header)==null?void 0:O.tabsElement;t==="right"&&this.previousTab?(O=this.previousTab.endpoint,_.Bbf(_.cY().resolve(_.bl),O,{},"")):t==="left"&&this.nextTab&&(O=this.nextTab.endpoint,_.Bbf(_.cY().resolve(_.bl),O,{},""));if(!this.tabsElement)return}O=this.tabsElement._pos;t==="right"&&(N*=-1);this.tabsElement._positionBar(O.width,O.left*1+O.width*N)};
var nmV=function(){var N,t;return(t=(N=_.cY().resolve(_.J4).getCurrentPage())==null?void 0:N.clientWidth)!=null?t:0};
Wq9.prototype.navigate=function(N){this.element.data=void 0;if(N=N==null?void 0:N.endpoint)this.ytdReduxDispatch(dw8(!0)),_.fE(_.gF(),{visualElement:fC1}),_.U4.instance.resolveCommand({navigateAction:{endpoint:N}},{form:{element:this.element}})};var rDl;var ICV;var DW=function(){return _.k.apply(this,arguments)||this};
_.p(DW,_.k);DW.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DW.prototype,"data",void 0);_.W([_.en({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],DW);
_.n(DW,"ytd-labs-edit-renderer",function(){if(ICV!==void 0)return ICV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ICV=N},{mode:1});var lCs;var Uc=function(){var N=_.k.apply(this,arguments)||this;N.dark=!1;N.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";N.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(Uc,_.k);Uc.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Uc.prototype.ready=function(){var N=document.documentElement.hasAttribute("dark");this.setBackgroundImage(N);this.dark=N};
Uc.prototype.onDarkModeToggledAction=function(N){this.setBackgroundImage(N);this.dark=N};
Uc.prototype.setBackgroundImage=function(N){_.CO(this.hostElement,{"--yt-labs-header-background":"url("+(N?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Uc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Uc.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Uc.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Uc.prototype,"dark",void 0);
_.W([_.en({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Uc);
_.n(Uc,"ytd-labs-header-renderer",function(){if(lCs!==void 0)return lCs;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return lCs=N},{mode:1});var QNd;var Ch=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return N};
_.p(Ch,_.k);Ch.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"}}}}}};
Ch.prototype.onYtToggleButton=function(N){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",N.detail.toggled)};
Ch.prototype.onManageLabsState=function(N){if(N=_.M(N,Mud))N.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?N.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&N.labsItemId===this.data.labsItemId&&(N.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.sl(this.hostElement,"yt-check-labs-opted-in-state").some(function(t){return t})&&this.data.confirmationDialogCommand?_.OK(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.cY().resolve(_.jo).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&N.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.cY().resolve(_.jo).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Ch.prototype.onCheckLabsOptedInState=function(){var N=this.get("data.primaryButton.toggleButtonRenderer");return N?N.isToggled:!1};
_.cv.Object.defineProperties(Ch.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Ch.prototype.onYtToggleButton=Ch.prototype.onYtToggleButton;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Ch.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ch.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ch.prototype,"itemStyle",null);_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ch.prototype,"onYtToggleButton",null);_.W([_.en({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Ch);
_.n(Ch,"ytd-labs-item-renderer",function(){if(QNd!==void 0)return QNd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return QNd=N},{mode:1});var mwD;var Em9;var Gir=function(){return _.k.apply(this,arguments)||this};
_.p(Gir,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Gir.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Gir.prototype,"data",void 0);_.W([_.en({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Gir);
_.n(Gir,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Em9!==void 0)return Em9;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Em9=N},{mode:1});var RoA;var Kh=function(){return _.k.apply(this,arguments)||this};
_.p(Kh,_.k);Kh.prototype.observeSuperchatChip=function(){if(this.data){var N={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.CO(this.hostElement,N)}};
Kh.prototype.colorFromDecimal=function(N){return _.TV(Number(N||0))};
Kh.prototype.observeSuperchatChip=Kh.prototype.observeSuperchatChip;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Kh.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Kh.prototype,"observeSuperchatChip",null);_.W([_.en({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Kh);
_.n(Kh,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(RoA!==void 0)return RoA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return RoA=N},{mode:1});var F0=function(){return _.k.apply(this,arguments)||this};
_.p(F0,_.k);F0.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"}}}};
_.cv.Object.defineProperties(F0.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Kc),_.Q("design:type",Object)],F0.prototype,"ytdDismissibleItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],F0.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],F0.prototype,"hideMessageBlock",null);
_.W([_.en({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],F0);
_.n(F0,"ytd-live-chat-history-entry-renderer",function(){if(mwD!==void 0)return mwD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return mwD=N},{mode:1});var vmR;var JDs=function(){return _.k.apply(this,arguments)||this};
_.p(JDs,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],JDs.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],JDs.prototype,"data",void 0);_.W([_.en({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],JDs);
_.n(JDs,"ytd-channel-options-renderer",function(){if(vmR!==void 0)return vmR;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return vmR=N},{mode:1});var omr;var dl=function(){return _.k.apply(this,arguments)||this};
_.p(dl,_.k);dl.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dl.prototype,"data",void 0);_.W([_.en({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],dl);
_.n(dl,"ytd-settings-email-item-renderer",function(){if(omr!==void 0)return omr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return omr=N},{mode:1});var sNl;var gl=function(){return _.k.apply(this,arguments)||this};
_.p(gl,_.k);gl.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"}}}};
gl.prototype.getExpansionIcon=function(N){return N?"COLLAPSE":"EXPAND"};
gl.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.cv.Object.defineProperties(gl.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gl.prototype,"data",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],gl.prototype,"expanded",void 0);_.W([_.a("expanded"),_.Q("design:type",String),_.Q("design:paramtypes",[])],gl.prototype,"emailListExpanded",null);
_.W([_.B2("#options"),_.Q("design:type",Object)],gl.prototype,"options",void 0);_.W([_.en({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],gl);
_.n(gl,"ytd-settings-email-list-renderer",function(){if(sNl!==void 0)return sNl;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return sNl=N},{mode:1});var NbN;var yw=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return N};
_.p(yw,_.k);yw.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"}}}};
yw.prototype.handleSignalActionSubmitForm=function(){var N,t=(N=this.formRenderer)==null?void 0:N.getForm();t&&this.data.serviceEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},t,{element:this.hostElement})})};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],yw.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yw.prototype,"data",void 0);_.W([_.B2("yt-form-renderer"),_.Q("design:type",Object)],yw.prototype,"formRenderer",void 0);
_.W([_.en({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],yw);
_.n(yw,"ytd-settings-gaia-link-renderer",function(){if(NbN!==void 0)return NbN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return NbN=N},{mode:1});var tRN;var BM=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return N};
_.p(BM,_.k);BM.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.RV5()&&this.set("data.hidden",!1)};
BM.prototype.onSwitchReady=function(){var N=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.h("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.GVq().then(function(t){t&&(Notification.permission==="default"?N.set("data.hidden",!1):Notification.permission==="granted"&&_.AS("NotificationsDisabled").then(function(O){O||_.sl(N.hostElement,"yt-toggle-settings-switch",[N.data.id,!O]);N.set("data.hidden",!1)}).catch(function(){}))})})};
BM.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}}}}};
BM.prototype.handleUpdateOptionsCommand=function(N){(N=_.M(N,_.cVf))&&this.data&&this.data.id===N.id&&(this.set("data.hidden",N.hidden),N.text!==void 0&&this.set("data.text",N.text),N.clearOptions&&this.set("data.options",[]))};
BM.prototype.onSwitchReady=BM.prototype.onSwitchReady;BM.prototype.dataChanged=BM.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],BM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],BM.prototype,"data",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BM.prototype,"dataChanged",null);_.W([_.dz("yt-settings-switch-ready"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BM.prototype,"onSwitchReady",null);_.W([_.en({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],BM);
_.n(BM,"ytd-settings-options-renderer",function(){if(tRN!==void 0)return tRN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tRN=N},{mode:1});var O1R;var cM=function(){return _.k.apply(this,arguments)||this};
_.p(cM,_.k);cM.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
cM.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
cM.prototype.onYtExpanderMoreTapped=cM.prototype.onYtExpanderMoreTapped;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],cM.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cM.prototype,"data",void 0);
_.W([_.dz("yt-expander-more-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cM.prototype,"onYtExpanderMoreTapped",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],cM);
_.n(cM,"ytd-product-details-description-renderer",function(){if(O1R!==void 0)return O1R;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return O1R=N},{mode:1});var H1d;var $U=function(){var N=_.k.apply(this,arguments)||this;N.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";N.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";N.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";N.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return N};
_.p($U,_.k);$U.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.cv.Object.defineProperties($U.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:(t=N.offerData)==null?void 0:t.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?void 0:N.purchaseButtonRenderers)!==void 0&&((t=this.data)==null?void 0:t.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.formattedFromMerchantText)&&(!((t=this.data)==null||!t.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],$U.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$U.prototype,"data",void 0);
_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.Q("design:type",Object)],$U.prototype,"shippingIcon",void 0);_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.Q("design:type",Object)],$U.prototype,"shippingAddressIcon",void 0);_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.Q("design:type",Object)],$U.prototype,"googleGuaranteeIcon",void 0);
_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.Q("design:type",Object)],$U.prototype,"returnPolicyIcon",void 0);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],$U.prototype,"showAdditionalFees",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],$U.prototype,"showMultiPurchaseButtons",null);
_.W([_.a("data","showMultiPurchaseButtons"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],$U.prototype,"showPurchaseData",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],$U);
_.n($U,"ytd-product-details-hero-offer-renderer",function(){if(H1d!==void 0)return H1d;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return H1d=N},{mode:1});var AIr;var Z1$;var jl=function(){return _.k.apply(this,arguments)||this};
_.p(jl,_.k);_.V=jl.prototype;_.V.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.V.onKeyDown=function(N){N=N.keyCode;N!==13&&N!==32||this.handleSelection()};
_.V.onMouseEnterImage=function(){var N;((N=this.data)==null?void 0:N.thumbnailDetails)!==void 0&&_.Np(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.V.onMouseLeaveImage=function(){_.Np(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.V.handleSelection=function(){this.data&&_.or(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.cv.Object.defineProperties(jl.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.isSelected)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jl.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jl.prototype,"isSelected",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],jl);
_.n(jl,"ytd-product-details-thumbnail-renderer",function(){if(Z1$!==void 0)return Z1$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Z1$=N},{mode:1});var i3=function(){var N=_.k.apply(this,arguments)||this;var t={};N.actionMap=(t["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",t["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",t);N.selectedThumbnailIndex=0;N.selectItem=function(O){O.target.onKeyDown(O)};
return N};
_.p(i3,_.k);_.V=i3.prototype;_.V.handlePreviewImageSelect=function(N){this.hoverThumbnail=N};
_.V.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.V.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.V.onThumbnailSelected=function(N,t){this.selectedThumbnailIndex=t};
_.V.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.V.updateOffset=function(){var N=_.O6(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-N));this.ytdHorizontalListBehavior.reposition_()};
_.cv.Object.defineProperties(i3.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null?0:N.imageRenderer){var t,O;return((t=this.data)==null?void 0:(O=t.imageRenderer)==null?void 0:O.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var N;if((N=this.data)==null?0:N.imageRenderer){var t;return(t=_.M(this.data.imageRenderer[this.selectedThumbnailIndex],Lqd))==null?void 0:t.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var N=this,t,O,H,A=(H=(t=this.data)==null?void 0:(O=t.imageRenderer)==null?void 0:O.map(function(Z,U){return{productDetailsThumbnailRenderer:Object.assign({},_.M(Z,Lqd),{index:U,isSelected:U===N.selectedThumbnailIndex})}}))!=null?H:[];
return Object.assign({},this.data,{imageRenderer:A})}}});
i3.prototype.updateOffset=i3.prototype.updateOffset;i3.prototype.dataChanged=i3.prototype.dataChanged;i3.prototype.onThumbnailSelected=i3.prototype.onThumbnailSelected;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.a2.YtdHorizontalListBehavior),_.Q("design:type",Object)],i3.prototype,"ytdHorizontalListBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],i3.prototype,"componentBehavior",void 0);_.W([_.Y([_.Wu.YtActionHandlerBehavior]),_.Q("design:type",Object)],i3.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],i3.prototype,"data",void 0);_.W([_.X({value:"$.items.children"}),_.Q("design:type",String)],i3.prototype,"itemsPath",void 0);_.W([_.X({value:3}),_.Q("design:type",Number)],i3.prototype,"initialCount",void 0);
_.W([_.B2("#items"),_.Q("design:type",Object)],i3.prototype,"items",void 0);_.W([_.X(),_.Q("design:type",Object)],i3.prototype,"selectedThumbnailIndex",void 0);_.W([_.X(),_.Q("design:type",Object)],i3.prototype,"hoverThumbnail",void 0);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],i3.prototype,"showThumbnails",null);
_.W([_.dz("ytd-product-details-thumbnail-renderer-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Number]),_.Q("design:returntype")],i3.prototype,"onThumbnailSelected",null);_.W([_.a("data","selectedThumbnailIndex","hoverThumbnail"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],i3.prototype,"thumbnailDetails",null);_.W([_.a("data","selectedThumbnailIndex"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],i3.prototype,"populatedData",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],i3.prototype,"dataChanged",null);_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],i3.prototype,"updateOffset",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],i3);
_.n(i3,"ytd-product-details-image-carousel-renderer",function(){if(AIr!==void 0)return AIr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return AIr=N},{mode:_.O4("kevlar_poly_si_batch_j079")?1:2});var VR$;var u3=function(){return _.k.apply(this,arguments)||this};
_.p(u3,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],u3.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],u3.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],u3);
_.n(u3,"ytd-product-details-offer-renderer",function(){if(VR$!==void 0)return VR$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return VR$=N},{mode:1});var Dnr;var Sl=function(){var N=_.k.apply(this,arguments)||this;N.isOffersHidden=!0;return N};
_.p(Sl,_.k);Sl.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var N,t=_.M((N=this.data)==null?void 0:N.viewOffersButton,_.g_);t&&this.ytRendererBehavior.logExplicitClick(t)};
Sl.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.cv.Object.defineProperties(Sl.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H;return(O=_.M((N=this.data)==null?void 0:(t=N.offers)==null?void 0:t[0],TcR))==null?void 0:(H=O.offerData)==null?void 0:H.vendorLogoUrl}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Sl.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Sl.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Sl.prototype,"isOffersHidden",void 0);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Sl.prototype,"firstOfferVendorLogoUrl",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Sl);
_.n(Sl,"ytd-product-details-offers-container-renderer",function(){if(Dnr!==void 0)return Dnr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Dnr=N},{mode:1});var UnV;var Cu1;var hs=function(){return _.k.apply(this,arguments)||this};
_.p(hs,_.k);hs.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
hs.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Np(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
hs.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Np(this,"ytd-product-details-variant-image-unselect")};
_.cv.Object.defineProperties(hs.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.data)==null?void 0:N.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((O=this.data)==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var N;if(((N=this.data)==null?void 0:N.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var N,t;return this.isUnavailable?(N=this.data)==null?void 0:N.variantOptionUnavailableAccessibilityLabel:(t=this.data)==null?void 0:t.variantOptionAccessibilityLabel}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],hs.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],hs.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hs.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],hs.prototype,"displayType",void 0);
_.W([_.a("displayType","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],hs.prototype,"isImageButton",null);_.W([_.a("displayType","data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],hs.prototype,"isPillButton",null);_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],hs.prototype,"isActive",null);
_.W([_.a("data"),_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],hs.prototype,"isUnavailable",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],hs.prototype,"thumbnailDetails",null);_.W([_.a("isUnavailable","data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],hs.prototype,"accessibilityLabel",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],hs);
_.n(hs,"ytd-product-details-variant-option-renderer",function(){if(Cu1!==void 0)return Cu1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Cu1=N},{mode:1});var K7m;var MJ=function(){var N=_.k.apply(this,arguments)||this;N.variantsExpanded=!1;N.hideShowMoreLessVariantButton=!0;N.initialized=!1;N.computeVariantsDebouncer=null;N.computeVariants=function(t){t=t===void 0?!1:t;N.variantsExpanded||N.showOptions()||!t||(N.variantsExpanded=!0);if(N.variantsExpanded){t=_.D(N.items.children);for(var O=t.next();!O.done;O=t.next())O.value.hidden=!1}N.initialized=!0};
return N};
_.p(MJ,_.k);_.V=MJ.prototype;_.V.ready=function(){var N=this;setTimeout(function(){N.computeVariants(!0)})};
_.V.showOptions=function(){for(var N=_.D(this.items.children),t=N.next();!t.done;t=N.next())t.value.hidden=!0;var O=this.container.getBoundingClientRect().width,H=0,A=N=0;t=!1;for(var Z=_.D(this.items.children),U=Z.next();!U.done;U=Z.next()){U=U.value;U.hidden=!1;var C=U.getBoundingClientRect().width;if(H+C<O)H+=C;else if(++A<2)H=C;else break;N+=1;U.hasAttribute("is-active")&&(t=!0)}for(O=N;O<this.items.children.length;O++)this.items.children[O].hidden=!0;this.hideShowMoreLessVariantButton=N===this.items.children.length;
return t};
_.V.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.M_(this.computeVariantsDebouncer,_.FI.after(100),this.computeVariants)};
_.V.onShowMoreLessVariantsButtonClick=function(){var N;(N=this.data)!=null&&N.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.V.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.cv.Object.defineProperties(MJ.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.data)==null?void 0:(t=N.variantOptionRenderers)==null?void 0:t.find(function(Z){return _.M(Z,YWd).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),H,A;
return(A=(H=_.M(O,YWd))==null?void 0:H.name)!=null?A:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
MJ.prototype.debouncedComputeVariants=MJ.prototype.debouncedComputeVariants;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],MJ.prototype,"componentBehavior",void 0);_.W([_.Y(_.JV),_.Q("design:type",Object)],MJ.prototype,"ironResizableBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],MJ.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],MJ.prototype,"variantsExpanded",void 0);_.W([_.X(),_.Q("design:type",Object)],MJ.prototype,"hideShowMoreLessVariantButton",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],MJ.prototype,"initialized",void 0);_.W([_.B2("#items"),_.Q("design:type",HTMLDivElement)],MJ.prototype,"items",void 0);_.W([_.B2("#container"),_.Q("design:type",HTMLDivElement)],MJ.prototype,"container",void 0);
_.W([_.B2("#more-variants-button"),_.Q("design:type",HTMLElement)],MJ.prototype,"moreVariantsButton",void 0);_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],MJ.prototype,"selectedOptionName",null);_.W([_.gz("data","variantsExpanded"),_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MJ.prototype,"debouncedComputeVariants",null);
_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],MJ.prototype,"displayType",null);_.W([_.a("displayType"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],MJ.prototype,"variantItemsClassname",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],MJ);
_.n(MJ,"ytd-product-details-variant-renderer",function(){if(K7m!==void 0)return K7m;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return K7m=N},{mode:1});var b3=function(){return _.k.apply(this,arguments)||this};
_.p(b3,_.k);
b3.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"}}}};
_.cv.Object.defineProperties(b3.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(t=_.M((N=this.data)==null?void 0:N.offersContainerRenderer,aC$))==null?void 0:t.offers;return O!==void 0&&(O==null?void 0:O.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((O=(N=this.data)==null?void 0:(t=N.variants)==null?void 0:t.map(function(H){var A,Z;H=(Z=(A=_.M(H,zos))==null?void 0:A.variantOptionRenderers)==null?void 0:Z.find(function(C){var F;return((F=_.M(C,YWd))==null?void 0:F.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var U;return(U=_.M(H,YWd))==null?void 0:U.name}).filter(function(H){return typeof H==="string"}))!=null?O:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var N,t,O,H=(t=_.M((N=this.data)==null?void 0:N.shoppingFlaggingRenderer,wW$))==null?void 0:(O=t.reportButton)==null?void 0:O.buttonRenderer;if(H)return{text:H.text,command:H.command,icon:{iconType:"FLAG"},accessibilityData:H.accessibilityData,trackingParams:H.trackingParams,loggingDirectives:H.loggingDirectives}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],b3.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],b3.prototype,"data",void 0);_.W([_.B2("#image-carousel-renderer"),_.Q("design:type",Object)],b3.prototype,"imageCarouselRenderer",void 0);
_.W([_.B2("#hero-offer-renderer"),_.Q("design:type",Object)],b3.prototype,"productDetailsHeroOfferRenderer",void 0);_.W([_.B2("#variants"),_.Q("design:type",Object)],b3.prototype,"productDetailsVariantRenderer",void 0);_.W([_.B2("#offers"),_.Q("design:type",Object)],b3.prototype,"productDetailsOffersContainerRenderer",void 0);_.W([_.B2("#description-renderer"),_.Q("design:type",Object)],b3.prototype,"productDetailsDescriptionRenderer",void 0);
_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],b3.prototype,"showPurchaseData",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],b3.prototype,"showHeroOfferRenderer",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],b3.prototype,"showBrandText",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],b3.prototype,"showOffers",null);
_.W([_.a("showOffers","showPurchaseData"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],b3.prototype,"showBuySeparator",null);_.W([_.a("showOffers","showPurchaseData"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],b3.prototype,"showBuyCard",null);_.W([_.a("data"),_.Q("design:type",String),_.Q("design:paramtypes",[])],b3.prototype,"selectedVariantsText",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],b3.prototype,"shoppingReportingButtonData",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],b3);
_.n(b3,"ytd-product-details-renderer",function(){if(UnV!==void 0)return UnV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return UnV=N},{mode:1});var F7m;var dnA;var g1u;var ph=function(){return _.k.apply(this,arguments)||this};
_.p(ph,_.k);ph.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.cv.Object.defineProperties(ph.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ph.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],ph.prototype,"formattedAmount",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ph.prototype,"ariaLabel",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data.style"),_.Q("design:type",String),_.Q("design:paramtypes",[])],ph.prototype,"vcBalanceWidgetStyle",null);_.W([_.wz({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],ph);
_.n(ph,"yt-vc-balance-renderer",function(){if(g1u===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;dnA===void 0&&(dnA=document.createElement("template"));var H=dnA;O.call(t,H.content.cloneNode(!0),N.content.firstChild);g1u=N}N=g1u;return N},{mode:2});_.pE("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Lh=function(){return _.k.apply(this,arguments)||this};
_.p(Lh,_.k);_.cv.Object.defineProperties(Lh.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:""}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Lh.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Lh.prototype,"data",void 0);_.W([_.X({selectorArgs:["data.vcBalanceEntityKey"],selector:function(N,t){return _.CM(N.entities,"vcBalanceEntity",t)}}),
_.Q("design:type",Object)],Lh.prototype,"vcBalanceEntity",void 0);_.W([_.a("vcBalanceEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Lh.prototype,"formattedAmount",null);_.W([_.a("vcBalanceEntity"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Lh.prototype,"vcBalanceAriaLabel",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Lh);
_.n(Lh,"ytd-vc-balance-renderer",function(){if(F7m!==void 0)return F7m;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return F7m=N},{mode:1});var yID;var z_=function(){var N=_.k.apply(this,arguments)||this;N.rotation=0;N.isReloading=!1;return N};
_.p(z_,_.k);z_.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
z_.prototype.reset=function(){this.hostElement.style.opacity=""};
z_.prototype.close=function(){var N=this;return _.K(function(t){if(t.nextAddress==1)return t.yield(N.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);N.hostElement.style.opacity="0";_.Ty(t)})};
z_.prototype.rotationChanged=z_.prototype.rotationChanged;_.W([_.X(),_.Q("design:type",Object)],z_.prototype,"rotation",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],z_.prototype,"isReloading",void 0);_.W([_.B2("#icon"),_.Q("design:type",HTMLElement)],z_.prototype,"icon",void 0);_.W([_.gz("rotation"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],z_.prototype,"rotationChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-refresh"})],z_);
_.n(z_,"ytd-refresh",function(){if(yID!==void 0)return yID;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yID=N},{mode:1});var BbV;var YU=function(){var N=_.k.apply(this,arguments)||this;N.useRaf=!_.h("web_use_raf_app_header_layout_killswitch");return N};
_.p(YU,_.k);YU.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"}}}};
YU.prototype.dataChanged=function(){if(this.data){var N=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var t=_.s4(this.data.banner.thumbnails,this.hostElement.clientWidth);t&&(t.indexOf("//")===0&&(t="https:"+t),this.hasBannerArt=!0,_.CO(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+t+")"}))}this.hasBannerArt!==N&&_.O6(this.hostElement).querySelector("#header").fire("iron-resize")}};
YU.prototype.updateSelectedFromBinding=function(N){this.selected=N.detail.value};
YU.prototype.dataChanged=YU.prototype.dataChanged;_.W([_.Y(XW$),_.Q("design:type",Object)],YU.prototype,"ytdTabbedHeaderBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.d4),_.Q("design:type",Object)],YU.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],YU.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],YU.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],YU.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],YU.prototype,"selected",void 0);_.W([_.X(),_.Q("design:type",Boolean)],YU.prototype,"active",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],YU.prototype,"hasBannerArt",void 0);_.W([_.X(),_.Q("design:type",Object)],YU.prototype,"useRaf",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],YU.prototype,"dataChanged",null);_.W([_.en({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],YU);
_.n(YU,"ytd-interactive-tabbed-header-renderer",function(){if(BbV!==void 0)return BbV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return BbV=N},{mode:1});var cI$;var az=function(){return _.k.apply(this,arguments)||this};
_.p(az,_.k);az.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
az.prototype.computeActionsAlignment=function(N){return(N==null?void 0:N.actionsAlignment)||""};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],az.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Q("design:type",String)],az.prototype,"actionsAlignment",void 0);
_.W([_.en({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],az);
_.n(az,"ytd-page-footer-renderer",function(){if(cI$!==void 0)return cI$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return cI$=N},{mode:1});var $nN;var jPd;var T_=function(){var N=_.k.apply(this,arguments)||this;N.isEditing=!1;N.useSlot=!1;N.isMultiline=!1;return N};
_.p(T_,_.k);_.V=T_.prototype;_.V.onKeydown=function(N){if(N.keyCode===13&&!this.isMultiline)this.onSave();else if(N.keyCode===27)this.onCancel()};
_.V.computeComponentStyle=function(N){return(N==null?0:N.style)?N.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.V.computeisMultiline=function(N){if(this.multilineOverride!==void 0)return this.multilineOverride;var t,O;return!!(N==null?0:(t=N.formField)==null?0:(O=t.textInputFormFieldRenderer)==null?0:O.isMultiline)};
_.V.computeTextDisplayed=function(N,t){if(N)return N;if(t)return t};
_.V.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.V.onSave=function(){if(this.textForm.validate()){this.textForm.save();var N=this.textForm.value;if(N)this.set("data.textDisplayed",_.E_(N));else{var t;((t=this.data)==null?0:t.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.uW("inline-form-changed",this.data));this.isEditing=!1}};
_.V.onCancel=function(){var N=_.Gv(this.data.textDisplayed);N===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(N);this.isEditing=!1};
T_.prototype.onKeydown=T_.prototype.onKeydown;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],T_.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],T_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],T_.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],T_.prototype,"isEditing",void 0);_.W([_.X(),_.Q("design:type",Object)],T_.prototype,"useSlot",void 0);_.W([_.X(),_.Q("design:type",Boolean)],T_.prototype,"multilineOverride",void 0);_.W([_.X(),_.Q("design:type",Boolean)],T_.prototype,"enableOverlayTheme",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Q("design:type",String)],T_.prototype,"componentStyle",void 0);
_.W([_.X({computed:"computeisMultiline(data)"}),_.Q("design:type",Object)],T_.prototype,"isMultiline",void 0);_.W([_.B2("#text-form"),_.Q("design:type",Object)],T_.prototype,"textForm",void 0);_.W([_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],T_.prototype,"onKeydown",null);_.W([_.en({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],T_);
_.n(T_,"ytd-inline-form-renderer",function(){if(jPd!==void 0)return jPd;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return jPd=N},{mode:1});var i1R;var wl=function(){var N=_.k.apply(this,arguments)||this;N.previousSelectValue=void 0;N.selectedItemMessage=void 0;return N};
_.p(wl,_.k);wl.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
wl.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var N,t,O,H,A=(N=this.data)==null?void 0:(t=N.dropdown)==null?void 0:(O=t.dropdownRenderer)==null?void 0:(H=O.entries)==null?void 0:H.map(function(C){return C.privacyDropdownItemRenderer});
N=_.D(A!=null?A:[]);for(t=N.next();!t.done;t=N.next())if((t=t.value)&&t.int32Value===this.selectedValue){this.selectedItemMessage=t.itemMessage;break}}else this.selectedItemMessage=void 0;var Z;(Z=this.onValueChanged)==null||Z.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var U;(U=this.data)!=null&&U.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
wl.prototype.onValueChangedForSelectedValue=function(N){this.selectedValue=N.detail.value};
wl.prototype.selectedValueChanged=wl.prototype.selectedValueChanged;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],wl.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],wl.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wl.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],wl.prototype,"theme",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Number)],wl.prototype,"selectedValue",void 0);_.W([_.X(),_.Q("design:type",Function)],wl.prototype,"onValueChanged",void 0);
_.W([_.ic("selectedValue"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wl.prototype,"selectedValueChanged",null);_.W([_.en({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],wl);
_.n(wl,"ytd-dropdown-form-field-renderer",function(){if(i1R!==void 0)return i1R;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return i1R=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var u$D;var el=function(){return _.k.apply(this,arguments)||this};
_.p(el,_.k);_.cv.Object.defineProperties(el.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var N=[],t=_.D(this.data||[]),O=t.next();!O.done;O=t.next())(O=_.M(O.value,eou))&&N.push(O);return N}}});
_.W([_.X(),_.Q("design:type",Array)],el.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],el.prototype,"byline",null);_.W([_.en({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],el);
_.n(el,"ytd-playlist-byline-renderer",function(){if(u$D!==void 0)return u$D;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return u$D=N},{mode:1});var S$V;var PM=function(){var N=_.k.apply(this,arguments)||this;N.rtlBullet=_.h("web_playlist_stats_rtl_bullet_icon_killswitch");N.modern=_.h("web_modern_buttons");N.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return N};
_.p(PM,_.k);_.V=PM.prototype;_.V.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.V.attached=function(){};
_.V.computeIsCustomThumbnail=function(N){return N?!!N.playlistCustomThumbnailRenderer:!1};
_.V.onYtNavigate=function(N,t){if(t&&t.actions&&t.actions.indexOf("shuffle")>-1){N=_.cY().resolve(_.$8);var O=t.tempData||{};O.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);t.tempData=O;N.isShuffleNextPlaylist=!0}};
_.V.onUpdatePlaylistAction=function(N){var t;N=(t=_.M(N,_.m_u))==null?void 0:t.updatedRenderer;if(t=_.M(N,pWr))this.data=t};
_.V.computeStyleType=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.V.computeThumbnailWidth=function(N){return N==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.V.computeHideThumbnailAria=function(N){if(N==null?0:N.thumbnailOverlays)for(var t=0;t<N.thumbnailOverlays.length;t++){var O=void 0;if((O=N.thumbnailOverlays[t])==null?0:O.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
PM.prototype.onYtNavigate=PM.prototype.onYtNavigate;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],PM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],PM.prototype,"ytComponentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],PM.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],PM.prototype,"rtlBullet",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Q("design:type",String)],PM.prototype,"styleType",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Q("design:type",Number)],PM.prototype,"thumbnailWidth",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],PM.prototype,"modern",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Q("design:type",Boolean)],PM.prototype,"isCustomThumbnail",void 0);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,Object]),_.Q("design:returntype")],PM.prototype,"onYtNavigate",null);_.W([_.en({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],PM);
_.n(PM,"ytd-playlist-sidebar-primary-info-renderer",function(){if(S$V!==void 0)return S$V;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return S$V=N},{mode:1});var hz$;var X0=function(){return _.k.apply(this,arguments)||this};
_.p(X0,_.k);X0.prototype.computeOwnerVisibility=function(N){return!(!N.videoOwner&&!N.button)};
X0.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],X0.prototype,"data",void 0);_.W([_.en({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],X0);
_.n(X0,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(hz$!==void 0)return hz$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return hz$=N},{mode:1});var MR8;var xU=function(){var N=_.k.apply(this,arguments)||this;N.expanded=!1;N.isCompact=!1;return N};
_.p(xU,_.k);_.V=xU.prototype;_.V.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.V.dataChanged=function(){this.data&&_.CU(_.O6(this.text),_.OmX(_.ZmB,_.Gv(this.data.text||null)))};
_.V.computeAutoScrollEnabled=function(N,t){return N&&!t};
_.V.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.V.toggleOnTap=function(){this.expanded=!this.expanded};
xU.prototype.expandedChanged=xU.prototype.expandedChanged;xU.prototype.dataChanged=xU.prototype.dataChanged;_.W([_.Y(_.jxA),_.Q("design:type",Object)],xU.prototype,"ytdAutoScrollBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],xU.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],xU.prototype,"expanded",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],xU.prototype,"isCompact",void 0);_.W([_.X({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Q("design:type",Boolean)],xU.prototype,"autoScrollEnabled",void 0);_.W([_.B2("#text"),_.Q("design:type",Object)],xU.prototype,"text",void 0);_.W([_.B2("#expander-icon"),_.Q("design:type",Object)],xU.prototype,"expanderIcon",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xU.prototype,"dataChanged",null);_.W([_.gz("expanded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],xU.prototype,"expandedChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],xU);
_.n(xU,"ytd-channel-legal-info-renderer",function(){if(MR8!==void 0)return MR8;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MR8=N},{mode:1});var b1N;var pA8=_.CJ("DOWNLOAD",{},"Download"),L7R=_.CJ("DOWNLOADING",{},"Downloading"),zzR=_.CJ("DOWNLOADED",{},"Downloaded"),kU=function(){var N=_.k.apply(this,arguments)||this;N.downloadProgress=0;N.isDownloadComplete=!1;N.transferState="TRANSFER_STATE_UNKNOWN";return N};
_.p(kU,_.k);_.V=kU.prototype;_.V.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.V.dataChanged=function(){var N;(N=this.data)!=null&&N.tooltip||(N=_.xj(_.v5().getState(),this.playlistId),this.updateButtonState(N))};
_.V.computePlaylistId=function(N){return N};
_.V.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.V.updateButtonState=function(N){if(this.data&&(this.data.tooltip!==L7R||!_.i5(N))){this.isDownloadComplete=!1;switch(N){case "TRANSFER_STATE_UNKNOWN":N=pA8;var t="OFFLINE_DOWNLOAD";var O="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":N=zzR;t="OFFLINE_PIN";O="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":N=L7R;t="OFFLINE_DOWNLOADING_ZERO";O="ACTION_REMOVE_WITH_PROMPT";
break;default:N=pA8,t="OFFLINE_DOWNLOAD",O="ACTION_ADD"}var H=Object.assign({},this.data);H.tooltip=N;H.accessibilityData={accessibilityData:{label:N}};H.icon={iconType:t};H.size="SIZE_DEFAULT";_.M(H.command,_.Bz)&&(_.M(H.command,_.Bz).action=O);this.set("data",H)}};
_.V.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var N="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?N="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?N="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?N="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?N="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?N="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(N="OFFLINE_PIN",this.isDownloadComplete=!0);var t;N!==((t=this.data.icon)==null?void 0:t.iconType)&&(t=Object.assign({},this.data),t.tooltip=L7R,t.accessibilityData={accessibilityData:{label:L7R}},t.icon={iconType:N},_.M(t.command,_.Bz)&&(_.M(t.command,_.Bz).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",t))}};
kU.prototype.updateProgress=kU.prototype.updateProgress;kU.prototype.onTransferStateChanged=kU.prototype.onTransferStateChanged;kU.prototype.dataChanged=kU.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],kU.prototype,"ytdReduxBehavior",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],kU.prototype,"forceIconButton",void 0);
_.W([_.X({value:!0}),_.Q("design:type",Boolean)],kU.prototype,"forceIconOnly",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],kU.prototype,"overrides",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],kU.prototype,"buttonTooltipPosition",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],kU.prototype,"styleActionButton",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],kU.prototype,"disableTextTransform",void 0);
_.W([_.X({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Q("design:type",String)],kU.prototype,"playlistId",void 0);_.W([_.X(),_.Q("design:type",Object)],kU.prototype,"data",void 0);_.W([_.X({selector:_.fTN,selectorArgs:["playlistId"]}),_.Q("design:type",Object)],kU.prototype,"downloadProgress",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],kU.prototype,"isDownloadComplete",void 0);
_.W([_.X({selector:_.xj,selectorArgs:["playlistId"]}),_.Q("design:type",String)],kU.prototype,"transferState",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],kU.prototype,"showTooltips",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],kU.prototype,"sendCommandWhenDisabled",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],kU.prototype,"disabled",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kU.prototype,"dataChanged",null);_.W([_.ic("transferState"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kU.prototype,"onTransferStateChanged",null);_.W([_.ic("downloadProgress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],kU.prototype,"updateProgress",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],kU);
_.n(kU,"ytd-download-playlist-button-renderer",function(){if(b1N!==void 0)return b1N;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return b1N=N},{mode:1});var Y$d;_.o_(_.zCp,"thumbnail-overlay-button-view-model",{props:{data:_.$O,lockupExperiments:_.$O}});var qJ=function(){var N=_.k.apply(this,arguments)||this;N.isSquare=!1;N.isVertical=!1;return N};
_.p(qJ,_.k);qJ.prototype.computeIsSquare=function(N){return N!=null&&N.thumbnail?VuN(N.thumbnail)==="SQUARE":!1};
qJ.prototype.computeIsVertical=function(N){return N!=null&&N.thumbnail?VuN(N.thumbnail)==="VERTICAL":!1};
qJ.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],qJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Q("design:type",Object)],qJ.prototype,"isSquare",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Q("design:type",Object)],qJ.prototype,"isVertical",void 0);
_.W([_.X(),_.Q("design:type",Object)],qJ.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],qJ);
_.n(qJ,"ytd-hero-playlist-thumbnail-renderer",function(){if(Y$d!==void 0)return Y$d;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Y$d=N},{mode:1});var fh=function(){var N=_.k.apply(this,arguments)||this;N.isDarkTheme=!1;N.isUltraWide=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return N};
_.p(fh,_.k);_.V=fh.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.cY();var N;(N=_.cY().resolve(_.BY(_.At)))!=null&&(N.headerElement=this.hostElement)};
_.V.detached=function(){var N;(N=_.cY().resolve(_.BY(_.At)))!=null&&(N.headerElement=void 0)};
_.V.onUpdateHeader=function(N){(N=N.detail)&&this.set("data",N)};
_.V.computeTextDisplayed=function(N){if(N)return N.textDisplayed?N.textDisplayed:N.placeholder};
_.V.gradientColorToLinearGradientStop=function(N){var t=this.isDarkTheme?N.darkThemeColor:N.lightThemeColor;return t?_.TV(t)+" "+((N==null?void 0:N.startLocation)||0)*100+"%":"transparent"};
_.V.onWindowResize=function(){var N;((N=this.data)==null?0:N.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.V.onIronResize=function(N){this.isUltraWide=!N.detail.value};
_.V.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.V.onUpdatePlaylistName=function(N){var t=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},N.detail.value));_.yB(this,function(){var O;(O=t.editableTitle)==null||O.resize()})};
_.V.onUpdatePlaylistDescription=function(N){var t=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},N.detail.value));_.yB(this,function(){var O;(O=t.editableDescriptionInlineExpander)==null||O.resize()})};
_.V.getCinematicData=function(N){return _.M(N==null?void 0:N.cinematicContainer,_.ts)};
_.cv.Object.defineProperties(fh.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.getCinematicData(this.data))==null?void 0:N.config;return(N=this.isDarkTheme?t==null?void 0:t.darkThemeBackgroundColor:t==null?void 0:t.lightThemeBackgroundColor)?"background-color:"+_.aI(N)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var N;return _.M((N=this.data)==null?void 0:N.descriptionForm,bmV)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var N=this,t,O,H;return"background:linear-gradient(to bottom, "+(((H=(t=this.getCinematicData(this.data))==null?void 0:(O=t.gradientColorConfig)==null?void 0:O.map(function(A){return N.gradientColorToLinearGradientStop(A)}))==null?void 0:H.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var N;return _.Gv((N=this.data)==null?void 0:N.descriptionTapText)}}});
fh.prototype.onUpdateHeader=fh.prototype.onUpdateHeader;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],fh.prototype,"actionHandlerBehavior",void 0);_.W([_.B2("#description-inline-expander"),_.Q("design:type",Object)],fh.prototype,"descriptionInlineExpander",void 0);
_.W([_.B2("#editable-description-inline-expander"),_.Q("design:type",Object)],fh.prototype,"editableDescriptionInlineExpander",void 0);_.W([_.X(),_.Q("design:type",Object)],fh.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],fh.prototype,"isUltraWide",void 0);_.W([_.B2("#editable-title-display"),_.Q("design:type",Object)],fh.prototype,"editableTitle",void 0);_.W([_.a("isUltraWide"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fh.prototype,"maxDescriptionLines",null);
_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fh.prototype,"noCinematicData",null);_.W([_.dz("yt-new-playlist-header"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fh.prototype,"onUpdateHeader",null);_.W([_.a("data","isDarkTheme"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fh.prototype,"backgroundStyle",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fh.prototype,"descriptionFormData",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fh.prototype,"getDropdownTheme",null);_.W([_.a("data","isDarkTheme"),_.Q("design:type",String),_.Q("design:paramtypes",[])],fh.prototype,"gradientStyle",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],fh.prototype,"descriptionTapText",null);
_.W([_.en({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],fh);
_.n(fh,"ytd-playlist-header-renderer",function(){if($nN!==void 0)return $nN;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $nN=N},{mode:_.O4("kevlar_poly_si_batch_j078")?1:2});var al9;var Tbm;var nh=function(){return _.k.apply(this,arguments)||this};
_.p(nh,_.k);nh.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nh.prototype,"data",void 0);_.W([_.en({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],nh);
_.n(nh,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Tbm!==void 0)return Tbm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Tbm=N},{mode:1});var WM=function(){return _.k.apply(this,arguments)||this};
_.p(WM,_.k);
WM.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}}}}};
WM.prototype.computeUsePremiumShowStyle=function(N){if(!N||!N.items)return!1;for(var t=0;t<N.items.length;t++)if(_.M(N.items[t],pWr)){var O=void 0;return((O=_.M(N.items[t],pWr))==null?void 0:O.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],WM.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Q("design:type",Boolean)],WM.prototype,"usePremiumShowStyle",void 0);
_.W([_.en({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],WM);
_.n(WM,"ytd-playlist-sidebar-renderer",function(){if(al9!==void 0)return al9;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return al9=N},{mode:1});var wAm;var ez1;var Pud=function(N,t,O,H,A,Z,U,C){this.minWidth=N;this.minHeight=t;this.recommendedWidth=O;this.recommendedHeight=H;this.JSC$22765_maxFileSize=A;this.title=Z;this.bannerGalleryTitle=U;this.channelId=C;this.picker_=null;N=_.AXQ("yt-banner");t=N.addView;O=(new yD8("youtubebanner")).addUploadMetadata("silo_id","19");O.opts.ytMaxFileSize=this.JSC$22765_maxFileSize;H=this.recommendedHeight;O.opts.ytRecWidth=this.recommendedWidth;O.opts.ytRecHeight=H;t.call(N,O);N.addView(new _.qK);t=N.addView;O=new _.qK;
O.opts.type="ytbanner";t.call(N,O.JSC$10229_setLabel(this.bannerGalleryTitle));t=N.setTitle(this.title).setSize(1E3);t.urlParamMap_.set("thumbs","orig");O=this.minWidth;H=this.minHeight;if(isNaN(O)||isNaN(H))throw Error("gb`"+O+"`"+H);t.urlParamMap_.set("minSize",O+"x"+H);t.urlParamMap_.set("cropMode","ytcb");this.builder_=N};
Pud.prototype.open=function(){var N=this;return new _.TW(function(t,O){_.ryQ(N.builder_,function(H){H.action=="picked"?t(H):H.action=="cancel"&&O(Error("So"))});
N.picker_&&N.picker_.dispose();N.picker_=N.builder_.build();N.picker_.setVisible(!0)})};
Pud.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var XAr=function(N){this.channelId=N};
XAr.prototype.upload=function(N){var t="";N.viewToken&&(t=N.viewToken[2].type);var O=N.docs[0];N=O.crop;t={channel_id:this.channelId,fife_url:O.thumbnails[0].url,photo_id:O.id,is_gallery_image:t=="ytbanner"};N&&(t.crop_top=N.top,t.crop_right=N.right,t.crop_bottom=N.bottom,t.crop_left=N.left);return _.BoN("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:t})};var rl=function(){var N=_.k.apply(this,arguments)||this;N.ariaLabel=null;return N};
_.p(rl,_.k);_.V=rl.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.V.detached=function(){this.picker&&this.picker.dispose()};
_.V.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.V.computeAriaLabel=function(N){return N};
_.V.onTap=function(){var N=this,t;if((t=this.data)==null||!t.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Pud(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 O;(O=this.picker)==null||O.open().then(function(H){N.handleBannerPicked(H)},function(){})}};
_.V.handleBannerPicked=function(N){var t=this;this.uploader||(this.uploader=new XAr(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(N).then(function(O){t.handleBannerUploadSucceeded(O)},function(O){t.handleBannerUploadFailed(O)})};
_.V.handleBannerUploadSucceeded=function(N){N&&N.errors?this.handleBannerUploadFailed(N):(_.or(this.hostElement,"yt-banner-updated",N),this.message=null)};
_.V.handleBannerUploadFailed=function(N){this.message=N&&N.errors&&N.errors.length?N.errors[0]:null};
rl.prototype.dataChanged=rl.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],rl.prototype,"componentBehavior",void 0);_.W([_.Y(_.sb),_.Q("design:type",Object)],rl.prototype,"ironButtonState",void 0);_.W([_.X(),_.Q("design:type",Object)],rl.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Q("design:type",Object)],rl.prototype,"ariaLabel",void 0);
_.W([_.X(),_.Q("design:type",Object)],rl.prototype,"message",void 0);_.W([_.X(),_.Q("design:type",Object)],rl.prototype,"picker",void 0);_.W([_.X(),_.Q("design:type",Object)],rl.prototype,"uploader",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],rl.prototype,"dataChanged",null);_.W([_.en({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],rl);
_.n(rl,"ytd-channel-banner-editor-renderer",function(){if(ez1!==void 0)return ez1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return ez1=N},{mode:1});var xn$;var ku9=_.mp(["#"]),Iz=function(){return _.k.apply(this,arguments)||this};
_.p(Iz,_.k);Iz.prototype.computeHrefWithDefault=function(N){return this.ytComponentBehavior.computeHref_(N,!0)||_.Uoz(ku9)};
Iz.prototype.dataChanged=function(){var N=this.data;N&&N.targetId&&_.kJy(_.Q6(),N.targetId,this.moreIcon)};
Iz.prototype.dataChanged=Iz.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Iz.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Iz.prototype,"data",void 0);_.W([_.B2("#more-icon"),_.Q("design:type",Object)],Iz.prototype,"moreIcon",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Iz.prototype,"dataChanged",null);
_.W([_.en({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Iz);
_.n(Iz,"ytd-channel-tagline-renderer",function(){if(xn$!==void 0)return xn$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return xn$=N},{mode:1});var q$w;var l3=function(){return _.k.apply(this,arguments)||this};
_.p(l3,_.k);_.V=l3.prototype;_.V.ready=function(){var N=this;_.O6(this.hostElement).querySelector("#form").addEventListener("submit",function(t){N.onSubmit(t)})};
_.V.onDataChanged=function(){var N;((N=this.data)==null?0:N.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.V.onIconButtonKeydown=function(N){N.keyCode===13&&this.iconButton.click()};
_.V.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.V.openOnClickHandler=function(){this.input.focus()};
_.V.onSubmit=function(N){N.preventDefault();return!1};
_.V.submitOnEnterKeyUp=function(N){var t;if(N.keyCode===13&&((t=this.data)==null?0:t.expandedText)){N=this.data.endpoint;t=_.WW.unsafeClone(N);var O;((O=_.M(t==null?void 0:t.commandMetadata,_.Da))==null?0:O.url)?(_.M(t.commandMetadata,_.Da).url=_.ty(_.M(t.commandMetadata,_.Da).url,"query",this.data.expandedText),_.M(t,_.yE)&&(_.M(t,_.yE).query=this.data.expandedText),_.or(this.hostElement,"yt-navigate",{endpoint:t,tempData:{disableCache:!0}})):(O=new _.fF("Error: Trying to navigate to an endpoint without url",
N),_.R0(O))}};
_.V.updateDataExpandedTextFromBinding=function(N){this.set("data.expandedText",N.detail.value)};
_.cv.Object.defineProperties(l3.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
l3.prototype.onDataChanged=l3.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.HOi),_.Q("design:type",Object)],l3.prototype,"ytdExpandableInputBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],l3.prototype,"data",void 0);_.W([_.B2("#input"),_.Q("design:type",Object)],l3.prototype,"input",void 0);_.W([_.B2("#icon-button"),_.Q("design:type",HTMLElement)],l3.prototype,"iconButton",void 0);
_.W([_.X(),_.Q("design:type",String),_.Q("design:paramtypes",[])],l3.prototype,"searchIcon",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],l3.prototype,"onDataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],l3);
var Dws=_.td()(l3,"ytd-expandable-tab-renderer",function(){if(q$w===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);q$w=N}N=q$w;return N},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var fl$;var Qw=function(){var N=_.k.apply(this,arguments)||this;N.avatarSize=80;N.ariaLabel=_.CJ("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return N};
_.p(Qw,_.k);Qw.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Qw.prototype.computeHref=function(N){var t;return((t=_.M(N,_.Z3))==null?0:t.url)?this.componentBehavior.computeHref_(N):null};
Qw.prototype.onTap=function(){var N,t;(N=this.data)==null||!N.editAvatarServiceEndpoint||((t=_.M(this.data.editAvatarServiceEndpoint,_.Z3))==null?0:t.url)||_.cY().resolve(_.jo).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.W([_.Y(_.sb),_.Q("design:type",Object)],Qw.prototype,"ironButtonState",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Qw.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Qw.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Qw.prototype,"avatarSize",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],Qw.prototype,"ariaLabel",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Qw);
_.n(Qw,"ytd-channel-avatar-editor",function(){if(fl$!==void 0)return fl$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return fl$=N},{mode:1});var n1l=_.q(function(N){var t=N.data;var O=N.noPadding;var H=N.enableBanner;var A=N.cinematicContainerTopbarOffset;var Z=N.allowCinematicContainerOverflow;var U=N.displayAsSidebar;N=N.className;_.rp(function(){t().tagManagerId&&(_.J7(t().tagManagerId,_.Ro("GL")),gmw(t().tagManagerId))},"vUc8md");
var C=_.cz(Cws,function(){return t().pageHeaderEntityKey});
return _.d("yt-page-header-renderer",{class:_.V7("pageHeaderRendererHost",N)},_.d(_.iF,{data:function(){var F;return((F=C())==null?0:F.header)?C().header:(U==null?0:U())&&t().sidebarContent?t().sidebarContent:t().content}},{pageHeaderViewModel:function(F){return _.d(_.dzm,{data:F.data,
noPadding:O,enableBanner:H,cinematicContainerTopbarOffset:A,allowCinematicContainerOverflow:Z,displayAsSidebar:function(){return(U==null?void 0:U())&&t().enableSidebarView}})}}))},"qn");
n1l.idomCompat=!0;_.o_(n1l,"yt-page-header-renderer",{props:{data:_.$O,noPadding:_.$O,enableBanner:_.$O,cinematicContainerTopbarOffset:_.$O,allowCinematicContainerOverflow:_.$O,displayAsSidebar:_.$O,className:_.$O}});_.o_(_.Sw,"yt-image-banner-view-model",{props:{data:_.$O,isPositionRelative:_.$O}});_.o_(_.w4i,"yt-tab-group-shape",{props:{shape:_.$O}});var W7s=_.Wz.persistentPanelVisibleSelector,mf=function(){var N=_.k.apply(this,arguments)||this;N.expandableCustomTabRenderable=function(t){return UwN(t,function(){return void N.onSearchNavigate()})};
N.isRichGrid=!1;N.isConstrainedList=!1;N.richGridMiniMode=!1;N.richGridStyle="RICH_GRID_STYLE_UNKNOWN";N.isRichGridShorts=!1;N.responsiveSizing="COMPACT";N.disableGridStateAware=!1;N.useRaf=!_.h("web_use_raf_app_header_layout_killswitch");N.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return N};
_.p(mf,_.k);_.V=mf.prototype;_.V.computeHeaderDisabled=function(N,t){return t||!N||this.tabsHidden};
_.V.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.V.computeIsRichGridShorts=function(N){return N==="RICH_GRID_STYLE_SHORTS_GRID"||N==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.V.computeImageBannerViewModel=function(){var N,t;return _.M((t=_.M((N=this.data)==null?void 0:N.content,_.hMy))==null?void 0:t.banner,_.B4E)};
_.V.computeHasCinematicContainer=function(){var N,t;return!((t=_.M((N=this.data)==null?void 0:N.content,_.hMy))==null||!t.background)};
_.V.handleHeaderResize=function(){var N=_.O6(this.hostElement).querySelector("#header");N&&_.or(N,"iron-resize")};
_.V.handleInsertTabCommand=function(N){var t=_.M(N,Pw9);t&&(t.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(O){return O.tabRenderer&&O.tabRenderer.tabIdentifier===t.tabIdentifier})||this.splice("tabs",t.tabIndex||-1,0,t.tab))};
_.V.handleRefreshChannelTabAction=function(N){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===N&&_.or(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.V.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.V.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.CO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.V.observerRichGridSlimItemsPerRow=function(){_.CO(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.V.updateCssVars=function(){this.richGridItemsPerRow&&_.CO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.uP("rich_grid_max_item_width",500))+16)-16+"px"})};
_.V.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.CO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.V.onDataChanged=function(){this.handleHeaderResize()};
_.V.onWindowResize=function(){this.handleHeaderResize()};
_.V.onFocusedChanged=function(N){(N=_.E3(N))&&N.is==="tp-yt-paper-tab"&&N.hasRipple()&&(N.getRipple().holdDown=!N.pointerDown&&N.focused)};
_.V.updateSelectedFromBinding=function(N){this.ytdTabbedHeaderBehavior.selected=N.detail.value};
_.V.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.cv.Object.defineProperties(mf.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Fqr(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.imageBannerViewModel)==null?void 0:N.style)==="IMAGE_BANNER_STYLE_INSET"}}});
mf.prototype.onDataChanged=mf.prototype.onDataChanged;mf.prototype.updateCssVarsForResponsiveGrid=mf.prototype.updateCssVarsForResponsiveGrid;mf.prototype.updateCssVars=mf.prototype.updateCssVars;mf.prototype.observerRichGridSlimItemsPerRow=mf.prototype.observerRichGridSlimItemsPerRow;mf.prototype.observerRichGridItemsPerRow=mf.prototype.observerRichGridItemsPerRow;mf.prototype.persistentPanelVisibleChanged=mf.prototype.persistentPanelVisibleChanged;
_.W([_.Y(_.d4),_.Q("design:type",Object)],mf.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Y(XW$),_.Q("design:type",Object)],mf.prototype,"ytdTabbedHeaderBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],mf.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],mf.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],mf.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],mf.prototype,"ytdReduxBehavior",void 0);_.W([_.B2("#tabs"),_.Q("design:type",Object)],mf.prototype,"tabsElement",void 0);_.W([_.X(),_.Q("design:type",Array)],mf.prototype,"tabs",void 0);_.W([_.X(),_.Q("design:type",Object)],mf.prototype,"expandableCustomTabRenderable",void 0);
_.W([_.a("tabs.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mf.prototype,"tabGroupShape",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],mf.prototype,"isRichGrid",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],mf.prototype,"isConstrainedList",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Object)],mf.prototype,"richGridMiniMode",void 0);_.W([_.X({selector:function(N){return N.ui.richGridStyle}}),
_.Q("design:type",Object)],mf.prototype,"richGridStyle",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Q("design:type",Object)],mf.prototype,"isRichGridShorts",void 0);_.W([_.X({selector:_.Tv}),_.Q("design:type",Number)],mf.prototype,"richGridItemsPerRow",void 0);_.W([_.X({selector:function(N){return N.ui.richGridContainerWidth}}),
_.Q("design:type",Number)],mf.prototype,"richGridContainerWidth",void 0);_.W([_.X({selector:_.bDl}),_.Q("design:type",Number)],mf.prototype,"richGridSlimItemsPerRow",void 0);_.W([_.X(),_.Q("design:type",Object)],mf.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],mf.prototype,"responsiveSizing",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],mf.prototype,"disableGridStateAware",void 0);
_.W([_.X({computed:"computeImageBannerViewModel(data)"}),_.Q("design:type",Object)],mf.prototype,"imageBannerViewModel",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Q("design:type",Boolean)],mf.prototype,"hasCinematicContainer",void 0);_.W([_.X({selector:_.Imq,reflectToAttribute:!0}),_.Q("design:type",Boolean)],mf.prototype,"guideIsVisibleButNotPersistent",void 0);
_.W([_.X({selector:W7s}),_.Q("design:type",Boolean)],mf.prototype,"persistentPanelVisible",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("imageBannerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mf.prototype,"hasBanner",null);_.W([_.X({reflectToAttribute:!0}),_.a("imageBannerViewModel"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mf.prototype,"hasInsetBanner",null);_.W([_.X(),_.Q("design:type",Object)],mf.prototype,"useRaf",void 0);
_.W([_.X({computed:"computeTabsHidden(tabs)",value:!0}),_.Q("design:type",Boolean)],mf.prototype,"tabsHidden",void 0);_.W([_.gz("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mf.prototype,"persistentPanelVisibleChanged",null);_.W([_.gz("richGridItemsPerRow","isRichGrid"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mf.prototype,"observerRichGridItemsPerRow",null);
_.W([_.gz("richGridSlimItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mf.prototype,"observerRichGridSlimItemsPerRow",null);_.W([_.gz("richGridItemsPerRow","richGridMiniMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mf.prototype,"updateCssVars",null);
_.W([_.gz("richGridContainerWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mf.prototype,"updateCssVarsForResponsiveGrid",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mf.prototype,"onDataChanged",null);_.W([_.en({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],mf);
_.n(mf,"ytd-tabbed-page-header",function(){if(wAm!==void 0)return wAm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout use-raf="[[useRaf]]" class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return wAm=N},{mode:1});var rIu;var Ec=function(){return _.k.apply(this,arguments)||this};
_.p(Ec,_.k);Ec.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.CO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.cv.Object.defineProperties(Ec.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var N,t;return this.componentBehavior.computeIcon_(((t=_.M((N=this.data)==null?void 0:N.badge,_.YbX))==null?void 0:t.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=_.M((N=this.data)==null?void 0:N.badge,_.YbX))==null?void 0:t.label}}});
Ec.prototype.observerRichGridItemsPerRow=Ec.prototype.observerRichGridItemsPerRow;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Ec.prototype,"componentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Ec.prototype,"ytdReduxBehavior",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.aJ}),_.Q("design:type",Boolean)],Ec.prototype,"richGridMiniMode",void 0);
_.W([_.X({selector:_.Tv}),_.Q("design:type",Number)],Ec.prototype,"richGridItemsPerRow",void 0);_.W([_.X(),_.Q("design:type",Object)],Ec.prototype,"data",void 0);_.W([_.gz("richGridItemsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ec.prototype,"observerRichGridItemsPerRow",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ec.prototype,"badgeIconName",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ec.prototype,"badgeLabel",null);_.W([_.en({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Ec);
_.n(Ec,"ytd-member-hub-profile-renderer",function(){if(rIu!==void 0)return rIu;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rIu=N},{mode:1});var Il$;var G_=function(){return _.k.apply(this,arguments)||this};
_.p(G_,_.k);G_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],G_.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],G_.prototype,"data",void 0);_.W([_.en({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],G_);
_.n(G_,"ytd-settings-sidebar-renderer",function(){if(Il$!==void 0)return Il$;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Il$=N},{mode:1});var llD;var Rz=function(){var N=_.k.apply(this,arguments)||this;N.expandableCustomTabRenderable=function(t){return UwN(t,function(){return void N.onSearchNavigate()})};
return N};
_.p(Rz,_.k);Rz.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Rz.prototype.onSearchNavigate=function(){this.selected=void 0};
Rz.prototype.onTabsChange=function(){var N,t=(N=this.tabs)==null?void 0:N.findIndex(function(O){var H;return O==null?void 0:(H=O.tabRenderer)==null?void 0:H.selected});
t!==void 0&&(this.selected=t)};
Rz.prototype.onTabsActive=function(N){if(this.tabs!==void 0){var t,O;(N=(t=this.tabs[N.detail.selected])==null?void 0:(O=t.tabRenderer)==null?void 0:O.endpoint)&&_.or(this.hostElement,"yt-navigate",{endpoint:N})}};
_.cv.Object.defineProperties(Rz.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Fqr(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Rz.prototype.onTabsChange=Rz.prototype.onTabsChange;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.d4),_.Q("design:type",Object)],Rz.prototype,"ytdGridStateAwareBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],Rz.prototype,"ytdGuideStateAwareBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Rz.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Array)],Rz.prototype,"tabs",void 0);_.W([_.X(),_.Q("design:type",Number)],Rz.prototype,"selected",void 0);_.W([_.a("tabs.*"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Rz.prototype,"tabGroupShape",null);_.W([_.X(),_.Q("design:type",Object)],Rz.prototype,"expandableCustomTabRenderable",void 0);
_.W([_.a("tabs"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Rz.prototype,"tabsEnabled",null);_.W([_.ic("tabs"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Rz.prototype,"onTabsChange",null);_.W([_.en({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Rz);
_.n(Rz,"ytd-topic-channel-details-renderer",function(){if(llD!==void 0)return llD;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return llD=N},{mode:1});var QPA;var vM=function(){var N=_.k.apply(this,arguments)||this;N.disableGridStateAware=!1;return N};
_.p(vM,_.k);vM.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]]"}}}}}};
vM.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
vM.prototype.updateCssVars=function(){_.CO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.uP("rich_grid_max_item_width",500))+16)-16+"px"})};
vM.prototype.updateCssVars=vM.prototype.updateCssVars;vM.prototype.activeChanged=vM.prototype.activeChanged;_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],vM.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],vM.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vM.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Array)],vM.prototype,"tabs",void 0);_.W([_.X(),_.Q("design:type",Boolean)],vM.prototype,"active",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vM.prototype,"disableGridStateAware",void 0);
_.W([_.X({selector:_.Tv}),_.Q("design:type",Number)],vM.prototype,"richGridItemsPerRow",void 0);_.W([_.X({selector:_.aJ}),_.Q("design:type",Boolean)],vM.prototype,"richGridMiniMode",void 0);_.W([_.B2("ytd-carousel-item-renderer"),_.Q("design:type",Object)],vM.prototype,"carousel",void 0);_.W([_.gz("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vM.prototype,"activeChanged",null);
_.W([_.gz("richGridItemsPerRow","richGridMiniMode"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vM.prototype,"updateCssVars",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],vM);
_.n(vM,"ytd-carousel-header-renderer",function(){if(QPA!==void 0)return QPA;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return QPA=N},{mode:1});var mnV;var E1$=_.mp(["https://www.google-analytics.com/analytics.js"]),Js=function(){var N=_.k.apply(this,arguments)||this;N.scriptAnalyticsAdded=!1;return N};
_.p(Js,_.k);Js.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var N,t=(N=this.data)==null?void 0:N.tagManagerId;t&&(_.J7(t,_.Ro("GL")),gmw(t))};
Js.prototype.sendGoogleAnalyticsPageview=function(N){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var O=_.E1.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(O)};
var t=window.ga;t("set","page",window.location.pathname);t.l=+new Date;t("set","forceSSL",!0);t("create",N,"'auto'");t("send","pageview")};
Js.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var N=_.Tu("SCRIPT");N.name="ga-analytics";var t=_.ju(E1$);_.UG(N,t);N.async=!0;_.O6(this.hostElement).appendChild(N)};
Js.prototype.dataChanged=Js.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],Js.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Js.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Js);
_.n(Js,"ytd-channel-metadata-renderer",function(){if(mnV!==void 0)return mnV;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return mnV=N},{mode:1});var Gul;var Rz1;var oz=function(){var N=_.k.apply(this,arguments)||this;N.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);N.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);N.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return N};
_.p(oz,_.k);_.V=oz.prototype;_.V.attached=function(){this.requestElementsPerRow()};
_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.V.onUpdateElementsPerRowAction=function(N){N&&this.elementsPerRow!==N&&(this.elementsPerRow=N)};
_.V.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.V.computeAlertStyle_=function(N){return N};
_.V.observerElementsPerRow=function(){this.elementsPerRow&&_.CO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.V.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.V.requestElementsPerRow=function(){_.or(this.hostElement,"yt-request-elements-per-row")};
oz.prototype.onIsVisibleChanged_=oz.prototype.onIsVisibleChanged_;oz.prototype.observerElementsPerRow=oz.prototype.observerElementsPerRow;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],oz.prototype,"actionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],oz.prototype,"data",void 0);_.W([_.X({value:6,reflectToAttribute:!0}),_.Q("design:type",Number)],oz.prototype,"elementsPerRow",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],oz.prototype,"wrapButtons",void 0);_.W([_.X({value:_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Q("design:type",Boolean)],oz.prototype,"isMusic",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Q("design:type",String)],oz.prototype,"alertStyle",void 0);_.W([_.X({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Q("design:type",Function)],oz.prototype,"dismissBoundButtonTap_",void 0);_.W([_.X({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Q("design:type",Function)],oz.prototype,"acceptBoundButtonTap_",void 0);_.W([_.gz("elementsPerRow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oz.prototype,"observerElementsPerRow",null);_.W([_.gz("data.isVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oz.prototype,"onIsVisibleChanged_",null);_.W([_.wz({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],oz);
_.n(oz,"yt-alert-with-actions-renderer",function(){if(Rz1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;Gul===void 0&&(Gul=document.createElement("template"));var H=Gul;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Rz1=N}N=Rz1;return N},{mode:2});var v1A=_.q(function(N){var t={};return _.d(_.cu,{text:N.text,className:_.V7("ytPersonalGreetingViewModelHeadline",(t.ytPersonalGreetingViewModelHeadlineSmall=N.isSmallHeadline,t))})},"sn");_.o_(_.q(function(N){var t=_.wZ(function(){var u;return(u=N.data())==null?void 0:u.rendererContext},void 0,void 0,void 0,!0),O=function(){return N.data().canvasPromoData},H=function(){var u;
return(u=N.data().bannerHeight)!=null?u:56},A=_.D(_.ie({throttleMs:100})),Z=A.next().value;
A=A.next().value;var U=_.D(_.ie({throttleMs:100})),C=U.next().value;U=U.next().value;var F=_.D(_.ie({throttleMs:100})),g=F.next().value;F=F.next().value;var B=function(){return C.width()-Z.width()>1},c=function(){return H()===48};
return _.d("yt-personal-greeting-view-model",{el:_.E4(t,A),"aria-hidden":B,class:_.V7(N.className,"ytPersonalGreetingViewModelHost"),style:_.FM({height:(0,_.yg)(function(){return B()?0:H()})})},_.d(_.y,{cond:function(){return N.data().avatar&&!(g.width()+(N.data().avatar?48:0)-Z.width()>1)},
then:function(){return _.d(_.iF,{data:function(){return N.data().avatar}},{decoratedAvatarViewModel:function(u){return _.d(_.Us,{data:u.data,
className:_.V7("ytPersonalGreetingViewModelAvatar")})}})}}),_.d("h1",null,_.d(v1A,{text:function(){var u;
return(O==null?void 0:(u=O())==null?void 0:u.headline)||(g.width()+(N.data().avatar?48:0)-Z.width()>1?N.data().shorterGreeting:N.data().greeting)},
isSmallHeadline:c})),_.d("span",{el:_.E4(F),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.d(v1A,{text:function(){return N.data().greeting},
isSmallHeadline:c})),_.d("span",{el:_.E4(U),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.d(v1A,{text:function(){return N.data().shorterGreeting},
isSmallHeadline:c})))},"rn"),"yt-personal-greeting-view-model",{props:{data:_.$O,
className:_.$O}});var sc=function(){var N=_.k.apply(this,arguments)||this;N.hidden=!1;N.isConstrainedList=!1;N.responsiveSizing="COMPACT";N.attachedPlayers=_.h("kevlar_channel_trailer_multi_attach")?[]:void 0;N.player=null;N.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return N};
_.p(sc,_.k);_.V=sc.prototype;
_.V.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.V.created=function(){var N=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){N.disposeMastheadAd()}]};
_.V.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new qWs(this.refresh,this.contents))};
_.V.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.V.activeChanged=function(){var N=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=N)};
_.V.tabsChanged=function(){var N=this,t,O;if(this.pageSubtype==="channels"||_.h("kevlar_tab_gestures_for_tabbed_header_data")&&((t=this.data)==null?0:(O=t.header)==null?0:O.carouselHeaderRenderer))this.tabGestures=new Wq9(this.contents,this.contents,this.hostElement,this.header,function(U){N.ytdReduxBehavior.dispatch(U)});
var H,A,Z;t=(H=this.data)==null?void 0:(A=H.contents)==null?void 0:(Z=A.twoColumnBrowseResultsRenderer)==null?void 0:Z.tabs;this.tabGestures&&this.tabGestures.tabsChanged(t)};
_.V.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.V.engagementPanelsChanged=function(){var N=_.cY().resolve(_.Of);if(N){if(this.engagementPanels)for(var t=_.D(this.engagementPanels),O=t.next();!O.done;O=t.next()){var H=void 0;(O=(H=O.value.identifier)==null?void 0:H.tag)&&N.panelMap.delete(O)}this.engagementPanels=[];var A;t=_.D(((A=this.data)==null?void 0:A.panels)||[]);for(A=t.next();!A.done;A=t.next()){A=_.M(A.value,_.Fnl);var Z=O=void 0,U=void 0,C=void 0;if(H=((O=A)==null?void 0:O.targetId)||((Z=A)==null?void 0:Z.panelIdentifier)||((U=A)==
null?void 0:(C=U.identifier)==null?void 0:C.tag))Z=O=void 0,(Z=(O=N).registerPanelContent)==null||Z.call(O,H,{engagementPanelSectionListRenderer:A}),this.engagementPanels.push(A)}}};
_.V.onStampFinished=function(){var N=this;_.yB(this,function(){if(N.tabGestures){var t=N.tabGestures;if(t.scrollPositionNeedsUpdate){var O=_.cY().resolve(_.BY(_.J4)),H;if((H=t.selectedTab)!=null&&H.title&&O&&(H=O.getCurrentPage())){if(t.scrollPositionForTabs.has(t.selectedTab.title)){var A,Z;O=(Z=(A=O.getCurrentPage())==null?void 0:A.clientHeight)!=null?Z:0;A=t.scrollPositionForTabs.get(t.selectedTab.title);H.setScrollTop(A);O>A+100&&(t.scrollPositionNeedsUpdate=!1)}else H.setScrollTop(Math.min(t.lastVisitedTabScrollPosition!==
void 0?t.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,t.tabsStartAtInPx)),t.scrollPositionNeedsUpdate=!1;t.ytdReduxDispatch(dw8(!1))}}}})};
_.V.loadPage_=function(N){this.initCsi();N&&(this.data=N);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.V.getTitle=function(N){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",N))return this.get("microformat.microformatDataRenderer.title",N);if(this.get("header.feedTabbedHeaderRenderer.title",N))return _.Gv(this.get("header.feedTabbedHeaderRenderer.title",N));if(this.get("header.interactiveTabbedHeaderRenderer.title",N))return this.get("header.interactiveTabbedHeaderRenderer.title",N);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
N))return _.Gv(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",N));var t,O;return(N==null?0:(t=N.header)==null?0:(O=t.pageHeaderRenderer)==null?0:O.pageTitle)?N.header.pageHeaderRenderer.pageTitle:""};
_.V.updateTitle=function(N){_.or(this.hostElement,"yt-update-title",this.getTitle(N))};
_.V.initCsi=function(){_.ADd(this.pageSubtype||"browse",["ol","cpt"])};
_.V.getPlayer=function(){if(_.h("kevlar_channel_trailer_multi_attach")){for(var N=_.D(this.attachedPlayers),t=N.next();!t.done;t=N.next())if(t=t.value,t.isConnected||_.oP(this.hostElement,t))return t;return null}return this.player};
_.V.getPlayerContainer=function(){return null};
_.V.onPlayerAttached=function(N,t){_.h("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(t):this.player=t};
_.V.onPlayerDetached=function(N,t){_.h("kevlar_channel_trailer_multi_attach")?(N=this.attachedPlayers.indexOf(t),N<0||this.attachedPlayers.splice(N,1)):this.player=null};
_.V.getServiceTrackingParams=function(){var N,t;return((N=this.data)==null?void 0:(t=N.responseContext)==null?void 0:t.serviceTrackingParams)||[]};
_.V.setMastheadAd=function(N){N&&N.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=N&&N.mastheadAd};
_.V.dataChanged=function(){var N=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.RUR();_.yB(this,function(){_.Np(N.hostElement,"ytd-update-grid-state-action")})};
_.V.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.V.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var N=this.data.alerts;return N&&N.find(function(t){return!!t.alertWithActionsRenderer})}};
_.V.computeGreetingData=function(){if(this.data&&this.data.alerts){var N=this.data.alerts;return N&&N.find(function(t){return!!t.personalGreetingViewModel})}};
_.V.computeHasMemberHubProfileRenderer=function(N){var t;return!!(N==null?0:(t=N.header)==null?0:t.memberHubProfileRenderer)};
_.V.handleAlertCommand=function(N){this.get("alertCommand.alert.alertWithActionsRenderer",N)&&(N=_.M(N,hoN),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",N.alert))};
_.V.handleYtPlaylistDeletionRedirect=function(N){N=this.get("playlistDeletionRedirectCommand.redirectEndpoint",N);_.or(this.hostElement,"yt-navigate",{endpoint:N})};
_.V.computeFluidWidth=function(N,t,O){if(t==="mini_app"||O)return!0;var H,A,Z;N=N==null?void 0:(H=N.contents)==null?void 0:(A=H.twoColumnBrowseResultsRenderer)==null?void 0:(Z=A.tabs)==null?void 0:Z.find(function(F){var g;return F==null?void 0:(g=F.tabRenderer)==null?void 0:g.selected});
if(!N)return!1;var U,C;return!!((U=N.tabRenderer)==null?0:(C=U.content)==null?0:C.richGridRenderer)&&!["channel","channels","playables"].includes(t)};
_.V.computeHeaderFluidWidth=function(N){return N==="hashtag-landing-page"};
_.V.computeHasSidebar=function(N){var t;return!!(N.sidebar||((t=N.header)==null?0:t.playlistHeaderRenderer))};
_.V.computeHasPageHeaderSidebar=function(N){var t,O;return!!((t=N.header)==null?0:(O=t.pageHeaderRenderer)==null?0:O.enableSidebarView)};
_.V.computeUseUnifiedShowPageLayout=function(N){if(!N||this.pageSubtype!=="show"||!N.sidebar||!N.sidebar.playlistSidebarRenderer)return!1;N=N.sidebar.playlistSidebarRenderer;if(!N.items)return!1;for(var t=0;t<N.items.length;t++)if(_.M(N.items[t],pWr)){var O=void 0;return((O=_.M(N.items[t],pWr))==null?void 0:O.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.V.computeIsConstrainedList=function(N){return _.h("web_enable_constrained_list_subscriptions_channels")&&N==="subscriptions-channels"};
_.V.computeResponsiveSizing=function(N){return N==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.cv.Object.defineProperties(sc.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var N,t;return((N=this.data)==null?0:(t=N.header)==null?0:t.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var N,t;if(!((N=this.data)==null?0:(t=N.sidebar)==null?0:t.playlistSidebarRenderer))return!1;var O;return(O=this.data)!=null&&O.header?!1:!0}}});
_.cv.Object.defineProperties(sc,{template:{configurable:!0,enumerable:!0,get:function(){if(rDl===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);rDl=N}N=rDl;return N}}});
sc.prototype.dataChanged=sc.prototype.dataChanged;sc.prototype.onPlayerDetached=sc.prototype.onPlayerDetached;sc.prototype.onPlayerAttached=sc.prototype.onPlayerAttached;sc.prototype.onStampFinished=sc.prototype.onStampFinished;sc.prototype.engagementPanelsChanged=sc.prototype.engagementPanelsChanged;sc.prototype.scrollAtTopChanged=sc.prototype.scrollAtTopChanged;sc.prototype.tabsChanged=sc.prototype.tabsChanged;sc.prototype.activeChanged=sc.prototype.activeChanged;
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],sc.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],sc.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],sc.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.As.YtPageBehavior),_.Q("design:type",Object)],sc.prototype,"ytPageBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],sc.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],sc.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sc.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],sc.prototype,"hidden",void 0);
_.W([_.X(),_.Q("design:type",Object)],sc.prototype,"mastheadAdData",void 0);_.W([_.X({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Q("design:type",Object)],sc.prototype,"alertBannerData",void 0);_.W([_.X({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Q("design:type",Object)],sc.prototype,"greetingData",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],sc.prototype,"pageSubtype",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Q("design:type",Boolean)],sc.prototype,"hasMemberHubProfileRenderer",void 0);_.W([_.X({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],sc.prototype,"hasSidebar",void 0);_.W([_.X({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],sc.prototype,"hasPageHeaderSidebar",void 0);
_.W([_.X({reflectToAttribute:!0,value:!0}),_.Q("design:type",Boolean)],sc.prototype,"roundedContainer",void 0);_.W([_.X({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],sc.prototype,"useUnifiedShowPageLayout",void 0);_.W([_.X({computed:"computeIsConstrainedList(pageSubtype)"}),_.Q("design:type",Object)],sc.prototype,"isConstrainedList",void 0);
_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],sc.prototype,"usePlaylistHeaderRenderer",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],sc.prototype,"useOldPlaylistSidebarRenderer",null);_.W([_.X({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Q("design:type",Boolean)],sc.prototype,"fluidWidth",void 0);_.W([_.X({selector:function(N){return N.ui.scrollAtTop}}),
_.Q("design:type",Boolean)],sc.prototype,"scrollAtTop",void 0);_.W([_.X({selector:_.lmJ}),_.Q("design:type",Boolean)],sc.prototype,"tabGesturesIsActive",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Q("design:type",Boolean)],sc.prototype,"disableHeaderFluidWidth",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Q("design:type",String)],sc.prototype,"responsiveSizing",void 0);
_.W([_.B2("ytd-two-column-browse-results-renderer"),_.Q("design:type",HTMLElement)],sc.prototype,"contents",void 0);_.W([_.B2("#header"),_.Q("design:type",HTMLElement)],sc.prototype,"header",void 0);_.W([_.B2("ytd-refresh"),_.Q("design:type",Object)],sc.prototype,"refresh",void 0);_.W([_.gz("active"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sc.prototype,"activeChanged",null);
_.W([_.gz("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sc.prototype,"tabsChanged",null);_.W([_.gz("scrollAtTop"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sc.prototype,"scrollAtTopChanged",null);_.W([_.X(),_.Q("design:type",Object)],sc.prototype,"engagementPanels",void 0);
_.W([_.gz("data.panels"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sc.prototype,"engagementPanelsChanged",null);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sc.prototype,"onStampFinished",null);_.W([_.dz("yt-player-attached"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Element]),_.Q("design:returntype")],sc.prototype,"onPlayerAttached",null);
_.W([_.dz("yt-player-detached"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Element]),_.Q("design:returntype")],sc.prototype,"onPlayerDetached",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],sc.prototype,"dataChanged",null);_.W([_.en({is:"ytd-browse"})],sc);_.CX.registerService(_.yTx,sc);
_.m7();
}catch(e){_._DumpException(e)}
try{
_.Q5("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 p2,D2m,U2q,Cbn,Kwx,FwJ,d2f,gJz,yd5,BFn,cd1,$2m,j_J,iCi,S41,hE5,bCq,pV5,Lwm,Y41,a5i,TFi,wVm,L2,PbJ,XVz,x2x,kbn,q4i,f51,nJm,l5J,m2q,I5r,urO,EJ5,Gbm,REm,vJ1,Jd5,oJJ,s_r,OEi,HEO,V9m,De5,Cjr,FBJ,de1,gVf,Bqi,$eJ,jMf,iE1,uMm,Sif,hwx,M95,bEz,pHi,LBJ,zw5,YiO,wH1,ewn,PjJ,XHx,xei,kIn,qi1,fNr,WBO,r4r,IN5,lN1,QMJ,meJ,EV5,GI1,Rwq,vVr,J4i,oVr,sMr,NZm,tp5,Ox5,Hxi,A51,ZxO,Vp1,DUm,UU5,CFm,Kbx,a4,Fb5,dUi,$U5,Lbx,TZO,wzi,kEm,fE5,xUO,PFf,mUx,RPm,tqn,ePq,J55,ESO,qM5,Hix,Vq5,CeJ,Duf,Uuf,Khr,yqz,du1,Bvn,cq1,ggz,Fhq,
$uf,PQ,Mq5,biJ,pyn,Xg,Lhn,zIq,Y95,XyJ,xuq,xo,ko,q9z,kni,f_1,ngf,Whm,rqm,qh,vgx,f2,Jqm,ogr,sEm,n2,ZS5,tSr,Alm,VSf,OSx,U41,HS1,Fpf,Clz,Kpm,d4f,ylm,gfm,jCf,hNn,la,QF,uQf,bS5,SIm,MS5,mM,Gt,R4,vQ,Efx,kh5,vfn,Jl1,of5,sCf,t05,w7i,eNn,s5,X75,Ja,o4,x4O,NQm,Ghq,Pl5,tW,gD1,BQx,cwm,yw5,CC5,jGm,Sdi,Dd5,Zlm,V0J,blm,Ud1,AW,uAn,Ke1,ilm,dd5,AwJ,Fe1,LeJ,zGm,Ydx,TQ5,eG1,PCr,XU5,xdf,qd1,kl5,nDO,Wez,I7r,l7i,mdx,EDO,Gln,RGJ,vDz,Jwq,oD5,NIO,sGm,tWx,ACJ,ZAf,De,VW1,DOq,UOm,CtO,Ks5,Fsf,dOO,gGi,yCf,BIO,cC5,j5q,iAx,uJi,Swf,
bA1,Lsf,z4x,ab5,Ywq,TIf,w15,e4x,X1q,xOm,kj5,qwn,fbx,nG5,Ws5,rC5,Ibn,lb5,Q5i,R4q,vGJ,EG1,Gjz,mOn,JCf,N31,oGx,s5J,HV1,tr1,OV1,A$q,ZVm,Vr5,DsO,CM1,K0i,F05,gFz,y$O,c$n,j7O,umn,hDz,bVq,L0m,YP5,T3f,PMO,xsf,kkx,qPq,nF5,fP5,r$1,IPr,lP1,Q7r,CK,msm,EF5,Gkq,Vz5,UK1,Cv1,gEx,dR,y8x,B55,c85,jj1,$Kr,if1,ux1,SN1,hf1,Mzm,gSx,bf1,pLO,SP5,Lgx,zfm,KB5,YNm,aj5,T5O,wLJ,efm,Pv5;
p2=function(N){if(!N)return"browse";var t=N.page,O=N.url,H,A,Z,U=(H=N.response)==null?void 0:(A=H.responseContext)==null?void 0:(Z=A.webResponseContextExtensionData)==null?void 0:Z.pageTheme;if(U)t=U.toLowerCase().replace(/_/g,"-");else if(t!=="watch"&&t!=="learning_journey_watch"){var C,F;if((t==="browse"||t==="settings")&&((C=N.response)==null?0:(F=C.sidebar)==null?0:F.settingsSidebarRenderer))t="WEB_PAGE_TYPE_SETTINGS";else{var g,B;t==="browse"&&((g=N.response)==null?0:(B=g.metadata)==null?0:B.channelMetadataRenderer)?
t="channel":O&&(t=_.opy(O)||t)}}return t};
D2m=function(){return new Promise(function(N){var t=window;t.attmp!==void 0?N(t.attmp):(t.attmq===void 0&&(t.attmq=[]),t.attmq.push(function(O){N(O)}))})};
U2q=function(){var N=_.s2("yt.aba.att");return N?N:_.my.instance!==void 0?_.my.instance.fF2.bind(_.my.instance):null};
Cbn=function(N,t){var O,H;return _.K(function(A){return A.nextAddress==1?_.h("attmusi")&&_.h("attmusi_ue")?A.yield(D2m(),3):A.jumpTo(2):A.nextAddress!=2?(O=A.yieldResult,A.return(O.s(N,t,6E4))):(H=U2q())?A.return(H(N,t,6E4)):A.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
Kwx=function(N,t,O,H,A){t=t===void 0?[]:t;A=A?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:A}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.NE(N),dialogMessages:t.map(function(Z){return _.NE(Z)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.NE(O),serviceEndpoint:A}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.NE(H)}}}}}};
FwJ=function(N,t,O){O=O===void 0?!1:O;var H=_.Ry(),A=!!_.h7().queueProxy,Z,U,C;N=N==null?void 0:(Z=N.response)==null?void 0:(U=Z.currentVideoEndpoint)==null?void 0:(C=U.watchEndpoint)==null?void 0:C.playlistId;if((A||N)&&!_.h("web_watch_disable_playlist_auto_miniplayer"))return O&&(H.playlistWatchPageActivation=!0),!0;switch(p2(t)){case "yts-products":return O&&(H.productDetailsPageActivation=!0),!0;case "mini_app":return O&&(H.miniAppPageActivation=!0),!0;case "playables":return O&&(H.playablesDestPageActivation=
!0),!0;case "companion-canvas":return O&&(H.companionCanvasActivation=!0),!0;default:return!1}};
d2f=function(N){N=_.Dzp(N);N.length>0&&N[0].focus()};
gJz=function(N,t,O){for(var H=typeof N==="string"?N.split(""):N,A=N.length-1;A>=0;--A)A in H&&t.call(O,H[A],A,N)};
yd5=function(N,t){t=_.YSM(N,t);t>=0&&_.w4t(N,t)};
BFn=function(N){return Array.prototype.concat.apply([],arguments)};
cd1=function(N){var t=0;t=t===void 0?0:t;if(!_.tm(N))throw _.ol("uint64");var O=typeof N;switch(t){case 512:switch(O){case "string":return _.w0M(N);case "bigint":return String((0,_.Bm)(64,N));default:return _.aYQ(N)}case 1024:switch(O){case "string":return _.eay(N);case "bigint":return _.kX((0,_.Bm)(64,N));default:return _.Tfl(N)}case 0:switch(O){case "string":return _.w0M(N);case "bigint":return _.kX((0,_.Bm)(64,N));default:return _.YpS(N)}default:return _.Ep(t,"Unknown format requested type for int64")}};
$2m=function(N,t,O){if(t)return _.cm(N);var H;return(H=_.SJ(N))!=null?H:O?"":void 0};
j_J=function(N){N!=null&&(N=N.JSC$8975_value_||"",N=typeof N==="string"?N:new Uint8Array(N));return N};
iCi=function(N,t){if(/-[a-z]/.test(t))return null;if(_.jPQ&&N.dataset){if(_.iNQ()&&!(t in N.dataset))return null;N=N.dataset[t];return N===void 0?null:N}return N.getAttribute("data-"+_.Cv(t))};
S41=function(){var N=urO;_.s2("yt.ads.biscotti.getId_")||_.Ba("yt.ads.biscotti.getId_",N)};
hE5=function(N){_.Ba("yt.ads.biscotti.lastId_",N)};
bCq=function(){var N={};for(_.Ql=new MF1(N.handleError===void 0?_.vX:N.handleError,N.logEvent===void 0?_.E7:N.logEvent);_.mY.length>0;)switch(N=_.mY.shift(),N.type){case "ERROR":_.Ql.logError(N.payload);break;case "EVENT":_.Ql.logEvent(N.eventType,N.payload)}};
pV5=function(N,t,O){return _.UES(function(H){return O?H.userIdentifier!==void 0&&!N.includes(H.userIdentifier)&&O.includes(H.publicName):H.userIdentifier!==void 0&&!N.includes(H.userIdentifier)},t)};
Lwm=function(N){var t,O;return _.K(function(H){if(H.nextAddress==1)return t=_.kv("YtIdbMeta hasAnyMeta other"),H.yield(_.UES(function(A){return A.userIdentifier!==void 0&&A.userIdentifier!==t},N),2);
O=H.yieldResult;return H.return(O.length>0)})};
Y41=function(N,t){zE5||(zE5=_.GB.addLowPriorityJob(function(){var O,H,A,Z,U;return _.K(function(C){switch(C.nextAddress){case 1:return C.yield(_.ca(),2);case 2:O=C.yieldResult;if(!O)return C.return();H=!0;_.Mo(C,3);return C.yield(pV5(N,O,t),5);case 5:A=C.yieldResult;if(!A.length){H=!1;C.jumpTo(6);break}Z=A[0];return C.yield(_.Uv(Z.actualName),7);case 7:return C.yield(_.Fc(Z.actualName,O),6);case 6:_.Do(C,4);break;case 3:U=_.ax(C),_.Ey(U),H=!1;case 4:_.GB.cancelJob(zE5),zE5=0,H&&Y41(N,t),_.Ty(C)}})}))};
a5i=function(){var N;return _.K(function(t){return t.nextAddress==1?t.yield(_.ca(),2):(N=t.yieldResult)?t.return(Lwm(N)):t.return(!1)})};
TFi=function(N){var t=100;t=t===void 0?500:t;var O,H,A,Z,U,C;return _.K(function(F){return F.nextAddress==1?(O=_.Ro("INNERTUBE_CONTEXT_CLIENT_NAME",0),H=[O,(0,_.jg)()-2592E6],A=[O,(0,_.jg)()],Z=IDBKeyRange.bound(H,A),F.yield(_.X2t(N),2)):F.nextAddress!=3?(U=F.yieldResult,C=[],F.yield(_.Kz(U,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(g){C.length=0;return _.i0(g.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:Z,direction:"prev"},function(B){if(B.getValue()&&C.length<
t)return C.push(B.getValue()),B.delete().then(function(){return B.continue()})})}),3)):F.return(C)})};
wVm=function(){var N;return _.K(function(t){if(t.nextAddress==1)return t.yield(_.ca(),2);N=t.yieldResult;if(!N||!_.qH()&&!_.h("nwl_init_require_datasync_id_killswitch")||!_.NFy())return t.jumpTo(0);_.OC9=!0;_.tFQ.isNwlInitialized=_.OC9;return t.yield(_.xEp().awaitInitialization(),0)})};
L2=function(N,t){_.iCt[N]=!0;var O=_.id();O&&O.publish.apply(O,arguments);_.iCt[N]=!1};
PbJ=function(){if(_.vHM()&&!eEq){var N=function(O){O=O.data;if(O.op==="serializedGelBatch"){var H=_.uM4.get(O.key);H&&(_.hwS(O.serializedBatch,H.client,H.resolve,H.networklessOptions,H.isIsolated,H.useVSSEndpoint,H.dangerousLogToVisitorSession,H.requestsOutstanding),_.uM4.delete(O.key))}},t=_.RVG();
t&&(t.addEventListener("message",N),t.onerror=function(){_.uM4.clear()});
eEq=!0}};
XVz=function(){this.relativeTimeStart_=_.tw()};
x2x=function(N,t){N!=null&&this.append.apply(this,arguments)};
kbn=function(){return _.eB("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
q4i=function(N,t,O){O=O===void 0?!1:O;var H,A,Z,U,C;return _.K(function(F){switch(F.nextAddress){case 1:_.Xe("SOCS",N,34128E3,"youtube.com",!0);if(_.Kl)return A=fetch(t,{method:"POST",mode:_.fv(t),credentials:_.q0(t),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),Z=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.fv("/upgrade_visitor_cookie?eom=1"),credentials:_.q0("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),F.yield(Promise.all([A,Z]).then(function(g){return g[1]}),5);
fetch(t,{method:"POST",mode:_.fv(t),credentials:_.q0(t),cache:"no-store",headers:{"Content-Type":"text/plain"}});return F.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.fv("/upgrade_visitor_cookie?eom=1"),credentials:_.q0("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:H=F.yieldResult;F.jumpTo(3);break;case 5:H=U=F.yieldResult;case 3:if(!H.ok)throw Error("uf");return F.yield(H.text(),7);case 7:C=F.yieldResult,
!C.includes('"state_switch":true')&&!O||C.includes("skip_reload_for_test")||window.location.reload(),_.Ty(F)}})};
f51=function(N){return _.K(function(t){return t.nextAddress==1?t.yield(q4i(N.socsCookie,N.savePreferenceUrl,!0),2):t.return()})};
nJm=function(N){return _.K(function(t){return t.nextAddress==1?t.yield(q4i(N.socsCookie,N.savePreferenceUrl),2):t.return()})};
l5J=function(N){N=N.xhr.responseText;if(!_.Zp(N,")]}'"))throw new Wwz;N=JSON.parse(N.substr(4));if((N.type||1)>1)throw new Wwz;N=N.id;hE5(N);rdi=_.bA(N);I5r(18E5,2);return N};
m2q=function(N,t){t=new Q_z(t);hE5("");rdi=_.neZ(t);N>0&&I5r(12E4,N-1);throw t;};
I5r=function(N,t){_.pF(function(){_.S6J().then(l5J,function(O){return m2q(t,O)}).thenCatch(_.YG)},N)};
urO=function(){var N=_.bO1();if(N!==void 0)return _.M2(N);rdi||(rdi=_.S6J().then(l5J).thenCatch(function(t){return m2q(2,t)}));
return rdi};
EJ5=function(){var N=document;return _.ey(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){return"on"+t.toLowerCase()in N})};
Gbm=function(N){N.addEventListener("click",function(t){var O=t.target;O&&O.getAttribute("href")&&(O=O.getAttribute("href"),_.OG(window,O,"_blank"),t.preventDefault(),t.stopImmediatePropagation())})};
REm=function(N){var t,O,H,A=(H=(O=((t=N.mainDownloadsListEntity)!=null?t:{})[_.cPM])==null?void 0:O.refresh)!=null?H:"",Z;N=(Z=N.refresh)==null?void 0:Z[A];A=N!=null?N:{};return(A==null?0:A.refreshTime)?Number(A==null?void 0:A.refreshTime):0};
vJ1=function(N,t){var O=_.b5(N);return t.every(function(H){var A;H=H==null?void 0:(A=H.playbackDataEntity)==null?void 0:A.key;if(!H)return!1;A=_.U_(_.Zn(H).entityId,"mainVideoEntity");return!!O[A]})};
Jd5=function(N){N=_.SD(N.entities);return _.TyS(N).length};
oJJ=function(N,t){if(t){var O;N=(O=_.CM(N.entities,"downloadQualityPickerEntity",t))!=null?O:void 0}else N=void 0;return N};
s_r=function(N){var t=document.getElementsByTagName("ytd-enforcement-message-view-model");t.length===0||getComputedStyle(t[0]).display==="none"?N(0,"p.h_"):N(1,"p.h_")};
OEi=function(){Nq1=0;var N=[_.$H(!0)];t9f&&_.Np(t9f,"yt-window-resized",N)};
HEO=function(){Nq1||(Nq1=_.GB.addLowPriorityJob(OEi,200))};
V9m=function(){A41=0;ZEz=_.imf(document);var N=[ZEz];t9f&&_.Np(t9f,"yt-window-scrolled",N)};
De5=function(){A41||(A41=_.GB.addLowPriorityJob(V9m,200))};
Cjr=function(N){N=N===void 0?null:N;UeO.push(_.BX(window,"resize",HEO));UeO.push(_.BX(window,"scroll",De5));N&&(t9f=N)};
FBJ=function(){var N=_.hG.getLocalStorage();N&&KB5(N,N.mechanism.__iterator__(!0))};
de1=function(N){_.K(function(t){if(t.nextAddress==1)return t.yield(N.delete("yt-appshell-assets"),2);_.Ty(t)})};
gVf=function(N){return _.Cz((0,_.mAZ)(),N)};
Bqi=function(){var N;_.K(function(t){return t.nextAddress==1?t.yield(zt.getInstance(),2):(N=t.yieldResult)?t.yield(y4r(N),0):t.jumpTo(0)})};
$eJ=function(){var N;_.K(function(t){return t.nextAddress==1?t.yield(Yo.getInstance(),2):(N=t.yieldResult)?t.yield(c4J(N),0):t.jumpTo(0)})};
jMf=function(N){de1(N);Bqi();$eJ()};
iE1=function(N){var t,O;return _.K(function(H){if(H.nextAddress==1)return H.yield(_.uqN(N),2);if(t=H.yieldResult){var A;a:{if(t.headers&&(A=t.headers.get("date"))&&(A=Date.parse(A),!isNaN(A))){A=Math.round((0,_.jg)()-A);break a}A=-1}O=A;if(O>-1)return H.return(O)}return H.return(-1)})};
uMm=function(){var N=_.H4.caches,t=_.vZ("IS_SHELL_LOAD"),O,H;_.K(function(A){if(A.nextAddress==1)return O=-1,t?A.yield(iE1(N),3):(H=_.jb(),O=Math.round((0,_.jg)()-H),A.jumpTo(2));A.nextAddress!=2&&(O=A.yieldResult);O>=0&&O<2147483648&&_.bp({appInstallDataAgeMs:O});_.Ty(A)})};
Sif=function(N){var t=_.tJ(_.H4.location.href),O={};"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(H){var A=t.JSC$10187_queryData_.getValues(H);if(A==null?0:A.length)O[H]=A});
return _.iw(N,new Map(Object.entries(O)))};
hwx=function(N){N=N.match(/(.*)::.*::.*/);if(N!==null)return N[1]};
M95=function(N){if(_.fvg()){var t=Object.keys(window.localStorage);t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;var H=hwx(O);H===void 0||N.includes(H)||self.localStorage.removeItem(O)}}};
bEz=function(){if(!_.fvg())return!1;var N=_.kv(),t=Object.keys(window.localStorage);t=_.D(t);for(var O=t.next();!O.done;O=t.next())if(O=hwx(O.value),O!==void 0&&O!==N)return!0;return!1};
pHi=function(N){return _.zhm("NotificationsDisabled",N)};
LBJ=function(){return Notification.permission!="granted"?Promise.resolve():_.QI5().then(function(N){return N?N.pushManager.getSubscription().then(function(t){if(t)return Promise.resolve();t={userVisibleOnly:!0,applicationServerKey:_.Jg("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return N.pushManager.subscribe(t).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
zw5=function(N){return _.QI5().then(function(t){if(!t||!t.active)return Promise.reject(new _.fF("serviceworker.postMessage",N,t));try{return t.active.postMessage(N),Promise.resolve()}catch(O){return Promise.reject(O)}})};
YiO=function(){zw5({type:"notifications_register",data:_.Ro("ID_TOKEN")})};
wH1=function(){var N={isWide:_.PY.get("wide","0")==="1"},t=_.d0();if(t=t.getFlag(165)||t.getFlag(174))N.theme=_.qL(!0);if(_.HqO()){var O=_.kH()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";N.systemTheme=O}!t&&_.h("parent_tools_enable_app_settings")&&_.D9(window.location.href).theme!==void 0&&(N.theme=_.qL());if((t=aNm)?!_.WW.equals(t,N):N)t={currentValue:N},Tqm&&(t.timeSinceLastSnapshotSecs=Math.round(((0,_.jg)()-Tqm)/1E3)),aNm&&(t.previousValue=aNm),_.E7("appSettingsCaptured",t),aNm=
N,Tqm=(0,_.jg)()};
ewn=function(){if(!_.vZ("LOGGED_IN"))return Promise.resolve(!1);var N=_.So("service_worker_push_force_notification_prompt_tag");return N?_.AS("PromptTags").then(function(t){if(!t)return!0;var O=[];try{O=JSON.parse(t)}catch(H){return!1}return O&&O.indexOf(N)==-1}):Promise.resolve(!1)};
PjJ=function(){var N=_.uP("service_worker_push_prompt_delay_microseconds");return N?_.AS("PromptTime").then(function(t){return Promise.resolve(Date.now()-N>(t||0))}):Promise.resolve(!0)};
XHx=function(){var N=_.uP("service_worker_push_logged_out_prompt_watches");return N==-1?Promise.resolve(!1):_.AS("WatchCount").then(function(t){return t>=N})};
xei=function(){var N=_.t5(document,"yt-push-prompt-modal-bg");N&&_.wb(N)};
kIn=function(){return _.uP("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.AS("PromptCount").then(function(N){N||(N=0);return Promise.resolve(N<_.uP("service_worker_push_prompt_cap"))})};
qi1=function(N){return _.vZ("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.vZ("LOGGED_IN")&&(N===void 0?0:N)?ewn().then(function(t){if(t)return!0;t=[kIn(),PjJ()];_.vZ("LOGGED_IN")||t.push(XHx());return Promise.all(t).then(function(O){return O.every(function(H){return H})})}):Promise.resolve(!1)};
fNr=function(){_.AS("PromptCount").then(function(N){return _.zhm("PromptCount",N+1)}).then(function(){return _.zhm("PromptTime",Date.now())}).then(function(){var N=_.So("service_worker_push_force_notification_prompt_tag");
if(N)return _.AS("PromptTags").then(function(t){var O=[];if(t)try{O=JSON.parse(t)}catch(H){return!1}O||(O=[]);O.push(N);return _.zhm("PromptTags",JSON.stringify(O))})})};
WBO=function(){nVi||xei()};
r4r=function(N){N.style.zIndex=2147483648;N.style.pointerEvents="auto";N.style.backgroundColor="rgba(0, 0, 0, 0.6)";N.style.width="100%";N.style.height="100vh";N.style.position="absolute";N.style.top="0";N.style.left="0";N.style.border="none"};
IN5=function(){var N=_.t5(document,"yt-push-prompt-modal-bg");nVi=_.h("service_worker_push_prompt_modal_ignore_click");N?r4r(N):(N=_.kG("div",{id:"yt-push-prompt-modal-bg"}),r4r(N),document.body.appendChild(N),_.ydM(document,"click",WBO))};
lN1=function(){var N=arguments;_.h("service_worker_push_prompt_modal_enable")&&IN5();return Notification.requestPermission().then(function(t){xei();var O=document.getElementById("ticker");O&&(O.className=O.classList.remove("show"));if(t=="granted")return LBJ().then(function(){pHi(!1);YiO();return Promise.resolve(!0)});
t=="denied"&&YiO();return Promise.resolve(!1)}).catch(function(){xei();
return Promise.reject.apply(Promise,_.W6(N))})};
QMJ=function(N){N=N===void 0?!1:N;var t=_.UP4().client;if(t&&t.browserVersion){var O=t.browserVersion,H=t.browserName=="CHROME"&&_.yv(O,"50.0.0")<0;t=t.browserName=="OPERA"&&_.yv(O,"42.0.0")<0;if(H||t)return Promise.resolve()}return _.GVq().then(function(A){if(!A)return Promise.resolve();A=LBJ().then(function(){return zw5({type:"notifications_check_registration",data:_.Ro("ID_TOKEN")})});
return Notification.permission!="default"?A.catch(function(){}):A.then(function(){return qi1(N)}).then(function(Z){if(Z)return fNr(),lN1().then(function(){})}).catch(function(){})})};
meJ=function(N){return _.mLr(N)?QMJ():Promise.resolve()};
EV5=function(N){var t=N.installing||N.waiting;return N.active||!t?Promise.resolve(N):new Promise(function(O){var H=function(A){A=A.target;if(A.state==="activated"||A.state==="redundant")t.removeEventListener("statechange",H),O(N)};
t.addEventListener("statechange",H)})};
GI1=function(){var N=new _.h89("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.FQ(N,{mainAppWeb:_.rY()});var t=_.dra;_.h("service_worker_forward_exp_params")&&(t=Sif(t));try{var O=_.FRz(t).catch(function(){_.dP(N,"FAILURE");return new Promise(function(){})});
_.h("service_worker_push_enabled")&&O.then(function(H){_.dP(N,"SUCCESS");return H}).then(EV5).then(meJ)}catch(H){if(_.dP(N,"FAILURE"),H.name!=="SecurityError")throw H;
}};
Rwq=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&GI1()};
vVr=function(N,t){var O={};t&&(O.serializedYpcFamilyCreateLoggingParams=t);_.E7(N,O);_.GW()};
J4i=function(N,t){var O={};O.serializedYpcRefundFlowLoggingParams=t;N&&(O.eventType=N);_.E7("ypcRefundFlowEvent",O);_.GW()};
oVr=function(N){N&&_.gTl("transactionFlowSucceeded",N)};
sMr=function(N){N&&_.Eg("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",N,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
NZm=function(N){var t,O,H,A,Z,U,C;_.K(function(F){if(F.nextAddress==1)return F.yield(_.od4(),2);if(F.nextAddress!=3){if(!F.yieldResult)return F.return(!1);t=[];return F.yield(_.A4.keys(),3)}O=F.yieldResult;H=_.D(O);for(A=H.next();!A.done;A=H.next())Z=A.value,U=_.vdM(Z),C=U.datasyncId,!C||N.includes(C)||t.push(_.A4.delete(Z));return F.return(Promise.all(t).then(function(g){return g.some(function(B){return B})}))})};
tp5=function(){var N,t,O,H,A,Z,U;return _.K(function(C){if(C.nextAddress==1)return C.yield(_.od4(),2);if(C.nextAddress!=3){if(!C.yieldResult)return C.return(!1);N=_.kv("cache contains other");return C.yield(_.A4.keys(),3)}t=C.yieldResult;O=_.D(t);for(H=O.next();!H.done;H=O.next())if(A=H.value,Z=_.vdM(A),(U=Z.datasyncId)&&U!==N)return C.return(!0);return C.return(!1)})};
Ox5=function(){var N=_.cY().resolve(_.BY(_.dh0));return N?N.getCurrentTime():0};
Hxi=function(){var N,t,O,H,A,Z,U,C,F,g,B,c,u,S;return _.K(function(b){switch(b.nextAddress){case 1:N={},t=_.t1y(),O=_.D(Object.entries(t)),H=O.next();case 4:if(H.done){b.jumpTo(3);break}A=H.value;Z=_.D(A);U=Z.next().value;C=Z.next().value;F=U;g=C;if(!g){b.jumpTo(5);break}return b.yield(g(),8);case 8:N[F]=b.yieldResult;case 5:H=O.next();b.jumpTo(4);break;case 2:B=_.D(),c=B.next();case 9:if(c.done){b.jumpTo(3);break}u=c.value;S=t[u];if(!S){b.jumpTo(10);break}return b.yield(S(),13);case 13:N[u]=b.yieldResult;
case 10:c=B.next();b.jumpTo(9);break;case 3:return b.return(N)}})};
A51=function(){var N;_.K(function(t){if(t.nextAddress==1)return t.yield(Hxi(),2);N=t.yieldResult;return t.yield(navigator.clipboard.writeText(JSON.stringify(N,null,2)),0)})};
ZxO=function(N,t){return _.CM(N.entities,"superThanksSelectedTierEntity",t)};
Vp1=function(N,t){return{popup:{searchSuggestionReportDialog:{searchQuery:N,title:_.CJ("SBOX_INAPPROPRIATE_TITLE"),suggestions:t,categoryLabel:_.CJ("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.CJ("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.CJ("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.CJ("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.CJ("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.CJ("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.CJ("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.CJ("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.CJ("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.CJ("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
DUm=function(N){var t,O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l;return _.K(function(I){switch(I.nextAddress){case 1:return I.yield(_.d8(),2);case 2:return(t=I.yieldResult)?I.yield(_.ysQ(t),3):I.return();case 3:O=I.yieldResult;if(!O)return I.return();A=((H=O.offlineVideos)==null?void 0:H.length)||0;U=((Z=O.offlinePlaylists)==null?void 0:Z.length)||0;if(A===0&&U===0)return I.return();C=0;if(O.offlineVideos)for(F=_.D(O.offlineVideos),g=F.next();!g.done;g=F.next())B=g.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
B.videoState&&(C+=1);N.offline_videos_count=A.toString();_.h("kevlar_log_offline_current_network_type_ks")||(N.offline_current_network_type=(c=_.qKS())!=null?c:"CONN_INVALID");_.h("kevlar_log_updated_time_for_smart_downloads")&&(u=_.v5().getState().entities,S=_.Yj(u),b=REm(u),N.offline_smart_downloads_last_sync_time_ms=S.toString(),N.offline_smart_downloads_next_sync_time_ms=b.toString());N.offline_videos_playable=C.toString();N.offline_playlists_count=U.toString();O.offlineVideos&&(z=O.offlineVideos.reduce(function(r,
E){E.downloadedBytes&&(r+=Number(E.downloadedBytes));return r},0).toString())&&(N.offline_used_disk_space_bytes=z);
if(!((w=navigator)==null?0:(P=w.storage)==null?0:P.estimate)){I.jumpTo(4);break}return I.yield(navigator.storage.estimate(),5);case 5:x=I.yieldResult,N.offline_free_disk_space_bytes=(((l=x)==null?void 0:l.quota)||0).toString();case 4:N.offline_client_state=JSON.stringify(O),_.Ty(I)}})};
UU5=function(N){N=N.match(/(.*)::.*::.*/);if(N!==null)return N[1]};
CFm=function(N){if(_.ffy()){var t=Object.keys(window.sessionStorage);t=_.D(t);for(var O=t.next();!O.done;O=t.next()){O=O.value;var H=UU5(O);H===void 0||N.includes(H)||self.sessionStorage.removeItem(O)}}};
Kbx=function(){if(!_.ffy())return!1;var N=_.kv(),t=Object.keys(window.sessionStorage);t=_.D(t);for(var O=t.next();!O.done;O=t.next())if(O=UU5(O.value),O!==void 0&&O!==N)return!0;return!1};
a4=function(N,t,O){(_.h("desktop_keyboard_shortcut_usage_log")||O&&_.h("web_shorts_keyboard_shortcut_usage_log"))&&(t?_.jj.get(N):_.$o.get(N))&&(N=t?_.xf5.get(N):_.X2i.get(N))&&_.IX(_.z8(),N)};
Fb5=function(N,t){return N.findIndex(function(O){return O.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(t.keyCode):!1};
dUi=function(N,t){t.stack&&(N.stack+="\n"+t.stack);return N};
$U5=function(N){var t=gSx(N,"Content-Type");if(!t)return null;t=t.toLowerCase();if(t.startsWith("application/json"))return t.startsWith("application/json+protobuf")?new y5n:new _.bD;if(t.startsWith("application/x-protobuf")){N=gSx(N,"Content-Transfer-Encoding");if(!N)return new BZf;if(N.toLowerCase()=="base64")return new c5m}return null};
Lbx=function(N,t,O,H){var A=new j8r(function(C,F){return ixi.has(F)?C.sentinel==="gal"&&C.event!==void 0:!1},function(C){C.event?(C=uFr(C.event),C=!C||SM5(H,C)?!0:_.j0(N.lastEvent,Tt,2,wC)?!_.j0(C,ej,1,wC)&&!_.j0(C,Tt,2,wC):!_.j0(C,ej,1,wC)&&!_.j0(C,Tt,3,wC)):C=!0;
return C});
O=_.iw(N.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",hPO(O)]]));if(N.nestedOrigins!==void 0)for(var Z=_.D(N.nestedOrigins),U=Z.next();!U.done;U=Z.next())O=_.iw(O,new Map([["origin",U.value]]));return Mp1(A,O,t).then(function(C){C=bx5(C.event);if(_.j0(C,ej,1,wC)){var F,g=(F=_.e0(C,ej,1,wC))==null?void 0:_.aG(F,2);g&&H.JSC$19897_logErrorEvent(pzf(g));F=_.e0(C,ej,1,wC);_.aG(F,2)===4?(C=_.e0(C,ej,1,wC),C={statusCode:11,statusMessage:_.YD(C,
3)}):(C=_.e0(C,ej,1,wC),C={statusCode:12,statusMessage:_.YD(C,3)});return C}_.j0(C,Tt,3,wC)?(C=_.e0(C,Tt,3,wC),C={statusCode:1,consentLanguageKeys:_.YD(C,2)}):C={statusCode:1};return C}).catch(function(C){return C.errorCode!==void 0?{statusCode:C.errorCode,
statusMessage:C.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
TZO=function(N){var t={};if(N===void 0||N===null)return t;N.getToken()!==void 0&&zPJ(N.getToken())&&zPJ(N.getToken()).length>0&&(t.scopes=new Set(zPJ(N.getToken())));N.getToken()!==void 0&&YM1(N.getToken())&&YM1(N.getToken()).length>0&&(t.capabilities=new Set(YM1(N.getToken())));_.YD(N,3)!==void 0&&(t.consistencyKey=_.YD(N,3));N.getName()!==void 0&&N.getName()!==""&&(t.linkName=N.getName());_.$D(N,aEx,4)&&(N=_.Sg(N,aEx,4),N=Object.assign({},_.YD(N,1)&&{userId:_.YD(N,1)},_.YD(N,2)&&{displayName:_.YD(N,
2)},_.YD(N,3)&&{email:_.YD(N,3)},_.YD(N,5)&&{username:_.YD(N,5)},_.YD(N,4)&&{profilePicture:_.YD(N,4)}),t.profile=N);return t};
wzi=function(N,t){var O=N.flowParams,H;return{serviceId:O.serviceId,sessionId:O.sessionId,currentFlow:N.currentFlow,googleScopesString:t,linkingSessionSerialized:N.session.serialize(),consentLanguageKeys:O.consentLanguageKeys,callerState:N.callerState,dynamicUrlParameters:O.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(H=O.partnerConfigMinReadTimestamp)==null?void 0:H.serialize()}};
kEm=function(N){var t=N.googleScopes!==void 0?Array.from(N.googleScopes).join(","):"";ePq(wzi(N,t),N.config.localStorage);t=PFf(N);return t===null?Promise.resolve(Xzf):t.start().then(function(O){var H,A=(H=O.link)==null?void 0:H.consistencyKey;return O.statusCode===1&&N.googleScopes!==void 0&&N.googleScopes.size>0&&A!==void 0?(H=N.flowParams,xUO(H.serviceId,H.sessionId,N.googleScopes,A,H.galService,N.config,O)):O})};
fE5=function(N){var t=PFf(N);return t===null?Promise.resolve(qM5({statusCode:7,statusMessage:"Failed to create flow object"},N.callerState)):t.complete().then(function(O){var H,A=(H=O.link)==null?void 0:H.consistencyKey;return O.statusCode===1&&N.googleScopes!==void 0&&N.googleScopes.size>0&&A!==void 0?(H=N.flowParams,xUO(H.serviceId,H.sessionId,N.googleScopes,A,H.galService,N.config,O)):qM5(O,N.callerState)},function(O){return qM5({statusCode:12,
statusMessage:"Failed to complete the flow: "+O.message},N.callerState)})};
xUO=function(N,t,O,H,A,Z,U){return nSi(A,{serviceId:N,sessionId:t,googleScopes:O,consistencyKey:H}).then(function(){return U},function(C){return A.deleteLink({serviceId:N,
sessionId:t,accountLinkingEntryPoint:Z.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+C.message}},function(F){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+F.message}})})};
PFf=function(N){switch(N.currentFlow){case 1:var t=N.flowParams;N=_.Sg(N.session,Wb5,1);return r51.createOAuthFlow(t,N);case 2:case 3:return t=N.flowParams,N=_.Sg(N.session,IE5,6),lE5.createStreamlinedFlow(t,N);default:return null}};
mUx=function(N,t){N===2&&(N=3);var O=0;Q81.indexOf(N)!==-1&&(O=Q81.indexOf(N)+1);for(N=O;N<Q81.length;N++)if(t.has(Q81[N]))return Q81[N]};
RPm=function(N){var t=N.serviceId;var O=N.sessionId;var H=N.config;var A=N.galService;var Z=N.capabilities;var U=N.scopes;var C=N.loginHint;var F=N.callerState;var g=N.consentLanguageKeys;var B=N.linkName;var c=N.dynamicUrlParameters;var u=N.partnerConfigMinReadTimestamp;N=H.dataUsageNoticeConfig?H.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return A.startLinkingSession({serviceId:t,sessionId:O,capabilities:Z,scopes:U,loginHint:C,callerState:F,supportedFlows:ESO(H.supportedFlows),completionUrl:H.completionUrl,
accountLinkingEntryPoint:H.accountLinkingEntryPoint,consentLanguageKeys:g,dataUsageNoticeConfig:N,linkName:B,dynamicUrlParameters:c,partnerConfigMinReadTimestamp:u}).then(function(S){return new GEr(t,O,H,A,S,void 0,F,g,c,u)})};
tqn=function(N,t,O){var H=(new vSn(t.localStorage)).getSession(N);if(H===null)return Promise.resolve({statusCode:2});J55(N,t.localStorage);var A=oSf(H.linkingSessionSerialized),Z=H.googleScopesString!==""&&H.googleScopesString!==void 0?new Set(H.googleScopesString.split(",")):void 0,U=H.partnerConfigMinReadTimestampSerialized?s8i(H.partnerConfigMinReadTimestampSerialized):void 0;return Nvz(new GEr(N,H.sessionId,t,O,A,Z,H.callerState,H.consentLanguageKeys,H.dynamicUrlParameters,U),H.currentFlow,H.consentLanguageKeys)};
ePq=function(N,t){t=new vSn(t);t.storage!==null&&t.storage.set("SAVED_SESSION",N)};
J55=function(N,t){t=new vSn(t);if(t.storage!==null){var O=t.storage.get("SAVED_SESSION");O!==void 0&&O.serviceId===N&&t.storage.remove("SAVED_SESSION")}};
ESO=function(N){var t=new Set;N=_.D(N);for(var O=N.next();!O.done;O=N.next())O=O.value,O!==1&&Oi1.has(O)&&t.add(Oi1.get(O));return t};
qM5=function(N,t){t!==void 0&&(N.callerState=t);return N};
Hix=function(N){switch(N){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
Vq5=function(N){return new Aqz(N,new Zi1(N))};
CeJ=function(N,t){t=t===void 0?!1:t;var O=document.createElement("div");N&&(O.style.transform="scaleX(-1)");O.style.backgroundColor=t?"rgba(138,180,248,.24)":"#e8f0fe";O.style.height="4px";O.style.overflow="hidden";O.style.position="absolute";O.style.top="0";O.style.width="100%";O.style.zIndex="1500";O.setAttribute("aria-label","Loading");O.setAttribute("aria-live","polite");N=document.createElement("style");N.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
O.appendChild(N);N=Duf();N.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";N.style.left="-145.166611%";var H=Uuf(t);H.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";N.appendChild(H);O.appendChild(N);N=Duf();N.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";N.style.left="-54.888891%";t=Uuf(t);t.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
N.appendChild(t);O.appendChild(N);return O};
Duf=function(){var N=document.createElement("div");N.style.height="100%";N.style.position="absolute";N.style.transformOrigin="top left";N.style.width="100%";return N};
Uuf=function(N){var t=document.createElement("span");t.style.borderTop=N?"4px solid #669df6":"4px solid #4285f4";t.style.display="inline-block";t.style.position="absolute";t.style.width="100%";return t};
Khr=function(N){return N==null?void 0:_.L7u(N).valueOf()};
yqz=function(N){var t=document.body,O=!1,H=function(){O||(O=!0,Fhq(A,Z),setTimeout(function(){t.removeChild(Z);t.removeChild(A)},150))},A=du1(N,getComputedStyle(t).direction==="rtl",H),Z=ggz(H);
Fhq(A,Z);t.appendChild(Z);t.appendChild(A);window.requestAnimationFrame(function(){Z.style.opacity="1";A.style.opacity="1";A.style.transform="translate(-50%, -50%) scale(1)";A.children[0].focus()})};
du1=function(N,t,O){var H=document.createElement("div");H.style.position="fixed";H.style.alignItems="center";H.style.backgroundColor=N?"rgb(32, 33, 36)":"white";H.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";H.style.display="flex";H.style.flexDirection="column";H.style.justifyContent="center";H.style.left="50%";H.style.top="50%";H.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";H.style.zIndex="2002";document.body.clientWidth>=
660?(H.style.borderRadius="8px",H.style.minHeight="220px",H.style.maxHeight="90%",H.style.maxWidth="90%",H.style.minWidth="540px"):(H.style.height="100%",H.style.width="100%");H.setAttribute("aria-label","Error");H.setAttribute("aria-modal","true");H.setAttribute("role","alertdialog");H.addEventListener("keydown",function(Z){Z.key==="Escape"&&O()});
t=Bvn(N,t,O);H.appendChild(cq1(t));H.appendChild(t);var A=document.createElement("img");A.src=N?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";A.style.height="72px";A.style.width="72px";A.style.color="#9aa0a6";A.setAttribute("alt","");H.appendChild(A);A=document.createElement("h1");A.textContent="Something went wrong.  Try again.";
A.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";A.style.lineHeight="24px";A.style.fontSize="16px";A.style.textAlign="center";A.style.letterSpacing="0.1px";A.style.color=N?"rgb(232,234,237)":"#3c4043";H.appendChild(A);H.appendChild(cq1(t));return H};
Bvn=function(N,t,O){var H=document.createElement("button");H.style.backgroundColor="transparent";H.style.border="none";H.style.borderRadius="50%";H.style.cursor="pointer";H.style.outline="none";H.style.padding="12px";H.setAttribute("aria-label","Close dialog");H.style.position="absolute";H.style.top="0";t?H.style.right="0":H.style.left="0";H.addEventListener("focus",function(){H.style.backgroundColor=N?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
H.addEventListener("blur",function(){H.style.backgroundColor="transparent"});
H.addEventListener("mouseenter",function(){H.style.backgroundColor=N?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
H.addEventListener("mouseleave",function(){H.style.backgroundColor="transparent"});
H.addEventListener("click",O);H.addEventListener("keydown",function(A){A.key!=="Enter"&&A.key!=="Space"||O()});
t=document.createElement("img");t.src=N?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";t.style.display="block";t.style.height="24px";t.style.width="24px";t.setAttribute("alt","");H.appendChild(t);return H};
cq1=function(N){var t=document.createElement("div");t.setAttribute("tabindex","0");t.setAttribute("aria-hidden","true");t.addEventListener("focus",function(){return void N.focus()});
return t};
ggz=function(N){var t=document.createElement("div");t.style.backgroundColor="rgba(32,33,36,0.6)";t.style.bottom="0";t.style.left="0";t.style.position="fixed";t.style.right="0";t.style.top="0";t.style.transition=" opacity 150 ms linear";t.style.zIndex="2001";t.addEventListener("click",N);return t};
Fhq=function(N,t){t.style.opacity="0";N.style.opacity="0";N.style.transform="translate(-50%, -50%) scale(0.8)"};
$uf=function(N,t){N.sandbox&&N.sandbox.add&&(N.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),N.sandbox.add("allow-downloads"));N.src=t};
PQ=function(N){jEn.call(this,N)};
Mq5=function(N,t){t=t===void 0?!1:t;this.parsedImageUrl_=null;N instanceof ii1||(u_n==void 0&&(u_n=new S95),N=u_n.parse(N.toString(),t));N=this.parsedImageUrl_=N;N.JSC$20110_parsedOptions_==void 0&&((t=N.getOptions())||(t=""),N.JSC$20110_parsedOptions_=(new hI1).parse(t));jEn.call(this,N.JSC$20110_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;N=this.parsedImageUrl_;t=N.uri_.JSC$10187_port_;this.JSC$20112_domain_=N.uri_.JSC$10187_domain_+(t?":"+t:"");this.JSC$20112_query_=
this.parsedImageUrl_.uri_.JSC$10187_queryData_.toString()};
biJ=function(N){this.mode=4;this.data=N;this.parsedData=[];N=0;for(var t=this.data.length;N<t;N++){var O=[],H=this.data.charCodeAt(N);H>65536?(O[0]=240|(H&1835008)>>>18,O[1]=128|(H&258048)>>>12,O[2]=128|(H&4032)>>>6,O[3]=128|H&63):H>2048?(O[0]=224|(H&61440)>>>12,O[1]=128|(H&4032)>>>6,O[2]=128|H&63):H>128?(O[0]=192|(H&1984)>>>6,O[1]=128|H&63):O[0]=H;this.parsedData.push(O)}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))};
pyn=function(N){this.typeNumber=0;this.errorCorrectLevel=N===void 0?2:N;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Xg=function(N,t){if(N.length==void 0)throw Error("Pk`"+N.length+"`"+t);for(var O=0;O<N.length&&N[O]==0;)O++;this.num=Array(N.length-O+t);for(t=0;t<N.length-O;t++)this.num[t]=N[t+O]};
Lhn=function(N,t){this.totalCount=N;this.dataCount=t};
zIq=function(){this.buffer=[];this.length=0};
Y95=function(){var N=!1;if(_.MyQ()){N=_.$x();var t="";_.LGp()?(t=/Windows (?:NT|Phone) ([0-9.]+)/,t=(N=t.exec(N))?N[1]:"0.0"):_.TM()?(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,t=(N=t.exec(N))&&N[1].replace(/_/g,".")):_.p4g()?(t=/Mac OS X ([0-9_.]+)/,t=(N=t.exec(N))?N[1].replace(/_/g,"."):"10"):_.dt(_.$x(),"KaiOS")?(t=/(?:KaiOS)\/(\S+)/i,t=(N=t.exec(N))&&N[1]):_.MyQ()?(t=/Android\s+([^\);]+)(\)|;)/,t=(N=t.exec(N))&&N[1]):_.z9O()&&(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,t=(N=t.exec(N))&&N[1]);N=
t||""}return N};
XyJ=function(N,t){this.JSC$20135__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(t)for(var O in t)this.JSC$20135__htOption[O]=t[O];this.JSC$20135__htOption.useSVG&&(a_O=Tv1);this.JSC$20135__android=Y95();this.JSC$20135__el=N;this._oQRCode=null;this._oDrawing=new a_O(this.JSC$20135__el,this.JSC$20135__htOption);this.JSC$20135__htOption.text&&(N=this.JSC$20135__htOption.text,this._oQRCode=new pyn(this.JSC$20135__htOption.correctLevel),wyf(this._oQRCode,
N),t=this._oQRCode,eIn(t,!1,Pe5(t)),this.JSC$20135__el.title=N,this._oDrawing.draw(this._oQRCode),this.makeImage())};
xuq=function(N,t,O,H,A){N.save();var Z=new Path2D;Z.roundRect(t,O,H*7,H*7,H*2);Z.roundRect(t+H,O+H,H*5,H*5,H*1.3);Z.roundRect(t+2*H,O+2*H,H*3,H*3,H);N.clip(Z,"evenodd");N.fillStyle=A;N.fillRect(0,0,N.canvas.width,N.canvas.height);N.restore()};
xo=function(N,t){if(typeof N!=="function")throw Error("Sk");return _.H4.setTimeout(function(){N()},t)};
ko=function(){};
q9z=function(N,t,O,H,A){(new ko).debug("TestLoadImageWithRetries: "+A);if(H==0)O(!1);else{var Z=A||0;H--;kni(N,t,function(U){U?O(!0):_.H4.setTimeout(function(){q9z(N,t,O,H,Z)},Z)})}};
kni=function(N,t,O){var H=new ko;H.debug("TestLoadImage: loading "+N);var A=new Image;A.onload=function(){try{H.debug("TestLoadImage: loaded"),f_1(A),O(!0)}catch(Z){}};
A.onerror=function(){try{H.debug("TestLoadImage: error"),f_1(A),O(!1)}catch(Z){}};
A.onabort=function(){try{H.debug("TestLoadImage: abort"),f_1(A),O(!1)}catch(Z){}};
A.ontimeout=function(){try{H.debug("TestLoadImage: timeout"),f_1(A),O(!1)}catch(Z){}};
_.H4.setTimeout(function(){if(A.ontimeout)A.ontimeout()},t);
A.src=N};
f_1=function(N){N.onload=null;N.onerror=null;N.onabort=null;N.ontimeout=null};
ngf=function(){this.front_=[];this.back_=[]};
Whm=function(N,t){this.action=N;this.params=t||{}};
rqm=function(N,t){_.k1.call(this);this.delay_=new _.f1(this.JSC$20261_onTick_,0,this);_.L1(this,this.delay_);this.JSC$20259_interval_=5E3;this.nextTickTime_=0;if(typeof N==="function")t&&(N=(0,_.qn)(N,t));else if(N&&typeof N.handleEvent==="function")N=(0,_.qn)(N.handleEvent,N);else throw Error("ya");this.JSC$20261_listener_=N};
qh=function(N,t,O,H,A,Z,U,C,F,g,B,c,u,S,b){var z=this;O=O===void 0?!1:O;H=H===void 0?function(){return""}:H;
A=A===void 0?!1:A;Z=Z===void 0?!1:Z;U=U===void 0?!1:U;C=C===void 0?function(){return _.Hc({})}:C;
F=F===void 0?!1:F;B=B===void 0?!1:B;c=c===void 0?!1:c;u=u===void 0?!1:u;S=S===void 0?!1:S;this.JSC$20262_pathPrefix_=N;this.defaultQueryParams_=t;this.pubsub_=new _.wE;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!b)?b(function(){z.safeReconnect_()}):new rqm(this.safeReconnect_,this);
this.JSC$20262_channel_=null;this.JSC$20262_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20262_pendingMessages_=[];this.enableAsyncTest_=O;this.JSC$20262_getXsrfToken_=H;this.useAsyncBrowserChannelHandler_=Z;this.getAuthorizationHeader_=C;this.getAuthorizationHeaderSync_=g;this.enableCachedUpdateAuthorizationHeader_=U;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Hc();this.enableLoungeTokenRefresh_=A;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
F;this.disableMdxAuthForNonPlaybackMessages_=B;this.disableMdxAuthForAdMessages_=c;this.enableMdxAuthForConnectionOnly_=u;this.disableMdxAuthForShortsMessages_=S;this.JSC$20262_channelOpenedCounter=new I_x;this.JSC$20262_channelClosedCounter=new l_m;this.channelMessageSentCounter=new QEx;this.JSC$20262_channelMessageReceivedCounter=new mu1;this.JSC$20262_channelErrorCounter=new Eg5;this.pendingMapsOnClosedCounter=new Gnx;this.undeliveredMapsOnClosedCounter=new RI5};
vgx=function(N){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;N=N||document.location.href;var t=Number(_.KF(N)[4]||null)||"";t&&(this.port=":"+t);this.domain=_.Fe(N)||"";N=_.$x();N.search("MSIE")>=0&&_.yv(N.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
f2=function(N){N=N||{};this.name=N.name||"";this.id=N.id||N.screenId||"";this.token=N.token||N.loungeToken||"";this.uuid=N.uuid||N.dialId||"";this.idType=N.screenIdType||"normal";this.secret=N.screenIdSecret||""};
Jqm=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(N){var t=Math.random()*16|0;return(N=="x"?t:t&3|8).toString(16)})};
ogr=function(N){return _.rc(N,function(t){return{key:t.id,name:t.name}})};
sEm=function(N,t){return _.ey(N,function(O){return O||t?!O!=!t?!1:O.id==t.id:!0})};
n2=function(N,t){return _.ey(N,function(O){return NPr(O,t)})};
ZS5=function(){var N=tSr(),t=OSx();if(HS1()){var O=N,H=_.kM9(O,t);H<0&&_.PQt(O,-(H+1),0,t)}N=Alm(N);if(N.length==0)try{_.Ppp("remote_sid")}catch(A){}else try{_.Xe("remote_sid",N.join(","),-1)}catch(A){}};
tSr=function(){var N=_.b8("yt-remote-connected-devices")||[];N.sort(_.xzt);return N};
Alm=function(N){if(N.length==0)return[];var t=N[0].indexOf("#"),O=t==-1?N[0]:N[0].substring(0,t);return _.rc(N,function(H,A){return A==0?H:H.substring(O.length)})};
VSf=function(N){_.ML("yt-remote-connected-devices",N,86400)};
OSx=function(){if(D4m)return D4m;var N=_.b8("yt-remote-device-id");N||(N=Jqm(),_.ML("yt-remote-device-id",N,31536E3));for(var t=tSr(),O=1,H=N;_.W4(t,H);)O++,H=N+"#"+O;return D4m=H};
U41=function(){return _.b8("yt-remote-session-browser-channel")};
HS1=function(){return _.b8("yt-remote-session-screen-id")};
Fpf=function(N){N.length>5&&(N=N.slice(N.length-5));var t=_.rc(Clz(),function(H){return H.loungeToken}),O=_.rc(N,function(H){return H.loungeToken});
_.xGv(O,function(H){return!_.W4(t,H)})&&Kpm();
_.ML("yt-remote-local-screens",N,31536E3)};
Clz=function(){return _.b8("yt-remote-local-screens")||[]};
Kpm=function(){_.ML("yt-remote-lounge-token-expiration",!0,86400)};
d4f=function(N){N||(_.pT("yt-remote-session-screen-id"),_.pT("yt-remote-session-video-id"));ZS5();N=tSr();_.rt(N,OSx());VSf(N)};
ylm=function(){gfm();return WQ?!!WQ.get("yt-remote-use-staging-server"):!1};
gfm=function(){if(!WQ){var N=_.lP();N&&(WQ=new _.nF(N))}};
jCf=function(N,t,O,H,A){O=O===void 0?function(){return""}:O;
var Z=function(){return new qh(rC(N,"/bc"),t,!1,O,H)};
return _.h("enable_mdx_web_channel_desktop")?new BP5(function(){return new clO(rC(N,"/wc"),t,O)}):new $4q(Z,A)};
hNn=function(){var N=iSm;uQf();I4.push(N);SIm()};
la=function(N,t){uQf();var O=MS5(N,String(t));I4.length==0?bS5(O):(SIm(),_.Z9(I4,function(H){H(O)}))};
QF=function(N){la("CP",N)};
uQf=function(){I4||(I4=_.s2("yt.mdx.remote.debug.handlers_")||[],_.Ba("yt.mdx.remote.debug.handlers_",I4))};
bS5=function(N){var t=(p7r+1)%50;p7r=t;LpO[t]=N;zN5||(zN5=t==49)};
SIm=function(){var N=I4;if(LpO[0]){var t=zN5?p7r:-1,O={};do O={record$jscomp$15:void 0},t=(t+1)%50,O.record$jscomp$15=LpO[t],_.Z9(N,function(H){return function(A){A(H.record$jscomp$15)}}(O));
while(t!=p7r);LpO=Array(50);p7r=-1;zN5=!1}};
MS5=function(N,t){var O=(Date.now()-YIz)/1E3;O.toFixed&&(O=O.toFixed(3));var H=[];H.push("[",O+"s","] ");H.push("[","yt.mdx.remote","] ");H.push(N+": "+t,"\n");return H.join("")};
mM=function(N){_.cQ.call(this);this.JSC$20287_logName_=N;this.screens=[]};
Gt=function(N){mM.call(this,"LocalScreenService");this.JSC$20294_http_=N;this.loungeTokenRefreshTimer_=NaN;E5(this);this.info("Initializing with "+aZ1(this.screens))};
R4=function(N,t){t=t===void 0?!1:t;mM.call(this,"ScreenService");this.JSC$20300_http_=N;this.disableAutomaticScreenCache_=t;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};TPJ(this)};
vQ=function(N,t,O){_.cQ.call(this);this.JSC$20304_logName_=O;this.JSC$20304_screenService_=N;this.receiver_=t;this.screen_=null};
Efx=function(N,t,O){O.disableCastApi?Ja("Cannot initialize because disabled by Mdx config."):w7i()?eNn(N,O)&&(Pl5(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?X75(t):(window.__onGCastApiAvailable=function(H,A){H?X75(t):(o4("Failed to load cast API: "+A),x4O(!1),Pl5(!1),_.pT("yt-remote-cast-available"),_.pT("yt-remote-cast-receiver"),kh5(),t(!1))},O.loadCastApiSetupScript?_.XU(qIx):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
fZ5()>=60&&nf1():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Wp1():fZ5()>=89?rlr():(IZ5(),lZm(QCq.map(m4m))))):Ja("Cannot initialize because not running Chrome")};
kh5=function(){Ja("dispose");var N=s5();N&&N.dispose();_.Ba("yt.mdx.remote.cloudview.instance_",null);Ghq(!1);_.urv(RN5);RN5.length=0};
vfn=function(){return!!_.b8("yt-remote-cast-installed")};
Jl1=function(){var N=_.b8("yt-remote-cast-receiver");return N?N.friendlyName:null};
of5=function(){Ja("clearCurrentReceiver");_.pT("yt-remote-cast-receiver")};
sCf=function(){return vfn()?s5()?s5().getCastSession():(o4("getCastSelector: Cast is not initialized."),null):(o4("getCastSelector: Cast API is not installed!"),null)};
t05=function(N,t){NQm()?s5().setConnectedScreenStatus(N,t):o4("setConnectedScreenStatus called before ready.")};
w7i=function(){var N=_.$x().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.FA||N};
eNn=function(N,t){var O=!1;s5()||(N=new Nx(N,t),N.subscribe("yt-remote-cast2-availability-change",function(H){_.ML("yt-remote-cast-available",H);L2("yt-remote-cast2-availability-change",H)}),N.subscribe("yt-remote-cast2-receiver-selected",function(H){Ja("onReceiverSelected: "+H.friendlyName);
_.ML("yt-remote-cast-receiver",H);L2("yt-remote-cast2-receiver-selected",H)}),N.subscribe("yt-remote-cast2-receiver-resumed",function(H){Ja("onReceiverResumed: "+H.friendlyName);
_.ML("yt-remote-cast-receiver",H);L2("yt-remote-cast2-receiver-resumed",H)}),N.subscribe("yt-remote-cast2-session-change",function(H){Ja("onSessionChange: "+Ol5(H));
H||_.pT("yt-remote-cast-receiver");L2("yt-remote-cast2-session-change",H)}),_.Ba("yt.mdx.remote.cloudview.instance_",N),O=!0);
Ja("cloudview.createSingleton_: "+O);return O};
s5=function(){return _.s2("yt.mdx.remote.cloudview.instance_")};
X75=function(N){x4O(!0);Pl5(!1);s5().init(!1,function(t){t?(Ghq(!0),_.S4l("yt-remote-cast2-api-ready")):(o4("Failed to initialize cast API."),x4O(!1),_.pT("yt-remote-cast-available"),_.pT("yt-remote-cast-receiver"),kh5());N(t)})};
Ja=function(N){la("cloudview",N)};
o4=function(N){la("cloudview",N)};
x4O=function(N){Ja("setCastInstalled_ "+N);_.ML("yt-remote-cast-installed",N)};
NQm=function(){return!!_.s2("yt.mdx.remote.cloudview.apiReady_")};
Ghq=function(N){Ja("setApiReady_ "+N);_.Ba("yt.mdx.remote.cloudview.apiReady_",N)};
Pl5=function(N){_.Ba("yt.mdx.remote.cloudview.initializing_",N)};
tW=function(N){this.index=-1;this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(N)};
gD1=function(N){gfm();if(!WQ||!WQ.get("yt-remote-disable-remote-module-for-dev")){N=_.Ro("MDX_CONFIG")||N;FBJ();ZS5();Hl1||(Hl1=new vgx(N?N.loungeApiHost:void 0),ylm()&&(Hl1.basePath="/api/loungedev"));OA||(OA=_.s2("yt.mdx.remote.deferredProxies_")||[],_.Ba("yt.mdx.remote.deferredProxies_",OA));AwJ();var t=Zlm();if(!t){var O=new R4(Hl1,N?N.disableAutomaticScreenCache||!1:!1);_.Ba("yt.mdx.remote.screenService_",O);t=Zlm();var H={};N&&(H={appId:N.appId,disableDial:N.disableDial,theme:N.theme,loadCastApiSetupScript:N.loadCastApiSetupScript,
disableCastApi:N.disableCastApi,enableDialLoungeToken:N.enableDialLoungeToken,enableCastLoungeToken:N.enableCastLoungeToken,forceMirroring:N.forceMirroring});_.Ba("yt.mdx.remote.enableConnectWithInitialState_",N?N.enableConnectWithInitialState||!1:!1);Efx(O,function(Z){Z?V0J()&&t05(V0J(),"YouTube TV"):O.subscribe("onlineScreenChange",function(){L2("yt-remote-receiver-availability-change")})},H)}if(N&&!_.s2("yt.mdx.remote.initialized_")){_.Ba("yt.mdx.remote.initialized_",!0);
Dd5("Initializing: "+(0,_.r3)(N));HB.push(_.Mg("yt-remote-cast2-api-ready",function(){L2("yt-remote-api-ready")}));
HB.push(_.Mg("yt-remote-cast2-availability-change",function(){L2("yt-remote-receiver-availability-change")}));
HB.push(_.Mg("yt-remote-cast2-receiver-selected",function(){Ud1();L2("yt-remote-auto-connect","cast-selector-receiver")}));
HB.push(_.Mg("yt-remote-cast2-receiver-resumed",function(){L2("yt-remote-receiver-resumed","cast-selector-receiver")}));
HB.push(_.Mg("yt-remote-cast2-session-change",CC5));HB.push(_.Mg("yt-remote-connection-change",function(Z){Z?t05(V0J(),"YouTube TV"):Ke1()||(t05(null,null),of5())}));
HB.push(_.Mg("yt-remote-cast2-session-failed",function(){L2("yt-remote-connection-failed")}));
H=Fe1();N.isAuto&&(H.id+="#dial");var A=N.capabilities||[];A.length>0&&(H.capabilities=A);H.name=N.device;H.app=N.app;(N=N.theme)&&(H.theme=N);Dd5(" -- with channel params: "+(0,_.r3)(H));H?(_.ML("yt-remote-session-app",H.app),_.ML("yt-remote-session-name",H.name)):(_.pT("yt-remote-session-app"),_.pT("yt-remote-session-name"));_.Ba("yt.mdx.remote.channelParams_",H);t.start();V0J()||dd5()}}};
BQx=function(){var N=Zlm().instance_.$_gos();var t=yw5();t&&AW()&&(sEm(N,t)||N.push(t));return ogr(N)};
cwm=function(){var N=BQx(),t=yw5();t||(t=Ke1());return _.ey(N,function(O){return t&&NPr(t,O.key)?!0:!1})};
yw5=function(){var N=V0J();if(!N)return null;var t=Zlm().getScreens();return n2(t,N)};
CC5=function(N){Dd5("remote.onCastSessionChange_: "+Ol5(N));if(N){var t=yw5();if(t&&t.id==N.id){if(t05(t.id,"YouTube TV"),N.idType=="shortLived"&&(N=N.token))$dr&&($dr.token=N),(t=AW())&&t.setLoungeToken(N)}else t&&jGm(),ilm(N,1)}else AW()&&jGm()};
jGm=function(){NQm()?s5().stopSession():o4("stopSession called before API ready.");var N=AW();N&&(N.disconnect(1),uAn(null))};
Sdi=function(){var N=AW();return N&&N.getProxyState()!=3?new Ze(AW(),void 0):null};
Dd5=function(N){la("remote",N)};
Zlm=function(){if(!hGx){var N=_.s2("yt.mdx.remote.screenService_");hGx=N?new M0z(N):null}return hGx};
V0J=function(){return _.s2("yt.mdx.remote.currentScreenId_")};
blm=function(N){_.Ba("yt.mdx.remote.currentScreenId_",N)};
Ud1=function(){_.Ba("yt.mdx.remote.connectData_",null)};
AW=function(){return _.s2("yt.mdx.remote.connection_")};
uAn=function(N){var t=AW();Ud1();N||blm("");_.Ba("yt.mdx.remote.connection_",N);OA&&(_.Z9(OA,function(O){O(N)}),OA.length=0);
t&&!N?L2("yt-remote-connection-change",!1):!t&&N&&L2("yt-remote-connection-change",!0)};
Ke1=function(){var N=HS1();if(!N)return null;var t=Zlm();if(!t)return null;t=t.getScreens();return n2(t,N)};
ilm=function(N,t){pUO?$dr=N:(blm(N.id),N=new Vn(Hl1,N,Fe1(),_.s2("yt.mdx.remote.enableConnectWithInitialState_")||!1),N.connect(t,_.s2("yt.mdx.remote.connectData_")),N.subscribe("beforeDisconnect",function(O){L2("yt-remote-before-disconnect",O)}),N.subscribe("beforeDispose",function(){AW()&&uAn(null)}),N.subscribe("browserChannelAuthError",function(){var O=yw5();
O&&O.idType=="shortLived"&&(NQm()?s5().handleBrowserChannelAuthError():o4("refreshLoungeToken called before API ready."))}),uAn(N))};
dd5=function(){var N=Ke1();N?(Dd5("Resume connection to: "+Ol5(N)),ilm(N,0)):(d4f(),of5(),Dd5("Skipping connecting because no session screen found."))};
AwJ=function(){var N=Fe1();if(_.WW.isEmpty(N)){N=OSx();var t=_.b8("yt-remote-session-name")||"",O=_.b8("yt-remote-session-app")||"";N={device:"REMOTE_CONTROL",id:N,name:t,app:O,mdxVersion:3};N.authuser=String(_.Ro("SESSION_INDEX","0"));(t=_.Ro("DELEGATED_SESSION_ID"))&&(N.pageId=String(t));_.Ba("yt.mdx.remote.channelParams_",N)}};
Fe1=function(){return _.s2("yt.mdx.remote.channelParams_")||{}};
LeJ=function(){var N,t;return _.K(function(O){if(O.nextAddress==1)return(_.HCx()||_.h("use_new_nwl"))&&_.sHO().isNetworkAvailable()?O.yield(_.ca(),2):O.return();if(O.nextAddress!=3)return(N=O.yieldResult)?O.yield(TFi(N),3):O.return();t=O.yieldResult;if(!t.length)return O.return();t.forEach(function(H){var A={timestamp:H.timestamp};H=H.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:H.appShellAssetLoadReport,options:A}:H.clientError?{payloadName:"clientError",payload:H.clientError,
options:A}:void 0;H&&_.E7(H.payloadName,H.payload,H.options)});
t.length===100&&_.GB.addLowPriorityJob(LeJ);_.Ty(O)})};
zGm=function(N){if(N.playerResponse){if(N=N.playerResponse,N.messages&&N.messages.length>0&&(N=N.messages.find(function(t){return!(!t||!t.mealbarPromoRenderer)}))&&N.mealbarPromoRenderer)return N.mealbarPromoRenderer}else if(N.response&&(N=N.response)&&N.overlay&&N.overlay.mealbarPromoRenderer)return N.overlay.mealbarPromoRenderer};
Ydx=function(N){if(N.response){var t=N.response;if(t&&t.overlay&&t.overlay.tooltipRenderer)return t.overlay.tooltipRenderer}if(N.playerResponse&&(N=N.playerResponse,N.messages&&N.messages.length>0&&(N=N.messages.find(function(O){return!(!O||!O.tooltipRenderer)}))&&N.tooltipRenderer))return N.tooltipRenderer};
TQ5=function(N){if(!a7n&&(N=N||_.Ro("ZWIEBACK_PING_URLS"))&&N.length){a7n=!0;for(var t=0;t<N.length;t++)_.A_(N[t])}};
eG1=function(N){if(_.WW.get(_.Ro("PLAYER_VARS",{}),"privembed",!1)!="1"){N&&S41();try{wU5().then(function(){},function(){}),_.pF(eG1,18E5)}catch(t){_.JO(t)}}};
PCr=function(){var N=_.d0(),t=N.getFlag(119),O=window.devicePixelRatio>1;document.body&&_.t8(document.body,"exp-invert-logo")&&(O&&!_.t8(document.body,"inverted-hdpi")?_.mw(document.body,"inverted-hdpi"):!O&&_.t8(document.body,"inverted-hdpi")&&_.lb(document.body,"inverted-hdpi"));t!=O&&(_.g0(0,119,O),N.save())};
XU5=function(N){return N.filter(function(t){return"ypcGetCartEndpoint"in t||"ypcFixInstrumentEndpoint"in t})};
xdf=function(N){return N.filter(function(t){return!_.M(t,_.b_Q)})};
qd1=function(N,t){var O,H,A,Z,U,C,F;_.K(function(g){switch(g.nextAddress){case 1:O=_.Wi.getInstance();H=_.U4.instance;A=_.nE.instance;if(!A)return kl5(N,H,t),g.return();_.Mo(g,2);N.onLoadingCommand&&H.resolveCommand(N.onLoadingCommand);return g.yield(O.getCurrentPositionFromGeolocation(),4);case 4:Z=g.yieldResult;if(!N.resolveLocationCommand){g.jumpTo(5);break}U=O.createLocationInfo(Z);return g.yield(_.rq(A,N.resolveLocationCommand,{locationInfo:U}),6);case 6:C=g.yieldResult;if(!C||"error"in C&&C.error||
C.errorMetadata)return kl5(N,H,t),g.return();var B;if(C==null?0:(B=C.onResponseReceivedActions)==null?0:B.length){B=_.D(C.onResponseReceivedActions);for(var c=B.next();!c.done;c=B.next())H.resolveCommand(c.value)}(_.M(N.onSuccessCommand,_.rN)||_.M(N.onSuccessCommand,_.yE))&&_.or(t.hostElement,"yt-navigate",{endpoint:N.onSuccessCommand,reload:!0});case 5:_.Do(g,0);break;case 2:F=_.ax(g);if(F instanceof GeolocationPositionError&&F.code===GeolocationPositionError.PERMISSION_DENIED)return N.onDeniedCommand&&
H.resolveCommand(N.onDeniedCommand),g.return();kl5(N,H,t);_.Ty(g)}})};
kl5=function(N,t,O){N.onFailureCommand&&(t.resolveCommand(N.onFailureCommand),_.sl(O.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
nDO=function(N,t){var O=_.M(N,_.EbX);if(O&&t){N=O.videoIds||[O.videoId];var H;t=(H=_.or(t,"yt-lockup-requested",{videoIds:N}).detail)==null?void 0:H.returnValue;var A;O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?A=t?t:N.map(function(Z){return{videoId:Z,navigationEndpoint:O.videoCommand}}):t&&(A=t);
A&&(H=A.map(function(Z){var U=Object,C=U.assign;var F=Z.navigationEndpoint;if(!_.M(F,_.jc)){var g=_.M(F,_.rN);if(g){if(delete g.index,delete g.playlistId,g=_.M(F==null?void 0:F.commandMetadata,_.Da),g==null?0:g.url){var B=g.url;B=_.El(B,"list");B=_.El(B,"index");g.url=B}}else F=void 0}return C.call(U,{},Z,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:F})}),f71(H,O))}};
Wez=function(N){var t=_.h7();if(N=_.M(N,_.GcQ))N.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&t.clearQueue(),N.closeMiniplayer&&_.cY().resolve(_.kf).close(!0)};
I7r=function(N){rw1(_.h7(),N)};
l7i=function(N){var t;(N=(t=_.M(N,_.Q3Y))==null?void 0:t.setVideoIds)&&N.forEach(function(O){_.Wi0(_.h7(),O)})};
mdx=function(N){QGm(_.h7(),N)};
EDO=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(N){return!1}};
Gln=function(N){var t=["h","m","s"],O=_.Il(t);O.reverse();var H={};N=(N.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(U){var C=(U.match(/[hms]/)||[""])[0];return C?(H[C]=parseInt(U.match(/\d+/)[0],10),!1):!0});
for(N.reverse();N.length&&O.length;){var A=O.shift();A in H||(H[A]=parseInt(N.shift(),10))}if(N.length||H.s>59||H.m>59||H.h>9)return null;var Z="";t.forEach(function(U){H[U]&&(Z+=""+H[U]+U)});
return Z||null};
RGJ=function(N,t){var O=_.Bkp(t,{},N,!0);return new Promise(function(H,A){O.listenOnce("n",function(){A(Error("Dl`"+O.JSC$30161_getErrorDescription()))});
O.listenOnce("l",function(){var Z=O.getResponseCode();if(Z!==200)A(Error("El`"+t+"`"+N.type+"`"+N.size+"`"+Z));else try{H(JSON.parse(O.getResponseText()).encryptedBlobId)}catch(U){A(U)}});
O.run()})};
vDz=function(N){return N.substring(N.indexOf(":")+1,N.indexOf(";"))};
Jwq=function(N){return new Promise(function(t,O){var H=new FileReader;H.onloadend=function(){try{var A=new Uint8Array(H.result);A.length<8&&O(void 0);var Z=A.subarray(0,8);A="";for(var U=0;U<Z.length;U++)A+=("0"+Z[U].toString(16)).substr(-2);A.startsWith("ffd8ff")?t("image/jpeg"):A.startsWith("47494638")?t("image/gif"):A.startsWith("89504e470d0a1a0a")?t("image/png"):A.startsWith("424d")?t("image/bmp"):t(void 0)}catch(C){O(C)}};
H.onerror=O;H.readAsArrayBuffer(N)})};
oD5=function(N){return new Promise(function(t,O){var H=new Image;H.crossOrigin="anonymous";H.onload=function(){var A=document.createElement("canvas");A.width=H.naturalWidth;A.height=H.naturalHeight;var Z=A.getContext("2d");if(!Z)throw Error("Fl");Z.drawImage(H,0,0);Z=vDz(N);A.toBlob(function(U){U?t(U):O()},Z)};
H.src=N})};
NIO=function(N,t){var O;if(((O=_.M(N,_.jc))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var H;_.or((H=t.hostElement)!=null?H:t,"yt-shorts-reset");_.dn5(_.cY().resolve(_.RZ),N).then(function(Z){sGm(Z,t,N)})}else{var A;
_.tb((A=t.hostElement)!=null?A:t,[N]).then(function(Z){Z&&sGm(Z.data,t,N)})}};
sGm=function(N,t,O){if(N){var H=_.M(N.replacementEndpoint,_.jc);if(H){N.sequenceContinuation&&(H.sequenceParams=N.sequenceContinuation);var A;_.or((A=t.hostElement)!=null?A:t,"yt-navigate",{endpoint:N.replacementEndpoint})}else if((N==null?void 0:N.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(N==null?0:N.watchStatus)&&_.M(N.watchStatus,_.PKX)){var Z;_.or((Z=t.hostElement)!=null?Z:t,"yt-navigate",{endpoint:O})}}};
tWx=function(N){var t=_.cY().resolve(_.VT),O=_.Wz.currentPageTypeSelector(t.getState())||"";t=_.Wz.currentPageSubTypeSelector(t.getState())||"";O=O==="ytd-browse"&&t==="home";return _.h("web_guide_entry_enable_cache_for_non_home_pages")?(N=(N==null?void 0:N.navigationEndpoint)&&_.gY(N.navigationEndpoint)==="home",{disableCache:O&&N}):{disableCache:O}};
ACJ=function(N,t,O,H){if(t!=null&&t.isPrimary){a:{var A=t.formattedTitle,Z=H===1?t.navigationEndpoint:void 0;if(O&&O.length){var U={};if(A){var C=void 0;Z&&(C={commandContext:{onTap:{innertubeCommand:Z||{}}}});U.header={panelHeaderViewModel:{title:_.zb(A),rendererContext:C}}}A=[];O=_.D(O);for(Z=O.next();!Z.done;Z=O.next()){C=Z.value;Z=_.M(C,OAO);C=_.M(C,HAn);var F=void 0,g=void 0;if((F=C)==null?0:(g=F.expandableItems)==null?0:g.length)for(C=_.D(C.expandableItems),F=C.next();!F.done;F=C.next()){F=
F.value.guideEntryRenderer;var B=g=void 0;if(((g=F)==null?void 0:(B=g.icon)==null?void 0:B.iconType)==="VIEW_LIST_CAIRO"){Z=F;break}}g=F=void 0;C=((F=Z)==null?0:F.formattedTitle)?_.zb((g=Z)==null?void 0:g.formattedTitle):void 0;F=void 0;g=(F=Z)==null?void 0:F.isPrimary;if(Z&&C&&!g){C={title:C};Z.navigationEndpoint&&(C.rendererContext={commandContext:{onTap:{innertubeCommand:Z.navigationEndpoint}}});F=[];B=g=void 0;if(((g=Z)==null?0:(B=g.thumbnail)==null?0:B.thumbnails)&&Z.thumbnail.thumbnails.length>
0){g=_.D(Z.thumbnail.thumbnails);for(B=g.next();!B.done;B=g.next())F.push({url:B.value.url});C.leadingAccessory={avatarViewModel:{image:{sources:F},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(g=void 0,(g=Z.icon)==null?0:g.iconType)F.push({clientResource:{imageName:Z.icon.iconType||""}}),C.leadingImage={sources:F};g=F=void 0;((F=Z)==null?0:(g=F.badges)==null?0:g.liveBroadcasting)?(C.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",C.trailingImage={sources:[{clientResource:{imageName:"live",
imageColor:4294901760}}]},C.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):Z.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?C.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":Z.count&&(C.trailingLabel={content:Z.count.toString()});A.push({listItemViewModel:C})}}A.length!==0?(U.content={listViewModel:{listItems:A}},H===0&&(U.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):U=void 0;if(U){A=void 0;H===0&&(A={preventCloseWhileHovered:!0,
hideDelayMs:3E3});U={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:U}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:A}}};break a}}U=void 0}H===1&&U?(t.serviceEndpoint=U,t.navigationEndpoint=void 0):H===0&&U&&(t.mouseEnterEndpoint=U,t.mouseLeaveEndpoint={hideSheetCommand:{}});N.push({guideEntryRenderer:t})}};
ZAf=function(N){if(!N)return!1;try{if(N.host&&N.host.tagName==="YT-FORMATTED-STRING"&&N.host.id==="contenteditable-textarea"||N.nodeType===Node.ELEMENT_NODE&&N.tagName==="YTD-COMMENT-INPUT")return!0}catch(t){return!1}return ZAf(N.parentNode)};
De=function(N){return N?N.tagName==="A"&&N.href&&N.classList.contains("yt-simple-endpoint"):!1};
VW1=function(N){return N?N.tagName==="IMG"&&N.classList.contains("emoji"):!1};
DOq=function(N,t,O){if(!N)return null;var H=De(N);if(H&&O)return t=N.pathname.substring(N.pathname.indexOf("/channel/")+9),document.createTextNode("@"+t);if(H&&!O)return document.createTextNode("");if(VW1(N))return O=N.alt,N=N.dataset.emojiId,!N&&t&&(t=_.Z_(t,O))&&t.isCustomEmoji&&(N=t.emojiId),N?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+N+">"):document.createTextNode(O);H=N.cloneNode(!1);for(var A=0;A<N.childNodes.length;++A){var Z=DOq(N.childNodes[A],t,O);Z&&H.appendChild(Z)}return H};
UOm=function(N){return N?De(N)?N:UOm(N.lastChild):null};
CtO=function(N){return N?De(N)?N:CtO(N.firstChild):null};
Ks5=function(N){if(!N)return null;for(var t=N.previousSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.previousSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.previousSibling;else break;(t=UOm(t))?N=t:N=(N=N.parentNode)?UOm(N.previousElementSibling):null;return N};
Fsf=function(N){if(!N)return null;for(var t=N.nextSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.nextSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.nextSibling;else break;return(t=CtO(t))?t:Fsf(N.parentNode)};
dOO=function(N){var t=_.D_(),O=t.JSC$11498_getStartNode();if(!ZAf(O.parentNode))return null;t=t.JSC$11498_getStartOffset();if(O.nodeType===Node.TEXT_NODE){var H=_.EW(O,De);if(H){if(N&&t===0||!N&&t===O.length)return H}else{if(N&&t===O.length)return!O||O.nodeName==="BR"||O.nextElementSibling&&_.U9(O.nextElementSibling,"display")==="block"?null:CtO(O.nextElementSibling);if(!N&&t===0)return O?UOm(O.previousElementSibling):null}}if(O.nodeType===Node.ELEMENT_NODE)if(N){if(0<=t&&t<O.childNodes.length)return CtO(O.childNodes[t])}else if(0<
t&&t<=O.childNodes.length)return UOm(O.childNodes[t-1]);return null};
gGi=function(N,t,O){if(!N)return null;if(N.nodeType===Node.TEXT_NODE)if(O){var H=Ks5(N);if(H&&!/^\s+\S/.test(N.wholeText.substr(0,t)))return H}else if((H=Fsf(N))&&!/\S\s+/.test(N.wholeText.substr(t,N.wholeText.length)))return H;return N.nodeType===Node.ELEMENT_NODE?O?Ks5(N.childNodes[t]):Fsf(N.childNodes[t]):gGi(N.parentNode,t,O)};
yCf=function(N){if(N.hasChildNodes())switch(N.tagName){case "DIV":case "A":case "SPAN":var t="";for(N=N.firstChild;N;N=N.nextSibling)t+=yCf(N);return t;default:return""}else switch(N.nodeType){case 3:return N.textContent;default:return""}};
BIO=function(N){switch(N){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}};
cC5=function(N){return N.map(function(t){return{settingsRadioOptionRenderer:{title:_.O_(t.name),asideText:_.O_(t.approximateSize),id:BIO(t.format)}}})};
j5q=function(N){if(N&&N.length!==0)return N.filter($Om()).map(function(t){return{settingsRadioOptionRenderer:{title:t.name,asideText:t.approximateSize,id:BIO(t.formatType)}}})};
iAx=function(N){if(N)return N.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
uJi=function(N,t){N=new Set(N!=null?N:[]);if(N.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(N.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(N.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(N.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(N.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(t)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Swf=function(N){var t=N.indexOf("(");return t!==-1?N.substring(t+1,N.length-1):N};
_.MWx=function(N,t,O,H,A){O||(O=h4O);var Z;(Z=_.M(O.commandMetadata,_.Da))!=null&&Z.url||(O=Error("Kl`"+JSON.stringify(O)),_.R0(O),O=h4O);O=_.WW.unsafeClone(O);Z=_.ty(_.M(O.commandMetadata,_.Da).url,"search_query",N);_.s$(location.href,"sv")==="1"&&(_.M(O,_.Bi).params="EgOAAgE%3D",Z=_.ty(Z,"sv","1"));_.M(O,_.Bi)&&(_.M(O,_.Bi).query=N);Z=Z.replace(/%20/g,"+");_.M(O.commandMetadata,_.Da).url=Z;A=_.h("desktop_enable_entity_suggest")?{entityMid:A}:{};_.cY().resolve(_.jo).resolveCommand(O,{form:{tempData:Object.assign({},
{gs_l:t,oq:H!=null?H:N},A),isFromShorts:_.EM()==="shorts"}})};
bA1=function(N){switch(N){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
Lsf=function(N,t,O,H,A,Z){var U=_.WW.clone(p1q);U.locale=_.Ro("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;U.report={description:A||"<empty>"};A=_.Ro("SBOX_SETTINGS",{});t=t.join(",");var C=Date.now();N={choice_cc:H,choice_id_cc:O,choices_sc:t,gl:A.REQUEST_DOMAIN,hl:A.REQUEST_LANGUAGE,query:N,time:C};Z&&(N.choice_additional_comment_cc=Z);_.upX(U,N)};
z4x=function(N){var t=new Map;t.set("authuser",_.Ro("SESSION_INDEX","0"));return _.iw(N,t)};
ab5=function(N){var t;return _.K(function(O){switch(O.nextAddress){case 1:if(!N||!Ywq(N))return O.return(null);t=null;switch(_.Ro("INNERTUBE_CLIENT_NAME")){case "WEB":return O.jumpTo(2);case "WEB_REMIX":t=N.getPlayer()}O.jumpTo(3);break;case 2:return O.yield(N.getPlayerPromise(),4);case 4:t=O.yieldResult;O.jumpTo(3);break;case 3:return O.return(t)}})};
Ywq=function(N){return["ytd-player","ytmusic-player"].includes(String(N.tagName||"").toLowerCase())};
TIf=function(N){N=Math.round(N);return N%2?N-1:N};
w15=function(N){N=Math.round(N);return N%2===0?N-1:N};
e4x=function(N){var t,O,H;if(N=(t=N.createPlaylistDialogFormSchema)==null?void 0:(O=t.fieldSchemas)==null?void 0:(H=O.title)==null?void 0:H.validationSchema)for(t=[N.syncStep,N.asyncStep].filter(function(A){return A!==void 0}),t=_.D(t),O=t.next();!O.done;O=t.next()){O=O.value.rules;
if(!O)break;O=_.D(O);for(O=O.next();!O.done;O=O.next())return _.M(O.value,_.wvf)}};
X1q=function(N){var t,O,H;if(N=(t=N.createPlaylistDialogFormSchema)==null?void 0:(O=t.fieldSchemas)==null?void 0:(H=O.visibility)==null?void 0:H.validationSchema)for(t=[N.syncStep,N.asyncStep].filter(function(A){return A!==void 0}),t=_.D(t),O=t.next();!O.done;O=t.next()){O=O.value.rules;
if(!O)break;O=_.D(O);for(H=O.next();!H.done;H=O.next())if(H=_.M(H.value,Pt5))return t=void 0,(t=H.translations)==null?void 0:t.visibilityNotValidErrorMessage}};
xOm=function(){var N,t;return(t=(N=_.cY().resolve(_.BY(_.WV)))==null?void 0:N())!=null?t:!1};
kj5=function(N){var t=21;if(!N)return t;t+=N.headerTitle?27:0;t+=N.headerTitle&&N.hasHeaderActionHeader?4:0;return t+=N.headerTitle&&N.headerSubtitle?16:0};
qwn=function(N){var t=0;if(!N)return t;t+=N.hasFooterPrimaryButton||N.hasFooterSecondaryButton?48:0;t+=N.footerTrailingLabel||N.footerLeadingLabel?30:0;return t+=N.hasFooterPrimaryButton||N.hasFooterSecondaryButton||!N.footerTrailingLabel&&!N.footerLeadingLabel?0:12};
fbx=function(N){var t=new _.wE,O=N;return{subscribe:function(H){t.subscribe("changed",H)},
dispatch:function(H,A){var Z=O;if(H==="Touch Start")O=Object.assign({},Z,{isAnimating:!1,initialY:A.event.touches[0].clientY});else if(H==="Touch Move"){H=A.contentScrollable?-1*(Z.initialY-24):0;var U,C=(U=A.headerDivHeight)!=null?U:kj5(A.header),F;U=(F=A.footerDivHeight)!=null?F:qwn(A.footer);F=Math.min(A.fullContentWrapperHeight,A.heightMap[A.contentWrapperId]+C-U);O=Object.assign({},Z,{currentY:Math.max(H,A.event.touches[0].clientY-Z.initialY),maxHeightForContentWrapper:Math.min(F,Math.max(0,
(Z.isFullScreen?F:A.contentWrapperHeight)-Z.currentY))})}else O=H==="Snap To Full Screen"?Object.assign({},Z,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:A.maxHeight}):H==="Snap To Neutral Position"?Object.assign({},Z,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:A.maxHeight}):H==="Close Sheet"?Object.assign({},Z,{isAnimating:!0,currentY:A.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:A.maxHeight}):Z;t.publish("changed",O)}}};
nG5=function(){_.cY().resolve(_.HD).closeSheet()};
Ws5=function(N){var t,O,H,A,Z,U,C,F,g,B,c;return{headerTitle:(t=N.headerTitle)==null?void 0:t.call(N),headerSubtitle:(O=N.headerSubtitle)==null?void 0:O.call(N),headerActionHeader:N.headerActionHeader,footerPrimaryButton:N.footerPrimaryButton,footerSecondaryButton:N.footerSecondaryButton,footerButtonType:(H=N.footerButtonType)==null?void 0:H.call(N),footerLeadingLabel:(A=N.footerLeadingLabel)==null?void 0:A.call(N),footerTrailingLabel:(Z=N.footerTrailingLabel)==null?void 0:Z.call(N),shouldShowIcons:(U=
N.shouldShowIcons)==null?void 0:U.call(N),skipContentClick:(C=N.skipContentClick)==null?void 0:C.call(N),additionalClassName:(F=N.additionalClassName)==null?void 0:F.call(N),onClosedCallback:N.onClosedCallback,focusOnClose:(g=N.focusOnClose)==null?void 0:g.call(N),isDisabled:(B=N.isDisabled)==null?void 0:B.call(N),disabledCommand:(c=N.disabledCommand)==null?void 0:c.call(N),headerFn:N.headerFn,contentFn:N.contentFn,footerFn:N.footerFn,hasHeaderFn:N.hasHeaderFn(),hasContentFn:N.hasContentFn(),hasFooterFn:N.hasFooterFn(),
hasFooterPrimaryButton:N.hasFooterPrimaryButton(),hasFooterSecondaryButton:N.hasFooterSecondaryButton(),hasHeaderActionHeader:N.hasHeaderActionHeader()}};
rC5=function(N){switch(N){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}};
Ibn=function(N){switch(N){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}};
lb5=function(N){switch(N){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}};
Q5i=function(N,t,O){t.forEach(function(H){_.Q2(_.cY().resolve(_.ow),H)});
_.sl(N,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",O])};
R4q=function(N,t,O,H){var A=_.M(O,_.uA).commandLifeCycleConfig;A&&A.onStartCommand&&_.OK(N,[A.onStartCommand],t);_.qu(t);var Z=_.nE.instance;Z&&_.WH(Z,O)?_.rq(Z,O,H).then(function(U){if(!U||(U==null?0:U.error))return U=_.M(O,_.uA).serializedTransactionFlowLoggingParams,_.fi(t),_.M2(new UA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",U));_.fi(t);return{data:U}}).then(function(U){_.fi(t);
mOn(U.data);var C=U.data.command;C&&_.OK(N,[C],t);C=EG1(O,U.data);if(!C){var F=U.data;U=!1;if(F&&F.command&&_.M(F.command,_.Ab)){var g;F=((g=_.M(F.command,_.Ab))==null?void 0:g.commands)||[];for(g=0;g<F.length;g++)if(_.M(F[g],_.DGZ)){U=!0;break}}U||_.ou('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!C&&A&&A.onSuccessCommand?_.OK(N,[A.onSuccessCommand],t):C&&A&&A.onFailureCommand&&_.OK(N,[A.onFailureCommand],t)},function(){_.fi(t);
A&&A.onFailureCommand&&_.OK(N,[A.onFailureCommand],t);Gjz(O)}):_.R0(Error("Wl"),"ERROR")};
vGJ=function(N,t,O){var H=[t];O&&H.push(O);return _.tb(N,H).then(function(A){var Z=_.M(t,_.uA).serializedTransactionFlowLoggingParams,U=A.data,C=EG1(t,U);C?A=_.M2(new UA(C,Z)):mOn(U);return A},function(){var A=_.M(t,_.uA).serializedTransactionFlowLoggingParams;
Gjz(t);return _.M2(new UA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",A))})};
EG1=function(N,t){N=_.M(N,_.uA).serializedTransactionFlowLoggingParams;var O=null;switch(t.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":O="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":O="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":O="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}O?_.l8(O,N):oVr(N);return O};
Gjz=function(N){_.l8("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.M(N,_.uA).serializedTransactionFlowLoggingParams)};
mOn=function(N){if(N.trackingParams){var t=_.z8(),O=_.pv();t&&O&&_.qp(t,O,_.ib(N.trackingParams))}};
JCf=function(N,t,O){var H=_.nE.instance,A=_.k3t(_.Ro("YPC_MB_URL")),Z=(new _.X$x).init(),U=_.xMy(),C=_.M(O,_.H_E).languageCode;C===void 0?_.R0(Error("Ii"),"ERROR"):_.qs([Z,A]).then(function(){var F={ctk:_.Jq.payments.business.integration.ClientTokenFactory.createClientToken(C,U)};H&&_.WH(H,O)?_.rq(H,O,F).then(function(g){return{data:g}}).then(function(g){_.or(t,"yt-service-request-completed",g);
g.code!=="ERROR"&&(g=g.data.command)&&_.OK(N,[g],t)}):_.R0(Error("Wl"),"ERROR")})};
N31=function(N,t,O,H){var A=_.nE.instance;A&&_.WH(A,O)?_.rq(A,O,H).then(function(Z){return{data:Z}}).then(function(Z){oGx(N,t,O,Z)},function(){s5J(O)}):(A=_.cY().resolve(_.BY(_.u8)))&&A.requestDataForServiceEndpoint(O,H).then(function(Z){oGx(N,t,O,Z)},function(){s5J(O)})};
oGx=function(N,t,O,H){_.or(t,"yt-service-request-completed",H);if(H.code&&H.code=="ERROR")s5J(O);else{(H=H.data.commands)&&_.OK(N,H,t);var A;(N=(A=_.M(O,_.CRu))==null?void 0:A.serializedYpcPauseFlowLoggingParams)&&N&&_.Eg("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",N)}};
s5J=function(N){var t;(N=(t=_.M(N,_.CRu))==null?void 0:t.serializedYpcPauseFlowLoggingParams)&&N&&_.Eg("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",N,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
HV1=function(N,t,O){var H=_.nE.instance;H&&_.WH(H,O)?_.rq(H,O).then(function(A){return{data:A}}).then(function(A){tr1(N,t,O,A)},function(){OV1(O)}):(H=_.cY().resolve(_.BY(_.u8)))&&H.requestDataForServiceEndpoint(O).then(function(A){tr1(N,t,O,A)},function(){OV1(O)})};
tr1=function(N,t,O,H){_.or(t,"yt-service-request-completed",H);H.code&&H.code=="ERROR"?OV1(O):((H=H.data.commands)&&_.OK(N,H,t),(N=_.M(O,_.Kur).serializedYpcResumeFlowLoggingParams)&&N&&_.Eg("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",N))};
OV1=function(N){(N=_.M(N,_.Kur).serializedYpcResumeFlowLoggingParams)&&N&&_.Eg("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",N,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
A$q=function(N){N=N===void 0?{}:N;_.cY().resolve(_.Qd5).showFeedbackDialog(N.customProductData,N.feedbackContent,N.onFeedbackSubmitted,N.bucket)};
ZVm=function(N){N=N===void 0?{}:N;_.cY().resolve(_.Qd5).showHelpDialog(N.helpContext,N.articleId,N.productData)};
Vr5=function(){ZVm()};
DsO=function(){A$q()};
CM1=function(N,t,O){var H,A,Z,U,C,F,g;return _.K(function(B){switch(B.nextAddress){case 1:H=_.M(N,Us5);if((A=H)==null?0:A.productId){F={productId:H.productId,bucket:H.bucket,enableAnonymousFeedback:(C=H.enableAnonymousFeedback)!=null?C:!0,allowNonLoggedInFeedback:!0};g={feedbackChoice:O.feedbackChoice};if(!_.h("web_collect_offline_state")){B.jumpTo(8);break}_.Mo(B,9);return B.yield(DUm(g),11)}U={bucket:(Z=H)==null?void 0:Z.bucket};if(!_.h("web_collect_offline_state")){B.jumpTo(4);break}U.customProductData=
{};_.Mo(B,5);return B.yield(DUm(U.customProductData),7);case 7:_.Do(B,4);break;case 5:_.ax(B);case 4:A$q(U);B.jumpTo(0);break;case 11:_.Do(B,8);break;case 9:_.ax(B);case 8:_.h04(g),_.SBx("GFEEDBACK",g),H.productId==="5295751"&&(g.client_attestation=Number(_.Ro("CATSTAT",0))),H.productId==="5295751"&&(g.client_time=Date.now()/1E3/3600),H.productId==="5295751"&&(g.original_playback_id=_.o4Z||""),_.upX(F,g),_.Ty(B)}})};
K0i=function(N){if(N=_.M(N,_.SYS)){var t={bucket:N.bucketIdentifier};N.additionalDatas&&(t.customProductData={},N.additionalDatas.forEach(function(O){if(O=O.userFeedbackEndpointProductSpecificValueData)t.customProductData[O.key]=O.value}));
A$q(t)}};
F05=function(N){var t=_.VM.getInstance();var O=_.CJ("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var H=_.CJ("DELETE",void 0,"Delete"),A=_.CJ("CANCEL",void 0,"Cancel");O=Kwx(O,void 0,H,A,{signal:"DELETE_ALL_DOWNLOADS"});_.RB(t,[{openPopupAction:O}],N)};
gFz=function(){return _.K(function(N){return N.nextAddress==1?N.yield(_.cY().resolve(_.jx),2):N.yield(dsO(),0)})};
y$O=function(N){var t,O;return _.K(function(H){return H.nextAddress==1?(O=(t=_.M(N,_.Hd))==null?void 0:t.targetId)?H.yield(_.cY().resolve(_.jx),3):H.jumpTo(0):H.yield(_.cY().resolve(_.$B).deleteVideo(O),0)})};
c$n=function(N){var t,O;return _.K(function(H){return H.nextAddress==1?(O=(t=_.M(N,_.Hd))==null?void 0:t.targetId)?H.yield(_.cY().resolve(_.jx),3):H.jumpTo(0):H.yield(B31(_.cY().resolve(_.$B),O),0)})};
j7O=function(N){var t,O;return _.K(function(H){return(O=(t=_.M(N,_.Hd))==null?void 0:t.targetId)?H.yield($s1(O),0):H.jumpTo(0)})};
umn=function(){_.h("kevlar_woffle_refresh_dl_load_killswitch")||iVr()};
hDz=function(){_.h("kevlar_woffle")&&_.nT.instance&&SP5()};
bVq=function(N){var t;if((t=_.M(N,_.ye))==null||!t.videoId)return!1;Mrq(_.cY().resolve(_.$B),_.M(N,_.ye),N.clickTrackingParams);return!0};
L0m=function(N){var t;if((t=_.M(N,_.Bz))==null||!t.playlistId)return!1;pGz(_.cY().resolve(_.$B),_.M(N,_.Bz),N.clickTrackingParams);return!0};
YP5=function(N){var t=_.M(N,_.Qgy);(t==null?void 0:t.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(t==null?void 0:t.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||zDm(_.cY().resolve(_.$B),_.M(N,_.Qgy))};
T3f=function(N){N=_.M(N,_.SoZ);var t;(N==null?0:(t=N.actions)==null?0:t.length)&&aPm(N)};
PMO=function(N){var t,O;return _.K(function(H){t=_.M(N,wGz);return(O=t)!=null&&O.localWatchHistoryCommandType?H.yield(eD5(t),0):H.return()})};
xsf=function(){return _.K(function(N){return _.h("kevlar_enable_download_to_mobile")?N.yield(XGJ(),0):N.return()})};
kkx=function(N){setTimeout(function(){requestAnimationFrame(N)},80)};
qPq=function(N){return Object.entries(N).map(function(t){return t.join(":")}).join(";")};
nF5=function(N){var t,O,H;_.K(function(A){if(A.nextAddress==1)return A.yield(fP5(),2);t=A.yieldResult;O=_.U4.instance;switch(t){case "granted":H=N.getLocationCommand;break;case "denied":H=N.openDeniedDialogAction;break;case "prompt":H=N.openCollectionDialogAction;break;default:H=N.openCollectionDialogAction}H&&O.resolveCommand(H);_.Ty(A)})};
fP5=function(){var N,t;return _.K(function(O){if(O.nextAddress==1)return N="prompt",navigator.permissions?O.yield(navigator.permissions.query({name:"geolocation"}),3):O.jumpTo(2);O.nextAddress!=2&&(t=O.yieldResult,N=t.state);return O.return(N)})};
r$1=function(){_.K(function(N){return N.yield(_.W0z(),0)})};
IPr=function(){var N,t,O;return _.K(function(H){if(H.nextAddress==1)return N=_.cY().resolve(_.Sc),N?H.yield(_.rq(N,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.J_(Error("Zl")),H.return(void 0));if(t=H.yieldResult){if(t.errorMetadata)return _.J_(Error("$l`"+t.errorMetadata.status+"`"+t.error)),H.return(void 0);O=t.datasyncIds;_.AD1=O.length;return H.return(O)}_.J_(Error("am"));return H.return(void 0)})};
lP1=function(){IPr().then(function(N){N&&(Y41(N),NZm(N),M95(N),CFm(N))})};
Q7r=function(N){_.GB.addLowPriorityJob(function(){var t,O,H,A,Z;return _.K(function(U){switch(U.nextAddress){case 1:if(_.h("ytidb_clear_optimizations_killswitch")){U.jumpTo(2);break}t=_.kv("clear");if(t.startsWith("V")&&t.endsWith("||")){var C=[t];Y41(C);NZm(C);M95(C);CFm(C);return U.return()}O=bEz();H=Kbx();return U.yield(tp5(),3);case 3:return A=U.yieldResult,U.yield(a5i(),4);case 4:if(Z=U.yieldResult,!(O||H||A||Z))return U.return();case 2:N.isNetworkAvailable()?lP1():N.listenOnce("publicytnetworkstatus-online",
lP1),_.Ty(U)}})})};
CK=function(N){N={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.E_(N)}}}};_.U4.instance&&_.U4.instance.resolveCommand(N)};
msm=function(N){if(N){var t=_.gF();_.Ws(t,3854,void 0,{layer:0,parentLayer:4});switch(N){case 1:var O=238708;break;case 2:O=238715;break;case 3:O=238710;break;case 6:O=238709}O&&(N=_.dF(t,{veType:O}))&&_.lA(t,N)}};
EF5=function(N){if(N){var t=_.gF();_.Ws(t,3854,void 0,{layer:0,parentLayer:4});switch(N){case 1:var O=238714;break;case 2:O=238711;break;case 8:O=238709;break;case 7:O=238713;break;case 3:case 4:case 5:O=238712}O&&(N=_.dF(t,{veType:O}))&&_.lA(t,N)}};
Gkq=function(N){switch(N.latencyType){case 0:_.LJ("consent_primitive_flow");_.zT("cpit",N.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.zT("cpist",N.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.zT("cprtif",N.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.zT("cprtli",N.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.zT("cprt",N.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.zT("cpdt",N.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.zT("cpjct",N.timestampEpochMillis,"consent_primitive_flow")}};
Vz5=function(N,t){var O,H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r;return _.K(function(E){switch(E.nextAddress){case 1:_.Mo(E,2);(H=(O=_.M(N,RDO))==null?void 0:O.serializedConsentRequest)||(H=(A=_.M(N,vF5))==null?void 0:A.serializedConsentRequest);H&&(Z=J$J(_.Jg(H)));if(Z===void 0)return E.return();U=oFm(Z);U.latencyCallback=Gkq;t&&s7i(U,function(){t.then(function(J){J.pauseVideo();(new N51).increment()})});
return((C=_.M(N,RDO))==null?void 0:C.consentAction)==="CONSENT_ACTION_PREWARM"||((F=_.M(N,vF5))==null?void 0:F.consentAction)==="CONSENT_ACTION_PREWARM"?E.yield(tzn(U),5):E.yield(Ofn(U),6);case 6:g=E.yieldResult;B=_.S0(g,KK);if(B===1){if(((c=_.e0(g,Hf1,1,KK))==null?void 0:_.aG(c,1))===1||((u=_.e0(g,Hf1,1,KK))==null?void 0:_.aG(u,1))===2||((S=_.e0(g,Hf1,1,KK))==null?void 0:_.aG(S,1))===3)_.M(N,vF5)?CK(_.CJ("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
CK(_.CJ("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));msm((b=_.e0(g,Hf1,1,KK))==null?void 0:_.aG(b,1),_.y5(g,A8J,3,_.cA()))}else B===2?(((z=Zfx(g))==null?void 0:_.aG(z,1))===5?_.M(N,vF5)?CK(_.CJ("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):CK(_.CJ("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((w=Zfx(g))==null?void 0:_.aG(w,1))===1||((P=Zfx(g))==null?void 0:_.aG(P,1))===4?
CK(_.CJ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((x=Zfx(g))==null?void 0:_.aG(x,1))===7&&((l=Z)==null?void 0:(I=_.Sg(l,FE,4))==null?void 0:_.aG(I,4))!==1&&CK(_.CJ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),EF5((r=Zfx(g))==null?void 0:_.aG(r,1))):CK(_.CJ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));E.jumpTo(5);break;case 5:_.Do(E,0);break;case 2:_.ax(E),CK(_.CJ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.Ty(E)}})};
UK1=function(){if(!DKO.has("Worker")){DKO.set("Worker",!0);var N={api:"BROWSER_API_WEB_WORKER"};N.available="Worker"in window?!0:!1;_.E7("apiTest",N)}};
Cv1=function(N){return typeof N==="undefined"?"-1":String(Math.ceil(N/1048576))};
gEx=function(N,t){Kg1(new Fg5(_.M(t,dK5).addToken,_.M(t,dK5).commonToken)).then(function(){_.or(N,"yt-invoke-instrument-manager-action-completed")},function(O){_.or(N,"yt-invoke-instrument-manager-action-error",O)})};
dR=function(){return _.Ro("HTML_DIR")==="rtl"};
y8x=function(){var N,t;return(t=(N=window).matchMedia)==null?void 0:t.call(N,"(prefers-reduced-motion: reduce)").matches};
B55=function(N){var t=_.cY().resolve(_.BY(_.NX));if(t&&t.isAnyTransitionEnabled){var O={};t.viewTransitionCoordinator.registerElement(N,(O.slide="miniplayer-page-transition",O["lockup-to-watch"]="miniplayer-page-transition",O["learning-journey"]="miniplayer-page-transition",O))}};
c85=function(N,t,O){return{horizontalAlignment:N.x+O.width/2<t.width/2?"west":"east",verticalAlignment:N.y+O.height/2<t.height/2?"north":"south"}};
jj1=function(N,t,O,H,A){A=A===void 0?new _.IN(0,0):A;N=$Kr(N,t,O,H,!1);return new _.IN(N.x+A.x,N.y+A.y)};
$Kr=function(N,t,O,H,A){A=(A===void 0?0:A)?400:0;return new _.IN(N==="west"?16+(dR()?A:0):O.width-H.width-16-(dR()?0:A),t==="north"?16:O.height-H.height-16)};
if1=function(N,t){var O=0;N&&(O+=76);t&&(O+=285);return O};
ux1=function(N){return _.qd(N)};
SN1=function(N){var t=1;N=N.split(":");for(var O=[];t>0&&N.length;)O.push(N.shift()),t--;N.length&&O.push(N.join(":"));return O};
hf1=function(N){var t=new _.uM;return _.PU(t,11,N)};
Mzm=function(N){var t={};N=N.getAllResponseHeaders().split("\r\n");for(var O=0;O<N.length;O++)if(!_.Dp(N[O])){var H=SN1(N[O]),A=H[0];H=H[1];if(typeof H==="string"){H=H.trim();var Z=t[A]||[];t[A]=Z;Z.push(H)}}return _.WW.map(t,function(U){return U.join(", ")})};
gSx=function(N,t){return N.JSC$9951_xhr_?N.JSC$9951_xhr_.getResponseHeader(t):null};
bf1=function(N,t){if(N.isDisposed())throw Error("Ea");N.qv.sG("n");var O=_.m0(N.qv,function(){return N.u9f([t.iF,t.x3N,t.waR,t.xVK])},"n");
N.qv.mPE(O.length);N.qv.ck();return O};
pLO=function(N,t,O){Array.isArray(O)||(O=[String(O)]);_.bb0(N.JSC$10187_queryData_,t,O);return N};
SP5=function(){var N=_.nT.instance;_.K(function(t){return N.deferredInstallPrompt?t.yield(N.deferredInstallPrompt.prompt(),0):t.jumpTo(0)})};
Lgx=function(N,t,O){if(_.lQ(N))_.Z9(N,t,O);else for(N=_.Xca(N);;){var H=N.next();if(H.done)break;t.call(O,H.value,void 0,N)}};
zfm=function(N,t){var O=[];Lgx(t,function(H){try{var A=_.p0.prototype.getWrapper.call(this,H,!0)}catch(Z){if(Z=="Storage: Invalid value was encountered")return;throw Z;}A===void 0?O.push(H):_.PpY(A)&&O.push(H)},N);
return O};
KB5=function(N,t){zfm(N,t).forEach(function(O){_.p0.prototype.remove.call(this,O)},N)};
YNm=function(N){var t=_.F6;t._minimumZ=Math.max(t._minimumZ,N)};
aj5=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];T5O=function(N,t){_.F$(N.vm);N.vm=t};
wLJ=function(N,t,O,H){N.setState(5);var A=!!N.bvC&&aj5.includes(_.Fe(N.bvC)||"");try{var Z=new _.EP({program:t,globalName:O,eOu:{disable:!_.h("att_web_record_metrics")||!_.h("att_skip_metrics_for_cookieless_domains_ks")&&A,so:"aGIf"}});Z.rCc.then(function(){N.setState(6);H&&H(t)});
T5O(N,Z)}catch(U){N.setState(7),U instanceof Error&&_.J_(U)}};
efm=function(N,t,O,H,A,Z){var U=U===void 0?"trayride":U;O?(N.setState(2),_.XU(_.n1(O),function(){if(window[U])wLJ(N,H,U,A);else{N.setState(3);var C=_.kGO(O),F=document.getElementById(C);F&&(_.MFQ(C),F.parentNode.removeChild(F));_.J_(new _.fF("BL:ULB",O))}},Z)):t?(Z=_.Tu("SCRIPT"),t instanceof _.AY?_.Dx(Z,t):Z.textContent=t,Z.nonce=_.H6(document),document.head.appendChild(Z),document.head.removeChild(Z),window[U]?wLJ(N,H,U,A):(N.setState(4),_.J_(new _.fF("BL:ULBJ")))):_.J_(new _.fF("BL:ULV"))};
Pv5=function(){this.state=1;this.vm=null;this.bvC=void 0};
_.V=Pv5.prototype;_.V.initialize=function(N,t,O,H){this.bvC=H;if(N.program){var A;H=(A=N.interpreterUrl)!=null?A:null;if(N.interpreterSafeScript)A=_.QIG(N.interpreterSafeScript);else{var Z;A=(Z=N.interpreterScript)!=null?Z:null}N.interpreterSafeUrl&&(H=_.Rk(N.interpreterSafeUrl).toString());efm(this,A,H,N.program,t,O)}else _.J_(Error("sf"))};
_.V.isInitialized=function(){return!!this.vm};
_.V.getState=function(){return this.state};
_.V.isLoading=function(){return this.state===2};
_.V.invoke=function(N){N=N===void 0?{}:N;var t;this.vm?t=bf1(this.vm,{iF:N}):t=null;return t};
_.V.dispose=function(){T5O(this,null);this.setState(8)};
_.V.setState=function(N){this.state=N};
var XL5=function(N,t){return N.vm.snapshot(t)},xKz=function(N,t){var O=_.uP("botguard_async_snapshot_timeout_ms",3E3);
t=t===void 0?{}:t;O=O===void 0?3E3:O;return N.vm?new Promise(function(H,A){var Z=!1,U=_.GB.addJob(function(){Z=!0;A(Error("tf"))},1,O);
N.vm?XL5(N,{iF:t}).then(function(C){_.GB.cancelJob(U);Z||H(C)}).catch(function(C){_.GB.cancelJob(U);
Z||A(C)}):(_.GB.cancelJob(U),H(null))}):Promise.resolve(null)},k2x=["att/log"],h4O;
h4O={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var qNm={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},fjf=function(N,t){return _.B5(N,{mode:"readwrite",enableRetries:!0},function(O){return _.Byg(O,t,"settingEntity")})},nEx=function(N,t,O){return _.B5(N,{mode:"readonly",
enableRetries:!0},function(H){return _.edZ(H,t,O)})},Wgr=function(N){if(!N.storage)return!1;
a:{if(N.storage){try{var t=N.storage.get("TLPQtimestamp")}catch(O){}N=Number(t);if(!isNaN(N))break a}N=void 0}return N?Date.now()-N<864E5:!1},r8n=function(N){if(N.storage){try{var t=N.storage.get("TLPQindex")}catch(O){}N=Number(t);
if(!isNaN(N))return N}},Ijm=function(N,t){N.queueProxy&&t.forEach(function(O){if(O.videoId&&O.trackingParams&&N.queueProxy instanceof _.y6){var H=_.z8();
N.queueProxy.attributionData.set(O.videoId,{enqueueingVe:_.ib(O.trackingParams).getAsJson(),enqueueingCsn:H?H:void 0,clientEnqueueingTimeMs:Math.floor((0,_.jg)()).toString()})}})},ljf=function(N){var t=_.c1Q(N);
t!=N.currentSnapState_&&(N.currentSnapState_=t,N.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},gR=function(N){this.JSC$13375_networkManager_=N;
this.partCallbacks_=[]};
gR.prototype.getCacheKeyForEndpoint=function(N){return _.H_y(N,!1)};
gR.prototype.onPartsCallback_=function(N){this.partCallbacks_.forEach(function(t){N&&t(N)})};
var yn=function(N,t,O){gR.call(this,N);this.player_=t;this.autoplayData_=O};
_.p(yn,gR);yn.prototype.getCacheKeyForEndpoint=function(N){return _.H_y(N,!!this.autoplayData_)};
yn.prototype.getTempData=function(N,t){t=t.timeBeforeNextVideo;N={itct:N.clickTrackingParams,lact:_.jO(),pbis:t,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(N.autonav=1);return N};
yn.prototype.getXhrParams=function(N){return Object.assign({pbj:"prefetch"},N)};
yn.prototype.getParams=function(N){N={frags:N.fragmentsRequested.join(",")};_.h("kevlar_droppable_prefetchable_requests")&&(N.prefetch=1);return N};
var Qjm=function(N){N.playerEvents_.forEach(function(t){N.player.removeEventListener(t.eventName,t.callback)});
N.playerEvents_.length=0},mK5=function(N,t,O){this.player=N;
this.JSC$13385_taskManager=t;this.prefetchDelay=O;this.completionResolver_=null;this.playerEvents_=[]};
mK5.prototype.start=function(){var N=this;this.completionResolver_=_.lj();_.fV(this.completionResolver_.promise,function(){Qjm(N);N.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var EEm=function(N,t,O){N.player.addEventListener(t,O);N.playerEvents_.push({eventName:t,callback:O})},G2z={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Rf1={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},vEf=function(N,t,O){mK5.call(this,N,t,O);this.cueId_="playbackTrigger-"+Math.random()};
_.p(vEf,mK5);
vEf.prototype.prepareTrigger=function(N){var t=this,O=this.player.getDuration(),H=this.player.getVideoData(),A=H.isLive&&H.hasProgressBarBoundaries;if(A&&H.progressBarEndPositionUtcTimeMillis){var Z=H.progressBarEndPositionUtcTimeMillis/1E3;isNaN(Z)||(O=Z)}var U=0;this.prefetchDelay>=0?A?H.progressBarStartPositionUtcTimeMillis&&(H=H.progressBarStartPositionUtcTimeMillis/1E3,isNaN(H)||(U=H+this.prefetchDelay)):U=this.prefetchDelay:U=O+this.prefetchDelay;A?this.player.addUtcCueRange(this.cueId_,U,O):
this.player.addCueRange(this.cueId_,U,O);_.fV(N.promise,function(){t.player.removeCueRange(t.cueId_)});
EEm(this,"onCueRangeEnter",function(C){C==t.cueId_&&N.resolve(O-U)})};
var J8O=function(N,t){N.fragmentConfiguration_[t].requiredKeys.every(function(O){return!!N.prefetchedData_[O]})&&(N.validatedFragments_.push(t),t=N.missingFragments_.indexOf(t),t!==-1&&N.missingFragments_.splice(t,1))},oEm=function(N){N.prefetchedFragments_.forEach(function(t){J8O(N,t)})},sj5=function(N,t,O){this.pageFragments_=N;
this.prefetchedFragments_=t;this.fragmentConfiguration_=Rf1;this.prefetchedData_=O;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;oEm(this)},Nk5=function(){},t8f=function(N){this.JSC$13399_playlistManager_=N};
_.p(t8f,Nk5);t8f.prototype.getPrefetchEndpoint=function(){return this.JSC$13399_playlistManager_.getAutoplayEndpoint()};
var Ogr=function(N){this.autonavEndpoints_=N};
_.p(Ogr,Nk5);Ogr.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Hgm=function(N,t,O,H,A){this.autonavEndpoints=N;this.foregroundTrigger=t;this.backgroundTrigger=O;this.pageType=H;this.isInPlaylist=A},AL1=function(N,t){if(N.webPrefetchData&&N.webPrefetchData.navigationEndpoints&&N.webPrefetchData.navigationEndpoints.length){N=N.webPrefetchData.navigationEndpoints;
var O=_.M(N[0],_.rN);if(O.watchEndpointSupportedPrefetchConfig&&O.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var H=O.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;O=H.playbackRelativeSecondsPrefetchCondition;O=typeof O==="number"&&Math.abs(O)<t.videoDuration?O:void 0;H=H.countdownUiRelativeSecondsPrefetchCondition;H=typeof H!=="number"||_.h("prefetch_job_config_cleanup_ks")&&t.inPlaylist?void 0:H;if(typeof H==="number")return new Hgm(N,t.makeUpNextTrigger(H),t.makePlaybackTrigger(H),
"watch",t.inPlaylist);if(typeof O==="number")return new Hgm(N,t.makePlaybackTrigger(O),null,"watch",t.inPlaylist)}}},Zg5=function(N){return N.prefetchJobConfig_.backgroundTrigger?_.oo(_.PKx)()==0?N.prefetchJobConfig_.backgroundTrigger:N.prefetchJobConfig_.foregroundTrigger:N.prefetchJobConfig_.foregroundTrigger},V85=function(N){_.PG(document,"visibilitychange",N.onVisibilityChange_,!1,N)},BB=function(N){gR.call(this,N)};
_.p(BB,gR);BB.prototype.getCacheKeyForEndpoint=function(N){return gR.prototype.getCacheKeyForEndpoint.call(this,N)};
BB.prototype.getTempData=function(){return{}};
BB.prototype.getXhrParams=function(N){return N};
BB.prototype.getParams=function(){return{}};
var DBq=function(N,t,O){var H=N.prefetchDelay*1E3;if(Math.abs(H)>t)O.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var A=H,Z=t-H;H<0&&(A=t+H,Z=Math.abs(H));var U=N.JSC$13385_taskManager.addJob(function(){O.resolve(Z/1E3)},10,A);
O.promise.thenCatch(function(){N.JSC$13385_taskManager.cancelJob(U)})}},UB5=function(N,t,O){mK5.call(this,N,t,O)};
_.p(UB5,mK5);UB5.prototype.prepareTrigger=function(N){var t=this;EEm(this,"onAutonavCoundownStarted",function(O){DBq(t,O,N)})};
var Cnq=function(N){N.pendingPrefetchJob_&&(N.pendingPrefetchJob_.cancel(),N.pendingPrefetchJob_=null)},Kjq=function(N,t,O){if(!N.triggeredTargets.has(t)){var H=_.xAu(N,t);
H.action=O;_.PYE(N,t,H)}},FjO=function(N){_.ptX();
_.Q$x("cpt")&&_.J_(Error("lh"));_.H4.requestAnimationFrame(function(){_.H4.setTimeout(function(){_.zT("cpt");var t=_.TT("vpl"),O=_.TT("cpt");t&&O&&_.zT("ol",Math.max(t,O))})});
try{_.zT("fr_s"),N()}catch(t){_.R0(t)}_.H4.requestAnimationFrame(function(){_.zT("bcp")})},dBf=function(N,t){N.serviceEndpointHandlers.push(t)},gk5=function(N,t){t=N.pendingPages_.indexOf(t);
t>-1&&N.pendingPages_.splice(t,1)},yLz=function(N,t){var O=_.sKu.indexOf(t);
O>-1&&_.sKu.splice(O,1);N.targetPage_==t?(N.abort(),_.tjE(N)):gk5(N,t)},Bkx=function(N,t,O,H){t={challenge:t};
O&&(t.webResponse=O);return _.cT(N.innertubeTransportService,t,_.JB(k2x),H)},cLq=function(N,t,O){if(!t.challenge)throw Error("qi");
if(t.botguardData&&t.botguardData.program){var H=new Pv5;H.initialize(t.botguardData,function(){xKz(H,{atr_challenge:t.challenge}).then(function(A){if(!A)throw Error("ri");return Bkx(N,t.challenge,A,O)}).catch(function(A){_.J_(A);
return Bkx(N,t.challenge,void 0,O)})},void 0)}else Bkx(N,t.challenge,void 0,O)},$Bm=function(N,t,O){var H={};
t.ids&&(H.ids=[].concat(_.W6(t.ids)));t.engagementType&&(H.engagementType=t.engagementType);return _.cT(N.innertubeTransportService,H,_.JB(_.RWf),O).then(function(A){if(!A)throw new _.fF("GetAttestationChallenge returned falsy");cLq(N,A,O)}).thenCatch(function(A){_.R0(A)})},jBm=function(N,t,O){return new _.TW(function(H,A){var Z;
return _.K(function(U){if(U.nextAddress==1){var C=U.yield,F=t.engagementType,g=t.ids,B={};g=_.D(g!=null?g:[]);for(var c=g.next();!c.done;c=g.next())c=c.value,c.encryptedVideoId?B.encryptedVideoId=c.encryptedVideoId:c.externalChannelId?B.externalChannelId=c.externalChannelId:c.commentId?B.commentId=c.commentId:c.externalOwnerId?B.externalOwnerId=c.externalOwnerId:c.artistId?B.artistId=c.artistId:c.playlistId?B.playlistId=c.playlistId:c.externalPostId?B.externalPostId=c.externalPostId:c.shareId&&(B.shareId=
c.shareId);return C.call(U,Cbn(F,B),2)}Z=U.yieldResult;if(!Z.challenge)return _.J_(Error("si")),$Bm(N,t,O).then(H,A),U.return();C=Z;F={challenge:C.challenge};F.webResponse=C.webResponse;F.engagementType=t.engagementType;F.ids=t.ids;_.cT(N.innertubeTransportService,F,_.JB(k2x),O).then(H,A);_.Ty(U)})})},QGm=function(N,t){var O,H,A,Z;
_.K(function(U){if(U.nextAddress==1){O=_.M(t,_.vbu);if(!(O&&O.listId&&N.response&&N.response.playingVideoId)||N.listId!==O.listId)return U.return();N.index===void 0&&(N.index=0);return U.yield(_.jFa(N.JSC$13238_playlistNetworkManager,O.listId,N.index,N.response.playingVideoId),2)}H=U.yieldResult;if(!H)return U.return();A=H.playlistId;Z=H.playlistPanelRenderer;N.setPlaylistData(A,Z,H.autoplayRenderer);_.Ty(U)})},ign=function(N,t,O){var H=N.getParams(O),A=_.NZg(t,H),Z=N.getTempData(t,O);
Z.endpoint=JSON.stringify(t);_.h("enable_unknown_lact_fix_on_html5")&&(_.cY().resolve(_.j9),Z.lact=_.jO());var U={headers:{"X-YouTube-STS":_.Ro("STS"),"x-youtube-csoc":1}};_.m2(A,Z);return new _.TW(function(C,F){var g=N.getXhrParams(H),B;_.h("kevlar_cache_on_ttl_player")&&(B=_.cY().resolve(_.bl));B&&_.Cux(B,t)?_.Bbf(B,t,Z,window.location.href).then(function(c){c?C(c):F()},F):_.R6_(N.JSC$13375_networkManager_,t,g,N.onPartsCallback_.bind(N),U).then(function(c){c?C(c):F()},F)})},upr=function(N,t){N.triggerPromise_=
t.start();
N.triggerPromise_.then(function(O){var H=N.prefetchEndpointProvider_.getPrefetchEndpoint();if(H){var A=G2z[N.prefetchJobConfig_.pageType].prefetchedFragments;N.prefetchRequestPromise_=ign(N.JSC$13411_networkPrefetchRequest_,H,{fragmentsRequested:A,timeBeforeNextVideo:O});N.prefetchResponseCacheKey_=N.JSC$13411_networkPrefetchRequest_.getCacheKeyForEndpoint(H);V85(N);N.prefetchRequestPromise_.then(function(Z){N.storePrefetchedDataCallback_(N.prefetchResponseCacheKey_,Z);if(_.h("web_prefetch_preload_video")&&
A.length===1&&A[0]==="pl"&&Z&&!Z.playerAds&&!Z.adPlacements){var U=_.M(H,_.jc),C=U!=null,F={raw_player_response:Z,watch_endpoint:U};(Z=_.cY().resolve(C?_.N7Z:_.A5))&&H&&Z.then(function(g){C&&_.h("web_queue_preload_video")?(F.prefer_gapless=!0,g.queueNextVideo(F)):g.preloadVideoByPlayerVars(F)})}})}})},cB=function(N,t,O,H){this.prefetchEndpointProvider_=N;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=t;this.prefetchJobConfig_=O;this.JSC$13411_networkPrefetchRequest_=H;this.prefetchResponseCacheKey_=null};
cB.prototype.enqueue=function(){this.triggerPromise_||(upr(this,Zg5(this)),_.SF(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
cB.prototype.resolve=function(){this.cancel()};
cB.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.");V85(this)};
cB.prototype.onVisibilityChange_=function(){var N=this;_.oo(_.PKx)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){N.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||upr(this,Zg5(this))};
var St5=function(N,t,O,H,A){t&&(t==null?0:t.videoId)&&O&&O.entries&&_.h("kevlar_enable_shorts_prefetch_in_sequence")&&(Cnq(N),t=O.entries.map(function(Z){var U;return(U=_.M(Z.command,_.jc))==null?void 0:U.videoId}).indexOf(t.videoId),O=O.entries[t+1],O!=null&&O.command&&!_.M(O==null?void 0:O.command,_.KY)&&(H=new Hgm([O.command],new vEf(H,_.GB,1),null,"shorts",!1),N.pendingPrefetchJob_=new cB(new Ogr(H.autonavEndpoints),function(){return!1},H,new BB(A)),N.pendingPrefetchJob_.enqueue()))},h25=function(N,
t,O,H,A,Z){var U=_.Ta.getInstance();
if(!_.h("block_all_player_prefetch_requests")){Cnq(N);var C=!!O.getPlaylistId(),F=O.getVideoData().isLive&&O.getVideoData().hasProgressBarBoundaries;if((U.getState()==2||C||F)&&(!O.getVideoData().isLive||F)){U={inPlaylist:C,videoDuration:O.getDuration(),makeUpNextTrigger:function(B){return new UB5(O,_.GB,B)},
makePlaybackTrigger:function(B){return new vEf(O,_.GB,B)}};
var g=AL1(t,U);g&&(N.pendingPrefetchJob_=new cB(g.isInPlaylist?new t8f(A):new Ogr(g.autonavEndpoints),function(B,c){c=new sj5(G2z[g.pageType].pageFragments,G2z[g.pageType].prefetchedFragments,c);return _.bur(c)?(N.prefetchCache_.set(B,c),!0):!1},g,new yn(H,O,Z,A)),N.pendingPrefetchJob_.enqueue())}}},M8x=function(){var N=_.h7();
N.signals.parkOrScheduleJob(function(){var t=N.storage;if(t.storage)if(Wgr(t)){var O=t.getPlaylistId();t=r8n(t);O=!!O&&t!==void 0}else t.clear(),O=!1;else O=!1;if(O){O=N.JSC$13238_pageManager.isOnWatch();a:{var H=N.storage;if(H.storage&&Wgr(H)&&(t=H.getPlaylistId(),H=r8n(H),t&&H!==void 0)){O={recoverPlaylistCommand:{listId:t,index:H,openMiniplayer:!O,openListPanel:O,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}O=void 0}O&&_.RB(N.JSC$13238_actionRouter,[O],null)}},0,"ma")},bgq=function(N,t,O,
H,A,Z){var U=_.UM(7111);
_.r_(N.JSC$18759_screenManager,U,Z?_.ib(Z):void 0);_.lA(N.JSC$18759_screenManager,U,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:H,offlineId:t,offlineabilityFormatType:O,isDefaultFormatType:A==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:A}})},pS5=function(N,t,O,H,A){var Z,U,C,F,g;
return _.K(function(B){if(B.nextAddress==1)return B.yield(N.JSC$18759_playerApiPromise,2);Z=B.yieldResult;bgq(N,t,O,"OFFLINE_OBJECT_TYPE_PLAYLIST",H,A);if(C=_.nA_[N.entityTypeMap.listEntityType])g={},U=(g[C]={maximumDownloadQuality:(F=O)!=null?F:void 0},g);return B.yield(Z.queueOfflineAction(t,N.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",U),0)})},LjJ=function(N,t){var O,H,A,Z;
return _.K(function(U){if(U.nextAddress==1)return U.yield(N.JSC$18759_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3){O=U.yieldResult;if(!O)return _.J_(new _.fF("PES is undefined")),U.return();H=_.U_(t,"downloadStatusEntity");return U.yield(nEx(O,H,"downloadStatusEntity"),3)}A=U.yieldResult;return U.return((Z=A)==null?void 0:Z.downloadState)})},z25=function(N,t,O,H,A){var Z,U,C,F,g,B;
return _.K(function(c){switch(c.nextAddress){case 1:return c.yield(N.JSC$18759_playerApiPromise,2);case 2:Z=c.yieldResult;bgq(N,t,O,"OFFLINE_OBJECT_TYPE_VIDEO",H,A);if(C=_.nA_[N.entityTypeMap.singleEntityType])g={},U=(g[C]={maximumDownloadQuality:(F=O)!=null?F:void 0},g);return c.yield(LjJ(N,t),3);case 3:B=c.yieldResult;if(B!=="DOWNLOAD_STATE_USER_DELETED"){c.jumpTo(4);break}return c.yield(N.deleteVideo(t),4);case 4:return c.yield(Z.queueOfflineAction(t,N.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
U),0)}})},Yti=function(N,t,O,H,A){return _.K(function(Z){return Z.nextAddress==1?Z.yield(N.deleteVideo(t,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):Z.yield(z25(N,t,O,H,A),0)})},aX1=function(N,t,O){var H,A;
return _.K(function(Z){if(Z.nextAddress==1)return Z.yield(N.JSC$18759_playerApiPromise,2);H=Z.yieldResult;A=_.U_(t,"mainVideoDownloadStateEntity");return Z.yield(H.updateDownloadState(A,O),0)})},$s1=function(N){var t=_.cY().resolve(_.$B);
return _.K(function(O){if(O.nextAddress==1)return t.previousDownloadStateForVideo[N]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&t.previousDownloadStateForVideo[N]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?O.jumpTo(2):O.yield(t.resumeVideoDownload(N),2);if(O.nextAddress!=4)return O.yield(aX1(t,N,t.previousDownloadStateForVideo[N]),4);delete t.previousDownloadStateForVideo[N];_.Ty(O)})},B31=function(N,t){var O;
return _.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$18759_playerApiPromise,2);O=H.yieldResult;return H.yield(O.queueOfflineAction(t,N.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},dsO=function(){var N=_.cY().resolve(_.$B),t,O;
return _.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$18759_playerApiPromise,2);if(H.nextAddress!=3)return t=H.yieldResult,O={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},H.yield(t.queueOfflineAction("!*$_ALL_ENTITIES_!*$",N.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",O),3);var A=N.JSC$18759_commandHandler,Z=A.resolveCommand,U=_.CJ("DELETING_ALL",void 0,"Downloads are being deleted");Z.call(A,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.NE(U)}},
popupType:"TOAST"}});_.Ty(H)})},Tkx=function(N,t){var O,H,A,Z,U,C;
return _.K(function(F){if(F.nextAddress==1)return F.yield(N.JSC$18759_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3)return O=F.yieldResult,O?F.yield(nEx(O,_.pM,"downloadsPageViewConfigurationEntity"),3):(_.J_(new _.fF("PES is undefined")),F.return());A=(H=F.yieldResult)!=null?H:{};C=(U=(Z=A)==null?void 0:Z.downloadsUpsellBannerVisibility)!=null?U:{};return C.visibleWithConnection?F.yield(t.refreshAllStaleEntities(0),0):F.jumpTo(0)})},wSJ=function(N){var t,O;
return _.K(function(H){if(H.nextAddress==1)return H.yield(N.JSC$18759_prefStorage,2);t=H.yieldResult;return H.return((O=t)==null?void 0:O.get("sdois"))})},e21=function(N){var t,O,H,A,Z,U;
return _.K(function(C){if(C.nextAddress==1)return C.yield(N.JSC$18759_persistentStorePromiseAccessor(),2);if(C.nextAddress!=3){t=C.yieldResult;if(!t)return _.J_(new _.fF("PES is undefined")),C.return();O=_.U_("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return C.yield(nEx(t,O,"settingEntity"),3)}H=C.yieldResult;return C.return((U=(A=H)==null?void 0:(Z=A.settingOptionValue)==null?void 0:Z.boolValue)!=null?U:!1)})},Pnz=function(N,t){var O,H,A,Z;
return _.K(function(U){switch(U.nextAddress){case 1:return((O=t)==null?void 0:O.formatType)===void 0?U.return():U.yield(N.JSC$18759_prefStorage,2);case 2:H=U.yieldResult;if(H===void 0)return U.return();if(((A=t)==null?void 0:A.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return U.yield(H.set("lmqf",t.formatType),8);if(((Z=t)==null?void 0:Z.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){U.jumpTo(0);break}return U.yield(H.set("lmqf",t.formatType),6);case 6:return U.yield(H.set("lmqflst",
Math.floor((0,_.jg)())),0);case 8:return U.yield(H.remove("lmqflst"),0)}})},XSf=function(N){var t,O;
return _.K(function(H){switch(H.nextAddress){case 1:return H.yield(N.JSC$18759_prefStorage,2);case 2:t=H.yieldResult;if(!t){H.jumpTo(3);break}return H.yield(t.get("lmqflst"),4);case 4:if(O=H.yieldResult,O!==void 0)return H.return(O);case 3:return H.return(0)}})},xBf=function(N){var t,O,H;
return _.K(function(A){return A.nextAddress==1?A.yield(N.JSC$18759_prefStorage,2):A.nextAddress!=3?(t=A.yieldResult,A.yield((O=t)==null?void 0:O.get("ldtmes"),3)):A.return((H=A.yieldResult)!=null?H:!1)})},XGJ=function(){var N=_.cY().resolve(_.$B),t;
return _.K(function(O){if(O.nextAddress==1)return O.yield(N.JSC$18759_prefStorage,2);t=O.yieldResult;return t===void 0?O.return():O.yield(t.set("ldtmes",!0),0)})},k4r=function(N){var t,O;
return _.K(function(H){switch(H.nextAddress){case 1:return H.yield(N.JSC$18759_prefStorage,2);case 2:t=H.yieldResult;if(t===void 0){H.jumpTo(3);break}return H.yield(t.get("lmqf"),4);case 4:if(O=H.yieldResult,O!==void 0)return H.return(O);case 3:return H.return("SD")}})},pGz=function(N,t,O){var H,A,Z,U,C,F,g,B;
_.K(function(c){switch(c.nextAddress){case 1:return c.yield(Pnz(N,(H=t)==null?void 0:H.actionParams),2);case 2:A=t.playlistId;if(!A)return c.return();if(t.action==="ACTION_ADD")return((U=t.actionParams)==null?0:U.formatType)?c.yield(pS5(N,A,t.actionParams.formatType,(B=t.actionParams)==null?void 0:B.settingsAction,O),0):c.yield(N.offlineWebClientEligibility,14);if(t.action==="ACTION_REMOVE_WITH_PROMPT"){var u=N.JSC$18759_commandHandler,S=u.resolveCommand,b=_.Ro("INNERTUBE_CLIENT_NAME");var z=b===
"WEB_REMIX"?_.CJ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.CJ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var w=b==="WEB_REMIX"?[_.CJ("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];b=b==="WEB_REMIX"?_.CJ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.CJ("DELETE",void 0,"Delete");var P=_.CJ("CANCEL",void 0,"Cancel");z=Kwx(z,w,b,P,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:A});S.call(u,{openPopupAction:z});return c.return()}if(t.action===
"ACTION_REMOVE")return c.yield(B31(N,A),0);if(t.action!=="ACTION_SYNC"){c.jumpTo(0);break}return c.yield(N.JSC$18759_playerApiPromise,9);case 9:return Z=c.yieldResult,c.yield(Z.queueOfflineAction(A,N.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return C=c.yieldResult,c.yield(k4r(N),15);case 15:return F=c.yieldResult,c.yield(XSf(N),16);case 16:g=c.yieldResult,t.onAddCommand&&N.JSC$18759_commandHandler.resolveCommand(t.onAddCommand,{form:{preferredFormatType:F,
offlineWebClientEligibility:C,lastOfflineQualitySettingsSavedMs:g.toString()}}),c.jumpTo(0)}})},Mrq=function(N,t,O){var H,A,Z,U,C,F,g,B,c,u,S,b,z,w,P,x,l,I,r,E;
_.K(function(J){switch(J.nextAddress){case 1:return J.yield(Pnz(N,(H=t)==null?void 0:H.actionParams),2);case 2:A=t.videoId;if(!A)return J.return();if(t.action==="ACTION_REMOVE_WITH_PROMPT"){var CN=N.JSC$18759_commandHandler,B4=CN.resolveCommand,zM=_.Ro("INNERTUBE_CLIENT_NAME");var jy=zM==="WEB_REMIX"?_.CJ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.CJ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var c4=zM==="WEB_REMIX"?[_.CJ("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];zM=zM==="WEB_REMIX"?_.CJ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.CJ("DELETE",void 0,"Delete");var XO=_.CJ("CANCEL",void 0,"Cancel");jy=Kwx(jy,c4,zM,XO,{signal:"DELETE_DOWNLOAD",targetId:A});B4.call(CN,{openPopupAction:jy});return J.return()}if(t.action==="ACTION_ADD")return((x=t.actionParams)==null?0:x.formatType)?J.yield(z25(N,A,t.actionParams.formatType,(E=t.actionParams)==null?void 0:E.settingsAction,O),0):J.yield(N.offlineWebClientEligibility,
28);if(t.action==="ACTION_RETRY")return J.yield(k4r(N),24);if(t.action==="ACTION_PAUSE")return J.yield(N.pauseVideoDownload(A),0);if(t.action==="ACTION_RESUME")return J.yield(N.resumeVideoDownload(A),0);if(t.action==="ACTION_REMOVE")return J.yield(LjJ(N,A),18);if(!_.h("kevlar_enable_download_to_mobile")){J.jumpTo(0);break}Z=_.M(t.onAddCommand,_.GI);C=(U=Z)==null?void 0:U.isCrossDeviceDownload;if(!t.onAddCommand||!C){J.jumpTo(0);break}F="HD";return J.yield(XSf(N),16);case 16:return g=J.yieldResult,
J.yield(xBf(N),17);case 17:B=J.yieldResult;N.JSC$18759_commandHandler.resolveCommand(t.onAddCommand,{form:{preferredFormatType:F,lastOfflineQualitySettingsSavedMs:g.toString(),downloadToMobileEduShown:B}});J.jumpTo(0);break;case 18:return c=J.yieldResult,N.previousDownloadStateForVideo[A]=(u=c)!=null?u:"DOWNLOAD_STATE_UNKNOWN",J.yield(aX1(N,A,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(N.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&N.previousDownloadStateForVideo[A]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){J.jumpTo(20);break}return J.yield(N.pauseVideoDownload(A),20);case 20:CN=_.CJ("DELETED_VIDEO",void 0,"Video deleted from downloads.");B4=_.CJ("UNDO_ACTION",void 0,"Undo");jy=_.CJ("CLOSE",void 0,"Close");S={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.NE(CN),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.NE(B4),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:A}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:CN+" "+B4}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:A}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:jy}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};N.JSC$18759_commandHandler.resolveCommand(S);
J.jumpTo(0);break;case 24:b=J.yieldResult;b==="UNKNOWN_FORMAT_TYPE"&&(b="SD");z="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((w=t.actionParams)==null?0:w.formatType)b=t.actionParams.formatType,z=(P=t.actionParams)==null?void 0:P.settingsAction;return J.yield(Yti(N,A,b,z,O),25);case 25:return J.return();case 28:return l=J.yieldResult,J.yield(k4r(N),29);case 29:return I=J.yieldResult,J.yield(XSf(N),30);case 30:r=J.yieldResult,t.onAddCommand&&N.JSC$18759_commandHandler.resolveCommand(t.onAddCommand,
{form:{preferredFormatType:I,offlineWebClientEligibility:l,lastOfflineQualitySettingsSavedMs:r.toString()}}),J.jumpTo(0)}})},qt5=function(N,t){var O,H,A,Z,U,C,F;
return _.K(function(g){if(g.nextAddress==1)return g.yield(N.JSC$18759_persistentStorePromiseAccessor(),2);O=g.yieldResult;if(!O)return _.J_(new _.fF("PES is undefined")),g.return();if((H=t)==null||!H.settingItemId)return g.return();A=t;Z=A.settingItemId;U=A.boolValue;C=_.U_(Z,"settingEntity");F={key:C,settingOptionValue:{boolValue:U}};return g.yield(fjf(O,F),0)})},fXr=function(N,t){var O,H,A,Z,U,C,F;
return _.K(function(g){switch(g.nextAddress){case 1:return g.yield(N.JSC$18759_prefStorage,2);case 2:return O=g.yieldResult,H=_.d0(),g.yield(N.JSC$18759_persistentStorePromiseAccessor(),3);case 3:return A=g.yieldResult,O?A?g.yield(O.get("sdois"),4):(_.J_(new _.fF("PES is undefined")),g.return()):(_.J_(new _.fF("prefStorage is undefined")),g.return());case 4:Z=g.yieldResult;C=(U=t)==null?void 0:U.boolValue;C===void 0||_.h("kevlar_set_sd_enabled_flag_killswitch")||_.g0(0,197,!0);Z===void 0&&C===void 0&&
(C=!1);if(C===void 0){g.jumpTo(0);break}return g.yield(O.set("sdois",C),6);case 6:return _.h("kevlar_set_sd_enabled_flag_killswitch")||(_.g0(0,196,C),H.save()),F={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:C},g.yield(qt5(N,F),0)}})},nki=function(N,t,O){var H,A,Z,U,C;
return _.K(function(F){switch(F.nextAddress){case 1:return F.yield(wSJ(N),2);case 2:return H=F.yieldResult,F.yield(fXr(N,O),3);case 3:return F.yield(wSJ(N),4);case 4:return A=F.yieldResult,Z=A!==H,F.yield(e21(N),5);case 5:U=F.yieldResult&&!_.h("kevlar_modern_downloads_page");if((C=!A&&!U)||Z)return F.yield(t.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);F.jumpTo(0)}})},iVr=function(){var N=_.cY().resolve(_.$B),
t;
_.K(function(O){switch(O.nextAddress){case 1:return O.yield(N.JSC$18759_playerApiPromise,2);case 2:t=O.yieldResult;if(!_.h("kevlar_force_refresh_smart_downloads")){O.jumpTo(3);break}return O.yield(t.refreshAllStaleEntities(0),4);case 4:return O.return();case 3:return O.yield(t.refreshAllStaleEntities(),5);case 5:return O.yield(nki(N,t),6);case 6:if(_.h("enable_download_pep_for_premium_countries_web"))return O.yield(Tkx(N,t),0);O.jumpTo(0)}})},zDm=function(N,t){var O,H;
_.K(function(A){switch(A.nextAddress){case 1:return A.yield(N.JSC$18759_playerApiPromise,2);case 2:O=A.yieldResult;switch((H=t)==null?void 0:H.settingItemId){case "SMART_DOWNLOADS_ENABLED":return A.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return A.jumpTo(4)}A.jumpTo(0);break;case 3:return A.yield(nki(N,O,t),6);case 6:A.jumpTo(0);break;case 4:return A.yield(qt5(N,t),7);case 7:A.jumpTo(0)}})},Wjm=function(N,t){var O,H,A;
return _.K(function(Z){if(Z.nextAddress==1)return Z.yield(N.JSC$18759_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3){O=Z.yieldResult;if(!O)return _.J_(new _.fF("PES is undefined")),Z.return(!1);if(!t)return Z.return(!1);H=_.U_(t,"mainVideoEntity");return Z.yield(nEx(O,H,"mainVideoEntity"),3)}A=Z.yieldResult;return Z.return(A!==void 0)})},aPm=function(N){var t=_.cY().resolve(_.$B),O,H,A,Z,U,C,F,g,B,c,u;
_.K(function(S){switch(S.nextAddress){case 1:return S.yield(t.JSC$18759_playerApiPromise,2);case 2:O=S.yieldResult;A=(H=N)==null?void 0:H.actions;if(!A)return S.return();Z=_.D(A);U=Z.next();case 3:if(U.done){S.jumpTo(0);break}C=U.value;g=F=void 0;if(!(((F=C)==null?0:F.entityKey)&&((g=C)==null?0:g.actionType))){S.jumpTo(4);break}B=_.Zn(C.entityKey);c=B.entityId;u=B.entityType;return S.yield(O.queueOfflineAction(c,u,C.actionType),4);case 4:U=Z.next(),S.jumpTo(3)}})},rLx=function(N,t){var O,H,A,Z,U;
return _.K(function(C){if(C.nextAddress==1)return C.yield(N.JSC$18759_prefStorage,2);if(C.nextAddress!=3)return(O=C.yieldResult)?C.yield(O.get("psi"),3):C.return();H=C.yieldResult;U={isPaused:t,lastSyncTimestamp:(Z=(A=H)==null?void 0:A.lastSyncTimestamp)!=null?Z:"0"};return C.yield(O.set("psi",U),0)})},eD5=function(N){var t=_.cY().resolve(_.$B),O,H,A,Z,U,C,F,g;
return _.K(function(B){switch(B.nextAddress){case 1:return B.yield(t.JSC$18759_playerApiPromise,2);case 2:O=B.yieldResult;A=((H=N)==null?void 0:H.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((C=N)==null?void 0:C.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":Z="!*$_ALL_ENTITIES_!*$";U="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return B.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return B.jumpTo(4)}B.jumpTo(5);break;case 3:return B.yield(rLx(t,A),6);case 6:B.jumpTo(5);break;case 4:return B.yield(Wjm(t,(F=N)==null?void 0:F.videoId),7);case 7:B.yieldResult&&(Z=(g=N)==null?void 0:g.videoId,U="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");B.jumpTo(5);break;case 5:if(Z&&U)return B.yield(O.queueOfflineAction(Z,"videoPlaybackPositionEntity",U),0);B.jumpTo(0)}})},IXz=function(N,t){var O;
t!==1||((O=N.currentPersistentToast)==null?0:O.isOpened())?N.openToast():N.currentPersistentToast=void 0},lXi=function(N,t){var O;
return(O=N.transitionTasksMap.get(t))!=null?O:[]},QBi=function(N,t){var O=[];
N.elementTasksMap.forEach(function(H){(H=H.get(t))&&O.push(H)});
return O},mB5=function(N,t,O,H,A){A=A===void 0?{}:A;
var Z=t.defaultViewTransitionOptions;return Object.assign({},Z,A,{beforeTransition:function(){H.forEach(function(g){g.beforeTransition()});
var U;(U=Z.beforeTransition)==null||U.call(Z);var C,F;(F=(C=A).beforeTransition)==null||F.call(C);O.forEach(function(g){g.beforeTransition()})},
afterTransition:function(){H.forEach(function(g){g.afterTransition()});
var U;(U=Z.afterTransition)==null||U.call(Z);var C,F;(F=(C=A).afterTransition)==null||F.call(C);O.forEach(function(g){g.afterTransition()})},
ignoredErrors:N.config.ignoredErrors})},Ekn=function(N,t,O){N.transitionTasksMap.has(t)?N.transitionTasksMap.get(t).push(O):(N=new _.fF("Transition task registered for unknown transition type",t),_.R0(N))},G45=function(N,t,O){if(N.transitionTasksMap.has(t)){var H=N.transitionTasksMap.get(t).filter(function(A){return A!==O});
N.transitionTasksMap.set(t,H)}},R2x=function(N,t){var O=lXi(N,t);
O=_.D(O);for(var H=O.next();!H.done;H=O.next())H=H.value,H.runOnce&&G45(N,t,H);N.elementTasksMap.forEach(function(A,Z){A.forEach(function(U,C){U.runOnce&&t===C&&(A.delete(C),A.size===0&&N.elementTasksMap.delete(Z))})})},vkx=function(N,t,O){var H,A,Z,U,C,F,g,B,c;
_.K(function(u){if(u.nextAddress==1){if(N.config.disableAllTransitions)return u.return(t());if((H=O)==null||!H.transitionType)return u.return(_.xLn(t,Object.assign({},(A=O)==null?void 0:A.viewTransitionOptions,{ignoredErrors:N.config.ignoredErrors})));Z=O;U=Z.transitionType;C=Z.viewTransitionOptions;F=N.config.transitionConfigs.get(U);if(!F)return u.return(t());g=lXi(N,U);B=QBi(N,U);c=_.xLn(t,mB5(N,F,g,B,C));return u.yield(c,2)}R2x(N,U);_.Ty(u)})},JLx=function(){var N,t,O,H;
return _.K(function(A){if(A.nextAddress==1)return N=navigator,(t=N.storage)!=null&&t.persisted?A.yield((O=N.storage)==null?void 0:O.persisted(),2):A.return("PERSISTED_STATE_NOT_SUPPORTED");H=A.yieldResult;return A.return(H?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},okr=function(){var N,t,O,H;
return _.K(function(A){if(A.nextAddress==1)return N=navigator,(t=N.storage)!=null&&t.persist?A.yield((O=N.storage)==null?void 0:O.persist(),2):A.return("PERSISTED_STATE_NOT_SUPPORTED");H=A.yieldResult;return A.return(H?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},sB1=function(){var N,t;
return _.K(function(O){switch(O.nextAddress){case 1:return N="PERSISTED_STATE_NOT_SUPPORTED",_.Mo(O,2),O.yield(JLx(),4);case 4:N=O.yieldResult;if(N!=="PERSISTED_STATE_NOT_GRANTED"){O.jumpTo(5);break}return O.yield(okr(),6);case 6:N=O.yieldResult;case 5:_.Do(O,3);break;case 2:t=_.ax(O),t instanceof Error&&_.R0(t);case 3:return _.E7("persistentStorageStateChecked",{persistedState:N}),O.return(N)}})},NH1=function(N,t){var O=[],H=!1;
t=_.D(t);for(var A=t.next();!A.done;A=t.next()){A=N.moduleRegistry[A.value];var Z=void 0,U=void 0;((Z=A)==null?0:Z.isFetching)&&((U=A)==null?0:U.resolver)?(O.push(A.resolver.promise),H=!0):(A=new _.CT,A.resolve(void 0),O.push(A.promise))}return H?Promise.all(O):void 0},tem=function(N,t,O){if(N.isAnyTransitionEnabled){var H={beforeTransition:function(){O(!0);
t.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){t.style.viewTransitionName&&(t.style.viewTransitionName="",O(!1))}};
Ekn(N.viewTransitionCoordinator,"slide",H);Ekn(N.viewTransitionCoordinator,"lockup-to-watch",H);Ekn(N.viewTransitionCoordinator,"watch-next-appears",H);Ekn(N.viewTransitionCoordinator,"learning-journey",H)}},Opq=function(N,t){N.isBrowseTransitionEnabled?vkx(N.viewTransitionCoordinator,t,{transitionType:"slide"}):(t(),Promise.resolve())},Hpm=function(N,t){N.isLockupToWatchTransitionEnabled?vkx(N.viewTransitionCoordinator,t,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){N.registeredLockupThumbnail=void 0;N.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(t(),Promise.resolve())},AA5=function(N,t){N.isLockupToWatchTransitionEnabled?vkx(N.viewTransitionCoordinator,t,{transitionType:"watch-next-appears"}):(t(),Promise.resolve())},Zpn=function(N,t){N.isLearningJourneyTransitionEnabled?vkx(N.viewTransitionCoordinator,t,{transitionType:"learning-journey"}):(t(),Promise.resolve())},Vex=function(N,t,O){if(N.isInitialized()){var H=
p2(O),A=H==="watch";
H=H==="shorts";var Z=p2(t)==="watch";if(A)Z||(N.backgroundPageData=t),N.watchPipMode&&Z||N.deactivate(O.endpoint);else if(H){if(p2(t)!=="shorts"){var U;(U=N.getPlayerElement())==null||U.pause()}}else Z&&!N.watchPipMode&&(FwJ(t,O,!0)?(N.watchWhileMode&&_.S7O(N,!1),_.Baq(N,t)):N.isMiniplayerActive()&&N.watchWhileMode&&N.deactivate());Z&&_.MOq(N);N.shortsPipMode&&!H&&(window.focus(),N.deactivate());if(N.pictureInPictureEnabled())if(H&&N.shortsPipEnabled||A&&N.watchPipEnabled)_.MlO(N.handleMediaSessionPipActivation);
else if(!N.isMiniplayerActive()&&(N.shortsPipEnabled||N.watchPipEnabled)&&window.documentPictureInPicture&&_.LN()&&_.h9x("Chromium")>=120){N=_.huS().mediaSession;try{N.setActionHandler("enterpictureinpicture",null)}catch(C){}}}},D_x=function(N,t){var O,H;
_.K(function(A){if(A.nextAddress==1){if(!N||!N.navigationEndpoint)return A.return();_.Ry().lockupActivation=!0;var Z;t?Z=_.E_(_.CJ("QUEUE",void 0,"Queue")):Z=N.longBylineText;H=(O=Z)&&N.title?{miniplayerTitle:N.title,miniplayerSubtitle:O,playlistData:null}:void 0;return A.yield(_.oyB(_.cY().resolve(_.kf),N.navigationEndpoint,!0,H),2)}_.Ry().userActivation=!0;_.Ty(A)})},rw1=function(N,t){var O,H,A,Z,U,C;
_.K(function(F){if(F.nextAddress==1){O=_.M(t,_.RpE);if(!O||!O.listId)return F.return();N.index=O.index||N.index||0;H=N.response&&N.response.playingVideoId||void 0;return F.yield(_.jFa(N.JSC$13238_playlistNetworkManager,O.listId,N.index,H),2)}A=F.yieldResult;if(!A)return F.return();Z=A.playlistId;U=A.playlistPanelRenderer;!N.queueProxy&&Z&&U&&Z.startsWith("TLPQ")&&(N.queueProxy=new _.y6(N.JSC$13238_playlistNetworkManager,Z,N.setPlaylistData.bind(N),N.clearQueue.bind(N),_.Etv(U),N.storage));if(O.openMiniplayer&&
(C=_.Gd4(U))&&!N.JSC$13238_pageManager.isOnWatch()){var g=C,B=O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";N.isMiniplayerActive()?N.openToast(g):D_x(g,B)}N.setPlaylistData(Z,U,A.autoplayRenderer);_.Ty(F)})},f71=function(N,t){var O=_.h7();
O.index===void 0&&(O.index=0);O.temporaryItems.push.apply(O.temporaryItems,_.W6(N));if((t.videoId||t.videoIds)&&O.index!==void 0&&t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!O.queueProxy){var H=[];if(O.response){var A=_.cY().resolve(_.kf).isMiniplayerActive();if(O.response.playlistPanelRenderer&&O.response.playlistId&&!O.response.playlistId.startsWith("TLPQ")){if(O.JSC$13238_pageManager.isOnWatch()||A)H=_.Etv(O.response.playlistPanelRenderer)}else O.response.playingVideoId&&!t.openMiniplayer?
H.push(O.response.playingVideoId):A&&O.response.playingVideoId&&t.openMiniplayer&&H.push(O.response.playingVideoId)}O.queueProxy=new _.y6(O.JSC$13238_playlistNetworkManager,"",O.setPlaylistData.bind(O),O.clearQueue.bind(O),H,O.storage);O.queueProxy.JSC$13184_setCurrentIndex(O.index)}O.queueProxy.addVideos(t.videoIds||[t.videoId],t)}Ijm(O,N);O.response&&_.Ma(O,_.bI(O,O.response.autoplayRenderer));O.JSC$13238_pageManager.isOnWatch()?O.isMiniplayerActive()&&O.openToast(N[0]):(N=N[0],t=t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
O.isMiniplayerActive()?O.openToast(N):D_x(N,t))},U_1=function(N){var t=_.oQ(N);
if(t=="object"||t=="array"){if(typeof N.clone==="function")return N.clone();if(typeof Map!=="undefined"&&N instanceof Map)return new Map(N);if(typeof Set!=="undefined"&&N instanceof Set)return new Set(N);t=t=="array"?[]:{};for(var O in N)t[O]=U_1(N[O]);return t}return N},$0=function(N,t){return _.jQM(_.cU(N,t,void 0,_.BU))},j$=function(N,t){return _.Ux(_.cU(N,t,void 0,_.BU))},iz=function(N,t){return _.kSv(_.cU(N,t,void 0,_.BU))},uz=function(N,t){return _.cU(N,t,void 0,_.BU,_.Ju)},Cr5=_.FV(function(N,
t,O,H){if(N.nextWireType_!==0)return!1;
_.uC(t,O,H,_.kD(N.decoder_,_.cuQ));return!0},_.js,_.rQ),KCz=_.FV(function(N,t,O){if(N.nextWireType_!==1)return!1;
var H=N.decoder_;N=_.fl(H);H=_.fl(H);N=_.W0(N,H);_.gD(t,O,N);return!0},_.q1y,_.F5u),FCq=_.FV(function(N,t,O){if(N.nextWireType_!==2)return!1;
N=_.RaZ(N);_.gD(t,O,N===_.TS()?void 0:N);return!0},_.Iul,_.ymy),d_5=_.Y1y(function(N,t,O){if(N.nextWireType_!==0&&N.nextWireType_!==2)return!1;
t=_.tR(t,t[_.ZY]|0,O);N.nextWireType_==2?_.vXr(N,ux1,t):t.push(_.qd(N.decoder_));return!0},function(N,t,O){t=_.zrO(_.Ux,t,!0);
if(t!=null&&t.length){O=_.OnR(N,O);for(var H=0;H<t.length;H++)_.XlS(N.encoder_,t[H]);_.Hnf(N,O)}},_.Bif),gbJ=_.FV(function(N,t,O,H){if(N.nextWireType_!==0)return!1;
_.uC(t,O,H,_.qd(N.decoder_));return!0},_.QdG,_.Bif),yAz=function(N){return N.previousElementSibling!==void 0?N.previousElementSibling:_.LqQ(N.previousSibling,!1)},BHf=function(N,t){var O=[];
for(t=t||0;t<N.length;t+=2)_.BbB(N[t],N[t+1],O);return O.join("&")},cAJ=function(N,t){var O=arguments.length==2?BHf(arguments[1],0):BHf(arguments,1);
return _.yIf(N,O)},s8i=_.hR(_.Tn),$_5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p($_5,_.C8);$_5.prototype.getTypeName=function(){return _.YD(this,1).split("/").pop()};
$_5.prototype.getValue=function(){var N=_.cU(this,2);if(Array.isArray(N)||N instanceof _.C8)throw Error("W");return _.iC(this,2)};
var j3i=[0,2,_.oG],I_x=function(){var N=_.Zm();this.JSC$10072_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.uu("channel_type"))};
I_x.prototype.increment=function(N){this.JSC$10072_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",N)};
var l_m=function(){var N=_.Zm();this.JSC$10075_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.uu("channel_type"))};
l_m.prototype.increment=function(N){this.JSC$10075_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",N)};
var mu1=function(){var N=_.Zm();this.JSC$10078_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.uu("channel_type"))};
mu1.prototype.increment=function(N){this.JSC$10078_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",N)};
var QEx=function(){var N=_.Zm();this.JSC$10081_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
QEx.prototype.increment=function(){this.JSC$10081_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Eg5=function(){var N=_.Zm();this.JSC$10084_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.uu("channel_type"),_.uu("error_type"))};
Eg5.prototype.increment=function(N,t){this.JSC$10084_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",N,t)};
var Gnx=function(){var N=_.Zm();this.JSC$10087_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Gnx.prototype.increment=function(){this.JSC$10087_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var RI5=function(){var N=_.Zm();this.JSC$10090_streamzService=N;N.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
RI5.prototype.increment=function(){this.JSC$10090_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var N51=function(){var N=_.Zm();this.JSC$10096_streamzService=N;N.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
N51.prototype.increment=function(){this.JSC$10096_streamzService.JSC$9942_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ipi=function(N){return N.getCount&&typeof N.getCount=="function"?N.getCount():_.lQ(N)||typeof N==="string"?N.length:_.WW.getCount(N)},uIf=function(N,t){if(typeof N.every=="function")return N.every(t,void 0);
if(_.lQ(N)||typeof N==="string")return Array.prototype.every.call(N,t,void 0);for(var O=_.Bay(N),H=_.Kf(N),A=H.length,Z=0;Z<A;Z++)if(!t.call(void 0,H[Z],O&&O[Z],N))return!1;return!0},STi=function(N,t,O,H){var A=new _.Ir(null);
N&&_.Fx(A,N);t&&_.d5(A,t);O&&_.g5(A,O);H&&_.y1(A,H);return A},hp5=function(){var N=_.NV&&_.yv(_.a0p,10)>=0,t;
if(t=_.tE_)t=_.yv(_.Y8X,10)>=0;var O=_.FA&&_.yv(_.a0p,85)>=0;return _.D7||N||t||O},MeJ=function(N){var t=_.RoZ(N);
return t&&hp5()?-N.scrollLeft:t&&_.JI(N,"overflowX")!="visible"?N.scrollWidth-N.clientWidth-N.scrollLeft:N.scrollLeft},bp5=function(N,t){t=Math.max(t,0);
_.RoZ(N)?hp5()?N.scrollLeft=-t:N.scrollLeft=N.scrollWidth-t-N.clientWidth:N.scrollLeft=t},zE5=0,eEq=!1;
XVz.prototype.set=function(N){this.relativeTimeStart_=N};
XVz.prototype.reset=function(){this.set(_.tw())};
XVz.prototype.get=function(){return this.relativeTimeStart_};
var pn1=null,LCx=function(){pn1||(pn1=new XVz)},zpm=function(){pn1||(pn1=new XVz)};
_.Od(zpm,LCx);_.V=x2x.prototype;_.V.JSC$11507_buffer_="";_.V.set=function(N){this.JSC$11507_buffer_=""+N};
_.V.append=function(N,t,O){this.JSC$11507_buffer_+=String(N);if(t!=null)for(var H=1;H<arguments.length;H++)this.JSC$11507_buffer_+=arguments[H];return this};
_.V.clear=function(){this.JSC$11507_buffer_=""};
_.V.getLength=function(){return this.JSC$11507_buffer_.length};
_.V.toString=function(){return this.JSC$11507_buffer_};
var YTJ=!1,Q_z=function(N){_.Nz.call(this,N.message||N.description||N.name);this.isMissing=N instanceof Wwz;this.isTimeout=N instanceof _.ubm&&N.errorCode=="net.timeout";this.isCanceled=N instanceof _.kg};
_.p(Q_z,_.Nz);Q_z.prototype.name="BiscottiError";var Wwz=function(){_.Nz.call(this,"Biscotti ID is missing from server")};
_.p(Wwz,_.Nz);Wwz.prototype.name="BiscottiMissingError";var rdi=null,wU5=function(){try{var N=_.s2("yt.ads.biscotti.getId_");return N?N():urO()}catch(t){return _.M2(t)}},agr=function(N,t){return _.H5({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:N,command:t}})},THz=function(N){return _.H5({type:"SET_GUIDE_IS_EXPANDED",
payload:N})},wnr=function(N){return _.H5({type:"SET_ONLINE_STATUS",
payload:N})},epm=function(N,t){return _.H5({type:"SET_TRANSCRIPTION_STATE",
payload:{high:N,low:t}})},Prm=function(N){return _.H5({type:"SET_OVERLAY_STATE",
payload:N})},Xn1=0,x_1=function(N,t,O){var H=this;
this.priority=t;this.delay=O;this.jobId=0;this.completionCallback=_.YG;this.wrappedJob=function(){N();H.completionCallback()};
this.id=++Xn1};
x_1.prototype.enqueue=function(N){this.completionCallback=N;this.jobId=_.GB.addJob(this.wrappedJob,this.priority,this.delay)};
var S$=function(){_.BS.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.p(S$,_.BS);S$.prototype.addJob=function(N,t,O){N=new x_1(N,t,O);this.taskIdToTask.set(N.id,N);this.isActive?kcf(this,N):this.suspendedTasks.add(N);return N.id};
var kcf=function(N,t){N.scheduledTasks.add(t);t.enqueue(function(){N.scheduledTasks.delete(t)})};
S$.prototype.cancelJob=function(N){(N=this.taskIdToTask.get(N))&&(this.scheduledTasks.delete(N)?_.GB.cancelJob(N.jobId):this.suspendedTasks.delete(N))};
S$.prototype.pause=function(){var N=this;this.isActive=!1;this.scheduledTasks.forEach(function(t){_.GB.cancelJob(t.jobId);N.suspendedTasks.add(t)});
this.scheduledTasks.clear()};
S$.prototype.start=function(){var N=this;this.isActive=!0;this.suspendedTasks.forEach(function(t){kcf(N,t)});
this.suspendedTasks.clear()};
S$.prototype.reset=function(){this.scheduledTasks.forEach(function(N){_.GB.cancelJob(N.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var qT5=function(N,t){this.JSC$13364_networkService_=N;this.pageRequestPromise=t};
qT5.prototype.fetchData=function(N){fgm(this,this.JSC$13364_networkService_.fetchData(N))};
qT5.prototype.postData=function(N,t){fgm(this,this.JSC$13364_networkService_.postData(N,t))};
qT5.prototype.requestDataForServiceEndpoint=function(N,t){fgm(this,this.JSC$13364_networkService_.requestDataForServiceEndpoint(N,t))};
var fgm=function(N,t){t.then(N.pageRequestPromise.onSuccess,N.pageRequestPromise.onFailure,N.pageRequestPromise)};
qT5.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var nb1=function(N){this.buildNetworkRequest_=N;this.pendingRequests_=new Set};
nb1.prototype.reset=function(){this.pendingRequests_.forEach(function(N){N.cancel()});
this.pendingRequests_.clear()};
nb1.prototype.fetchData=function(N){var t=WCz(this);t.fetchData(N);return t.pageRequestPromise};
nb1.prototype.postData=function(N,t){var O=WCz(this);O.postData(N,t);return O.pageRequestPromise};
nb1.prototype.requestDataForServiceEndpoint=function(N,t){var O=WCz(this);O.requestDataForServiceEndpoint(N,t);return O.pageRequestPromise};
var WCz=function(N){var t=N.buildNetworkRequest_();N.pendingRequests_.add(t);var O=function(){N.pendingRequests_.delete(t)};
t.pageRequestPromise.then(O,O);return t},rA5=function(N){var t=new S$;
this.JSC$13371_networkService_=N;this.JSC$13371_taskManager_=t;this.JSC$13371_networkManager_=new nb1(this.networkRequestFactory_.bind(this))};
_.V=rA5.prototype;_.V.networkRequestFactory_=function(){return new qT5(this.JSC$13371_networkService_,new _.ry(this.JSC$13371_taskManager_))};
_.V.reset=function(){this.JSC$13371_taskManager_.reset();this.JSC$13371_networkManager_.reset()};
_.V.start=function(){this.JSC$13371_taskManager_.start()};
_.V.pause=function(){this.JSC$13371_taskManager_.pause()};
_.V.getTaskManager=function(){return this.JSC$13371_taskManager_};
_.V.getNetworkManager=function(){return this.JSC$13371_networkManager_};
var ZEz=null,UeO=[],Nq1=0,A41=0,t9f=null,Yo=function(N){this.token=N};
Yo.getInstance=function(){var N;return _.K(function(t){if(t.nextAddress==1)return t.yield(_.ca(),2);N=t.yieldResult;if(!N)return t.return();Yo.instance||(Yo.instance=new Yo(N));return t.return(Yo.instance)})};
var c4J=function(N){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(gVf(N.token),2);t=O.yieldResult;return O.return(t.clear("resource-manifest-assets"))})},zt=function(N){this.token=N};
zt.getInstance=function(){var N;return _.K(function(t){if(t.nextAddress==1)return t.yield(_.ca(),2);N=t.yieldResult;if(!N)return t.return();zt.instance||(zt.instance=new zt(N));return t.return(zt.instance)})};
var y4r=function(N){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(gVf(N.token),2);t=O.yieldResult;return O.yield(t.clear("auth"),0)})},Igz=!1,aNm=null,Tqm=void 0,nVi=!1,lg5=function(N){_.Nz.call(this,N)};
_.p(lg5,_.miY);var fZ5=function(){var N=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return N?parseInt(N[1],10):0},Q3z=function(N){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+N)!=-1||document.currentScript.src.indexOf("&"+N)!=-1)},m_m=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},lZm=function(N){N.length?Ebr(N.shift(),function(){lZm(N)}):Wp1()},m4m=function(N){return"chrome-extension://"+N+"/cast_sender.js"},Ebr=function(N,
t,O){var H=document.createElement("script");
H.onerror=t;O&&(H.onload=O);_.UG(H,_.n1(N));(document.head||document.documentElement).appendChild(H)},Gc1=function(){var N=fZ5(),t=[];
if(N>1){var O=N-1;t.push("//www.gstatic.com/eureka/clank/"+N+"/cast_sender.js");t.push("//www.gstatic.com/eureka/clank/"+O+"/cast_sender.js")}return t},Wp1=function(){var N=m_m();
N&&N(!1,"No cast extension found")},IZ5=function(){if(RpJ){var N=2,t=m_m(),O=function(){N--;
N==0&&t&&t(!0)};
window.__onGCastApiAvailable=O;Ebr("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Wp1,O)}},nf1=function(){IZ5();
var N=Gc1();N.push("//www.gstatic.com/eureka/clank/cast_sender.js");lZm(N)},rlr=function(){IZ5();
var N=Gc1();N.push.apply(N,_.W6(QCq.map(m4m)));N.push("//www.gstatic.com/eureka/clank/cast_sender.js");lZm(N)},RpJ=Q3z("loadCastFramework")||Q3z("loadCastApplicationFramework"),QCq=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var vbm=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(vbm,_.C8);var JAx=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(JAx,_.C8);var ob1=function(){var N=new JAx;return _.XA(N,1,3)};var hW=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(hW,_.C8);var aEx=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(aEx,_.C8);var s3n=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(s3n,_.C8);s3n.prototype.getToken=function(){return _.YD(this,1)};
s3n.prototype.setToken=function(N){return _.rv(this,1,N)};
var zPJ=function(N){return _.R1(N,3,_.SJ,_.cA())},YM1=function(N){return _.R1(N,6,_.SJ,_.cA())};var Mx=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Mx,_.C8);Mx.prototype.getToken=function(){return _.Sg(this,s3n,2)};
Mx.prototype.setToken=function(N){return _.L8(this,2,N)};
Mx.prototype.getName=function(){return _.YD(this,6)};
var NAr=_.hR(Mx);var t61=function(N,t,O){this.requestMessage=N;this.methodDescriptor=t;this.metadata=O};
t61.prototype.getMetadata=function(){return this.metadata};var O7z=function(N,t){t=t===void 0?{}:t;this.responseMessage=N;this.metadata=t;this.status=null};
O7z.prototype.getMetadata=function(){return this.metadata};
O7z.prototype.getStatus=function(){return this.status};var bz=function(N,t,O,H,A){this.name=N;this.methodType="unary";this.requestType=t;this.responseType=O;this.requestSerializeFn=H;this.responseDeserializeFn=A},H7O=function(N,t,O){O=O===void 0?{}:O;
return new t61(t,N,O)};
bz.prototype.getName=function(){return this.name};var pK=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(pK,_.C8);pK.prototype.getHeader=function(){return _.Sg(this,hW,1)};
pK.prototype.setHeader=function(N){return _.L8(this,1,N)};
pK.prototype.hasHeader=function(){return _.$D(this,hW,1)};var AV5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(AV5,_.C8);var Z7J=new bz("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",pK,AV5,function(N){return N.serialize()},_.hR(AV5));var LK=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(LK,_.C8);LK.prototype.getHeader=function(){return _.Sg(this,hW,1)};
LK.prototype.setHeader=function(N){return _.L8(this,1,N)};
LK.prototype.hasHeader=function(){return _.$D(this,hW,1)};var V6i=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(V6i,_.C8);var Djr=new bz("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",LK,V6i,function(N){return N.serialize()},_.hR(V6i));var zw=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(zw,_.C8);zw.prototype.getHeader=function(){return _.Sg(this,hW,1)};
zw.prototype.setHeader=function(N){return _.L8(this,1,N)};
zw.prototype.hasHeader=function(){return _.$D(this,hW,1)};var Ujx=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Ujx,_.C8);Ujx.prototype.getValues=function(N){return _.kSr(this,1,N)};var CDi=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(CDi,_.C8);CDi.prototype.getLink=function(){return _.Sg(this,Mx,1)};var KTq=new bz("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",zw,CDi,function(N){return N.serialize()},_.hR(CDi));var Y0=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Y0,_.C8);Y0.prototype.getHeader=function(){return _.Sg(this,hW,1)};
Y0.prototype.setHeader=function(N){return _.L8(this,1,N)};
Y0.prototype.hasHeader=function(){return _.$D(this,hW,1)};var FTn=new bz("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Y0,Mx,function(N){return N.serialize()},NAr);var dji=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(dji,_.C8);var gcn=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(gcn,_.C8);gcn.prototype.getUrl=function(){return _.YD(this,2)};
gcn.prototype.setUrl=function(N){return _.rv(this,2,N)};var yVn=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(yVn,_.C8);var BAJ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(BAJ,_.C8);var cVi=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(cVi,_.C8);var IE5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(IE5,_.C8);var Wb5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Wb5,_.C8);var $jm=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p($jm,_.C8);var oSf=_.hR($jm);var jv5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(jv5,_.C8);var i71=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(i71,_.C8);_.V=i71.prototype;_.V.getHeader=function(){return _.Sg(this,hW,1)};
_.V.setHeader=function(N){return _.L8(this,1,N)};
_.V.hasHeader=function(){return _.$D(this,hW,1)};
_.V.getCompletionUrl=function(){return _.YD(this,6)};
_.V.getDeviceId=function(){return _.YD(this,11)};var unJ=new bz("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",i71,$jm,function(N){return N.serialize()},oSf);var Sbz=new Set(["SAPISIDHASH","APISIDHASH"]);var h85=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(h85,_.C8);h85.prototype.getMessage=function(){return _.YD(this,2)};
var M6J=_.hR(h85);var pb5=function(N,t){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=N.nodeReadableStream;this.grpcResponseDeserializeFn=t;this.xhr=N.xhr;this.xhrNodeReadableStream&&b7q(this)},e8x=function(N,t){var O=new LT5;
_.SF(N.xhr,"complete",function(){if(N.xhr.isSuccess()){var H=N.xhr.getResponseText();var A;if(A=t)A=N.xhr,A.JSC$9951_xhr_&&A.isComplete()?(A=A.JSC$9951_xhr_.getResponseHeader("Content-Type"),A=A===null?void 0:A):A=void 0,A=A==="text/plain";if(A){if(!atob)throw Error("ik");H=atob(H)}try{var Z=N.grpcResponseDeserializeFn(H)}catch(C){z8r(N,dUi(new _.WG(13,"Error when deserializing response data; error: "+C+(", response: "+H)),O));return}H=_.KYQ(N.xhr.getStatus());Ybr(N,ai5(N));H===0?TAz(N,Z):z8r(N,dUi(new _.WG(H,
"Xhr succeeded but the status code is not 200"),O))}else{H=N.xhr.getResponseText();Z=ai5(N);if(H){var U=wb5(N,H);H=U.code;A=U.details;U=U.metadata}else H=2,A="Rpc failed due to xhr error. uri: "+String(N.xhr.JSC$9951_lastUri_)+", error code: "+(N.xhr.JSC$9951_lastErrorCode_+", error: ")+N.xhr.getLastError(),U=Z;Ybr(N,Z);z8r(N,dUi(new _.WG(H,A,U),O))}})},b7q=function(N){N.xhrNodeReadableStream.on("data",function(t){if("1"in t){var O=t["1"];
try{var H=N.grpcResponseDeserializeFn(O)}catch(A){z8r(N,new _.WG(13,"Error when deserializing response data; error: "+A+(", response: "+O)))}H&&TAz(N,H)}if("2"in t)for(t=wb5(N,t["2"]),O=0;O<N.onStatusCallbacks.length;O++)N.onStatusCallbacks[O](t)});
N.xhrNodeReadableStream.on("end",function(){Ybr(N,ai5(N));for(var t=0;t<N.onEndCallbacks.length;t++)N.onEndCallbacks[t]()});
N.xhrNodeReadableStream.on("error",function(){if(N.onErrorCallbacks.length!==0){var t=N.xhr.JSC$9951_lastErrorCode_;t!==0||N.xhr.isSuccess()||(t=6);var O=-1;switch(t){case 0:var H=2;break;case 7:H=10;break;case 8:H=4;break;case 6:O=N.xhr.getStatus();H=_.KYQ(O);break;default:H=14}Ybr(N,ai5(N));t=_.Elu(t)+", error: "+N.xhr.getLastError();O!==-1&&(t+=", http status code: "+O);z8r(N,new _.WG(H,t))}})},ai5=function(N){var t={},O=Mzm(N.xhr);
Object.keys(O).forEach(function(H){t[H]=O[H]});
return t},wb5=function(N,t){var O=2,H={};
try{var A=M6J(t);O=_.$1(A,1);var Z=A.getMessage();_.y5(A,$_5,3,_.cA()).length&&(H["grpc-web-status-details-bin"]=t)}catch(U){N.xhr&&N.xhr.getStatus()===404?(O=5,Z="Not Found: "+String(N.xhr.JSC$9951_lastUri_)):(O=14,Z="Unable to parse RpcStatus: "+U)}return{code:O,details:Z,metadata:H}};
pb5.prototype.on=function(N,t){N==="data"?this.onDataCallbacks.push(t):N==="metadata"?this.onMetadataCallbacks.push(t):N==="status"?this.onStatusCallbacks.push(t):N==="end"?this.onEndCallbacks.push(t):N==="error"&&this.onErrorCallbacks.push(t);return this};
var PDq=function(N,t){t=N.indexOf(t);t>-1&&N.splice(t,1)};
pb5.prototype.removeListener=function(N,t){N==="data"?PDq(this.onDataCallbacks,t):N==="metadata"?PDq(this.onMetadataCallbacks,t):N==="status"?PDq(this.onStatusCallbacks,t):N==="end"?PDq(this.onEndCallbacks,t):N==="error"&&PDq(this.onErrorCallbacks,t);return this};
pb5.prototype.cancel=function(){this.xhr.abort()};
var TAz=function(N,t){for(var O=0;O<N.onDataCallbacks.length;O++)N.onDataCallbacks[O](t)},Ybr=function(N,t){for(var O=0;O<N.onMetadataCallbacks.length;O++)N.onMetadataCallbacks[O](t)},z8r=function(N,t){for(var O=0;O<N.onErrorCallbacks.length;O++)N.onErrorCallbacks[O](t)},LT5=function(){var N=Error.call(this);
this.message=N.message;"stack"in N&&(this.stack=N.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(LT5,Error);var Xbf=function(N){this.JSC$19832_worker_=N.worker||null;this.JSC$19832_streamBinaryChunks_=N.streamBinaryChunks||!1;this.JSC$19832_credentialsMode_=void 0};
_.Od(Xbf,_.dHv);Xbf.prototype.createInstance=function(){var N=new ap(this.JSC$19832_worker_,this.JSC$19832_streamBinaryChunks_);this.JSC$19832_credentialsMode_&&N.setCredentialsMode(this.JSC$19832_credentialsMode_);return N};
Xbf.prototype.setCredentialsMode=function(N){this.JSC$19832_credentialsMode_=N};
var ap=function(N,t){_.Xm.call(this);this.JSC$19836_worker_=N;this.JSC$19836_streamBinaryChunks_=t;this.JSC$19836_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19836_responseHeaders_=null;this.JSC$19836_method_="GET";this.JSC$19836_url_="";this.inProgress_=!1;this.JSC$19836_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Od(ap,_.Xm);ap.prototype.open=function(N,t){if(this.readyState!=0)throw this.abort(),Error("jk");this.JSC$19836_method_=N;this.JSC$19836_url_=t;this.readyState=1;xjO(this)};
ap.prototype.send=function(N){if(this.readyState!=1)throw this.abort(),Error("kk");if(this.abortController_.signal.aborted)throw this.abort(),Error("lk");this.inProgress_=!0;var t={headers:this.requestHeaders_,method:this.JSC$19836_method_,credentials:this.JSC$19836_credentialsMode_,cache:void 0,signal:this.abortController_.signal};N&&(t.body=N);(this.JSC$19836_worker_||_.H4).fetch(new Request(this.JSC$19836_url_,t)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
ap.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,kGf(this));this.readyState=0};
ap.prototype.handleResponse_=function(N){if(this.inProgress_&&(this.fetchResponse_=N,this.JSC$19836_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19836_responseHeaders_=N.headers,this.readyState=2,xjO(this)),this.inProgress_&&(this.readyState=3,xjO(this),this.inProgress_)))if(this.responseType==="arraybuffer")N.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.H4.ReadableStream!==
"undefined"&&"body"in N){this.currentReader_=N.body.getReader();if(this.JSC$19836_streamBinaryChunks_){if(this.responseType)throw Error("mk");this.response=[]}else this.response=this.responseText="",this.JSC$19836_textDecoder_=new TextDecoder;qb1(this)}else N.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var qb1=function(N){N.currentReader_.read().then(N.handleDataFromStream_.bind(N)).catch(N.handleSendFailure_.bind(N))};
ap.prototype.handleDataFromStream_=function(N){if(this.inProgress_){if(this.JSC$19836_streamBinaryChunks_&&N.value)this.response.push(N.value);else if(!this.JSC$19836_streamBinaryChunks_){var t=N.value?N.value:new Uint8Array(0);if(t=this.JSC$19836_textDecoder_.decode(t,{stream:!N.done}))this.response=this.responseText+=t}N.done?kGf(this):xjO(this);this.readyState==3&&qb1(this)}};
ap.prototype.handleResponseText_=function(N){this.inProgress_&&(this.response=this.responseText=N,kGf(this))};
ap.prototype.handleResponseArrayBuffer_=function(N){this.inProgress_&&(this.response=N,kGf(this))};
ap.prototype.handleSendFailure_=function(){this.inProgress_&&kGf(this)};
var kGf=function(N){N.readyState=4;N.fetchResponse_=null;N.currentReader_=null;N.JSC$19836_textDecoder_=null;xjO(N)};
ap.prototype.setRequestHeader=function(N,t){this.requestHeaders_.append(N,t)};
ap.prototype.getResponseHeader=function(N){return this.JSC$19836_responseHeaders_?this.JSC$19836_responseHeaders_.get(N.toLowerCase())||"":""};
ap.prototype.getAllResponseHeaders=function(){if(!this.JSC$19836_responseHeaders_)return"";for(var N=[],t=this.JSC$19836_responseHeaders_.entries(),O=t.next();!O.done;)O=O.value,N.push(O[0]+": "+O[1]),O=t.next();return N.join("\r\n")};
ap.prototype.setCredentialsMode=function(N){this.JSC$19836_credentialsMode_=N};
var xjO=function(N){N.onreadystatechange&&N.onreadystatechange.call(N)};
Object.defineProperty(ap.prototype,"withCredentials",{get:function(){return this.JSC$19836_credentialsMode_==="include"},
set:function(N){this.setCredentialsMode(N?"include":"same-origin")}});var fi1=function(N){var t="";_.WW.forEach(N,function(O,H){t+=H;t+=":";t+=O;t+="\r\n"});
return t},ncO=function(N,t,O){if(_.WW.isEmpty(O))return N;
O=fi1(O);if(typeof N==="string")return _.o5(N,_.Ae(t),O);_.Ho(N,t,O);return N};var WTf=function(){this.isInputValid_=!0;this.JSC$19842_streamPos_=0;this.leftoverInput_=""};
WTf.prototype.isInputValid=function(){return this.isInputValid_};
WTf.prototype.decode=function(N){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("nk`"+this.JSC$19842_streamPos_+"`stream already broken`"+N);this.leftoverInput_+=N;N=Math.floor(this.leftoverInput_.length/4);if(N==0)return null;try{var t=_.qBg(this.leftoverInput_.slice(0,N*4))}catch(O){throw t=this.leftoverInput_,N=O.message,this.isInputValid_=!1,Error("nk`"+this.JSC$19842_streamPos_+"`"+N+"`"+t);}this.JSC$19842_streamPos_+=N*4;this.leftoverInput_=this.leftoverInput_.slice(N*4);return t};var BZf=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19845_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
BZf.prototype.isInputValid=function(){return this.state_!=3};
var rVx=function(N,t,O,H){N.state_=3;N.errorMessage_="The stream is broken @"+N.JSC$19845_streamPos_+"/"+O+". Error: "+H+". With input:\n"+t;throw Error(N.errorMessage_);};
BZf.prototype.acceptsBinaryInput=function(){return!0};
BZf.prototype.parse=function(N){function t(F){F&128&&rVx(Z,U,C,"invalid tag");(F&7)!=2&&rVx(Z,U,C,"invalid wire type");Z.tag_=F>>>3;Z.tag_!=1&&Z.tag_!=2&&Z.tag_!=15&&rVx(Z,U,C,"unexpected tag");Z.state_=1;Z.length_=0;Z.countLengthBytes_=0}
function O(F){Z.countLengthBytes_++;Z.countLengthBytes_==5&&F&240&&rVx(Z,U,C,"message length too long");Z.length_|=(F&127)<<(Z.countLengthBytes_-1)*7;F&128||(Z.state_=2,Z.countMessageBytes_=0,typeof Uint8Array!=="undefined"?Z.messageBuffer_=new Uint8Array(Z.length_):Z.messageBuffer_=Array(Z.length_),Z.length_==0&&A())}
function H(F){Z.messageBuffer_[Z.countMessageBytes_++]=F;Z.countMessageBytes_==Z.length_&&A()}
function A(){if(Z.tag_<15){var F={};F[Z.tag_]=Z.messageBuffer_;Z.result_.push(F)}Z.state_=0}
for(var Z=this,U=N instanceof Array?N:new Uint8Array(N),C=0;C<U.length;){switch(Z.state_){case 3:rVx(Z,U,C,"stream already broken");break;case 0:t(U[C]);break;case 1:O(U[C]);break;case 2:H(U[C]);break;default:throw Error("ok`"+Z.state_);}Z.JSC$19845_streamPos_++;C++}N=Z.result_;Z.result_=[];return N.length>0?N:null};var c5m=function(){this.errorMessage_=null;this.JSC$19848_streamPos_=0;this.base64Decoder_=new WTf;this.pbParser_=new BZf};
c5m.prototype.isInputValid=function(){return this.errorMessage_===null};
var Ii5=function(N,t,O){N.errorMessage_="The stream is broken @"+N.JSC$19848_streamPos_+". Error: "+O+". With input:\n"+t;throw Error(N.errorMessage_);};
c5m.prototype.acceptsBinaryInput=function(){return!1};
c5m.prototype.parse=function(N){this.errorMessage_!==null&&Ii5(this,N,"stream already broken");var t=null;try{var O=this.base64Decoder_.decode(N);t=O===null?null:this.pbParser_.parse(O)}catch(H){Ii5(this,N,H.message)}this.JSC$19848_streamPos_+=N.length;return t};var y5n=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19851_streamPos_=0;this.result_=[];this.statusParsed_=!1};
y5n.prototype.isInputValid=function(){return this.errorMessage_===null};
y5n.prototype.acceptsBinaryInput=function(){return!1};
y5n.prototype.parse=function(N){function t(F){Z.state_=6;Z.errorMessage_="The stream is broken @"+Z.JSC$19851_streamPos_+"/"+U+". Error: "+F+". With input:\n";throw Error(Z.errorMessage_);}
function O(){Z.jsonStreamParser_=new _.bD({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function H(F){if(F)for(var g=0;g<F.length;g++){var B={};B[1]=F[g];Z.result_.push(B)}}
function A(F){if(F){(Z.statusParsed_||F.length>1)&&t("extra status: "+F);Z.statusParsed_=!0;var g={};g[2]=F[0];Z.result_.push(g)}}
for(var Z=this,U=0;U<N.length;){var C;if(C=Z.state_!==2){a:{for(;U<N.length;){if(!_.Mj(N[U])){C=!0;break a}U++;Z.JSC$19851_streamPos_++}C=!1}C=!C}if(C)return null;switch(Z.state_){case 6:t("stream already broken");break;case 0:N[U]==="["?(Z.state_=1,U++,Z.JSC$19851_streamPos_++):t("unexpected input token");break;case 1:N[U]==="["?(Z.state_=2,O()):N[U]===","||N.slice(U,U+5)=="null,"?Z.state_=3:N[U]==="]"?(Z.state_=5,U++,Z.JSC$19851_streamPos_++):t("unexpected input token");break;case 2:C=Z.jsonStreamParser_.parse(N.substring(U));
H(C);Z.jsonStreamParser_.done()?(Z.state_=3,C=Z.jsonStreamParser_.JSC$11634_buffer_,Z.JSC$19851_streamPos_+=N.length-U-C.length,N=C,U=0):(Z.JSC$19851_streamPos_+=N.length-U,U=N.length);break;case 3:N[U]===","||N.slice(U,U+5)=="null,"?(Z.state_=4,O(),Z.jsonStreamParser_.parse("["),U+=N[U]===","?1:5,Z.JSC$19851_streamPos_++):N[U]==="]"&&(Z.state_=5,U++,Z.JSC$19851_streamPos_++);break;case 4:C=Z.jsonStreamParser_.parse(N.substring(U));A(C);Z.jsonStreamParser_.done()?(Z.state_=5,C=Z.jsonStreamParser_.JSC$11634_buffer_,
Z.JSC$19851_streamPos_+=N.length-U-C.length,N=C,U=0):(Z.JSC$19851_streamPos_+=N.length-U,U=N.length);break;case 5:t("extra input after stream end")}}return Z.result_.length>0?(N=Z.result_,Z.result_=[],N):null};var lim=function(N){this.JSC$19854_xhr_=N;this.JSC$19854_parser_=null;this.status_=this.JSC$19854_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19854_textDecoder_=null;this.JSC$19854_eventHandler_=new _.MT(this);this.JSC$19854_eventHandler_.listen(this.JSC$19854_xhr_,"readystatechange",this.JSC$19856_readyStateChangeHandler_)},Tw=function(N,t){N.status_!=t&&(N.status_=t,N.statusHandler_&&N.statusHandler_())},Qvm=function(N){N.JSC$19854_eventHandler_.removeAll();
if(N.JSC$19854_xhr_){var t=N.JSC$19854_xhr_;N.JSC$19854_xhr_=null;t.abort();t.dispose()}};
lim.prototype.getStatus=function(){return this.status_};
lim.prototype.JSC$19856_readyStateChangeHandler_=function(N){N=N.target;try{if(N==this.JSC$19854_xhr_)a:{var t=_.lM(this.JSC$19854_xhr_),O=this.JSC$19854_xhr_.JSC$9951_lastErrorCode_,H=this.JSC$19854_xhr_.getStatus(),A=this.JSC$19854_xhr_.getResponseText();N=[];if(this.JSC$19854_xhr_.getResponse()instanceof Array){var Z=this.JSC$19854_xhr_.getResponse();Z.length>0&&Z[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,N=Z)}if(!(t<3||t==3&&!A&&N.length==0))if(H=H==200||H==206,t==4&&(O==8?Tw(this,
7):O==7?Tw(this,8):H||Tw(this,3)),this.JSC$19854_parser_||(this.JSC$19854_parser_=$U5(this.JSC$19854_xhr_),this.JSC$19854_parser_==null&&Tw(this,5)),this.status_>2)Qvm(this);else{if(N.length>this.JSC$19854_pos_){var U=N.length;O=[];try{if(this.JSC$19854_parser_.acceptsBinaryInput())for(var C=0;C<U;C++){var F=this.JSC$19854_parser_.parse(Array.from(N[C]));F&&(O=O.concat(F))}else{F="";if(!this.JSC$19854_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("pk");this.JSC$19854_textDecoder_=
new TextDecoder}for(C=0;C<U;C++)F+=this.JSC$19854_textDecoder_.decode(N[C],{stream:t==4&&C==U-1});O=this.JSC$19854_parser_.parse(F)}N.splice(0,U);O&&this.dataHandler_(O)}catch(B){Tw(this,5);Qvm(this);break a}}else if(A.length>this.JSC$19854_pos_){C=A.slice(this.JSC$19854_pos_);this.JSC$19854_pos_=A.length;try{var g=this.JSC$19854_parser_.parse(C);g!=null&&this.dataHandler_&&this.dataHandler_(g)}catch(B){Tw(this,5);Qvm(this);break a}}t==4?(A.length!=0||this.hasStreamingResponseData_?Tw(this,2):Tw(this,
4),Qvm(this)):Tw(this,1)}}}catch(B){Tw(this,6),Qvm(this)}};var mjn=function(N){N=this.xhrReader_=N;var t=(0,_.qn)(this.onData_,this);N.dataHandler_=t;N=this.xhrReader_;t=(0,_.qn)(this.onStatusChange_,this);N.statusHandler_=t;this.JSC$19858_callbackMap_={};this.callbackOnceMap_={}};
_.V=mjn.prototype;_.V.on=function(N,t){var O=this.JSC$19858_callbackMap_[N];O||(O=[],this.JSC$19858_callbackMap_[N]=O);O.push(t);return this};
_.V.addListener=function(N,t){this.on(N,t);return this};
_.V.removeListener=function(N,t){var O=this.JSC$19858_callbackMap_[N];O&&_.rt(O,t);(N=this.callbackOnceMap_[N])&&_.rt(N,t);return this};
_.V.once=function(N,t){var O=this.callbackOnceMap_[N];O||(O=[],this.callbackOnceMap_[N]=O);O.push(t);return this};
_.V.onData_=function(N){var t=this.JSC$19858_callbackMap_.data;t&&Ec5(N,t);(t=this.callbackOnceMap_.data)&&Ec5(N,t);this.callbackOnceMap_.data=[]};
var Ec5=function(N,t){for(var O={},H=0;H<N.length;O={message$jscomp$1008:void 0},H++)O.message$jscomp$1008=N[H],t.forEach(function(A){return function(Z){try{Z(A.message$jscomp$1008)}catch(U){}}}(O))};
mjn.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:GG1(this,"readable");break;case 5:case 6:case 4:case 7:case 3:GG1(this,"error");break;case 8:GG1(this,"close");break;case 2:GG1(this,"end")}};
var GG1=function(N,t){var O=N.JSC$19858_callbackMap_[t];O&&O.forEach(function(H){try{H()}catch(A){}});
(O=N.callbackOnceMap_[t])&&O.forEach(function(H){H()});
N.callbackOnceMap_[t]=[]};var R81=function(){var N={format:"jspb"};N=N===void 0?{}:N;this.suppressCorsPreflight=N.suppressCorsPreflight||_.s2("suppressCorsPreflight",N)||!1;this.withCredentials=N.withCredentials||_.s2("withCredentials",N)||!1;this.streamInterceptors=N.streamInterceptors||[];this.unaryInterceptors=N.unaryInterceptors||[];this.workerScope=N.workerScope;this.chunkedServerStreaming=N.useFetchDownloadStreams||!1},ocJ=function(N,t,O,H,A,Z){Z=Z===void 0?{}:Z;
var U=t.substring(0,t.length-A.name.length),C,F=(C=Z)==null?void 0:C.signal;return vc5(function(g){return new Promise(function(B,c){if(F==null?0:F.aborted){var u=new _.WG(1,"Aborted");u.cause=F.reason;c(u)}else{var S={},b=JVx(N,g,U);b.on("error",function(z){return void c(z)});
b.on("metadata",function(z){S=z});
b.on("data",function(z){var w=S;w=w===void 0?{}:w;B(new O7z(z,w))});
F&&F.addEventListener("abort",function(){b.cancel();var z=new _.WG(1,"Aborted");z.cause=F.reason;c(z)})}})},N.unaryInterceptors).call(N,H7O(A,O,H)).then(function(g){return g.responseMessage})},svr=function(N,t,O,H,A,Z){Z=Z===void 0?{}:Z;
return ocJ(N,t,O,H,A,Z)};
R81.prototype.serverStreaming=function(N,t,O,H){var A=this,Z=N.substring(0,N.length-H.name.length);return N6x(function(U){var C=U.methodDescriptor,F=U.getMetadata(),g=tfq(A,!1);F=Oeq(A,F,g,Z+C.getName());var B=HeJ(g,C.responseDeserializeFn,!0);U=C.requestSerializeFn(U.requestMessage);g.send(F,"POST",U);return B},this.streamInterceptors).call(this,H7O(H,t,O))};
var JVx=function(N,t,O){var H=t.methodDescriptor,A=t.getMetadata(),Z=tfq(N,!0);N=Oeq(N,A,Z,O+H.getName());O=HeJ(Z,H.responseDeserializeFn,!1);e8x(O,A["X-Goog-Encode-Response-If-Executable"]==="base64");t=H.requestSerializeFn(t.requestMessage);Z.send(N,"POST",t);return O},tfq=function(N,t){t=N.chunkedServerStreaming&&!t;
return N.workerScope||t?new _.I7(new Xbf({worker:N.workerScope,streamBinaryChunks:t})):new _.I7},Oeq=function(N,t,O,H){t["Content-Type"]="application/json+protobuf";
t["X-User-Agent"]="grpc-web-javascript/0.1";var A=t.Authorization;if(A&&Sbz.has(A.split(" ")[0])||N.withCredentials)O.JSC$9951_withCredentials_=!0;if(N.suppressCorsPreflight)H=ncO(H,"$httpHeaders",t);else for(N=_.D(Object.keys(t)),A=N.next();!A.done;A=N.next())A=A.value,O.headers.set(A,t[A]);return H},HeJ=function(N,t,O){if(O){O=new lim(N);
var H=new mjn(O)}return new pb5({xhr:N,nodeReadableStream:H},t)},N6x=function(N,t){return t.reduce(function(O,H){return function(A){return H.intercept(A,O)}},N)},vc5=function(N,t){return t.reduce(function(O,H){return function(A){return H.intercept(A,O)}},N)};var AxJ=function(N){this.client_=new R81;this.hostname_=N==void 0?N:N.replace(/\/+$/,"")};
_.V=AxJ.prototype;_.V.JSC$19876_depositGoogleCredential=function(N,t,O){return svr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",N,t||{},Djr,O)};
_.V.deleteLink=function(N,t,O){return svr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",N,t||{},Z7J,O)};
_.V.JSC$19876_finishOAuth=function(N,t,O){return svr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",N,t||{},KTq,O)};
_.V.getLink=function(N,t,O){return svr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",N,t||{},FTn,O)};
_.V.startLinkingSession=function(N,t,O){return svr(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",N,t||{},unJ,O)};var Zex=[0,_.Jw,1,d_5,[0,_.tC,[0,_.sd,-1]],[0,FCq],[0,_.VA,-1],[0,FCq]];var Vfm=function(){this.storage=new Map},USf=function(N,t,O,H,A){if(!N.storage.has(t))return null;
N=_.D(N.storage.get(t));for(t=N.next();!t.done;t=N.next())if(t=t.value,!A||t.linkName===A)if(O&&t.scopes&&DSq(t.scopes,O)||H&&t.capabilities&&DSq(t.capabilities,H))return t;return null},CKJ=function(N,t,O){if(!O)N.storage.delete(t);
else if(N.storage.has(t)){var H=N.storage.get(t).filter(function(A){return A.linkName!==O});
H.length>0?N.storage.set(t,H):N.storage.delete(t)}},DSq=function(N,t){t=_.D(t);
for(var O=t.next();!O.done;O=t.next())if(!N.has(O.value))return!1;return!0};var KVO=function(){var N=_.Ro("LINK_GAL_DOMAIN");this.alsDomain1p=_.Ro("LINK_GAL_DOMAIN");this.alsDomain3p=N;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},FVJ=function(N,t){N.apiKey=t;
return N};
KVO.prototype.build=function(){var N={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("qk");N.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("rk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("sk");N.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(N.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)N.apiKey=
this.apiKey,N.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("tk");N.oauthToken=this.oauthToken;N.alsDomain=this.alsDomain3p}N.clientXd3=this.clientXd3;N.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(N.authUser=this.authUser);this.bucket!==void 0&&(N.bucket=this.bucket);this.completionUrl!==void 0&&(N.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(N.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(N.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(N.locale=this.locale);this.localStorage!==void 0&&(N.localStorage=this.localStorage);N.loggerType=this.loggerType;N.clientEnvironment=this.clientEnvironment;N.colorScheme=this.colorScheme;N.showCloseOption=this.showCloseOption;return N};var Tt=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Tt,_.C8);var dSn=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(dSn,_.C8);var gs5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(gs5,_.C8);var ej=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ej,_.C8);var yxf=function(N){return _.aG(N,1)};var B6f=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(B6f,_.C8);var bx5=_.hR(B6f),wC=[1,2,3,4,5];var uFr=function(N){try{return bx5(N)}catch(t){return null}},cx5=function(){},SM5=function(N,t){switch(_.S0(t,wC)){case 4:return(t=_.e0(t,gs5,4,wC))&&N.logStateTransition(_.aG(t,1)),!0;
case 5:return(t=_.e0(t,dSn,5,wC))&&N.logInternalEvent(_.aG(t,1)),!0}return!1},pzf=function(N){switch(N){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Ep(N)}};var j8r=function(N,t){var O=this;this.validator=N;this.messageListener=t;this.dismissCallback=function(){$S1(O,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19905_receiveMessage=function(H){H.type==="message"&&(H=H.event_,H!==null&&(new URL(O.iframe.src)).origin===H.origin&&O.validator(H.data,H.origin)&&!O.messageListener(H.data)&&(O.JSC$19905_resolveCb!==void 0&&O.JSC$19905_resolveCb(H.data),j$1(O)))}},Mp1=function(N,t,O){N.uiHandler!==void 0&&$S1(N,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(H,A){N.JSC$19905_resolveCb=H;N.JSC$19905_rejectCb=A;N.iframe=document.createElement("iframe");_.No(N.iframe,t);N.uiHandler=O.displayContent(N.iframe,N.dismissCallback);_.SF(window,"message",N.JSC$19905_receiveMessage,!1,N)})},$S1=function(N,t){N.JSC$19905_rejectCb!==void 0&&N.JSC$19905_rejectCb(t);
j$1(N)},j$1=function(N){N.uiHandler!==void 0&&N.uiHandler.hideContent();
_.PG(window,"message",N.JSC$19905_receiveMessage,!1,N);N.JSC$19905_resolveCb=void 0;N.JSC$19905_rejectCb=void 0;N.uiHandler=void 0;N.iframe=void 0};var ieq=function(N){if(N===2){var t;N=((t=window)==null?0:t.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return N},hPO=function(N){N=ieq(N);
switch(N){case 0:return"light";case 1:return"dark";default:_.Ep(N)}};var ixi=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),u65=function(N,t){this.JSC$19917_linkingSession=N;this.noticeConfig=t;this.displayInfoMap=new Map;var O=new Map;if(_.$D(this.JSC$19917_linkingSession,yVn,7))for(N=_.Sg(this.JSC$19917_linkingSession,yVn,7),N=_.y5(N,gcn,1,_.cA()),N=_.D(N),t=N.next();!t.done;t=N.next())t=t.value,O.set(_.aG(t,1),_.LYx(_.Sg(t,_.IMx,3)));if(O.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){t=this.noticeConfig.enabledDataUsageNoticeUis;N=t.has(0)?O.get(1):void 0;t=t.has(1)?O.get(2):void 0;O=N!==void 0&&t!==void 0?O.get(3):void 0;var H=this.noticeConfig.nestedOrigins;var A=new B6f;var Z=new Tt;A=_.zN(A,2,wC,Z);Z=new B6f;var U=new Tt;Z=_.zN(Z,3,wC,U);U=[];N!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:N,lastEvent:A,nestedOrigins:H}]),U.push({trustedUrl:N,lastEvent:A,nestedOrigins:H}));t!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:t,lastEvent:Z,nestedOrigins:H}]),U.push({trustedUrl:t,lastEvent:Z,nestedOrigins:H}));O!==void 0?this.displayInfoMap.set(3,[{trustedUrl:O,lastEvent:Z,nestedOrigins:H}]):this.displayInfoMap.set(3,U)}};var Skn=function(N){var t=new Vfm;this.galService=N;this.galCache=t};
Skn.prototype.getLink=function(N){var t=N.serviceId;var O=N.scopes;var H=N.capabilities;var A=N.linkName;var Z=this,U;return _.K(function(C){if(H!==void 0&&O!==void 0)throw Error("uk");U=USf(Z.galCache,t,O,H,A);return U!==null?C.return(U):C.return(Z.galService.getLink({serviceId:t,sessionId:Math.floor(Math.random()*2147483648),scopes:O,capabilities:H,linkName:A}).then(function(F){F=TZO(F);var g=Z.galCache;g.storage.has(t)?g.storage.get(t).push(F):g.storage.set(t,[F]);return F}))})};
Skn.prototype.deleteLink=function(N,t,O){var H=this;return _.K(function(A){CKJ(H.galCache,N,O);return A.return(H.galService.deleteLink({serviceId:N,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:t,linkName:O}).then(function(){return!0}))})};var Mfq=function(N,t){var O=this;this.validator=N;this.msgHandler=t;this.closedPopupTimeout=this.JSC$19939_rejectCb=this.JSC$19939_resolveCb=this.popup=null;this.JSC$19939_receiveMessage=function(H){if(H!==null&&(H=H.event_,H.source===O.popup)){var A=H.data;if(O.validator(A,H.origin)){var Z;(Z=O.msgHandler)!=null&&Z.call(O,A)||(O.JSC$19939_resolveCb!==null&&O.JSC$19939_resolveCb(A),h$5(O))}}}};
Mfq.prototype.open=function(N,t){var O=this;this.popup!==null&&bei(this);return new Promise(function(H,A){O.JSC$19939_resolveCb=H;O.JSC$19939_rejectCb=A;O.popup=_.OG(window,N,"",t);_.SF(window,"message",O.JSC$19939_receiveMessage,!1,O);p8x(O)})};
var bei=function(N,t){N.JSC$19939_rejectCb!==null&&N.JSC$19939_rejectCb(t);h$5(N)},h$5=function(N){N.closedPopupTimeout&&(N.closedPopupTimeout.cancel(),N.closedPopupTimeout=null);
N.popup&&N.popup.close();_.PG(window,"message",N.JSC$19939_receiveMessage,!1,N);N.popup=null;N.JSC$19939_resolveCb=null;N.JSC$19939_rejectCb=null},p8x=function(N){N.closedPopupTimeout=_.rOB(100).then(function(){N.popup?N.popup.closed?LVf(N):p8x(N):bei(N,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},LVf=function(N){N.closedPopupTimeout=_.rOB(100).then(function(){bei(N,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var z$5=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),Yk5=function(N,t,O,H,A,Z,U,C,F,g){var B=this;this.serviceId=N;this.sessionId=t;this.galService=O;this.oauthDetails=H;this.galLogger=A;this.interactionMode=Z;this.redirectServiceUrl=U;this.consentLanguageKeys=C;this.dynamicUrlParameters=F;this.partnerConfigMinReadTimestamp=g;this.started=!1;this.JSC$19945_dataValidator=function(c,
u){var S=z$5.has(u);S||B.redirectServiceUrl===void 0||(S=B.redirectServiceUrl===u);return S?c.sentinel==="gdi":!1}};
Yk5.prototype.complete=function(){var N=this,t;return _.K(function(O){if(N.interactionMode!==1)return O.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));t=r51.getRedirectStateFromUri();return t===null?O.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):O.return(ac1(N,t))})};
Yk5.prototype.start=function(){var N=this,t;return _.K(function(O){if(N.started)return O.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.YD(N.oauthDetails,1))return O.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(N.interactionMode===1)return r51.setLocation(_.YD(N.oauthDetails,1)),O.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));N.started=!0;N.galLogger.logStateTransition(5);
t=r51.getPostMessagePopup(N.JSC$19945_dataValidator);return O.return(t.open(_.YD(N.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(H){N.started=!1;var A=N.galLogger;if((H==null?void 0:H.error)!==void 0)throw A.logInternalEvent(59),Error("vk");if((H==null?void 0:H.redirect_state)===void 0)throw A.logInternalEvent(131),Error("wk");return ac1(N,H.redirect_state)}).catch(function(H){N.started=
!1;
return H.errorCode!==void 0?{statusCode:H.errorCode,statusMessage:H.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var ac1=function(N,t){return _.K(function(O){return O.return(T6z(N.galService,{serviceId:N.serviceId,sessionId:N.sessionId,dynamicUrlParameters:N.dynamicUrlParameters,redirectState:t,consentLanguageKeys:N.consentLanguageKeys,partnerConfigMinReadTimestamp:N.partnerConfigMinReadTimestamp}).then(function(H){var A={statusCode:1,link:TZO(H.getLink())};j_J(_.iC(H,3))!==void 0&&(A.callerState=j_J(_.iC(H,3)));_.XmN(H,4,Ujx,$2m).size>0&&(A.redirectUriParams=new Map(Array.from(_.XmN(H,4,Ujx,$2m).entries()).map(function(Z){var U=
_.D(Z);Z=U.next().value;var C=U.next().value;U=[];var F=U.concat;C=_.R1(C,1,_.SJ,_.cA());return[Z,F.call(U,_.W6(C))]})));
N.galLogger.logInternalEvent(134);return A}))})},r51={getPostMessagePopup:function(N){return new Mfq(N)},
getRedirectStateFromUri:function(){var N=_.tJ(r51.getLocation()).fragment_;return(new _.jz(N)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(N){_.jxG(window.location,_.Id(N))},
createOAuthFlow:function(N,t){return new Yk5(N.serviceId,N.sessionId,N.galService,t,N.galLogger,N.interactionMode,N.redirectServiceUrl,N.consentLanguageKeys,N.dynamicUrlParameters,N.partnerConfigMinReadTimestamp)}};var w81=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(w81,_.C8);var e$1=_.hR(w81);var PKr=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),X8r=function(N,t,O,H,A,Z,U,C,F){var g=this;this.serviceId=N;this.sessionId=t;this.galService=O;this.gsiWebFlowDetails=H;this.colorScheme=A;this.showCloseOption=Z;this.galLogger=U;this.interactionMode=C;this.redirectServiceUrl=F;this.started=!1;this.JSC$19958_dataValidator=function(B,c){var u=PKr.has(c);u||g.redirectServiceUrl===
void 0||(u=g.redirectServiceUrl===c);return u?B.sentinel==="gal":!1};
this.logEventProcessor=function(B){return B.result?(B=uFr(B.result))?SM5(g.galLogger,B):!1:!1}};
X8r.prototype.complete=function(){var N=this,t,O;return _.K(function(H){if(N.interactionMode!==1)return H.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));t=lE5.getRedirectStateFromUri();if(t===void 0)return N.galLogger.JSC$19897_logErrorEvent(131),H.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return O=xSJ(N,t),H.return(kL1(N,O))}catch(A){return H.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
X8r.prototype.start=function(){var N=this,t;return _.K(function(O){if(N.started)return O.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.YD(N.gsiWebFlowDetails,1))return O.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(N.interactionMode===1)return lE5.setLocation(qki(N,_.YD(N.gsiWebFlowDetails,1))),O.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
N.started=!0;t=lE5.getPostMessagePopup(N.JSC$19958_dataValidator,N.logEventProcessor);return O.return(t.open(qki(N,_.YD(N.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(H){N.started=!1;if((H==null?void 0:H.result)===void 0)throw N.galLogger.JSC$19897_logErrorEvent(131),Error("wk");H=xSJ(N,H.result);return kL1(N,H)}).catch(function(H){N.started=!1;
return H.errorCode!==void 0?{statusCode:H.errorCode,statusMessage:H.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var qki=function(N,t){N=["result_channel",N.interactionMode===1?"2":"1","color_scheme",hPO(N.colorScheme),"show_close_option",N.showCloseOption];return cAJ(t,N)},kL1=function(N,t){if(t!==null&&_.$D(t,ej,2)){var O,H=t==null?void 0:(O=_.Sg(t,ej,2))==null?void 0:_.aG(O,2);
H&&N.galLogger.JSC$19897_logErrorEvent(pzf(H));return yxf(_.Sg(t,ej,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return N.galService.getLink({serviceId:N.serviceId,sessionId:N.sessionId,consistencyKey:_.YD(t,1)}).then(function(A){A=TZO(A);N.galLogger.logInternalEvent(134);return{statusCode:1,link:A}})},xSJ=function(N,t){t=e$1(t);
if(!_.$D(t,ej,2)&&_.YD(t,1)==="")throw N.galLogger.JSC$19897_logErrorEvent(5),Error("xk");return t},lE5={getPostMessagePopup:function(N,t){return new Mfq(N,t)},
getRedirectStateFromUri:function(){return _.OH(_.tJ(lE5.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(N){_.jxG(window.location,_.Id(N))},
createStreamlinedFlow:function(N,t){return new X8r(N.serviceId,N.sessionId,N.galService,t,N.colorScheme,N.showCloseOption,N.galLogger,N.interactionMode,N.redirectServiceUrl)}};var vSn=function(N){this.storage=(N=N?_.lP("GAL"):_.Iax("GAL"))?new _.nF(N):null};
vSn.prototype.getSession=function(N){if(this.storage!==null)try{var t=this.storage.get("SAVED_SESSION");if(t===void 0)return null;if(t.serviceId===N)return t}catch(O){}return null};var fcn=function(){};
_.p(fcn,cx5);fcn.prototype.logStateTransition=function(){};
fcn.prototype.logInternalEvent=function(){};
fcn.prototype.JSC$19897_logErrorEvent=function(){};var ns5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ns5,_.C8);ns5.prototype.getCompletionUrl=function(){return _.YD(this,15)};var wR=function(N,t,O,H,A,Z){this.serviceId=N;this.environment=t;this.sessionId=O;this.colorSchemeSelected=H;this.colorThemeDisplayed=A;this.JSC$19971_transport=Z;this.currentState=1};
_.p(wR,cx5);wR.prototype.logStateTransition=function(N){var t=WVi(this);t=_.hr(t,3,this.currentState);t=_.hr(t,1,N);this.currentState=N;N=hf1(1);this.dispatch(t,N)};
wR.prototype.logInternalEvent=function(N){N=hf1(N);this.dispatch(WVi(this),N)};
wR.prototype.JSC$19897_logErrorEvent=function(N){var t=WVi(this);t=_.hr(t,1,10);N=hf1(N);this.dispatch(t,N)};
var WVi=function(N){var t=new ns5;t=_.hr(t,1,N.currentState);t=_.Xa(t,7,N.serviceId);var O,H;var A=((O=window)==null?0:(H=O.location)==null?0:H.href)?_.tJ(window.location.href).JSC$10187_domain_:"NO_PACKAGE_NAME";O=_.Xa(t,8,A);O=_.hr(O,6,N.environment);O=_.Xa(O,5,"100");O=_.hr(O,11,N.colorSchemeSelected);return _.hr(O,12,N.colorThemeDisplayed)};
wR.prototype.dispatch=function(N,t){t===void 0&&(t=new _.uM);var O=t;N=N.serialize();O=_.Xa(O,8,N);_.fb(O,12,this.sessionId);this.JSC$19971_transport.dispatch(t)};var rxr=function(N,t){this.loggerType=N;this.sessionIndex=t!=null?t:0},Icm;
rxr.prototype.create=function(N,t,O,H,A){switch(this.loggerType){case 0:return new fcn;case 1:return Icm||(Icm=(new _.bu(555,this.sessionIndex.toString())).build()),new wR(N,t,O,H,A,Icm);default:_.Ep(this.loggerType,"unknown logger type")}};var Q81=[6,2,3,1],Oi1=new Map([[4,1],[1,6],[2,2],[3,3]]),Xzf={statusCode:7,statusMessage:"Failed to create flow object"},GEr=function(N,t,O,H,A,Z,U,C,F,g){this.serviceId=N;this.sessionId=t;this.config=O;this.galService=H;this.JSC$19978_linkingSession=A;this.googleScopes=Z;this.callerState=U;this.consentLanguageKeys=C;this.dynamicUrlParameters=F;this.partnerConfigMinReadTimestamp=g;this.currentFlow=0;H=this.JSC$19978_linkingSession;A=new Set;_.$D(H,Wb5,1)&&A.add(1);_.$D(H,cVi,2)&&_.$D(H,IE5,6)&&A.add(2);
_.$D(H,BAJ,3)&&_.$D(H,IE5,6)&&A.add(3);_.$D(H,dji,4)&&A.add(6);this.supportedFlows=A;H=O.loggerType;A=O.clientEnvironment;a:{Z=O.colorScheme;switch(Z){case 0:Z=1;break a;case 1:Z=2;break a;case 2:Z=3;break a;default:_.Ep(Z)}Z=void 0}a:{U=O.colorScheme;U=ieq(U);switch(U){case 0:U=1;break a;case 1:U=2;break a;default:_.Ep(U)}U=void 0}this.galLogger=(new rxr(H,O.authUser)).create(N,A,t,Z,U)},mSq=function(N){return new Promise(function(t){var O,H,A,Z,U,C,F,g,B,c;
return _.K(function(u){switch(u.nextAddress){case 1:O=mUx(N.currentFlow,N.supportedFlows),H=!1,A=new u65(N.JSC$19978_linkingSession,N.config.dataUsageNoticeConfig);case 2:if(O===void 0){u.jumpTo(4);break}_.Mo(u,5);var S=A,b=O,z=void 0;H?b===1&&(z=S.displayInfoMap.get(2)):b===2||b===3?z=S.displayInfoMap.get(1):b===1&&(z=S.displayInfoMap.get(3));Z=z?z:[];U=N.consentLanguageKeys;C=_.D(Z);F=C.next();case 7:if(F.done)return N.currentFlow=O,u.yield(kEm(lci(N,U)),11);g=F.value;return u.yield(Lbx(g,N.config.dataUsageNoticeConfig.uiAdapter,
N.config.colorScheme,N.galLogger),10);case 10:B=u.yieldResult;if(B.statusCode!==1)return Q$r(N),t(qM5({statusCode:B.statusCode,statusMessage:B.statusMessage},N.callerState)),u.return();B.consentLanguageKeys!==void 0&&(U=B.consentLanguageKeys);F=C.next();u.jumpTo(7);break;case 11:c=u.yieldResult;if(c.statusCode!==10)return c.statusCode!==6&&Q$r(N),c.statusCode!==1&&N.callerState!==void 0&&(c.callerState=N.callerState),t(c),u.return();_.Do(u,6);break;case 5:_.ax(u);case 6:O=mUx(N.currentFlow,N.supportedFlows);
H=!0;u.jumpTo(2);break;case 4:Q$r(N),t(qM5({statusCode:12,statusMessage:"Linking failed"},N.callerState)),_.Ty(u)}})})},Q$r=function(N){J55(N.serviceId,N.config.localStorage);
N.currentFlow=0},Nvz=function(N,t,O){N.currentFlow=t;
return fE5(lci(N,O)).then(function(H){return H.statusCode===10&&N.config.interactionMode===1&&mUx(N.currentFlow,N.supportedFlows)!==void 0?mSq(N):H})},lci=function(N,t){return{flowParams:{serviceId:N.serviceId,
sessionId:N.sessionId,galService:N.galService,galLogger:N.galLogger,interactionMode:N.config.interactionMode,redirectServiceUrl:N.config.redirectServiceUrl,colorScheme:N.config.colorScheme,consentLanguageKeys:t,dynamicUrlParameters:N.dynamicUrlParameters,showCloseOption:N.config.showCloseOption,partnerConfigMinReadTimestamp:N.partnerConfigMinReadTimestamp},currentFlow:N.currentFlow,config:N.config,session:N.JSC$19978_linkingSession,googleScopes:N.googleScopes,callerState:N.callerState}};var Aqz=function(N,t){this.config=N;this.galService=t.getService();this.JSC$19991_galRepository=t.JSC$20009_galRepository};
Aqz.prototype.getLink=function(N,t){return Esm(this,N,t)};
var Esm=function(N,t,O){return N.JSC$19991_galRepository.getLink({serviceId:t,scopes:void 0,capabilities:void 0,linkName:O}).then(function(H){return{statusCode:1,link:H}}).catch(function(H){return{statusCode:Hix(H.code),
statusMessage:H.message}})};
Aqz.prototype.deleteLink=function(N,t){return this.JSC$19991_galRepository.deleteLink(N,this.config.accountLinkingEntryPoint,t).then(function(){return{statusCode:1}}).catch(function(O){return{statusCode:Hix(O.code),
statusMessage:O.message}})};
Aqz.prototype.startLinkingSession=function(N){var t=N.serviceId;var O=N.sessionId;return RPm({serviceId:t,sessionId:O!==void 0?O:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:N.loginHint,callerState:N.callerState,consentLanguageKeys:N.consentLanguageKeys,linkName:N.linkName,dynamicUrlParameters:N.dynamicUrlParameters,partnerConfigMinReadTimestamp:N.partnerConfigMinReadTimestamp})};var e$=function(N,t,O,H,A,Z,U){this.apiKey=t;this.authUser=O;this.oauthToken=H;this.bucket=A;this.locale=Z;this.galSdkEventHandler=U;if(H===void 0){if(t===void 0)throw Error("yk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new AxJ(N)};
e$.prototype.deleteLink=function(N){var t=N.serviceId;var O=N.sessionId;var H=N.accountLinkingEntryPoint;var A=N.linkName;var Z=this,U;return _.K(function(C){var F=(new pK).setHeader(Z.getHeader(O));var g=GLn({serviceId:t,linkName:A});F=_.L8(F,2,g);U=_.XA(F,3,H);return C.return(Z.makeRequest(Z.galServiceClient.deleteLink,U,[1,3],[2,4]))})};
var T6z=function(N,t){var O=t.serviceId;var H=t.sessionId;var A=t.dynamicUrlParameters;var Z=t.redirectState;var U=t.consentLanguageKeys;var C=t.partnerConfigMinReadTimestamp;var F;return _.K(function(g){var B=(new zw).setHeader(N.getHeader(H,A));B=_.rv(B,2,O);F=_.rv(B,4,Z);U!==void 0&&_.rv(F,5,U);C!==void 0&&_.L8(F,6,C);return g.return(N.makeRequest(N.galServiceClient.JSC$19876_finishOAuth,F,[1,3],[2,4]))})};
e$.prototype.getLink=function(N){var t=N.serviceId;var O=N.sessionId;var H=N.scopes;var A=N.capabilities;var Z=N.consistencyKey;var U=N.linkName;var C=this,F;return _.K(function(g){var B=(new Y0).setHeader(C.getHeader(O)),c=GLn({serviceId:t,scopes:H,capabilities:A,linkName:U});F=_.L8(B,2,c);Z!==void 0&&(B=ob1(),B=_.rv(B,2,Z),_.L8(F,3,B));return g.return(C.makeRequest(C.galServiceClient.getLink,F,[1,3],[2,4]))})};
var nSi=function(N,t){var O=t.serviceId;var H=t.sessionId;var A=t.googleScopes;var Z=t.consistencyKey;var U;return _.K(function(C){var F=(new LK).setHeader(N.getHeader(H));F=_.rv(F,2,O);var g=Array.from(A.values());F=_.sx(F,3,g,_.cm);g=ob1();g=_.rv(g,2,Z);U=_.L8(F,4,g);return C.return(N.makeRequest(N.galServiceClient.JSC$19876_depositGoogleCredential,U,[1,3],[2,4]))})};
e$.prototype.startLinkingSession=function(N){var t=N.serviceId;var O=N.sessionId;var H=N.scopes;var A=N.capabilities;var Z=N.loginHint;var U=N.supportedFlows;var C=N.completionUrl;var F=N.usePingPong;var g=N.twoWayLinking;var B=N.accountLinkingEntryPoint;var c=N.callerState;var u=N.consentLanguageKeys;var S=N.googleScopes;var b=N.dataUsageNoticeConfig;var z=N.linkName;var w=N.dynamicUrlParameters;var P=N.partnerConfigMinReadTimestamp;var x=this,l,I;return _.K(function(r){if(A!==void 0&&H!==void 0)throw Error("uk");
var E=(new i71).setHeader(x.getHeader(O,w));l=_.rv(E,2,t);z!==void 0&&_.rv(l,14,z);if(A!==void 0){E=l;var J=Array.from(A.values());_.sx(E,5,J,_.cm)}else H!==void 0&&(E=l,J=Array.from(H.values()),_.sx(E,3,J,_.cm));C!==void 0&&_.rv(l,6,C);F!==void 0&&_.hH(l,15,F);U!==void 0&&(E=l,J=Array.from(U.values()),_.sx(E,4,J,_.Hm));if(g!==void 0){if(g&&(!S||S.size===0))throw Error("zk");_.hH(l,8,g)}B!==void 0&&_.XA(l,9,B);Z!==void 0&&_.rv(l,13,Z);c!==void 0&&(E=l,J=(new TextEncoder).encode(c),_.Nm(E,12,_.eE(J,
!1),_.TS()));u!==void 0&&_.rv(l,16,u);P!==void 0&&_.L8(l,18,P);if(b!==void 0&&b.size>0||S!==void 0&&S.size>0)I=new jv5,S!==void 0&&S.size>0&&(E=I,J=Array.from(S.values()),_.sx(E,1,J,_.cm)),b!==void 0&&(b.has(0)&&_.rm9(I,2,_.Hm,1,_.Zz),b.has(1)&&_.rm9(I,2,_.Hm,2,_.Zz)),_.L8(l,17,I);return r.return(x.makeRequest(x.galServiceClient.startLinkingSession,l,[1],[2]))})};
e$.prototype.getMetadata=function(){var N=this,t,O;return _.K(function(H){t={};N.useFpa?(t["X-Goog-Api-Key"]=N.apiKey,t["X-Goog-AuthUser"]=N.authUser!==void 0?N.authUser.toString():"0",(O=_.ynt([]))&&(t.Authorization=O)):t.Authorization="Bearer "+N.oauthToken;N.locale&&(t["accept-language"]=N.locale);return H.return(t)})};
e$.prototype.makeRequest=function(N,t,O,H){var A=this,Z;return _.K(function(U){if(U.nextAddress==1)return U.yield(A.getMetadata(),2);Z=U.yieldResult;R$1(A,O);return U.return(N.bind(A.galServiceClient)(t,Z).finally(function(){R$1(A,H)}))})};
var R$1=function(N,t){N.galSdkEventHandler!==void 0&&t.forEach(function(O){N.galSdkEventHandler.onEvent(O)})};
e$.prototype.getHeader=function(N,t){var O=new hW;N=_.Nm(O,2,_.Dz(N),0);N=_.XA(N,5,3);t=_.sx(N,8,t,_.cm);this.bucket!==void 0&&_.rv(t,1,this.bucket);return t};
var GLn=function(N){var t=N.serviceId;var O=N.scopes;var H=N.capabilities;N=N.linkName;if(H!==void 0&&O!==void 0)throw Error("uk");var A=new vbm;t=_.rv(A,1,t);H!==void 0?(O=Array.from(H.values()),_.sx(t,5,O,_.cm)):O!==void 0&&(O=Array.from(O.values()),_.sx(t,3,O,_.cm));N!==void 0&&_.rv(t,6,N);return t};var Zi1=function(N){this.galService=new e$(N.alsDomain,N.apiKey,N.authUser,N.oauthToken,N.bucket,N.locale,N.galSdkEventHandler);this.JSC$20009_galRepository=new Skn(this.galService)};
Zi1.prototype.getService=function(){return this.galService};var vsO=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(vsO,_.C8);var Jx5=function(N){var t=new vsO;return _.hr(t,1,N)};
vsO.prototype.setErrorMessage=function(N){return _.Xa(this,2,N)};var osm=[0,_.Zb,_.oG,_.Zb];var PB=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(PB,_.C8);var s$r=[0,[1,2,3],_.Ow,[0,_.Sxy,_.x01,-1],_.Ow,[0,KCz,-1],_.NO];var N_f=[0,_.RG,1,_.Zb,_.oG,-1,1,_.H1,_.lC,_.Zb,-1,s$r];var t75=[0,_.Zb,[0,_.H1,_.lC,[0,_.oG]],_.vU,[0,_.Zb,-1]];var FE=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(FE,_.C8);var OYO=[0,_.oG,_.Zb,-2,_.RG,_.Zb,_.RG,_.Zb,-2,1,_.vU];var HY1=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(HY1,_.C8);var Acm=[0,_.RG];var ZY1=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ZY1,_.C8);var V75=[0,_.Zb,t75,Acm,OYO,N_f];var J$J=_.u9(ZY1,V75);var Dcz=[0,Zex];var A8J=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(A8J,_.C8);var Ucm=[0,[1,3],gbJ,_.Zb,gbJ];var Hf1=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Hf1,_.C8);var CA5=[0,_.Zb];var KXm=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(KXm,_.C8);var Zfx=function(N){return _.e0(N,vsO,2,KK)},FXr=function(N){var t=new KXm;
return _.zN(t,2,KK,N)},KK=[1,
2];var dcn=[0,KK,_.Ow,CA5,_.Ow,osm,_.tC,Ucm,1,_.Zb,Dcz];var g9m=[0,1,[0,[1,2,3],_.Ow,[0],_.Ow,[0,j3i],_.Ow,[0,Zex]]];var ycr=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(ycr,_.C8);var ccm=function(N){var t=new ycr;return _.zN(t,3,B_1,N)},B_1=[2,
3];var $c1=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p($c1,_.C8);var jy5=function(N,t){return _.L8(N,2,t)},iYm=function(N,t){return _.L8(N,8,t)},uLr=function(N,t){return _.L8(N,3,t)};var SnO=[0,_.Zb,dcn,V75,_.KV,[0,[5,6,7],[0,_.Zb,-2],[0,_.RG,_.Zb,_.oG],[0,s$r],[0,_.oG,_.Zb,-1,_.CV,_.Zb],_.Ow,[0,[0,_.RG],_.Zb,-1],_.Ow,[0,[3,4],_.Zb,-1,_.Ow,[0,[0,_.Zb,_.vU]],_.Ow,[0,[0,[0,[1,2,3],_.Ow,[0],_.Ow,[0],_.Ow,[0]]]]],_.Ow,[0,_.Zb]],_.KV,-1,[0,B_1,_.Zb,_.Ow,CA5,_.Ow,osm,_.tC,Ucm,[0,Zex],g9m]];var hRO=_.u9($c1,SnO),M7n=_.Ss(SnO);var bYi=function(){_.k1.call(this)};
_.p(bYi,_.k1);bYi.prototype.init=function(){};
new bYi;var psi=_.mp(["data-"]),LXi=_.mp(["aria-"]),zRr=_.mp(["aria-"]),XE=function(N,t){this.isLatencyMeasurementExperiment=N===void 0?!1:N;this.enableDialogA11yFix=t===void 0?!1:t;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.K7y(_.H4.location.href)},s7i=function(N,t){N.onConsentPrimitiveShownCallback=t},Yn5=function(N,t){return N.overriddenIframeLoadTimeout?N.overriddenIframeLoadTimeout:t!==void 0?t:5E3},tzn=function(N){if(N.prewarmPromise!==void 0)return N.prewarmPromise;
N.prewarmPromise=new Promise(function(t,O){x0(N,1);ahr(N,T_1(N,!0),wsm(N));N.iframe?N.prewarmChannel||eRm(N,N.iframe,t):O(Error("Ak"))});
N.prewarmPromise.finally(function(){N.prewarmPromise=void 0});
return N.prewarmPromise};
XE.prototype.showPrimitive=function(){var N=this;if(this.consentPromise!==void 0)return this.consentPromise;var t=Date.now();PA5(this,t);this.consentPromise=new Promise(function(O,H){x0(N,0,t);var A=N.isDarkTheme();N.isLatencyMeasurementExperiment||N.initialLoadingStrategy===1||N.initialLoadingStrategy===2||(N.loadingBar||(N.loadingBar=CeJ(getComputedStyle(document.body).direction==="rtl",A),N.loadingBar.style.position="fixed",N.loadingBar.style.zIndex="15000"),document.body.appendChild(N.loadingBar));
ahr(N,T_1(N),wsm(N));N.iframe?N.channel||Xsq(N,N.iframe,O,H):(xc5(N),H(Error("Ak")))});
this.consentPromise.finally(function(){N.consentPromise=void 0});
return this.consentPromise};
var Xsq=function(N,t,O,H){var A,Z;_.K(function(U){switch(U.nextAddress){case 1:x0(N,3);A=!1;setTimeout(function(){if(!A){xc5(N);kam(N);qnm(N);var C=Jx5(7).setErrorMessage("Timeout connecting to iframe");O(iYm(jy5(new $c1,FXr(C)),ccm(C)))}},Yn5(N,fhm(N)));
if(!N.prewarmPromise){U.jumpTo(2);break}_.Mo(U,3);return U.yield(N.prewarmPromise,5);case 5:_.Do(U,2);break;case 3:_.ax(U),Z=Jx5(4).setErrorMessage("Error while prewarming."),O(iYm(jy5(new $c1,FXr(Z)),ccm(Z)));case 2:N.prewarmChannel&&N.prewarmChannel.send(M7n(uLr(new $c1,N.consentPrimitiveRequest))),N.channel=_.CA({destination:N.win,iframe:t,origin:n9x(N),channelName:"cpw",onEstablished:function(){A=!0;xc5(N);N.isLatencyMeasurementExperiment||(N.JSC$20038_previousBodyOverflow=document.body.style.overflow,
N.JSC$20038_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,N.JSC$20038_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",N.enableDialogA11yFix&&window.addEventListener("blur",N.focusChangeListener));var C=N.iframe;C.style.bottom="0";C.style.position="fixed";C.style.right="0";C.style.border="none";C.style.left="0";C.style.top=
"0";C.style.zIndex="5000";C.style.pointerEvents="";C.style.visibility="";N.initialLoadingStrategy===2||N.initialLoadingStrategy===3?x0(N,4):x0(N,6);var F;(F=N.onConsentPrimitiveShownCallback)==null||F.call(N)},
onMessage:function(C){C=hRO(C.data);switch(_.aG(C,1)){case 1:kam(N);var F=Khr(_.Sg(C,_.Tn,7));F&&(N.initialLoadingStrategy!==2&&N.initialLoadingStrategy!==3||x0(N,6,F),x0(N,5,F));if(F=Khr(_.Sg(C,_.Tn,6)))x0(N,7,F),x0(N,8);var g,B;((g=_.Sg(C,KXm,2))==null?void 0:_.S0(g,KK))!==0&&((B=_.Sg(C,ycr,8))==null?void 0:_.S0(B,B_1))!==0||H(Error("Bk"));O(C);break;case 2:qnm(N)}}}),_.Ty(U)}})},eRm=function(N,t,O){N.prewarmChannel=_.CA({destination:N.win,
iframe:t,origin:n9x(N),channelName:"pwcp",onEstablished:function(){x0(N,2);O()}})},n9x=function(N){var t=_.es(N.src).toString();
return t&&t.indexOf("://")<0&&t.indexOf("//")!==0?N.origin:_.K7y(t)},T_1=function(N,t){t=t===void 0?!1:t;
var O,H=new Map([["origin",N.origin],["hl",(O=WXf(N))!=null?O:null]]);t&&H.set("pw","1");t=_.D([["cpr",N.consentPrimitiveRequest.serialize()]]);for(O=t.next();!O.done;O=t.next()){var A=_.D(O.value);O=A.next().value;A=A.next().value;H.set(O,A)}N.isDarkTheme()&&H.set("color_scheme","dark");return _.iw(N.src,H)},xc5=function(N){N.isLatencyMeasurementExperiment||N.loadingBar&&document.body.removeChild(N.loadingBar)};
XE.prototype.getSrc=function(){var N=_.Fe(this.origin),t;var O=(t=_.Sg(this.consentPrimitiveRequest,HY1,3))==null?void 0:_.$1(t,1);t="consent.google.com";O=O?"/u/"+encodeURIComponent(O.toString()):"";(N==null?0:N.endsWith("youtube.com"))?t="consent.youtube.com":(N=N==null?void 0:N.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(t="consent.google."+((N[1]?"co.":"")+encodeURIComponent(N[2])));return _.wD("https://"+t+"/signedin"+O+"/landing")};
var ahr=function(N,t,O){N.iframe||(N.iframe=document.createElement("iframe"),N.iframe.style.width="100%",N.iframe.style.height="100%",O!==112496729&&(N.iframe.style.colorScheme="auto"),N.isLatencyMeasurementExperiment&&(N.iframe.style.display="none"),_.No(N.iframe,t),N.iframe.setAttribute("jsname","C5o1O"),rcr(N.iframe),document.body.appendChild(N.iframe))},rcr=function(N){N.style.bottom="-200vh";
N.style.position="fixed";N.style.right="-200vw";N.style.border="";N.style.left="";N.style.top="";N.style.zIndex="";N.style.pointerEvents="none";N.style.visibility="hidden"},kam=function(N){N.iframe&&(N.isLatencyMeasurementExperiment||(N.JSC$20038_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=N.JSC$20038_previousHtmlOverscroll),N.JSC$20038_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=N.JSC$20038_previousBodyOverscroll),N.JSC$20038_previousBodyOverflow!==
void 0&&(document.body.style.overflow=N.JSC$20038_previousBodyOverflow),N.enableDialogA11yFix&&Ih5(N,!1)),rcr(N.iframe))};
XE.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(Ih5(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var Ih5=function(N,t){var O,H,A=(O=N.iframe)==null?void 0:(H=O.parentElement)==null?void 0:H.children;if(A)for(O=0;O<A.length;O++)H=A[O],H!==N.iframe&&(t?(H.hasAttribute("aria-hidden")&&_.KU([_.BW(psi)],H,"data-old-aria-hidden",H.getAttribute("aria-hidden")),_.KU([_.BW(LXi)],H,"aria-hidden","true")):(H.removeAttribute("aria-hidden"),H.hasAttribute("data-old-aria-hidden")&&(_.KU([_.BW(zRr)],H,"aria-hidden",H.getAttribute("data-old-aria-hidden")),H.removeAttribute("data-old-aria-hidden"))))},x0=function(N,
t,O){var H;
(H=N.latencyCallback)==null||H.call(N,{latencyType:t,timestampEpochMillis:O!=null?O:Date.now()})};var lhi=function(N,t,O){XE.call(this,t,O===void 0?!1:O);this.consentPrimitiveRequest=N;N=WXf(this);_.Tzi(N);this.src=this.getSrc();var H;this.initialLoadingStrategy=(H=_.Sg(this.consentPrimitiveRequest,FE,4))==null?void 0:_.aG(H,4)},QyJ;
_.p(lhi,XE);var oFm=function(N){var t=_.h("enable_primitive_dialog_aria_hide_siblings");N={request:N,enableDialogA11yFix:t===void 0?!1:t};QyJ||(QyJ=new lhi(N.request,N.isLatencyMeasurementExperiment||_.aG(N.request,1)===2,N.enableDialogA11yFix));return QyJ},WXf=function(N){var t;
return(t=_.Sg(N.consentPrimitiveRequest,FE,4))==null?void 0:_.YD(t,1)},PA5=function(N,t){if(!_.$D(N.consentPrimitiveRequest,PB,5)){var O=N.consentPrimitiveRequest,H=new PB;
_.L8(O,5,H)}var A;if((A=_.Sg(N.consentPrimitiveRequest,PB,5))==null||_.X0N(_.cU(A,8))==null){var Z;(Z=_.Sg(N.consentPrimitiveRequest,PB,5))!=null&&_.fb(Z,8,t)}},wsm=function(N){var t;
return(t=_.Sg(N.consentPrimitiveRequest,PB,5))==null?void 0:_.$1(t,1)};
lhi.prototype.isDarkTheme=function(){var N;return((N=_.Sg(this.consentPrimitiveRequest,FE,4))==null?void 0:_.aG(N,2))===2};
var fhm=function(N){var t;return((t=_.Sg(N.consentPrimitiveRequest,FE,4))==null?void 0:_.$1(t,5))||void 0},qnm=function(N){N.channel=void 0;
N.prewarmChannel=void 0;N.iframe&&(document.body.contains(N.iframe)&&document.body.removeChild(N.iframe),N.iframe=void 0);QyJ=void 0},Ofn=function(N){return XE.prototype.showPrimitive.call(N).then(function(t){return _.Sg(t,KXm,2)})};for(var k0={},mci=(k0[64]="ma",k0[73]="ogb",k0[89]="cr",k0[21]="test",k0[0]="unkn",k0[137]="con",k0[155]="hl",k0[78]="yt",k0[171]="lp",k0[172]="ap",k0[177]="amo",k0[178]="pqe",k0[74]="gg",k0[1]="gm",k0[140]="am",k0[193]="sc",k0),E95=_.D(Object.keys(mci)),GaJ=E95.next();!GaJ.done;GaJ=E95.next());var RRi=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(RRi,_.C8);var v9r=[0,[2,3,4],_.Zb,Cr5,gbJ,_.NO];var Jc5=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(Jc5,_.C8);var o9O=_.u9(Jc5,[0,_.VA,_.oG,_.Zb,_.oG,_.Zb,v9r]);var syi=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(syi,_.C8);syi.prototype.getCommand=function(){return _.aG(this,1)};
var Nyz=function(){var N=new syi;return _.XA(N,1,0)};var ti5=_.Ss([0,_.VA,_.oG,[0,_.Zb,_.oG,-1]]);var OZO=new _.YF("s"),HZf=new _.YF("t"),A71=new _.YF("u"),ZZi=new _.YF("v"),Vi5=function(N,t,O){_.a7.call(this,OZO);this.mediaKey=N;this.photoUrl=t;this.photoSource=O};
_.p(Vi5,_.a7);var Dai=function(){_.a7.call(this,HZf)};
_.p(Dai,_.a7);var Uaf=function(N){N=N===void 0?!1:N;_.a7.call(this,A71);this.isError=N};
_.p(Uaf,_.a7);var CIm=function(){_.a7.call(this,ZZi)};
_.p(CIm,_.a7);var K3J=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,y7m=function(N){if(typeof N=="string"){if(N.charAt(0)==".")return F35(N.substr(1));if(N.charAt(0)=="["){var t=K3J.exec(N);N=N.indexOf("=")==-1?void 0:t[3];return dan(t[1],N)}return g8J(N)}return N},F35=function(N){return function(t){return t.getAttribute&&_.t8(t,N)}},dan=function(N,t){return function(O){return t!==void 0?O.getAttribute&&O.getAttribute(N)==t:O.hasAttribute&&O.hasAttribute(N)}},g8J=function(N){N=N.toUpperCase();
return function(t){return(t=t.tagName)&&t.toUpperCase()==N}},Bym=function(){return!0};var qx=function(N,t){this.JSC$20066_key_=N;this.JSC$20066_value_=t},c7i=function(N){throw Error("Ck`"+N.JSC$20066_key_);
},$ai=function(N,t){return new TypeError("Dk`"+t+"`"+N.JSC$20066_key_+"`"+N.JSC$20066_value_+"`"+typeof N.JSC$20066_value_)};
qx.prototype.string=function(N){return arguments.length==0?ju5(this):iZ1(this,N)};
var iZ1=function(N,t){var O;return(O=u9J(N))!=null?O:t},ju5=function(N){var t=u9J(N);
t===null&&c7i(N);return t},u9J=function(N){var t=N.JSC$20066_value_;
if(t==null)return null;if(typeof t==="string")return t;throw $ai(N,"string");};
qx.prototype.bool=function(N){if(arguments.length==0){var t=this.optionalBool();t===null&&c7i(this)}else{var O;t=(O=this.optionalBool())!=null?O:N}return t};
qx.prototype.optionalBool=function(){var N=this.JSC$20066_value_;if(N==null)return null;if(typeof N==="boolean")return N;if(typeof N==="string"){N=N.toLowerCase();if(N==="true"||N==="1")return!0;if(N==="false"||N==="0")return!1}throw $ai(this,"boolean");};
qx.prototype.number=function(N){if(arguments.length==0){var t=Sr5(this);t===null&&c7i(this)}else t=hJn(this,N);return t};
var hJn=function(N,t){var O;return(O=Sr5(N))!=null?O:t},Sr5=function(N){var t=N.JSC$20066_value_;
if(t==null)return null;if(typeof t==="number")return t;if(typeof t==="string"){var O=Number(t);if(!isNaN(O)&&(O!==0||t.trim().length!==0))return O}throw $ai(N,"number");};
qx.prototype.toString=function(){return ju5(this)};
qx.prototype.enum=function(N,t){var O=!0,H=void 0,A;for(A in N){var Z=N[A];O&&(O=!1,H=typeof Z==="number"?hJn(this,t):iZ1(this,t));if(Z==H)return H}JSON.stringify(N);return H};
qx.prototype.array=function(N){if(arguments.length==0){var t=Miq(this);t===null&&c7i(this);return t}t=Miq(this);return t==null?N:t};
var Miq=function(N){var t=N.JSC$20066_value_;if(t==null)return null;Array.isArray(t)||(typeof t!=="string"?t=[t]:(t=t.trim(),t=t==""?[]:t.split(",").map(function(O){return O.trim()})));
return bZx(N,t)},bZx=function(N,t){var O=N.JSC$20066_key_+"[";
return Array.from(t,function(H,A){return new qx(O+A+"]",H)})};
qx.prototype.object=function(N){var t=this.JSC$20066_value_;if(t==null)return N===void 0&&c7i(this),N;if(typeof t==="object"&&t.constructor===Object){N={};var O=this.JSC$20066_key_+".",H;for(H in t)N[H]=new qx(O+H,t[H]);return N}throw $ai(this,"object");};var fK=function(N){this.list_=pTf(N)},pTf=function(N){if(N instanceof fK)N=N.list_;
else if(N[0]instanceof fK){for(var t=new Set,O=0;O<N.length;O++)for(var H=_.D(N[O].list_),A=H.next();!A.done;A=H.next())t.add(A.value);N=t}return[].concat(_.W6(N))};
_.V=fK.prototype;_.V.each=function(N,t,O){((O===void 0?0:O)?gJz:_.Z9)(this.list_,N,t);return this};
_.V.size=function(){return this.list_.length};
_.V.isEmpty=function(){return this.list_.length===0};
_.V.get=function(N){return this.list_[N]||null};
_.V.el=function(){return this.list_[0]||null};
_.V.map=function(N,t){return _.rc(this.list_,N,t)};
_.V.equals=function(N){return this===N||_.v4(this.list_,N.list_)};
_.V.first=function(){return this.list_.length==0?null:new nK(this.list_[0])};
_.V.last=function(){return this.list_.length==0?null:new nK(this.list_[this.list_.length-1])};
_.V.find=function(N){var t=[];this.each(function(O){O=O.querySelectorAll(String(N));for(var H=0;H<O.length;H++)t.push(O[H])});
return new fK(t)};
_.V.parent=function(){var N=[];this.each(function(t){(t=t.parentElement||null)&&!_.W4(N,t)&&N.push(t)});
return new fK(N)};
_.V.children=function(){var N=[];this.each(function(t){t=_.I5(t);for(var O=0;O<t.length;O++)N.push(t[O])});
return new fK(N)};
_.V.filter=function(N){N=_.Aw(this.list_,y7m(N));return new fK(N)};
_.V.closest=function(N){var t=[],O=y7m(N),H=function(A){return _.FW(A)&&O(A)};
this.each(function(A){(A=_.EW(A,H,!0))&&!_.W4(t,A)&&t.push(A)});
return new fK(t)};
_.V.next=function(N){return L31(this,_.zoE,N)};
_.V.prev=function(N){return L31(this,yAz,N)};
var L31=function(N,t,O){var H=[];var A=O?y7m(O):Bym;N.each(function(Z){(Z=t(Z))&&A(Z)&&H.push(Z)});
return new fK(H)};
fK.prototype.setClass=function(N){return this.each(function(t){_.NK(t,N)})};
var zJ5=function(N,t){return N.each(function(O){_.mw(O,t)})},Yri=function(N,t){return N.each(function(O){_.lb(O,t)})};
fK.prototype.toggleClass=function(N,t){return t===!0?zJ5(this,N):t===!1?Yri(this,N):this.each(function(O){_.t8(O,N)?_.lb(O,N):_.mw(O,N)})};
fK.prototype.setText=function(N){return this.each(function(t){_.lt(t,N)})};
var aIm=function(N){N.each(function(t){t.removeAttribute("aria-hidden")})};
fK.prototype.getStyle=function(N){if(this.list_.length>0){var t=this.list_[0],O=t.style[_.Kv(N)];return typeof O!=="undefined"?O:t.style[_.Wq_(t,N)]||""}};
fK.prototype.getData=function(N){if(this.list_.length===0)return new qx(N,null);var t=iCi(this.list_[0],N);return new qx(N,t)};
fK.prototype.focus=function(N){try{N?this.el().focus(N):this.el().focus()}catch(t){}return this};
fK.prototype.click=function(){var N=_.Qs(this.el());if(N.createEvent){var t=N.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,N.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(t)}else N=N.createEventObject(),N.clientX=0,N.clientY=0,N.screenX=0,N.screenY=0,N.altKey=!1,N.ctrlKey=!1,N.shiftKey=!1,N.button=0,this.el().fireEvent("onclick",N)};
var WB=function(N,t,O,H){function A(C,F,g){var B=F;F&&F.parentNode&&(B=F.cloneNode(!0));C(B,g)}
H=H===void 0?!1:H;if(N.list_.length==1){var Z=N.list_[0],U=function(C){return t(C,Z)};
O instanceof fK?O.each(U,void 0,H):Array.isArray(O)?(H?gJz:_.Z9)(O,U):U(O);return N}return N.each(function(C){O instanceof fK?O.each(function(F){A(t,F,C)}):Array.isArray(O)?_.Z9(O,function(F){A(t,F,C)}):A(t,O,C)})};
_.V=fK.prototype;_.V.append=function(N){return WB(this,function(t,O){t&&O.appendChild(t)},N)};
_.V.appendTo=function(N){(new fK([N])).append(this);return this};
_.V.remove=function(){return WB(this,function(N,t){_.wb(t)},null)};
_.V.empty=function(){return WB(this,function(N,t){_.nA(t)},null)};
_.V.after=function(N,t){return WB(this,function(O,H){O&&_.rI(O,H)},N,!(t===void 0||t))};
_.V.before=function(N){return WB(this,function(t,O){t&&_.W1(t,O)},N)};
_.V.replaceWith=function(N){return WB(this,function(t,O){t&&_.bmB(t,O)},N)};
_.V.toggle=function(N){return this.each(function(t){_.AJ(t,N)})};
_.V.show=function(){return this.toggle(!0)};
_.V.hide=function(){return this.toggle(!1)};
_.V.trigger=function(N,t,O,H){return Tyx(this,N,t,O,H)};
var Tyx=function(N,t,O,H,A){return N.each(function(Z){_.$V9(_.Qs(Z)).triggerWizEventInternal(Z,t,O,H,A)})},nK=function(N,t){N instanceof fK&&(t=N.list_,N=null);
this.list_=pTf(N!=null?[N]:t)};
_.Od(nK,fK);_.V=nK.prototype;_.V.children=function(){return new fK(Array.prototype.slice.call(_.I5(this.list_[0])))};
_.V.each=function(N,t){N.call(t,this.list_[0],0);return this};
_.V.size=function(){return 1};
_.V.el=function(){return this.list_[0]};
_.V.first=function(){return this};var rR=function(N,t){t=t===void 0?window:t;this.hostId=N;this.win=t;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$20077_previousHtmlOverscroll=this.JSC$20077_previousBodyOverscroll=this.JSC$20077_previousBodyOverflow="";this.eventTarget=new _.Xm;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},PI1=function(N){var t=
wT1(wT1(wT1(new eJf(78),"po"),"hppp"),"hhc");
t.authUser=Number(_.Ro("SESSION_INDEX","0"));t.colorScheme=N;return t};
rR.prototype.getOrigin=function(){return this.origin?this.origin:_.g5(_.d5(_.Fx(new _.Ir,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
rR.prototype.getTargetOrigin=function(){return _.g5(_.d5(_.Fx(new _.Ir,this.scheme),this.domain),this.port)};
rR.prototype.preloadIframe=function(N){var t=this;if(this.iframeLoadPromise===void 0){var O=document.createElement("iframe");this.iframe=O;$uf(O,N);this.iframeLoadPromise=new Promise(function(H,A){var Z=!1,U=function(C){C.stopPropagation();O.removeEventListener("error",U);O.removeEventListener("securitypolicyviolation",U);A(Error("Ek",{cause:C}))};
O.addEventListener("error",U);O.addEventListener("securitypolicyviolation",U);setTimeout(function(){Z||A(Error("Fk"))},3E4);
XTr(t,O,function(){Z=!0;O.removeEventListener("error",U);O.removeEventListener("securitypolicyviolation",U);H()})});
xam(this);N=this.getTargetOrigin().toString();O.setAttribute("allow","camera "+N+"; display-capture "+N);this.parentElement.appendChild(O)}return this.iframeLoadPromise};
var fIn=function(N,t){var O,H;return _.K(function(A){if(A.nextAddress==1)return O=CeJ(getComputedStyle(N.parentElement).direction==="rtl"),N.parentElement.appendChild(O),document.activeElement instanceof HTMLElement&&(N.elementToFocusAfterClose=document.activeElement),_.Mo(A,2),A.yield(N.preloadIframe(t),4);if(A.nextAddress!=2){N.parentElement.removeChild(O);N.JSC$20077_previousBodyOverflow=N.parentElement.style.overflow;N.JSC$20077_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
N.JSC$20077_previousBodyOverscroll=N.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";N.parentElement.style.overscrollBehavior="contain";N.parentElement.style.overflow="hidden";var Z=N.iframe;Z.style.bottom="0";Z.style.border="none";Z.style.height="100%";Z.style.left="0";Z.style.position=N.iframePosition;Z.style.right="0";Z.style.top="0";Z.style.width="100%";Z.style.zIndex="2202";Z.setAttribute("aria-hidden","false");Z.setAttribute("aria-modal","true");
N.opened=!0;kPi(N);return _.Do(A,0)}H=_.ax(A);N.parentElement.removeChild(O);yqz(N.isDarkTheme());qrx(N,!1);throw Error("Gk",{cause:H});})},qrx=function(N,t){t=t===void 0?!0:t;
N.iframe!==void 0&&(n8r(N),document.documentElement.style.overscrollBehavior=N.JSC$20077_previousHtmlOverscroll,N.parentElement.style.overscrollBehavior=N.JSC$20077_previousBodyOverscroll,N.parentElement.style.overflow=N.JSC$20077_previousBodyOverflow,N.elementToFocusAfterClose!==void 0&&(N.elementToFocusAfterClose.focus(),N.elementToFocusAfterClose=void 0),t?xam(N):(N.parentElement.removeChild(N.iframe),N.iframe=void 0,N.iframeLoadPromise=void 0,N.mainChannel=void 0),N.opened=!1)},n8r=function(N){N.backgroundElementsAriaHiddenIsNull&&
(aIm(N.backgroundElementsAriaHiddenIsNull),N.backgroundElementsAriaHiddenIsNull=void 0);
N.backgroundElementsAriaHiddenIsFalse&&(N.backgroundElementsAriaHiddenIsFalse.each(function(t){t.setAttribute("aria-hidden","false")}),N.backgroundElementsAriaHiddenIsFalse=void 0);
N.backgroundElementsWithoutInert&&(N.backgroundElementsWithoutInert.each(function(t){t.removeAttribute("inert")}),N.backgroundElementsWithoutInert=void 0)},kPi=function(N){N.backgroundElementsAriaHiddenIsNull=(new nK(N.iframe.parentElement)).children().filter(function(t){return t.getAttribute("aria-hidden")===null&&t!==N.iframe});
N.backgroundElementsAriaHiddenIsNull.each(function(t){t.setAttribute("aria-hidden","true")});
N.backgroundElementsAriaHiddenIsFalse=(new nK(N.iframe.parentElement)).children().filter(function(t){return t.getAttribute("aria-hidden")==="false"&&t!==N.iframe});
N.backgroundElementsAriaHiddenIsFalse.each(function(t){t.setAttribute("aria-hidden","true")});
N.backgroundElementsWithoutInert=(new nK(N.iframe.parentElement)).children().filter(function(t){return!t.hasAttribute("inert")&&t!==N.iframe});
N.backgroundElementsWithoutInert.each(function(t){t.setAttribute("inert","true")})},xam=function(N){N=N.iframe;
N.style.bottom="-1000px";N.style.position="fixed";N.style.right="-1000px";N.style.border="";N.style.height="";N.style.left="";N.style.top="";N.style.width="";N.style.zIndex="";N.setAttribute("aria-hidden","true");N.setAttribute("aria-modal","false")};
rR.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var eJf=function(N,t){rR.call(this,mci[N],t);this.options=[];this.style=""};
_.p(eJf,rR);var W3m=function(N){N.style="youtube";return N},r7f=function(N,t){N.eventTarget.listen(A71,t);
return N},II5=function(N,t){N.eventTarget.listen(OZO,t);
return N},wT1=function(N,t){N.options.push(t);
return N},lI5=function(N){var t=[N.getOrigin()];
N.ancestorOrigins&&t.push.apply(t,_.W6(N.ancestorOrigins));var O=new _.Ir(N.win.location.href),H=N.startUrl?N.startUrl:N.options.includes("po")?"profile-picture/art":"profile-picture";t=pLO(_.y1(N.getTargetOrigin(),H),"origin",t);N.startUrl&&_.Ho(t,"startPath",N.startUrl);N.authUser>0&&_.Ho(t,"authuser",N.authUser);N.pageId!==void 0&&_.Ho(t,"pageId",N.pageId);_.Ho(t,"hostId",N.hostId);N.jsMode!==void 0&&_.Ho(t,"jsmode",N.jsMode);N.rectangleRatio!==void 0&&_.Ho(t,"rectangleRatio",N.rectangleRatio);
N.options.length>0&&_.Ho(t,"opts",N.options.join(","));try{for(var A=_.D(["utm_source","utm_medium","utm_campaign","utm_content"]),Z=A.next();!Z.done;Z=A.next()){var U=Z.value;_.OH(O,U)&&_.Ho(t,U,_.OH(O,U))}var C,F=(C=N.hl)!=null?C:_.OH(O,"hl");F!==void 0&&_.Ho(t,"hl",F)}catch(g){if(!(g instanceof URIError))throw g;}N.colorScheme&&_.Ho(t,"theme",N.colorScheme);N.style&&_.Ho(t,"style",N.style);return t},QuO=function(N,t){N.mainChannel=_.CA({destination:N.win,
iframe:t,origin:N.getTargetOrigin().toString(),channelName:"ow",onMessage:function(O){O=o9O(O.data);if(t===N.iframe)switch(_.aG(O,1)){case 1:N.eventTarget.dispatchEvent(new Uaf);qrx(N);break;case 2:N.eventTarget.dispatchEvent(new Vi5(_.YD(O,4),_.YD(O,2),_.aG(O,5),_.Sg(O,RRi,6)));break;case 0:var H;N.eventTarget.dispatchEvent(new Dai(_.YD(O,2),(H=_.aG(O,3))!=null?H:0));break;case 3:N.eventTarget.dispatchEvent(new Uaf(!0));qrx(N,!1);break;case 4:N.eventTarget.dispatchEvent(new CIm)}}})},XTr=function(N,
t,O){_.CA({destination:N.win,
iframe:t,origin:_.g5(_.d5(_.Fx(new _.Ir,N.scheme),N.domain),N.port).toString(),channelName:"owi",onMessage:function(H){t===N.iframe&&(O!==void 0&&O(),QuO(N,t),N.opened&&N.mainChannel.send(ti5(Nyz())),H.reply(),XTr(N,t))}})};
eJf.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?rR.prototype.preloadIframe.call(this,lI5(this).toString()):this.iframeLoadPromise};
eJf.prototype.openPicker=function(N){var t=this;return _.K(function(O){if(O.nextAddress==1)return t.startUrl=N?N:t.options.includes("po")?"profile-picture/art":"profile-picture",O.yield(fIn(t,lI5(t).toString()),2);if(t.mainChannel){var H=t.mainChannel,A=H.send;var Z=Nyz();Z=_.Xa(Z,2,t.startUrl);A.call(H,ti5(Z))}_.Ty(O)})};var maJ=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(maJ,_.C8);_.V=maJ.prototype;_.V.getSize=function(){return j$(this,1)};
_.V.setSize=function(N){return _.PU(this,1,N)};
_.V.getWidth=function(){return j$(this,12)};
_.V.getHeight=function(){return j$(this,13)};
_.V.setCenterCrop=function(N){return _.SR(this,20,N)};
_.V.getHtml=function(){return _.pl(this,4)};
_.V.getToken=function(){return _.aP(this,24)};
_.V.setToken=function(N){return _.Xa(this,24,N)};
_.V.getBackgroundColor=function(){return j$(this,87)};
_.V.hasBackgroundColor=function(){return _.Ux(_.cU(this,87))!=null};
_.V.getStoryboardLevel=function(){return j$(this,109)};var Ip=function(N){this.JSC$20085_value_=void 0;this.childNodes_={};if(N){var t=_.Bay(N);N=_.Kf(N);for(var O=0;O<t.length;O++)this.set(t[O],N[O])}};
Ip.prototype.set=function(N,t){E85(this,N,t,!1)};
Ip.prototype.add=function(N,t){E85(this,N,t,!0)};
var E85=function(N,t,O,H){for(var A=0;A<t.length;A++){var Z=t.charAt(A);N.childNodes_[Z]||(N.childNodes_[Z]=new Ip);N=N.childNodes_[Z]}if(H&&N.JSC$20085_value_!==void 0)throw Error("Hk`"+t);N.JSC$20085_value_=O},GP5=function(N,t){for(var O=0;O<t.length;O++)if(N=N.childNodes_[t.charAt(O)],!N)return;
return N};
Ip.prototype.get=function(N){return(N=GP5(this,N))?N.JSC$20085_value_:void 0};
Ip.prototype.getValues=function(){var N=[];RJ1(this,N);return N};
var RJ1=function(N,t){N.JSC$20085_value_!==void 0&&t.push(N.JSC$20085_value_);for(var O in N.childNodes_)RJ1(N.childNodes_[O],t)};
Ip.prototype.getKeys=function(N){var t=[];if(N){for(var O=this,H=0;H<N.length;H++){var A=N.charAt(H);if(!O.childNodes_[A])return[];O=O.childNodes_[A]}v8m(O,N,t)}else v8m(this,"",t);return t};
var v8m=function(N,t,O){N.JSC$20085_value_!==void 0&&O.push(t);for(var H in N.childNodes_)v8m(N.childNodes_[H],t+H,O)};
_.V=Ip.prototype;_.V.containsKey=function(N){return this.get(N)!==void 0};
_.V.containsValue=function(N){if(this.JSC$20085_value_===N)return!0;for(var t in this.childNodes_)if(this.childNodes_[t].containsValue(N))return!0;return!1};
_.V.clear=function(){this.childNodes_={};this.JSC$20085_value_=void 0};
_.V.remove=function(N){for(var t=this,O=[],H=0;H<N.length;H++){var A=N.charAt(H);if(!t.childNodes_[A])throw Error("Ik`"+N);O.push([t,A]);t=t.childNodes_[A]}N=t.JSC$20085_value_;for(delete t.JSC$20085_value_;O.length>0;)if(H=O.pop(),t=H[0],H=H[1],t.childNodes_[H].isEmpty())delete t.childNodes_[H];else break;return N};
_.V.clone=function(){return new Ip(this)};
_.V.getCount=function(){return ipi(this.getValues())};
_.V.isEmpty=function(){return this.JSC$20085_value_===void 0&&_.WW.isEmpty(this.childNodes_)};var hI1=function(){if(!J7q){var N=J7q=new Ip,t;for(t in o81)N.add(t,o81[t])}},J7q,lz=function(N,t){this.types=N;
this.setters=t},o81={a:new lz([3,
0],[function(N,t){_.SR(N,21,t)},
function(N,t){_.PU(N,56,t)}]),
al:new lz([3],[function(N,t){_.SR(N,74,t)}]),
b:new lz([3,0],[function(N,t){_.SR(N,23,t)},
function(N,t){_.PU(N,38,t)}]),
ba:new lz([0],[function(N,t){_.PU(N,85,t)}]),
bc:new lz([0],[function(N,t){_.PU(N,87,t)}]),
br:new lz([0],[function(N,t){_.PU(N,86,t)}]),
c:new lz([3,0],[function(N,t){_.SR(N,2,t)},
function(N,t){_.PU(N,39,t)}]),
cc:new lz([3],[function(N,t){_.SR(N,51,t)}]),
ci:new lz([3],[function(N,t){_.SR(N,32,t)}]),
ckm:new lz([3],[function(N,t){_.SR(N,104,t)}]),
cp:new lz([0],[function(N,t){_.PU(N,92,t)}]),
cr:new lz([3],[function(N,t){_.SR(N,108,t)}]),
cv:new lz([0],[function(N,t){_.PU(N,94,t)}]),
d:new lz([3],[function(N,t){_.SR(N,3,t)}]),
dc:new lz([5],[function(N,t){_.Xa(N,99,t)}]),
df:new lz([3],[function(N,t){_.SR(N,80,t)}]),
dv:new lz([3],[function(N,t){_.SR(N,90,t)}]),
e:new lz([0],[function(N,t){_.PU(N,15,t)}]),
em:new lz([0],[function(N,t){_.PU(N,107,t)}]),
f:new lz([4],[function(N,t){_.Xa(N,16,t)}]),
fg:new lz([3],[function(N,t){_.SR(N,34,t)}]),
fh:new lz([3],[function(N,t){_.SR(N,30,t)}]),
fm:new lz([3],[function(N,t){_.SR(N,84,t)}]),
fo:new lz([2],[function(N,t){_.MV(N,79,_.GS(t))}]),
ft:new lz([3],[function(N,t){_.SR(N,50,t)}]),
fv:new lz([3],[function(N,t){_.SR(N,31,t)}]),
g:new lz([3],[function(N,t){_.SR(N,14,t)}]),
gce:new lz([4],[function(N,t){_.Xa(N,112,t)}]),
gd:new lz([3],[function(N,t){_.SR(N,83,t)}]),
gm:new lz([3],[function(N,t){_.SR(N,105,t)}]),
h:new lz([3,0],[function(N,t){_.SR(N,4,t)},
function(N,t){_.PU(N,13,t)}]),
i:new lz([3],[function(N,t){_.SR(N,22,t)}]),
ic:new lz([0],[function(N,t){_.PU(N,71,t)}]),
id:new lz([3],[function(N,t){_.SR(N,70,t)}]),
il:new lz([3],[function(N,t){_.SR(N,96,t)}]),
ip:new lz([3],[function(N,t){_.SR(N,54,t)}]),
iv:new lz([0],[function(N,t){_.fb(N,75,t)}]),
j:new lz([1],[function(N,t){t=t==null?t:cd1(t);_.MV(N,29,t)}]),
k:new lz([3,0],[function(N,t){_.SR(N,17,t)},
function(N,t){_.PU(N,42,t)}]),
l:new lz([0],[function(N,t){_.PU(N,44,t)}]),
lf:new lz([3],[function(N,t){_.SR(N,65,t)}]),
lo:new lz([3],[function(N,t){_.SR(N,97,t)}]),
m:new lz([0],[function(N,t){_.PU(N,63,t)}]),
md:new lz([3],[function(N,t){_.SR(N,91,t)}]),
mm:new lz([4],[function(N,t){_.Xa(N,81,t)}]),
mo:new lz([3],[function(N,t){_.SR(N,73,t)}]),
mp:new lz([0],[function(N,t){_.PU(N,115,t)}]),
mv:new lz([3],[function(N,t){_.SR(N,66,t)}]),
n:new lz([3],[function(N,t){N.setCenterCrop(t)}]),
nc:new lz([3],[function(N,t){_.SR(N,55,t)}]),
nd:new lz([3],[function(N,t){_.SR(N,53,t)}]),
ng:new lz([3],[function(N,t){_.SR(N,95,t)}]),
ngm:new lz([3],[function(N,t){_.SR(N,106,t)}]),
no:new lz([3],[function(N,t){_.SR(N,37,t)}]),
ns:new lz([3],[function(N,t){_.SR(N,40,t)}]),
nt0:new lz([4],[function(N,t){_.Xa(N,36,t)}]),
ntm:new lz([3],[function(N,t){_.SR(N,114,t)}]),
nu:new lz([3],[function(N,t){_.SR(N,46,t)}]),
nw:new lz([3],[function(N,t){_.SR(N,48,t)}]),
o:new lz([1,3],[function(N,t){t=t==null?t:cd1(t);_.MV(N,7,t)},
function(N,t){_.SR(N,27,t)}]),
p:new lz([3,0],[function(N,t){_.SR(N,19,t)},
function(N,t){_.PU(N,43,t)}]),
pa:new lz([3],[function(N,t){_.SR(N,61,t)}]),
pc:new lz([0],[function(N,t){_.PU(N,88,t)}]),
pd:new lz([3],[function(N,t){_.SR(N,60,t)}]),
pf:new lz([3],[function(N,t){_.SR(N,67,t)}]),
pg:new lz([3],[function(N,t){_.SR(N,72,t)}]),
pi:new lz([2],[function(N,t){_.MV(N,76,_.GS(t))}]),
pp:new lz([3],[function(N,t){_.SR(N,52,t)}]),
pt:new lz([4],[function(N,t){_.Xa(N,111,t)}]),
q:new lz([4],[function(N,t){_.Xa(N,28,t)}]),
r:new lz([3,0],[function(N,t){_.SR(N,6,t)},
function(N,t){_.PU(N,26,t)}]),
ra:new lz([3],[function(N,t){_.SR(N,103,t)}]),
rf:new lz([3],[function(N,t){_.SR(N,100,t)}]),
rg:new lz([3],[function(N,t){_.SR(N,59,t)}]),
rh:new lz([3],[function(N,t){_.SR(N,49,t)}]),
rj:new lz([3],[function(N,t){_.SR(N,57,t)}]),
ro:new lz([2],[function(N,t){_.MV(N,78,_.GS(t))}]),
rp:new lz([3],[function(N,t){_.SR(N,58,t)}]),
rw:new lz([3],[function(N,t){_.SR(N,35,t)}]),
rwa:new lz([3],[function(N,t){_.SR(N,64,t)}]),
rwu:new lz([3],[function(N,t){_.SR(N,41,t)}]),
s:new lz([3,0],[function(N,t){_.SR(N,33,t)},
function(N,t){N.setSize(t)}]),
sb:new lz([0],[function(N,t){_.PU(N,110,t)}]),
sc:new lz([0],[function(N,t){_.PU(N,89,t)}]),
sg:new lz([3],[function(N,t){_.SR(N,82,t)}]),
sl:new lz([0],[function(N,t){_.PU(N,109,t)}]),
sm:new lz([3],[function(N,t){_.SR(N,93,t)}]),
t:new lz([4],[function(N,t){N.setToken(t)}]),
tm:new lz([3],[function(N,t){_.SR(N,113,t)}]),
u:new lz([3],[function(N,t){_.SR(N,18,t)}]),
ut:new lz([3],[function(N,t){_.SR(N,45,t)}]),
v:new lz([0],[function(N,t){_.PU(N,62,t)}]),
vb:new lz([0],[function(N,t){_.fb(N,68,t)}]),
vf:new lz([4],[function(N,t){_.Xa(N,102,t)}]),
vl:new lz([0],[function(N,t){_.fb(N,69,t)}]),
vm:new lz([3],[function(N,t){_.SR(N,98,t)}]),
w:new lz([0],[function(N,t){_.PU(N,12,t)}]),
x:new lz([0],[function(N,t){_.PU(N,9,t)}]),
y:new lz([0],[function(N,t){_.PU(N,10,t)}]),
ya:new lz([2],[function(N,t){_.MV(N,77,_.GS(t))}]),
z:new lz([0],[function(N,t){_.PU(N,11,t)}])};
hI1.prototype.parse=function(N){var t=new maJ,O=new maJ;if(N=="")N=!0;else{N=N.split("-");for(var H=!0,A=0;A<N.length;A++){var Z=N[A];if(Z.length==0)H=!1;else{var U=Z,C=!1;var F=U;var g=U.charAt(0);g!=g.toLowerCase()&&(C=!0,F=U.charAt(0).toLowerCase()+U.substring(1));var B=J7q;for(g=1;g<=F.length;++g){var c=B,u=F.substring(0,g);if(u.length==0?c.isEmpty():!GP5(c,u))break}F=g==1?null:(F=B.get(F.substring(0,g-1)))?{option:U.substring(0,g-1),value:U.substring(g-1),signed:C,attributes:F}:null;if(F){U=
[];C=[];g=!1;for(B=0;B<F.attributes.types.length;B++){c=F.attributes.types[B];var S=F.value;u=A;if(F.signed&&c==1)for(var b=S.length;b<12&&u<N.length-1;)S+="-"+N[u+1],b=S.length,++u;else if(c==2)for(;u<N.length-1&&N[u+1].match(/^[\d\.]/);)S+="-"+N[u+1],++u;b=F.attributes.setters[B];S=su1(this,c)(F.option,S,t,O,b);if(S===null){g=!0;A=u;break}else U.push(c),C.push(S)}if(!g)for(F=0;F<C.length;F++)B=U[F],S=C[F],Nd5(this,B)(Z,S);H=H&&g}else H=!1}}N=H}return new ttx(t,O,N)};
var OD1=function(N,t,O,H,A,Z){A(O,t);N=N.charAt(0);Z=Z(N==N.toUpperCase());A(H,Z)};
_.V=hI1.prototype;_.V.parseAndSetIntOption_=function(N,t,O,H,A){if(t=="")return 0;isFinite(t)&&(t=String(t));t=typeof t==="string"?/^\s*-?0x/i.test(t)?parseInt(t,16):parseInt(t,10):NaN;if(isNaN(t))return 1;OD1(N,t,O,H,A,Number);return null};
_.V.logIntParseError_=function(){};
_.V.parseAndSetFloatOption_=function(N,t,O,H,A){if(t=="")return 0;var Z=Number(t);t=Z==0&&_.Dp(t)?NaN:Z;if(isNaN(t))return 1;OD1(N,t,O,H,A,Number);return null};
_.V.logFloatParseError_=function(){};
_.V.parseAndSetBoolOption_=function(N,t,O,H,A){if(t!="")return 2;OD1(N,!0,O,H,A,Boolean);return null};
_.V.logBoolParseError_=function(){};
_.V.parseAndSetStringOption_=function(N,t,O,H,A){if(t=="")return 0;OD1(N,t,O,H,A,function(Z){return Z?"1":""});
return null};
_.V.logStringParseError_=function(){};
_.V.parseAndSetUint64Base64Option_=function(N,t,O,H,A){if(t=="")return 0;OD1(N,t,O,H,A,function(Z){return Z?1:0});
return null};
var su1=function(N,t){switch(t){case 0:return(0,_.qn)(N.parseAndSetIntOption_,N);case 2:return(0,_.qn)(N.parseAndSetFloatOption_,N);case 3:return(0,_.qn)(N.parseAndSetBoolOption_,N);case 4:return(0,_.qn)(N.parseAndSetStringOption_,N);case 1:return(0,_.qn)(N.parseAndSetUint64Base64Option_,N);default:return function(){}}},Nd5=function(N,t){switch(t){case 0:return(0,_.qn)(N.logIntParseError_,N);
case 2:return(0,_.qn)(N.logFloatParseError_,N);case 3:return(0,_.qn)(N.logBoolParseError_,N);case 4:case 1:return(0,_.qn)(N.logStringParseError_,N);default:return function(){}}},ttx=function(N,t,O){this.valueProto_=N;
this.signatureFlagProto_=t;this.JSC$20097_valid_=O};
ttx.prototype.isValid=function(){return this.JSC$20097_valid_};var jEn=function(N){this.JSC$20098_parser_=null;this.JSC$20098_components_=[];this.JSC$20098_parsedOptions_=null;HDf(this,N)},APr=function(N){N.JSC$20098_parser_==null&&(N.JSC$20098_parser_=new hI1);
return N.JSC$20098_parser_},HDf=function(N,t){N.JSC$20098_parsedOptions_=t?typeof t==="string"?APr(N).parse(t):t:APr(N).parse("")},Qn=function(N,t){return N==t?!1:!0};
_.V=jEn.prototype;_.V.JSC$20100_setCrop=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,_.pl(O,2),_.pl(t.signatureFlagProto_,2))&&_.SR(O,2,N);return this};
_.V.JSC$20100_setCircleCrop=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,$0(O,51),$0(t.signatureFlagProto_,51))&&_.SR(O,51,N);return this};
_.V.JSC$20100_setImageCrop=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,$0(O,32),$0(t.signatureFlagProto_,32))&&_.SR(O,32,N);return this};
_.V.JSC$20100_setHeight=function(N){var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,O.getHeight(),t.signatureFlagProto_.getHeight())&&_.PU(O,13,N);return this};
_.V.setCenterCrop=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,_.pl(O,20),_.pl(t.signatureFlagProto_,20))&&O.setCenterCrop(N);return this};
_.V.JSC$20100_setSmartCrop=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,_.pl(O,19),_.pl(t.signatureFlagProto_,19))&&_.SR(O,19,N);return this};
_.V.JSC$20100_setPad=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,$0(O,60),$0(t.signatureFlagProto_,60))&&_.SR(O,60,N);return this};
_.V.JSC$20100_setSmartCropUseFace=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,_.pl(O,67),_.pl(t.signatureFlagProto_,67))&&_.SR(O,67,N);return this};
_.V.JSC$20100_setSmartCropNoClip=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,_.pl(O,52),_.pl(t.signatureFlagProto_,52))&&_.SR(O,52,N);return this};
_.V.setSize=function(N){var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,O.getSize(),t.signatureFlagProto_.getSize())&&O.setSize(N);return this};
_.V.setToken=function(N){N=N||void 0;var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,O.getToken(),t.signatureFlagProto_.getToken())&&O.setToken(N);return this};
_.V.JSC$20100_setWidth=function(N){var t=this.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(N,O.getWidth(),t.signatureFlagProto_.getWidth())&&_.PU(O,12,N);return this};
_.V.clearOptions=function(){HDf(this,"");return this};
_.V.build=function(){this.JSC$20098_components_.length=0;var N=this.JSC$20098_parsedOptions_,t=N.valueProto_;N=N.signatureFlagProto_;mz(this,"s",t.getSize(),N.getSize());mz(this,"w",t.getWidth(),N.getWidth());EA(this,"c",_.pl(t,2),_.pl(N,2));EA(this,"d",_.pl(t,3),_.pl(N,3));mz(this,"h",t.getHeight(),N.getHeight());EA(this,"s",$0(t,33),$0(N,33));EA(this,"h",t.getHtml(),N.getHtml());EA(this,"p",_.pl(t,19),_.pl(N,19));EA(this,"pp",_.pl(t,52),_.pl(N,52));EA(this,"pf",_.pl(t,67),_.pl(N,67));EA(this,"n",
_.pl(t,20),_.pl(N,20));mz(this,"r",j$(t,26),j$(N,26));EA(this,"r",_.pl(t,6),_.pl(N,6));EA(this,"o",$0(t,27),$0(N,27));var O=_.bC(t,7,_.BU);Gw(this,"o",O,_.bC(N,7,_.BU));O=_.bC(t,29,_.BU);Gw(this,"j",O,_.bC(N,29,_.BU));mz(this,"x",j$(t,9),j$(N,9));mz(this,"y",j$(t,10),j$(N,10));mz(this,"z",j$(t,11),j$(N,11));EA(this,"g",_.pl(t,14),_.pl(N,14));mz(this,"e",j$(t,15),j$(N,15));Gw(this,"f",_.aP(t,16),_.aP(N,16));EA(this,"k",$0(t,17),$0(N,17));EA(this,"u",$0(t,18),!0);EA(this,"ut",$0(t,45),!0);EA(this,"i",
$0(t,22),!0);EA(this,"a",$0(t,21),$0(N,21));EA(this,"b",_.pl(t,23),_.pl(N,23));mz(this,"b",j$(t,38),j$(N,38));mz(this,"c",j$(t,39),j$(N,39),16,8);Gw(this,"q",_.aP(t,28),_.aP(N,28));EA(this,"fh",$0(t,30),$0(N,30));EA(this,"fv",$0(t,31),$0(N,31));EA(this,"fg",_.pl(t,34),_.pl(N,34));EA(this,"ci",$0(t,32),$0(N,32));Gw(this,"t",t.getToken(),N.getToken());Gw(this,"nt0",_.aP(t,36),_.aP(N,36));EA(this,"rw",_.pl(t,35),_.pl(N,35));EA(this,"rwu",_.pl(t,41),_.pl(N,41));EA(this,"rwa",_.pl(t,64),_.pl(N,64));EA(this,
"nw",_.pl(t,48),_.pl(N,48));EA(this,"rh",_.pl(t,49),_.pl(N,49));EA(this,"no",_.pl(t,37),_.pl(N,37));EA(this,"ns",$0(t,40),$0(N,40));mz(this,"k",j$(t,42),j$(N,42));mz(this,"p",j$(t,43),j$(N,43));mz(this,"l",j$(t,44),j$(N,44));mz(this,"v",j$(t,62),j$(N,62));EA(this,"nu",$0(t,46),$0(N,46));EA(this,"ft",$0(t,50),$0(N,50));EA(this,"cc",$0(t,51),$0(N,51));EA(this,"nd",$0(t,53),$0(N,53));EA(this,"ip",$0(t,54),$0(N,54));EA(this,"nc",$0(t,55),$0(N,55));mz(this,"a",j$(t,56),j$(N,56));EA(this,"rj",$0(t,57),
$0(N,57));EA(this,"rp",$0(t,58),$0(N,58));EA(this,"rg",$0(t,59),$0(N,59));EA(this,"pd",$0(t,60),$0(N,60));EA(this,"pa",$0(t,61),$0(N,61));mz(this,"m",j$(t,63),j$(N,63));mz(this,"vb",iz(t,68),iz(N,68));mz(this,"vl",iz(t,69),iz(N,69));EA(this,"lf",$0(t,65),$0(N,65));EA(this,"mv",$0(t,66),$0(N,66));EA(this,"id",$0(t,70),$0(N,70));mz(this,"ic",j$(t,71),!0);EA(this,"pg",_.pl(t,72),_.pl(N,72));EA(this,"mo",$0(t,73),$0(N,73));EA(this,"al",$0(t,74),$0(N,74));mz(this,"iv",iz(t,75),iz(N,75));mz(this,"pi",uz(t,
76),uz(N,76));mz(this,"ya",uz(t,77),uz(N,77));mz(this,"ro",uz(t,78),uz(N,78));mz(this,"fo",uz(t,79),uz(N,79));EA(this,"df",$0(t,80),$0(N,80));Gw(this,"mm",_.aP(t,81),_.aP(N,81));EA(this,"sg",$0(t,82),$0(N,82));EA(this,"gd",$0(t,83),$0(N,83));EA(this,"fm",$0(t,84),$0(N,84));mz(this,"ba",j$(t,85),j$(N,85));mz(this,"br",j$(t,86),j$(N,86));mz(this,"bc",t.getBackgroundColor(),N.getBackgroundColor(),16,8);mz(this,"pc",j$(t,88),j$(N,88),16,8);mz(this,"sc",j$(t,89),j$(N,89),16,8);EA(this,"dv",$0(t,90),$0(N,
90));EA(this,"md",$0(t,91),$0(N,91));mz(this,"cp",j$(t,92),j$(N,92));EA(this,"sm",$0(t,93),$0(N,93));mz(this,"cv",j$(t,94),j$(N,94));EA(this,"ng",$0(t,95),$0(N,95));EA(this,"il",$0(t,96),$0(N,96));EA(this,"lo",$0(t,97),$0(N,97));EA(this,"vm",$0(t,98),$0(N,98));Gw(this,"dc",_.aP(t,99),_.aP(N,99));EA(this,"rf",$0(t,100),$0(N,100));Gw(this,"vf",_.aP(t,102),_.aP(N,102));EA(this,"ra",_.pl(t,103),_.pl(N,103));EA(this,"ckm",$0(t,104),$0(N,104));EA(this,"gm",$0(t,105),$0(N,105));EA(this,"ngm",$0(t,106),$0(N,
106));mz(this,"em",j$(t,107),j$(N,107));EA(this,"cr",$0(t,108),$0(N,108));mz(this,"sl",t.getStoryboardLevel(),N.getStoryboardLevel());mz(this,"sb",j$(t,110),j$(N,110));Gw(this,"pt",_.aP(t,111),_.aP(N,111));Gw(this,"gce",_.aP(t,112),_.aP(N,112));EA(this,"tm",$0(t,113),$0(N,113));EA(this,"ntm",$0(t,114),$0(N,114));mz(this,"mp",j$(t,115),j$(N,115));return this.JSC$20098_components_.join("-")};
var mz=function(N,t,O,H,A,Z){if(O!=null){var U=A==void 0||A!=10&&A!=16?10:A;O=Number(O).toString(U);A=new x2x;A.append(U==16?"0x":"");U=A.append;Z==void 0?Z="":(Z-=O.length,Z=Z<=0?"":(0,_.doS)("0",Z));U.call(A,Z);A.append(O);ZD5(N,t,A.toString(),!!Number(H))}},EA=function(N,t,O,H){O&&ZD5(N,t,"",!!H)},Gw=function(N,t,O,H){O&&ZD5(N,t,String(O),!!Number(H))},ZD5=function(N,t,O,H){H&&(t=t.charAt(0).toUpperCase()+t.substring(1));
N.JSC$20098_components_.push(t+O)};_.Od(PQ,jEn);_.V=PQ.prototype;_.V.JSC$20100_setCrop=function(N){N&&Rp(this);return PQ.superClass_.JSC$20100_setCrop.call(this,N)};
_.V.JSC$20100_setHeight=function(N){N=N==null||N<0?void 0:N;N!=null&&this.setSize();return PQ.superClass_.JSC$20100_setHeight.call(this,N)};
_.V.JSC$20100_setImageCrop=function(N){N&&Rp(this);return PQ.superClass_.JSC$20100_setImageCrop.call(this,N)};
_.V.JSC$20100_setCircleCrop=function(N){N&&Rp(this);return PQ.superClass_.JSC$20100_setCircleCrop.call(this,N)};
_.V.setSize=function(N){_.mG(N)&&(N=Math.max(N.width,N.height));N=N==null||N<0?void 0:N;N!=null&&(this.JSC$20100_setWidth(),this.JSC$20100_setHeight());return PQ.superClass_.setSize.call(this,N)};
_.V.JSC$20100_setSmartCrop=function(N){N&&Rp(this);return PQ.superClass_.JSC$20100_setSmartCrop.call(this,N)};
_.V.JSC$20100_setSmartCropNoClip=function(N){N&&Rp(this);return PQ.superClass_.JSC$20100_setSmartCropNoClip.call(this,N)};
_.V.JSC$20100_setSmartCropUseFace=function(N){N&&Rp(this);return PQ.superClass_.JSC$20100_setSmartCropUseFace.call(this,N)};
_.V.setCenterCrop=function(N){N&&Rp(this);return PQ.superClass_.setCenterCrop.call(this,N)};
_.V.JSC$20100_setPad=function(N){N&&Rp(this);return PQ.superClass_.JSC$20100_setPad.call(this,N)};
_.V.JSC$20100_setWidth=function(N){N=N==null||N<0?void 0:N;N!=null&&this.setSize();return PQ.superClass_.JSC$20100_setWidth.call(this,N)};
var Vtq=function(N){N.clearOptions();var t=N.JSC$20098_parsedOptions_,O=t.valueProto_;Qn(!0,_.pl(O,3),_.pl(t.signatureFlagProto_,3))&&_.SR(O,3,!0);return N},Rp=function(N){N.setCenterCrop();
N.JSC$20100_setCircleCrop();N.JSC$20100_setCrop();N.JSC$20100_setImageCrop();N.JSC$20100_setPad();N.JSC$20100_setSmartCrop();N.JSC$20100_setSmartCropNoClip();N.JSC$20100_setSmartCropUseFace()};
PQ.prototype.build=function(){var N=this.JSC$20098_parsedOptions_.valueProto_;$0(N,18)||$0(N,45)?N.getSize()||this.setSize(0):(N=this.JSC$20098_parsedOptions_.valueProto_,N.getSize()||N.getWidth()||N.getHeight()||(this.setSize(),this.JSC$20100_setHeight(),this.JSC$20100_setWidth(),Rp(this)));return PQ.superClass_.build.call(this)};var DF1=/^[^\/]*\/\//,UFf=function(N,t){t=t===void 0?!1:t;this.original_=N;this.originalPrefix_="";(N=this.original_.match(DF1))&&N[0]?(this.originalPrefix_=N[0],N=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):N="http://"+this.original_;this.uri_=_.tJ(N,!0);this.isFreeformUrl_=t;this.JSC$20104_valid_=!0;this.obfuscated_=!1},CLq=function(N,t){N.JSC$20106_pathPrefix_=N.JSC$20106_pathPrefix_?N.JSC$20106_pathPrefix_+("/"+t):t},vB=function(N){if(N.JSC$20106_components_==
void 0){var t=N.uri_.getPath().substring(1);
N.JSC$20106_pathPrefix_=null;if(N.isFreeformUrl_){N.JSC$20106_components_=[];if((t.match(/=/g)||[]).length>1)return N.JSC$20104_valid_=!1,N.JSC$20106_components_;var O=t.indexOf("=");O!=-1?(N.JSC$20106_components_.push(t.substr(0,O)),N.JSC$20106_components_.push(t.substr(O+1))):N.JSC$20106_components_.push(t);return N.JSC$20106_components_}N.JSC$20106_components_=t.split("/");t=N.JSC$20106_components_.length;t>2&&N.JSC$20106_components_[0]=="u"&&(CLq(N,N.JSC$20106_components_[0]+"/"+N.JSC$20106_components_[1]),
N.JSC$20106_components_.shift(),N.JSC$20106_components_.shift(),t-=2);if(t==0||t==4||t>7)return N.JSC$20104_valid_=!1,N.JSC$20106_components_;if(t==2)CLq(N,N.JSC$20106_components_[0]);else if(N.JSC$20106_components_[0]=="image")CLq(N,N.JSC$20106_components_[0]);else if(t==7||t==3)return N.JSC$20104_valid_=!1,N.JSC$20106_components_;if(t<=3){N.obfuscated_=!0;t==3&&(CLq(N,N.JSC$20106_components_[1]),N.JSC$20106_components_.shift(),--t);--t;O=N.JSC$20106_components_[t];var H=O.indexOf("=");H!=-1&&(N.JSC$20106_components_[t]=
O.substr(0,H),N.JSC$20106_components_.push(O.substr(H+1)))}}return N.JSC$20106_components_};
UFf.prototype.isValid=function(){vB(this);return this.JSC$20104_valid_};
UFf.prototype.isObfuscated=function(){vB(this);return this.obfuscated_};
var KJ1=function(N){vB(N);return N.isFreeformUrl_},JW=function(N){vB(N);
N.JSC$20106_pathPrefix_==void 0&&(N.JSC$20106_pathPrefix_=null);return N.JSC$20106_pathPrefix_},FJx=function(N){switch(vB(N).length){case 7:return!0;
case 6:return JW(N)==null;case 5:return!1;case 3:return!0;case 2:return JW(N)==null;case 1:return!1;default:return!1}},op=function(N,t){if(KJ1(N))a:{switch(t){case 7:t=0;
break;case 4:if(!FJx(N)){N=null;break a}t=1;break;default:N=null;break a}N=vB(N)[t]}else if(N.isObfuscated())a:{var O=JW(N)!=null?1:0;switch(t){case 6:t=O;break;case 4:if(!FJx(N)){N=null;break a}t=1+O;break;default:N=null;break a}N=vB(N)[t]}else a:{O=JW(N)!=null?1:0;switch(t){case 0:t=O;break;case 1:t=1+O;break;case 2:t=2+O;break;case 3:t=3+O;break;case 4:if(!FJx(N)){N=null;break a}t=4+O;break;case 5:t=FJx(N)?1:0;t=4+O+t;break;default:N=null;break a}N=vB(N)[t]}return N};
UFf.prototype.getOptions=function(){this.options_==void 0&&(this.options_=op(this,4));return this.options_};var S95=function(){};
S95.prototype.parse=function(N,t){return new ii1(N,t===void 0?!1:t)};
var ii1=function(N,t){UFf.call(this,N,t===void 0?!1:t)};
_.p(ii1,UFf);_.Od(Mq5,PQ);var u_n;Mq5.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Mq5.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var N=Mq5.superClass_.build.call(this),t=[];JW(this.parsedImageUrl_)!=null&&t.push(JW(this.parsedImageUrl_));var O=KJ1(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var H=this.parsedImageUrl_;H.obfuscatedData_==void 0&&(H.obfuscatedData_=op(H,6));t.push(H.obfuscatedData_+(N?"="+N:""))}else if(O){H=t.push;var A=this.parsedImageUrl_;A.freeformUrlPath_===void 0&&(A.freeformUrlPath_=
op(A,7));H.call(t,A.freeformUrlPath_);N&&t.push(N)}else H=t.push,A=this.parsedImageUrl_,A.obfuscatedGaiaId_==void 0&&(A.obfuscatedGaiaId_=op(A,0)),H.call(t,A.obfuscatedGaiaId_),H=t.push,A=this.parsedImageUrl_,A.photoId_==void 0&&(A.photoId_=op(A,1)),H.call(t,A.photoId_),H=t.push,A=this.parsedImageUrl_,A.imageVersion_==void 0&&(A.imageVersion_=op(A,2)),H.call(t,A.imageVersion_),H=t.push,A=this.parsedImageUrl_,A.signature_==void 0&&(A.signature_=op(A,3)),H.call(t,A.signature_),N&&t.push(N),N=t.push,
H=this.parsedImageUrl_,H.filename_==void 0&&(H.filename_=op(H,5)),N.call(t,H.filename_);t=O?t.join("="):t.join("/");t=_.tJ(this.protocolPrefix_+this.JSC$20112_domain_+"/"+t+(this.JSC$20112_query_?"?"+this.JSC$20112_query_:"")).toString();t.startsWith("%3a//")&&(t=t.replace("%3a//","://"));return t};var dFO=_.mp(["viewBox"]),gO1=_.mp(["width"]),yPO=_.mp(["height"]),Bdn=_.mp(["fill"]),cP5=_.mp(["id"]),$Fr=_.mp(["x"]),jwO=_.mp(["y"]);biJ.prototype.getLength=function(){return this.parsedData.length};
biJ.prototype.write=function(N){for(var t=0,O=this.parsedData.length;t<O;t++)N.put(this.parsedData[t],8)};
var wyf=function(N,t){var O=new biJ(t);N.dataList.push(O);O=N.errorCorrectLevel;var H=1,A=encodeURI(t).toString().replace(/%[0-9a-fA-F]{2}/g,"a");t=A.length+(A.length!=t?3:0);A=0;for(var Z=sA.length;A<=Z;A++){var U=0;switch(O){case 1:U=sA[A][0];break;case 0:U=sA[A][1];break;case 3:U=sA[A][2];break;case 2:U=sA[A][3]}if(t<=U)break;else H++}if(H>sA.length)throw Error("Rk");N.typeNumber=H;N.dataCache=null};
pyn.prototype.isDark=function(N,t){if(N<0||this.moduleCount<=N||t<0||this.moduleCount<=t)throw Error("Jk`"+N+"`"+t);return this.modules[N][t]};
for(var eIn=function(N,t,O){N.moduleCount=N.typeNumber*4+17;N.modules=Array(N.moduleCount);for(var H=0;H<N.moduleCount;H++){N.modules[H]=Array(N.moduleCount);for(var A=0;A<N.moduleCount;A++)N.modules[H][A]=null}iD5(N,0,0);iD5(N,N.moduleCount-7,0);iD5(N,0,N.moduleCount-7);H=u5n[N.typeNumber-1];for(A=0;A<H.length;A++)for(var Z=0;Z<H.length;Z++){var U=H[A],C=H[Z];if(N.modules[U][C]==null)for(var F=-2;F<=2;F++)for(var g=-2;g<=2;g++)N.modules[U+F][C+g]=F==-2||F==2||g==-2||g==2||F==0&&g==0?!0:!1}for(H=
8;H<N.moduleCount-8;H++)N.modules[H][6]==null&&(N.modules[H][6]=H%2==0);for(H=8;H<N.moduleCount-8;H++)N.modules[6][H]==null&&(N.modules[6][H]=H%2==0);H=N.errorCorrectLevel<<3|O;for(A=H<<10;ND(A)-ND(1335)>=0;)A^=1335<<ND(A)-ND(1335);H=(H<<10|A)^21522;for(A=0;A<15;A++)Z=!t&&(H>>A&1)==1,A<6?N.modules[A][8]=Z:A<8?N.modules[A+1][8]=Z:N.modules[N.moduleCount-15+A][8]=Z;for(A=0;A<15;A++)Z=!t&&(H>>A&1)==1,A<8?N.modules[8][N.moduleCount-A-1]=Z:A<9?N.modules[8][15-A-1+1]=Z:N.modules[8][15-A-1]=Z;N.modules[N.moduleCount-
8][8]=!t;if(N.typeNumber>=7){H=N.typeNumber;for(A=H<<12;ND(A)-ND(7973)>=0;)A^=7973<<ND(A)-ND(7973);H=H<<12|A;for(A=0;A<18;A++)Z=!t&&(H>>A&1)==1,N.modules[Math.floor(A/3)][A%3+N.moduleCount-8-3]=Z;for(A=0;A<18;A++)Z=!t&&(H>>A&1)==1,N.modules[A%3+N.moduleCount-8-3][Math.floor(A/3)]=Z}if(N.dataCache==null){A=N.typeNumber;Z=N.dataList;t=N.errorCorrectLevel;H=So5(A,t);if(H==void 0)throw Error("Qk`"+A+"`"+t);U=H.length/3;t=[];for(C=0;C<U;C++){F=H[C*3];g=H[C*3+1];for(var B=H[C*3+2],c=0;c<F;c++)t.push(new Lhn(g,
B))}H=new zIq;for(U=0;U<Z.length;U++)C=Z[U],H.put(C.mode,4),H.put(C.getLength(),htm(C.mode,A)),C.write(H);for(U=A=0;U<t.length;U++)A+=t[U].dataCount;if(H.length>A*8)throw Error("Kk`"+H.length+"`"+A*8);for(H.length+4<=A*8&&H.put(0,4);H.length%8!=0;)Mtz(H,!1);for(;!(H.length>=A*8);){H.put(236,8);if(H.length>=A*8)break;H.put(17,8)}Z=A=g=0;U=Array(t.length);C=Array(t.length);for(F=0;F<t.length;F++){c=t[F].dataCount;var u=t[F].totalCount-c;A=Math.max(A,c);Z=Math.max(Z,u);U[F]=Array(c);for(B=0;B<U[F].length;B++)U[F][B]=
255&H.buffer[B+g];g+=c;B=u;c=new Xg([1],0);for(u=0;u<B;u++)c=c.multiply(new Xg([1,bD1(u)],0));B=c;c=(new Xg(U[F],B.getLength()-1)).mod(B);C[F]=Array(B.getLength()-1);for(B=0;B<C[F].length;B++)u=B+c.getLength()-C[F].length,C[F][B]=u>=0?c.get(u):0}for(B=H=0;B<t.length;B++)H+=t[B].totalCount;H=Array(H);for(B=g=0;B<A;B++)for(F=0;F<t.length;F++)B<U[F].length&&(H[g++]=U[F][B]);for(B=0;B<Z;B++)for(F=0;F<t.length;F++)B<C[F].length&&(H[g++]=C[F][B]);N.dataCache=H}t=N.dataCache;H=-1;A=N.moduleCount-1;Z=7;U=
0;for(C=N.moduleCount-1;C>0;C-=2)for(C==6&&C--;;){for(F=0;F<2;F++)N.modules[A][C-F]==null&&(g=!1,U<t.length&&(g=(t[U]>>>Z&1)==1),puO(O,A,C-F)&&(g=!g),N.modules[A][C-F]=g,Z--,Z==-1&&(U++,Z=7));A+=H;if(A<0||N.moduleCount<=A){A-=H;H=-H;break}}},iD5=function(N,t,O){for(var H=-1;H<=7;H++)if(!(t+H<=-1||N.moduleCount<=t+H))for(var A=-1;A<=7;A++)O+A<=-1||N.moduleCount<=O+A||(N.modules[t+H][O+A]=0<=H&&H<=6&&(A==0||A==6)||0<=A&&A<=6&&(H==0||H==6)||2<=H&&H<=4&&2<=A&&A<=4?!0:!1)},Pe5=function(N){for(var t=0,
O=0,H=0;H<8;H++){eIn(N,!0,H);
var A=N;for(var Z=A.moduleCount,U=0,C=0;C<Z;C++)for(var F=0;F<Z;F++){for(var g=0,B=A.isDark(C,F),c=-1;c<=1;c++)if(!(C+c<0||Z<=C+c))for(var u=-1;u<=1;u++)F+u<0||Z<=F+u||(c!=0||u!=0)&&B==A.isDark(C+c,F+u)&&g++;g>5&&(U+=3+g-5)}for(C=0;C<Z-1;C++)for(F=0;F<Z-1;F++)if(g=0,A.isDark(C,F)&&g++,A.isDark(C+1,F)&&g++,A.isDark(C,F+1)&&g++,A.isDark(C+1,F+1)&&g++,g==0||g==4)U+=3;for(C=0;C<Z;C++)for(F=0;F<Z-6;F++)A.isDark(C,F)&&!A.isDark(C,F+1)&&A.isDark(C,F+2)&&A.isDark(C,F+3)&&A.isDark(C,F+4)&&!A.isDark(C,F+5)&&
A.isDark(C,F+6)&&(U+=40);for(F=0;F<Z;F++)for(C=0;C<Z-6;C++)A.isDark(C,F)&&!A.isDark(C+1,F)&&A.isDark(C+2,F)&&A.isDark(C+3,F)&&A.isDark(C+4,F)&&!A.isDark(C+5,F)&&A.isDark(C+6,F)&&(U+=40);for(F=g=0;F<Z;F++)for(C=0;C<Z;C++)A.isDark(C,F)&&g++;A=U+=Math.abs(100*g/Z/Z-50)/5*10;if(H==0||t>A)t=A,O=H}return O},u5n=[[],
[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]],ND=function(N){for(var t=0;N!=0;)t++,N>>>=1;return t},puO=function(N,t,O){switch(N){case 0:return(t+O)%2==0;
case 1:return t%2==0;case 2:return O%3==0;case 3:return(t+O)%3==0;case 4:return(Math.floor(t/2)+Math.floor(O/3))%2==0;case 5:return t*O%2+t*O%3==0;case 6:return(t*O%2+t*O%3)%2==0;case 7:return(t*O%3+(t+O)%2)%2==0;default:throw Error("Lk`"+N);}},htm=function(N,t){if(1<=t&&t<10)switch(N){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Mk`"+N);}else if(t<27)switch(N){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Mk`"+N);}else if(t<41)switch(N){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Mk`"+N);}else throw Error("Nk`"+t);},zt1=function(N){if(N<1)throw Error("Ok`"+N);
return LJ5[N]},bD1=function(N){for(;N<0;)N+=255;
for(;N>=256;)N-=255;return tZ[N]},tZ=Array(256),LJ5=Array(256),Yo1=0;Yo1<8;Yo1++)tZ[Yo1]=1<<Yo1;
for(var OO=8;OO<256;OO++)tZ[OO]=tZ[OO-4]^tZ[OO-5]^tZ[OO-6]^tZ[OO-8];for(var aTr=0;aTr<255;aTr++)LJ5[tZ[aTr]]=aTr;Xg.prototype.get=function(N){return this.num[N]};
Xg.prototype.getLength=function(){return this.num.length};
Xg.prototype.multiply=function(N){for(var t=Array(this.getLength()+N.getLength()-1),O=0;O<this.getLength();O++)for(var H=0;H<N.getLength();H++)t[O+H]^=bD1(zt1(this.get(O))+zt1(N.get(H)));return new Xg(t,0)};
Xg.prototype.mod=function(N){if(this.getLength()-N.getLength()<0)return this;for(var t=zt1(this.get(0))-zt1(N.get(0)),O=Array(this.getLength()),H=0;H<this.getLength();H++)O[H]=this.get(H);for(H=0;H<N.getLength();H++)O[H]^=bD1(zt1(N.get(H))+t);return(new Xg(O,0)).mod(N)};
var TdO=[[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]],So5=function(N,t){switch(t){case 1:return TdO[(N-1)*4];case 0:return TdO[(N-1)*4+1];case 3:return TdO[(N-1)*4+2];case 2:return TdO[(N-1)*4+3]}};
zIq.prototype.get=function(N){return(this.buffer[Math.floor(N/8)]>>>7-N%8&1)==1};
zIq.prototype.put=function(N,t){for(var O=0;O<t;O++)Mtz(this,(N>>>t-O-1&1)==1)};
var Mtz=function(N,t){var O=Math.floor(N.length/8);N.buffer.length<=O&&N.buffer.push(0);t&&(N.buffer[O]|=128>>>N.length%8);N.length++},sA=[[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]],Tv1=function(){var N=function(t,O){this.JSC$20132__el=t;this.JSC$20132__htOption=O};
N.prototype.draw=function(t){function O(B,c){B=document.createElementNS("http://www.w3.org/2000/svg",B);for(var u in c)c.hasOwnProperty(u)&&(u==="href"?_.kVf(B,c[u]):_.KU([_.BW(dFO),_.BW(gO1),_.BW(yPO),_.BW(Bdn),_.BW(cP5),_.BW($Fr),_.BW(jwO)],B,u,c[u]));return B}
var H=this.JSC$20132__htOption,A=this.JSC$20132__el,Z=t.moduleCount;this.clear();var U=O("svg",{viewBox:"0 0 "+String(Z)+" "+String(Z),width:"100%",height:"100%",fill:H.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});A.appendChild(U);U.appendChild(O("rect",{fill:H.colorLight,width:"100%",height:"100%"}));U.appendChild(O("rect",{fill:H.colorDark,width:"1",height:"1",id:"template"}));for(var C=0;C<Z;C++)for(var F=0;F<Z;F++)if(t.isDark(C,F)){var g=O("use",{x:String(C),y:String(F),href:"#template"});
U.appendChild(g)}};
N.prototype.clear=function(){for(;this.JSC$20132__el.hasChildNodes();)this.JSC$20132__el.removeChild(this.JSC$20132__el.lastChild)};
return N}(),a_O=document.documentElement.tagName.toLowerCase()==="svg"?Tv1:typeof CanvasRenderingContext2D!="undefined"?function(){var N=function(t,O){this._bIsPainted=!1;
Y95();this.JSC$20132__htOption=O;this._elCanvas=document.createElement("canvas");this._elCanvas.width=O.width;this._elCanvas.height=O.height;t.appendChild(this._elCanvas);this.JSC$20132__el=t;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$20132__el.appendChild(this._elImage);this._bSupportDataURI=null};
N.prototype._onMakeImage=function(){var t=this._elCanvas.toDataURL("image/png");this._elImage.src=t;this._elImage.style.display="block";this._elCanvas.style.display="none"};
N.prototype._safeSetDataURI=function(t,O){var H=this;H._fFail=O;H._fSuccess=t;H._bSupportDataURI===null?(t=_.Tu("IMG"),O=function(){H._bSupportDataURI=!1;H._fFail&&H._fFail.call(H)},t.onabort=O,t.onerror=O,t.onload=function(){H._bSupportDataURI=!0;
H._fSuccess&&H._fSuccess.call(H)},t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):H._bSupportDataURI===!0&&H._fSuccess?H._fSuccess.call(H):H._bSupportDataURI===!1&&H._fFail&&H._fFail.call(H)};
N.prototype.draw=function(t){var O=this._oContext,H=this.JSC$20132__htOption,A=t.moduleCount,Z=H.width/A,U=H.height/A,C=Math.round(Z),F=Math.round(U);this._elImage.style.display="none";this.clear();for(var g=0;g<A;g++)for(var B=0;B<A;B++){var c=t.isDark(g,B),u=B*Z,S=g*U;O.strokeStyle=c?H.colorDark:H.colorLight;O.lineWidth=1;O.fillStyle=c?H.colorDark:H.colorLight;O.fillRect(u,S,Z,U);O.strokeRect(Math.floor(u)+.5,Math.floor(S)+.5,C,F);O.strokeRect(Math.ceil(u)-.5,Math.ceil(S)-.5,C,F)}this._bIsPainted=
!0};
N.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
N.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
N.prototype.round=function(t){return t?Math.floor(t*1E3)/1E3:t};
return N}():function(){var N=function(t,O){this.JSC$20132__el=t;
this.JSC$20132__htOption=O};
N.prototype.draw=function(t){for(var O=this.JSC$20132__htOption,H=this.JSC$20132__el,A=t.moduleCount,Z=Math.floor(O.width/A),U=Math.floor(O.height/A),C=['<table style="border:0;border-collapse:collapse;">'],F=0;F<A;F++){C.push("<tr>");for(var g=0;g<A;g++)C.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+Z+"px;height:"+U+"px;background-color:"+(t.isDark(F,g)?O.colorDark:O.colorLight)+';"></td>');C.push("</tr>")}C.push("</table>");t=C.join("");t=_.OmX(_.ADQ,t);_.CU(H,t);
t=H.childNodes[0];A=(O.width-t.offsetWidth)/2;Z=(O.height-t.offsetHeight)/2;A>0&&Z>0&&(t.style.margin=Z+"px "+A+"px")};
N.prototype.clear=function(){this.JSC$20132__el.textContent=""};
return N}();
XyJ.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20135__android||this.JSC$20135__android>=3)&&this._oDrawing.makeImage()};
XyJ.prototype.clear=function(){this._oDrawing.clear()};
_.H4.QRCode=XyJ;var wu1={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var etr=function(){};
etr.prototype.stringify=function(N){return _.H4.JSON.stringify(N,void 0)};
etr.prototype.parse=function(N){return _.H4.JSON.parse(N,void 0)};var PLi=function(){_.a7.call(this,"z")};
_.Od(PLi,_.a7);var XuO=function(){_.a7.call(this,"y")};
_.Od(XuO,_.a7);var xF1=null,k6x=function(){return xF1=xF1||new _.Xm},qor=function(N){_.a7.call(this,"serverreachability",N)};
_.Od(qor,_.a7);var fTn=function(N){var t=k6x();t.dispatchEvent(new qor(t,N))},nO5=function(N,t){_.a7.call(this,"statevent",N);
this.stat=t};
_.Od(nO5,_.a7);var H_=function(N){var t=k6x();t.dispatchEvent(new nO5(t,N))},WJ5=function(N,t,O,H){_.a7.call(this,"timingevent",N);
this.size=t;this.rtt=O;this.retries=H};
_.Od(WJ5,_.a7);var rPf=function(N,t,O){var H=k6x();H.dispatchEvent(new WJ5(H,N,t,O))},ITn=function(N,t){if(typeof N!=="function")throw Error("Sk");
return _.H4.setTimeout(function(){N()},t)};var AZ=function(){this.redactEnabled_=!0};
AZ.prototype.disableRedact=function(){this.redactEnabled_=!1};
var lTO=function(N,t,O,H,A,Z){N.info(function(){if(N.redactEnabled_)if(Z){var U="";for(var C=Z.split("&"),F=0;F<C.length;F++){var g=C[F].split("=");if(g.length>1){var B=g[0];g=g[1];var c=B.split("_");U=c.length>=2&&c[1]=="type"?U+(B+"="+g+"&"):U+(B+"=redacted&")}}}else U=null;else U=Z;return"XMLHTTP REQ ("+H+") [attempt "+A+"]: "+t+"\n"+O+"\n"+U})},Qwq=function(N,t,O,H,A,Z,U){N.info(function(){return"XMLHTTP RESP ("+H+") [ attempt "+A+"]: "+t+"\n"+O+"\n"+Z+" "+U})},ZS=function(N,t,O,H){N.info(function(){return"XMLHTTP TEXT ("+
t+"): "+mFi(N,O)+(H?" "+H:"")})},EOf=function(N,t){N.info(function(){return"TIMEOUT: "+t})};
AZ.prototype.debug=function(){};
AZ.prototype.info=function(){};
AZ.prototype.warning=function(){};
var mFi=function(N,t){if(!N.redactEnabled_)return t;if(!t)return null;try{var O=JSON.parse(t);if(O)for(var H=0;H<O.length;H++)if(Array.isArray(O[H])){var A=O[H];if(!(A.length<2)){var Z=A[1];if(Array.isArray(Z)&&!(Z.length<1)){var U=Z[0];if(U!="noop"&&U!="stop"&&U!="close")for(var C=1;C<Z.length;C++)Z[C]=""}}}return(0,_.r3)(O)}catch(F){return N.debug("Exception parsing expected JS array - probably was not JS"),t}};var VC=function(N,t,O,H,A){this.JSC$20157_channel_=N;this.JSC$20157_channelDebug_=t;this.sid_=O;this.JSC$20157_rid_=H;this.JSC$20157_retryId_=A||1;this.JSC$20157_eventHandler_=new _.MT(this);this.timeout_=45E3;this.JSC$20157_extraHeaders_=null;this.JSC$20157_successful_=!1;this.JSC$20157_postData_=this.JSC$20157_requestUri_=this.JSC$20157_baseUri_=this.JSC$20157_type_=this.JSC$20157_requestStartTime_=this.JSC$20157_watchDogTimeoutTime_=this.JSC$20157_watchDogTimerId_=null;this.JSC$20157_pendingMessages_=
[];this.JSC$20157_xmlHttp_=null;this.JSC$20157_xmlHttpChunkStart_=0;this.JSC$20157_lastError_=this.JSC$20157_verb_=null;this.JSC$20157_lastStatusCode_=-1;this.JSC$20157_cancelled_=!1;this.JSC$20157_readyStateChangeThrottleMs_=0;this.JSC$20157_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new G6r},G6r=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Rtf=function(N,t){switch(N){case 0:return"Non-200 return code ("+t+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},vOr={},JP5={};
VC.prototype.setTimeout=function(N){this.timeout_=N};
var swq=function(N,t,O){N.JSC$20157_type_=1;N.JSC$20157_baseUri_=_.uv(t.clone());N.JSC$20157_postData_=O;N.decodeChunks_=!0;oO1(N,null)},oO1=function(N,t){N.JSC$20157_requestStartTime_=Date.now();
NOr(N);N.JSC$20157_requestUri_=N.JSC$20157_baseUri_.clone();pLO(N.JSC$20157_requestUri_,"t",N.JSC$20157_retryId_);N.JSC$20157_xmlHttpChunkStart_=0;var O=N.JSC$20157_channel_.JSC$20176_supportsCrossDomainXhrs_;N.fetchResponseState_=new G6r;N.JSC$20157_xmlHttp_=tNO(N.JSC$20157_channel_,O?t:null,!N.JSC$20157_postData_);N.JSC$20157_readyStateChangeThrottleMs_>0&&(N.JSC$20157_readyStateChangeThrottle_=new _.KE((0,_.qn)(N.JSC$20161_xmlHttpHandler_,N,N.JSC$20157_xmlHttp_),N.JSC$20157_readyStateChangeThrottleMs_));
N.JSC$20157_eventHandler_.listen(N.JSC$20157_xmlHttp_,"readystatechange",N.JSC$20161_readyStateChangeHandler_);t=N.JSC$20157_extraHeaders_?_.WW.clone(N.JSC$20157_extraHeaders_):{};N.JSC$20157_postData_?(N.JSC$20157_verb_||(N.JSC$20157_verb_="POST"),t["Content-Type"]="application/x-www-form-urlencoded",N.JSC$20157_xmlHttp_.send(N.JSC$20157_requestUri_,N.JSC$20157_verb_,N.JSC$20157_postData_,t)):(N.JSC$20157_verb_="GET",N.JSC$20157_xmlHttp_.send(N.JSC$20157_requestUri_,N.JSC$20157_verb_,null,t));fTn(1);
lTO(N.JSC$20157_channelDebug_,N.JSC$20157_verb_,N.JSC$20157_requestUri_,N.JSC$20157_rid_,N.JSC$20157_retryId_,N.JSC$20157_postData_)};
VC.prototype.JSC$20161_readyStateChangeHandler_=function(N){N=N.target;var t=this.JSC$20157_readyStateChangeThrottle_;t&&_.lM(N)==3?(this.JSC$20157_channelDebug_.debug("Throttling readystatechange."),t.fire()):this.JSC$20161_xmlHttpHandler_(N)};
VC.prototype.JSC$20161_xmlHttpHandler_=function(N){try{N==this.JSC$20157_xmlHttp_?OXr(this):this.JSC$20157_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(t){this.JSC$20157_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),HXr(this)}finally{}};
var OXr=function(N){var t=_.lM(N.JSC$20157_xmlHttp_),O=N.JSC$20157_xmlHttp_.JSC$9951_lastErrorCode_,H=N.JSC$20157_xmlHttp_.getStatus();if(!(t<3||t==3&&!HXr(N))){N.JSC$20157_cancelled_||t!=4||O==7||(O==8||H<=0?fTn(3):fTn(2));Aii(N);var A=N.JSC$20157_xmlHttp_.getStatus();N.JSC$20157_lastStatusCode_=A;O=ZXf(N);HXr(N)||N.JSC$20157_channelDebug_.debug(function(){return"No response text for uri "+N.JSC$20157_requestUri_+" status "+A});
N.JSC$20157_successful_=A==200;Qwq(N.JSC$20157_channelDebug_,N.JSC$20157_verb_,N.JSC$20157_requestUri_,N.JSC$20157_rid_,N.JSC$20157_retryId_,t,A);if(N.JSC$20157_successful_){if(N.decodeInitialResponse_&&!N.initialResponseDecoded_)if(H=VNm(N))ZS(N.JSC$20157_channelDebug_,N.JSC$20157_rid_,H,"Initial handshake response via X-HTTP-Initial-Response"),N.initialResponseDecoded_=!0,D3z(N,H);else{N.JSC$20157_successful_=!1;N.JSC$20157_lastError_=3;H_(12);N.JSC$20157_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
N.JSC$20157_rid_+")");DS(N);U3n(N);return}N.decodeChunks_?CWm(N,t,O):(ZS(N.JSC$20157_channelDebug_,N.JSC$20157_rid_,O,null),D3z(N,O));t==4&&DS(N);N.JSC$20157_successful_&&!N.JSC$20157_cancelled_&&(t==4?KSz(N.JSC$20157_channel_,N):(N.JSC$20157_successful_=!1,NOr(N)))}else Mzm(N.JSC$20157_xmlHttp_),A==400&&O.indexOf("Unknown SID")>0?(N.JSC$20157_lastError_=3,H_(12),N.JSC$20157_channelDebug_.warning("XMLHTTP Unknown SID ("+N.JSC$20157_rid_+")")):(N.JSC$20157_lastError_=0,H_(13),N.JSC$20157_channelDebug_.warning("XMLHTTP Bad status "+
A+" ("+N.JSC$20157_rid_+")")),DS(N),U3n(N)}},VNm=function(N){return N.JSC$20157_xmlHttp_&&(N=gSx(N.JSC$20157_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Dp(N)?N:null},ZXf=function(N){if(!FSr(N))return N.JSC$20157_xmlHttp_.getResponseText();
var t=N.JSC$20157_xmlHttp_.getResponse();if(t==="")return"";var O="",H=t.length,A=_.lM(N.JSC$20157_xmlHttp_)==4;if(!N.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return DS(N),U3n(N),"";N.fetchResponseState_.textDecoder=new _.H4.TextDecoder}for(var Z=0;Z<H;Z++)N.fetchResponseState_.responseArrivedForFetch=!0,O+=N.fetchResponseState_.textDecoder.decode(t[Z],{stream:!(A&&Z==H-1)});t.length=0;N.fetchResponseState_.responseBuffer+=O;N.JSC$20157_xmlHttpChunkStart_=0;return N.fetchResponseState_.responseBuffer},
HXr=function(N){return N.JSC$20157_xmlHttp_?N.fetchResponseState_.responseArrivedForFetch?!0:!(!N.JSC$20157_xmlHttp_.getResponseText()&&!N.JSC$20157_xmlHttp_.getResponse()):!1},FSr=function(N){return N.JSC$20157_xmlHttp_?N.JSC$20157_verb_=="GET"&&N.JSC$20157_type_!=2&&N.JSC$20157_channel_.usesFetchStreams_:!1},CWm=function(N,t,O){for(var H=!0,A;!N.JSC$20157_cancelled_&&N.JSC$20157_xmlHttpChunkStart_<O.length;)if(A=d3O(N,O),A==JP5){t==4&&(N.JSC$20157_lastError_=4,H_(14),H=!1);
ZS(N.JSC$20157_channelDebug_,N.JSC$20157_rid_,null,"[Incomplete Response]");break}else if(A==vOr){N.JSC$20157_lastError_=4;H_(15);ZS(N.JSC$20157_channelDebug_,N.JSC$20157_rid_,O,"[Invalid Chunk]");H=!1;break}else ZS(N.JSC$20157_channelDebug_,N.JSC$20157_rid_,A,null),D3z(N,A);FSr(N)&&N.JSC$20157_xmlHttpChunkStart_!=0&&(N.fetchResponseState_.responseBuffer=N.fetchResponseState_.responseBuffer.slice(N.JSC$20157_xmlHttpChunkStart_),N.JSC$20157_xmlHttpChunkStart_=0);t!=4||O.length!=0||N.fetchResponseState_.responseArrivedForFetch||
(N.JSC$20157_lastError_=1,H_(16),H=!1);N.JSC$20157_successful_=N.JSC$20157_successful_&&H;H?O.length>0&&!N.firstByteReceived_&&(N.firstByteReceived_=!0,t=N.JSC$20157_channel_,t.JSC$20176_backChannelRequest_==N&&t.detectBufferingProxy_&&!t.bpDetectionDone_&&(t.JSC$20176_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+O.length),gnm(t),t.bpDetectionDone_=!0,H_(11))):(ZS(N.JSC$20157_channelDebug_,N.JSC$20157_rid_,O,"[Invalid Chunked Response]"),DS(N),U3n(N))},d3O=function(N,
t){var O=N.JSC$20157_xmlHttpChunkStart_,H=t.indexOf("\n",O);
if(H==-1)return JP5;O=Number(t.substring(O,H));if(isNaN(O))return vOr;H+=1;if(H+O>t.length)return JP5;t=t.slice(H,H+O);N.JSC$20157_xmlHttpChunkStart_=H+O;return t};
VC.prototype.cancel=function(){this.JSC$20157_cancelled_=!0;DS(this)};
var NOr=function(N){N.JSC$20157_watchDogTimeoutTime_=Date.now()+N.timeout_;yin(N,N.timeout_)},yin=function(N,t){if(N.JSC$20157_watchDogTimerId_!=null)throw Error("Tk");
N.JSC$20157_watchDogTimerId_=ITn((0,_.qn)(N.JSC$20161_onWatchDogTimeout_,N),t)},Aii=function(N){N.JSC$20157_watchDogTimerId_&&(_.H4.clearTimeout(N.JSC$20157_watchDogTimerId_),N.JSC$20157_watchDogTimerId_=null)};
VC.prototype.JSC$20161_onWatchDogTimeout_=function(){this.JSC$20157_watchDogTimerId_=null;var N=Date.now();N-this.JSC$20157_watchDogTimeoutTime_>=0?(EOf(this.JSC$20157_channelDebug_,this.JSC$20157_requestUri_),this.JSC$20157_type_!=2&&(fTn(3),H_(17)),DS(this),this.JSC$20157_lastError_=2,U3n(this)):(this.JSC$20157_channelDebug_.warning("WatchDog timer called too early"),yin(this,this.JSC$20157_watchDogTimeoutTime_-N))};
var U3n=function(N){N.JSC$20157_channel_.state_==0||N.JSC$20157_cancelled_||KSz(N.JSC$20157_channel_,N)},DS=function(N){Aii(N);
_.F$(N.JSC$20157_readyStateChangeThrottle_);N.JSC$20157_readyStateChangeThrottle_=null;N.JSC$20157_eventHandler_.removeAll();if(N.JSC$20157_xmlHttp_){var t=N.JSC$20157_xmlHttp_;N.JSC$20157_xmlHttp_=null;t.abort();t.dispose()}};
VC.prototype.getLastError=function(){return this.JSC$20157_lastError_};
var D3z=function(N,t){try{var O=N.JSC$20157_channel_;if(O.state_!=0&&(O.JSC$20176_backChannelRequest_==N||BOi(O.forwardChannelRequestPool_,N)))if(!N.initialResponseDecoded_&&BOi(O.forwardChannelRequestPool_,N)&&O.state_==3){try{var H=O.wireCodec_.JSC$20171_parser_.parse(t)}catch(C){H=null}if(Array.isArray(H)&&H.length==3){t=H;if(t[0]==0)a:if(O.JSC$20176_channelDebug_.debug("Server claims our backchannel is missing."),O.JSC$20176_backChannelTimerId_)O.JSC$20176_channelDebug_.debug("But we are currently starting the request.");
else{if(O.JSC$20176_backChannelRequest_)if(O.JSC$20176_backChannelRequest_.JSC$20157_requestStartTime_+3E3<N.JSC$20157_requestStartTime_)ciJ(O),$31(O);else break a;else O.JSC$20176_channelDebug_.warning("We do not have a BackChannel established");jgf(O);H_(18)}else{O.JSC$20176_lastPostResponseArrayId_=t[1];var A=O.JSC$20176_lastPostResponseArrayId_-O.JSC$20176_lastArrayId_;if(0<A){var Z=t[2];O.JSC$20176_channelDebug_.debug(Z+" bytes (in "+A+" arrays) are outstanding on the BackChannel");Z<37500&&
O.enableStreaming_&&O.JSC$20176_backChannelRetryCount_==0&&!O.JSC$20176_deadBackChannelTimerId_&&(O.JSC$20176_deadBackChannelTimerId_=ITn((0,_.qn)(O.JSC$20178_onBackChannelDead_,O),6E3))}}if(iX5(O.forwardChannelRequestPool_)<=1&&O.forwardChannelFlushedCallback_){try{O.forwardChannelFlushedCallback_()}catch(C){}O.forwardChannelFlushedCallback_=void 0}}else O.JSC$20176_channelDebug_.debug("Bad POST response data returned"),UO(O,11)}else if((N.initialResponseDecoded_||O.JSC$20176_backChannelRequest_==
N)&&ciJ(O),!_.Dp(t)){var U=O.wireCodec_.JSC$20171_parser_.parse(t);O.onInput_(U,N)}fTn(4)}catch(C){}};var us5=function(N,t){this.JSC$20164_mapId=N;this.map=t;this.context=null};var Sa5=function(N){this.maxPoolSizeConfigured_=N||10;_.H4.PerformanceNavigationTiming?(N=_.H4.performance.getEntriesByType("navigation"),N=N.length>0&&(N[0].nextHopProtocol=="hq"||N[0].nextHopProtocol=="h2")):N=!!(_.H4.chrome&&_.H4.chrome.loadTimes&&_.H4.chrome.loadTimes()&&_.H4.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20167_maxSize_=N?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20167_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20167_request_=null;this.JSC$20167_pendingMessages_=
[]},hH5=function(N){return N.JSC$20167_request_?!0:N.requestPool_?N.requestPool_.size>=N.JSC$20167_maxSize_:!1},iX5=function(N){return N.JSC$20167_request_?1:N.requestPool_?N.requestPool_.size:0},BOi=function(N,t){return N.JSC$20167_request_?N.JSC$20167_request_==t:N.requestPool_?N.requestPool_.has(t):!1},MNq=function(N,t){N.requestPool_?N.requestPool_.add(t):N.JSC$20167_request_=t},bXn=function(N,t){N.JSC$20167_request_&&N.JSC$20167_request_==t?N.JSC$20167_request_=null:N.requestPool_&&N.requestPool_.has(t)&&
N.requestPool_.delete(t)};
Sa5.prototype.cancel=function(){this.JSC$20167_pendingMessages_=pRn(this);if(this.JSC$20167_request_)this.JSC$20167_request_.cancel(),this.JSC$20167_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var N=_.D(this.requestPool_.values()),t=N.next();!t.done;t=N.next())t.value.cancel();this.requestPool_.clear()}};
var pRn=function(N){if(N.JSC$20167_request_!=null)return N.JSC$20167_pendingMessages_.concat(N.JSC$20167_request_.JSC$20157_pendingMessages_);if(N.requestPool_!=null&&N.requestPool_.size!==0){var t=N.JSC$20167_pendingMessages_;N=_.D(N.requestPool_.values());for(var O=N.next();!O.done;O=N.next())t=t.concat(O.value.JSC$20157_pendingMessages_);return t}return _.Il(N.JSC$20167_pendingMessages_)},LSz=function(N,t){N.JSC$20167_pendingMessages_=N.JSC$20167_pendingMessages_.concat(t)};var zHm=function(N,t){var O=new AZ;O.debug("TestLoadImage: loading "+N);if(_.H4.Image){var H=new Image;H.onload=_.Fu(Cw,O,"TestLoadImage: loaded",!0,t,H);H.onerror=_.Fu(Cw,O,"TestLoadImage: error",!1,t,H);H.onabort=_.Fu(Cw,O,"TestLoadImage: abort",!1,t,H);H.ontimeout=_.Fu(Cw,O,"TestLoadImage: timeout",!1,t,H);_.H4.setTimeout(function(){if(H.ontimeout)H.ontimeout()},1E4);
H.src=N}else t(!1)},YaJ=function(N,t){var O=new AZ,H=new AbortController,A=setTimeout(function(){H.abort();
Cw(O,"TestPingServer: timeout",!1,t)},1E4);
fetch(N,{signal:H.signal}).then(function(Z){clearTimeout(A);Z.ok?Cw(O,"TestPingServer: ok",!0,t):Cw(O,"TestPingServer: server error",!1,t)}).catch(function(){clearTimeout(A);
Cw(O,"TestPingServer: error",!1,t)})},Cw=function(N,t,O,H,A){try{N.debug(t),A&&(A.onload=null,A.onerror=null,A.onabort=null,A.ontimeout=null),H(O)}catch(Z){}};var adz=function(){this.JSC$20171_parser_=new etr};var TOx=function(N,t,O){return O&&O.internalChannelParams?O.internalChannelParams[N]||t:t},Kw=function(N){this.serverVersion_=0;
this.JSC$20176_outgoingMaps_=[];this.JSC$20176_channelDebug_=new AZ;this.JSC$20176_hostPrefix_=this.JSC$20176_backChannelUri_=this.JSC$20176_forwardChannelUri_=this.JSC$20176_path_=this.JSC$20176_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20176_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20176_extraHeaders_=null;this.JSC$20176_nextMapId_=this.JSC$20176_nextRid_=0;this.JSC$20176_failFast_=TOx("failFast",!1,N);this.enableStreaming_=this.JSC$20176_deadBackChannelTimerId_=
this.JSC$20176_backChannelTimerId_=this.JSC$20176_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20176_lastPostResponseArrayId_=this.JSC$20176_lastArrayId_=-1;this.JSC$20176_backChannelAttemptId_=this.JSC$20176_backChannelRetryCount_=this.JSC$20176_forwardChannelRetryCount_=0;this.JSC$20176_baseRetryDelayMs_=TOx("baseRetryDelayMs",5E3,N);this.JSC$20176_retryDelaySeedMs_=TOx("retryDelaySeedMs",1E4,N);this.JSC$20176_forwardChannelMaxRetries_=
TOx("forwardChannelMaxRetries",2,N);this.JSC$20176_forwardChannelRequestTimeoutMs_=TOx("forwardChannelRequestTimeoutMs",2E4,N);this.JSC$20176_xmlHttpFactory_=N&&N.xmlHttpFactory||void 0;this.networkTestUrl_=N&&N.networkTestUrl||void 0;this.usesFetchStreams_=N&&N.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20176_supportsCrossDomainXhrs_=N&&N.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new Sa5(N&&N.concurrentRequestLimit);this.wireCodec_=new adz;
this.fastHandshake_=N&&N.fastHandshake||!1;this.encodeInitMessageHeaders_=N&&N.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20176_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=N&&N.blockingHandshake||!1;N&&N.disableRedact&&this.JSC$20176_channelDebug_.disableRedact();N&&N.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&N&&N.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;N&&N.longPollingTimeout&&N.longPollingTimeout>0&&(this.longPollingTimeout_=N.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Kw.prototype.JSC$20178_channelVersion_=8;Kw.prototype.state_=1;
Kw.prototype.connect=function(N,t,O,H){this.JSC$20176_channelDebug_.debug("connect()");H_(0);this.JSC$20176_path_=N;this.JSC$20176_extraParams_=t||{};O&&H!==void 0&&(this.JSC$20176_extraParams_.OSID=O,this.JSC$20176_extraParams_.OAID=H);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20176_channelDebug_.debug("connectChannel_()");N=wR5(this,null,this.JSC$20176_path_);this.JSC$20176_channelDebug_.debug("GetForwardChannelUri: "+N);this.JSC$20176_forwardChannelUri_=N;eHf(this)};
Kw.prototype.disconnect=function(){this.JSC$20176_channelDebug_.debug("disconnect()");PWz(this);if(this.state_==3){var N=this.JSC$20176_nextRid_++,t=this.JSC$20176_forwardChannelUri_.clone();_.Ho(t,"SID",this.sid_);_.Ho(t,"RID",N);_.Ho(t,"TYPE","terminate");XR5(this,t);N=new VC(this,this.JSC$20176_channelDebug_,this.sid_,N);N.JSC$20157_type_=2;N.JSC$20157_baseUri_=_.uv(t.clone());t=!1;if(_.H4.navigator&&_.H4.navigator.sendBeacon)try{t=_.H4.navigator.sendBeacon(N.JSC$20157_baseUri_.toString(),"")}catch(O){}!t&&
_.H4.Image&&((new Image).src=N.JSC$20157_baseUri_,t=!0);t||(N.JSC$20157_xmlHttp_=tNO(N.JSC$20157_channel_,null),N.JSC$20157_xmlHttp_.send(N.JSC$20157_baseUri_));N.JSC$20157_requestStartTime_=Date.now();NOr(N)}x35(this)};
var $31=function(N){N.JSC$20176_backChannelRequest_&&(gnm(N),N.JSC$20176_backChannelRequest_.cancel(),N.JSC$20176_backChannelRequest_=null)},PWz=function(N){$31(N);
N.JSC$20176_backChannelTimerId_&&(_.H4.clearTimeout(N.JSC$20176_backChannelTimerId_),N.JSC$20176_backChannelTimerId_=null);ciJ(N);N.forwardChannelRequestPool_.cancel();N.JSC$20176_forwardChannelTimerId_&&(typeof N.JSC$20176_forwardChannelTimerId_==="number"&&_.H4.clearTimeout(N.JSC$20176_forwardChannelTimerId_),N.JSC$20176_forwardChannelTimerId_=null)};
Kw.prototype.getState=function(){return this.state_};
var eHf=function(N){hH5(N.forwardChannelRequestPool_)||N.JSC$20176_forwardChannelTimerId_||(N.JSC$20176_forwardChannelTimerId_=!0,_.kF(N.JSC$20178_onStartForwardChannelTimer_,N),N.JSC$20176_forwardChannelRetryCount_=0)},qaJ=function(N,t){if(iX5(N.forwardChannelRequestPool_)>=N.forwardChannelRequestPool_.JSC$20167_maxSize_-(N.JSC$20176_forwardChannelTimerId_?1:0))return!1;
if(N.JSC$20176_forwardChannelTimerId_)return N.JSC$20176_channelDebug_.debug("Use the retry request that is already scheduled."),N.JSC$20176_outgoingMaps_=t.JSC$20157_pendingMessages_.concat(N.JSC$20176_outgoingMaps_),!0;if(N.state_==1||N.state_==2||N.JSC$20176_forwardChannelRetryCount_>=(N.JSC$20176_failFast_?0:N.JSC$20176_forwardChannelMaxRetries_))return!1;N.JSC$20176_channelDebug_.debug("Going to retry POST");N.JSC$20176_forwardChannelTimerId_=ITn((0,_.qn)(N.JSC$20178_onStartForwardChannelTimer_,
N,t),kzm(N,N.JSC$20176_forwardChannelRetryCount_));N.JSC$20176_forwardChannelRetryCount_++;return!0};
Kw.prototype.JSC$20178_onStartForwardChannelTimer_=function(N){if(this.JSC$20176_forwardChannelTimerId_)if(this.JSC$20176_forwardChannelTimerId_=null,this.JSC$20176_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!N){this.JSC$20176_channelDebug_.debug("open_()");this.JSC$20176_nextRid_=Math.floor(Math.random()*1E5);N=this.JSC$20176_nextRid_++;var t=new VC(this,this.JSC$20176_channelDebug_,"",N),O=this.JSC$20176_extraHeaders_;this.initHeaders_&&(O?(O=_.WW.clone(O),_.WW.extend(O,this.initHeaders_)):
O=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(t.JSC$20157_extraHeaders_=O,O=null);var H;if(this.fastHandshake_)a:{for(var A=H=0;A<this.JSC$20176_outgoingMaps_.length;A++){b:{var Z=this.JSC$20176_outgoingMaps_[A];if("__data__"in Z.map&&(Z=Z.map.__data__,typeof Z==="string")){Z=Z.length;break b}Z=void 0}if(Z===void 0)break;H+=Z;if(H>4096){H=A;break a}if(H===4096||A===this.JSC$20176_outgoingMaps_.length-1){H=A+1;break a}}H=1E3}else H=1E3;H=fd5(this,t,H);
A=this.JSC$20176_forwardChannelUri_.clone();_.Ho(A,"RID",N);_.Ho(A,"CVER",22);this.httpSessionIdParam_&&_.Ho(A,"X-HTTP-Session-Id",this.httpSessionIdParam_);XR5(this,A);O&&(this.encodeInitMessageHeaders_?H="headers="+_.Ae(fi1(O))+"&"+H:this.httpHeadersOverwriteParam_&&ncO(A,this.httpHeadersOverwriteParam_,O));MNq(this.forwardChannelRequestPool_,t);this.blockingHandshake_&&_.Ho(A,"TYPE","init");this.fastHandshake_?(_.Ho(A,"$req",H),_.Ho(A,"SID","null"),t.decodeInitialResponse_=!0,swq(t,A,null)):swq(t,
A,H);this.state_=2}}else this.state_==3&&(N?nnz(this,N):this.JSC$20176_outgoingMaps_.length==0?this.JSC$20176_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):hH5(this.forwardChannelRequestPool_)||(nnz(this),this.JSC$20176_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var nnz=function(N,t){var O;t?O=t.JSC$20157_rid_:O=N.JSC$20176_nextRid_++;var H=N.JSC$20176_forwardChannelUri_.clone();_.Ho(H,"SID",N.sid_);_.Ho(H,"RID",O);_.Ho(H,"AID",N.JSC$20176_lastArrayId_);XR5(N,H);N.httpHeadersOverwriteParam_&&N.JSC$20176_extraHeaders_&&ncO(H,N.httpHeadersOverwriteParam_,N.JSC$20176_extraHeaders_);O=new VC(N,N.JSC$20176_channelDebug_,N.sid_,O,N.JSC$20176_forwardChannelRetryCount_+1);N.httpHeadersOverwriteParam_===null&&(O.JSC$20157_extraHeaders_=N.JSC$20176_extraHeaders_);
t&&(N.JSC$20176_outgoingMaps_=t.JSC$20157_pendingMessages_.concat(N.JSC$20176_outgoingMaps_));t=fd5(N,O,1E3);O.setTimeout(Math.round(N.JSC$20176_forwardChannelRequestTimeoutMs_*.5)+Math.round(N.JSC$20176_forwardChannelRequestTimeoutMs_*.5*Math.random()));MNq(N.forwardChannelRequestPool_,O);swq(O,H,t)},XR5=function(N,t){N.JSC$20176_extraParams_&&_.WW.forEach(N.JSC$20176_extraParams_,function(O,H){_.Ho(t,H,O)});
N.handler_&&_.WW.forEach({},function(O,H){_.Ho(t,H,O)})},fd5=function(N,t,O){O=Math.min(N.JSC$20176_outgoingMaps_.length,O);
var H=N.handler_?(0,_.qn)(N.handler_.JSC$20182_badMapError,N.handler_,N):null;a:{for(var A=N.JSC$20176_outgoingMaps_,Z=-1;;){var U=["count="+O];Z==-1?O>0?(Z=A[0].JSC$20164_mapId,U.push("ofs="+Z)):Z=0:U.push("ofs="+Z);for(var C=!0,F=0;F<O;F++){var g=A[F].JSC$20164_mapId,B=A[F].map;g-=Z;if(g<0)Z=Math.max(0,A[F].JSC$20164_mapId-100),C=!1;else try{g="req"+g+"_"||"";try{var c=B instanceof Map?B:Object.entries(B);for(var u=_.D(c),S=u.next();!S.done;S=u.next()){var b=_.D(S.value),z=b.next().value,w=b.next().value,
P=w;_.mG(w)&&(P=(0,_.r3)(w));U.push(g+z+"="+encodeURIComponent(P))}}catch(x){throw U.push(g+"type="+encodeURIComponent("_badmap")),x;}}catch(x){H&&H(B)}}if(C){c=U.join("&");break a}}c=void 0}N=N.JSC$20176_outgoingMaps_.splice(0,O);t.JSC$20157_pendingMessages_=N;return c},WS1=function(N){N.JSC$20176_backChannelRequest_||N.JSC$20176_backChannelTimerId_||(N.JSC$20176_backChannelAttemptId_=1,_.kF(N.JSC$20178_onStartBackChannelTimer_,N),N.JSC$20176_backChannelRetryCount_=0)},jgf=function(N){if(N.JSC$20176_backChannelRequest_||
N.JSC$20176_backChannelTimerId_||N.JSC$20176_backChannelRetryCount_>=3)return!1;
N.JSC$20176_channelDebug_.debug("Going to retry GET");N.JSC$20176_backChannelAttemptId_++;N.JSC$20176_backChannelTimerId_=ITn((0,_.qn)(N.JSC$20178_onStartBackChannelTimer_,N),kzm(N,N.JSC$20176_backChannelRetryCount_));N.JSC$20176_backChannelRetryCount_++;return!0};
Kw.prototype.JSC$20178_onStartBackChannelTimer_=function(){this.JSC$20176_backChannelTimerId_=null;ri5(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20176_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20176_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20176_backChannelRequest_+" "+this.handshakeRttMs_);else{var N=4*this.handshakeRttMs_;this.JSC$20176_channelDebug_.info("BP detection timer enabled: "+N);this.bpDetectionTimerId_=ITn((0,_.qn)(this.onBpDetectionTimer_,
this),N)}};
Kw.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20176_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20176_backChannelRequest_.JSC$20157_xmlHttp_!=null){var N=this.JSC$20176_backChannelRequest_.JSC$20157_xmlHttp_.getResponseText();N&&this.JSC$20176_channelDebug_.warning("Timer should have been cancelled : "+N)}this.JSC$20176_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;H_(10);$31(this);ri5(this)}else this.JSC$20176_channelDebug_.warning("Invalid operation.")};
var gnm=function(N){N.bpDetectionTimerId_!=null&&(N.JSC$20176_channelDebug_.debug("Cancel the BP detection timer."),_.H4.clearTimeout(N.bpDetectionTimerId_),N.bpDetectionTimerId_=null)},ri5=function(N){N.JSC$20176_channelDebug_.debug("Creating new HttpRequest");
N.JSC$20176_backChannelRequest_=new VC(N,N.JSC$20176_channelDebug_,N.sid_,"rpc",N.JSC$20176_backChannelAttemptId_);N.httpHeadersOverwriteParam_===null&&(N.JSC$20176_backChannelRequest_.JSC$20157_extraHeaders_=N.JSC$20176_extraHeaders_);N.JSC$20176_backChannelRequest_.JSC$20157_readyStateChangeThrottleMs_=0;var t=N.JSC$20176_backChannelUri_.clone();_.Ho(t,"RID","rpc");_.Ho(t,"SID",N.sid_);_.Ho(t,"AID",N.JSC$20176_lastArrayId_);_.Ho(t,"CI",N.enableStreaming_?"0":"1");!N.enableStreaming_&&N.longPollingTimeout_&&
_.Ho(t,"TO",N.longPollingTimeout_);_.Ho(t,"TYPE","xmlhttp");XR5(N,t);N.httpHeadersOverwriteParam_&&N.JSC$20176_extraHeaders_&&ncO(t,N.httpHeadersOverwriteParam_,N.JSC$20176_extraHeaders_);N.backChannelRequestTimeoutMs_&&N.JSC$20176_backChannelRequest_.setTimeout(N.backChannelRequestTimeoutMs_);var O=N.JSC$20176_backChannelRequest_,H=N.JSC$20176_hostPrefix_;O.JSC$20157_type_=1;O.JSC$20157_baseUri_=_.uv(t.clone());O.JSC$20157_postData_=null;O.decodeChunks_=!0;oO1(O,H);N.JSC$20176_channelDebug_.debug("New Request created")};
Kw.prototype.JSC$20178_onBackChannelDead_=function(){this.JSC$20176_deadBackChannelTimerId_!=null&&(this.JSC$20176_deadBackChannelTimerId_=null,$31(this),jgf(this),H_(19))};
var ciJ=function(N){N.JSC$20176_deadBackChannelTimerId_!=null&&(_.H4.clearTimeout(N.JSC$20176_deadBackChannelTimerId_),N.JSC$20176_deadBackChannelTimerId_=null)},KSz=function(N,t){N.JSC$20176_channelDebug_.debug("Request complete");
var O=null;if(N.JSC$20176_backChannelRequest_==t){ciJ(N);gnm(N);N.JSC$20176_backChannelRequest_=null;var H=2}else if(BOi(N.forwardChannelRequestPool_,t))O=t.JSC$20157_pendingMessages_,bXn(N.forwardChannelRequestPool_,t),H=1;else return;if(N.state_!=0)if(t.JSC$20157_successful_)H==1?(rPf(t.JSC$20157_postData_?t.JSC$20157_postData_.length:0,Date.now()-t.JSC$20157_requestStartTime_,N.JSC$20176_forwardChannelRetryCount_),eHf(N)):WS1(N);else{var A=t.JSC$20157_lastStatusCode_,Z=t.getLastError();if(Z==3||
Z==0&&A>0)N.JSC$20176_channelDebug_.debug("Not retrying due to error type"),A>200&&(N.errorResponseStatusCode_=t.JSC$20157_lastStatusCode_);else{N.JSC$20176_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Rtf(Z,N.errorResponseStatusCode_)});
if(H==1&&qaJ(N,t)||H==2&&jgf(N))return;N.JSC$20176_channelDebug_.debug("Exceeded max number of retries")}O&&O.length>0&&LSz(N.forwardChannelRequestPool_,O);N.JSC$20176_channelDebug_.debug("Error: HTTP request failed");switch(Z){case 1:UO(N,5);break;case 4:UO(N,10);break;case 3:UO(N,6);break;default:UO(N,2)}}},kzm=function(N,t){var O=N.JSC$20176_baseRetryDelayMs_+Math.floor(Math.random()*N.JSC$20176_retryDelaySeedMs_);
N.isActive()||(N.JSC$20176_channelDebug_.debug("Inactive channel"),O*=2);return O*t};
Kw.prototype.onInput_=function(N,t){for(var O=0;O<N.length;O++){var H=N[O],A=H[0];if(A<=this.JSC$20176_lastArrayId_)this.JSC$20176_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+A+", lastArrayId: "+this.JSC$20176_lastArrayId_);else if(A>this.JSC$20176_lastArrayId_+1&&this.JSC$20176_lastArrayId_>-1&&this.JSC$20176_channelDebug_.warning("Received non-consecutive message with arrayId: "+A+", lastArrayId: "+this.JSC$20176_lastArrayId_),this.JSC$20176_lastArrayId_=A,
H=H[1],this.state_==2)if(H[0]=="c"){this.sid_=H[1];this.JSC$20176_hostPrefix_=H[2];A=H[3];A!=null&&(this.JSC$20178_channelVersion_=A,this.JSC$20176_channelDebug_.info("VER="+this.JSC$20178_channelVersion_));A=H[4];A!=null&&(this.serverVersion_=A,this.JSC$20176_channelDebug_.info("SVER="+this.serverVersion_));H=H[5];H!=null&&typeof H==="number"&&H>0&&(this.backChannelRequestTimeoutMs_=H*=1.5,this.JSC$20176_channelDebug_.info("backChannelRequestTimeoutMs_="+H));if(H=t.JSC$20157_xmlHttp_){var Z=gSx(H,
"X-Client-Wire-Protocol");Z&&(A=this.forwardChannelRequestPool_,!A.requestPool_&&(_.KN(Z,"spdy")||_.KN(Z,"quic")||_.KN(Z,"h2"))&&(A.JSC$20167_maxSize_=A.maxPoolSizeConfigured_,A.requestPool_=new Set,A.JSC$20167_request_&&(MNq(A,A.JSC$20167_request_),A.JSC$20167_request_=null)));this.httpSessionIdParam_&&((H=gSx(H,"X-HTTP-Session-Id"))?(this.httpSessionId_=H,_.Ho(this.JSC$20176_forwardChannelUri_,this.httpSessionIdParam_,H)):this.JSC$20176_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20182_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-t.JSC$20157_requestStartTime_,this.JSC$20176_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));H=t;A=wR5(this,this.JSC$20176_supportsCrossDomainXhrs_?this.JSC$20176_hostPrefix_:null,this.JSC$20176_path_);this.JSC$20176_channelDebug_.debug("GetBackChannelUri: "+A);this.JSC$20176_backChannelUri_=A;H.initialResponseDecoded_?(this.JSC$20176_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
bXn(this.forwardChannelRequestPool_,H),A=H,(Z=this.backChannelRequestTimeoutMs_)&&A.setTimeout(Z),A.JSC$20157_watchDogTimerId_&&(Aii(A),NOr(A)),this.JSC$20176_backChannelRequest_=H):WS1(this);this.JSC$20176_outgoingMaps_.length>0&&eHf(this)}else H[0]!="stop"&&H[0]!="close"||UO(this,7);else this.state_==3&&(H[0]=="stop"||H[0]=="close"?H[0]=="stop"?UO(this,7):this.disconnect():H[0]!="noop"&&this.handler_&&this.handler_.JSC$20182_channelHandleArray(H),this.JSC$20176_backChannelRetryCount_=0)}};
var UO=function(N,t){N.JSC$20176_channelDebug_.info("Error code "+t);if(t==2){var O=(0,_.qn)(N.testNetworkCallback_,N),H=N.networkTestUrl_,A=!H;H=new _.Ir(H||"//www.google.com/images/cleardot.gif");_.H4.location&&_.H4.location.protocol=="http"||_.Fx(H,"https");_.uv(H);A?zHm(H.toString(),O):YaJ(H.toString(),O)}else H_(2);N.onError_(t)};
Kw.prototype.testNetworkCallback_=function(N){N?(this.JSC$20176_channelDebug_.info("Successfully pinged google.com"),H_(2)):(this.JSC$20176_channelDebug_.info("Failed to ping google.com"),H_(1))};
Kw.prototype.onError_=function(N){this.JSC$20176_channelDebug_.debug("HttpChannel: error - "+N);this.state_=0;this.handler_&&this.handler_.JSC$20182_channelError(N);x35(this);PWz(this)};
var x35=function(N){N.state_=0;N.nonAckedMapsAtChannelClose_=[];if(N.handler_){var t=pRn(N.forwardChannelRequestPool_);if(t.length!=0||N.JSC$20176_outgoingMaps_.length!=0)N.JSC$20176_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+t.length+", outgoing: "+N.JSC$20176_outgoingMaps_.length}),_.Qv(N.nonAckedMapsAtChannelClose_,t),_.Qv(N.nonAckedMapsAtChannelClose_,N.JSC$20176_outgoingMaps_),N.forwardChannelRequestPool_.JSC$20167_pendingMessages_.length=0,_.Il(N.JSC$20176_outgoingMaps_),
N.JSC$20176_outgoingMaps_.length=0;
N.handler_.JSC$20182_channelClosed()}},Idr=function(N){if(N.state_==0)return N.nonAckedMapsAtChannelClose_;
var t=[];_.Qv(t,pRn(N.forwardChannelRequestPool_));_.Qv(t,N.JSC$20176_outgoingMaps_);return t},wR5=function(N,t,O){var H=_.tJ(O);
H.JSC$10187_domain_!=""?(t&&_.d5(H,t+"."+H.JSC$10187_domain_),_.g5(H,H.JSC$10187_port_)):(H=_.H4.location,H=STi(H.protocol,t?t+"."+H.hostname:H.hostname,+H.port,O));t=N.httpSessionIdParam_;O=N.httpSessionId_;t&&O&&_.Ho(H,t,O);_.Ho(H,"VER",N.JSC$20178_channelVersion_);XR5(N,H);return H},tNO=function(N,t,O){if(t&&!N.JSC$20176_supportsCrossDomainXhrs_)throw Error("Uk");
t=N.usesFetchStreams_&&!N.JSC$20176_xmlHttpFactory_?new _.I7(new Xbf({streamBinaryChunks:O})):new _.I7(N.JSC$20176_xmlHttpFactory_);t.JSC$9951_withCredentials_=N.JSC$20176_supportsCrossDomainXhrs_;return t};
Kw.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var ld5=function(){};
_.V=ld5.prototype;_.V.JSC$20182_channelOpened=function(){};
_.V.JSC$20182_channelHandleArray=function(){};
_.V.JSC$20182_channelError=function(){};
_.V.JSC$20182_channelClosed=function(){};
_.V.isActive=function(){return!0};
_.V.JSC$20182_badMapError=function(){};var Qgq=function(){},dL=function(N,t){_.Xm.call(this);
this.JSC$20185_channel_=new Kw(t);this.JSC$20185_url_=N;this.messageUrlParams_=t&&t.messageUrlParams||null;N=t&&t.messageHeaders||null;t&&t.clientProtocolHeaderRequired&&(N?_.WW.set(N,"X-Client-Protocol","webchannel"):N=_.WW.create("X-Client-Protocol","webchannel"));this.JSC$20185_channel_.JSC$20176_extraHeaders_=N;N=t&&t.initMessageHeaders||null;t&&t.messageContentType&&(N?_.WW.set(N,"X-WebChannel-Content-Type",t.messageContentType):N=_.WW.create("X-WebChannel-Content-Type",t.messageContentType));
t&&t.clientProfile&&(N?_.WW.set(N,"X-WebChannel-Client-Profile",t.clientProfile):N=_.WW.create("X-WebChannel-Client-Profile",t.clientProfile));this.JSC$20185_channel_.initHeaders_=N;(N=t&&t.httpHeadersOverwriteParam)&&!_.Dp(N)&&(this.JSC$20185_channel_.httpHeadersOverwriteParam_=N);this.supportsCrossDomainXhr_=t&&t.supportsCrossDomainXhr||!1;this.sendRawJson_=t&&t.sendRawJson||!1;(t=t&&t.httpSessionIdParam)&&!_.Dp(t)&&(this.JSC$20185_channel_.httpSessionIdParam_=t,_.WW.containsKey(this.messageUrlParams_,
t)&&_.WW.remove(this.messageUrlParams_,t));this.channelHandler_=new Fw(this)};
_.Od(dL,_.Xm);dL.prototype.open=function(){this.JSC$20185_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20185_channel_.JSC$20176_supportsCrossDomainXhrs_=!0);this.JSC$20185_channel_.connect(this.JSC$20185_url_,this.messageUrlParams_||void 0)};
dL.prototype.close=function(){this.JSC$20185_channel_.disconnect()};
dL.prototype.send=function(N){var t=this.JSC$20185_channel_;if(typeof N==="string"){var O={};O.__data__=N;N=O}else this.sendRawJson_&&(O={},O.__data__=(0,_.r3)(N),N=O);t.JSC$20176_outgoingMaps_.push(new us5(t.JSC$20176_nextMapId_++,N));t.state_==3&&eHf(t)};
dL.prototype.disposeInternal=function(){this.JSC$20185_channel_.handler_=null;delete this.channelHandler_;this.JSC$20185_channel_.disconnect();delete this.JSC$20185_channel_;dL.superClass_.disposeInternal.call(this)};
var m3x=function(N){PLi.call(this);N.__headers__&&(this.headers=N.__headers__,this.statusCode=N.__status__,delete N.__headers__,delete N.__status__);var t=N.__sm__;t?this.data=(this.metadataKey=_.WW.getAnyKey(t))?_.WW.get(t,this.metadataKey):t:this.data=N};
_.Od(m3x,PLi);var Enr=function(N){XuO.call(this);this.status=1;this.errorCode=N};
_.Od(Enr,XuO);var Fw=function(N){this.JSC$20192_channel_=N};
_.Od(Fw,ld5);Fw.prototype.JSC$20182_channelOpened=function(){this.JSC$20192_channel_.dispatchEvent("w")};
Fw.prototype.JSC$20182_channelHandleArray=function(N){this.JSC$20192_channel_.dispatchEvent(new m3x(N))};
Fw.prototype.JSC$20182_channelError=function(N){this.JSC$20192_channel_.dispatchEvent(new Enr(N))};
Fw.prototype.JSC$20182_channelClosed=function(){this.JSC$20192_channel_.dispatchEvent("x")};
var Gzf=function(N,t){this.transportChannel_=N;this.JSC$20195_channel_=t},RHm=function(N){return Idr(N.JSC$20195_channel_).map(function(t){var O=N.transportChannel_;
t=t.map;"__data__"in t?(t=t.__data__,O=O.sendRawJson_?(0,_.mCy)(t):t):O=t;return O})};
Gzf.prototype.commit=function(N){this.JSC$20195_channel_.forwardChannelFlushedCallback_=N};var gL=function(N){vn5.dispatchEvent(new Jim(vn5,N))},vn5=new _.Xm,Jim=function(N,t){_.a7.call(this,"statevent",N);
this.stat=t};
_.p(Jim,_.a7);var yC=function(N,t,O,H,A){this.JSC$20200_channel_=N;this.JSC$20200_channelDebug_=t;this.sid_=O;this.JSC$20200_rid_=H;this.JSC$20200_retryId_=A||1;this.timeout_=45E3;this.JSC$20200_eventHandler_=new _.MT(this);this.pollingTimer_=new _.hv;this.pollingTimer_.setInterval(250)};
_.V=yC.prototype;_.V.JSC$20202_extraHeaders_=null;_.V.JSC$20202_successful_=!1;_.V.JSC$20202_watchDogTimerId_=null;_.V.JSC$20202_watchDogTimeoutTime_=null;_.V.JSC$20202_requestStartTime_=null;_.V.JSC$20202_type_=null;_.V.JSC$20202_baseUri_=null;_.V.JSC$20202_requestUri_=null;_.V.JSC$20202_postData_=null;_.V.JSC$20202_xmlHttp_=null;_.V.JSC$20202_xmlHttpChunkStart_=0;_.V.trident_=null;_.V.JSC$20202_verb_=null;_.V.JSC$20202_lastError_=null;_.V.JSC$20202_lastStatusCode_=-1;_.V.sendClose_=!0;
_.V.JSC$20202_cancelled_=!1;_.V.JSC$20202_readyStateChangeThrottleMs_=0;_.V.JSC$20202_readyStateChangeThrottle_=null;var oni=function(N,t){switch(N){case 0:return"Non-200 return code ("+t+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},sgx={},N4f={};
yC.prototype.setTimeout=function(N){this.timeout_=N};
var Oc5=function(N,t,O){N.JSC$20202_type_=1;N.JSC$20202_baseUri_=_.uv(t.clone());N.JSC$20202_postData_=O;N.decodeChunks_=!0;tL1(N,null)},Hcn=function(N,t,O,H,A){N.JSC$20202_type_=1;
N.JSC$20202_baseUri_=_.uv(t.clone());N.JSC$20202_postData_=null;N.decodeChunks_=O;A&&(N.sendClose_=!1);tL1(N,H)},tL1=function(N,t){N.JSC$20202_requestStartTime_=Date.now();
Ak5(N);N.JSC$20202_requestUri_=N.JSC$20202_baseUri_.clone();pLO(N.JSC$20202_requestUri_,"t",N.JSC$20200_retryId_);N.JSC$20202_xmlHttpChunkStart_=0;N.JSC$20202_xmlHttp_=N.JSC$20200_channel_.JSC$20209_createXhrIo(N.JSC$20200_channel_.JSC$20209_shouldUseSecondaryDomains()?t:null);N.JSC$20202_readyStateChangeThrottleMs_>0&&(N.JSC$20202_readyStateChangeThrottle_=new _.KE((0,_.qn)(N.JSC$20202_xmlHttpHandler_,N,N.JSC$20202_xmlHttp_),N.JSC$20202_readyStateChangeThrottleMs_));N.JSC$20200_eventHandler_.listen(N.JSC$20202_xmlHttp_,
"readystatechange",N.JSC$20202_readyStateChangeHandler_);t=N.JSC$20202_extraHeaders_?_.WW.clone(N.JSC$20202_extraHeaders_):{};N.JSC$20202_postData_?(N.JSC$20202_verb_="POST",t["Content-Type"]="application/x-www-form-urlencoded",N.JSC$20202_xmlHttp_.send(N.JSC$20202_requestUri_,N.JSC$20202_verb_,N.JSC$20202_postData_,t)):(N.JSC$20202_verb_="GET",N.sendClose_&&!_.Ud&&(t.Connection="close"),N.JSC$20202_xmlHttp_.send(N.JSC$20202_requestUri_,N.JSC$20202_verb_,null,t));N.JSC$20200_channel_.notifyServerReachabilityEvent(1);
t=N.JSC$20200_channelDebug_;var O=N.JSC$20202_postData_;if(O){var H="";O=O.split("&");for(var A=0;A<O.length;A++){var Z=O[A].split("=");if(Z.length>1){var U=Z[0];Z=Z[1];var C=U.split("_");H=C.length>=2&&C[1]=="type"?H+(U+"="+Z+"&"):H+(U+"=redacted&")}}}else H=null;t.info("XMLHTTP REQ ("+N.JSC$20200_rid_+") [attempt "+N.JSC$20200_retryId_+"]: "+N.JSC$20202_verb_+"\n"+N.JSC$20202_requestUri_+"\n"+H)};
yC.prototype.JSC$20202_readyStateChangeHandler_=function(N){N=N.target;var t=this.JSC$20202_readyStateChangeThrottle_;t&&_.lM(N)==3?(this.JSC$20200_channelDebug_.debug("Throttling readystatechange."),t.fire()):this.JSC$20202_xmlHttpHandler_(N)};
yC.prototype.JSC$20202_xmlHttpHandler_=function(N){try{if(N==this.JSC$20202_xmlHttp_)a:{var t=_.lM(this.JSC$20202_xmlHttp_),O=this.JSC$20202_xmlHttp_.JSC$9951_lastErrorCode_,H=this.JSC$20202_xmlHttp_.getStatus();if(_.Ud&&!_.Cl("420+")){if(t<4)break a}else if(t<3||t==3&&!this.JSC$20202_xmlHttp_.getResponseText())break a;this.JSC$20202_cancelled_||t!=4||O==7||(O==8||H<=0?this.JSC$20200_channel_.notifyServerReachabilityEvent(3):this.JSC$20200_channel_.notifyServerReachabilityEvent(2));Zci(this);var A=
this.JSC$20202_xmlHttp_.getStatus();this.JSC$20202_lastStatusCode_=A;var Z=this.JSC$20202_xmlHttp_.getResponseText();Z||this.JSC$20200_channelDebug_.debug("No response text for uri "+this.JSC$20202_requestUri_+" status "+A);this.JSC$20202_successful_=A==200;this.JSC$20200_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20200_rid_+") [ attempt "+this.JSC$20200_retryId_+"]: "+this.JSC$20202_verb_+"\n"+this.JSC$20202_requestUri_+"\n"+t+" "+A);if(this.JSC$20202_successful_){t==4&&VL5(this);if(this.decodeChunks_){for(N=
!0;!this.JSC$20202_cancelled_&&this.JSC$20202_xmlHttpChunkStart_<Z.length;){var U=DRm(this,Z);if(U==N4f){t==4&&(this.JSC$20202_lastError_=4,gL(15),N=!1);URm(this.JSC$20200_channelDebug_,this.JSC$20200_rid_,null,"[Incomplete Response]");break}else if(U==sgx){this.JSC$20202_lastError_=4;gL(16);URm(this.JSC$20200_channelDebug_,this.JSC$20200_rid_,Z,"[Invalid Chunk]");N=!1;break}else URm(this.JSC$20200_channelDebug_,this.JSC$20200_rid_,U,null),CE5(this,U)}t==4&&Z.length==0&&(this.JSC$20202_lastError_=
1,gL(17),N=!1);this.JSC$20202_successful_=this.JSC$20202_successful_&&N;N||(URm(this.JSC$20200_channelDebug_,this.JSC$20200_rid_,Z,"[Invalid Chunked Response]"),VL5(this),KOm(this))}else URm(this.JSC$20200_channelDebug_,this.JSC$20200_rid_,Z,null),CE5(this,Z);this.JSC$20202_successful_&&!this.JSC$20202_cancelled_&&(t==4?this.JSC$20200_channel_.JSC$20209_onRequestComplete(this):(this.JSC$20202_successful_=!1,Ak5(this)))}else A==400&&Z.indexOf("Unknown SID")>0?(this.JSC$20202_lastError_=3,gL(13),this.JSC$20200_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20200_rid_+")")):(this.JSC$20202_lastError_=0,gL(14),this.JSC$20200_channelDebug_.warning("XMLHTTP Bad status "+A+" ("+this.JSC$20200_rid_+")")),VL5(this),KOm(this)}else this.JSC$20200_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(C){this.JSC$20200_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var DRm=function(N,t){var O=N.JSC$20202_xmlHttpChunkStart_,H=t.indexOf("\n",O);if(H==-1)return N4f;O=Number(t.substring(O,H));if(isNaN(O))return sgx;H+=1;if(H+O>t.length)return N4f;t=t.slice(H,H+O);N.JSC$20202_xmlHttpChunkStart_=H+O;return t};
yC.prototype.cancel=function(){this.JSC$20202_cancelled_=!0;VL5(this)};
var Ak5=function(N){N.JSC$20202_watchDogTimeoutTime_=Date.now()+N.timeout_;FOn(N,N.timeout_)},FOn=function(N,t){if(N.JSC$20202_watchDogTimerId_!=null)throw Error("Tk");
N.JSC$20202_watchDogTimerId_=xo((0,_.qn)(N.JSC$20202_onWatchDogTimeout_,N),t)},Zci=function(N){N.JSC$20202_watchDogTimerId_&&(_.H4.clearTimeout(N.JSC$20202_watchDogTimerId_),N.JSC$20202_watchDogTimerId_=null)};
yC.prototype.JSC$20202_onWatchDogTimeout_=function(){this.JSC$20202_watchDogTimerId_=null;var N=Date.now();N-this.JSC$20202_watchDogTimeoutTime_>=0?(this.JSC$20200_channelDebug_.info("TIMEOUT: "+this.JSC$20202_requestUri_),this.JSC$20202_type_!=2&&this.JSC$20200_channel_.notifyServerReachabilityEvent(3),VL5(this),this.JSC$20202_lastError_=2,gL(18),KOm(this)):(this.JSC$20200_channelDebug_.warning("WatchDog timer called too early"),FOn(this,this.JSC$20202_watchDogTimeoutTime_-N))};
var KOm=function(N){N.JSC$20200_channel_.JSC$20209_isClosed()||N.JSC$20202_cancelled_||N.JSC$20200_channel_.JSC$20209_onRequestComplete(N)},VL5=function(N){Zci(N);
_.F$(N.JSC$20202_readyStateChangeThrottle_);N.JSC$20202_readyStateChangeThrottle_=null;N.pollingTimer_.stop();N.JSC$20200_eventHandler_.removeAll();if(N.JSC$20202_xmlHttp_){var t=N.JSC$20202_xmlHttp_;N.JSC$20202_xmlHttp_=null;t.abort();t.dispose()}N.trident_&&(N.trident_=null)};
yC.prototype.getLastError=function(){return this.JSC$20202_lastError_};
var CE5=function(N,t){try{N.JSC$20200_channel_.JSC$20209_onRequestData(N,t),N.JSC$20200_channel_.notifyServerReachabilityEvent(4)}catch(O){}};var URm=function(N,t,O,H){var A=N.info;a:if(O&&O!="y2f%"){try{var Z=JSON.parse(O);if(Z)for(var U=0;U<Z.length;U++)if(Array.isArray(Z[U])){var C=Z[U];if(!(C.length<2)){var F=C[1];if(Array.isArray(F)&&!(F.length<1)){var g=F[0];if(g!="noop"&&g!="stop")for(var B=1;B<F.length;B++)F[B]=""}}}var c=(0,_.r3)(Z);break a}catch(u){N.debug("Exception parsing expected JS array - probably was not JS");c=O;break a}c=void 0}else c=O;A.call(N,"XMLHTTP TEXT ("+t+"): "+c+(H?" "+H:""))};
ko.prototype.debug=function(N){this.info(N)};
ko.prototype.info=function(){};
ko.prototype.warning=function(){};var dRO=function(N,t){this.JSC$20207_channel_=N;this.JSC$20207_channelDebug_=t;this.JSC$20207_parser_=new etr};
_.V=dRO.prototype;_.V.JSC$20209_extraHeaders_=null;_.V.JSC$20209_request_=null;_.V.receivedIntermediateResult_=!1;_.V.JSC$20209_path_=null;_.V.state_=null;_.V.JSC$20209_lastStatusCode_=-1;_.V.JSC$20209_hostPrefix_=null;_.V.blockedPrefix_=null;
_.V.connect=function(N){this.JSC$20209_path_=N;N=gtO(this.JSC$20207_channel_,this.JSC$20209_path_);gL(3);Date.now();var t=this.JSC$20207_channel_.firstTestResults_;t!=null?(this.JSC$20209_hostPrefix_=t[0],(this.blockedPrefix_=t[1])?(this.state_=1,yki(this)):(this.state_=2,B4J(this))):(pLO(N,"MODE","init"),this.JSC$20209_request_=new yC(this,this.JSC$20207_channelDebug_),this.JSC$20209_request_.JSC$20202_extraHeaders_=this.JSC$20209_extraHeaders_,Hcn(this.JSC$20209_request_,N,!1,null,!0),this.state_=
0)};
var yki=function(N){var t=ckO(N.JSC$20207_channel_,N.blockedPrefix_,"/mail/images/cleardot.gif");_.uv(t);q9z(t.toString(),5E3,(0,_.qn)(N.checkBlockedCallback_,N),3,2E3);N.notifyServerReachabilityEvent(1)};
dRO.prototype.checkBlockedCallback_=function(N){if(N)this.state_=2,B4J(this);else{gL(4);var t=this.JSC$20207_channel_;t.JSC$20210_channelDebug_.debug("Test Connection Blocked");t.JSC$20214_lastStatusCode_=t.connectionTest_.JSC$20209_lastStatusCode_;B_(t,9)}N&&this.notifyServerReachabilityEvent(2)};
var B4J=function(N){N.JSC$20207_channelDebug_.debug("TestConnection: starting stage 2");var t=N.JSC$20207_channel_.secondTestResults_;t!=null?(N.JSC$20207_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+t?"Buffered":"Unbuffered"),gL(5),t?(gL(11),$Rm(N.JSC$20207_channel_,N,!1)):(gL(12),$Rm(N.JSC$20207_channel_,N,!0))):(N.JSC$20209_request_=new yC(N,N.JSC$20207_channelDebug_),N.JSC$20209_request_.JSC$20202_extraHeaders_=N.JSC$20209_extraHeaders_,t=j2m(N.JSC$20207_channel_,
N.JSC$20209_hostPrefix_,N.JSC$20209_path_),gL(5),pLO(t,"TYPE","xmlhttp"),Hcn(N.JSC$20209_request_,t,!1,N.JSC$20209_hostPrefix_,!1))};
_.V=dRO.prototype;_.V.JSC$20209_createXhrIo=function(N){return this.JSC$20207_channel_.JSC$20209_createXhrIo(N)};
_.V.abort=function(){this.JSC$20209_request_&&(this.JSC$20209_request_.cancel(),this.JSC$20209_request_=null);this.JSC$20209_lastStatusCode_=-1};
_.V.JSC$20209_isClosed=function(){return!1};
_.V.JSC$20209_onRequestData=function(N,t){this.JSC$20209_lastStatusCode_=N.JSC$20202_lastStatusCode_;if(this.state_==0)if(this.JSC$20207_channelDebug_.debug("TestConnection: Got data for stage 1"),t){try{var O=this.JSC$20207_parser_.parse(t)}catch(H){ici(this.JSC$20207_channel_,this);return}this.JSC$20209_hostPrefix_=O[0];this.blockedPrefix_=O[1]}else this.JSC$20207_channelDebug_.debug("TestConnection: Null responseText"),ici(this.JSC$20207_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(gL(7),Date.now()):t=="11111"?(gL(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20209_lastStatusCode_=200,this.JSC$20209_request_.cancel(),this.JSC$20207_channelDebug_.debug("Test connection succeeded; using streaming connection"),gL(12),$Rm(this.JSC$20207_channel_,this,!0)):(gL(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.V.JSC$20209_onRequestComplete=function(){this.JSC$20209_lastStatusCode_=this.JSC$20209_request_.JSC$20202_lastStatusCode_;this.JSC$20209_request_.JSC$20202_successful_?this.state_==0?(this.JSC$20207_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,yki(this)):(this.state_=2,B4J(this))):this.state_==2&&(this.JSC$20207_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20207_channelDebug_.debug("Test connection succeeded; using streaming connection"),
gL(12),$Rm(this.JSC$20207_channel_,this,!0)):(this.JSC$20207_channelDebug_.debug("Test connection failed; not using streaming"),gL(11),$Rm(this.JSC$20207_channel_,this,!1))):(this.JSC$20207_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?gL(9):this.state_==2&&gL(10),ici(this.JSC$20207_channel_,this,this.JSC$20209_request_.getLastError()))};
_.V.JSC$20209_shouldUseSecondaryDomains=function(){return this.JSC$20207_channel_.JSC$20209_shouldUseSecondaryDomains()};
_.V.isActive=function(){return this.JSC$20207_channel_.isActive()};
_.V.notifyServerReachabilityEvent=function(N){this.JSC$20207_channel_.notifyServerReachabilityEvent(N)};var c_=function(N,t,O){this.state_=1;this.JSC$20210_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20210_channelDebug_=new ko;this.JSC$20210_parser_=new etr;this.firstTestResults_=N||null;this.secondTestResults_=t!=null?t:null;this.asyncTest_=O||!1},u7n=function(N,t){this.JSC$20212_mapId=N;
this.map=t;this.context=null};
_.V=c_.prototype;_.V.JSC$20214_extraHeaders_=null;_.V.JSC$20214_extraParams_=null;_.V.forwardChannelRequest_=null;_.V.JSC$20214_backChannelRequest_=null;_.V.JSC$20214_path_=null;_.V.JSC$20214_forwardChannelUri_=null;_.V.JSC$20214_backChannelUri_=null;_.V.JSC$20214_hostPrefix_=null;_.V.JSC$20214_nextRid_=0;_.V.JSC$20214_nextMapId_=0;_.V.handler_=null;_.V.JSC$20214_forwardChannelTimerId_=null;_.V.JSC$20214_backChannelTimerId_=null;_.V.JSC$20214_deadBackChannelTimerId_=null;_.V.connectionTest_=null;
_.V.useChunked_=null;_.V.JSC$20214_lastArrayId_=-1;_.V.JSC$20214_lastPostResponseArrayId_=-1;_.V.JSC$20214_lastStatusCode_=-1;_.V.JSC$20214_forwardChannelRetryCount_=0;_.V.JSC$20214_backChannelRetryCount_=0;_.V.JSC$20214_channelVersion_=8;var Sez={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},hMq=function(N,t,O,H){_.a7.call(this,"timingevent",N);this.size=t;this.rtt=O;this.retries=H};
_.Od(hMq,_.a7);var ML5=function(N){_.a7.call(this,"serverreachability",N)};
_.Od(ML5,_.a7);c_.prototype.connect=function(N,t,O,H,A){this.JSC$20210_channelDebug_.debug("connect()");gL(0);this.JSC$20214_path_=t;this.JSC$20214_extraParams_=O||{};H&&A!==void 0&&(this.JSC$20214_extraParams_.OSID=H,this.JSC$20214_extraParams_.OAID=A);this.asyncTest_?(xo((0,_.qn)(this.connectTest_,this,N),100),bc5(this)):this.connectTest_(N)};
c_.prototype.disconnect=function(){this.JSC$20210_channelDebug_.debug("disconnect()");pFm(this);if(this.state_==3){var N=this.JSC$20214_nextRid_++,t=this.JSC$20214_forwardChannelUri_.clone();_.Ho(t,"SID",this.sid_);_.Ho(t,"RID",N);_.Ho(t,"TYPE","terminate");LOJ(this,t);N=new yC(this,this.JSC$20210_channelDebug_,this.sid_,N);N.JSC$20202_type_=2;N.JSC$20202_baseUri_=_.uv(t.clone());(new Image).src=N.JSC$20202_baseUri_.toString();N.JSC$20202_requestStartTime_=Date.now();Ak5(N)}zMr(this)};
c_.prototype.connectTest_=function(N){this.JSC$20210_channelDebug_.debug("connectTest_()");this.connectionTest_=new dRO(this,this.JSC$20210_channelDebug_);this.connectionTest_.JSC$20209_extraHeaders_=this.JSC$20214_extraHeaders_;this.connectionTest_.JSC$20207_parser_=this.JSC$20210_parser_;this.connectionTest_.connect(N)};
var bc5=function(N){N.JSC$20210_channelDebug_.debug("connectChannel_()");N.JSC$20214_ensureInState_(1,0);N.JSC$20214_forwardChannelUri_=gtO(N,N.JSC$20214_path_);Yem(N)},pFm=function(N){N.connectionTest_&&(N.connectionTest_.abort(),N.connectionTest_=null);
N.JSC$20214_backChannelRequest_&&(N.JSC$20214_backChannelRequest_.cancel(),N.JSC$20214_backChannelRequest_=null);N.JSC$20214_backChannelTimerId_&&(_.H4.clearTimeout(N.JSC$20214_backChannelTimerId_),N.JSC$20214_backChannelTimerId_=null);aU5(N);N.forwardChannelRequest_&&(N.forwardChannelRequest_.cancel(),N.forwardChannelRequest_=null);N.JSC$20214_forwardChannelTimerId_&&(_.H4.clearTimeout(N.JSC$20214_forwardChannelTimerId_),N.JSC$20214_forwardChannelTimerId_=null)},T4r=function(N,t){if(N.state_==0)throw Error("Wk");
N.JSC$20210_outgoingMaps_.length==1E3&&N.JSC$20210_parser_.stringify(t);N.JSC$20210_outgoingMaps_.push(new u7n(N.JSC$20214_nextMapId_++,t));N.state_!=2&&N.state_!=3||Yem(N)};
c_.prototype.JSC$20209_isClosed=function(){return this.state_==0};
c_.prototype.getState=function(){return this.state_};
var Yem=function(N){N.forwardChannelRequest_||N.JSC$20214_forwardChannelTimerId_||(N.JSC$20214_forwardChannelTimerId_=xo((0,_.qn)(N.JSC$20214_onStartForwardChannelTimer_,N),0),N.JSC$20214_forwardChannelRetryCount_=0)};
c_.prototype.JSC$20214_onStartForwardChannelTimer_=function(N){this.JSC$20214_forwardChannelTimerId_=null;wFm(this,N)};
var wFm=function(N,t){N.JSC$20210_channelDebug_.debug("startForwardChannel_");if(N.state_==1){if(!t){N.JSC$20210_channelDebug_.debug("open_()");N.JSC$20214_nextRid_=Math.floor(Math.random()*1E5);t=N.JSC$20214_nextRid_++;var O=new yC(N,N.JSC$20210_channelDebug_,"",t);O.JSC$20202_extraHeaders_=N.JSC$20214_extraHeaders_;var H=eMi(N),A=N.JSC$20214_forwardChannelUri_.clone();_.Ho(A,"RID",t);_.Ho(A,"CVER","1");LOJ(N,A);Oc5(O,A,H);N.forwardChannelRequest_=O;N.state_=2}}else N.state_==3&&(t?PEn(N,t):N.JSC$20210_outgoingMaps_.length==
0?N.JSC$20210_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):N.forwardChannelRequest_||(PEn(N),N.JSC$20210_channelDebug_.debug("startForwardChannel_ finished, sent request")))},PEn=function(N,t){if(t)if(N.JSC$20214_channelVersion_>6){N.JSC$20210_outgoingMaps_=N.pendingMaps_.concat(N.JSC$20210_outgoingMaps_);
N.pendingMaps_.length=0;var O=N.JSC$20214_nextRid_-1;t=eMi(N)}else O=t.JSC$20200_rid_,t=t.JSC$20202_postData_;else O=N.JSC$20214_nextRid_++,t=eMi(N);var H=N.JSC$20214_forwardChannelUri_.clone();_.Ho(H,"SID",N.sid_);_.Ho(H,"RID",O);_.Ho(H,"AID",N.JSC$20214_lastArrayId_);LOJ(N,H);O=new yC(N,N.JSC$20210_channelDebug_,N.sid_,O,N.JSC$20214_forwardChannelRetryCount_+1);O.JSC$20202_extraHeaders_=N.JSC$20214_extraHeaders_;O.setTimeout(1E4+Math.round(1E4*Math.random()));N.forwardChannelRequest_=O;Oc5(O,H,
t)},LOJ=function(N,t){N.handler_&&(N=N.handler_.JSC$20221_getAdditionalParams())&&_.WW.forEach(N,function(O,H){_.Ho(t,H,O)})},eMi=function(N){var t=Math.min(N.JSC$20210_outgoingMaps_.length,1E3),O=["count="+t];
if(N.JSC$20214_channelVersion_>6&&t>0){var H=N.JSC$20210_outgoingMaps_[0].JSC$20212_mapId;O.push("ofs="+H)}else H=0;for(var A={},Z=0;Z<t;A={mapId$jscomp$3:void 0},Z++){A.mapId$jscomp$3=N.JSC$20210_outgoingMaps_[Z].JSC$20212_mapId;var U=N.JSC$20210_outgoingMaps_[Z].map;A.mapId$jscomp$3=N.JSC$20214_channelVersion_<=6?Z:A.mapId$jscomp$3-H;try{_.WW.forEach(U,function(C){return function(F,g){O.push("req"+C.mapId$jscomp$3+"_"+g+"="+encodeURIComponent(F))}}(A))}catch(C){O.push("req"+A.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}N.pendingMaps_=N.pendingMaps_.concat(N.JSC$20210_outgoingMaps_.splice(0,t));
return O.join("&")},XFn=function(N){N.JSC$20214_backChannelRequest_||N.JSC$20214_backChannelTimerId_||(N.JSC$20214_backChannelAttemptId_=1,N.JSC$20214_backChannelTimerId_=xo((0,_.qn)(N.JSC$20214_onStartBackChannelTimer_,N),0),N.JSC$20214_backChannelRetryCount_=0)},kdJ=function(N){if(N.JSC$20214_backChannelRequest_||N.JSC$20214_backChannelTimerId_||N.JSC$20214_backChannelRetryCount_>=3)return!1;
N.JSC$20210_channelDebug_.debug("Going to retry GET");N.JSC$20214_backChannelAttemptId_++;N.JSC$20214_backChannelTimerId_=xo((0,_.qn)(N.JSC$20214_onStartBackChannelTimer_,N),xR5(N,N.JSC$20214_backChannelRetryCount_));N.JSC$20214_backChannelRetryCount_++;return!0};
c_.prototype.JSC$20214_onStartBackChannelTimer_=function(){this.JSC$20214_backChannelTimerId_=null;this.JSC$20210_channelDebug_.debug("Creating new HttpRequest");this.JSC$20214_backChannelRequest_=new yC(this,this.JSC$20210_channelDebug_,this.sid_,"rpc",this.JSC$20214_backChannelAttemptId_);this.JSC$20214_backChannelRequest_.JSC$20202_extraHeaders_=this.JSC$20214_extraHeaders_;this.JSC$20214_backChannelRequest_.JSC$20202_readyStateChangeThrottleMs_=0;var N=this.JSC$20214_backChannelUri_.clone();_.Ho(N,
"RID","rpc");_.Ho(N,"SID",this.sid_);_.Ho(N,"CI",this.useChunked_?"0":"1");_.Ho(N,"AID",this.JSC$20214_lastArrayId_);LOJ(this,N);_.Ho(N,"TYPE","xmlhttp");Hcn(this.JSC$20214_backChannelRequest_,N,!0,this.JSC$20214_hostPrefix_,!1);this.JSC$20210_channelDebug_.debug("New Request created")};
var $Rm=function(N,t,O){N.JSC$20210_channelDebug_.debug("Test Connection Finished");N.useChunked_=N.secondTestResults_==null?O:!N.secondTestResults_;N.JSC$20214_lastStatusCode_=t.JSC$20209_lastStatusCode_;N.asyncTest_||bc5(N)},ici=function(N,t){N.JSC$20210_channelDebug_.debug("Test Connection Failed");
N.JSC$20214_lastStatusCode_=t.JSC$20209_lastStatusCode_;B_(N,2)};
c_.prototype.JSC$20209_onRequestData=function(N,t){if(this.state_!=0&&(this.JSC$20214_backChannelRequest_==N||this.forwardChannelRequest_==N))if(this.JSC$20214_lastStatusCode_=N.JSC$20202_lastStatusCode_,this.forwardChannelRequest_==N&&this.state_==3)if(this.JSC$20214_channelVersion_>7){try{var O=this.JSC$20210_parser_.parse(t)}catch(H){O=null}if(Array.isArray(O)&&O.length==3)if(t=O,t[0]==0)a:if(this.JSC$20210_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20214_backChannelTimerId_)this.JSC$20210_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20214_backChannelRequest_)if(this.JSC$20214_backChannelRequest_.JSC$20202_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20202_requestStartTime_)aU5(this),this.JSC$20214_backChannelRequest_.cancel(),this.JSC$20214_backChannelRequest_=null;else break a;else this.JSC$20210_channelDebug_.warning("We do not have a BackChannel established");kdJ(this);gL(19)}else this.JSC$20214_lastPostResponseArrayId_=t[1],N=this.JSC$20214_lastPostResponseArrayId_-this.JSC$20214_lastArrayId_,0<
N&&(t=t[2],this.JSC$20210_channelDebug_.debug(t+" bytes (in "+N+" arrays) are outstanding on the BackChannel"),t<37500&&this.useChunked_&&this.JSC$20214_backChannelRetryCount_==0&&!this.JSC$20214_deadBackChannelTimerId_&&(this.JSC$20214_deadBackChannelTimerId_=xo((0,_.qn)(this.JSC$20214_onBackChannelDead_,this),6E3)));else this.JSC$20210_channelDebug_.debug("Bad POST response data returned"),B_(this,11)}else t!="y2f%"&&(this.JSC$20210_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
B_(this,11));else this.JSC$20214_backChannelRequest_==N&&aU5(this),_.Dp(t)||(N=this.JSC$20210_parser_.parse(t),this.onInput_(N))};
c_.prototype.JSC$20214_onBackChannelDead_=function(){this.JSC$20214_deadBackChannelTimerId_!=null&&(this.JSC$20214_deadBackChannelTimerId_=null,this.JSC$20214_backChannelRequest_.cancel(),this.JSC$20214_backChannelRequest_=null,kdJ(this),gL(20))};
var aU5=function(N){N.JSC$20214_deadBackChannelTimerId_!=null&&(_.H4.clearTimeout(N.JSC$20214_deadBackChannelTimerId_),N.JSC$20214_deadBackChannelTimerId_=null)};
c_.prototype.JSC$20209_onRequestComplete=function(N){this.JSC$20210_channelDebug_.debug("Request complete");if(this.JSC$20214_backChannelRequest_==N){aU5(this);this.JSC$20214_backChannelRequest_=null;var t=2}else if(this.forwardChannelRequest_==N)this.forwardChannelRequest_=null,t=1;else return;this.JSC$20214_lastStatusCode_=N.JSC$20202_lastStatusCode_;if(this.state_!=0)if(N.JSC$20202_successful_)if(t==1){t=N.JSC$20202_postData_?N.JSC$20202_postData_.length:0;N=Date.now()-N.JSC$20202_requestStartTime_;
var O=vn5;O.dispatchEvent(new hMq(O,t,N,this.JSC$20214_forwardChannelRetryCount_));Yem(this);this.handler_&&this.handler_.JSC$20221_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else XFn(this);else{O=N.getLastError();if(O==3||O==7||O==0&&this.JSC$20214_lastStatusCode_>0)this.JSC$20210_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20210_channelDebug_.debug("Maybe retrying, last error: "+oni(O,this.JSC$20214_lastStatusCode_));var H;if(H=t==1)this.forwardChannelRequest_||
this.JSC$20214_forwardChannelTimerId_||this.state_==1||this.JSC$20214_forwardChannelRetryCount_>=2?H=!1:(this.JSC$20210_channelDebug_.debug("Going to retry POST"),this.JSC$20214_forwardChannelTimerId_=xo((0,_.qn)(this.JSC$20214_onStartForwardChannelTimer_,this,N),xR5(this,this.JSC$20214_forwardChannelRetryCount_)),this.JSC$20214_forwardChannelRetryCount_++,H=!0);if(H||t==2&&kdJ(this))return;this.JSC$20210_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20210_channelDebug_.debug("Error: HTTP request failed");
switch(O){case 1:B_(this,5);break;case 4:B_(this,10);break;case 3:B_(this,6);break;case 7:B_(this,12);break;default:B_(this,2)}}};
var xR5=function(N,t){var O=5E3+Math.floor(Math.random()*1E4);N.isActive()||(N.JSC$20210_channelDebug_.debug("Inactive channel"),O*=2);return O*t};
c_.prototype.onInput_=function(N){for(var t=0;t<N.length;t++){var O=N[t];this.JSC$20214_lastArrayId_=O[0];O=O[1];this.state_==2?O[0]=="c"?(this.sid_=O[1],this.JSC$20214_hostPrefix_=O[2],O=O[3],O!=null?this.JSC$20214_channelVersion_=O:this.JSC$20214_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20221_channelOpened(),this.JSC$20214_backChannelUri_=j2m(this,this.JSC$20214_hostPrefix_,this.JSC$20214_path_),XFn(this)):O[0]=="stop"&&B_(this,7):this.state_==3&&(O[0]=="stop"?B_(this,7):
O[0]!="noop"&&this.handler_&&this.handler_.JSC$20221_channelHandleArray(O),this.JSC$20214_backChannelRetryCount_=0)}};
c_.prototype.JSC$20214_ensureInState_=function(N){if(!_.W4(arguments,this.state_))throw Error("Xk`"+this.state_);};
var B_=function(N,t){N.JSC$20210_channelDebug_.info("Error code "+t);if(t==2||t==9){var O=null;N.handler_&&(O=null);var H=(0,_.qn)(N.testGoogleComCallback_,N);O||(O=new _.Ir("//www.google.com/images/cleardot.gif"),_.uv(O));kni(O.toString(),1E4,H)}else gL(2);N.onError_(t)};
c_.prototype.testGoogleComCallback_=function(N){N?(this.JSC$20210_channelDebug_.info("Successfully pinged google.com"),gL(2)):(this.JSC$20210_channelDebug_.info("Failed to ping google.com"),gL(1),this.onError_(8))};
c_.prototype.onError_=function(N){this.JSC$20210_channelDebug_.debug("HttpChannel: error - "+N);this.state_=0;this.handler_&&this.handler_.JSC$20221_channelError(N);zMr(this);pFm(this)};
var zMr=function(N){N.state_=0;N.JSC$20214_lastStatusCode_=-1;if(N.handler_)if(N.pendingMaps_.length==0&&N.JSC$20210_outgoingMaps_.length==0)N.handler_.JSC$20221_channelClosed();else{N.JSC$20210_channelDebug_.debug("Number of undelivered maps, pending: "+N.pendingMaps_.length+", outgoing: "+N.JSC$20210_outgoingMaps_.length);var t=_.Il(N.pendingMaps_),O=_.Il(N.JSC$20210_outgoingMaps_);N.pendingMaps_.length=0;N.JSC$20210_outgoingMaps_.length=0;N.handler_.JSC$20221_channelClosed(t,O)}},gtO=function(N,
t){t=ckO(N,null,t);
N.JSC$20210_channelDebug_.debug("GetForwardChannelUri: "+t);return t},j2m=function(N,t,O){t=ckO(N,N.JSC$20209_shouldUseSecondaryDomains()?t:null,O);
N.JSC$20210_channelDebug_.debug("GetBackChannelUri: "+t);return t},ckO=function(N,t,O){var H=_.tJ(O);
if(H.JSC$10187_domain_!="")t&&_.d5(H,t+"."+H.JSC$10187_domain_),_.g5(H,H.JSC$10187_port_);else{var A=window.location;H=STi(A.protocol,t?t+"."+A.hostname:A.hostname,+A.port,O)}N.JSC$20214_extraParams_&&_.WW.forEach(N.JSC$20214_extraParams_,function(Z,U){_.Ho(H,U,Z)});
_.Ho(H,"VER",N.JSC$20214_channelVersion_);LOJ(N,H);return H};
c_.prototype.JSC$20209_createXhrIo=function(N){if(N)throw Error("Uk");N=new _.I7;N.JSC$9951_withCredentials_=!1;return N};
c_.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
c_.prototype.notifyServerReachabilityEvent=function(N){var t=vn5;t.dispatchEvent(new ML5(t,N))};
c_.prototype.JSC$20209_shouldUseSecondaryDomains=function(){return!1};
new zpm;var qeq=function(){};
_.V=qeq.prototype;_.V.JSC$20221_channelOpened=function(){};
_.V.JSC$20221_channelHandleArray=function(){};
_.V.JSC$20221_channelSuccess=function(){};
_.V.JSC$20221_channelError=function(){};
_.V.JSC$20221_channelClosed=function(){};
_.V.JSC$20221_getAdditionalParams=function(){return{}};
_.V.isActive=function(){return!0};var fU5=function(N){N.front_.length===0&&(N.front_=N.back_,N.front_.reverse(),N.back_=[])};
_.V=ngf.prototype;_.V.enqueue=function(N){this.back_.push(N)};
_.V.peek=function(){fU5(this);return _.wt(this.front_)};
_.V.getCount=function(){return this.front_.length+this.back_.length};
_.V.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.V.clear=function(){this.front_=[];this.back_=[]};
_.V.contains=function(N){return _.W4(this.front_,N)||_.W4(this.back_,N)};
_.V.remove=function(N){var t=this.front_;var O=Array.prototype.lastIndexOf.call(t,N,t.length-1);O>=0?(_.w4t(t,O),t=!0):t=!1;return t||_.rt(this.back_,N)};
_.V.getValues=function(){for(var N=[],t=this.front_.length-1;t>=0;--t)N.push(this.front_[t]);t=this.back_.length;for(var O=0;O<t;++O)N.push(this.back_[O]);return N};var $$=function(N){this.JSC$20225_map_=new _.zG;this.size=0;N&&this.addAll(N)},ntr=function(N){var t=typeof N;
return t=="object"&&N||t=="function"?"o"+_.GM(N):t.charAt(0)+N};
_.V=$$.prototype;_.V.getCount=function(){return this.JSC$20225_map_.size};
_.V.add=function(N){this.JSC$20225_map_.set(ntr(N),N);this.size=this.JSC$20225_map_.size};
_.V.addAll=function(N){N=_.Kf(N);for(var t=N.length,O=0;O<t;O++)this.add(N[O]);this.size=this.JSC$20225_map_.size};
_.V.removeAll=function(N){N=_.Kf(N);for(var t=N.length,O=0;O<t;O++)this.remove(N[O]);this.size=this.JSC$20225_map_.size};
_.V.delete=function(N){N=this.JSC$20225_map_.remove(ntr(N));this.size=this.JSC$20225_map_.size;return N};
_.V.remove=function(N){return this.delete(N)};
_.V.clear=function(){this.JSC$20225_map_.clear();this.size=0};
_.V.isEmpty=function(){return this.JSC$20225_map_.size===0};
_.V.has=function(N){return this.JSC$20225_map_.containsKey(ntr(N))};
_.V.contains=function(N){return this.JSC$20225_map_.containsKey(ntr(N))};
_.V.getValues=function(){return this.JSC$20225_map_.getValues()};
_.V.values=function(){return this.JSC$20225_map_.values()};
_.V.clone=function(){return new $$(this)};
_.V.equals=function(N){return this.getCount()==ipi(N)&&WO5(this,N)};
var WO5=function(N,t){var O=ipi(t);if(N.getCount()>O)return!1;!(t instanceof $$)&&O>5&&(t=new $$(t));return uIf(N,function(H){var A=t;return A.contains&&typeof A.contains=="function"?A.contains(H):A.containsValue&&typeof A.containsValue=="function"?A.containsValue(H):_.lQ(A)||typeof A==="string"?_.W4(A,H):_.WW.containsValue(A,H)})};
$$.prototype.__iterator__=function(){return this.JSC$20225_map_.__iterator__(!1)};
$$.prototype[Symbol.iterator]=function(){return this.values()};var rkO={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(N){return(this._clampValue(N)-this.min)/(this.max-this.min)},
_clampValue:function(N){return Math.min(this.max,Math.max(this.min,this._calcStep(N)))},
_calcStep:function(N){N=parseFloat(N);if(!this.step)return N;N=Math.round((N-this.min)/this.step);return this.step<1?N/(1/this.step)+this.min:N*this.step+this.min},
_validateValue:function(){var N=this._clampValue(this.value);this.value=this.oldValue=isNaN(N)?this.oldValue:N;return this.value!==N},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var IUx;var lUi;_.LO({_template:function(){if(lUi!==void 0)return lUi;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;IUx===void 0&&(IUx=document.createElement("template"));var H=IUx;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return lUi=N},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.yB(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(N){N.keyCode===27&&(N.preventDefault(),this.close())},
_track:function(N){if(!this.persistent&&!this.disableSwipe)switch(N.preventDefault(),N.detail.state){case "start":this._trackStart(N);break;case "track":this._trackMove(N);break;case "end":this._trackEnd(N)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var N=this.$.contentContainer.getBoundingClientRect();this._savedWidth=N.width;this._translateOffset=this.position==="left"?N.left:N.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(N){this._trackDetails&&(this._translateDrawer(N.detail.dx+this._translateOffset),this._trackDetails.push({dx:N.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(N){if(this._trackDetails){var t=N.detail.dx+this._translateOffset,O=this.getWidth();t=this.position==="left"?t>=0||t<=-O:t<=0||t>=O;if(!t){var H=this._trackDetails;this._trackDetails=null;this._flingDrawer(N,H);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}O/=2;N.detail.dx<-O?this.opened=this.position==="right":N.detail.dx>O&&(this.opened=this.position==="left");t?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(N,t){for(var O=Date.now(),H=O-100,A,Z=0,U=t.length-1;Z<=U;){var C=Z+U>>1,F=t[C];F.timeStamp>=H?(A=F,U=C-1):Z=C+1}return A?(N.detail.dx-A.dx)/(O-A.timeStamp||1):0},
_flingDrawer:function(N,t){t=this._calculateVelocity(N,t);if(!(Math.abs(t)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;N=N.detail.dx+this._translateOffset;var O=this.getWidth(),H=this.position==="left",A=t>0;A?(t=Math.max(t,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(t=Math.min(t,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");t=this._FLING_INITIAL_SLOPE*(!A&&H?-(N+O):A&&!H?O-N:-N)/t;this._styleTransitionDuration(t);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,t)}},
_styleTransitionDuration:function(N){this.style.transitionDuration=N+"ms";this.$.contentContainer.style.transitionDuration=N+"ms";this.$.scrim.style.transitionDuration=N+"ms"},
_styleTransitionTimingFunction:function(N){this.$.contentContainer.style.transitionTimingFunction=N;this.$.scrim.style.transitionTimingFunction=N},
_translateDrawer:function(N){var t=this.getWidth();this.position==="left"?(N=Math.max(-t,Math.min(N,0)),this.$.scrim.style.opacity=1+N/t):(N=Math.max(0,Math.min(N,t)),this.$.scrim.style.opacity=1-N/t);this.translate3d(N+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var N=this._drawerState;N===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;N!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),N!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var N=_.$L(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');N.length>0?(this._firstTabStop=N[0],this._lastTabStop=N[N.length-1]):
this._lastTabStop=this._firstTabStop=null;(N=this.getAttribute("tabindex"))&&parseInt(N,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(N){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||N.keyCode!==9||(N.shiftKey?this._firstTabStop&&_.$L(N).localTarget===this._firstTabStop&&(N.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.$L(N).localTarget===this._lastTabStop&&(N.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(N,t){this.toggleClass("visible",N&&!t,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 Q2m;var mRi;_.LO({_template:function(){if(mRi!==void 0)return mRi;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;Q2m===void 0&&(Q2m=document.createElement("template"));var H=Q2m;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return mRi=N},
is:"tp-yt-paper-progress",behaviors:[rkO],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(N){this.toggleClass("indeterminate",N,this.$.primaryProgress)},
_transformProgress:function(N,t){N.style.transform=N.style.webkitTransform="scaleX("+t/100+")"},
_mainRatioChanged:function(N){this._transformProgress(this.$.primaryProgress,N)},
_progressChanged:function(N,t,O,H,A){N=this._clampValue(N);t=this._clampValue(t);var Z=this._calcRatio(N)*100,U=this._calcRatio(t)*100;this._setSecondaryRatio(Z);this._transformProgress(this.$.secondaryProgress,Z);this._transformProgress(this.$.primaryProgress,U);this.secondaryProgress=N;A?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",t);this.setAttribute("aria-valuemin",O);this.setAttribute("aria-valuemax",H)},
_disabledChanged:function(N){this.setAttribute("aria-disabled",N?"true":"false")},
_hideSecondaryProgress:function(N){return N===0}});var EtO;var Gdm;var RM5=function(){};
_.V=RM5.prototype;_.V.registered=function(){};
_.V.addOwnKeyBinding=function(){};
_.V.removeOwnKeyBindings=function(){};
_.V.keyboardEventMatchesKeys=function(){};
_.V._collectKeyBindings=function(){};
_.V._prepKeyBindings=function(){};
_.V._addKeyBinding=function(){};
_.V._resetKeyEventListeners=function(){};
_.V._listenKeyEventListeners=function(){};
_.V._unlistenKeyEventListeners=function(){};
_.V._onKeyBindingEvent=function(){};
_.V._triggerKeyHandler=function(){};
_.V._tapHandler=function(){};
_.V._focusChanged=function(){};
_.V._detectKeyboardFocus=function(){};
_.V._userActivate=function(){};
_.V._upHandler=function(){};
_.V._spaceKeyDownHandler=function(){};
_.V._spaceKeyUpHandler=function(){};
_.V._asyncClick=function(){};
_.V._pressedChanged=function(){};
_.V._ariaActiveAttributeChanged=function(){};
_.V._activeChanged=function(){};
_.V._controlStateChanged=function(){};
_.V._changedButtonState=function(){};
_.V._focusBlurHandler=function(){};
_.V._disabledChanged=function(){};
_.V._changedControlState=function(){};
_.V._buttonStateChanged=function(){};
_.V._downHandler=function(){};
_.V.ensureRipple=function(){};
_.V.getRipple=function(){};
_.V.hasRipple=function(){};
_.V._noinkChanged=function(){};
_.V._calcRatio=function(){};
_.V._clampValue=function(){};
_.V._calcStep=function(){};
_.V._validateValue=function(){};
_.V._update=function(){};
_.V._setImmediateValue=function(){};
_.V._setExpand=function(){};
_.V._setDragging=function(){};
_.V._setTransiting=function(){};
_.V._setMarkers=function(){};
_.V._setPressed=function(){};
_.V._setPointerDown=function(){};
_.V._setReceivedFocusFromKeyboard=function(){};
_.V._setFocused=function(){};
_.V._setRatio=function(){};
RM5=_.LO({_template:function(){if(Gdm!==void 0)return Gdm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;EtO===void 0&&(EtO=document.createElement("template"));var H=EtO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return Gdm=N},
is:"tp-yt-paper-slider",behaviors:[_.rA,_.mT,_.UsZ,rkO],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&&_.Jy(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(N,t,O){this.setAttribute("aria-valuemin",t);this.setAttribute("aria-valuemax",O);this.setAttribute("aria-valuenow",N);this._positionKnob(this._calcRatio(N)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(N){this._setImmediateValue(this._calcStep(this._calcKnobPosition(N)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(N){return(this.max-this.min)*N/100+this.min},
_onTrack:function(N){N.stopPropagation();switch(N.detail.state){case "start":this._trackStart(N);break;case "track":this._trackX(N);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(N){this.dragging||this._trackStart(N);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,N.detail.dx*(this._isRTL?-1:1)));N=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(N);N=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(N+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var N=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;N.transform=N.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(N){this._expandKnob();N.preventDefault();this.focus()},
_bartrack:function(N){this._allowBarEvent(N)&&this._onTrack(N)},
_barclick:function(N){this._w=this.$.sliderBar.offsetWidth;var t=this.$.sliderBar.getBoundingClientRect();t=(N.detail.x-t.left)/this._w*100;this._isRTL&&(t=100-t);var O=this.ratio;this._setTransiting(!0);this._positionKnob(t);O===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
N.preventDefault();this.focus()},
_bardown:function(N){this._allowBarEvent(N)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(N))},
_knobTransitionEnd:function(N){N.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(N,t,O,H){H||this._setMarkers([]);t=Math.round((O-t)/this.step);t>N&&(t=N);if(t<0||!isFinite(t))t=0;this._setMarkers(Array(t))},
_mergeClasses:function(N){return Object.keys(N).filter(function(t){return N[t]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(N){return!this.ignoreBarTouch||N.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(N){this._isRTL?this._incrementKey(N):this._decrementKey(N)},
_rightKey:function(N){this._isRTL?this._decrementKey(N):this._incrementKey(N)},
_incrementKey:function(N){this.disabled||(N.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),N.preventDefault())},
_decrementKey:function(N){this.disabled||(N.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),N.preventDefault())},
_changeValue:function(N){this.value=N.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(N){N.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Dsr._createRipple.call(this)},
_focusedChanged:function(N){N&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=N?"":"none",this._ripple.holdDown=N)}});var vt1;var Jk1;var jI=null,otn=function(){};
_.V=otn.prototype;_.V.fit=function(){};
_.V._discoverInfo=function(){};
_.V.resetFit=function(){};
_.V.refit=function(){};
_.V.position=function(){};
_.V.constrain=function(){};
_.V._sizeDimension=function(){};
_.V.__sizeDimension=function(){};
_.V.center=function(){};
_.V.__getNormalizedRect=function(){};
_.V.__getOffscreenArea=function(){};
_.V.__getPosition=function(){};
_.V.notifyResize=function(){};
_.V.assignParentResizable=function(){};
_.V.stopResizeNotificationsFor=function(){};
_.V._subscribeIronResize=function(){};
_.V._unsubscribeIronResize=function(){};
_.V.resizerShouldNotify=function(){};
_.V._onDescendantIronResize=function(){};
_.V._fireResize=function(){};
_.V._onIronRequestResizeNotifications=function(){};
_.V._parentResizableChanged=function(){};
_.V._notifyDescendant=function(){};
_.V._requestResizeNotifications=function(){};
_.V._findParent=function(){};
_.V.toggle=function(){};
_.V.open=function(){};
_.V.close=function(){};
_.V.cancel=function(){};
_.V.invalidateTabbables=function(){};
_.V._ensureSetup=function(){};
_.V._canceledChanged=function(){};
_.V._withBackdropChanged=function(){};
_.V._prepareRenderOpened=function(){};
_.V._finishRenderOpened=function(){};
_.V._finishRenderClosed=function(){};
_.V._preparePositioning=function(){};
_.V._finishPositioning=function(){};
_.V._applyFocus=function(){};
_.V._onCaptureClick=function(){};
_.V._onCaptureFocus=function(){};
_.V._onCaptureEsc=function(){};
_.V._onCaptureTab=function(){};
_.V._onIronResize=function(){};
_.V._onNodesChange=function(){};
_.V.__ensureFirstLastFocusables=function(){};
_.V.__openedChanged=function(){};
_.V.__deraf=function(){};
_.V.__updateScrollObservers=function(){};
_.V.__addScrollListeners=function(){};
_.V.__removeScrollListeners=function(){};
_.V.__isValidScrollAction=function(){};
_.V.__onCaptureScroll=function(){};
_.V.__saveScrollPosition=function(){};
_.V.__restoreScrollPosition=function(){};
_.V._setCanceled=function(){};
otn=_.LO({_template:function(){if(Jk1!==void 0)return Jk1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;vt1===void 0&&(vt1=document.createElement("template"));var H=vt1;O.call(t,H.content.cloneNode(!0),N.content.firstChild);return Jk1=N},
is:"tp-yt-paper-toast",behaviors:[_.g6],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(){_.Wn._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Uk.requestAvailability()},
show:function(N){typeof N=="string"&&(N={text:N});for(var t in N)t.indexOf("_")===0?_.Wn._warn('The property "'+t+'" is private and was not set.'):t in this?this[t]=N[t]:_.Wn._warn('The property "'+t+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(N){N&&N.target===this&&N.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(jI&&jI!==this&&jI.close(),jI=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):jI===this&&(jI=null);_.d6._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(N){this.positionTarget=N},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var s2x=new _.Fp("disablePersonalizationAction");var RDO=new _.Fp("showDmaConsentFlowCommand");var vF5=new _.Fp("showMmgNoticeCommand");var NMJ=new _.Fp("saveConsentAction");var t_f=function(N){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.kr(N)};
_.p(t_f,_.C8);var Oo1=_.GNO(t_f);var Ho5=new _.Fp("updateTopbarAvatarAction");var A6O=new _.Fp("channelHandleValidationResultRenderer");var Zof=new _.Fp("generateHandleFromNameResultRenderer");var V_r=new _.Fp("channelHandleInputRenderer");var D7q=new _.Fp("copyLinkRenderer");var U75=new _.Fp("timedCommand");var C2z=new _.Fp("clearCookieAction");var K$O=new _.Fp("getMultiPageMenuAction");var F$1=new _.Fp("addToGuideSectionAction"),d71=new _.Fp("removeFromGuideSectionAction");var gpx=new _.Fp("updateNotificationsUnseenCountAction");var y6m=new _.Fp("resetChannelUnreadCountCommand");var BMm=new _.Fp("resetSubscriptionsUnreadDotCommand");var c6m=new _.Fp("selectLanguageCommand");var Us5=new _.Fp("sendFeedbackAction");var Af5=new _.Fp("uploadImageToScottyCommand");var Z6O=new _.Fp("registerPromoCommand");var Vdn=new _.Fp("setPushNotificationsEnabledCommand");var DlJ=new _.Fp("desktopTopbarRenderer");var Ul1=new _.Fp("surveyFollowUpRenderer");var Cs1=new _.Fp("handlesClaimingRadioOptionRenderer");var KQr=new _.Fp("hotkeyDialogRenderer");var FQ5=new _.Fp("modifyReportFormCommand");var dlm=new _.Fp("accountLinkCommand");var gu1=new _.Fp("accountUnlinkCommand");var yfn=new _.Fp("logAccountLinkingEventCommand");var HAn=new _.Fp("guideCollapsibleEntryRenderer");var BXn=new _.Fp("guideDownloadsEntryRenderer");var OAO=new _.Fp("guideEntryRenderer");var cf1=new _.Fp("getLocationCommand");var $lO=new _.Fp("locationCollectionCommand");var jqm=new _.Fp("storiesItemViewModel");var i6f=new _.Fp("addToRemoteQueueAction");var u45=new _.Fp("insertInRemoteQueueAction");var Su1=new _.Fp("removeFromRemoteQueueAction");var hOn=new _.Fp("notificationRenderer");var wGz=new _.Fp("localWatchHistoryCommand");var MdO=new _.Fp("pdgBuyFlowHeaderRenderer");var b6m=new _.Fp("pdgColorSliderRenderer");var pIr=new _.Fp("pdgCommentOptionRenderer");var LQr=new _.Fp("pdgCommentPreviewRenderer");var zOx=new _.Fp("superVodSelectableItemButtonRenderer");var Yuf=new _.Fp("switchButtonRenderer");var aQ5=new _.Fp("upsellDialogRenderer");var TX5=new _.Fp("feedbackQuestionRenderer"),wIz=new _.Fp("feedbackOptionRenderer");var eOi=new _.Fp("sponsorshipsTierRenderer"),Ps5=new _.Fp("sponsorshipsPromotionChannelRenderer");var XIm=new _.Fp("simpleSurveyMessageRenderer");var dK5=new _.Fp("invokeInstrumentManagerAction");var xl5=new _.Fp("logYpcFlowDismissCommand");var k9m=new _.Fp("logYpcFlowStartCommand");var quO=new _.Fp("unlimitedCreateFamilyEndpoint");var fQf=new _.Fp("iconBadgeRenderer");var Pt5=new _.Fp("collaborativePlaylistVisibilityValidationRule");var nuz=function(N){_.a7.call(this,"channelMessage");this.message=N};
_.p(nuz,_.a7);var WQz=function(N){_.a7.call(this,"channelError");this.error=N};
_.p(WQz,_.a7);var rf1={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},IQz={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},lQf={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Qq5={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},mlq={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var io=function(N){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.zG;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;N&&(this.id=N.id||N.name,this.name=N.name,this.clientName=N.clientName?N.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=N.app,this.type=N.type||"REMOTE_CONTROL",this.username=N.user||"",this.avatar=N.userAvatarUri||"",this.obfuscatedGaiaId=N.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=N.ownerObfuscatedGaiaId||"",this.castUserId=N.castUserId||"",this.theme=N.theme||"u",Eun(this,N.capabilities||""),G9x(this,
N.compatibleSenderThemes||""),ROz(this,N.experiments||""),this.remoteControllerUrl=N.remoteControllerUrl||"",this.localChannelEncryptionKey=N.localChannelEncryptionKey||"",this.deviceContext=N.deviceContext,this.brand=N.brand||"",this.model=N.model||"",this.year=N.year||0,this.os=N.os||"",this.osVersion=N.osVersion||"",this.chipset=N.chipset||"",this.mdxDialServerType=N.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=N.pairingType||"unknown",N=N.deviceInfo)&&(N=JSON.parse(N),this.brand=
N.brand||"",this.model=N.model||"",this.year=N.year||0,this.os=N.os||"",this.osVersion=N.osVersion||"",this.chipset=N.chipset||"",this.clientName=N.clientName?N.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=N.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
io.prototype.copy=function(){var N={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(N.brand=this.brand);
this.model&&(N.model=this.model);this.year&&(N.year=this.year);this.os&&(N.os=this.os);this.osVersion&&(N.osVersion=this.osVersion);this.chipset&&(N.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(N.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(N.mdxDialServerType=this.mdxDialServerType);N=new io(N);N.connected=this.connected;N.remoteControllerUrl=this.remoteControllerUrl;N.localChannelEncryptionKey=this.localChannelEncryptionKey;N.deviceContext=
this.deviceContext;N.castUserId=this.castUserId;return N};
io.prototype.equals=function(N){return N?this.id==N.id:!1};
var Eun=function(N,t){N.capabilities.clear();_.Aw(t.split(","),_.Fu(_.WW.contains,rf1)).forEach(function(O){N.capabilities.add(O)})},G9x=function(N,t){N.compatibleSenderThemes.clear();
_.Aw(t.split(","),_.Fu(_.WW.contains,IQz)).forEach(function(O){N.compatibleSenderThemes.add(O)})},ROz=function(N,t){N.experiments.clear();
t.split(",").forEach(function(O){N.experiments.add(O)})};_.Od(rqm,_.k1);_.V=rqm.prototype;_.V.JSC$20261_onTick_=function(){this.JSC$20259_interval_=Math.min(3E5,this.JSC$20259_interval_*2);this.JSC$20261_listener_();this.nextTickTime_&&this.start()};
_.V.start=function(){var N=this.JSC$20259_interval_+15E3*Math.random(),t=this.delay_;t.isActive()||t.start(N);this.nextTickTime_=Date.now()+N};
_.V.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.V.isActive=function(){return this.delay_.isActive()};
_.V.reset=function(){this.delay_.stop();this.JSC$20259_interval_=5E3};_.Od(qh,qeq);_.V=qh.prototype;_.V.subscribe=function(N,t,O){return this.pubsub_.subscribe(N,t,O)};
_.V.unsubscribe=function(N,t,O){return this.pubsub_.unsubscribe(N,t,O)};
_.V.unsubscribeByKey=function(N){return this.pubsub_.unsubscribeByKey(N)};
_.V.publish=function(N,t){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.V.dispose=function(){this.JSC$20262_disposed_||(this.JSC$20262_disposed_=!0,_.F$(this.pubsub_),this.disconnect(),_.F$(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20262_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Hc({})})};
_.V.isDisposed=function(){return this.JSC$20262_disposed_};
_.V.connect=function(N,t,O){var H=this,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1)return _.zy(F,2),H.useAsyncBrowserChannelHandler_?F.yield(H.connectPromise_,2):F.jumpTo(2);_.pU(F);if(H.JSC$20262_disposed_||H.JSC$20262_channel_&&H.JSC$20262_channel_.getState()==2&&!H.isInitialReconnectTimer_)return F.return();H.sCookie_="";H.isInitialReconnectTimer_||H.reconnectTimer_.stop();H.connectionParams_=N||null;H.connectUi_=t||0;A=H.JSC$20262_pathPrefix_+"/test";Z=H.JSC$20262_pathPrefix_+"/bind";U=
new c_(O?O.firstTestResults:null,O?O.secondTestResults:null,H.enableAsyncTest_);if(C=H.JSC$20262_channel_)C.handler_=null;U.handler_=H;H.JSC$20262_channel_=U;if(H.useAsyncBrowserChannelHandler_)return H.connectPromise_=vu5(H).then(function(){return Jf5(H,A,Z,C,O)}),F.return(H.connectPromise_.then(function(){H.connectPromise_=_.Hc()}));
Jf5(H,A,Z,C,O);return _.YC(F,0)})};
var Jf5=function(N,t,O,H,A){our(N);if(N.JSC$20262_channel_){var Z=_.Ro("ID_TOKEN"),U=N.JSC$20262_channel_.JSC$20214_extraHeaders_||{};Z?U["x-youtube-identity-token"]=Z:delete U["x-youtube-identity-token"];N.JSC$20262_channel_.JSC$20214_extraHeaders_=U}sqJ(N);H?(H.getState(),N.JSC$20262_channel_.connect(t,O,N.defaultQueryParams_,H.sid_,H.JSC$20214_lastArrayId_)):A?N.JSC$20262_channel_.connect(t,O,N.defaultQueryParams_,A.sessionId,A.arrayId):N.JSC$20262_channel_.connect(t,O,N.defaultQueryParams_);N.isInitialReconnectTimer_&&
!N.reconnectTimer_.isActive()&&N.reconnectTimer_.start()};
qh.prototype.disconnect=function(N){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Hc())}finally{this.disconnectUi_=N||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),our(this),this.JSC$20262_channel_&&(this.JSC$20262_channel_.getState()==3&&wFm(this.JSC$20262_channel_),this.JSC$20262_channel_.disconnect()),this.disconnectUi_=0}};
qh.prototype.sendMessage=function(N,t){var O=this,H;return _.K(function(A){switch(A.nextAddress){case 1:_.zy(A,2);if(!O.useAsyncBrowserChannelHandler_){A.jumpTo(2);break}return A.yield(O.connectPromise_,2);case 2:_.pU(A);if(O.JSC$20262_disposed_)return A.return();H={_sc:N};t&&_.WW.extend(H,t);if(O.reconnectTimer_.isActive()||(O.JSC$20262_channel_?O.JSC$20262_channel_.getState():0)==2){O.JSC$20262_pendingMessages_.push(H);A.jumpTo(6);break}if(!O.isChannelOpened()){A.jumpTo(6);break}_.zy(A,8);if(!O.useAsyncBrowserChannelHandler_||
NJm(O,N)){A.jumpTo(8);break}return A.yield(vu5(O),8);case 8:_.pU(A,0,0,1);O.isChannelOpened()&&(NJm(O,N)||sqJ(O),our(O),T4r(O.JSC$20262_channel_,H));_.YC(A,6,1);break;case 6:_.YC(A,0)}})};
var NJm=function(N,t){return N.enableMdxAuthForConnectionOnly_?!0:N.disableMdxAuthForAdMessages_?Object.values(lQf).includes(t):N.disableMdxAuthForNonPlaybackMessages_?!Object.values(Qq5).includes(t):N.disableMdxAuthForShortsMessages_?Object.values(mlq).includes(t):!1};
qh.prototype.JSC$20221_channelOpened=function(){this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.F$(this.reconnectTimer_),this.reconnectTimer_=new rqm(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20262_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)tA1(this);else{var N=this.JSC$20262_pendingMessages_;this.JSC$20262_pendingMessages_=[];var t=N.length;sqJ(this);Osm(this,
N,t);Hsf(this)}else Hsf(this)};
var tA1=function(N){var t,O;_.K(function(H){if(H.nextAddress==1)return _.zy(H,2),H.yield(vu5(N),2);_.pU(H);t=N.JSC$20262_pendingMessages_;N.JSC$20262_pendingMessages_=[];O=t.length;Osm(N,t,O);Hsf(N);return _.YC(H,0)})},Osm=function(N,t,O){for(var H=0;H<O;++H)T4r(N.JSC$20262_channel_,t[H]);
Hsf(N)},Hsf=function(N){N.publish("handlerOpened");
N.JSC$20262_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.V=qh.prototype;_.V.JSC$20221_channelError=function(N){var t=N==2&&this.JSC$20262_channel_.JSC$20214_lastStatusCode_==401;N==4||t||this.reconnectTimer_.start();this.publish("handlerError",N,t);t=Object.keys(Sez).find(function(O){return Sez[O]===N});
this.JSC$20262_channelErrorCounter.increment("BROWSER_CHANNEL",t!=null?t:"UNKNOWN")};
_.V.JSC$20221_channelClosed=function(N,t){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(t)for(var O=t.length,H=0;H<O;++H){var A=t[H].map;A&&this.JSC$20262_pendingMessages_.push(A)}this.JSC$20262_channelClosedCounter.increment("BROWSER_CHANNEL");N&&this.pendingMapsOnClosedCounter.JSC$10087_streamzService.JSC$9942_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",N.length);t&&this.undeliveredMapsOnClosedCounter.JSC$10090_streamzService.JSC$9942_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
t.length)};
_.V.JSC$20221_channelSuccess=function(N,t){t!=null&&N!=null&&this.channelMessageSentCounter.increment()};
_.V.JSC$20221_getAdditionalParams=function(){var N={v:2};this.sCookie_&&(N.gsessionid=this.sCookie_);this.connectUi_!=0&&(N.ui=""+this.connectUi_);this.disconnectUi_!=0&&(N.ui=""+this.disconnectUi_);this.connectionParams_&&_.WW.extend(N,this.connectionParams_);return N};
_.V.JSC$20221_channelHandleArray=function(N){N[0]=="S"?this.sCookie_=N[1]:N[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20262_channel_.disconnect()):this.publish("handlerMessage",new Whm(N[0],N[1]));this.JSC$20262_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.V.isChannelOpened=function(){return!!this.JSC$20262_channel_&&this.JSC$20262_channel_.getState()==3};
var our=function(N){if(N.JSC$20262_channel_){var t=N.JSC$20262_getXsrfToken_(),O=N.JSC$20262_channel_.JSC$20214_extraHeaders_||{};t?O["x-youtube-lounge-xsrf-token"]=t:delete O["x-youtube-lounge-xsrf-token"];N.JSC$20262_channel_.JSC$20214_extraHeaders_=O}},vu5=function(N){if(N.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Hc();
if(!N.enableCachedUpdateAuthorizationHeader_)return AN1(N);N.updateAuthorizationHeaderPromise_===null&&(N.updateAuthorizationHeaderPromise_=AN1(N));return N.updateAuthorizationHeaderPromise_},AN1=function(N){return _.fV(N.getAuthorizationHeader_().then(function(t){Zsi(N,t)}).thenCatch(function(){}),function(){N.updateAuthorizationHeaderPromise_=null})},Zsi=function(N,t){if(N.JSC$20262_channel_){var O=N.JSC$20262_channel_.JSC$20214_extraHeaders_||{};
t&&Object.keys(t).length>0?O=Object.assign({},O,t):delete O.Authorization;N.JSC$20262_channel_.JSC$20214_extraHeaders_=O}},sqJ=function(N){N.getAuthorizationHeaderSync_&&!N.useAsyncBrowserChannelHandler_&&Zsi(N,N.getAuthorizationHeaderSync_())};
_.V=qh.prototype;_.V.setLoungeToken=function(N){(this.defaultQueryParams_.loungeIdToken=N)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20262_channel_){var t=this.JSC$20262_channel_.JSC$20214_extraHeaders_||{};N?t["X-YouTube-LoungeId-Token"]=N:delete t["X-YouTube-LoungeId-Token"];this.JSC$20262_channel_.JSC$20214_extraHeaders_=t}};
_.V.getDeviceId=function(){return this.defaultQueryParams_.id};
_.V.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var N=this.reconnectTimer_;N.delay_.fire();N.start()};
_.V.safeReconnect_=function(){var N=this.JSC$20262_channel_,t=0;N.JSC$20214_backChannelRequest_&&t++;N.forwardChannelRequest_&&t++;t==0&&this.connect(this.connectionParams_,this.connectUi_)};var rC=function(N,t){var O=N.basePath;N.supportCors&&(O=N.scheme+"://"+N.domain+N.port+N.basePath);return _.CF(O+t,{})};
vgx.prototype.sendRequest=function(N,t,O,H,A,Z,U){N={format:Z?"RAW":"JSON",method:N,context:this,timeout:5E3,withCredentials:!!U,onSuccess:_.Fu(this.JSC$20268_onSuccess_,H,!Z),onError:_.Fu(this.onError_,A),onTimeout:_.Fu(this.JSC$20268_onTimeout_,A)};O&&(N.postParams=O,N.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.aD(t,N)};
vgx.prototype.JSC$20268_onSuccess_=function(N,t,O,H){t?N(H):N({text:O.responseText})};
vgx.prototype.onError_=function(N,t){N(Error("Yk`"+t.status))};
vgx.prototype.JSC$20268_onTimeout_=function(N){N(Error("Zk"))};var NPr=function(N,t){return!!t&&(N.id==t||N.uuid==t)},VA5=function(N){return{name:N.name,
screenId:N.id,loungeToken:N.token,dialId:N.uuid,screenIdType:N.idType,screenIdSecret:N.secret}},DNz=function(N){return new f2(N)},UNf=function(N){return Array.isArray(N)?_.rc(N,DNz):[]},Ol5=function(N){if(!N)return"null";
var t=N.token?".."+N.token.slice(-6):"-",O=N.uuid?".."+N.uuid.slice(-6):"-",H=N.secret?".."+N.secret.slice(-6):"-";return'{name:"'+N.name+'",id:'+N.id.substr(0,6)+"..,token:"+(t+",uuid:"+O+",idType:"+N.idType+",secret:")+(H+"}")},aZ1=function(N){return Array.isArray(N)?"["+_.rc(N,Ol5).join(",")+"]":"null"};var D4m="",WQ=null;var $4q=function(N,t){_.Xm.call(this);var O=this;this.handler=N();this.handler.subscribe("handlerOpened",this.JSC$20275_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(H,A){O.onError(A)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=t};
_.p($4q,_.Xm);_.V=$4q.prototype;_.V.connect=function(N,t,O){this.handler.connect(N,t,O)};
_.V.disconnect=function(N){this.handler.disconnect(N)};
_.V.reconnect=function(){this.handler.reconnect()};
_.V.getDeviceId=function(){return this.handler.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.V.JSC$20275_onOpened=function(){this.dispatchEvent("channelOpened");var N=this.handler,t=this.currentScreenId;_.ML("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!N.JSC$20262_channel_.useChunked_,sessionId:N.JSC$20262_channel_.sid_,arrayId:N.JSC$20262_channel_.JSC$20214_lastArrayId_});_.ML("yt-remote-session-screen-id",t);N=tSr();t=OSx();_.W4(N,t)||N.push(t);VSf(N);ZS5()};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(N){this.dispatchEvent(new nuz(N))};
_.V.onError=function(N){this.dispatchEvent(new WQz(N?1:0))};
_.V.sendMessage=function(N,t){this.handler.sendMessage(N,t)};
_.V.setLoungeToken=function(N){this.handler.setLoungeToken(N)};
_.V.dispose=function(){this.handler.dispose()};var clO=function(N,t,O){var H=this;O=O===void 0?function(){return""}:O;
var A=A===void 0?new Qgq:A;var Z=Z===void 0?new _.wE:Z;this.pathPrefix=N;this.defaultQueryParams=t;this.getXsrfToken=O;this.JSC$20278_pubsub=Z;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new rqm(function(){var U;((U=H.channel)==null?void 0:iX5((new Gzf(U,U.JSC$20185_channel_)).JSC$20195_channel_.forwardChannelRequestPool_))===0&&H.connect(H.connectionParams,H.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20278_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20278_channelOpenedCounter=new I_x;this.JSC$20278_channelClosedCounter=new l_m;this.JSC$20278_channelMessageReceivedCounter=new mu1;this.JSC$20278_channelErrorCounter=new Eg5};
clO.prototype.connect=function(N,t){N=N===void 0?{}:N;t=t===void 0?0:t;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=N,this.connectUi=t,Cym(this),(N=_.Ro("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=N:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new dL(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,K_r(this))};
var K_r=function(N){_.SF(N.channel,"w",function(){N.channelState=3;N.reconnectTimer.reset();N.connectionParams=null;N.connectUi=0;for(var t=_.D(N.nonAckedMessagesOnChannelClosed),O=t.next();!O.done;O=t.next())O=O.value,N.channel&&N.channel.send(O);N.nonAckedMessagesOnChannelClosed=[];N.publish("webChannelOpened");N.JSC$20278_channelOpenedCounter.increment("WEB_CHANNEL")});
_.SF(N.channel,"x",function(){N.channelState=0;N.reconnectTimer.isActive()||N.publish("webChannelClosed");var t,O=(t=N.channel)==null?void 0:RHm(new Gzf(t,t.JSC$20185_channel_));O&&(N.nonAckedMessagesOnChannelClosed=[].concat(_.W6(O)));N.JSC$20278_channelClosedCounter.increment("WEB_CHANNEL")});
_.SF(N.channel,"z",function(t){var O=t.data;O[0]==="gracefulReconnect"?(N.reconnectTimer.start(),N.channel&&N.channel.close()):N.publish("webChannelMessage",new Whm(O[0],O[1]));N.lastStatusCode=t.statusCode;N.JSC$20278_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.SF(N.channel,"y",function(){N.lastStatusCode===401||N.reconnectTimer.start();N.publish("webChannelError");N.JSC$20278_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.V=clO.prototype;_.V.disconnect=function(N){this.disconnectUi=N===void 0?0:N;this.reconnectTimer.stop();Cym(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.V.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.V.reconnect=function(){var N=this.reconnectTimer;N.delay_.fire();N.start()};
_.V.sendMessage=function(N,t){this.channel&&(Cym(this),N=Object.assign({},{_sc:N},t),this.channel.send(N))};
_.V.setLoungeToken=function(N){N||this.reconnectTimer.stop();N?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=N:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Cym=function(N){var t=N.getXsrfToken();t?N.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=t:delete N.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.V=clO.prototype;_.V.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.V.publish=function(N){return this.JSC$20278_pubsub.publish.apply(this.JSC$20278_pubsub,[N].concat(_.W6(_.E1.apply(1,arguments))))};
_.V.subscribe=function(N,t,O){return this.JSC$20278_pubsub.subscribe(N,t,O)};
_.V.unsubscribe=function(N,t,O){return this.JSC$20278_pubsub.unsubscribe(N,t,O)};
_.V.unsubscribeByKey=function(N){return this.JSC$20278_pubsub.unsubscribeByKey(N)};
_.V.dispose=function(){this.JSC$20278_disposed||(this.JSC$20278_disposed=!0,_.F$(this.JSC$20278_pubsub),this.disconnect(),_.F$(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.V.isDisposed=function(){return this.JSC$20278_disposed};var BP5=function(N){_.Xm.call(this);this.webChannelService=N();this.webChannelService.subscribe("webChannelOpened",this.JSC$20286_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.p(BP5,_.Xm);_.V=BP5.prototype;_.V.connect=function(N,t){this.webChannelService.connect(N,t)};
_.V.disconnect=function(N){this.webChannelService.disconnect(N)};
_.V.reconnect=function(){this.webChannelService.reconnect()};
_.V.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.V.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.V.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.V.JSC$20286_onOpened=function(){this.dispatchEvent("channelOpened")};
_.V.onClosed=function(){this.dispatchEvent("channelClosed")};
_.V.onMessage=function(N){this.dispatchEvent(new nuz(N))};
_.V.onError=function(){this.dispatchEvent(new WQz(this.webChannelService.lastStatusCode===401?1:0))};
_.V.sendMessage=function(N,t){this.webChannelService.sendMessage(N,t)};
_.V.setLoungeToken=function(N){this.webChannelService.setLoungeToken(N)};
_.V.dispose=function(){this.webChannelService.dispose()};var YIz=Date.now(),I4=null,LpO=Array(50),p7r=-1,zN5=!1;_.Od(mM,_.cQ);mM.prototype.getScreens=function(){return this.screens};
mM.prototype.contains=function(N){return!!sEm(this.screens,N)};
mM.prototype.get=function(N){return N?n2(this.screens,N):null};
var F_J=function(N,t){var O=N.get(t.uuid)||N.get(t.id);if(O)return N=O.name,O.id=t.id||O.id,O.name=t.name,O.token=t.token,O.uuid=t.uuid||O.uuid,O.name!=N;N.screens.push(t);return!0},dNf=function(N,t){var O=N.screens.length!=t.length;
N.screens=_.Aw(N.screens,function(Z){return!!sEm(t,Z)});
for(var H=t.length,A=0;A<H;A++)O=F_J(N,t[A])||O;return O},gAq=function(N,t){var O=N.screens.length;
N.screens=_.Aw(N.screens,function(H){return!(H||t?!H!=!t?0:H.id==t.id:1)});
return N.screens.length<O};
mM.prototype.info=function(N){la(this.JSC$20287_logName_,N)};var yNJ=function(N,t,O,H,A){_.cQ.call(this);this.JSC$20290_http_=N;this.pairingCode_=t;this.deviceId_=O;this.friendlyName_=H;this.enableShortLivedLoungeToken_=A;this.pollIndex_=0;this.JSC$20290_xhr_=null;this.JSC$20290_timer_=NaN};
_.p(yNJ,_.cQ);_.V=yNJ.prototype;_.V.start=function(){!this.JSC$20290_xhr_&&isNaN(this.JSC$20290_timer_)&&this.poll_()};
_.V.stop=function(){this.JSC$20290_xhr_&&(this.JSC$20290_xhr_.abort(),this.JSC$20290_xhr_=null);isNaN(this.JSC$20290_timer_)||(_.zp(this.JSC$20290_timer_),this.JSC$20290_timer_=NaN)};
_.V.disposeInternal=function(){this.stop();_.cQ.prototype.disposeInternal.call(this)};
_.V.poll_=function(){this.JSC$20290_timer_=NaN;this.JSC$20290_xhr_=_.aD(rC(this.JSC$20290_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.qn)(this.JSC$20292_onSuccess_,this),onError:(0,_.qn)(this.onError_,this),onTimeout:(0,_.qn)(this.JSC$20292_onTimeout_,this)})};
_.V.JSC$20292_onSuccess_=function(N,t){this.JSC$20290_xhr_=null;N=t.screen||{};N.dialId=this.deviceId_;N.name=this.friendlyName_;t=-1;this.enableShortLivedLoungeToken_&&N.shortLivedLoungeToken&&N.shortLivedLoungeToken.value&&N.shortLivedLoungeToken.refreshIntervalMs&&(N.screenIdType="shortLived",N.loungeToken=N.shortLivedLoungeToken.value,t=N.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new f2(N),t)};
_.V.onError_=function(N){this.JSC$20290_xhr_=null;N.status&&N.status==404?this.pollIndex_>=BJn.length?this.publish("pairingFailed",Error("$k")):(N=BJn[this.pollIndex_],this.JSC$20290_timer_=_.pF((0,_.qn)(this.poll_,this),N),this.pollIndex_++):this.publish("pairingFailed",Error("al`"+N.status))};
_.V.JSC$20292_onTimeout_=function(){this.JSC$20290_xhr_=null;this.publish("pairingFailed",Error("bl"))};
var BJn=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Od(Gt,mM);_.V=Gt.prototype;_.V.start=function(){E5(this)&&this.publish("screenChange");!_.b8("yt-remote-lounge-token-expiration")&&cN5(this);_.zp(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.pF((0,_.qn)(this.start,this),1E4)};
_.V.add=function(N,t){E5(this);F_J(this,N);$NO(this,!1);this.publish("screenChange");t(N);N.token||cN5(this)};
_.V.remove=function(N,t){var O=E5(this);gAq(this,N)&&($NO(this,!1),O=!0);t(N);O&&this.publish("screenChange")};
_.V.updateName=function(N,t,O,H){var A=E5(this),Z=this.get(N.id);Z?(Z.name!=t&&(Z.name=t,$NO(this,!1),A=!0),O(N)):H(Error("cl"));A&&this.publish("screenChange")};
_.V.disposeInternal=function(){_.zp(this.loungeTokenRefreshTimer_);Gt.superClass_.disposeInternal.call(this)};
var cN5=function(N){if(N.screens.length){var t=_.rc(N.screens,function(H){return H.id}),O=rC(N.JSC$20294_http_,"/pairing/get_lounge_token_batch");
N.JSC$20294_http_.sendRequest("POST",O,{screen_ids:t.join(",")},(0,_.qn)(N.handleLoungeTokens_,N),(0,_.qn)(N.handleLoungeTokenError_,N))}};
Gt.prototype.handleLoungeTokens_=function(N){E5(this);var t=this.screens.length;N=N&&N.screens||[];for(var O=N.length,H=0;H<O;++H){var A=N[H],Z=this.get(A.screenId);Z&&(Z.token=A.loungeToken,--t)}$NO(this,!t);t&&la(this.JSC$20287_logName_,"Missed "+t+" lounge tokens.")};
Gt.prototype.handleLoungeTokenError_=function(N){la(this.JSC$20287_logName_,"Requesting lounge tokens failed: "+N)};
var E5=function(N){if(_.h("deprecate_pair_servlet_enabled"))return dNf(N,[]);var t=UNf(Clz());t=_.Aw(t,function(O){return!O.uuid});
return dNf(N,t)},$NO=function(N,t){Fpf(_.rc(N.screens,VA5));
t&&Kpm()};var uo=function(N,t){_.cQ.call(this);this.getScreensToCheck_=t;t=(t=_.b8("yt-remote-online-screen-ids")||"")?t.split(","):[];for(var O={},H=this.getScreensToCheck_(),A=H.length,Z=0;Z<A;++Z){var U=H[Z].id;O[U]=_.W4(t,U)}this.screenIdSet_=O;this.JSC$20297_http_=N;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;jSm("Initialized with "+(0,_.r3)(this.screenIdSet_))};
_.p(uo,_.cQ);uo.prototype.isOnline=function(N){return!!this.screenIdSet_[N]};
uo.prototype.start=function(){var N=parseInt(_.b8("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.tw()-144E5<N?0:N)?ism(this):(this.fastCheckEndTime_=_.tw()+3E5,_.ML("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
uo.prototype.isEmpty=function(){return _.WW.isEmpty(this.screenIdSet_)};
uo.prototype.update=function(){jSm("Updating availability on schedule.");var N=this.getScreensToCheck_(),t=_.WW.filter(this.screenIdSet_,function(O,H){return O&&!!n2(N,H)},this);
uH5(this,t)};
var SJm=function(N,t,O){var H=rC(N.JSC$20297_http_,"/pairing/get_screen_availability");N.JSC$20297_http_.sendRequest("POST",H,{lounge_token:t.token},(0,_.qn)(function(A){A=A.screens||[];for(var Z=A.length,U=0;U<Z;++U)if(A[U].loungeToken==t.token){O(A[U].status=="online");return}O(!1)},N),(0,_.qn)(function(){O(!1)},N))};
uo.prototype.disposeInternal=function(){_.zp(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.cQ.prototype.disposeInternal.call(this)};
var uH5=function(N,t){a:if(_.WW.getCount(t)!=_.WW.getCount(N.screenIdSet_))var O=!1;else{O=_.WW.getKeys(t);for(var H=O.length,A=0;A<H;++A)if(!N.screenIdSet_[O[A]]){O=!1;break a}O=!0}O||(jSm("Updated online screens: "+(0,_.r3)(N.screenIdSet_)),N.screenIdSet_=t,N.publish("screenChange"));hdz(N)},ism=function(N){isNaN(N.refreshTimer_)||_.zp(N.refreshTimer_);
N.refreshTimer_=_.pF((0,_.qn)(N.requestScreenAvailability_,N),N.fastCheckEndTime_>0&&N.fastCheckEndTime_<_.tw()?2E4:1E4)};
uo.prototype.requestScreenAvailability_=function(){_.zp(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var N=MA5(this);if(_.WW.getCount(N)){var t=rC(this.JSC$20297_http_,"/pairing/get_screen_availability"),O={lounge_token:_.WW.getKeys(N).join(",")};this.currentRequest_=this.JSC$20297_http_.sendRequest("POST",t,O,(0,_.qn)(this.onScreenAvailability_,this,N),(0,_.qn)(this.onScreenAvailabilityError_,this))}else uH5(this,{}),ism(this)};
uo.prototype.onScreenAvailability_=function(N,t){this.currentRequest_=null;var O=_.WW.getKeys(MA5(this));if(_.v4(O,_.WW.getKeys(N))){t=t.screens||[];O={};for(var H=t.length,A=0;A<H;++A)O[N[t[A].loungeToken]]=t[A].status=="online";uH5(this,O);ism(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
uo.prototype.onScreenAvailabilityError_=function(N){this.warn_("Screen availability failed: "+N);this.currentRequest_=null;ism(this)};
var jSm=function(N){la("OnlineScreenService",N)};
uo.prototype.warn_=function(N){la("OnlineScreenService",N)};
var MA5=function(N){var t={};_.Z9(N.getScreensToCheck_(),function(O){O.token?t[O.token]=O.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return t},hdz=function(N){N=_.WW.getKeys(_.WW.filter(N.screenIdSet_,function(t){return t}));
N.sort(_.xzt);N.length?_.ML("yt-remote-online-screen-ids",N.join(","),60):_.pT("yt-remote-online-screen-ids")};_.Od(R4,mM);_.V=R4.prototype;_.V.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.V.add=function(N,t,O){this.localScreenService_.add(N,t,O)};
_.V.remove=function(N,t,O){this.localScreenService_.remove(N,t,O);this.onlineScreenService_.update()};
_.V.updateName=function(N,t,O,H){this.localScreenService_.contains(N)?this.localScreenService_.updateName(N,t,O,H):(N="Updating name of unknown screen: "+N.name,la(this.JSC$20287_logName_,N),H(Error(N)))};
_.V.getScreens=function(N){return N?this.screens:BFn(this.screens,_.Aw(this.automaticScreens_,function(t){return!this.contains(t)},this))};
_.V.JSC$20302_getOnlineScreens=function(){return _.Aw(this.getScreens(!0),function(N){return this.onlineScreenService_.isOnline(N.id)},this)};
var pkf=function(N,t,O,H,A,Z){N.info("getAutomaticScreenByIds "+O+" / "+t);O||(O=N.deviceToScreenId_[t]);var U=N.getScreens(),C=O?n2(U,O):null;O&&(N.disableAutomaticScreenCache_||C)||(C=n2(U,t));if(C){C.uuid=t;var F=SI(N,C);SJm(N.onlineScreenService_,F,function(g){A(g?F:null)})}else O?bsn(N,O,(0,_.qn)(function(g){var B=SI(this,new f2({name:H,
screenId:O,loungeToken:g,dialId:t||""}));SJm(this.onlineScreenService_,B,function(c){A(c?B:null)})},N),Z):A(null)};
R4.prototype.JSC$20302_getScreenByPollingPairingCode=function(N,t,O,H,A,Z){var U=this;this.info("getDialScreenByPairingCode "+N+" / "+t);var C=new yNJ(this.JSC$20300_http_,N,t,O,H);C.subscribe("pairingComplete",function(F,g){_.F$(C);A(SI(U,F),g)});
C.subscribe("pairingFailed",function(F){_.F$(C);Z(F)});
C.start();return(0,_.qn)(C.stop,C)};
var L_q=function(N,t){for(var O=N.screens.length,H=0;H<O;++H)if(N.screens[H].name==t)return N.screens[H];return null};
R4.prototype.JSC$20302_getScreenByPairingCode=function(N,t,O,H){_.aD(rC(this.JSC$20300_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:N},timeout:5E3,onSuccess:(0,_.qn)(function(A,Z){A=new f2(Z.screen||{});if(!A.name||L_q(this,A.name)){a:{Z=A.name;for(var U=2,C=t(Z,U);L_q(this,C);){U++;if(U>20)break a;C=t(Z,U)}Z=C}A.name=Z}O(SI(this,A))},this),
onError:(0,_.qn)(function(A){H(Error("dl`"+A.status))},this),
onTimeout:(0,_.qn)(function(){H(Error("el"))},this)})};
var zdJ=function(N,t,O){SJm(N.onlineScreenService_,t,O)};
R4.prototype.disposeInternal=function(){_.F$(this.localScreenService_);_.F$(this.onlineScreenService_);R4.superClass_.disposeInternal.call(this)};
var bsn=function(N,t,O,H){N.info("requestLoungeToken_ for "+t);var A={postParams:{screen_ids:t},method:"POST",context:N,onSuccess:function(Z,U){Z=U&&U.screens||[];Z[0]&&Z[0].screenId==t?O(Z[0].loungeToken):H(Error("fl"))},
onError:function(){H(Error("gl"))}};
_.aD(rC(N.JSC$20300_http_,"/pairing/get_lounge_token_batch"),A)},YJ5=function(N){N.screens=N.localScreenService_.getScreens();
for(var t=_.WW.transpose(N.deviceToScreenId_),O=N.screens.length,H=0;H<O;++H){var A=N.screens[H];A.uuid=t[A.id]||""}N.info("Updated manual screens: "+aZ1(N.screens))};
R4.prototype.handleScreenChange_=function(){YJ5(this);this.publish("screenChange");this.onlineScreenService_.update()};
var TPJ=function(N){a1J(N);N.localScreenService_=new Gt(N.JSC$20300_http_);N.localScreenService_.subscribe("screenChange",(0,_.qn)(N.handleScreenChange_,N));YJ5(N);N.disableAutomaticScreenCache_||(N.automaticScreens_=UNf(_.b8("yt-remote-automatic-screen-cache")||[]));a1J(N);N.info("Initializing automatic screens: "+aZ1(N.automaticScreens_));N.onlineScreenService_=new uo(N.JSC$20300_http_,(0,_.qn)(N.getScreens,N,!0));N.onlineScreenService_.subscribe("screenChange",(0,_.qn)(function(){this.publish("onlineScreenChange")},
N))},SI=function(N,t){var O=N.get(t.id);
O?(O.uuid=t.uuid,t=O):((O=n2(N.automaticScreens_,t.uuid))?(O.id=t.id,O.token=t.token,t=O):N.automaticScreens_.push(t),N.disableAutomaticScreenCache_||TJ5(N));a1J(N);N.deviceToScreenId_[t.uuid]=t.id;_.ML("yt-remote-device-id-map",N.deviceToScreenId_,31536E3);return t},TJ5=function(N){N=_.Aw(N.automaticScreens_,function(t){return t.idType!="shortLived"});
_.ML("yt-remote-automatic-screen-cache",_.rc(N,VA5))},a1J=function(N){N.deviceToScreenId_=_.b8("yt-remote-device-id-map")||{}};
R4.prototype.dispose=R4.prototype.dispose;_.Od(vQ,_.cQ);var hZ=function(N,t){N.screen_=t;N.publish("sessionScreen",N.screen_)},wkn=function(N,t){N.screen_&&(N.screen_.token=t,SI(N.JSC$20304_screenService_,N.screen_));
N.publish("sessionScreen",N.screen_)};
vQ.prototype.onSessionStopped=function(N){this.isDisposed()||(N&&(MD(this,""+N),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
vQ.prototype.info=function(N){la(this.JSC$20304_logName_,N)};
var MD=function(N,t){la(N.JSC$20304_logName_,t)};
vQ.prototype.JSC$20306_getCastSession=function(){return null};
vQ.prototype.setDisplayStatus=function(N){var t=this.receiver_;N?(t.displayStatus=new chrome.cast.ReceiverDisplayStatus(N,[]),t.displayStatus.showStop=!0):t.displayStatus=null;chrome.cast.setReceiverDisplayStatus(t,(0,_.qn)(function(){this.info("Updated receiver status for "+t.friendlyName+": "+N)},this),(0,_.qn)(function(){MD(this,"Failed to update receiver status for: "+t.friendlyName)},this))};
vQ.prototype.disposeInternal=function(){this.setDisplayStatus("");vQ.superClass_.disposeInternal.call(this)};var bo=function(N,t,O){vQ.call(this,N,t,"CastSession");var H=this;this.config_=O;this.JSC$20309_session_=null;this.JSC$20309_boundSessionUpdate_=(0,_.qn)(this.JSC$20311_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.qn)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.pF(function(){ed5(H,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20309_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20309_isInitLoungeToken_=!1;this.JSC$20309_lastLoungeTokenRefreshError_="unknown"};
_.p(bo,vQ);_.V=bo.prototype;
_.V.setCastSession=function(N){if(this.JSC$20309_session_){if(this.JSC$20309_session_==N)return;MD(this,"Overriding cast session with new session object");Py1(this);this.JSC$20309_isInitLoungeToken_=!1;this.JSC$20309_lastLoungeTokenRefreshError_="unknown";this.JSC$20309_session_.removeUpdateListener(this.JSC$20309_boundSessionUpdate_);this.JSC$20309_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20309_session_=N;this.JSC$20309_session_.addUpdateListener(this.JSC$20309_boundSessionUpdate_);this.JSC$20309_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);Xk5(this,"getMdxSessionStatus")};
_.V.launchWithParams=function(N){this.info("launchWithParams no-op for Cast: "+(0,_.r3)(N))};
_.V.stop=function(){if(this.JSC$20309_session_)this.JSC$20309_session_.stop((0,_.qn)(function(){this.onSessionStopped()},this),(0,_.qn)(function(){this.onSessionStopped(Error("hl"))},this));
else this.onSessionStopped(Error("il"))};
_.V.setDisplayStatus=function(){};
_.V.disposeInternal=function(){this.info("disposeInternal");Py1(this);this.JSC$20309_session_&&(this.JSC$20309_session_.removeUpdateListener(this.JSC$20309_boundSessionUpdate_),this.JSC$20309_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20309_session_=null;vQ.prototype.disposeInternal.call(this)};
var kAi=function(N,t){_.zp(N.getLoungeTokenTimeoutKey_);N.getLoungeTokenTimeoutKey_=0;t==0?xNn(N):N.getLoungeTokenTimeoutKey_=_.pF(function(){xNn(N)},t)},xNn=function(N){Xk5(N,"getLoungeToken");
_.zp(N.onLoungeTokenTimeoutKey_);N.onLoungeTokenTimeoutKey_=_.pF(function(){qJr(N,null)},3E4)},Xk5=function(N,t){N.info("sendYoutubeMessage_: "+t+" "+(0,_.r3)(void 0));
var O={};O.type=t;N.JSC$20309_session_?N.JSC$20309_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",O,function(){},(0,_.qn)(function(){MD(this,"Failed to send message: "+t+".")},N)):MD(N,"Sending yt message without session: "+(0,_.r3)(O))};
bo.prototype.onYoutubeMessage_=function(N,t){if(!this.isDisposed())if(t)if(t=(0,_.SB)(t),_.mG(t))switch(N=""+t.type,t=t.data||{},this.info("onYoutubeMessage_: "+N+" "+(0,_.r3)(t)),N){case "mdxSessionStatus":ed5(this,t);break;case "loungeToken":qJr(this,t);break;default:MD(this,"Unknown youtube message: "+N)}else MD(this,"Unable to parse message.");else MD(this,"No data in message.")};
var f15=function(N,t){if(t)N.info("onConnectedScreenId_: Received screenId: "+t),N.screen_&&N.screen_.id==t||N.getScreen_(t,function(O){hZ(N,O)},function(){return N.onSessionStopped()},5);
else N.onSessionStopped(Error("jl"))},W_1=function(N,t,O){N.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(t));
var H=new f2(t);nA1(N,H,function(A){A?(N.JSC$20309_isInitLoungeToken_=!0,SI(N.JSC$20304_screenService_,H),hZ(N,H),N.JSC$20309_lastLoungeTokenRefreshError_="unknown",kAi(N,O)):(_.JO(Error("kl`"+JSON.stringify(t))),N.onSessionStopped())},5)},ed5=function(N,t){_.zp(N.sessionStatusTimeoutKey_);
N.sessionStatusTimeoutKey_=0;if(t)N.config_.enableCastLoungeToken&&t.loungeToken?t.deviceId?N.screen_&&N.screen_.uuid==t.deviceId||(t.loungeTokenRefreshIntervalMs?W_1(N,{name:N.receiver_.friendlyName,screenId:t.screenId,loungeToken:t.loungeToken,dialId:t.deviceId,screenIdType:"shortLived"},t.loungeTokenRefreshIntervalMs):(_.JO(Error("ml`"+JSON.stringify(t))),f15(N,t.screenId))):(_.JO(Error("ll`"+JSON.stringify(t))),f15(N,t.screenId)):f15(N,t.screenId);else N.onSessionStopped(Error("jl"))},qJr=function(N,
t){_.zp(N.onLoungeTokenTimeoutKey_);
N.onLoungeTokenTimeoutKey_=0;var O=null;if(t)if(t.loungeToken){var H;((H=N.screen_)==null?void 0:H.token)==t.loungeToken&&(O="staleLoungeToken")}else O="missingLoungeToken";else O="noLoungeTokenResponse";O?(N.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(t)+", error: "+O)),N.JSC$20309_lastLoungeTokenRefreshError_=O,kAi(N,3E4)):(wkn(N,t.loungeToken),N.JSC$20309_isInitLoungeToken_=!1,N.JSC$20309_lastLoungeTokenRefreshError_="unknown",kAi(N,t.loungeTokenRefreshIntervalMs))};
bo.prototype.getScreen_=function(N,t,O,H){_.zp(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;pkf(this.JSC$20304_screenService_,this.receiver_.label,N,this.receiver_.friendlyName,(0,_.qn)(function(A){A?t(A):H>=0?(MD(this,"Screen "+N+" appears to be offline. "+H+" retries left."),this.getScreenTimeoutKey_=_.pF((0,_.qn)(this.getScreen_,this,N,t,O,H-1),300)):O(Error("nl"))},this),O)};
var nA1=function(N,t,O,H){_.zp(N.JSC$20309_checkScreenAvailabilityTimeoutKey_);N.JSC$20309_checkScreenAvailabilityTimeoutKey_=0;zdJ(N.JSC$20304_screenService_,t,function(A){A||H<0?O(A):N.JSC$20309_checkScreenAvailabilityTimeoutKey_=_.pF(function(){nA1(N,t,O,H-1)},300)})};
bo.prototype.JSC$20306_getCastSession=function(){return this.JSC$20309_session_};
bo.prototype.JSC$20311_onSessionUpdate_=function(N){this.isDisposed()||N||(MD(this,"Cast session died."),this.onSessionStopped())};
var Py1=function(N){_.zp(N.getScreenTimeoutKey_);N.getScreenTimeoutKey_=0;_.zp(N.JSC$20309_checkScreenAvailabilityTimeoutKey_);N.JSC$20309_checkScreenAvailabilityTimeoutKey_=0;_.zp(N.sessionStatusTimeoutKey_);N.sessionStatusTimeoutKey_=0;_.zp(N.onLoungeTokenTimeoutKey_);N.onLoungeTokenTimeoutKey_=0;_.zp(N.getLoungeTokenTimeoutKey_);N.getLoungeTokenTimeoutKey_=0};var pw=function(N,t,O,H){vQ.call(this,N,t,"DialSession");this.config_=H;this.JSC$20313_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20313_theme_=O;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20313_deferredLaunchDeadlineTimer_=NaN;this.JSC$20313_boundSessionUpdate_=(0,_.qn)(this.JSC$20315_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20313_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20313_isInitLoungeToken_=!1;this.JSC$20313_lastLoungeTokenRefreshError_="unknown"};
_.p(pw,vQ);pw.prototype.setCastSession=function(N){this.JSC$20313_session_=N;this.JSC$20313_session_.addUpdateListener(this.JSC$20313_boundSessionUpdate_)};
pw.prototype.launchWithParams=function(N){this.connectData_=N;this.deferredLaunch_()};
pw.prototype.stop=function(){rN1(this);if(this.JSC$20313_session_)this.JSC$20313_session_.stop((0,_.qn)(this.onSessionStopped,this,null),(0,_.qn)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
pw.prototype.disposeInternal=function(){rN1(this);this.JSC$20313_session_&&this.JSC$20313_session_.removeUpdateListener(this.JSC$20313_boundSessionUpdate_);this.JSC$20313_session_=null;vQ.prototype.disposeInternal.call(this)};
var I1m=function(N){var t;return!!(N.config_.enableDialLoungeToken&&((t=N.JSC$20313_session_)==null?0:t.getDialAppInfo))},QS1=function(N){N.cancelPolling_=N.JSC$20304_screenService_.JSC$20302_getScreenByPollingPairingCode(N.reversePairingCode_,N.receiver_.label,N.receiver_.friendlyName,I1m(N),function(t,O){N.cancelPolling_=function(){};
N.JSC$20313_isInitLoungeToken_=!0;hZ(N,t);t.idType=="shortLived"&&O>0&&l1r(N,O)},function(t){N.cancelPolling_=function(){};
N.onSessionStopped(t)})};
pw.prototype.JSC$20315_onSessionUpdate_=function(N){this.isDisposed()||N||(MD(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var mNi=function(N){var t={};t.pairingCode=N.reversePairingCode_;t.theme=N.JSC$20313_theme_;ylm()&&(t.env_useStageMdx=1);return _.Tp(t)},EA1=function(N){return new Promise(function(t){N.reversePairingCode_=Jqm();
if(N.connectData_){var O=new chrome.cast.DialLaunchResponse(!0,mNi(N));t(O);QS1(N)}else N.deferredLaunch_=function(){_.zp(N.JSC$20313_deferredLaunchDeadlineTimer_);N.deferredLaunch_=function(){};
N.JSC$20313_deferredLaunchDeadlineTimer_=NaN;var H=new chrome.cast.DialLaunchResponse(!0,mNi(N));t(H);QS1(N)},N.JSC$20313_deferredLaunchDeadlineTimer_=_.pF(function(){N.deferredLaunch_()},100)})},Rd5=function(N,t,O){N.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(t));
var H=new f2(t);return(new Promise(function(A){GA5(N,H,function(Z){Z?(N.JSC$20313_isInitLoungeToken_=!0,SI(N.JSC$20304_screenService_,H),hZ(N,H),l1r(N,O)):_.JO(Error("pl`"+JSON.stringify(t)));A(Z)},5)})).then(function(A){return A?new chrome.cast.DialLaunchResponse(!1):EA1(N)})},vAO=function(N,t){var O=N.launchData_.receiver.label,H=N.receiver_.friendlyName;
return(new Promise(function(A){pkf(N.JSC$20304_screenService_,O,t,H,function(Z){Z&&Z.token&&hZ(N,Z);A(Z)},function(Z){MD(N,"Failed to get DIAL screen: "+Z);
A(null)})})).then(function(A){return A&&A.token?new chrome.cast.DialLaunchResponse(!1):EA1(N)})},GA5=function(N,t,O,H){_.zp(N.JSC$20313_checkScreenAvailabilityTimeoutKey_);
N.JSC$20313_checkScreenAvailabilityTimeoutKey_=0;zdJ(N.JSC$20304_screenService_,t,function(A){A||H<0?O(A):N.JSC$20313_checkScreenAvailabilityTimeoutKey_=_.pF(function(){GA5(N,t,O,H-1)},300)})},l1r=function(N,t){N.info("getDialAppInfoWithTimeout_ "+t);
I1m(N)&&(_.zp(N.getDialAppInfoTimeoutKey_),N.getDialAppInfoTimeoutKey_=0,t==0?JN1(N):N.getDialAppInfoTimeoutKey_=_.pF(function(){JN1(N)},t))},JN1=function(N){I1m(N)&&N.JSC$20313_session_.getDialAppInfo(function(t){N.info("getDialAppInfo dialLaunchData: "+JSON.stringify(t));
t=t.extraData||{};var O=null;if(t.loungeToken){var H;((H=N.screen_)==null?void 0:H.token)==t.loungeToken&&(O="staleLoungeToken")}else O="missingLoungeToken";O?(N.JSC$20313_lastLoungeTokenRefreshError_=O,l1r(N,3E4)):(N.JSC$20313_isInitLoungeToken_=!1,N.JSC$20313_lastLoungeTokenRefreshError_="unknown",wkn(N,t.loungeToken),l1r(N,t.loungeTokenRefreshIntervalMs))},function(t){N.info("getDialAppInfo error: "+t);
N.JSC$20313_lastLoungeTokenRefreshError_="noLoungeTokenResponse";l1r(N,3E4)})},rN1=function(N){_.zp(N.JSC$20313_checkScreenAvailabilityTimeoutKey_);
N.JSC$20313_checkScreenAvailabilityTimeoutKey_=0;_.zp(N.getDialAppInfoTimeoutKey_);N.getDialAppInfoTimeoutKey_=0;N.cancelPolling_();N.cancelPolling_=function(){};
_.zp(N.JSC$20313_deferredLaunchDeadlineTimer_)};var Lw=function(N,t){vQ.call(this,N,t,"ManualSession");this.JSC$20317_deferredLaunchDeadlineTimer_=_.pF((0,_.qn)(this.launchWithParams,this,null),150)};
_.p(Lw,vQ);Lw.prototype.stop=function(){this.onSessionStopped()};
Lw.prototype.setCastSession=function(){};
Lw.prototype.launchWithParams=function(){_.zp(this.JSC$20317_deferredLaunchDeadlineTimer_);this.JSC$20317_deferredLaunchDeadlineTimer_=NaN;var N=n2(this.JSC$20304_screenService_.getScreens(),this.receiver_.label);if(N)hZ(this,N);else this.onSessionStopped(Error("ql"))};
Lw.prototype.disposeInternal=function(){_.zp(this.JSC$20317_deferredLaunchDeadlineTimer_);this.JSC$20317_deferredLaunchDeadlineTimer_=NaN;vQ.prototype.disposeInternal.call(this)};var Nx=function(N,t){_.cQ.call(this);this.config_=t;this.JSC$20320_screenService_=N;this.JSC$20320_appId_=t.appId||"233637DE";this.JSC$20320_theme_=t.theme||"cl";this.disableDial_=t.disableCastApi||!1;this.forceMirroring_=t.forceMirroring||!1;this.JSC$20320_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.qn)(this.onReceiverAction_,this)};
_.p(Nx,_.cQ);
Nx.prototype.init=function(N,t){chrome.cast.timeout.requestSession=3E4;var O=new chrome.cast.SessionRequest(this.JSC$20320_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.h("desktop_enable_cast_connect")&&(O.androidReceiverCompatible=!0);this.disableDial_||(O.dialRequest=new chrome.cast.DialRequest("YouTube"));var H=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;N=N||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var A=(0,_.qn)(this.onReceiverUpdated_,
this);O=new chrome.cast.ApiConfig(O,(0,_.qn)(this.onSessionEstablished_,this),A,H,N);O.customDialLaunchCallback=(0,_.qn)(this.onDialLaunchRequested_,this);chrome.cast.initialize(O,(0,_.qn)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),hNn(),this.JSC$20320_screenService_.subscribe("onlineScreenChange",(0,_.qn)(this.JSC$20322_onScreenChange_,this)),this.customReceivers_=oAn(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.qn)(function(Z){this.warn_("Failed to set initial custom receivers: "+(0,_.r3)(Z))},this)),this.publish("yt-remote-cast2-availability-change",sSx(this)),t(!0))},this),(0,_.qn)(function(Z){this.warn_("Failed to initialize API: "+(0,_.r3)(Z));
t(!1)},this))};
Nx.prototype.setConnectedScreenStatus=function(N,t){zF("Setting connected screen ID: "+N+" -> "+t);if(this.JSC$20320_session_){var O=this.JSC$20320_session_.screen_;if(!N||O&&O.id!=N)zF("Unsetting old screen status: "+this.JSC$20320_session_.receiver_.friendlyName),Y$(this,null)}if(N&&t){if(!this.JSC$20320_session_){N=n2(this.JSC$20320_screenService_.getScreens(),N);if(!N){zF("setConnectedScreenStatus: Unknown screen.");return}if(N.idType=="shortLived"){zF("setConnectedScreenStatus: Screen with id type to be short lived.");
return}O=N75(this,N);O||(zF("setConnectedScreenStatus: Connected receiver not custom..."),O=new chrome.cast.Receiver(N.uuid?N.uuid:N.id,N.name),O.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(O),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.qn)(function(H){this.warn_("Failed to set initial custom receivers: "+(0,_.r3)(H))},this)));
zF("setConnectedScreenStatus: new active receiver: "+O.friendlyName);Y$(this,new Lw(this.JSC$20320_screenService_,O),!0)}this.JSC$20320_session_.setDisplayStatus(t)}else zF("setConnectedScreenStatus: no screen.")};
var N75=function(N,t){return t?_.ey(N.customReceivers_,function(O){return NPr(t,O.label)},N):null};
Nx.prototype.setLaunchParams=function(N){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20320_session_?this.JSC$20320_session_.launchWithParams(N):this.warn_("Setting connection data without a session")};
Nx.prototype.JSC$20322_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20320_session_?(this.JSC$20320_session_.stop(),Y$(this,null)):zF("Stopping non-existing session")};
Nx.prototype.requestSession=function(){chrome.cast.requestSession((0,_.qn)(this.onSessionEstablished_,this),(0,_.qn)(this.onSessionRequestFailed_,this))};
Nx.prototype.disposeInternal=function(){this.JSC$20320_screenService_.unsubscribe("onlineScreenChange",(0,_.qn)(this.JSC$20322_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.rt(_.s2("yt.mdx.remote.debug.handlers_")||[],iSm);_.F$(this.JSC$20320_session_);_.cQ.prototype.disposeInternal.call(this)};
var zF=function(N){la("Controller",N)};
Nx.prototype.warn_=function(N){la("Controller",N)};
var iSm=function(N){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(N)},sSx=function(N){return N.hasCastReceiver_||!!N.customReceivers_.length||!!N.JSC$20320_session_},Y$=function(N,t,O){t!=N.JSC$20320_session_&&(_.F$(N.JSC$20320_session_),(N.JSC$20320_session_=t)?(O?N.publish("yt-remote-cast2-receiver-resumed",t.receiver_):N.publish("yt-remote-cast2-receiver-selected",t.receiver_),t.subscribe("sessionScreen",(0,_.qn)(N.onSessionScreen_,N,t)),t.subscribe("sessionFailed",
function(){return tZ5(N,t)}),t.screen_?N.publish("yt-remote-cast2-session-change",t.screen_):O&&N.JSC$20320_session_.launchWithParams(null)):N.publish("yt-remote-cast2-session-change",null))},tZ5=function(N,t){N.JSC$20320_session_==t&&N.publish("yt-remote-cast2-session-failed")};
_.V=Nx.prototype;_.V.onSessionScreen_=function(N,t){this.JSC$20320_session_==N&&(t||Y$(this,null),this.publish("yt-remote-cast2-session-change",t))};
_.V.onReceiverAction_=function(N,t){if(!this.isDisposed())if(N)switch(N.friendlyName=chrome.cast.unescape(N.friendlyName),zF("onReceiverAction_ "+N.label+" / "+N.friendlyName+"-- "+t),t){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20320_session_)if(this.JSC$20320_session_.receiver_.label!=N.label)zF("onReceiverAction_: Stopping active receiver: "+this.JSC$20320_session_.receiver_.friendlyName),this.JSC$20320_session_.stop();else{zF("onReceiverAction_: Casting to active receiver.");this.JSC$20320_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20320_session_.screen_);break}switch(N.receiverType){case chrome.cast.ReceiverType.CUSTOM:Y$(this,new Lw(this.JSC$20320_screenService_,N));break;case chrome.cast.ReceiverType.DIAL:Y$(this,new pw(this.JSC$20320_screenService_,N,this.JSC$20320_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Y$(this,new bo(this.JSC$20320_screenService_,N,this.config_));break;default:this.warn_("Unknown receiver type: "+N.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20320_session_&&
this.JSC$20320_session_.receiver_.label==N.label?this.JSC$20320_session_.stop():this.warn_("Stopping receiver w/o session: "+N.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.V.onDialLaunchRequested_=function(N){if(this.isDisposed())return Promise.reject(Error("rl"));var t=N.receiver;t.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+t.friendlyName),t.receiverType=chrome.cast.ReceiverType.DIAL);var O=this.JSC$20320_session_?this.JSC$20320_session_.receiver_:null;if(!O||O.label!=t.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+t.friendlyName),Promise.reject(Error("sl"));if(O&&O.label==t.label&&O.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20320_session_.screen_)return zF("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20320_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+O.receiverType+'" to "dial" for '+t.friendlyName);Y$(this,new pw(this.JSC$20320_screenService_,t,this.JSC$20320_theme_,this.config_))}t=this.JSC$20320_session_;t.launchData_=N;t.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(N=t.launchData_.extraData||{},O=N.screenId||null,I1m(t)&&N.loungeToken?N.loungeTokenRefreshIntervalMs?N=Rd5(t,{name:t.receiver_.friendlyName,screenId:N.screenId,loungeToken:N.loungeToken,dialId:t.launchData_.receiver.label,screenIdType:"shortLived"},N.loungeTokenRefreshIntervalMs):(_.JO(Error("ol`"+JSON.stringify(N))),N=vAO(t,O)):N=vAO(t,O)):N=EA1(t);return N};
_.V.onSessionEstablished_=function(N){var t=this;if(!this.isDisposed()&&!this.forceMirroring_){zF("New cast session ID: "+N.sessionId);var O=N.receiver;if(O.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20320_session_)if(O.receiverType==chrome.cast.ReceiverType.CAST)zF("Got resumed cast session before resumed mdx connection."),O.friendlyName=chrome.cast.unescape(O.friendlyName),Y$(this,new bo(this.JSC$20320_screenService_,O,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var H=this.JSC$20320_session_.receiver_,A=n2(this.JSC$20320_screenService_.getScreens(),H.label);A&&NPr(A,O.label)&&H.receiverType!=chrome.cast.ReceiverType.CAST&&O.receiverType==chrome.cast.ReceiverType.CAST&&(zF("onSessionEstablished_: manual to cast session change "+O.friendlyName),_.F$(this.JSC$20320_session_),this.JSC$20320_session_=new bo(this.JSC$20320_screenService_,O,this.config_),this.JSC$20320_session_.subscribe("sessionScreen",(0,_.qn)(this.onSessionScreen_,this,this.JSC$20320_session_)),
this.JSC$20320_session_.subscribe("sessionFailed",function(){return tZ5(t,t.JSC$20320_session_)}),this.JSC$20320_session_.launchWithParams(null));
this.JSC$20320_session_.setCastSession(N)}}};
_.V.JSC$20322_getCastSession=function(){return this.JSC$20320_session_?this.JSC$20320_session_.JSC$20306_getCastSession():null};
_.V.onSessionRequestFailed_=function(N){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.r3)(N)),N.code!=chrome.cast.ErrorCode.CANCEL&&Y$(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.V.onReceiverUpdated_=function(N){zF("Receiver availability updated: "+N);if(!this.isDisposed()){var t=sSx(this);this.hasCastReceiver_=N==chrome.cast.ReceiverAvailability.AVAILABLE;sSx(this)!=t&&this.publish("yt-remote-cast2-availability-change",sSx(this))}};
var oAn=function(N){var t=N.JSC$20320_screenService_.JSC$20302_getOnlineScreens(),O=N.JSC$20320_session_&&N.JSC$20320_session_.receiver_;N=_.rc(t,function(H){O&&NPr(H,O.label)&&(O=null);var A=H.uuid?H.uuid:H.id,Z=N75(this,H);Z?(Z.label=A,Z.friendlyName=H.name):(Z=new chrome.cast.Receiver(A,H.name),Z.receiverType=chrome.cast.ReceiverType.CUSTOM);return Z},N);
O&&(O.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(O=new chrome.cast.Receiver(O.label,O.friendlyName),O.receiverType=chrome.cast.ReceiverType.CUSTOM),N.push(O));return N};
Nx.prototype.JSC$20322_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=oAn(this),zF("Updating custom receivers: "+(0,_.r3)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.qn)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",sSx(this)))};
Nx.prototype.setLaunchParams=Nx.prototype.setLaunchParams;Nx.prototype.setConnectedScreenStatus=Nx.prototype.setConnectedScreenStatus;Nx.prototype.stopSession=Nx.prototype.JSC$20322_stopSession;Nx.prototype.getCastSession=Nx.prototype.JSC$20322_getCastSession;Nx.prototype.requestSession=Nx.prototype.requestSession;Nx.prototype.init=Nx.prototype.init;Nx.prototype.dispose=Nx.prototype.dispose;var Ojm=_.mp(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),RN5=[],qIx=_.ju(Ojm);var Hjm=function(N){N.audioTrackId=null;N.trackData=null;N.playerState=-1;N.hasPrevious=!1;N.hasNext=!1;N.playerTime_=0;N.playerTimeAt_=_.tw();N.seekableStart_=0;N.seekableEnd_=0;N.duration_=0;N.loadedTime=0;N.liveIngestionTime_=NaN;N.isLive_=!1};
_.V=tW.prototype;
_.V.reset=function(N){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;N&&(this.index=N.index,this.listId=N.listId,this.videoId=N.videoId,this.playerState=N.playerState,this.volume=N.volume,this.muted=N.muted,this.audioTrackId=N.audioTrackId,this.trackData=N.trackData,this.hasPrevious=N.hasPrevious,this.hasNext=N.hasNext,this.playerTime_=N.playerTime,this.playerTimeAt_=N.playerTimeAt,this.seekableStart_=N.seekableStart,this.seekableEnd_=N.seekableEnd,this.duration_=N.duration,this.loadedTime=
N.loadedTime,this.liveIngestionTime_=N.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.V.stopPlayer=function(){this.index=-1;this.videoId="";Hjm(this)};
_.V.isPlaying=function(){return this.playerState==1};
_.V.isBuffering=function(){return this.playerState==3};
_.V.isAdPlaying=function(){return this.playerState==1081};
var as=function(N,t){N.playerTime_=t;N.playerTimeAt_=_.tw()},A95=function(N){switch(N.playerState){case 1:case 1081:return(_.tw()-N.playerTimeAt_)/1E3+N.playerTime_;
case -1E3:return 0}return N.playerTime_};
tW.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.tw()-this.playerTimeAt_)/1E3:0):this.duration_};
var Zjf=function(N,t,O){var H=N.videoId;N.videoId=t;N.index=O;t!=H&&Hjm(N)},VZm=function(N){var t={};
t.index=N.index;t.listId=N.listId;t.videoId=N.videoId;t.playerState=N.playerState;t.volume=N.volume;t.muted=N.muted;t.audioTrackId=N.audioTrackId;t.trackData=_.WW.unsafeClone(N.trackData);t.hasPrevious=N.hasPrevious;t.hasNext=N.hasNext;t.playerTime=N.playerTime_;t.playerTimeAt=N.playerTimeAt_;t.seekableStart=N.seekableStart_;t.seekableEnd=N.seekableEnd_;t.duration=N.duration_;t.loadedTime=N.loadedTime;t.liveIngestionTime=N.liveIngestionTime_;return t};
tW.prototype.clone=function(){return new tW(VZm(this))};var Ze=function(N,t){_.cQ.call(this);var O=this;this.state_=0;this.connection_=N;this.contextSubscriptions_=[];this.actionQueue_=new ngf;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.qn)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.qn)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.qn)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.qn)(this.onCloudviewAvailabilityChange_,this);var H=0;N?(H=N.getProxyState(),
H!=3&&(N.subscribe("proxyStateChange",this.setState_,this),DXr(this))):H=3;H!=0&&(t?this.setState_(H):_.pF(function(){O.setState_(H)},0));
(N=sCf())&&UXm(this,N);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.p(Ze,_.cQ);Ze.prototype.getState=function(){return this.state_};
Ze.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Ze.prototype.reconnect=function(){this.connection_.reconnect()};
var TF=function(N){return new tW(N.connection_.getPlayerContextData())};
_.V=Ze.prototype;_.V.play=function(){wL(this)?(this.castMedia_?this.castMedia_.play(null,_.YG,Cmq(this,"play")):eI(this,"play"),KiO(this,1,A95(TF(this))),this.publish("remotePlayerChange")):P_(this,this.play)};
_.V.pause=function(){wL(this)?(this.castMedia_?this.castMedia_.pause(null,_.YG,Cmq(this,"pause")):eI(this,"pause"),KiO(this,2,A95(TF(this))),this.publish("remotePlayerChange")):P_(this,this.pause)};
_.V.seekTo=function(N){if(wL(this)){if(this.castMedia_){var t=TF(this),O=new chrome.cast.media.SeekRequest;O.currentTime=N;t.isPlaying()||t.isBuffering()?O.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:O.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(O,_.YG,Cmq(this,"seekTo",{newTime:N}))}else eI(this,"seekTo",{newTime:N});KiO(this,3,N);this.publish("remotePlayerChange")}else P_(this,_.Fu(this.seekTo,N))};
_.V.stop=function(){if(wL(this)){this.castMedia_?this.castMedia_.stop(null,_.YG,Cmq(this,"stopVideo")):eI(this,"stopVideo");var N=TF(this);N.stopPlayer();Xw(this,N);this.publish("remotePlayerChange")}else P_(this,this.stop)};
_.V.setVolume=function(N,t){if(wL(this)){var O=TF(this);if(this.castSession_){if(O.volume!=N){var H=Math.round(N)/100;this.castSession_.setReceiverVolumeLevel(H,(0,_.qn)(function(){QF("set receiver volume: "+H)},this),(0,_.qn)(function(){this.warn_("failed to set receiver volume.")},this))}O.muted!=t&&this.castSession_.setReceiverMuted(t,(0,_.qn)(function(){QF("set receiver muted: "+t)},this),(0,_.qn)(function(){this.warn_("failed to set receiver muted.")},this))}else{var A={volume:N,
muted:t};O.volume!=-1&&(A.delta=N-O.volume);eI(this,"setVolume",A)}O.muted=t;O.volume=N;Xw(this,O)}else P_(this,_.Fu(this.setVolume,N,t))};
_.V.setAudioTrack=function(N,t){wL(this)?(t=t.getLanguageInfo().getId(),eI(this,"setAudioTrack",{videoId:N,audioTrackId:t}),N=TF(this),N.audioTrackId=t,Xw(this,N)):P_(this,_.Fu(this.setAudioTrack,N,t))};
_.V.addVideo=function(N){wL(this)?eI(this,"addVideo",{videoId:N}):P_(this,_.Fu(this.addVideo,N))};
_.V.addPlaylist=function(N){wL(this)?eI(this,"addVideos",{listId:N}):P_(this,_.Fu(this.addPlaylist,N))};
_.V.addVideos=function(N){N.length==0?this.warn_("Ignore add videos request due to empty list"):wL(this)?eI(this,"addVideos",{videoIds:N.join(",")}):P_(this,_.Fu(this.addVideos,N))};
_.V.JSC$20332_removeVideo=function(N){wL(this)?eI(this,"removeVideo",{videoId:N}):P_(this,_.Fu(this.JSC$20332_removeVideo,N))};
_.V.JSC$20332_insertVideo=function(N){wL(this)?eI(this,"insertVideo",{videoId:N}):P_(this,_.Fu(this.JSC$20332_insertVideo,N))};
_.V.playVideo=function(N,t,O,H,A,Z,U){H=H===void 0?null:H;A=A===void 0?null:A;Z=Z===void 0?null:Z;U=U===void 0?null:U;var C=TF(this),F={videoId:N};O!==void 0&&(F.currentIndex=O);Zjf(C,N,O||0);t!==void 0&&(as(C,t),F.currentTime=t);H&&(F.listId=H);A&&(F.playerParams=A);Z&&(F.clickTrackingParams=Z);U&&(F.locationInfo=(0,_.r3)(U));eI(this,"setPlaylist",F);H||Xw(this,C)};
_.V.nextVideo=function(N,t){if(wL(this)){if(N&&t){var O=TF(this);Zjf(O,N,t);Xw(this,O)}eI(this,"next")}else P_(this,_.Fu(this.nextVideo,N,t))};
_.V.clearPlaylist=function(){if(wL(this)){eI(this,"clearPlaylist");var N=TF(this);N.reset();Xw(this,N);this.publish("remotePlayerChange")}else P_(this,this.clearPlaylist)};
_.V.dispose=function(){if(this.state_!=3){var N=this.state_;this.state_=3;this.publish("proxyStateChange",N,this.state_)}_.cQ.prototype.dispose.call(this)};
_.V.disposeInternal=function(){FiO(this);this.connection_=null;this.actionQueue_.clear();UXm(this,null);_.cQ.prototype.disposeInternal.call(this)};
var DXr=function(N){_.Z9("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(t){this.contextSubscriptions_.push(this.connection_.subscribe(t,_.Fu(this.onProxyEvent_,t),this))},N)},FiO=function(N){_.Z9(N.contextSubscriptions_,function(t){this.connection_.unsubscribeByKey(t)},N);
N.contextSubscriptions_.length=0},wL=function(N){return N.getState()==1},P_=function(N,t){N.actionQueue_.getCount()<50&&N.actionQueue_.enqueue(t)},KiO=function(N,t,O){var H=TF(N);
as(H,O);H.playerState!=-1E3&&(H.playerState=t);Xw(N,H)},eI=function(N,t,O){N.connection_.sendMessage(t,O)},Xw=function(N,t){FiO(N);
N.connection_.setPlayerContextData(VZm(t));DXr(N)};
Ze.prototype.setState_=function(N){if((N!=this.state_||N==2)&&this.state_!=3&&N!=0){var t=this.state_;this.state_=N;this.publish("proxyStateChange",t,N);if(N==1)for(;!this.actionQueue_.isEmpty();)N=this.actionQueue_,fU5(N),N.front_.pop().apply(this);else N==3&&this.dispose()}};
Ze.prototype.onProxyEvent_=function(N,t){this.publish(N,t)};
var UXm=function(N,t){N.castSession_&&(N.castSession_.removeUpdateListener(N.boundCastStatusListener_),N.castSession_.removeMediaListener(N.boundCastMediaListener_),N.onCastMediaChange_(null));N.castSession_=t;if(N.castSession_&&(QF("Setting cast session: "+N.castSession_.sessionId),N.castSession_.addUpdateListener(N.boundCastStatusListener_),N.castSession_.addMediaListener(N.boundCastMediaListener_),N.castSession_.media.length))N.onCastMediaChange_(N.castSession_.media[0])};
Ze.prototype.onCastStatusUpdate_=function(N){if(!N)this.onCastMediaChange_(null),UXm(this,null);else if(this.castSession_.receiver.volume){N=this.castSession_.receiver.volume;var t=TF(this),O=Math.round(100*N.level||0);if(t.volume!=O||t.muted!=N.muted)QF("Cast volume update: "+N.level+(N.muted?" muted":"")),t.volume=O,t.muted=!!N.muted,Xw(this,t)}};
Ze.prototype.onCastMediaChange_=function(N){QF("Cast media: "+!!N);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=N)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),dX5(this),this.publish("remotePlayerChange")};
var dX5=function(N){var t=N.castMedia_.media,O=N.castMedia_.customData;if(t&&O){var H=TF(N);t.contentId!=H.videoId&&QF("Cast changing video to: "+t.contentId);H.videoId=t.contentId;H.playerState=O.playerState;as(H,N.castMedia_.getEstimatedTime());Xw(N,H)}else QF("No cast media video. Ignoring state update.")};
Ze.prototype.onCastMediaUpdate_=function(N){if(N)dX5(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Ze.prototype.onCloudviewAvailabilityChange_=function(){var N=sCf();N&&UXm(this,N)};
Ze.prototype.warn_=function(N){la("CP",N)};
var Cmq=function(N,t,O){return(0,_.qn)(function(H){this.warn_("Failed to "+t+" with cast v2 channel. Error code: "+H.code);H.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+t+" using MDx browser channel."),eI(this,t,O))},N)};var Vn=function(N,t,O,H){H=H===void 0?!1:H;_.cQ.call(this);var A=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$20337_http_=N;this.enableConnectWithInitialState_=H;this.listeners_.push(_.BX(window,"beforeunload",function(){A.JSC$20340_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new tW;this.currentScreenId_=t.id;this.currentScreenIdType_=t.idType;this.channelService=jCf(this.JSC$20337_http_,O,this.JSC$20340_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){g4O(A)});
this.channelService.listen("channelClosed",function(){x$("Channel closed");isNaN(A.connectTimerId_)?d4f(!0):d4f();A.dispose()});
this.channelService.listen("channelError",function(Z){d4f();isNaN(A.getReconnectTimeout_())?(Z==1&&A.currentScreenIdType_=="shortLived"&&A.publish("browserChannelAuthError",Z),x$("Channel error: "+Z+" without reconnection"),A.dispose()):(A.reconnecting_=!0,x$("Channel error: "+Z+" with reconnection in "+A.getReconnectTimeout_()+" ms"),y9n(A,2))});
this.channelService.listen("channelMessage",function(Z){B75(A,Z)});
this.channelService.setLoungeToken(t.token);this.subscribe("remoteQueueChange",function(){var Z=A.playerContext_.videoId;HS1()&&_.ML("yt-remote-session-video-id",Z)})};
_.p(Vn,_.cQ);
Vn.prototype.connect=function(N,t){if(t){var O=t.listId,H=t.videoId,A=t.videoIds,Z=t.playerParams,U=t.clickTrackingParams,C=t.index,F={videoId:H},g=t.currentTime,B=t.locationInfo;t=t.loopMode;g!==void 0&&(F.currentTime=g<=5?0:g);Z&&(F.playerParams=Z);B&&(F.locationInfo=B);U&&(F.clickTrackingParams=U);O&&(F.listId=O);A&&A.length>0&&(F.videoIds=A.join(","));C!==void 0&&(F.currentIndex=C);this.enableConnectWithInitialState_&&(F.loopMode=t||"LOOP_MODE_OFF");O&&(this.playerContext_.listId=O);this.playerContext_.videoId=
H;this.playerContext_.index=C||0;this.playerContext_.state=3;as(this.playerContext_,g);this.autoplayMode_="UNSUPPORTED";O=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";x$("Connecting with "+O+" and params: "+(0,_.r3)(F));this.channelService.connect({method:O,params:(0,_.r3)(F)},N,U41())}else x$("Connecting without params"),this.channelService.connect({},N,U41());c95(this)};
Vn.prototype.setLoungeToken=function(N){this.channelService.setLoungeToken(N)};
Vn.prototype.dispose=function(){this.isDisposed()||(_.Ba("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),y9n(this,3));_.cQ.prototype.dispose.call(this)};
Vn.prototype.disposeInternal=function(){$Xz(this);jF5(this);ij1(this);_.zp(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.zp(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.gJp(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.cQ.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var uv5=function(N){return _.ey(N.connectedDevices_,function(t){return t.type=="LOUNGE_SCREEN"})},x$=function(N){la("conn",N)},y9n=function(N,t){N.publish("proxyStateChange",t)},c95=function(N){N.connectTimerId_=_.pF(function(){x$("Connecting timeout");
N.JSC$20340_disconnect_(1)},2E4)},$Xz=function(N){_.zp(N.connectTimerId_);
N.connectTimerId_=NaN},ij1=function(N){_.zp(N.reconnectedCheckScreenTimeout_);
N.reconnectedCheckScreenTimeout_=NaN},hqf=function(N){jF5(N);
N.playingSyncTimerId_=_.pF(function(){SRn(N,"getNowPlaying")},2E4)},jF5=function(N){_.zp(N.playingSyncTimerId_);
N.playingSyncTimerId_=NaN},g4O=function(N){x$("Channel opened");
N.reconnecting_&&(N.reconnecting_=!1,ij1(N),N.reconnectedCheckScreenTimeout_=_.pF(function(){x$("Timing out waiting for a screen.");N.JSC$20340_disconnect_(1)},15E3))},bji=function(N,t){var O=null;
if(t){var H=uv5(N);H&&(O={clientName:H.clientName,deviceMake:H.brand,deviceModel:H.model,osVersion:H.osVersion})}_.Ba("yt.mdx.remote.remoteClient_",O);t&&($Xz(N),ij1(N));O=N.channelService.isChannelOpened()&&isNaN(N.connectTimerId_);t==O?t&&(y9n(N,1),SRn(N,"getSubtitlesTrack")):t?(N.getOtherConnectedRemoteId_()&&N.playerContext_.reset(),y9n(N,1),SRn(N,"getNowPlaying"),MZz(N)):N.JSC$20340_disconnect_(1)},phn=function(N,t){var O=t.params.videoId;
delete t.params.videoId;O==N.playerContext_.videoId&&(_.WW.isEmpty(t.params)?N.playerContext_.trackData=null:N.playerContext_.trackData=t.params,N.publish("remotePlayerChange"))},LiJ=function(N,t,O){var H=t.params.videoId||t.params.video_id,A=parseInt(t.params.currentIndex,10);
N.playerContext_.listId=t.params.listId||N.playerContext_.listId;Zjf(N.playerContext_,H,A);N.publish("remoteQueueChange",O)},zqx=function(N,t){t.params=t.params||{};
LiJ(N,t,"NOW_PLAYING_MAY_CHANGE");N.onStateChange_(t);N.publish("autoplayDismissed")};
Vn.prototype.onStateChange_=function(N){var t=parseInt(N.params.currentTime||N.params.current_time,10);as(this.playerContext_,isNaN(t)?0:t);t=parseInt(N.params.state,10);t=isNaN(t)?-1:t;t==-1&&this.playerContext_.playerState==-1E3&&(t=-1E3);this.playerContext_.playerState=t;t=Number(N.params.loadedTime);this.playerContext_.loadedTime=isNaN(t)?0:t;t=Number(N.params.duration);this.playerContext_.duration_=isNaN(t)?0:t;t=this.playerContext_;var O=Number(N.params.liveIngestionTime);t.liveIngestionTime_=
O;t.isLive_=isNaN(O)?!1:!0;t=this.playerContext_;O=Number(N.params.seekableStartTime);N=Number(N.params.seekableEndTime);t.seekableStart_=isNaN(O)?0:O;t.seekableEnd_=isNaN(N)?0:N;this.playerContext_.playerState==1?hqf(this):jF5(this);this.publish("remotePlayerChange")};
Vn.prototype.onAdStateChange_=function(N){if(this.playerContext_.playerState!=-1E3){var t=1085;switch(parseInt(N.params.adState,10)){case 1:t=1081;break;case 2:t=1084;break;case 0:t=1083}this.playerContext_.playerState=t;N=parseInt(N.params.currentTime,10);as(this.playerContext_,isNaN(N)?0:N);this.publish("remotePlayerChange")}};
var YRx=function(N,t){var O=t.params.muted=="true";N.playerContext_.volume=parseInt(t.params.volume,10);N.playerContext_.muted=O;N.publish("remotePlayerChange")},aki=function(N,t){N.autoplayVideoId_=t.params.videoId;
N.publish("nowAutoplaying",parseInt(t.params.timeout,10))},T75=function(N,t){N.autoplayVideoId_=t.params.videoId||null;
N.publish("autoplayUpNext",N.autoplayVideoId_)},whJ=function(N,t){N.autoplayMode_=t.params.autoplayMode;
N.publish("autoplayModeChange",N.autoplayMode_);N.autoplayMode_=="DISABLED"&&N.publish("autoplayDismissed")},eqz=function(N,t){var O=t.params.hasNext=="true";
N.playerContext_.hasPrevious=t.params.hasPrevious=="true";N.playerContext_.hasNext=O;N.publish("previousNextChange")};
Vn.prototype.isCapabilitySupportedOnConnectedDevices_=function(N){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var t=_.D(this.connectedDevices_),O=t.next();!O.done;O=t.next())if(!O.value.capabilities.has(N))return!1;return!0};
var B75=function(N,t){t=t.message;t.params?x$("Received: action="+t.action+", params="+(0,_.r3)(t.params)):x$("Received: action="+t.action+" {}");switch(t.action){case "loungeStatus":t=(0,_.SB)(t.params.devices);N.connectedDevices_=_.rc(t,function(H){return new io(H)});
t=!!_.ey(N.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"});
bji(N,t);t=N.isCapabilitySupportedOnConnectedDevices_("mlm");N.publish("multiStateLoopEnabled",t);break;case "loungeScreenDisconnected":yd5(N.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"});
bji(N,!1);break;case "remoteConnected":var O=new io((0,_.SB)(t.params.device));_.ey(N.connectedDevices_,function(H){return H.equals(O)})||_.Ttg(N.connectedDevices_,O);
break;case "remoteDisconnected":O=new io((0,_.SB)(t.params.device));yd5(N.connectedDevices_,function(H){return H.equals(O)});
break;case "gracefulDisconnect":break;case "playlistModified":LiJ(N,t,"QUEUE_MODIFIED");break;case "nowPlaying":zqx(N,t);break;case "onStateChange":N.onStateChange_(t);break;case "onAdStateChange":N.onAdStateChange_(t);break;case "onVolumeChanged":YRx(N,t);break;case "onSubtitlesTrackChanged":phn(N,t);break;case "nowAutoplaying":aki(N,t);break;case "autoplayDismissed":N.publish("autoplayDismissed");break;case "autoplayUpNext":T75(N,t);break;case "onAutoplayModeChanged":whJ(N,t);break;case "onHasPreviousNextChanged":eqz(N,
t);break;case "requestAssistedSignIn":N.publish("assistedSignInRequested",t.params.authCode);break;case "onLoopModeChanged":N.publish("loopModeChange",t.params.loopMode);break;default:x$("Unrecognized action: "+t.action)}};
_.V=Vn.prototype;_.V.getProxyState_=function(){var N=3;this.isDisposed()||(N=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(N=1):N=2);return N};
_.V.JSC$20340_disconnect_=function(N){x$("Disconnecting with "+N);_.Ba("yt.mdx.remote.remoteClient_",null);$Xz(this);this.publish("beforeDisconnect",N);N==1&&d4f();this.channelService.disconnect(N);this.dispose()};
_.V.getPlayerContextData_=function(){var N=this.playerContext_;this.clientVideoId_&&(N=this.playerContext_.clone(),Zjf(N,this.clientVideoId_,N.index));return VZm(N)};
_.V.setPlayerContextData_=function(N){var t=this,O=new tW(N);O.videoId&&O.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=O.videoId,_.zp(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.pF(function(){if(t.clientVideoId_){var A=t.clientVideoId_;t.clientVideoId_=null;t.playerContext_.videoId!=A&&SRn(t,"getNowPlaying")}},5E3));
var H=[];this.playerContext_.listId==O.listId&&this.playerContext_.videoId==O.videoId&&this.playerContext_.index==O.index||H.push("remoteQueueChange");this.playerContext_.playerState==O.playerState&&this.playerContext_.volume==O.volume&&this.playerContext_.muted==O.muted&&A95(this.playerContext_)==A95(O)&&(0,_.r3)(this.playerContext_.trackData)==(0,_.r3)(O.trackData)||H.push("remotePlayerChange");this.playerContext_.reset(N);_.Z9(H,function(A){this.publish(A)},this)};
_.V.getOtherConnectedRemoteId_=function(){var N=this.channelService.getDeviceId(),t=_.ey(this.connectedDevices_,function(O){return O.type=="REMOTE_CONTROL"&&O.id!=N});
return t?t.id:""};
_.V.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.V.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.V.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.V.JSC$20340_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var MZz=function(N){_.zp(N.idleDisconnectTimerId_);N.idleDisconnectTimerId_=_.pF(function(){N.JSC$20340_disconnect_(1)},864E5)},SRn=function(N,t,O){O?x$("Sending: action="+t+", params="+(0,_.r3)(O)):x$("Sending: action="+t);
N.channelService.sendMessage(t,O)};
Vn.prototype.sendMessageWithUserAction_=function(N,t){SRn(this,N,t);MZz(this)};
Vn.prototype.JSC$20340_getXsrfToken_=function(){var N=_.PY.get("SAPISID","")||_.PY.get("__Secure-1PAPISID",void 0)||"",t=_.PY.get("__Secure-3PAPISID","")||"";if(!N&&!t)return"";N=_.wi(_.x1(N),2);t=_.wi(_.x1(t),2);return _.wi(_.x1(","+N+","+t),2)};
Vn.prototype.subscribe=Vn.prototype.subscribe;Vn.prototype.unsubscribeByKey=Vn.prototype.unsubscribeByKey;Vn.prototype.getProxyState=Vn.prototype.getProxyState_;Vn.prototype.disconnect=Vn.prototype.JSC$20340_disconnect_;Vn.prototype.getPlayerContextData=Vn.prototype.getPlayerContextData_;Vn.prototype.setPlayerContextData=Vn.prototype.setPlayerContextData_;Vn.prototype.getOtherConnectedRemoteId=Vn.prototype.getOtherConnectedRemoteId_;Vn.prototype.getReconnectTimeout=Vn.prototype.getReconnectTimeout_;
Vn.prototype.getAutoplayMode=Vn.prototype.getAutoplayMode_;Vn.prototype.getAutoplayVideoId=Vn.prototype.getAutoplayVideoId_;Vn.prototype.reconnect=Vn.prototype.JSC$20340_reconnect_;Vn.prototype.sendMessage=Vn.prototype.sendMessageWithUserAction_;Vn.prototype.getXsrfToken=Vn.prototype.JSC$20340_getXsrfToken_;Vn.prototype.isCapabilitySupportedOnConnectedDevices=Vn.prototype.isCapabilitySupportedOnConnectedDevices_;var M0z=function(N){mM.call(this,"ScreenServiceProxy");this.instance_=N;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.qn)(this.JSC$20343_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.qn)(this.onOnlineScreenChange_,this)))};
_.p(M0z,mM);_.V=M0z.prototype;_.V.getScreens=function(N){return this.instance_.$_gs(N)};
_.V.contains=function(N){return!!this.instance_.$_c(N)};
_.V.get=function(N){return this.instance_.$_g(N)};
_.V.start=function(){this.instance_.$_st()};
_.V.add=function(N,t,O){this.instance_.$_a(N,t,O)};
_.V.remove=function(N,t,O){this.instance_.$_r(N,t,O)};
_.V.updateName=function(N,t,O,H){this.instance_.$_un(N,t,O,H)};
_.V.disposeInternal=function(){for(var N=this.subscriptionKeys_.length,t=0;t<N;++t)this.instance_.$_ubk(this.subscriptionKeys_[t]);this.subscriptionKeys_.length=0;this.instance_=null;mM.prototype.disposeInternal.call(this)};
_.V.JSC$20343_onScreenChange_=function(){this.publish("screenChange")};
_.V.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
R4.prototype.$_st=R4.prototype.start;R4.prototype.$_gspc=R4.prototype.JSC$20302_getScreenByPairingCode;R4.prototype.$_gsppc=R4.prototype.JSC$20302_getScreenByPollingPairingCode;R4.prototype.$_c=R4.prototype.contains;R4.prototype.$_g=R4.prototype.get;R4.prototype.$_a=R4.prototype.add;R4.prototype.$_un=R4.prototype.updateName;R4.prototype.$_r=R4.prototype.remove;R4.prototype.$_gs=R4.prototype.getScreens;R4.prototype.$_gos=R4.prototype.JSC$20302_getOnlineScreens;R4.prototype.$_s=R4.prototype.subscribe;
R4.prototype.$_ubk=R4.prototype.unsubscribeByKey;var $dr=null,pUO=!1,Hl1=null,OA=null,hGx=null,HB=[];var PmJ=new _.sv("yt-menu"),Xh5=function(){},kXm=function(N,t,O){N=t=="right-click"?O.rightClickMenuPopupHint:O.menuPopupHint;
if(!(xX1(t)>10))return t=t||"default",PmJ.set(t+"-impression",xX1(t)+1),N},xX1=function(N){return parseInt(PmJ.get((N||"default")+"-impression")||0,10)};
_.Nd(Xh5);var qRi=function(){this.contexts_=new WeakMap;this.JSC$20349_networkService_=this.activeContext_=null},fkx=function(N,t,O){var H=N.contexts_.get(t);
H||(H=new rA5(N.JSC$20349_networkService_),N.contexts_.set(t,H));N.activeContext_=H;O&&N.activeContext_.reset();N.activeContext_.start();return N.activeContext_};var k$=function(){};
k$.prototype.enqueue=function(){var N=this,t;return _.K(function(O){if(N.isCounterfactual())return(t=N.getCounterfactualData())&&N.shouldLogCounterfactualImpression()&&N.sendImpressionEndpoints(t),O.return();N.doEnqueue();_.Ty(O)})};
k$.prototype.sendImpressionEndpoints=function(N){_.VM.getInstance().triggerOptionalAction("yt-service-request",{},N[0])};var qD=function(N,t){this.renderer=N;this.page=t};
_.p(qD,k$);qD.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
qD.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
qD.prototype.shouldLogCounterfactualImpression=function(){return!0};
qD.prototype.doEnqueue=function(){var N=_.oM(this.page);N&&N.pause();this.renderer.impressionCommand&&_.VM.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.RB(_.VM.getInstance(),[this.renderer.promoCommand],this.page)};var n4n=function(N,t){this.renderer=N;this.resolver=_.lj();this.JSC$20361_enforcementCounter=new _.g2r;t?this.JSC$20361_playerManager=_.oM(t):this.JSC$20361_playerManager=null;_.dY(1,!0)};
_.p(n4n,k$);_.V=n4n.prototype;_.V.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var N=[];this.renderer.impressionEndpoints.forEach(function(t){(t=_.wF(t))&&N.push(t)});
return N}};
_.V.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.V.shouldLogCounterfactualImpression=function(){var N=_.wey();N?(this.JSC$20361_enforcementCounter.increment("POPUP"),_.dY(3)):_.dY(2);return N};
_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.doEnqueue=function(){var N=this;_.wey()?(this.JSC$20361_enforcementCounter.increment("POPUP"),_.dY(3),Wim(this)):this.JSC$20361_playerManager?(this.resolver.promise.then(function(){Wim(N)}),r95(this.resolver,this.JSC$20361_playerManager)):_.dY(2)};
var r95=function(N,t){var O=_.lj();t.getPlayerPromise().then(function(H){O.resolve(H)});
O.promise.then(function(H){H.addEventListener("onAbnormalityDetected",N.resolve);_.fV(N.promise,function(){H.removeEventListener("onAbnormalityDetected",N.resolve)})});
N.promise.thenCatch(function(){O.promise.cancel()})},Wim=function(N){_.dY(3);
var t={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:N.renderer}};t=_.VM.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{});Promise.all(t).then(function(){Ikr();N.JSC$20361_playerManager&&N.JSC$20361_playerManager.pause()})},Ikr=function(){s_r(function(N,t){_.LN1(N,t);
N===0?_.dY(7):_.dY(4)})};var lkr=function(N,t){this.renderer=N;this.page=t;this.resolver=_.lj()};
_.p(lkr,k$);_.V=lkr.prototype;_.V.cancel=function(){this.resolver.promise.cancel()};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var N=this;this.resolver.promise.then(function(){var O={popup:{mealbarPromoRenderer:N.renderer},popupType:"MEALBAR"};_.VM.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:O},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var t=_.oM(this.page);t&&QFx(this.resolver,t)}break;default:this.resolver.resolve()}};
var QFx=function(N,t){var O=_.lj();t.getPlayerPromise().then(function(H){O.resolve(H)});
O.promise.then(function(H){H.addEventListener("onAdEnd",N.resolve);_.fV(N.promise,function(){H.removeEventListener("onAdEnd",N.resolve)})});
N.promise.thenCatch(function(){O.promise.cancel()})};var mX5=function(N,t){this.renderer=N;this.page=t};
_.p(mX5,k$);_.V=mX5.prototype;_.V.cancel=function(){this.JSC$20369_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20369_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20369_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.V.isCounterfactual=function(){return!this.renderer.isVisible};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var N=this,t,O;((t=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(O=t.playbackUpsellDialogTriggerConditionData)==null?void 0:O.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20369_downloadedVideosCountSelectorUnsubscriber=_.Jc(_.v5(),Jd5,function(H,A){H>A&&(E45(N),N.cancel())}):E45(this)};
var E45=function(N){var t={popup:{upsellDialogRenderer:N.renderer},popupType:"MODAL"};_.VM.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{});(N=_.oM(N.page))&&N.pause()};var fw={},GXJ=(fw.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",fw.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",fw.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",fw.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",fw.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",fw.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",fw.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",fw),Rqr=function(N,t){this.renderer=N;this.targetManager=
t};
_.p(Rqr,k$);_.V=Rqr.prototype;_.V.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20376_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20376_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20376_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.V.getCounterfactualData=function(){if(this.isCounterfactual()){var N;return(N=this.renderer.promoConfig)==null?void 0:N.impressionEndpoints}};
_.V.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.V.shouldLogCounterfactualImpression=function(){return!0};
_.V.doEnqueue=function(){var N=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20376_downloadedVideosCountSelectorUnsubscriber=_.Jc(_.v5(),Jd5,function(t,O){N.renderer.targetId&&t>O&&(Kjq(N.targetManager,N.renderer.targetId,v41(N)),N.cancel())});
break;default:Kjq(this.targetManager,this.renderer.targetId,v41(this))}};
var v41=function(N){var t;if((t=N.renderer.suggestedPosition)==null?0:t.type)var O=GXJ[N.renderer.suggestedPosition.type];O||(O="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:N.renderer},popupType:"HINT",position:O}}};var J95=function(){this.previousPage=null},o45;
J95.prototype.registerPromoCommand=function(N,t){sF5(this,void 0,void 0,_.M(N.roadblock,aQ5),void 0,void 0,t)};
var sF5=function(N,t,O,H,A,Z,U){N.previousPage!==U&&N.pendingTooltipPromo&&N.pendingTooltipPromo.cancel();N.previousPage=U;A?(N.pendingEnforcementPromo&&N.pendingEnforcementPromo.cancel(),N.pendingEnforcementPromo=new n4n(A,U),N.pendingEnforcementPromo.enqueue()):Z?(N.pendingCommandWrapperPromo=new qD(Z,U),N.pendingCommandWrapperPromo.enqueue()):H?(N.pendingRoadblockPromo&&N.pendingRoadblockPromo.cancel(),N.pendingRoadblockPromo=new mX5(H,U),N.pendingRoadblockPromo.enqueue()):t?(N.pendingMealbarPromo&&
N.pendingMealbarPromo.cancel(),N.pendingMealbarPromo=new lkr(t,U),N.pendingMealbarPromo.enqueue()):O&&(N.pendingTooltipPromo&&N.pendingTooltipPromo.cancel(),N.pendingTooltipPromo=new Rqr(O,_.Q6()),N.pendingTooltipPromo.enqueue())},Nx1=function(){o45||(o45=new J95);
return o45};var a7n=!1;var Fg5=function(N,t){var O=_.Ro("SESSION_INDEX");this.actionToken_=N;this.commonToken_=t;this.sessionIndex_=O},Kg1=function(N){var t=_.lj(),O=_.s2("payments.business.integration.bootstrap"),H=_.s2("payments.business.integration"),A=H.Style.create().withMaterialDesignStyle(),Z=H.mashupMode.popup("instrument-manager");
O.asMashupMode(Z).usingUserIndex(N.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(A).inStandaloneContext(H.standaloneContextAuthId.forUserId()).instrumentManager(N.actionToken_,N.commonToken_.length>0?N.commonToken_:void 0,function(U){var C=U.instrumentId;C?t.resolve(C):(C=_.s2("payments.business.integration.scenario.InstrumentManager"),t.reject(U.errorCode&&U.errorCode===C.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(U){_.JO(U);
t.reject("instrumentManagerLoadError")});
return t.promise};var UA=function(N,t,O){this.payloadName="transactionFlowFailed";this.payload={errorType:N,serializedTransactionFlowLoggingParams:t,isUserDismiss:O===void 0?!1:O}};
_.Ba("yt.ypc.shared.YpcTransactionFlowError",UA);var nw=function(){return _.$q.apply(this,arguments)||this};
_.p(nw,_.$q);nw.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
nw.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
nw.prototype.onErrorMessageDismiss=nw.prototype.onErrorMessageDismiss;_.W([_.X({readOnly:!0,observer:"errorRendererChanged"}),_.Q("design:type",Object)],nw.prototype,"errorRenderer",void 0);_.W([_.dz("yt-live-chat-error-message-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nw.prototype,"onErrorMessageDismiss",null);_.W([_.jn()],nw);var tw5=[nw.prototype];var Oui;var Hu5;var A1z=new _.sv("yt-live-chat"),Zun=new Map;Zun.set("timestamp_toggle","show-timestamps");Zun.set("reactions_toggle","allow-reactions");var W_=function(){return _.k.apply(this,arguments)||this};
_.p(W_,_.k);_.V=W_.prototype;_.V.menuItemIdentifierChanged=function(){var N;(N=this.data)!=null&&N.menuItemIdentifier&&(N=Zun.get(this.data.menuItemIdentifier))&&(_.h("enable_lwe_web_mute")?(N=A1z.get(N),this.isToggled=!(N===void 0?!this.data.isToggled:!N)):this.isToggled=A1z.get(N))};
_.V.onFocus=function(){this.toggleButton.focus()};
_.V.onTap=function(){var N=this.data.command;N&&this.componentBehavior.resolveCommand(N)};
_.V.computeText=function(N,t,O){return this.componentBehavior.getSimpleString(N?O:t)};
_.V.computeIcon=function(N,t,O){return(N=N?O:t)&&N.iconType?_.Vt(N.iconType):""};
W_.prototype.onTap=W_.prototype.onTap;W_.prototype.onFocus=W_.prototype.onFocus;W_.prototype.menuItemIdentifierChanged=W_.prototype.menuItemIdentifierChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],W_.prototype,"componentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],W_.prototype,"data",void 0);
_.W([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Q("design:type",String)],W_.prototype,"icon",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],W_.prototype,"isToggled",void 0);_.W([_.B2("tp-yt-paper-toggle-button"),_.Q("design:type",Object)],W_.prototype,"toggleButton",void 0);_.W([_.gz("data.menuItemIdentifier"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W_.prototype,"menuItemIdentifierChanged",null);
_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W_.prototype,"onFocus",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],W_.prototype,"onTap",null);_.W([_.wz({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],W_);
_.n(W_,"yt-live-chat-toggle-renderer",function(){if(Hu5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Oui===void 0&&(Oui=document.createElement("template"));var H=Oui;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Hu5=N}N=Hu5;return N},{mode:0});var Vw5=new _.dk("NAVIGATION_PROGRESS_TOKEN");var DAz={},UAf={},CYm=(UAf[$lO.name]=!0,UAf),rL=function(){var N=_.$q.apply(this,arguments)||this;N._noAccessors=!0;N.tabGesturesIsActive=!1;N.actionRouterIsRoot=!0;N.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};N.pageTitle="";N.titleSuffix="YouTube";N.unseenNotificationCount=
0;N.hasNavigated=!1;N.hasSetScrollTopForNavigation=!1;N.pagePreparer=null;N.zwiebackInitJobId=0;N.dataUpdatePromise=null;N.loadDepsPromise=_.Hc();N.hasPendingNavigation=!1;N.pendingPlayerOnResponseReceivedActions=[];return N};
_.p(rL,_.$q);rL.prototype.attached=function(){KH5(this);document.addEventListener("yt-navigate-cache",_.Fb(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var N=Is();N.init();N.dispatchElement=this.hostElement};
var KH5=function(N,t){t=t===void 0?0:t;var O=_.cY().resolve(_.BY(_.lI));if(O)FHx(N,O);else{if(t>=5)throw Error("tl");setTimeout(function(){KH5(N,t+1)},0)}},FHx=function(N,t){t.addEventListener("yt-navigate-start",_.Fb(N,N.onYtNavigateStart));
t.addEventListener("yt-navigate-finish",_.Fb(N,N.onYtNavigateFinish));t.addEventListener("yt-navigate-error",_.Fb(N,N.onYtNavigateError));t.addEventListener("yt-page-data-fetched",_.Fb(N,N.onYtPageDataFetched))};
_.V=rL.prototype;_.V.detached=function(){var N=_.cY().resolve(_.lI);N.removeEventListener("yt-navigate-start",_.Fb(this,this.onYtNavigateStart));N.removeEventListener("yt-navigate-finish",_.Fb(this,this.onYtNavigateFinish));N.removeEventListener("yt-navigate-error",_.Fb(this,this.onYtNavigateError));N.removeEventListener("yt-page-data-fetched",_.Fb(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Fb(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.V.setPageOffset=function(N,t){N?_.sl(this.hostElement,"yt-set-page-offset",[N,t]):_.R0(Error("ul"))};
_.V.setPageOffsetForNavigation=function(N,t){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(N,t))};
_.V.onYtNavigateSetPageOffset=function(N,t){this.setPageOffsetForNavigation(t.page,t.offset)};
_.V.getPageOffset=function(){var N=_.O6(this.hostElement).querySelector("#page-manager").getCurrentPage(),t=0;N&&(t=_.sl(this.hostElement,"yt-get-page-offset",[N])[0]);return t};
_.V.onYtHistoryPop=function(N,t){if(_.vZ("DISABLE_WARM_LOADS"))N.preventDefault(),window.location.reload();else{var O=_.cY().resolve(_.lI);O.hasPendingNavigation()&&N.preventDefault();O.cancelPendingNavigation();_.Np(this.hostElement,"yt-pending-navigation-cancelled");t.errorMsg&&(N=t.errorMsg.split(" - "),t=Error(N[0]),N.length==2&&N[1]&&(_.o0(t,N[1]),_.J_(t)),window.location.reload())}};
_.V.onYtHistoryLoad=function(N,t){var O=this;if(_.vZ("DISABLE_WARM_LOADS"))window.location.reload();else{(N=t.endpoint)&&Object.keys(N).length||(N=null);var H=t.historyEntry,A=_.cY().resolve(_.lI),Z=_.cY().resolve(_.J4),U=null;H&&H.rootData&&(U=H.rootData);var C=U&&dAf(U);!U||C||U.filler?N?(A.navigate(N,!0),gP1(this,N)):(t.legacyBorder||C||(t.JSC$30859_savedComponentState==null&&U==null?_.J_(new _.fF("Incomplete history entry",t.forward)):_.vX(new _.fF("Malformed history entry",t.JSC$30859_savedComponentState,
t.forward,U))),window.location.reload()):(_.Icg({isHot:!0}),_.bp({webInfo:{navigationReason:"h"}}),_.cSx(),_.zT("srt"),_.zT("pdc"),this.cancelPendingTasks(),y1f(this,t.forward,U),U.player&&(U.player.loaded=!1),gP1(this,N),_.kwp(A,N||{},U,2,{},!1,t).then(function(){O.setPageOffset(Z.getCurrentPage(),H.scrollTop||0)}))}};
_.V.initHistoryManager=function(N){if(!this.hasNavigated){this.hasNavigated=!0;var t=_.O6(this.hostElement).querySelector("#page-manager").getCurrentData();N=isNaN(N)?this.getPageOffset():N;var O=_.cY().resolve(_.lI).currentEndpoint;this.replaceState(O,t,N)}};
_.V.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.V.onYtNavigateStart=function(N,t){this.cancelPendingTasks();t.noProgressBar||(N=_.cY().resolve(_.BY(Vw5)))&&N.start();N=this.hasPendingNavigation?null:this.data;var O=_.cY().resolve(_.J4),H,A,Z;_.h("kevlar_use_vimio_behavior")&&!((H=t.endpoint)==null?0:(A=H.commandMetadata)==null?0:(Z=A.webCommandMetadata)==null?0:Z.ignoreNavigation)&&(H=O.getCurrentPage())&&H.disconnectVisibilityRoot();O.prepareForNavigation(t.pageType,t.endpoint);_.h("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.bL(1,
"pcl"),_.pD(this.pagePreparer,O.preparePage.bind(O,t.pageType,t.endpoint)));H=this.getPageOffset();this.initHistoryManager(H);t.reload||this.hasPendingNavigation?(t.pageType==="shorts"&&t.reload&&_.or(this.hostElement,"yt-shorts-reset"),this.replaceState(t.endpoint,N,H)):(N==null?void 0:N.page)==="watch"&&t.pageType==="watch"&&_.h("kevlar_replace_watch_to_watch_history_state")?this.replaceState(t.endpoint,N,H):(N==null?void 0:N.page)!=="shorts"||t.pageType!=="shorts"||t.endpoint.reelWatchEndpoint.sequenceParams||
_.h("short_to_short_back_nav_killswitch")?t.type!="navigate-back"&&t.type!="navigate-forward"&&(t.pageType==="shorts"&&_.or(this.hostElement,"yt-shorts-reset"),this.saveAndPush(t.url,t.endpoint,N,H)):this.replaceState(t.endpoint,N,0);this.hasPendingNavigation=!0};
var BxJ=function(N){N.hasPendingNavigation=!1;(N=_.cY().resolve(_.BY(Vw5)))&&N.finish()};
rL.prototype.onYtNavigateError=function(N,t){BxJ(this);N=this.get("endpoint.commandMetadata.webCommandMetadata.url",t);var O=_.D9(window.location.href);N&&!O.pbjreload&&(t=t.navigationErrorReason||"10",_.h("kevlar_parent_on_pbjreload")&&(O={csn:_.z8()},this.get("data.endpoint.clickTrackingParams")&&(O.itct=this.data.endpoint.clickTrackingParams),_.m2(N,O)),_.xH(_.Uy(N,{pbjreload:t})))};
rL.prototype.onYtNavigateCache=function(N,t){var O=this,H=t.url,A=t.endpoint,Z=t.data;N=!!t.miniplayer;t=!!t.skipHistory;if(H&&A&&Z){var U=this.getPageOffset(),C=this.data||null;t||this.saveAndPush(H,A,C,U);H=_.kwp(_.cY().resolve(_.lI),A,Z,N?4:3,{},N);N&&H.then(function(){O.dataUpdatePromise&&O.dataUpdatePromise.then(function(){var F=_.cY().resolve(_.J4);O.setPageOffset(F.getCurrentPage(),0)})})}};
rL.prototype.onYtNavigateFinish=function(N,t){var O=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){c11(O,t.fromHistory)})};
var c11=function(N,t){BxJ(N);if(N.pendingPlayerOnResponseReceivedActions){for(var O=_.D(N.pendingPlayerOnResponseReceivedActions),H=O.next();!H.done;H=O.next())_.CC(H.value,N.hostElement);N.pendingPlayerOnResponseReceivedActions=[]}O=_.cY().resolve(_.J4);t||!N.hasNavigated||_.h("web_disable_scroll_on_navigate_finish")||((t=O.getCurrentPage())?t.is==="ytd-shorts"||N.tabGesturesIsActive||N.setPageOffsetForNavigation(t,0):_.J_(Error("vl")));_.nO(function(){_.nO(function(){_.zT("pda")})})};
rL.prototype.onYtNavigate=function(N){if(!N.detail.endpoint){var t=new _.fF("Error: Missing yt-navigate endpoint from target:",N.target,N.target.nodeName);_.R0(t)}if(t=_.h("cold_missing_history"))t=Is(),t.init(!1),t=!(t.browserHistory.boundHistoryReplaceState&&t.browserHistory.boundHistoryPushState);if(t){_.Gm("DISABLE_WARM_LOADS",!0);t=new _.fF("Failed to initialize history manager",this.getDebugString());var O=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
O?_.J_(t):_.R0(t)}t=N.detail.endpoint;var H,A;_.h("debug_forward_web_query_parameters")&&((H=t.commandMetadata)==null?0:(A=H.webCommandMetadata)==null?0:A.url)&&(t=JSON.parse(JSON.stringify(t)),t.commandMetadata.webCommandMetadata.url=_.ybS(t.commandMetadata.webCommandMetadata.url,window.location.search));N={type:0,command:t,form:{params:N.detail.params,tempData:N.detail.tempData||{},requestType:N.detail.type,createScreenConfig:N.detail.createScreenConfig,reload:N.detail.reload?N.detail.reload:!1,
requestForm:N.detail}};_.h("kevlar_yt_navigate_command_handler")?(H=_.cY().resolve(_.jo),N.form.skipDefaultElement=!0,H.resolveCommand(t,{form:N.form})):this.handleNavigate(N)};
rL.prototype.handleNavigate=function(N){this.hasSetScrollTopForNavigation=!1;var t=_.cY().resolve(_.lI),O=N.form||{};t.navigate(N.command,O.reload,O.params,O.tempData,O.requestType,O.createScreenConfig,O.ignoreConfirmation,O.requestForm)&&gP1(this,N.command,O.tempData)};
rL.prototype.onYtPageDataFetched=function(N,t){try{_.ptX().reset();this.data=t.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.cY().resolve(_.J4).updatePageData(this.data);var O=this.get("playerResponse.onResponseReceivedActions",this.data);O&&(O=$An(this,O));O&&_.OK(this.hostElement,O,this.hostElement);var H=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),A=this.get("response.responseContext.consistencyTokenJar",this.data);if(H||A){var Z=_.DPp(),U=(0,_.WW.getValues)(Z.tokenJars);H&&Z.replace(U,H);A&&Z.replace(U,A)}}catch(C){_.R0(C)}};
var gP1=function(N,t,O){try{N.onYtEndpointChangeHandler(t,O)}catch(H){_.R0(H)}};
_.V=rL.prototype;_.V.onYtEndpointChangeHandler=function(){};
_.V.setPageTitle=function(N){N=(this.pageTitle=N)?N+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+N};
_.V.onYtUpdateTitle=function(N,t){this.setPageTitle(t)};
_.V.setUnseenNotificationCount=function(N){this.unseenNotificationCount=N;this.setPageTitle(this.pageTitle)};
_.V.handleUpdateNotificationsUnseenCountAction=function(N){_.M(N,gpx)&&((N=_.M(N,gpx).unseenCount)?this.setUnseenNotificationCount(N):this.setUnseenNotificationCount(0))};
_.V.handleClearCookieAction=function(N){var t;(N=(t=_.M(N,C2z))==null?void 0:t.cookieName)&&_.Ppp(N)};
_.V.onYtUpdateUnseenNotificationCount=function(N,t){this.setUnseenNotificationCount(t)};
_.V.loadData=function(N){var t=this;this.loadDepsPromise.then(function(){var O=_.cY().resolve(_.BY(_.lI));O||_.R0(Error("wl"));if(N&&N.response){if(!N.endpoint){var H=_.kL(window.document.location.href)||"/",A="";if(H==="/"||H.startsWith("/?"))A="WEB_PAGE_TYPE_BROWSE";N.endpoint={commandMetadata:{webCommandMetadata:{url:H,webPageType:A,rootVe:3854}}}}_.kwp(O,N.endpoint,N,5,{})}else N.endpoint?O.navigate(N.endpoint):O.navigate(_.vs);_.GB.cancelJob(t.zwiebackInitJobId);t.zwiebackInitJobId=_.GB.addLowPriorityJob(TQ5)})};
var Is=function(){return _.cY().resolve(_.lE)};
rL.prototype.getDebugString=function(){return Is().getDebugString()};
rL.prototype.getThirdPartyManipulationSuspected=function(){return Is().getThirdPartyManipulationSuspected()};
rL.prototype.replaceState=function(N,t,O){Is().saveAndReplace(N,t,O)};
rL.prototype.saveAndPush=function(N,t,O,H){Is().saveAndPush(N,t,O,H)};
var dAf=function(N){return _.M(N.endpoint,_.rN)||_.M(N.endpoint,_.jc)?!0:!N||isNaN(N.expirationTime)?!1:(0,_.jg)()>N.expirationTime},y1f=function(N,t,O){var H=N.get("response.trackingParams",O),A=_.pv(),Z=_.z8();
if(H&&A&&Z&&(H=N.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",O),!H&&O.rootVe&&(H=O.rootVe),A=t?"forwardButton":"backButton",t=N.get("playerResponse.topbar.desktopTopbarRenderer."+A+".buttonRenderer.command.clickTrackingParams",N.data),N=N.get("response.topbar.desktopTopbarRenderer."+A+".buttonRenderer.command.clickTrackingParams",N.data),t=(N=t||N)?_.ib(N):void 0,N=_.gF(),A=[_.Hc(O)],_.Ws(N,H,t,{dataPromises:A,csnToClone:O.csn}),O.graftedVes))for(O=
_.D(O.graftedVes),H=O.next();!H.done;H=O.next())_.r_(N,H.value)};
rL.prototype.onStoreGraftedVeAction=function(N){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(N)):_.J_(Error("xl"))};
var $An=function(N,t){return t.filter(function(O){for(var H in O)if(CYm[H])return N.pendingPlayerOnResponseReceivedActions.push(O),!0;return!1})};
_.cv.Object.defineProperties(rL.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
rL.prototype.onStoreGraftedVeAction=rL.prototype.onStoreGraftedVeAction;rL.prototype.loadData=rL.prototype.loadData;rL.prototype.onYtUpdateUnseenNotificationCount=rL.prototype.onYtUpdateUnseenNotificationCount;rL.prototype.handleClearCookieAction=rL.prototype.handleClearCookieAction;rL.prototype.handleUpdateNotificationsUnseenCountAction=rL.prototype.handleUpdateNotificationsUnseenCountAction;rL.prototype.setUnseenNotificationCount=rL.prototype.setUnseenNotificationCount;
rL.prototype.onYtUpdateTitle=rL.prototype.onYtUpdateTitle;rL.prototype.setPageTitle=rL.prototype.setPageTitle;rL.prototype.onYtEndpointChangeHandler=rL.prototype.onYtEndpointChangeHandler;rL.prototype.onYtPageDataFetched=rL.prototype.onYtPageDataFetched;rL.prototype.handleNavigate=rL.prototype.handleNavigate;rL.prototype.onYtNavigate=rL.prototype.onYtNavigate;rL.prototype.onYtNavigateFinish=rL.prototype.onYtNavigateFinish;rL.prototype.onYtNavigateCache=rL.prototype.onYtNavigateCache;
rL.prototype.onYtNavigateError=rL.prototype.onYtNavigateError;rL.prototype.onYtNavigateStart=rL.prototype.onYtNavigateStart;rL.prototype.cancelPendingTasks=rL.prototype.cancelPendingTasks;rL.prototype.initHistoryManager=rL.prototype.initHistoryManager;rL.prototype.onYtHistoryLoad=rL.prototype.onYtHistoryLoad;rL.prototype.onYtHistoryPop=rL.prototype.onYtHistoryPop;rL.prototype.onYtNavigateSetPageOffset=rL.prototype.onYtNavigateSetPageOffset;rL.prototype.setPageOffset=rL.prototype.setPageOffset;
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],rL.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],rL.prototype,"data",void 0);_.W([_.dz("yt-navigate-set-page-offset"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],rL.prototype,"onYtNavigateSetPageOffset",null);
_.W([_.dz("yt-history-pop"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],rL.prototype,"onYtHistoryPop",null);_.W([_.dz("yt-history-load"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,_.s4R]),_.Q("design:returntype")],rL.prototype,"onYtHistoryLoad",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],rL.prototype,"onYtNavigate",null);
_.W([_.dz("yt-update-title"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,String]),_.Q("design:returntype")],rL.prototype,"onYtUpdateTitle",null);_.W([_.dz("yt-update-unseen-notification-count"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,Number]),_.Q("design:returntype")],rL.prototype,"onYtUpdateUnseenNotificationCount",null);_.W([_.jn()],rL);DAz.YtdAppBehavior=[_.Wu.YtActionHandlerBehavior,rL.prototype];var lo=function(){var N=_.$q.apply(this,arguments)||this;N._noAccessors=!0;return N};
_.p(lo,_.$q);lo.prototype.ready=function(){var N=this;_.O6(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){N.onChange_()})};
lo.prototype.dataChanged_=function(){_.O6(this.hostElement).querySelector("#checkbox").checked=!1};
lo.prototype.onChange_=function(){var N=_.O6(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.or(this.hostElement,"yt-dismissal-reason-"+N,this.data.feedbackToken)};
lo.prototype.dataChanged_=lo.prototype.dataChanged_;_.W([_.X(),_.Q("design:type",Object)],lo.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lo.prototype,"dataChanged_",null);_.W([_.jn()],lo);var j61=[lo.prototype];var QC=function(){var N=_.$q.apply(this,arguments)||this;N.timeoutJobId=0;N.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return N};
_.p(QC,_.$q);QC.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
QC.prototype.startTimeout=function(){var N=this,t=this.data&&this.data.displayDurationSeconds;t&&!this.timeoutJobId&&(this.timeoutJobId=_.WX(_.GB,function(){_.sl(N.hostElement,"yt-close-popup-action",[N.is]);N.timeoutJobId=0},t*1E3))};
QC.prototype.cancelTimeout=function(){_.GB.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
QC.prototype.ytdHatsSurveyBehaviorDataChanged=QC.prototype.ytdHatsSurveyBehaviorDataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],QC.prototype,"ytActionHandlerBehavior",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],QC.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.W([_.jn()],QC);var iu5=[_.Wu.YtActionHandlerBehavior,QC.prototype];var uTm=function(N,t){var O;return((O=N.prefixMapping)==null?0:O[t])?N.prefixMapping[t]:N.SHARED_RENDERERS_.hasOwnProperty(t)?"yt":N.prefix},mE={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}};mE.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.h("kevlar_mealbar_above_player"),modern:!0,noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
mE.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};mE.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};mE.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
mE.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)"}};
mE.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};
mE.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};
mE.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};
mE.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
mE.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"}};mE.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};mE.TOAST={component:null,properties:{}};var SD5=new function(N,t,O){this.supportedPopups=N;this.navigationEndpointPopupMap=t;this.popupTypeMap=O;this.supportedPopups=N;this.navigationEndpointPopupMap=t;this.popupTypeMap=O}({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:_.h("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"}),hsx=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$20427_popupConfig=mE;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 Mwf=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.DU.getInstance()},EO=function(N,t){var O=N.pageNameToElement.get(t);
if(!O){switch(t){case "watch":var H=_.h("web_watch_force_learning_journey_for_testing")?_.MF("ytd-watch-learning-journey"):_.h("kevlar_watch_fixie")?_.MF("ytd-watch-fixie"):_.h("kevlar_watch_grid")?_.MF("ytd-watch-grid"):_.MF("ytd-watch-flexy");break;case "learning_journey_watch":H=_.MF("ytd-watch-learning-journey");break;case "shorts":H=_.MF("ytd-shorts");break;case "search":H=_.MF("ytd-search");break;case "channel":H=_.MF("ytd-browse");H.pageSubtype="channels";break;case "trending":H=_.MF("ytd-browse");
H.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":H=
_.MF("ytd-browse");H.pageSubtype=t;break;case "browse":H=_.MF("ytd-browse");break;default:_.J_(new _.fF("Error getting page element for type",t))}O=H;N.pageNameToElement.set(t,O)}return O};
Mwf.prototype.preparePage=function(N,t,O){O&&(N=_.gY(O)||N);if(N!=="watch"&&N!=="learning_journey_watch"){var H=this.elementPoolPopulator,A=N;A!=H.targetPage_&&H.pendingPages_.indexOf(A)>-1&&(H.targetPage_&&(H.pendingPages_.unshift(H.targetPage_),H.abort()),gk5(H,A),_.NCR(H,A))}if((H=EO(this,N))||!_.M(O,_.Z3)){H.isAttached||H===t||(H.hidden=!0);if(!H.data&&(N!=="watch"&&N!=="learning_journey_watch"||!_.h("swatcheroo_page_pool_dont_provide_filler_data"))){var Z;if(N=(Z=_.Ro("FILLER_DATA",{})[N])==
null?void 0:Z.response)H.data=N}return H}};var buO=function(N){this.JSC$32845_clientRoot=N;this.playlistHandlerActionMap={"yt-add-to-playlist-command":nDO,"yt-end-playlist-command":Wez,"yt-recover-playlist-command":I7r,"yt-refresh-playlist-command":mdx,"yt-playlist-remove-videos-action":l7i};_.Uh(_.VM.getInstance(),this.playlistHandlerActionMap,this.JSC$32845_clientRoot);M8x()},pjm;var GF=function(N,t,O){this.apiKey=N;this.endpoint=t;this.confidenceThreshold=O===void 0?.5:O;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=t==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||t==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
t==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||t==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new Qgq};
_.V=GF.prototype;
_.V.start=function(N){if(this.state===0)if(this.isOnline()){N.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=N.supportsHttpHeadersOverwriteParam);N.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=N.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.LJ("voice_assistant");_.YY("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=N.languageCode||"en-US";this.supportsCrossDomainXhr=N.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=N.youtubeAssistantRequest||null;this.listeningHandler=N.listeningHandler||this.listeningHandler;this.audioDetectedHandler=N.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=N.stopHandler||this.stopHandler;this.completeHandler=N.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=N.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=N.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
N.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=N.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=N.accessToken;this.additionalHeaders=N.additionalHeaders||{};var t;this.prefetchResponseTimeoutMs=(t=N.prefetchResponseTimeoutMs)!=null?t:this.prefetchResponseTimeoutMs;LHi(this);this.startAudio();zsz(this)}else this.errorHandler("OFFLINE")};
_.V.stop=function(N){var t=N===void 0?{}:N;N=t.logCancel===void 0?!0:t.logCancel;var O=t.logMicClosed===void 0?!0:t.logMicClosed;var H=t.handleError===void 0?!0:t.handleError;t=t.handleStop===void 0?!0:t.handleStop;this.state!==0&&(N&&Rs("voz_cx"),v_(this,{logMicClosed:O,handleStop:t}),H&&this.errorHandler("ABORTED"))};
_.V.getState=function(){return this.state};
_.V.isSupported=function(){return!0};
_.V.stopAudio=function(N){(N===void 0||N)&&Rs("voz_mf")};
_.V.startAudio=function(){Rs("voz_vp");return _.Hc(null)};
var YDm=function(N,t){N.channelOpen&&(N.state!==2&&(N.state=2,Rs("voz_ss"),N.listeningHandler()),t=new Uint8Array(t),t='{ "audioIn": "'+_.wi(t)+'" }',N.channel.send(t))},v_=function(N,t){var O=t===void 0?{}:t;
t=O.logMicClosed===void 0?!0:O.logMicClosed;O=O.handleStop===void 0?!0:O.handleStop;N.vozEndOfDataTimeout>-1&&(clearTimeout(N.vozEndOfDataTimeout),N.vozEndOfDataTimeout=-1);aV5(N);N.stopAudio(t);N.channel&&(N.channelOpen=!1,N.manuallyClosedChannel=!0,N.channel.close(),N.channel=void 0);N.transcribedSpeechResults=[];N.state=0;O&&N.stopHandler()},LHi=function(N){var t={httpHeadersOverwriteParam:N.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},N.additionalHeaders,N.accessToken&&N.isUsingVoz?{Authorization:"Bearer "+N.accessToken}:{"x-goog-api-key":N.apiKey}),supportsCrossDomainXhr:N.supportsCrossDomainXhr};N.channel=new dL(N.endpoint,t);N.channel.open();_.SF(N.channel,"w",function(){var O=N.channel,H=O.send,A=N.isUsingVoz?"PLACEHOLDER":"example";A={config:{dialogStateIn:{languageCode:N.languageCode},deviceConfig:{deviceId:A,deviceModelId:A},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!N.isUsingVoz)A.config.requestType=4;else if(N.isUsingVoz&&N.youtubeAssistantRequest){var Z=JSON.stringify(N.youtubeAssistantRequest);A.config.internalIn={youtubeAssistantS3InputJson:Z}}H.call(O,A);N.channelOpen=!0;N.manuallyClosedChannel=!1});
_.SF(N.channel,"x",function(){N.manuallyClosedChannel||(N.channelOpen=!1,N.channel=void 0,v_(N))});
_.SF(N.channel,"z",function(O){if(O.data){aV5(N);for(var H=0;H<O.data.length;H++){var A=N,Z=O.data[H],U=Z.speechResults;if(U)a:{var C=[];Z=[];var F=!1;U=_.D(U);for(var g=U.next();!g.done;g=U.next()){g=g.value;if(g.noSpeech){v_(A);A.errorHandler("NO_SPEECH");break a}g.transcript!==void 0&&g.stability!==void 0&&(g.stability<A.confidenceThreshold&&(F=!0),F?Z.push(g.transcript):C.push(g.transcript))}if(C.length!==0||Z.length!==0)C=C.join(" "),Z=Z.join(" "),A.receivedEndOfUtterance&&!A.isUsingVoz?A.isUsingVoz||
A.completeHandler([C,Z]):(F=A,U=C,g=Z,Rs("voz_sf"),F.transcriptionUpdateHandler(U,g),F.transcribedSpeechResults=[U,g]),A.receivedEndOfUtterance&&(Rs("voz_eou"),A.transcriptionCompleteHandler([C,Z]),A.isUsingVoz&&(A.prefetchResponseTimeoutMs===0?v_(A,{logMicClosed:!1,handleStop:!0}):A.prefetchResponseTimeoutMs>0&&Txn(A)))}else A.isUsingVoz&&(Z==null?0:Z.internalOut)?(Z=JSON.parse(Z.internalOut.youtubeAssistantS3OutputJson),Z.userHasOptedInToVaa||Z.vaaConsent?A.vaaConsentUpdateHandler(!!Z.userHasOptedInToVaa,
!!Z.vaaConsent):(wj5(A),Z&&(C=A.transcribedSpeechResults,Rs("voz_rqf"),A.completeHandler(C,Z)))):Z.eventType==="END_OF_UTTERANCE"?A.receivedEndOfUtterance=!0:(Rs("voz_err"),A.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.J_(Error("yl")))}}});
_.SF(N.channel,"y",function(O){v_(N);switch(O.status){case 1:O="WEBCHANNEL_NETWORK_ERROR";break;case 2:O="WEBCHANNEL_SERVER_ERROR";break;default:O="WEBCHANNEL_UNKNOWN_ERROR"}N.errorHandler(O);N.logError(Error(O))})};
GF.prototype.logError=function(N){_.R0(N)};
GF.prototype.isOnline=function(){return!0};
var Txn=function(N){wj5(N);N.prefetchResponseSetTimeoutId=setTimeout(function(){v_(N,{logMicClosed:!1,handleStop:!0})},N.prefetchResponseTimeoutMs)},wj5=function(N){N.prefetchResponseSetTimeoutId>-1&&(clearTimeout(N.prefetchResponseSetTimeoutId),N.prefetchResponseSetTimeoutId=-1)},zsz=function(N){aV5(N);
N.noResponseReceivedTimeout=window.setTimeout(function(){v_(N);N.errorHandler("NO_SPEECH")},11E3)},aV5=function(N){N.noResponseReceivedTimeout>-1&&(window.clearTimeout(N.noResponseReceivedTimeout),N.noResponseReceivedTimeout=-1)},Rs=function(N){_.zT(N,void 0,"voice_assistant")};var JZ=function(){GF.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.p(JZ,GF);JZ.prototype.isSupported=function(){return EDO()};
JZ.prototype.startAudio=function(){var N=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.M2(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(H){esO(N,H)};
this.processor.connect(this.audioContext.destination);var t=function(H){N.stream=H;if(!N.audioContext)return _.Hc(null);H=N.audioContext.createMediaStreamSource(H);N.processor&&H.connect(N.processor);return _.Hc(null)},O={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?t(this.stream):(O=navigator.mediaDevices.getUserMedia(O))?O.then(t).catch(function(H){v_(N);H.name&&H.name==="NotAllowedError"?N.errorHandler("NO_MICROPHONE_PERMISSION"):(N.errorHandler("AUDIO_ERROR"),N.logError(H));return _.M2(null)}):(v_(this),this.errorHandler("AUDIO_ERROR"),_.J_(Error("zl")));
return GF.prototype.startAudio.call(this)};
JZ.prototype.stopAudio=function(N){N=N===void 0?!0:N;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(t){t.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;GF.prototype.stopAudio.call(this,N)};
JZ.prototype.isOnline=function(){return navigator.onLine};
var esO=function(N,t){if(N.audioContext)if(window.OfflineAudioContext){var O=N.audioContext.sampleRate,H=t.inputBuffer.getChannelData(0);t=new window.OfflineAudioContext(1,H.length,16E3);for(var A=t.createBuffer(1,H.length,O),Z=A.getChannelData(0),U=0,C=0;C<H.length;C++)Z[C]=H[C],U+=Z[C]*Z[C];!N.audioDetected&&Math.sqrt(U/H.length)>.01&&(N.audioDetected=!0,N.audioDetectedHandler());H=t.createBufferSource();H.buffer=A;H.connect(t.destination);H.start(0);t.oncomplete=function(F){F=F.renderedBuffer.getChannelData(0);
for(var g=Math.floor(16384E3/O),B=new Int16Array(g),c=0;c<g;++c)B[c]=Math.max(-1,Math.min(1,F[c]))*32767;YDm(N,B.buffer)};
t.startRendering()}else PYJ(N,t)},PYJ=function(N,t){var O=N.audioContext.sampleRate,H=t.inputBuffer.getChannelData(0),A=Math.floor((O+8E3)/16E3);
O=H.length/A;t=new Float32Array(O);for(var Z=0;Z<O;++Z)t[Z]=H[Z*A];H=new Int16Array(O);for(A=0;A<O;++A)H[A]=Math.max(-1,Math.min(1,t[A]))*32767;YDm(N,H.buffer)};var Xj1={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var xAm=function(){this.JSC$20492_audioEnabled=!0;this.audioFeedbackHolder={}};
xAm.prototype.isPlaying=function(N){return N.currentTime>0&&!N.paused&&!N.ended&&N.readyState>2};
var kJq=function(N){for(var t=_.D(Object.values(Xj1)),O=t.next();!O.done;O=t.next())O=O.value,N.audioFeedbackHolder[O]=new Audio,N.audioFeedbackHolder[O].src="/s/search/audio/"+O+".mp3",N.audioFeedbackHolder[O].load()},sO=function(N,t){if(N.JSC$20492_audioEnabled!==!1&&t in N.audioFeedbackHolder){for(var O=_.D(Object.values(N.audioFeedbackHolder)),H=O.next();!H.done;H=O.next())H=H.value,N.isPlaying(H)&&H.pause();
N.audioFeedbackHolder[t].currentTime=0;N.audioFeedbackHolder[t].play().catch(function(){})}};var qD5=function(N,t){var O=this;this.store=N;this.service=t;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){O.setState("offline");O.stop()};
this.audioPlayer=new xAm;var H;(H=this.audioPlayer)==null||kJq(H)};
_.V=qD5.prototype;_.V.getService=function(){return this.service};
_.V.isEnabled=function(){return!!this.service};
_.V.isSupported=function(){var N;return(N=this.service)==null?void 0:N.isSupported()};
_.V.start=function(){var N=this,t,O,H,A,Z,U,C,F,g,B,c,u,S;return _.K(function(b){switch(b.nextAddress){case 1:N.store.dispatch(epm("",""));if(!navigator.onLine)return N.setState("offline"),b.return();window.addEventListener("offline",N.handleOfflineEvent);N.stream=null;if(!N.permissionsSupported){b.jumpTo(2);break}_.Mo(b,3);return b.yield(fV5(N),5);case 5:t=b.yieldResult;if(!t)return(O=N.audioPlayer)==null||sO(O,"failure"),b.return();N.service.stream=N.stream;N.setState("listening");_.Do(b,2);break;
case 3:_.ax(b),N.permissionsSupported=!1;case 2:H={context:_.fnv(_.u0())},H.youtubeAssistantParams={searchParams:{inlineSearchResponse:N.enableInlineSearchResponse}},A=function(z,w){N.store.dispatch(Prm("transcribing"));N.store.dispatch(epm(z,w))},Z=function(){var z;
(z=N.audioPlayer)==null||sO(z,"open");N.setState("listening")},U=function(){N.setState("transcribing")},C=function(z){N.setErrorState(z)},F=function(z,w){var P;
(P=N.audioPlayer)==null||sO(P,"success");w&&(_.h("kevlar_voice_search_inline_search")&&(N.responseProcessor=_.cY().resolve(_.YFy),N.responseProcessor&&(P=w.navigationAction,z=w.prefetchedSearchResponse,P&&z&&(P=(new _.Y$1).JSC$14332_getStoreKey(P),_.W7(N.responseProcessor,z,P)))),N.JSC$20510_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",w))},g=function(){window.removeEventListener("offline",N.handleOfflineEvent)},B=_.Gvy(!1),c=B.Authorization!=null,u=N.enableFirstPartyAuth||
N.enableFPAForSignedInUsers&&c?B:{"X-Goog-Visitor-Id":B["X-Goog-Visitor-Id"]},S={completeHandler:F,
errorHandler:C,listeningHandler:Z,audioDetectedHandler:U,stopHandler:g,transcriptionUpdateHandler:A,youtubeAssistantRequest:H,languageCode:nPJ(),additionalHeaders:u,supportsCrossDomainXhr:N.enableFirstPartyAuth||N.enableFPAForSignedInUsers&&c,supportsHttpHeadersOverwriteParam:!N.disableHttpHeadersOverwrite},N.service.start(S),_.Ty(b)}})};
_.V.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.V.reset=function(){this.store.dispatch(_.H5({type:"RESET_VOICE_SEARCH_STATE"}))};
_.V.setState=function(N){this.store.dispatch(Prm(N))};
_.V.setErrorState=function(N){switch(N){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var t;(t=this.audioPlayer)==null||sO(t,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)fV5(this);else{var O;(O=this.audioPlayer)==null||sO(O,"failure");this.setState("permission-denied")}break;case "ABORTED":var H;(H=this.audioPlayer)==null||sO(H,"no_input");break;default:var A;(A=this.audioPlayer)==
null||sO(A,"no_input");this.setState("timeout")}};
var fV5=function(N){var t,O;return _.K(function(H){switch(H.nextAddress){case 1:return H.yield(navigator.permissions.query({name:"microphone"}),2);case 2:t=H.yieldResult;if(t.state==="granted")return H.return(!0);if(t.state==="denied")return N.setState("permission-denied"),H.return(!1);N.setState("permission");O={audio:{sampleSize:16,channelCount:1},video:!1};_.Mo(H,3);return H.yield(navigator.mediaDevices.getUserMedia(O),5);case 5:return N.stream=H.yieldResult,H.return(!0);case 3:return _.ax(H),
N.setState("permission-denied"),H.return(!1)}})},nPJ=function(){var N=_.Ro("INNERTUBE_CONTEXT_HL"),t=_.Ro("INNERTUBE_CONTEXT_GL");
return N.indexOf("-")>-1?N:N+"-"+t};var WH5=function(N,t,O){qD5.call(this,t,O);this.JSC$20510_actionRouter=N;this.enableInlineSearchResponse=_.h("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.h("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.h("kevlar_voice_search_enable_fpa_signedin_users")},r1i;
_.p(WH5,qD5);
var IVx=function(){if(!r1i){var N="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.h("kevlar_voice_search_auth_enabled")||_.h("kevlar_voice_search_use_yt_endpoint")?N="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.h("kevlar_voice_search_use_fp_endpoint")&&(N="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");r1i=
new WH5(_.VM.getInstance(),_.v5(),new JZ(_.Ro("VOZ_API_KEY"),N,.5))}return r1i};var lVx=function(N){this.JSC$20514_clientRoot=N;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$20514_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));N=_.D(this.eventListeners);for(var t=N.next();!t.done;t=N.next()){var O=
_.D(t.value);t=O.next().value;O=O.next().value;O=_.D(O);for(var H=O.next();!H.done;H=O.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;t.addEventListener(H,A)}}_.Uh(_.VM.getInstance(),this.autonavPauseActionMap,this.JSC$20514_clientRoot)},Q65,mA5=function(N){return _.h("kevlar_autonav_popup_filtering")?(N=_.E3(N))?N.hasAttribute("prevent-autonav"):!0:!0};
_.V=lVx.prototype;_.V.onIronOverlayOpened=function(N){mA5(N)&&(this.autonavPauseReasons.overlayOpen=!0,N8(this))};
_.V.onIronOverlayClosed=function(N){mA5(N)&&(this.autonavPauseReasons.overlayOpen=!1,N8(this))};
_.V.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;N8(this)};
_.V.onYtAutonavPauseBlur=function(){var N=this;_.GB.addJob(function(){EP1()||(N.autonavPauseReasons.inputBoxFocus=!1,N8(N))},8,0)};
_.V.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;N8(this)};
_.V.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;N8(this)};
_.V.onYtAutonavPauseScroll=function(){var N=_.cY().resolve(_.J4);N.isOnWatch()&&(N=N.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=N.getBoundingClientRect().top<-200,N8(this))};
_.V.onYtAutonavPauseUserEngagement=function(N){var t=this;if(_.h("user_engagement_enable_autoplay_pause_feature")){var O=Number(N.lowEngagementThresholdMs);isNaN(O)||O<=0||N.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.yF("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.cY().resolve(_.j9),_.jO()<O?_.WX(_.GB,function(){_.yF("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.ar1()?(this.userEngagementCsn=_.z8(),_.WX(_.GB,function(){_.yF("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
t.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,N8(this)):_.yF("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.J4t(Error("Al`"+JSON.stringify(N)))};
_.V.onYtAutonavPausePlayer=function(N){this.autonavPauseReasons.requestedByPlayer=!!N.detail;N8(this)};
_.V.onYtAutonavVisibilityChanged=function(){var N=this,t,O,H;return _.K(function(A){if(A.nextAddress==1)return(t=_.si())?A.yield(t.getPlayerPromise(),2):A.return();O=A.yieldResult;H=O.isMuted()||O.getVolume()===0;N.autonavPauseReasons.backgroundAndMute=EP1()&&H;N8(N);_.Ty(A)})};
_.V.onYtAutonavPausePlayerEnded=function(){_.cY().resolve(_.j9);var N=144E5;_.h("user_engagement_enable_autoplay_pause_feature")||_.h("is_part_of_any_user_engagement_experiment")||(N=45E5);this.autonavPauseReasons.longIdle=_.jO()>N;GJq(this);N8(this)};
_.V.onYtUserActivity=function(){var N=this;this.autonavPauseReasons.userEngagement&&(_.WX(_.GB,function(){_.yF("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",N.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,N8(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.WX(_.GB,function(){_.yF("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",N.userEngagementCsn);_.GW()}),this.autonavPauseReasons.youthereLactExperiment=!1,N8(this));
this.autonavPauseReasons.longIdle&&!_.h("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,N8(this))};
var EP1=function(){var N=window.document.visibilityState;return!(!N||N==="visible")},N8=function(N){for(var t=!1,O=_.D(Object.values(N.autonavPauseReasons)),H=O.next();!H.done;H=O.next())H=H.value,t=t||H;
t?_.Ta.getInstance().pause(N.autonavPauseReasons):(N=_.Ta.getInstance(),N.autonavState_==3?(N.setState(2,!1,!1),N.autonavPauseReason_=void 0):N.autonavState_==1&&(N.disabledAutonavPauseReason_=void 0))},GJq=function(N){var t=!1;
if(_.h("enable_autoplay_pause_by_lact")){_.cY().resolve(_.j9);t=_.uP("autoplay_pause_by_lact_sec")*1E3;var O=_.uP("autoplay_pause_by_lact_sampling_fraction");(t=_.jO()>=t&&Math.random()<O)&&!_.ar1()&&(_.WX(_.GB,function(){_.yF("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),t=!1)}t!==N.autonavPauseReasons.youthereLactExperiment&&(N.autonavPauseReasons.youthereLactExperiment=t)&&(N.userEngagementCsn=_.z8(),_.WX(_.GB,function(){_.yF("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",N.userEngagementCsn)}));
N.autonavPauseReasons.userEngagement&&_.WX(_.GB,function(){_.yF("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",N.userEngagementCsn)})};
lVx.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.yF("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.GW(),this.autonavPauseReasons.youthereLactExperiment=!1,N8(this));this.autonavPauseReasons.userEngagement&&(_.yF("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,N8(this))};
lVx.prototype.onYtEngagementPanelVisibleChanged=function(N){N.detail&&N.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=N.detail.visible,N8(this))};
lVx.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Rs1=_.Wz.persistentPanelVisibleSelector,tE=function(){var N=_.k.apply(this,arguments)||this;N.miniGuideVisible=!1;N.guideOpened=_.h("disable_initial_guide_state_fix")?!1:N.canFitPersistentGuide(N.initialBodyClientWidth);N.guideUserStateOpened=N.getInitialGuideUserStateOpened();N.isFullscreenShorts=!1;N.miniGuideWidthThreshold=_.uP("kevlar_mini_guide_width_threshold",791);N.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
N.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");N.persistentGuideBlockedPagePathRegex=new RegExp(N.persistentGuideBlockedPagesPatterns.join("|"));N.animationTransitionDuration=0;N.lateDataResolver=_.lj();N.initialGuideDataFetchFailed=!1;N.initialLoad=!0;N.guideRenderers=new Set;N.isMouseOverGuide=!1;N.sessionUserManuallyExpandedGuideState=
!1;N.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return N};
_.p(tE,_.k);_.V=tE.prototype;_.V.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.V.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.V.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.V.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.V.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.V.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.V.ready=function(){_.cY().addProvider({provide:_.g4,useValue:this.hostElement})};
_.V.attached=function(){var N=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Fb(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Fb(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Fb(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Fb(this,this.onYtGuideShow));_.yB(this,function(){N.animationTransitionDuration=200})};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.Fb(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Fb(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Fb(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Fb(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Fb(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Fb(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Fb(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.V.getData=function(){return this.data};
_.V.load=function(){var N=this,t,O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=N.lateDataResolver.resolve.bind(N),Z.return(N.lateDataResolver.promise);if(window.ytInitialGuideData)return t=_.lj(),t.resolve(window.ytInitialGuideData),Z.return(t.promise);H=!1;_.Mo(Z,2);return Z.yield(N.fetchGuideData(),4);case 4:O=Z.yieldResult;_.Do(Z,3);break;case 2:A=_.ax(Z),A.message==="Returned error"&&(H=
!0);case 3:if(O)return Z.return(O);N.onYtGuideClose();H||(N.initialGuideDataFetchFailed=!0);return Z.return(N.lateDataResolver.promise)}})};
_.V.fetchGuideData=function(){var N=this,t,O,H,A,Z,U,C;return _.K(function(F){if(F.nextAddress==1)return t=_.cY(),N.guidePromise||(O=t.resolve(_.Sc),N.guidePromise=_.rq(O,qNm)),F.yield(N.guidePromise,2);if(F.nextAddress!=3)return H=F.yieldResult,A=t.resolve(_.C4),F.yield(A(),3);(Z=F.yieldResult)&&((U=H)==null?void 0:(C=U.responseContext)==null?void 0:C.maxAgeSeconds)!==0&&Z.put("service:guide:fallback",new _.nc({innertubeResponse:H}));return F.return(H)})};
_.V.initializeGuideDataIfEmpty=function(){var N=this,t,O;return _.K(function(H){if(H.nextAddress==1){if(!N.initialGuideDataFetchFailed||N.data)return H.return();_.Mo(H,2);return H.yield(N.fetchGuideData(),4)}if(H.nextAddress!=2)return(t=H.yieldResult)&&N.lateDataResolver.resolve(t),_.Do(H,0);O=_.ax(H);_.J_(O);_.Ty(H)})};
_.V.initializeGuideData=function(){var N=this,t;return _.K(function(O){switch(O.nextAddress){case 1:return _.FQ(kbn(),{mainAppWeb:_.rY()}),_.Mo(O,2),O.yield(N.load(),4);case 4:N.data=O.yieldResult;_.Do(O,3);break;case 2:_.ax(O),_.dP(kbn(),"FAILURE");case 3:t=N.data&&N.data.items&&N.data.items.length>0?"SUCCESS":"FAILURE",_.dP(kbn(),t),_.Ty(O)}})};
_.V.setGuideData=function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1)return t.disabled?A.return():t.data?(N.data=t.data,t.guideRenderers.add(N),A.return()):A.yield(t.initializeGuideData(),2);t.graftGuideToPage();O=_.vZ("IS_HOMEPAGE_COLD")?"eop":void 0;_.h("disable_element_pool_populator")?t.setGuideDataAfterInit(N):(H=new _.bL(1,O),_.pD(H,t.setGuideDataAfterInit.bind(t,N)));_.Ty(A)})};
_.V.setGuideDataAfterInit=function(N){N.data=this.data;N.markDirty();this.guideRenderers.add(N);_.nO(function(){_.zT("gle")});
_.yB(this,function(){_.zT("gpe")})};
_.V.graftGuideToPage=function(){if(this.data){var N=this.data&&this.data.trackingParams;N&&(N=_.ib(N),_.Iy(_.gF(),N))}};
_.V.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Fb(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.V.onDrawerOpenedChanged=function(N,t){!t.value&&this.guideOpened&&(this.guideOpened=!1)};
_.V.onYtGuideToggle=function(N){var t=this.guideOpened;this.guideOpened=!t;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var O=_.d0();_.g0(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;O.save()}this.updateGuideDrawerElementState();if(this.guideElement){var H;this.guideOpened&&((H=N.detail)==null?0:H.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Fb(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Fb(this,this.onAppDrawerTransitioned))}t||this.initializeGuideDataIfEmpty()};
_.V.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Fb(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Kb(this.guideElement)};
_.V.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Fb(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(THz(this.guideOpened))};
_.V.guidePersistentAndVisibleChanged=function(){_.Np(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.V.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.H5({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.V.miniGuideVisibleChanged=function(){_.Np(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.V.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(THz(this.guideOpened)),this.initialLoad=!1);_.Np(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.V.activeEndpointChanged=function(){_.Np(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.V.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.V.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.V.cachedClientWidthChanged=function(){this.updateGuideState()};
_.V.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.V.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var N=this.canFitPersistentGuide(this.cachedClientWidth);N?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=N}this.updateGuideDrawerElementState()};
_.V.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.V.getGuideOpened=function(){return this.guideOpened};
_.V.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.V.getActiveEndpoint=function(){return this.activeEndpoint};
_.V.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.V.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.or(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.V.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.h("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.V.handleGuideMouseLeave=function(){var N=this;!this.sessionUserManuallyExpandedGuideState&&_.h("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.W2(this,"handleGuideMouseLeave",function(){N.isMouseOverGuide||!N.guideOpened||N.miniGuideVisible||(N.guideOpened=!1,N.updateGuideDrawerElementState())},100))};
_.V.computeGuidePersistentAndVisible=function(){var N=this;_.W2(this,"computeGuidePersistentAndVisible",function(){N.guidePersistentAndVisible=N.guideOpened&&N.guidePersistent;N.guideIsVisibleButNotPersistent=!(!N.guideOpened||N.guidePersistent)})};
_.V.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.V.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.V.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.V.startLoadingWatch=function(){this.closeGuide()};
_.V.startLoadingShorts=function(){_.h("web_hide_guide_on_shorts")&&this.closeGuide()};
_.V.onYtNavigateFinish=function(N,t){if(!_.V_||t){this.activeEndpoint=t.endpoint;this.pageType=t.pageType;this.pageUrl=t.response.url;var O,H;N=(H=_.M((O=t.endpoint)==null?void 0:O.commandMetadata,_.Da))==null?void 0:H.url;!this.pageUrl&&N&&(this.pageUrl=N);_.h("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.V.getVisibleGuideRenderer=function(){for(var N=_.D(this.guideRenderers),t=N.next();!t.done;t=N.next())if(t=t.value,this.miniGuideVisible&&t.is==="ytd-mini-guide-renderer"||this.guideOpened&&t.is==="ytd-guide-renderer")return t;return null};
_.V.markGuideRendererDirty=function(N){if(N){typeof N.markDirty==="function"&&N.markDirty();N=_.D([].concat(_.W6(_.O6(N).children)));for(var t=N.next();!t.done;t=N.next())this.markGuideRendererDirty(t.value)}};
_.V.persistentGuideEnabled=function(N,t){if(!t||N==="watch"||N==="settings"||N==="shorts"&&this.isFullscreenShorts||_.h("reels_web_disable_persistent_guide_shorts")&&N==="shorts")return!1;var O=_.Yv(t)||"";return _.h("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(H){return O===H}):!this.persistentGuideBlockedPagePathRegex.test(O)};
_.V.canFitPersistentGuide=function(N){var t=_.uP("kevlar_persistent_guide_width_threshold",1312);return t===-1||_.h("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:N>this.calculateGuideThreshold(t)};
_.V.calculateGuideThreshold=function(N){return _.h("enable_ai_companion")?N+(this.persistentPanelVisible?400:0):N};
_.V.canFitMiniGuide=function(N){return this.miniGuideWidthThreshold===-1?!1:N>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.V.onResize=function(){var N=this;_.W2(this,"calculateGuideState",function(){N.onResizeDebounced()})};
_.V.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.V.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.V.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.V.getInitialGuideUserStateOpened=function(){return _.h("web_force_mini_guide_default")?!1:!_.d0().getFlag(109)};
_.cv.Object.defineProperties(tE.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Ro("initialBodyClientWidth")||window.innerWidth}}});
tE.prototype.onResize=tE.prototype.onResize;tE.prototype.observeForMiniGuideVisible=tE.prototype.observeForMiniGuideVisible;tE.prototype.computeGuidePersistentAndVisible=tE.prototype.computeGuidePersistentAndVisible;tE.prototype.persistentPanelVisibleChanged=tE.prototype.persistentPanelVisibleChanged;tE.prototype.cachedClientWidthChanged=tE.prototype.cachedClientWidthChanged;tE.prototype.resetGuide=tE.prototype.resetGuide;tE.prototype.activeEndpointChanged=tE.prototype.activeEndpointChanged;
tE.prototype.guideOpenedChanged=tE.prototype.guideOpenedChanged;tE.prototype.miniGuideVisibleChanged=tE.prototype.miniGuideVisibleChanged;tE.prototype.guideIsVisibleButNotPersistentChanged=tE.prototype.guideIsVisibleButNotPersistentChanged;tE.prototype.guidePersistentAndVisibleChanged=tE.prototype.guidePersistentAndVisibleChanged;tE.prototype.onGuideElementChanged=tE.prototype.onGuideElementChanged;tE.prototype.onGuidePersistentChanged=tE.prototype.onGuidePersistentChanged;
tE.prototype.onRenderGuideChanged=tE.prototype.onRenderGuideChanged;tE.prototype.onActiveEndpointChanged=tE.prototype.onActiveEndpointChanged;tE.prototype.onMiniGuideVisibleChanged=tE.prototype.onMiniGuideVisibleChanged;tE.prototype.onGuideIsVisibleButNotPersistentChanged=tE.prototype.onGuideIsVisibleButNotPersistentChanged;tE.prototype.onGuidePersistendAndVisibleChanged=tE.prototype.onGuidePersistendAndVisibleChanged;
_.W([_.Y(_.JV),_.Q("design:type",Object)],tE.prototype,"ironResizableBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],tE.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],tE.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],tE.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tE.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],tE.prototype,"disabled",void 0);_.W([_.X(),_.Q("design:type",Boolean)],tE.prototype,"guidePersistentAndVisible",void 0);_.W([_.gz("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"onGuidePersistendAndVisibleChanged",null);_.W([_.X(),_.Q("design:type",Boolean)],tE.prototype,"guideIsVisibleButNotPersistent",void 0);
_.W([_.gz("guideIsVisibleButNotPersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.W([_.X(),_.Q("design:type",Object)],tE.prototype,"miniGuideVisible",void 0);_.W([_.gz("miniGuideVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"onMiniGuideVisibleChanged",null);_.W([_.X(),_.Q("design:type",Boolean)],tE.prototype,"forceMiniGuideClose",void 0);
_.W([_.X(),_.Q("design:type",Object)],tE.prototype,"activeEndpoint",void 0);_.W([_.gz("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"onActiveEndpointChanged",null);_.W([_.X(),_.Q("design:type",Boolean)],tE.prototype,"renderGuide",void 0);_.W([_.gz("renderGuide"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"onRenderGuideChanged",null);
_.W([_.X({selector:Rs1}),_.Q("design:type",Boolean)],tE.prototype,"persistentPanelVisible",void 0);_.W([_.X(),_.Q("design:type",Object)],tE.prototype,"guideOpened",void 0);_.W([_.X(),_.Q("design:type",Boolean)],tE.prototype,"guidePersistent",void 0);_.W([_.gz("guidePersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"onGuidePersistentChanged",null);_.W([_.X(),_.Q("design:type",Object)],tE.prototype,"guideUserStateOpened",void 0);
_.W([_.X(),_.Q("design:type",String)],tE.prototype,"pageUrl",void 0);_.W([_.X(),_.Q("design:type",String)],tE.prototype,"pageType",void 0);_.W([_.X(),_.Q("design:type",Number)],tE.prototype,"cachedClientWidth",void 0);_.W([_.X(),_.Q("design:type",Object)],tE.prototype,"guideElement",void 0);_.W([_.X({selector:_.O9}),_.Q("design:type",Object)],tE.prototype,"isFullscreenShorts",void 0);
_.W([_.gz("guideElement"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"onGuideElementChanged",null);_.W([_.gz("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"guidePersistentAndVisibleChanged",null);
_.W([_.ic("guideIsVisibleButNotPersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"guideIsVisibleButNotPersistentChanged",null);_.W([_.gz("miniGuideVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"miniGuideVisibleChanged",null);_.W([_.ic("guideOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"guideOpenedChanged",null);
_.W([_.gz("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"activeEndpointChanged",null);_.W([_.ic("pageUrl"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"resetGuide",null);_.W([_.ic("cachedClientWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"cachedClientWidthChanged",null);
_.W([_.ic("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"persistentPanelVisibleChanged",null);_.W([_.gz("guideOpened","guidePersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"computeGuidePersistentAndVisible",null);
_.W([_.ic("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"observeForMiniGuideVisible",null);_.W([_.dz("iron-resize"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tE.prototype,"onResize",null);_.W([_.en({disableElementRegistration:!0,is:"yt-guide-manager"})],tE);
var vPO=_.n(tE,"yt-guide-manager",void 0,{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var OC=function(){var N=_.k.apply(this,arguments)||this;N.JSC$20524_keyboardInUse=!1;N.boundHandleCapturedKeydownEvent=function(t){N.handleCapturedKeydownEvent(t)};
return N};
_.p(OC,_.k);_.V=OC.prototype;_.V.attached=function(){this.listenToDocument(document)};
_.V.listenToDocument=function(N){N.addEventListener("keydown",_.Fb(this,this.onKeyDownEvent));N.addEventListener("keyup",_.Fb(this,this.onKeyUpEvent));N.addEventListener("mousedown",_.Fb(this,this.onMouseDownEvent));_.h("desktop_keyboard_capture_keydown_killswitch")||N.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);N.addEventListener("yt-page-data-updated",_.Fb(this,this.onPageUpdate))};
_.V.detached=function(){this.unlistenFromDocument(document)};
_.V.unlistenFromDocument=function(N){N.removeEventListener("keydown",_.Fb(this,this.onKeyDownEvent));N.removeEventListener("keyup",_.Fb(this,this.onKeyUpEvent));N.removeEventListener("mousedown",_.Fb(this,this.onMouseDownEvent));_.h("desktop_keyboard_capture_keydown_killswitch")||N.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);N.removeEventListener("yt-page-data-updated",_.Fb(this,this.onPageUpdate))};
_.V.ready=function(){_.cY().addProvider({provide:_.z6,useValue:this})};
_.V.isKeyBoardInUse=function(){return this.JSC$20524_keyboardInUse};
_.V.handleCapturedKeydownEvent=function(N){if(N.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(N)};
_.V.onMouseDownEvent=function(){this.JSC$20524_keyboardInUse=!1};
_.V.onPageUpdate=function(){if(_.h("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.h("web_shorts_keyboard_shortcut_usage_log")){_.X2i.clear();for(var N=_.D(_.$o),t=N.next();!t.done;t=N.next()){var O=_.D(t.value);t=O.next().value;O=O.next().value;O=_.UM(O);_.X2i.set(t,O);_.qp(_.z8(),_.pv(),O)}_.xf5.clear();N=_.D(_.jj);for(t=N.next();!t.done;t=N.next())O=_.D(t.value),t=O.next().value,O=O.next().value,O=_.UM(O),_.xf5.set(t,O),_.qp(_.z8(),_.pv(),O);_.fJ(_.z8(),_.pv(),[].concat(_.W6(_.xf5.values()),
_.W6(_.X2i.values())));_.Wc(_.z8(),[].concat(_.W6(_.xf5.values()),_.W6(_.X2i.values())))}};
_.V.onMiniplayerActiveChange=function(){var N;(N=_.cY().resolve(_.kf).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(N.document):this.unlistenFromDocument(N.document))};
_.V.ignoreKeyEvent=function(N){if(N.ctrlKey||N.altKey)if(_.h("kevlar_macro_markers_keyboard_shortcut")){if(N.keyCode!==37&&N.keyCode!==39)return!0}else return!0;var t=_.m1(N)||[];return _.ehq(t)?(_.h("web_button_or_anchor_list_item")&&Fb5(t,N)&&(this.JSC$20524_keyboardInUse=!0),!0):N.defaultPrevented?(a4(N.keyCode,N.shiftKey,this.isShortsPage),!0):N.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(N):!1};
_.V.isSpacebarClick=function(N){var t=N||window.event;var O;t.composedPath&&typeof t.composedPath==="function"?O=t.composedPath():O=t.path;O&&O.length?t=O[0]:(t=t||window.event,t=t.target||t.srcElement,t.nodeType==3&&(t=t.parentNode));return t&&N.keyCode===32&&(N=t.tagName==="BUTTON"||t.tagName==="A"||t.tagName==="INPUT",t=(t=t.getAttribute("role"))&&(t==="option"||t==="button"||t.indexOf("menuitem")===0),N||t)?!0:!1};
_.V.onKeyDownEvent=function(N){if(!this.ignoreKeyEvent(N)&&(N.keyCode===191&&(N.shiftKey||N.metaKey?N.repeat!=null&&N.repeat||(this.openHotkeyDialog(),a4(N.keyCode,N.shiftKey,this.isShortsPage)):(this.focusSearchBox(),N.preventDefault())),!N.metaKey)){var t=_.cY().resolve(_.kf);switch(N.keyCode){case 9:this.JSC$20524_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(N);break;case 84:t.pipController.getWindow()&&window.focus();this.toggleTheaterMode(N.keyCode,N.shiftKey);break;case 73:t.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(N.keyCode,N.shiftKey);break;case 70:if(this.isShortsPage){_.Pci();break}this.isMiniplayerActive()?t.pipController.getWindow()&&(t.close(!0),window.focus()):this.passEventToPlayer(N);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(N.keyCode,N.shiftKey):this.closeMiniplayer(N.keyCode,N.shiftKey)||this.passEventToPlayer(N);break;case 13:N.shiftKey&&_.cY().resolve(_.w2).activate(N);break;default:this.passEventToPlayer(N)}}};
_.V.onKeyUpEvent=function(N){if(!this.ignoreKeyEvent(N))if(_.h("web_speedmaster_spacebar_control")&&N.keyCode===32)this.handlePlayerSpaceKey(N,!0);else{var t=this.getPlayerManager();t&&(t=t.getPlayer())&&t.handleGlobalKeyUp(N.keyCode,N.shiftKey,N.ctrlKey,N.altKey,N.metaKey,N.key,N.code)}};
_.V.getPlayerManager=function(){var N=_.si(),t=_.cY().resolve(_.BY(_.J4));return N&&t&&t.isOnWatch()?N:null};
_.V.passEventToPlayer=function(N,t){var O=this,H,A,Z,U;return _.K(function(C){if(C.nextAddress==1){if(!_.h("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&O.isMiniplayerActive())H=_.cY().resolve(_.kf).getPlayerElement();else if(O.inlinePreviewIsActive){if(A=_.Np(O.hostElement,"yt-get-inline-preview-player-action"),(Z=A)==null?0:Z[0])H=A[0]}else H=_.si();return H?C.yield(H.getPlayerPromise(),3):C.jumpTo(0)}U=C.yieldResult;t?U.handleGlobalKeyUp(N.keyCode,N.shiftKey,N.ctrlKey,N.altKey,N.metaKey,
N.key,N.code):U.handleGlobalKeyDown(N.keyCode,N.shiftKey,N.ctrlKey,N.altKey,N.metaKey,N.key,N.code,N.repeat);N.keyCode!==38&&N.keyCode!==40&&a4(N.keyCode,N.shiftKey,O.isShortsPage);_.Ty(C)})};
_.V.focusSearchBox=function(){_.or(this.hostElement,"yt-focus-searchbox")};
_.V.openHotkeyDialog=function(){_.or(this.hostElement,"yt-open-hotkey-dialog")};
_.V.isMiniplayerActive=function(){return _.cY().resolve(_.kf).isMiniplayerActive()};
_.V.closeMiniplayer=function(N,t){return this.isMiniplayerActive()?(_.cY().resolve(_.kf).close(),a4(N,t,this.isShortsPage),!0):!1};
_.V.toggleTheaterMode=function(N,t){var O=_.aM(_.v5().getState()),H=this.getPlayerManager(),A=_.h("disable_theater_mode_keyboard")||_.vZ("START_IN_FULL_WINDOW_MODE");H&&!A&&(O=!O,_.G8()&&_.h("external_fullscreen")&&(O=!0),_.sl(this.hostElement,"yt-toggle-theater-mode",[O]),a4(N,t,this.isShortsPage))};
_.V.toggleMiniplayer=function(N,t){var O=this.getPlayerManager();if(this.isMiniplayerActive()){var H;((H=_.cY().resolve(_.BY(_.J4)))==null?0:H.isOnWatch())?_.cY().resolve(_.kf).close(!0):_.r2(_.cY().resolve(_.kf));a4(N,t,this.isShortsPage)}else O&&(_.sl(this.hostElement,"yt-activate-miniplayer-from-watch-action"),a4(N,t,this.isShortsPage))};
_.V.handlePlayerSpaceKey=function(N,t){var O=!!_.si()||this.isMiniplayerActive();O=_.h("disable_space_scroll_fix")||O;_.h("global_spacebar_pause")&&!this.isKeyBoardInUse()&&O&&(N.preventDefault(),this.passEventToPlayer(N,t))};
_.V.isPresentingTheaterMode=function(){return _.h("web_watch_enable_tm_esc_key")?_.aM(_.v5().getState())&&!_.G8():!1};
OC.prototype.onMiniplayerActiveChange=OC.prototype.onMiniplayerActiveChange;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],OC.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],OC.prototype,"ytdReduxBehavior",void 0);_.W([_.X({selector:_.aTx}),_.Q("design:type",Boolean)],OC.prototype,"inlinePreviewIsActive",void 0);_.W([_.X({selector:_.n7G}),_.Q("design:type",Boolean)],OC.prototype,"isShortsPage",void 0);
_.W([_.X({selector:_.w8}),_.Q("design:type",Boolean)],OC.prototype,"miniplayerIsActive",void 0);_.W([_.gz("miniplayerIsActive"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],OC.prototype,"onMiniplayerActiveChange",null);_.W([_.en({disableElementRegistration:!0,is:"yt-hotkey-manager"})],OC);_.n(OC,"yt-hotkey-manager",void 0,{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var HJ=function(){var N=_.k.apply(this,arguments)||this;N.loopStateEntityKey_=null;N.playlistLoopStateEntity_=null;N.isShuffleNextPlaylist=!1;N.PLAYER_EVENTS_=new Map;N.playerListenersSetup_=!1;N.videoSkipJob_=0;N.canAutoAdvance_=!1;N.playerManager_=null;N.TEST_ONLY={};return N};
_.p(HJ,_.k);_.V=HJ.prototype;_.V.ready=function(){_.cY().addProvider({provide:_.$8,useValue:this.hostElement})};
_.V.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.V.attached=function(){document.addEventListener("yt-navigate-start",_.Fb(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Fb(this,this.onYtNavigateFinish_))};
_.V.detached=function(){document.removeEventListener("yt-navigate-start",_.Fb(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Fb(this,this.onYtNavigateFinish_))};
_.V.updatePlaylistEventListeners=function(N,t){t&&!this.playerListenersSetup_?(this.playerManager_=N,this.registerPlaylistEventListeners_(N)):!t&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(N))};
_.V.setPlayer=function(N){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=N};
_.V.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.V.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.V.registerPlaylistEventListeners_=function(N){var t=this;N.getPlayerPromise().then(function(O){t.playerListenersSetup_||(t.ytPlayerListenerBehavior.listenToPlayerEvents(O,t.PLAYER_EVENTS_),t.playerListenersSetup_=!0)})};
_.V.removePlaylistEventListeners_=function(N){var t=this;N.getPlayerPromise().then(function(O){t.playerListenersSetup_&&(t.ytPlayerListenerBehavior.unlistenFromPlayerEvents(O,t.PLAYER_EVENTS_),t.playerListenersSetup_=!1)})};
_.V.setPlaylistComponent=function(N){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Fb(this,this.onPlaylistYtNavigate_)),N&&(N.data&&this.playlistComponent.data&&N.data.playlistId==this.playlistComponent.data.playlistId?(N.loopOn=this.playlistComponent.loopOn,N.shuffleOn=this.playlistComponent.shuffleOn):(N.loopOn=!1,N.shuffleOn=!1),this.isShuffleNextPlaylist&&(N.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=N;this.playlistComponent.addEventListener("yt-navigate",
_.Fb(this,this.onPlaylistYtNavigate_))};
_.V.setAutoplayRenderer=function(N){this.autoplayData=N};
_.V.setPlaylistData=function(N){this.currentPlaylistData_=N;_.or(this.hostElement,"yt-playlist-data-updated");_.WW.isEmpty(N)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(N)};
_.V.setPlayerPlaybackControlData=function(N){this.playerManager_&&this.playerManager_.updatePlayerComponents(N.playlistPanelRenderer)};
_.V.getPlaylistData=function(){return this.currentPlaylistData_};
_.V.getTempData_=function(N,t){if(this.playlistComponent==null)return null;N={};this.playlistComponent.shuffleOn&&(N.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(N.loop_on=this.playlistComponent.loopOn);t&&(N.autonav="1",_.cY().resolve(_.j9),t=_.jO(),t>0&&(N.lact=t),this.playerManager_&&(t=this.playerManager_.getPlayer())&&t.shouldSendVisibilityState()&&(t=t.getVisibilityState(),t!=0&&(N.vis=t)));_.h("enable_unknown_lact_fix_on_html5")&&(_.cY().resolve(_.j9),N.lact=
_.jO());return N};
_.V.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.V.setLoopStateEntityKey_=function(N){var t;this.loopStateEntityKey_=((t=this.getPlaylistLoopData_(N))==null?void 0:t.playlistLoopStateEntityKey)||null};
_.V.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.V.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.V.skipVideo=function(){var N=this,t=_.h("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||t)t=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.MU(_.GB,function(){N.onPlaylistNext();N.videoSkipJob_=0},t)};
_.V.cancelVideoSkip=function(){this.videoSkipJob_&&(_.GB.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.V.isInBackground_=function(){var N=window.document.visibilityState;return!(!N||N=="visible")};
_.V.onPlaylistIndex_=function(N){this.playlistComponent&&(N=this.playlistComponent.data.contents[N].playlistPanelVideoRenderer.navigationEndpoint,_.or(this.hostElement,"yt-navigate",{endpoint:N,tempData:this.getTempData_(N)}))};
_.V.onPlayerStateChange_=function(N){if(N=N==0&&this.playlistComponent&&this.canAutoAdvance_)N=_.Ta.getInstance(),N=!(N.autonavState_===3?N.autonavPauseReason_&&N.autonavPauseReason_.inputBoxFocus===!0:N.autonavState_===1&&N.disabledAutonavPauseReason_&&N.disabledAutonavPauseReason_.inputBoxFocus===!0);N&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.V.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.V.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.V.navigateToAutoplayWatchEndpoint_=function(N,t,O){var H=this.playlistComponent.data.currentIndex,A=this.getNumPlayableVideos_();N=="NORMAL"&&t=="autoplayVideo"&&H+1>=A&&O||!(N=this.getVideoEndpoint_(N,t))||(O=this.getTempData_(N,O),_.or(this.hostElement,"yt-navigate",{endpoint:N,tempData:O}))};
_.V.getNumPlayableVideos_=function(){for(var N=0,t=_.D(this.playlistComponent.data.contents||[]),O=t.next();!O.done;O=t.next())O.value.playlistPanelVideoRenderer&&(N+=1);return N};
_.V.getVideoEndpoint_=function(N,t){if(this.autoplayData&&this.autoplayData.sets)for(var O=0,H=this.autoplayData.sets.length;O<H;O++){var A=this.autoplayData.sets[O];if(A.mode==N){if(A[t])return A[t];break}}else N=new _.fF("AutoplayData is undefined in playlist manager","Mode: "+N+" endpoint: "+t),_.J_(N)};
_.V.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.V.onPlaylistYtNavigate_=function(N){if(N.detail.endpoint){N.stopPropagation();var t=N.detail;t.tempData=this.getTempData_(N.detail.endpoint);_.or(this.hostElement,"yt-navigate",t)}};
_.V.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.V.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.V.playlistLoopStateEntityChanged_=function(N){var t=this,O,H,A;return _.K(function(Z){if(Z.nextAddress==1){if(!N)return Z.return();O=N.state==="PLAYLIST_LOOP_STATE_ONE";return t.playerManager_?Z.yield(t.playerManager_.getPlayerPromise(),3):Z.jumpTo(2)}Z.nextAddress!=2&&(H=Z.yieldResult,H.setLoopVideo(O));A=N.state==="PLAYLIST_LOOP_STATE_ALL";t.playlistComponent&&(t.playlistComponent.loopOn=A);_.Ty(Z)})};
_.V.getPlaylistLoopData_=function(N){var t,O;if(N=N==null?void 0:(t=N.playlistButtons)==null?void 0:(O=t.menuRenderer)==null?void 0:O.topLevelButtons)for(t=_.D(N),O=t.next();!O.done;O=t.next())if(O=O.value,O.playlistLoopButtonRenderer)return O.playlistLoopButtonRenderer};
_.V.getLoopStateCommand_=function(N){var t=this.getPlaylistData(),O;t=((O=this.getPlaylistLoopData_(t))==null?void 0:O.states)||[];var H;N=(H=_.M(t[N?1:2],_.TAY))==null?void 0:H.button;var A;return(A=_.M(N,_.g_))==null?void 0:A.command};
_.V.onPlayerLoopChange_=function(N){this.playlistLoopStateEntity_&&(N?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(N=this.getLoopStateCommand_(N))&&this.ytComponentBehavior.resolveCommand(N)};
_.V.onSleepTimerSettingsChanged_=function(N){this.canAutoAdvance_=N!=="End of video"};
HJ.prototype.onPlaylistLoopStateEntityChanged=HJ.prototype.onPlaylistLoopStateEntityChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],HJ.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.iE.YtPlayerListenerBehavior),_.Q("design:type",_.uE)],HJ.prototype,"ytPlayerListenerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],HJ.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],HJ.prototype,"loopStateEntityKey_",void 0);
_.W([_.X({selectorArgs:["loopStateEntityKey_"],selector:_.so.playlistLoopStateEntitySelector}),_.Q("design:type",Object)],HJ.prototype,"playlistLoopStateEntity_",void 0);_.W([_.gz("playlistLoopStateEntity_"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],HJ.prototype,"onPlaylistLoopStateEntityChanged",null);_.W([_.en({disableElementRegistration:!0,is:"yt-playlist-manager"})],HJ);_.n(HJ,"yt-playlist-manager",void 0,{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var J1m,oPO=function(){if(J1m!==void 0)return J1m;var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return J1m=N};var AE=function(){var N=_.k.apply(this,arguments)||this;N.lastCallback=null;N.getAccountLinkPromises={};N.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);N.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return N};
_.p(AE,_.k);_.V=AE.prototype;_.V.getLocation=function(){return window.location.href};
_.V.getCompletionUrl=function(){return _.Qm(this.getLocation())};
_.V.containsRedirectState=function(N){return(N=_.LS(_.Kkg(N)))?(new URLSearchParams(N)).get("redirect_state")!==null:!1};
_.V.createGalConfig=function(N,t){var O=new KVO;N=O=t?this.getPopupOrRedirectSetting(O,_.Ro("LINK_API_KEY"),_.Ro("LINK_API_KEY_REDIRECT"),N):FVJ(O,_.Ro("LINK_API_KEY"));N.authUser=_.Ro("SESSION_INDEX")||0;N.supportedFlows=new Set([4]);return N.build()};
_.V.getPopupOrRedirectSetting=function(N,t,O,H){this.isGalInteractionPopupMode(H)?(N.interactionMode=0,N=FVJ(N,t)):(N.interactionMode=1,t=this.getCompletionUrl(),N.completionUrl=t,N=FVJ(N,O));return N};
_.V.isGalInteractionPopupMode=function(N){if(this.redirectModeProviderAllowlist.has(N))switch(N){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.V.getStatusEntityKeyForProviderId=function(N){return _.U_(N+":all","accountLinkStatusEntity")};
_.V.findNestedPropValue=function(N,t){var O=!1,H=null;JSON.stringify(N,function(A,Z){O||A!==t||(O=!0,H=Z);return O?null:Z});
return H};
_.V.findAccountLinkButtonViewModel=function(N,t){var O=null,H=!1;JSON.stringify(N,function(A,Z){H||Z.accountLinkStatusEntityKey!==t||Z.accountLinkStatusSecondaryEntityKey||(H=!0,O=Z);return H?null:Z});
return O};
_.V.executeLinkingSuccessOrFailureCommands=function(N,t,O){var H=null,A;(t==null?0:(A=t.url)==null?0:A.includes("account_sharing"))?H=t==null?void 0:t.response:H=t==null?void 0:t.response;(t=this.findAccountLinkButtonViewModel(H,N))?(N=O?this.findNestedPropValue(t,"onSuccessCommand"):this.findNestedPropValue(t,"onFailureCommand"))?_.Za([N],this.hostElement):_.HY(Error("Bl")):_.HY(Error("Cl`"+N))};
_.V.handleInitializeRequest=function(N,t){var O=this,H=Vq5(this.createGalConfig(N,!0));this.containsRedirectState(this.getLocation())?tqn(N,H.config,H.galService).then(function(A){var Z=O.getStatusEntityKeyForProviderId(N);if(A.statusCode===1)t&&O.executeLinkingSuccessOrFailureCommands(Z,t,!0),A=O.getLocation().indexOf("#"),A!==-1&&window.history.pushState(null,"",O.getLocation().substring(0,A));else return t&&O.executeLinkingSuccessOrFailureCommands(Z,t,!1),Promise.reject(Error(A.statusMessage))}).catch(function(A){_.J_(A);
_.E7("gamingAccountLinkStatusChanged",{serviceId:N,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(A)}):this.getAccountLinkPromises[N]=H.startLinkingSession({serviceId:N})};
_.V.handleAccountLinkCommand=function(N){_.M(N,dlm)&&this.handleLinkRequest(_.M(N,dlm))};
_.V.handleLinkRequest=function(N){var t=this,O=N.thirdPartyId;if(O)if(this.isGalInteractionPopupMode(O)){var H=function(){t.closeAndFire("ytd-gaming-account-link-setting-renderer",N.onFailureCommand)},A=function(){t.closeAndFire("ytd-gaming-account-link-setting-renderer",N.onSuccessCommand)};
this.lastCallback=A;this.getAccountLinkPromises[O].then(function(Z){mSq(Z).then(function(U){U.statusCode===1?A():H()})}).catch(function(){H()})}else this.getAccountLinkPromises[O].then(function(Z){mSq(Z).then(function(U){if(U.statusCode!==1)return Promise.reject(Error(U.statusMessage))})}).catch(function(Z){_.J_(Z);
_.E7("gamingAccountLinkStatusChanged",{serviceId:O,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Z)})};
_.V.closeAndFire=function(N,t){_.sl(this.hostElement,"yt-close-popup-action",[N]);t&&_.Za([t],this.hostElement)};
_.V.handleAccountUnlinkCommand=function(N){_.M(N,gu1)&&this.handleUnlinkRequest(_.M(N,gu1))};
_.V.handleUnlinkRequest=function(N){var t=this,O=N.thirdPartyId;if(O){var H=function(){t.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",N.onFailureCommand)},A=function(){t.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",N.onSuccessCommand)};
this.lastCallback=A;var Z=Vq5(this.createGalConfig(O,!1));this.unlinkUserGal(Z,O).then(function(U){U.statusCode===1?A():H()}).catch(function(){H()})}};
_.V.unlinkUserGal=function(N,t){return N.deleteLink(t)};
_.V.handleLogAccountLinkingEventCommand=function(N){_.h("enable_gel_log_commands")&&_.M(N,yfn)&&(N=_.M(N,yfn).event)&&_.E7("gamingAccountLinkStatusChanged",N)};
_.cv.Object.defineProperties(AE,{template:{configurable:!0,enumerable:!0,get:function(){return oPO()}}});
_.W([_.Y(_.fD.YtOpenPopupBehavior),_.Q("design:type",Object)],AE.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],AE.prototype,"ytActionHandlerBehavior",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-third-party-manager"})],AE);_.n(AE,"ytd-third-party-manager",function(){return oPO()},{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var s6r,N15=function(){if(s6r!==void 0)return s6r;var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return s6r=N};var ZD=function(){var N=_.k.apply(this,arguments)||this;N.currentPage=void 0;N.renderLoadingStateJobId=0;N.updatePageDataJobId=0;N.pageDisposeJobsets=new WeakMap;N.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};N.shouldApplyLockupToWatchTransition=_.h("web_thumbnail_to_watch_transition");N.shouldApplySlideTransition=_.So("web_page_transition_type")==="slide"||_.h("enable_plj_landing_page");N.shouldApplyLearningJourneyTransition=_.h("enable_plj_landing_page");N.TEST_ONLY=void 0;return N};
_.p(ZD,_.k);_.V=ZD.prototype;_.V.ready=function(){var N=_.cY();N.addProvider({provide:_.J4,useValue:this});N.addProvider({provide:_.Vs1,useValue:this})};
_.V.created=function(){this.pagePool=new Mwf;this.contextSwitcher=new qRi};
_.V.attached=function(){_.or(this.hostElement,"attached");var N=_.cY().resolve(_.BY(_.u8));N&&(this.contextSwitcher.JSC$20349_networkService_=N);this.viewTransitionManager=_.cY().resolve(_.NX)};
_.V.getPageOffset=function(N){return N.getScrollTop()};
_.V.setPageOffset=function(N,t){try{N.setScrollTop(t)}catch(O){}};
_.V.setPageOffsetForNavigation=function(N,t){_.or(this.hostElement,"yt-navigate-set-page-offset",{page:N,offset:t===void 0?0:t})};
_.V.pauseActiveContext=function(){var N=this.contextSwitcher;N.activeContext_&&N.activeContext_.pause()};
_.V.getModuleNameForType=function(N){return N==="watch"?_.h("kevlar_watch_fixie")?"watchFixie":_.h("kevlar_watch_grid")?"watchGrid":"watchFlexy":N==="shorts"||N==="search"?N:"browse"};
_.V.attachPage=function(N){var t,O=!_.h("pc_is_attached_ks")&&(N==null?void 0:(t=N.polymerController)==null?void 0:t.isAttached);if(!N.isAttached&&!O)try{_.O6(this.hostElement).appendChild(N)}catch(A){var H;_.J_(new _.fF("Error attaching page element for component",{origin:(H=this.currentPage)==null?void 0:H.is,component:N.is}))}};
_.V.setActivePage=function(N,t){var O=this,H=!1,A=function(){var Z=O.isOnWatch(),U=O.currentPage;if(N)if(N!==O.currentPage){U&&(U.hidden=!0,U.active=!1,U.removeAttribute("role"));O.currentPage=N;var C,F=t!=null?t:_.gY((C=O.data)==null?void 0:C.endpoint);U&&_.or(O.hostElement,"yt-page-type-changed",{oldPageType:U.is,newPageType:N.is,newPageSubtype:F});_.mN().dispatch(_.H5({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:N.is}));_.mN().dispatch(_.H5({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:F||""}));
N.hidden=!1;O.attachPage(N);N.active=!0;N.setAttribute("role","main");U&&O.setPageOffsetForNavigation(N,0);_.h("kevlar_remove_page_dom_on_switch")&&!Z&&U&&_.O6(O.hostElement).removeChild(U)}else H=!0;else O.handleMissingDestinationPage(U)};
this.shouldRunBrowseTransition(this.currentPage,N)?Opq(this.viewTransitionManager,A):this.shouldRunLearningJourneyTransition(this.currentPage,N)?Zpn(this.viewTransitionManager,A):A();return H};
_.V.handleMissingDestinationPage=function(N){if(this.isColdLoadForUnknownPage(N))_.J_(new _.fF("Cold load for unknown page"));else{var t;N=new _.fF("Unable to set active page",N?N.is:"unknown origin",(t=this.data)==null?void 0:t.endpoint);_.R0(N)}};
_.V.isColdLoadForUnknownPage=function(N){return!N&&p2(this.data)==="unknown"};
_.V.shouldRunBrowseTransition=function(N,t){return this.shouldApplySlideTransition&&(N==null?void 0:N.is)==="ytd-browse"&&(t==null?void 0:t.is)==="ytd-browse"&&N!==t};
_.V.shouldRunLearningJourneyTransition=function(N,t){return this.shouldApplyLearningJourneyTransition&&(N==null?void 0:N.is)==="ytd-browse"&&((t==null?void 0:t.is)==="ytd-watch-learning-journey"||(t==null?void 0:t.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.V.shouldRunWatchNextLoadedTransition=function(N,t){return this.viewTransitionManager&&N.is==="ytd-watch-flexy"&&t};
_.V.updatePageData=function(N){var t=this,O=this.data;this.updatePageDataJobId&&_.GB.cancelJob(this.updatePageDataJobId);this.data=N;return new _.TW(function(H){var A=function(){N.filler?t.performDataUpdate(N,O):FjO(function(){t.performDataUpdate(N,O)});
var F=_.iI();_.uI(F,"cr")||F.processSignal("cr");H()},Z=function(){N&&(N.page==="watch"||_.h("web_shorts_delay_shorts_page_update")&&N.page==="shorts")?t.updatePageDataJobId=_.MU(_.GB,A):A()};
if(_.h("kevlar_enable_mss_page_modules_client")&&N){var U=_.cY().resolve(_.fS),C=t.getModuleNameForType(N.page);(U=NH1(U,[C]))?U.then(Z):Z()}else Z()})};
_.V.isDownloadsPage=function(N){var t,O;return(N==null?void 0:(t=N.endpoint)==null?void 0:(O=t.browseEndpoint)==null?void 0:O.browseId)==="FEdownloads"};
_.V.setPlayerSyncInterval=function(N){var t;return _.K(function(O){if(O.nextAddress==1)return O.yield(_.cY().resolve(_.A5),2);t=O.yieldResult;t.setUpPositionSyncInterval(N);_.Ty(O)})};
_.V.performDataUpdate=function(N,t){_.h("kevlar_early_popup_close")||_.sl(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var O=!N.filler;O&&(_.zT("lps"),_.h("config_age_report_killswitch")||uMm());var H=p2(N),A,Z=!1;if(_.h("kevlar_remove_page_dom_on_switch")){var U=t&&p2(t);H===U&&(A=this.getCurrentPage())}A||(A=EO(this.pagePool,H));O&&yLz(this.pagePool.elementPoolPopulator,H);O&&!this.renderLoadingStateJobId&&(Z=this.setActivePage(A));if(A){U=H==="watch";var C=
H==="shorts",F=H==="learning_journey_watch";_.h("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(A);if(U||C||F)A.playerData=N.playerResponse;if(C){N.reelWatchSequenceResponse?A.reelWatchSequenceResponse=N.reelWatchSequenceResponse:!A.cachedReelWatchSequenceResponse||A.reelWatchSequenceResponse||_.h("web_enable_delay_shorts_sequence_call_new")||(A.reelWatchSequenceResponse=A.cachedReelWatchSequenceResponse);N.reelWatchSequenceResponse&&(t==null?void 0:t.page)!=="shorts"&&
(A.cachedReelWatchSequenceResponse=N.reelWatchSequenceResponse);A.currentEndpoint=N.endpoint;var g;A.isPreviousPageShorts=!!(t==null?0:(g=t.endpoint)==null?0:g.reelWatchEndpoint)}g=this.isDownloadsPage(N);var B=this.isDownloadsPage(t);g&&!B?this.setPlayerSyncInterval(6E5):!g&&B&&this.setPlayerSyncInterval();_.h("block_all_player_prefetch_requests")||this.preparePrefetchRequest(N,A,O,U,C,F);Vex(_.cY().resolve(_.kf),t,N);if(_.h("enable_ai_companion")){var c;(c=_.cY().resolve(_.BY(_.ZF)))==null||_.qHz(c,
this.getPersistentPanelSurface(H))}_.Lc(_.cY().resolve(_.j9));_.h("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(A);O?(O=typeof A.loadPage,O==="function"?(A.pageContext=fkx(this.contextSwitcher,A,A.data!==N.response),O=function(){A.loadPage(N.response)},this.shouldApplySlideTransition&&A.is==="ytd-browse"&&Z&&(H==="learning"||this.isDifferentBrowseId(N==null?void 0:N.endpoint,t==null?void 0:t.endpoint))?Opq(this.viewTransitionManager,O):this.shouldRunWatchNextLoadedTransition(A,
Z)?AA5(this.viewTransitionManager,O):O()):_.vX(new _.fF("b/38014653 ",[H,
A.is,A.nodeName,O,A.isAttached,t&&p2(t),this.hostElement.children.length])),_.zT("pdl")):(A.hidden=!0,N.response.filler=!0,A.data=N.response,this.attachPage(A));_.or(this.hostElement,"yt-page-data-updated",{pageType:H})}_.WX(_.GB,function(){_.h("logging_avoid_blocking_during_navigation")&&_.bEp().transition("none");var u=Nx1(),S=A;if(N){var b=zGm(N),z=Ydx(N),w;a:{if(N.playerResponse){var P=N.playerResponse,x;if((w=P.auxiliaryUi)==null?0:(x=w.messageRenderers)==null?0:x.upsellDialogRenderer){w=P.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(N.response&&(w=N.response,(P=w.overlay)==null?0:P.upsellDialogRenderer)){w=w.overlay.upsellDialogRenderer;break a}w=void 0}var l;var I;x=(l=N.playerResponse)==null?void 0:(I=l.auxiliaryUi)==null?void 0:I.messageRenderers;l=(x==null?void 0:x.enforcementMessageViewModel)||(x==null?void 0:x.bkaEnforcementMessageViewModel);l=(l==null?void 0:l.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?l:void 0;var r;a:{if(N.response&&(I=N.response,(r=I.overlay)==null?0:r.commandWrapperPromoRenderer)){r=
I.overlay.commandWrapperPromoRenderer;break a}r=void 0}sF5(u,b,z,w,l,r,S)}})};
_.V.preparePrefetchRequest=function(N,t,O,H,A,Z){var U,C,F,g,B,c,u,S,b,z,w,P,x,l,I;return _.K(function(r){if(r.nextAddress==1)return!O||!(H||A||Z)||_.h("kevlar_disable_background_prefetch")&&_.oo(_.PKx)()===0?r.return():(U=_.oM(t))?r.yield(U.getPlayerPromise(),2):r.return();C=r.yieldResult;F=_.cY().resolve(_.BY(_.u8));if(!F)return r.return();if(A)return g=_.oE(_.Iu),St5(g,(B=N.endpoint)==null?void 0:B.reelWatchEndpoint,t.reelWatchSequenceResponse,C,F),r.return();S=(c=N.response)==null?void 0:(u=c.responseContext)==
null?void 0:u.webResponseContextExtensionData;if(!S)return r.return();x=(b=N.response)==null?void 0:(z=b.contents)==null?void 0:(w=z.twoColumnWatchNextResults)==null?void 0:(P=w.autoplay)==null?void 0:P.autoplay;l=_.cY().resolve(_.$8);I=_.oE(_.Iu);h25(I,S,C,F,l,x);_.Ty(r)})};
_.V.movePlayerToWatch=function(N){var t=this,O,H;return _.K(function(A){O=EO(t.pagePool,"watch");H=O.getPlayerContainer();N.appendTo(H);_.Ty(A)})};
_.V.movePlayerToShorts=function(N){var t=this,O,H,A;return _.K(function(Z){O=EO(t.pagePool,"shorts");H=O.getPlayerContainer();(A=N)==null||A.appendTo(H,void 0,!0);_.Ty(Z)})};
_.V.getPlayerFromWatch=function(){var N=EO(this.pagePool,"watch");return _.oM(N)};
_.V.getPlayerFromShorts=function(){var N=EO(this.pagePool,"shorts");return _.oM(N)};
_.V.startLoadingWatch=function(){var N=this,t=EO(this.pagePool,"watch");this.renderLoadingStateJobId?(_.GB.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.h("web_watch_transition_enable_start_loading_watch_callsite")?Hpm(this.viewTransitionManager,function(){N.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(t,"watch");
if(_.h("enable_ai_companion")){var O;(O=_.cY().resolve(_.BY(_.ZF)))==null||_.qHz(O,this.getPersistentPanelSurface("watch"))}};
_.V.startLoadingShorts=function(){var N=EO(this.pagePool,"shorts");this.setActivePage(N,"shorts")};
_.V.startLoadingLearningJourney=function(){var N=EO(this.pagePool,"learning_journey_watch");this.setActivePage(N,"learning_journey_watch")};
_.V.getCurrentPage=function(){return this.currentPage};
_.V.getDestinationPageType=function(){return this.destinationPageType};
_.V.getCurrentData=function(){return this.data};
_.V.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.V.isOnShorts=function(){var N;return((N=this.currentPage)==null?void 0:N.is)==="ytd-shorts"};
_.V.isWatchPage=function(N){return!!N&&(N.is==="ytd-watch-flexy"||N.is==="ytd-watch-fixie"||N.is==="ytd-watch-grid")};
_.V.preparePage=function(N,t){var O=this,H=function(){var U=O.pagePool.preparePage(N,O.currentPage,t);U&&O.attachPage(U)},A=function(U){_.o0(U,t);
_.J_(U)};
if(_.h("kevlar_enable_mss_page_modules_client")){var Z=this.getModuleNameForType(N);if(Z=NH1(_.cY().resolve(_.fS),[Z])){Z.then(H.bind(this)).catch(A.bind(this));return}}try{H()}catch(U){A(U)}};
_.V.lazyPrepareCriticalPages=function(N,t){N=_.gY(t)||N;_.h("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(N).then(this.maybePrepareWatchPage.bind(this,N)):this.maybePrepareWatchPage(N)};
_.V.maybePrepareWatchPage=function(N){N==="watch"||N==="learning_journey_watch"&&_.h("web_watch_learning_journey_disable_lazy_pages")||_.WX(_.GB,this.preparePage.bind(this,"watch"))};
_.V.downloadPageModules=function(N){N=this.getModuleNameForType(N);var t=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);t.delete(N);var O=_.cY().resolve(_.fS);O.JSC$19024_loadModules(N);return O.JSC$19024_loadModules.apply(O,_.W6(t))};
_.V.renderPageLoadingState=function(N,t){this.preparePage(N,t);var O=EO(this.pagePool,N);O.loadingData&&(O.loadingData.endpoint=t);O.loading=!0;this.setActivePage(O,N);N!=="watch"&&N!=="learning_journey_watch"||_.or(this.hostElement,"yt-guide-close")};
_.V.prepareForNavigation=function(N,t){var O=this;if(this.currentPage&&this.data){var H=_.gY(t)||N;this.destinationPageType=H;p2(this.data)==H&&_.or(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((N==="watch"||N==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.GB.cancelJob(this.renderLoadingStateJobId);_.cY().resolve(_.kf).deactivate(t);_.yD(_.GB,function(){var Z=O.viewTransitionManager,U=O.currentPage;
if(Z.isLockupToWatchTransitionEnabled&&Z.isLockupThumbnailRegistrationEnabled&&U)if(Z.registeredLockupThumbnail)Z.lockupThumbnailRegisteredFromWatchEndpoint&&_.J_(new _.fF("Lockup thumbnail already registered from watch endpoint."));else{a:{var C=_.M(t,_.rN);if(C==null?0:C.videoId){var F="yt-lockup-view-model ."+_.mDO(C.videoId)+" yt-thumbnail-view-model";U=U.querySelectorAll(F);if(U.length===1){C=U[0];break a}U.length>1?_.J_(new _.fF("Multiple LockupViewModel thumbnails found for videoId: "+C.videoId+
". Selector: "+F)):_.h("web_thumbnail_to_watch_transition_debug")&&_.J_(new _.fF("No LockupViewModel thumbnail found for videoId: "+C.videoId+". Selector: "+F))}C=void 0}C&&(Z.registeredLockupThumbnail=C,Z.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.$V5(Z,C))}});
var A=this.data;this.renderLoadingStateJobId=_.yD(_.GB,function(){Hpm(O.viewTransitionManager,function(){if(O.data!=A){var Z=EO(O.pagePool,N);O.setActivePage(Z)}else O.renderPageLoadingState(N,t);O.renderLoadingStateJobId=0})},150)}};
_.V.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var N=new _.bL(1);this.currentPage.pageDisposeJobs.forEach(function(t){_.pD(N,t)});
this.pageDisposeJobsets.set(this.currentPage,N)}};
_.V.flushPageDisposeJobset=function(N){var t=this.pageDisposeJobsets.get(N);t&&(t.flushJobs(),this.pageDisposeJobsets.delete(N))};
_.V.onYtStopOldPlayer=function(N,t){t=t===void 0?!1:t;var O,H=_.MH("kevlar_new_stop_old_player_logic_pages");if(_.h("kevlar_check_current_page_on_stop_old_player")&&(H.length===0||this.currentPage&&H.includes(this.currentPage.is)))if(this.data&&(O=p2(this.data)),p2(N)===O&&this.currentPage&&p2(this.currentPage.data)!==O)var A=_.oM(this.currentPage);else O=p2(this.data),A=EO(this.pagePool,O),A=_.oM(A);else this.data&&(O=p2(this.data),A=EO(this.pagePool,O),A=_.oM(A));if(A){H=p2(N);var Z=EO(this.pagePool,
H);Z=_.oM(Z);if(A==Z)t&&!_.h("kevlar_disable_preemptive_player_reset")&&A.resetForNewPlayback();else if(t=O==="watch"&&H!=="watch",!t||H==="shorts"||_.Cy0()&&!FwJ(this.data,N))N=_.cY().resolve(_.kf),t&&N.isMiniplayerActive()&&N.pipController.getWindow()||A.stop()}};
_.V.isDifferentBrowseId=function(N,t){N=_.M(N,_.yE);t=_.M(t,_.yE);return(N==null?void 0:N.browseId)!==(t==null?void 0:t.browseId)};
_.V.getPersistentPanelSurface=function(N){switch(N){case "watch":return"WATCH";default:return"APP"}};
_.cv.Object.defineProperties(ZD,{template:{configurable:!0,enumerable:!0,get:function(){return N15()}}});
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ZD.prototype,"ytActionHandlerBehavior",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-page-manager"})],ZD);_.n(ZD,"ytd-page-manager",function(){return N15()},{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var t5q;var Vf=function(){var N=_.k.apply(this,arguments)||this;N.useListItemStyles=_.h("web_list_item_style_for_menu_items");N.systemIcons=_.h("kevlar_system_icons");return N};
_.p(Vf,_.k);_.V=Vf.prototype;_.V.ready=function(){this.hostElement.addEventListener("tap",_.Fb(this,this.onEndpointTapExtra))};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var N;(N=_.O6(this.hostElement).querySelector("tp-yt-paper-item"))==null||N.focus()};
_.V.onEndpointTapExtra=function(N){_.or(this.hostElement,"iron-activate");var t=this.data.navigationEndpoint;t&&_.M(t,_.SYS)&&(N.stopPropagation(),_.OK(this.hostElement,[t],this.hostElement))};
_.V.computeIcon=function(N){return N&&N.iconType?_.Vt(N.iconType):""};
_.V.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.h("kevlar_legacy_browsers")&&_.CO(this.hostElement)};
Vf.prototype.forceUpdateStylesOnLegacyBrowsers=Vf.prototype.forceUpdateStylesOnLegacyBrowsers;Vf.prototype.onFocus=Vf.prototype.onFocus;_.W([_.Y(_.LX),_.Q("design:type",Object)],Vf.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.P9J.YtConditionalRendererBehavior),_.Q("design:type",Object)],Vf.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.Y(_.nD.YtEndpointBehavior),_.Q("design:type",Object)],Vf.prototype,"ytEndpointBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Vf.prototype,"data",void 0);_.W([_.X({computed:"computeIcon(data.icon)",value:""}),_.Q("design:type",String)],Vf.prototype,"icon",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Vf.prototype,"useIcons",void 0);_.W([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Vf.prototype,"hasSeparator",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Vf.prototype,"useListItemStyles",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Vf.prototype,"systemIcons",void 0);_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vf.prototype,"onFocus",null);_.W([_.gz("useIcons","hasSeparator"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vf.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.n(Vf,"ytd-menu-navigation-item-renderer",function(){if(t5q===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);t5q=N}N=t5q;return N},{mode:1});var O5n;var H51=_.E_(_.CJ("DOWNLOAD",{},"Download")),A0O=_.E_(_.CJ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),Z51=_.E_(_.CJ("RETRY",{},"Retry")),V5f=_.E_(_.CJ("PAUSE_DOWNLOADING",{},"Pause downloading")),Drm=_.E_(_.CJ("RESUME_DOWNLOAD",{},"Resume download")),DD=function(){var N=_.k.apply(this,arguments)||this;N.primaryText=H51;N.primaryIconType="OFFLINE_DOWNLOAD";N.hasSecondaryContent=!1;N.hasSeparator=!1;N.transferState="TRANSFER_STATE_UNKNOWN";N.isVideoDeletedByUser=!1;N.isHidden=!1;N.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return N};
_.p(DD,_.k);_.V=DD.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){this.primaryEntry.focus()};
_.V.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.V.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.V.getRemoveAction=function(){return"ACTION_REMOVE"};
_.V.sendOfflineAction=function(N){var t=this.data.serviceEndpoint;if(t){var O=_.M(t,_.ye);O&&N&&(O.action=N);this.ytComponentBehavior.resolveCommand(t)}};
_.V.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=H51,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=H51;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=Z51;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=A0O;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Drm;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=A0O;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
V5f;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=A0O;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=A0O;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=H51,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.V.showHideButton=function(){var N;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((N=this.playerStateEntity)==null?void 0:N.adsState)==="ADS_STATE_PLAYING"};
_.V.isSecondaryEntryHidden=function(N,t){return N?!0:!t};
_.V.computeHasSeparator=function(){var N;return!((N=this.data)==null||!N.hasSeparator)};
_.V.computePlayerStateEntityKey=function(N){return N};
DD.prototype.showHideButton=DD.prototype.showHideButton;DD.prototype.onTransferStateChange=DD.prototype.onTransferStateChange;DD.prototype.onFocus=DD.prototype.onFocus;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],DD.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],DD.prototype,"ytComponentBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],DD.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],DD.prototype,"primaryText",void 0);_.W([_.X(),_.Q("design:type",String)],DD.prototype,"primaryIconType",void 0);_.W([_.X(),_.Q("design:type",String)],DD.prototype,"primaryAction",void 0);_.W([_.X(),_.Q("design:type",Object)],DD.prototype,"secondaryText",void 0);_.W([_.X(),_.Q("design:type",String)],DD.prototype,"secondaryIconType",void 0);
_.W([_.X(),_.Q("design:type",String)],DD.prototype,"secondaryAction",void 0);_.W([_.X(),_.Q("design:type",Object)],DD.prototype,"hasSecondaryContent",void 0);_.W([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Q("design:type",Object)],DD.prototype,"hasSeparator",void 0);_.W([_.X({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Q("design:type",String)],DD.prototype,"playerStateEntityKey",void 0);
_.W([_.X({selector:_.DN,selectorArgs:["playerStateEntityKey"]}),_.Q("design:type",Object)],DD.prototype,"playerStateEntity",void 0);_.W([_.X({selector:_.Xo,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Q("design:type",String)],DD.prototype,"transferState",void 0);_.W([_.X({selector:_.G6x,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Q("design:type",Object)],DD.prototype,"isVideoDeletedByUser",void 0);
_.W([_.X(),_.Q("design:type",Object)],DD.prototype,"isHidden",void 0);_.W([_.X({selector:_.WJG,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Q("design:type",Object)],DD.prototype,"offlineabilityState",void 0);_.W([_.B2("#primary-entry"),_.Q("design:type",Object)],DD.prototype,"primaryEntry",void 0);_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DD.prototype,"onFocus",null);
_.W([_.ic("transferState","isVideoDeletedByUser"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DD.prototype,"onTransferStateChange",null);_.W([_.ic("offlineabilityState","playerStateEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DD.prototype,"showHideButton",null);
_.n(DD,"ytd-menu-service-item-download-renderer",function(){if(O5n===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);O5n=N}N=O5n;return N},{mode:1});var Urx;var UC=function(){var N=_.k.apply(this,arguments)||this;N.useIcons=!1;N.systemIcons=_.h("kevlar_system_icons");N.useListItemStyles=_.h("web_list_item_style_for_menu_items");return N};
_.p(UC,_.k);_.V=UC.prototype;_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.V.onFocus=function(){var N;(N=_.O6(this.hostElement).querySelector("tp-yt-paper-item"))==null||N.focus()};
_.V.onTap=function(){_.Np(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var N=this.data.serviceEndpoint,t=this.data.command;if(N){var O,H=(O=this.data)==null?void 0:O.trackingParams;O=!!_.M(N,_.cPS);H&&O&&_.v5().dispatch(_.H5({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:H}}));this.ytComponentBehavior.resolveCommand(N)||_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}})}t&&(this.ytComponentBehavior.resolveCommand(t)||_.OK(this.hostElement,
[t],this.hostElement))};
_.V.computeIcon=function(N){return N&&N.iconType?_.Vt(N.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.computeHasSeparator=function(){var N;return!((N=this.data)==null||!N.hasSeparator)};
_.V.forceUpdateStylesOnLegacyBrowsers=function(){_.h("kevlar_legacy_browsers")&&_.CO(this.hostElement)};
_.V.computeIsSelected=function(){var N;return!((N=this.data)==null||!N.isSelected)};
UC.prototype.forceUpdateStylesOnLegacyBrowsers=UC.prototype.forceUpdateStylesOnLegacyBrowsers;UC.prototype.onTap=UC.prototype.onTap;UC.prototype.onFocus=UC.prototype.onFocus;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],UC.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],UC.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.P9J.YtConditionalRendererBehavior),_.Q("design:type",Object)],UC.prototype,"ytConditionalRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UC.prototype,"data",void 0);_.W([_.X({computed:"computeIcon(data.icon)",value:""}),_.Q("design:type",String)],UC.prototype,"icon",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UC.prototype,"useIcons",void 0);
_.W([_.X({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],UC.prototype,"hasSeparator",void 0);_.W([_.X({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],UC.prototype,"isSelected",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UC.prototype,"systemIcons",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],UC.prototype,"useListItemStyles",void 0);
_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UC.prototype,"onFocus",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],UC.prototype,"onTap",null);_.W([_.gz("useIcons","hasSeparator"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UC.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.n(UC,"ytd-menu-service-item-renderer",function(){if(Urx===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);Urx=N}N=Urx;return N},{mode:2});var CVm;var Ck=function(){return _.k.apply(this,arguments)||this};
_.p(Ck,_.k);_.V=Ck.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var N=this;_.yB(this,function(){N.postbox.openDialog();N.focus();_.or(N.hostElement,"yt-refit")})};
_.V.focus=function(){this.postbox.focus()};
_.V.closePopup=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.V.onYtCommentboxDismiss=function(){this.closePopup()};
Ck.prototype.onYtCommentboxDismiss=Ck.prototype.onYtCommentboxDismiss;Ck.prototype.onDataChanged=Ck.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ck.prototype,"data",void 0);_.W([_.X({value:function(){return _.CJ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Q("design:type",String)],Ck.prototype,"closeButtonAriaLabel",void 0);_.W([_.B2("#postbox"),_.Q("design:type",Object)],Ck.prototype,"postbox",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ck.prototype,"onDataChanged",null);_.W([_.dz("yt-commentbox-dismiss"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ck.prototype,"onYtCommentboxDismiss",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Ck);
_.n(Ck,"ytd-backstage-post-dialog-popup-renderer",function(){if(CVm!==void 0)return CVm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return CVm=N},{mode:1});var Kyi;var Fyf;var dr5=function(){return _.k.apply(this,arguments)||this};
_.p(dr5,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dr5.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dr5.prototype,"data",void 0);_.W([_.wz({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],dr5);
_.n(dr5,"yt-sender-id-section-renderer",function(){if(Fyf===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);Fyf=N}N=
Fyf;return N},{mode:1});var gNi;var y0f;var Kk=function(){return _.k.apply(this,arguments)||this};
_.p(Kk,_.k);Kk.prototype.closePopup=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Kk.prototype,"data",void 0);_.W([_.wz({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Kk);
_.n(Kk,"yt-community-post-section-renderer",function(){if(y0f===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;gNi===void 0&&(gNi=document.createElement("template"));var H=gNi;O.call(t,H.content.cloneNode(!0),N.content.firstChild);y0f=N}N=y0f;return N},{mode:2});var B1r;var c05;var $r5;var j91;var i5f;var ukf;var SZx=function(){return _.k.apply(this,arguments)||this};
_.p(SZx,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],SZx.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],SZx.prototype,"data",void 0);_.W([_.wz({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],SZx);
_.n(SZx,"yt-share-start-time-with-context-renderer",function(){if(ukf===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;i5f===void 0&&(i5f=document.createElement("template"));var H=i5f;O.call(t,H.content.cloneNode(!0),N.content.firstChild);ukf=N}N=ukf;return N},{mode:2});var FP=function(){return _.k.apply(this,arguments)||this};
_.p(FP,_.k);FP.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],FP.prototype,"data",void 0);_.W([_.wz({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],FP);
_.n(FP,"yt-share-panel-title-v15-renderer",function(){if(j91===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;$r5===void 0&&($r5=document.createElement("template"));var H=$r5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);j91=N}N=j91;return N},{mode:2});var dg=function(){return _.k.apply(this,arguments)||this};
_.p(dg,_.k);dg.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dg.prototype,"data",void 0);_.W([_.wz({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],dg);
_.n(dg,"yt-share-panel-header-renderer",function(){if(c05===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;B1r===void 0&&(B1r=document.createElement("template"));var H=B1r;O.call(t,H.content.cloneNode(!0),N.content.firstChild);c05=N}N=c05;return N},{mode:2});var hm5;var M5q;var gg=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-open-popup-action":"onOpen"};return N};
_.p(gg,_.k);_.V=gg.prototype;_.V.attached=function(){this.onOpen()};
_.V.updateTimeSecs=function(N){this.currentTimeSecs=N};
_.V.computeTimeString=function(N){N=N.toString();var t=Math.floor(Number(N)/3600),O=Math.floor(Number(N)%3600%60);return(t>0?t+":":"")+_.dI(Math.floor(Number(N)%3600/60),t>0?2:1)+":"+_.dI(O,2)};
_.V.computeTimeStringA11y=function(N){return _.tNv({seconds:N})};
_.V.getTimeParam=function(){return Gln(this.timeString)};
_.V.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var N={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},t;_.Q2(_.gF(),(t=this.data)==null?void 0:t.trackingParams,N,7)};
_.V.onChangeStartAtTimestamp=function(){for(var N=this.startAtTimestamp.value.split(":"),t=0,O=1,H=N.length-1;H>=0;H--)t+=Number(N[H])*O,O*=60;this.updateTimeSecs(t);this.setTimestamp()};
_.V.onOpen=function(){var N=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var t=_.si();t?t.getPlayerPromise().then(function(O){O=O.getCurrentTime();N.updateTimeSecs(O)}):Ox5()&&this.updateTimeSecs(Ox5())};
_.V.setTimestamp=function(){var N=Math.floor(this.currentTimeSecs);_.sl(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!N,timestamp:N||""}])};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],gg.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gg.prototype,"data",void 0);_.W([_.X({value:!1,notify:!0}),_.Q("design:type",Boolean)],gg.prototype,"isStartAtChecked",void 0);_.W([_.X(),_.Q("design:type",Number)],gg.prototype,"currentTimeSecs",void 0);
_.W([_.X({computed:"computeTimeString(currentTimeSecs)"}),_.Q("design:type",String)],gg.prototype,"timeString",void 0);_.W([_.X({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Q("design:type",String)],gg.prototype,"timeStringA11y",void 0);_.W([_.B2("#start-at-timestamp"),_.Q("design:type",Object)],gg.prototype,"startAtTimestamp",void 0);_.W([_.wz({is:"yt-start-at-renderer",disableElementRegistration:!0})],gg);
_.n(gg,"yt-start-at-renderer",function(){if(M5q===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;hm5===void 0&&(hm5=document.createElement("template"));var H=hm5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);M5q=N}N=M5q;return N},{mode:2});var b5n;var pw1;var Lym={};Lym.YtBindingExpressionsBehavior={identity:_.xx,msg:function(N,t){t=t===void 0?{}:t;return _.CJ(N,t,N)},
msgPlural:function(N,t){return _.KJ(N,t)},
getMusicIconFromType:function(N){return _.Vt(N)}};var zmi;var YZz;var aOz;var T1m=document.head,ww5=T1m.appendChild,em5;if(aOz===void 0){var PVx=document.createElement("template");_.L(PVx,'\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>');aOz=PVx}em5=aOz;ww5.call(T1m,em5.content);var yf=function(){var N=_.k.apply(this,arguments)||this;N.screenLayer=7;return N};
_.p(yf,_.k);yf.prototype.getScreenLayer=function(){return this.screenLayer};
yf.prototype.onTap=function(N){N&&N.detail&&(N.detail.x||N.detail.y)&&_.O6(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.tb(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(N=this.getScreenLayer(),_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:N}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.cv.Object.defineProperties(yf.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()}}});
yf.prototype.onTap=yf.prototype.onTap;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],yf.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yf.prototype,"data",void 0);_.W([_.a("data.title"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],yf.prototype,"title",null);
_.W([_.a("data.serviceName"),_.Q("design:type",String),_.Q("design:paramtypes",[])],yf.prototype,"icon",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],yf.prototype,"onTap",null);_.W([_.wz({is:"yt-share-target-renderer",disableElementRegistration:!0})],yf);
_.n(yf,"yt-share-target-renderer",function(){if(YZz===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;zmi===void 0&&(zmi=document.createElement("template"));var H=zmi;O.call(t,H.content.cloneNode(!0),N.content.firstChild);YZz=N}N=YZz;return N},{mode:2});var XwJ;var xrn;var BJ=function(){var N=_.k.apply(this,arguments)||this;N.SHARE_TARGET_WIDTH=70;N.SHARE_TARGET_MARGIN_RIGHT=8;N.PAGE_SCROLL_SPEED=9;N.actionMap={"yt-share-panel-reset-action":"onReset_"};return N};
_.p(BJ,_.k);_.V=BJ.prototype;_.V.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.V.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.O6(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.O6(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.V.onReset_=function(){if(_.O6(this.hostElement).querySelector("#list")){var N=_.O6(this.hostElement).querySelector("#list");var t=_.O6(this.hostElement).querySelector("#list");var O=t.offsetLeft,H=t.offsetParent;H||_.ICB(t)!="fixed"||(H=_.Qs(t).documentElement);if(H){if(_.D7&&!_.Cl(58)){var A=_.JDE(H);O+=A.left}else Number(_.FZY)>=8&&!(Number(_.FZY)>=9)&&(A=_.JDE(H),O-=A.left);t=_.RoZ(H)?H.clientWidth-(O+t.offsetWidth):O}else t=O;bp5(N,t);this.updateScrollButtons_()}};
_.V.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.V.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.V.onScrollWheel_=function(N){N.stopPropagation();N.preventDefault();var t=MeJ(_.O6(this.hostElement).querySelector("#list"));N=Math.abs(N.deltaX)>Math.abs(N.deltaY)?N.deltaX:N.deltaY;bp5(_.O6(this.hostElement).querySelector("#list"),t+N);this.updateScrollButtons_()};
_.V.smoothScrollByOnePage_=function(N){var t=_.O6(this.hostElement).querySelector("#list"),O=(Math.floor(t.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,H=MeJ(t),A=O*(N?1:-1),Z=this.PAGE_SCROLL_SPEED,U=this.updateScrollButtons_.bind(this),C=0,F;(function B(){C+=Z;F=C/O*2;bp5(t,H+A*(F<1?F*F:-F*F+4*F-2));C<O?window.requestAnimationFrame(B):U()})()};
_.V.updateScrollButtons_=function(){var N=MeJ(_.O6(this.hostElement).querySelector("#list")),t=_.O6(this.hostElement).querySelector("#list").scrollWidth-_.O6(this.hostElement).querySelector("#list").clientWidth;_.O6(this.hostElement).querySelector("#scroll-button-back").hidden=N<=0;_.O6(this.hostElement).querySelector("#scroll-button-forward").hidden=N>=t};
BJ.prototype.onScrollWheel_=BJ.prototype.onScrollWheel_;BJ.prototype.onDataChanged_=BJ.prototype.onDataChanged_;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],BJ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(Lym.YtBindingExpressionsBehavior),_.Q("design:type",Object)],BJ.prototype,"ytBindingExpressionsBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],BJ.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],BJ.prototype,"onDataChanged_",null);_.W([_.dz("wheel"),_.Q("design:type",Function),_.Q("design:paramtypes",[WheelEvent]),_.Q("design:returntype")],BJ.prototype,"onScrollWheel_",null);
_.W([_.wz({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],BJ);
_.n(BJ,"yt-third-party-share-target-section-renderer",function(){if(xrn===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;XwJ===void 0&&(XwJ=document.createElement("template"));var H=XwJ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);xrn=N}N=xrn;return N},{mode:2});var cJ=function(){return _.k.apply(this,arguments)||this};
_.p(cJ,_.k);cJ.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"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cJ.prototype,"data",void 0);_.W([_.wz({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],cJ);
_.n(cJ,"yt-third-party-network-section-renderer",function(){if(pw1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;b5n===void 0&&(b5n=document.createElement("template"));var H=b5n;O.call(t,H.content.cloneNode(!0),N.content.firstChild);pw1=N}N=pw1;return N},{mode:2});_.o_(_.q(function(N){return _.d("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.d("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.d(_.iF,{data:function(){return N.data().firstPartyItems}},{listItemViewModel:_.$P})))},"lj"),"first-party-network-section-view-model",{props:{data:_.$O}});var ksq=(0,_.fWa)(_.RS.share,{parentClickTrackingParamsSelector:function(N){return N.parentClickTrackingParams}});var qZn=_.mp(["data:image/svg+xml;charset=UTF-8;base64,",""]),$7=function(){var N=_.k.apply(this,arguments)||this;N.screenLayer=7;N.qrCodeEnabled=_.h("web_enable_sharing_qr_code");N.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return N};
_.p($7,_.k);_.V=$7.prototype;_.V.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.V.attached=function(){this.JSC$20590_scroller&&(this.JSC$20590_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20590_scroller.attached&&typeof this.JSC$20590_scroller.attached==="function"&&this.JSC$20590_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.V.onDataChanged=function(){var N=this,t;(t=this.data)!=null&&t.contents&&(this.hostElement.setAttribute("links-only","true"),_.Dr(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.yB(this,function(){_.or(N.hostElement,"yt-refit");N.focusSharePanelHeader()}))};
_.V.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.V.handleSetTimestamp=function(N){var t=this.shortUrl();N.isSet&&(t=_.o5(t,"t",N.timestamp));this.maybeRenderQrCode(t)};
_.V.shortUrl=function(){var N,t=(N=this.data)==null?void 0:N.contents;if(t)for(N=0;N<t.length;N++){var O=void 0,H=void 0;if((O=t[N])==null?0:(H=O.thirdPartyNetworkSection)==null?0:H.copyLinkContainer){var A=H=O=void 0;return(A=_.M((O=t[N])==null?void 0:(H=O.thirdPartyNetworkSection)==null?void 0:H.copyLinkContainer,D7q))==null?void 0:A.shortUrl}}};
_.V.maybeRenderQrCode=function(N){var t=this,O,H,A,Z,U,C,F,g,B;return _.K(function(c){if(c.nextAddress==1){O=_.O6(t.hostElement).querySelector("#qr-code");if(!t.qrCodeEnabled||!N)return O&&(O.style.display="none"),c.return();H=_.xvy(_.cY().resolve(_.D5),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});A=document.createElement("div");return typeof H==="function"?(H(A),c.jumpTo(2)):c.yield(H,3)}c.nextAddress!=2&&(Z=c.yieldResult,Z(A));F=(U=A)==null?void 0:(C=U.firstChild)==null?void 0:C.firstChild;
g=document.createElement("img");B=_.Uoz(qZn,btoa(F.outerHTML));g.onload=function(){var u={canvas:O,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:g},S=new pyn;wyf(S,N);eIn(S,!1,Pe5(S));var b=S.modules,z=Object.assign({},wu1,u);b=structuredClone(b);u=b.length;var w,P=(w=z.canvas)!=null?w:document.createElement("canvas");w=z.cellSize;S=z.logo;var x,l=(x=z.logoSize)!=null?x:Math.floor(u/4);u%2!==l%2&&l++;var I=z.logoPadding,r=z.backgroundColor;x=u*w;var E=
z.width,J=0;E&&(J=z.padding,J=Math.ceil(J*x/(E-J*2)),P.style.width=E+"px",P.style.height=E+"px");P.width!==x+J*2&&(P.width=x+J*2);P.height!==x+J*2&&(P.height=x+J*2);x=P.getContext("2d");z.autoClear&&x.clearRect(0,0,P.width,P.height);x.fillStyle=r;x.beginPath();x.roundRect(0,0,P.width,P.height,z.borderRadius);x.fill();x.save();x.translate(J,J);if(S)for(P=Math.floor(u-l)/2-I,I=Math.floor(u+l)/2+I,r=P;r<I;r++)for(E=P;E<I;E++)b[r][E]=!1;for(P=0;P<u;P++)for(I=0;I<u;I++)(P<7&&I<7||P<7&&I>=u-7||P>=u-7&&
I<7)&&(b[P][I]=!1);var CN;P=(CN=z.markerColor)!=null?CN:z.color;xuq(x,0,0,w,P);xuq(x,w*(u-7),0,w,P);xuq(x,0,w*(u-7),w,P);switch(z.cellStyle){case 0:CN=b;b=CN.length;P=z.cellSize;x.beginPath();for(I=0;I<b;I++)for(r=0;r<b;r++)CN[I][r]&&x.rect(I*P,r*P,P,P);x.fillStyle=z.color;x.fill();break;case 1:CN=b;b=CN.length;P=z.cellSize;I=P*z.relativeCircleSize;x.fillStyle=z.color;x.beginPath();for(z=0;z<b;z++)for(r=0;r<b;r++)CN[z][r]&&(x.beginPath(),x.ellipse((z+.5)*P,(r+.5)*P,I/2,I/2,0,0,2*Math.PI),x.fill());
x.fill();break;case 2:CN=b;b=CN.length;P=z.cellSize;x.fillStyle=z.color;z=[[1,1],[-1,1],[-1,-1],[1,-1]];x.beginPath();for(I=0;I<b;I++)for(r=0;r<b;r++)if(CN[I][r])x.roundRect(I*P,r*P,P,P,P/2),I+1<b&&CN[I+1][r]&&x.rect(I*P+P/2,r*P,P,P),r+1<b&&CN[I][r+1]&&x.rect(I*P,r*P+P/2,P,P);else{E=I*P+P/2;J=r*P+P/2;for(var B4=0;B4<4;B4++){var zM=_.D(z[B4]),jy=zM.next().value;zM=zM.next().value;I+jy>=0&&I+jy<b&&r+zM>=0&&r+zM<b&&CN[I+jy][r]&&CN[I][r+zM]&&CN[I+jy][r+zM]&&(jy=B4*Math.PI/2,zM=P/2,x.moveTo(E+zM*Math.cos(jy),
J+zM*Math.sin(jy)),x.arc(E,J,P/2,jy,jy+Math.PI/2,!1),x.lineTo(E+zM*(Math.cos(jy)-Math.sin(jy)),J+zM*(Math.cos(jy)+Math.sin(jy))),x.lineTo(E+zM*Math.cos(jy),J+zM*Math.sin(jy)))}}x.fill()}S&&x.drawImage(S,(u-l)*w/2,(u-l)*w/2,l*w,l*w);x.restore();O.style.removeProperty("display")};
g.src=_.f8(B);_.Ty(c)})};
_.V.hasCommunityPostRenderer=function(){var N,t,O,H;return!!((N=this.data)==null?0:(t=N.header)==null?0:(O=t.sharePanelHeaderRenderer)==null?0:(H=O.communityPost)==null?0:H.communityPostSectionRenderer)};
_.V.onTapClose=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.V.getScreenLayer=function(){return this.screenLayer};
_.V.logSharePanelPage=function(){if(!_.h("enable_share_panel_navigation_logging_fix_on_web")){var N;if((N=this.data)!=null&&N.trackingParams){N=this.data.trackingParams;var t=this.parentClickTrackingParams;t=t?_.ib(t):void 0;var O=_.gF();_.Ws(O,21760,t,{layer:7,parentLayer:0});O.graftServerVe(N,void 0,7);_.v5().dispatch(_.H5({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
$7.prototype.onDataChanged=$7.prototype.onDataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],$7.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],$7.prototype,"data",void 0);_.W([_.X({value:_.CJ("SBOX_INAPPROPRIATE_CANCEL")}),_.Q("design:type",String)],$7.prototype,"closeButtonAriaLabel",void 0);_.W([_.B2("yt-share-panel-header-renderer"),_.Q("design:type",HTMLElement)],$7.prototype,"header",void 0);_.W([_.X({selector:ksq.parentClickTrackingParamsSelector}),_.Q("design:type",String)],$7.prototype,"parentClickTrackingParams",void 0);_.W([_.X(),_.Q("design:type",Object)],$7.prototype,"qrCodeEnabled",void 0);
_.W([_.B2("#scroller"),_.Q("design:type",Object)],$7.prototype,"JSC$20590_scroller",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$7.prototype,"onDataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],$7);
_.n($7,"ytd-unified-share-panel-renderer",function(){if(Kyi!==void 0)return Kyi;var N=document.createElement("template");_.L(N,'\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');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Kyi=N},{mode:1});var fOr;var jH=function(){var N=_.k.apply(this,arguments)||this;N.modernModal=!0;return N};
_.p(jH,_.k);jH.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
jH.prototype.computeShouldHideOldButtons=function(){var N;return!((N=this.data)==null?0:N.button)};
_.cv.Object.defineProperties(jH.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var N,t;return(N=this.data)==null?void 0:(t=N.button)==null?void 0:t.buttonRenderer}}});
_.W([_.X(),_.Q("design:type",Object)],jH.prototype,"data",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],jH.prototype,"ytEventForwardingBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],jH.prototype,"modernModal",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],jH.prototype,"buttonRendererData",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],jH);
_.n(jH,"ytd-modal-with-title-and-button-renderer",function(){if(fOr!==void 0)return fOr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return fOr=N},{mode:1});var nNr;var ih=function(){return _.k.apply(this,arguments)||this};
_.p(ih,_.k);ih.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("page-changed",this.page))};
ih.prototype.pageChangedForBinding=ih.prototype.pageChangedForBinding;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ih.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],ih.prototype,"page",void 0);_.W([_.gz("page"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ih.prototype,"pageChangedForBinding",null);
_.W([_.en({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],ih);
_.n(ih,"ytd-account-item-section-header-renderer",function(){if(nNr!==void 0)return nNr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return nNr=N},{mode:1});var WyO;var uh=function(){return _.k.apply(this,arguments)||this};
_.p(uh,_.k);uh.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"}}}};
uh.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],uh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],uh.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],uh.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!1}),_.Q("design:type",Function)],uh.prototype,"onAccountItemTap",void 0);
_.W([_.en({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],uh);
_.n(uh,"ytd-account-item-section-renderer",function(){if(WyO!==void 0)return WyO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return WyO=N},{mode:1});var r0r;var IOx;var lO5=function(){return _.k.apply(this,arguments)||this};
_.p(lO5,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lO5.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lO5.prototype,"data",void 0);_.W([_.en({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],lO5);
_.n(lO5,"ytd-accounts-dialog-header-renderer",function(){if(IOx!==void 0)return IOx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return IOx=N},{mode:1});var Q95;var SH=function(){return _.k.apply(this,arguments)||this};
_.p(SH,_.k);SH.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],SH.prototype,"data",void 0);_.W([_.en({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],SH);
_.n(SH,"ytd-google-account-header-renderer",function(){if(Q95!==void 0)return Q95;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Q95=N},{mode:1});var hE=function(){return _.k.apply(this,arguments)||this};
_.p(hE,_.k);hE.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"}}}};
hE.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("page-changed",this.page))};
hE.prototype.pageChangedForBinding=hE.prototype.pageChangedForBinding;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hE.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],hE.prototype,"page",void 0);
_.W([_.gz("page"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hE.prototype,"pageChangedForBinding",null);_.W([_.en({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],hE);
_.td()(hE,"ytd-account-section-list-renderer",function(){if(r0r===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);r0r=N}N=r0r;return N},{allowedProps:["data"],
mode:1});var mrO;var M8=function(){var N=_.k.apply(this,arguments)||this;N.enableHandlesAccountMenuSwitcher=_.h("enable_handles_account_menu_switcher");return N};
_.p(M8,_.k);M8.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
M8.prototype.dataChanged=M8.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],M8.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],M8.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.W([_.B2("#avatar"),_.Q("design:type",Object)],M8.prototype,"avatar",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M8.prototype,"dataChanged",null);_.W([_.en({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],M8);
_.td()(M8,"ytd-active-account-header-renderer",function(){if(mrO===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);mrO=N}N=mrO;return N},{allowedProps:["data"],
mode:1});var EN1;var GsJ;var bh=function(){return _.k.apply(this,arguments)||this};
_.p(bh,_.k);bh.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
bh.prototype.onBackTap=function(){_.or(this.hostElement,"yt-menu-back-tapped")};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bh.prototype,"data",void 0);_.W([_.en({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],bh);
_.td()(bh,"ytd-simple-menu-header-renderer",function(){if(GsJ===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);GsJ=N}N=GsJ;return N},{allowedProps:["data"],
mode:2});var RmO;var vNn=function(){return _.k.apply(this,arguments)||this};
_.p(vNn,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vNn.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vNn.prototype,"data",void 0);_.W([_.en({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],vNn);
_.n(vNn,"ytd-comment-video-thumbnail-header-renderer",function(){if(RmO!==void 0)return RmO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return RmO=N},{mode:1});var J01;var oNq=function(){return _.k.apply(this,arguments)||this};
_.p(oNq,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oNq.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oNq.prototype,"data",void 0);_.W([_.en({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],oNq);
_.n(oNq,"ytd-abuse-type-selector-renderer",function(){if(J01!==void 0)return J01;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return J01=N},{mode:1});var s91;var NBf=(0,_.fWa)(_.RS.reportChannelAbuse,{isVideoIdSelectedSelector:function(N,t){return t in N.selectedVideoIds},
additionalContextSelector:function(N){return N.additionalContext},
impersonatedChannelUrlSelector:function(N){return N.impersonatedChannelUrl},
reportChannelAbuseSelector:function(N){return N}});var pk=function(){return _.k.apply(this,arguments)||this};
_.p(pk,_.k);pk.prototype.attached=function(){var N=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){N.additionalContextInput.focusTextInput()})};
pk.prototype.handleAdditionalContextChanged=function(){var N=this;_.W2(this,"ytd-report-channel-additional-context-update",function(){N.ytdReduxBehavior.dispatch(_.H5({type:"ADDITIONAL_CONTEXT_UPDATED",payload:N.additionalContext}))},300)};
pk.prototype.updateAdditionalContextFromBinding=function(N){this.additionalContext=N.detail.value};
pk.prototype.handleAdditionalContextChanged=pk.prototype.handleAdditionalContextChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],pk.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",String)],pk.prototype,"additionalContext",void 0);_.W([_.X({selector:NBf.additionalContextSelector}),_.Q("design:type",String)],pk.prototype,"additionalContextRedux",void 0);_.W([_.X(),_.Q("design:type",Object)],pk.prototype,"data",void 0);
_.W([_.B2("yt-text-input-form-field-renderer"),_.Q("design:type",Object)],pk.prototype,"additionalContextInput",void 0);_.W([_.gz("additionalContext"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pk.prototype,"handleAdditionalContextChanged",null);_.W([_.en({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],pk);
_.n(pk,"ytd-report-channel-modal-additional-context-renderer",function(){if(s91!==void 0)return s91;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return s91=N},{mode:1});var th5;var Lk=function(){var N=_.k.apply(this,arguments)||this;N.nextButtonDisabled=null;N.submitEndpoint=null;N.navigationEndpoint=null;N.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return N};
_.p(Lk,_.k);_.V=Lk.prototype;_.V.computeNextButtonData=function(N,t,O){var H={};t&&(H.navigationEndpoint=t);O&&(H.serviceEndpoint=O);N&&N.buttonRenderer&&_.WW.extend(H,N.buttonRenderer);return H};
_.V.handleReportChannelModalDisableNextButtonAction=function(N){this.setNextButtonIsDisabled(N)};
_.V.handleReportFormEndpointUpdateAction=function(N){this.setNextButtonIsDisabled(!!N.disableSubmitButton);this.resetEndpointData();N.submitEndpoint?this.submitEndpoint=N.submitEndpoint:N.submitNavigationEndpoint&&(this.navigationEndpoint=N.submitNavigationEndpoint)};
_.V.handleSignalActionSubmitForm=function(){var N,t=Object.keys(((N=this.reportChannelAbuseForm)==null?void 0:N.selectedVideoIds)||{}),O;N=((O=this.reportChannelAbuseForm)==null?void 0:O.additionalContext)||"";var H;O=((H=this.reportChannelAbuseForm)==null?void 0:H.impersonatedChannelUrl)||"";var A;if((A=this.data)==null?0:A.submitEndpoint){t={impersonated_channel_url:O,text:N,video_ids:t};var Z;_.cY().resolve(_.jo).resolveCommand((Z=this.data)==null?void 0:Z.submitEndpoint,{form:Object.assign({},
t,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.V.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.V.onYtServiceRequestError=function(N){this.setNextButtonIsDisabled(!1);_.I8(this.hostElement,N.detail.error.message)};
_.V.setNextButtonIsDisabled=function(N){this.set("data.nextButton.buttonRenderer.isDisabled",N)};
_.V.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Lk.prototype.onYtServiceRequestError=Lk.prototype.onYtServiceRequestError;Lk.prototype.onYtServiceRequestCompleted=Lk.prototype.onYtServiceRequestCompleted;_.W([_.X(),_.Q("design:type",Object)],Lk.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Lk.prototype,"nextButtonDisabled",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Lk.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Lk.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Lk.prototype,"submitEndpoint",void 0);_.W([_.X(),_.Q("design:type",Object)],Lk.prototype,"navigationEndpoint",void 0);_.W([_.X({selector:NBf.reportChannelAbuseSelector}),_.Q("design:type",Object)],Lk.prototype,"reportChannelAbuseForm",void 0);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Lk.prototype,"onYtServiceRequestCompleted",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Lk.prototype,"onYtServiceRequestError",null);_.W([_.en({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Lk);
_.n(Lk,"ytd-report-channel-modal-footer-renderer",function(){if(th5!==void 0)return th5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return th5=N},{mode:1});var O$q;var zD=function(){var N=_.k.apply(this,arguments)||this;N.boundOnTapDismissButton=function(){N.closePopup()};
return N};
_.p(zD,_.k);zD.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
zD.prototype.handleDataChanged=function(){_.Cb(this.hostElement)};
zD.prototype.closePopup=function(){_.sl(this.hostElement,"yt-close-popup-action")};
zD.prototype.handleDataChanged=zD.prototype.handleDataChanged;_.W([_.X(),_.Q("design:type",Object)],zD.prototype,"boundOnTapDismissButton",void 0);_.W([_.X(),_.Q("design:type",Object)],zD.prototype,"data",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zD.prototype,"handleDataChanged",null);_.W([_.en({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],zD);
_.n(zD,"ytd-report-channel-modal-header-renderer",function(){if(O$q!==void 0)return O$q;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return O$q=N},{mode:1});var H$f;var Y7=function(){var N=_.k.apply(this,arguments)||this;N.autoValidate=!1;N.invalid=!1;N.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return N};
_.p(Y7,_.k);_.V=Y7.prototype;_.V.attached=function(){var N=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){N.channelUrlInput.focusTextInput()})};
_.V.disableNextButton=function(N){_.sl(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[N])};
_.V.handleImpersonatedChannelUrlChanged=function(){var N=this;this.disableNextButton(!0);this.invalid=!1;_.W2(this,"ytd-report-channel-impersonated-channel-update",function(){var t=N.impersonatedChannelUrl.trim();N.ytdReduxBehavior.dispatch(_.H5({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:t}));var O;((O=N.data)==null?0:O.submitEndpoint)&&t&&_.cY().resolve(_.jo).resolveCommand(N.data.submitEndpoint,{form:{impersonated_channel_url:t,element:N.hostElement}})},500)};
_.V.handleModifyReportFormCommand=function(N){this.invalid=this.get("modifyReportFormCommand.action",N)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.V.updateInvalidFromBinding=function(N){this.invalid=N.detail.value};
_.V.updateImpersonatedChannelUrlFromBinding=function(N){this.impersonatedChannelUrl=N.detail.value};
Y7.prototype.handleImpersonatedChannelUrlChanged=Y7.prototype.handleImpersonatedChannelUrlChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],Y7.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Y7.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Y7.prototype,"autoValidate",void 0);_.W([_.X(),_.Q("design:type",Object)],Y7.prototype,"invalid",void 0);
_.W([_.X(),_.Q("design:type",String)],Y7.prototype,"impersonatedChannelUrl",void 0);_.W([_.X({selector:NBf.impersonatedChannelUrlSelector}),_.Q("design:type",String)],Y7.prototype,"impersonatedChannelUrlRedux",void 0);_.W([_.X(),_.Q("design:type",Object)],Y7.prototype,"data",void 0);_.W([_.B2("#text-input"),_.Q("design:type",Object)],Y7.prototype,"channelUrlInput",void 0);
_.W([_.gz("impersonatedChannelUrl"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Y7.prototype,"handleImpersonatedChannelUrlChanged",null);_.W([_.en({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Y7);
_.n(Y7,"ytd-report-channel-modal-impersonation-renderer",function(){if(H$f!==void 0)return H$f;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return H$f=N},{mode:1});var AKi;var Z$m;var aL=function(){return _.k.apply(this,arguments)||this};
_.p(aL,_.k);aL.prototype.onCheckboxToggled=function(N){var t,O,H=(O=_.M((t=this.data)==null?void 0:t.video,_.Bs))==null?void 0:O.videoId;H&&this.ytdReduxBehavior.dispatch(N.target.checked?_.H5({type:"VIDEO_SELECTED",payload:H}):_.H5({type:"VIDEO_UNSELECTED",payload:H}))};
aL.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.cv.Object.defineProperties(aL.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.data)==null?void 0:N.video;if(!t)return{};var O;N=(O=_.M(t,_.Bs))==null?void 0:O.navigationEndpoint;if(!N)return t;_.M(N==null?void 0:N.commandMetadata,_.Da)&&(_.M(N.commandMetadata,_.Da).ignoreNavigation=!0);return t}}});
_.W([_.X({reflectToAttribute:!0,selector:NBf.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.Q("design:type",Boolean)],aL.prototype,"checked",void 0);_.W([_.X(),_.Q("design:type",Object)],aL.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],aL.prototype,"video",null);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],aL.prototype,"ytdReduxBehavior",void 0);_.W([_.en({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],aL);
_.n(aL,"ytd-selectable-video-renderer",function(){if(Z$m!==void 0)return Z$m;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Z$m=N},{mode:1});var TD=function(){var N=_.k.apply(this,arguments)||this;N.monitorScroll=!0;return N};
_.p(TD,_.k);TD.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],TD.prototype,"data",void 0);_.W([_.en({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],TD);
_.n(TD,"ytd-selectable-video-list-renderer",function(){if(AKi!==void 0)return AKi;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return AKi=N},{mode:1});var VhJ;_.pE("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var wg=function(){return _.k.apply(this,arguments)||this};
_.p(wg,_.k);wg.prototype.onChange=function(N){if(N=_.E3(N).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.h("kevlar_command_handler_migration_killswitch"))_.OK(this.hostElement,N,this.hostElement);else{N=_.D(N);for(var t=N.next();!t.done;t=N.next())this.ytComponentBehavior.resolveCommand(t.value)}};
wg.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
wg.prototype.updateDataToggledFromBinding=function(N){this.set("data.toggled",N.detail.value)};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],wg.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],wg.prototype,"data",void 0);_.W([_.X({computed:"isEnabled(data)"}),_.Q("design:type",Boolean)],wg.prototype,"enabled",void 0);_.W([_.en({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],wg);
_.n(wg,"ytd-toggle-item-renderer",function(){if(VhJ!==void 0)return VhJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return VhJ=N},{mode:1});var DQ5;var UQq;var CB5;var eH=function(){var N=_.k.apply(this,arguments)||this;N.setVisible=!1;N.boundOnSubmitButtonClick=function(){N.onSubmitButtonClick()};
N.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return N};
_.p(eH,_.k);eH.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}}}}}};
eH.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
eH.prototype.onSubmitButtonClick=function(){var N;((N=this.data)==null?0:N.submitEndpoint)&&!_.h("enable_ytc_refunds_submit_form_signal_action")&&_.tb(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
eH.prototype.handleSignalActionSubmitForm=function(){var N;((N=this.data)==null?0:N.submitEndpoint)&&_.tb(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.cv.Object.defineProperties(eH.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.hiddenByDefault)&&!this.setVisible}}});
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],eH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],eH.prototype,"setVisible",void 0);_.W([_.X(),_.Q("design:type",Object)],eH.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],eH.prototype,"surveyFeedbackData",void 0);_.W([_.X(),_.Q("design:type",Object)],eH.prototype,"boundOnSubmitButtonClick",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data","setVisible"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],eH.prototype,"visibilityHidden",null);_.W([_.wz({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],eH);
_.n(eH,"yt-flow-footer-renderer",function(){if(CB5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;UQq===void 0&&(UQq=document.createElement("template"));var H=UQq;O.call(t,H.content.cloneNode(!0),N.content.firstChild);CB5=N}N=CB5;return N},{mode:2});var KLm=(0,_.fWa)(_.RS.ypc,{surveyFeedbackDataSelector:function(N){return N.surveyFeedbackData}});var PJ=function(){return _.k.apply(this,arguments)||this};
_.p(PJ,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],PJ.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],PJ.prototype,"data",void 0);_.W([_.X({selector:KLm.surveyFeedbackDataSelector}),_.Q("design:type",Object)],PJ.prototype,"surveyFeedbackData",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],PJ);
_.n(PJ,"ytd-flow-footer-renderer",function(){if(DQ5!==void 0)return DQ5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return DQ5=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var FLJ;var dQm;var XP=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return N};
_.p(XP,_.k);_.V=XP.prototype;_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.LE("multiPageMenuSectionItems")}}};
_.V.handleHideEnclosingAction_=function(N){if(this.data&&this.data.items)for(var t=0;t<this.data.items.length;t++){var O=this.data.items[t].notificationRenderer;if(O&&O.notificationId==N.hideEnclosingAction.notificationId){this.splice("data.items",t,1);_.sl(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.V.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Dr(this.hostElement,"hidden",!0)};
_.V.updateMenu_=function(N){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&N&&!N.doNotRefreshInbox){N=this.data.continuations;for(var t=0;t<N.length;t++)if(N[t].invalidationContinuationData){var O=void 0;var H=(O=N[t].invalidationContinuationData)==null?void 0:O.continuation;break}N=_.WW.clone(this.data.continuationUpdateEndpoint||null);N.continuation=H;N.click_tracking_params=this.data.trackingParams;_.tb(this.hostElement,[N])}};
_.V.onServiceRequestCompleted_=function(N,t){if(this.data&&(N=t.actions)){t=0;for(var O=N.length;t<O;t++){var H=_.M(N[t],_.nb_);if(!H)break;if((H.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||H.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&H.continuationItems&&this.data.items){var A=this.data.items.length-1;this.data.items[A].continuationItemRenderer&&(H=["data.items",A,1].concat(H.continuationItems),this.splice.apply(this,H))}}}};
XP.prototype.onServiceRequestCompleted_=XP.prototype.onServiceRequestCompleted_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],XP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],XP.prototype,"data",void 0);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],XP.prototype,"onServiceRequestCompleted_",null);_.W([_.wz({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],XP);
_.td()(XP,"yt-multi-page-menu-section-renderer",function(){if(dQm===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;FLJ===void 0&&(FLJ=document.createElement("template"));var H=FLJ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);dQm=N}N=dQm;return N},{allowedProps:["data"],
mode:2});var gWn;var yK1;var x7=function(){return _.k.apply(this,arguments)||this};
_.p(x7,_.k);x7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.cv.Object.defineProperties(x7.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.progress)==null?0:this.data.progress*100}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],x7.prototype,"data",void 0);_.W([_.a("data.progress"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],x7.prototype,"showProgressBar",null);
_.W([_.a("data.progress"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],x7.prototype,"progress",null);_.W([_.wz({is:"yt-flow-header-renderer",disableElementRegistration:!0})],x7);
_.n(x7,"yt-flow-header-renderer",function(){if(yK1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;gWn===void 0&&(gWn=document.createElement("template"));var H=gWn;O.call(t,H.content.cloneNode(!0),N.content.firstChild);yK1=N}N=yK1;return N},{mode:2});var BBn;var cK5;var k7=function(){return _.k.apply(this,arguments)||this};
_.p(k7,_.k);k7.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],k7.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],k7.prototype,"data",void 0);_.W([_.wz({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],k7);
_.n(k7,"yt-post-confirmation-flow-step-renderer",function(){if(cK5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;BBn===void 0&&(BBn=document.createElement("template"));var H=BBn;O.call(t,H.content.cloneNode(!0),N.content.firstChild);cK5=N}N=cK5;return N},{mode:2});var $Q1;var jtq;var q8=function(){return _.k.apply(this,arguments)||this};
_.p(q8,_.k);
q8.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"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],q8.prototype,"data",void 0);_.W([_.wz({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],q8);
_.n(q8,"yt-refund-confirmation-flow-step-renderer",function(){if(jtq===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;$Q1===void 0&&($Q1=document.createElement("template"));var H=$Q1;O.call(t,H.content.cloneNode(!0),N.content.firstChild);jtq=N}N=jtq;return N},{mode:2});var i$5=_.q(function(N){var t=N.data;return _.d("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.d("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.d(_.Qt,{data:function(){return{thumbnails:[{url:t().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.d("div",{class:"profileBadgeViewModelContent"},_.d("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return t().badgeDesc}),_.d(_.y,{cond:function(){return t().badgeSubtitle},
then:function(){return _.d("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return t().badgeSubtitle})}})))},"mj");
i$5.idomCompat=!0;var u85=_.q(function(N){var t=N.data;return _.d("yt-comment-interaction-view-model",{el:_.E4(_.wZ(function(){return t().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.d("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return t().onTapA11yLabel},
"on:keydown":_.xxv(),tabindex:0},_.d("div",{class:"ytCommentInteractionViewModelHeader"},_.d("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return t().headerPrefix},' "',function(){return t().videoTitle}),_.d("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.d("div",{class:"ytCommentInteractionViewModelContent"},_.d("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return t().commentContent}),_.d("div",{class:"ytCommentInteractionViewModelChevron"},
_.d(_.Qt,{data:function(){return{thumbnails:[{url:t().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"nj");
u85.idomCompat=!0;var Sm5=_.q(function(N){var t=N.data;return _.d("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.d(_.iF,{data:function(){return t().avatar}},{avatarViewModel:_.Dv}),_.d("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return t().channelName}))},"oj");
Sm5.idomCompat=!0;var LLr=_.q(function(N){var t=N.data;N={};return _.d("yt-profile-info-view-model",{class:_.V7("ytProfileInfoViewModelHost",(N.ytProfileInfoViewModelWithVideoShelf=function(){return t().videosHorizontalShelf},N))},_.d(hQ1,{profileInfo:t}),_.d(_.iF,{data:function(){return t().videosHorizontalShelf}},{horizontalShelfViewModel:function(O){return _.d("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.d(_.uY,{data:O.data}))}}),_.d(_.y,{cond:function(){return t().comments},
then:function(){return _.d(Mh1,{profileInfo:t})}}),_.d(_.y,{cond:function(){return t().sharedSubscriptionsTitle},
then:function(){return _.d(_.y,{cond:function(){return t().subscriptionsAccessButtonCommand},
then:function(){return _.d(b$1,{profileInfo:t})},
else:function(){return _.d(pPO,{profileInfo:t})}})}}))},"pj");
LLr.idomCompat=!0;var Mh1=_.q(function(N){var t=N.profileInfo;return _.d("div",{class:"ytProfileInfoViewModelActivity"},_.d("div",{class:"ytProfileInfoViewModelHeader"},_.d("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return t().commentsInteractionTitle})),_.d(_.iF,{data:function(){return t().comments}},{commentInteractionViewModel:function(O){return _.d("div",{class:"ytProfileInfoViewModelActivity"},_.d(u85,{data:O.data}))}}))},"qj"),b$1=_.q(function(N){var t=N.profileInfo;
return _.d("div",{class:"ytProfileInfoViewModelSubSection"},_.d("div",{class:"ytProfileInfoViewModelSubHeader"},_.d(_.YO,{command:function(){return t().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.d("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return t().sharedSubscriptionsTitle}),_.d("div",null,_.d(_.iF,{data:function(){return t().subscriptionsAccessButton}},{buttonViewModel:_.Pu})))),_.d(zQ5,{sharedSubscriptions:function(){var O;
return((O=t().sharedSubscriptions)==null?void 0:O.slice(0,5))||[]}}))},"rj"),pPO=_.q(function(N){var t=N.profileInfo;
return _.d("div",{class:"ytProfileInfoViewModelSubSection"},_.d("div",{class:"ytProfileInfoViewModelSubHeader"},_.d("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return t().sharedSubscriptionsTitle})),_.d(zQ5,{sharedSubscriptions:function(){var O;
return((O=t().sharedSubscriptions)==null?void 0:O.slice(0,5))||[]}}))},"sj"),zQ5=_.q(function(N){return _.d("div",{class:"ytProfileInfoViewModelSubs"},_.d(_.iF,{data:N.sharedSubscriptions},{sharedSubscriptionViewModel:function(t){return _.d("div",{class:"ytProfileInfoViewModelSub"},_.d(Sm5,{data:t.data}))}}))},"tj"),hQ1=_.q(function(N){var t=N.profileInfo;
return _.d("div",{class:"ytProfileInfoViewModelActivity"},_.d(_.nL,{each:function(){return[t().profileBadgeInfoYtWide,t().profileBadgeInfoChannelWide].filter(function(O){return!!O})},
keyBy:"INDEX"},function(O){return _.d(_.BZ,null,_.d("div",{class:"ytProfileInfoViewModelHeader"},_.d("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return O().profileSectionTitle}),_.d("div",{class:"ytProfileInfoViewModelSectionDesc"},_.d("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var H;
return(H=O().commentBadge)==null?void 0:H.commentDesc}),_.d(_.y,{cond:function(){var H;
return(H=O().commentBadge)==null?void 0:H.blackHeartDesc},
then:function(){return _.d("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.d("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.d(_.Qt,{data:function(){var H;
return{thumbnails:[{url:(H=O().commentBadge)==null?void 0:H.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.d("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var H;return(H=O().commentBadge)==null?void 0:H.blackHeartDesc}))),_.d("div",{class:"ytProfileInfoViewModelBadge"},_.d(_.nL,{each:function(){return O().badges||[]}},function(H){return _.d(i$5,{data:H})})))}))},"uj");var Ym1=_.q(function(N){var t=N.data;var O=function(){return t().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.d("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.d(_.iF,{data:function(){return t().profileIdentityInfo}},{profileIdentityInfoViewModel:function(H){return _.d(_.iJ1,{data:H.data,
hideDivider:O,isChannelInfoCard:O})},
profileInfoViewModel:LLr}),_.d(_.iF,{data:function(){return t().profileInfo}},{profileIdentityInfoViewModel:_.iJ1,
profileInfoViewModel:LLr}))},"vj");
Ym1.idomCompat=!0;_.o_(Ym1,"yt-profile-card-view-model",{props:{data:_.$O}});var fk=function(){var N=_.k.apply(this,arguments)||this;N.enableFocusFix=_.h("music_web_enable_focus_on_setting_menu_fix")&&_.vZ("IS_MOBILE_WEB",!1);N.covered=!1;N.hideMenu=!1;N.isCommentNotificationOnProfileCard=!1;N.scrolledByTouch=!1;N.disableBackdropFilter=_.h("web_disable_backdrop_filter");N.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return N};
_.p(fk,_.k);_.V=fk.prototype;
_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.V.ready=function(){var N=this;this.JSC$20691_containerElement.addEventListener("scroll",function(){N.ytRendererBehavior.markDirty()})};
_.V.attributeChanged=function(N,t){N==="menu-style"&&_.sl(this.hostElement,"yt-multi-page-menu-closed-action",[t])};
_.V.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Fb(this,this.focusOnStampFinished))};
_.V.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Fb(this,this.focusOnStampFinished))};
_.V.reset=function(){this.closeJobId&&(_.GB.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.V.focusOnStampFinished=function(N){N.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Fb(this,this.focusOnStampFinished)),this.doFocus())};
_.V.doFocus=function(){var N=_.rCZ(this.sectionsElement);N.length&&N[0].focus()};
_.V.computeMenuStyle=function(N){return N?N.toLowerCase().replace(/_/g,"-"):""};
_.V.computeIsCommentNotificationOnProfileCard=function(N){return _.h("enable_profile_cards_on_comments")&&N.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.V.computeHideMenu=function(N,t){return N||!(!t||!t.showLoadingSpinner)};
_.V.onPopupClosed=function(){this.isPopUpOpen=!1;_.sl(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.V.onPopupOpened=function(N,t){this.isPopUpOpen=!0;t.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.or(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.H5({type:"CHANNEL_REPORT_RESET"})))};
_.V.onYtNavigate=function(N,t){this.shouldCloseOnNavigateEvent(t.endpoint)&&_.sl(this.hostElement,"yt-close-all-popups-action")};
_.V.handleEndpoint=function(N){N=_.M(N,_.Un);!this.isCommentNotificationOnProfileCard&&N&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20691_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.V.handleActions=function(N){for(var t=0,O=N.length;t<O;t++){var H=_.M(N[t],K$O);H&&this.handleGetMultiPageMenuAction(H);(H=_.M(N[t],_.nb_))&&this.handleAppendContinuationItemsAction(H)}};
_.V.onServiceRequestSentOrCompleted=function(N,t){N.detail&&N.detail.endpoint&&this.handleEndpoint(N.detail.endpoint);t.actions&&this.handleActions(t.actions)};
_.V.handleGetMultiPageMenuAction=function(N){var t=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.O6(this.submenuElement).appendChild(t);(N=N.menu.multiPageMenuRenderer)&&this.logSubmenu(N);t.data=N;t.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.V.handleAppendContinuationItemsAction=function(N){if(this.data&&N.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&N.continuationItems&&this.data.sections){var t=this.data.sections.length-1;this.data.sections[t].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),t--);if(this.data.sections[t].multiPageMenuNotificationSectionRenderer&&N.continuationItems){N=_.D(N==null?void 0:N.continuationItems);for(var O=N.next();!O.done;O=N.next())if(O=O.value,_.M(O,hOn)){var H=
void 0,A=void 0,Z=void 0,U=void 0,C=void 0;((H=this)==null?0:(A=H.data)==null?0:(Z=A.sections)==null?0:(U=Z[t])==null?0:(C=U.multiPageMenuNotificationSectionRenderer)==null?0:C.items)&&this.push("data.sections."+t+".multiPageMenuNotificationSectionRenderer.items",O)}else if(_.M(O,_.aia)||_.M(O,_.vy))this.push("data.sections",O),t++}}};
_.V.logSubmenu=function(N){if(!_.h("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var t=this.ytRendererBehavior.getScreenLayer(),O=_.z8(t),H=_.pv(t);if((N=N.trackingParams)&&O&&H){var A=_.ib(N);_.h("combine_ve_grafts")?_.gF().graftServerVe(N,H,t):_.qp(O,H,A)}}};
_.V.emptySubmenuContainer=function(){for(var N=_.O6(this.submenuElement);N.firstChild;)N.removeChild(N.firstChild)};
_.V.onMenuBackTap=function(N){_.or(this.hostElement,"yt-submenu-closed");N.stopPropagation()};
_.V.onSubmenuClosed=function(N){_.E3(N)!==this.hostElement&&(this.covered=!1,_.or(this.hostElement,"yt-refit"),N.stopPropagation())};
_.V.onRetrieveLocation=function(N,t){t.hasComments&&(t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),N.stopPropagation())};
_.V.shouldCloseOnNavigateEvent=function(N){if(!N)return!0;if(_.M(N,_.CLy)||_.M(N,_.KJ_)||_.M(N,_.UFB)||_.M(N,_.Z3))return!1;var t;return((t=_.M(N==null?void 0:N.commandMetadata,_.Da))==null?0:t.ignoreNavigation)?!1:!0};
_.V.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.V.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.V.refitAfterRender=function(){var N=this;_.yB(this,function(){_.or(N.hostElement,"yt-refit")})};
fk.prototype.refitAfterRender=fk.prototype.refitAfterRender;fk.prototype.onRetrieveLocation=fk.prototype.onRetrieveLocation;fk.prototype.onSubmenuClosed=fk.prototype.onSubmenuClosed;fk.prototype.onMenuBackTap=fk.prototype.onMenuBackTap;fk.prototype.onServiceRequestSentOrCompleted=fk.prototype.onServiceRequestSentOrCompleted;fk.prototype.onYtNavigate=fk.prototype.onYtNavigate;fk.prototype.onPopupOpened=fk.prototype.onPopupOpened;fk.prototype.onPopupClosed=fk.prototype.onPopupClosed;
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],fk.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],fk.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fk.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],fk.prototype,"enableFocusFix",void 0);_.W([_.X(),_.Q("design:type",Object)],fk.prototype,"covered",void 0);_.W([_.X({computed:"computeHideMenu(covered, data)"}),_.Q("design:type",Object)],fk.prototype,"hideMenu",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Q("design:type",String)],fk.prototype,"menuStyle",void 0);
_.W([_.X({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Q("design:type",Object)],fk.prototype,"isCommentNotificationOnProfileCard",void 0);_.W([_.X(),_.Q("design:type",Boolean)],fk.prototype,"isPopUpOpen",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],fk.prototype,"scrolledByTouch",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],fk.prototype,"disableBackdropFilter",void 0);
_.W([_.B2("#sections"),_.Q("design:type",HTMLElement)],fk.prototype,"sectionsElement",void 0);_.W([_.B2("#spinner"),_.Q("design:type",HTMLElement)],fk.prototype,"spinnerElement",void 0);_.W([_.B2("#header"),_.Q("design:type",HTMLElement)],fk.prototype,"headerElement",void 0);_.W([_.B2("#container"),_.Q("design:type",HTMLElement)],fk.prototype,"JSC$20691_containerElement",void 0);_.W([_.B2("#submenu"),_.Q("design:type",HTMLElement)],fk.prototype,"submenuElement",void 0);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fk.prototype,"onPopupClosed",null);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],fk.prototype,"onPopupOpened",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],fk.prototype,"onYtNavigate",null);
_.W([_.dz("yt-service-request-completed"),_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],fk.prototype,"onServiceRequestSentOrCompleted",null);_.W([_.dz("yt-menu-back-tapped"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fk.prototype,"onMenuBackTap",null);
_.W([_.dz("yt-submenu-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],fk.prototype,"onSubmenuClosed",null);_.W([_.dz("yt-retrieve-location"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],fk.prototype,"onRetrieveLocation",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fk.prototype,"refitAfterRender",null);
_.W([_.en({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],fk);
_.n(fk,"ytd-multi-page-menu-renderer",function(){if(EN1!==void 0)return EN1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return EN1=N},{mode:1});var aGz;var nk=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return N};
_.p(nk,_.k);_.V=nk.prototype;_.V.created=function(){this.showTooltips=!0};
_.V.computeAccessibility_=function(N){return this.get("accessibility.accessibilityData",N)||null};
_.V.onTap=function(){var N=_.Np(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(N&&N.length===1&&N[0])_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var t;if((t=this.data)==null?0:t.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var O;((O=this.data)==null?0:O.menuRequest)&&_.tb(this.hostElement,[this.data.menuRequest])}}};
_.V.handleTopbarMenuClosedAction=function(N){var t,O;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(N)===((t=this.data)==null?void 0:(O=t.icon)==null?void 0:O.iconType)&&this.toggleIconState(!1)};
_.V.toggleIconState=function(N){_.h("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=N)};
_.V.handleUpdateTopbarAvatarAction=function(N){var t;N=(t=_.M(N,Ho5))==null?void 0:t.avatarUrl;var O,H;t=(O=this.data)==null?void 0:(H=O.avatar)==null?void 0:H.thumbnails;N&&t&&(O={thumbnails:[Object.assign({},t[0],{url:N})]},this.set("data.avatar",O))};
_.cv.Object.defineProperties(nk.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.O6(this.hostElement).querySelector("#button")}}});
nk.prototype.onTap=nk.prototype.onTap;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],nk.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],nk.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.YUr.YtButtonBehavior),_.Q("design:type",Object)],nk.prototype,"ytButtonBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nk.prototype,"data",void 0);
_.W([_.B2("yt-icon-button#button"),_.Q("design:type",Object)],nk.prototype,"iconButton",void 0);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nk.prototype,"onTap",null);_.W([_.en({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],nk);
_.td()(nk,"ytd-topbar-menu-button-renderer",function(){if(aGz===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);aGz=N}N=aGz;return N},{allowedProps:["data"],
mode:1});var TB1;var WJ=function(){return _.k.apply(this,arguments)||this};
_.p(WJ,_.k);WJ.prototype.getSelected=function(){return this.reasons.selected};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],WJ.prototype,"data",void 0);_.W([_.B2("#reasons"),_.Q("design:type",Object)],WJ.prototype,"reasons",void 0);_.W([_.en({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],WJ);
_.n(WJ,"ytd-ad-feedback-content",function(){if(TB1!==void 0)return TB1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return TB1=N},{mode:1});var wPz;var rg=function(){return _.k.apply(this,arguments)||this};
_.p(rg,_.k);_.V=rg.prototype;_.V.onPopupOpened=function(){_.sl(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.V.computeConfirmButton=function(N){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:N.confirmLabel}};
_.V.computeCancelButton=function(N){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:N.cancelLabel}};
_.V.onConfirmTap=function(){var N=this.content.getSelected();N!==void 0&&(N=this.data.reasons[N].endpoint)&&(_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}}),_.sl(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.V.sendFeedbackSubmitToastAction=function(){var N;(N=this.data)!=null&&N.completionMessage&&(N=_.oJ(this.data.completionMessage),_.sl(this.hostElement,"yt-open-popup-action",[N,this]))};
_.V.onCancelTap=function(){_.sl(this.hostElement,"yt-close-popup-action")};
rg.prototype.onPopupOpened=rg.prototype.onPopupOpened;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],rg.prototype,"data",void 0);_.W([_.B2("#content"),_.Q("design:type",Object)],rg.prototype,"content",void 0);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],rg.prototype,"onPopupOpened",null);
_.W([_.en({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],rg);
_.n(rg,"ytd-ad-feedback-renderer",function(){if(wPz!==void 0)return wPz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return wPz=N},{mode:1});var eQO;var PB5=function(){return _.k.apply(this,arguments)||this};
_.p(PB5,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],PB5.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],PB5.prototype,"data",void 0);_.W([_.en({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],PB5);
_.n(PB5,"ytd-ad-info-dialog-content",function(){if(eQO!==void 0)return eQO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return eQO=N},{mode:1});var XPm;var IL=function(){return _.k.apply(this,arguments)||this};
_.p(IL,_.k);IL.prototype.computeConfirmButton=function(N){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:N.confirmLabel}};
IL.prototype.onConfirmTap=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
IL.prototype.computeShouldShowTitle=function(){var N;return!((N=this.data)==null||!N.title)};
IL.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
IL.prototype.onPopupClosed=IL.prototype.onPopupClosed;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],IL.prototype,"data",void 0);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],IL.prototype,"onPopupClosed",null);_.W([_.en({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],IL);
_.n(IL,"ytd-ad-info-dialog-renderer",function(){if(XPm!==void 0)return XPm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return XPm=N},{mode:1});var xQx;var lh=function(){var N=_.k.apply(this,arguments)||this;N.actionButtonClass="action-button";N.dismissButtonId="dismiss-button";N.dialogDismiss=!0;return N};
_.p(lh,_.k);_.V=lh.prototype;_.V.computeInPlayer=function(N){return(N==null?void 0:N.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.V.computedLogo=function(){var N,t;return this.isDarkTheme()?(N=this.data)==null?void 0:N.logoDark:(t=this.data)==null?void 0:t.logo};
_.V.computedHeaderImage=function(){var N,t;return this.isDarkTheme()?(N=this.data)==null?void 0:N.headerImageDark:(t=this.data)==null?void 0:t.headerImage};
_.V.computeLogoIconId=function(){var N,t,O,H=(N=this.computedLogo())==null?void 0:(t=N.sources)==null?void 0:(O=t[0])==null?void 0:O.height;return H&&H%31===0?"logo-icon-with-padding":"logo-icon"};
_.V.computeLogoIconHeight=function(){var N,t,O,H=(N=this.computedLogo())==null?void 0:(t=N.sources)==null?void 0:(O=t[0])==null?void 0:O.height;return H&&H%31===0?"31":"24"};
_.V.onPopupClosed=function(){_.cY().resolve(_.AK).dispose()};
_.V.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.V.onShow=function(){this.inPlayer&&_.dY(6);this.titleElement.focus()};
_.V.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var N=0;N<this.data.impressionEndpoints.length;N++){var t=_.M(this.data.impressionEndpoints[N],_.Tb);t&&this.ytComponentBehavior.resolveCommand(t)}};
_.V.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.sl(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.cv.Object.defineProperties(lh.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var N,t;return!((N=this.data)==null||!N.headerImageDark)&&!((t=this.data)==null||!t.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.secondaryButton)}}});
lh.prototype.onPopupClosed=lh.prototype.onPopupClosed;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],lh.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.dd.YtVisibilityBehavior),_.Q("design:type",Object)],lh.prototype,"ytVisibilityBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lh.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],lh.prototype,"actionButtonClass",void 0);_.W([_.X(),_.Q("design:type",Object)],lh.prototype,"dismissButtonId",void 0);_.W([_.X(),_.Q("design:type",Object)],lh.prototype,"dialogDismiss",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lh.prototype,"hasHeaderImage",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],lh.prototype,"hasPremiumButton",null);
_.W([_.X({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Q("design:type",Boolean)],lh.prototype,"inPlayer",void 0);_.W([_.B2("#dismiss-button"),_.Q("design:type",HTMLElement)],lh.prototype,"dismissButton",void 0);_.W([_.B2("#title"),_.Q("design:type",HTMLElement)],lh.prototype,"titleElement",void 0);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],lh.prototype,"onPopupClosed",null);
_.W([_.en({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],lh);
_.n(lh,"ytd-enforcement-message-view-model",function(){if(xQx!==void 0)return xQx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return xQx=N},{mode:1});var koi;var qmO;var Qf=function(){var N=_.k.apply(this,arguments)||this;N.TEST_ONLY={immediateValidation:function(){N.immediateValidation()},
onValidationResponse:function(t){N.onValidationResponse(t)},
onGenerateHandleFromNameResponse:function(t){N.onGenerateHandleFromNameResponse(t)}};
return N};
_.p(Qf,_.k);_.V=Qf.prototype;_.V.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.V.validate=function(){this.immediateValidation()};
_.V.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.V.setHandleInputValue=function(N){this.handleDir=this.getHandleDir(N);this.handleInput.value=N;this.validationState={status:"PENDING"};this.immediateValidation()};
_.V.getHandleDir=function(N){var t=N===""&&!1;return(t=_.ZJy.test.call(_.ZJy,N))?"rtl":"ltr"};
_.V.onDataChanged=function(){var N,t;this.handleDir=this.getHandleDir((t=(N=this.data)==null?void 0:N.handle)!=null?t:"");var O;this.validationState=((O=this.data)==null?0:O.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var H;((H=this.data)==null?0:H.validateOnInit)&&this.immediateValidation()};
_.V.stopPropagation=function(N){N.stopPropagation()};
_.V.onInput=function(){var N;this.handleDir=this.getHandleDir((N=this.handleInput.value)!=null?N:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.V.onFocusout=function(N){this.handleInput.contains(N.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.V.delayedValidation=function(){var N,t;this.debouncedValidation((t=(N=this.data)==null?void 0:N.validationDelayMs)!=null?t:1E3)};
_.V.immediateValidation=function(){this.debouncedValidation(0)};
_.V.debouncedValidation=function(N){var t=this;_.W2(this,"debouncedValidation",function(){var O,H=t.staticValidation((O=t.handleInput.value)!=null?O:"");if(H!==void 0)t.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:H};else{var A;if((A=t.data)!=null&&A.validateChannelHandleCommand){t.validationState={status:"LOADING"};var Z;t.ytComponentBehavior.resolveCommand(t.data.validateChannelHandleCommand,{form:{handle:(Z=t.handleInput.value)!=null?Z:""},commandController:{onSuccess:function(U,
C){t.onValidationResponse(C)},
onServerError:function(U,C){t.onValidationServerError(C)}}})}else t.handleUnexpectedValidationError(new _.fF("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",t.data))}},N)};
_.V.staticValidation=function(N){var t;if(((t=this.data)==null?void 0:t.channelHandleStaticValidationParams)!==void 0){t=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(N)&&t.validValueRegexpErrorMessage!==void 0)return t.validValueRegexpErrorMessage;if(t.minLength!==void 0&&N.length<t.minLength&&t.minLengthErrorMessage!==void 0)return t.minLengthErrorMessage;if(t.maxLength!==void 0&&N.length>t.maxLength&&t.maxLengthErrorMessage!==void 0)return t.maxLengthErrorMessage}};
_.V.onValidationResponse=function(N){var t=_.M(N.result,A6O);t===void 0?this.handleUnexpectedValidationError(new _.fF("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",N)):this.handleValidationResultRenderer(t)};
_.V.onValidationServerError=function(N){this.handleUnexpectedValidationError(new _.fF("ValidateChannelHandle request failed.",N))};
_.V.handleValidationResultRenderer=function(N){if(N.handle===void 0)this.handleUnexpectedValidationError(new _.fF("ChannelHandleValidationResultRenderer does not contain handle.",N));else if(N.handle===this.handleInput.value)switch(N.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:N.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:N.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.fF("Unrecognized ChannelHandleValidationResult",N));break;default:_.Ep(N.result)}};
_.V.handleUnexpectedValidationError=function(N){var t;this.validationState={status:"UNKNOWN",handle:(t=this.handleInput.value)!=null?t:""};_.J_(N)};
_.V.stopEventPropagation=function(N){N.stopPropagation()};
_.V.updateHandleOnChannelNameInputChange=function(N){if(!this.wasEdited){var t,O;this.debouncedGenerateHandleFromName(N,(O=(t=this.data)==null?void 0:t.validationDelayMs)!=null?O:1E3)}};
_.V.debouncedGenerateHandleFromName=function(N,t){var O=this;_.W2(this,"debouncedGenerateHandleFromName",function(){var H;(H=O.data)!=null&&H.validateChannelHandleCommand?O.ytComponentBehavior.resolveCommand(O.data.validateChannelHandleCommand,{form:{name:N},commandController:{onSuccess:function(A,Z){O.onGenerateHandleFromNameResponse(Z)},
onServerError:function(A,Z){_.J_(new _.fF("Error calling GenerateHandleFromName",Z))}}}):_.J_(new _.fF("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",O.data))},t)};
_.V.onGenerateHandleFromNameResponse=function(N){this.wasEdited||((N=_.M(N.result,Zof))?this.setHandleInputValue(N.handle):_.J_(new _.fF("Invalid results when generate handle from name")))};
_.cv.Object.defineProperties(Qf.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var N;if(N=this.validationState)N=this.validationState,N=N.status==="OK"||N.status==="UNKNOWN";if(N)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var N;if(((N=this.validationState)==null?void 0:N.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var N,t=(N=this.channelHandleEntity)==null?void 0:N.handleEdit;this.handleDir=this.getHandleDir(t!=null?t:"");return t}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var N,t;if(((N=this.data)==null?void 0:(t=N.channelHandleStaticValidationParams)==null?void 0:t.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Qf.prototype.stopEventPropagation=Qf.prototype.stopEventPropagation;Qf.prototype.onDataChanged=Qf.prototype.onDataChanged;Qf.prototype.applyHandleEdit=Qf.prototype.applyHandleEdit;Qf.prototype.onValueChanged=Qf.prototype.onValueChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Qf.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Qf.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Qf.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],Qf.prototype,"wasEdited",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],Qf.prototype,"handleDir",void 0);_.W([_.B2("#handle-input"),_.Q("design:type",Object)],Qf.prototype,"handleInput",void 0);_.W([_.X(),_.a("validationState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qf.prototype,"value",null);
_.W([_.gz("value"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qf.prototype,"onValueChanged",null);_.W([_.a("validationState"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qf.prototype,"errorIndicator",null);_.W([_.X({reflectToAttribute:!0}),_.a("errorIndicator"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Qf.prototype,"borderErrorIndicator",null);
_.W([_.X({selectorArgs:["data.channelHandleEntityKey"],selector:function(N,t){return _.CM(N.entities,"channelHandle",t)}}),
_.Q("design:type",Object)],Qf.prototype,"channelHandleEntity",void 0);_.W([_.a("channelHandleEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qf.prototype,"handleEdit",null);_.W([_.gz("handleEdit"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qf.prototype,"applyHandleEdit",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Qf.prototype,"onDataChanged",null);
_.W([_.a("data.channelHandleStaticValidationParams.validValueRegexp"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Qf.prototype,"validValueRegexp",null);_.W([_.dz("yt-service-request-sent"),_.dz("yt-service-request-completed"),_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Qf.prototype,"stopEventPropagation",null);_.W([_.en({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Qf);
_.n(Qf,"ytd-channel-handle-input-renderer",function(){if(qmO!==void 0)return qmO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return qmO=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var mr=function(){var N=_.k.apply(this,arguments)||this;N.data=null;N.errorMessage=null;N.isLoading=!0;N.hideContainer=!1;N.enableNewChannelCreationOnIdForAll=_.h("enable_new_channel_creation_for_id4all");N.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};N.testOnly={setErrorMessage:function(t){N.resetErrorState();
N.setErrorState(t)}};
return N};
_.p(mr,_.k);_.V=mr.prototype;_.V.created=function(){this.logScreenVe()};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var N;((N=this.zeroStepErrorMessageEntity)==null?0:N.value)&&this.set("errorMessage",_.E_(this.zeroStepErrorMessageEntity.value))};
_.V.onCreateTap=function(){var N=this;if(this.data&&this.data.channelCreationEndpoint){var t,O;if(!((t=this.data.createChannelButton)==null?0:(O=t.buttonRenderer)==null?0:O.isDisabled)){var H;if((H=this.nameInput)!=null&&H.value){this.setLoadingState();var A,Z;t=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(A=this.handleInput)==null?void 0:A.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((Z=this.handleInput)==null?void 0:Z.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:t,commandController:{onSuccess:function(U,C){N.onChannelCreationEndpointSuccess(C);N.obakeImageSource&&_.E7("channelCreatedWithObakeImage",{imageSourceType:N.obakeImageSource})},
onServerError:function(){N.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.V.endpointRequiresServiceRequestAction=function(N){return!!_.M(N,_.Th)||!!_.M(N,Ho5)};
_.V.isNavigateAction=function(N){var t;return!!_.M(N,_.Aa)||!!_.M((t=_.M(N,U75))==null?void 0:t.command,_.Aa)};
_.V.isPlaylistAction=function(N){return!!_.M(N,_.CY)||!!_.M(N,_.cs)};
_.V.onChannelCreationEndpointSuccess=function(N){if(N.createChannelError){var t;this.setErrorState((t=N.createChannelError)==null?void 0:t.errorMessage);this.handleInput&&this.handleInput.validate()}else{N.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(N.navigationEndpoint);if(N.actions){t=_.D(N.actions);for(var O=t.next();!O.done;O=t.next())if(O=O.value,this.endpointRequiresServiceRequestAction(O)&&this.ytComponentBehavior.resolveCommand(O),this.isNavigateAction(O)){var H=void 0;O=_.M((H=
_.M(O,U75))==null?void 0:H.command,_.Aa);H=void 0;this.isPlaylistAction((H=O)==null?void 0:H.endpoint)&&(_.sl(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),H=void 0,this.ytComponentBehavior.resolveCommand((H=O)==null?void 0:H.endpoint))}}N.actions&&N.actions.some(function(A){var Z;return _.M(A,_.Aa)||_.M((Z=_.M(A,U75))==null?void 0:Z.command,_.Aa)})||_.sl(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.V.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.V.onCancelTap=function(){var N,t,O;if(!((N=this.data)==null?0:(t=N.cancelButton)==null?0:(O=t.buttonRenderer)==null?0:O.isDisabled)){var H,A,Z;N=(H=this.data)==null?void 0:(A=H.cancelButton)==null?void 0:(Z=A.buttonRenderer)==null?void 0:Z.command;if(!N||!_.M(N,_.uDQ)){var U;this.nameInput&&((U=this.data)==null?0:U.name)&&(this.nameInput.value=this.data.name);var C;this.handleInput&&((C=this.data)==null?0:C.channelHandleInput)&&(this.handleInput.data=_.M(this.data.channelHandleInput,V_r));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.V.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.V.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.V.onClearProfilePhotoTap=function(){var N,t,O;((N=this.data)==null?0:(t=N.clearProfilePhotoButton)==null?0:(O=t.buttonRenderer)==null?0:O.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.V.onEditAvatarTap=function(){var N,t,O;((N=this.data)==null?0:(t=N.editAvatarButton)==null?0:(O=t.buttonRenderer)==null?0:O.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.V.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.V.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var N;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((N=this.data)==null?0:N.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.V.setErrorState=function(N){this.resetErrorState();if(N)this.set("errorMessage",N);else{var t;if((t=this.zeroStepErrorMessageEntity)==null?0:t.value)this.set("errorMessage",_.E_(this.zeroStepErrorMessageEntity.value));else{var O;((O=this.data)==null?0:O.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.V.fetchImageBlobWithAlr=function(N,t){t=t===void 0?5:t;var O=this,H,A,Z,U,C;return _.K(function(F){switch(F.nextAddress){case 1:return F.yield(fetch(N,{method:"GET",mode:"cors"}),2);case 2:H=F.yieldResult;if(H.ok){F.jumpTo(3);break}if(t===0)throw Error();A=O.addJitter(Math.pow(2,5-t));return F.yield(new Promise(function(g){setTimeout(g,A*1E3)}),4);
case 4:return F.return(O.fetchImageBlobWithAlr(N,t-1));case 3:if(!H.headers.get("content-type").split(";").some(function(g){return g.trim()==="text/plain"})){F.jumpTo(5);
break}Z=O;U=Z.fetchImageBlobWithAlr;return F.yield(H.text(),6);case 6:return F.return(U.call(Z,F.yieldResult,t-1));case 5:return F.yield(H.blob(),7);case 7:return C=F.yieldResult,F.return(C)}})};
_.V.addJitter=function(N){var t=N*.3*Math.random();Math.random()>.5&&(t*=-1);return N+t};
_.V.openProfilePicturePicker=function(){var N=this,t,O,H,A,Z,U;return _.K(function(C){if(C.nextAddress==1){t=N.data.scottyUploadUrl;if(!t)return C.return();O=document.documentElement.hasAttribute("dark");H=document.body.style.colorScheme;O&&(document.body.style.colorScheme="dark");A=r7f(II5(W3m(PI1(O?"dark":"light")),function(F){var g,B,c,u,S;return _.K(function(b){if(b.nextAddress==1)return g=_.o5(Vtq(new Mq5(F.photoUrl,!1)).build(),"alr","yes"),N.obakeImageSource=N.pictureChangeSourceToObakeImageSourceType(F.photoSource),
_.Mo(b,2),N.setLoadingState(),b.yield(N.fetchImageBlobWithAlr(g),4);if(b.nextAddress!=2)return B=b.yieldResult,c=new FileReader,c.addEventListener("load",function(){var z,w,P,x,l,I;return _.K(function(r){if(r.nextAddress==1){if(B.size>15728640)return N.setErrorState((z=N.data)==null?void 0:z.imageSizeErrorMessage),_.J_(Error("Gl")),r.return();if(!c.result)return N.setErrorState((w=N.data)==null?void 0:w.genericImageLoadErrorMessage),_.J_(Error("Hl")),r.return();P=c.result;_.Mo(r,2);return r.yield(RGJ(B,
t),4)}if(r.nextAddress!=2)return x=r.yieldResult,N.handleImageUpdatedAction(P,x),N.resetErrorState(),_.Do(r,0);l=_.ax(r);N.setErrorState((I=N.data)==null?void 0:I.uploadErrorMessage);if(l instanceof Error)_.R0(l);else{var E=new _.fF(JSON.stringify(l));_.R0(E)}_.Ty(r)})}),c.readAsDataURL(B),_.Do(b,0);
u=_.ax(b);N.setErrorState((S=N.data)==null?void 0:S.genericImageLoadErrorMessage);u instanceof Error?_.R0(u):_.vX(new _.fF(JSON.stringify(u)));_.Ty(b)})}),function(){N.hideContainer=!1;
document.body.style.colorScheme=H});
_.Mo(C,2);return((Z=N.data)==null?0:Z.shouldViewChannelCreationFormForSupex)?C.yield(A.openPicker("profile-picture/art-selection"),5):C.yield(A.openPicker(),5)}if(C.nextAddress!=2)return _.Do(C,0);_.ax(C);N.setErrorState((U=N.data)==null?void 0:U.selectImageErrorMessage);_.Ty(C)})};
_.V.pictureChangeSourceToObakeImageSourceType=function(N){switch(N){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.V.logScreenVe=function(){_.Ws(_.gF(),124448)};
_.V.graftServerVe=function(){var N=_.pv(),t,O,H=(t=this.data)==null?void 0:(O=t.loggingDirectives)==null?void 0:O.trackingParams;H&&N&&(this.channelCreationFormVe=_.gF().graftServerVe(H,N),N={visualElement:this.channelCreationFormVe},_.Fr().reportShown(N))};
_.V.isNameChanged=function(N){var t;return((t=this.data)==null?void 0:t.name)!==N};
_.V.isHandleChanged=function(N){var t,O=_.M((t=this.data)==null?void 0:t.channelHandleInput,V_r);return O&&N?O.handle!==N:!1};
_.V.handleImageUpdatedAction=function(N,t){this.hideContainer=!1;this.previewDataUrl=N;this.encryptedBlobId=t};
_.V.handleImageSelectionErrorAction=function(N){this.hideContainer=!1;this.setErrorState(N)};
_.V.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.V.showContainer=function(){this.hideContainer=!1};
_.V.maybeWipeZeroStepErrorMessage=function(){var N,t=(N=this.data)==null?void 0:N.zeroStepErrorMessageEntityKey,O;t&&((O=this.zeroStepErrorMessageEntity)==null?0:O.value)&&this.ytdReduxBehavior.dispatch(_.uF("stringEntity",t,{key:t,value:""}))};
_.cv.Object.defineProperties(mr.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var N;return((N=this.photoThumbnail)==null?0:N.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.descriptionInfo}}});
mr.prototype.dataChanged=mr.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],mr.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],mr.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],mr.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],mr.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],mr.prototype,"errorMessage",void 0);
_.W([_.X(),_.Q("design:type",Object)],mr.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",String)],mr.prototype,"previewDataUrl",void 0);_.W([_.X(),_.Q("design:type",Number)],mr.prototype,"obakeImageSource",void 0);_.W([_.X(),_.Q("design:type",Object)],mr.prototype,"hideContainer",void 0);_.W([_.B2("#title-input"),_.Q("design:type",Object)],mr.prototype,"nameInput",void 0);_.W([_.B2("#handle-input"),_.Q("design:type",Object)],mr.prototype,"handleInput",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],mr.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.W([_.X({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.H4N}),_.Q("design:type",Object)],mr.prototype,"zeroStepErrorMessageEntity",void 0);_.W([_.a("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mr.prototype,"photoThumbnail",null);
_.W([_.a("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mr.prototype,"userSetPhotoThumbnailUrl",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mr.prototype,"hideProfilePhotoButtonLayer",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],mr.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.W([_.ic("data","zeroStepErrorMessageEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],mr.prototype,"dataChanged",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],mr.prototype,"description",null);_.W([_.en({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],mr);
_.n(mr,"ytd-channel-creation-dialog-renderer",function(){if(koi!==void 0)return koi;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return koi=N},{mode:1});var fG5;var EC=function(){var N=_.k.apply(this,arguments)||this;N.isLoading=!1;N.isDisabled=!1;return N};
_.p(EC,_.k);EC.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
EC.prototype.updateDisabled=function(){var N;this.isDisabled=this.isLoading||((N=this.handleInput)==null?void 0:N.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
EC.prototype.onSaveClick=function(){var N=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var t;((t=this.data)==null?void 0:t.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 O;if((O=N.data)==null?0:O.nextEndpoint){var H;N.ytComponentBehavior.resolveCommand((H=N.data)==null?void 0:H.nextEndpoint)}else N.isLoading=
!1,N.closeDialog()},
onServerError:function(){N.isLoading=!1;N.handleInput.validate();var O;N.errorMessage=(O=N.data)==null?void 0:O.errorMessage}}}))}};
EC.prototype.closeDialog=function(){_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
EC.prototype.updateDisabled=EC.prototype.updateDisabled;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],EC.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],EC.prototype,"data",void 0);_.W([_.B2("#handle-input"),_.Q("design:type",Object)],EC.prototype,"handleInput",void 0);_.W([_.gz("isLoading"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],EC.prototype,"updateDisabled",null);
_.W([_.en({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],EC);
_.n(EC,"ytd-channel-handle-edit-dialog-renderer",function(){if(fG5!==void 0)return fG5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return fG5=N},{mode:1});var nWr;var GD=function(){return _.k.apply(this,arguments)||this};
_.p(GD,_.k);GD.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],GD.prototype,"data",void 0);_.W([_.en({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],GD);
_.n(GD,"ytd-channel-switcher-footer-renderer",function(){if(nWr!==void 0)return nWr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return nWr=N},{mode:1});var WLi;var rKi;var RL=function(){return _.k.apply(this,arguments)||this};
_.p(RL,_.k);RL.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
RL.prototype.onIronChange=RL.prototype.onIronChange;_.W([_.X(),_.Q("design:type",Object)],RL.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!1}),_.Q("design:type",Function)],RL.prototype,"onDontAskAgainChanged",void 0);_.W([_.B2("#checkbox"),_.Q("design:type",Object)],RL.prototype,"checkbox",void 0);_.W([_.dz("iron-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RL.prototype,"onIronChange",null);
_.W([_.en({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],RL);
_.n(RL,"ytd-identity-prompt-footer-renderer",function(){if(rKi!==void 0)return rKi;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rKi=N},{mode:1});var vJ=function(){var N=_.k.apply(this,arguments)||this;N.dontAskAgain=!1;N.showPopup=!1;N.boundDontAskAgainChanged=function(t){N.dontAskAgainChanged(t)};
N.boundOnAccountItemTap=function(t){N.onAccountItemTap(t)};
return N};
_.p(vJ,_.k);_.V=vJ.prototype;
_.V.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.V.ready=function(){var N=this;_.O6(this.hostElement).querySelector("#container").addEventListener("scroll",function(){N.ytRendererBehavior.markDirty()})};
_.V.dontAskAgainChanged=function(N){this.dontAskAgain=N};
_.V.onAccountItemTap=function(N){if(N){var t={};this.dontAskAgain&&(t={dont_ask_again:this.dontAskAgain});_.xH(N,t)}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.V.redirectOnlyAccount=function(N){N.sections&&N.sections.length>0&&(N=_.M(N.sections[0],_.pSZ),(N==null?0:N.contents)&&(N==null?void 0:N.contents.length)<=1?(N=_.D9(window.location.href),(N==null?0:N.next)&&_.m09(N.next)?_.xH(N.next):_.xH("/")):this.showPopup=!0)};
vJ.prototype.dataChanged=vJ.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vJ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!1}),_.Q("design:type",Object)],vJ.prototype,"dontAskAgain",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],vJ.prototype,"showPopup",void 0);_.W([_.X({reflectToAttribute:!1}),_.Q("design:type",Object)],vJ.prototype,"boundDontAskAgainChanged",void 0);_.W([_.X({reflectToAttribute:!1}),_.Q("design:type",Object)],vJ.prototype,"boundOnAccountItemTap",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vJ.prototype,"dataChanged",null);
_.W([_.en({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],vJ);
_.n(vJ,"ytd-channel-switcher-renderer",function(){if(WLi!==void 0)return WLi;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return WLi=N},{mode:1});var IGx;var JE=function(){return _.k.apply(this,arguments)||this};
_.p(JE,_.k);_.cv.Object.defineProperties(JE.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.W([_.X(),_.Q("design:type",Object)],JE.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],JE.prototype,"steps",null);_.W([_.en({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],JE);
_.n(JE,"ytd-channel-transfer-stepper-renderer",function(){if(IGx!==void 0)return IGx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return IGx=N},{mode:1});var lGx;var oL=function(){var N=_.k.apply(this,arguments)||this;N.data=null;N.isError=!1;N.isLoading=!1;return N};
_.p(oL,_.k);_.V=oL.prototype;_.V.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.V.computeProfileName=function(N){return N?N.givenNameValue+" "+N.familyNameValue:""};
_.V.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.V.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
oL.prototype.onYtServiceRequestError=oL.prototype.onYtServiceRequestError;oL.prototype.onYtServiceRequestSent=oL.prototype.onYtServiceRequestSent;oL.prototype.dataChanged=oL.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],oL.prototype,"data",void 0);
_.W([_.X({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Q("design:type",String)],oL.prototype,"profileName",void 0);_.W([_.X(),_.Q("design:type",Object)],oL.prototype,"isError",void 0);_.W([_.X(),_.Q("design:type",Object)],oL.prototype,"isLoading",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oL.prototype,"dataChanged",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],oL.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],oL.prototype,"onYtServiceRequestError",null);_.W([_.en({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],oL);
_.n(oL,"ytd-channel-warm-welcome-cont-renderer",function(){if(lGx!==void 0)return lGx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return lGx=N},{mode:1});var Qt5;var sC=function(){var N=_.k.apply(this,arguments)||this;N.data=null;return N};
_.p(sC,_.k);sC.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sC.prototype,"data",void 0);_.W([_.en({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],sC);
_.n(sC,"ytd-channel-warm-welcome-renderer",function(){if(Qt5!==void 0)return Qt5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Qt5=N},{mode:1});var mQ5;var N9=function(){return _.k.apply(this,arguments)||this};
_.p(N9,_.k);_.cv.Object.defineProperties(N9.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.authorThumbnail)||{}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],N9.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],N9.prototype,"thumbnailDetails",null);_.W([_.en({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],N9);
_.n(N9,"ytd-comment-preview-renderer",function(){if(mQ5!==void 0)return mQ5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return mQ5=N},{mode:1});var EWm;var tp=function(){return _.k.apply(this,arguments)||this};
_.p(tp,_.k);tp.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.cv.Object.defineProperties(tp.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.submitButton}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tp.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],tp.prototype,"submitButton",null);_.W([_.en({is:"ytd-notice-renderer",disableElementRegistration:!0})],tp);
_.n(tp,"ytd-notice-renderer",function(){if(EWm!==void 0)return EWm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return EWm=N},{mode:1});var Go5;var OQ=function(){return _.k.apply(this,arguments)||this};
_.p(OQ,_.k);OQ.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],OQ.prototype,"data",void 0);_.W([_.en({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],OQ);
_.n(OQ,"ytd-preview-comment-dialog-content",function(){if(Go5!==void 0)return Go5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Go5=N},{mode:1});var RQJ;var Hr=function(){return _.k.apply(this,arguments)||this};
_.p(Hr,_.k);Hr.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Hr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Hr.prototype,"data",void 0);_.W([_.en({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Hr);
_.n(Hr,"ytd-preview-comment-dialog-renderer",function(){if(RQJ!==void 0)return RQJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return RQJ=N},{mode:1});var vWz;var JKO=_.h("web_button_rework")&&_.vZ("BUTTON_REWORK")||_.h("web_button_rework_with_live"),Ap=function(){var N=_.k.apply(this,arguments)||this;N.closeLabel=_.CJ("CLOSE");N.selectedAmountIndex=1;N.privacyCheckboxValue=!1;N.useAmsterdamStyle=JKO;N.amountPlaceholderIndex=-1;return N};
_.p(Ap,_.k);_.V=Ap.prototype;_.V.onAmountClick=function(N){this.selectedAmountIndex=_.O6(this.hostElement).querySelector("#amounts").indexForElement(N.currentTarget)};
_.V.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.sl(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.V.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.sl(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.sl(this.hostElement,"yt-close-popup-action",[this.is]);var N;(N=_.si())==null||N.getPlayerPromise().then(function(t){t.pauseVideo()})}};
_.V.donationCallback=function(N){N.success?(this.hostElement.hasAttribute("live-chat")&&N.response&&N.response.data&&N.response.data.actions&&_.sl(this.hostElement,"yt-live-chat-open-popup",[N.response.data.actions[0]]),_.sl(this.hostElement,"yt-close-popup-action",[this.is]),_.sl(this.hostElement,"yt-live-chat-close-buy-flow")):N.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(N.errorMessageRenderer)};
_.V.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.O6(this.hostElement).querySelector("#custom-amount-input").focus()};
_.V.updateConfirmationDialogTextWithAmount=function(N){var t=this.getConfirmDialogRuns();t&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(t),"text"],this.getFormattedAmount(N))};
_.V.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.V.getAmountPlaceholderIndex=function(N){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=N.findIndex(function(t){return t.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.V.getFormattedAmount=function(N){var t;return(new _.r8(4,((t=this.data)==null?void 0:t.currencyCode)||"")).format(N)};
_.V.isAmountValid=function(N){if(N==="")return!1;N=Number(N)*1E6;var t=this.get("minAmountMicros",this.data),O=this.get("maxAmountMicros",this.data);return t&&N<t||O&&N>O?!1:!0};
_.V.setInputError=function(){this.shouldShowValidationError?_.O6(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.O6(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.V.setInitialCheckboxValue=function(){var N;this.privacyCheckboxValue=!((N=this.data)==null||!N.privacyCheckboxInitialState)};
_.V.updateCustomAmountInputFromBinding=function(N){this.customAmountInput=N.detail.value};
_.V.updatePrivacyCheckboxValueFromBinding=function(N){this.privacyCheckboxValue=N.detail.value};
_.cv.Object.defineProperties(Ap.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var N=this,t,O;return((t=this.data)==null?void 0:(O=t.suggestedAmounts)==null?void 0:O.map(function(H,A){return{buttonRenderer:{style:N.selectedAmountIndex===A?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:H.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var N=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(N&&this.amountMicros!==null)return Object.assign({},N,{ypcGetCartEndpoint:Object.assign({},N.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var N=this.get("confirmLargeAmount",this.data);if(N&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),N}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var N=this.get("donateButton.buttonRenderer",this.data);if(N)return Object.assign({},N,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Ap.prototype.setInitialCheckboxValue=Ap.prototype.setInitialCheckboxValue;Ap.prototype.setInputError=Ap.prototype.setInputError;Ap.prototype.setFocusOnCustomAmountInput=Ap.prototype.setFocusOnCustomAmountInput;_.W([_.Y(tw5),_.Q("design:type",Object)],Ap.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ap.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Ap.prototype,"closeLabel",void 0);_.W([_.X(),_.Q("design:type",Object)],Ap.prototype,"selectedAmountIndex",void 0);_.W([_.X(),_.Q("design:type",String)],Ap.prototype,"customAmountInput",void 0);_.W([_.X(),_.Q("design:type",Object)],Ap.prototype,"privacyCheckboxValue",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Ap.prototype,"useAmsterdamStyle",void 0);_.W([_.gz("customAmount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ap.prototype,"setFocusOnCustomAmountInput",null);_.W([_.a("data","selectedAmountIndex"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],Ap.prototype,"suggestedAmountButtons",null);
_.W([_.a("data","selectedAmountIndex"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ap.prototype,"isCustomAmountSelected",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ap.prototype,"showPrivacyCheckbox",null);_.W([_.a("data","selectedAmountIndex","customAmount"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ap.prototype,"amountMicros",null);
_.W([_.a("isCustomAmountSelected","customAmountInput"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ap.prototype,"customAmount",null);_.W([_.a("customAmount"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ap.prototype,"shouldShowValidationError",null);_.W([_.a("customAmount"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ap.prototype,"isDonateButtonEnabled",null);
_.W([_.a("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ap.prototype,"donateCommand",null);_.W([_.a("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ap.prototype,"donateCommandWithConfirmation",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ap.prototype,"largeDonationThreshold",null);
_.W([_.a("customAmount","donateCommand","amountMicros"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ap.prototype,"confirmLargeAmountCommand",null);_.W([_.a("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ap.prototype,"donateButtonRenderer",null);_.W([_.gz("shouldShowValidationError"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ap.prototype,"setInputError",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ap.prototype,"setInitialCheckboxValue",null);_.W([_.en({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Ap);
_.n(Ap,"ytd-donation-amount-picker-renderer",function(){if(vWz!==void 0)return vWz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return vWz=N},{mode:1});var oWr;var st1=function(){return _.k.apply(this,arguments)||this};
_.p(st1,_.k);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],st1.prototype,"ytComponentBehavior",void 0);_.W([_.X({}),_.Q("design:type",Object)],st1.prototype,"data",void 0);_.W([_.en({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],st1);
_.n(st1,"ytd-donation-post-transaction-content",function(){if(oWr!==void 0)return oWr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return oWr=N},{mode:1});var Ns5;var ZR=function(){return _.k.apply(this,arguments)||this};
_.p(ZR,_.k);ZR.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.W([_.X({}),_.Q("design:type",Object)],ZR.prototype,"data",void 0);_.W([_.en({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],ZR);
_.n(ZR,"ytd-donation-post-transaction-renderer",function(){if(Ns5!==void 0)return Ns5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Ns5=N},{mode:1});var tUf;var OPr;var VI=function(){return _.k.apply(this,arguments)||this};
_.p(VI,_.k);VI.prototype.computeIsStreamingProvider=function(N){return!!N.isStreamingShelf};
VI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],VI.prototype,"data",void 0);_.W([_.X({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],VI.prototype,"isStreamingProvider",void 0);
_.W([_.en({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],VI);
_.n(VI,"ytd-media-provider-renderer",function(){if(OPr!==void 0)return OPr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return OPr=N},{mode:1});var HP5;var DR=function(){return _.k.apply(this,arguments)||this};
_.p(DR,_.k);DR.prototype.observeLightsourcePalette=function(){var N,t=(N=this.data)==null?void 0:N.vibrantsourceColorPaletteData;t&&_.Me(this.hostElement,t)};
DR.prototype.observeLightsourcePalette=DR.prototype.observeLightsourcePalette;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DR.prototype,"data",void 0);
_.W([_.gz("data.vibrantsourceColorPaletteData"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],DR.prototype,"observeLightsourcePalette",null);_.W([_.en({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],DR);
_.n(DR,"ytd-streaming-pop-up-dialog",function(){if(HP5!==void 0)return HP5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return HP5=N},{mode:1});var UQ=function(){return _.k.apply(this,arguments)||this};
_.p(UQ,_.k);UQ.prototype.onPopupOpened_=function(){var N;((N=this.data)==null?0:N.serviceEndpoint)&&_.cY().resolve(_.jo).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
UQ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
UQ.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"}}}}};
UQ.prototype.onPopupOpened_=UQ.prototype.onPopupOpened_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.h3),_.Q("design:type",Object)],UQ.prototype,"ytContinuationHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],UQ.prototype,"data",void 0);
_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],UQ.prototype,"onPopupOpened_",null);_.W([_.en({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],UQ);
_.n(UQ,"ytd-brandconnect-popup-renderer",function(){if(tUf!==void 0)return tUf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tUf=N},{mode:1});var At5;var Cy=function(){return _.k.apply(this,arguments)||this};
_.p(Cy,_.k);_.V=Cy.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){for(var N=0;N<this.getOptionRenderers().length;N++)this.notifyPath("data.options."+N+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+N+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.V.updateSubmitButton=function(N){this.set("data.submitButton.buttonRenderer.isDisabled",!N)};
_.V.computeAlt=function(N){return _.Gv(N)};
_.V.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.getOptionRenderers=function(N){return(N=N||this.data)&&N.options?N.options.reduce(function(t,O){O.checkboxSurveyOptionRenderer&&t.push(O.checkboxSurveyOptionRenderer);return t},[]):[]};
_.V.onOptionChange=function(N){var t=this,O=!1;if(N.detail.checked)for(var H=this.getOptionRenderers().find(function(C){return C.value===N.detail.value}),A=this.getOptionRenderers(),Z=0;Z<A.length;Z++){var U=A[Z];
this.notifyPath("data.options."+Z+".checkboxSurveyOptionRenderer.checked");U.checked&&((H==null?0:H.isExclusiveOption)?!U.isExclusiveOption:U.isExclusiveOption)?this.set("data.options."+Z+".checkboxSurveyOptionRenderer.checked",!1):U.checked&&(O=!0)}else O=this.getOptionRenderers().some(function(C,F){t.notifyPath("data.options."+F+".checkboxSurveyOptionRenderer.checked");return C.checked});
this.updateSubmitButton(O)};
_.V.onSubmitTap=function(){var N=this.getOptionRenderers().filter(function(Z){return Z.checked});
if(N.length!==0){var t=N.map(function(Z){return Z.responseEndpoint});
N=[];for(var O=1;O<t.length;O++){var H=void 0,A=(H=_.M(t[O],_.wP))==null?void 0:H.feedbackToken;A&&N.push(A)}t=[t[0]];N.length&&t.push({extra_feedback_tokens:N});_.tb(this.hostElement,t);_.sl(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);N=this.data&&this.data.submitActions||[];if(_.h("kevlar_command_handler_migration_killswitch"))_.OK(this.hostElement,N,this.hostElement);else for(N=_.D(N),t=N.next();!t.done;t=N.next())this.ytComponentBehavior.resolveCommand(t.value)}};
Cy.prototype.onOptionChange=Cy.prototype.onOptionChange;Cy.prototype.dataChanged=Cy.prototype.dataChanged;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],Cy.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Cy.prototype,"ytComponentBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.W([_.Y(iu5),_.Q("design:type",Object)],Cy.prototype,"ytdHatsSurveyBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Cy.prototype,"data",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Cy.prototype,"dataChanged",null);
_.W([_.dz("ytd-checkbox-survey-option-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Cy.prototype,"onOptionChange",null);_.W([_.en({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Cy);
_.n(Cy,"ytd-checkbox-survey-renderer",function(){if(At5!==void 0)return At5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return At5=N},{mode:1});var ZPO;var VU5;var Ky=function(){return _.k.apply(this,arguments)||this};
_.p(Ky,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.W([_.Y(j61),_.Q("design:type",Object)],Ky.prototype,"ytdDismissalReasonBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ky.prototype,"data",void 0);_.W([_.en({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Ky);
_.n(Ky,"ytd-dismissal-reason-text-renderer",function(){if(VU5!==void 0)return VU5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return VU5=N},{mode:1});var DZ1;var F2=function(){return _.k.apply(this,arguments)||this};
_.p(F2,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],F2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(j61),_.Q("design:type",Object)],F2.prototype,"ytdDismissalReasonBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],F2.prototype,"data",void 0);_.W([_.en({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],F2);
_.n(F2,"ytd-dismissal-reason-video-renderer",function(){if(DZ1!==void 0)return DZ1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return DZ1=N},{mode:1});var dh=function(){return _.k.apply(this,arguments)||this};
_.p(dh,_.k);_.V=dh.prototype;_.V.created=function(){this.selectedFeedbackTokens=new $$};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.V.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.V.onDismissalReasonSelected=function(N,t){_.or(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(t);this.hasReasonsSelected=!0};
_.V.onDismissalReasonDeselected=function(N,t){_.or(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(t);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.V.onCancelTap=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.V.onSubmitTap=function(){var N=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(N={feedback_tokens:N},_.cY().resolve(_.jo).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},N,{element:this.hostElement})}));_.sl(this.hostElement,"yt-close-popup-action")};
dh.prototype.onDismissalReasonDeselected=dh.prototype.onDismissalReasonDeselected;dh.prototype.onDismissalReasonSelected=dh.prototype.onDismissalReasonSelected;dh.prototype.dataChanged=dh.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dh.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],dh.prototype,"hasReasonsSelected",void 0);_.W([_.X(),_.Q("design:type",$$)],dh.prototype,"selectedFeedbackTokens",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dh.prototype,"dataChanged",null);_.W([_.dz("yt-dismissal-reason-selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,String]),_.Q("design:returntype")],dh.prototype,"onDismissalReasonSelected",null);
_.W([_.dz("yt-dismissal-reason-deselected"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,String]),_.Q("design:returntype")],dh.prototype,"onDismissalReasonDeselected",null);_.W([_.en({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],dh);
_.n(dh,"ytd-dismissal-follow-up-renderer",function(){if(ZPO!==void 0)return ZPO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ZPO=N},{mode:1});var UZ1;var gh=function(){return _.k.apply(this,arguments)||this};
_.p(gh,_.k);_.V=gh.prototype;_.V.onCheckedChange=function(){this.multiselect||_.or(this.hostElement,"yt-feedback-single-select-changed");_.O6(this.hostElement).querySelector("#freeform").focus();_.or(this.hostElement,"yt-refit")};
_.V.showTextBox=function(N,t){return N&&t};
_.V.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.V.updateDataCheckedFromBinding=function(N){this.set("data.checked",N.detail.value)};
_.V.updateDataResultTextFromBinding=function(N){this.set("data.resultText",N.detail.value)};
gh.prototype.dataChanged=gh.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gh.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],gh.prototype,"multiselect",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gh.prototype,"dataChanged",null);
_.W([_.en({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],gh);
_.n(gh,"ytd-feedback-option-renderer",function(){if(UZ1!==void 0)return UZ1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return UZ1=N},{mode:1});var C6J;var yI=function(){return _.k.apply(this,arguments)||this};
_.p(yI,_.k);yI.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
yI.prototype.onSingleSelectCheckedChanged=function(N){N=_.E3(N);for(var t=0;t<this.data.options.length;t++)if(N.data!==_.M(this.data.options[t],wIz)){var O="data.options."+t+".feedbackOptionRenderer.checked";this.notifyPath(O);this.set(O,!1)}};
yI.prototype.onSingleSelectCheckedChanged=yI.prototype.onSingleSelectCheckedChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yI.prototype,"data",void 0);
_.W([_.dz("yt-feedback-single-select-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],yI.prototype,"onSingleSelectCheckedChanged",null);_.W([_.en({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],yI);
_.n(yI,"ytd-feedback-question-renderer",function(){if(C6J!==void 0)return C6J;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return C6J=N},{mode:1});var KoJ;var Br=function(){return _.k.apply(this,arguments)||this};
_.p(Br,_.k);Br.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Br.prototype.getSelectedFeedbackResults=function(){for(var N={},t=0;t<this.data.questions.length;t++)for(var O=_.M(this.data.questions[t],TX5),H=0;H<O.options.length;H++){var A=_.M(O.options[H],wIz);A&&A.checked&&(N[A.optionKey]=A.resultText)}return N};
Br.prototype.onKeyUp=function(){var N=this;_.HH(_.GB,function(){_.or(N.hostElement,"yt-refit")});
_.GB.start()};
Br.prototype.submitSurvey=function(){var N=this.getSelectedFeedbackResults();Object.keys(N).length>0&&this.data.submitFeedbackEndpoint&&(N={survey_results:N,is_feedback_token_unencrypted:!0},_.cY().resolve(_.jo).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},N,{element:this.hostElement})}))};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Br.prototype,"data",void 0);_.W([_.en({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Br);
_.n(Br,"ytd-feedback-survey-renderer",function(){if(KoJ!==void 0)return KoJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return KoJ=N},{mode:1});var Fo1;var dZz;var cr=function(){return _.k.apply(this,arguments)||this};
_.p(cr,_.k);cr.prototype.computeAlt=function(N){return _.Gv(N)};
cr.prototype.submitResponse=function(){var N,t;(N=this.data)!=null&&N.feedbackToken&&((t=this.data)==null?void 0:t.nextStageIndex)!==void 0&&(_.Np(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Np(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
cr.prototype.onClick=function(){this.submitResponse()};
cr.prototype.onClick=cr.prototype.onClick;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cr.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],cr.prototype,"vertical",void 0);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cr.prototype,"onClick",null);
_.W([_.en({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],cr);
_.n(cr,"ytd-single-select-answer-option-renderer",function(){if(dZz!==void 0)return dZz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return dZz=N},{mode:1});var gdn;var $a=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return N};
_.p($a,_.k);$a.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
$a.prototype.dataChanged=function(){var N,t;this.vertical=((t=(N=this.data)==null?void 0:N.answerOrientation)!=null?t:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
$a.prototype.submitFeedback=function(N){var t;((t=this.data)==null?0:t.responseEndpoint)&&N&&_.tb(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[N]}])};
$a.prototype.dataChanged=$a.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],$a.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],$a.prototype,"eventForwardingBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],$a.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],$a.prototype,"vertical",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$a.prototype,"dataChanged",null);_.W([_.en({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],$a);
_.n($a,"ytd-single-select-question-renderer",function(){if(gdn!==void 0)return gdn;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return gdn=N},{mode:1});var jP=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return N};
_.p(jP,_.k);_.V=jP.prototype;_.V.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.V.dataChanged=function(){this.jumpToStage(0)};
_.V.jumpToStage=function(N){var t,O;if((t=this.data)==null?0:(O=t.stages)==null?0:O[N])this.currentStage=this.data.stages[N],this.refitAfterRender()};
_.V.computeAlt=function(N){return _.Gv(N)};
_.V.computeSimpleMessage=function(N){var t;return(t=_.M(N,XIm))==null?void 0:t.messageText};
_.V.computeHideDismiss=function(N){var t;return(t=_.M(N,Ul1))==null?void 0:t.hideParentDismissButton};
_.V.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action");_.M(this.currentStage,XIm)||this.data.dismissalEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.V.refitAfterRender=function(){var N=this;_.yB(this,function(){_.or(N.hostElement,"yt-refit")})};
jP.prototype.dataChanged=jP.prototype.dataChanged;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],jP.prototype,"eventForwardingBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],jP.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y(iu5),_.Q("design:type",Object)],jP.prototype,"ytdHatsSurveyBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jP.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],jP.prototype,"currentStage",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],jP.prototype,"dataChanged",null);_.W([_.en({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],jP);
_.n(jP,"ytd-multi-stage-survey-renderer",function(){if(Fo1!==void 0)return Fo1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Fo1=N},{mode:1});var ytf;var iG=function(){return _.k.apply(this,arguments)||this};
_.p(iG,_.k);iG.prototype.computeAlt=function(N){return _.Gv(N)};
iG.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.cY().resolve(_.jo).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.sl(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.$fm(!1)))};
iG.prototype.onTap=function(){this.vertical&&this.submitResponse()};
iG.prototype.onTap=iG.prototype.onTap;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],iG.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],iG.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],iG.prototype,"vertical",void 0);
_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iG.prototype,"onTap",null);_.W([_.en({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],iG);
_.n(iG,"ytd-single-option-survey-option-renderer",function(){if(ytf!==void 0)return ytf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ytf=N},{mode:1});var Bsn;var uG=function(){return _.k.apply(this,arguments)||this};
_.p(uG,_.k);_.V=uG.prototype;_.V.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){var N,t;this.vertical=(((N=this.data)==null?void 0:(t=N.surveyOrientation)==null?void 0:t.type)||"HORIZONTAL")==="VERTICAL"};
_.V.computeAlt=function(N){return _.Gv(N)};
_.V.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.cY().resolve(_.jo).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.$fm(!1))};
uG.prototype.dataChanged=uG.prototype.dataChanged;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],uG.prototype,"eventForwardingBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(iu5),_.Q("design:type",Object)],uG.prototype,"ytdHatsSurveyBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],uG.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],uG.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],uG.prototype,"vertical",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uG.prototype,"dataChanged",null);_.W([_.en({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],uG);
_.n(uG,"ytd-single-option-survey-renderer",function(){if(Bsn!==void 0)return Bsn;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Bsn=N},{mode:1});var ctm;var SP=function(){return _.k.apply(this,arguments)||this};
_.p(SP,_.k);SP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SP.prototype.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action")};
SP.prototype.onNavigate=function(){_.sl(this.hostElement,"yt-close-popup-action")};
SP.prototype.onNavigate=SP.prototype.onNavigate;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],SP.prototype,"ytEventForwardingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],SP.prototype,"data",void 0);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],SP.prototype,"onNavigate",null);
_.W([_.en({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],SP);
_.n(SP,"ytd-survey-follow-up-renderer",function(){if(ctm!==void 0)return ctm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ctm=N},{mode:1});var $Z5;var jZO;var iP5;var hp=function(){var N=_.k.apply(this,arguments)||this;N.polymer2="Element"in Polymer;return N};
_.p(hp,_.k);_.V=hp.prototype;_.V.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.V.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.V.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.V.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("minutes-changed",this.minutes))};
_.V.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("seconds-changed",this.seconds))};
_.V.updateMinutesFromBinding=function(N){this.minutes=N.detail.value};
_.V.updateSecondsFromBinding=function(N){this.seconds=N.detail.value};
hp.prototype.secondsChangedForBinding=hp.prototype.secondsChangedForBinding;hp.prototype.minutesChangedForBinding=hp.prototype.minutesChangedForBinding;hp.prototype.secondsChanged=hp.prototype.secondsChanged;_.W([_.X(),_.Q("design:type",String)],hp.prototype,"minutes",void 0);_.W([_.X(),_.Q("design:type",String)],hp.prototype,"seconds",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],hp.prototype,"polymer2",void 0);
_.W([_.B2("#seconds"),_.Q("design:type",Object)],hp.prototype,"secondsEl",void 0);_.W([_.gz("seconds"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hp.prototype,"secondsChanged",null);_.W([_.gz("minutes"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hp.prototype,"minutesChangedForBinding",null);
_.W([_.gz("seconds"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],hp.prototype,"secondsChangedForBinding",null);_.W([_.wz({is:"yt-timestamp-input",disableElementRegistration:!0})],hp);
_.n(hp,"yt-timestamp-input",function(){if(iP5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;jZO===void 0&&(jZO=document.createElement("template"));var H=jZO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);iP5=N}N=iP5;return N},{mode:2});var M9=function(){return _.k.apply(this,arguments)||this};
_.p(M9,_.k);_.V=M9.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20863_scroller.dialogElement=this.hostElement.parentNode};
_.V.dataChanged=function(){var N=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.NU().getPlayerPromise().then(function(t){t=t.getCurrentTime();N.minutes=Math.floor(t/60).toString();N.seconds=(Math.floor(t)%60).toString()})};
_.V.onTapSubmit=function(N){N.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(N={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(N.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(N.minutes=this.minutes,N.seconds=this.seconds),_.cY().resolve(_.jo).resolveCommand(this.serviceEndpoint,{form:Object.assign({},N,{element:this.hostElement})}))};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.V.onYtServiceRequestCompleted=function(N,t){t=t.actions;if(Array.isArray(t))for(var O=0,H=t.length;O<H;O++)_.M(t[O],_.GL)&&(N.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(t[O]))};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.V.toggleSubmitButton=function(N){this.set("submitButton.isDisabled",!N)};
_.V.handleInput=function(){var N=this.issueType,t=this.affiliation,O=this.minutes,H=this.seconds;O=!this.showTimestamp||!!O&&!!H;this.toggleSubmitButton(!!this.descriptionText&&!!N&&!!t&&O)};
_.V.computeServiceEndpoint=function(N){return this.get("submitButton.buttonRenderer.serviceEndpoint",N)};
_.V.computeSubmitButton=function(N){(N=this.get("submitButton.buttonRenderer",N))&&(N=Object.assign({},N,{serviceEndpoint:void 0}));return N};
_.V.computeShowTimestamp=function(N){return!!N};
_.V.onValueChangedForIssueType=function(N){this.issueType=N.detail.value};
_.V.onValueChangedForAffiliation=function(N){this.affiliation=N.detail.value};
_.V.updateDescriptionTextFromBinding=function(N){this.descriptionText=N.detail.value};
_.V.updateFullNameTextFromBinding=function(N){this.fullNameText=N.detail.value};
_.V.updateMinutesFromBinding=function(N){this.minutes=N.detail.value};
_.V.updateSecondsFromBinding=function(N){this.seconds=N.detail.value};
M9.prototype.handleInput=M9.prototype.handleInput;M9.prototype.onYtServiceRequestError=M9.prototype.onYtServiceRequestError;M9.prototype.onYtServiceRequestCompleted=M9.prototype.onYtServiceRequestCompleted;M9.prototype.onYtServiceRequestSent=M9.prototype.onYtServiceRequestSent;M9.prototype.dataChanged=M9.prototype.dataChanged;_.W([_.Y(_.fD.YtOpenPopupBehavior),_.Q("design:type",Object)],M9.prototype,"ytOpenPopupBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.W([_.B2("#scroller"),_.Q("design:type",Object)],M9.prototype,"JSC$20863_scroller",void 0);_.W([_.B2("#description"),_.Q("design:type",HTMLInputElement)],M9.prototype,"description",void 0);_.W([_.B2("#full-name"),_.Q("design:type",Object)],M9.prototype,"fullName",void 0);_.W([_.X(),_.Q("design:type",Object)],M9.prototype,"data",void 0);
_.W([_.X({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Q("design:type",Boolean)],M9.prototype,"showTimestamp",void 0);_.W([_.X({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Q("design:type",Object)],M9.prototype,"serviceEndpoint",void 0);_.W([_.X({computed:"computeSubmitButton(data)"}),_.Q("design:type",Object)],M9.prototype,"submitButton",void 0);_.W([_.X(),_.Q("design:type",String)],M9.prototype,"descriptionText",void 0);
_.W([_.X(),_.Q("design:type",Number)],M9.prototype,"issueType",void 0);_.W([_.X(),_.Q("design:type",Number)],M9.prototype,"affiliation",void 0);_.W([_.X(),_.Q("design:type",String)],M9.prototype,"fullNameText",void 0);_.W([_.X(),_.Q("design:type",String)],M9.prototype,"minutes",void 0);_.W([_.X(),_.Q("design:type",String)],M9.prototype,"seconds",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M9.prototype,"dataChanged",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],M9.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],M9.prototype,"onYtServiceRequestCompleted",null);
_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],M9.prototype,"onYtServiceRequestError",null);_.W([_.gz("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],M9.prototype,"handleInput",null);_.W([_.en({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],M9);
_.n(M9,"ytd-legal-report-details-form-renderer",function(){if($Z5!==void 0)return $Z5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return $Z5=N},{mode:1});var uX5;var bG=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return N};
_.p(bG,_.k);bG.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
bG.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var N=this.formRenderer.getForm();N&&this.data.submitEndpoint&&(_.cY().resolve(_.jo).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},N,{element:this.hostElement})}),_.sl(this.hostElement,"yt-close-popup-action"))}};
bG.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.sl(this.hostElement,"yt-close-popup-action"))};
bG.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
bG.prototype.onPopupClosed=bG.prototype.onPopupClosed;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],bG.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],bG.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);
_.W([_.B2("yt-form-renderer"),_.Q("design:type",Object)],bG.prototype,"formRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],bG.prototype,"data",void 0);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bG.prototype,"onPopupClosed",null);_.W([_.en({is:"ytd-form-popup-content",disableElementRegistration:!0})],bG);
_.n(bG,"ytd-form-popup-content",function(){if(uX5!==void 0)return uX5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return uX5=N},{mode:1});var SVz;var py=function(){return _.k.apply(this,arguments)||this};
_.p(py,_.k);py.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
py.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
py.prototype.onPopupOpened=function(){_.or(this.hostElement,"yt-invalidate-popup-tabbables")};
py.prototype.onYtServiceRequestCompleted=function(N,t){t.data&&t.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.or(this.hostElement,"yt-invalidate-popup-tabbables"))};
py.prototype.onYtServiceRequestCompleted=py.prototype.onYtServiceRequestCompleted;py.prototype.onPopupOpened=py.prototype.onPopupOpened;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],py.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],py.prototype,"data",void 0);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],py.prototype,"onPopupOpened",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],py.prototype,"onYtServiceRequestCompleted",null);_.W([_.en({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],py);
_.n(py,"ytd-form-popup-renderer",function(){if(SVz!==void 0)return SVz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return SVz=N},{mode:1});var h11;var Ly=function(){var N=_.k.apply(this,arguments)||this;N.isLoading=!1;return N};
_.p(Ly,_.k);_.V=Ly.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Gbm(this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.isLoading=!0};
_.V.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.V.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.OK(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.V.closePopupHandler=function(){this.fireOnCloseActions()};
_.V.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var N=this.get("data.headerImage.thumbnails");N&&(N=_.s4(N,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+N+")")}};
_.V.onYtNavigate=function(N){(N=_.E3(N))&&N.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Ly.prototype.onYtNavigate=Ly.prototype.onYtNavigate;Ly.prototype.onHeaderImageChanged=Ly.prototype.onHeaderImageChanged;Ly.prototype.closePopupHandler=Ly.prototype.closePopupHandler;Ly.prototype.onYtServiceRequestCompleted=Ly.prototype.onYtServiceRequestCompleted;Ly.prototype.onYtServiceRequestSent=Ly.prototype.onYtServiceRequestSent;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],Ly.prototype,"ytEventForwardingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ly.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ly.prototype,"isLoading",void 0);_.W([_.B2("#header"),_.Q("design:type",HTMLDivElement)],Ly.prototype,"header",void 0);_.W([_.B2("#confirm-button"),_.Q("design:type",_.Rw)],Ly.prototype,"confirmButton",void 0);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ly.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ly.prototype,"onYtServiceRequestCompleted",null);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Ly.prototype,"closePopupHandler",null);_.W([_.gz("data.headerImage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ly.prototype,"onHeaderImageChanged",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ly.prototype,"onYtNavigate",null);
_.W([_.en({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Ly);
_.n(Ly,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(h11!==void 0)return h11;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return h11=N},{mode:1});var MUq;var ze=function(){var N=_.k.apply(this,arguments)||this;N.isLoading=!1;return N};
_.p(ze,_.k);_.V=ze.prototype;_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Gbm(this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.V.onYtServiceRequestError=function(N){_.I8(this.hostElement,N.detail.error.message)};
_.V.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.V.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.sl(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.V.onDataChanged=function(){this.isLoading=!1;var N=this.get("data.headerImage.thumbnails");N&&(N=_.s4(N,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+N+")");N=_.z8();var t=_.pv(),O=this.get("data.trackingParams");O&&t&&N&&_.qp(N,t,_.ib(O))};
_.cv.Object.defineProperties(ze.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
ze.prototype.onDataChanged=ze.prototype.onDataChanged;ze.prototype.onDomChange=ze.prototype.onDomChange;ze.prototype.onYtServiceRequestError=ze.prototype.onYtServiceRequestError;ze.prototype.onYtServiceRequestCompleted=ze.prototype.onYtServiceRequestCompleted;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ze.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],ze.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ze.prototype,"isLoading",void 0);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ze.prototype,"hasDescription",null);_.W([_.B2("tp-yt-paper-dialog-scrollable"),_.Q("design:type",Object)],ze.prototype,"scrollable",void 0);_.W([_.B2("#header"),_.Q("design:type",HTMLElement)],ze.prototype,"header",void 0);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ze.prototype,"onYtServiceRequestCompleted",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ze.prototype,"onYtServiceRequestError",null);
_.W([_.dz("dom-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ze.prototype,"onDomChange",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ze.prototype,"onDataChanged",null);_.W([_.en({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],ze);
_.n(ze,"ytd-gaming-account-link-setting-renderer",function(){if(MUq!==void 0)return MUq;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return MUq=N},{mode:1});var bP5;var ptr;var Ya=function(){var N=_.k.apply(this,arguments)||this;N.isHeader=!1;N.getEndpointForm=function(){return tWx(N.data)};
return N};
_.p(Ya,_.k);_.V=Ya.prototype;_.V.triggerHintActions=function(){var N=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var t=_.Np(N.hostElement,"yt-get-opened-popups-action");!(t&&t.length===1?t[0]:[]).some(function(O){O=O.openPopupAction.popupType;return O==="SURVEY"||O==="MEALBAR"||O==="HINT"})&&N.data.hintActions&&N.guideOpened&&(_.OK(N.hostElement,N.data.hintActions,N.hostElement),N.data.hintActions=void 0)})};
_.V.getBadgeIconType=function(N){return N&&N.liveBroadcasting?"live":null};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(N){if(this.data.serviceEndpoint){var t;_.h("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.M(this.data.serviceEndpoint,_.jc))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):NIO(this.data.serviceEndpoint,this);N.preventDefault()}else this.data.navigationEndpoint&&!_.RM(_.m1(N),this.hostElement,["A".toString()])&&_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.V.computeActive=function(N,t){if(!N)return!1;var O=N.navigationEndpoint;N=N.serviceEndpoint;if(!O&&!N||!t)return!1;if(O){N=(N=_.gY(t))&&["subscriptions","filteredsubscriptions"].includes(N);if(_.M(O,_.yE)&&_.M(t,_.yE)&&!N){var H=_.M(O,_.yE).browseId;t=_.M(t,_.yE).browseId;return H!==void 0&&t!==void 0&&(H===t||H==="VLWL"&&t==="FEwatch_later"||H==="FEwatch_later"&&t==="VLWL")}var A;O=(A=_.M(O.commandMetadata,_.Da))==null?void 0:A.url;t=(H=_.M(t.commandMetadata,_.Da))==null?void 0:H.url;return!(!O||
!t||O!==t&&O!==_.Yv(t))}return this.isActiveShortsTab(N,t)};
_.V.isActiveShortsTab=function(N,t){t=!!_.M(t,_.jc)||!!_.M(t,_.KY);return(!!_.M(N,_.jc)||!!_.M(N,_.KY))&&t};
_.V.computeIsPrimary=function(N){return!!N};
_.cv.Object.defineProperties(Ya.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&N)return N}}});
Ya.prototype.onTap=Ya.prototype.onTap;Ya.prototype.onUp=Ya.prototype.onUp;Ya.prototype.onDown=Ya.prototype.onDown;Ya.prototype.triggerHintActions=Ya.prototype.triggerHintActions;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Ya.prototype,"componentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ya.prototype,"rendererBehavior",void 0);_.W([_.Y(_.hP.YtTaskEmitterBehavior),_.Q("design:type",Object)],Ya.prototype,"taskEmitterBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Ya.prototype,"activeEndpoint",void 0);_.W([_.X(),_.Q("design:type",Object)],Ya.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Ya.prototype,"guideOpened",void 0);_.W([_.X(),_.Q("design:type",String)],Ya.prototype,"type",void 0);_.W([_.B2("yt-interaction"),_.Q("design:type",Object)],Ya.prototype,"interaction",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ya.prototype,"isHeader",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data","activeEndpoint"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ya.prototype,"active",null);_.W([_.X({reflectToAttribute:!0}),_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ya.prototype,"isPrimary",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.count","data.presentationStyle","data.badges.*"),_.Q("design:type",String),_.Q("design:paramtypes",[])],Ya.prototype,"lineEndStyle",null);
_.W([_.a("lineEndStyle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ya.prototype,"ariaLabel",null);_.W([_.gz("data.hintActions","guideOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ya.prototype,"triggerHintActions",null);_.W([_.dz("down"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ya.prototype,"onDown",null);
_.W([_.dz("up"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ya.prototype,"onUp",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Ya.prototype,"onTap",null);_.W([_.en({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Ya);
_.n(Ya,"ytd-guide-entry-renderer",function(){if(ptr!==void 0)return ptr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ptr=N},{mode:1});var aW=function(){var N=_.k.apply(this,arguments)||this;N.userToggled=!1;return N};
_.p(aW,_.k);_.V=aW.prototype;_.V.getItemsPath=function(){return"data.expandableItems"};
_.V.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.V.onExpanderItemTapped=function(N){var t=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.h("kevlar_guide_expandable_items_killswitch")&&_.yB(this,function(){_.Kb(t.expandableItems)});
N.preventDefault()};
_.V.onCollapserItemTapped=function(N){var t=this;this._setExpanded(!1);this.userToggled=!0;N.preventDefault();this.expandableItems&&!_.h("kevlar_guide_collapsible_items_killswitch")&&_.yB(this,function(){_.Cb(t.hostElement)})};
_.V.observeActiveEndpoint=function(){for(var N=this.activeEndpoint,t=this.data,O=this.expandableItems.children,H=0,A=O.length;H<A;H++)O[H].activeEndpoint=N;t&&t.autoExpandCommand&&N&&!this.userToggled&&(O=this.data.autoExpandCommand,t=!(!_.M(O,_.yE)||!_.M(N,_.yE)||_.M(O,_.yE).browseId!==_.M(N,_.yE).browseId),N=this.get("commandMetadata.webCommandMetadata.url",N),O=this.get("commandMetadata.webCommandMetadata.url",O),t=t||!!(N&&O&&N.includes(O)),this._setExpanded(t),t&&this.ytLazyListBehavior.fillRemainingListItems())};
aW.prototype.observeActiveEndpoint=aW.prototype.observeActiveEndpoint;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],aW.prototype,"ytLazyListBehavior",void 0);_.W([_.B2("#expandable-items"),_.Q("design:type",HTMLElement)],aW.prototype,"expandableItems",void 0);
_.W([_.X(),_.Q("design:type",Object)],aW.prototype,"data",void 0);_.W([_.X({readOnly:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],aW.prototype,"expanded",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],aW.prototype,"initialCount",void 0);_.W([_.X(),_.Q("design:type",Object)],aW.prototype,"activeEndpoint",void 0);_.W([_.gz("data","activeEndpoint","canShowMore"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aW.prototype,"observeActiveEndpoint",null);
_.W([_.en({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],aW);
_.n(aW,"ytd-guide-collapsible-entry-renderer",function(){if(bP5!==void 0)return bP5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return bP5=N},{mode:_.O4("kevlar_poly_si_batch_j079")?1:2});var Lo5;var z1n;var Te=function(){var N=_.k.apply(this,arguments)||this;N.allVideosCount=0;N.renderGuideEntry=!1;return N};
_.p(Te,_.k);Te.prototype.observeRenderEntry=function(){var N;this.renderGuideEntry=!((N=this.data)==null||!N.alwaysShow)||!!this.allVideosCount};
Te.prototype.observeRenderEntry=Te.prototype.observeRenderEntry;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Te.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Te.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Te.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Te.prototype,"activeEndpoint",void 0);_.W([_.X({selector:_.xFQ}),_.Q("design:type",Object)],Te.prototype,"allVideosCount",void 0);
_.W([_.X(),_.Q("design:type",Object)],Te.prototype,"renderGuideEntry",void 0);_.W([_.ic("allVideosCount","data.alwaysShow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Te.prototype,"observeRenderEntry",null);_.W([_.en({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Te);
_.n(Te,"ytd-guide-downloads-entry-renderer",function(){if(z1n===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);z1n=N}N=z1n;return N},{mode:1});var wh=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return N};
_.p(wh,_.k);_.V=wh.prototype;_.V.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.V.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var N=this.sectionItems.children,t=0,O=N.length;t<O;t++)N[t].activeEndpoint=this.activeEndpoint}};
_.V.handleAddToGuideSectionAction=function(N){var t=_.M(N,F$1);if(t&&this.data&&(N=t.items,t=t.handlerData,N&&t&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(t)>-1)){t=0;for(var O=N.length;t<O;t++)N[t].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,N[t])}};
_.V.handleRemoveFromGuideSectionAction=function(N){var t=_.M(N,d71);t&&this.data&&(N=t.guideEntryId,t=t.handlerData,N&&t&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(t)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(N,this.data.sectionItems),this.removeFromCollapsedSection(N,this.data.sectionItems)))};
_.V.removeFromExpandedSection=function(N,t){N=this.getEntryIndexMatchingId(N,t);N!==-1&&this.splice("data.sectionItems",N,1)};
_.V.removeFromCollapsedSection=function(N,t){var O=t.findIndex(function(H){return!!_.M(H,HAn)});
O&&O!==-1&&t[O]&&_.M(t[O],HAn)&&(t=_.M(t[O],HAn).expandableItems)&&(N=this.getEntryIndexMatchingId(N,t),N!==-1&&this.splice("data.sectionItems."+O+".guideCollapsibleEntryRenderer.expandableItems",N,1))};
_.V.getEntryIndexMatchingId=function(N,t){var O=this;return t.findIndex(function(H){return O.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===N})};
wh.prototype.activeEndpointChanged=wh.prototype.activeEndpointChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],wh.prototype,"actionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("#section-items"),_.Q("design:type",HTMLDivElement)],wh.prototype,"sectionItems",void 0);
_.W([_.B2("#header-entry"),_.Q("design:type",Object)],wh.prototype,"headerEntry",void 0);_.W([_.X(),_.Q("design:type",Object)],wh.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],wh.prototype,"activeEndpoint",void 0);_.W([_.gz("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wh.prototype,"activeEndpointChanged",null);_.W([_.en({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],wh);
_.n(wh,"ytd-guide-collapsible-section-entry-renderer",function(){if(Lo5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);Lo5=N}N=Lo5;return N},{mode:1});var YV5;var a2r;var eP=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return N};
_.p(eP,_.k);_.V=eP.prototype;
_.V.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.V.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var N=_.Np(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);N&&N.length===1&&N[0]&&_.Np(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.V.handleResetChannelUnreadCountCommand=function(N){var t;(N=(t=_.M(N,y6m))==null?void 0:t.channelId)&&this.data&&this.data.items&&(t=this.getPathToEntryMatchingId(N))&&(this.set(t+".guideEntryRenderer.count",0),this.set(t+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.handleResetSubscriptionsUnreadDotCommand=function(N){var t,O=(t=_.M(N,BMm))==null?void 0:t.targetId,H;O&&(H=this.data)!=null&&H.items&&(N=this.data.items.findIndex(function(A){var Z;return((Z=A.guideEntryRenderer)==null?void 0:Z.targetId)===O}),N<0||this.set("data.items."+N+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.V.getPathToEntryMatchingId=function(N){if(this.data&&this.data.items){var t=this.getEntryIndexMatchingId(N,this.data.items);if(t>-1)return"data.items."+t;for(var O=0;O<this.data.items.length;O++)if(t=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[O]))if(t=this.getEntryIndexMatchingId(N,t),t>-1)return"data.items."+O+".guideCollapsibleEntryRenderer.expandableItems."+t}};
_.V.handleAddToGuideSectionAction=function(N){var t=this;if(_.M(N,F$1)){var O=_.M(N,F$1).items;N=_.M(N,F$1).handlerData;var H,A;if(O&&N&&((H=this.data)==null?void 0:(A=H.handlerDatas)==null?void 0:A.indexOf(N))>-1){O=O.filter(function(U){return(U=t.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",U))&&!t.isGuideItemPresent(U)});
var Z;if(N==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((Z=this.data)==null?0:Z.items)&&(H=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),H>-1)){this.splice.apply(this,["data.items",H+1,0].concat(_.W6(O)));return}this.unshift.apply(this,["data.items"].concat(_.W6(O)))}}};
_.V.isGuideItemPresent=function(N){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(N,this.data.items)!==-1)return!0;var t=this.data.items.find(function(O){return!!O.guideCollapsibleEntryRenderer});
if((t==null?0:t.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(N,t.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.V.getEntryIndexMatchingId=function(N,t){var O=this;return t.findIndex(function(H){return O.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===N})};
_.V.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(N,t){var O=this;return t.findIndex(function(H){return O.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",H)===N})};
_.V.handleRemoveFromGuideSectionAction=function(N){if(_.M(N,d71)){var t=_.M(N,d71).guideEntryId;N=_.M(N,d71).handlerData;var O,H;t&&N&&((O=this.data)==null?void 0:(H=O.handlerDatas)==null?void 0:H.indexOf(N))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(t,this.data.items),this.removeFromCollapsedSection(t,this.data.items))}};
_.V.removeFromExpandedSection=function(N,t){N=this.getEntryIndexMatchingId(N,t);N!==-1&&this.splice("data.items",N,1)};
_.V.removeFromCollapsedSection=function(N,t){var O=t.findIndex(function(H){return!!H.guideCollapsibleEntryRenderer});
O!==-1&&(t=t[O].guideCollapsibleEntryRenderer.expandableItems)&&(N=this.getEntryIndexMatchingId(N,t),N!==-1&&this.splice("data.items."+O+".guideCollapsibleEntryRenderer.expandableItems",N,1))};
_.V.activeEndpointChanged=function(){for(var N=_.O6(this.hostElement).querySelector("#items").children,t=0,O=N.length;t<O;t++)N[t].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.V.guideOpenedChanged=function(){for(var N=_.O6(this.hostElement).querySelector("#items").children,t=0,O=N.length;t<O;t++)N[t].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
eP.prototype.guideOpenedChanged=eP.prototype.guideOpenedChanged;eP.prototype.activeEndpointChanged=eP.prototype.activeEndpointChanged;eP.prototype.persistentGuideChanged=eP.prototype.persistentGuideChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],eP.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],eP.prototype,"ytLazyListBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],eP.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],eP.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],eP.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",String)],eP.prototype,"type",void 0);_.W([_.X({value:20}),_.Q("design:type",Number)],eP.prototype,"initialCount",void 0);_.W([_.X({value:10}),_.Q("design:type",Number)],eP.prototype,"targetFramerate",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],eP.prototype,"autoFill",void 0);_.W([_.X({value:50}),_.Q("design:type",Number)],eP.prototype,"renderDelay",void 0);
_.W([_.gz("guidePersistentAndVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eP.prototype,"persistentGuideChanged",null);_.W([_.ic("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eP.prototype,"activeEndpointChanged",null);_.W([_.ic("guideOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],eP.prototype,"guideOpenedChanged",null);
_.W([_.en({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],eP);
_.n(eP,"ytd-guide-section-renderer",function(){if(a2r!==void 0)return a2r;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return a2r=N},{mode:_.O4("kevlar_poly_si_batch_j073")?1:2});var Tsn;var Pr=function(){return _.k.apply(this,arguments)||this};
_.p(Pr,_.k);_.cv.Object.defineProperties(Pr.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Pr.prototype,"rendererBehaviors",void 0);_.W([_.X(),_.Q("design:type",Object)],Pr.prototype,"data",void 0);_.W([_.X(),_.a("data.signInButton.buttonRenderer.style"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Pr.prototype,"alignByText",null);_.W([_.en({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Pr);
_.n(Pr,"ytd-guide-signin-promo-renderer",function(){if(Tsn===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);Tsn=N}N=Tsn;return N},{mode:1});var X2=function(){var N=_.k.apply(this,arguments)||this;N.showFooter=!1;return N};
_.p(X2,_.k);X2.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}}}}};
X2.prototype.attached=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1){t=_.cY().resolve(_.BY(_.g4));if(!t)return O.jumpTo(0);t.setGuideData(N.hostElement);return O.yield(0,3)}N.ytLazyListBehavior.initialCount=2;return O.return()})};
X2.prototype.onMouseExit=function(){_.h("web_guide_hover_expansion")&&_.Np(this.hostElement,"yt-guide-mouseleaved",[])};
X2.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
X2.prototype.dataChanged=X2.prototype.dataChanged;X2.prototype.onMouseExit=X2.prototype.onMouseExit;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],X2.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Yt.YtLazyListBehavior),_.Q("design:type",Object)],X2.prototype,"ytLazyListBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],X2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],X2.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],X2.prototype,"showFooter",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],X2.prototype,"autoFill",void 0);_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X2.prototype,"onMouseExit",null);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],X2.prototype,"dataChanged",null);_.W([_.en({is:"ytd-guide-renderer",disableElementRegistration:!0})],X2);
_.n(X2,"ytd-guide-renderer",function(){if(YV5!==void 0)return YV5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return YV5=N},{mode:_.O4("kevlar_poly_si_batch_j073")?1:2});var wt5;var xa=function(){var N=_.k.apply(this,arguments)||this;N.systemIcons=_.h("kevlar_system_icons");N.frostedGlass=_.h("web_frosted_glass");N.onAllyMenuButtonClick=function(){var t=N.getShowSheetCommand();t&&N.ytComponentBehavior.resolveCommand(t)};
N.getEndpointForm=function(){return tWx(N.data)};
return N};
_.p(xa,_.k);_.V=xa.prototype;_.V.attached=function(){this.JSC$20916_sheetController=_.cY().resolve(_.HD)};
_.V.onDown=function(){this.interaction.triggerDown()};
_.V.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var N;if((N=this.JSC$20916_sheetController)!=null){var t=this.mouseEnterCallback.bind(this),O=this.mouseLeaveCallback.bind(this);N.hoverEnterCallback=t!=null?t:void 0;N.hoverLeaveCallback=O!=null?O:void 0}}};
_.V.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.V.isSeedlessReelCommand=function(N){var t;return!!N&&((t=_.M(N,_.jc))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.V.isShowSheetCommand=function(N){return!!N&&!!_.M(N,_.Sp)};
_.V.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.V.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.V.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.V.onUp=function(){this.interaction.triggerUp()};
_.V.onTap=function(N){if(this.data.serviceEndpoint){if(_.h("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);N.preventDefault();return}NIO(this.data.serviceEndpoint,this)}N.preventDefault()}else{var t;((t=this.data)==null?0:t.navigationEndpoint)&&!_.RM(_.m1(N),
this.hostElement,["A".toString()])&&_.or(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.V.computeActive=function(N,t){if(!N)return!1;var O=N.navigationEndpoint;N=N.serviceEndpoint;if(!O&&!N||!t)return!1;if(O){N=_.M(O,_.yE);var H=_.M(t,_.yE);if(N&&H)return N.browseId===H.browseId&&N.params===H.params;var A;O=(A=_.M(O.commandMetadata,_.Da))==null?void 0:A.url;var Z;t=(Z=_.M(t.commandMetadata,_.Da))==null?void 0:Z.url;return!(!O||!t||O!==t&&O!==_.Yv(t))}return this.isActiveShortsTab(N,t)};
_.V.isActiveShortsTab=function(N,t){t=!!_.M(t,_.jc)||!!_.M(t,_.KY);return(!!_.M(N,_.jc)||!!_.M(N,_.KY))&&t};
_.V.computeTitle=function(N,t){return t?"":_.Gv(N)};
_.V.computeEndpoint=function(N){return this.isSeedlessReelCommand(N.serviceEndpoint)?N.serviceEndpoint:N.navigationEndpoint};
_.V.computeAriaLabelTitle=function(N){return _.Gv(N)};
_.V.computeAllyShowMenuOnTap=function(N){return this.isShowSheetCommand(N.mouseEnterEndpoint)||this.isShowSheetCommand(N.serviceEndpoint)};
_.cv.Object.defineProperties(xa.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
xa.prototype.onMouseLeave=xa.prototype.onMouseLeave;xa.prototype.onMouseEnter=xa.prototype.onMouseEnter;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],xa.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.sb),_.Q("design:type",Object)],xa.prototype,"ironButtonState",void 0);_.W([_.X(),_.Q("design:type",Object)],xa.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],xa.prototype,"activeEndpoint",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],xa.prototype,"noLabels",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Q("design:type",Boolean)],xa.prototype,"isActive",void 0);_.W([_.X({computed:"computeEndpoint(data)"}),_.Q("design:type",Object)],xa.prototype,"computedEndpoint",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],xa.prototype,"systemIcons",void 0);_.W([_.B2("yt-interaction"),_.Q("design:type",Object)],xa.prototype,"interaction",void 0);_.W([_.a("isActive"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],xa.prototype,"ariaSelected",null);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],xa.prototype,"frostedGlass",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.Q("design:type",Boolean)],xa.prototype,"allyShowMenuOnTap",void 0);_.W([_.dz("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[MouseEvent]),_.Q("design:returntype")],xa.prototype,"onMouseEnter",null);_.W([_.dz("mouseleave"),_.Q("design:type",Function),_.Q("design:paramtypes",[MouseEvent]),_.Q("design:returntype")],xa.prototype,"onMouseLeave",null);
_.W([_.en({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],xa);
_.n(xa,"ytd-mini-guide-entry-renderer",function(){if(wt5!==void 0)return wt5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="0" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return wt5=N},{mode:_.O4("kevlar_poly_si_batch_j063")?1:2});var e11;var ka=function(){var N=_.k.apply(this,arguments)||this;N.allVideosCount=0;N.noLabels=_.h("kevlar_mini_guide_no_labels");N.frostedGlass=_.h("web_frosted_glass");return N};
_.p(ka,_.k);_.V=ka.prototype;_.V.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.V.onMouseEnter=function(){_.h("web_guide_hover_expansion")&&_.Np(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.V.visibleChanged=function(){if(this.visible&&!this.data){var N=_.cY().resolve(_.BY(_.g4));N&&N.setGuideData(this.hostElement)}};
_.V.dataChanged=function(){var N=_.h("kevlar_guide_menu_on_hover")&&_.h("kevlar_modern_mini_guide"),t=_.h("kevlar_guide_menu_on_click")&&_.h("kevlar_modern_mini_guide"),O;var H=(O=this.data)==null?void 0:O.items;O=this.allVideosCount;var A=[];N=N?0:t?1:void 0;t=N!==void 0;if(H){for(var Z=[],U=_.D(H),C=U.next();!C.done;C=U.next())if(C=C.value,C.guideSubscriptionsSectionRenderer){var F=void 0;Z=((F=C.guideSubscriptionsSectionRenderer)==null?void 0:F.items)||[]}H=_.D(H);for(U=H.next();!U.done;U=H.next())if(U=
U.value,C=void 0,(C=U.guideSectionRenderer)==null?0:C.items)for(C=void 0,U=_.D((C=U.guideSectionRenderer)==null?void 0:C.items),C=U.next();!C.done;C=U.next()){C=C.value;var g=void 0,B=void 0;F=C.guideEntryRenderer||_.M((g=C)==null?void 0:(B=g.guideCollapsibleSectionEntryRenderer)==null?void 0:B.headerEntry,OAO);g=[];B=[];var c=void 0;if(((c=F)==null?void 0:c.targetId)==="subscriptions-guide-item")g=Z;else{var u=c=void 0;if((c=C)==null?0:(u=c.guideCollapsibleSectionEntryRenderer)==null?0:u.sectionItems)B=
g=C.guideCollapsibleSectionEntryRenderer.sectionItems}ACJ(A,F,t?g:[],N);if(B.length>0)for(C=_.D(B),F=C.next();!F.done;F=C.next())F=F.value,B=_.M(F,BXn),g=void 0,B=B&&(B.alwaysShow||O)?_.M((g=B)==null?void 0:g.entryRenderer,OAO):_.M(F,OAO),ACJ(A,B,[])}}this.miniGuideItems=A};
_.V.activeEndpointChanged=function(){for(var N=this.items.children,t=0;t<N.length;t++)N[t].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.V.registerWithViewTransitionManager=function(){var N=this;_.WX(_.GB,function(){var t=_.cY().resolve(_.BY(_.NX));if(t&&t.isAnyTransitionEnabled){var O={};t.viewTransitionCoordinator.registerElement(N.hostElement,(O.slide="mini-guide-page-transition",O))}})};
ka.prototype.activeEndpointChanged=ka.prototype.activeEndpointChanged;ka.prototype.dataChanged=ka.prototype.dataChanged;ka.prototype.visibleChanged=ka.prototype.visibleChanged;ka.prototype.onMouseEnter=ka.prototype.onMouseEnter;_.W([_.Y(_.Ue),_.Q("design:type",Object)],ka.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],ka.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ka.prototype,"ytComponentBehavior",void 0);_.W([_.B2("#items"),_.Q("design:type",Object)],ka.prototype,"items",void 0);_.W([_.X(),_.Q("design:type",Object)],ka.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],ka.prototype,"visible",void 0);_.W([_.X(),_.Q("design:type",Object)],ka.prototype,"miniGuideItems",void 0);_.W([_.X({selector:_.xFQ}),_.Q("design:type",Object)],ka.prototype,"allVideosCount",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ka.prototype,"noLabels",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],ka.prototype,"frostedGlass",void 0);
_.W([_.dz("mouseenter"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ka.prototype,"onMouseEnter",null);_.W([_.ic("visible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ka.prototype,"visibleChanged",null);_.W([_.ic("data","allVideosCount"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ka.prototype,"dataChanged",null);
_.W([_.ic("activeEndpoint"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ka.prototype,"activeEndpointChanged",null);_.W([_.en({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],ka);
_.n(ka,"ytd-mini-guide-renderer",function(){if(e11===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);e11=N}N=e11;return N},{mode:1});var P65;var XtJ=/^[\x00-\x7F]+$/,q9=function(){return _.k.apply(this,arguments)||this};
_.p(q9,_.k);_.cv.Object.defineProperties(q9.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var N,t=_.Gv((N=this.data)==null?void 0:N.handle);if(t)return _.E_("@"+t)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var N=_.Gv(this.displayHandle),t,O=_.Gv((t=this.data)==null?void 0:t.handleUrl);if(N&&O)return _.E_(O+N)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var N=_.Gv(this.displayHandle);if(N&&!XtJ.test(N)){var t;return(t=this.data)==null?void 0:t.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var N=_.Gv(this.displayHandleUrl),t,O=_.Gv((t=this.data)==null?void 0:t.urlInfoText);if(N&&O)return _.E_(O+" "+N)}}});
_.W([_.X(),_.Q("design:type",Object)],q9.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],q9.prototype,"displayHandle",null);_.W([_.a("displayHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],q9.prototype,"displayHandleUrl",null);_.W([_.a("displayHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],q9.prototype,"warningText",null);
_.W([_.a("displayHandleUrl"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],q9.prototype,"urlInfoTextWithUrl",null);_.W([_.en({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],q9);
_.n(q9,"ytd-handles-claiming-confirm-dialog-content",function(){if(P65!==void 0)return P65;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return P65=N},{mode:1});var xZO;var fy=function(){var N=_.k.apply(this,arguments)||this;N.okButtonOverride={style:"mono",type:"outline",size:"M"};return N};
_.p(fy,_.k);fy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fy.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fy.prototype,"okButtonOverride",void 0);_.W([_.X(),_.Q("design:type",Object)],fy.prototype,"data",void 0);_.W([_.en({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],fy);
_.n(fy,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(xZO!==void 0)return xZO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return xZO=N},{mode:1});var kYO;var qVm=/^[\x00-\x7F]+$/,ny=function(){var N=_.k.apply(this,arguments)||this;N.isLoading=!1;return N};
_.p(ny,_.k);ny.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var N;this.selectedHandle=(N=this.handleInput)==null?void 0:N.value;this.onSelectedHandleChanged(this.selectedHandle);_.Np(this.hostElement,"yt-refit-popups-action")}};
_.cv.Object.defineProperties(ny.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var N;return(N=this.data)==null?void 0:N.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.E_("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.E_(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!qVm.test(this.selectedHandle)){var N;return(N=this.data)==null?void 0:N.warningText}}}});
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ny.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ny.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],ny.prototype,"selectedHandle",void 0);_.W([_.X(),_.Q("design:type",Object)],ny.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Function)],ny.prototype,"onSelectedHandleChanged",void 0);_.W([_.B2("#channel-handle-input"),_.Q("design:type",Object)],ny.prototype,"handleInput",void 0);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ny.prototype,"handleUrlPrefix",null);_.W([_.a("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ny.prototype,"displayHandle",null);_.W([_.a("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ny.prototype,"displayHandleUrl",null);_.W([_.a("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ny.prototype,"warningText",null);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.W([_.en({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],ny);
_.n(ny,"ytd-handles-claiming-edit-dialog-content",function(){if(kYO!==void 0)return kYO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return kYO=N},{mode:1});var f2O;var Wr=function(){var N=_.k.apply(this,arguments)||this;N.actionButtonOverride={style:"mono",type:"filled",size:"M"};N.cancelButtonOverride={style:"mono",type:"text",size:"M"};N.selectButtonDisabled=!1;N.isLoading=!1;N.hasSelectedHandleEventListener=!1;N.selectedHandleChanged=function(t){N.selectedHandle=t};
return N};
_.p(Wr,_.k);_.V=Wr.prototype;_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.V.onDataChanged=function(){var N,t;this.selectedHandle=(t=_.M((N=this.data)==null?void 0:N.inputField,V_r))==null?void 0:t.handle};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.selectedHandle="";_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var N=this;if(this.selectedHandle!==void 0){var t;((t=this.data)==null?void 0:t.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(O,H){if(H.newHandleUpdateStatus!==void 0&&H.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&H.newHandleUpdateStatus.errorMessage)_.I8(N.hostElement,_.Gv(H.newHandleUpdateStatus.errorMessage)),
N.isLoading=!1;else{var A;if((A=N.data)==null?0:A.onChannelUpdateSuccess){O=N.data.onChannelUpdateSuccess;var Z,U;if(H=(Z=_.M(O,_.GL))==null?void 0:(U=Z.popup)==null?void 0:U.handlesClaimingConfirmDialogRenderer)H.handle=_.E_(N.selectedHandle);N.ytComponentBehavior.resolveCommand(O);_.sl(N.hostElement,"yt-close-popup-action",[N.is])}else N.isLoading=!1}},
onServerError:function(){var O;N.content&&((O=N.content)==null?0:O.handleInput)&&N.content.handleInput.validate();N.isLoading=!1;_.I8(N.hostElement,_.CJ("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Wr.prototype.onDataChanged=Wr.prototype.onDataChanged;Wr.prototype.onSelectedHandleChanged=Wr.prototype.onSelectedHandleChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Wr.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Wr.prototype,"actionButtonOverride",void 0);_.W([_.X(),_.Q("design:type",Object)],Wr.prototype,"cancelButtonOverride",void 0);_.W([_.X(),_.Q("design:type",Object)],Wr.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",String)],Wr.prototype,"selectedHandle",void 0);_.W([_.X(),_.Q("design:type",Object)],Wr.prototype,"selectButtonDisabled",void 0);_.W([_.X(),_.Q("design:type",Object)],Wr.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Object)],Wr.prototype,"hasSelectedHandleEventListener",void 0);_.W([_.X(),_.Q("design:type",Object)],Wr.prototype,"handleInput",void 0);
_.W([_.gz("selectedHandle"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Wr.prototype,"onSelectedHandleChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Wr.prototype,"onDataChanged",null);_.W([_.B2("ytd-handles-claiming-edit-dialog-content"),_.Q("design:type",Object)],Wr.prototype,"content",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.W([_.en({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Wr);
_.n(Wr,"ytd-handles-claiming-edit-dialog-renderer",function(){if(f2O!==void 0)return f2O;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return f2O=N},{mode:1});var nd5;var rh=function(){return _.k.apply(this,arguments)||this};
_.p(rh,_.k);_.cv.Object.defineProperties(rh.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null?0:N.handle){var t;return _.E_("@"+_.Gv((t=this.data)==null?void 0:t.handle))}}}});
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rh.prototype,"formattedHandle",null);_.W([_.X(),_.Q("design:type",Object)],rh.prototype,"data",void 0);_.W([_.en({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],rh);
_.n(rh,"ytd-handles-claiming-radio-option-renderer",function(){if(nd5!==void 0)return nd5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return nd5=N},{mode:1});var Wof;var rtJ=/^[\x00-\x7F]+$/,IW=function(){var N=_.k.apply(this,arguments)||this;N.initialRadioIndex="-1";N.isLoading=!1;N.maybeSubmitFeedback=function(){N.feedbackSurveyRenderer.submitSurvey()};
return N};
_.p(IW,_.k);IW.prototype.updateSelectedHandleIndexFromBinding=function(N){this.selectedRadioIndex=+N.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(N)};
IW.prototype.selectedHandleChanged=function(N){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var t;this.selectedHandle=(t=this.handleInput)==null?void 0:t.value;this.onSelectedHandleChanged(N)}};
_.cv.Object.defineProperties(IW.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var N;return this.ytRendererBehavior.getSimpleString((N=this.data)==null?void 0:N.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.E_("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.E_(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!rtJ.test(this.selectedHandle)){var N;return(N=this.data)==null?void 0:N.warningText}}}});
_.W([_.X(),_.Q("design:type",Object)],IW.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],IW.prototype,"initialRadioIndex",void 0);_.W([_.X(),_.Q("design:type",Number)],IW.prototype,"selectedRadioIndex",void 0);_.W([_.X(),_.Q("design:type",String)],IW.prototype,"selectedHandle",void 0);_.W([_.X(),_.Q("design:type",Object)],IW.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Function)],IW.prototype,"onSelectedHandleChanged",void 0);
_.W([_.X(),_.Q("design:type",Function)],IW.prototype,"onSelectedRadioIndexChanged",void 0);_.W([_.B2("#channel-handle-input"),_.Q("design:type",Object)],IW.prototype,"handleInput",void 0);_.W([_.B2("ytd-feedback-survey-renderer"),_.Q("design:type",Object)],IW.prototype,"feedbackSurveyRenderer",void 0);_.W([_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],IW.prototype,"radioButtonLength",null);
_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],IW.prototype,"handleUrlPrefix",null);_.W([_.a("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],IW.prototype,"displayHandle",null);_.W([_.a("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],IW.prototype,"displayHandleUrl",null);_.W([_.a("selectedHandle"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],IW.prototype,"warningText",null);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.W([_.en({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],IW);
_.n(IW,"ytd-handles-claiming-select-dialog-content",function(){if(Wof!==void 0)return Wof;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Wof=N},{mode:1});var I2m;var lG=function(){var N=_.k.apply(this,arguments)||this;N.actionButtonOverride={style:"mono",type:"filled",size:"M"};N.cancelButtonOverride={style:"mono",type:"text",size:"M"};N.initialRadioIndex="-1";N.selectButtonDisabled=!1;N.isLoading=!1;N.selectedRadioIndexChanged=function(t){N.selectedRadioIndex=Number(t.detail.value)};
N.selectedHandleChanged=function(t){N.selectedHandle=t.detail.value};
return N};
_.p(lG,_.k);_.V=lG.prototype;_.V.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.V.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.V.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Np(this.hostElement,"yt-refit-popups-action")};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onSelectHandle=function(){var N=this;if(this.selectedHandle!==void 0){var t;((t=this.data)==null?void 0:t.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(O,H){if(H.newHandleUpdateStatus!==void 0&&H.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&H.newHandleUpdateStatus.errorMessage)_.I8(N.hostElement,_.Gv(H.newHandleUpdateStatus.errorMessage)),
N.isLoading=!1;else{var A;if((A=N.data)==null?0:A.onChannelUpdateSuccess){O=N.data.onChannelUpdateSuccess;H=_.M(O,_.GL);var Z;if(H==null?0:(Z=H.popup)==null?0:Z.handlesClaimingConfirmDialogRenderer)H.popup.handlesClaimingConfirmDialogRenderer.handle=_.E_(N.selectedHandle);N.ytComponentBehavior.resolveCommand(O);_.sl(N.hostElement,"yt-close-popup-action",[N.is])}else N.isLoading=!1}},
onServerError:function(){if(N.selectedRadioIndex===N.radioButtonLength){var O;N.content&&((O=N.content)==null?0:O.handleInput)&&N.content.handleInput.validate()}N.isLoading=!1;_.I8(N.hostElement,_.CJ("TRY_AGAIN_LATER"))}}}))}};
_.V.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var N,t;this.selectedHandle=(N=this.content)==null?void 0:(t=N.handleInput)==null?void 0:t.value}else this.selectedRadioIndex>=0&&((N=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(N==null?void 0:N.handle):this.selectedHandle=void 0)};
_.V.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.V.getRadioItem=function(N){if(this.radioButtonLength>N&&N>=0)return _.M(this.data.radioButton[N],Cs1)};
_.cv.Object.defineProperties(lG.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var N;return(((N=this.data)==null?void 0:N.radioButton)||[]).length}}});
lG.prototype.onSelectedHandleChanged=lG.prototype.onSelectedHandleChanged;lG.prototype.onSelectedHandleIndexChanged=lG.prototype.onSelectedHandleIndexChanged;lG.prototype.onDataChanged=lG.prototype.onDataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],lG.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],lG.prototype,"actionButtonOverride",void 0);_.W([_.X(),_.Q("design:type",Object)],lG.prototype,"cancelButtonOverride",void 0);
_.W([_.X(),_.Q("design:type",Object)],lG.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],lG.prototype,"initialRadioIndex",void 0);_.W([_.X(),_.Q("design:type",Number)],lG.prototype,"selectedRadioIndex",void 0);_.W([_.X(),_.Q("design:type",String)],lG.prototype,"selectedHandle",void 0);_.W([_.X(),_.Q("design:type",Object)],lG.prototype,"selectButtonDisabled",void 0);_.W([_.X(),_.Q("design:type",Object)],lG.prototype,"isLoading",void 0);
_.W([_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],lG.prototype,"radioButtonLength",null);_.W([_.B2("ytd-handles-claiming-select-dialog-content"),_.Q("design:type",Object)],lG.prototype,"content",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lG.prototype,"onDataChanged",null);
_.W([_.gz("selectedRadioIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lG.prototype,"onSelectedHandleIndexChanged",null);_.W([_.gz("selectedHandle"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lG.prototype,"onSelectedHandleChanged",null);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],lG.prototype,"ytRendererstamperBehavior",void 0);_.W([_.en({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],lG);
_.n(lG,"ytd-handles-claiming-select-dialog-renderer",function(){if(I2m!==void 0)return I2m;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return I2m=N},{mode:1});var l2O;var QZf;var QI=function(){return _.k.apply(this,arguments)||this};
_.p(QI,_.k);QI.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],QI.prototype,"data",void 0);_.W([_.en({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],QI);
_.n(QI,"ytd-hotkey-dialog-section-option-renderer",function(){if(QZf!==void 0)return QZf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return QZf=N},{mode:1});var mZ5;var m6=function(){return _.k.apply(this,arguments)||this};
_.p(m6,_.k);m6.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],m6.prototype,"data",void 0);_.W([_.en({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],m6);
_.n(m6,"ytd-hotkey-dialog-section-renderer",function(){if(mZ5!==void 0)return mZ5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return mZ5=N},{mode:1});var EQ=function(){return _.k.apply(this,arguments)||this};
_.p(EQ,_.k);EQ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],EQ.prototype,"data",void 0);_.W([_.en({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],EQ);
_.n(EQ,"ytd-hotkey-dialog-content",function(){if(l2O!==void 0)return l2O;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return l2O=N},{mode:1});var Edm;var Ge=function(){return _.k.apply(this,arguments)||this};
_.p(Ge,_.k);Ge.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var N=document.querySelector("ytd-hotkey-dialog-content #scrollable");N&&(N.dialogElement=this.hostElement.parentElement)};
Ge.prototype.onCloseTap=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ge.prototype,"data",void 0);_.W([_.en({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Ge);
_.n(Ge,"ytd-hotkey-dialog-renderer",function(){if(Edm!==void 0)return Edm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Edm=N},{mode:1});var GYz;var RW=function(){return _.k.apply(this,arguments)||this};
_.p(RW,_.k);RW.prototype.onYtServiceRequestError=function(){if(this.blocked){var N;var t=(N=this.data)==null?void 0:N.defaultServiceEndpoint}else{var O;t=(O=this.data)==null?void 0:O.toggledServiceEndpoint}var H;(t=(H=_.M(t,_.xSE))==null?void 0:H.onFailureAction)&&this.ytComponentBehavior.resolveCommand(t);this.updateBlockState(!this.blocked)};
RW.prototype.onYtToggleButton=function(N){this.updateBlockState(N.detail.toggled)};
RW.prototype.updateBlockState=function(N){if(N!==this.blocked){var t=this.blockedEntityKey;t&&this.ytdReduxBehavior.dispatch(_.uF("blockStateEntity",t,{key:t,blocked:N}));this.set("data.isToggled",N)}};
_.cv.Object.defineProperties(RW.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)}}});
RW.prototype.onYtToggleButton=RW.prototype.onYtToggleButton;RW.prototype.onYtServiceRequestError=RW.prototype.onYtServiceRequestError;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],RW.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],RW.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],RW.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],RW.prototype,"blockedEntityKey",void 0);
_.W([_.X({selectorArgs:["blockedEntityKey"],selector:function(N,t){return _.CM(N.entities,"blockStateEntity",t)}}),
_.Q("design:type",Object)],RW.prototype,"blockStateEntity",void 0);_.W([_.a("data","blockStateEntity"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],RW.prototype,"blocked",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],RW.prototype,"onYtServiceRequestError",null);
_.W([_.dz("yt-toggle-button"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],RW.prototype,"onYtToggleButton",null);_.W([_.en({is:"ytd-block-button",disableElementRegistration:!0})],RW);
_.n(RW,"ytd-block-button",function(){if(GYz!==void 0)return GYz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return GYz=N},
{mode:1});var R1m;var vd5;var vr=function(){return _.k.apply(this,arguments)||this};
_.p(vr,_.k);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],vr.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],vr.prototype,"data",void 0);_.W([_.en({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],vr);
_.n(vr,"ytd-kids-blocklist-picker-item-renderer",function(){if(vd5!==void 0)return vd5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return vd5=N},{mode:1});var Jp=function(){return _.k.apply(this,arguments)||this};
_.p(Jp,_.k);Jp.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Jp.prototype,"data",void 0);_.W([_.en({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Jp);
_.n(Jp,"ytd-kids-blocklist-picker-content",function(){if(R1m!==void 0)return R1m;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return R1m=
N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var JtO;var oW=function(){var N=_.k.apply(this,arguments)||this;N.hasAnyRequestSucceeded=!1;N.hasAnyRequestFailed=!1;N.numPendingRequests=0;return N};
_.p(oW,_.k);_.V=oW.prototype;_.V.attached=function(){this.hostElement.setAttribute("dialog","")};
_.V.onDoneButtonTap=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.V.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.V.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.V.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.V.onPopupClosed=function(N){var t,O;if(((t=N.detail)==null?void 0:(O=t.popup)==null?void 0:O.is)==="tp-yt-paper-dialog"){var H;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((H=this.data)==null?0:H.successfulToastActionMessage)&&(N=_.oJ(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(N));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
oW.prototype.onPopupClosed=oW.prototype.onPopupClosed;oW.prototype.onYtServiceRequestError=oW.prototype.onYtServiceRequestError;oW.prototype.onYtServiceRequestCompleted=oW.prototype.onYtServiceRequestCompleted;oW.prototype.onYtServiceRequestSent=oW.prototype.onYtServiceRequestSent;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],oW.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],oW.prototype,"data",void 0);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oW.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oW.prototype,"onYtServiceRequestCompleted",null);
_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],oW.prototype,"onYtServiceRequestError",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],oW.prototype,"onPopupClosed",null);_.W([_.en({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],oW);
_.n(oW,"ytd-kids-blocklist-picker-renderer",function(){if(JtO!==void 0)return JtO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return JtO=N},{mode:1});var odm;var sZ1;var sQ=function(){return _.k.apply(this,arguments)||this};
_.p(sQ,_.k);sQ.prototype.setTip=function(N){var t=this;this.data&&(this.tip=kXm(Xh5.getInstance(),N,this.data),_.yB(this,function(){_.or(t.hostElement,"yt-refit")}))};
sQ.prototype.clearTip=function(){this.tip=void 0};
sQ.prototype.computeHidden=function(N){return!N};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],sQ.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Q("design:type",Boolean)],sQ.prototype,"hidden",void 0);_.W([_.X(),_.Q("design:type",Object)],sQ.prototype,"tip",void 0);_.W([_.en({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],sQ);
_.n(sQ,"ytd-menu-popup-tip-renderer",function(){if(sZ1!==void 0)return sZ1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);
return sZ1=N},{mode:1});var NUJ;var Ni=function(){var N=_.k.apply(this,arguments)||this;N.useIcons=!1;N.systemIcons=_.h("kevlar_system_icons");return N};
_.p(Ni,_.k);_.V=Ni.prototype;_.V.onFocus=function(){var N;(N=_.O6(this.hostElement).querySelector("tp-yt-paper-item"))==null||N.focus()};
_.V.onTap=function(){var N=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(N&&_.M(N,_.Ab))this.componentBehavior.resolveCommand(N),this.updateToggledStateInEntity();else if(N){this.componentBehavior.resolveCommand(N)||_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}});var t;((t=_.M(N,_.VZ))==null?void 0:t.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.V.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.V.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.V.updateToggledStateInEntity=function(){var N=this.data.toggleMenuServiceItemEntityKey,t=!this.data.isToggled;N&&this.ytdReduxBehavior.dispatch(_.uF("toggleMenuServiceItemEntity",N,{key:N,isToggled:t}))};
_.V.computeIcon=function(N,t,O){return(N=N?O:t)&&N.iconType?_.Vt(N.iconType):""};
_.V.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.V.isIconActive=function(N){return!_.h("toggle_menu_active_icon_killswitch")&&N};
_.cv.Object.defineProperties(Ni.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.data)==null?0:N.isToggled)?(t=this.data)==null?void 0:t.toggledText:(O=this.data)==null?void 0:O.defaultText}}});
Ni.prototype.toggledStateEntityChanged=Ni.prototype.toggledStateEntityChanged;Ni.prototype.onYtServiceRequestCompleted=Ni.prototype.onYtServiceRequestCompleted;Ni.prototype.onTap=Ni.prototype.onTap;Ni.prototype.onFocus=Ni.prototype.onFocus;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Ni.prototype,"componentBehavior",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],Ni.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ni.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ni.prototype,"useIcons",void 0);_.W([_.X({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Q("design:type",String)],Ni.prototype,"icon",void 0);
_.W([_.X({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.so.toggleMenuServiceItemEntitySelector}),_.Q("design:type",Object)],Ni.prototype,"toggleMenuServiceItemEntity",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ni.prototype,"systemIcons",void 0);_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ni.prototype,"onFocus",null);
_.W([_.a("data.isToggled"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ni.prototype,"toggleButtonText",null);_.W([_.dz("tap"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ni.prototype,"onTap",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ni.prototype,"onYtServiceRequestCompleted",null);
_.W([_.gz("toggleMenuServiceItemEntity.isToggled","data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ni.prototype,"toggledStateEntityChanged",null);_.W([_.en({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Ni);
_.n(Ni,"ytd-toggle-menu-service-item-renderer",function(){if(NUJ!==void 0)return NUJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return NUJ=N},{mode:1});var tXJ;var tM=function(){return _.k.apply(this,arguments)||this};
_.p(tM,_.k);tM.prototype.onFocus=function(){var N;(N=_.O6(this.hostElement).querySelector("tp-yt-paper-item"))==null||N.focus()};
_.cv.Object.defineProperties(tM.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Id(this.data.iconUrl)}}});
tM.prototype.onFocus=tM.prototype.onFocus;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],tM.prototype,"rendererBehavior",void 0);_.W([_.Y(_.nD.YtEndpointBehavior),_.Q("design:type",Object)],tM.prototype,"ytEndpointBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],tM.prototype,"data",void 0);_.W([_.dz("focus"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],tM.prototype,"onFocus",null);
_.W([_.a("data.iconUrl"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],tM.prototype,"imageSource",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],tM);
_.n(tM,"ytd-menu-custom-icon-item-renderer",function(){if(tXJ!==void 0)return tXJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return tXJ=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});_.o_(_.$P,"yt-list-item-view-model",{props:{data:_.$O,isMenuItem:_.$O,isCompact:_.$O,onTap:_.R_,trailingAccessory:_.R_,hideSelectionTextChevron:_.$O,disabled:_.$O,inPopup:_.$O,disableHorizontalPadding:_.$O,isOverlay:_.$O,isToggled:_.$O,ariaLabel:_.$O,ariaPressed:_.$O,shouldNotFillIcon:_.$O}});var Oz=function(){var N=_.k.apply(this,arguments)||this;N.disableBackdropFilter=_.h("web_disable_backdrop_filter");return N};
_.p(Oz,_.k);_.V=Oz.prototype;
_.V.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.V.computeAriaLabel=function(N){return N};
_.V.onPopupOpened=function(){this.items.selected=0;for(var N=_.D(_.O6(this.items).children),t=N.next();!t.done;t=N.next())t.value.popupPositionTarget=this.positionTarget;if(N=this.popupTip||void 0)N.setTip(this.source||""),this.source=void 0;this.veData&&(N=_.z8())&&_.Wc(N,[this.veData])};
_.V.onPopupClosed=function(){var N=this.popupTip||void 0;N&&N.clearTip()};
_.V.onIronActivate=function(N){this.shouldPersist(N)||_.sl(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(N=_.z8())&&_.IX(N,this.veData)};
_.V.shouldPersist=function(N){var t,O;if(((t=N.detail)==null?void 0:t.selected)===void 0||(O=this.data)==null||!O.items)return!1;var H,A;return!((A=(H=this.data.items[N.detail.selected])==null?void 0:H.toggleMenuServiceItemRenderer)==null||!A.persistentOnMenuPopup)};
_.V.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(N){return N.menuNavigationItemRenderer?!!N.menuNavigationItemRenderer.icon:N.menuServiceItemRenderer?!!N.menuServiceItemRenderer.icon:N.menuConditionalServiceItemRenderer?!!N.menuConditionalServiceItemRenderer.icon:N.menuConditionalNavigationItemRenderer?!!N.menuConditionalNavigationItemRenderer.icon:N.toggleMenuServiceItemRenderer?!!N.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Oz.prototype.onPopupClosed=Oz.prototype.onPopupClosed;Oz.prototype.onPopupOpened=Oz.prototype.onPopupOpened;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],Oz.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Oz.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Oz.prototype,"veData",void 0);_.W([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Q("design:type",String)],Oz.prototype,"ariaLabel",void 0);_.W([_.X({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Oz.prototype,"useIcons",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Oz.prototype,"disableBackdropFilter",void 0);_.W([_.B2("#items"),_.Q("design:type",Object)],Oz.prototype,"items",void 0);_.W([_.B2("ytd-menu-popup-tip-renderer"),_.Q("design:type",Object)],Oz.prototype,"popupTip",void 0);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Oz.prototype,"onPopupOpened",null);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Oz.prototype,"onPopupClosed",null);_.W([_.en({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Oz);
_.n(Oz,"ytd-menu-popup-renderer",function(){if(odm!==void 0)return odm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return odm=N},{mode:1});var Oan;var Ha1=_.q(function(N){N=_.RH(N,{icon:void 0});var t=N.data;N=N.icon;var O=function(){return t().iconBadgeText},H={},A=_.V7("yt-spec-icon-badge-shape",function(){a:switch(t().iconBadgeType){case "notification":var Z="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":Z="yt-spec-icon-badge-shape--type-cart";break a;default:Z=""}return Z},function(){a:switch(t().iconBadgeStyle){case "overlay":var Z="yt-spec-icon-badge-shape--style-overlay";
break a;default:Z=""}return Z},(H["yt-spec-icon-badge-shape--text-size-small"]=function(){var Z=O();
return!!((Z==null?0:Z.length)&&Z.length>2)},H));
return _.d("yt-icon-badge-shape",null,_.d(_.y,{cond:N,then:function(Z){return _.d("div",{class:A},_.d("div",{class:"yt-spec-icon-badge-shape__icon"},_.d(_.dq,{icon:Z})),_.d(_.y,{cond:O,then:function(U){return _.d("div",{class:"yt-spec-icon-badge-shape__badge"},U)}}))}}))},"wj");
Ha1.idomCompat=!0;_.o_(Ha1,"yt-icon-badge-shape",{props:{data:_.$O,icon:_.$O}});var Hp=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};N.unseenCount=0;N.isOverlay=!1;return N};
_.p(Hp,_.k);_.V=Hp.prototype;_.V.attached=function(){var N=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(t){N.onServiceWorkerMessage(t)})};
_.V.onDataChanged=function(){this.isAttached&&!this.JSC$21003_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$21003_lastData=this.data};
_.V.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.computeIcon=function(){var N,t;return(N=this.data)==null?void 0:(t=N.icon)==null?void 0:t.iconType};
_.V.onServiceWorkerMessage=function(N){N.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.V.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.M(this.data.updateUnseenCountEndpoint,_.VZ)&&_.M(this.data.updateUnseenCountEndpoint,_.VZ).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.V.handleUpdateNotificationsUnseenCountAction=function(N){var t=this;N=_.M(N,gpx);N!=null&&N.unseenCount&&N.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(N.unseenCount),_.GB.addLowPriorityJob(function(){t.data.updateUnseenCountEndpoint&&t.ytComponentBehavior.resolveCommand(t.data.updateUnseenCountEndpoint)},N.timeoutMs))};
_.V.onClick=function(){_.or(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var N=_.Np(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),t=this.data.menuRequest;N&&N.length===1&&N[0]?_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):t&&this.ytComponentBehavior.resolveCommand(t)};
_.V.handleTopbarMenuClosedAction=function(N){N==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.V.toggleIconState=function(N){this.iconButton&&(this.iconButton.pressed=N)};
_.V.sendUnseenCountRequest=function(N){var t=this;_.WX(_.GB,function(){t.ytComponentBehavior.resolveCommand(N)})};
_.V.updateCountUI=function(N){this.set("unseenCount",N<9?N:"9+")};
_.cv.Object.defineProperties(Hp.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Hp.prototype.handleUpdateNotificationsUnseenCountAction=Hp.prototype.handleUpdateNotificationsUnseenCountAction;Hp.prototype.onDataChanged=Hp.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Hp.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LX),_.Q("design:type",Object)],Hp.prototype,"ytdOpenPopupBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Hp.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Hp.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Hp.prototype,"unseenCount",void 0);_.W([_.X(),_.Q("design:type",Object)],Hp.prototype,"isOverlay",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],Hp.prototype,"showTooltips",void 0);_.W([_.B2("yt-icon-button"),_.Q("design:type",Object)],Hp.prototype,"iconButton",void 0);
_.W([_.a("unseenCount"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Hp.prototype,"showNotificationCount",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Hp.prototype,"onDataChanged",null);_.W([_.dz("yt-update-notifications-unseen-count-action"),_.Q("design:type",Function),_.Q("design:paramtypes",[Object]),_.Q("design:returntype")],Hp.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.W([_.en({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Hp);
_.n(Hp,"ytd-notification-topbar-button-renderer",function(){if(Oan!==void 0)return Oan;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Oan=N},{mode:_.O4("kevlar_poly_si_batch_j025")?1:2});var AUr;var AM=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return N};
_.p(AM,_.k);AM.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}}}}}};
AM.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
AM.prototype.onDarkModeToggled=function(N){this.dark=N};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],AM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],AM.prototype,"data",void 0);_.W([_.X({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],AM.prototype,"dark",void 0);
_.W([_.en({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],AM);
_.n(AM,"yt-pdg-buy-flow-header-renderer",function(){if(AUr!==void 0)return AUr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return AUr=N},{mode:1});var Zai;var VXr;var Zs=function(){var N=_.k.apply(this,arguments)||this;N.immediateValue=0;N.isDarkTheme=!1;N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(Zs,_.k);_.V=Zs.prototype;_.V.created=function(){_.Uk.requestAvailability()};
_.V.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.V.dataChanged=function(){var N=_.O6(this.hostElement).querySelector("#color-slider");N.immediateValue&&this.updateSliderKnobAndGradientStyles(N.immediateValue);this.data.notches[0].knobColorArgb&&_.CO(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.TV(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Ro("HTML_DIR")==="rtl"&&_.O6(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.V.onSliderImmediateChange=function(){var N=_.O6(this.hostElement).querySelector("#color-slider");N.dragging&&(N.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(N.immediateValue),this.updateSliderKnobAndGradientStyles(N.immediateValue)),this.updateSliderAria())};
_.V.onSliderChange=function(){var N=_.O6(this.hostElement).querySelector("#color-slider");N.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(N.immediateValue),this.updateSliderKnobAndGradientStyles(N.immediateValue));this.updateSliderAria()};
_.V.updateSliderAria=function(){var N=_.O6(this.hostElement).querySelector("#color-slider"),t=_.O6(this.hostElement).querySelector("#color-slider");t=_.Gv(this.data.notches[t.immediateValue].tierValue);_.jlN()&&_.or(this.hostElement,"iron-announce",{text:t});N.setAttribute("aria-valuetext",t)};
_.V.updateSuperThanksSelectedTierEntity=function(N){if(N!==this.immediateValue){var t,O,H=this==null?void 0:(t=this.data)==null?void 0:(O=t.superThanksSelectedTierEntity)==null?void 0:O.key;H&&H.length>0&&this.ytdReduxBehavior.dispatch(_.uF("superThanksSelectedTierEntity",H,{key:H,index:N}))}};
_.V.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.V.updateSliderKnobAndGradientStyles=function(N){this.immediateValue=N;N=this.data.notches[N];if(N==null?0:N.knobColorArgb)var t={"--ytd-pdg-color-slider-knob-color":_.TV(N.knobColorArgb)};(N==null?0:N.linearGradientCssStyle)&&t!==null&&(t=Object.assign({},t,{"--ytd-pdg-color-slider-active-color":N==null?void 0:N.linearGradientCssStyle}));t!==null&&_.CO(this.hostElement,t)};
Zs.prototype.onSliderChange=Zs.prototype.onSliderChange;Zs.prototype.onSliderImmediateChange=Zs.prototype.onSliderImmediateChange;Zs.prototype.dataChanged=Zs.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],Zs.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Zs.prototype,"immediateValue",void 0);_.W([_.X(),_.Q("design:type",Number)],Zs.prototype,"maxMarkers",void 0);
_.W([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZxO}),_.Q("design:type",Object)],Zs.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Zs.prototype,"isDarkTheme",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Zs.prototype,"ytdReduxBehavior",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zs.prototype,"dataChanged",null);
_.W([_.dz("immediate-value-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zs.prototype,"onSliderImmediateChange",null);_.W([_.dz("change"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Zs.prototype,"onSliderChange",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Zs);
_.n(Zs,"ytd-pdg-color-slider-renderer",function(){if(VXr!==void 0)return VXr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return VXr=N},{mode:1});var DW5;var UWf;var VG=null;
_.LO({is:"ytd-comment-input",_template:function(){if(UWf!==void 0)return UWf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return UWf=N},
behaviors:[_.ROp.YtHostElementBehavior,_.rA,_.CD.YtComponentBehavior,_.LD.YtRendererstamperBehavior,_.KMp.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 _.cR}},
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",_.Fb(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;_.Yb();this.focus()},
detached:function(){document.removeEventListener("tap",_.Fb(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(N){N=N.detail;N=N.isCustomEmoji?N.shortcuts[0]:N.emojiId;var t=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(t,N);this.maybeUpdateTextDirection_();_.or(this.hostElement,"input")},
getInputRange_:function(){var N=_.D_();if(N){N=N.getBrowserRangeObject();for(var t=N.commonAncestorContainer;t;){if(t===this.getEditableTextArea_())return N;t=t.parentNode}}N=this.getEditableTextArea_();N=_.Nj(N,N.childNodes.length);N.select();return N.getBrowserRangeObject()},
insertTextWithEmojis_:function(N,t,O){(t=this.emojiManager.createDocumentFragment(t,!0,!1,O===void 0?!0:O))&&t.childNodes.length!==0&&(N.collapsed||N.deleteContents(),O=t.lastChild,N.insertNode(t),_.$eE(O).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var N=_.D_();if(N){var t=N.JSC$11498_getStartNode(),O=N.JSC$11498_getEndNode();if(ZAf(t)&&ZAf(O)){var H=N.JSC$11498_getStartOffset(),A;if(_.Kl&&t.nodeType===Node.ELEMENT_NODE&&(A=_.cDp(t)))_.Nj(A,0).select();else{A=De(t)?t:_.EW(t,De);var Z=De(O)?O:_.EW(O,De);if(A||Z)if(N.isCollapsed()){if(t.nodeType===Node.TEXT_NODE){N=!0;H===t.length&&(N=!1);if(VG==="end"||VG==="right")N=!1;t=t.parentNode;N=[].concat(_.W6(t.parentNode.childNodes)).indexOf(t)+(N?0:1);_.Nj(t.parentNode,
N).select()}}else A?A.previousSibling&&A.previousSibling.length>0?_.tV(O,N.JSC$11498_getEndOffset(),A.previousSibling,A.previousSibling.length-1).select():(t=document.createTextNode("\u200b"),A.parentNode.insertBefore(t,A),_.tV(O,N.JSC$11498_getEndOffset(),t,0).select()):Z&&(Z.nextSibling&&Z.nextSibling.length>0?_.tV(t,N.JSC$11498_getStartOffset(),Z.nextSibling,1).select():(O=document.createTextNode("\u200b"),Z.parentNode.insertBefore(O,Z.nextSibling),_.tV(t,N.JSC$11498_getStartOffset(),O,O.length).select()));
VG=null}}else VG=null}else VG=null},
leftKeyPressed_:function(){VG="left"},
rightKeyPressed_:function(){VG="right"},
endKeyPressed_:function(){VG="end"},
maybeDeleteChip_:function(){var N=dOO(!0);if(N){var t=_.D_(),O=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();_.R3(O,t,N,N.childNodes.length).select()}},
maybeBackspaceChip_:function(){var N=dOO(!1);if(N){var t=_.D_(),O=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();_.R3(O,t,N,0).select()}},
maybeBackspaceChipWordMode_:function(N){var t=_.D_();if(t.isCollapsed()){var O=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();var H=gGi(O,t,!0);H&&(_.R3(O,t,H,0).select(),document.execCommand("delete"),N.preventDefault(),N.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(N){var t=_.D_();if(t.isCollapsed()){var O=t.JSC$11498_getStartNode();t=t.JSC$11498_getStartOffset();var H=gGi(O,t,!1);H&&(_.R3(O,t,H,H.childNodes.length).select(),document.execCommand("delete"),N.preventDefault(),N.stopImmediatePropagation())}},
onContentClick:function(N){N.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(N){N.defaultPrevented||N.currentTarget.tagName==="YTD-COMMENT-INPUT"&&De(N.target)&&N.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.O6(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.O6(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(N,t){N=DOq(N,this.emojiManager,t).cloneNode(!0);for(t=N.firstChild;t;)if(t.nodeType!==1)t=t.nextSibling;else switch(t.tagName){case "BR":var O=_.qO();_.bmB(O,t);t=O.nextSibling;break;case "DIV":(O=t.lastChild)&&t.nextSibling&&_.rI(_.qO(),O);t.previousSibling&&(t.previousSibling.nodeType===1||t.previousSibling.nodeType===3&&!t.previousSibling.textContent.endsWith("\n"))&&_.W1(_.qO(),t);O&&O.nodeName==="BR"&&_.wb(O);O=t;t.hasChildNodes()?(t=t.firstChild,
_.pWa(O)):(t=t.nextSibling,_.wb(O));break;default:t=t.nextSibling}return yCf(N)},
setTextAreaValue:function(N){N||(N="");var t=this.getEditableFormattedString_();t.text="";this.getEditableTextArea_().innerText="";typeof N==="string"&&(N={runs:[{text:N}]});t.text=N},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();VG=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var N=this.getEditableTextArea_();N&&(_.Nj(N,N.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ro("HTML_DIR")==="rtl"){var N=this.getEditableTextArea_(),t=this.getTextAreaValue()!==""?"auto":"rtl";N.setAttribute("dir",t)}},
handleInputEvent_:function(){var N=null;if(this.isEmojiButtonDisplayed){var t=this.getInputRange_();t&&(N=this.emojiInput.retrieveTextBeforeRange(t))}this.insertText_(N,!0);this.updateCharCount_();N=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=N.scrollHeight>N.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var N=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:N})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(N){this.isEmojiButtonDisplayed&&(N.preventDefault(),N.stopImmediatePropagation(),N=N.clipboardData.getData("text/plain"),this.insertText_(N,!1,!1),_.or(this.hostElement,"input"))},
insertText_:function(N,t,O){t=t===void 0?!1:t;O=O===void 0?!0:O;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&N){var H=this.getInputRange_().cloneRange();this.emojiManager&&H&&(t&&this.emojiInput.offsetStartOfRangeBy(H,N.length),this.insertTextWithEmojis_(H,N,O),VW1(this.getEditableTextArea_().lastChild)||(H=this.getInputRange_().cloneRange()),H&&(this.emojiInput.updateSuggestions(H,N),this.updateSuggestionOffset_(H)))}},
getSimpleString:_.Gv,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(N){return N?"focused":"not-focused"},
computePlaceholderText_:function(N){return this.getSimpleString(N)},
computeEditableText_:function(N){return this.getSimpleString(N)},
onPrefilledContentDismissed_:function(N){N.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(N,t){N?this.fire("yt-autonav-pause-focus"):t!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(N){var t=this.getEditableTextArea_();[].concat(_.W6(N.dataTransfer.items)).forEach(function(O){O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(H){t.appendChild(document.createTextNode(H))})});
N.preventDefault()},
preventDefault_:function(N){N.preventDefault()},
onSuggestionInsert_:function(N){this.insertTextWithEmojis_(N.detail.range,N.detail.text)},
onEmojiSuggestionClick_:function(N){this.emojiInput.insertSuggestion(N.detail)},
updateSuggestionOffset_:function(N){if(this.emojiInput&&_.O6(this.emojiInput).querySelector("#dropdown")){var t=this.getEditableTextArea_().getBoundingClientRect().bottom,O=N.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(t-O)+5;t=this.getEditableTextArea_().getBoundingClientRect().left;N=N.getBoundingClientRect().left-t;_.O6(this.emojiInput).querySelector("#dropdown").style.marginLeft=N+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.sv("yt-post"));return this.localStorage}});var Ds=function(){var N=_.k.apply(this,arguments)||this;N.currentCommentOptionIndex=0;N.isEmojiPickerDisplayed=!1;N.emojiManager=_.cR;N.isUgcEmpty=!1;N.userGeneratedCommentChangedHandler=function(){_.or(N.hostElement,"ytd-pdg-user-generated-comment-changed");N.isEmojiYtdCommentInputEnabled&&(N.isUgcEmpty=!N.ytdCommentInputEl.getTextAreaValue())};
N.pasteHandler=function(t){t.preventDefault();t.stopImmediatePropagation();var O;if(t=(O=t.clipboardData)==null?void 0:O.getData("text/plain"))O=document.getSelection().getRangeAt(0),O.collapsed||O.deleteContents(),t=document.createTextNode(t),O.insertNode(t),O.selectNodeContents(t),O.collapse(!1),t=window.getSelection(),t.removeAllRanges(),t.addRange(O)};
N.onDocumentClick=function(t){if(N.isEmojiPickerDisplayed){var O,H,A;!(t.target instanceof Node)||(O=t.composedPath())!=null&&O.includes(N.editableTextEl)||(H=t.composedPath())!=null&&H.includes(N.emojiButtonEl)||(A=t.composedPath())!=null&&A.includes(N.emojiPickerEl)||(N.isEmojiPickerDisplayed=!1)}};
return N};
_.p(Ds,_.k);_.V=Ds.prototype;_.V.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.V.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.V.detached=function(){var N;(N=this.contentEl)==null||N.removeEventListener("input",this.userGeneratedCommentChangedHandler);var t;(t=this.contentEl)==null||t.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.V.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.V.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var N;this.contentEl.textContent=this.rendererBehavior.getSimpleString((N=this.data)==null?void 0:N.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.V.reloadEmojis=function(){this.emojiPickerEl&&_.M(this.emojiPicker,_.cc0)&&this.emojiPickerEl.updateEmojiCategories()};
_.V.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.CO(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.V.handleBackgroundColorStyling=function(){var N;if((N=this.currentCommentOption)==null?0:N.commentBackgroundColorArgb){var t;_.CO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.TV((t=this.currentCommentOption)==null?void 0:t.commentBackgroundColorArgb)})}else _.CO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.V.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var N;(N=this.contentEl)==null||N.focus()}};
_.V.onEditButtonClick=function(N){var t=document.getSelection();t&&this.contentEl&&(N.stopPropagation(),N.preventDefault(),t.selectAllChildren(this.contentEl),t.collapseToEnd())};
_.V.onContentDrop=function(N){var t=this;if(N.dataTransfer){N=_.D(N.dataTransfer.items);for(var O=N.next();!O.done;O=N.next())O=O.value,O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(H){var A;(A=t.contentEl)==null||A.appendChild(document.createTextNode(H))})}};
_.V.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.V.getUserGeneratedCommentText=function(){var N,t=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(N=this.contentEl)==null?void 0:N.textContent;return t?t.trim():""};
_.V.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.V.onEmojiSelect=function(N){this.ytdCommentInputEl.onEmojiSelect(N)};
_.cv.Object.defineProperties(Ds.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.currentCommentOption)==null||!N.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var N;if(_.M((N=this.currentCommentOption)==null?void 0:N.chipRenderer,_.fTR)){var t;return _.M((t=this.currentCommentOption)==null?void 0:t.chipRenderer,_.fTR)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var N,t;return((N=this.data)==null?0:N.commentOptionRenderers)?_.M((t=this.data)==null?void 0:t.commentOptionRenderers[this.superThanksSelectedTierEntity.index],pIr):void 0}var O,H;return((O=this.data)==null?0:O.commentOptionRenderers)?_.M((H=this.data)==null?void 0:H.commentOptionRenderers[this.currentCommentOptionIndex],pIr):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var N;return this.rendererBehavior.getSimpleString((N=this.data)==null?void 0:N.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var N;return this.rendererBehavior.getSimpleString((N=this.data)==null?void 0:N.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=_.M((N=this.data)==null?void 0:N.commentDialog,_.ep0))==null?void 0:t.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=_.M((N=this.data)==null?void 0:N.commentDialog,_.ep0))==null?void 0:t.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=_.M((N=this.data)==null?void 0:N.commentDialog,_.ep0))==null?void 0:t.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(t=_.M((N=this.data)==null?void 0:N.commentDialog,_.ep0))==null?void 0:t.emojiPicker;if(!_.M(O,_.cc0)||!_.M(O,_.cc0).categories)return!1;N=function(Z){return Z.emojiPickerCategoryRenderer?Z.emojiPickerCategoryRenderer.emojiIds&&Z.emojiPickerCategoryRenderer.emojiIds.length>0:Z.emojiPickerUpsellCategoryRenderer?Z.emojiPickerUpsellCategoryRenderer.emojis&&Z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var H,A;return((H=_.M(O,_.cc0))==null?0:(A=H.categories)==null?0:A.find(N))?!0:!1}}});
Ds.prototype.onEmojiSelect=Ds.prototype.onEmojiSelect;Ds.prototype.dataChanged=Ds.prototype.dataChanged;Ds.prototype.currentCommentOptionChanged=Ds.prototype.currentCommentOptionChanged;_.W([_.Y(_.Ue),_.Q("design:type",Object)],Ds.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ds.prototype,"rendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.B2("#content-dom-if"),_.Q("design:type",_.Yq)],Ds.prototype,"contentDomIfEl",void 0);_.W([_.B2("#content-no-emojis"),_.Q("design:type",HTMLElement)],Ds.prototype,"contentEl",void 0);_.W([_.B2("#container"),_.Q("design:type",HTMLElement)],Ds.prototype,"containerEl",void 0);_.W([_.B2("#comment-chip-container"),_.Q("design:type",HTMLElement)],Ds.prototype,"paidCommentChipContainerEl",void 0);_.W([_.B2("#text-input"),_.Q("design:type",HTMLElement)],Ds.prototype,"editableTextEl",void 0);
_.W([_.B2("#emoji-button"),_.Q("design:type",HTMLElement)],Ds.prototype,"emojiButtonEl",void 0);_.W([_.B2("#emoji-picker > yt-emoji-picker-renderer"),_.Q("design:type",Object)],Ds.prototype,"emojiPickerEl",void 0);_.W([_.B2("#text-input > ytd-comment-input"),_.Q("design:type",Object)],Ds.prototype,"ytdCommentInputEl",void 0);_.W([_.X(),_.Q("design:type",Object)],Ds.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Ds.prototype,"currentCommentOptionIndex",void 0);
_.W([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZxO}),_.Q("design:type",Object)],Ds.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.X(),_.Q("design:type",Object)],Ds.prototype,"isEmojiPickerDisplayed",void 0);_.W([_.X(),_.Q("design:type",Object)],Ds.prototype,"emojiManager",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Ds.prototype,"isUgcEmpty",void 0);
_.W([_.gz("currentCommentOption"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ds.prototype,"currentCommentOptionChanged",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ds.prototype,"dataChanged",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ds.prototype,"isEmojiYtdCommentInputEnabled",null);
_.W([_.a("data.title"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"title",null);_.W([_.a("data.authorText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"channelName",null);_.W([_.a("data.commentOptionRenderers","currentCommentOption"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ds.prototype,"shouldShowPaidCommentChipRenderer",null);
_.W([_.a("data.commentOptionRenderers","currentCommentOption"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"paidCommentChipRenderer",null);_.W([_.a("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"currentCommentOption",null);
_.W([_.a("data.defaultCommentText","superThanksSelectedTierEntity"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"commentText",null);_.W([_.a("data.placeholderText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"placeholderText",null);_.W([_.a("data.commentDialog.commentDialogRenderer.editableText"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"editableText",null);
_.W([_.a("data.commentDialog.commentDialogRenderer.emojiButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"emojiButton",null);_.W([_.a("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Ds.prototype,"emojiPicker",null);
_.W([_.a("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],Ds.prototype,"isEmojiButtonDisplayed",null);_.W([_.dz("yt-emoji-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],Ds.prototype,"onEmojiSelect",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Ds);
_.n(Ds,"ytd-pdg-comment-preview-renderer",function(){if(DW5!==void 0)return DW5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return DW5=N},{mode:2});var C75;var Uz=function(){var N=_.k.apply(this,arguments)||this;N.selected=!1;return N};
_.p(Uz,_.k);_.V=Uz.prototype;_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.V.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.V.dataChanged=function(){this.data&&(_.Zr(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.CO(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.TV(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.TV(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.V.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.V.onClick=function(){this.logClick()};
_.V.onKeyboardSelect=function(){_.or(this.hostElement,"tap");this.onClick()};
_.V.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Uz.prototype.onClick=Uz.prototype.onClick;Uz.prototype.selectedChanged=Uz.prototype.selectedChanged;Uz.prototype.dataChanged=Uz.prototype.dataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Uz.prototype,"componentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.rA),_.Q("design:type",Object)],Uz.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.Y(_.IH),_.Q("design:type",Object)],Uz.prototype,"ironSelectableBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Uz.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Uz.prototype,"shownThumbnail",void 0);_.W([_.X(),_.Q("design:type",Object)],Uz.prototype,"basePriceText",void 0);_.W([_.X(),_.Q("design:type",Object)],Uz.prototype,"purchaseCommand",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],Uz.prototype,"selected",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"dataChanged",null);_.W([_.gz("selected"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"selectedChanged",null);_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Uz.prototype,"onClick",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Uz);
_.n(Uz,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(C75!==void 0)return C75;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return C75=N},{mode:1});var CQ=function(){var N=_.k.apply(this,arguments)||this;N.selectedItemIndex=0;N.buyButtonDisabled=!1;return N};
_.p(CQ,_.k);_.V=CQ.prototype;
_.V.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.V.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var N;var t=(N=_.M(this.data.colorSlider,b6m))==null?void 0:N.notches[this.selectedItemIndex].purchaseCommand}else{var O;t=(O=_.M(this.data.selectableItemButtons[this.selectedItemIndex],zOx))==null?void 0:O.purchaseCommand}if(t){N=_.M(t,_.b_Q);N.productData||(N.productData={});var H;N.productData={pdgData:{commentMessageText:(H=this.commentPreviewRenderer)==null?void 0:H.getUserGeneratedCommentText()}};
_.or(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(t)}}};
_.V.dataChanged=function(){if(this.data){_.cR.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Wcf(_.cR,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.cR.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var N;this.buyButtonDisabled=!((N=_.M(this.data.commentPreview,LQr))==null||!N.placeholderText);this.updatePriceSelectorStatus();var t;if((t=this.data)==null?0:t.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;N=[];this.data.preloadImages&&(N=this.data.preloadImages);
N=N.map(function(O){return _.s4(O.thumbnails,1920)});
N=_.D(N);for(t=N.next();!t.done;t=N.next())(t=t.value)&&_.T2t(t).thenCatch(function(){_.J_(Error("Il"))})}};
_.V.superThanksSelectedTierEntityChanged=function(){var N;(this==null?void 0:(N=this.superThanksSelectedTierEntity)==null?void 0:N.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.V.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.V.updatePriceSelectorStatus=function(){this.isColorSlider?(_.O6(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.O6(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.O6(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.O6(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.V.closeBuyFlow=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.V.onUserGeneratedContentChanged=function(){var N;this.buyButtonDisabled=!((N=this.commentPreviewRenderer)==null?0:N.getUserGeneratedCommentText())};
_.V.updateSelectedItemIndexFromBinding=function(N){this.selectedItemIndex=N.detail.value};
_.cv.Object.defineProperties(CQ.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var N;return!((N=this.data)==null||!N.disclaimerText)}}});
CQ.prototype.onUserGeneratedContentChanged=CQ.prototype.onUserGeneratedContentChanged;CQ.prototype.closeBuyFlow=CQ.prototype.closeBuyFlow;CQ.prototype.selectedItemIndexChanged=CQ.prototype.selectedItemIndexChanged;CQ.prototype.superThanksSelectedTierEntityChanged=CQ.prototype.superThanksSelectedTierEntityChanged;CQ.prototype.dataChanged=CQ.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],CQ.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],CQ.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],CQ.prototype,"selectedItemIndex",void 0);_.W([_.X(),_.Q("design:type",Boolean)],CQ.prototype,"isColorSlider",void 0);
_.W([_.X(),_.Q("design:type",Object)],CQ.prototype,"buyButtonDisabled",void 0);_.W([_.X({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:ZxO}),_.Q("design:type",Object)],CQ.prototype,"superThanksSelectedTierEntity",void 0);_.W([_.B2("ytd-pdg-comment-preview-renderer"),_.Q("design:type",Object)],CQ.prototype,"commentPreviewRenderer",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],CQ.prototype,"ytdReduxBehavior",void 0);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CQ.prototype,"dataChanged",null);_.W([_.gz("superThanksSelectedTierEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CQ.prototype,"superThanksSelectedTierEntityChanged",null);_.W([_.gz("selectedItemIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CQ.prototype,"selectedItemIndexChanged",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CQ.prototype,"closeBuyFlow",null);_.W([_.dz("ytd-pdg-user-generated-comment-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CQ.prototype,"onUserGeneratedContentChanged",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],CQ.prototype,"isDisclaimerTextShown",null);
_.W([_.en({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],CQ);
_.n(CQ,"yt-super-vod-buy-flow-content-renderer",function(){if(Zai!==void 0)return Zai;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Zai=N},{mode:1});var KU1;var KQ=function(){var N=_.k.apply(this,arguments)||this;N.lottieAnimationRef={};return N};
_.p(KQ,_.k);_.V=KQ.prototype;_.V.created=function(){_.Uk.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Fb(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.V.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.or(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.V.detached=function(){this.autoCloseJobId&&_.GB.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Fb(this,this.onPopupIronOverlayOpened))};
_.V.dataChanged=function(){var N=this;this.data&&this.data.autoCloseDelay&&(_.sl(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.HH(_.GB,function(){N.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.CO(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.V.onDOMLoadedLottie=function(){var N=this,t,O,H=Number((t=this.data)==null?void 0:(O=t.autoCloseDelay)==null?void 0:O.seconds)||0;this.fadeOutJobId=_.HH(_.GB,function(){N.lottiePlayerEl.classList.add("fadeout")},(H-.25)*1E3);
this.autoCloseJobId=_.HH(_.GB,function(){N.closePopup()},H*1E3)};
_.V.openPopup=function(){this.ironOverlayBehavior.open()};
_.V.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.sl(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.OK(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.cY().resolve(_.jo).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.GB.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.GB.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.V.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var N,t;(N=this.lottieAnimationRef)==null||(t=N.lottieEl)==null||t.destroy();N=this.data.lottie;var O,H;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:N.url+"_"+Math.random(),path:N.url,autoplay:!0,loop:(H=(O=N.settings)==null?void 0:O.loop)!=null?H:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.cv.Object.defineProperties(KQ.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var N,t;return!!((N=this.data)==null?0:(t=N.lottie)==null?0:t.url)}}});
KQ.prototype.maybeInitializeLottie=KQ.prototype.maybeInitializeLottie;KQ.prototype.dataChanged=KQ.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],KQ.prototype,"rendererBehavior",void 0);_.W([_.Y(_.g6),_.Q("design:type",Object)],KQ.prototype,"ironOverlayBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],KQ.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],KQ.prototype,"lottiePlayerProps",void 0);
_.W([_.X(),_.Q("design:type",Object)],KQ.prototype,"lottieAnimationRef",void 0);_.W([_.B2("ytd-lottie-player"),_.Q("design:type",HTMLElement)],KQ.prototype,"lottiePlayerEl",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KQ.prototype,"dataChanged",null);_.W([_.a("data"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],KQ.prototype,"hasLottieAnimation",null);
_.W([_.gz("data.lottie.url"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KQ.prototype,"maybeInitializeLottie",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],KQ);
_.n(KQ,"ytd-desktop-image-overlay-renderer",function(){if(KU1!==void 0)return KU1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return KU1=N},{mode:1});var FUO;var dw=function(){return _.k.apply(this,arguments)||this};
_.p(dw,_.k);_.V=dw.prototype;_.V.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.Fb(this,this.closePopup))};
_.V.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Fb(this,this.closePopup))};
_.V.dataChanged=function(){_.Np(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.M(this.data.header,MdO)&&(this.hasBackgroundBanner=!!_.M(this.data.header,MdO).backgroundBanner)};
_.V.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Fb(this,this.closePopup))};
_.V.closePopup=function(){this.data&&this.data.onCloseCommand&&_.tb(this.hostElement,[this.data.onCloseCommand])};
dw.prototype.handleBuyflowSelectionSubmitted=dw.prototype.handleBuyflowSelectionSubmitted;dw.prototype.dataChanged=dw.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dw.prototype,"data",void 0);
_.W([_.X({value:!0,reflectToAttribute:!0}),_.Q("design:type",Boolean)],dw.prototype,"hasBackgroundBanner",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dw.prototype,"dataChanged",null);_.W([_.dz("yt-pdg-buy-flow-selection-submitted"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dw.prototype,"handleBuyflowSelectionSubmitted",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],dw);
_.n(dw,"ytd-pdg-buy-flow-renderer",function(){if(FUO!==void 0)return FUO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return FUO=N},{mode:1});var dW5;var gw=function(){var N=_.k.apply(this,arguments)||this;N.isOpen=!1;N.isPlaylistCreated=!1;return N};
_.p(gw,_.k);_.V=gw.prototype;_.V.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.V.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.or(this.hostElement,"yt-refit")};
_.V.onCreateTap=function(){var N=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.tb(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(t,O){if(!_.h("killswitch_ep_in_create_playlist_response")&&(O==null?0:O.actions))for(t=_.D(O.actions),O=t.next();!O.done;O=t.next())O=O.value,_.M(O,_.Th)&&N.ytComponentBehavior.resolveCommand(O)}}]),this.isPlaylistCreated=!0)};
_.V.onKeydown=function(N){if(N.keyCode===13)this.onCreateTap()};
_.V.onServiceRequestCompleted=function(N){N.stopPropagation();_.sl(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.V.computePrivacyBadge=function(N){return N?[{metadataBadgeRenderer:N}]:[]};
gw.prototype.onServiceRequestCompleted=gw.prototype.onServiceRequestCompleted;gw.prototype.onKeydown=gw.prototype.onKeydown;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gw.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],gw.prototype,"isOpen",void 0);
_.W([_.X(),_.Q("design:type",Object)],gw.prototype,"isPlaylistCreated",void 0);_.W([_.X({value:{REQUIRED_LABEL:_.CJ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.CJ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Q("design:type",Object)],gw.prototype,"addToStrings",void 0);_.W([_.X({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Q("design:type",Array)],gw.prototype,"privacyBadge",void 0);
_.W([_.B2("#privacy-input"),_.Q("design:type",Object)],gw.prototype,"privacyInput",void 0);_.W([_.B2("#name-input"),_.Q("design:type",Object)],gw.prototype,"nameInput",void 0);_.W([_.dz("keydown"),_.Q("design:type",Function),_.Q("design:paramtypes",[KeyboardEvent]),_.Q("design:returntype")],gw.prototype,"onKeydown",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],gw.prototype,"onServiceRequestCompleted",null);
_.W([_.en({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],gw);
_.n(gw,"ytd-add-to-playlist-create-renderer",function(){if(dW5!==void 0)return dW5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return dW5=N},{mode:1});var gz5;var yU5;var yG=function(){var N=_.k.apply(this,arguments)||this;N.transferState="TRANSFER_STATE_UNKNOWN";return N};
_.p(yG,_.k);yG.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
yG.prototype.onCheckboxChange=function(N){var t=this;this.data&&_.W2(this,"yt-playlist-checkbox-changed",function(){var O=_.E3(N).checked?t.data.addToPlaylistServiceEndpoint:t.data.removeFromPlaylistServiceEndpoint;O&&_.cY().resolve(_.jo).resolveCommand(O,{form:{element:t.hostElement}});_.h("dl_playlist_killswitch")||t.transferState!=="TRANSFER_STATE_UNKNOWN"&&t.transferState!=="TRANSFER_STATE_FAILED"&&t.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:t.data.playlistId,action:"ACTION_SYNC"}})},
100)};
yG.prototype.computeIconType=function(N){return N?"yt-icons:"+N.toLowerCase():null};
yG.prototype.dataChanged=yG.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yG.prototype,"data",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],yG.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],yG.prototype,"ytComponentBehavior",void 0);_.W([_.B2("#checkbox"),_.Q("design:type",HTMLInputElement)],yG.prototype,"checkbox",void 0);
_.W([_.X({selector:_.xj,selectorArgs:["data.playlistId"]}),_.Q("design:type",String)],yG.prototype,"transferState",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],yG.prototype,"dataChanged",null);_.W([_.en({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],yG);
_.n(yG,"ytd-playlist-add-to-option-renderer",function(){if(yU5!==void 0)return yU5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yU5=N},{mode:1});var BUi=_.q(function(N){var t=N.data;return _.d("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.d("div",null,_.d(_.cu,{text:function(){return t().title}})),_.d(_.y,{cond:function(){return t().subtitle},
then:function(O){return _.d("div",{class:"ytdMenuTitleRendererSubtitle"},_.d(_.cu,{text:O}))}}))},"xj");
BUi.idomCompat=!0;_.o_(BUi,"ytd-menu-title-renderer",{props:{data:_.$O}});var Bp=function(){var N=_.k.apply(this,arguments)||this;N.addToStrings={ADD_TO_DROPDOWN_LABEL:_.CJ("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};N.closeButtonAriaLabel=_.CJ("SBOX_INAPPROPRIATE_CANCEL");N.dialog=_.h("desktop_add_to_playlist_renderer_dialog_popup");return N};
_.p(Bp,_.k);_.V=Bp.prototype;_.V.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.V.onPopupOpened=function(){_.VQ(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.V.onPopupClosed=function(){_.VQ(this.playlists,"scrollable",!1)};
_.V.computeAriaLabel=function(){var N;if(this==null?0:(N=this.data)==null?0:N.actions){N=_.D(this.data.actions);for(var t=N.next();!t.done;t=N.next())if(t=t.value,t.menuTitleRenderer)return _.Gv(t.menuTitleRenderer.title)}};
_.V.onTapClose=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.cv.Object.defineProperties(Bp.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var N;if(this==null?0:(N=this.data)==null?0:N.actions){N=_.D(this.data.actions);for(var t=N.next();!t.done;t=N.next())if(t=t.value,t.menuTitleRenderer)return t.menuTitleRenderer}return!1}}});
Bp.prototype.onPopupClosed=Bp.prototype.onPopupClosed;Bp.prototype.onPopupOpened=Bp.prototype.onPopupOpened;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],Bp.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Bp.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],Bp.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Bp.prototype,"addToStrings",void 0);_.W([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Q("design:type",String)],Bp.prototype,"ariaLabel",void 0);_.W([_.X(),_.Q("design:type",String)],Bp.prototype,"closeButtonAriaLabel",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],Bp.prototype,"dialog",void 0);
_.W([_.B2("#playlists"),_.Q("design:type",HTMLElement)],Bp.prototype,"playlists",void 0);_.W([_.B2("ytd-add-to-playlist-create-renderer"),_.Q("design:type",Object)],Bp.prototype,"createRenderer",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],Bp.prototype,"menuTitleRenderer",null);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bp.prototype,"onPopupOpened",null);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bp.prototype,"onPopupClosed",null);_.W([_.en({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Bp);
_.n(Bp,"ytd-add-to-playlist-renderer",function(){if(gz5!==void 0)return gz5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return gz5=N},{mode:1});var cU5;var cp=function(){var N=_.k.apply(this,arguments)||this;N.isPlaylistEditComplete=!1;N.isCollabEngagementDisabled=!1;N.closeButtonAriaLabel=_.CJ("SBOX_INAPPROPRIATE_CANCEL");N.saveButton={title:_.CJ("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};N.onValueChanged=function(){N.updateSaveButtonState();N.computeCollabEngagementDisabled()};
return N};
_.p(cp,_.k);_.V=cp.prototype;_.V.attached=function(){this.JSC$21057_scroller&&(this.JSC$21057_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21057_scroller.attached&&typeof this.JSC$21057_scroller.attached==="function"&&this.JSC$21057_scroller.attached())};
_.V.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.V.onPopupClosed=function(){this.reset()};
_.V.close=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.V.onClickSave=function(){var N=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var t=[];this.nameInput.value!==null&&t.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&t.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var O=Number(this.privacyInput.value);isNaN(O)||t.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:O})}this.votingInput.value!==null&&(O=this.votingInput.value)&&t.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:O});if(t.length>0){var H;_.M((H=this.data)==null?void 0:H.updateSettingsEndpoint,_.CY).actions=t;var A;if((A=this.data)==null?0:A.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){N.close()}}}),this.isPlaylistEditComplete=!0}}};
_.V.computePrivacyBadge=function(N){return N?[{metadataBadgeRenderer:N}]:[]};
_.V.computeEditorData=function(N){var t,O;return N==null?void 0:(t=N.sections)==null?void 0:(O=t[0])==null?void 0:O.playlistSettingsEditorCasualSectionRenderer};
_.V.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.V.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.V.computeAriaLabel=function(){var N,t,O,H=(N=this.data)==null?void 0:(t=N.sections)==null?void 0:(O=t[0])==null?void 0:O.playlistSettingsEditorCasualSectionRenderer;return _.Gv(H==null?void 0:H.title)};
_.V.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.V.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.V.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.V.isNameChanged=function(){var N,t,O;return(((N=this.editorData)==null?void 0:(t=N.name)==null?void 0:(O=t.textInputFormFieldRenderer)==null?void 0:O.value)||"")!==(this.nameInput.value||"")};
_.V.isDescriptionChanged=function(){var N,t,O;return(((N=this.editorData)==null?void 0:(t=N.description)==null?void 0:(O=t.textInputFormFieldRenderer)==null?void 0:O.value)||"")!==(this.descriptionInput.value||"")};
_.V.isPrivacyChanged=function(){var N,t,O,H,A,Z,U,C;return((U=(N=this.editorData)==null?void 0:(t=N.privacy)==null?void 0:(O=t.dropdownFormFieldRenderer)==null?void 0:(H=O.dropdown)==null?void 0:(A=H.dropdownRenderer)==null?void 0:(Z=A.entries)==null?void 0:Z.find(function(F){var g;return F==null?void 0:(g=F.privacyDropdownItemRenderer)==null?void 0:g.isSelected}))==null?void 0:(C=U.privacyDropdownItemRenderer)==null?void 0:C.int32Value)!==this.privacyInput.value};
_.V.isVotingChanged=function(){var N,t,O,H,A,Z,U,C;return((U=(N=this.editorData)==null?void 0:(t=N.voting)==null?void 0:(O=t.dropdownFormFieldRenderer)==null?void 0:(H=O.dropdown)==null?void 0:(A=H.dropdownRenderer)==null?void 0:(Z=A.entries)==null?void 0:Z.find(function(F){var g;return F==null?void 0:(g=F.privacyDropdownItemRenderer)==null?void 0:g.isSelected}))==null?void 0:(C=U.privacyDropdownItemRenderer)==null?void 0:C.int32Value)!==this.votingInput.value};
cp.prototype.onPopupClosed=cp.prototype.onPopupClosed;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],cp.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],cp.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],cp.prototype,"ytRendererStamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],cp.prototype,"data",void 0);_.W([_.X({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Q("design:type",Array)],cp.prototype,"privacyBadge",void 0);_.W([_.X({computed:"computeEditorData(data)"}),_.Q("design:type",Object)],cp.prototype,"editorData",void 0);_.W([_.X(),_.Q("design:type",Object)],cp.prototype,"isPlaylistEditComplete",void 0);_.W([_.X(),_.Q("design:type",Object)],cp.prototype,"isCollabEngagementDisabled",void 0);
_.W([_.X({value:{REQUIRED_LABEL:_.CJ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.CJ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Q("design:type",Object)],cp.prototype,"addToStrings",void 0);_.W([_.X({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Q("design:type",String)],cp.prototype,"ariaLabel",void 0);_.W([_.X(),_.Q("design:type",String)],cp.prototype,"closeButtonAriaLabel",void 0);
_.W([_.X(),_.Q("design:type",Object)],cp.prototype,"saveButton",void 0);_.W([_.B2("#name-input"),_.Q("design:type",Object)],cp.prototype,"nameInput",void 0);_.W([_.B2("#description-input"),_.Q("design:type",Object)],cp.prototype,"descriptionInput",void 0);_.W([_.B2("#privacy-input"),_.Q("design:type",Object)],cp.prototype,"privacyInput",void 0);_.W([_.B2("#voting-input"),_.Q("design:type",Object)],cp.prototype,"votingInput",void 0);
_.W([_.B2("#scroller"),_.Q("design:type",Object)],cp.prototype,"JSC$21057_scroller",void 0);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],cp.prototype,"onPopupClosed",null);_.W([_.X(),_.Q("design:type",Object)],cp.prototype,"onValueChanged",void 0);_.W([_.en({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],cp);
_.n(cp,"ytd-playlist-settings-editor-renderer",function(){if(cU5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);cU5=N}N=cU5;return N},{mode:1});var $Wz;_.pE("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var $5=function(){return _.k.apply(this,arguments)||this};
_.p($5,_.k);_.V=$5.prototype;_.V.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var N=this.get("data.nextButton.buttonRenderer.navigationEndpoint");N&&(this.nextNavigationEndpoint=N,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.V.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var N={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",N)}}};
_.V.onPopupOpened=function(N){N.detail!==this&&N.detail!==this.hostElement||!_.h("enable_premium_voluntary_pause")||_.sl(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.V.onNextButtonTap=function(){var N=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);N&&this.ytdOpenPopupBehavior.openPopup(N)};
_.V.updateSelectedResponseIndexFromBinding=function(N){this.selectedResponseIndex=N.detail.value};
$5.prototype.onPopupOpened=$5.prototype.onPopupOpened;$5.prototype.onSelectedResponseIndexChange=$5.prototype.onSelectedResponseIndexChange;$5.prototype.dataChanged=$5.prototype.dataChanged;_.W([_.Y(_.LX),_.Q("design:type",Object)],$5.prototype,"ytdOpenPopupBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$5.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],$5.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],$5.prototype,"selectedResponseIndex",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$5.prototype,"dataChanged",null);_.W([_.gz("selectedResponseIndex"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],$5.prototype,"onSelectedResponseIndexChange",null);
_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],$5.prototype,"onPopupOpened",null);_.W([_.en({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],$5);
_.n($5,"ytd-red-cancel-survey-renderer",function(){if($Wz!==void 0)return $Wz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return $Wz=N},{mode:1});var je1;var jv=function(){var N=_.k.apply(this,arguments)||this;N.closeButtonAriaLabel=_.CJ("SBOX_INAPPROPRIATE_CANCEL");return N};
_.p(jv,_.k);jv.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
jv.prototype.onClickClose=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],jv.prototype,"rendererStamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jv.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],jv.prototype,"closeButtonAriaLabel",void 0);_.W([_.en({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],jv);
_.n(jv,"ytd-search-filter-options-dialog-renderer",function(){if(je1!==void 0)return je1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return je1=N},{mode:1});var iai;var $Om=function(){return function(N){N=N.availabilityType;return N===void 0||N==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||N==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var iH=function(){var N=_.k.apply(this,arguments)||this;N.qualityOptions=[];N.upsellOptions=[];N.showUpsellSection=!1;N.rememberSettingsChecked=!1;return N};
_.p(iH,_.k);_.V=iH.prototype;_.V.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.V.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.V.updateQualityOptions=function(){if(this.formats===void 0)_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var N=[],t=[];this.showUpsellSection=!1;for(var O=_.D(this.formats),H=O.next();!H.done;H=O.next())(H=H.value)&&(H.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?t.push(H):N.push(H));N.length&&(this.qualityOptions=cC5(N));t.length&&(this.showUpsellSection=!0,this.upsellOptions=cC5(t))}};
_.V.updateRememberString=function(){if(this.downloadQualityPickerEntity)var N=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var t;N=(t=this.data)==null?void 0:t.premiumRememberSettingString}else{var O;N=(O=this.data)==null?void 0:O.rememberSettingString}N=N===void 0?_.CJ("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):N;this.rememberSettingsCheckboxRenderer={title:_.NE(N),disabled:!1}};
_.V.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.cv.Object.defineProperties(iH.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var N;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(N=this.data)==null?void 0:N.qualityFormats}}});
iH.prototype.updateRememberString=iH.prototype.updateRememberString;iH.prototype.updateQualityOptions=iH.prototype.updateQualityOptions;iH.prototype.dataChanged=iH.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],iH.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],iH.prototype,"data",void 0);
_.W([_.Y(_.Ue),_.Q("design:type",Object)],iH.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Boolean)],iH.prototype,"selectedUpsellQuality",void 0);_.W([_.X({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Q("design:type",String)],iH.prototype,"premiumIcon",void 0);_.W([_.X({selector:oJJ,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Q("design:type",Object)],iH.prototype,"downloadQualityPickerEntity",void 0);
_.W([_.X(),_.Q("design:type",Array)],iH.prototype,"qualityOptions",void 0);_.W([_.X(),_.Q("design:type",Array)],iH.prototype,"upsellOptions",void 0);_.W([_.X(),_.Q("design:type",Object)],iH.prototype,"showUpsellSection",void 0);_.W([_.X(),_.Q("design:type",Object)],iH.prototype,"rememberSettingsCheckboxRenderer",void 0);_.W([_.B2("#remember-settings"),_.Q("design:type",HTMLInputElement)],iH.prototype,"rememberSettingsCheckbox",void 0);
_.W([_.X(),_.Q("design:type",Object)],iH.prototype,"rememberSettingsChecked",void 0);_.W([_.X(),_.Q("design:type",Function)],iH.prototype,"onRememberSettingsCheckedChanged",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iH.prototype,"dataChanged",null);_.W([_.gz("downloadQualityPickerEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iH.prototype,"updateQualityOptions",null);
_.W([_.gz("selectedUpsellQuality"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],iH.prototype,"updateRememberString",null);_.W([_.en({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],iH);
_.n(iH,"ytd-download-quality-selector-content",function(){if(iai!==void 0)return iai;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return iai=N},{mode:1});var uG5;var uH=function(){var N=_.k.apply(this,arguments)||this;N.selectedUpsellQuality=!1;N.qualityOptions=[];N.useUpsellDismissAlternate=_.h("use_not_now_dl_upsell_dismiss_cta");N.shouldShowAlternateUpsellDimiss=!1;N.rememberSettings=!1;N.rememberSettingsChecked=!1;N.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};N.rememberSettingsCheckedChanged=function(t){N.rememberSettingsChecked=t};
return N};
_.p(uH,_.k);_.V=uH.prototype;
_.V.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.NE(_.CJ("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.NE(_.CJ("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.NE(_.CJ("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.NE(_.CJ("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.V.updateQualityOptions=function(){this.formats===void 0?_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=cC5(this.formats)};
_.V.onQualityOptionsSelect=function(N){if(this.qualityOptions&&N){N!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var t=_.D(this.qualityOptions.entries()),O=t.next();!O.done;O=
t.next()){O=_.D(O.value);var H=O.next().value;O=O.next().value;var A=void 0,Z=void 0;if(((A=O)==null?void 0:(Z=A.settingsRadioOptionRenderer)==null?void 0:Z.id)===N){this.selectedQualityIndex=H;N=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((N=this.formats[H])==null?void 0:N.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.V.onClickSubmit=function(){var N;if((N=this.downloadButtonRenderer)==null||!N.isDisabled){var t,O;N=(O=(t=this.data)==null?void 0:t.onSubmitEndpoint)!=null?O:{};var H,A;if(this.formats&&(((H=_.M(N,_.ye))==null?0:H.videoId)||((A=_.M(N,_.Bz))==null?0:A.playlistId))){var Z,U,C,F,g,B;t={formatType:(F=(Z=this.formats)==null?void 0:(U=Z[(C=this.selectedQualityIndex)!=null?C:0])==null?void 0:U.format)!=null?F:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(g=this.getOfflineEndpoint(N))==null?void 0:(B=g.actionParams)==null?void 0:B.settingsAction)};this.getOfflineEndpoint(N).actionParams=t;this.ytComponentBehavior.resolveCommand(N)}_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.V.onClickUpsell=function(){var N;if((N=this.upsellButtonRenderer)==null||!N.isDisabled){var t,O;N=(O=(t=this.data)==null?void 0:t.upsellEndpoint)!=null?O:{};this.ytComponentBehavior.resolveCommand(N);_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);t="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var H,A,Z,U;t=(U=(H=this.formats)==null?void 0:(A=H[(Z=this.selectedQualityIndex)!=null?Z:0])==null?void 0:A.format)!=null?U:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:t}})}};
_.V.onClickClose=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.V.getOfflineSettingsAction=function(N,t){return N?t===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":t:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.V.getOfflineEndpoint=function(N){return _.M(N,_.ye)?_.M(N,_.ye):_.M(N,_.Bz)};
_.cv.Object.defineProperties(uH.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.NE(_.CJ("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var N;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(N=this.data)==null?void 0:N.qualityFormats}}});
uH.prototype.updateQualityOptions=uH.prototype.updateQualityOptions;uH.prototype.dataChanged=uH.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],uH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],uH.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],uH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Number)],uH.prototype,"selectedQualityIndex",void 0);_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"selectedUpsellQuality",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],uH.prototype,"ytdReduxBehavior",void 0);
_.W([_.X({selector:oJJ,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Q("design:type",Object)],uH.prototype,"downloadQualityPickerEntity",void 0);_.W([_.X(),_.Q("design:type",Array)],uH.prototype,"qualityOptions",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],uH.prototype,"useUpsellDismissAlternate",void 0);_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"downloadButtonRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"upsellButtonRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"cancelButtonRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"upsellCancelButtonRenderer",void 0);_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"rememberSettings",void 0);_.W([_.X(),_.Q("design:type",Object)],uH.prototype,"rememberSettingsChecked",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uH.prototype,"dataChanged",null);_.W([_.gz("downloadQualityPickerEntity"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],uH.prototype,"updateQualityOptions",null);_.W([_.en({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],uH);
_.n(uH,"ytd-download-quality-selector-renderer",function(){if(uG5!==void 0)return uG5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return uG5=N},{mode:1});var SU1;var Sv=function(){return _.k.apply(this,arguments)||this};
_.p(Sv,_.k);Sv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Sv.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"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Sv.prototype,"data",void 0);_.W([_.X({computed:"computeIcon_(data.infoIcon)"}),_.Q("design:type",Object)],Sv.prototype,"infoIcon",void 0);
_.W([_.X({computed:"computeIcon_(data.warningIcon)"}),_.Q("design:type",Object)],Sv.prototype,"warningIcon",void 0);_.W([_.en({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Sv);
_.n(Sv,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(SU1!==void 0)return SU1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return SU1=N},{mode:1});var hXx;var hM=function(){return _.k.apply(this,arguments)||this};
_.p(hM,_.k);hM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hM.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"}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],hM.prototype,"data",void 0);_.W([_.en({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],hM);
_.n(hM,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(hXx!==void 0)return hXx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return hXx=N},{mode:1});var MX5;var Mi=function(){return _.k.apply(this,arguments)||this};
_.p(Mi,_.k);Mi.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Mi.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"}}}}};
Mi.prototype.onServiceRequestSentOrCompleted=function(N,t){t&&t.actions&&t.actions.length>0&&_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
Mi.prototype.onServiceRequestSentOrCompleted=Mi.prototype.onServiceRequestSentOrCompleted;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Mi.prototype,"data",void 0);
_.W([_.dz("yt-service-request-completed"),_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],Mi.prototype,"onServiceRequestSentOrCompleted",null);_.W([_.en({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Mi);
_.n(Mi,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(MX5!==void 0)return MX5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return MX5=N},{mode:1});var ba5;var bH=function(){var N=_.k.apply(this,arguments)||this;N.submitButtonDisabled=!0;return N};
_.p(bH,_.k);_.V=bH.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.V.onDataChanged=function(){var N,t,O;if(((N=this.data)==null?void 0:(t=N.confirmButton)==null?void 0:(O=t.buttonRenderer)==null?void 0:O.isDisabled)!==void 0){var H,A,Z;this.submitButtonDisabled=(H=this.data)==null?void 0:(A=H.confirmButton)==null?void 0:(Z=A.buttonRenderer)==null?void 0:Z.isDisabled}};
_.V.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.V.updateSubmitButtonDisabledFromBinding=function(N){this.submitButtonDisabled=N.detail.value};
_.V.updateSubmitButtonDisabledFromConfirmCheckbox=function(N){this.submitButtonDisabled=!N.detail.value};
bH.prototype.onDataChanged=bH.prototype.onDataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bH.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],bH.prototype,"submitButtonDisabled",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],bH.prototype,"onDataChanged",null);_.W([_.en({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],bH);
_.n(bH,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(ba5!==void 0)return ba5;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return ba5=N},{mode:1});var pNn;var pQ=function(){return _.k.apply(this,arguments)||this};
_.p(pQ,_.k);_.cv.Object.defineProperties(pQ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var N,t,O;return((N=this.data)==null?void 0:N.title)+" "+((t=this.data)==null?void 0:t.metadataPrimary)+" "+((O=this.data)==null?void 0:O.metadataSecondary)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],pQ.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],pQ.prototype,"data",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],pQ.prototype,"ariaLabel",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],pQ);
_.n(pQ,"ytd-compact-product-list-item-renderer",function(){if(pNn!==void 0)return pNn;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return pNn=N},{mode:1});var LUi;var LQ=function(){return _.k.apply(this,arguments)||this};
_.p(LQ,_.k);LQ.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]]"}}}}}};
_.cv.Object.defineProperties(LQ.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],LQ.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],LQ.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],LQ);
_.n(LQ,"ytd-compact-product-list-renderer",function(){if(LUi!==void 0)return LUi;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return LUi=N},{mode:1});var zXf;var zQ=function(){return _.k.apply(this,arguments)||this};
_.p(zQ,_.k);_.V=zQ.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.getBackgroundUrl=function(){var N=this.get("data.headerImage.thumbnails");return N?"url("+_.s4(N,this.hostElement.clientWidth)+")":""};
_.V.onDataChanged=function(){var N=this.getBackgroundUrl();N&&(this.header.style.backgroundImage=N);N=_.z8();var t=_.pv(),O=this.get("data.trackingParams");O&&t&&N&&_.qp(N,t,_.ib(O));N=_.D(this.hostElement.querySelectorAll("yt-img-shadow"));for(t=N.next();!t.done;t=N.next())t.value.onShow()};
_.V.onPopupClosed=function(N){_.E3(N).localName==="ytd-membership-post-cancel-renderer"&&_.sl(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
zQ.prototype.onPopupClosed=zQ.prototype.onPopupClosed;zQ.prototype.onDataChanged=zQ.prototype.onDataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],zQ.prototype,"data",void 0);_.W([_.B2("#header"),_.Q("design:type",HTMLDivElement)],zQ.prototype,"header",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],zQ.prototype,"onDataChanged",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],zQ.prototype,"onPopupClosed",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],zQ);
_.n(zQ,"ytd-membership-post-cancel-renderer",function(){if(zXf!==void 0)return zXf;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return zXf=N},{mode:1});var YUO;var Y5=function(){return _.k.apply(this,arguments)||this};
_.p(Y5,_.k);Y5.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Y5.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Y5.prototype,"data",void 0);_.W([_.B2("ytd-feedback-survey-renderer"),_.Q("design:type",Object)],Y5.prototype,"feedbackSurveyRenderer",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Y5);
_.n(Y5,"ytd-sponsorship-confirm-cancel-content",function(){if(YUO!==void 0)return YUO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return YUO=N},{mode:1});var a8r;var aA=function(){var N=_.k.apply(this,arguments)||this;N.maybeSubmitFeedback=function(){N.content&&N.content.maybeSubmitFeedback()};
return N};
_.p(aA,_.k);_.V=aA.prototype;_.V.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.V.onYtPopupOpened=function(N,t){t===this&&this.data&&this.data.onOpenCommands&&_.OK(this.hostElement,this.data.onOpenCommands,this.hostElement);_.sl(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.V.onYtPopupClosed=function(N,t){(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.OK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.V.onYtServiceRequestError=function(N){_.I8(this.hostElement,N.detail.error.message)};
_.V.onDataChanged=function(){if(this.isAttached){var N=this.backgroundUrl;N&&(_.O6(this.hostElement).querySelector("#header").style.backgroundImage=N)}};
_.cv.Object.defineProperties(aA.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return N?"url("+_.s4(N,this.hostElement.clientWidth)+")":""}}});
aA.prototype.onDataChanged=aA.prototype.onDataChanged;aA.prototype.onYtServiceRequestError=aA.prototype.onYtServiceRequestError;aA.prototype.onYtServiceRequestCompleted=aA.prototype.onYtServiceRequestCompleted;aA.prototype.onYtPopupClosed=aA.prototype.onYtPopupClosed;aA.prototype.onYtPopupOpened=aA.prototype.onYtPopupOpened;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],aA.prototype,"data",void 0);_.W([_.X({value:function(){return _.CJ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Q("design:type",String)],aA.prototype,"closeButtonAriaLabel",void 0);_.W([_.B2("#scrollable"),_.Q("design:type",Object)],aA.prototype,"scrollable",void 0);_.W([_.B2("ytd-sponsorship-confirm-cancel-content"),_.Q("design:type",Object)],aA.prototype,"content",void 0);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],aA.prototype,"onYtPopupOpened",null);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],aA.prototype,"onYtPopupClosed",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],aA.prototype,"onYtServiceRequestCompleted",null);
_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],aA.prototype,"onYtServiceRequestError",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],aA.prototype,"onDataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],aA);
_.n(aA,"ytd-sponsorship-confirm-cancel-renderer",function(){if(a8r!==void 0)return a8r;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return a8r=N},{mode:_.O4("kevlar_poly_si_batch_j081")?1:2});var TUJ;var TQ=function(){return _.k.apply(this,arguments)||this};
_.p(TQ,_.k);TQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],TQ.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],TQ);
_.n(TQ,"ytd-sponsorships-celebration-content",function(){if(TUJ!==void 0)return TUJ;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return TUJ=
N},{mode:1});var wNr;var eXm=_.mp(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),ww=function(){var N=_.k.apply(this,arguments)||this;N.scriptsAppended=!1;N.useFullWidthPrimaryButton=!1;N.buttonOverrides={type:"tonal",style:"overlay-dark"};return N};
_.p(ww,_.k);_.V=ww.prototype;_.V.dataChanged=function(){var N;this.useFullWidthPrimaryButton=!((N=this.data)==null||!N.useFullWidthPrimaryButton)};
_.V.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.h("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.onDataChanged=function(){var N;(N=this.header)==null||N.style.setProperty("background-color",this.backgroundColor);if(N=this.headerImageUrl){var t;(t=this.header)==null||t.style.setProperty("background-image",N)}t=_.z8(4);N=_.pv(4);var O=this.get("data.trackingParams");if(O&&N&&t){var H=_.ib(O);_.qp(t,N,H);_.h("combine_ve_grafts")?_.gF().graftServerVe(O,N,4):_.qp(t,N,H)}t=_.D(this.hostElement.querySelectorAll("yt-img-shadow"));for(N=t.next();!N.done;N=t.next())N.value.onShow();if(t=this.get("data.gtmId"))_.J7(t,
_.Ro("GL","")),this.setupConversionTracking()};
_.V.setupConversionTracking=function(){if(!this.scriptsAppended){var N=document.createElement("script");_.Dx(N,_.Zx(eXm.join("")));document.head.appendChild(N);N=document.createElement("noscript");N.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(N);this.scriptsAppended=!0}};
_.V.onPopupClosed=function(N){if(_.E3(N).localName==="ytd-sponsorships-celebration-renderer"){_.sl(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var t;this.data&&((t=this.data)==null?0:t.dismissCommand)&&_.U4.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.cv.Object.defineProperties(ww.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.TV(N)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var N=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return N?"url("+_.s4(N,this.hostElement.getBoundingClientRect().width)+")":""}}});
ww.prototype.onPopupClosed=ww.prototype.onPopupClosed;ww.prototype.onDataChanged=ww.prototype.onDataChanged;ww.prototype.dataChanged=ww.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],ww.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ww.prototype,"data",void 0);
_.W([_.B2("#header"),_.Q("design:type",HTMLElement)],ww.prototype,"header",void 0);_.W([_.X(),_.Q("design:type",Object)],ww.prototype,"scriptsAppended",void 0);_.W([_.X({type:Boolean,reflectToAttribute:!0}),_.Q("design:type",Object)],ww.prototype,"useFullWidthPrimaryButton",void 0);_.W([_.X(),_.Q("design:type",Object)],ww.prototype,"buttonOverrides",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ww.prototype,"dataChanged",null);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ww.prototype,"onDataChanged",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],ww.prototype,"onPopupClosed",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],ww);
_.n(ww,"ytd-sponsorships-celebration-renderer",function(){if(wNr!==void 0)return wNr;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return wNr=N},{mode:1});var P7x;var ev=function(){var N=_.k.apply(this,arguments)||this;N.isToggleChecked=!1;return N};
_.p(ev,_.k);ev.prototype.onDataChanged=function(){var N;this.isToggleChecked=((N=this.data)==null?void 0:N.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
ev.prototype.close=function(){var N;((N=this.data)==null?0:N.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
ev.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var N,t=_.M((N=this.data)==null?void 0:N.switchButton,Yuf);t&&(this.isToggleChecked&&t.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(t.switchOnInnertubeCommand),!this.isToggleChecked&&t.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(t.switchOffInnertubeCommand))};
ev.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ev.prototype.onDataChanged=ev.prototype.onDataChanged;_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ev.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ev.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],ev.prototype,"isToggleChecked",void 0);_.W([_.X({value:_.CJ("CLOSE")}),_.Q("design:type",String)],ev.prototype,"closeButtonAriaLabel",void 0);
_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ev.prototype,"onDataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],ev);
_.n(ev,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(P7x!==void 0)return P7x;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return P7x=N},{mode:1});var XNm;var Pp=function(){return _.k.apply(this,arguments)||this};
_.p(Pp,_.k);_.V=Pp.prototype;_.V.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.playerElement.stop()};
_.V.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.V.onYtServiceRequestError=function(N){_.I8(this.hostElement,N.detail.error.message)};
_.V.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.V.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.V.getTier=function(N,t){return!N||!N.tiers||t<0?null:_.M(N.tiers[t],eOi)};
_.V.moreThanOne=function(N){return!!(N&&N.length>1)};
_.V.tierOverviewTap=function(N){var t=this;this.selectedTier=N.model.index;_.yB(this,function(){_.or(t.hostElement,"yt-refit")})};
_.V.computeSelectedClass=function(N,t){return this.isSelected(N,t)?"selected":""};
_.V.computeButtonAriaPressed=function(N,t){return this.isSelected(N,t)?"true":"false"};
_.V.isSelected=function(N,t){return N===t};
_.V.onDataChanged=function(){_.O6(this.hostElement).querySelector("#header-overlay").style.visibility="";_.O6(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var N=_.D(this.hostElement.querySelectorAll("yt-img-shadow")),
t=N.next();!t.done;t=N.next())t.value.onShow();var O;this.set("selectedTier",(O=this.get("data.targetTierIndex"))!=null?O:0);var H;(N=(H=this.data)==null?void 0:H.onVisible)&&this.ytComponentBehavior.resolveCommand(N)};
_.V.initializeVe=function(N){var t=_.z8(),O=_.pv(),H=this.get("data.trackingParams");O&&t&&(this.screenLayer=4,t=_.oo(_.t7G)(void 0,69877,{clientScreenNonce:t,visualElement:O},void 0,void 0,void 0),_.ar(t,69877,4),O=_.pv(4),H&&O&&(H=_.ib(H),_.qp(t,O,H),N&&(this.offerVideoVe=_.UM(74659),_.qp(t,H,this.offerVideoVe))))};
_.V.setHeaderBackground=function(){var N=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.O6(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.TV(N);if(N=this.getHeaderImage())N=_.s4(N,screen.width),_.O6(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+N+")"};
_.V.getHeaderImage=function(){var N=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&N?N:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setupVideoPlayer=function(N){var t=this,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1)return O=t.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),H=t.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.h("kevlar_player_update_killswitch")?t.playerElement.update({args:{autoplay:O,video_id:N,player_params:H}}):t.playerElement.loadVideoWithPlayerVars({autoplay:O,video_id:N,player_params:H}),
U.yield(t.playerElement.getPlayerPromise(),2);A=U.yieldResult;A.addEventListener("onStateChange",function(C){t.onPlayerStateChange(C)});
A.setScreenLayer(t.screenLayer);(Z=_.z8(4))&&t.offerVideoVe&&_.nJ(Z,t.offerVideoVe);O&&(t.pauseOtherPlayers(),t.playerElement.focusOnPlayer(),t.playerElement.getPlayer().hideControls(),_.WX(_.GB,function(){t.fadeOutHeaderOverlay()},4E3));
_.Ty(U)})};
_.V.onPlayerStateChange=function(N){N===1?this.backgroundPlayerElement&&(N=this.backgroundPlayerElement.player_.getPlayerState(),N!==1&&N!==3||this.backgroundPlayerElement.pause()):N===0&&(_.O6(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.O6(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.V.fadeOutHeaderOverlay=function(){_.O6(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.V.onHeaderTap=function(){if(this.offerVideo){_.O6(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var N;((N=this.playerElement.player_)==null?void 0:N.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(N=_.z8(4))&&this.offerVideoVe&&_.IX(N,this.offerVideoVe)}};
_.V.getBackgroundImageLayerClass=function(N){return N?"background-image-layer-with-video":""};
_.V.getHeaderClass=function(N){return N?"header-with-video":""};
_.V.getHeaderOverlayClass=function(N){return N?"header-overlay-with-video":""};
_.V.getTitleContainerClass=function(N,t){return N?"title-container-with-video":t?"title-container-without-video-flexible":"title-container-without-video"};
_.V.tierTitleDisplayStatus=function(N){return this.moreThanOne(N)?"hide":"show"};
_.V.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.cY().resolve(_.kf).getPlayerElement():this.backgroundPlayerElement=_.si();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var N=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=N===1||N===3;this.backgroundPlayerElement.pause()}};
_.V.isMiniplayerActive=function(){return _.cY().resolve(_.kf).isMiniplayerActive()};
_.V.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("selected-tier-changed",this.selectedTier))};
Pp.prototype.selectedTierChangedForBinding=Pp.prototype.selectedTierChangedForBinding;Pp.prototype.onDataChanged=Pp.prototype.onDataChanged;Pp.prototype.onYtPopupClosed=Pp.prototype.onYtPopupClosed;Pp.prototype.onYtPopupOpened=Pp.prototype.onYtPopupOpened;Pp.prototype.onYtServiceRequestError=Pp.prototype.onYtServiceRequestError;Pp.prototype.onYtServiceRequestCompleted=Pp.prototype.onYtServiceRequestCompleted;
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Pp.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Pp.prototype,"data",void 0);_.W([_.X({value:0}),_.Q("design:type",Number)],Pp.prototype,"selectedTier",void 0);
_.W([_.X({value:""}),_.Q("design:type",String)],Pp.prototype,"offerVideo",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],Pp.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.W([_.X({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.GM(this)}}),
_.Q("design:type",String)],Pp.prototype,"playerId",void 0);_.W([_.B2("tp-yt-paper-dialog-scrollable"),_.Q("design:type",Object)],Pp.prototype,"scrollable",void 0);_.W([_.B2("ytd-sponsorships-tier-renderer"),_.Q("design:type",Object)],Pp.prototype,"tierRenderer",void 0);_.W([_.B2("#player"),_.Q("design:type",Object)],Pp.prototype,"playerElement",void 0);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Pp.prototype,"onYtServiceRequestCompleted",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],Pp.prototype,"onYtServiceRequestError",null);
_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Pp.prototype,"onYtPopupOpened",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Pp.prototype,"onYtPopupClosed",null);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Pp.prototype,"onDataChanged",null);
_.W([_.gz("selectedTier"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Pp.prototype,"selectedTierChangedForBinding",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Pp);
_.n(Pp,"ytd-sponsorships-offer-renderer",function(){if(XNm!==void 0)return XNm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return XNm=N},{mode:_.O4("kevlar_poly_si_batch_j077")?1:2});var xWq;var x5=function(){var N=_.k.apply(this,arguments)||this;N.buttonOverrides={type:"filled",style:"mono"};return N};
_.p(x5,_.k);x5.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}}}}}};
x5.prototype.backgroundColorChanged=function(){var N,t,O,H=(t=_.M((N=this.data)==null?void 0:N.content,Ps5))==null?void 0:(O=t.backgroundColor)==null?void 0:O.backgroundColor;H&&(N=_.aI(H),_.O6(this.hostElement).querySelector("#banner").style.backgroundColor=N,_.O6(this.hostElement).querySelector("#abstract-art").style.backgroundColor=N)};
x5.prototype.attached=function(){this.JSC$21142_scroller&&(this.JSC$21142_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21142_scroller.attached&&typeof this.JSC$21142_scroller.attached==="function"&&this.JSC$21142_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
x5.prototype.backgroundColorChanged=x5.prototype.backgroundColorChanged;_.W([_.X(),_.Q("design:type",Object)],x5.prototype,"data",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("#scroller"),_.Q("design:type",Object)],x5.prototype,"JSC$21142_scroller",void 0);_.W([_.X(),_.Q("design:type",Object)],x5.prototype,"buttonOverrides",void 0);
_.W([_.gz("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],x5.prototype,"backgroundColorChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],x5);
_.n(x5,"ytd-sponsorships-promotion-celebration-renderer",function(){if(xWq!==void 0)return xWq;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return xWq=N},{mode:_.O4("kevlar_poly_si_batch_j077")?1:2});var kK1;var qU1;var k5=function(){return _.k.apply(this,arguments)||this};
_.p(k5,_.k);k5.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
k5.prototype.computeIsInitiallyChecked=function(N){return N===1};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],k5.prototype,"data",void 0);_.W([_.B2("#checkbox"),_.Q("design:type",Object)],k5.prototype,"checkbox",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],k5);
_.n(k5,"ytd-subscription-toggle-option-renderer",function(){if(qU1!==void 0)return qU1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return qU1=N},{mode:1});var qi=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return N};
_.p(qi,_.k);qi.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"}}}};
qi.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qi.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var N=_.O6(this.hostElement).querySelector("#options").selected;N=this.data.options[N].subscriptionRadioOptionRenderer.serviceEndpoint;var t=_.O6(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");t&&N&&N.modifyChannelNotificationPreferenceEndpoint&&(t=t.getValue())&&(N.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[t]);_.cY().resolve(_.jo).resolveCommand(N,{form:{element:this.hostElement}});
_.sl(this.hostElement,"yt-close-popup-action")};
_.cv.Object.defineProperties(qi.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var N=this.data.options,t=0;t<N.length;t++){var O=N[t].subscriptionRadioOptionRenderer;if(O&&O.selected)return t}return null}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],qi.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],qi.prototype,"eventForwardingBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],qi.prototype,"data",void 0);_.W([_.a("data.options"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],qi.prototype,"initialIndex",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],qi);
_.n(qi,"ytd-subscription-notification-options-renderer",function(){if(kK1!==void 0)return kK1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return kK1=N},{mode:1});var f81;var nz5=function(){return _.k.apply(this,arguments)||this};
_.p(nz5,_.k);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nz5.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nz5.prototype,"data",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],nz5);
_.n(nz5,"ytd-tvfilm-offer-groups-renderer",function(){if(f81!==void 0)return f81;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return f81=N},{mode:1});var WUm;var fQ=function(){return _.k.apply(this,arguments)||this};
_.p(fQ,_.k);_.V=fQ.prototype;_.V.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.V.computeThumbnailClass=function(N){return N.thumbnailOverlays?N.isShow?"thumbnail-show":"thumbnail-movie":N.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.V.computeCommerceSectionClass=function(N){return N.offers&&N.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.V.computeTitleClass=function(N){return N.offers&&N.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.V.onDataChanged=function(){[].concat(_.W6(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(N){N.onShow()})};
fQ.prototype.onDataChanged=fQ.prototype.onDataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],fQ.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],fQ.prototype,"onDataChanged",null);
_.W([_.en({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],fQ);
_.n(fQ,"ytd-ypc-offers-overlay-renderer",function(){if(WUm!==void 0)return WUm;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return WUm=N},{mode:_.O4("kevlar_poly_si_batch_j028")?1:2});var rU1;var I8O=function(){this.usedMethods=new Set};
I8O.prototype.add=function(N){this.usedMethods.add(N)};
I8O.prototype.reset=function(){this.usedMethods.clear()};var l8n,Qeq;
_.mWO=function(N,t){this.query=N;this.previousSearchQuery=t;this.id=l8n++;if(!Qeq){t=_.Ro("SBOX_SETTINGS");N="https://"+((t==null?void 0:t.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var O=t==null?void 0:t.REQUEST_LANGUAGE;O&&(N+="&hl="+O);(O=t==null?void 0:t.REQUEST_DOMAIN)&&(N+="&gl="+O);N+="&client=youtube&gs_ri=youtube";(O=t==null?void 0:t.SUGG_EXP_ID)&&(N+="&sugexp="+encodeURIComponent(O));(O=t==null?void 0:t.PSUGGEST_TOKEN)&&(N+="&tok="+O);(t=t==
null?void 0:t.SESSION_INDEX)&&(N+="&authuser="+t);_.h("desktop_enable_visual_suggest")&&(N+="&h=180&w=320&ytvs=1");Qeq=N}};
_.Ezm=function(N){var t="q="+encodeURIComponent(N.query);N.previousSearchQuery&&(t+="&pq="+encodeURIComponent(N.previousSearchQuery));return t};
_.GKn=function(){var N=_.Ro("SBOX_SETTINGS"),t={};if(N==null?0:N.SEND_VISITOR_DATA)t["X-Goog-Visitor-Id"]=N==null?void 0:N.VISITOR_DATA;return t};
_.RXi=function(N){var t=Qeq;t+="&gs_id="+N.id.toString(36);t+="&q="+encodeURIComponent(N.query);t+="&cp="+N.query.length;N.previousSearchQuery&&(t+="&pq="+encodeURIComponent(N.previousSearchQuery));(N=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(t+="&video_id="+N);return t};
l8n=0;Qeq="";var vz1=_.sj.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,JU5=_.sj.SEARCH_ENTITY_SUGGESTION_MOVIE,oz5=_.sj.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,sez=_.sj.SEARCH_ENTITY_SUGGESTION_TV_SHOW,NK1=function(N,t){this.text=N;this.bold=t},tK5=function(N,t,O){this.input=t;
this.index=O;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=N[0];this.type=N[1];this.subtypes=N[2];var H;this.displayText=iAx((H=N[3])==null?void 0:H.b);var A;this.ignoredPrefix=iAx((A=N[3])==null?void 0:A.a);var Z,U;this.hasNewVideo=((Z=N[3])==null?void 0:(U=Z.zam)==null?void 0:U.toString())==="true"?!0:!1;var C;this.visualSuggestUrl=(C=N[3])==null?void 0:C.zai;var F;this.entityType=iAx((F=N[3])==null?void 0:F.zap);var g;this.entityName=iAx((g=N[3])==null?void 0:g.zao);var B;t=
iAx((B=N[3])==null?void 0:B.zaf);var c;this.entityMid=(c=N[3])==null?void 0:c.zae;B=uJi(this.subtypes,this.entityMid);if(t&&B){if(t){c="";switch(B){case "YOUTUBE_ENTITY_TYPE_SONG":c=oz5;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":c=vz1;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":c=sez;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":c=JU5}B=B==="YOUTUBE_ENTITY_TYPE_SONG"||B==="YOUTUBE_ENTITY_TYPE_ALBUM"?c+" \u2022  \u2022 "+t:t}else B="";this.entitySubtitle=B}var u;this.externalChannelId=(u=N[3])==null?void 0:u.zav;
var S;this.entityThumbnailAttributionUrl=(S=N[3])==null?void 0:S.zaq},H31=function(N,t){var O=[],H,A=(H=N.displayText)!=null?H:N.text;
(t==null?0:t.useEntityName)&&O35(N)&&N.entityName&&(A=N.entityName);if(N.type===33)return O.push(new NK1(A,!1)),O;if(A.length>=N.input.length&&A.substring(0,N.input.length)===N.input)O.push(new NK1(N.input,!1)),O.push(new NK1(A.substring(N.input.length),!0));else{var Z=new Set(N.input.split(/\s/)),U=A.split(/\s/);O=U.map(function(C,F){return new NK1(C.trim()+(F===U.length-1?"":" "),!Z.has(C))})}return O},O35=function(N){var t=!!uJi(N.subtypes);
N=!!N.entityMid;return t||N};_.Aon=function(N){this.rawResponse=["",[],{}];this.suggestions=[];try{var t=JSON.parse(Swf(N));if(typeof t==="object"&&t!==null)this.rawResponse=t;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(H){console.log("Suggest: Failed to parse SuggestResponse!");return}var O=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(H,A){return new tK5(H,O,A)})};var Z3m=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new I8O;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21179_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},VKi,Dvm=function(){VKi||(VKi=new Z3m);
return VKi};
Z3m.prototype.updateSuggestions=function(N){var t=this;this.availableSuggestions.forEach(function(O){t.previousSuggestions[O]=!0});
this.availableSuggestions=N.map(function(O){var H=O.type.toString();O.subtypes.length>0&&(H+="i"+O.subtypes.join("i"),H+="k"+O.suggestionSources.COMPLETE_SERVER.toString());return H})};
var Uvr=function(N,t){var O=Date.now();N.firstEditTime<0&&(N.firstEditTime=O);t&&(N.lastQueryBuildTime=O);N.lastEditTime=O};
Z3m.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21179_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var CTx=function(N){var t="";N.availableSuggestions.forEach(function(A){delete N.previousSuggestions[A]});
for(var O=_.D(Object.keys(N.previousSuggestions)),H=O.next();!H.done;H=O.next())H=H.value,N.previousSuggestions[H]&&(t+=(t?"j":"")+H);return t},Kcf=function(N,t){var O=[];
t&&(O[1]=t.toString());O[0]="youtube";O[7]=Date.now()-N.startTime;O[6]=N.sessionNumber;N.zeroPrefixSuggestionCount>=0&&(O[33]=N.zeroPrefixSuggestionCount);O[13]=N.outOfSyncResponseCount;if(N.availableSuggestions.length>0){for(var H=t="",A=0,Z=_.D(N.availableSuggestions),U=Z.next();!U.done;U=Z.next())U=U.value,U!==H&&(A>1&&(t+="l"+A),t+=(H?"j":"")+U,A=0,H=U),A+=1;A>1&&(t+="l"+A);O[3]=t}O[35]=CTx(N);N.selectedSuggestionIndex>=0&&(O[2]=N.selectedSuggestionIndex);var C;if(t=(C=_.Ro("SBOX_SETTINGS"))==
null?void 0:C.SUGG_EXP_ID)O[19]=N.normalize(t),C=0,N.experimentTriggeredBeforeFinal&&(C|=1),N.experimentTriggeredFinal&&(C|=2),O[20]=C;O[26]=Array.from(N.inputMethodsTracker.usedMethods).join("j");if(N.JSC$21179_totalRoundTripTime>0){O[15]=N.JSC$21179_totalRoundTripTime;O[14]=N.maxRoundTripTime;C=[];for(A=t=0;A<10;A++)H=N.roundTripTimeHistogram[A],H===0?t++:(t>1?C.push(A+"-"+H):t===1?C.push("0j"+H):C.push(H.toString()),t=0);C=C.join("j");O[16]=C}N.zeroPrefixRoundTripTime>0&&(O[36]=N.zeroPrefixRoundTripTime);
N.lastQueryBuildTime>0&&(O[18]=N.lastQueryBuildTime-N.startTime);N.firstEditTime>0&&(O[4]=N.firstEditTime-N.startTime);N.lastEditTime>0&&(O[5]=N.lastEditTime-N.startTime);return O.join(".")};
Z3m.prototype.normalize=function(N){return N.replaceAll(".","-")};
var Fc5=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var nQ=function(){var N=_.k.apply(this,arguments)||this;N.microphoneSpinnerActive=!1;N.noAnimations=!1;N.boundExitClick=function(){N.onExitButtonClick()};
N.speechOverlayClassName="";N.isLevelAnimating=!1;N.playCloseDialogAudioFeedback=!0;N.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return N};
_.p(nQ,_.k);_.V=nQ.prototype;_.V.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.V.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=IVx()};
_.V.dataChanged=function(){this.logDialog()};
_.V.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var N;(N=this.manager.audioPlayer)!=null&&(N.JSC$20492_audioEnabled=!1)}this.manager.stop();(N=this.manager.audioPlayer)!=null&&(N.JSC$20492_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.V.handleSpeechQueryCompleteAction=function(N){var t=N.navigationAction;t&&(N.trackingParams&&_.gF().graftServerVe(N.trackingParams,this.dialogVe,5),_.or(this.hostElement,"yt-navigate",{endpoint:t,tempData:this.getNavigationParams(t),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.V.onExitButtonClick=function(){this.closeDialog()};
_.V.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var N;if((N=this.manager)!=null){var t;(t=N.audioPlayer)==null||sO(t,"failure");N.setState("microphone-off");N.stop()}}else(N=this.manager)==null||N.start()};
_.V.transcriptionChanged=function(){var N,t;(((N=this.transcription)==null?0:N.low)||((t=this.transcription)==null?0:t.high))&&this.setState("transcribing",this.transcription)};
_.V.stateChanged=function(){this.setState(this.state,this.transcription)};
_.V.logDialog=function(){var N;(N=this.data)!=null&&N.trackingParams&&(N=_.gF(),_.Ws(N,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=N.graftServerVe(this.data.trackingParams,void 0,5))};
_.V.getNavigationParams=function(N){var t={};if(_.h("web_yt_searchbox")){var O=Dvm();O.inputMethodsTracker.add(6);O=Kcf(O,15);t.gs_l=O;var H;t.oq=((H=_.M(N,_.Bi))==null?void 0:H.query)||""}else if(N=window.ytvoicesearchloggingparams){if(N=N())t.oq=N.oq,t.gs_l=N.gs_l}else _.HY(Error("Jl"));return t};
_.V.closeDialog=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.V.setState=function(N,t){if(this.data){var O=this.data,H={};switch(N){case "listening":H={headerText:O.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:O.microphoneButtonAriaLabel};break;case "timeout":H={headerText:O.promptHeader,microphoneState:"try-again",microphoneLabel:O.promptMicrophoneLabel,microphoneAriaLabel:O.promptMicrophoneLabel};break;case "microphone-off":H={headerText:O.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:O.promptMicrophoneLabel,
microphoneAriaLabel:O.promptMicrophoneLabel};break;case "transcribing":(t==null?0:t.low)||(t==null?0:t.high)?H={transcriptionLow:t==null?void 0:t.low,transcriptionHigh:t==null?void 0:t.high,microphoneState:"speaking",microphoneAriaLabel:O.microphoneButtonAriaLabel}:H={headerText:O.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:O.microphoneButtonAriaLabel};break;case "processing":H={headerText:O.loadingHeader,microphoneState:"processing",microphoneAriaLabel:O.microphoneButtonAriaLabel};
break;case "offline":H={headerText:O.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:O.connectionErrorMicrophoneLabel,microphoneAriaLabel:O.connectionErrorMicrophoneLabel};break;case "permission":H={headerText:O.permissionsHeader,bodyLine1:O.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:O.permissionsSubtext};break;case "permission-denied":H={headerText:O.disabledHeader,bodyLine1:O.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:O.disabledSubtext}}H.className=
N;this.speechOverlayState=H;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.V.setMicrophoneState=function(N){var t=this.isLevelAnimating;this.isLevelAnimating=N==="speaking";!t&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=N==="processing"&&!this.noAnimations};
_.V.setClass=function(N){this.speechOverlayClassName&&_.VQ(this.hostElement,this.speechOverlayClassName,!1);N&&(this.speechOverlayClassName=N,_.VQ(this.hostElement,N,!0))};
_.V.runLevelAnimation=function(){var N=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var t=1+Math.random()*.75,O=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+O/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+t+")");_.GB.addJob(function(){N.runLevelAnimation()},3,O)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
nQ.prototype.stateChanged=nQ.prototype.stateChanged;nQ.prototype.transcriptionChanged=nQ.prototype.transcriptionChanged;nQ.prototype.onPopupClosed=nQ.prototype.onPopupClosed;nQ.prototype.dataChanged=nQ.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],nQ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],nQ.prototype,"rendererStamperBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],nQ.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],nQ.prototype,"eventForwardingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],nQ.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],nQ.prototype,"speechOverlayState",void 0);
_.W([_.X(),_.Q("design:type",Object)],nQ.prototype,"microphoneSpinnerActive",void 0);_.W([_.X({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Q("design:type",Object)],nQ.prototype,"noAnimations",void 0);_.W([_.X({selector:function(N){var t;return(t=N.voiceSearch)==null?void 0:t.transcription}}),
_.Q("design:type",Object)],nQ.prototype,"transcription",void 0);_.W([_.X({selector:function(N){var t;return(t=N.voiceSearch)==null?void 0:t.overlay}}),
_.Q("design:type",String)],nQ.prototype,"state",void 0);_.W([_.X(),_.Q("design:type",Object)],nQ.prototype,"boundExitClick",void 0);_.W([_.B2("#microphone-levels"),_.Q("design:type",HTMLElement)],nQ.prototype,"level",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nQ.prototype,"dataChanged",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nQ.prototype,"onPopupClosed",null);
_.W([_.ic("transcription"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nQ.prototype,"transcriptionChanged",null);_.W([_.ic("state"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],nQ.prototype,"stateChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],nQ);
_.n(nQ,"ytd-voice-search-dialog-renderer",function(){if(rU1!==void 0)return rU1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return rU1=N},{mode:1});var dvq;var Wp=function(){var N=_.k.apply(this,arguments)||this;N.isOverlay=!1;N.hidden=!1;return N};
_.p(Wp,_.k);_.V=Wp.prototype;_.V.onPopupClosed=function(){this.toggleIconState(!1)};
_.V.computeIcon=function(){var N,t,O;return(t=_.M((N=this.data)==null?void 0:N.icon,fQf))==null?void 0:(O=t.icon)==null?void 0:O.iconType};
_.V.computeIconBadgeShape=function(){var N;return{iconBadgeType:"cart",iconBadgeText:(N=this.iconBadgeEntity)==null?void 0:N.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.V.onClick=function(){var N;(N=this.data)!=null&&N.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.V.computeHidden=function(N){return!N};
_.V.toggleIconState=function(N){this.iconButton&&(this.iconButton.pressed=N)};
Wp.prototype.onPopupClosed=Wp.prototype.onPopupClosed;_.W([_.Y(_.Ue),_.Q("design:type",Object)],Wp.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Wp.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Wp.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Wp.prototype,"isOverlay",void 0);
_.W([_.X({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Q("design:type",Object)],Wp.prototype,"hidden",void 0);_.W([_.X({selectorArgs:["data.iconBadgeEntityKey"],selector:function(N,t){return _.CM(N.entities,"iconBadgeEntity",t)}}),
_.Q("design:type",Object)],Wp.prototype,"iconBadgeEntity",void 0);_.W([_.B2("yt-icon-button"),_.Q("design:type",HTMLButtonElement)],Wp.prototype,"iconButton",void 0);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Wp.prototype,"onPopupClosed",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Wp);
_.n(Wp,"ytd-icon-badge-topbar-button-renderer",function(){if(dvq!==void 0)return dvq;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return dvq=N},{mode:1});var gin;var rw=function(){var N=_.k.apply(this,arguments)||this;N.premiumOptions=[];return N};
_.p(rw,_.k);rw.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.cv.Object.defineProperties(rw.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],rw.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Array)],rw.prototype,"premiumOptions",void 0);_.W([_.a("premiumOptions"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],rw.prototype,"hasPremiumOptions",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],rw);
_.n(rw,"ytd-offline-promo-content",function(){if(gin!==void 0)return gin;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return gin=N},{mode:1});var yon;var IA=function(){var N=_.k.apply(this,arguments)||this;N.premiumOptions=[];return N};
_.p(IA,_.k);IA.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var N;this.premiumOptions=j5q((N=this.data)==null?void 0:N.formats)};
IA.prototype.onClickSubmit=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var N;(N=_.si())==null||N.pause()};
IA.prototype.attached=function(){this.JSC$21199_scroller&&(this.JSC$21199_scroller.dialogElement=this.hostElement.parentNode)};
_.cv.Object.defineProperties(IA.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
IA.prototype.dataChanged=IA.prototype.dataChanged;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],IA.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],IA.prototype,"data",void 0);
_.W([_.X({computed:"computeIcon_(data.headersIcon)",value:""}),_.Q("design:type",String)],IA.prototype,"headersIcon",void 0);_.W([_.X(),_.Q("design:type",Array)],IA.prototype,"premiumOptions",void 0);_.W([_.B2("#scroller"),_.Q("design:type",Object)],IA.prototype,"JSC$21199_scroller",void 0);_.W([_.a("headersIcon"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],IA.prototype,"showIcon",null);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],IA.prototype,"dataChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],IA);
_.n(IA,"ytd-offline-promo-renderer",function(){if(yon!==void 0)return yon;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return yon=N},{mode:1});var BK1;var lH=function(){var N=_.k.apply(this,arguments)||this;N.playbackPauseInterval=NaN;N.isLoading=!1;N.hasError=!1;N.dialogClass="";N.youtubeLabel=_.CJ("LOGO_ALT_LABEL",{},"YouTube Home");N.logoName="yt-logos-ext:yt-logo-updated";N.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return N};
_.p(lH,_.k);_.V=lH.prototype;_.V.onDataChange=function(){var N;if(this.showEOMV1Text=!((N=this.data)==null||!N.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.V.attached=function(){this.pausePlayer()};
_.V.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.V.handleLangSelect=function(N){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[N.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.V.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.V.handleSaveConsent=function(N){var t=this;this.showLoadingSpinner();this.showLoadingSpinner();f51(_.M(N,NMJ)).catch(function(O){_.J_(new _.fF("Something went wrong when save consent "+(O.message?O.message:O)+"."));t.hideLoadingSpinner();t.showErrorMessage()})};
_.V.handleDisablePersonalization=function(N){var t=this;this.showLoadingSpinner();nJm(_.M(N,s2x)).then(function(){t.dialog.close();t.resumePlayer()}).catch(function(O){_.J_(new _.fF("Something went wrong when disable personalization "+(O.message?O.message:O)+"."));
t.hideLoadingSpinner();t.showErrorMessage()})};
_.V.showLoadingSpinner=function(){var N=this;this.showSpinnerJobId=_.GB.addLowPriorityJob(function(){N.isLoading=!0},500)};
_.V.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.GB.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.V.showErrorMessage=function(){var N=this;this.hasError=!0;_.GB.addLowPriorityJob(function(){N.hasError=!1},2E3)};
_.V.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.LF(function(){try{var N=_.si();N&&N.pause()}catch(t){}},100))};
_.V.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var N=_.si();N&&N.play()}catch(t){}};
_.cv.Object.defineProperties(lH.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.eomV1Text)return[];N=[];for(var t=["SHIELD","WARNING","BAR_CHART"],O=this.data.eomV1Text.essentialCookieMsg.items,H=0;H<t.length&&H<O.length;H++)N.push({icon:t[H],text:O[H]});return N}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var N;if((N=this.data)==null||!N.eomV1Text)return[];N=[];for(var t=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],O=this.data.eomV1Text.nonEssentialCookieMsg.items,H=0;H<t.length&&H<O.length;H++)N.push({icon:t[H],text:O[H]});return N}}});
lH.prototype.onDataChange=lH.prototype.onDataChange;_.W([_.X(),_.Q("design:type",Object)],lH.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],lH.prototype,"showEOMV1Text",void 0);_.W([_.X(),_.Q("design:type",Object)],lH.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Object)],lH.prototype,"hasError",void 0);_.W([_.X(),_.Q("design:type",Number)],lH.prototype,"showSpinnerJobId",void 0);_.W([_.X(),_.Q("design:type",Object)],lH.prototype,"dialogClass",void 0);
_.W([_.B2("#dialog"),_.Q("design:type",Object)],lH.prototype,"dialog",void 0);_.W([_.B2("#cb-header"),_.Q("design:type",HTMLElement)],lH.prototype,"header",void 0);_.W([_.B2("#lang-select"),_.Q("design:type",HTMLElement)],lH.prototype,"langSelect",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],lH.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);
_.W([_.X(),_.Q("design:type",String)],lH.prototype,"youtubeLabel",void 0);_.W([_.X(),_.Q("design:type",Object)],lH.prototype,"logoName",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],lH.prototype,"onDataChange",null);_.W([_.a("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],lH.prototype,"eomEssentialCookieMsgItems",null);
_.W([_.a("data"),_.Q("design:type",Array),_.Q("design:paramtypes",[])],lH.prototype,"eomNonEssentialCookieMsgItems",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],lH);
_.n(lH,"ytd-consent-bump-v2-lightbox",function(){if(BK1!==void 0)return BK1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return BK1=N},{mode:1});var com;var QG=function(){return _.k.apply(this,arguments)||this};
_.p(QG,_.k);QG.prototype.ready=function(){if(!_.xv()||YTJ)var N=!0;else YTJ=!0,N=!1;N||(N=document.querySelector("ytd-app"),N||(N=document.body),this.internalLightBox=_.O6(N).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.W([_.X(),_.Q("design:type",Object)],QG.prototype,"data",void 0);_.W([_.B2("#lightbox"),_.Q("design:type",Object)],QG.prototype,"lightBox",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],QG);
_.n(QG,"ytd-consent-bump-v2-renderer",function(){if(com!==void 0)return com;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return com=N},{mode:1});var $vz;var jcm;var i3m;var ma=function(){return _.k.apply(this,arguments)||this};
_.p(ma,_.k);_.V=ma.prototype;_.V.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&IXz(this.toastManager,this.toastType)};
_.V.open=function(N){this.toast&&(this.ephemeralAction&&_.cY().resolve(_.w2).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=N!=null?N:0,this.toastManager.enqueue(this.toast,N)):this.toast.open())};
_.V.close=function(N){var t;(t=this.toast)==null||t.close();this.toastManager&&N===1&&IXz(this.toastManager,N)};
_.V.refit=function(){var N;(N=this.toast)==null||N.refit()};
_.V.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var N;(N=this.toast)==null||N.close()}};
_.V.setVerticalOffset=function(N){this.toast&&(this.toast.verticalOffset=N,this.toast.fit())};
_.V.computeButtonClass_=function(N){return N?"toast-button":""};
_.V.computeText_=function(N){return _.Gv(N)};
_.V.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.uW("toast-opened-changed",this.toastOpened))};
_.V.updateToastOpenedFromBinding=function(N){this.toastOpened=N.detail.value};
_.cv.Object.defineProperties(ma.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var N,t,O=(N=this.data)==null?void 0:(t=N.actionButton)==null?void 0:t.buttonRenderer;return(O==null?void 0:O.command)||(O==null?void 0:O.serviceEndpoint)||(O==null?void 0:O.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var N=[],t;((t=this.data)==null?0:t.responseText)&&N.push(_.Gv(this.data.responseText));var O;((O=this.data)==null?0:O.subText)&&N.push(_.Gv(this.data.subText));var H,A;if((H=this.data)==null?0:(A=H.actionButton)==null?0:A.buttonRenderer){var Z,U;N.push(((Z=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(U=Z.accessibilityData)==null?void 0:U.label)||_.Gv(this.data.actionButton.buttonRenderer.text))}return N.filter(function(C){return C}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var N,t;return(t=(N=this.toast)==null?void 0:N.opened)!=null?t:!1}}});
ma.prototype.toastOpenedChangedForBinding=ma.prototype.toastOpenedChangedForBinding;ma.prototype.toastOpenedChanged=ma.prototype.toastOpenedChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],ma.prototype,"ytEventForwardingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ma.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],ma.prototype,"duration",void 0);
_.W([_.X(),_.Q("design:type",Number)],ma.prototype,"toastType",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],ma.prototype,"useCloseButton",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],ma.prototype,"closeToastOnActionButtonClick",void 0);_.W([_.X({value:function(){return _.CJ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Q("design:type",String)],ma.prototype,"closeButtonAriaLabel",void 0);_.W([_.X(),_.Q("design:type",Boolean)],ma.prototype,"toastOpened",void 0);_.W([_.X(),_.Q("design:type",Boolean)],ma.prototype,"hasOpened",void 0);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ma.prototype,"command",null);_.W([_.a("labelText","command","duration"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ma.prototype,"ephemeralAction",null);
_.W([_.a("ephemeralAction"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],ma.prototype,"hasEphemeralAction",null);_.W([_.B2("#toast"),_.Q("design:type",Object)],ma.prototype,"toast",void 0);_.W([_.X({value:function(){return{style:"call-to-action-inverse"}}}),
_.Q("design:type",Object)],ma.prototype,"buttonOverrides",void 0);_.W([_.X({value:{style:"mono-inverse"}}),_.Q("design:type",Object)],ma.prototype,"closeButtonOverrides",void 0);_.W([_.X({value:function(){return _.cY().resolve(_.BY(_.L4))}}),
_.Q("design:type",Object)],ma.prototype,"toastManager",void 0);_.W([_.a("data.responseText","data.subText","data.actionButton"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],ma.prototype,"labelText",null);_.W([_.gz("toastOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ma.prototype,"toastOpenedChanged",null);
_.W([_.gz("toastOpened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],ma.prototype,"toastOpenedChangedForBinding",null);_.W([_.wz({is:"yt-notification-action-renderer",disableElementRegistration:!0})],ma);
_.n(ma,"yt-notification-action-renderer",function(){if(i3m===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;jcm===void 0&&(jcm=document.createElement("template"));var H=jcm;O.call(t,H.content.cloneNode(!0),N.content.firstChild);i3m=N}N=i3m;return N},{mode:2});var Ez=function(){var N=_.k.apply(this,arguments)||this;N.duration=4E3;N.downloadingCount=0;N.downloadedCount=0;N.downloadingOnlySmartDownloads=!1;N.sessionTotalDownloads=0;N.sessionDownloaded=0;N.previousSessionsDownloaded=0;N.totalDownloadPercentage=0;N.currentDownloadProgress=0;N.currentDownloadPercentage=0;N.isLeaderTab=!0;N.isFullScreen=!1;N.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};N.boundBeforeUnload=function(t){N.isLeaderTab&&N.downloadingCount>0&&(t.preventDefault(),
t.returnValue=!0)};
return N};
_.p(Ez,_.k);_.V=Ez.prototype;
_.V.open=function(){this.updateDownloadState();if(this.data){var N=this.sessionDownloaded+1,t=this.sessionTotalDownloads>1?_.CJ("VIDEOS_DOWNLOADING_RATIO",{downloaded:N.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+N+"/"+this.sessionTotalDownloads):_.CJ("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(t=this.sessionTotalDownloads>1?_.CJ("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:N.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
N+"/"+this.sessionTotalDownloads):_.CJ("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));N=this.isLeaderTab?_.CJ("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Gv(this.data.responseText)!==t||_.Gv(this.data.subText)!==N)this.set("data.responseText",_.E_(t)),this.set("data.subText",_.E_(N)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.V.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.V.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.V.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.V.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var N=this.downloadedCount-this.previousSessionsDownloaded;N<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-N);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.V.handleFullscreenChange=function(N){(this.isFullScreen=N)||this.updatePopup()};
Ez.prototype.updateCurrentDownloadProgress=Ez.prototype.updateCurrentDownloadProgress;Ez.prototype.updatePopup=Ez.prototype.updatePopup;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],Ez.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],Ez.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],Ez.prototype,"actionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Ez.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],Ez.prototype,"duration",void 0);_.W([_.X({selector:function(N){return _.XTx(N.entities).length}}),
_.Q("design:type",Object)],Ez.prototype,"downloadingCount",void 0);_.W([_.X({selector:Jd5}),_.Q("design:type",Object)],Ez.prototype,"downloadedCount",void 0);_.W([_.X({selector:function(N){var t=_.XTx(N.entities);return vJ1(N.entities,t)}}),
_.Q("design:type",Object)],Ez.prototype,"downloadingOnlySmartDownloads",void 0);_.W([_.X(),_.Q("design:type",Object)],Ez.prototype,"sessionTotalDownloads",void 0);_.W([_.X(),_.Q("design:type",Object)],Ez.prototype,"sessionDownloaded",void 0);_.W([_.X(),_.Q("design:type",Object)],Ez.prototype,"previousSessionsDownloaded",void 0);_.W([_.X(),_.Q("design:type",Object)],Ez.prototype,"totalDownloadPercentage",void 0);
_.W([_.X({selector:function(N){var t;N=(t=_.XTx(N.entities))!=null?t:[];return N.length>0?_.Miz(N.slice(-1)):0}}),
_.Q("design:type",Object)],Ez.prototype,"currentDownloadProgress",void 0);_.W([_.X(),_.Q("design:type",Object)],Ez.prototype,"currentDownloadPercentage",void 0);_.W([_.X({selector:_.nO9}),_.Q("design:type",Object)],Ez.prototype,"isLeaderTab",void 0);_.W([_.B2("yt-notification-action-renderer"),_.Q("design:type",Object)],Ez.prototype,"notificationActionRenderer",void 0);
_.W([_.ic("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ez.prototype,"updatePopup",null);_.W([_.ic("currentDownloadProgress"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Ez.prototype,"updateCurrentDownloadProgress",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Ez);
_.n(Ez,"ytd-video-download-toast-renderer",function(){if($vz!==void 0)return $vz;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return $vz=N},{mode:1});var uj1;var SYx;var GQ=function(){return _.k.apply(this,arguments)||this};
_.p(GQ,_.k);GQ.prototype.computeIsRedLogo=function(N,t){!N&&t&&(N=t);return N==="YOUTUBE_RED_LOGO"||N==="YOUTUBE_PREMIUM_LOGO"};
GQ.prototype.computeLogoName=function(N){N=this.componentBehavior.computeIcon_(N);return N===""?"yt-logos-ext:yt-logo-updated":N};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],GQ.prototype,"componentBehavior",void 0);_.W([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Q("design:type",Boolean)],GQ.prototype,"isRedLogo",void 0);_.W([_.X({computed:"computeLogoName(data)"}),_.Q("design:type",String)],GQ.prototype,"logoName",void 0);_.W([_.X({value:{}}),_.Q("design:type",Object)],GQ.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],GQ.prototype,"logoType",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-logo"})],GQ);
_.n(GQ,"ytd-logo",function(){if(SYx!==void 0)return SYx;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return SYx=N},{mode:_.O4("kevlar_poly_si_batch_j074")?1:2});var RA=function(){var N=_.k.apply(this,arguments)||this;N.animationRef={};return N};
_.p(RA,_.k);_.V=RA.prototype;_.V.attached=function(){document.addEventListener("yt-navigate-finish",_.Fb(this,this.logYoodle))};
_.V.detached=function(){document.removeEventListener("yt-navigate-finish",_.Fb(this,this.logYoodle))};
_.V.logYoodle=function(){var N,t;if((N=this.data)==null?0:(t=N.loggingDirectives)==null?0:t.trackingParams)this.ytRendererBehavior.markDirty(),_.gF().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.V.computeHideImg=function(N,t){return!!N||!!t};
_.V.computeHideYtdLogo=function(N,t){return!N||!!t};
_.V.computeHideLottie=function(N){return!N};
_.V.computeIsRedLogo=function(N){return N==="YOUTUBE_RED_LOGO"||N==="YOUTUBE_PREMIUM_LOGO"};
_.V.renderLogoEntity=function(){var N=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),t=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),O=this.getLogoTitleText(this.data),H=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==N&&(this.url=N);this.animatedUrl!==t&&(this.animatedUrl=t);this.logoTitleText!==O&&(this.logoTitleText=O);this.lottieUrl!==H&&(this.lottieUrl=H,this.lottiePlayerProps=this.computeLottiePlayerProps(H))};
_.V.getSanitizedThumbnail=function(N){return N&&N.thumbnails?_.WoO(N.thumbnails,122)||"":""};
_.V.getThumbnailUrl=function(N,t){if(!t)return"";var O,H;N=N?(O=t.darkThemeLogo)==null?void 0:O.thumbnail:(H=t.lightThemeLogo)==null?void 0:H.thumbnail;return this.getSanitizedThumbnail(N)};
_.V.getAnimatedThumbnailUrl=function(N,t){return t?this.getSanitizedThumbnail(N?t.darkThemeAnimatedLogo:t.lightThemeAnimatedLogo):""};
_.V.getLogoTitleText=function(N){if(N)return _.Gv(N.tooltipText)};
_.V.computeLogoIcon=function(N,t){if(t){var O,H;return N?(O=t.darkThemeLogo)==null?void 0:O.icon:(H=t.lightThemeLogo)==null?void 0:H.icon}};
_.V.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.V.getLottieUrl=function(N,t){var O,H,A,Z;return N?t==null?void 0:(O=t.darkThemeLogo)==null?void 0:(H=O.lottieAnimation)==null?void 0:H.url:t==null?void 0:(A=t.lightThemeLogo)==null?void 0:(Z=A.lottieAnimation)==null?void 0:Z.url};
_.V.computeLottiePlayerProps=function(N){if(N){var t;if((t=this.animationRef)==null?0:t.lottieEl){var O;(O=this.animationRef)==null||O.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:N,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.V.onLottieError=function(){this.data&&this.lottieUrl&&_.or(this.hostElement,"yoodle-error")};
_.V.onImgError=function(){this.data&&!this.lottieUrl&&_.or(this.hostElement,"yoodle-error")};
RA.prototype.playAnimation=RA.prototype.playAnimation;RA.prototype.renderLogoEntity=RA.prototype.renderLogoEntity;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],RA.prototype,"data",void 0);_.W([_.X({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Q("design:type",Boolean)],RA.prototype,"hideImg",void 0);
_.W([_.X({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Q("design:type",Boolean)],RA.prototype,"hideYtdLogo",void 0);_.W([_.X({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Q("design:type",Boolean)],RA.prototype,"hideLottie",void 0);_.W([_.X({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Q("design:type",Boolean)],RA.prototype,"isRedLogo",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],RA.prototype,"useDarkThemeYoodle",void 0);_.W([_.X(),_.Q("design:type",String)],RA.prototype,"url",void 0);_.W([_.X(),_.Q("design:type",String)],RA.prototype,"animatedUrl",void 0);_.W([_.X(),_.Q("design:type",String)],RA.prototype,"logoTitleText",void 0);_.W([_.X({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Q("design:type",Object)],RA.prototype,"logoIcon",void 0);_.W([_.X(),_.Q("design:type",Object)],RA.prototype,"logoType",void 0);
_.W([_.X(),_.Q("design:type",String)],RA.prototype,"lottieUrl",void 0);_.W([_.X(),_.Q("design:type",Object)],RA.prototype,"lottiePlayerProps",void 0);_.W([_.X(),_.Q("design:type",Object)],RA.prototype,"animationRef",void 0);_.W([_.gz("data"),_.gz("useDarkThemeYoodle"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],RA.prototype,"renderLogoEntity",null);
_.W([_.dz("click"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],RA.prototype,"playAnimation",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],RA);
_.n(RA,"ytd-yoodle-renderer",function(){if(uj1!==void 0)return uj1;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return uj1=N},{mode:_.O4("kevlar_poly_si_batch_j074")?1:2});var h61;var MKO;var b35=_.Wz.currentPageTypeSelector,pOq=_.Wz.currentPageSubTypeSelector,vp=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return N};
_.p(vp,_.k);_.V=vp.prototype;_.V.onYoodleError=function(){_.h("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.V.computeLogoName=function(N){N=this.componentBehavior.computeIcon_(N);return N===""?"yt-logos-ext:yt-logo-updated":N};
_.V.computeTitle=function(N,t,O){return O&&(t==null?0:t.tooltipText)?_.Gv(t.tooltipText):_.Gv(N)};
_.V.computeAriaLabel=function(N,t,O){return O&&(t==null?0:t.tooltipText)?_.Gv(N):""};
_.V.computeShowYoodle=function(N,t,O){return!N||!t&&!!O&&!_.WW.isEmpty(O)};
_.V.onNavigateHomeAction=function(){if(_.h("kevlar_miniplayer_navigate_home_from_app_killswitch")){var N;(N=_.O6(this.hostElement).querySelector(".yt-simple-endpoint"))==null||N.click()}};
_.V.computeLogoHref=function(N,t,O){var H;(O==null?0:O.onTapCommand)?H=this.componentBehavior.computeHref_(O.onTapCommand):N&&(H=this.componentBehavior.computeHref_(N));return H?H:t};
_.V.computeCommand=function(N,t){return(t==null?void 0:t.onTapCommand)||N};
_.V.getEndpointForm=function(){if(_.h("kevlar_topbar_disable_cache_only_home")){var N=_.cY().resolve(_.VT),t=b35(N.getState())||"";N=pOq(N.getState())||"";return{disableCache:t==="ytd-browse"&&N==="home"}}return{disableCache:!0}};
vp.prototype.onYoodleError=vp.prototype.onYoodleError;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],vp.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],vp.prototype,"componentBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],vp.prototype,"ytdReduxBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],vp.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],vp.prototype,"countryCode",void 0);_.W([_.X({selectorArgs:["data.overrideEntityKey"],selector:function(N,t){return _.CM(N.entities,"logoEntity",t)}}),
_.Q("design:type",Object)],vp.prototype,"logoEntity",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Q("design:type",Boolean)],vp.prototype,"showYoodle",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],vp.prototype,"yoodleError",void 0);_.W([_.X({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Q("design:type",String)],vp.prototype,"titleText",void 0);
_.W([_.X({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Q("design:type",String)],vp.prototype,"ariaLabelText",void 0);_.W([_.X({value:"/"}),_.Q("design:type",String)],vp.prototype,"defaultEndpointUrl",void 0);_.W([_.X({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Q("design:type",String)],vp.prototype,"endpointUrl",void 0);
_.W([_.X({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Q("design:type",String)],vp.prototype,"command",void 0);_.W([_.X(),_.Q("design:type",Object)],vp.prototype,"logoType",void 0);_.W([_.X({}),_.Q("design:type",Boolean)],vp.prototype,"useDarkThemeYoodle",void 0);_.W([_.dz("yoodle-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],vp.prototype,"onYoodleError",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],vp);
_.n(vp,"ytd-topbar-logo-renderer",function(){if(MKO!==void 0)return MKO;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return MKO=N},{mode:_.O4("kevlar_poly_si_batch_j027")?1:2});var Lcn=0;var z6x=_.sj.SEARCH_APPEND_LABEL,YYi=_.sj.SUGGESTION_NEW_VIDEOS_TEXT,aw5=_.sj.SUGGESTION_THUMBNAIL_LABEL,TKx=_.sj.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,wOm=_.q(function(N){function t(Hl){var jJ,QO;return _.K(function(BA){if(BA.nextAddress==1)return jJ=new Request(Hl),_.Mo(BA,2),BA.yield(fetch(jJ,{credentials:"include"}),4);if(BA.nextAddress!=2)return US(!0),_.Do(BA,0);QO=_.ax(BA);_.J_(QO);_.Ty(BA)})}
var O=N.isHighlighted;var H=N.suggestion;var A=N.onClickCallback;var Z=N.onHoverUpdateCallback;var U=N.labels;var C=N.queryBuilderFunction;var F=N.onRemoveCallback;var g=N.suggestionIndex;var B=N.generateUniqueId;var c=N.highlightedId;var u=N.useScrollMargin;var S=N.isKeyboardMode;var b=null,z=null,w=null,P=_.Fy("div"),x=_.Fy("span");N=_.D(_.b$(!1,void 0,"LafNkf"));var l=N.next().value,I=N.next().value,r=_.yM("a",function(Hl){Hl&&_.pi(237477,Hl,z,function(jJ){z=jJ})}),E=_.yM("button",function(Hl){Hl&&
_.pi(237477,Hl,z,function(jJ){z=jJ})}),J=_.yM("div",function(Hl){Hl&&_.pi(281939,Hl,w,function(jJ){w=jJ})}),CN=_.Ui(function(Hl){if((Hl==null?void 0:Hl.button)===2)return Hl.preventDefault(),!1;
var jJ=_.z8();jJ&&b&&_.lp(jJ,b,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var QO;A(Hl,H().text,H().index,H().entityMid,Hl==null?void 0:(QO=Hl.detail)==null?void 0:QO.wasSelectedByKeyboard);return!1}),B4=function(){return H().type===35},zM=function(){return _.h("desktop_enable_single_suggestion_highlight")},jy=function(){return _.uP("desktop_suggestions_panel_row_height")||0},c4=function(){var Hl;
return _.h("desktop_enable_new_video_metadata")&&((Hl=H())==null?void 0:Hl.hasNewVideo)===!0},XO=function(){return _.h("desktop_enable_visual_suggest")},kx=function(){return _.h("desktop_enable_entity_suggest")&&O35(H())},fN=function(){return H().entitySubtitle},gf=function(){return zM()?(O==null?void 0:O())||v0()&&!(S==null?0:S()):(O==null?void 0:O())||v0()},yr=function(){var Hl=_.Ro("SBOX_SETTINGS");
return B4()&&!(Hl==null?0:Hl.HIDE_REMOVE_LINK)},sS=function(){return H31(H(),{useEntityName:kx()})},$X,pR=!(($X=_.cY().resolve(_.BY(_.WV)))==null||!$X()),wf=function(){return B4()?_.h("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},b1=function(){return U==null?void 0:U().SUGGESTION_DISMISS_LABEL},$r=function(){return U==null?void 0:U().SUGGESTION_DISMISSED_LABEL};
N=_.D(_.b$(!1,void 0,"JyfUlf"));$X=N.next().value;var US=N.next().value;N=_.D(_.b$(!1,void 0,"QKfAGe"));var H0=N.next().value,SE=N.next().value,v0=H0,hu=_.Ui(function(){C(x.value.innerText);return!1}),sp=_.Ui(function(Hl){Hl.preventDefault();
return!1}),LU=_.Ui(function(Hl){var jJ=H().text,QO=_.Ro("SBOX_SETTINGS"),BA="https://"+(QO.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
BA+="&delq="+encodeURIComponent(jJ);(jJ=QO==null?void 0:QO.PSUGGEST_TOKEN)&&(BA+="&tok="+jJ);(QO=QO==null?void 0:QO.SESSION_INDEX)&&(BA+="&authuser="+QO);t(BA);Hl.preventDefault();(Hl=_.z8())&&z&&_.lp(Hl,z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");F(g==null?void 0:g());return!1}),Qr=_.Ui(function(){if(zM()&&(S==null?0:S()))return!1;
SE(!0);Z(!0);return!1}),B0=_.Ui(function(){SE(!1);
Z(!1);return!1}),c0=_.Ui(function(){I(!0);
return!1}),Am=_.Ui(function(){I(!1);
return!1}),Rl=_.Ui(function(Hl){Hl.preventDefault();
if(H().entityThumbnailAttributionUrl){w&&_.lA(_.gF(),w);var jJ=H().entityThumbnailAttributionUrl;Hl=H().entityName;var QO={dismissDialogEndpoint:{}};jJ={commandExecutorCommand:{commands:[QO,{urlEndpoint:{url:jJ,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:jJ}}}]}};QO={buttonViewModel:{title:_.CJ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:QO}}};jJ={buttonViewModel:{title:_.CJ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:jJ}}};Hl={dialogHeaderViewModel:{headline:{content:Hl!=null?Hl:_.CJ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var BA={basicContentViewModel:{paragraphs:[{text:{content:_.CJ("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Hl={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Hl,footer:{panelFooterViewModel:{primaryButton:jJ,
secondaryButton:QO,shouldHideDivider:!0}},content:BA}}}}};_.cY().resolve(_.jo).resolveCommand(Hl)}return!1});
N=_.D(_.b$("",void 0,"MvIBn"));var Ox=N.next().value,cl=N.next().value;_.lf(function(){yr()&&cl(B==null?void 0:B(g==null?void 0:g()));P.value&&_.pi(12453,P.value,b,function(Hl){b=Hl})});
return _.d(_.y,{cond:$X,then:function(){var Hl={};return _.d("div",{class:_.V7("ytSuggestionComponentRemovedText",(Hl.ytSuggestionComponentLargerRemovedText=function(){return XO()},Hl)),
style:function(){return jy()>0?"height: "+jy()+"px;":""},
role:"button"},$r)},
else:function(){var Hl={},jJ={};return _.d("div",{class:_.V7("ytSuggestionComponentSuggestion",(Hl.ytSuggestionComponentSuggestionHover=function(){return!zM()},Hl.ytSuggestionComponentHighlighted=gf,Hl.ytSuggestionComponentPersonalizedSuggestion=B4,Hl.ytSuggestionComponentMweb=!1,Hl.ytSuggestionComponentLargerSuggestion=function(){return c4()||XO()},Hl.ytSuggestionComponentThumbnailSuggestion=function(){return XO()},Hl.ytSuggestionComponentRoundedSuggestion=function(){return _.h("desktop_enable_scrollable_suggestions_panel")&&
_.h("desktop_enable_suggestions_panel_padding")},Hl.ytSuggestionComponentThumbnailPadding=function(){return XO()&&!B4()},Hl)),
style:function(){return jy()>0?"height: "+jy()+"px;":""},
role:"presentation","on:mousedown":CN,"on:mouseover":Qr,"on:mouseout":B0,el:P},_.d("div",{class:_.V7("ytSuggestionComponentText",(jJ.ytSuggestionComponentScrollMargin=u,jJ)),"aria-label":function(){return c4()?H().text+" "+YYi:H().text},
id:function(){return B==null?void 0:B(g==null?void 0:g())},
"on:mousedown":CN,role:"option"},_.d(_.y,{cond:function(){return H().type!==33},
then:function(){return _.d(_.dq,{icon:wf,className:"ytSuggestionComponentIcon"})}}),_.d("div",{class:"ytSuggestionComponentLeftContainer"},_.d("span",{el:x,
role:"button",tabindex:0},_.d(_.nL,{each:sS},function(QO){return QO.bold?_.d("span",{class:"ytSuggestionComponentBold"},QO.text):_.d("span",null,QO.text)})),_.d(_.y,{cond:function(){return kx()&&!!H().entitySubtitle||c4()},
then:function(){return _.d("div",{class:"ytSuggestionComponentMetadataContainer"},_.d(_.y,{cond:function(){return kx()&&!!H().entitySubtitle},
then:function(){return _.d("div",{class:"ytSuggestionComponentEntitySubtitle"},fN)}}),_.d(_.y,{cond:function(){return c4()},
then:function(){return _.d("div",{class:"ytSuggestionComponentNewVideoContainer"},_.d("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.d("div",{class:"ytSuggestionComponentNewVideoText"},YYi))}}))}}))),_.d("div",{class:"ytSuggestionComponentRightContainer"},_.d(_.y,{cond:function(){return XO()&&H().visualSuggestUrl!==void 0},
then:function(){var QO={};return _.d("div",{class:"ytSuggestionComponentThumbnailContainer"},_.d("img",{"aria-label":aw5,class:_.V7("ytSuggestionComponentVisualSuggestThumbnail",(QO.ytSuggestionComponentCircularFrame=function(){return kx()&&H().subtypes.includes(790)},QO.ytSuggestionComponentEntitySuggestThumbnail=function(){return kx()},QO)),
src:function(){return H().visualSuggestUrl}}),_.d(_.y,{cond:function(){return kx()&&!!H().entityThumbnailAttributionUrl},
then:function(){var BA={};return _.d("span",{title:TKx,role:"tooltip"},_.d("div",{el:J,"on:mouseover":c0,"on:mouseout":Am,"on:mousedown":Rl,class:_.V7("ytSuggestionComponentThumbnailOverlay",(BA.ytSuggestionComponentThumbnailOverlayHidden=function(){return!l()},BA))},_.d(_.dq,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.d(_.WZ,null,_.d(_.qC,{when:function(){return XO()&&yr()}},function(){var QO={};
return _.d("button",{class:_.V7("ytSuggestionComponentRemoveLinkClearButton",(QO.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Ox()&&Ox()===(c==null?void 0:c())},QO.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!gf()},QO)),
el:E,"on:mousedown":LU,"aria-label":b1,id:function(){return Ox()}},_.d(_.dq,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.d(_.qC,{when:function(){return!(XO()&&H().visualSuggestUrl!==void 0)&&yr()}},function(){var QO={};
return _.d("a",{class:_.V7("ytSuggestionComponentRemoveLink",(QO.ytSuggestionComponentRemoveLinkDark=pR,QO.ytSuggestionComponentRemoveLinkSelected=function(){return Ox()&&Ox()===(c==null?void 0:c())},QO)),
el:r,"on:mousedown":LU,"aria-label":b1,tabindex:0,role:"button",id:function(){return Ox()}},b1)}),_.d(_.qC,{when:function(){return!1}},function(){return _.d("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":hu,"on:mousedown":sp,role:"button","aria-label":z6x},_.d(_.dq,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"zj");var e6q=_.mp(["//www.google.com/textinputassistant/","/","_tia.js"]),PT1=_.q(function(){return _.d("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.d("button",{class:"ytdTextInputAssistantButton","on:click":_.Ui(function(){Dvm().inputMethodsTracker.add(3);var N,t=(N=_.Ro("SBOX_SETTINGS"))==null?void 0:N.REQUEST_LANGUAGE;if(t)return _.XU(_.ju(e6q,14,t)),!1})},_.d("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Aj");var xvJ;_.XO5=function(){this.cache=new Map};
xvJ=function(N){for(var t=_.D(N.cache.entries()),O=t.next();!O.done;O=t.next()){var H=_.D(O.value);O=H.next().value;H=H.next().value;H.suggestions.some(function(A){return A.type===35})&&N.cache.delete(O)}};var k7i=_.sj.SEARCH,qY5=_.sj.SEARCH_CLEAR_LABEL,fwO=new _.dk("FAKE_SUGGEST_RESPONSE"),nin=_.q(function(N){function t(){Qr||(Qr=setTimeout(function(){c0()},1E3))}
function O(aQ,LR,ri){if(aQ.trim()){LU=aQ;_.Gm("REFINEMENTS_TUPLE",void 0);hu=!0;var Q$;LR=Kcf($r,LR);var u_=(Q$=N.searchEndpoint)==null?void 0:Q$.call(N);_.MWx(aQ,LR,u_,$X.value.value,ri);c0();$X.value.value=aQ;$X.value.blur();$r.reset()}}
function H(aQ){return _.K(function(LR){return LR.return(new Promise(function(ri){var Q$=new XMLHttpRequest;Q$.open("GET",_.RXi(aQ),!0);Q$.withCredentials=!0;var u_=_.Ro("SBOX_SETTINGS");(u_==null?0:u_.SEND_VISITOR_DATA)&&Q$.setRequestHeader("X-Goog-Visitor-Id",u_==null?void 0:u_.VISITOR_DATA);Q$.onload=function(){ri(Q$.responseText)};
Q$.onerror=function(){_.J_(Error("Ll"));ri(null)};
setTimeout(function(){Q$.abort()},1E4);
Q$.send(null)}))})}
function A(aQ){var LR,ri,Q$,u_;return _.K(function(oN){switch(oN.nextAddress){case 1:return LR={credentials:"include",headers:_.GKn()},window.AbortController&&(ri=new AbortController,setTimeout(function(){ri.abort("ytsbox-suggest-timeout")},1E4),LR.signal=ri.signal),_.Mo(oN,2),oN.yield(fetch(_.RXi(aQ),LR),4);
case 4:Q$=oN.yieldResult.text();_.Do(oN,3);break;case 2:return u_=_.ax(oN),u_!=="ytsbox-abort-last"&&u_!=="ytsbox-suggest-timeout"&&_.J_(u_),oN.return(null);case 3:return oN.return(Q$)}})}
function Z(aQ){var LR,ri,Q$;return _.K(function(u_){switch(u_.nextAddress){case 1:if(LR=_.cY().resolve(_.BY(fwO)))return u_.return(LR);ri=Date.now();t();return _.h("yt_searchbox_xhr")?u_.yield(H(aQ),5):u_.yield(A(aQ),4);case 4:Q$=u_.yieldResult;u_.jumpTo(3);break;case 5:Q$=u_.yieldResult;case 3:if(Q$){Qr&&(clearTimeout(Qr),Qr=null);var oN=$r,ST=ri,mA=aQ.query.length===0;ST=Date.now()-ST;mA?oN.zeroPrefixRoundTripTime=ST:(oN.JSC$21179_totalRoundTripTime+=ST,oN.maxRoundTripTime=Math.max(oN.maxRoundTripTime,
ST),mA=Math.floor(ST/100),mA>=Fc5.length?++oN.roundTripTimeHistogram[9]:++oN.roundTripTimeHistogram[Fc5[mA]])}return u_.return(Q$)}})}
function U(aQ){var LR,ri,Q$;return _.K(function(u_){if(u_.nextAddress==1)return(LR=b1.cache.get(_.Ezm(aQ)))?u_.return(LR):u_.yield(Z(aQ),2);ri=u_.yieldResult;if(ri===null)return u_.return(null);Q$=new _.Aon(ri);aQ.query.length===0&&Q$.suggestions.length===0||b1.cache.set(_.Ezm(aQ),Q$);return u_.return(Q$)})}
function C(aQ){var LR,ri;return _.K(function(Q$){if(Q$.nextAddress==1){sp=!1;var u_=LU;u_=_.EM()==="search"?(_.s$(location.href,"search_query")||_.s$(location.href,"q"))===u_:!1;LR=new _.mWO(aQ,u_?LU:null);return Q$.yield(U(LR),2)}ri=Q$.yieldResult;if(ri===null)return Q$.return();LR.query.length===0&&($r.zeroPrefixSuggestionCount=ri.suggestions.length);if(LR.id<=B0)return $r.outOfSyncResponseCount++,Q$.return();if(document.activeElement!==$X.value)return Q$.return();B0=LR.id;var oN=$r,ST=ri.rawResponse[2]||
{};oN.experimentTriggeredBeforeFinal||(oN.experimentTriggeredBeforeFinal=oN.experimentTriggeredFinal);oN.experimentTriggeredFinal=!!ST.e;$r.updateSuggestions(ri.suggestions);w(-1);fN([]);ri.suggestions!==S()&&JD(ri.suggestions.length);b(ri.suggestions);CN(ri.suggestions.length>0&&ri.suggestions[0].type===33);wf&&(wf.hidden=ri.suggestions.length===0,J()?(wf.style.minWidth="",oN=wf.style,ST=(u_=S()[0])==null?void 0:u_.ignoredPrefix,oN.marginLeft=(ST?Math.min(ST.length*6,pR.value.offsetWidth):0).toString()+
"px"):(wf.style.minWidth=pR.value.offsetWidth+"px",wf.style.marginLeft="0"),nU());_.Ty(Q$)})}
function F(){if(!hu)return!1;var aQ=_.Ro("REFINEMENTS_TUPLE");return aQ?(aQ=aQ[1].map(function(LR,ri){return new tK5([LR,0,[71]],$X.value.value,ri)}),S()!==aQ&&JD(aQ.length),fN([]),b(aQ),$r.updateSuggestions(aQ),hu=!1,wf.hidden=aQ.length===0,sp=aQ.length>0,!0):!1}
function g(){var aQ=$X.value.value;(typeof aQ==="string"||aQ instanceof String)&&aQ!==""?I(!0):I(!1)}
function B(){if(_.EM()==="search"){var aQ=window.location.href;try{var LR=_.s$(aQ,"search_query")||_.s$(aQ,"q")||""}catch(ri){LR=""}LR&&($X.value.value=LR,I(!0))}}
var c=_.D(_.b$([],void 0,"OC8EPc")),u=c.next().value;c=c.next().value;var S=u,b=c;u=_.D(_.b$(-1,void 0,"t2tVQb"));var z=u.next().value,w=u.next().value;u=_.D(_.b$(-1,void 0,"v0RZCe"));var P=u.next().value,x=u.next().value;u=_.D(_.b$(!1,void 0,"rjAnI"));var l=u.next().value,I=u.next().value;u=_.D(_.b$(!1,void 0,"SyGLvb"));var r=u.next().value,E=u.next().value;c=_.D(_.b$(!1,void 0,"tL09Cb"));u=c.next().value;c=c.next().value;var J=u,CN=c;c=_.D(_.b$(!1,void 0,"FlH7mc"));u=c.next().value;var B4=c.next().value;
c=_.D(_.b$(!1,void 0,"ea3fwe"));var zM=c.next().value,jy=c.next().value;c=_.D(_.b$(1,void 0,"vSK1xe"));var c4=c.next().value,XO=c.next().value;c=_.D(_.b$([],void 0,"ijlw4b"));var kx=c.next().value,fN=c.next().value;c=_.D(_.b$(!1,void 0,"HcRey"));var gf=c.next().value,yr=c.next().value;c=_.h("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var sS=_.Fy("yt-searchbox"),$X=_.Fy("input"),pR=_.Fy("div"),wf,b1=
new _.XO5,$r=Dvm(),US=_.cY().resolve(_.BY(_.WV)),H0=function(){var aQ;return((aQ=N.forceDarkMode)==null?void 0:aQ.call(N))||!(US==null||!US())},SE=function(){return _.h("desktop_enable_scrollable_suggestions_panel")},v0="i"+Lcn++,hu=!1,sp=!1,LU="",Qr=null,B0=-1,c0=function(){fN([]);
b([]);CN(!1);wf&&(wf.hidden=!0);Qr&&(clearTimeout(Qr),Qr=null);w(-1)},Am=function(aQ,LR){aQ.preventDefault();
yr(!0);wf&&(wf.hidden=!1);var ri=z();aQ=S();var Q$=kx();LR=bA1(LR);ri+=LR;for(ri>=aQ.length?ri=-1:ri<-1&&(ri=aQ.length-1);ri!==-1&&(Q$.includes(ri)||ri>=aQ.length||ri<0);)ri+=LR,ri>=aQ.length&&(ri=-1);w(ri);z()>=0&&($X.value.value=S()[z()].text,x(0),g(),aQ=z(),Q$=P(),(Q$=document.getElementById(PW[aQ][Q$]))&&SE()&&(aQ===S().length-1?wf.scrollTop=wf.scrollHeight:Q$.scrollIntoView({block:"nearest",inline:"start"})))},Rl=_.Ui(function(aQ){if(!(aQ.relatedTarget instanceof Element&&aQ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){E(!0);
var LR;(LR=N.focusCallback)==null||LR.call(N,!0);F()||(sp?wf.hidden=!1:(_.or(sS.value,"yt-autonav-pause-focus",{}),C(aQ.target.value)))}}),Ox=_.Ui(function(aQ){if(!(aQ.relatedTarget instanceof Element&&aQ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){E(!1);
var LR;(LR=N.focusCallback)==null||LR.call(N,!1);wf.scrollTop=0;wf.hidden=!0;_.or(sS.value,"yt-autonav-pause-blur",{})}}),cl=function(aQ){aQ=bA1(aQ);
var LR;((LR=PW[z()])==null?0:LR[P()+aQ])&&x(P()+aQ)},Hl=_.Ui(function(aQ){var LR=aQ.target;
switch(aQ.keyCode){case 13:aQ.preventDefault();var ri;if((ri=PW[z()])==null?0:ri[P()]){var Q$;(Q$=document.getElementById(PW[z()][P()]))==null||Q$.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}aQ=aQ.shiftKey?4:3;ri=$r;Q$=z();ri.selectedSuggestionIndex=Q$;O(LR.value,aQ);break;case 27:wf&&(wf.hidden=!0);break;case 40:Am(aQ,40);break;case 38:Am(aQ,38);break;case 39:cl(39);break;case 37:cl(37);break;case 229:$r.inputMethodsTracker.add(4);break;default:$r.inputMethodsTracker.add(1),
Uvr($r)}return!1}),jJ=_.Ui(function(aQ){C(aQ.target.value);
g();SE()&&wf&&(wf.scrollTop=0);return!1}),QO=_.Ui(function(){$r.inputMethodsTracker.add(2);
Uvr($r);return!1});
_.lf(function(){if(wf){$r.reset();if(window.ResizeObserver){var aQ=new ResizeObserver(function(){J()||(wf.style.minWidth=pR.value.offsetWidth+"px")});
aQ.observe(pR.value);(new ResizeObserver(function(){nU()})).observe(wf);
_.Ia(function(){aQ.disconnect()})}B();
window.addEventListener("yt-navigate-finish",B);window.addEventListener("yt-focus-searchbox",function(){$X.value.focus()});
var LR;B4((LR=_.Ro("SBOX_SETTINGS"))==null?void 0:LR.HAS_ON_SCREEN_KEYBOARD)}else _.R0(new _.fF("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var BA=_.Ui(function(aQ){aQ.preventDefault();O($X.value.value,12);return!1}),Su=_.Ui(function(aQ){aQ.preventDefault();
var LR,ri;(LR=$X)==null||(ri=LR.value)==null||ri.focus();var Q$,u_;((Q$=$X)==null?void 0:(u_=Q$.value)==null?void 0:u_.value)!==""&&($X.value.value="",$X.value.dispatchEvent(new Event("input")));return!1}),mZ=_.Ui(function(){var aQ=Vp1($X.value.value,S().filter(function(LR){return LR.type!==35}).map(function(LR){return{label:LR.text}}));
_.sl(sS.value,"yt-open-popup-action",[{openPopupAction:aQ},document.body]);return!1}),Ln=_.Ui(function(){$X.value.focus();
return!1}),VO=function(aQ,LR,ri,Q$,u_){$r.selectedSuggestionIndex=ri;
O(LR,u_?3:1,Q$)},vW=function(aQ){$X.value.value=aQ;
$X.value.dispatchEvent(new Event("input"));$r.inputMethodsTracker.add(5);Uvr($r,!0)},PW=[[]],Zl=function(aQ){var LR="searchbox-suggestion"+_.Q1(_.gx);
PW[aQ].push(LR);return LR},JD=function(aQ){if(S()){PW=[[]];
for(var LR=0;LR<aQ;LR++)PW.push([])}},nU=function(){if(SE()){var aQ=wf,LR=aQ.scrollTop;
aQ=aQ.scrollHeight-aQ.clientHeight;jy(LR>=aQ);LR=Math.abs(aQ-LR);LR<=40?XO(1-(40-LR)/40):XO(1)}},Sb=function(){return"opacity: "+c4()*100+"%"},al=_.Ui(function(){nU();
return!1}),nN=_.Ui(function(){yr(!1);
return!1}),ES,My={},Mq={},kw={},T5={};
return _.d("yt-searchbox",{class:_.V7("ytSearchboxComponentHost",(My.ytSearchboxComponentMweb=!1,My.ytSearchboxComponentDesktop=!0,My["yt-searchbox-filled-query"]=function(){return l()},My["ytd-masthead"]=function(){return!r()},My.ytSearchboxComponentHostDark=H0,My)),
role:"search",el:sS,"client-ve-type":10349},_.d("div",{el:pR,"on:click":Ln,class:_.V7("ytSearchboxComponentInputBox",(Mq.ytSearchboxComponentInputBoxDark=H0,Mq.ytSearchboxComponentInputBoxHasFocus=r,Mq))},_.d("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":BA},_.d(_.y,{cond:r,then:function(){return _.d("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.d(_.dq,{icon:"SEARCH"}))}}),_.d("input",{el:$X,
class:_.V7("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":v0,"aria-expanded":!((ES=wf)==null?0:ES.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Ox,"on:focus":Rl,"on:input":jJ,"on:keydown":Hl,"on:paste":QO,placeholder:N.placeholderText,"aria-activedescendant":function(){var aQ;return(aQ=PW[z()])==null?void 0:aQ[P()]},
"aria-autocomplete":"list",role:"combobox"})),_.d(_.y,{cond:u,then:function(){return _.d("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.d(PT1,null))}}),_.d(_.y,{cond:l,
then:function(){return _.d("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.d("button",{class:"ytSearchboxComponentClearButton","on:click":Su,"aria-label":N.clearButtonAriaLabel||qY5},_.d(_.dq,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.d(_.aw,{model:{}})))}})),_.d("button",{class:_.V7("ytSearchboxComponentSearchButton",(kw.ytSearchboxComponentSearchButtonDark=H0,kw)),
"on:click":BA,"aria-label":k7i,title:N.placeholderText},_.d(_.dq,{icon:"SEARCH"})),_.d(_.y,{cond:function(){if(EDO()&&_.h("mweb_voice_search")&&N.voiceSearchButton)return N.voiceSearchButton()},
then:function(aQ){var LR={};return _.d("div",{class:_.V7("ytSearchboxComponentVoiceSearchWrapper",(LR.ytSearchboxComponentHideVoiceSearchButton=function(){return l()},LR))},_.d(_.iF,{data:aQ},{buttonRenderer:function(ri){return _.d(_.MG,{data:ri.data,
onButtonClickCallback:function(){}})}}))}}),_.d("div",{el:_.E4(function(aQ){return void(wf=aQ)}),
id:v0,class:_.V7("ytSearchboxComponentSuggestionsContainer",(T5.ytSearchboxComponentSuggestionsContainerDark=H0,T5["yt-searchbox-suggestions-container"]=!1,T5.ytSearchboxComponentSuggestionsContainerScrollable=SE(),T5.ytSearchboxComponentSuggestionsContainerAnimated=c,T5)),"on:scroll":al,"on:mousemove":nN,role:"listbox",hidden:!0},_.d(_.nL,{each:S},function(aQ,LR){return _.d(wOm,{suggestion:aQ,isHighlighted:function(){return LR()===z()},
onClickCallback:VO,onHoverUpdateCallback:function(ri){if(_.h("desktop_enable_single_suggestion_highlight")){var Q$=LR();ri&&(x(0),w(Q$))}},
onRemoveCallback:function(ri){xvJ(b1);ri===void 0||ri<0||kx().includes(ri)||fN([].concat(_.W6(kx()),[ri]))},
labels:N.labels,queryBuilderFunction:vW,suggestionIndex:LR,generateUniqueId:Zl,highlightedId:function(){var ri;return(ri=PW[z()])==null?void 0:ri[P()]},
useScrollMargin:SE(),isKeyboardMode:gf})}),_.d(_.y,{cond:function(){return!J()&&S().find(function(aQ){return aQ.type!==35})&&_.h("searchbox_reporting")},
then:function(){return _.d("button",{class:"ytSearchboxComponentReportButton","on:mousedown":mZ},_.CJ("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.d(_.y,{cond:function(){return!zM()&&SE()},
then:function(){return _.d("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.d("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Sb}))}})))},"Cj");
nin.idomCompat={callbacks:{focusCallback:!0}};_.o_(nin,"yt-searchbox",{props:{searchEndpoint:_.$O,placeholderText:_.$O,labels:_.$O,voiceSearchButton:_.$O,focusCallback:_.R_,clearButtonAriaLabel:_.$O,forceDarkMode:_.$O}});var JM=function(){var N=_.k.apply(this,arguments)||this;N.menuButtonTargetId="topbar-guide-menu";N.narrow=!1;N.menuStrings={BACK_ALT_LABEL:_.CJ("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.CJ("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.CJ("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.CJ("SBOX_PLACEHOLDER",void 0,"Search")};N.pageDarkTheme=document.documentElement.hasAttribute("dark");N.watchPageScrollTop=0;N.theater=!1;N.fullscreen=!1;N.disableFrostedGlassDuringViewTransition=
!1;N.desktopUnifiedSearchPanelMode=_.h("desktop_enable_unified_search_panel");N.aiCompanionEnabled=_.h("enable_ai_companion");N.ytSearchboxFocused=!1;N.searchboxLabels=_.Ro("SBOX_LABELS");N.topbarIsAboveChipbar=!1;N.isDarkThemeForced=!1;N.areGhostCardsHidden=!1;N.guideKeyboardToggle=!1;N.voiceSearchManager=IVx();N.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};N.setYtSearchboxFocused=function(t){N.ytSearchboxFocused=t};
N.toggleFrostedGlassDuringViewTransition=function(t){N.disableFrostedGlassDuringViewTransition=t};
return N};
_.p(JM,_.k);_.V=JM.prototype;_.V.computeSimpleText=function(N){return _.Gv(N)};
_.V.onDarkChanged=function(){for(var N=_.D(this.buttons||[]),t=N.next();!t.done;t=N.next())t.value.isOverlay=!!this.dark;N=_.D(this.buttonRenderers||[]);for(t=N.next();!t.done;t=N.next())t.value.overrides=this.computeButtonOverride()};
_.V.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.V.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var N=_.uI(_.iI(),"aa");_.VQ(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||N||(this.isDarkThemeForced=this.dark=!0);this.logoType?(N=this.hostElement.querySelector("#masthead-logo"))&&(_.h("polymer_on_demand_shady_dom")?N.setAttribute("slot","masthead-logo-old"):_.wb(N)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Fb(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Fb(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.V.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Fb(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Fb(this,this.onSetTheaterModeEnabled))};
_.V.dataChanged=function(){var N=this.data;N&&(this.voiceEnabled=N.voiceSearchButton?IVx().isSupported():!1,_.kJy(_.Q6(),this.menuButtonTargetId,this.guideButton),N.onReceivedActions&&N.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.OK(this.hostElement,N.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&N&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.VQ(this.hostElement,"dark",!1),_.VQ(this.hostElement,"theater",!1),
(N=this.hostElement.querySelector("#masthead-logo"))&&(_.h("polymer_on_demand_shady_dom")?N.setAttribute("slot","masthead-logo-old"):_.wb(N))))};
_.V.computeCenterHidden=function(){var N;return this.data&&!((N=this.data.searchbox)==null?0:N.fusionSearchboxRenderer)};
_.V.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.VQ(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.V.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.V.onWatchScroll=function(N){this.watchPageScrollTop=N.detail||0;this.updateMastheadBackgroundOpacity()};
_.V.onFullscreenChangeAction=function(N){N||(this.watchPageScrollTop=0);this.fullscreen=N;this.updateMastheadBackgroundOpacity()};
_.V.onSetTheaterModeEnabled=function(N){this.theater=N.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.V.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.V.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.V.setBackgroundOpacity=function(N){N=this.calculateBackgroundOpacity(N);this.background.style.opacity=""+N};
_.V.calculateBackgroundOpacity=function(N){var t=this.theater?.6:0,O=this.hostElement.clientHeight/2;return Math.min(Math.max(N,0),O)/O*(1-t)+t};
_.V.shouldShowCinematicMastHead=function(){var N=_.h("kevlar_watch_grid")&&!_.h("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(N||this.pageDarkTheme)};
_.V.focusGuide=function(){this.guideButton.focus()};
_.V.onGuideToggleTap=function(){_.or(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.V.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.V.onGuideToggleHover=function(){_.or(this.hostElement,"yt-guide-hover")};
_.V.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.V.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.V.closeOnOutsideClickCondition=function(N){for(N=_.m1(N);N[0];){var t=N.shift();if(t instanceof Element&&t.id==="kbd")return!1}return!0};
_.V.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.V.pausePlayer=function(){var N;(N=_.si())==null||N.pause();this.pauseMiniplayer()};
_.V.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var N;(N=_.cY().resolve(_.kf).getPlayerElement())==null||N.pause()}};
_.V.isMiniplayerActive=function(){return _.cY().resolve(_.kf).isMiniplayerActive()};
_.V.updateNarrowFromBinding=function(N){this.narrow=N.detail.value};
_.V.onYtSendFeedbackAction=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.registerWithViewTransitionManager=function(){tem(_.cY().resolve(_.NX),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.cv.Object.defineProperties(JM.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var N;return!!(this.aiCompanionEnabled&&((N=this.data)==null?0:N.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var N;return(N=this.data)==null?void 0:N.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
JM.prototype.narrowChanged=JM.prototype.narrowChanged;JM.prototype.onWatchPageChange=JM.prototype.onWatchPageChange;JM.prototype.onRendererStamperFinished=JM.prototype.onRendererStamperFinished;JM.prototype.dataChanged=JM.prototype.dataChanged;JM.prototype.onDarkChanged=JM.prototype.onDarkChanged;_.W([_.Y(_.JV),_.Q("design:type",Object)],JM.prototype,"ironResizableBehavior",void 0);_.W([_.Y(_.HOi),_.Q("design:type",Object)],JM.prototype,"ytdExpandableInputBehavior",void 0);
_.W([_.Y(_.yV.YtdGuideStateAwareBehavior),_.Q("design:type",Object)],JM.prototype,"ytdGuideStateAwareBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],JM.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],JM.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.Ue),_.Q("design:type",Object)],JM.prototype,"ytdReduxBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],JM.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],JM.prototype,"narrow",void 0);_.W([_.X(),_.Q("design:type",Object)],JM.prototype,"logoType",void 0);_.W([_.X(),_.Q("design:type",Boolean)],JM.prototype,"voiceEnabled",void 0);
_.W([_.X(),_.Q("design:type",Object)],JM.prototype,"menuStrings",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],JM.prototype,"dark",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JM.prototype,"pageDarkTheme",void 0);_.W([_.X(),_.Q("design:type",Object)],JM.prototype,"watchPageScrollTop",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.ztQ}),_.Q("design:type",Boolean)],JM.prototype,"isWatchPage",void 0);
_.W([_.X({reflectToAttribute:!0,selector:_.Yol}),_.Q("design:type",Boolean)],JM.prototype,"isShortsPage",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JM.prototype,"theater",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JM.prototype,"fullscreen",void 0);_.W([_.X({reflectToAttribute:!0,selector:_.etx}),_.Q("design:type",String)],JM.prototype,"frostedGlassMode",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JM.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],JM.prototype,"aiCompanionEnabled",void 0);_.W([_.X(),_.Q("design:type",Object)],JM.prototype,"ytSearchboxFocused",void 0);_.W([_.c2("#buttons > *"),_.Q("design:type",Array)],JM.prototype,"buttons",void 0);_.W([_.c2("ytd-button-renderer"),_.Q("design:type",Array)],JM.prototype,"buttonRenderers",void 0);
_.W([_.B2("#background"),_.Q("design:type",HTMLDivElement)],JM.prototype,"background",void 0);_.W([_.B2("#guide-button"),_.Q("design:type",Object)],JM.prototype,"guideButton",void 0);_.W([_.B2("#logo"),_.Q("design:type",Object)],JM.prototype,"logo",void 0);_.W([_.X({computed:"computeButtonOverride(dark)"}),_.Q("design:type",Object)],JM.prototype,"buttonOverrides",void 0);
_.W([_.ic("dark"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JM.prototype,"onDarkChanged",null);_.W([_.X({value:function(){return this.onVoiceTap.bind(this)}}),
_.Q("design:type",Function)],JM.prototype,"boundOnTapVoiceButton",void 0);_.W([_.X(),_.Q("design:type",Object)],JM.prototype,"topbarIsAboveChipbar",void 0);_.W([_.X(),_.Q("design:type",String),_.Q("design:paramtypes",[])],JM.prototype,"guideIcon",null);_.W([_.a("voiceEnabled"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],JM.prototype,"shouldShowVoiceSearchButton",null);
_.W([_.a("data.aiCompanionButton","aiCompanionEnabled"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],JM.prototype,"shouldShowAiCompanionButton",null);_.W([_.a("data"),_.Q("design:type",Object),_.Q("design:paramtypes",[])],JM.prototype,"voiceSearchButton",null);_.W([_.a("aiCompanionEnabled"),_.Q("design:type",String),_.Q("design:paramtypes",[])],JM.prototype,"narrowQuery",null);
_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JM.prototype,"dataChanged",null);_.W([_.dz("yt-rendererstamper-finished"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JM.prototype,"onRendererStamperFinished",null);_.W([_.ic("isWatchPage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JM.prototype,"onWatchPageChange",null);
_.W([_.ic("narrow"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],JM.prototype,"narrowChanged",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-masthead"})],JM);
_.n(JM,"ytd-masthead",function(){if(h61!==void 0)return h61;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return h61=N},{mode:_.O4("kevlar_poly_si_batch_j036")?1:2});var Wci;var roi={},Iw1={},lwm={},Qc5={},mvO=(Qc5.OFFLINE=(roi["publicytnetworkstatus-online"]="BACK_ONLINE",roi),Qc5.ONLINE=(Iw1["publicytnetworkstatus-offline"]="OFFLINE",Iw1),Qc5.BACK_ONLINE=(lwm["publicytnetworkstatus-offline"]="OFFLINE",lwm.TIMER_TRIGGER="ONLINE",lwm),Qc5),oA=function(){var N=_.k.apply(this,arguments)||this;N.currentState="ONLINE";N.scheduledJobId=0;N.bannerString="";N.bannerVe=null;N.networkStatusManagerInstance=new _.VN;return N};
_.p(oA,_.k);_.V=oA.prototype;_.V.attached=function(){var N=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){N.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){N.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.detached=function(){var N=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){N.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){N.stateChangeHandler("publicytnetworkstatus-offline")})};
_.V.enterState=function(N){var t=this;this.scheduledJobId&&_.GB.cancelJob(this.scheduledJobId);N==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):N==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.CJ("NO_INTERNET_CONNECTION",void 0,"No internet connection")):N==="BACK_ONLINE"&&(this.bannerString=_.CJ("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.WX(_.GB,function(){t.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=N};
_.V.stateChangeHandler=function(N){(N=mvO[this.currentState][N])&&this.enterState(N)};
_.V.logVisibility=function(N){var t=_.z8();this.createBannerVe(N);t&&this.bannerVe&&(N?_.Wc(t,[this.bannerVe]):_.r0(t,[this.bannerVe]))};
_.V.createBannerVe=function(N){!this.bannerVe&&N&&(this.bannerVe=_.UM(37929),_.Iy(_.gF(),this.bannerVe))};
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",String)],oA.prototype,"currentState",void 0);_.W([_.X(),_.Q("design:type",Object)],oA.prototype,"scheduledJobId",void 0);_.W([_.X(),_.Q("design:type",Object)],oA.prototype,"bannerString",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-network-status-banner"})],oA);
_.n(oA,"ytd-network-status-banner",function(){if(Wci!==void 0)return Wci;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return Wci=
N},{mode:1});var Eim;var sz=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};N.hidden=!0;N.frostedGlass=_.h("web_frosted_glass");return N};
_.p(sz,_.k);sz.prototype.computeHidden=function(N){return N&&N.status?!1:!0};
sz.prototype.handleUpdatePermissionRoleCommand=function(N){if(N=_.M(N,_.WJZ))if(N=_.M(N.renderer,_.nOa))this.data=N};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],sz.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],sz.prototype,"componentBehavior",void 0);_.W([_.X({value:!0,computed:"computeHidden(data)"}),_.Q("design:type",Object)],sz.prototype,"hidden",void 0);_.W([_.X(),_.Q("design:type",Object)],sz.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],sz.prototype,"frostedGlass",void 0);
_.W([_.en({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],sz);
_.n(sz,"ytd-permission-role-bottom-bar-renderer",function(){if(Eim!==void 0)return Eim;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);return Eim=N},{mode:1});var G7J;var R61;var p1q={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var NI=function(){return _.k.apply(this,arguments)||this};
_.p(NI,_.k);_.V=NI.prototype;_.V.attached=function(){this.JSC$21297_scroller&&(this.JSC$21297_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21297_scroller.attached&&typeof this.JSC$21297_scroller.attached==="function"&&this.JSC$21297_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(O){O.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var N=_.O6(this.hostElement);N.querySelector("tp-yt-paper-radio-group").selected="";var t=N.querySelector("#reason-text");t&&(t.value="");N.querySelector("#description-text").value=""}};
_.V.canSubmit=function(N,t){_.or(this.hostElement,"yt-invalidate-popup-tabbables");return!(N&&t)};
_.V.onCancel=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.V.onSubmit=function(){var N=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(Z){return Z.active}).map(function(Z){return Z.innerText.trim()}),t=this.hostElement.querySelector("tp-yt-paper-radio-group"),O=t.selectedItem,H=O.name;
O=O.innerText.trim();var A=t.querySelector("#reason-text");t=void 0;A&&(t=A.value);(A=this.descriptionText.value)&&(A=A.trim());Lsf(this.data.searchQuery,N,H,O,A,t);_.sl(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.V.sendFormSubmitToast=function(){var N=_.s_(_.CJ("SBOX_INAPPROPRIATE_TOAST"));_.sl(this.hostElement,"yt-open-popup-action",[N,this])};
_.V.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(N){return N.active})};
_.V.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
NI.prototype.onIronSelect=NI.prototype.onIronSelect;NI.prototype.onIronChange=NI.prototype.onIronChange;NI.prototype.dataChanged=NI.prototype.dataChanged;_.W([_.X(),_.Q("design:type",Object)],NI.prototype,"data",void 0);_.W([_.X({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Q("design:type",Boolean)],NI.prototype,"submitDisabled",void 0);_.W([_.X(),_.Q("design:type",Boolean)],NI.prototype,"suggestionSelected",void 0);
_.W([_.X(),_.Q("design:type",Boolean)],NI.prototype,"catagorySelected",void 0);_.W([_.B2("#scroller"),_.Q("design:type",Object)],NI.prototype,"JSC$21297_scroller",void 0);_.W([_.B2("#description-text"),_.Q("design:type",Object)],NI.prototype,"descriptionText",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NI.prototype,"dataChanged",null);
_.W([_.dz("iron-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NI.prototype,"onIronChange",null);_.W([_.dz("iron-select"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],NI.prototype,"onIronSelect",null);_.W([_.en({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],NI);
_.n(NI,"ytd-search-suggestion-report-dialog",function(){if(R61!==void 0)return R61;var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return R61=N},{mode:1});var t2=function(N){var t=N.openPopupAction;var O=N.target;var H=N.container;var A=N.popupContainerConfig;var Z=N.getElement;N=N.removeWhenClosed===void 0?!1:N.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=t;this.target=O;this.container=H;this.popupContainerConfig=A;this.getElement=Z;this.JSC$21303_popupConfig=this.popupContainerConfig.JSC$20427_popupConfig[this.openPopupAction.popupType];this.rendererName=(t=this.getName())?_.Hxt(t,uTm(this.popupContainerConfig,
t)):"";_.h("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=N);this.createPopup()};
t2.prototype.updatePopup=function(N){this.openPopupAction=N;this.JSC$21303_popupConfig=this.popupContainerConfig.JSC$20427_popupConfig[this.openPopupAction.popupType];vii(this);_.h("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
t2.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var scO=function(N,t,O){(t=t&&N.JSC$21303_popupConfig.narrowProperties?N.JSC$21303_popupConfig.narrowProperties:N.JSC$21303_popupConfig.properties)&&O!==void 0&&(t.isAriaModal=O);Joz(N,t);N.isRtl()&&Joz(N,N.JSC$21303_popupConfig.rtlProperties);oi1(N)};
t2.prototype.createPopup=function(){var N=this.JSC$21303_popupConfig.component;if(this.popupContent=N25(this,this.rendererName)){if(N){this.popup=N25(this,N);var t=this.popupContent;_.h("web_enable_wrapper_for_cow_component_in_popup")&&(t=document.createElement("div"),t.appendChild(this.popupContent));_.h("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21303_popupConfig.slotName&&t.setAttribute("slot",this.JSC$21303_popupConfig.slotName);N=this.popup;var O=this.container.tagName.toLowerCase();
_.vc["counterfactuals.desktop_web_boolean_flag_with_counterfactual_study"]=String(_.h("desktop_web_boolean_flag_with_counterfactual_study"));var H=_.RI(t);_.J3g(_.JG(N),_.s3(t,O,H));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.h("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.O6(this.container).appendChild(this.popup)}};
var vii=function(N){var t,O,H=(t=N.openPopupAction.accessibilityData)==null?void 0:(O=t.accessibilityData)==null?void 0:O.label;H&&(N.popup.ariaLabel=H);var A;((A=N.popupContent.polymerController)!=null?A:N.popupContent).data=(0,_.WW.unsafeClone)(N.openPopupAction.popup[N.getName()]);N.popupContent.duration=txO(N);N.popupContent.positionType=N.openPopupAction.position;var Z=N.openPopupAction.properties;Z&&Object.keys(Z).forEach(function(U){N.popupContent[U]=Z[U]})},Joz=function(N,t){if(t)for(var O=
_.D(Object.keys(t)),H=O.next();!H.done;H=O.next())H=H.value,N.popup[H]=t[H]},oi1=function(N){if(N.openPopupAction.position){var t=N.JSC$21303_popupConfig.positionalProperties&&N.JSC$21303_popupConfig.positionalProperties[N.openPopupAction.position],O=N.JSC$21303_popupConfig.rtlPositionalProperties&&N.JSC$21303_popupConfig.rtlPositionalProperties[N.openPopupAction.position];
t=N.isRtl()&&O?O:t;t.shiftedHorizontalOffset&&(O=N.popup.style.display,N.popup.style.display="block",N.popupContent&&N.popup.positionTarget&&N.popupContent.clientWidth>N.popup.positionTarget.clientWidth&&(t.horizontalOffset=N.popup.positionTarget.clientWidth/2-t.shiftedHorizontalOffset),N.popup.style.display=O);Joz(N,t)}},O41=function(N,t,O){if(t){for(var H=_.D(Object.keys(t)),A=H.next();!A.done;A=H.next())A=A.value,N.popup.style[A]=t[A];
if(O)for(t=_.D(Object.keys(O)),H=t.next();!H.done;H=t.next())H=H.value,N.popup.style[H]=O[H]}};
t2.prototype.getName=function(){return _.mD(this.openPopupAction.popup,"renderer")||_.mD(this.openPopupAction.popup,"dialog")||_.mD(this.openPopupAction.popup,"model")||void 0};
var txO=function(N){N=N.openPopupAction.durationHintMs;return N===0?N:Math.max(4E3,N||4E3)};
t2.prototype.isRtl=function(){return _.Ro("HTML_DIR")==="rtl"};
var N25=function(N,t){N=N.getElement(t,N.target);N==null&&_.J_(new _.fF("popup getElement returned null",t));return N};var H4n={};
H4n.YtPopupContainerBehavior=[_.CD.YtComponentBehavior,_.Wu.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.vC(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.JH(this.hostElement)},
closePopup:function(N){var t=this.createCacheKey(void 0,N);this.popups_[t]&&this.handleClosePopupAction_(void 0,N)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.GB.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.GB.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(N){N.opened&&N.keepBelowPlayer&&this.ensurePopupBelowPlayer(N)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var N in this.popups_){var t=this.popups_[N];if(t.popup.scrollAction==="refit"){var O=t.popup.positionTarget.getBoundingClientRect(),H=t.popup;O=O.top;var A=t;if(!A.naturalHeight){A.popup.hidden=!1;A.popup.style.position="fixed";A.popup.style.top="0px";A.popup.style.left="0px";var Z=A.popup.getBoundingClientRect();A.naturalHeight=Z.bottom-Z.top;A.popup.refit()}H.hidden=!(O>=A.naturalHeight+60);t.popupContent.clientHeight===0&&t.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(N){this.popupContainerConfig=N},
handleOpenPopupAction:function(N,t){var O=N.openPopupAction,H=_.cY().resolve(_.BY(_.L4))&&O.popupType==="TOAST";H&&!O.uniqueId&&(O.uniqueId=_.ta());if(!_.h("popup_container_parent_target_killswitch")){var A;t=(A=this.getParentTarget(t))!=null?A:t}var Z=this.ensurePopup_(O,t);return new _.TW(function(U){Z.then(function(C){if(!C)return U();this.maybeCreateNarrowMediaQuery_();var F=this.createCacheKey(C.rendererName,C.openPopupAction.uniqueId);if(O.showOncePerUniqueId){if(this.shownPopupKeys_.has(F))return U();
this.shownPopupKeys_.add(F)}F=this.popups_[F];var g=!(!F||!F.openPopupAction.beReused);g=!!O.reusePopup||g;if(C.popup.opened&&!g){H&&!C.openPopupAction.replacePopup||this.handleClosePopupAction_(C.rendererName,C.openPopupAction.uniqueId);g=O.popupType==="DIALOG"&&!_.h("popup_container_dialog_reopen_killswitch");if(!H&&!g&&F&&F.target==t&&!C.openPopupAction.replacePopup)return U();_.yB(C.popup,function(){this.completeOpenPopupAction_(O,t,C);U()}.bind(this))}else C.popup.opened?C.updatePopup(O):this.completeOpenPopupAction_(O,
t,C),U()}.bind(this))}.bind(this))},
getParentTarget:function(N){if(N&&N instanceof HTMLElement)for(var t=_.D(Object.entries(this.popups_)),O=t.next();!O.done;O=t.next())if(O=_.D(O.value),O.next(),O=O.next().value,this.popupClosesOnClick(O)&&O.popup.contains(N))return O.target},
popupClosesOnClick:function(N){return N.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(N.rendererName.toUpperCase())},
completeOpenPopupAction_:function(N,t,O){O.updatePopup(N);var H=this.narrowMediaQuery_.queryMatches,A=this.isAriaModal;N=this.expandToFullWidth;O.target=t;var Z;t=((Z=O.target.polymerController)!=null?Z:O.target).popupPositionTarget||O.target;O.JSC$21303_popupConfig.targetContainer&&(t=O.container);O.popup.positionTarget=t;O.popupContent.positionTarget=t;oi1(O);O.JSC$21303_popupConfig.forceFocus&&(O.popupContent.style.outline="none");O.popupContent.tabIndex=-1;O.JSC$21303_popupConfig.narrowProperties&&
(O.popup.style.position="static");O.JSC$21303_popupConfig.preventAutonav&&O.popup.setAttribute("prevent-autonav",!0);O.JSC$21303_popupConfig.forceCloseOnOutsideClick&&O.popup.setAttribute("force-close-on-outside-click",!0);scO(O,H,A);Z={};Z.width=N?"100%":"";O41(O,O.JSC$21303_popupConfig.styles,Z);O.isRtl()&&O41(O,O.JSC$21303_popupConfig.rtlStyles,Z);if(!O.openPopupAction.shouldStopParentSignal){var U;N=(U=O.target.polymerController)!=null?U:O.target;(O.popupContent.startForwardingEvents||O.popupContainerConfig.forwardingEnabledPopups.has(O.rendererName))&&
N.parentComponent!==O.popupContent&&O.popupContent!==O.target&&O.target!==document.body&&(O.popupContent.startForwardingEvents?O.popupContent.startForwardingEvents(O.popupContainerConfig.forwardedEvents,O.target):(O.JSC$21303_eventForwarder||(O.JSC$21303_eventForwarder=new _.UI(O.popupContent)),O.JSC$21303_eventForwarder.start(O.popupContainerConfig.forwardedEvents,O.target)))}O=O.popup;O.addEventListener("iron-overlay-opened",_.Fb(this,this.onPopupIronOverlayOpened_));O.addEventListener("iron-overlay-closed",
_.Fb(this,this.onPopupIronOverlayClosed_));O.addEventListener("iron-overlay-canceled",_.Fb(this,this.onPopupIronOverlayCanceled_));O.addEventListener("yt-refit",_.Fb(this,this.refitPopup_));O.addEventListener("yt-invalidate-popup-tabbables",_.Fb(this,this.handleInvalidatePopupTabbables_));O.open()},
getPopupDurationMs_:function(N){return N.durationHintMs===0?N.durationHintMs:Math.max(4E3,N.durationHintMs||4E3)},
handleClosePopupAction_:function(N,t){var O=_.h("web_popup_cache_key_killswitch")||!!t;if(N||O){var H=this.createCacheKey(N,t);N=(N=this.popups_[H])&&N.popup}else N=_.Q5f(_.F6);if(N&&N.close){if(t=_.cY().resolve(_.BY(_.z6)))N.restoreFocusOnClose=t.isKeyBoardInUse();N.close();this.removePopup_(N,H)}},
handleClosePopupCommand_:function(N){N.closePopupCommand&&N.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,N.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(N){var t={},O;for(O in this.popups_)if(t={key$jscomp$1233:t.key$jscomp$1233},t.key$jscomp$1233=O,!N||!N.some(function(Z){return function(U){return U==Z.key$jscomp$1233}}(t))){var H=this.popups_[t.key$jscomp$1233],A=H.popup;
_.cY().resolve(_.BY(_.L4))&&H.openPopupAction.popupType==="TOAST"||(A&&A.close&&A.close(),this.removePopup_(A,t.key$jscomp$1233))}},
handleClosePopupsAction_:function(N){N.forEach(function(t){var O=this.popups_[t];O&&((O=O.popup)&&O.close&&O.close(),this.removePopup_(O,t))}.bind(this))},
handleGetPopupOpenedAction_:function(N,t){return(t=this.createCacheKey(N,t))&&this.popups_[t]?this.popups_[N].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var N=[],t;for(t in this.popups_){var O=this.popups_[t];O.popup.opened&&N.push(O)}return N},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(N,t){_.h("ytpopup_disable_default_html_caching")&&N&&N.removeWhenClosed&&(_.O6(this.hostElement).removeChild(N),t&&this.popups_[t]&&delete this.popups_[t])},
shouldReusePopup_:function(N){return!(!N||!N.reusePopup)||!(!N||!N.beReused)},
ensurePopup_:function(N,t){this.maybeCreateNarrowMediaQuery_();var O=_.mD(N.popup,"renderer")||_.mD(N.popup,"dialog")||_.mD(N.popup,"model");if(!O)return _.Hc();O=_.Hxt(O,uTm(this.popupContainerConfig,O));return _.Hc(this.getAndMaybeCreatePopup_(N,O,t))},
getAndMaybeCreatePopup_:function(N,t,O){var H=this.createCacheKey(t,N.uniqueId);if(this.popups_[H])return this.popups_[H];N=new t2({openPopupAction:N,target:O,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(t)});return this.popups_[H]=N},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(N){return _.h("ytpopup_disable_default_html_caching")?N&&N.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.Fb(this,this.openPopupQueryMatchesChanged_)),_.O6(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(N){N=N.detail.value;for(var t in this.popups_)scO(this.popups_[t],N)},
onPopupIronOverlayClosed_:function(N){var t=N.currentTarget,O=_.$lv(t);O=O.length>0?O[0]:t;if(O.is!=="ytd-reel-watch-while-dialog-renderer"||N.target.is!=="tp-yt-iron-dropdown"){N.detail.popup=t;N.detail.popupRenderer=O;var H,A={context:{openingElement:((H=this.popups_[(O==null?void 0:O.is)||""])==null?void 0:H.target)||void 0}};Object.assign(A,N.detail);var Z;_.or((Z=O.hostElement)!=null?Z:O,"yt-popup-closed",A);t.removeEventListener("yt-refit",_.Fb(this,this.refitPopup_));t.removeEventListener("yt-invalidate-popup-tabbables",
_.Fb(this,this.handleInvalidatePopupTabbables_));t.removeEventListener("iron-overlay-canceled",_.Fb(this,this.onPopupIronOverlayCanceled_));t.removeEventListener("iron-overlay-closed",_.Fb(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(t)}},
onPopupIronOverlayCanceled_:function(N,t){var O=N.currentTarget,H=_.$lv(O);H=H.length>0?H[0]:O;if(H.is!=="ytd-reel-watch-while-dialog-renderer"||N.target.is!=="tp-yt-iron-dropdown"){var A;_.or((A=H.hostElement)!=null?A:H,"yt-popup-canceled",N.detail);A=t?_.m1(t):null;(!t||["click","tap"].includes(t.type))&&!O.hasAttribute("force-close-on-outside-click")&&O.positionTarget&&A&&A.includes(O.positionTarget)&&N.preventDefault();O.restoreFocusOnClose=_.rA.keyboardEventMatchesKeys(t,"esc")}},
onPopupIronOverlayOpened_:function(N){N=N.currentTarget;var t=_.$lv(N);t=t.length>0?t[0]:N;var O,H;_.or((O=t.hostElement)!=null?O:t,"yt-popup-opened",(H=t.hostElement)!=null?H:t);N.keepBelowPlayer&&(this.ensurePopupBelowPlayer(N,!0),this.dynamicallyPositionedElements_.add(N));O=_.cY().resolve(_.BY(_.z6));H=!!t.querySelector("#toast");O&&O.isKeyBoardInUse()&&!H&&(typeof t.focusFirstItem==="function"?t.focusFirstItem():(t=_.rCZ(N),t.length&&t[0].focus()));N.removeEventListener("iron-overlay-opened",
_.Fb(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(N){N=N.currentTarget;N.refit&&N.refit()},
refitPopups_:function(){for(var N in this.popups_)this.popups_[N].refit()},
handleInvalidatePopupTabbables_:function(N){N=N.currentTarget;N.invalidateTabbables&&N.invalidateTabbables()},
createCacheKey:function(N,t){return _.h("web_popup_cache_key_killswitch")?t?N+"#"+t:N:t?"#"+t:N},
openSheet:function(N,t){var O=N==null?void 0:N.openPopupActionCommand;if(!O&&(N==null?0:N.viewModel)){if(N.sheetPosition)a:switch(N.sheetPosition){case "SHEET_POSITION_RIGHT":O="OPEN_POPUP_POSITION_RIGHT";break a;default:O="OPEN_POPUP_POSITION_UNKNOWN"}else O=void 0;O={openPopupAction:{popup:{sheetViewModel:N.viewModel},popupType:"CONTEXTUAL_SHEET",position:O}}}if(O){var H;this.expandToFullWidth=(H=N==null?void 0:N.expandToFullWidth)!=null?H:!1;this.handleOpenPopupAction(O,t)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var N=this;return _.K(function(t){return t.return(N.handleGetOpenedPopupsAction_().filter(function(O){var H;return((H=O.openPopupAction)==null?void 0:H.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(N,t,O){if(_.h("web_dialog_utils_killswitch")){var H=N==null?void 0:N.openPopupActionCommand,A=(O==null?0:O.ariaLabel)?{accessibilityData:{accessibilityData:{label:O.ariaLabel}}}:void 0;!H&&(N==null?0:N.viewModel)&&(H={openPopupAction:Object.assign({},{popup:{dialogViewModel:N.viewModel},popupType:(O==null?0:O.isModal)?"MODAL":"DIALOG"},A&&A)});H&&this.handleOpenPopupAction(H,t)}else{if(A=N==null?void 0:N.viewModel){var Z=O=O===void 0?{}:O;O=Z.ariaLabel;A={popup:{dialogViewModel:A},
popupType:Z.isModal?"MODAL":"DIALOG"};Z={accessibilityData:{label:O}};O&&(A.accessibilityData=Z);A={openPopupAction:A}}else A=void 0;if(A=(H=A)!=null?H:N==null?void 0:N.openPopupActionCommand)this.isAriaModal=_.h("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(A,t)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var N=this;return _.K(function(t){return t.return(N.handleGetOpenedPopupsAction_().filter(function(O){var H;return((H=O.openPopupAction)==null?void 0:H.popupType)==="DIALOG"}).length>0)})}}];var AhO;var Z41;var Vx5=_.mp(["about:blank"]),O0=function(){var N=_.k.apply(this,arguments)||this;N.isMuted=!1;N.pageLoadTimeoutId=void 0;return N};
_.p(O0,_.k);_.V=O0.prototype;_.V.dataChanged=function(){var N=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var t=this.data.url,O=_.Rk(t);_.h("enable_yt_ata_iframe_authuser")?(O=_.Rk(t),_.No(this.iframe,z4x(O))):_.No(this.iframe,O);this.pageLoadTimeoutId=_.WX(_.zh(),function(){return void N.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.CA({destination:window,iframe:this.iframe,origin:_.K7y(O.toString()),channelName:"ataiframe",onMessage:_.$mY(t_f,function(H){Oo1(H.data)?(H=_.R1(H.data,1,_.Zz,_.cA()),H.length!==1?_.J_(Error("Ml")):(H=H[0],H===3?(N.isMuted=!0,N.logStateChanged({adMuteRequested:!0})):H===1&&N.close())):_.J_(Error("Nl"))}),
onEstablished:function(){N.cancelPageLoadTimeout();N.logStateChanged({pageLoadSucceeded:!0})}})}};
_.V.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.zh().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.V.logStateChanged=function(N){var t;if((t=this.data)==null?0:t.trackingParams)N={adsClientData:{aboutThisAdData:N}},_.gF().stateChanged(this.data.trackingParams,N)};
_.V.close=function(){_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.handlesPopupClosed=function(N,t){var O=this,H,A;return _.K(function(Z){if(Z.nextAddress==1)return _.Ro("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.sl(O.hostElement,"on-about-this-ad-popup-closed",[O.isMuted,t]),Z.jumpTo(0)):N&&Ywq(N)?Z.yield(ab5(N),4):(O.isMuted&&_.sl(O.hostElement,"yt-mute-ad-action",[O.is,O]),Z.jumpTo(0));if(H=Z.yieldResult){var U=A=new _.ZH(H),C=O.isMuted;U.getOptions().includes("onAboutThisAdPopupClosed")?_.MvZ(U,"onAboutThisAdPopupClosed",{isMuted:C,layoutId:t}):_.rZ("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Ty(Z)})};
_.V.onPopupClosed=function(N){var t=this,O,H;return _.K(function(A){O=_.ju(Vx5);_.No(t.iframe,O);t.cancelPageLoadTimeout();if(!t.data)return A.jumpTo(0);t.ytRendererBehavior.markDirty();H=N.detail.context.openingElement;return A.yield(t.handlesPopupClosed(H,t.data.layoutId),0)})};
_.V.detached=function(){this.cancelPageLoadTimeout()};
_.V.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
O0.prototype.onPopupClosed=O0.prototype.onPopupClosed;O0.prototype.dataChanged=O0.prototype.dataChanged;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.W([_.B2("#iframe"),_.Q("design:type",HTMLIFrameElement)],O0.prototype,"iframe",void 0);_.W([_.X(),_.Q("design:type",Object)],O0.prototype,"data",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],O0.prototype,"dataChanged",null);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype",Promise)],O0.prototype,"onPopupClosed",null);_.W([_.wz({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],O0);
_.n(O0,"yt-about-this-ad-renderer",function(){if(Z41===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;AhO===void 0&&(AhO=document.createElement("template"));var H=AhO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Z41=N}N=Z41;return N},{mode:2});var D$i;var U$J;var CZf=function(N){var t=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=t.message;"stack"in t&&(this.stack=t.stack);this.maxFileSizeMB=N;Object.setPrototypeOf(this,CZf.prototype)};
_.p(CZf,Error);var KxJ=function(N,t){var O=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=O.message;"stack"in O&&(this.stack=O.stack);this.minWidth=N;this.minHeight=t;Object.setPrototypeOf(this,KxJ.prototype)};
_.p(KxJ,Error);var Fxz=function(N){this.requirements=N;this.JSC$21331_maxFileSize=N.maxFileSizeMB*1024*1024},d$5=function(N,t){if(t.size>N.JSC$21331_maxFileSize)throw new CZf(N.requirements.maxFileSizeMB);
};var gBi=function(N,t){this.canvas=N;this.imageEditorBuilder=t};
gBi.prototype.addEventListeners=function(N){var t=function(A){yhm(N,A)};
this.JSC$21337_mouseDownEvent=t;var O=function(A){B2O(N,A)};
this.JSC$21337_mouseMoveEvent=O;var H=function(){chm(N)};
this.JSC$21337_mouseUpEvent=H;this.canvas.addEventListener("mousedown",t);this.canvas.addEventListener("mousemove",O);document.addEventListener("mouseup",H)};
gBi.prototype.removeEventListeners=function(){this.JSC$21337_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21337_mouseDownEvent);this.JSC$21337_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21337_mouseMoveEvent);this.JSC$21337_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21337_mouseUpEvent)};
var $$r=function(N,t){N.removeEventListeners();return new Promise(function(O){var H=new Image;H.crossOrigin="anonymous";H.onload=function(){var A=N.imageEditorBuilder(N.canvas,H);N.addEventListeners(A);O(A)};
H.src=t})},Hg=function(N,t,O,H,A,Z,U,C){this.canvas=N;
this.image=t;this.requiredRatio=O;this.minImageCropDimension=H;this.minOutputImageResolution=A;this.component=Z;this.styleFocusedCorner=C===void 0?!0:C;this.action=2;this.focusedCorner=this.resizeCorner=0;N=this.canvas.getContext("2d");if(!N)throw Error("Ol");this.ctx=N;this.canvasMargin=U!=null?U:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;U=this.image;N=this.canvasInnerWidth/U.width;U.height*N>912&&(N=U.width/U.height*912/U.width);U=N;this.scaledImageWidth=this.canvas.width%2?
w15(this.image.width*U):TIf(this.image.width*U);this.scaledImageHeight=Math.round(this.image.height*U);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21340_overlayMarginBottom=this.JSC$21340_overlayMarginTop=this.canvasMargin;this.JSC$21340_overlayMarginRight=this.JSC$21340_overlayMarginLeft=this.horizontalMargin;this.JSC$21340_overlayWidth=this.scaledImageWidth;this.JSC$21340_overlayHeight=this.scaledImageHeight;
N=this.image.width/this.image.height;N>this.requiredRatio?(this.JSC$21340_overlayWidth=this.canvas.width%2?w15(this.scaledImageHeight*this.requiredRatio):TIf(this.scaledImageHeight*this.requiredRatio),this.JSC$21340_overlayMarginRight=this.JSC$21340_overlayMarginLeft=(this.canvas.width-this.JSC$21340_overlayWidth)/2):N<this.requiredRatio&&(this.JSC$21340_overlayHeight=this.canvas.height%2?w15(this.scaledImageWidth/this.requiredRatio):TIf(this.scaledImageWidth/this.requiredRatio),this.JSC$21340_overlayMarginBottom=
this.JSC$21340_overlayMarginTop=(this.canvas.height-this.JSC$21340_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*U,this.scaledImageWidth);jYz(this)};
Hg.prototype.getContext=function(){return this.ctx};
var yhm=function(N,t){t={x:Math.round(t.pageX-N.canvas.getBoundingClientRect().left),y:Math.round(t.pageY-N.canvas.getBoundingClientRect().top)};N.dragStart=t;i4J(N,t)!==0?(N.action=1,uD1(N,t),N.resizeCorner=i4J(N,t)):t.x>N.JSC$21340_overlayMarginLeft&&t.x<N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth&&t.y>N.JSC$21340_overlayMarginTop&&t.y<N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight&&(N.action=0)},Sgr=function(N,t){switch(t){case 1:return{x:N.JSC$21340_overlayMarginLeft,
y:N.JSC$21340_overlayMarginTop};case 2:return{x:N.JSC$21340_overlayMarginLeft,y:N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight};case 3:return{x:N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth,y:N.JSC$21340_overlayMarginTop};case 4:return{x:N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth,y:N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight};default:throw Error("Pl");}},Mx5=function(N,t){if(N.focusedCorner!==0){N.dragStart=Sgr(N,N.focusedCorner);
N.action=1;N.resizeCorner=N.focusedCorner;var O=N.dragStart.x,H=N.dragStart.y;switch(t){case 0:N.focusedCorner===1||N.focusedCorner===4?(O-=10,H-=10):(O-=10,H+=10);break;case 1:N.focusedCorner===1||N.focusedCorner===4?(O+=10,H+=10):(O+=10,H-=10);break;case 2:O=N.focusedCorner===1||N.focusedCorner===4?O-10:O+10;H-=10;break;case 3:O=N.focusedCorner===1||N.focusedCorner===4?O+10:O-10;H+=10;break;default:throw Error("Ql");}hZi(N,{x:O,y:H});jYz(N);N.action=2;N.dragStart=void 0}},B2O=function(N,t){t={x:Math.round(t.pageX-
N.canvas.getBoundingClientRect().left),
y:Math.round(t.pageY-N.canvas.getBoundingClientRect().top)};uD1(N,t);switch(N.action){case 1:hZi(N,t);break;case 0:N.dragStart&&(N.JSC$21340_overlayMarginLeft=Math.max(N.horizontalMargin,Math.min(N.JSC$21340_overlayMarginLeft-(N.dragStart.x-t.x),N.horizontalMargin+N.scaledImageWidth-N.JSC$21340_overlayWidth)),N.JSC$21340_overlayMarginRight=N.canvas.width-N.JSC$21340_overlayMarginLeft-N.JSC$21340_overlayWidth,N.JSC$21340_overlayMarginTop=Math.max(N.canvasMargin,Math.min(N.JSC$21340_overlayMarginTop-
(N.dragStart.y-t.y),N.scaledImageHeight-N.JSC$21340_overlayHeight+N.canvasMargin)),N.JSC$21340_overlayMarginBottom=N.canvas.height-(N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight));break;default:return}jYz(N);N.dragStart=t},chm=function(N){N.action=2;
N.dragStart=void 0;document.body.style.cursor="auto"},uD1=function(N,t){switch(i4J(N,t)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:N.action!==1&&(document.body.style.cursor="auto")}},i4J=function(N,t){var O=N.JSC$21340_overlayMarginLeft-5,H=N.JSC$21340_overlayMarginTop-5,A=N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth-5;
N=N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight-5;return b4n(t,{x:O,y:H})?1:b4n(t,{x:A,y:H})?3:b4n(t,{x:O,y:N})?2:b4n(t,{x:A,y:N})?4:0},b4n=function(N,t){return N.x>=t.x&&N.x<=t.x+10&&N.y>=t.y&&N.y<=t.y+10},hZi=function(N,t){if(N.dragStart)switch(N.resizeCorner){case 2:Math.abs((N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth-t.x)/(t.y-N.JSC$21340_overlayMarginTop))>=N.requiredRatio?pE1(N,t.x):Lxq(N,t.y);
break;case 1:Math.abs((N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth-t.x)/(N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight-t.y))>=N.requiredRatio?zZO(N,t.x):Lxq(N,t.y);break;case 4:Math.abs((t.x-N.JSC$21340_overlayMarginLeft)/(t.y-N.JSC$21340_overlayMarginTop))>=N.requiredRatio?pE1(N,t.x):YgO(N,t.y);break;case 3:Math.abs((t.x-N.JSC$21340_overlayMarginLeft)/(N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight-t.y))>=N.requiredRatio?zZO(N,t.x):YgO(N,t.y);break;default:throw Error("Rl");
}},pE1=function(N,t){var O=N.JSC$21340_overlayMarginTop;
N.JSC$21340_overlayMarginBottom=aqr(N,t);N.JSC$21340_overlayHeight=N.canvas.height-N.JSC$21340_overlayMarginBottom-O;N.JSC$21340_overlayWidth=Math.round(N.JSC$21340_overlayHeight*N.requiredRatio);T2i(N)},zZO=function(N,t){var O=N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight;
N.JSC$21340_overlayMarginTop=aqr(N,t);N.JSC$21340_overlayHeight=O-N.JSC$21340_overlayMarginTop;N.JSC$21340_overlayWidth=Math.round(N.JSC$21340_overlayHeight*N.requiredRatio);T2i(N)},T2i=function(N){switch(N.resizeCorner){case 2:case 1:N.JSC$21340_overlayMarginLeft=N.canvas.width-N.JSC$21340_overlayMarginRight-N.JSC$21340_overlayWidth;
break;case 4:case 3:N.JSC$21340_overlayMarginRight=N.canvas.width-N.JSC$21340_overlayMarginLeft-N.JSC$21340_overlayWidth;break;default:throw Error("Rl");}},Lxq=function(N,t){var O=N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth;
N.JSC$21340_overlayMarginLeft=wE5(N,t);N.JSC$21340_overlayWidth=O-N.JSC$21340_overlayMarginLeft;N.JSC$21340_overlayHeight=Math.round(N.JSC$21340_overlayWidth/N.requiredRatio);eZn(N)},YgO=function(N,t){var O=N.JSC$21340_overlayMarginLeft;
N.JSC$21340_overlayMarginRight=wE5(N,t);N.JSC$21340_overlayWidth=N.canvas.width-N.JSC$21340_overlayMarginRight-O;N.JSC$21340_overlayHeight=Math.round(N.JSC$21340_overlayWidth/N.requiredRatio);eZn(N)},eZn=function(N){switch(N.resizeCorner){case 2:case 4:N.JSC$21340_overlayMarginBottom=N.canvas.height-N.JSC$21340_overlayMarginTop-N.JSC$21340_overlayHeight;
break;case 1:case 3:N.JSC$21340_overlayMarginTop=N.canvas.height-N.JSC$21340_overlayMarginBottom-N.JSC$21340_overlayHeight;break;default:throw Error("Rl");}},aqr=function(N,t){switch(N.resizeCorner){case 2:t=N.canvas.height-(N.JSC$21340_overlayMarginTop+PZf(N,t));
break;case 4:t=N.canvas.height-(N.JSC$21340_overlayMarginTop+XE5(N,t));break;case 1:t=N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight-PZf(N,t);break;case 3:t=N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight-XE5(N,t);break;default:throw Error("Rl");}return Math.max(t,N.canvasMargin)},PZf=function(N,t){t=N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth-Math.max(t,N.horizontalMargin);
t=t<0?N.JSC$21340_overlayWidth:Math.max(t,N.minOverlayWidth);return Math.round(t/N.requiredRatio)},XE5=function(N,t){t=N.canvas.width-Math.max(N.canvas.width-t,N.horizontalMargin)-N.JSC$21340_overlayMarginLeft;
t=t<0?N.JSC$21340_overlayWidth:Math.max(t,N.minOverlayWidth);return Math.round(t/N.requiredRatio)},wE5=function(N,t){switch(N.resizeCorner){case 2:t=N.canvas.width-N.JSC$21340_overlayMarginRight-x$m(N,t);
break;case 4:t=N.canvas.width-N.JSC$21340_overlayMarginLeft-x$m(N,t);break;case 1:t=N.canvas.width-N.JSC$21340_overlayMarginRight-k$5(N,t);break;case 3:t=N.canvas.width-N.JSC$21340_overlayMarginLeft-k$5(N,t);break;default:throw Error("Rl");}return Math.max(t,N.horizontalMargin)},x$m=function(N,t){t=N.canvas.height-Math.max(N.canvas.height-t,N.canvasMargin)-N.JSC$21340_overlayMarginTop;
return t<0?N.JSC$21340_overlayWidth:Math.max(Math.round(t*N.requiredRatio),N.minOverlayWidth)},k$5=function(N,t){t=N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight-Math.max(t,N.canvasMargin);
return t<0?N.JSC$21340_overlayWidth:Math.max(Math.round(t*N.requiredRatio),N.minOverlayWidth)},jYz=function(N){N.ctx.clearRect(0,0,N.canvas.width,N.canvas.height);
N.ctx.drawImage(N.image,0,0,N.image.width,N.image.height,N.horizontalMargin,N.canvasMargin,N.canvas.width-2*N.horizontalMargin,N.scaledImageHeight);N.ctx.fillStyle="rgba(0, 0, 0, 0.7)";N.ctx.fillRect(N.horizontalMargin,N.JSC$21340_overlayMarginTop,N.JSC$21340_overlayMarginLeft-N.horizontalMargin,N.JSC$21340_overlayHeight);N.ctx.fillRect(N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth,N.JSC$21340_overlayMarginTop,N.JSC$21340_overlayMarginRight-N.horizontalMargin,N.JSC$21340_overlayHeight);N.ctx.fillRect(N.horizontalMargin,
N.canvasMargin,N.scaledImageWidth,N.JSC$21340_overlayMarginTop-N.canvasMargin);N.ctx.fillRect(N.horizontalMargin,N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight,N.scaledImageWidth,N.JSC$21340_overlayMarginBottom-N.canvasMargin);N.drawOverlay();N.component&&_.or(N.component,"image-updated")};
Hg.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21340_overlayMarginLeft,this.JSC$21340_overlayMarginTop,this.JSC$21340_overlayWidth,this.JSC$21340_overlayHeight);qgx(this)};
var qgx=function(N){var t=N.JSC$21340_overlayMarginLeft-5,O=N.JSC$21340_overlayMarginTop-5,H=N.JSC$21340_overlayMarginLeft+N.JSC$21340_overlayWidth-5,A=N.JSC$21340_overlayMarginTop+N.JSC$21340_overlayHeight-5;N.ctx.fillStyle="#FFF";N.ctx.fillRect(t,O,10,10);N.ctx.strokeRect(t,O,10,10);N.ctx.fillRect(H,O,10,10);N.ctx.strokeRect(H,O,10,10);N.ctx.fillRect(t,A,10,10);N.ctx.strokeRect(t,A,10,10);N.ctx.fillRect(H,A,10,10);N.ctx.strokeRect(H,A,10,10);if(N.focusedCorner!==0&&N.styleFocusedCorner){N.ctx.lineWidth=
4;N.ctx.strokeStyle="#3EA6FF";switch(N.focusedCorner){case 1:--t;--O;break;case 2:--t;O=A-1;break;case 3:t=H-1;--O;break;case 4:t=H-1;O=A-1;break;default:return}N.ctx.strokeRect(t,O,12,12)}};
Hg.prototype.crop=function(N,t){t=t===void 0?!0:t;var O=this.image.width/this.scaledImageWidth,H=document.createElement("canvas"),A=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],Z=this.JSC$21340_overlayWidth*O,U=this.JSC$21340_overlayHeight*O;H.width=Math.max(Z,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);H.height=Math.max(U,A);N&&(H.width=Math.min(H.width,H.height),H.height=Math.min(H.width,H.height));
N=H.getContext("2d");if(!N)throw Error("Fl");A=(this.JSC$21340_overlayMarginLeft-this.horizontalMargin)*O;O*=this.JSC$21340_overlayMarginTop-this.canvasMargin;t||(N.fillStyle="white",N.fillRect(0,0,H.width,H.height));N.drawImage(this.image,A,O,Z,U,0,0,H.width,H.height);return H};var fqx=function(N,t,O,H,A){Hg.call(this,N,t,O,H,void 0,A,8,!1)};
_.p(fqx,Hg);fqx.prototype.drawOverlay=function(){var N=this.getContext(),t=this.JSC$21340_overlayWidth,O=this.JSC$21340_overlayHeight,H=this.JSC$21340_overlayMarginTop,A=this.JSC$21340_overlayMarginLeft;N.lineWidth=2;N.strokeStyle="#3EA6FF";N.beginPath();N.arc(A+t/2,H+O/2,t/2,0,2*Math.PI);N.stroke();N.strokeRect(A,H,t,O);qgx(this)};
var nB1={maxFileSizeMB:15,minWidth:98,minHeight:98},Wxf=["image/png","image/jpeg","image/gif"],A2=function(){var N=_.k.apply(this,arguments)||this;N.fileSelectorFocusListener=null;N.errorMessage=null;N.isLoading=!0;N.hideContainer=!0;N.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return N};
_.p(A2,_.k);_.V=A2.prototype;_.V.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.V.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.V.computePlaylistThumbnail=function(N){return N==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.V.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.sl(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.V.setErrorState=function(N){this.resetErrorState();N&&(this.errorMessage=N)};
_.V.showPopup=function(){var N=this;this.hideContainer=!1;_.WX(_.GB,function(){_.or(N.hostElement,"yt-refit")});
this.isLoading=!1};
_.V.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.V.closePopup=function(){this.resetFileSelector();_.sl(this.hostElement,"yt-close-popup-action",[this.is])};
_.V.onCancelTap=function(){this.isPlaylistThumbnail||_.sl(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.V.openFileSelector=function(){var N=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.WX(_.GB,function(){setTimeout(function(){if(!N.fileSelector.files||N.fileSelector.files.length===0)N.onCancelTap();N.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(t){t instanceof Error?_.R0(t):_.vX(new _.fF(JSON.stringify(t)))}};
_.V.handleFileSelection=function(){var N=this,t,O,H,A,Z,U;return _.K(function(C){switch(C.nextAddress){case 1:_.Mo(C,2);if(!N.fileSelector.files||!N.imageEditorCanvas)return N.onCancelTap(),C.return();t=N.fileSelector.files[0];d$5(N.imageChecker,t);_.Mo(C,4);return C.yield(Jwq(t),6);case 6:N.mimeType=C.yieldResult;_.Do(C,5,2);break;case 4:_.ax(C,2),_.sl(N.hostElement,"yt-image-selection-error-action",[(O=N.data)==null?void 0:O.genericImageLoadErrorMessage]),N.onCancelTap();case 5:H=new FileReader;
H.addEventListener("load",function(){var F,g;return _.K(function(B){if(B.nextAddress==1){if(!H.result)return _.J_(Error("Hl")),B.return();F=H.result;g=new Image;g.src=F;g.onload=function(){try{var c=N.imageChecker;if(g.width<c.requirements.minWidth||g.height<c.requirements.minHeight)throw new KxJ(c.requirements.minWidth,c.requirements.minHeight);}catch(S){if(S instanceof KxJ){var u;_.sl(N.hostElement,"yt-image-selection-error-action",[(u=N.data)==null?void 0:u.imageDimensionErrorMessage]);N.logImageDimensionErrorVe()}else S instanceof
Error?_.R0(S):(c=new _.fF(JSON.stringify(S)),_.R0(c));N.onCancelTap()}N.showPopup()};
g.onerror=function(){var c;_.sl(N.hostElement,"yt-image-selection-error-action",[(c=N.data)==null?void 0:c.genericImageLoadErrorMessage]);N.onCancelTap()};
return B.yield($$r(N.imageEditorCanvas,F),2)}N.imageEditor=B.yieldResult;N.updatePositionOfAllCorners();N.addEventListeners(N.imageEditor);_.Ty(B)})},!1);
H.readAsDataURL(t);_.Do(C,0);break;case 2:A=_.ax(C),A instanceof CZf?_.sl(N.hostElement,"yt-image-selection-error-action",[(Z=N.data)==null?void 0:Z.imageSizeErrorMessage]):(A instanceof Error?_.R0(A):_.vX(new _.fF(JSON.stringify(A))),_.sl(N.hostElement,"yt-image-selection-error-action",[(U=N.data)==null?void 0:U.genericImageLoadErrorMessage])),N.onCancelTap(),_.Ty(C)}})};
_.V.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var N=_.dF(_.gF(),{veType:232707,visualElement:_.UM(232707)});N&&(N={visualElement:N},_.Fr().reportShown(N))}};
_.V.handleImageSelectionErrorAction=function(N){this.isPlaylistThumbnail&&_.Chp(this.hostElement,N)};
_.V.convertToImageFormatBundle=function(N){var t=this,O,H,A;return _.K(function(Z){switch(Z.nextAddress){case 1:return O=N.toDataURL(t.outputMimeType,1),Z.yield(oD5(O),2);case 2:H=Z.yieldResult;_.Mo(Z,3);d$5(t.imageChecker,H);_.Do(Z,4);break;case 3:A=_.ax(Z);if(!(A instanceof CZf))throw A;_.J_(new _.fF("Output size is bigger than input size for image",t.mimeType,t.outputMimeType,H.size));O=N.toDataURL("image/jpeg",.95);return Z.yield(oD5(O),6);case 6:H=Z.yieldResult;case 4:return Z.return({dataUrl:O,
imageFile:H})}})};
_.V.handleUploadImageToScottyCommand=function(N){var t=this,O,H,A,Z,U,C,F,g,B,c;return _.K(function(u){switch(u.nextAddress){case 1:if(!t.imageEditor||!_.M(N,Af5))return u.return();O=_.M(N,Af5).scottyUploadUrl;if(!O){var S=new _.fF("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.R0(S);return u.return()}_.Mo(u,2);t.setLoadingState();H=t.imageEditor.crop(!1,!1);return u.yield(t.convertToImageFormatBundle(H),4);case 4:return A=u.yieldResult,u.yield(RGJ(A.imageFile,O),5);
case 5:Z=u.yieldResult;((U=t.data)==null?0:U.onUploadEndpoint)?(C=t.buildUploadServiceEndpoint(Z),t.ytComponentBehavior.resolveCommand(C),F=_.M(C,_.CY),((g=F)==null?0:g.params)?t.closePopup():t.resetFileSelector()):(_.sl(t.hostElement,"yt-image-updated-action",[A.dataUrl,Z]),t.closePopup());_.Do(u,0);break;case 2:B=_.ax(u),t.setErrorState((c=t.data)==null?void 0:c.uploadErrorMessage),B instanceof Error?_.R0(B):(S=new _.fF(JSON.stringify(B)),_.R0(S)),_.Ty(u)}})};
_.V.buildUploadServiceEndpoint=function(N){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",N),this.data.onUploadEndpoint):null};
_.V.dataChanged=function(){var N=this,t;return _.K(function(O){if(O.nextAddress==1){if(!N.data||!N.canvasElement)return O.return();N.data.imageRatio&&N.data.minImageCropWidth||_.vX(new _.fF("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));t=function(H,A){return N.data.imageType==="IMAGE_TYPE_AVATAR"?new fqx(H,A,N.data.imageRatio,[N.data.minImageCropWidth,N.data.minImageCropWidth/N.data.imageRatio],N.hostElement):new Hg(H,A,N.data.imageRatio,[N.data.minImageCropWidth,
N.data.minImageCropWidth/N.data.imageRatio],void 0,N.hostElement,8,!1)};
N.imageEditorCanvas=new gBi(N.canvasElement,t);return N.data.url?O.yield($$r(N.imageEditorCanvas,N.data.url),3):(N.hideContainer=!0,N.openFileSelector(),O.jumpTo(0))}N.imageEditor=O.yieldResult;N.showPopup();N.addEventListeners(N.imageEditor);_.Ty(O)})};
_.V.addEventListeners=function(N){this.removeEventListeners();var t=function(A){yhm(N,A)};
this.JSC$21348_mouseDownEvent=t;var O=function(A){B2O(N,A)};
this.JSC$21348_mouseMoveEvent=O;var H=function(){chm(N)};
this.JSC$21348_mouseUpEvent=H;this.topLeftCorner.addEventListener("mousedown",t);this.topLeftCorner.addEventListener("mousemove",O);this.topLeftCorner.addEventListener("mouseup",H);this.topRightCorner.addEventListener("mousedown",t);this.topRightCorner.addEventListener("mousemove",O);this.topRightCorner.addEventListener("mouseup",H);this.bottomLeftCorner.addEventListener("mousedown",t);this.bottomLeftCorner.addEventListener("mousemove",O);this.bottomLeftCorner.addEventListener("mouseup",H);this.bottomRightCorner.addEventListener("mousedown",
t);this.bottomRightCorner.addEventListener("mousemove",O);this.bottomRightCorner.addEventListener("mouseup",H)};
_.V.removeEventListeners=function(){this.JSC$21348_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21348_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21348_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21348_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21348_mouseDownEvent));this.JSC$21348_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21348_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21348_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21348_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21348_mouseMoveEvent));this.JSC$21348_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21348_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21348_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21348_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21348_mouseUpEvent))};
_.V.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var N=document.activeElement;N&&N.shadowRoot&&N.shadowRoot.activeElement;)N=N.shadowRoot.activeElement;switch(N){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.V.updatePositionOfCorner=function(N,t){var O=N.y-t.offsetHeight/2+4;t.style.left=N.x-t.offsetWidth/2+16+"px";t.style.top=O+"px"};
_.V.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var N=_.D([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),t=N.next();!t.done;t=N.next()){t=t.value;var O=Sgr(this.imageEditor,t.corner);this.updatePositionOfCorner(O,t.div)}};
_.V.onLeft=function(N){this.imageEditor&&this.setFocusInImageEditor()&&(Mx5(this.imageEditor,0),this.updatePositionOfAllCorners(),N.preventDefault())};
_.V.onRight=function(N){this.imageEditor&&this.setFocusInImageEditor()&&(Mx5(this.imageEditor,1),this.updatePositionOfAllCorners(),N.preventDefault())};
_.V.onUp=function(N){this.imageEditor&&this.setFocusInImageEditor()&&(Mx5(this.imageEditor,2),this.updatePositionOfAllCorners(),N.preventDefault())};
_.V.onDown=function(N){this.imageEditor&&this.setFocusInImageEditor()&&(Mx5(this.imageEditor,3),this.updatePositionOfAllCorners(),N.preventDefault())};
_.V.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.cv.Object.defineProperties(A2.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Wxf.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var N,t,O;((t=this.data)==null?0:t.imageRatio)&&((O=this.data)==null?0:O.minImageCropWidth)?N={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:N=nB1;return new Fxz(N)}}});
A2.prototype.updatePositionOfAllCorners=A2.prototype.updatePositionOfAllCorners;A2.prototype.dataChanged=A2.prototype.dataChanged;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],A2.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],A2.prototype,"ytComponentBehavior",void 0);_.W([_.Y(_.rA),_.Q("design:type",Object)],A2.prototype,"ironA11yKeysBehavior",void 0);
_.W([_.B2("#canvas"),_.Q("design:type",HTMLCanvasElement)],A2.prototype,"canvasElement",void 0);_.W([_.B2("#file-selector"),_.Q("design:type",HTMLInputElement)],A2.prototype,"fileSelector",void 0);_.W([_.B2("#top-left-corner"),_.Q("design:type",HTMLDivElement)],A2.prototype,"topLeftCorner",void 0);_.W([_.B2("#top-right-corner"),_.Q("design:type",HTMLDivElement)],A2.prototype,"topRightCorner",void 0);
_.W([_.B2("#bottom-left-corner"),_.Q("design:type",HTMLDivElement)],A2.prototype,"bottomLeftCorner",void 0);_.W([_.B2("#bottom-right-corner"),_.Q("design:type",HTMLDivElement)],A2.prototype,"bottomRightCorner",void 0);_.W([_.X(),_.Q("design:type",Object)],A2.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],A2.prototype,"errorMessage",void 0);_.W([_.X(),_.Q("design:type",Object)],A2.prototype,"isLoading",void 0);_.W([_.X(),_.Q("design:type",Object)],A2.prototype,"hideContainer",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Q("design:type",Boolean)],A2.prototype,"isPlaylistThumbnail",void 0);_.W([_.ic("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],A2.prototype,"dataChanged",null);_.W([_.dz("image-updated"),_.dz("yt-refit"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],A2.prototype,"updatePositionOfAllCorners",null);
_.W([_.wz({is:"yt-image-editor-renderer",disableElementRegistration:!0})],A2);
_.n(A2,"yt-image-editor-renderer",function(){if(U$J===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;D$i===void 0&&(D$i=document.createElement("template"));var H=D$i;O.call(t,H.content.cloneNode(!0),N.content.firstChild);U$J=N}N=U$J;return N},{mode:2});var rh5;var IqO;var ZK=function(){return _.k.apply(this,arguments)||this};
_.p(ZK,_.k);ZK.prototype.updateMinutesFromBinding=function(N){this.handleMinutesChanged&&this.handleMinutesChanged(N)};
ZK.prototype.updateSecondsFromBinding=function(N){this.handleSecondsChanged&&this.handleSecondsChanged(N)};
ZK.prototype.updateDescriptionFromBinding=function(N){this.handleDescriptionChanged&&this.handleDescriptionChanged(N)};
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],ZK.prototype,"ytComponentBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],ZK.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",String)],ZK.prototype,"minutes",void 0);_.W([_.X(),_.Q("design:type",String)],ZK.prototype,"seconds",void 0);_.W([_.X(),_.Q("design:type",String)],ZK.prototype,"description",void 0);_.W([_.X(),_.Q("design:type",Function)],ZK.prototype,"handleMinutesChanged",void 0);
_.W([_.X(),_.Q("design:type",Function)],ZK.prototype,"handleSecondsChanged",void 0);_.W([_.X(),_.Q("design:type",Function)],ZK.prototype,"handleDescriptionChanged",void 0);_.W([_.X(),_.Q("design:type",Number)],ZK.prototype,"characterLimit",void 0);_.W([_.X(),_.Q("design:type",Number)],ZK.prototype,"textNumRows",void 0);_.W([_.wz({is:"yt-report-details-form-content",disableElementRegistration:!0})],ZK);
_.n(ZK,"yt-report-details-form-content",function(){if(IqO===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;rh5===void 0&&(rh5=document.createElement("template"));var H=rh5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);IqO=N}N=IqO;return N},{mode:2});var lqn;var QY5;var Vi=function(){var N=_.k.apply(this,arguments)||this;N.updateMinutesFromBinding=function(t){N.minutes=t.detail.value};
N.updateSecondsFromBinding=function(t){N.seconds=t.detail.value};
N.updateDescriptionFromBinding=function(t){N.description=t.detail.value};
return N};
_.p(Vi,_.k);_.V=Vi.prototype;_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.V.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.ready=function(){_.O6(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.V.onSubmitYtAction=function(N){var t=N.detail;t.actionName==="yt-service-request"&&(t=t.args[1],t.flagEndpoint&&(N.stopPropagation(),this.refireAction(t)))};
_.V.refireAction=function(N){var t={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(t.vss_id=this.vssId);_.tb(this.hostElement,[N,t]);this.submitDisabled=!0};
_.V.dataChanged=function(){var N=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var t=_.si();t&&t.getPlayerPromise().then(function(O){var H=O.getOption("cc","track")||O.getOption("captions","track");H&&(N.vssId=H.vss_id);O=O.getCurrentTime();N.minutes=Math.floor(O/60).toString();N.seconds=(Math.floor(O)%60).toString()})};
_.V.updateSubmitButtonState=function(){var N;((N=this.data)==null?0:N.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.V.onYtServiceRequestCompleted=function(){_.sl(this.hostElement,"yt-close-popup-action")};
_.V.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.cv.Object.defineProperties(Vi.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var N;return((N=this.data)==null?void 0:N.textNumRows)||4}}});
Vi.prototype.onYtServiceRequestError=Vi.prototype.onYtServiceRequestError;Vi.prototype.onYtServiceRequestCompleted=Vi.prototype.onYtServiceRequestCompleted;Vi.prototype.updateSubmitButtonState=Vi.prototype.updateSubmitButtonState;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);
_.W([_.X({observer:"dataChanged"}),_.Q("design:type",Object)],Vi.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Boolean)],Vi.prototype,"submitDisabled",void 0);_.W([_.X(),_.Q("design:type",String)],Vi.prototype,"minutes",void 0);_.W([_.X(),_.Q("design:type",String)],Vi.prototype,"seconds",void 0);_.W([_.X(),_.Q("design:type",String)],Vi.prototype,"description",void 0);_.W([_.X(),_.Q("design:type",String)],Vi.prototype,"vssId",void 0);
_.W([_.X({value:_.Ro("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Q("design:type",Boolean)],Vi.prototype,"isMusic",void 0);_.W([_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Vi.prototype,"characterLimit",null);_.W([_.a("data"),_.Q("design:type",Number),_.Q("design:paramtypes",[])],Vi.prototype,"textNumRows",null);
_.W([_.ic("minutes","seconds","description","submitDisabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vi.prototype,"updateSubmitButtonState",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vi.prototype,"onYtServiceRequestCompleted",null);
_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Vi.prototype,"onYtServiceRequestError",null);_.W([_.wz({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Vi);
_.n(Vi,"yt-report-details-form-renderer",function(){if(QY5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;lqn===void 0&&(lqn=document.createElement("template"));var H=lqn;O.call(t,H.content.cloneNode(!0),N.content.firstChild);QY5=N}N=QY5;return N});var m$5;var EB1;var G$O;var RZf;var DK=function(){return _.k.apply(this,arguments)||this};
_.p(DK,_.k);
DK.prototype.onCheckedChanged_=function(){if(this.data){var N=_.O6(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.sl(this.hostElement,"yt-additional-detail-checkbox-update",[N]):this.data.identifier==="yt-hide-user-checkbox"?_.sl(this.hostElement,"yt-hide-user-checkbox-update",[N]):N&&this.data.enableCommand?_.sl(this.hostElement,"yt-modify-report-form-command",[_.M(this.data.enableCommand,FQ5)]):!N&&this.data.disableCommand&&_.sl(this.hostElement,
"yt-modify-report-form-command",[_.M(this.data.enableCommand,FQ5)])}};
DK.prototype.onLabelTap_=function(N){N.target.tagName!="A"&&(_.O6(this.hostElement).querySelector("#checkbox").checked=!_.O6(this.hostElement).querySelector("#checkbox").checked)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],DK.prototype,"data",void 0);_.W([_.wz({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],DK);
_.n(DK,"yt-boolean-form-field-v2-renderer",function(){if(RZf===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;G$O===void 0&&(G$O=document.createElement("template"));var H=G$O;O.call(t,H.content.cloneNode(!0),N.content.firstChild);RZf=N}N=RZf;return N});var U0=function(){var N=_.k.apply(this,arguments)||this;N.canShowAdditionalDetailCheckbox=!1;N.canShowCheckbox=!1;N.keepDropdownFocusedAfterSelection=!0;return N};
_.p(U0,_.k);U0.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}}}}};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],U0.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],U0.prototype,"canShowAdditionalDetailCheckbox",void 0);_.W([_.X(),_.Q("design:type",Object)],U0.prototype,"canShowCheckbox",void 0);_.W([_.X(),_.Q("design:type",Object)],U0.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.W([_.wz({is:"yt-report-form-modal-content",disableElementRegistration:!0})],U0);
_.n(U0,"yt-report-form-modal-content",function(){if(EB1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;m$5===void 0&&(m$5=document.createElement("template"));var H=m$5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);EB1=N}N=EB1;return N},{mode:2});var vBr;var Jhi;var CI=function(){var N=_.k.apply(this,arguments)||this;N.submitting=!1;N.submitButtonDisabled=!0;N.command=null;N.canShowCheckbox=!1;N.canShowAdditionalDetailCheckbox=!1;N.canShowNextButton=!1;N.additionalDetailCheckboxChecked=!1;N.refitJob=0;N.keepDropdownFocusedAfterSelection=!0;N.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return N};
_.p(CI,_.k);_.V=CI.prototype;_.V.created=function(){this.refitJob=0};
_.V.attached=function(){this.JSC$21371_scroller&&(this.JSC$21371_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21371_scroller.attached&&typeof this.JSC$21371_scroller.attached==="function"&&this.JSC$21371_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.dataChanged=function(N){N&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,N.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),N.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.V.onYtPopupOpened=function(){var N=_.si();N&&N.getPlayerPromise().then(function(t){t.pauseVideo()})};
_.V.onYtNavigate=function(N){_.M(N.detail.endpoint,_.D_p)&&(N.stopPropagation(),this.hideReportForm=!0)};
_.V.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.V.onYtServiceRequestCompleted=function(N,t){var O=t.actions;if(O){if(O.length===1&&_.M(O[0],_.Ab)){var H;O=((H=_.M(O[0],_.Ab))==null?void 0:H.commands)||[]}H=0;for(var A=O.length;H<A;H++)_.M(O[H],_.GL)&&(N.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(O[H]))}if(t.data&&(N=this.get("feedbackResponses",t.data)))for(t=0;t<N.length;t++)if(N[t].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.V.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.V._onDescendantIronResize=function(N){N.stopPropagation();return!1};
_.V.handleReportFormEndpointUpdateAction=function(N){if(N.submitEndpoint){var t=this.command=N.submitEndpoint;t=_.M(t,_.Zep);if(t==null?0:t.additionalDetailCheckboxChecked)t.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else N.submitNavigationEndpoint?(this.command=N.submitNavigationEndpoint,this.toggleSubmitButton(!1)):N.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:N.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;N.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",N));this.refit()};
_.V.handleConfirmDialogCloseAction=function(N){N.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.V.submitButtonDisabledChanged=function(){var N=this.hostElement.parentElement;N&&N.invalidateTabbables&&N.invalidateTabbables()};
_.V.handleModifyReportFormCommand=function(N){N=this.get("action",N);N==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:N==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:N==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:N==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:N==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:N==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.V.updateDialogStyling=function(){var N,t,O,H,A,Z=((A=(N=this.data)==null?void 0:(t=N.optionsSupportedRenderers)==null?void 0:(O=t.optionsRenderer)==null?void 0:(H=O.items)==null?void 0:H.length)!=null?A:0)<=2?0:240;_.CO(this.hostElement,{"--yt-report-form-modal-renderer-min-width":Z+"px"})};
_.V.toggleSubmitButton=function(N){this.submitButtonDisabled=!N;this.submitButtonDisabled=N};
_.V.computeSubmitButtonData=function(N,t){var O={};_.M(t,_.D_p)?O.navigationEndpoint=t:O.command=t||void 0;N&&N.buttonRenderer&&_.WW.extend(O,N.buttonRenderer);return O};
_.V.computeNextButtonData=function(N,t){var O={};if(!N||!N.buttonRenderer)return O;_.WW.extend(O,N.buttonRenderer);if(!t)return O;if(_.M(t,_.D_p))O.navigationEndpoint=U_1(t);else if(O.command=U_1(t),N=_.M(O.command,_.Zep))N.legalCheckboxChecked=!0;return O};
_.V.computeShowNextButton=function(N,t,O){return!!N&&t&&O};
_.V.refit=function(){var N=this;this.refitJob||(this.refitJob=_.GB.addLowPriorityJob(function(){_.or(N.hostElement,"yt-refit");N.refitJob=0}))};
_.V.handleAdditionalDetailCheckboxUpdateAction=function(N){this.additionalDetailCheckboxChecked=N;_.M(this.command,_.Zep).additionalDetailCheckboxChecked=N};
_.cv.Object.defineProperties(CI,{template:{configurable:!0,enumerable:!0,get:function(){if(Jhi===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;vBr===void 0&&(vBr=document.createElement("template"));var H=vBr;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Jhi=N}N=Jhi;return N}}});
CI.prototype.onYtServiceRequestError=CI.prototype.onYtServiceRequestError;CI.prototype.onYtServiceRequestCompleted=CI.prototype.onYtServiceRequestCompleted;CI.prototype.onYtServiceRequestSent=CI.prototype.onYtServiceRequestSent;CI.prototype.onYtNavigate=CI.prototype.onYtNavigate;CI.prototype.onYtPopupOpened=CI.prototype.onYtPopupOpened;_.W([_.Y(_.fD.YtOpenPopupBehavior),_.Q("design:type",Object)],CI.prototype,"openPopupBehavior",void 0);
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],CI.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],CI.prototype,"eventForwardingBehavior",void 0);_.W([_.Y(_.JV),_.Q("design:type",Object)],CI.prototype,"ironResizableBehavior",void 0);_.W([_.X({observer:"dataChanged"}),_.Q("design:type",Object)],CI.prototype,"data",void 0);
_.W([_.X(),_.Q("design:type",Object)],CI.prototype,"submitting",void 0);_.W([_.X({observer:"submitButtonDisabledChanged"}),_.Q("design:type",Object)],CI.prototype,"submitButtonDisabled",void 0);_.W([_.X(),_.Q("design:type",Object)],CI.prototype,"command",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],CI.prototype,"hideReportForm",void 0);_.W([_.X(),_.Q("design:type",Object)],CI.prototype,"canShowCheckbox",void 0);
_.W([_.X(),_.Q("design:type",Object)],CI.prototype,"canShowAdditionalDetailCheckbox",void 0);_.W([_.X(),_.Q("design:type",Object)],CI.prototype,"canShowNextButton",void 0);_.W([_.X(),_.Q("design:type",Object)],CI.prototype,"additionalDetailCheckboxChecked",void 0);_.W([_.X(),_.Q("design:type",Object)],CI.prototype,"refitJob",void 0);_.W([_.X(),_.Q("design:type",Object)],CI.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.W([_.B2("#scroller"),_.Q("design:type",Object)],CI.prototype,"JSC$21371_scroller",void 0);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],CI.prototype,"onYtPopupOpened",null);_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],CI.prototype,"onYtNavigate",null);
_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],CI.prototype,"onYtServiceRequestSent",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],CI.prototype,"onYtServiceRequestCompleted",null);
_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],CI.prototype,"onYtServiceRequestError",null);_.W([_.wz({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],CI);var oBi;var sYJ;var KI=function(){return _.k.apply(this,arguments)||this};
_.p(KI,_.k);_.V=KI.prototype;_.V.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.V.onVisible=function(){var N,t;(t=_.cY().resolve(_.BY(_.w2)))==null||t.enqueue({label:_.Gv((N=this.data)==null?void 0:N.messageTitle),elementToFocus:this.hostElement})};
_.V.onThumbnailLoaded=function(){_.or(this.hostElement,"yt-refit")};
_.V.onDismissTap=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.V.computeAlternateIcon=function(N){return N?N==="BACKSTAGE_ARTWORK"?"backstage:artwork":N:null};
_.V.computeFontFamily=function(N){return N==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.V.computeBackgroundStyle=function(N,t){if(N=this.computeBackgroundImage(N,t))if(N=_.Ne(N.thumbnails))return'background-image: url("'+N+'");'};
_.V.computeHasFullHeightImage=function(N){return!(!(N&&N.thumbnails&&N.thumbnails.length>0)||this.modern)};
_.V.isModernStyle=function(N){return N.style==="STYLE_MODERN"};
_.V.computeIcon=function(N,t){if(N&&N.icon)return t?N.iconDark:N.icon};
_.V.computeBackgroundImage=function(N,t){if(N&&N.backgroundImage)return t?N.backgroundImageDark:N.backgroundImage};
_.V.computeLogo=function(N,t){if(N&&N.logo)return t?N.logoDark:N.logo};
_.V.computeShouldShowModernIcon=function(N,t){return N&&!!t};
_.V.getLogoContainerClassName=function(N){return this.logoWithPadding(N)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.V.getLogoImageId=function(N){return this.logoWithPadding(N)?"mealbar-logo-with-padding":"mealbar-logo"};
_.V.logoWithPadding=function(N){var t,O,H;return(N=(t=this.computeLogo(N,this.isDarkTheme))==null?void 0:(O=t.thumbnails)==null?void 0:(H=O[0])==null?void 0:H.height)&&N%31===0?!0:!1};
KI.prototype.onThumbnailLoaded=KI.prototype.onThumbnailLoaded;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.W([_.X({}),_.Q("design:type",Object)],KI.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Q("design:type",Boolean)],KI.prototype,"modern",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],KI.prototype,"isDarkTheme",void 0);
_.W([_.X({computed:"computeIcon(data, isDarkTheme)"}),_.Q("design:type",Object)],KI.prototype,"icon",void 0);_.W([_.X({computed:"computeLogo(data, isDarkTheme)"}),_.Q("design:type",Object)],KI.prototype,"logo",void 0);_.W([_.X({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Q("design:type",Object)],KI.prototype,"backgroundStyle",void 0);_.W([_.X({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Q("design:type",Object)],KI.prototype,"alternateIcon",void 0);
_.W([_.X({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Q("design:type",Boolean)],KI.prototype,"hasFullHeightImage",void 0);_.W([_.X({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Q("design:type",Boolean)],KI.prototype,"useYoutubeSans",void 0);_.W([_.X({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Q("design:type",Boolean)],KI.prototype,"shouldShowModernIcon",void 0);
_.W([_.dz("yt-img-shadow-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],KI.prototype,"onThumbnailLoaded",null);_.W([_.wz({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],KI);
_.n(KI,"yt-mealbar-promo-renderer",function(){if(sYJ===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;oBi===void 0&&(oBi=document.createElement("template"));var H=oBi;O.call(t,H.content.cloneNode(!0),N.content.firstChild);sYJ=N}N=sYJ;return N},{mode:2});var NWf;var t1J;var FZ=function(){return _.k.apply(this,arguments)||this};
_.p(FZ,_.k);_.V=FZ.prototype;_.V.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.V.computeHasButtons_=function(N){return!(!N.dismissButton&&!N.acceptButton)};
_.V.computeStyle_=function(N){return N||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.V.observeImpressionEndpoints_=function(){var N=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;_.tb(N.hostElement,[t])})};
_.V.onTap_=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
FZ.prototype.observeImpressionEndpoints_=FZ.prototype.observeImpressionEndpoints_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],FZ.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],FZ.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],FZ.prototype,"positionType",void 0);_.W([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Q("design:type",Boolean)],FZ.prototype,"hasButtons_",void 0);_.W([_.X({value:function(){return this.onTap_.bind(this)}}),
_.Q("design:type",Function)],FZ.prototype,"boundOnTap_",void 0);_.W([_.X({value:{style:"mono-inverse"}}),_.Q("design:type",Object)],FZ.prototype,"buttonOverride",void 0);_.W([_.gz("data.promoConfig.impressionEndpoints"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],FZ.prototype,"observeImpressionEndpoints_",null);_.W([_.wz({is:"yt-tooltip-renderer",disableElementRegistration:!0})],FZ);
_.n(FZ,"yt-tooltip-renderer",function(){if(t1J===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;NWf===void 0&&(NWf=document.createElement("template"));var H=NWf;O.call(t,H.content.cloneNode(!0),N.content.firstChild);t1J=N}N=t1J;return N},{mode:2});var Odz;var Hd1;var AS1={},Zdi=(AS1.WEB_REMIX="music.youtube.com",AS1),dS=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return N};
_.p(dS,_.k);_.V=dS.prototype;_.V.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.created=function(){this.embedHost_=Zdi[_.Ro("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.V.ready=function(){_.O6(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.V.computeEmbedCode_=function(N,t,O,H,A){if(!N)return"";var Z=N.videoId,U=N.fullListId,C=[];N.attributionId&&C.push("si="+N.attributionId);H||C.push("controls=0");O&&Number(t)>0&&C.push("start="+t);U&&(Z="videoseries",C.push("list="+U));O="https://"+(A?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+Z;N.clipId&&(C.push("clip="+N.clipId),C.push("clipt="+N.clipTiming));t=C.length>0?O+"?"+C.join("&amp;"):O;N.encryptedEmbedConfig&&C.push("embed_config="+JSON.stringify({enc:N.encryptedEmbedConfig}));
C=C.length>0?O+"?"+C.join("&amp;"):O;_.h("web_sharing_embed_preview_killswitch")?_.O6(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(C,N.previewWidth||854,N.previewHeight||480):(_.nA(this.videoPreviewContainer),_.O6(this.videoPreviewContainer).appendChild(this.buildIframeElement(C)));return this.getEmbedCode_(t,N.width||560,N.height||315)};
_.V.buildIframeElement=function(N){var t=document.createElement("iframe"),O,H;t.width=""+((H=(O=this.data)==null?void 0:O.previewWidth)!=null?H:854);var A,Z;t.height=""+((Z=(A=this.data)==null?void 0:A.previewHeight)!=null?Z:480);_.tY(t,2,N);t.title="YouTube video player";t.frameBorder="0";t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";t.referrerPolicy="strict-origin-when-cross-origin";t.allowFullscreen=!0;return t};
_.V.computeIsSquareAspectRatio_=function(N){return N.previewHeight&&N.previewWidth?N.previewHeight==N.previewWidth:!1};
_.V.computeShowEmbedOptions_=function(N){return!!N.enablePrivacyModeOptionLabel||!!N.showPlayerControlsOptionLabel};
_.V.getEmbedCode_=function(N,t,O){return'<iframe width="'+t+'" height="'+O+'" src="'+N+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.V.handleSignalActionCopyShareEmbedUrl_=function(){_.O6(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.V.handleSetTimestamp_=function(N){this.startAtTimeStamp_=(this.startAtChecked_=N.isSet)?N.timestamp:0};
_.V.closePanel_=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.V.onEmbedCode_=function(){_.O6(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.V.onYtPopupClosed_=function(){_.nA(_.O6(this.hostElement).querySelector("#video-preview"))};
_.V.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.M(this.data.actionButtons[0],_.g_)&&this.ytRendererBehavior.logExplicitClick(_.M(this.data.actionButtons[0],_.g_))};
dS.prototype.onYtPopupClosed_=dS.prototype.onYtPopupClosed_;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],dS.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],dS.prototype,"data",void 0);
_.W([_.X({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Q("design:type",String)],dS.prototype,"embedCode_",void 0);_.W([_.X({value:!0}),_.Q("design:type",Boolean)],dS.prototype,"isPlayerControlsOptionChecked_",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],dS.prototype,"isPrivacyModeOptionChecked_",void 0);_.W([_.X({value:!1,notify:!0}),_.Q("design:type",Boolean)],dS.prototype,"startAtChecked_",void 0);
_.W([_.X({value:0}),_.Q("design:type",Number)],dS.prototype,"startAtTimeStamp_",void 0);_.W([_.X({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],dS.prototype,"isSquareAspectRatio_",void 0);_.W([_.B2("#video-preview"),_.Q("design:type",HTMLElement)],dS.prototype,"videoPreviewContainer",void 0);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],dS.prototype,"onYtPopupClosed_",null);
_.W([_.wz({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],dS);
_.n(dS,"yt-sharing-embed-renderer",function(){if(Hd1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Odz===void 0&&(Odz=document.createElement("template"));var H=Odz;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Hd1=N}N=Hd1;return N},{mode:2});var V1J={};
V1J.YtUnlimitedFamilyInterstitialBehavior=[_.fD.YtOpenPopupBehavior,_.Wu.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(N){N=_.nmB(_.E3(N),"yt-button-renderer");return N?N.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(N){this.dialogHistory_.push(N)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var N=this.popFromHistory();if(N){var t={openPopupAction:{popupType:"DIALOG",popup:{}}};t.openPopupAction.popup[N.renderer]=N.data;this.showingPreviousDialog_=!0;this.openPopup(t)}},
handleOpenPopupAction_:function(N){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var t=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(H){return!!N.openPopupAction.popup[H]}),O=this.getElementName_();
t&&this.data&&(this.pushToHistory({renderer:O,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(N){if(N=_.M(N,quO))this.loading=!0,_.sl(this.hostElement,"yt-open-create-family-dialog",[N,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var N=this.hostElement.nodeName.split("-").slice(1).map(function(t){return""+t[0].toUpperCase()+t.slice(1).toLowerCase()}).join("");
return N[0].toLowerCase()+N.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Dkm;var Uki;var gS=function(){return _.k.apply(this,arguments)||this};
_.p(gS,_.k);_.V=gS.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.sl(this.hostElement,"yt-register-create-family-dialog");_.O6(this.hostElement).querySelector("#thumbnail").onShow()};
_.V.fireOnCloseCommand_=function(){var N;((N=this.data)==null?0:N.onCloseCommand)&&_.OK(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.V.onYtServiceRequestSent_=function(N,t){t&&t.endpoint&&_.M(t.endpoint,_.VZ)||(this.loading=!0)};
_.V.onYtServiceRequestCompleted_=function(){var N=this.hostElement.parentElement;N.close&&N.close();this.loading=!1};
_.V.openPopupHandler_=function(N){if(N.detail==this){var t;((t=this.data)==null?0:t.onOpenCommands)&&_.OK(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.V.closePopupHandler_=function(N,t){this.fireOnCloseCommand_();if(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1){var O;((O=this.data)==null?0:O.onDismissCommands)&&_.OK(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.V.dataChanged_=function(){this.loading=!1};
gS.prototype.dataChanged_=gS.prototype.dataChanged_;gS.prototype.closePopupHandler_=gS.prototype.closePopupHandler_;gS.prototype.openPopupHandler_=gS.prototype.openPopupHandler_;gS.prototype.onYtServiceRequestCompleted_=gS.prototype.onYtServiceRequestCompleted_;gS.prototype.onYtServiceRequestSent_=gS.prototype.onYtServiceRequestSent_;_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],gS.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(V1J.YtUnlimitedFamilyInterstitialBehavior),_.Q("design:type",Object)],gS.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],gS.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],gS.prototype,"loading",void 0);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],gS.prototype,"onYtServiceRequestSent_",null);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],gS.prototype,"onYtServiceRequestCompleted_",null);
_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],gS.prototype,"openPopupHandler_",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],gS.prototype,"closePopupHandler_",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],gS.prototype,"dataChanged_",null);
_.W([_.wz({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],gS);
_.n(gS,"yt-unlimited-family-message-interstitial-renderer",function(){if(Uki===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Dkm===void 0&&(Dkm=document.createElement("template"));var H=Dkm;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Uki=N}N=Uki;return N},{mode:2});var Cgn;var Kkm;var yi=function(){return _.k.apply(this,arguments)||this};
_.p(yi,_.k);yi.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"}}}};
yi.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.O6(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(N){N.onShow()});
_.O6(this.hostElement).querySelector("#main-thumbnail").onShow()};
yi.prototype.onButtonTap_=function(N){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(N)};
yi.prototype.computeMainThumbnailWidth_=function(N){return N&&N.length!==0?72:96};
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.W([_.Y(V1J.YtUnlimitedFamilyInterstitialBehavior),_.Q("design:type",Object)],yi.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],yi.prototype,"data",void 0);
_.W([_.X({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Q("design:type",Number)],yi.prototype,"mainThumbnailWidth_",void 0);_.W([_.X({value:function(){return this.onButtonTap_.bind(this)}}),
_.Q("design:type",Function)],yi.prototype,"boundButtonTap_",void 0);_.W([_.wz({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],yi);
_.n(yi,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Kkm===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Cgn===void 0&&(Cgn=document.createElement("template"));var H=Cgn;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Kkm=N}N=Kkm;return N},{mode:2});var FkO;var dkn;var Bg=function(){var N=_.k.apply(this,arguments)||this;N.sliderAriaValueText_=null;N.selectedIndex_=0;N.messages={PAUSE_SLIDER:_.CJ("PAUSE_SLIDER",void 0,"Pause Duration")};return N};
_.p(Bg,_.k);_.V=Bg.prototype;_.V.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.V.onPopupOpened_=function(N){N.detail==this&&_.h("enable_premium_voluntary_pause")&&(_.sl(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.V.setDialogData=function(N){this.data=N;this.resetSlider_()};
_.V.dataChanged_=function(){this.data&&this.resetSlider_()};
_.V.onSubmitTap_=function(){if(this.data.confirmCommand){var N=this.data.confirmCommand;_.M(N,_.CRu)&&_.tb(this.hostElement,[N,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.V.onExitButtonTap_=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.V.closePopupHandler_=function(N,t){(t&&t.canceled===!0||t.canceled===!1&&t.confirmed===!1)&&this.handleOnDismissCommands_()};
_.V.onSliderChange_=function(){this.selectedIndex_=_.O6(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.V.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.V.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.V.resetSlider_=function(){if(this.data){var N=this.data.defaultEndOptionIndex||0,t=_.O6(this.hostElement).querySelector("#id-pause-slider");if(t.immediateValue<N)for(;t.immediateValue!=N;)t.increment();else if(N<t.immediateValue)for(;t.immediateValue!=N;)t.decrement();this.selectedIndex_=N;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.V.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.OK(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.OK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestSent=function(){this.loading=!0};
_.V.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Bg.prototype.onYtServiceRequestCompleted=Bg.prototype.onYtServiceRequestCompleted;Bg.prototype.onYtServiceRequestSent=Bg.prototype.onYtServiceRequestSent;Bg.prototype.closePopupHandler_=Bg.prototype.closePopupHandler_;Bg.prototype.dataChanged_=Bg.prototype.dataChanged_;Bg.prototype.onPopupOpened_=Bg.prototype.onPopupOpened_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],Bg.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],Bg.prototype,"loading",void 0);_.W([_.X(),_.Q("design:type",Number)],Bg.prototype,"selectIndexMax_",void 0);_.W([_.X(),_.Q("design:type",Object)],Bg.prototype,"selectedData_",void 0);
_.W([_.X(),_.Q("design:type",Object)],Bg.prototype,"sliderAriaValueText_",void 0);_.W([_.X({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Q("design:type",Function)],Bg.prototype,"onButtonTap_",void 0);_.W([_.X({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Q("design:type",Function)],Bg.prototype,"onSecondaryTap_",void 0);_.W([_.X(),_.Q("design:type",Object)],Bg.prototype,"messages",void 0);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Bg.prototype,"onPopupOpened_",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],Bg.prototype,"dataChanged_",null);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],Bg.prototype,"closePopupHandler_",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],Bg.prototype,"onYtServiceRequestSent",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],Bg.prototype,"onYtServiceRequestCompleted",null);_.W([_.wz({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Bg);
_.n(Bg,"yt-unplugged-pause-membership-dialog-renderer",function(){if(dkn===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;FkO===void 0&&(FkO=document.createElement("template"));var H=FkO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);dkn=N}N=dkn;return N},{mode:2});var gZi;var ySf;var cg=function(){return _.k.apply(this,arguments)||this};
_.p(cg,_.k);cg.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.LE("vcBalanceRenderer")}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],cg.prototype,"data",void 0);_.W([_.wz({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],cg);
_.n(cg,"yt-vc-offer-layout-header-renderer",function(){if(ySf===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;gZi===void 0&&(gZi=document.createElement("template"));var H=gZi;O.call(t,H.content.cloneNode(!0),N.content.firstChild);ySf=N}N=ySf;return N},{mode:2});var BWO;var cSr;var $k5;var jKz;var $Q=function(){return _.k.apply(this,arguments)||this};
_.p($Q,_.k);$Q.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.cv.Object.defineProperties($Q.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)}}});
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.w05.YtTappableItemBehavior),_.Q("design:type",Object)],$Q.prototype,"ytTappableItemBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],$Q.prototype,"data",void 0);
_.W([_.X({reflectToAttribute:!0}),_.a("data.accessibilityText"),_.Q("design:type",String),_.Q("design:paramtypes",[])],$Q.prototype,"ariaLabel",null);_.W([_.X({reflectToAttribute:!0}),_.a("data.style"),_.Q("design:type",String),_.Q("design:paramtypes",[])],$Q.prototype,"vcOfferStyle",null);_.W([_.a("data.style","data.titleText"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],$Q.prototype,"showTitleText",null);_.W([_.wz({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],$Q);
_.n($Q,"yt-vc-offer-renderer",function(){if(jKz===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;$k5===void 0&&($k5=document.createElement("template"));var H=$k5;O.call(t,H.content.cloneNode(!0),N.content.firstChild);jKz=N}N=jKz;return N},{mode:2});var jC=function(){return _.k.apply(this,arguments)||this};
_.p(jC,_.k);jC.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}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],jC.prototype,"data",void 0);_.W([_.wz({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],jC);
_.n(jC,"yt-vc-offer-layout-renderer",function(){if(cSr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;BWO===void 0&&(BWO=document.createElement("template"));var H=BWO;O.call(t,H.content.cloneNode(!0),N.content.firstChild);cSr=N}N=cSr;return N},{mode:2});var idn;var utr;var SjJ;var hym;var iN=function(){return _.k.apply(this,arguments)||this};
_.p(iN,_.k);iN.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}}}}}};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],iN.prototype,"data",void 0);_.W([_.wz({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],iN);
_.n(iN,"yt-ypc-offers-modal-top-bar-renderer",function(){if(hym===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;SjJ===void 0&&(SjJ=document.createElement("template"));var H=SjJ;O.call(t,H.content.cloneNode(!0),N.content.firstChild);hym=N}N=hym;return N},{mode:2});var uN=function(){return _.k.apply(this,arguments)||this};
_.p(uN,_.k);uN.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"}}}}};
uN.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
uN.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var N=this.scrollable;N.attached&&typeof N.attached==="function"&&N.attached()};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.W([_.B2("#scrollable"),_.Q("design:type",Object)],uN.prototype,"scrollable",void 0);_.W([_.X(),_.Q("design:type",Object)],uN.prototype,"data",void 0);_.W([_.wz({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],uN);
_.n(uN,"yt-ypc-offers-modal-renderer",function(){if(utr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;idn===void 0&&(idn=document.createElement("template"));var H=idn;O.call(t,H.content.cloneNode(!0),N.content.firstChild);utr=N}N=utr;return N},{mode:2});var M15;var bdO;var SC=function(){return _.k.apply(this,arguments)||this};
_.p(SC,_.k);_.V=SC.prototype;_.V.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.O6(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.V.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.sl(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.V.onYtPopupOpened_=function(N,t){(t==null?void 0:t.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.OK(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.V.onYtPopupClosed_=function(N,t){this.continueButtonTapped||t&&(t.canceled===!0||t.canceled===!1&&t.confirmed===!1)&&this.data.onDismissCommands&&_.OK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.V.onYtServiceRequestError_=function(N){this.set("showSpinner",!1);_.I8(this.hostElement,N.detail.error.message)};
_.V.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.h("enable_ypc_spinners")?_.sl(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
SC.prototype.onYtServiceRequestError_=SC.prototype.onYtServiceRequestError_;SC.prototype.onYtPopupClosed_=SC.prototype.onYtPopupClosed_;SC.prototype.onYtPopupOpened_=SC.prototype.onYtPopupOpened_;SC.prototype.onYtServiceRequestCompleted_=SC.prototype.onYtServiceRequestCompleted_;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);
_.W([_.X(),_.Q("design:type",Object)],SC.prototype,"data",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],SC.prototype,"showSpinner",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],SC.prototype,"continueButtonTapped",void 0);_.W([_.X({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Q("design:type",Function)],SC.prototype,"bindOnContinueTapped_",void 0);_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],SC.prototype,"onYtServiceRequestCompleted_",null);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],SC.prototype,"onYtPopupOpened_",null);
_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],SC.prototype,"onYtPopupClosed_",null);_.W([_.dz("yt-service-request-error"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],SC.prototype,"onYtServiceRequestError_",null);_.W([_.wz({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],SC);
_.n(SC,"yt-ypc-upgrade-dialog-renderer",function(){if(bdO===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;M15===void 0&&(M15=document.createElement("template"));var H=M15;O.call(t,H.content.cloneNode(!0),N.content.firstChild);bdO=N}N=bdO;return N},{mode:2});var pqn;var Lk1;var h2=function(){return _.k.apply(this,arguments)||this};
_.p(h2,_.k);h2.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
h2.prototype.computeHasButtons_=function(N){return!(!N.dismissButton&&!N.confirmButton)};
h2.prototype.computeStyle_=function(N){return N||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],h2.prototype,"ytEventForwardingBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],h2.prototype,"data",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],h2.prototype,"positionType",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Q("design:type",Boolean)],h2.prototype,"hasButtons_",void 0);_.W([_.X({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],h2.prototype,"style_",void 0);_.W([_.wz({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],h2);
_.n(h2,"yt-bubble-hint-renderer",function(){if(Lk1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;pqn===void 0&&(pqn=document.createElement("template"));var H=pqn;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Lk1=N}N=Lk1;return N},{mode:2});var zyz;var Yjm;var MI=function(){var N=_.$I.apply(this,arguments)||this;N.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return N};
_.p(MI,_.$I);_.V=MI.prototype;_.V.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.V.attached=function(){var N=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){N.$.thumbnail.onShow();N.$["header-image"].onShow()})};
_.V.handleCheckBoxUpdateAction_=function(N){this.canShowCheckboxEnabledConfirmButton=N};
_.V.computeUseOverlayForSpinner_=function(N,t){return!!N&&t};
_.V.computeShowSpinner_=function(N,t){return N||!!t};
_.V.fireOnCloseActions_=function(){var N,t=_.D(((N=this.data)==null?void 0:N.onClosedActions)||[]);for(N=t.next();!N.done;N=t.next())this.ytRendererBehavior.resolveCommand(N.value)};
_.V.fireOnOpenCommands_=function(N){var t,O=(t=this.data)==null?void 0:t.onOpenCommands;if(O)for(N.stopImmediatePropagation(),N=_.D(O),t=N.next();!t.done;t=N.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.V.fireOnDismissCommands_=function(N){var t,O=(t=this.data)==null?void 0:t.onDismissCommands;if(O)for(N.stopImmediatePropagation(),N=_.D(O),t=N.next();!t.done;t=N.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.V.openPopupHandler_=function(N){N.detail==this&&this.fireOnOpenCommands_(N)};
_.V.closePopupHandler_=function(N,t){_.Np(this,"yt-confirm-dialog-close-action",[t]);this.fireOnCloseActions_();(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1)&&this.fireOnDismissCommands_(N)};
_.V.onHeaderImageChanged_=function(){var N;((N=this.data)==null?0:N.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.V.computeHasHeaderImageWidth_=function(N){return N!=void 0};
_.V.computeHasLoadingMessage=function(N){return!!N};
_.V.onHeaderImageWidthChanged_=function(){var N,t=(N=this.data)==null?void 0:N.headerImageWidth;if(t){if(N=1.25*t*2+t,this.$.main.style.width=N+"px",t=this.$.scroller.firstElementChild)t.style.minWidth=N+"px"}else this.$.main.style.width="100%"};
_.V.onThumbnailChanged_=function(){var N;((N=this.data)==null?0:N.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.V.onYtNavigate_=function(N){N=_.E3(N);N instanceof Node&&_.Zr(this.$["confirm-button"]).contains(N)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.V.computePrimaryIsCancel_=function(N){return N};
_.V.computeIsCancelButtonHidden_=function(N){return N.skipCancelButton||!N.cancelButton};
_.V.computeIsCheckboxHidden_=function(N){return!N.checkbox};
_.V.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.V.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.V.onYtServiceRequestCompleted_=function(){var N;((N=this.data)==null?0:N.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.cv.Object.defineProperties(MI,{template:{configurable:!0,enumerable:!0,get:function(){if(Yjm===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;zyz===void 0&&(zyz=document.createElement("template"));var H=zyz;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Yjm=N}N=Yjm;return N}}});
MI.prototype.onYtServiceRequestCompleted_=MI.prototype.onYtServiceRequestCompleted_;MI.prototype.onYtServiceRequestSent_=MI.prototype.onYtServiceRequestSent_;MI.prototype.onThumbnailLoaded_=MI.prototype.onThumbnailLoaded_;MI.prototype.onYtNavigate_=MI.prototype.onYtNavigate_;MI.prototype.onThumbnailChanged_=MI.prototype.onThumbnailChanged_;MI.prototype.onHeaderImageWidthChanged_=MI.prototype.onHeaderImageWidthChanged_;MI.prototype.onHeaderImageChanged_=MI.prototype.onHeaderImageChanged_;
MI.prototype.closePopupHandler_=MI.prototype.closePopupHandler_;MI.prototype.openPopupHandler_=MI.prototype.openPopupHandler_;_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],MI.prototype,"ytActionHandlerBehavior",void 0);_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],MI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],MI.prototype,"ytRendererBehavior",void 0);
_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],MI.prototype,"ytEventForwardingBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],MI.prototype,"data",void 0);_.W([_.X({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Q("design:type",Boolean)],MI.prototype,"primaryIsCancel",void 0);_.W([_.X({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Q("design:type",Boolean)],MI.prototype,"isCancelButtonHidden",void 0);
_.W([_.X({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Q("design:type",Boolean)],MI.prototype,"isCheckboxHidden",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],MI.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.W([_.X({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],MI.prototype,"useOverlayForSpinner_",void 0);
_.W([_.X({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Q("design:type",Boolean)],MI.prototype,"showSpinner_",void 0);_.W([_.X({value:!1}),_.Q("design:type",Boolean)],MI.prototype,"isActionInProgress_",void 0);_.W([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Q("design:type",Boolean)],MI.prototype,"hasHeaderImageWidth_",void 0);
_.W([_.X({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Q("design:type",Boolean)],MI.prototype,"hasLoadingMessage",void 0);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],MI.prototype,"openPopupHandler_",null);_.W([_.dz("yt-popup-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],MI.prototype,"closePopupHandler_",null);
_.W([_.gz("data.headerImage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MI.prototype,"onHeaderImageChanged_",null);_.W([_.gz("data.headerImageWidth"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MI.prototype,"onHeaderImageWidthChanged_",null);_.W([_.gz("data.thumbnail"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MI.prototype,"onThumbnailChanged_",null);
_.W([_.dz("yt-navigate"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],MI.prototype,"onYtNavigate_",null);_.W([_.dz("yt-img-shadow-loaded"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],MI.prototype,"onThumbnailLoaded_",null);_.W([_.dz("yt-service-request-sent"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.qe]),_.Q("design:returntype")],MI.prototype,"onYtServiceRequestSent_",null);
_.W([_.dz("yt-service-request-completed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,_.Ei]),_.Q("design:returntype")],MI.prototype,"onYtServiceRequestCompleted_",null);_.W([_.wz({is:"yt-confirm-dialog-renderer",noInjection:!0})],MI);var a6x;var TWr;var bN=function(){return _.k.apply(this,arguments)||this};
_.p(bN,_.k);bN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.O6(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
bN.prototype.computeConfirmButton_=function(N){var t={text:N.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};N.confirmNavigationEndpoint?t.navigationEndpoint=N.confirmNavigationEndpoint:N.confirmServiceEndpoint&&(t.serviceEndpoint=N.confirmServiceEndpoint);return t};
bN.prototype.computeShowTitle_=function(N){return!(N==null||!N.title)};
_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],bN.prototype,"data",void 0);_.W([_.X({computed:"computeShowTitle_(data)"}),_.Q("design:type",Boolean)],bN.prototype,"showTitle",void 0);_.W([_.wz({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],bN);
_.n(bN,"yt-fancy-dismissible-dialog-renderer",function(){if(TWr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;a6x===void 0&&(a6x=document.createElement("template"));var H=a6x;O.call(t,H.content.cloneNode(!0),N.content.firstChild);TWr=N}N=TWr;return N});var wq1;var eyO;var pI=function(){var N=_.k.apply(this,arguments)||this;N.spinnerActive=!1;return N};
_.p(pI,_.k);pI.prototype.created=function(){YNm(2201)};
pI.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
pI.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
pI.prototype.onIronOverlayClosed=pI.prototype.onIronOverlayClosed;pI.prototype.onIronOverlayOpened=pI.prototype.onIronOverlayOpened;_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.g6),_.Q("design:type",Object)],pI.prototype,"tpYtIronOverlayBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],pI.prototype,"data",void 0);_.W([_.X(),_.Q("design:type",Object)],pI.prototype,"spinnerActive",void 0);
_.W([_.dz("iron-overlay-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pI.prototype,"onIronOverlayOpened",null);_.W([_.dz("iron-overlay-closed"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],pI.prototype,"onIronOverlayClosed",null);_.W([_.wz({is:"yt-loading-renderer",disableElementRegistration:!0})],pI);
_.n(pI,"yt-loading-renderer",function(){if(eyO===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;wq1===void 0&&(wq1=document.createElement("template"));var H=wq1;O.call(t,H.content.cloneNode(!0),N.content.firstChild);eyO=N}N=eyO;return N},{mode:2});var Pg1;var Xqr;var LI=function(){var N=_.k.apply(this,arguments)||this;N.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);N.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);N.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";N.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return N};
_.p(LI,_.k);_.V=LI.prototype;_.V.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.V.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.V.onDarkModeToggledAction=function(N){this.isDarkTheme=N};
_.V.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.V.openPopupHandler_=function(N){N.detail===this.hostElement&&this.hostElement.hidden&&_.sl(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.V.onDismissButtonTap_=function(){var N;this.closeOnDismissButton_.has(((N=this.data)==null?void 0:N.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.sl(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.onAcceptButtonTap_=function(){var N;this.closeOnAcceptButton_.has(((N=this.data)==null?void 0:N.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.sl(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.V.computeHasHeader_=function(N){return!!N.headerBackgroundImage};
_.V.computeLayoutStyle_=function(N){return N};
_.V.computePopupSize_=function(N){return N};
_.V.computeIconType_=function(N){return N.dialogIcon&&N.dialogIcon.iconType?N.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":N.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":N.dialogIcon.iconType:""};
_.V.computeIsLogo_=function(N){return!!N.dialogIcon&&!!N.dialogIcon.iconType&&(N.dialogIcon.iconType==="YOUTUBE_LOGO"||N.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||N.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.V.computeHasCustomLogo=function(N){return!(N==null||!N.headerForegroundImage)};
_.V.computeCustomLogo=function(N,t){if(N!=null&&N.headerForegroundImage)return N.headerForegroundImageDark?t?N.headerForegroundImageDark:N.headerForegroundImage:N.headerForegroundImage};
_.V.computeHeaderBackgroundImage=function(N,t){if(N!=null&&N.headerBackgroundImage)return t&&(N==null?0:N.headerBackgroundImageDark)?N.headerBackgroundImageDark:N.headerBackgroundImage};
_.V.shouldShowIconContainer=function(N,t){return N&&!t};
_.V.shouldShowNonYouTubeIcon=function(N,t){return!N&&!t};
_.V.getLogoImageId=function(N){var t,O,H;return(N=(t=this.computeCustomLogo(N,this.isDarkTheme))==null?void 0:(O=t.thumbnails)==null?void 0:(H=O[0])==null?void 0:H.height)&&N%31===0?"custom-logo-with-padding":"custom-logo"};
LI.prototype.openPopupHandler_=LI.prototype.openPopupHandler_;LI.prototype.dataChanged_=LI.prototype.dataChanged_;_.W([_.Y(_.LD.YtRendererstamperBehavior),_.Q("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.W([_.X(),_.Q("design:type",Boolean)],LI.prototype,"isDarkTheme",void 0);
_.W([_.X({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Q("design:type",Object)],LI.prototype,"customLogo",void 0);_.W([_.X({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Q("design:type",Object)],LI.prototype,"headerBackgroundImage",void 0);_.W([_.X(),_.Q("design:type",Object)],LI.prototype,"data",void 0);_.W([_.X({computed:"computeHasHeader_(data)"}),_.Q("design:type",Boolean)],LI.prototype,"hasHeader",void 0);
_.W([_.X({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Q("design:type",Object)],LI.prototype,"layoutStyle",void 0);_.W([_.X({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Q("design:type",Object)],LI.prototype,"popupSize",void 0);_.W([_.X({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],LI.prototype,"hasLogo",void 0);
_.W([_.X({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Q("design:type",Boolean)],LI.prototype,"hasCustomLogo",void 0);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],LI.prototype,"dataChanged_",null);_.W([_.dz("yt-popup-opened"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],LI.prototype,"openPopupHandler_",null);
_.W([_.wz({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],LI);
_.n(LI,"yt-upsell-dialog-renderer",function(){if(Xqr===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;Pg1===void 0&&(Pg1=document.createElement("template"));var H=Pg1;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Xqr=N}N=Xqr;return N},{mode:2});var xkn=_.q(function(N){return _.d("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.d(_.y,{cond:N.title,then:function(t){return _.d("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},t)}}))},"Dj"),kR5=_.q(function(N){return _.d("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.d(_.iF,{data:N.closeButton},{buttonViewModel:function(t){return _.d("div",null,_.d(_.Pu,{data:t.data}))}}))},"Ej"),qjf=_.q(function(N){var t=N.data;
return _.d(_.BZ,null,_.d("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.d("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.d(_.y,{cond:function(){return!!t().image&&!!t().title},
then:function(){return _.d(_.Qt,{data:function(){return t().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.d("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.d(_.y,{cond:function(){return t().title},
then:function(O){return _.d("h3",{class:"miniAppGameInfoDialogViewModelTitle"},O)}}),_.d(_.y,{cond:function(){return t().primaryGenre},
then:function(O){return _.d("span",{class:"miniAppGameInfoDialogViewModelGenre"},O)}}))),_.d(_.y,{cond:function(){var O=t().description;
return O&&O.length<=150},
then:function(){return _.d("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.d("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return t().description}))}}))},"Fj"),f6f=_.q(function(N){N=N.infoRows;
var t=_.cY().resolve(_.L5),O=_.h("enable_displaying_ppn");return _.d("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.d(_.nL,{each:N},function(H){return _.d("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.d(_.y,{cond:function(){return H.label},
then:function(A){return _.d("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},A)}}),_.d(_.y,{cond:function(){return H.attributedLabel},
then:function(A){return _.d("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.d(_.cu,{text:A,noPreWrap:!0}))}}),_.d(_.y,{cond:function(){return H.value},
then:function(A){return _.d("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},A)}}),_.d(_.y,{cond:function(){return H.attributedValue},
then:function(A){return _.d("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.d(_.cu,{text:A,noPreWrap:!0}))}}))}),_.d(_.y,{cond:function(){return O&&t.clientData.has("post_play_nonce")},
then:function(){return _.d("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.d("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.d("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},t.getData("post_play_nonce")))}}))},"Gj"),nZf=_.q(function(N){var t=N.data;
return _.d("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.d(xkn,{title:function(){return t().dialogTitle}}),_.d(qjf,{data:t}),_.d(_.y,{cond:function(){return t().infoRow},
then:function(O){return _.d(f6f,{infoRows:O})}}),_.d(kR5,{closeButton:function(){return t().closeButton}}))},"Hj");
nZf.idomCompat=!0;_.o_(nZf,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;return _.d("yt-gulp-triggering-dialog-view-model",{class:_.V7("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.d(_.Qt,{data:function(){return t().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.d("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.d("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.d("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d(_.y,{cond:function(){return t().bodyText},
then:function(O){return _.d(_.nL,{each:O},function(H){return _.d("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.d(_.cu,{text:H}))})}})),_.d("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.d(_.iF,{data:function(){return t().dismissButton}},{buttonViewModel:function(O){return _.d("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.d(_.Pu,{data:O.data}))}}),_.d(_.iF,{data:function(){return t().actionButton}},{buttonViewModel:function(O){return _.d("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.d(_.Pu,{data:O.data}))}}))))},"Ij"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.$O}});var Wkn=_.q(function(N){var t=N.data;N=_.Gr(function(){return t().agreements},[]);
return _.d("installment-agreements-view-model",{class:_.V7("ytInstallmentAgreementsViewModelHost")},_.d(_.nL,{each:N},function(O){return _.d("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.d("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.d(_.cu,{text:O.label})),_.d("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.d(_.iF,{data:function(){return O.openButton}},{buttonViewModel:_.Pu})))}))},"Jj");
Wkn.idomCompat=!0;var rSf=_.q(function(N){var t=_.D(_.Gb(function(){var E,J;return((E=N.data().createPlaylistDialogFormSchema)==null?0:(J=E.initialValues)==null?0:J.title)?N.data().createPlaylistDialogFormSchema.initialValues.title:""})),O=t.next().value,H=t.next().value;
t=_.D(_.Gb(function(){N.data();return!1}));
var A=t.next().value,Z=t.next().value;t=_.D(_.Gb(function(){N.data();return!1}));
var U=t.next().value,C=t.next().value;t=_.D(_.Gb(function(){var E,J;return(E=N.data().createPlaylistDialogFormSchema)==null?void 0:(J=E.initialValues)==null?void 0:J.visibility}));
var F=t.next().value,g=t.next().value;t=_.D(_.Gb(function(){N.data();return!1}));
var B=t.next().value,c=t.next().value;t=_.D(_.Gb(function(){var E,J;return(E=N.data().createPlaylistDialogFormSchema)==null?void 0:(J=E.initialValues)==null?void 0:J.isCollaborative}));
var u=t.next().value,S=t.next().value,b=_.Fy("div");_.rp(function(){var E=b.value.querySelector("textarea");E&&(E.value=O())},"axFRaf");
_.Q8(function(){var E;_.n6f((E=N.data().createPlaylistDialogFormSchema)==null?void 0:E.id,{onSubmit:function(){var J=O();var CN=F(),B4=u(),zM=N.data();J={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:J,privacyStatus:CN,videoIds:zM.videoIds,sourcePlaylistId:zM.sourcePlaylistId,params:B4?zM.createPlaylistParamsCollaborationEnabled:zM.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.cY().resolve(_.jo).resolveCommand(J)},
isValid:function(){return A()&&!U()&&!B()}})});
var z=function(E){if(E!==void 0&&(H(E),!A()&&E.length>0&&Z(!0),A())){var J=e4x(N.data());if(J){var CN=J.minLength;J=J.maxLength;CN&&E.length<CN?C(!0):J&&E.length>J?C(!0):C(!1)}}},w=function(){var E=!(!u()||F()!=="PRIVATE");
c(E)},P=function(E){E!==void 0&&(g(E),w())},x=function(){if(B())return X1q(N.data())},l=function(){S(!u());
w()},I=function(){return{validate:function(E){if(A()){var J=e4x(N.data());
if(J){var CN=J.minLength;J=J.translations;if(CN&&E.length<CN)return J==null?void 0:J.minLengthErrorMessage}}}}},r=function(){var E=e4x(N.data()),J=E==null?void 0:E.maxLength,CN;
E=E==null?void 0:(CN=E.translations)==null?void 0:CN.maxLengthErrorMessage;if(J&&E)return{maxChars:J,errorMessage:E}};
return _.d("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.d("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:b},_.d(_.iF,{data:function(){return N.data().playlistTitle}},{textFormFieldViewModel:function(E){return _.d(_.Ejm,{data:E.data,
text:O,onInput:z,validation:I,characterLimit:r})},
textFieldViewModel:function(E){return _.d(_.mEx,{data:E.data,text:O,onInput:z,validation:I,characterLimit:r})}})),_.d("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.d(_.iF,{data:function(){return N.data().playlistVisibility}},{dropdownViewModel:function(E){return _.d(_.HTm,{data:E.data,
onSelected:P,error:x})}})),_.d(_.y,{cond:function(){return!!N.data().playlistCollaborate},
then:function(){return _.d("div",null,_.d(_.iF,{data:function(){return N.data().playlistCollaborate}},{switchListItemViewModel:function(E){return _.d(_.zbf,{data:E.data,
onTap:l})}}))}}))},"Lj");var I6m=_.q(function(N){var t=N.data;return _.d("upsell-offer-table-cell-content-view-model",null,_.d("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.d(_.WZ,null,_.d(_.qC,{when:function(){var O;return(O=t().icon)==null?void 0:O.iconType}},function(){return _.d("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.d(_.dq,{icon:function(){var O;
return(O=t().icon)==null?void 0:O.iconType.toString()}}))}),_.d(_.qC,{when:function(){return t().title}},function(){return _.d(_.cu,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return t().title}})}),_.d(_.qC,{when:function(){return t().subtitle}},function(){return _.d(_.cu,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return t().subtitle}})}),_.d(_.qC,{when:function(){return t().infoText}},function(){return _.d(_.cu,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return t().infoText}})}),_.d(_.qC,{when:function(){return t().featureDescription}},function(){return _.d(_.cu,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return t().featureDescription}})}),_.d(_.qC,{when:function(){return t().note}},function(){return _.d(_.cu,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return t().note}})})),_.d(_.y,{cond:function(){var O;
return(O=t().icon)==null?void 0:O.iconAccessibilityText},
then:function(){return _.d("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var O;return(O=t().icon)==null?void 0:O.iconAccessibilityText})}})))},"Mj");
I6m.idomCompat=!0;var l61=_.q(function(N){var t=N.data;var O=N.cellIndex;var H=N.rowIndex;return _.d("upsell-offer-table-cell-view-model",null,_.d("div",{class:_.V7("ytUpsellOfferTableCellViewModelCellWrapper",function(){return t().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":t().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var A,Z;return"cell-"+((A=H==null?void 0:H())!=null?A:0)+"-"+((Z=O==null?void 0:O())!=null?Z:0)},
role:function(){return t().isFirstRow?"columnHeader":t().isFirstColumn?"rowheader":"gridcell"}},_.d(_.iF,{data:function(){return t().contents}},{upsellOfferTableCellContentViewModel:I6m})))},"Nj");
l61.idomCompat=!0;var QK1=_.q(function(N){var t=N.data;var O=N.upsellTableIsFirstRow;var H=N.rowIndex;var A=function(){return(O==null?0:O())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},Z=function(){return(O==null?0:O())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.d("ytm-upsell-offer-table-row-view-model",null,_.d("div",{class:function(){return(O==null?0:O())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(H==null?void 0:H())+"-1 cell-"+(H==null?void 0:H())+"-2"}},_.d(_.iF,{data:function(){return t().rowHeaderCell}},{upsellOfferTableCellViewModel:function(U){return _.d("div",{class:A},_.d(l61,{data:U.data,
cellIndex:0,rowIndex:H}))}}),_.d("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.d(_.iF,{data:function(){return t().contentCells}},{upsellOfferTableCellViewModel:function(U,C){return _.d("div",{class:Z},_.d(l61,{data:U.data,
cellIndex:function(){return C()+1},
rowIndex:H}))}}))))},"Oj");
QK1.idomCompat=!0;var mkf=_.q(function(N){var t=N.data;return _.d("ytm-upsell-offer-table-view-model",null,_.d("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.d("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.d(_.iF,{data:function(){return t().rows}},{upsellOfferTableRowViewModel:function(O,H){return _.d(QK1,{data:O.data,
upsellTableIsFirstRow:function(){return H()===0},
rowIndex:H})}}))))},"Pj");
mkf.idomCompat=!0;var EZO=_.q(function(N){var t=function(){return N.data()},O=_.Gr(N.noPadding,!1),H=function(){var Z,U;
return(U=(Z=t().logo.accessibilityData)==null?void 0:Z.label)!=null?U:""},A={};
return _.d("upsell-view-model",{class:_.V7("ytUpsellViewModelHost",(A.ytUpsellViewModelHostNoPadding=function(){return O()},A.ytUpsellViewModelHostWide=function(){return t().offerTable!==void 0},A))},_.d("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.d(_.y,{cond:function(){return _.nx(t().logo)},
then:function(Z){return _.d(_.Qt,{data:Z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:H})}})),_.d("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.d(_.cu,{text:function(){return t().title}})),_.d("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.d(_.nL,{each:function(){var Z;
return(Z=t().subtitles)!=null?Z:[]},
keyBy:"INDEX"},function(Z){var U={};return _.d("div",{class:_.V7("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(U.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return t().offerTable!==void 0},U))},_.d(_.cu,{text:Z}))})),_.d("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.d(_.nL,{each:function(){var Z;
return(Z=t().benefitInfos)!=null?Z:[]},
keyBy:"INDEX"},function(Z){return _.d(_.y,{cond:function(){return Z().info},
then:function(U){return _.d("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.d(_.dq,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.d(_.cu,{text:U}))}})})),_.d(_.y,{cond:function(){return t().offerTable!==void 0},
then:function(){return _.d("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.d(_.iF,{data:function(){return t().offerTable}},{upsellOfferTableViewModel:function(Z){return _.d(mkf,{data:Z.data})}}))}}),_.d("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.d(_.nL,{each:function(){var Z;
return(Z=t().legalInfos)!=null?Z:[]},
keyBy:"INDEX"},function(Z){var U={};return _.d("div",{class:_.V7("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(U.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return t().offerTable!==void 0},U))},_.d(_.cu,{text:Z}))})))},"Qj");var GR1=_.q(function(N){var t=N.data;N={};N=(N.ytMiniAppScoreChallengeViewModelScoreRadial=!0,N.ytMiniAppScoreChallengeViewModelDarkScoreRadial=xOm(),N);return _.d("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.d("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return t().title}),_.d("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return t().subtitle}),_.d("div",{class:_.Lx(N)},_.d("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return t().score})),_.d("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return t().prompt}))},"Rj");var Rym=function(){this.store=_.mN();this.formId=""};
Rym.prototype.onInit=function(N){N.formId&&(this.formId=N.formId,this.store.dispatch(_.H5({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var vZ5=_.q(function(N){function t(C){if(C&&(C=_.M(C,_.h5)))return Object.assign({},C,{isSelected:Z()})}
var O=_.D(_.Gb(function(){var C,F;return(F=(C=_.M(N.data().option,_.h5))==null?void 0:C.isSelected)!=null?F:!1})),H=O.next().value,A=O.next().value,Z=H;
_.Q8(function(){var C;_.n6f((C=N.data().formSchema)==null?void 0:C.id,{onSubmit:function(){var F=_.cY().resolve(_.jo),g=!!N.data().selectedCommand,B=!!N.data().unselectedCommand;if(Z()){if(g)var c=N.data().selectedCommand}else B&&(c=N.data().unselectedCommand);c=_.wF(c);t(N.data().option)&&!c?(F="",!g&&B?F="selected ":g&&!B&&(F="unselected "),g=new _.fF("No "+F+"command found for SelectionListItemFormViewModel"),_.R0(g)):c&&F.resolveCommand(c)},
isValid:function(){return!0}})});
var U=function(){A(!Z())};
_.Ia(function(){var C,F,g=(C=N.data())==null?void 0:(F=C.formSchema)==null?void 0:F.id;g&&_.$S()().delete(g)});
return _.d("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.d("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.d(_.cu,{text:function(){return N.data().paragraph}})),_.d(_.y,{cond:function(){return t(N.data().option)},
then:function(C){return _.d(_.$P,{data:C,isCompact:!0,hideSelectionTextChevron:!0,onTap:U,disableHorizontalPadding:!0})}}))},"Sj");var JSi=_.q(function(N){var t=N.data;var O=N.disablePadding;var H=N.className;var A=_.Fy("yt-dialog-header-view-model"),Z=function(){var C=t().imageBanner;a:switch(t().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var F="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:F="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:C,style:F,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},U=function(){return t().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Q8(function(){var C=function(){_.sl(A.value,"yt-refit-popups-action")},F;
(F=A.value)==null||F.addEventListener("image-loaded",C);_.Ia(function(){var g;(g=A.value)==null||g.removeEventListener("image-loaded",C)})});
N={};return _.d("yt-dialog-header-view-model",{el:A,class:_.V7(H,(N.ytDialogHeaderViewModelHost=!0,N.ytDialogHeaderViewModelHostDisablePadding=O,N))},_.d(_.y,{cond:function(){return t().imageBanner},
then:function(){var C={};return _.d("div",{class:_.V7(H,(C.ytDialogHeaderViewModelBanner=!0,C.ytDialogHeaderViewModelBannerFullBleed=U,C)),style:_.FM({"max-height":function(){return t().assetContainerMaxHeight!==void 0?t().assetContainerMaxHeight+"px":void 0}})},_.d(_.xe,{data:Z,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.d(_.y,{cond:function(){return t().headerBlock},
then:function(){return _.d("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.d(_.iF,{data:function(){return t().headerBlock}},{contentPreviewImageViewModel:function(C){return _.d(_.xe,{data:C.data,
notifyOnLoaded:!0})}}))}}),_.d(_.y,{cond:function(){return t().customBanner},
then:function(C){return _.d("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.d(_.iF,{data:C},{avatarStackViewModel:_.C_}))}}),_.d(_.y,{cond:function(){return t().headline},
then:function(C){return _.d("h2",null,_.d(_.cu,{text:C,className:"ytDialogHeaderViewModelText"}))}}))},"Tj");
JSi.idomCompat=!0;var oZf=_.q(function(N){var t=_.DhQ(function(){return N.data().formId}),O=t.submitForm,H=t.isValid;
return _.d("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.d(_.iF,{data:function(){return N.data().panelFooter}},{panelFooterViewModel:function(A){return _.d(_.Ej,{data:A.data,
disablePadding:!0,disablePrimaryButton:function(){return!H()},
onClickPrimaryButton:function(){O()}})}}))},"Uj");var sKm=_.q(function(N){var t=function(){var O,H;return(H=(O=_.M(N.data().rendererContext,_.ue))==null?void 0:O.label)!=null?H:""};
return _.d("yt-dialog-image-content-view-model",{class:_.V7("ytDialogImageContentViewModelHost",N.className)},_.d(_.y,{cond:function(){return _.nx(N.data().image)},
then:function(O){var H={};return _.d("div",{style:_.FM((H.width=(0,_.yg)(function(){var A;return(A=N.data().imageMaxWidth)!=null?A:""}),H)),
class:"ytDialogImageContentViewModelImage"},_.d(_.Qt,{data:O,alt:t,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.d(_.cu,{text:function(){return N.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Vj");var O2n=_.q(function(N){var t=_.RH(N,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),O=t.elRefCallback;N=t.Icon;var H=t.Asset,A=t.assetType,Z=t.Title,U=t.LeadingActionHeader,C=t.TrailingActionHeader,F=t.headerPosition,g=t.Content,B=t.buttonLayout,c=t.buttonStyle,u=t.primaryButtonWiz,S=t.secondaryButtonWiz,b=t.contentAlignment,z=t.isFullscreen,w=t.width,P=t.maxHeight,x=t.isHeaderWizDefined,l=t.Header,I=t.isFooterWizDefined,
r=t.Footer;t=_.Fy("dialog-layout",function(XO){O==null||O(XO)});
var E=u?function(){var XO={};return u({buttonOverrides:function(){return{style:(c==null?void 0:c())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.V7((XO["yt-spec-dialog-layout__dialog-layout-button"]=!0,XO["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(B==null?void 0:B())===0||(B==null?void 0:B())===2},XO))})}:void 0,J=S?function(){var XO={};
return S({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.V7((XO["yt-spec-dialog-layout__dialog-layout-button"]=!0,XO["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(B==null?void 0:B())===0||(B==null?void 0:B())===2},XO))})}:void 0,CN=function(){return(!!Z||!!U||!!C)&&F()===0},B4={},zM={},jy={},c4={};
return _.d("dialog-layout",{el:t,class:_.V7((B4["yt-spec-dialog-layout"]=!0,B4["yt-spec-dialog-layout--dialog-layout-fullscreen"]=z,B4["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!z()},B4["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return P()===1},B4["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(A==null?void 0:A())===1},B4)),
style:function(){return(w==null?void 0:w())!==void 0?"width: "+w()+"px;":""}},N?_.d("div",{class:_.V7((zM["yt-spec-dialog-layout__dialog-layout-icon"]=!0,zM["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!H&&F()===1},zM["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return b()===1},zM))},_.d(N,null)):null,_.d(_.y,{cond:x,
then:function(){return l?_.d("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.d(l,null)):null},
else:function(){return _.d(_.BZ,null,_.d(_.y,{cond:CN,then:function(){return _.d(NCn,{contentAlignment:b,LeadingActionHeader:U,TrailingActionHeader:C,Title:Z,isAboveAsset:!!H})}}),H?_.d("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.d(H,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.d("div",{class:_.V7((jy["yt-spec-dialog-layout__dialog-layout-container"]=!0,jy["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(b==null?void 0:b())===1},
jy["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!Z&&!(l&&x())||!!H&&(F==null?void 0:F())===0},jy))},_.d(_.y,{cond:function(){return Z&&!l&&(F==null?void 0:F())===1},
then:function(){return _.d(NCn,{contentAlignment:b,LeadingActionHeader:U,TrailingActionHeader:C,Title:Z,isAboveAsset:!1})}}),g?_.d("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.d("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.d(g,null))):null,_.d(_.y,{cond:I,
then:function(){return r?_.d("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.d(r,null)):null}}),E||J?_.d(tjJ,{footerClasses:_.V7((c4["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,c4["yt-spec-dialog-layout__dialog-layout-footer"]=!0,c4["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(B==null?void 0:B())===2},c4["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(B==null?void 0:B())===1},c4)),
PrimaryButton:E,SecondaryButton:J}):null))},"Wj"),NCn=_.q(function(N){var t=_.RH(N,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),O=t.contentAlignment,H=t.LeadingActionHeader;N=t.Title;var A=t.TrailingActionHeader,Z=t.isAboveAsset,U=t.enableLeadingActionHeader;t={};return _.d("div",{class:_.V7((t["yt-spec-dialog-layout__dialog-header-container"]=!0,t["yt-spec-dialog-layout__dialog-header"]=!0,t["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=Z,t["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(O==null?void 0:O())===1&&U()},t))},_.d(_.y,{cond:function(){return U()},
then:function(){return H?_.d("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.d(H,null)):null}}),N?_.d("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.d(N,null)):null,A?_.d("div",null,_.d(A,null)):null)},"Xj"),tjJ=_.q(function(N){var t=N.footerClasses;
var O=N.PrimaryButton;N=N.SecondaryButton;return _.d("div",{class:t},N?_.d(N,null):null,O?_.d(O,null):null)},"Yj");var H2i=_.q(function(N){var t=N.data;return _.d("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.d("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.d(_.iF,{data:function(){return t().avatar}},{avatarViewModel:_.Dv})),_.d("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d(_.cu,{text:function(){return t().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Zj");var Aar=_.q(function(N){return _.d("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.d("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.d(_.cu,{text:function(){return N.data().inviteMessage}})),_.d("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.d(_.cu,{text:function(){return N.data().attributedAccountSectionHeaderText}})),_.d("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.d(_.iF,{data:function(){return N.data().accountAvatar}},{avatarViewModel:_.Dv}),_.d("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.d(_.cu,{text:function(){return N.data().accountName}}),_.d("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.d(_.cu,{text:function(){return N.data().handle}}))),_.d(_.iF,{data:function(){return N.data().trailingButton}},{buttonViewModel:_.Pu})),_.d("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.d(_.cu,{text:function(){return N.data().termsOfService}})))},"$j");var Z2x=_.q(function(N){var t=N.data;return _.d("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.d("div",{class:"ytAccessConfirmationViewModelContent"},_.d(_.iF,{data:function(){var O;return(O=t().avatar)!=null?O:t().dualAvatar}},{dualAvatarViewModel:function(O){return _.d(_.$mz,{data:O.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(O){return _.d(_.Us,{data:O.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.d("h2",{class:"ytAccessConfirmationViewModelTitle"},_.d(_.cu,{text:function(){return t().title}})),_.d(_.cu,{text:function(){return t().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ak");var Vjn=_.q(function(N){var t=N.data;var O=void 0;N=_.D(_.Gb(function(){var g;return((g=_.M(t().content,_.cq))==null?void 0:g.defaultSelectedKey)||""}));
var H=N.next().value,A=N.next().value,Z,U=function(){A("");var g;(g=O)!=null&&g.store.dispatch(_.H5({type:"RESET_COMMAND_MAP"}))};
_.Q8(function(){O=new Rym;window.addEventListener("yt-popup-closed",U)});
_.rp(function(){if(O&&Z!==t().formId&&(O.onInit(t()),(Z=t().formId)&&H())){var g=O,B={key:H()};B.command&&g.store.dispatch(agr(Z,B.command))}},"c2n8Gf");
_.Ia(function(){window.removeEventListener("yt-popup-closed",U)});
var C=function(g,B,c){B.key&&c&&B.key!==H()&&(A(B.key),O&&B.command&&O.store.dispatch(agr(c,B.command)))},F=function(){if(_.M(t().content,_.cq))return!(H==null?0:H())};
return _.d("yt-dialog-view-model",{class:_.V7("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.d(O2n,{Header:function(){return _.d(_.iF,{data:function(){return t().header}},{dialogHeaderViewModel:function(g){return _.d(JSi,{data:g.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!t().header},
Content:function(){return _.d(_.iF,{data:function(){return t().customContent?t().customContent:t().content}},{basicContentViewModel:_.$b0,
createPlaylistDialogFormViewModel:rSf,collaborativePlaylistInviteMessageViewModel:Aar,miniAppScoreChallengeViewModel:GR1,radioButtonGroupViewModel:function(g){var B=g.data;return _.d(_.rBi,{data:B,selectedKey:H,onSelected:C,groupName:function(){return B().formId}})},
selectionListItemFormViewModel:vZ5,upsellViewModel:function(g){return _.d(EZO,{data:g.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:H2i,installmentAgreementsViewModel:Wkn,accessConfirmationViewModel:Z2x,listViewModel:function(g){return _.d(_.xbr,{data:g.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:sKm})},
Footer:function(){return _.d(_.iF,{data:function(){return t().footer}},{panelFooterViewModel:function(g){return _.d(_.Ej,{data:g.data,
disablePadding:!0,disablePrimaryButton:F})},
formPanelFooterViewModel:oZf,formFooterViewModel:function(g){return _.d(_.anq,{data:g.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!t().footer}}))},"ck");
Vjn.idomCompat=!0;_.o_(Vjn,"yt-dialog-view-model",{props:{data:_.$O},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Dh1=_.q(function(N){var t=N.data;return _.d("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.d(_.y,{cond:function(){return t().title},
then:function(O){return _.d("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.d(_.cu,{text:O,className:"ytPanelHeaderViewModelTitle"}))}}),_.d(_.y,{cond:function(){return t().subtitle},
then:function(O){return _.d(_.cu,{text:O,className:"ytPanelHeaderViewModelSubtitle"})}}))},"dk"),UhO=_.q(function(N){var t=N.data;
var O=_.fsS(function(){return t().rendererContext});
N={};return _.d("yt-panel-header-view-model",{class:_.V7("ytPanelHeaderViewModelHost",(N.ytPanelHeaderViewModelHostHideDivider=function(){return!!t().shouldHideDivider},N.ytPanelHeaderViewModelHostCompact=function(){return!!t().subtitle},N)),
"aria-label":function(){var H;return(H=O())==null?void 0:H.label}},_.d(_.y,{cond:function(){return _.TE(t().rendererContext)},
then:function(){return _.d(_.jUE,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.a8(t().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.d(Dh1,{data:t}))},
else:function(){return _.d(Dh1,{data:t})}}),_.d("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.d(_.iF,{data:function(){return t().trailingButtons}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
className:"ytPanelHeaderViewModelButton"})}})))},"ek");
UhO.idomCompat=!0;var CaJ=_.q(function(N){var t=_.Ui(function(Z){var U;if((U=N.skipContentClick)==null?0:U.call(N))return!1;N.onContentWrapperClick(Z);return!0}),O,H,A;
return _.d("div",{class:_.V7("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return N.isAnimating()?"transform: translateY("+N.currentY()+"px);transition: 0.2s":""}},(O=N.header)==null?void 0:O.call(N),_.d("div",{id:N.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.FM({"max-height":(0,_.yg)(N.maxHeightForContentWrapper)}),"on:scroll":_.Ui(function(Z){return N.onScroll(Z),!1}),
"on:touchmove":_.Ui(function(Z){return Z.stopPropagation(),!1})},_.d("div",{el:_.E4(N.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":t},(H=N.body)==null?void 0:H.call(N))),(A=N.footer)==null?void 0:A.call(N))},"fk");
CaJ.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var KMx=_.q(function(N){var t=_.Gr(N.leadingLabel),O=_.Gr(N.trailingLabel),H=_.Gr(N.footerButtonType),A=function(){return t()||O()||N.hasPrimaryButton()||N.hasSecondaryButton()},Z={},U=_.V7("yt-spec-bottom-sheet-layout__primary-button",(Z["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return H()===0&&N.hasPrimaryButton()},Z["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return H()===1&&N.hasPrimaryButton()},Z["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return H()===2&&N.hasPrimaryButton()},Z["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return H()===3&&N.hasPrimaryButton()},Z));
Z={};var C=_.V7("yt-spec-bottom-sheet-layout__secondary-button",(Z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return H()===1&&N.hasSecondaryButton()},Z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return H()===2&&N.hasSecondaryButton()},Z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return H()===3&&N.hasPrimaryButton()},Z));
return _.d(_.y,{cond:N.hasFooterOverride,then:function(){var F;return _.d(_.BZ,null,(F=N.footerOverride)==null?void 0:F.call(N))},
else:function(){return _.d(_.y,{cond:A,then:function(){return _.d("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.d(_.y,{cond:function(){return t()||O()},
then:function(){var F={};return _.d("div",{class:_.V7("yt-spec-bottom-sheet-layout__footer-label-wrapper",(F["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!N.hasPrimaryButton()},F))},_.d(_.y,{cond:t,
then:function(){return _.d("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},t)}}),_.d(_.y,{cond:O,
then:function(){return _.d("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},O)}}))}}),_.d(_.y,{cond:function(){return N.hasPrimaryButton()||N.hasSecondaryButton()},
then:function(){var F={};return _.d("div",{class:_.V7("yt-spec-bottom-sheet-layout__footer-button-wrapper",(F["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.dZY,F))},_.d(_.y,{cond:function(){return N.hasSecondaryButton()&&H()!==0},
then:function(){var g;return _.d("div",{class:C},(g=N.secondaryButton)==null?void 0:g.call(N))}}),_.d(_.y,{cond:N.hasPrimaryButton,
then:function(){var g;return _.d("div",{class:U},(g=N.primaryButton)==null?void 0:g.call(N))}}))}}))}})}})},"gk");
KMx.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var FMx=_.q(function(N){var t=_.Gr(N.title),O=_.Gr(N.subtitle);return _.d("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:N.headerId,"on:touchstart":_.Ui(function(H){var A;(A=N.touchstart)==null||A.call(N,H);return!1}),
"on:touchmove":_.Ui(function(H){var A;(A=N.touchmove)==null||A.call(N,H);return!1}),
"on:touchend":_.Ui(function(H){var A;(A=N.touchend)==null||A.call(N,H);return!1})},_.d("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.d(_.y,{cond:N.hasHeaderOverride,
then:function(){var H;return _.d(_.BZ,null,(H=N.headerOverride)==null?void 0:H.call(N))},
else:function(){var H={};return _.d("div",{class:_.V7((H["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,H["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=t,H))},_.d("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.d(_.y,{cond:t,then:function(){return _.d(_.BZ,null,_.d("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},t),_.d(_.y,{cond:O,then:function(){return _.d("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
O)}}))}})),_.d(_.y,{cond:function(){return t()&&N.hasActionHeader()},
then:function(){var A;return _.d("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(A=N.actionHeader)==null?void 0:A.call(N))}}))}}))},"hk");
FMx.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.q(function(N){function t(CN){if(!l&&typeof MutationObserver!=="undefined"){var B4={childList:!0};"MutationObserver"in window&&(l=new MutationObserver(O.bind(void 0,CN)),l.observe(CN,B4))}}
function O(CN){typeof l!=="undefined"&&(I["content-wrapper"]===void 0&&(I["content-wrapper"]=CN.children[0].clientHeight),z(I["content-wrapper"]),b()>w()||P(b()))}
function H(){S(window.innerHeight);b()>w()||P(b());r.isFullScreen[0]()&&b()>w()?E().dispatch("Snap To Full Screen",{maxHeight:x()}):E().dispatch("Snap To Neutral Position",{maxHeight:w()})}
function A(CN){document.body.style.overscrollBehavior="none";CN.preventDefault();E().dispatch("Touch Start",{event:CN})}
function Z(CN){CN.preventDefault();E().dispatch("Touch Move",{event:CN,contentScrollable:b()>w(),fullContentWrapperHeight:x(),contentWrapperHeight:w(),heightMap:I,contentWrapperId:"content-wrapper",header:Ws5(N),footer:Ws5(N),headerDivHeight:I["bottom-sheet-header"],footerDivHeight:I["bottom-sheet-footer"]})}
function U(){document.body.style.overscrollBehavior="";r.isFullScreen[0]()?r.currentY[0]()>=60?E().dispatch("Snap To Neutral Position",{maxHeight:w()}):E().dispatch("Snap To Full Screen",{maxHeight:x()}):r.currentY[0]()>=60?C():r.currentY[0]()<=-60&&b()>w()?E().dispatch("Snap To Full Screen",{maxHeight:x()}):E().dispatch("Snap To Neutral Position",{maxHeight:w()})}
function C(){E().dispatch("Close Sheet",{clientHeight:u(),maxHeight:0});setTimeout(function(){nG5()},250)}
var F=_.Fy("div"),g=_.Fy("div"),B=_.D(_.b$(window.innerHeight,void 0,"CmOsU")),c=B.next().value;B=B.next().value;var u=c,S=B;B=_.D(_.b$(0,void 0,"p0Flhb"));c=B.next().value;B=B.next().value;var b=c,z=B;B=_.D(_.Gb(function(){var CN=Ws5(N);return.6*u()-kj5(CN)-qwn(CN)}));
c=B.next().value;B=B.next().value;var w=c,P=B,x=function(){var CN=Ws5(N),B4=u(),zM=I["bottom-sheet-header"],jy=I["bottom-sheet-footer"];return B4-(CN.hasHeaderFn&&zM!==void 0?zM:kj5(CN))-(CN.hasFooterFn&&jy!==void 0?jy:qwn(CN))-24-24},l=null,I={},r={initialY:_.b$(0,void 0,"sxdESd"),
currentY:_.b$(0,void 0,"GZzqeb"),isAnimating:_.b$(!1,void 0,"vJBupc"),isFullScreen:_.b$(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.Gb(w)},E=function(){var CN=null;return function(){if(!CN){var B4={initialY:r.initialY[0](),currentY:r.currentY[0](),isAnimating:r.isAnimating[0](),isFullScreen:r.isFullScreen[0](),maxHeightForContentWrapper:r.maxHeightForContentWrapper[0]()};CN=fbx(B4)}return CN}}();
_.Q8(function(){window.addEventListener("resize",H);E().subscribe(function(CN){r.initialY[1](CN.initialY);r.currentY[1](CN.currentY);r.isAnimating[1](CN.isAnimating);r.isFullScreen[1](CN.isFullScreen);r.maxHeightForContentWrapper[1](CN.maxHeightForContentWrapper)});
requestAnimationFrame(function(){F.value&&(I["bottom-sheet-header"]=F.value.clientHeight);g.value&&(I["bottom-sheet-footer"]=g.value.clientHeight)})});
_.Ia(function(){window.removeEventListener("resize",H);l&&(l.disconnect(),l=null)});
var J=_.V7({"bottom-sheet-content-without-icon":function(){var CN;return!((CN=N.shouldShowIcons)==null?0:CN.call(N))}});
return _.d("bottom-sheet-layout",null,_.d(CaJ,{contentWrapperId:"content-wrapper",isAnimating:function(){return r.isAnimating[0]()},
currentY:function(){return r.currentY[0]()},
maxHeightForContentWrapper:function(){return r.maxHeightForContentWrapper[0]()},
shouldShowIcons:N.shouldShowIcons,skipContentClick:N.skipContentClick,onScroll:function(){var CN=document.getElementById("bottom-sheet-header"),B4=document.getElementById("content-wrapper");if(CN&&B4){var zM={};zM=(zM["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,zM["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,zM);CN.className=B4.scrollTop>1?_.Lx(zM):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:nG5,contentWrapperEl:function(CN){t(CN);requestAnimationFrame(function(){O(CN)})},
header:function(){return _.d("div",{el:F},_.d(FMx,{touchstart:A,touchmove:Z,touchend:U,title:N.headerTitle,subtitle:N.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:N.headerFn,hasHeaderOverride:N.hasHeaderFn,actionHeader:N.headerActionHeader,hasActionHeader:N.hasHeaderActionHeader}))},
footer:function(){return _.d("div",{el:g},_.d(KMx,{footerButtonType:N.footerButtonType,leadingLabel:N.footerLeadingLabel,trailingLabel:N.footerTrailingLabel,primaryButton:N.footerPrimaryButton,hasPrimaryButton:N.hasFooterPrimaryButton,secondaryButton:N.footerSecondaryButton,hasSecondaryButton:N.hasFooterSecondaryButton,footerOverride:N.footerFn,hasFooterOverride:N.hasFooterFn}))},
body:function(){return _.d(_.y,{cond:N.hasContentFn,then:function(){var CN;return _.d("div",{class:J},(CN=N.contentFn)==null?void 0:CN.call(N))}})}}))},"ik").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var dhm=_.q(function(N){var t=_.cY().resolve(_.HD);return _.d("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Ui(function(){return void t.closeSheet()})},_.d(_.y,{cond:function(){return!!N.header},
then:function(){return _.d("div",{class:"ytContextualSheetLayoutHeaderContainer"},N.header())}}),_.d(_.y,{cond:function(){return!!N.content},
then:function(){return _.d("div",{class:"ytContextualSheetLayoutContentContainer"},N.content())}}),_.d(_.y,{cond:function(){return!!N.footer},
then:function(){return _.d("div",{class:"ytContextualSheetLayoutFooterContainer"},N.footer())}}))},"jk");
dhm.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var gof=_.q(function(N){var t=N.data;var O=_.cY().resolve(_.jo),H=_.Fy("yt-sheet-view-model",function(A){if(_.h("web_focus_first_element_sheet")||!_.h("sheet_focus_first_killswitch"))return A.addEventListener("focus",function(){d2f(A)}),function(){A.removeEventListener("focus",function(){d2f(A)})}});
N={};return _.d("yt-sheet-view-model",{"on:mousedown":_.Ui(function(A){_.h("sheet_focus_first_killswitch")||A.currentTarget!==A.target&&A.preventDefault()}),
"on:focus":_.Ui(function(){_.h("sheet_focus_first_killswitch")||d2f(H.value)}),
"on:mouseleave":_.Ui(function(){var A,Z=t==null?void 0:(A=t())==null?void 0:A.rendererContext,U;(A=(U=_.M(Z,_.ep))==null?void 0:U.onHoverEnd)&&O.resolveCommand(A)}),
class:_.V7("ytSheetViewModelHost",(N.ytSheetViewModelContextual=!0,N.ytSheetViewModelDisableBackdropFilter=_.h("web_disable_backdrop_filter"),N)),el:H,tabindex:-1},_.d(_.y,{cond:t,then:function(A){return _.d(dhm,{header:function(){return _.d(_.iF,{data:function(){return A().header}},{panelHeaderViewModel:UhO})},
content:function(){return _.d(_.iF,{data:function(){return A().content}},{listViewModel:function(Z){return _.d(_.xbr,{data:Z.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:EZO,miniAppScoreChallengeViewModel:GR1})},
footer:function(){return _.d(_.iF,{data:function(){return A().footer}},{panelFooterViewModel:_.Ej})}})}}))},"kk");
gof.idomCompat=!0;_.o_(gof,"yt-sheet-view-model",{props:{data:_.$O}});var BCz=_.q(function(N){var t=function(){var O;return(O=N.data().enableDebuggingFeatures)!=null?O:!1};
return _.d("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.d(_.nL,{each:function(){var O;return(O=N.data().stickers)!=null?O:[]}},function(O){return _.d(yaO,{data:function(){return O},
debugMode:t})}))},"lk"),yaO=_.q(function(N){var t=_.RH(N,{debugMode:!1}).debugMode,O=_.Gr(function(){var F;
return(F=N.data().region)==null?void 0:F.w},0),H=_.Gr(function(){var F;
return(F=N.data().region)==null?void 0:F.h},0),A=_.Gr(function(){var F;
return(F=N.data().region)==null?void 0:F.x},0),Z=_.Gr(function(){var F;
return(F=N.data().region)==null?void 0:F.y},0),U=_.Ui(function(){var F=N.data().onTap;
F&&_.xJ(F)}),C={};
return _.d("div",{class:_.V7("ytStoriesStickerLayerViewModelSticker",(C.ytStoriesStickerLayerViewModelDebugMode=t,C)),style:_.FM({width:function(){return 100*O()+"%"},
height:function(){return 100*H()+"%"},
left:function(){return 100*A()+"%"},
top:function(){return 100*Z()+"%"},
"flex-direction":function(){return rC5(N.data().flexDirection)},
"justify-content":function(){return Ibn(N.data().justifyContent)},
"align-items":function(){return lb5(N.data().alignItems)}}),
"on:click":U},_.d(_.iF,{data:function(){return N.data().button||N.data().toggleButton}},{buttonViewModel:function(F){return _.d(_.Pu,{data:F.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(F){return _.d(_.N3,{data:F.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"mk");var $hf=_.q(function(N){var t=function(){return N.data()},O={},H=_.D(_.b$(!1,void 0,"SegA3d")),A=H.next().value,Z=H.next().value,U=_.Gr(function(){return t().backgroundColor},0);
H=_.Gr(function(){return t().actionButtons},[]);
var C=_.Gr(function(){return t().stickerLayer},{}),F=function(){var B,c;
return{animationRef:O,animationConfig:{autoplay:!1,loop:!1,path:(c=(B=t().foregroundAnimation)==null?void 0:B.url)!=null?c:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){Z(!0)},
complete:function(){N.navigateToNextItemOnLottieComplete()}}}},g=function(){var B,c,u,S,b,z,w,P;
return{animationConfig:{autoplay:(z=(B=t().backgroundAnimation)==null?void 0:(c=B.settings)==null?void 0:c.autoplay)!=null?z:!1,loop:(w=(u=t().backgroundAnimation)==null?void 0:(S=u.settings)==null?void 0:S.loop)!=null?w:!1,path:(P=(b=t().backgroundAnimation)==null?void 0:b.url)!=null?P:"",name:"stories_item_background_animation"}}};
_.rp(function(){if(N.isVisible()&&A()){var B;(B=O.lottieEl)==null||B.play();N.animationRef()&&(N.animationRef().lottieEl=O.lottieEl)}else{var c;(c=O.lottieEl)==null||c.stop()}},"MxM2wb");
return _.d("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.FM({"background-color":function(){return _.TV(U())+";"}})},_.d("div",{class:"ytStoriesItemViewModelAssetContent"},_.d(_.y,{cond:function(){return!!t().backgroundAnimation},
then:function(){return _.d(_.rd,{data:g,animationName:function(){return g().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.d(_.y,{cond:function(){return!!t().backgroundImage},
then:function(){return _.d(_.Qt,{data:function(){return t().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.d(_.y,{cond:function(){return!!t().foregroundAnimation},
then:function(){return _.d(_.rd,{data:F,animationName:function(){return F().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.d(_.y,{cond:function(){return!!t().foregroundImage},
then:function(){return _.d(_.Qt,{data:function(){return t().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.d("div",{class:"ytStoriesItemViewModelTopShadow"}),_.d(_.iF,{data:function(){return C()}},{storiesStickerLayerViewModel:BCz})),_.d("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.FM({"background-color":function(){return _.TV(U())}})},_.d("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.d(_.nL,{each:H},function(B){return _.d(can,{data:function(){return B},
pauseAutoNavigation:N.pauseAutoNavigation})}))))},"ok"),j4m={style:"overlay",
type:"outline"},can=_.q(function(N){var t={};return _.d("div",{class:_.V7("ytStoriesItemViewModelActionButton",(t.ytStoriesItemViewModelStretchedActionButton=function(){return N.data().size==="STORIES_BUTTON_SIZE_STRETCH"},t)),
"on:click":_.Ui(N.pauseAutoNavigation)},_.d(_.iF,{data:function(){return N.data().button}},{buttonViewModel:function(O){return _.d(_.Pu,{data:O.data,
buttonOverrides:j4m})}}))},"pk");var i2f={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.o_(_.q(function(N){var t=function(){var jy;return(jy=N.data().startIndex)!=null?jy:0},O=_.D(_.Gb(t)),H=O.next().value,A=O.next().value;
O=_.D(_.b$(!1,void 0,"sjy7s"));var Z=O.next().value,U=O.next().value,C=function(){var jy;return(jy=N.data().storyItems)!=null?jy:[]},F={},g=_.Fy("yt-stories-viewer-view-model"),B=function(){return N.data().dismissButton},c=function(){var jy;
return _.wF((jy=_.M(B(),_.$9))==null?void 0:jy.onTap)},u=_.Fy("div"),S,b,z=!1,w=function(){var jy;
(jy=S)==null||jy.cancel();S=P(H()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});S.onfinish=function(){var c4=_.M(C()[H()],jqm),XO,kx;c4!=null&&c4.foregroundAnimation&&((c4==null?0:(XO=c4.foregroundAnimation)==null?0:XO.url)||(c4==null?0:(kx=c4.foregroundAnimation)==null?0:kx.payload))||(H()!==C().length-1?(A(H()+1),w()):c()&&_.eF(c()))}},P=function(jy){return u.value.children[jy].children[0]},x=function(){for(var jy=0;jy<H();jy++)P(jy).style.transform=
"scaleX(1)"},l=function(){z||(Z()?U(!1):(H()===C().length-1&&c()&&_.eF(c()),P(H()).style.transform="scaleX(1)",H()!==C().length-1&&(A(H()+1),w())))},I=function(){z||(Z()?U(!1):(P(H()).style.transform="scaleX(0)",H()!==0&&A(H()-1),w()))},r=function(){U(!0)},E=function(){P(H()).style.transform="scaleX(1)";
H()!==C().length-1?(A(H()+1),w()):c()&&_.eF(c())};
O=function(){z=!1;b=setTimeout(function(){U(!0);z=!0},300)};
var J=function(){clearTimeout(b);z&&Z()&&U(!1)};
_.rp(function(){if(Z()){var jy;(jy=S)==null||jy.pause();var c4;(c4=F.lottieEl)==null||c4.pause()}else{var XO;(XO=S)==null||XO.play();var kx;(kx=F.lottieEl)==null||kx.play()}},"vAvZob");
_.rp(function(){x();H()===t()&&w()},"uSlfE");
var CN=function(jy){jy.key==="ArrowLeft"?I():jy.key==="ArrowRight"&&l()},B4=function(jy){if(jy.target===g.value){(jy=c())&&_.eF(jy);
clearTimeout(b);var c4;(c4=S)==null||c4.cancel();window.removeEventListener("keydown",CN);window.removeEventListener("yt-popup-closed",B4)}},zM=function(jy){jy.target===g.value&&(window.addEventListener("keydown",CN),window.addEventListener("yt-popup-closed",B4))};
_.Q8(function(){x();w();window.addEventListener("yt-popup-opened",zM)});
return _.d("yt-stories-viewer-view-model",{el:g,class:_.V7("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.d("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.d("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Ui(I),"on:mousedown":_.Ui(O),"on:mouseup":_.Ui(J),"on:mouseleave":_.Ui(J)}),_.d("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Ui(l),"on:mousedown":_.Ui(O),"on:mouseup":_.Ui(J),"on:mouseleave":_.Ui(J)})),
_.d("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.d(_.iF,{data:C},{storiesItemViewModel:function(jy,c4){var XO=jy.data;return _.d(_.y,{cond:function(){return Math.abs(c4()-H())<=1},
then:function(){var kx={};return _.d("div",{class:_.V7("ytStoriesViewerViewModelStoryItem",(kx.ytStoriesViewerViewModelActiveStoryItem=function(){return c4()===H()},kx))},_.d($hf,{data:XO,
pauseAutoNavigation:r,navigateToNextItemOnLottieComplete:E,isVisible:function(){return c4()===H()},
animationRef:F}))}})}})),_.d("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:u},_.d(_.nL,{each:C},function(){return _.d("div",{class:"ytStoriesViewerViewModelProgressBar"},_.d("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.d("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.d(_.Qt,{data:i2f,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.d("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.d(_.iF,{data:function(){return N.data().muteButton}},{toggleButtonViewModel:function(jy){return _.d(_.N3,{data:jy.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.d(_.iF,{data:B},{buttonViewModel:function(jy){return _.d(_.Pu,{data:jy.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"sk"),"yt-stories-viewer-view-model",{props:{data:_.$O}});_.o_(_.q(function(N){var t=N.data;var O=_.Fy("yt-gen-ai-feedback-form-view-model"),H=[];return _.d("yt-gen-ai-feedback-form-view-model",{el:O,class:"ytGenAiFeedbackFormViewModelHost"},_.d(_.cu,{text:function(){return t().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.d("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.d(_.iF,{data:function(){return t().feedbackChips}},{toggleButtonViewModel:function(A){var Z=A.data;
return _.d(_.N3,{data:Z,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(U){var C=Z();C=_.M(C,_.iA);C=_.M(C==null?void 0:C.defaultButtonViewModel,_.$9).trackingParams;U?H.push(C):(U=H.indexOf(C),U>-1&&H.splice(U,1))}})}})),_.d(_.cu,{text:function(){return t().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.d("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.d(_.iF,{data:function(){return t().submitButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Q5i(O.value,H,t().uniqueId)}})}}),_.d(_.iF,{data:function(){return t().moreFeedbackButton}},{buttonViewModel:function(A){return _.d(_.Pu,{data:A.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"tk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.$O},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var zx=function(){return _.k.apply(this,arguments)||this};
_.p(zx,_.k);zx.prototype.created=function(){YNm(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(hsx);var N=_.cY().resolve(_.P$1);N&&(N.container=this.ytPopupContainerBehavior);if(N=_.cY().resolve(_.HD))N.container=this.ytPopupContainerBehavior;if(N=_.cY().resolve(_.A6)){var t=this.ytPopupContainerBehavior;N.containerWasInjected?_.J_(Error("qj")):N.container=t}};
zx.prototype.ensurePopupBelowPlayer=function(N,t){var O=_.cY().resolve(_.BY(_.J4));if(!O||!O.isOnWatch()||!_.si())return!1;O=O.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.$H().height>O+this.getPopupHeight(N,t)?(N.style.top="auto",N.style.bottom="0px"):(N.style.top=O+"px",N.style.bottom="auto");return!0};
zx.prototype.getPopupHeight=function(N,t){t&&(N.cachedPopupHeight=0);if(!N.cachedPopupHeight){t=0;var O=N.clientHeight,H=window.getComputedStyle(N);t+=parseInt(H.marginTop,10);t+=parseInt(H.marginBottom,10);N.cachedPopupHeight=O+t}return N.cachedPopupHeight};
zx.prototype.getElement=function(N){return document.createElement(N)};
_.W([_.Y(H4n.YtPopupContainerBehavior),_.Q("design:type",Object)],zx.prototype,"ytPopupContainerBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],zx.prototype,"ytComponentBehavior",void 0);_.W([_.en({disableElementRegistration:!0,is:"ytd-popup-container"})],zx);
_.n(zx,"ytd-popup-container",function(){if(G7J!==void 0)return G7J;var N=document.createElement("template");_.L(N,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);return G7J=N},{mode:1});var ug5;var S5r={};S5r.YtLogYpcFlowCommandsBehavior=[_.Wu.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(N){_.M(N,k9m)&&(N=_.M(N,k9m))&&(N.serializedTransactionFlowLoggingParams?_.y3t(N.serializedTransactionFlowLoggingParams):N.serializedYpcCancelFlowLoggingParams?(N=N.serializedYpcCancelFlowLoggingParams)&&_.Eg("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",N):N.serializedYpcResumeFlowLoggingParams?(N=N.serializedYpcResumeFlowLoggingParams)&&_.Eg("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",N):N.serializedYpcPauseFlowLoggingParams?(N=N.serializedYpcPauseFlowLoggingParams)&&
_.Eg("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",N):N.serializedYpcRefundFlowLoggingParams?(N=N.serializedYpcRefundFlowLoggingParams)&&J4i("YPC_EVENT_TYPE_START",N):N.serializedYpcDeactivateFlowLoggingParams?(N=N.serializedYpcDeactivateFlowLoggingParams)&&_.Eg("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",N):N.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(N=N.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Eg("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",N))},
handleLogYpcFlowDismiss_:function(N){_.M(N,xl5)&&(N=_.M(N,xl5),N.serializedTransactionFlowLoggingParams?_.Bnx(N.serializedTransactionFlowLoggingParams):N.serializedYpcCancelFlowLoggingParams?(N=N.serializedYpcCancelFlowLoggingParams)&&_.Eg("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",N):N.serializedYpcResumeFlowLoggingParams?(N=N.serializedYpcResumeFlowLoggingParams)&&_.Eg("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",N):N.serializedYpcPauseFlowLoggingParams?(N=
N.serializedYpcPauseFlowLoggingParams)&&_.Eg("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",N):N.serializedYpcRefundFlowLoggingParams&&(N=N.serializedYpcRefundFlowLoggingParams)&&J4i("YPC_EVENT_TYPE_CANCEL",N))}}];var hT5={};hT5.YtCancelRecurrenceBehavior=[_.CD.YtComponentBehavior,_.U$E,{attached:function(){var N=this;dBf(this,function(t,O){return N.ypcCancelRecurrenceHandler(t,O)})},
ypcCancelRecurrenceHandler:function(N,t){var O=this;if(!t||!t.ypcCancelRecurrenceEndpoint)return!1;if(!t.ypcCancelRecurrenceEndpoint.params)return _.JO(Error("Sl")),!0;_.qu(this.hostElement);var H=_.nE.instance,A=_.cY().resolve(_.BY(_.u8));H&&_.WH(H,t)?_.rq(H,t).then(function(Z){O.ypcCancelRecurrenceSuccess_(N,t,{data:Z})},function(Z){O.ypcCancelRecurrenceFailure_(N,t,Z)}).thenCatch(function(){_.JO(Error("Tl"))}):A?A.requestDataForServiceEndpoint(t).then(function(Z){O.ypcCancelRecurrenceSuccess_(N,
t,Z)},function(Z){O.ypcCancelRecurrenceFailure_(N,t,Z)}).thenCatch(function(){_.JO(Error("Tl"))}):_.JO(Error("Ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(N,t,O){_.fi(this.hostElement);O.data||(O={data:O});O.data&&O.data.actions&&_.OK(this.hostElement,O.data.actions,this.hostElement);O.data.messageRenderer?sMr(t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(t=t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Eg("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",t);_.or(N,"yt-service-request-completed",O)},
ypcCancelRecurrenceFailure_:function(N,t,O){_.fi(this.hostElement);sMr(t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.or(N,"yt-service-request-error",{error:O,params:[N,t]})}}];var Mjm=function(N,t){_.Nz.call(this,t)};
_.p(Mjm,lg5);var b2m={};b2m.YtCompleteTransactionBehavior=[_.CD.YtComponentBehavior,_.U$E,{attached:function(){var N=this;dBf(this,function(t,O){return N.ypcCompleteTransactionHandler(t,O)})},
completeTransaction:function(N,t){var O=this;t={payments_payload:window.btoa(t.integratorData),buybucket_params:N.data.buybucketParams,offer_params:N.data.offerParams};var H=_.cY().resolve(_.u8),A=N.data.completeTransactionEndpoint,Z=this.get("ypcCompleteTransactionEndpoint.actions",A);Z&&_.OK(this.hostElement,Z,this.hostElement);return(Z=_.nE.instance)&&_.WH(Z,A)?_.rq(Z,A,t).then(function(U){return!U||(U==null?0:U.error)?(U=O.get("data.serializedTransactionFlowLoggingParams",N),_.M2(new UA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
U))):{data:U}}).then(function(U){return O.handleCompleteTransactionSuccess_(U,N)},function(){return O.handleCompleteTransactionFailure_(N)}):H.requestDataForServiceEndpoint(A,t).then(function(U){return O.handleCompleteTransactionSuccess_(U,N)},function(){return O.handleCompleteTransactionFailure_(N)})},
handleCompleteTransactionSuccess_:function(N,t){N.data||(N={data:N});if(N.data.messageRenderer)return _.M2(new Mjm(N.data.messageRenderer));if(N.data.trackingParams){var O=_.z8(),H=_.pv();O&&H&&_.qp(O,H,_.ib(N.data.trackingParams))}t=this.get("data.serializedTransactionFlowLoggingParams",t);oVr(t);return _.Hc(N)},
handleCompleteTransactionFailure_:function(N){N=this.get("data.serializedTransactionFlowLoggingParams",N);_.l8("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",N);return _.M2(new UA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",N))},
ypcCompleteTransactionHandler:function(N,t){var O=this;if(!t.ypcCompleteTransactionEndpoint)return!1;if(!t.ypcCompleteTransactionEndpoint.transactionParams)return _.JO(Error("Vl")),!0;t.ypcCompleteTransactionEndpoint&&t.ypcCompleteTransactionEndpoint.gtmData&&_.ou(t.ypcCompleteTransactionEndpoint.gtmData);var H=_.cY().resolve(_.BY(_.u8));if(H){_.qu(this.hostElement);var A=_.nE.instance;A&&_.WH(A,t)?_.rq(A,t).then(function(Z){return!Z||(Z==null?0:Z.error)?(Z=O.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
t),_.M2(new UA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Z))):{data:Z}}).then(function(Z){_.or(N,"yt-service-request-completed");
O.ypcCompleteTransactionSuccess_(t,Z)},function(){return O.ypcCompleteTransactionFailure_(t)}):H.requestDataForServiceEndpoint(t).then(function(Z){_.or(N,"yt-service-request-completed");
O.ypcCompleteTransactionSuccess_(t,Z)},function(){return O.ypcCompleteTransactionFailure_(t)})}return!0},
ypcCompleteTransactionSuccess_:function(N,t){_.fi(this.hostElement);t.data||(t={data:t});_.sl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);t.data.messageRenderer||t.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(N):(_.ou('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",N));t.data.actions&&(N=XU5(t.data.actions),t=xdf(t.data.actions),N.length&&_.tb(this.hostElement,
N),t.length&&_.OK(this.hostElement,t,this.hostElement))},
ypcCompleteTransactionFailure_:function(N){_.fi(this.hostElement);_.sl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",N,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(N,t,O){if(t=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",t))t={serializedTransactionFlowLoggingParams:t},O&&(t.errorType=O),_.E7(N,t),_.GW()}}];var pQO={};pQO.YtEndpointHandlerWithYpcBehavior=[_.U$E,_.Wu.YtActionHandlerBehavior,[{openWalletDialog:function(N,t,O,H,A,Z,U){var C=this,F=_.lj();t=t.replace(/-/g,"+").replace(/_/g,"/");var g=_.d0().get("hl");_.nhy(_.oE(_.QE),t,F.resolve,A,function(B){Z&&Z();F.reject(B)},g,function(B){return C.onServerBackendAnalyticEvent_(N,O,B)},this.onDialogClose_.bind(this),H,U);
return F.promise},
openFixFlowDialog:function(N,t,O,H){N=N.replace(/-/g,"+").replace(/_/g,"/");_.oE(_.QE).openFixFlowDialog(N,t,O,H)},
onDialogClose_:function(){_.sl(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(N,t,O){_.or(N,"yt-commerce-action-init-done");t&&_.tb(this.hostElement,[t,{backend_analytics:O}])}}],
_.fD.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(N,t){N=this.get("data.nativeFlowEndpoint",t);t=this.get("data.fallbackEndpoint",t);N?_.tb(this.hostElement,[N]):t&&_.or(this.hostElement,"yt-navigate",{endpoint:t})}}],
hT5.YtCancelRecurrenceBehavior,b2m.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var N=this;dBf(this,function(t,O,H){return N.handleYPCEndpoint(t,O,H)});
this.ypcRegisterActionMapJobId_=_.WX(_.GB,function(){N.registerActionMap(N.buyFlowActionMap_)})},
detached:function(){var N=this;_.GB.cancelJob(this.ypcRegisterActionMapJobId_);_.WX(_.GB,function(){N.unregisterActionMap(N.buyFlowActionMap_)})},
handleYPCEndpoint:function(N,t,O){var H=t.ypcGetCartEndpoint;if(H){_.LJ("commerce_transaction");var A=H.gtmId;A&&_.J7(A);(H=H.gtmData)&&_.ou(H)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",t)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(N,t),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",t)!=null?(this.handleYPCFixInstrumentEndpoint_(N,t),!0):t.ypcPauseSubscriptionCommand?(N31(this.hostElement,N,t,O),
!0):t.ypcResumeSubscriptionCommand?(HV1(this.hostElement,N,t),!0):t.getPaymentInstrumentsParamsCommand?(JCf(this.hostElement,N,t),!0):t.ypcHandleTransactionEndpoint?(R4q(this.hostElement,N,t,O),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(N,t){var O=this;_.zT("ttcr",void 0,"commerce_transaction");t=t.ypcGetCartEndpoint;var H=t.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,A=H.encryptedPurchaseParams,Z=H.serializedTransactionFlowLoggingParams,U=H.serializedPaymentsClientParams,C=this.createGetCartResponseFromParams_(H,t.offerParams,Z);this.changeButtonState(N,!0);_.fV(this.openWalletDialog(N,A,H.ypcLogWalletAnalyticDataEndpoint,Z,function(){O.changeButtonState(N,!1)},function(){O.changeButtonState(N,
!1)},U).then(function(F){return O.handleBuyFlowCompleteCallback_(N,C,F)},function(){return O.handleOnLoadError(C)}).then(function(F){return void O.handlePostPurchaseSuccess_(N,C,F)},function(F){return void O.handlePostPurchaseError_(F)}),function(){O.changeButtonState(N,!1);
N instanceof Element&&_.or(N,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(N,t,O){var H=N.completeTransactionEndpoint,A=N.handleTransactionEndpoint;t={data:{offerParams:window.btoa(t),serializedTransactionFlowLoggingParams:O}};A?t.data.handleTransactionEndpoint=A:t.data.completeTransactionEndpoint=H;N.onCartDismissCommand&&(t.data.onCartDismissCommand=N.onCartDismissCommand);return t},
onGetCartServiceRequestCompleted_:function(N,t){var O=this,H=N.target;if(t&&t.data&&t.data.messageRenderer)_.fi(this.hostElement),this.handleMessageRenderer_(t.data.messageRenderer),this.changeButtonState(H,!1);else{var A=this.get("data.encryptedPurchaseParams",t),Z=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",t),U=this.get("data.ypcLogWalletAnalyticDataEndpoint",t),C=this.get("data.serializedPaymentsClientParams",t),F=this.getLoggingParams_(t);if(F||A||Z)N.stopPropagation(),_.zT("ttcr",
void 0,"commerce_transaction"),A||_.fi(this.hostElement),this.changeButtonState(H,!1),Z?_.sl(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Ro("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:Z}}},this]):A&&(this.changeButtonState(H,!0),N=null,N=this.openWalletDialog(H,A,U,F,function(){_.fi(O.hostElement);O.changeButtonState(H,!1)},function(){_.fi(O.hostElement);
O.changeButtonState(H,!1)},C),_.fV(N.then(function(g){return O.handleBuyFlowCompleteCallback_(H,t,g)},function(){return O.handleOnLoadError(t)}).then(function(g){return O.handlePostPurchaseSuccess_(H,t,g)},function(g){return O.handlePostPurchaseError_(g)}),function(){O.changeButtonState(H,!1);
_.or(H,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(N,t){t&&t.endpoint&&t.endpoint.ypcGetCartEndpoint&&!t.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",t.endpoint.ypcGetCartEndpoint)&&_.OK(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",t.endpoint.ypcGetCartEndpoint)],N.target),_.qu(this.hostElement),this.changeButtonState(N.target,!0))},
onServiceRequestError_:function(N,t){if(t&&t.params&&t.params.length){t=_.D(t.params);for(var O=t.next();!O.done;O=t.next())if((O=O.value)&&O.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",O.ypcGetCartEndpoint)&&_.OK(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",O.ypcGetCartEndpoint)],N.target);_.fi(this.hostElement);this.changeButtonState(N.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(N,t,O){var H=O.integratorData;return H==null||H===""||O.error!=null?(H=this.getLoggingParams_(t),String(O.error)==="-1"?(t.data.onCartDismissCommand&&_.OK(this.hostElement,[t.data.onCartDismissCommand],N),_.M2(new UA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",H,!0))):_.M2(new UA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",H))):t.data.handleTransactionEndpoint?vGJ(this.hostElement,t.data.handleTransactionEndpoint,{payments_payload:H,funds_guarantee_callback_client_data:O.integratorClientCallbackData}):
this.completeTransaction(t,O)},
handlePostPurchaseSuccess_:function(N,t,O){t=O.data;var H=!1,A,Z;if(t&&((A=t.command)==null?0:(Z=A.commandExecutorCommand)==null?0:Z.commands)){var U,C;A=(U=t.command)==null?void 0:(C=U.commandExecutorCommand)==null?void 0:C.commands;for(U=0;U<A.length;U++)if(_.M(A[U],_.DGZ)){H=!0;break}}H||(t&&t.gtmDatas&&t.gtmDatas.length?_.ou(t.gtmDatas[0]):_.ou('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));O.data&&O.data.actions&&(t=XU5(O.data.actions),O=xdf(O.data.actions),t.length&&
_.tb(this.hostElement,t),O.length&&_.OK(this.hostElement,O,N))},
handlePostPurchaseError_:function(N){N&&N.payload&&N.payload.isUserDismiss||_.R0(Error("Xl"))},
handleOnLoadError:function(N){N=this.getLoggingParams_(N);return _.M2(new UA("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",N))},
getLoggingParams_:function(N){return this.get("data.serializedTransactionFlowLoggingParams",N)},
handleMessageRenderer_:function(N){var t=_.mD(N,"renderer"),O=_.Ro("openPopupConfig");t==="confirmDialogRenderer"&&O&&_.sl(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:O.popupTypeMap[t],popup:N}},this])},
handleYPCFixInstrumentEndpoint_:function(N,t){var O=this,H=t.ypcFixInstrumentEndpoint;t=H.encryptedFixInstrumentParameters;this.logFixFopEvent_(H,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(N,!0);this.openFixFlowDialog(t,function(A,Z){O.onFixFlowCompleteCallback_(H,A,Z)},function(){return O.changeButtonState(N,!1)},function(){O.changeButtonState(N,!1);
O.logFixFopEvent_(H,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(N,t,O){var H=_.s2("payments.business.integration.scenario.FixInstrument");if(t==H.IntegratorCallbackType.ON_COMPLETE){t="FIX_FOP_EVENT_TYPE_CANCEL";var A=null;O.error!=null?O.error!=H.OnCompleteCallbackError.USER_CANCELLED&&(_.OK(this.hostElement,[N.errorAction],this.hostElement),t="FIX_FOP_EVENT_TYPE_FAILURE",A="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.OK(this.hostElement,[N.successAction],this.hostElement),t="FIX_FOP_EVENT_TYPE_SUCCESS");_.OK(this.hostElement,[N.onFinishAction],
this.hostElement);this.logFixFopEvent_(N,t,A)}},
logFixFopEvent_:function(N,t,O){(N=N.serializedFixFopLoggingParams)?(t={eventType:t,serializedFixFopLoggingParams:N},O!=null&&(t.errorType=O),_.E7("fixFopFlow",t),_.GW()):_.R0(Error("Yl"))},
changeButtonState:function(N,t){_.h("enable_ypc_spinners")&&N&&(N.is==="yt-button-renderer"||N.is==="ytd-button-renderer")&&(N.disabled=t)}}];var LMx=function(N){this.JSC$33135_clientRoot=N;this.feedbackCollectorActionMap={"yt-help-dialog-requested":ZVm,"yt-feedback-dialog-requested":A$q,"yt-signal-action-help":Vr5,"yt-signal-action-send-feedback":DsO,"yt-send-feedback-action":CM1,"yt-user-feedback-endpoint":K0i};_.Uh(_.VM.getInstance(),this.feedbackCollectorActionMap,this.JSC$33135_clientRoot)},zTO;var Y5m=function(N){this.JSC$33140_clientRoot=N;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":F05.bind(null,this.JSC$33140_clientRoot),"yt-signal-action-delete-all-downloads":gFz,"yt-signal-action-delete-download":y$O,"yt-signal-action-delete-playlist-download":c$n,"yt-signal-action-install-pwa":hDz,"yt-signal-action-refresh-downloads":umn,"yt-offline-video-endpoint":bVq,"yt-offline-playlist-endpoint":L0m,"yt-update-local-app-setting-command":YP5,"yt-offline-orchestration-action-command":T3f,
"yt-signal-action-undo-delete-download":j7O,"yt-local-watch-history-command":PMO,"yt-signal-action-mark-download-to-mobile-edu-shown":xsf};_.Uh(_.VM.getInstance(),this.downloadManagerActionMap,this.JSC$33140_clientRoot);_.nT.instance=new _.nT},aL5;var YQ=function(){var N=_.k.apply(this,arguments)||this;N.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};N.remoteApi_=null;return N};
_.p(YQ,_.k);_.V=YQ.prototype;
_.V.ready=function(){_.h("polymer_enable_mdx")&&(gD1({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.h("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.h("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.h("enable_cast_short_lived_lounge_token")}),_.Mg("yt-remote-connection-change",this.handleConnectionChange_,this),_.Mg("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Sdi())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.V.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.V.handleConnectionChange_=function(N){(this.mdxConnected=N)?(N=cwm(),!N&&vfn()&&Jl1()&&(N={key:"cast-selector-receiver",name:Jl1()}),N=N.name):N=null;this.receiverName=N;_.F$(this.remoteApi_);(this.remoteApi_=Sdi())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.V.handleReceiverAvailabilityChange_=function(){var N=BQx();vfn()&&_.b8("yt-remote-cast-available")&&N.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=N.length>0};
_.V.handleRemoteQueueChange_=function(){var N=this.currentVideoId_,t=this.currentListId_,O=TF(this.remoteApi_);this.currentVideoId_=O.videoId;this.currentListId_=O.listId;this.currentVideoId_&&_.sl(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.h("polymer_enable_mdx_queue")?this.currentListId_:null,N,t])};
_.V.handleAddToQueueAction_=function(N){N=_.M(N,i6f);this.remoteApi_&&(N.videoId?this.remoteApi_.addVideo(N.videoId):N.playlistId&&this.remoteApi_.addPlaylist(N.playlistId))};
_.V.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.V.handleInsertInQueueAction_=function(N){N=_.M(N,u45);this.remoteApi_&&N.videoId&&this.remoteApi_.JSC$20332_insertVideo(N.videoId)};
_.V.handleRemoveFromQueueAction_=function(N){N=_.M(N,Su1);this.remoteApi_&&N.videoId&&this.remoteApi_.JSC$20332_removeVideo(N.videoId)};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],YQ.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X(),_.Q("design:type",Object)],YQ.prototype,"appId",void 0);_.W([_.X(),_.Q("design:type",Boolean)],YQ.prototype,"mdxConnected",void 0);_.W([_.X(),_.Q("design:type",Boolean)],YQ.prototype,"receiverAvailable",void 0);_.W([_.X(),_.Q("design:type",Object)],YQ.prototype,"receiverName",void 0);_.W([_.X(),_.Q("design:type",Object)],YQ.prototype,"currentVideoId_",void 0);
_.W([_.X(),_.Q("design:type",Object)],YQ.prototype,"currentListId_",void 0);_.W([_.wz({is:"yt-mdx-manager",disableElementRegistration:!0})],YQ);_.n(YQ,"yt-mdx-manager",void 0,{mode:2});var TCi;var wQi;var ai=function(){var N=_.k.apply(this,arguments)||this;N.APP_IDS={ytr:3,ytm:5};N.JSC$21565_timeoutId_=0;N.actionMap={"yt-open-create-family-dialog":"open"};return N};
_.p(ai,_.k);_.V=ai.prototype;_.V.created=function(){YNm(2200)};
_.V.detached=function(){this.observer_&&this.observer_.disconnect()};
_.V.open=function(N,t){var O=this,H=N.serializedYpcFamilyCreateLoggingParams;this.JSC$21565_timeoutId_=setTimeout(this.abort_.bind(this,N.postFlowErrorEndpoint,H),3E4);t&&(this.onReadyCallback_=t);var A=_.O6(this.hostElement).querySelector("#unicorn-iframe");H&&H&&vVr("ypcFamilyCreateFlowStarted",H);_.Hey("family_creation",function(){var Z=_.s2("gapi.family_creation.render");_.s2("gapi.config.update")("iframes/family_creation/url",O.getFamilyCreationUrlWithUnicornParams_());var U=3;N.appId&&N.appId in
O.APP_IDS&&(U=O.APP_IDS[N.appId]);U={authUser:_.Ro("SESSION_INDEX")||0,clientId:U,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Ro("HL"),initialflow:[4,5,6,7],m:O.isMobile?1:0,onFlowComplete:O.onUnicornFlowComplete_.bind(O,N.postFlowSuccessEndpoint,H),onError:O.onUnicornFlowError_.bind(O,N.postFlowErrorEndpoint,H),onReady:O.onUnicornFlowReady_.bind(O,N.referencePcidParams)};Z(A,U)})};
_.V.close=function(){_.O6(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.V.onUnicornFlowComplete_=function(N,t){this.close();t&&t&&vVr("ypcFamilyCreateFlowSucceeded",t);_.or(this.hostElement,"yt-navigate",{endpoint:N})};
_.V.onUnicornFlowError_=function(N,t){this.close();t&&vVr("ypcFamilyCreateFlowCancelled",t);_.or(this.hostElement,"yt-navigate",{endpoint:N})};
_.V.onUnicornFlowReady_=function(N){var t=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();N&&_.s2("gapi.family_creation.setConfig")(0,N);this.observer_=new MutationObserver(function(){_.O6(t.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.O6(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.O6(this.hostElement).querySelector("#dialog").open()};
_.V.getFamilyCreationUrlWithUnicornParams_=function(){return _.Ro("YTR_FAMILY_CREATION_URL")};
_.V.getCurrentUrl_=function(){return document.location.href};
_.V.abort_=function(N,t){this.clearTimeout_();this.onUnicornFlowError_(N,t)};
_.V.clearTimeout_=function(){clearTimeout(this.JSC$21565_timeoutId_)};
_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],ai.prototype,"ytActionHandlerBehavior",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],ai.prototype,"isMobile",void 0);_.W([_.X(),_.Q("design:type",Object)],ai.prototype,"onReadyCallback_",void 0);_.W([_.X(),_.Q("design:type",Object)],ai.prototype,"observer_",void 0);_.W([_.wz({is:"yt-create-family-dialog",disableElementRegistration:!0})],ai);
_.n(ai,"yt-create-family-dialog",function(){if(wQi===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);var t=N.content,O=t.insertBefore;TCi===void 0&&(TCi=document.createElement("template"));var H=TCi;O.call(t,H.content.cloneNode(!0),N.content.firstChild);wQi=N}N=wQi;return N},{mode:2});var eTf;var Pa1;var Tx=function(){var N=_.k.apply(this,arguments)||this;N.STEP=1;N.BLOCK_ON=80;N.MIN_PROGESS=0;N.MAX_PROGESS=100;return N};
_.p(Tx,_.k);_.V=Tx.prototype;_.V.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.V.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.cY().addProvider({provide:Vw5,useValue:this})};
_.V.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.V.finish=function(){var N=this;this.progress=this.MAX_PROGESS;kkx(function(){N.progress==N.MAX_PROGESS&&(N.hostElement.hidden=!0)})};
_.V.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.cv.Object.defineProperties(Tx.prototype,{progress:{configurable:!0,enumerable:!0,set:function(N){this.progress_=N;var t="scaleX("+N/this.MAX_PROGESS+")",O=_.O6(this.hostElement).querySelector("#progress").style;O.transform=t;O.webkitTransform=t;this.hostElement.setAttribute("aria-valuenow",String(N))},
get:function(){return this.progress_}}});
_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],Tx.prototype,"ytComponentBehavior",void 0);_.W([_.wz({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Tx);
_.n(Tx,"yt-page-navigation-progress",function(){if(Pa1===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');N.content.insertBefore(_.m().content.cloneNode(!0),
N.content.firstChild);var t=N.content,O=t.insertBefore;eTf===void 0&&(eTf=document.createElement("template"));var H=eTf;O.call(t,H.content.cloneNode(!0),N.content.firstChild);Pa1=N}N=Pa1;return N},{mode:2});var XQ1={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"},xh5={"font-size":"12px","font-style":"italic"},ktJ={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.W0z=function(){return _.K(function(N){_.Ty(N)})};var q5z=_.q(function(N){var t=function(){return N.data().subtext},O={};
return _.d("snackbar-view-model",{class:_.V7("snackbarViewModelHost",N.className)},_.d("div",{class:_.V7("snackbarViewModelEngagementBarWrapper",N.className)},_.d(_.y,{cond:function(){return N.data().image},
then:function(H){return _.d(_.Qt,{data:H,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.d(_.y,{cond:function(){return N.data().imageContent},
then:function(){return _.d("div",{class:"snackbarViewModelAvatarContainer"},_.d(_.iF,{data:function(){return N.data().imageContent}},{decoratedAvatarViewModel:_.Us}))}}),_.d("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.d("div",{class:_.V7((O.snackbarViewModelTitle=!0,O.snackbarViewModelTitleWithSubtext=t,O))},_.d(_.cu,{text:function(){return N.data().text}})),_.d(_.y,{cond:t,
then:function(){return _.d("div",{class:"snackbarViewModelSubtext"},_.d(_.cu,{text:function(){return t()}}))}})),_.d(_.y,{cond:function(){return N.data().buttons},
then:function(){return _.d("div",{class:"snackbarViewModelButtonClassWrapper"},_.d(_.iF,{data:function(){return N.data().buttons}},{buttonViewModel:function(H){return _.d(_.Pu,{data:H.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:N.target})}}))}})))},"uk");_.o_(_.q(function(){function N(x,l,I){b(x);w(I);u("in");B(!0);t(x,l);U=setTimeout(function(){O()},l)}
function t(x,l){var I,r=(I=x.text)==null?void 0:I.content;x=_.a8(x.rendererContext);r&&(l={label:r,command:x,durationMs:l},_.cY().resolve(_.w2).enqueue(l))}
function O(x){u("out");x&&clearTimeout(U)}
function H(){O(!0)}
function A(x){if(x){var l=x.snackbarViewModel,I=x.durationMs,r=x.target;I||(I=3E3);l&&(x=_.cY().resolve(_.BY(_.L4)))&&x.enqueue({isOpened:g,open:function(){N(l,I,r)},
close:O},0)}}
var Z=_.yM("snackbar-container"),U=void 0,C=_.D(_.b$(!1,void 0,"mDc5N")),F=C.next().value;C=C.next().value;var g=F,B=C;F=_.D(_.b$("out",void 0,"FpOs5e"));var c=F.next().value,u=F.next().value;F=_.D(_.b$(void 0,void 0,"jIDRob"));var S=F.next().value,b=F.next().value;F=_.D(_.b$(void 0,void 0,"kOA3Mb"));var z=F.next().value,w=F.next().value,P=_.Ui(function(){if(c()==="out"){B(!1);b(void 0);w(void 0);var x=_.cY().resolve(_.BY(_.L4));x&&IXz(x,0)}});
_.Q8(function(){var x=_.cY().resolve(_.BY(_.wWO));x&&(x.showSnackbarFn=A,x.closeSnackbarFn=H)});
return _.d("snackbar-container",{class:"ytSnackbarContainerHost",el:Z},_.d(_.y,{cond:function(){return g()&&!!S()},
then:function(){var x={};return _.d("div",{class:_.V7("ytSnackbarContainerSnackbarContainer",(x.ytSnackbarContainerMobile=!1,x.ytSnackbarContainerPivotBar=function(){var l;return!((l=_.cY().resolve(_.BY(_.eoz)))==null||!l())},x.ytSnackbarContainerOpened=function(){return g()&&c()==="in"},x.ytSnackbarContainerClosed=function(){return g()&&c()==="out"},x)),
"on:animationend":P},_.d(q5z,{data:function(){return S()},
target:function(){return z()}}))}}))},"vk"),"snackbar-container");_.o_(_.AUX,"yt-tooltip");var fL5=_.cJm.ephemeralActionSelector;_.o_(_.q(function(){var N=_.cH(fL5);return _.d("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var t;return(t=N())==null?void 0:t.announcement})},"wk"),"yt-ephemeral-actions");var DKO=new Map;var MF1=function(N,t){var O=this;this.handleError=N;this.logEventInternal=t;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){O.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
MF1.prototype.logError=function(N){this.handleError(N)};
MF1.prototype.logEvent=function(N,t){switch(N){case "IDB_DATA_CORRUPTED":_.h("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",t);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",t);break;case "IS_SUPPORTED_COMPLETED":_.h("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",t);break;case "QUOTA_EXCEEDED":noi(this,t);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",t);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":N=Object.assign({},t,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",N)}};
var noi=function(N,t){_.PE.getInstance().estimate().then(function(O){O=Object.assign({},t,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Cv1(O==null?void 0:O.usage),deviceStorageQuotaMbytes:Cv1(O==null?void 0:O.quota)});N.logEventInternal("idbQuotaExceeded",O)})};var WMm=_.q(function(N){var t=_.Fy("yt-draggable"),O=N.onDrag,H=N.onDragStart,A=N.onDragEnd,Z=_.RH(N,{allowClicks:!1,dragThreshold:5}),U=Z.dragThreshold,C=Z.allowClicks;N=Z.children;Z=Z.className;var F=void 0,g=void 0,B=new _.IN(0,0),c=!1;_.Q8(function(){F=new _.Rj(t.value);g=new _.iq(S);u(F,g);if(C()){_.q8Q(F,U());var z;(z=t.value)==null||z.addEventListener("click",b,{capture:!0})}_.Ia(function(){var w;(w=F)==null||w.dispose();if(C()){var P;(P=t.value)==null||P.removeEventListener("click",b,{capture:!0})}})});
var u=function(z,w){_.SF(z,"earlycancel",function(){C()&&(c=!1)});
_.SF(z,"start",function(P){H==null||H(P);P.defaultPrevented||C()&&(c=!0)});
_.SF(z,"beforedrag",function(P){F&&g&&(P.preventDefault(),B=new _.IN(P.clientX-F.startX,P.clientY-F.startY),g.start())});
_.SF(z,"end",function(){w.stop();A==null||A();B=new _.IN(0,0)})},S=function(){B&&O(B)},b=function(z){c&&(c=!1,z.stopPropagation(),z.preventDefault())};
return _.d("yt-draggable",{el:t,class:_.V7("ytDraggableComponentHost",Z)},N)},"xk");var raJ=_.q(function(N){var t=_.D(_.b$(0,void 0,"Qf0tbc")),O=t.next().value,H=t.next().value;t=function(A){var Z={},U={};return _.d(WMm,{className:_.V7("ytdMiniplayerComponentResizer",(Z.ytdMiniplayerComponentResizerDisabled=function(){return A===N.horizontalAlignment()||A===N.verticalAlignment()},Z.ytdMiniplayerComponentResizerNorth=A==="north",Z.ytdMiniplayerComponentResizerEast=A==="east",Z.ytdMiniplayerComponentResizerSouth=A==="south",Z.ytdMiniplayerComponentResizerWest=A==="west",Z)),
onDragStart:function(){H(N.currentMiniplayerSize());if(N.onResizeStart)N.onResizeStart()},
onDrag:function(C){A!=="north"&&A!=="west"||C.scale(-1);var F;C=(F=A==="north"||A==="south")?C.y:C.x;var g=N.currentAspectRatio();F&&g>=1?C*=g:!F&&g<1&&(C/=g);F=C;N.onResize(O()+F)}},_.d("div",{class:_.V7("ytdMiniplayerComponentResizerCorner",(U.ytdMiniplayerComponentResizerNorthCorner=A==="north",U.ytdMiniplayerComponentResizerEastCorner=A==="east",U.ytdMiniplayerComponentResizerSouthCorner=A==="south",U.ytdMiniplayerComponentResizerWestCorner=A==="west",U))}))};
return _.d("div",{class:"ytdMiniplayerComponentResizers"},t("north"),t("east"),t("south"),t("west"))},"yk");var ILq=16/9;_.o_(_.q(function(){var N=_.Fy("ytd-miniplayer"),t=_.D(_.b$(new _.aN(NaN,NaN),void 0,"NHaFyc")),O=t.next().value,H=t.next().value;t=_.D(_.b$(!1,void 0,"a0rwG"));var A=t.next().value,Z=t.next().value;t=_.D(_.b$(!1,void 0,"f1jSeb"));var U=t.next().value,C=t.next().value;t=_.D(_.b$(!1,void 0,"JojXKc"));var F=t.next().value,g=t.next().value;t=_.D(_.b$(!1,void 0,"FjS8Db"));var B=t.next().value,c=t.next().value;t=_.D(_.b$(!1,void 0,"z5WG9e"));var u=t.next().value,S=t.next().value;t=_.D(_.b$(!1,void 0,"eUzZd"));
var b=t.next().value,z=t.next().value;t=_.D(_.b$(ILq,void 0,"XsBIy"));var w=t.next().value,P=t.next().value,x=_.D(_.b$(!1,void 0,"FJSvse"));t=x.next().value;var l=x.next().value;x=_.D(_.b$(!1,void 0,"VDUFL"));var I=x.next().value,r=x.next().value;x=_.D(_.b$(void 0,void 0,"nFeh4b"));var E=x.next().value,J=x.next().value;x=_.D(_.b$(dR()?"west":"east",void 0,"T7co7c"));var CN=x.next().value,B4=x.next().value;x=_.D(_.b$("south",void 0,"QDUsLb"));var zM=x.next().value,jy=x.next().value;x=_.D(_.b$(400,
void 0,"F7Vdze"));var c4=x.next().value,XO=x.next().value,kx=_.cY().resolve(_.kf).miniplayerPropSignalMap[0],fN=kx.data,gf=kx.externalPlaylistData;x=kx.toastData;var yr=kx.playabilityStatus,sS=kx.isReadyToResume,$X=kx.isDisabled,pR=kx.watchWhile,wf=kx.playerVe,b1=kx.expandVe,$r=kx.closeVe,US=kx.readyToResumeVe,H0=kx.readyToResumeCloseVe,SE=kx.repositionVe,v0=kx.resizeVe;kx=_.D(_.Gb(sS));var hu=kx.next().value,sp=kx.next().value,LU=_.cH(_.Wz.persistentPanelVisibleSelector),Qr=!1,B0=!1,c0;_.Q8(function(){H(_.$H());
N.value.addEventListener("animationend",function(mZ){mZ.target===N.value&&(S(!1),z(!1))});
B55(N.value)});
_.K9("yt-window-resized",function(mZ){mZ&&H(mZ)});
var Am=function(){c0&&P(c0.getVideoAspectRatio())},Rl=function(){if(c0){var mZ=c0.getPlayerState()===1;
hu()&&mZ&&sp(!1)}},Ox=function(){var mZ=b1();
if(mZ){var Ln=_.z8(3);Ln&&_.IX(Ln,mZ)}},cl=function(){var mZ=$r(),Ln=H0();
mZ&&_.IX(_.z8(3),mZ);sS()&&Ln&&_.IX(_.z8(3),Ln)};
_.K9("yt-activate-miniplayer",function(mZ){var Ln;return _.K(function(VO){if(VO.nextAddress==1)return A()?VO.return():VO.yield((Ln=_.cY().resolve(_.kf).getPlayerElement())==null?void 0:Ln.getPlayerPromise(),2);c0=VO.yieldResult;if(!c0)return VO.return();!I()&&_.h("kevlar_watch_while_v2")&&(jy(mZ&&!_.h("kevlar_watch_while_bottom_align")?"north":"south"),B4(dR()?"west":"east"));var vW=c0;vW.addEventListener("onVideoDataChange",Am);vW.addEventListener("onStateChange",Rl);vW.addEventListener("onExpandMiniplayer",
Ox);vW.addEventListener("onCloseMiniplayer",cl);P(c0.getVideoAspectRatio());Z(!0);y8x()||S(!0);_.Ty(VO)})});
_.K9("yt-deactivate-miniplayer",function(mZ,Ln){return _.K(function(VO){if(!A())return VO.return();Z(!1);sp(!1);z(mZ);c(!1);C(!1);if(c0){var vW=c0;vW.removeEventListener("onVideoDataChange",Am);vW.removeEventListener("onStateChange",Rl);vW.removeEventListener("onExpandMiniplayer",Ox);vW.removeEventListener("onCloseMiniplayer",cl)}y8x()||Ln?Ln&&S(!1):S(!0);_.Ty(VO)})});
var Hl=function(){return!(pR()&&_.h("kevlar_watch_while_modern"))},jJ=function(){var mZ;
return!((mZ=gf())==null||!mZ.contents)},QO=function(){var mZ=c4();
var Ln=O();Ln=Math.min(Math.min(Ln.width,Ln.height)-32,720);var VO=w(),vW=Hl(),PW=jJ()&&U(),Zl=Math.min(mZ,Ln);mZ=new _.aN(192,vW?116:192);VO=new _.aN(PW?ILq:VO,1);Zl=new _.aN(Zl,vW?Zl-76:Zl);Zl=VO.aspectRatio()>Zl.aspectRatio()?Zl.width/VO.width:Zl.height/VO.height;VO=VO.scale(Zl);mZ.width<=VO.width&&mZ.height<=VO.height||(mZ=VO.aspectRatio()<=mZ.aspectRatio()?mZ.width/VO.width:mZ.height/VO.height,VO.scale(mZ),VO.width=Math.min(VO.width,Ln),VO.height=Math.min(VO.height,Ln));return new _.aN(VO.width,
_.eS(192,VO.height+if1(vW,PW),720))},BA=function(){var mZ=QO(),Ln=Hl(),VO=jJ()&&U();
return new _.aN(mZ.width,mZ.height-if1(Ln,VO))},Su=function(){var mZ=function(Ln){Ln.target===N.value&&B()&&(c(!1),N.value.removeEventListener("transitionend",mZ))};
y8x()||(N.value.addEventListener("transitionend",mZ),c(!0));C(!U())};
_.rp(function(){var mZ=wf(),Ln=_.z8(3),VO=_.pv(3);if(Ln&&VO&&mZ){_.qp(Ln,VO,mZ);VO=SE();var vW=v0(),PW=b1(),Zl=$r(),JD=H0();PW&&Zl&&JD&&(_.fJ(Ln,mZ,[PW,Zl,JD]),_.Wc(Ln,[PW,Zl]));VO&&vW&&_.fJ(Ln,mZ,[VO,vW])}},"UBpUDd");
_.rp(function(){var mZ=US();if(mZ){var Ln=_.z8(0),VO=_.pv(0);Ln&&VO&&(_.qp(Ln,VO,mZ),_.Wc(Ln,[mZ]))}},"fQpBzb");
kx={};return _.d("ytd-miniplayer",{el:N,class:_.V7("ytdMiniplayerComponentHost",(kx.ytdMiniplayerComponentVisible=function(){return(A()||u())&&!(pR()&&_.h("kevlar_watch_while_counterfactual"))},kx.ytdMiniplayerComponentAnimatingSnap=F,kx.ytdMiniplayerComponentAnimatingPlaylistExpand=B,kx.ytdMiniplayerComponentAnimatingFade=u,kx),function(){if(u()){var mZ=zM();
var Ln=A(),VO=b();mZ=Ln?mZ==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":VO?mZ==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":mZ==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else mZ="";return mZ}),
style:_.FM({top:function(){return zM()==="north"?"16px":""},
right:function(){var mZ=CN(),Ln=LU();Ln=(Ln===void 0?0:Ln)&&!dR()?400:0;return mZ==="east"?16+Ln+"px":""},
bottom:function(){return zM()==="south"?"16px":""},
left:function(){var mZ=CN(),Ln=LU();Ln=(Ln===void 0?0:Ln)&&dR()?400:0;return mZ==="west"?16+Ln+"px":""},
width:function(){return QO().width+"px"},
height:function(){return QO().height+"px"},
transform:function(){var mZ=E();return mZ?"translate("+mZ.x+"px, "+mZ.y+"px)":""}})},_.d("div",{class:"ytdMiniplayerComponentContent"},_.d(WMm,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(mZ){var Ln=jj1(CN(),zM(),O(),QO(),E()),VO=BA();Math.abs(mZ.clientY-(Ln.y+VO.height))>15?(l(!0),mZ=_.z8(3),Ln=SE(),Qr||(Qr=!0,mZ&&Ln&&_.Wc(mZ,[Ln])),mZ&&Ln&&_.IX(mZ,Ln)):mZ.preventDefault()},
onDrag:function(mZ){J(mZ)},
onDragEnd:function(){var mZ=c85(jj1(CN(),zM(),O(),QO(),E()),O(),QO()),Ln=$Kr(CN(),zM(),O(),QO(),LU()),VO=$Kr(mZ.horizontalAlignment,mZ.verticalAlignment,O(),QO(),LU());VO=new _.IN(VO.x-Ln.x,VO.y-Ln.y);var vW;Ln=Ln.y+(((vW=E())==null?void 0:vW.y)||0)+QO().height/2;var PW=function(){CN()===mZ.horizontalAlignment&&zM()===mZ.verticalAlignment||r(!0);B4(mZ.horizontalAlignment);jy(mZ.verticalAlignment);J(void 0)},Zl=function(JD){JD.target===N.value&&F()&&(g(!1),PW(),N.value.removeEventListener("transitionend",
Zl))};
l(!1);zM()==="south"&&Ln>O().height?(PW(),_.cY().resolve(_.kf).close()):(N.value.addEventListener("transitionend",Zl),g(!0),J(VO))}},_.d(_.y,{cond:A,
then:function(){return _.d(_.Svm,{isDisabled:$X,playabilityStatus:yr,size:BA})}}),_.d(_.y,{cond:Hl,
then:function(){return _.d(_.iz5,{isReadyToResume:hu,data:fN,expanded:U,onExpandClick:Su,playlistData:gf})}}),_.d(_.y,{cond:t,
then:function(){return _.d("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.d(_.y,{cond:function(){return jJ()&&U()||B()},
then:function(){return _.d(_.TDz,{className:"ytdMiniplayerComponentPlaylistPanel",data:gf,hideHeaderText:!0,withinMiniplayer:!0})}}),_.d("div",{class:"ytdMiniplayerComponentToast"},_.d(_.hAq,{toastData:x}))),_.d(raJ,{onResize:function(mZ){XO(_.eS(192,mZ,720))},
onResizeStart:function(){var mZ=_.z8(3),Ln=v0();B0||(B0=!0,mZ&&Ln&&_.Wc(mZ,[Ln]));mZ&&Ln&&_.IX(mZ,Ln)},
currentAspectRatio:w,currentMiniplayerSize:c4,horizontalAlignment:CN,verticalAlignment:zM}))},"Bk"),"ytd-miniplayer",{});var lLf=_.Wz.persistentPanelVisibleSelector,wS=function(){var N=_.k.apply(this,arguments)||this;N.tabGesturesIsActive=!1;N.persistentPanelEnabled=_.h("enable_ai_companion");N.hasDelegation=!1;N.isFrostedGlassInitialized=!1;N.frostedGlassExp=_.h("web_frosted_glass");N.hasPendingWatchNavigation=!1;N.mastheadHiddenFocusWithinKillswitch=_.h("web_masthead_hidden_focus_within_killswitch");N.clientOnlyWizTooltipsEnabled=_.h("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
N.scrollAtTop=!0;N.guideScrollTop=0;N.isTheaterModeSession=_.vZ("START_IN_THEATER_MODE");N.iMaxTheaterMode=_.h("web_watch_imax_theater_mode");N.isFullWindowSession=_.vZ("START_IN_FULL_WINDOW_MODE");N.hasCreateFamilyDialog=!1;N.mastheadHeight=56;N.networkStatusManager=new _.VN;N.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction",
"yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};N.dynamicActionMap={"yt-run-attestation-command":function(t){var O=_.jx5.instance,H=_.M(t,_.Sta);return H?_.h("use_rta_manager_for_async")&&
(_.h("attmusi")&&_.h("attmusi_ue")?window.attmp:U2q())?jBm(O,H,t.clickTrackingParams):$Bm(O,H,t.clickTrackingParams):_.M2(Error("pi"))}};
N.isFrostedGlassDisabled=!1;N.isChannelOrPlaylistPage=!1;return N};
_.p(wS,_.k);_.V=wS.prototype;_.V.created=function(){var N=_.cY();_.h("kevlar_clear_duplicate_pref_cookie")&&_.WX(_.GB,function(){var t=_.PY.get("PREF");t&&!/f\d=/.test(t)&&(t=_.So("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=t?"PREF=null;domain="+t+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.h("gzip_gel_with_worker")&&_.Nzt();_.h("jspb_serialize_with_worker")&&PbJ();_.h("web_worker_availability_check")&&UK1();_.h("nwl_init_killswitch")||wVm().then(function(){_.GB.addLowPriorityJob(LeJ)});
this.pageManagerAttachedPromise=_.lj();this.ytdAppBehavior.loadDepsPromise=_.qs([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.KE(this.onThrottledScroll,200,this);_.h("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);bCq();Igz=!!_.s2("ytappsettings.initialized");aNm=_.s2("ytappsettings.previousValue");Tqm=_.s2("ytappsettings.previousSnapshotTime");Igz||(Igz=!0,wH1());eG1();PCr();_.Gm("DEFERRED_DETACH",
_.h("kevlar_tuner_should_defer_detach"));_.Gm("REUSE_COMPONENTS",!0);_.Gm("STAMPER_STABLE_LIST",!0);_.Gm("SCHEDULED_LAZY_LIST",!0);_.Gm("openPopupConfig",SD5);_.Gm("useClickHandler",!0);_.h("kevlar_shell_cleanup")&&_.GB.addLowPriorityJob(jMf.bind(this,_.H4.caches));_.vZ("IS_SHELL_LOAD")&&_.bp({shellStartupDurationMs:Math.round((0,_.jg)()-_.jb())});Q7r(this.networkStatusManager);_.h("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",qPq(XQ1)),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!",
qPq(xh5)),console.log("%cVisit http://go/join-youtube-web to apply today.",qPq(ktJ)));_.XC5(N.resolve(_.aY),1E3)};
_.V.ready=function(){var N=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var t=EJ5();t&&!_.h("external_fullscreen_killswitch")&&document.addEventListener(t,this.setFullscreen.bind(this));(t=window.matchMedia("(prefers-color-scheme: dark)"))&&t.addEventListener&&t.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(t=_.cY().resolve(_.BY(_.SAY)))t.subscribe("navigation-start",
function(O){O.destinationPageSubtype==="watch"&&(N.hasPendingWatchNavigation=!0)}),t.subscribe("navigation-end",function(O){O.destinationPageSubtype==="watch"&&(N.hasPendingWatchNavigation=!1)})};
_.V.attached=function(){var N=this;_.iI().processSignal("ci");_.h("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.FAp?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.dP(_.M6y(),"SUCCESS");this.updateIconSet();_.vC(this.guideInnerContent,!1);_.Q6().initVisibilityObserver();this.guideService.guideElement=this.guide;var t=document.createElement("ytd-miniplayer"),O=_.O6(this.hostElement).querySelector("#content");
_.O6(this.hostElement).insertBefore(t,O);_.iI().processSignal("ma");_.cY().resolve(_.kf).init(t);this.persistentPanelEnabled&&_.q3m(_.cY().resolve(_.ZF),this.persistentPanelContainer,"APP");_.vZ("IS_SHELL_LOAD")&&(O=document.createElement("ytd-network-status-banner"),_.O6(this.hostElement).insertBefore(O,t));_.h("kevlar_right_click_on_lockups")&&_.F6._onCaptureClick&&document.addEventListener("contextmenu",_.F6._onCaptureClick.bind(_.F6),!0);var H=function(){var A=_.MF("yt-page-navigation-progress");
_.O6(N.hostElement).appendChild(A)};
setTimeout(function(){_.iI().parkOrScheduleJob(H,0,"eocs",16)},0);
_.h("service_worker_push_enabled")&&_.WX(_.GB,Rwq);_.Uh(_.VM.getInstance(),this.dynamicActionMap,this.hostElement);_.or(this.hostElement,"ytd-app-attached");_.iI().processSignal("aa");Cjr(this.hostElement);_.Ba("gapi.load",_.Hey);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.WX(_.GB,
function(){var A=document.createElement("ytd-video-preview");_.O6(_.O6(N.hostElement).querySelector("#video-preview")).appendChild(A)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.WX(_.GB,function(){r$1();N.registerWithViewTransitionManager()});
if(_.fT()&&this.isAppDarkTheme()!==_.kH())this.onDarkModeToggledAction();else t=_.qL()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==t&&(_.h("enable_dark_theme_only_on_shorts")?_.xH(_.h("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Uy(window.location.href,{theme:"dark"})):_.J_(new _.fF("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(pjm=new buO(this.hostElement)),aL5=new Y5m(this.hostElement),zTO=new LMx(this.hostElement),Q65=new lVx(this.hostElement)};
_.V.getThemeSettingsToLog=function(){var N=_.qL()==="USER_INTERFACE_THEME_DARK";N=_.fT()?_.kH()?"os-dark":"os-light":N?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:N,cookiesEnabled:_.xv()}};
_.V.detached=function(){_.JH(this.guideInnerContent);_.GB.cancelJob(Nq1);Nq1=0;_.GB.cancelJob(A41);A41=0;_.gJp(UeO);UeO.length=0;ZEz=_.t3l=null;_.Q6().dispose();_.h("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.C9(_.VM.getInstance(),pjm.playlistHandlerActionMap,pjm.JSC$32845_clientRoot);_.C9(_.VM.getInstance(),aL5.downloadManagerActionMap,aL5.JSC$33140_clientRoot);_.C9(_.VM.getInstance(),zTO.feedbackCollectorActionMap,zTO.JSC$33135_clientRoot);
for(var N=_.D(Q65.eventListeners),t=N.next();!t.done;t=N.next()){var O=_.D(t.value);t=O.next().value;O=O.next().value;O=_.D(O);for(var H=O.next();!H.done;H=O.next()){var A=_.D(H.value);H=A.next().value;A=A.next().value;t.removeEventListener(H,A)}}_.C9(_.VM.getInstance(),Q65.autonavPauseActionMap,Q65.JSC$20514_clientRoot)};
_.V.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.d0().getFlag(186)};
_.V.computeIsInlinePreviewEnabled=function(N,t,O){return!O&&_.pC5({miniplayerIsActive:N,miniplayerPlaybackState:t})};
_.V.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.H5({type:"SET_FROSTED_GLASS_MODE",payload:!_.h("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.V.computeIsFrostedGlassDisabled=function(N,t,O,H){return N||t||O||H&&_.h("web_frosted_glass_disable_watch")};
_.V.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.h("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.V.computeIsHomePage=function(N,t){if(!N||t==null||!t.endpoint)return!1;var O;return((O=_.M(t.endpoint,_.yE))==null?void 0:O.browseId)==="FEwhat_to_watch"};
_.V.updateIsChannelOrPlaylistPage=function(){if(_.h("web_frosted_glass")){var N,t,O=(t=(N=_.cY().resolve(_.BY(_.J4)))==null?void 0:N.getCurrentPage())==null?void 0:t.pageSubtype;this.isChannelOrPlaylistPage=O?["channel","channels","playlist"].includes(O):!1}};
_.V.scheduleFrostedGlassInitialization=function(){var N=this;_.h("web_frosted_glass")&&_.iI().parkOrScheduleJob(function(){N.isFrostedGlassInitialized=!0},0,_.G$(["eocs",
"cr"]),300)};
_.V.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.UX0(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.H5({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.H5({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.V.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(wnr(!0))};
_.V.onYtSignalActionRequestPersistentStorage=function(){if(!_.h("request_persistent_storage_killswitch")){var N=_.cY().resolve(_.sam);N.cachedPersistStatePromise||(N.cachedPersistStatePromise=sB1())}};
_.V.handleYtChannelCreationFormEndpoints=function(N){N&&this.ytComponentBehavior.resolveCommand(N)};
_.V.handleShowEngagementPanelEndpoint=function(N){N&&this.ytComponentBehavior.resolveCommand(N)};
_.V.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(wnr(!1))};
_.V.initIconDefs=function(N,t){var O=document.createElement("iron-iconset-svg");O.name=N;N=document.createElementNS("http://www.w3.org/2000/svg","svg");O.appendChild(N);N.appendChild(t);document.body.appendChild(O);return O};
_.V.onWindowResized=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var N=_.qa.getInstance();N.documentWidth_=document.body.clientWidth;ljf(N)};
_.V.onWindowScrolled=function(){var N=_.cY().resolve(_.J4).getCurrentPage();if(N!=null&&N.getScrollTop){var t=this.ytdReduxBehavior,O=t.dispatch;N=N.getScrollTop()<=0;O.call(t,_.H5({type:"SET_SCROLL_AT_TOP",payload:N}))}};
_.V.guideIsVisibleButNotPersistentSelectorChanged=function(){var N=_.cY().resolve(_.J4).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=N.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
N.setScrollTop(this.guideScrollTop));_.Np(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.V.getCurrentPageScrollableElementType=function(){var N=_.cY().resolve(_.J4).getCurrentPage();if(N&&N.getPageScrollingElement())return N.getPageScrollingElement().nodeName};
_.V.observeGuideVisibility=function(){var N=_.qa.getInstance(),t=this.miniGuideVisible;N.guidePersistentAndVisible_=this.guidePersistentAndVisible;N.miniGuideVisible_=t;ljf(N)};
_.V.observePersistentPanelVisibility=function(){var N=_.qa.getInstance();N.persistentPanelVisible_=this.persistentPanelVisible;ljf(N)};
_.V.handleEduDismissAction=function(N){N&&N.eduDismissAction&&(_.sl(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.dAB.getInstance(),_.x8.set(N.eduDismissAction.key+"-dismissed",!0))};
_.V.handleEduImpressionAction=function(N){if(N&&N.eduImpressionAction){var t=_.dAB.getInstance();N=N.eduImpressionAction.key;t.JSC$13336_eduDisplayedThisLoad_[_.FHp[N].setKey||N]=!0;_.x8.set(N+"-impression",parseInt(_.x8.get(N+"-impression")||0,10)+1)}};
_.V.onYtSignalActionConfirmMentionsEdu=function(){_.sl(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.nZ.getInstance();_.fZ.set("edu-dismissed",!0)};
_.V.onYtSignalActionRecordMentionsEduImpression=function(){_.nZ.getInstance();var N=_.fZ.set,t=parseInt(_.fZ.get("edu-impressions"),10);N.call(_.fZ,"edu-impressions",(isFinite(t)?t:0)+1)};
_.V.onYtPageManagerAttached=function(N){var t;((t=_.E3(N))==null?void 0:t.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.V.onInvokeInstrumentManagerAction=function(N,t){gEx(t,N)};
_.V.updateIconSet=function(){var N=this.hostElement.querySelector("#masthead");if(N){var t=_.Zr(N),O=t.querySelector("g#yt-logo-updated");O&&(N=document.createElementNS("http://www.w3.org/2000/svg","defs"),N.appendChild(O.cloneNode(!0)),(t=t.querySelector("g#yt-logo-red-updated"))&&N.appendChild(t.cloneNode(!0)),this.initIconDefs("yt-logos-ext",N))}};
_.V.updateMastheadData=function(){var N=this,t,O,H,A,Z;return _.K(function(U){if(U.nextAddress==1){t=N.data;O=N.hostElement.querySelector("#masthead");if(!O)return U.return();_.yB(N,function(){O.data=N.topbarData});
if(!N.get("response.topbar",t)||N.get("response.topbar.responseContext.maxAgeSeconds",t)===0)return U.jumpTo(0);if(H=_.cY().resolve(_.C4))return U.yield(H(),6);A=_.cY().resolve(_.fc);return U.yield(A.put("service:topbar:fallback",new _.nc({innertubeResponse:N.get("response.topbar",t)})),0)}return(Z=U.yieldResult)?U.yield(Z.put("service:topbar:fallback",new _.nc({innertubeResponse:N.get("response.topbar",t)})),0):U.jumpTo(0)})};
_.V.computeTopbarData=function(N){if(!N)return null;var t;return this.isShortsPage&&this.topbarData&&!_.M((t=N.response)==null?void 0:t.topbar,DlJ)?this.topbarData:N.response&&"topbar"in N.response?_.M(N.response.topbar,DlJ)||null:null};
_.V.onSetTheaterModeEnabled=function(N,t){this.isTheaterModeSession=t.enabled;this.setTheaterModeStyles(t.enabled)};
_.V.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.V.onDarkModeToggledAction=function(){var N=_.Yv(window.location.href);if(!_.A3v(N)){(N=!!_.D9(window.location.href).themeRefresh)&&_.J_(new _.fF("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!N){wH1();N={themeRefresh:1};var t=_.cY().resolve(_.J4);if(t.isOnWatch()){var O,H;t=((O=t.getPlayerFromWatch())==null?void 0:(H=O.getPlayer())==null?void 0:H.getCurrentTime())||0;t>=1&&(N.time_continue=Math.floor(t))}_.xv()||_.qL()!=="USER_INTERFACE_THEME_DARK"||(N.theme="dark");_.xH(_.Uy(window.location.href,
N))}_.h("web_appshell_refresh_trigger")&&_.H4.caches&&this.refreshAppShellResponse();O=_.kL(window.location.href);_.I2(_.cY().resolve(_.lE),_.El(O,"theme"))}};
_.V.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.V.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.V.onPlayerFullscreen=function(N){_.G8();this.playerFullscreen=N};
_.V.setRestrictedMode=function(N){var t=_.d0();_.g0(0,58,N);t.save();_.cY().resolve(_.lI).reload()};
_.V.onPageChanged=function(N){N.detail.newPageType==="ytd-watch-flexy"||N.detail.newPageType==="ytd-watch-fixie"||N.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Yf("WEB_PAGE_TYPE_WATCH")):N.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Yf("WEB_PAGE_TYPE_SHORTS")):N.detail.newPageType==="ytd-browse"&&N.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Yf("WEB_PAGE_TYPE_MINI_APP")):_.h("web_frosted_glass")&&N.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Yf("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Yf("WEB_PAGE_TYPE_UNKNOWN"));N.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.V.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.V.onGuideToggleTap=function(){_.or(this.hostElement,"yt-guide-toggle")};
_.V.onGuideToggleHover=function(){_.or(this.hostElement,"yt-guide-hover")};
_.V.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.V.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.V.setMastheadTheme=function(){var N=_.Zr(this.hostElement).querySelector("#masthead");N&&(N.dark=N.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),N.isDarkThemeForced=!1)};
_.V.onRequestPanelModeChange=function(N,t){this.hideHeaderShadow=t.mode!=="seamed"};
_.V.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.V.onDrawerIronSelect=function(N){_.E3(N).id==="guide"&&this.processDrawerIronSelect()};
_.V.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var N="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(N="opened"));_.or(this.hostElement,"yt-autonav-pause-guide-"+N)};
_.V.onAddElementToApp=function(N){_.O6(this.hostElement).appendChild(N.detail)};
_.V.onThrottledScroll=function(){var N=_.cY().resolve(_.J4).getCurrentPage();N&&(this.scrollAtTop=N.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.V.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.V.setFullscreen=function(){if(_.h("external_fullscreen")||!this.isWatchPage){var N=_.h("kevlar_fullerscreen_root_only_killswitch")?!!_.G8():!!_.G8()&&_.G8()===document.documentElement;N=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(N||this.isFullWindowSession);this.fullscreen!==N&&((this.fullscreen=N)&&_.Np(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.v5().dispatch(_.vAr(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.sl(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.V.setFullscreenLoggingForShorts=function(N){var t,O,H;return _.K(function(A){if(A.nextAddress==1)return A.yield((t=_.si())==null?void 0:t.getPlayerPromise(),2);O=A.yieldResult;(H=O)==null||H.setAppFullscreen(N);_.Ty(A)})};
_.V.updateMastheadCssHeight=function(){var N=this.mastheadHeight;this.fullscreen&&(N=0);_.CO(this.hostElement,{"--ytd-masthead-height":N+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.V.updateNetworkStatusBannerDisplayStatus=function(){var N="unset";this.fullscreen&&(N="none");_.CO(this.hostElement,{"--ytd-network-status-banner-display":N})};
_.V.updateNetworkStatusBannerCssHeight=function(){var N="unset";this.fullscreen&&(N="0px");_.CO(this.hostElement,{"--ytd-network-status-banner-max-height":N})};
_.V.updateScrollAndMasthead=function(N,t,O,H){this.iMaxTheaterMode||(H=!1);var A=_.cY().resolve(_.J4).getCurrentPage();N||t||H?(document.body.classList.add("no-scroll"),A.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Fb(this,this.onScroll)),A.setScrollTop(0),_.CO(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.O5()+"px"})):O?_.or(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.or(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
A.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Fb(this,this.onScroll)));this.mastheadHidden=N||t||O;this.updateMastheadCssHeight();_.h("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.V.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.V.onYtNavigateAction=function(N){N=this.get("navigateAction.endpoint",N);_.or(this.hostElement,"yt-navigate",{endpoint:N})};
_.V.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var N=document.createElement("yt-create-family-dialog");_.O6(this.hostElement).appendChild(N);this.hasCreateFamilyDialog=!0}};
_.V.onSetPushNotificationsEnabledCommand=function(N){var t=this,O=_.M(N,Vdn);O&&typeof O.enabled==="boolean"&&(Notification.permission!=="granted"?lN1().then(function(){Notification.permission==="granted"?(pHi(!O.enabled).then(YiO),O.successAction&&_.tb(t.hostElement,[O.successAction])):O.failureAction&&_.tb(t.hostElement,[O.failureAction])}):(pHi(!O.enabled).then(YiO),O.successAction&&_.tb(this.hostElement,[O.successAction])))};
_.V.onYtSignalActionEnableChromeNotifications=function(){QMJ(!0)};
_.V.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.M(this.topbarData.hotkeyDialog,KQr)}}})};
_.V.onYtSignalActionShowKeyboardShortcutDialog=function(){_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.V.onYtEndpointChangeHandler=function(N,t){var O=_.oE(_.Iu);O.pendingPrefetchJob_&&(t=!(!t||t.autonav!="1"),O.pendingPrefetchJob_.resolve(N&&_.O_t(N)?_.H_y(N,t):""),O.pendingPrefetchJob_=null);_.sl(this.hostElement,"yt-pause-active-page-context");_.sl(this.hostElement,"ytd-log-youthere-nav");_.sl(this.hostElement,"yt-prepare-page-dispose")};
_.V.handleCommandWithCommandHandler=function(N,t){_.U4.instance.resolveCommand(N,{form:{element:t}})};
_.V.onYtTimedCommand=function(N){var t=this;N=_.M(N,U75);var O=N.command;O&&_.yD(_.GB,function(){var H=_.M(O,_.MNy);H?(_.U4.instance.resolveCommand(O),t.maybeLogGetAnswerRequestTick(H)):_.OK(t.hostElement,[O],t.hostElement)},N.timeoutMs||0)};
_.V.maybeLogGetAnswerRequestTick=function(N){N&&N.isFirstRequest&&(_.LJ("search_overview_answer"),_.zT("so_rq",void 0,"search_overview_answer"))};
_.V.onYtSignalActionSkipNavigation=function(){var N=_.cY().resolve(_.J4).getCurrentPage();_.Kb(N)};
_.V.onYtSignalActionCopyDebugData=function(){A51()};
_.V.handleEntityUpdateCommand=function(N){_.yP(_.M(N,_.Qvu).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.V.logFlowLoggingEventCommand=function(N){if(N=_.M(N,_.fOx))if(N.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var t=N.flowEventNamespace,O=N.flowEventType,H=N.flowType;H&&t&&O&&_.GUp(_.KT(t,O,N.flowEventMetadata),H)}else{t=_.Fi();O=N.flowEventNamespace;H=N.flowEventType;var A=N.flowType;A&&O&&H&&t.logFlowEvent(_.KT(O,H,N.flowEventMetadata),A,N.flowNonce)}};
_.V.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.V.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.V.onTouchStart=function(){var N=_.m3();_.z8()&&_.fE(N.JSC$13458_screenManager,{visualElement:N.ve})};
_.V.handleSelectLanguageCommand=function(N){if(N=_.M(N,c6m).hl){var t=_.d0();t.set("hl",N);t.save();_.cY().resolve(_.lI).reload()}};
_.V.handleConfirmDialogEndpoint=function(N){(N=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(N))&&this.ytOpenPopupBehavior.openPopup(N)};
_.V.handleOpenPopupNavigationEndpoints=function(N,t){(N=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(N))&&this.ytOpenPopupBehavior.openPopup(N,t)};
_.V.handleSaveCommandToSessionStorage=function(N){if(N=_.M(N,_.z2a)){var t=N.key;t&&N.command&&window.sessionStorage.setItem(t,JSON.stringify(N.command))}};
_.V.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(N){N&&N.active&&N.active.postMessage({type:"refresh_shell"})}).catch(function(N){N.name!=="SecurityError"&&_.R0(N)})};
_.V.onDeviceThemeChanged=function(){var N=_.kH();_.g0(_.d0(),185,N);_.d0().save()};
_.V.handleYtRegisterPromoCommand=function(N){if(_.M(N,Z6O)){var t=_.cY().resolve(_.J4).getCurrentPage()||this.hostElement;Nx1().registerPromoCommand(_.M(N,Z6O),t)}};
_.V.onYtNavigateHomeAction=function(){if(!_.h("kevlar_miniplayer_navigate_home_from_app_killswitch")){var N,t,O,H,A=(H=(N=this.topbarData)==null?void 0:(t=N.logo)==null?void 0:(O=t.topbarLogoRenderer)==null?void 0:O.endpoint)!=null?H:_.vs;this.ytComponentBehavior.resolveCommand(A)}};
_.V.onYtLocationCollectionCommand=function(N){nF5(_.M(N,$lO))};
_.V.onYtGetLocationCommand=function(N){qd1(_.M(N,cf1),this)};
_.V.updateRenderGuideFromBinding=function(N){this.renderGuide=N.detail.value};
_.V.updateGuidePersistentAndVisibleFromBinding=function(N){this.guidePersistentAndVisible=N.detail.value};
_.V.updateMiniGuideVisibleFromBinding=function(N){this.miniGuideVisible=N.detail.value};
_.V.onThemeSelected=function(N,t){var O=_.d0(),H=N||t?N:_.kH(),A=(H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.A3v(_.Yv(window.location.href));_.g0(0,165,N);_.g0(0,174,t);O.save();A&&_.sl(this.hostElement,"yt-dark-mode-toggled-action",[H]);_.sl(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.V.getCurrentTheme=function(){return _.fT()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.qL()};
_.V.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.V.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.V.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.V.handleShowConsentPrimitive=function(N){var t=this,O,H;return _.K(function(A){if(A.nextAddress==1){try{O=(H=_.si())==null?void 0:H.getPlayerPromise()}catch(Z){}return A.yield(Vz5(N,O),2)}_.sl(t.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Ty(A)})};
_.V.handleSelectActiveIdentityEndpointInternal=function(N){_.Pi();N=_.M(N,_.nnY);if(N!=null&&N.supportedTokens){N=_.D(N.supportedTokens);for(var t=N.next();!t.done;t=N.next())t=t.value,t.accountSigninToken&&_.xH(t.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.V.handleUpdatePermissionRoleCommand=function(N){if(N=_.M(N,_.WJZ)){var t;this.hasDelegation=!((t=_.M(N.renderer,_.nOa))==null||!t.status)}};
_.V.registerWithViewTransitionManager=function(){var N=_.cY().resolve(_.BY(_.NX));if(N){var t,O=(t=this.guide)==null?void 0:t.querySelector("#scrim"),H;t=(H=this.guide)==null?void 0:H.querySelector("#contentContainer");O&&t&&N.isAnyTransitionEnabled&&(H={},N.viewTransitionCoordinator.registerElement(O,(H.slide="app-drawer-scrim-page-transition",H["lockup-to-watch"]="app-drawer-scrim-page-transition",H["learning-journey"]="app-drawer-scrim-page-transition",H)),O={},N.viewTransitionCoordinator.registerElement(t,
(O.slide="app-drawer-container-page-transition",O["lockup-to-watch"]="app-drawer-container-page-transition",O["learning-journey"]="app-drawer-container-page-transition",O)))}};
_.cv.Object.defineProperties(wS.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.h("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.cv.Object.defineProperties(wS,{template:{configurable:!0,enumerable:!0,get:function(){if(ug5===void 0){var N=document.createElement("template");_.L(N,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
N.content.insertBefore(_.m().content.cloneNode(!0),N.content.firstChild);ug5=N}N=ug5;return N}}});
wS.prototype.onOpenHotkeyDialog=wS.prototype.onOpenHotkeyDialog;wS.prototype.setFullscreen=wS.prototype.setFullscreen;wS.prototype.onAddElementToApp=wS.prototype.onAddElementToApp;wS.prototype.onDrawerIronSelect=wS.prototype.onDrawerIronSelect;wS.prototype.onGuideOpenButtonHover=wS.prototype.onGuideOpenButtonHover;wS.prototype.onRequestPanelModeChange=wS.prototype.onRequestPanelModeChange;wS.prototype.onPageDataUpdated=wS.prototype.onPageDataUpdated;wS.prototype.onPageChanged=wS.prototype.onPageChanged;
wS.prototype.onSetTheaterModeEnabled=wS.prototype.onSetTheaterModeEnabled;wS.prototype.updateMastheadData=wS.prototype.updateMastheadData;wS.prototype.onYtPageManagerAttached=wS.prototype.onYtPageManagerAttached;wS.prototype.observePersistentPanelVisibility=wS.prototype.observePersistentPanelVisibility;wS.prototype.observeGuideVisibility=wS.prototype.observeGuideVisibility;wS.prototype.guideIsVisibleButNotPersistentSelectorChanged=wS.prototype.guideIsVisibleButNotPersistentSelectorChanged;
wS.prototype.isInlinePreviewEnabledChanged=wS.prototype.isInlinePreviewEnabledChanged;wS.prototype.isWatchPageChanged=wS.prototype.isWatchPageChanged;wS.prototype.dispatchFrostedGlassMode=wS.prototype.dispatchFrostedGlassMode;_.W([_.Y(_.Ue),_.Q("design:type",Object)],wS.prototype,"ytdReduxBehavior",void 0);_.W([_.Y(_.of.YtEventForwardingBehavior),_.Q("design:type",Object)],wS.prototype,"ytEventForwardingBehavior",void 0);
_.W([_.Y(_.fD.YtOpenPopupBehavior),_.Q("design:type",Object)],wS.prototype,"ytOpenPopupBehavior",void 0);_.W([_.Y(_.Wu.YtActionHandlerBehavior),_.Q("design:type",Object)],wS.prototype,"ytActionHandlerBehavior",void 0);
_.W([_.Y({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.VM.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.h("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var N;((N=this.actionRouterNode.hostElement)!=null?N:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var N;((N=this.actionRouterNode.hostElement)!=null?N:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(N){this.actionRouter_.handleAction(N.detail)}}),
_.Q("design:type",Object)],wS.prototype,"ytActionRouterBehavior",void 0);_.W([_.Y(DAz.YtdAppBehavior),_.Q("design:type",Object)],wS.prototype,"ytdAppBehavior",void 0);_.W([_.Y(_.nD.YtEndpointBehavior),_.Q("design:type",Object)],wS.prototype,"ytEndpointBehavior",void 0);_.W([_.Y(pQO.YtEndpointHandlerWithYpcBehavior),_.Q("design:type",Object)],wS.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.W([_.Y(S5r.YtLogYpcFlowCommandsBehavior),_.Q("design:type",Object)],wS.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.W([_.Y(_.G.YtRendererBehavior),_.Q("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.W([_.Y(_.CD.YtComponentBehavior),_.Q("design:type",Object)],wS.prototype,"ytComponentBehavior",void 0);_.W([_.X({selector:_.lmJ}),_.Q("design:type",Object)],wS.prototype,"tabGesturesIsActive",void 0);_.W([_.X(),_.Q("design:type",Boolean)],wS.prototype,"renderGuide",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"guidePersistentAndVisible",void 0);_.W([_.X({selector:_.Imq}),_.Q("design:type",Boolean)],wS.prototype,"guideIsVisibleButNotPersistent",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"standalone",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"miniGuideVisible",void 0);
_.W([_.X(),_.Q("design:type",Object)],wS.prototype,"persistentPanelEnabled",void 0);_.W([_.X({selector:lLf,reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"persistentPanelVisible",void 0);_.W([_.X({selector:_.wuQ}),_.Q("design:type",Number)],wS.prototype,"miniplayerPlaybackState",void 0);_.W([_.X({selector:_.w8,reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"miniplayerIsActive",void 0);
_.W([_.X({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Q("design:type",Boolean)],wS.prototype,"isInlinePreviewEnabled",void 0);_.W([_.X(),_.Q("design:type",Boolean)],wS.prototype,"isInlinePreviewDisabled",void 0);_.W([_.X({reflectToAttribute:!0,value:function(){return _.vZ("START_IN_FULL_WINDOW_MODE")}}),
_.Q("design:type",Boolean)],wS.prototype,"mastheadHidden",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"playerFullscreen",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"fullscreen",void 0);_.W([_.X({value:!1,reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"hideHeaderShadow",void 0);
_.W([_.X({value:{GUIDE_ALT_LABEL:_.CJ("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Q("design:type",Object)],wS.prototype,"menuStrings",void 0);_.W([_.X({computed:"computeTopbarData(data)"}),_.Q("design:type",Object)],wS.prototype,"topbarData",void 0);_.W([_.X({selector:_.ztQ,reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"isWatchPage",void 0);_.W([_.X({selector:_.Yol,reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"isShortsPage",void 0);
_.W([_.X({selector:function(N){return _.eD(N)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Q("design:type",Boolean)],wS.prototype,"isMiniAppPage",void 0);_.W([_.X({selector:function(N){return _.eD(N)==="WEB_PAGE_TYPE_BROWSE"}}),
_.Q("design:type",Boolean)],wS.prototype,"isBrowsePage",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Boolean)],wS.prototype,"scrolling",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],wS.prototype,"hasDelegation",void 0);_.W([_.X({reflectToAttribute:!0,value:!1}),_.Q("design:type",Boolean)],wS.prototype,"guideScrolledByTouch",void 0);_.W([_.X(),_.Q("design:type",Object)],wS.prototype,"isFrostedGlassInitialized",void 0);
_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],wS.prototype,"frostedGlassExp",void 0);_.W([_.X({selector:function(N){return N.ui.chipBarIsSticky}}),
_.Q("design:type",Boolean)],wS.prototype,"chipBarIsSticky",void 0);_.W([_.X({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Q("design:type",Boolean)],wS.prototype,"isHomePage",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],wS.prototype,"hasPendingWatchNavigation",void 0);_.W([_.X({reflectToAttribute:!0}),_.Q("design:type",Object)],wS.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.W([_.X(),_.Q("design:type",Object)],wS.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.W([_.BQ("guide"),_.Q("design:type",Object)],wS.prototype,"guide",void 0);_.W([_.BQ("guide-service"),_.Q("design:type",vPO)],wS.prototype,"guideService",void 0);_.W([_.BQ("guide-inner-content"),_.Q("design:type",HTMLDivElement)],wS.prototype,"guideInnerContent",void 0);_.W([_.B2("#persistent-panel-container"),_.Q("design:type",HTMLElement)],wS.prototype,"persistentPanelContainer",void 0);
_.W([_.X({selector:_.etx}),_.Q("design:type",String)],wS.prototype,"frostedGlassMode",void 0);_.W([_.gz("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"dispatchFrostedGlassMode",null);_.W([_.X({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Q("design:type",Object)],wS.prototype,"isFrostedGlassDisabled",void 0);
_.W([_.gz("isWatchPage"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"isWatchPageChanged",null);_.W([_.a("isHomePage","chipBarIsSticky"),_.Q("design:type",Boolean),_.Q("design:paramtypes",[])],wS.prototype,"applyFrostedGlassToChipBar",null);_.W([_.X(),_.Q("design:type",Object)],wS.prototype,"isChannelOrPlaylistPage",void 0);
_.W([_.ic("isInlinePreviewEnabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"isInlinePreviewEnabledChanged",null);_.W([_.gz("guideIsVisibleButNotPersistent"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.W([_.gz("guidePersistentAndVisible","miniGuideVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"observeGuideVisibility",null);_.W([_.gz("persistentPanelVisible"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"observePersistentPanelVisibility",null);
_.W([_.dz("attached"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],wS.prototype,"onYtPageManagerAttached",null);_.W([_.gz("data"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype",Promise)],wS.prototype,"updateMastheadData",null);_.W([_.dz("yt-set-theater-mode-enabled"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent,Object]),_.Q("design:returntype")],wS.prototype,"onSetTheaterModeEnabled",null);
_.W([_.dz("yt-page-type-changed"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],wS.prototype,"onPageChanged",null);_.W([_.dz("yt-page-data-updated"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"onPageDataUpdated",null);_.W([_.dz("yt-request-panel-mode-change"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event,Object]),_.Q("design:returntype")],wS.prototype,"onRequestPanelModeChange",null);
_.W([_.dz("yt-guide-hover"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"onGuideOpenButtonHover",null);_.W([_.dz("app-drawer-transitioned"),_.Q("design:type",Function),_.Q("design:paramtypes",[Event]),_.Q("design:returntype")],wS.prototype,"onDrawerIronSelect",null);_.W([_.dz("yt-add-element-to-app"),_.Q("design:type",Function),_.Q("design:paramtypes",[CustomEvent]),_.Q("design:returntype")],wS.prototype,"onAddElementToApp",null);
_.W([_.dz("yt-set-fullerscreen-styles"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"setFullscreen",null);_.W([_.dz("yt-open-hotkey-dialog"),_.Q("design:type",Function),_.Q("design:paramtypes",[]),_.Q("design:returntype")],wS.prototype,"onOpenHotkeyDialog",null);_.W([_.en({is:"ytd-app"})],wS);_.iI().processSignal("eor");
_.m7();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
